@jonmilner/ui 0.21.1 → 0.22.0
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/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/AlertDialog/index.d.mts +1 -1
- package/dist/Avatar/index.d.mts +1 -1
- package/dist/Avatar/index.mjs +5 -5
- package/dist/Badge/index.d.mts +1 -1
- package/dist/Badge/index.mjs +12 -12
- package/dist/Box/index.mjs +1 -1
- package/dist/Button/index.d.mts +1 -1
- package/dist/Button/index.mjs +22 -22
- package/dist/Checkbox/index.mjs +7 -7
- package/dist/Chip/index.mjs +35 -35
- package/dist/Clickable/index.d.mts +1 -1
- package/dist/Clickable/index.mjs +4 -4
- package/dist/ColorField/ColorField.css +1 -1
- package/dist/ColorField/client.mjs +6 -6
- package/dist/ColorField/index.mjs +14 -14
- package/dist/Combobox/Combobox.css +1 -1
- package/dist/Combobox/client.mjs +26 -26
- package/dist/Combobox/index.mjs +20 -20
- package/dist/Dialog/client.mjs +26 -26
- package/dist/Dialog/index.d.mts +1 -1
- package/dist/Dialog/index.mjs +19 -19
- package/dist/Field/client.mjs +6 -6
- package/dist/Field/index.mjs +29 -29
- package/dist/IconButton/IconButton.css +1 -1
- package/dist/IconButton/IconButton.css.mjs +2 -2
- package/dist/IconButton/index.d.mts +5 -2
- package/dist/IconButton/index.mjs +60 -21
- package/dist/Inline/index.d.mts +2 -2
- package/dist/Inline/index.mjs +4 -4
- package/dist/Menu/Menu.css +1 -1
- package/dist/Menu/Menu.css.mjs +2 -2
- package/dist/Menu/client.d.mts +1 -0
- package/dist/Menu/client.mjs +95 -53
- package/dist/Menu/index.d.mts +8 -0
- package/dist/Menu/index.mjs +123 -87
- package/dist/MultiSelect/MultiSelect.css +1 -1
- package/dist/MultiSelect/client.mjs +4 -4
- package/dist/MultiSelect/index.mjs +8 -8
- package/dist/NavList/NavList.css +1 -1
- package/dist/NavList/client.mjs +3 -3
- package/dist/NavList/index.d.mts +3 -3
- package/dist/NavList/index.mjs +67 -65
- package/dist/NumberField/NumberField.css +1 -1
- package/dist/NumberField/index.mjs +17 -17
- package/dist/RadioGroup/index.mjs +23 -23
- package/dist/SearchField/SearchField.css +1 -1
- package/dist/SearchField/client.mjs +13 -13
- package/dist/SearchField/index.mjs +16 -16
- package/dist/Select/Select.css +1 -1
- package/dist/Select/client.mjs +11 -11
- package/dist/Select/index.mjs +8 -8
- package/dist/Sidebar/index.d.mts +1 -1
- package/dist/Sidebar/index.mjs +21 -21
- package/dist/SidebarLayout/index.d.mts +1 -1
- package/dist/SidebarLayout/index.mjs +8 -8
- package/dist/Stack/index.d.mts +2 -2
- package/dist/Stack/index.mjs +4 -4
- package/dist/Switch/index.mjs +13 -13
- package/dist/Table/index.d.mts +1 -1
- package/dist/Table/index.mjs +59 -59
- package/dist/Tabs/index.mjs +26 -26
- package/dist/Tag/index.d.mts +1 -1
- package/dist/Tag/index.mjs +16 -16
- package/dist/Text/index.d.mts +2 -2
- package/dist/Text/index.mjs +4 -4
- package/dist/TextField/TextField.css +1 -1
- package/dist/TextField/index.mjs +16 -16
- package/dist/Textarea/Textarea.css +1 -1
- package/dist/Textarea/index.mjs +9 -9
- package/dist/Toast/client.d.mts +2 -1
- package/dist/Toast/client.mjs +62 -55
- package/dist/Tooltip/base.mjs +13 -13
- package/dist/contrast/contrast.d.mts +1 -1
- package/dist/contrast/contrast.mjs +9 -9
- package/dist/contrast/mixes.mjs +27 -27
- package/dist/docs/Combobox.md +1 -0
- package/dist/docs/IconButton.md +9 -1
- package/dist/docs/Menu.md +51 -3
- package/dist/docs/MultiSelect.md +1 -0
- package/dist/docs/NavList.md +2 -2
- package/dist/docs/Select.md +1 -0
- package/dist/docs/Toast.md +7 -0
- package/dist/docs/llms.txt +1 -1
- package/dist/docs/manifest.json +118 -1
- package/dist/docs/migrations/0.22.0.md +35 -0
- package/dist/icons/index.d.mts +3 -3
- package/dist/icons/index.mjs +33 -33
- package/dist/index.d.mts +16 -16
- package/dist/index.mjs +39 -39
- package/dist/lint/index.mjs +1 -0
- package/dist/popup/client.d.mts +1 -1
- package/dist/popup/client.mjs +49 -32
- package/dist/popup/direction.d.mts +1 -0
- package/dist/popup/direction.mjs +23 -0
- package/dist/popup/listbox-base.mjs +24 -24
- package/dist/popup/listbox-options.mjs +4 -4
- package/dist/popup/listbox-row.mjs +1 -0
- package/dist/popup/tooltip.d.mts +1 -0
- package/dist/popup/tooltip.mjs +48 -42
- package/dist/theme/define-theme.mjs +42 -42
- package/package.json +2 -2
package/dist/NavList/client.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
|
8
8
|
// src/NavList/client.tsx
|
|
9
9
|
var l = n(i), u = (e) => getComputedStyle(e).getPropertyValue(l).trim() === "1";
|
|
10
10
|
function d({ link: n, children: i }) {
|
|
11
|
-
let [l, d] = o(null)
|
|
11
|
+
let [l, d] = o(null);
|
|
12
12
|
return a(() => {
|
|
13
13
|
if (!l) return;
|
|
14
14
|
let e = new ResizeObserver(() => {
|
|
@@ -23,12 +23,12 @@ function d({ link: n, children: i }) {
|
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
25
|
let n = t.trigger;
|
|
26
|
-
!n || !u(n) ? t.cancel() :
|
|
26
|
+
!n || !u(n) ? t.cancel() : d(n);
|
|
27
27
|
},
|
|
28
28
|
open: l !== null,
|
|
29
29
|
children: [/* @__PURE__ */ s(e, { render: n }), /* @__PURE__ */ s(r, {
|
|
30
30
|
"aria-hidden": !0,
|
|
31
|
-
side:
|
|
31
|
+
side: "inline-end",
|
|
32
32
|
children: i
|
|
33
33
|
})]
|
|
34
34
|
});
|
package/dist/NavList/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OmitEach, PolymorphicProps } from "../types.mjs";
|
|
2
1
|
import { StyleProps } from "../Box/base.mjs";
|
|
3
|
-
import { IconProps } from "../Icon/index.mjs";
|
|
4
2
|
import { HeadingLevel } from "../Heading/index.mjs";
|
|
3
|
+
import { IconProps } from "../Icon/index.mjs";
|
|
4
|
+
import { OmitEach, PolymorphicProps } from "../types.mjs";
|
|
5
5
|
import { ComponentPropsWithRef, ComponentType, ElementType, ReactNode } from "react";
|
|
6
6
|
type Element<T extends keyof HTMLElementTagNameMap, Own = object> = StyleProps & Own & OmitEach<ComponentPropsWithRef<T>, keyof StyleProps | keyof Own>;
|
|
7
7
|
type NavListName = {
|
|
@@ -33,7 +33,7 @@ type NavListItemLeading = {
|
|
|
33
33
|
export type NavListItemProps<T extends ElementType = "a"> = PolymorphicProps<T, StyleProps & NavListItemOwnProps, "aria-current"> & NavListItemLeading;
|
|
34
34
|
declare function NavListRoot({ children, ...props }: NavListProps): import("react").JSX.Element;
|
|
35
35
|
declare function NavListGroup({ label, headingLevel, display, flexDirection, gap, className, children, ...props }: NavListGroupProps): import("react").JSX.Element;
|
|
36
|
-
declare function NavListItem<T extends ElementType = "a">({ as, current, icon: ItemIcon, avatar, action, count, live, liveLabel, display, alignItems, gap, position, minBlockSize, paddingBlock, paddingInline, borderRadius, backgroundColor, color, className, children, ...props }: NavListItemProps<T>): import("react").JSX.Element;
|
|
36
|
+
declare function NavListItem<T extends ElementType = "a">({ as, current, icon: ItemIcon, avatar, action, count, live, liveLabel, display, alignItems, gap, position, minBlockSize, paddingBlock, paddingInline, paddingInlineStart, borderRadius, backgroundColor, color, className, children, ...props }: NavListItemProps<T>): import("react").JSX.Element;
|
|
37
37
|
export declare const NavList: typeof NavListRoot & {
|
|
38
38
|
Group: typeof NavListGroup;
|
|
39
39
|
Item: typeof NavListItem;
|
package/dist/NavList/index.mjs
CHANGED
|
@@ -1,137 +1,139 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Badge as e } from "../Badge/index.mjs";
|
|
2
2
|
import { Box as t } from "../Box/base.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { join as n } from "../styles/join.mjs";
|
|
4
|
+
import { Text as r } from "../Text/index.mjs";
|
|
5
5
|
import { VisuallyHidden as i } from "../VisuallyHidden/index.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { RailTooltip as a } from "./client.mjs";
|
|
7
|
+
import { action as o, cornerDot as s, count as c, entry as l, group as u, heading as d, item as f, label as p, lead as m, list as h, liveDot as g, trail as _ } from "./NavList.css.mjs";
|
|
8
8
|
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
9
9
|
import { Tooltip as x } from "@base-ui/react/tooltip";
|
|
10
10
|
// src/NavList/index.tsx
|
|
11
|
-
|
|
11
|
+
var S = (e) => e == null || typeof e == "boolean" || e === "";
|
|
12
|
+
function C({ children: e, ...n }) {
|
|
12
13
|
return /* @__PURE__ */ y(t, {
|
|
13
14
|
...n,
|
|
14
15
|
as: "nav",
|
|
15
|
-
children: /* @__PURE__ */ y(x.Provider, { children: /* @__PURE__ */ y(
|
|
16
|
+
children: /* @__PURE__ */ y(x.Provider, { children: /* @__PURE__ */ y(w, { children: e }) })
|
|
16
17
|
});
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
+
function w({ label: e, children: n }) {
|
|
19
20
|
return /* @__PURE__ */ y(t, {
|
|
20
21
|
"aria-label": e,
|
|
21
22
|
as: "ul",
|
|
22
|
-
className:
|
|
23
|
+
className: h,
|
|
23
24
|
display: "flex",
|
|
24
25
|
flexDirection: "column",
|
|
25
26
|
gap: "4",
|
|
26
27
|
children: n
|
|
27
28
|
});
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
+
function T({ label: e, headingLevel: i = "h2", display: a = "flex", flexDirection: o = "column", gap: s = "4", className: c, children: l, ...f }) {
|
|
30
31
|
return /* @__PURE__ */ b(t, {
|
|
31
32
|
...f,
|
|
32
33
|
as: "li",
|
|
33
|
-
className:
|
|
34
|
+
className: n(u, c),
|
|
34
35
|
display: a,
|
|
35
36
|
flexDirection: o,
|
|
36
37
|
gap: s,
|
|
37
|
-
children: [/* @__PURE__ */ y(
|
|
38
|
+
children: [/* @__PURE__ */ y(r, {
|
|
38
39
|
as: i,
|
|
39
|
-
className:
|
|
40
|
+
className: d,
|
|
40
41
|
color: "fgMuted",
|
|
41
42
|
paddingBlock: "4",
|
|
42
43
|
paddingInline: "8",
|
|
43
44
|
size: "xs",
|
|
44
45
|
weight: "semibold",
|
|
45
|
-
children:
|
|
46
|
-
}), /* @__PURE__ */ y(
|
|
47
|
-
label:
|
|
48
|
-
children:
|
|
46
|
+
children: e
|
|
47
|
+
}), /* @__PURE__ */ y(w, {
|
|
48
|
+
label: e,
|
|
49
|
+
children: l
|
|
49
50
|
})]
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
-
let
|
|
54
|
-
className:
|
|
53
|
+
function E({ as: u, current: d = !1, icon: h, avatar: x, action: C, count: w, live: T = !1, liveLabel: E = "live", display: D = "flex", alignItems: O = "center", gap: k = "8", position: A = "relative", minBlockSize: j = "sm", paddingBlock: M = "6", paddingInline: N, paddingInlineStart: P = N === void 0 && !S(x) ? "6" : void 0, borderRadius: F = "med", backgroundColor: I = d ? "selected" : void 0, color: L = "fg", className: R, children: z, ...B }) {
|
|
54
|
+
let V = u ?? "a", H = !S(C), U = /* @__PURE__ */ y(e, {
|
|
55
|
+
className: c,
|
|
55
56
|
flexShrink: 0,
|
|
56
57
|
size: "xs",
|
|
57
58
|
subtle: !0,
|
|
58
|
-
children:
|
|
59
|
-
}),
|
|
60
|
-
alignItems:
|
|
61
|
-
as:
|
|
62
|
-
backgroundColor:
|
|
63
|
-
borderRadius:
|
|
64
|
-
color:
|
|
65
|
-
display:
|
|
66
|
-
gap:
|
|
67
|
-
minBlockSize:
|
|
68
|
-
paddingBlock:
|
|
69
|
-
paddingInline:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
59
|
+
children: w
|
|
60
|
+
}), W = /* @__PURE__ */ b(t, {
|
|
61
|
+
alignItems: O,
|
|
62
|
+
as: V,
|
|
63
|
+
backgroundColor: I,
|
|
64
|
+
borderRadius: F,
|
|
65
|
+
color: L,
|
|
66
|
+
display: D,
|
|
67
|
+
gap: k,
|
|
68
|
+
minBlockSize: j,
|
|
69
|
+
paddingBlock: M,
|
|
70
|
+
paddingInline: N === void 0 ? "8" : N,
|
|
71
|
+
paddingInlineStart: P,
|
|
72
|
+
position: A,
|
|
73
|
+
...B,
|
|
74
|
+
"aria-current": d ? "page" : void 0,
|
|
75
|
+
className: n(f, R),
|
|
74
76
|
children: [
|
|
75
|
-
|
|
77
|
+
h != null || !S(x) ? /* @__PURE__ */ b(t, {
|
|
76
78
|
"aria-hidden": !0,
|
|
77
79
|
as: "span",
|
|
78
|
-
className:
|
|
80
|
+
className: m,
|
|
79
81
|
display: "flex",
|
|
80
82
|
flexShrink: 0,
|
|
81
|
-
children: [
|
|
83
|
+
children: [h ? /* @__PURE__ */ y(h, { size: "sm" }) : x, T ? /* @__PURE__ */ y(t, {
|
|
82
84
|
as: "span",
|
|
83
|
-
className:
|
|
85
|
+
className: s
|
|
84
86
|
}) : null]
|
|
85
87
|
}) : null,
|
|
86
|
-
/* @__PURE__ */ y(
|
|
88
|
+
/* @__PURE__ */ y(r, {
|
|
87
89
|
as: "span",
|
|
88
|
-
className:
|
|
90
|
+
className: p,
|
|
89
91
|
flexGrow: 1,
|
|
90
92
|
size: "sm",
|
|
91
|
-
weight:
|
|
92
|
-
children:
|
|
93
|
+
weight: d ? "medium" : "regular",
|
|
94
|
+
children: z
|
|
93
95
|
}),
|
|
94
|
-
|
|
96
|
+
T ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(t, {
|
|
95
97
|
"aria-hidden": !0,
|
|
96
98
|
as: "span",
|
|
97
|
-
className:
|
|
98
|
-
}), /* @__PURE__ */ y(i, { children: ` ${
|
|
99
|
-
|
|
99
|
+
className: g
|
|
100
|
+
}), /* @__PURE__ */ y(i, { children: ` ${E}` })] }) : null,
|
|
101
|
+
H ? /* @__PURE__ */ y(t, {
|
|
100
102
|
as: "span",
|
|
101
|
-
className:
|
|
102
|
-
children:
|
|
103
|
-
}) :
|
|
103
|
+
className: _,
|
|
104
|
+
children: U
|
|
105
|
+
}) : U
|
|
104
106
|
]
|
|
105
107
|
});
|
|
106
108
|
return /* @__PURE__ */ b("li", {
|
|
107
|
-
className:
|
|
108
|
-
children: [/* @__PURE__ */ y(
|
|
109
|
-
link:
|
|
109
|
+
className: n(l, H && "_1kvngp04"),
|
|
110
|
+
children: [/* @__PURE__ */ y(a, {
|
|
111
|
+
link: W,
|
|
110
112
|
children: /* @__PURE__ */ b(t, {
|
|
111
113
|
alignItems: "center",
|
|
112
114
|
as: "span",
|
|
113
115
|
display: "flex",
|
|
114
116
|
gap: "8",
|
|
115
|
-
children: [/* @__PURE__ */ y(
|
|
117
|
+
children: [/* @__PURE__ */ y(r, {
|
|
116
118
|
as: "span",
|
|
117
119
|
size: "sm",
|
|
118
|
-
children:
|
|
119
|
-
}), /* @__PURE__ */ y(
|
|
120
|
+
children: z
|
|
121
|
+
}), /* @__PURE__ */ y(e, {
|
|
120
122
|
flexShrink: 0,
|
|
121
123
|
size: "xs",
|
|
122
124
|
subtle: !0,
|
|
123
|
-
children:
|
|
125
|
+
children: w
|
|
124
126
|
})]
|
|
125
127
|
})
|
|
126
|
-
}),
|
|
128
|
+
}), H ? /* @__PURE__ */ y(t, {
|
|
127
129
|
as: "span",
|
|
128
|
-
className:
|
|
129
|
-
children:
|
|
130
|
+
className: o,
|
|
131
|
+
children: C
|
|
130
132
|
}) : null]
|
|
131
133
|
});
|
|
132
134
|
}
|
|
133
|
-
var
|
|
134
|
-
Group:
|
|
135
|
-
Item:
|
|
135
|
+
var D = Object.assign(C, {
|
|
136
|
+
Group: T,
|
|
137
|
+
Item: E
|
|
136
138
|
});
|
|
137
|
-
export {
|
|
139
|
+
export { D as NavList };
|
|
@@ -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.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, 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.number-field{._4ak7w90{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._4ak7w91{grid-template-columns:var(--space-4) auto minmax(0, 1fr) auto var(--space-4)}._4ak7w92{appearance:none;border-width:var(--space-1);border-style:solid;border-color:var(--color-border-strong);border-radius:var(--radius-sm);background-color:var(--color-bg);inline-size:100%;min-inline-size:0;color:var(--color-fg);text-align:center;grid-area:1/1/auto/-1;padding-block:0}._4ak7w92::placeholder{color:var(--color-fg-muted);opacity:1}._4ak7w92:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._4ak7w92:disabled{background-color:var(--color-bg-muted);color:var(--color-fg-muted);cursor:not-allowed;border-style:dashed}._4ak7w92[aria-invalid=true]{border-color:var(--color-danger)}._4ak7w93{block-size:var(--size-xs);padding-inline:calc(var(--size-xs) + var(--space-4))}._4ak7w94{block-size:var(--size-sm);padding-inline:calc(var(--size-xs) + var(--space-4))}._4ak7w95{block-size:var(--size-med);padding-inline:calc(var(--size-sm) + var(--space-4))}._4ak7w96{background-clip:padding-box;grid-area:1/2}._4ak7w97{background-clip:padding-box;grid-area:1/4}@media (pointer:coarse){._4ak7w92{font-size:var(--font-size-med)}}@media (forced-colors:active){._4ak7w92:disabled{color:graytext;border-color:graytext}._4ak7w96{border-color:#0000}._4ak7w96[aria-disabled=true]{border-color:graytext}._4ak7w97{border-color:#0000}._4ak7w97[aria-disabled=true]{border-color:graytext}}}
|
|
2
|
+
@layer components.number-field{._4ak7w90{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._4ak7w91{grid-template-columns:var(--space-4) auto minmax(0, 1fr) auto var(--space-4)}._4ak7w92{appearance:none;border-width:var(--space-1);border-style:solid;border-color:var(--color-border-strong);border-radius:var(--radius-sm);background-color:var(--color-bg);inline-size:100%;min-inline-size:0;color:var(--color-fg);text-align:center;grid-area:1/1/auto/-1;padding-block:0}._4ak7w92::placeholder{color:var(--color-fg-muted);opacity:1}._4ak7w92:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._4ak7w92:disabled{background-color:var(--color-bg-muted);color:var(--color-fg-muted);cursor:not-allowed;border-style:dashed}._4ak7w92[aria-invalid=true]{border-color:var(--color-danger)}._4ak7w93{block-size:var(--size-xs);padding-inline:calc(var(--size-xs) + var(--space-4))}._4ak7w94{block-size:var(--size-sm);padding-inline:calc(var(--size-xs) + var(--space-4))}._4ak7w95{block-size:var(--size-med);padding-inline:calc(var(--size-sm) + var(--space-4))}._4ak7w96{background-clip:padding-box;grid-area:1/2}._4ak7w97{background-clip:padding-box;grid-area:1/4}@media (pointer:coarse){._4ak7w92{font-size:var(--font-size-med)}}@media (forced-colors:active){._4ak7w92:disabled{color:graytext;border-color:graytext}._4ak7w96{border-color:#0000}._4ak7w96[aria-disabled=true]{border-color:graytext}._4ak7w97{border-color:#0000}._4ak7w97[aria-disabled=true]{border-color:graytext}}@supports (text-box:trim-both cap alphabetic){._4ak7w92{text-box-trim:none}}}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { Box as e } from "../Box/base.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { Field as t } from "../Field/index.mjs";
|
|
3
|
+
import { IconButton as n } from "../IconButton/index.mjs";
|
|
4
|
+
import { MinusIcon as r } from "../icons/MinusIcon.mjs";
|
|
5
|
+
import { PlusIcon as i } from "../icons/PlusIcon.mjs";
|
|
6
|
+
import { controlInnerButton as a, controlText as o } from "../styles/control-size.mjs";
|
|
7
|
+
import { Text as s } from "../Text/index.mjs";
|
|
8
8
|
import { decrement as c, hiddenLabel as l, increment as u, input as d, root as f } from "./NumberField.css.mjs";
|
|
9
9
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
10
10
|
import { NumberField as h } from "@base-ui/react/number-field";
|
|
11
11
|
// src/NumberField/index.tsx
|
|
12
12
|
var g = { maximumFractionDigits: 0 };
|
|
13
13
|
function _({ label: _, hideLabel: v = !1, value: y, defaultValue: b, onValueChange: x, min: S, max: C, step: w = 1, placeholder: T, description: E, error: D, size: O = "med", disabled: k = !1, required: A = !1, name: j, decrementLabel: M = "Decrease", incrementLabel: N = "Increase", inputProps: { id: P, ref: F, ...I } = {}, className: L, style: R, ...z }) {
|
|
14
|
-
let B =
|
|
15
|
-
return /* @__PURE__ */ m(
|
|
14
|
+
let B = a[O];
|
|
15
|
+
return /* @__PURE__ */ m(t, {
|
|
16
16
|
...z,
|
|
17
17
|
className: L,
|
|
18
18
|
disabled: k,
|
|
19
19
|
invalid: D != null && D !== !1 && D !== "",
|
|
20
20
|
style: R,
|
|
21
21
|
children: [
|
|
22
|
-
/* @__PURE__ */ p(
|
|
22
|
+
/* @__PURE__ */ p(t.Label, {
|
|
23
23
|
className: v ? l : void 0,
|
|
24
24
|
children: _
|
|
25
25
|
}),
|
|
@@ -47,33 +47,33 @@ function _({ label: _, hideLabel: v = !1, value: y, defaultValue: b, onValueChan
|
|
|
47
47
|
...I,
|
|
48
48
|
placeholder: T,
|
|
49
49
|
ref: F,
|
|
50
|
-
render: /* @__PURE__ */ p(
|
|
50
|
+
render: /* @__PURE__ */ p(s, {
|
|
51
51
|
as: "input",
|
|
52
52
|
className: d({ size: O }),
|
|
53
|
-
size:
|
|
53
|
+
size: o[O],
|
|
54
54
|
tabularNums: !0
|
|
55
55
|
})
|
|
56
56
|
}),
|
|
57
|
-
/* @__PURE__ */ p(h.Decrement, { render: /* @__PURE__ */ p(
|
|
57
|
+
/* @__PURE__ */ p(h.Decrement, { render: /* @__PURE__ */ p(n, {
|
|
58
58
|
borderRadius: "xs",
|
|
59
59
|
className: c,
|
|
60
|
-
icon:
|
|
60
|
+
icon: r,
|
|
61
61
|
label: M,
|
|
62
62
|
size: B,
|
|
63
63
|
variant: "ghost"
|
|
64
64
|
}) }),
|
|
65
|
-
/* @__PURE__ */ p(h.Increment, { render: /* @__PURE__ */ p(
|
|
65
|
+
/* @__PURE__ */ p(h.Increment, { render: /* @__PURE__ */ p(n, {
|
|
66
66
|
borderRadius: "xs",
|
|
67
67
|
className: u,
|
|
68
|
-
icon:
|
|
68
|
+
icon: i,
|
|
69
69
|
label: N,
|
|
70
70
|
size: B,
|
|
71
71
|
variant: "ghost"
|
|
72
72
|
}) })
|
|
73
73
|
]
|
|
74
74
|
}),
|
|
75
|
-
E != null && /* @__PURE__ */ p(
|
|
76
|
-
/* @__PURE__ */ p(
|
|
75
|
+
E != null && /* @__PURE__ */ p(t.Description, { children: E }),
|
|
76
|
+
/* @__PURE__ */ p(t.Error, { children: D })
|
|
77
77
|
]
|
|
78
78
|
});
|
|
79
79
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Box as e } from "../Box/base.mjs";
|
|
2
|
+
import { Field as t } from "../Field/index.mjs";
|
|
3
3
|
import { controlText as n } from "../styles/control-size.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { join as r } from "../styles/join.mjs";
|
|
5
|
+
import { Text as i } from "../Text/index.mjs";
|
|
6
6
|
import { circle as a, dot as o, item as s, label as c, legend as l, options as u, root as d } from "./RadioGroup.css.mjs";
|
|
7
7
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
8
|
import { Field as m } from "@base-ui/react/field";
|
|
@@ -16,7 +16,7 @@ var v = {
|
|
|
16
16
|
lg: "sm"
|
|
17
17
|
};
|
|
18
18
|
function y({ options: y, value: b, defaultValue: x, onValueChange: S, label: C, hideLabel: w = !1, description: T, error: E, orientation: D = "vertical", size: O = "med", disabled: k = !1, required: A = !1, name: j, className: M, style: N, ...P }) {
|
|
19
|
-
return /* @__PURE__ */ p(
|
|
19
|
+
return /* @__PURE__ */ p(t, {
|
|
20
20
|
...P,
|
|
21
21
|
className: M,
|
|
22
22
|
disabled: k,
|
|
@@ -29,7 +29,7 @@ function y({ options: y, value: b, defaultValue: x, onValueChange: S, label: C,
|
|
|
29
29
|
defaultValue: x,
|
|
30
30
|
name: j,
|
|
31
31
|
onValueChange: S && ((e) => S(e)),
|
|
32
|
-
render: /* @__PURE__ */ f(
|
|
32
|
+
render: /* @__PURE__ */ f(e, {
|
|
33
33
|
display: "flex",
|
|
34
34
|
flexDirection: "column",
|
|
35
35
|
gap: "8"
|
|
@@ -38,22 +38,22 @@ function y({ options: y, value: b, defaultValue: x, onValueChange: S, label: C,
|
|
|
38
38
|
value: b
|
|
39
39
|
}),
|
|
40
40
|
children: [/* @__PURE__ */ f(h.Legend, {
|
|
41
|
-
render: /* @__PURE__ */ f(
|
|
41
|
+
render: /* @__PURE__ */ f(i, {
|
|
42
42
|
as: "div",
|
|
43
|
-
className:
|
|
43
|
+
className: r(l, w && "_15rnw5c1"),
|
|
44
44
|
font: "label",
|
|
45
45
|
size: "sm",
|
|
46
46
|
weight: "medium"
|
|
47
47
|
}),
|
|
48
48
|
children: C
|
|
49
|
-
}), /* @__PURE__ */ f(
|
|
49
|
+
}), /* @__PURE__ */ f(e, {
|
|
50
50
|
className: u({ orientation: D }),
|
|
51
|
-
children: y.map((
|
|
52
|
-
disabled:
|
|
53
|
-
render: /* @__PURE__ */ f(
|
|
51
|
+
children: y.map((r) => /* @__PURE__ */ p(m.Item, {
|
|
52
|
+
disabled: r.disabled,
|
|
53
|
+
render: /* @__PURE__ */ f(e, { className: s }),
|
|
54
54
|
children: [
|
|
55
55
|
/* @__PURE__ */ f(g.Root, {
|
|
56
|
-
render: /* @__PURE__ */ f(
|
|
56
|
+
render: /* @__PURE__ */ f(e, {
|
|
57
57
|
alignItems: "center",
|
|
58
58
|
as: "span",
|
|
59
59
|
className: d,
|
|
@@ -63,33 +63,33 @@ function y({ options: y, value: b, defaultValue: x, onValueChange: S, label: C,
|
|
|
63
63
|
minBlockSize: "xs",
|
|
64
64
|
minInlineSize: "xs"
|
|
65
65
|
}),
|
|
66
|
-
value:
|
|
67
|
-
children: /* @__PURE__ */ f(
|
|
66
|
+
value: r.value,
|
|
67
|
+
children: /* @__PURE__ */ f(e, {
|
|
68
68
|
as: "span",
|
|
69
69
|
className: a,
|
|
70
|
-
children: /* @__PURE__ */ f(
|
|
70
|
+
children: /* @__PURE__ */ f(e, {
|
|
71
71
|
as: "span",
|
|
72
72
|
className: o
|
|
73
73
|
})
|
|
74
74
|
})
|
|
75
75
|
}),
|
|
76
|
-
/* @__PURE__ */ f(
|
|
76
|
+
/* @__PURE__ */ f(t.Label, {
|
|
77
77
|
className: c,
|
|
78
78
|
size: n[O],
|
|
79
79
|
weight: "regular",
|
|
80
|
-
children:
|
|
80
|
+
children: r.label
|
|
81
81
|
}),
|
|
82
|
-
|
|
82
|
+
r.description != null && /* @__PURE__ */ f(t.Description, {
|
|
83
83
|
className: "_15rnw5c6",
|
|
84
84
|
size: v[O],
|
|
85
|
-
children:
|
|
85
|
+
children: r.description
|
|
86
86
|
})
|
|
87
87
|
]
|
|
88
|
-
},
|
|
88
|
+
}, r.value))
|
|
89
89
|
})]
|
|
90
90
|
}),
|
|
91
|
-
T != null && /* @__PURE__ */ f(
|
|
92
|
-
/* @__PURE__ */ f(
|
|
91
|
+
T != null && /* @__PURE__ */ f(t.Description, { children: T }),
|
|
92
|
+
/* @__PURE__ */ f(t.Error, { children: E })
|
|
93
93
|
]
|
|
94
94
|
});
|
|
95
95
|
}
|
|
@@ -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.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, 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.search-field{._1cj8r6g0{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._1cj8r6g1{appearance:none;border-width:var(--space-1);border-style:solid;border-color:var(--color-border-strong);border-radius:var(--radius-sm);background-color:var(--color-bg);inline-size:100%;min-inline-size:0;color:var(--color-fg);grid-area:1/1;padding-block:0}._1cj8r6g1::placeholder{color:var(--color-fg-muted);opacity:1}._1cj8r6g1:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._1cj8r6g1:disabled{background-color:var(--color-bg-muted);color:var(--color-fg-muted);cursor:not-allowed;border-style:dashed}._1cj8r6g1[aria-invalid=true]{border-color:var(--color-danger)}._1cj8r6g1::-webkit-search-cancel-button{appearance:none}._1cj8r6g1::-webkit-search-decoration{appearance:none}._1cj8r6g2{block-size:var(--size-xs);padding-inline-start:var(--space-6);padding-inline-end:calc(var(--size-xs) + var(--space-4))}._1cj8r6g3{block-size:var(--size-sm);padding-inline-start:var(--space-8);padding-inline-end:calc(var(--size-xs) + var(--space-4))}._1cj8r6g4{block-size:var(--size-med);padding-inline-start:var(--space-12);padding-inline-end:calc(var(--size-sm) + var(--space-4))}._1cj8r6g5{font-family:var(--font-body);font-size:var(--font-size-xs);
|
|
2
|
+
@layer components.search-field{._1cj8r6g0{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._1cj8r6g1{appearance:none;border-width:var(--space-1);border-style:solid;border-color:var(--color-border-strong);border-radius:var(--radius-sm);background-color:var(--color-bg);inline-size:100%;min-inline-size:0;color:var(--color-fg);grid-area:1/1;padding-block:0}._1cj8r6g1::placeholder{color:var(--color-fg-muted);opacity:1}._1cj8r6g1:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._1cj8r6g1:disabled{background-color:var(--color-bg-muted);color:var(--color-fg-muted);cursor:not-allowed;border-style:dashed}._1cj8r6g1[aria-invalid=true]{border-color:var(--color-danger)}._1cj8r6g1::-webkit-search-cancel-button{appearance:none}._1cj8r6g1::-webkit-search-decoration{appearance:none}._1cj8r6g2{block-size:var(--size-xs);padding-inline-start:var(--space-6);padding-inline-end:calc(var(--size-xs) + var(--space-4))}._1cj8r6g3{block-size:var(--size-sm);padding-inline-start:var(--space-8);padding-inline-end:calc(var(--size-xs) + var(--space-4))}._1cj8r6g4{block-size:var(--size-med);padding-inline-start:var(--space-12);padding-inline-end:calc(var(--size-sm) + var(--space-4))}._1cj8r6g5{font-family:var(--font-body);font-size:var(--font-size-xs);color:var(--color-fg-muted);pointer-events:none;grid-area:1/1;place-self:center start;padding-inline-start:var(--space-6);line-height:normal}._1cj8r6g6{font-family:var(--font-body);font-size:var(--font-size-sm);color:var(--color-fg-muted);pointer-events:none;grid-area:1/1;place-self:center start;padding-inline-start:var(--space-8);line-height:normal}._1cj8r6g7{font-family:var(--font-body);font-size:var(--font-size-med);color:var(--color-fg-muted);pointer-events:none;grid-area:1/1;place-self:center start;padding-inline-start:var(--space-12);line-height:normal}._1cj8r6g8{font-family:var(--font-body);font-size:var(--font-size-xs);color:var(--color-fg-muted);pointer-events:none;grid-area:1/1;place-self:center end;padding-inline-end:var(--space-6);line-height:normal}._1cj8r6g9{font-family:var(--font-body);font-size:var(--font-size-sm);color:var(--color-fg-muted);pointer-events:none;grid-area:1/1;place-self:center end;padding-inline-end:var(--space-8);line-height:normal}._1cj8r6ga{font-family:var(--font-body);font-size:var(--font-size-med);color:var(--color-fg-muted);pointer-events:none;grid-area:1/1;place-self:center end;padding-inline-end:var(--space-12);line-height:normal}._1cj8r6gb{vertical-align:calc((1cap - var(--font-size-xs)) / 2);display:inline-block}._1cj8r6gc{vertical-align:calc((1cap - var(--font-size-sm)) / 2);display:inline-block}._1cj8r6gd{vertical-align:calc((1cap - var(--font-size-med)) / 2);display:inline-block}._1cj8r6ge{padding-inline-start:calc(var(--space-6) + var(--font-size-xs) + var(--space-4))}._1cj8r6gf{padding-inline-start:calc(var(--space-8) + var(--font-size-sm) + var(--space-4))}._1cj8r6gg{padding-inline-start:calc(var(--space-12) + var(--font-size-med) + var(--space-8))}._1cj8r6gh{padding-inline-end:calc(var(--space-6) + var(--font-size-xs) + var(--space-4))}._1cj8r6gi{padding-inline-end:calc(var(--space-8) + var(--font-size-sm) + var(--space-4))}._1cj8r6gj{padding-inline-end:calc(var(--space-12) + var(--font-size-med) + var(--space-8))}._1cj8r6gk{background-clip:padding-box;grid-area:1/1;justify-self:end;position:relative;inset-inline-end:var(--space-4)}@media (pointer:coarse){._1cj8r6g1,._1cj8r6g5,._1cj8r6g6,._1cj8r6g7,._1cj8r6g8,._1cj8r6g9,._1cj8r6ga{font-size:var(--font-size-med)}}@media (forced-colors:active){._1cj8r6g1:disabled{color:graytext;border-color:graytext}._1cj8r6gk{border-color:#0000}}@supports (text-box:trim-both cap alphabetic){._1cj8r6g1{text-box-trim:none}}}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { Box as e } from "../Box/base.mjs";
|
|
3
|
+
import { IconButton as t } from "../IconButton/index.mjs";
|
|
4
|
+
import { XIcon as n } from "../icons/XIcon.mjs";
|
|
5
|
+
import { controlInnerButton as r, controlText as i } from "../styles/control-size.mjs";
|
|
6
|
+
import { join as a } from "../styles/join.mjs";
|
|
7
|
+
import { Text as o } from "../Text/index.mjs";
|
|
8
8
|
import { input as s, slot as c } from "./SearchField.css.mjs";
|
|
9
9
|
import { useRef as l, useState as u } from "react";
|
|
10
10
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
@@ -17,8 +17,8 @@ function m({ value: m, defaultValue: h, onValueChange: g, placeholder: _, size:
|
|
|
17
17
|
if (T?.(e), e.defaultPrevented) return;
|
|
18
18
|
let t = e.nativeEvent.isComposing || e.keyCode === 229;
|
|
19
19
|
e.key === "Escape" && M && !t && (e.preventDefault(), e.stopPropagation(), j(""));
|
|
20
|
-
}, P =
|
|
21
|
-
return /* @__PURE__ */ f(
|
|
20
|
+
}, P = i[v];
|
|
21
|
+
return /* @__PURE__ */ f(e, {
|
|
22
22
|
alignItems: "center",
|
|
23
23
|
display: "grid",
|
|
24
24
|
children: [
|
|
@@ -29,9 +29,9 @@ function m({ value: m, defaultValue: h, onValueChange: g, placeholder: _, size:
|
|
|
29
29
|
onValueChange: j,
|
|
30
30
|
placeholder: _,
|
|
31
31
|
ref: w,
|
|
32
|
-
render: /* @__PURE__ */ d(
|
|
32
|
+
render: /* @__PURE__ */ d(o, {
|
|
33
33
|
as: "input",
|
|
34
|
-
className:
|
|
34
|
+
className: a(s({ size: v }), c.roomStart[v]),
|
|
35
35
|
ref: D,
|
|
36
36
|
size: P
|
|
37
37
|
}),
|
|
@@ -40,15 +40,15 @@ function m({ value: m, defaultValue: h, onValueChange: g, placeholder: _, size:
|
|
|
40
40
|
value: A
|
|
41
41
|
}),
|
|
42
42
|
C,
|
|
43
|
-
A !== "" && !y && /* @__PURE__ */ d(
|
|
43
|
+
A !== "" && !y && /* @__PURE__ */ d(t, {
|
|
44
44
|
borderRadius: "xs",
|
|
45
45
|
className: "_1cj8r6gk",
|
|
46
|
-
icon:
|
|
46
|
+
icon: n,
|
|
47
47
|
label: S,
|
|
48
48
|
onClick: () => {
|
|
49
49
|
j(""), D.current?.focus();
|
|
50
50
|
},
|
|
51
|
-
size:
|
|
51
|
+
size: r[v],
|
|
52
52
|
variant: "ghost"
|
|
53
53
|
})
|
|
54
54
|
]
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { Field as e } from "../Field/index.mjs";
|
|
2
|
+
import { InputIcons as t } from "../icon-slot/input-icons.mjs";
|
|
3
|
+
import { SearchIcon as n } from "../icons/SearchIcon.mjs";
|
|
4
|
+
import { controlText as r } from "../styles/control-size.mjs";
|
|
5
|
+
import { SearchFieldControl as i } from "./client.mjs";
|
|
6
|
+
import { hiddenLabel as a, slot as o } from "./SearchField.css.mjs";
|
|
7
7
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
// src/SearchField/index.tsx
|
|
9
|
-
function l({ label: l, hideLabel: u = !1, iconStart: d =
|
|
10
|
-
return /* @__PURE__ */ c(
|
|
9
|
+
function l({ label: l, hideLabel: u = !1, iconStart: d = n, value: f, defaultValue: p = "", onValueChange: m, placeholder: h, description: g, error: _, size: v = "med", disabled: y = !1, required: b = !1, name: x, clearLabel: S = "Clear search", inputProps: C, className: w, style: T, ...E }) {
|
|
10
|
+
return /* @__PURE__ */ c(e, {
|
|
11
11
|
...E,
|
|
12
12
|
className: w,
|
|
13
13
|
disabled: y,
|
|
14
14
|
invalid: _ != null && _ !== !1 && _ !== "",
|
|
15
15
|
style: T,
|
|
16
16
|
children: [
|
|
17
|
-
/* @__PURE__ */ s(
|
|
18
|
-
className: u ?
|
|
17
|
+
/* @__PURE__ */ s(e.Label, {
|
|
18
|
+
className: u ? a : void 0,
|
|
19
19
|
children: l
|
|
20
20
|
}),
|
|
21
|
-
/* @__PURE__ */ s(
|
|
21
|
+
/* @__PURE__ */ s(i, {
|
|
22
22
|
clearLabel: S,
|
|
23
23
|
defaultValue: p,
|
|
24
24
|
disabled: y,
|
|
25
|
-
icons: /* @__PURE__ */ s(
|
|
25
|
+
icons: /* @__PURE__ */ s(t, {
|
|
26
26
|
iconStart: d,
|
|
27
27
|
size: v,
|
|
28
|
-
step:
|
|
29
|
-
styles:
|
|
28
|
+
step: r[v],
|
|
29
|
+
styles: o
|
|
30
30
|
}),
|
|
31
31
|
inputProps: C,
|
|
32
32
|
name: x,
|
|
@@ -36,8 +36,8 @@ function l({ label: l, hideLabel: u = !1, iconStart: d = r, value: f, defaultVal
|
|
|
36
36
|
size: v,
|
|
37
37
|
value: f
|
|
38
38
|
}),
|
|
39
|
-
g != null && /* @__PURE__ */ s(
|
|
40
|
-
/* @__PURE__ */ s(
|
|
39
|
+
g != null && /* @__PURE__ */ s(e.Description, { children: g }),
|
|
40
|
+
/* @__PURE__ */ s(e.Error, { children: _ })
|
|
41
41
|
]
|
|
42
42
|
});
|
|
43
43
|
}
|
package/dist/Select/Select.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.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, 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.select{.e26gsj0{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}.e26gsj1{text-align:start;border-color:var(--color-border-strong);justify-content:stretch}:where(.e26gsj1) ._1gwwloa0{flex:auto;justify-items:stretch;min-inline-size:0}:where(.e26gsj1) ._1gwwloa1{min-inline-size:0}:where(.e26gsj1) ._1gwwloa2{flex:auto;min-inline-size:0}.e26gsj2{min-inline-size:0;display:block}.e26gsj2[data-placeholder]{color:var(--color-fg-muted)}.e26gsj3{border:var(--space-1) solid var(--color-border);min-inline-size:var(--anchor-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-y:auto}.e26gsj3:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}.e26gsj3[data-starting-style],.e26gsj3[data-ending-style]{opacity:0;scale:calc(1 - var(--scale-med))}.e26gsj4{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}.e26gsj4:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:calc(-1 * var(--space-2))}.e26gsj4[data-highlighted]{background-color:light-dark(var(--color-bg-muted),color-mix(in srgb, var(--color-fg) 10%, var(--color-bg-raised)))}.e26gsj4[aria-disabled=true]{color:var(--color-fg-muted);cursor:not-allowed}.e26gsj5{visibility:hidden;flex-shrink:0}.e26gsj4[aria-selected=true] .e26gsj5{visibility:visible}@media (forced-colors:active){.e26gsj1{--color-fg:CanvasText}.e26gsj1[aria-disabled=true]{border-color:graytext}.e26gsj4[data-highlighted]{forced-color-adjust:none;color:highlighttext;background-color:highlight}.e26gsj4[data-highlighted]:focus-visible{color:canvastext;background-color:canvas}.e26gsj4[aria-disabled=true]{color:graytext}}}
|
|
2
|
+
@layer components.select{.e26gsj0{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}.e26gsj1{text-align:start;border-color:var(--color-border-strong);justify-content:stretch}:where(.e26gsj1) ._1gwwloa0{flex:auto;justify-items:stretch;min-inline-size:0}:where(.e26gsj1) ._1gwwloa1{min-inline-size:0}:where(.e26gsj1) ._1gwwloa2{flex:auto;min-inline-size:0}.e26gsj2{min-inline-size:0;display:block}.e26gsj2[data-placeholder]{color:var(--color-fg-muted)}.e26gsj3{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-y:auto}.e26gsj3:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}.e26gsj3[data-starting-style],.e26gsj3[data-ending-style]{opacity:0;scale:calc(1 - var(--scale-med))}.e26gsj4{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;overflow-wrap:anywhere;-webkit-user-select:none;user-select:none}.e26gsj4:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:calc(-1 * var(--space-2))}.e26gsj4[data-highlighted]{background-color:light-dark(var(--color-bg-muted),color-mix(in srgb, var(--color-fg) 10%, var(--color-bg-raised)))}.e26gsj4[aria-disabled=true]{color:var(--color-fg-muted);cursor:not-allowed}.e26gsj5{visibility:hidden;flex-shrink:0}.e26gsj4[aria-selected=true] .e26gsj5{visibility:visible}@media (forced-colors:active){.e26gsj1{--color-fg:CanvasText}.e26gsj1[aria-disabled=true]{border-color:graytext}.e26gsj4[data-highlighted]{forced-color-adjust:none;color:highlighttext;background-color:highlight}.e26gsj4[data-highlighted]:focus-visible{color:canvastext;background-color:canvas}.e26gsj4[aria-disabled=true]{color:graytext}}}
|