@jonmilner/ui 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ColorField/client.mjs +2 -1
- package/dist/Combobox/Combobox.css +1 -1
- package/dist/Combobox/client.mjs +5 -1
- package/dist/Heading/index.d.mts +1 -1
- package/dist/NavList/NavList.css +1 -1
- package/dist/NavList/index.mjs +11 -2
- package/dist/RadioGroup/RadioGroup.css +1 -1
- package/dist/RadioGroup/index.mjs +1 -0
- package/dist/Sidebar/Sidebar.css +1 -1
- package/dist/Sidebar/index.mjs +10 -3
- package/dist/Switch/Switch.css +1 -1
- package/dist/Switch/index.mjs +7 -1
- package/dist/Toast/Toast.css +1 -1
- package/dist/Toast/client.mjs +8 -5
- package/dist/docs/Heading.md +3 -3
- package/dist/docs/manifest.json +3 -2
- package/dist/popup/listbox-base.mjs +3 -2
- package/package.json +1 -1
|
@@ -17,8 +17,9 @@ function p({ value: d, defaultValue: p, onValueChange: m, placeholder: h, size:
|
|
|
17
17
|
alignItems: "center",
|
|
18
18
|
display: "grid",
|
|
19
19
|
children: [
|
|
20
|
-
/* @__PURE__ */ c(
|
|
20
|
+
/* @__PURE__ */ c(e, {
|
|
21
21
|
"aria-label": b,
|
|
22
|
+
as: "input",
|
|
22
23
|
className: o({ size: g }),
|
|
23
24
|
disabled: _,
|
|
24
25
|
onChange: (e) => O(e.currentTarget.value),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.flex, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.alert, components.avatar, components.badge, components.body, components.button, components.caption, components.chip, components.code, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.label, components.menu, components.multiselect, components.number-field, components.popover, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.nav-list, components.table;
|
|
2
|
-
@layer components.combobox{.y6b2yi0{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}.y6b2yi1{text-align:start;border-color:var(--color-border-strong);justify-content:stretch}.y6b2yi1[aria-invalid=true]{border-color:var(--color-danger)}.y6b2yi1[aria-invalid=true]:not(:focus-visible){outline:var(--space-1) solid var(--color-danger);outline-offset:calc(-1 * var(--space-2))}:where(.y6b2yi1) ._1gwwloa0{flex:auto;justify-items:stretch;min-inline-size:0}:where(.y6b2yi1) ._1gwwloa1{min-inline-size:0}:where(.y6b2yi1) ._1gwwloa2{flex:auto;min-inline-size:0}.y6b2yi2{min-inline-size:0;display:block}.y6b2yi2[data-placeholder]{color:var(--color-fg-muted)}.y6b2yi3{min-inline-size:0;display:grid}.y6b2yi4{grid-area:1/1}.y6b2yi4[aria-hidden=true]{visibility:hidden}.y6b2yi5{grid-area:1/1}.y6b2yi6{border:var(--space-1) solid var(--color-border);min-inline-size:min(var(--anchor-width), var(--available-width));max-inline-size:var(--available-width);max-block-size:var(--available-height);transform-origin:var(--transform-origin);transition:opacity var(--duration-fast) var(--easing-standard), scale var(--duration-fast) var(--easing-enter);
|
|
2
|
+
@layer components.combobox{.y6b2yi0{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}.y6b2yi1{text-align:start;border-color:var(--color-border-strong);justify-content:stretch}.y6b2yi1[aria-invalid=true]{border-color:var(--color-danger)}.y6b2yi1[aria-invalid=true]:not(:focus-visible){outline:var(--space-1) solid var(--color-danger);outline-offset:calc(-1 * var(--space-2))}:where(.y6b2yi1) ._1gwwloa0{flex:auto;justify-items:stretch;min-inline-size:0}:where(.y6b2yi1) ._1gwwloa1{min-inline-size:0}:where(.y6b2yi1) ._1gwwloa2{flex:auto;min-inline-size:0}.y6b2yi2{min-inline-size:0;display:block}.y6b2yi2[data-placeholder]{color:var(--color-fg-muted)}.y6b2yi3{min-inline-size:0;display:grid}.y6b2yi4{grid-area:1/1}.y6b2yi4[aria-hidden=true]{visibility:hidden}.y6b2yi5{grid-area:1/1}.y6b2yi6{border:var(--space-1) solid var(--color-border);min-inline-size:min(var(--anchor-width), var(--available-width));max-inline-size:var(--available-width);max-block-size:var(--available-height);transform-origin:var(--transform-origin);transition:opacity var(--duration-fast) var(--easing-standard), scale var(--duration-fast) var(--easing-enter);overflow:hidden}.y6b2yi6:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}.y6b2yi6[data-starting-style],.y6b2yi6[data-ending-style]{opacity:0;scale:calc(1 - var(--scale-med))}.y6b2yi7{appearance:none;border-width:var(--space-1);border-style:solid;border-color:var(--color-border-strong);border-radius:var(--radius-xs);background-color:var(--color-bg);inline-size:100%;min-inline-size:0;color:var(--color-fg);padding-block:0}.y6b2yi7::placeholder{color:var(--color-fg-muted);opacity:1}.y6b2yi7:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}.y6b2yi7:disabled{background-color:var(--color-bg-muted);color:var(--color-fg-muted);cursor:not-allowed;border-style:dashed}.y6b2yi7[aria-invalid=true]{border-color:var(--color-danger)}.y6b2yi7[aria-invalid=true]:not(:focus-visible){outline:var(--space-1) solid var(--color-danger);outline-offset:calc(-1 * var(--space-2))}.y6b2yi8{block-size:var(--size-xs);padding-inline:var(--space-6)}.y6b2yi9{block-size:var(--size-sm);padding-inline:var(--space-8)}.y6b2yia{block-size:var(--size-med);padding-inline:var(--space-12)}.y6b2yib:empty{position:absolute}.y6b2yib:not(:empty){padding-block:var(--space-8);padding-inline:var(--space-12)}.y6b2yic{min-block-size:0;overflow-y:auto}.y6b2yid{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;overflow-wrap:anywhere;-webkit-user-select:none;user-select:none}.y6b2yid:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:calc(-1 * var(--space-2))}.y6b2yid[data-highlighted]{background-color:light-dark(var(--color-bg-muted),color-mix(in srgb, var(--color-fg) 10%, var(--color-bg-raised)))}.y6b2yid[aria-disabled=true]{color:var(--color-fg-muted);cursor:not-allowed}.y6b2yie{visibility:hidden;flex-shrink:0}.y6b2yid[aria-selected=true] .y6b2yie{visibility:visible}@media (pointer:coarse){.y6b2yi7{font-size:var(--font-size-med)}}@media (forced-colors:active){.y6b2yi1{--color-fg:CanvasText}.y6b2yi1[aria-disabled=true]{border-color:graytext}.y6b2yi7:disabled{color:graytext;border-color:graytext}.y6b2yid[data-highlighted]{forced-color-adjust:none;color:highlighttext;background-color:highlight}.y6b2yid[data-highlighted]:focus-visible{color:canvastext;background-color:canvas}.y6b2yid[aria-disabled=true]{color:graytext}}@supports (text-box:trim-both cap alphabetic){.y6b2yi4,.y6b2yi5{text-box-trim:trim-both}.y6b2yi7{text-box-trim:none}}}
|
package/dist/Combobox/client.mjs
CHANGED
|
@@ -99,7 +99,11 @@ function N({ children: e }) {
|
|
|
99
99
|
function P({ children: e }) {
|
|
100
100
|
return /* @__PURE__ */ T(D.Popup, {
|
|
101
101
|
"aria-labelledby": c(),
|
|
102
|
-
render: a(_
|
|
102
|
+
render: a(_, {
|
|
103
|
+
display: "flex",
|
|
104
|
+
flexDirection: "column",
|
|
105
|
+
gap: "4"
|
|
106
|
+
}),
|
|
103
107
|
children: e
|
|
104
108
|
});
|
|
105
109
|
}
|
package/dist/Heading/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TextProps } from "../Text/index.mjs";
|
|
2
2
|
export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
3
|
-
export type HeadingSize = "sm" | "med" | "lg" | "xl" | "2xl";
|
|
3
|
+
export type HeadingSize = "sm" | "med" | "lg" | "xl" | "2xl" | "3xl";
|
|
4
4
|
export type HeadingProps<T extends HeadingLevel = "h2"> = Omit<TextProps<T>, "size"> & {
|
|
5
5
|
size?: HeadingSize;
|
|
6
6
|
};
|
package/dist/NavList/NavList.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.flex, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.alert, components.avatar, components.badge, components.body, components.button, components.caption, components.chip, components.code, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.label, components.menu, components.multiselect, components.number-field, components.popover, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.nav-list, components.table;
|
|
2
|
-
@layer components.nav-list{._1kvngp01{padding-inline-start:0;list-style:none}._1kvngp02:not(:first-child),:where(._1kvngp02)+._1kvngp03{padding-block-start:var(--space-16)}._1kvngp04{grid-template-columns:minmax(0, 1fr) auto var(--space-4);display:grid}._1kvngp06{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;grid-area:1/1/2/-1}._1kvngp06:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._1kvngp07{overflow-wrap:anywhere;min-inline-size:0}._1kvngp04:focus-within ._1kvngp08,._1kvngp04:has([aria-expanded=true]) ._1kvngp08{opacity:0}._1kvngp09{min-inline-size:calc(var(--size-xs) - var(--space-4));
|
|
2
|
+
@layer components.nav-list{._1kvngp01{padding-inline-start:0;list-style:none}._1kvngp02:not(:first-child),:where(._1kvngp02)+._1kvngp03{padding-block-start:var(--space-16)}._1kvngp04{grid-template-columns:minmax(0, 1fr) auto var(--space-4);display:grid}._1kvngp06{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;grid-area:1/1/2/-1}._1kvngp06:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._1kvngp07{overflow-wrap:anywhere;min-inline-size:0}._1kvngp04:focus-within ._1kvngp08,._1kvngp04:has([aria-expanded=true]) ._1kvngp08{opacity:0}._1kvngp09{min-inline-size:calc(var(--size-xs) - var(--space-4));justify-content:flex-end}._1kvngp0a{opacity:0;grid-area:1/2;align-self:center;position:relative}._1kvngp04:focus-within ._1kvngp0a,._1kvngp04:has([aria-expanded=true]) ._1kvngp0a{opacity:1}:where(._1kvngp0a)>*{border-radius:var(--radius-xs)}._1kvngp0b{position:relative}._1kvngp0c{inline-size:var(--space-6);block-size:var(--space-6);pointer-events:none;box-shadow:0 0 0 calc(var(--space-2) + var(--space-1)) color-mix(in oklch, var(--color-success) 18%, transparent)}._1kvngp0d{inline-size:var(--space-6);block-size:var(--space-6);pointer-events:none;box-shadow:0 0 0 var(--space-2) var(--color-bg-panel);display:none;position:absolute;inset-block-start:calc(var(--space-6) / -2);inset-inline-end:calc(var(--space-6) / -2)}@container _1n4s23v1 (inline-size>=0){._1kvngp05{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._1kvngp06{--_1kvngp00:1;inline-size:var(--size-med);block-size:var(--size-med);padding-inline:var(--space-8);border-radius:var(--radius-xs);justify-content:center}._1kvngp07,._1kvngp08,._1kvngp09{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._1kvngp0a,._1kvngp0c{display:none}._1kvngp0d{display:block}}@media (hover:hover){._1kvngp06:not([aria-current=page]):hover,._1kvngp04:hover>._1kvngp06:not([aria-current=page]){background-image:linear-gradient(color-mix(in srgb, var(--color-fg) 15%, transparent), color-mix(in srgb, var(--color-fg) 15%, transparent))}._1kvngp04:hover ._1kvngp08{opacity:0}._1kvngp04:hover ._1kvngp0a{opacity:1}}@media (forced-colors:active){._1kvngp06:not([aria-current=page]):hover,._1kvngp04:hover>._1kvngp06:not([aria-current=page]){background-image:none}._1kvngp06[aria-current=page]{color:highlighttext;background-color:highlight}:where([aria-current=page]) ._1kvngp07{forced-color-adjust:none}._1kvngp0c{forced-color-adjust:none;box-shadow:none;background-color:currentColor}._1kvngp0d{forced-color-adjust:none;box-shadow:0 0 0 var(--space-2) Canvas;background-color:currentColor}}@media (hover:none),(pointer:coarse){._1kvngp04 ._1kvngp08{opacity:0}._1kvngp0a{opacity:1}}}@layer reset{._1kvngp06{color:inherit;text-decoration:none}}
|
package/dist/NavList/index.mjs
CHANGED
|
@@ -82,6 +82,8 @@ function E({ as: u, current: d = !1, icon: h, avatar: x, action: C, count: w, li
|
|
|
82
82
|
flexShrink: 0,
|
|
83
83
|
children: [h ? /* @__PURE__ */ y(h, { size: "sm" }) : x, T ? /* @__PURE__ */ y(t, {
|
|
84
84
|
as: "span",
|
|
85
|
+
backgroundColor: "success",
|
|
86
|
+
borderRadius: "full",
|
|
85
87
|
className: s
|
|
86
88
|
}) : null]
|
|
87
89
|
}) : null,
|
|
@@ -96,16 +98,22 @@ function E({ as: u, current: d = !1, icon: h, avatar: x, action: C, count: w, li
|
|
|
96
98
|
T ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(t, {
|
|
97
99
|
"aria-hidden": !0,
|
|
98
100
|
as: "span",
|
|
99
|
-
|
|
101
|
+
backgroundColor: "success",
|
|
102
|
+
borderRadius: "full",
|
|
103
|
+
className: g,
|
|
104
|
+
flexShrink: 0
|
|
100
105
|
}), /* @__PURE__ */ y(i, { children: ` ${E}` })] }) : null,
|
|
101
106
|
H ? /* @__PURE__ */ y(t, {
|
|
102
107
|
as: "span",
|
|
103
108
|
className: _,
|
|
109
|
+
display: "flex",
|
|
110
|
+
flexShrink: 0,
|
|
104
111
|
children: U
|
|
105
112
|
}) : U
|
|
106
113
|
]
|
|
107
114
|
});
|
|
108
|
-
return /* @__PURE__ */ b(
|
|
115
|
+
return /* @__PURE__ */ b(t, {
|
|
116
|
+
as: "li",
|
|
109
117
|
className: n(l, H && "_1kvngp04"),
|
|
110
118
|
children: [/* @__PURE__ */ y(a, {
|
|
111
119
|
link: W,
|
|
@@ -128,6 +136,7 @@ function E({ as: u, current: d = !1, icon: h, avatar: x, action: C, count: w, li
|
|
|
128
136
|
}), H ? /* @__PURE__ */ y(t, {
|
|
129
137
|
as: "span",
|
|
130
138
|
className: o,
|
|
139
|
+
display: "flex",
|
|
131
140
|
children: C
|
|
132
141
|
}) : null]
|
|
133
142
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.flex, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.alert, components.avatar, components.badge, components.body, components.button, components.caption, components.chip, components.code, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.label, components.menu, components.multiselect, components.number-field, components.popover, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.nav-list, components.table;
|
|
2
|
-
@layer components.radio-group{._15rnw5c0[data-disabled]{color:var(--color-fg-muted)}._15rnw5c1{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}.
|
|
2
|
+
@layer components.radio-group{._15rnw5c0[data-disabled]{color:var(--color-fg-muted)}._15rnw5c1{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._15rnw5c3{row-gap:var(--space-8);flex-direction:column}._15rnw5c4{column-gap:var(--space-16);row-gap:var(--space-8);flex-flow:wrap}._15rnw5c5{align-items:center;column-gap:var(--space-8);grid-template-columns:auto 1fr;display:grid}._15rnw5c6{grid-column-start:2}._15rnw5c7{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}._15rnw5c7:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._15rnw5c7[aria-disabled=true]{cursor:not-allowed}._15rnw5c8{inline-size:var(--space-16);block-size:var(--space-16);border:var(--space-1) solid var(--color-border-strong);border-radius:var(--radius-full);background-color:var(--color-bg);color:var(--color-accent);forced-color-adjust:none;place-items:center;display:grid}._15rnw5c7:not([aria-checked=true],[aria-invalid=true],[aria-disabled=true]):hover ._15rnw5c8{border-color:var(--color-fg)}._15rnw5c7[aria-checked=true] ._15rnw5c8{border-color:var(--color-accent)}._15rnw5c7[aria-disabled=true] ._15rnw5c8{border-style:dashed;border-color:var(--color-border-strong);background-color:var(--color-bg-muted);color:var(--color-fg-muted)}._15rnw5c7[aria-invalid=true] ._15rnw5c8{border-width:var(--space-2);border-color:var(--color-danger)}._15rnw5c9{inline-size:var(--space-8);block-size:var(--space-8);border-radius:var(--radius-full);opacity:0;scale:calc(1 - var(--scale-lg));transition-property:opacity,scale;transition-duration:var(--duration-fast);transition-timing-function:var(--easing-standard);background-color:currentColor}._15rnw5c7[aria-checked=true] ._15rnw5c9{opacity:1;scale:1}}
|
|
@@ -48,6 +48,7 @@ function y({ options: y, value: b, defaultValue: x, onValueChange: S, label: C,
|
|
|
48
48
|
children: C
|
|
49
49
|
}), /* @__PURE__ */ f(e, {
|
|
50
50
|
className: u({ orientation: D }),
|
|
51
|
+
display: "flex",
|
|
51
52
|
children: y.map((r) => /* @__PURE__ */ p(m.Item, {
|
|
52
53
|
disabled: r.disabled,
|
|
53
54
|
render: /* @__PURE__ */ f(e, { className: s }),
|
package/dist/Sidebar/Sidebar.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.flex, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.alert, components.avatar, components.badge, components.body, components.button, components.caption, components.chip, components.code, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.label, components.menu, components.multiselect, components.number-field, components.popover, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.nav-list, components.table;
|
|
2
|
-
@layer components.sidebar{._1mbot450{inline-size:var(--container-sidebar);border-inline-end:var(--space-1) solid var(--color-border)}._1mbot450[data-rail]{inline-size:var(--container-rail);container:_1n4s23v1/inline-size}._1mbot451{
|
|
2
|
+
@layer components.sidebar{._1mbot450{inline-size:var(--container-sidebar);border-inline-end:var(--space-1) solid var(--color-border)}._1mbot450[data-rail]{inline-size:var(--container-rail);container:_1n4s23v1/inline-size}._1mbot451{padding-block:var(--space-16);padding-inline:var(--space-12)}._1mbot452{flex-shrink:0;margin-inline-start:auto}._1mbot453{scale:var(--dir) 1}._1mbot454{padding-block-end:var(--space-12);padding-inline:var(--space-12)}._1mbot455{padding-block:var(--space-12);padding-inline:var(--space-12);border-block-start:var(--space-1) solid var(--color-border)}@container _1n4s23v0 (inline-size>=48em){._1mbot450{min-block-size:100dvh}}@container _1n4s23v0 (inline-size<48em){._1mbot450{border-inline-end:none;border-block-end:var(--space-1) solid var(--color-border)}._1mbot450,._1mbot450[data-rail]{inline-size:auto;container:none}}@container _1n4s23v1 (inline-size>=0){._1mbot451{flex-direction:column;padding-inline-start:var(--space-8);padding-inline-end:calc(var(--space-8) - var(--space-1))}._1mbot452{margin-inline-start:0}._1mbot454{padding-inline-start:var(--space-8);padding-inline-end:calc(var(--space-8) - var(--space-1))}._1mbot455{flex-direction:column;padding-inline-start:var(--space-8);padding-inline-end:calc(var(--space-8) - var(--space-1))}}}
|
package/dist/Sidebar/index.mjs
CHANGED
|
@@ -37,16 +37,23 @@ function g({ collapsed: n = !1, onCollapsedChange: r, header: u, footer: g, togg
|
|
|
37
37
|
className: i(c, x),
|
|
38
38
|
"data-rail": n ? "" : void 0,
|
|
39
39
|
children: [
|
|
40
|
-
h(u) || w ? /* @__PURE__ */ f(
|
|
40
|
+
h(u) || w ? /* @__PURE__ */ f(e, {
|
|
41
|
+
alignItems: "center",
|
|
41
42
|
className: s,
|
|
43
|
+
display: "flex",
|
|
44
|
+
gap: "8",
|
|
42
45
|
children: [u, w]
|
|
43
46
|
}) : null,
|
|
44
|
-
/* @__PURE__ */ d(
|
|
47
|
+
/* @__PURE__ */ d(e, {
|
|
45
48
|
className: a,
|
|
49
|
+
flexGrow: 1,
|
|
46
50
|
children: S
|
|
47
51
|
}),
|
|
48
|
-
h(g) ? /* @__PURE__ */ d(
|
|
52
|
+
h(g) ? /* @__PURE__ */ d(e, {
|
|
53
|
+
alignItems: "center",
|
|
49
54
|
className: o,
|
|
55
|
+
display: "flex",
|
|
56
|
+
gap: "8",
|
|
50
57
|
children: g
|
|
51
58
|
}) : null
|
|
52
59
|
]
|
package/dist/Switch/Switch.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.flex, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.alert, components.avatar, components.badge, components.body, components.button, components.caption, components.chip, components.code, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.label, components.menu, components.multiselect, components.number-field, components.popover, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.nav-list, components.table;
|
|
2
|
-
@layer components.switch{.njq9m03{--njq9m00:var(--space-12);--njq9m01:var(--space-1);--njq9m02:calc(var(--distance-sm) + var(--distance-med))}.njq9m04{--njq9m00:var(--space-16);--njq9m01:var(--space-2);--njq9m02:var(--distance-lg)}.njq9m05{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}.njq9m06{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;min-inline-size:var(--size-xs);min-block-size:var(--size-xs);border-radius:var(--radius-full)
|
|
2
|
+
@layer components.switch{.njq9m03{--njq9m00:var(--space-12);--njq9m01:var(--space-1);--njq9m02:calc(var(--distance-sm) + var(--distance-med))}.njq9m04{--njq9m00:var(--space-16);--njq9m01:var(--space-2);--njq9m02:var(--distance-lg)}.njq9m05{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}.njq9m06{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;min-inline-size:var(--size-xs);min-block-size:var(--size-xs);border-radius:var(--radius-full)}.njq9m06:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}.njq9m06[aria-disabled=true]{cursor:not-allowed}.njq9m06[aria-readonly=true]{cursor:default}.njq9m06[aria-busy=true]{cursor:progress}.njq9m07{grid-template-columns:repeat(2, var(--njq9m00));padding:var(--njq9m01);border:var(--space-1) solid var(--color-border-strong);border-radius:var(--radius-full);background-color:var(--color-bg);forced-color-adjust:none;align-items:center;display:grid}.njq9m06:not([aria-checked=true],[aria-invalid=true],[aria-disabled=true],[aria-readonly=true]):hover .njq9m07{border-color:var(--color-fg)}.njq9m06[aria-checked=true] .njq9m07{background-color:var(--color-accent);border-color:var(--color-accent)}.njq9m06[aria-readonly=true]:not([aria-busy=true]) .njq9m07{background-clip:padding-box;border-style:dotted}.njq9m06[aria-busy=true] .njq9m07{opacity:.5}.njq9m06[aria-disabled=true] .njq9m07{border-style:dashed;border-color:var(--color-border-strong);background-clip:border-box;background-color:var(--color-bg-muted)}.njq9m06[aria-invalid=true] .njq9m07{padding:calc(var(--njq9m01) - var(--space-1));border-width:var(--space-2);border-color:var(--color-danger)}.njq9m08{inline-size:var(--njq9m00);block-size:var(--njq9m00);transition:opacity var(--duration-med) var(--easing-standard), translate var(--duration-med) var(--easing-standard);background-color:var(--color-fg-muted);grid-area:1/1/auto/-1;justify-self:start}.njq9m06[aria-checked=true] .njq9m08{opacity:0;translate:calc(var(--dir) * var(--njq9m02))}.njq9m09{inline-size:var(--njq9m00);block-size:var(--njq9m00);transition:opacity var(--duration-med) var(--easing-standard), translate var(--duration-med) var(--easing-standard);background-color:var(--color-accent-fg);opacity:0;translate:calc(-1 * var(--dir) * var(--njq9m02));grid-area:1/1/auto/-1;justify-self:end}.njq9m06[aria-checked=true] .njq9m09{opacity:1;translate:0}.njq9m06[aria-disabled=true] .njq9m09{background-color:var(--color-fg-muted)}}
|
package/dist/Switch/index.mjs
CHANGED
|
@@ -29,8 +29,12 @@ function f({ label: f, hideLabel: p = !1, "aria-label": m, checked: h, defaultCh
|
|
|
29
29
|
onCheckedChange: _ && ((e) => _(e)),
|
|
30
30
|
readOnly: w || j,
|
|
31
31
|
render: /* @__PURE__ */ l(e, {
|
|
32
|
+
alignItems: "center",
|
|
32
33
|
as: "span",
|
|
33
|
-
className: r(o, s[D])
|
|
34
|
+
className: r(o, s[D]),
|
|
35
|
+
display: "inline-flex",
|
|
36
|
+
flexShrink: 0,
|
|
37
|
+
justifyContent: "center"
|
|
34
38
|
}),
|
|
35
39
|
required: T,
|
|
36
40
|
uncheckedValue: S,
|
|
@@ -41,10 +45,12 @@ function f({ label: f, hideLabel: p = !1, "aria-label": m, checked: h, defaultCh
|
|
|
41
45
|
children: [/* @__PURE__ */ l(e, {
|
|
42
46
|
"aria-hidden": "true",
|
|
43
47
|
as: "span",
|
|
48
|
+
borderRadius: "full",
|
|
44
49
|
className: i
|
|
45
50
|
}), /* @__PURE__ */ l(e, {
|
|
46
51
|
"aria-hidden": "true",
|
|
47
52
|
as: "span",
|
|
53
|
+
borderRadius: "full",
|
|
48
54
|
className: a
|
|
49
55
|
})]
|
|
50
56
|
})
|
package/dist/Toast/Toast.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.flex, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.alert, components.avatar, components.badge, components.body, components.button, components.caption, components.chip, components.code, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.label, components.menu, components.multiselect, components.number-field, components.popover, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.nav-list, components.table;
|
|
2
|
-
@layer components.toast{.hcnvsc0{inline-size:min(100% - 2 * var(--space-16), 6 * var(--space-64));inset-block-end:var(--space-16);inset-inline-end:var(--space-16);container:_1ed90zt0/inline-size}.hcnvsc0:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}.hcnvsc1{
|
|
2
|
+
@layer components.toast{.hcnvsc0{inline-size:min(100% - 2 * var(--space-16), 6 * var(--space-64));inset-block-end:var(--space-16);inset-inline-end:var(--space-16);container:_1ed90zt0/inline-size}.hcnvsc0:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}.hcnvsc1{margin:calc(-1 * var(--space-16));padding:var(--space-16);overscroll-behavior:contain;max-block-size:100dvh;margin-inline-start:calc(-1 * var(--space-24));padding-inline-start:var(--space-24);overflow:hidden auto}.hcnvsc1:empty{padding:0}.hcnvsc1:has([data-swiping],[data-swipe-direction=down]){overflow-y:hidden}.hcnvsc2{transform:translate(var(--toast-swipe-movement-x,0), var(--toast-swipe-movement-y,0));transition:opacity var(--duration-med) var(--easing-standard), translate var(--duration-med) var(--easing-enter), transform var(--duration-med) var(--easing-enter)}.hcnvsc2:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}.hcnvsc2[data-starting-style],.hcnvsc2[data-ending-style]{opacity:0;translate:0 var(--distance-med)}.hcnvsc2[data-swiping]{transition:none}.hcnvsc2[data-limited]{display:none}.hcnvsc8{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}}
|
package/dist/Toast/client.mjs
CHANGED
|
@@ -78,8 +78,11 @@ function j({ regionLabel: t, className: n, style: r, children: i }) {
|
|
|
78
78
|
style: r,
|
|
79
79
|
zIndex: "toast"
|
|
80
80
|
}),
|
|
81
|
-
children: /* @__PURE__ */ w(
|
|
81
|
+
children: /* @__PURE__ */ w(e, {
|
|
82
82
|
className: f,
|
|
83
|
+
display: "flex",
|
|
84
|
+
flexDirection: "column",
|
|
85
|
+
gap: "8",
|
|
83
86
|
children: /* @__PURE__ */ w(O, {
|
|
84
87
|
value: a,
|
|
85
88
|
children: i
|
|
@@ -88,23 +91,23 @@ function j({ regionLabel: t, className: n, style: r, children: i }) {
|
|
|
88
91
|
});
|
|
89
92
|
}
|
|
90
93
|
function M() {
|
|
91
|
-
let { toasts:
|
|
94
|
+
let { toasts: t } = E.useToastManager(), n = (e) => t.filter((t) => t.type === "danger" === e).map((e) => /* @__PURE__ */ T("div", { children: [
|
|
92
95
|
e.title,
|
|
93
96
|
" ",
|
|
94
97
|
e.description
|
|
95
98
|
] }, e.id));
|
|
96
|
-
return /* @__PURE__ */ T(
|
|
99
|
+
return /* @__PURE__ */ T(e, {
|
|
97
100
|
className: d,
|
|
98
101
|
children: [/* @__PURE__ */ w("div", {
|
|
99
102
|
"aria-atomic": !1,
|
|
100
103
|
"aria-live": "polite",
|
|
101
104
|
role: "status",
|
|
102
|
-
children:
|
|
105
|
+
children: n(!1)
|
|
103
106
|
}), /* @__PURE__ */ w("div", {
|
|
104
107
|
"aria-atomic": !1,
|
|
105
108
|
"aria-live": "assertive",
|
|
106
109
|
role: "alert",
|
|
107
|
-
children:
|
|
110
|
+
children: n(!0)
|
|
108
111
|
})]
|
|
109
112
|
});
|
|
110
113
|
}
|
package/dist/docs/Heading.md
CHANGED
|
@@ -16,7 +16,7 @@ Section and page headings. A `Text` with heading defaults: the `heading` font ro
|
|
|
16
16
|
## Rules
|
|
17
17
|
|
|
18
18
|
- `as` is the level, `h1` to `h6`; the default is `h2`. Pick it from the outline, not the look.
|
|
19
|
-
- `size` is the look: `sm`, `med`, `lg`, `xl` or `
|
|
19
|
+
- `size` is the look: `sm`, `med`, `lg`, `xl`, `2xl` or `3xl`. Unset, it follows the level: `h1` `2xl` (set `3xl` for a larger page title), `h2` `xl`, `h3` `lg`, `h4` `med`, `h5` and `h6` `sm`.
|
|
20
20
|
- Heading takes every other Text prop (`font`, `weight`, `leading`, `color`, `truncate`, style props) and overrides its defaults with them.
|
|
21
21
|
- One `h1` per page; do not skip levels going down.
|
|
22
22
|
|
|
@@ -41,7 +41,7 @@ Section and page headings. A `Text` with heading defaults: the `heading` font ro
|
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
```tsx
|
|
44
|
-
// Headings stop at
|
|
44
|
+
// Headings stop at 3xl; for display type use Text.
|
|
45
45
|
<Heading size="4xl" />
|
|
46
46
|
```
|
|
47
47
|
|
|
@@ -62,7 +62,7 @@ Generated from the TypeScript types.
|
|
|
62
62
|
| `as` | `"h1" \| "h2" \| "h3" \| "h4" \| "h5" \| "h6"` | no | |
|
|
63
63
|
| `font` | `"body" \| "display" \| "heading" \| "label" \| "mono"` | no | |
|
|
64
64
|
| `leading` | `"body" \| "lg" \| "med" \| "meta" \| "sm"` | no | |
|
|
65
|
-
| `size` | `"2xl" \| "lg" \| "med" \| "sm" \| "xl"` | no | |
|
|
65
|
+
| `size` | `"2xl" \| "3xl" \| "lg" \| "med" \| "sm" \| "xl"` | no | |
|
|
66
66
|
| `tabularNums` | `boolean` | no | |
|
|
67
67
|
| `truncate` | `"box" \| boolean` | no | |
|
|
68
68
|
| `weight` | `"bold" \| "medium" \| "regular" \| "semibold"` | no | |
|
package/dist/docs/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./manifest.schema.json",
|
|
3
3
|
"package": "@jonmilner/ui",
|
|
4
|
-
"version": "0.23.
|
|
4
|
+
"version": "0.23.1",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Alert",
|
|
@@ -1513,10 +1513,11 @@
|
|
|
1513
1513
|
},
|
|
1514
1514
|
{
|
|
1515
1515
|
"name": "size",
|
|
1516
|
-
"type": "\"2xl\" | \"lg\" | \"med\" | \"sm\" | \"xl\"",
|
|
1516
|
+
"type": "\"2xl\" | \"3xl\" | \"lg\" | \"med\" | \"sm\" | \"xl\"",
|
|
1517
1517
|
"required": false,
|
|
1518
1518
|
"values": [
|
|
1519
1519
|
"2xl",
|
|
1520
|
+
"3xl",
|
|
1520
1521
|
"lg",
|
|
1521
1522
|
"med",
|
|
1522
1523
|
"sm",
|
|
@@ -37,13 +37,14 @@ function h({ children: e, className: t, iconStart: r, size: i }) {
|
|
|
37
37
|
children: e
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function g(t) {
|
|
40
|
+
function g(t, n) {
|
|
41
41
|
return /* @__PURE__ */ u(e, {
|
|
42
42
|
backgroundColor: "bgRaised",
|
|
43
43
|
borderRadius: "med",
|
|
44
44
|
boxShadow: "med",
|
|
45
45
|
className: t,
|
|
46
|
-
padding: "4"
|
|
46
|
+
padding: "4",
|
|
47
|
+
...n
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
var _ = {
|