feat: publish changed packages independently
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Accordion {
|
||||
outputs {
|
||||
change(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -206,7 +204,6 @@ component Accordion {
|
||||
</section>
|
||||
{/each}
|
||||
</div>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -408,5 +405,74 @@ component Accordion {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import SelectStyles from "../styles/SelectStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component AdvancedSelect {
|
||||
outputs {
|
||||
search(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -460,7 +458,6 @@ component AdvancedSelect {
|
||||
>{validationMessage}</small>
|
||||
</div>
|
||||
<SelectStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -518,5 +515,74 @@ component AdvancedSelect {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,7 +88,6 @@ component AuthForm {
|
||||
</form>
|
||||
<slot />
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -146,7 +145,74 @@ component AuthForm {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
import Button from "./button.wrn"
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component AuthSplitLayout {
|
||||
props {
|
||||
size: string = "default"
|
||||
@@ -81,7 +79,6 @@ component AuthSplitLayout {
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -260,5 +257,74 @@ component AuthSplitLayout {
|
||||
place-items: start center;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component AvatarGroup {
|
||||
outputs {
|
||||
overflow(payload: { sourceEvent?: Event; value: string | number | boolean | null | object; [key: string]: string | number | boolean | null | object } | string | number | boolean | null | object[])
|
||||
@@ -148,7 +146,6 @@ component AvatarGroup {
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -355,5 +352,74 @@ component AvatarGroup {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Blockquote {
|
||||
props {
|
||||
quote: string = "I just wanted to say that I'm very happy with my purchase so far. The documentation is outstanding - clear and detailed."
|
||||
@@ -65,7 +63,6 @@ component Blockquote {
|
||||
</figcaption>
|
||||
{/if}
|
||||
</figure>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -269,5 +266,74 @@ component Blockquote {
|
||||
margin-inline-start: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component ButtonGroup {
|
||||
outputs {
|
||||
click(payload: { sourceEvent?: Event; [key: string]: string | number | boolean | null | object })
|
||||
@@ -90,7 +88,6 @@ items: unknown[] = []
|
||||
{/if}
|
||||
<slot />
|
||||
</div>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -235,5 +232,73 @@ items: unknown[] = []
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Card {
|
||||
outputs {
|
||||
click(payload: { sourceEvent?: Event; [key: string]: string | number | boolean | null | object })
|
||||
@@ -310,7 +308,6 @@ component Card {
|
||||
</article>
|
||||
{/if}
|
||||
</div>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -672,5 +669,74 @@ component Card {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
// Interactive, hydration-safe content carousel.
|
||||
component Carousel {
|
||||
outputs {
|
||||
@@ -462,7 +460,6 @@ component Carousel {
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -828,5 +825,74 @@ component Carousel {
|
||||
transition-duration: 0.01ms;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component ChatBubble {
|
||||
outputs {
|
||||
action(payload: { action: boolean; item: string | number | boolean | null | object; index: number })
|
||||
@@ -148,7 +146,6 @@ component ChatBubble {
|
||||
{/if}
|
||||
<slot />
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -348,5 +345,74 @@ component ChatBubble {
|
||||
padding-inline: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Collapse {
|
||||
outputs {
|
||||
toggle(payload: { index: number; item: string | number | boolean | null | object; open: boolean; openIndexes: number[] })
|
||||
@@ -96,7 +94,6 @@ size: string = "default"
|
||||
{/each}
|
||||
<slot />
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -245,5 +242,74 @@ size: string = "default"
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component ColorPicker {
|
||||
outputs {
|
||||
input(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -41,8 +37,6 @@ component ColorPicker {
|
||||
<div class="wire-next__color-control" data-icon-position="{iconPosition}">{#if icon}<span class="{icon}" aria-hidden="true"></span>{/if}<input id="{id || name}" type="color" name="{name}" value="{value}" disabled="{disabled}" required="{required}" readonly="{readonly}" aria-invalid="{error ? 'true' : 'false'}" @click="preventReadonly(event)" @input="emitField('input', event)" @change="emitField('change', event)" @focus="emitField('focus', event)" @blur="emitField('blur', event)" /><output>{value}</output></div>
|
||||
{#if helperText}<small class="wire-next__field-help">{helperText}</small>{/if}<small class="wire-next__field-error" data-error="{name}">{error}</small>
|
||||
</div>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -50,5 +44,564 @@ component ColorPicker {
|
||||
width: 3rem;
|
||||
padding: 0.2rem;
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import SelectStyles from "../styles/SelectStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component ComboBox {
|
||||
outputs {
|
||||
search(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -390,7 +388,6 @@ component ComboBox {
|
||||
>{validationMessage}</small>
|
||||
</div>
|
||||
<SelectStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -416,5 +413,74 @@ component ComboBox {
|
||||
padding-left: 2.5em;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component DataMap {
|
||||
outputs {
|
||||
select(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -22,7 +20,6 @@ component DataMap {
|
||||
{#if items}<div class="wire-next__items">{#each items as item}<span>{item.label}</span>{/each}</div>{/if}
|
||||
<slot />
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -38,5 +35,74 @@ component DataMap {
|
||||
.wire-next--data-map > p { margin: 0; color: var(--wire-color-muted); }
|
||||
.wire-next--data-map > .wire-next__items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
||||
.wire-next--data-map > .wire-next__items > span { padding: 0.35rem 0.6rem; border-radius: var(--wire-radius-sm); background: var(--wire-color-surface-2); }
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
//
|
||||
// DataTable -- columns, sorting, filtering, pagination and selection over an
|
||||
// array of records.
|
||||
@@ -1045,7 +1043,6 @@ component DataTable {
|
||||
|
||||
<slot></slot>
|
||||
</div>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -1643,5 +1640,74 @@ component DataTable {
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component DatePicker {
|
||||
outputs {
|
||||
input(payload: { sourceEvent?: Event; value: string | number | boolean | null | object; [key: string]: string | number | boolean | null | object } | string | number | boolean | null | object[])
|
||||
@@ -62,8 +58,6 @@ size: string = "default"
|
||||
<div class="wire-next__calendar" role="dialog" aria-label="{label}"><div class="wire-next__date-selectors"><label>Month<select value="{selectedMonth}" @change="updateDate('month', event.currentTarget.value, event)">{#each months as month}<option value="{month.value}" selected="{month.value === selectedMonth}">{month.label}</option>{/each}</select></label><label>Year<select value="{selectedYear}" @change="updateDate('year', event.currentTarget.value, event)">{#each years as year}<option value="{year}" selected="{String(year) === selectedYear}">{year}</option>{/each}</select></label></div><div class="wire-next__calendar-grid">{#each days as day}<button type="button" data-value="{String(day).padStart(2, '0')}" aria-pressed="{String(day).padStart(2, '0') === selectedDay}" @click="selectDay(event)">{day}</button>{/each}</div><button type="button" class="wire-next__date-done" disabled="{!currentValue}" @click="finishDate(event)">Done</button></div>
|
||||
{#if helperText}<small class="wire-next__field-help">{helperText}</small>{/if}<small class="wire-next__field-error" data-error="{name}">{error}</small>
|
||||
</div>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -121,5 +115,564 @@ size: string = "default"
|
||||
.wire-next__calendar-grid button[data-today="true"] {
|
||||
box-shadow: inset 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component DeviceFrame {
|
||||
outputs {
|
||||
change(payload: { device: string; orientation: string; sourceEvent: Event })
|
||||
@@ -32,7 +30,6 @@ component DeviceFrame {
|
||||
<header><div>{#if title}<strong>{title}</strong>{/if}{#if description}<p>{description}</p>{/if}</div>{#if showToolbar}<div class="wire-next__device-actions" role="toolbar" aria-label="Preview device">{#each items as item}<button type="button" aria-pressed="{item.value === device}" @click="setDevice(item.value, event)">{item.label}</button>{/each}<button type="button" aria-label="Rotate preview" @click="rotateFrame(event)">↻</button></div>{/if}</header>
|
||||
<div class="wire-next__device-shell">{#if src || srcdoc}<iframe title="{frameTitle}" src="{src}" srcdoc="{srcdoc}" allow="{allow}"></iframe>{:else}<div class="wire-next__device-content"><slot /></div>{/if}</div>
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -106,5 +103,74 @@ component DeviceFrame {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component DragAndDrop {
|
||||
outputs {
|
||||
dragStart(payload: { sourceEvent?: Event; [key: string]: string | number | boolean | null | object })
|
||||
@@ -26,7 +24,6 @@ component DragAndDrop {
|
||||
{#if items}<div class="wire-next__items">{#each items as item}<span>{item.label}</span>{/each}</div>{/if}
|
||||
<slot />
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -42,5 +39,74 @@ component DragAndDrop {
|
||||
.wire-next--drag-and-drop > p { margin: 0; color: var(--wire-color-muted); }
|
||||
.wire-next--drag-and-drop > .wire-next__items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
||||
.wire-next--drag-and-drop > .wire-next__items > span { padding: 0.35rem 0.6rem; border-radius: var(--wire-radius-sm); background: var(--wire-color-surface-2); }
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,6 @@ component FeatureGrid {
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -231,7 +230,74 @@ component FeatureGrid {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
import FeatureCard from "./FeatureCard.wrn"
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component FileInput {
|
||||
outputs {
|
||||
input(payload: { files: File[]; name: string; sourceEvent: Event })
|
||||
@@ -55,8 +51,6 @@ size: string = "default"
|
||||
<div class="wire-next__file-control" data-icon-position="{iconPosition}">{#if icon}<span class="{icon}" aria-hidden="true"></span>{/if}<span>{selectedName || value || placeholder}</span><input id="{id || name}" type="file" name="{name}" accept="{accept}" multiple="{multiple}" disabled="{disabled}" required="{required}" aria-readonly="{readonly}" aria-invalid="{error ? 'true' : 'false'}" @click="preventReadonly(event)" @input="handleChange(event)" @change="handleChange(event)" @focus="emitField('focus', event)" @blur="emitField('blur', event)" @invalid="emitField('invalid', event)" /></div>
|
||||
{#if helperText}<small class="wire-next__field-help">{helperText}</small>{/if}<small class="wire-next__field-error" data-error="{name}">{error}</small>
|
||||
</div>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -75,5 +69,564 @@ size: string = "default"
|
||||
opacity: 0;
|
||||
inset: 0;
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component FileUploadProgress {
|
||||
outputs {
|
||||
cancel(payload: { sourceEvent?: Event; value: string | number | boolean | null | object; [key: string]: string | number | boolean | null | object } | string | number | boolean | null | object[])
|
||||
@@ -40,8 +36,6 @@ size: string = "default"
|
||||
<div class="wire-next__upload-status"><span class="wire-next__upload-status-icon" aria-hidden="true"></span><span>{#if currentStatus === "uploading"}Uploading securely…{:else if currentStatus === "complete"}Upload complete{:else if currentStatus === "error"}Upload failed{:else}Upload cancelled{/if}</span></div>
|
||||
<div class="wire-next__upload-actions">{#if currentStatus === "uploading"}<button type="button" @click="cancelUpload(event)">{cancelLabel}</button><button type="button" @click="completeUpload(event)">Complete</button>{/if}{#if currentStatus === "error" || currentStatus === "cancelled"}<button type="button" @click="retryUpload(event)">{retryLabel}</button>{/if}</div>
|
||||
</div>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -89,5 +83,564 @@ size: string = "default"
|
||||
background: var(--wire-color-surface-2);
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component InputGroup {
|
||||
outputs {
|
||||
input(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -54,8 +50,6 @@ component InputGroup {
|
||||
</div>
|
||||
{#if helperText}<small class="wire-next__field-help">{helperText}</small>{/if}<small class="wire-next__field-error" data-error="{name}">{error}</small>
|
||||
</div>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -88,5 +82,564 @@ component InputGroup {
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component LegendIndicator {
|
||||
outputs {
|
||||
toggle(payload: { sourceEvent?: Event; [key: string]: string | number | boolean | null | object })
|
||||
@@ -22,7 +20,6 @@ component LegendIndicator {
|
||||
{#if items}<div class="wire-next__items">{#each items as item}<span>{item.label}</span>{/each}</div>{/if}
|
||||
<slot />
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -38,5 +35,74 @@ component LegendIndicator {
|
||||
.wire-next--legend-indicator > p { margin: 0; color: var(--wire-color-muted); }
|
||||
.wire-next--legend-indicator > .wire-next__items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
||||
.wire-next--legend-indicator > .wire-next__items > span { padding: 0.35rem 0.6rem; border-radius: var(--wire-radius-sm); background: var(--wire-color-surface-2); }
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component ListGroup {
|
||||
outputs {
|
||||
select(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -22,7 +20,6 @@ component ListGroup {
|
||||
{#if items}<div class="wire-next__items">{#each items as item}<span>{item.label}</span>{/each}</div>{/if}
|
||||
<slot />
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -38,5 +35,74 @@ component ListGroup {
|
||||
.wire-next--list-group > p { margin: 0; color: var(--wire-color-muted); }
|
||||
.wire-next--list-group > .wire-next__items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
||||
.wire-next--list-group > .wire-next__items > span { padding: 0.35rem 0.6rem; border-radius: var(--wire-radius-sm); background: var(--wire-color-surface-2); }
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Navbar {
|
||||
outputs {
|
||||
toggle(payload: { open: boolean })
|
||||
@@ -141,7 +139,6 @@ size: string = "default"
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -578,5 +575,74 @@ size: string = "default"
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component PinInput {
|
||||
outputs {
|
||||
input(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -115,7 +113,6 @@ component PinInput {
|
||||
data-error="{name}"
|
||||
>{validationMessage}</small>
|
||||
</fieldset>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -237,5 +234,74 @@ component PinInput {
|
||||
height: min(3rem, 14vw);
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component PortalDashboard {
|
||||
outputs {
|
||||
action(payload: { item: string | number | boolean | null | object; value: string | number | boolean; index: number })
|
||||
@@ -99,7 +97,6 @@ component PortalDashboard {
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -383,5 +380,74 @@ component PortalDashboard {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component PreferenceSwitcher {
|
||||
outputs {
|
||||
theme(payload: { sourceEvent?: Event; value: string | number | boolean | null | object; [key: string]: string | number | boolean | null | object } | string | number | boolean | null | object[])
|
||||
@@ -83,7 +81,6 @@ size: string = "default"
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -252,5 +249,74 @@ size: string = "default"
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component RangeSlider {
|
||||
outputs {
|
||||
input(payload: ({ value: number; name: string; sourceEvent: Event }) | ({ sourceEvent?: Event; value: string | number | boolean | null | object; [key: string]: string | number | boolean | null | object } | string | number | boolean | null | object[]))
|
||||
@@ -71,8 +67,6 @@ component RangeSlider {
|
||||
</div>
|
||||
{#if helperText}<small class="wire-next__field-help">{helperText}</small>{/if}<small class="wire-next__field-error" data-error="{name}">{error}</small>
|
||||
</div>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -210,5 +204,564 @@ component RangeSlider {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Rating {
|
||||
outputs {
|
||||
input(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -22,7 +20,6 @@ component Rating {
|
||||
{#if items}<div class="wire-next__items">{#each items as item}<span>{item.label}</span>{/each}</div>{/if}
|
||||
<slot />
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -38,5 +35,74 @@ component Rating {
|
||||
.wire-next--rating > p { margin: 0; color: var(--wire-color-muted); }
|
||||
.wire-next--rating > .wire-next__items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
||||
.wire-next--rating > .wire-next__items > span { padding: 0.35rem 0.6rem; border-radius: var(--wire-radius-sm); background: var(--wire-color-surface-2); }
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component StrongPassword {
|
||||
outputs {
|
||||
input(payload: { value: string; score: number; maximumScore: number; percent: number; level: string })
|
||||
@@ -218,8 +214,6 @@ component StrongPassword {
|
||||
|
||||
<small id="{name}-validation" class="wire-next__validation" data-error="{name}">{validationMessage}</small>
|
||||
</div>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -413,5 +407,564 @@ component StrongPassword {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component StyledIcon {
|
||||
props {
|
||||
size: string = "default"
|
||||
@@ -17,7 +15,6 @@ component StyledIcon {
|
||||
{#if items}<div class="wire-next__items">{#each items as item}<span>{item.label}</span>{/each}</div>{/if}
|
||||
<slot />
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -33,5 +30,74 @@ component StyledIcon {
|
||||
.wire-next--styled-icon > p { margin: 0; color: var(--wire-color-muted); }
|
||||
.wire-next--styled-icon > .wire-next__items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
||||
.wire-next--styled-icon > .wire-next__items > span { padding: 0.35rem 0.6rem; border-radius: var(--wire-radius-sm); background: var(--wire-color-surface-2); }
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component TimePicker {
|
||||
outputs {
|
||||
input(payload: { sourceEvent?: Event; value: string | number | boolean | null | object; [key: string]: string | number | boolean | null | object } | string | number | boolean | null | object[])
|
||||
@@ -66,8 +62,6 @@ size: string = "default"
|
||||
{#if helperText}<small class="wire-next__field-help">{helperText}</small>{/if}
|
||||
<small class="wire-next__field-error" data-error="{name}">{error}</small>
|
||||
</div>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -94,5 +88,564 @@ size: string = "default"
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component ToggleCount {
|
||||
outputs {
|
||||
change(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -281,7 +279,6 @@ component ToggleCount {
|
||||
</div>
|
||||
{/if}
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -470,5 +467,74 @@ component ToggleCount {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component TogglePassword {
|
||||
outputs {
|
||||
input(payload: { name?: string; value: string | number | boolean | null | object; visible: boolean })
|
||||
@@ -156,8 +152,6 @@ component TogglePassword {
|
||||
data-error="{name}"
|
||||
>{validationMessage}</small>
|
||||
</fieldset>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -294,5 +288,564 @@ component TogglePassword {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.72em;
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component WysiwygEditor {
|
||||
outputs {
|
||||
input(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -24,7 +22,6 @@ component WysiwygEditor {
|
||||
{#if items}<div class="wire-next__items">{#each items as item}<span>{item.label}</span>{/each}</div>{/if}
|
||||
<slot />
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -40,5 +37,74 @@ component WysiwygEditor {
|
||||
.wire-next--wysiwyg-editor > p { margin: 0; color: var(--wire-color-muted); }
|
||||
.wire-next--wysiwyg-editor > .wire-next__items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
||||
.wire-next--wysiwyg-editor > .wire-next__items > span { padding: 0.35rem 0.6rem; border-radius: var(--wire-radius-sm); background: var(--wire-color-surface-2); }
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Alert {
|
||||
outputs {
|
||||
dismiss(payload: { sourceEvent?: Event; [key: string]: string | number | boolean | null | object })
|
||||
@@ -144,7 +142,6 @@ component Alert {
|
||||
</button>
|
||||
{/if}
|
||||
</section>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -392,5 +389,74 @@ component Alert {
|
||||
justify-self: end;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Avatar {
|
||||
outputs {
|
||||
load(payload: { sourceEvent?: Event; [key: string]: string | number | boolean | null | object })
|
||||
@@ -88,7 +86,6 @@ src: string = ""
|
||||
</span>
|
||||
{/if}
|
||||
</span>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -350,5 +347,74 @@ src: string = ""
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Badge {
|
||||
outputs {
|
||||
dismiss(payload: { sourceEvent?: Event; [key: string]: string | number | boolean | null | object })
|
||||
@@ -101,7 +99,6 @@ component Badge {
|
||||
{/if}
|
||||
</span>
|
||||
</span>
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -350,5 +347,74 @@ component Badge {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Checkbox {
|
||||
outputs {
|
||||
input(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -176,8 +172,6 @@ size: string = "default"
|
||||
{error}
|
||||
</small>
|
||||
</div>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -205,5 +199,564 @@ size: string = "default"
|
||||
.wire-next__checkbox-slot :is(a, button) {
|
||||
color: var(--wire-field-color);
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Input {
|
||||
outputs {
|
||||
input(payload: { sourceEvent?: Event; value: string | number | boolean | null | object; [key: string]: string | number | boolean | null | object } | string | number | boolean | null | object[])
|
||||
@@ -14,7 +10,7 @@ component Input {
|
||||
}
|
||||
|
||||
props {
|
||||
size: string = "default"
|
||||
size: string = "default"
|
||||
color: string = "primary"
|
||||
id: string = ""
|
||||
name: string = ""
|
||||
@@ -56,13 +52,42 @@ size: string = "default"
|
||||
client function handleKeyup(sourceEvent) { sourceEvent.stopPropagation(); output.keyup({ key: sourceEvent.key, value: sourceEvent.currentTarget.value, name: name, sourceEvent: sourceEvent }) }
|
||||
}
|
||||
view {
|
||||
<div {...attrs} class="wire-component wire-component--color-{color} wire-component--size-{size} wire-next--field wire-next--input {class}" data-variant="{variant}" data-inline="{inline}" data-floating="{variant === 'floating'}" data-invalid="{error ? 'true' : 'false'}">
|
||||
<div class="wire-next__field-heading">
|
||||
<label class="{hiddenLabel ? 'wire-next__sr-only' : ''}" for="{id || name}">{label}</label>
|
||||
{#if cornerHint}<span class="wire-next__field-hint">{cornerHint}</span>{/if}
|
||||
<div
|
||||
{...attrs}
|
||||
class="wire-component wire-component--color-{color} wire-component--size-{size} wire-next--field wire-next--input {class}"
|
||||
data-variant="{variant}"
|
||||
data-inline="{inline}"
|
||||
data-floating="{variant === 'floating'}"
|
||||
data-invalid="{error ? 'true' : 'false'}"
|
||||
>
|
||||
<div
|
||||
class="wire-next__field-heading"
|
||||
>
|
||||
<label
|
||||
class="{hiddenLabel ? 'wire-next__sr-only' : ''}"
|
||||
for="{id || name}"
|
||||
>
|
||||
{label}
|
||||
</label>
|
||||
{#if cornerHint}
|
||||
<span
|
||||
class="wire-next__field-hint"
|
||||
>
|
||||
{cornerHint}
|
||||
</span>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="wire-next__field-control" data-icon-position="{iconPosition}">
|
||||
{#if icon}<span class="{icon} wire-next__field-icon" aria-hidden="true"></span>{/if}
|
||||
<div
|
||||
class="wire-next__field-control"
|
||||
data-icon-position="{iconPosition}"
|
||||
>
|
||||
{#if icon}
|
||||
<span
|
||||
class="{icon} wire-next__field-icon"
|
||||
aria-hidden="true"
|
||||
>
|
||||
</span>
|
||||
{/if}
|
||||
<input
|
||||
id="{id || name}"
|
||||
type="{type}"
|
||||
@@ -90,17 +115,593 @@ size: string = "default"
|
||||
@keydown="handleKeydown(event)"
|
||||
@keyup="handleKeyup(event)"
|
||||
/>
|
||||
{#if variant === "floating"}<span class="wire-next__field-floating-label">{label}</span>{/if}
|
||||
{#if variant === "floating"}
|
||||
<span
|
||||
class="wire-next__field-floating-label"
|
||||
>
|
||||
{label}
|
||||
</span>
|
||||
{/if}
|
||||
</div>
|
||||
{#if helperText}<small id="{(id || name) + '-help'}" class="wire-next__field-help">{helperText}</small>{/if}
|
||||
<small id="{(id || name) + '-error'}" class="wire-next__field-error" data-error="{name}">{error}</small>
|
||||
{#if helperText}
|
||||
<small
|
||||
id="{(id || name) + '-help'}"
|
||||
class="wire-next__field-help"
|
||||
>
|
||||
{helperText}
|
||||
</small>
|
||||
{/if}
|
||||
<small
|
||||
id="{(id || name) + '-error'}"
|
||||
class="wire-next__field-error"
|
||||
data-error="{name}"
|
||||
>
|
||||
{error}
|
||||
</small>
|
||||
</div>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
.wire-next--input { width: 100%; min-width: 0; }
|
||||
.wire-next--input[data-invalid="true"] { --wire-component-color: var(--wire-color-danger); }
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Radio {
|
||||
outputs {
|
||||
input(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -59,12 +55,569 @@ size: string = "default"
|
||||
{/if}
|
||||
{#if helperText}<small class="wire-next__field-help">{helperText}</small>{/if}<small class="wire-next__field-error" data-error="{name}">{error}</small>
|
||||
</div>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
.wire-next--radio-field { width: 100%; min-width: 0; }
|
||||
.wire-next--radio-field[data-invalid="true"] { --wire-component-color: var(--wire-color-danger); }
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Select {
|
||||
outputs {
|
||||
input(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -64,8 +60,6 @@ size: string = "default"
|
||||
{#if helperText}<small class="wire-next__field-help">{helperText}</small>{/if}
|
||||
<small class="wire-next__field-error" data-error="{name}">{error}</small>
|
||||
</div>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -75,5 +69,564 @@ size: string = "default"
|
||||
margin: 0;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Switch {
|
||||
outputs {
|
||||
input(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -42,8 +38,6 @@ component Switch {
|
||||
<label class="wire-next__choice wire-next--switch" for="{id || name}" data-variant="{variant}" data-icon-position="{iconPosition}"><input id="{id || name}" type="checkbox" role="switch" name="{name}" value="{value}" checked="{checked}" disabled="{disabled}" required="{required}" readonly="{readonly}" aria-checked="{checked ? 'true' : 'false'}" aria-invalid="{error ? 'true' : 'false'}" @click="preventReadonly(event)" @input="emitField('input', event)" @change="emitField('change', event)" @focus="emitField('focus', event)" @blur="emitField('blur', event)" />{#if icon}<span class="{icon}" aria-hidden="true"></span>{/if}<span class="{hiddenLabel || cornerHint ? 'wire-next__sr-only' : ''}">{label}</span></label>
|
||||
{#if helperText}<small class="wire-next__field-help">{helperText}</small>{/if}<small class="wire-next__field-error" data-error="{name}">{error}</small>
|
||||
</div>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
@@ -88,5 +82,564 @@ component Switch {
|
||||
background: var(--wire-color-primary-contrast, #fff);
|
||||
transform: translateX(1.1rem);
|
||||
}
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import FieldStyles from "../styles/FieldStyles.wrn"
|
||||
|
||||
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
|
||||
|
||||
component Textarea {
|
||||
outputs {
|
||||
input(payload: { value?: string | number | boolean | null; values?: Array<string | number | boolean | null | object>; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null)
|
||||
@@ -56,12 +52,569 @@ size: string = "default"
|
||||
{#if helperText}<small id="{(id || name) + '-help'}" class="wire-next__field-help">{helperText}</small>{/if}
|
||||
<small id="{(id || name) + '-error'}" class="wire-next__field-error" data-error="{name}">{error}</small>
|
||||
</div>
|
||||
<FieldStyles hidden />
|
||||
<ComponentBaseStyles hidden />
|
||||
}
|
||||
|
||||
style {
|
||||
.wire-next--textarea { width: 100%; min-width: 0; }
|
||||
.wire-next--textarea[data-invalid="true"] { --wire-component-color: var(--wire-color-danger); }
|
||||
|
||||
/* Shared component foundation. */
|
||||
|
||||
.wire-component {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
--wire-component-scale: 1;
|
||||
margin: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-family: var(--wrn-font-sans, inherit);
|
||||
}
|
||||
|
||||
.wire-component--color-primary {
|
||||
--wire-component-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-component--color-secondary {
|
||||
--wire-component-color: var(--wire-color-secondary);
|
||||
}
|
||||
|
||||
.wire-component--color-success {
|
||||
--wire-component-color: var(--wire-color-success);
|
||||
}
|
||||
|
||||
.wire-component--color-warning {
|
||||
--wire-component-color: var(--wire-color-warning);
|
||||
}
|
||||
|
||||
.wire-component--color-danger {
|
||||
--wire-component-color: var(--wire-color-danger);
|
||||
}
|
||||
|
||||
.wire-component--color-info {
|
||||
--wire-component-color: var(--wire-color-info);
|
||||
}
|
||||
|
||||
.wire-component--size-xs {
|
||||
--wire-component-scale: 0.78;
|
||||
}
|
||||
|
||||
.wire-component--size-sm {
|
||||
--wire-component-scale: 0.88;
|
||||
}
|
||||
|
||||
.wire-component--size-default,
|
||||
.wire-component--size-md {
|
||||
--wire-component-scale: 1;
|
||||
}
|
||||
|
||||
.wire-component--size-lg {
|
||||
--wire-component-scale: 1.14;
|
||||
}
|
||||
|
||||
.wire-component--size-xl {
|
||||
--wire-component-scale: 1.28;
|
||||
}
|
||||
|
||||
.wire-component:not(.wire-btn) {
|
||||
font-size: calc(1em * var(--wire-component-scale));
|
||||
}
|
||||
|
||||
.wire-component :is(a, button, input, select, textarea):focus-visible {
|
||||
outline-color: var(--wire-component-color);
|
||||
}
|
||||
|
||||
.wire-component p {
|
||||
margin: 0;
|
||||
color: var(--wire-color-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Shared field foundation. */
|
||||
|
||||
/* Validation states set by the browser validation runtime. */
|
||||
.wire-invalid {
|
||||
border-color: var(--wire-color-danger) !important;
|
||||
}
|
||||
|
||||
.wire-field-error {
|
||||
display: block;
|
||||
min-height: 1em;
|
||||
margin-top: 0.25rem;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.wire-next--choice {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wire-next--choice input {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
accent-color: var(--wire-color-primary);
|
||||
}
|
||||
|
||||
.wire-next--field {
|
||||
display: grid;
|
||||
width: min(100%, 28rem);
|
||||
gap: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select) {
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: 0.6rem;
|
||||
outline: 0;
|
||||
color: var(--wire-color-text);
|
||||
background: var(--wire-color-bg);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-auth-form form > .wire-next--field,
|
||||
.wire-auth-form form > .wire-field {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
.wire-auth-form__submit > .wire-btn {
|
||||
width: 100%;
|
||||
min-height: 3rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--wire-btn-color) 20%, transparent);
|
||||
}
|
||||
.wire-next--field :where(input, textarea, select):focus-visible {
|
||||
border-color: var(--wire-color-primary);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-primary) 16%, transparent);
|
||||
}
|
||||
.wire-next--field textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
.wire-next--field,
|
||||
.wire-next--choice-field {
|
||||
--wire-field-color: var(--wire-component-color, var(--wire-color-primary));
|
||||
width: min(100%, 34rem);
|
||||
min-width: 0;
|
||||
color: var(--wire-color-text);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next--field.wire-next--size-sm,
|
||||
.wire-next--choice-field.wire-next--size-sm {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next--field.wire-next--size-lg,
|
||||
.wire-next--choice-field.wire-next--size-lg {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.wire-next__field-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.wire-next__field-heading label {
|
||||
color: var(--wire-color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-hint,
|
||||
.wire-next__field-help {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.82em;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__field-control {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-inline: 0.85rem;
|
||||
border-color: var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="start"] > :is(input, textarea, select) {
|
||||
padding-inline-start: 2.5rem;
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > :is(input, textarea, select) {
|
||||
padding-inline-end: 2.5rem;
|
||||
}
|
||||
.wire-next__field-icon {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.wire-next__field-control[data-icon-position="end"] > .wire-next__field-icon {
|
||||
right: 0.85rem;
|
||||
left: auto;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea, select) {
|
||||
padding-inline: 0;
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"] .wire-next__field-control > :is(input, select) {
|
||||
border-radius: 999px;
|
||||
padding-inline: 1.15rem;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__field-floating-label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0.85rem;
|
||||
color: var(--wire-color-muted);
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
transition: 150ms ease;
|
||||
}
|
||||
.wire-next--textarea .wire-next__field-floating-label {
|
||||
top: 1.35rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-control > :is(input, textarea, select) {
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.wire-next--field[data-floating="true"] .wire-next__field-heading > label {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-heading:not(:has(.wire-next__field-hint)) {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-floating="true"]
|
||||
.wire-next__field-control
|
||||
> :is(input, textarea):is(:focus, :not(:placeholder-shown))
|
||||
+ .wire-next__field-floating-label {
|
||||
top: 0.42rem;
|
||||
font-size: 0.7em;
|
||||
transform: none;
|
||||
}
|
||||
.wire-next__field-error {
|
||||
min-height: 1em;
|
||||
color: var(--wire-color-danger);
|
||||
font-size: 0.82em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.wire-next__field-error:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-invalid="true"] :is(input, textarea, select),
|
||||
.wire-next--choice-field[data-invalid="true"] input {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):disabled,
|
||||
.wire-next--choice-field input:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.58;
|
||||
}
|
||||
.wire-next--field :is(input, textarea, select):read-only {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading {
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-heading {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-help,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-help {
|
||||
display: flex;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: minmax(12rem, 20rem) minmax(10rem, 1fr);
|
||||
}
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-heading:empty {
|
||||
display: none;
|
||||
}
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: 2 / -1;
|
||||
}
|
||||
.wire-next__sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
margin: -1px !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.wire-next__choice-field {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.wire-next__choice {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
color: var(--wire-color-text);
|
||||
width: 100%;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__checkbox-content > .wire-next__choice {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.wire-next__choice input {
|
||||
flex: 0 0 auto;
|
||||
margin: 0;
|
||||
accent-color: var(--wire-field-color);
|
||||
}
|
||||
.wire-next__choice-copy {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.15rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.wire-next__choice-copy small {
|
||||
color: var(--wire-color-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
.wire-next__radio-group,
|
||||
.wire-next__checkbox-group {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next--radio-field[data-orientation="horizontal"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-orientation="horizontal"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
|
||||
align-items: stretch;
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next__radio-group,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next__checkbox-group {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox {
|
||||
min-height: 4.5rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
}
|
||||
.wire-next--radio-field[data-card="true"] .wire-next--radio:has(input:checked),
|
||||
.wire-next--checkbox-field[data-card="true"] .wire-next--checkbox:has(input:checked) {
|
||||
border-color: var(--wire-field-color);
|
||||
box-shadow: 0 0 0 1px var(--wire-field-color);
|
||||
}
|
||||
.wire-next--radio-field[data-list="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-list="true"] .wire-next--checkbox {
|
||||
padding-block: 0.75rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next--radio input,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next--checkbox input {
|
||||
order: 2;
|
||||
}
|
||||
.wire-next--radio-field[data-right-aligned="true"] .wire-next__choice-copy,
|
||||
.wire-next--checkbox-field[data-right-aligned="true"] .wire-next__choice-copy {
|
||||
order: 1;
|
||||
}
|
||||
.wire-next__choice[data-variant="outlined"],
|
||||
.wire-next__choice[data-variant="floating"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
}
|
||||
.wire-next__choice[data-variant="pill"] {
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 9%, var(--wire-color-surface));
|
||||
}
|
||||
.wire-next__choice[data-variant="ghost"] {
|
||||
padding: 0.65rem 0.8rem;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: color-mix(in srgb, var(--wire-field-color) 7%, transparent);
|
||||
}
|
||||
.wire-next__choice[data-variant="underline"] {
|
||||
padding-block: 0.5rem;
|
||||
border-bottom: 1px solid var(--wire-color-border);
|
||||
}
|
||||
.wire-next--select .wire-next__field-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__color-control,
|
||||
.wire-next__range-control,
|
||||
.wire-next__input-group-control,
|
||||
.wire-next__file-control {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wire-next__picker-control,
|
||||
.wire-next--time-picker .wire-next__field-control {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.wire-next__picker-control > button:first-of-type,
|
||||
.wire-next__time-trigger {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-height: 2.65rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.7rem 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: var(--wire-color-surface);
|
||||
color: var(--wire-color-text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
}
|
||||
.wire-next__calendar,
|
||||
.wire-next__time-panel {
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
width: min(100%, 22rem);
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem;
|
||||
border: 1px solid var(--wire-color-border);
|
||||
border-radius: var(--wire-radius-md);
|
||||
background: var(--wire-color-surface);
|
||||
box-shadow: var(--wire-shadow-3);
|
||||
}
|
||||
.wire-next--date-picker[data-expanded="false"] .wire-next__calendar,
|
||||
.wire-next--time-picker[data-expanded="false"] .wire-next__time-panel {
|
||||
display: none;
|
||||
}
|
||||
.wire-next__calendar button,
|
||||
.wire-next__time-panel button {
|
||||
min-height: 2.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--wire-radius-sm);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
.wire-next__calendar-weekdays,
|
||||
.wire-next__calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
.wire-next__calendar-weekdays {
|
||||
color: var(--wire-color-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.wire-next__calendar-grid button:hover,
|
||||
.wire-next__time-panel button:hover {
|
||||
background: var(--wire-color-surface-2);
|
||||
}
|
||||
.wire-next__calendar-grid button[aria-pressed="true"],
|
||||
.wire-next__time-panel button[aria-pressed="true"] {
|
||||
background: var(--wire-field-color);
|
||||
color: var(--wire-color-primary-contrast, #fff);
|
||||
}
|
||||
.wire-next__time-period {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row,
|
||||
.wire-next__upload-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.wire-next--file-upload-progress .wire-next__row > span {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
.wire-next--field[data-variant="underline"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-width: 0 0 1px;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.wire-next--field[data-variant="outlined"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-width: 2px;
|
||||
}
|
||||
.wire-next--field[data-variant="pill"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
.wire-next--field[data-variant="ghost"]
|
||||
:is(.wire-next__input-group-control, .wire-next__file-control, .wire-next__color-control) {
|
||||
border-color: transparent;
|
||||
background: color-mix(in srgb, var(--wire-field-color) 8%, var(--wire-color-surface));
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.wire-next--field[data-inline="true"],
|
||||
.wire-next--choice-field[data-inline="true"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.wire-next--field[data-inline="true"] .wire-next__field-error,
|
||||
.wire-next--choice-field[data-inline="true"] .wire-next__field-error {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
.wire-next--toggle-password:has(input.wire-invalid) .wire-next__password-control > input,
|
||||
.wire-next--toggle-password.wire-next--invalid .wire-next__password-control > input {
|
||||
border-color: var(--wire-color-danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--wire-color-danger) 14%, transparent);
|
||||
}
|
||||
.wire-next--strong-password.wire-next--invalid input,
|
||||
.wire-next--strong-password input.wire-invalid {
|
||||
border-color: var(--wire-color-danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user