@gryt/ui 0.6.0 → 0.7.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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1464 -1240
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme/createGrytTheme.d.ts +55 -1
- package/dist/theme/createGrytTheme.d.ts.map +1 -1
- package/dist/theme/oklch.d.ts +74 -0
- package/dist/theme/oklch.d.ts.map +1 -0
- package/dist/theme.css +534 -12
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -1,46 +1,198 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Tooltip as
|
|
3
|
-
import { Button as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { clsx as
|
|
6
|
-
import { twMerge as
|
|
7
|
-
import { Field as
|
|
8
|
-
import { PaperPlaneTilt as
|
|
9
|
-
import { Avatar as
|
|
10
|
-
import { Checkbox as
|
|
11
|
-
import { Radio as
|
|
12
|
-
import { RadioGroup as
|
|
13
|
-
import { Switch as
|
|
14
|
-
import { Slider as
|
|
15
|
-
import { Select as
|
|
16
|
-
import { Separator as
|
|
17
|
-
import { Progress as
|
|
18
|
-
import { Dialog as
|
|
19
|
-
import { Drawer as
|
|
20
|
-
import { Menu as
|
|
21
|
-
import { Tabs as
|
|
22
|
-
import { Accordion as
|
|
23
|
-
import { ContextMenu as
|
|
24
|
-
import { Popover as
|
|
25
|
-
import { Toast as
|
|
26
|
-
import { ScrollArea as
|
|
27
|
-
import { Toggle as
|
|
28
|
-
import { ToggleGroup as
|
|
29
|
-
import { Meter as
|
|
30
|
-
import { AlertDialog as
|
|
31
|
-
import { Autocomplete as
|
|
32
|
-
import { Combobox as
|
|
33
|
-
import { CheckboxGroup as
|
|
34
|
-
import { Collapsible as
|
|
35
|
-
import { Form as
|
|
36
|
-
import { Fieldset as
|
|
37
|
-
import { Menubar as
|
|
38
|
-
import { NavigationMenu as
|
|
39
|
-
import { NumberField as
|
|
40
|
-
import { OTPField as
|
|
41
|
-
import { PreviewCard as
|
|
42
|
-
import { Toolbar as
|
|
43
|
-
|
|
1
|
+
import { jsx as a, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip as j } from "@base-ui/react/tooltip";
|
|
3
|
+
import { Button as bt } from "@base-ui/react/button";
|
|
4
|
+
import { forwardRef as i, useRef as ht, useCallback as at, useLayoutEffect as Lt, useState as Mt, useEffect as At, useSyncExternalStore as Dt, useContext as nt, createContext as jt } from "react";
|
|
5
|
+
import { clsx as Gt } from "clsx";
|
|
6
|
+
import { twMerge as Bt } from "tailwind-merge";
|
|
7
|
+
import { Field as Q } from "@base-ui/react/field";
|
|
8
|
+
import { PaperPlaneTilt as zt, X as xt, Check as wt, CaretUpDown as Ft, CircleNotch as Et, CaretDown as Vt, Minus as _t, Plus as Ht } from "@phosphor-icons/react";
|
|
9
|
+
import { Avatar as tt } from "@base-ui/react/avatar";
|
|
10
|
+
import { Checkbox as lt } from "@base-ui/react/checkbox";
|
|
11
|
+
import { Radio as dt } from "@base-ui/react/radio";
|
|
12
|
+
import { RadioGroup as Ot } from "@base-ui/react/radio-group";
|
|
13
|
+
import { Switch as gt } from "@base-ui/react/switch";
|
|
14
|
+
import { Slider as _ } from "@base-ui/react/slider";
|
|
15
|
+
import { Select as v } from "@base-ui/react/select";
|
|
16
|
+
import { Separator as Ut } from "@base-ui/react/separator";
|
|
17
|
+
import { Progress as et } from "@base-ui/react/progress";
|
|
18
|
+
import { Dialog as L } from "@base-ui/react/dialog";
|
|
19
|
+
import { Drawer as T } from "@base-ui/react/drawer";
|
|
20
|
+
import { Menu as G } from "@base-ui/react/menu";
|
|
21
|
+
import { Tabs as W } from "@base-ui/react/tabs";
|
|
22
|
+
import { Accordion as U } from "@base-ui/react/accordion";
|
|
23
|
+
import { ContextMenu as I } from "@base-ui/react/context-menu";
|
|
24
|
+
import { Popover as C } from "@base-ui/react/popover";
|
|
25
|
+
import { Toast as R } from "@base-ui/react/toast";
|
|
26
|
+
import { ScrollArea as E } from "@base-ui/react/scroll-area";
|
|
27
|
+
import { Toggle as Xt } from "@base-ui/react/toggle";
|
|
28
|
+
import { ToggleGroup as Yt } from "@base-ui/react/toggle-group";
|
|
29
|
+
import { Meter as H } from "@base-ui/react/meter";
|
|
30
|
+
import { AlertDialog as M } from "@base-ui/react/alert-dialog";
|
|
31
|
+
import { Autocomplete as h } from "@base-ui/react/autocomplete";
|
|
32
|
+
import { Combobox as b } from "@base-ui/react/combobox";
|
|
33
|
+
import { CheckboxGroup as Wt } from "@base-ui/react/checkbox-group";
|
|
34
|
+
import { Collapsible as st } from "@base-ui/react/collapsible";
|
|
35
|
+
import { Form as Qt } from "@base-ui/react/form";
|
|
36
|
+
import { Fieldset as vt } from "@base-ui/react/fieldset";
|
|
37
|
+
import { Menubar as Jt } from "@base-ui/react/menubar";
|
|
38
|
+
import { NavigationMenu as N } from "@base-ui/react/navigation-menu";
|
|
39
|
+
import { NumberField as D } from "@base-ui/react/number-field";
|
|
40
|
+
import { OTPField as ut } from "@base-ui/react/otp-field";
|
|
41
|
+
import { PreviewCard as z } from "@base-ui/react/preview-card";
|
|
42
|
+
import { Toolbar as F } from "@base-ui/react/toolbar";
|
|
43
|
+
function Kt(o) {
|
|
44
|
+
return o <= 0.04045 ? o / 12.92 : ((o + 0.055) / 1.055) ** 2.4;
|
|
45
|
+
}
|
|
46
|
+
function rt(o) {
|
|
47
|
+
return o <= 31308e-7 ? 12.92 * o : 1.055 * o ** (1 / 2.4) - 0.055;
|
|
48
|
+
}
|
|
49
|
+
function O(o) {
|
|
50
|
+
return Math.min(1, Math.max(0, o));
|
|
51
|
+
}
|
|
52
|
+
function J(o) {
|
|
53
|
+
const e = o.replace("#", ""), r = e.length === 3 ? e.split("").map((t) => t + t).join("") : e;
|
|
54
|
+
return [
|
|
55
|
+
parseInt(r.slice(0, 2), 16) / 255,
|
|
56
|
+
parseInt(r.slice(2, 4), 16) / 255,
|
|
57
|
+
parseInt(r.slice(4, 6), 16) / 255
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
function Nt([o, e, r]) {
|
|
61
|
+
const t = (n) => Math.round(O(n) * 255).toString(16).padStart(2, "0");
|
|
62
|
+
return `#${t(o)}${t(e)}${t(r)}`;
|
|
63
|
+
}
|
|
64
|
+
function X(o) {
|
|
65
|
+
const [e, r, t] = J(o).map(Kt), n = Math.cbrt(
|
|
66
|
+
0.4122214708 * e + 0.5363325363 * r + 0.0514459929 * t
|
|
67
|
+
), c = Math.cbrt(
|
|
68
|
+
0.2119034982 * e + 0.6806995451 * r + 0.1073969566 * t
|
|
69
|
+
), l = Math.cbrt(
|
|
70
|
+
0.0883024619 * e + 0.2817188376 * r + 0.6299787005 * t
|
|
71
|
+
), d = 0.2104542553 * n + 0.793617785 * c - 0.0040720468 * l, u = 1.9779984951 * n - 2.428592205 * c + 0.4505937099 * l, m = 0.0259040371 * n + 0.7827717662 * c - 0.808675766 * l;
|
|
72
|
+
return {
|
|
73
|
+
l: d,
|
|
74
|
+
c: Math.hypot(u, m),
|
|
75
|
+
h: (Math.atan2(m, u) * 180 / Math.PI + 360) % 360
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function S({ l: o, c: e, h: r }) {
|
|
79
|
+
const t = e * Math.cos(r * Math.PI / 180), n = e * Math.sin(r * Math.PI / 180), c = (o + 0.3963377774 * t + 0.2158037573 * n) ** 3, l = (o - 0.1055613458 * t - 0.0638541728 * n) ** 3, d = (o - 0.0894841775 * t - 1.291485548 * n) ** 3;
|
|
80
|
+
return Nt([
|
|
81
|
+
rt(O(4.0767416621 * c - 3.3077115913 * l + 0.2309699292 * d)),
|
|
82
|
+
rt(O(-1.2684380046 * c + 2.6097574011 * l - 0.3413193965 * d)),
|
|
83
|
+
rt(O(-0.0041960863 * c - 0.7034186147 * l + 1.707614701 * d))
|
|
84
|
+
]);
|
|
85
|
+
}
|
|
86
|
+
const Zt = [0.195, 0.24, 0.27, 0.3, 0.33, 0.37, 0.43, 0.52], qt = [0.014, 0.026, 0.04, 0.052, 0.062, 0.072, 0.084, 0.1];
|
|
87
|
+
function k(o, e) {
|
|
88
|
+
const { h: r } = X(o), t = Zt.map((d, u) => S({ l: d, c: qt[u], h: r }));
|
|
89
|
+
t.push(o, e);
|
|
90
|
+
const n = X(e).l, c = Math.min(0.95, Math.max(0.84, n + 0.04)), l = Math.min(0.98, Math.max(c + 0.06, 0.93));
|
|
91
|
+
return t.push(S({ l: c, c: 0.11, h: r })), t.push(S({ l, c: 0.055, h: r })), t;
|
|
92
|
+
}
|
|
93
|
+
const te = [
|
|
94
|
+
0.187,
|
|
95
|
+
0.231,
|
|
96
|
+
0.245,
|
|
97
|
+
0.268,
|
|
98
|
+
0.289,
|
|
99
|
+
0.31,
|
|
100
|
+
0.355,
|
|
101
|
+
0.425,
|
|
102
|
+
0.52,
|
|
103
|
+
0.57,
|
|
104
|
+
0.627,
|
|
105
|
+
0.908
|
|
106
|
+
], ee = [
|
|
107
|
+
0.011,
|
|
108
|
+
0.014,
|
|
109
|
+
0.016,
|
|
110
|
+
0.019,
|
|
111
|
+
0.022,
|
|
112
|
+
0.024,
|
|
113
|
+
0.026,
|
|
114
|
+
0.026,
|
|
115
|
+
0.02,
|
|
116
|
+
0.012,
|
|
117
|
+
0,
|
|
118
|
+
8e-3
|
|
119
|
+
];
|
|
120
|
+
function Pt(o) {
|
|
121
|
+
const e = {
|
|
122
|
+
0: o.bg,
|
|
123
|
+
1: o.surface,
|
|
124
|
+
2: o.surfaceRaised,
|
|
125
|
+
5: o.border,
|
|
126
|
+
10: o.muted,
|
|
127
|
+
11: o.text
|
|
128
|
+
}, r = X(o.border).h;
|
|
129
|
+
return te.map(
|
|
130
|
+
(t, n) => e[n] ?? S({ l: t, c: ee[n], h: r })
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
function Y(o, e) {
|
|
134
|
+
const r = J(e);
|
|
135
|
+
return o.map((t) => {
|
|
136
|
+
const n = J(t);
|
|
137
|
+
let c = 0;
|
|
138
|
+
for (let g = 0; g < 3; g++) {
|
|
139
|
+
const f = n[g], P = r[g];
|
|
140
|
+
f > P ? c = Math.max(c, P < 1 ? (f - P) / (1 - P) : 0) : f < P && (c = Math.max(c, P > 0 ? (P - f) / P : 0));
|
|
141
|
+
}
|
|
142
|
+
if (c < 1e-6) return "transparent";
|
|
143
|
+
const l = Nt(
|
|
144
|
+
n.map((g, f) => O(r[f] + (g - r[f]) / c))
|
|
145
|
+
), [d, u, m] = J(l).map((g) => Math.round(g * 255));
|
|
146
|
+
return `rgb(${d} ${u} ${m} / ${(c * 100).toFixed(1)}%)`;
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
const re = [
|
|
150
|
+
0.962,
|
|
151
|
+
1,
|
|
152
|
+
0.978,
|
|
153
|
+
0.952,
|
|
154
|
+
0.928,
|
|
155
|
+
0.898,
|
|
156
|
+
0.855,
|
|
157
|
+
0.79,
|
|
158
|
+
0.66,
|
|
159
|
+
0.61,
|
|
160
|
+
0.48,
|
|
161
|
+
0.25
|
|
162
|
+
], oe = [
|
|
163
|
+
6e-3,
|
|
164
|
+
0,
|
|
165
|
+
4e-3,
|
|
166
|
+
7e-3,
|
|
167
|
+
0.01,
|
|
168
|
+
0.013,
|
|
169
|
+
0.016,
|
|
170
|
+
0.018,
|
|
171
|
+
0.016,
|
|
172
|
+
0.014,
|
|
173
|
+
0.012,
|
|
174
|
+
0.014
|
|
175
|
+
], ae = [0.975, 0.955, 0.93, 0.905, 0.878, 0.845, 0.795, 0.72], ne = [0.012, 0.024, 0.038, 0.05, 0.062, 0.074, 0.09, 0.11];
|
|
176
|
+
function Tt(o) {
|
|
177
|
+
const e = {
|
|
178
|
+
0: o.bg,
|
|
179
|
+
1: o.surface,
|
|
180
|
+
2: o.surfaceRaised,
|
|
181
|
+
5: o.border,
|
|
182
|
+
10: o.muted,
|
|
183
|
+
11: o.text
|
|
184
|
+
}, r = X(o.border).h;
|
|
185
|
+
return re.map(
|
|
186
|
+
(t, n) => e[n] ?? S({ l: t, c: oe[n], h: r })
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
function $(o) {
|
|
190
|
+
const { l: e, c: r, h: t } = X(o), n = ae.map(
|
|
191
|
+
(c, l) => S({ l: c, c: ne[l], h: t })
|
|
192
|
+
);
|
|
193
|
+
return n.push(o), n.push(S({ l: Math.max(0, e - 0.07), c: r, h: t })), n.push(S({ l: 0.5, c: 0.15, h: t })), n.push(S({ l: 0.33, c: 0.1, h: t })), n;
|
|
194
|
+
}
|
|
195
|
+
const y = {
|
|
44
196
|
color: {
|
|
45
197
|
bg: "#111318",
|
|
46
198
|
surface: "#1a1d24",
|
|
@@ -49,7 +201,7 @@ const ot = {
|
|
|
49
201
|
border: "#2b303d",
|
|
50
202
|
text: "#e0e0e6",
|
|
51
203
|
muted: "#888888",
|
|
52
|
-
accent: "#
|
|
204
|
+
accent: "#968ff8",
|
|
53
205
|
accentLight: "#b4afff",
|
|
54
206
|
secondary: "#7dd3fc",
|
|
55
207
|
secondaryLight: "#bae6fd",
|
|
@@ -68,10 +220,77 @@ const ot = {
|
|
|
68
220
|
xl: 28,
|
|
69
221
|
full: 999
|
|
70
222
|
}
|
|
223
|
+
}, K = {
|
|
224
|
+
bg: "#f1f2f7",
|
|
225
|
+
surface: "#ffffff",
|
|
226
|
+
surfaceRaised: "#f7f8fb",
|
|
227
|
+
border: "#dadde6",
|
|
228
|
+
muted: "#5b5d65",
|
|
229
|
+
text: "#1f2129"
|
|
230
|
+
}, yt = {
|
|
231
|
+
neutral: Pt({
|
|
232
|
+
bg: y.color.bg,
|
|
233
|
+
surface: y.color.surface,
|
|
234
|
+
surfaceRaised: y.color.surfaceRaised,
|
|
235
|
+
border: y.color.border,
|
|
236
|
+
muted: y.color.muted,
|
|
237
|
+
text: y.color.text
|
|
238
|
+
}),
|
|
239
|
+
accent: k(y.color.accent, y.color.accentLight),
|
|
240
|
+
secondary: k(
|
|
241
|
+
y.color.secondary,
|
|
242
|
+
y.color.secondaryLight
|
|
243
|
+
),
|
|
244
|
+
success: k(y.color.success, y.color.success),
|
|
245
|
+
danger: k(y.color.danger, y.color.dangerLight),
|
|
246
|
+
warning: k(y.color.warning, y.color.warning)
|
|
247
|
+
}, mt = {
|
|
248
|
+
neutral: Tt(K),
|
|
249
|
+
accent: $(y.color.accent),
|
|
250
|
+
secondary: $(y.color.secondary),
|
|
251
|
+
success: $(y.color.success),
|
|
252
|
+
danger: $(y.color.danger),
|
|
253
|
+
warning: $(y.color.warning)
|
|
254
|
+
}, Lo = {
|
|
255
|
+
neutral: Y(yt.neutral, y.color.bg),
|
|
256
|
+
accent: Y(yt.accent, y.color.bg)
|
|
257
|
+
}, Mo = {
|
|
258
|
+
neutral: Y(mt.neutral, K.bg),
|
|
259
|
+
accent: Y(mt.accent, K.bg)
|
|
71
260
|
};
|
|
72
|
-
function
|
|
73
|
-
const t = { ...
|
|
261
|
+
function se(o = {}) {
|
|
262
|
+
const e = o.appearance === "light", t = { ...e ? { ...y.color, ...K } : y.color, ...o.color }, n = { ...y.radius, ...o.radius }, c = {
|
|
263
|
+
bg: t.bg,
|
|
264
|
+
surface: t.surface,
|
|
265
|
+
surfaceRaised: t.surfaceRaised,
|
|
266
|
+
border: t.border,
|
|
267
|
+
muted: t.muted,
|
|
268
|
+
text: t.text
|
|
269
|
+
}, l = e ? {
|
|
270
|
+
neutral: Tt(c),
|
|
271
|
+
accent: $(t.accent),
|
|
272
|
+
secondary: $(t.secondary),
|
|
273
|
+
success: $(t.success),
|
|
274
|
+
danger: $(t.danger),
|
|
275
|
+
warning: $(t.warning)
|
|
276
|
+
} : {
|
|
277
|
+
neutral: Pt(c),
|
|
278
|
+
accent: k(t.accent, t.accentLight),
|
|
279
|
+
secondary: k(t.secondary, t.secondaryLight),
|
|
280
|
+
success: k(t.success, t.success),
|
|
281
|
+
danger: k(t.danger, t.dangerLight),
|
|
282
|
+
warning: k(t.warning, t.warning)
|
|
283
|
+
}, d = {};
|
|
284
|
+
for (const [u, m] of Object.entries(l))
|
|
285
|
+
m.forEach((g, f) => {
|
|
286
|
+
d[`--gryt-${u}-${f + 1}`] = g, d[`--color-gryt-${u}-${f + 1}`] = g;
|
|
287
|
+
});
|
|
288
|
+
for (const u of ["neutral", "accent"])
|
|
289
|
+
Y(l[u], t.bg).forEach((m, g) => {
|
|
290
|
+
d[`--gryt-${u}-a${g + 1}`] = m, d[`--color-gryt-${u}-a${g + 1}`] = m;
|
|
291
|
+
});
|
|
74
292
|
return {
|
|
293
|
+
...d,
|
|
75
294
|
"--gryt-bg": t.bg,
|
|
76
295
|
"--gryt-surface": t.surface,
|
|
77
296
|
"--gryt-surface-raised": t.surfaceRaised,
|
|
@@ -111,54 +330,54 @@ function Bt(a = {}) {
|
|
|
111
330
|
"--color-gryt-on-accent": t.onAccent,
|
|
112
331
|
"--color-gryt-on-secondary": t.onSecondary,
|
|
113
332
|
"--color-gryt-on-danger": t.onDanger,
|
|
114
|
-
"--gryt-radius-sm": `${
|
|
115
|
-
"--gryt-radius-md": `${
|
|
116
|
-
"--gryt-radius-lg": `${
|
|
117
|
-
"--gryt-radius-xl": `${
|
|
118
|
-
"--gryt-radius-full": `${
|
|
333
|
+
"--gryt-radius-sm": `${n.sm}px`,
|
|
334
|
+
"--gryt-radius-md": `${n.md}px`,
|
|
335
|
+
"--gryt-radius-lg": `${n.lg}px`,
|
|
336
|
+
"--gryt-radius-xl": `${n.xl}px`,
|
|
337
|
+
"--gryt-radius-full": `${n.full}px`
|
|
119
338
|
};
|
|
120
339
|
}
|
|
121
|
-
function
|
|
122
|
-
return Object.keys(
|
|
340
|
+
function ie(o) {
|
|
341
|
+
return Object.keys(o).some((e) => e.startsWith("--"));
|
|
123
342
|
}
|
|
124
|
-
function
|
|
125
|
-
children:
|
|
126
|
-
className:
|
|
127
|
-
theme:
|
|
128
|
-
tooltipDelay:
|
|
343
|
+
function Ao({
|
|
344
|
+
children: o,
|
|
345
|
+
className: e,
|
|
346
|
+
theme: r,
|
|
347
|
+
tooltipDelay: t = 400
|
|
129
348
|
}) {
|
|
130
|
-
const
|
|
131
|
-
return /* @__PURE__ */
|
|
349
|
+
const n = r && ie(r) ? r : se(r ?? {});
|
|
350
|
+
return /* @__PURE__ */ a("div", { className: e, style: n, children: /* @__PURE__ */ a(j.Provider, { delay: t, children: o }) });
|
|
132
351
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
352
|
+
function s(...o) {
|
|
353
|
+
return Bt(Gt(o));
|
|
135
354
|
}
|
|
136
|
-
const
|
|
355
|
+
const ce = {
|
|
137
356
|
primary: "bg-gryt-accent text-gryt-on-accent hover:not-data-disabled:bg-gryt-accent-light",
|
|
138
357
|
secondary: "bg-gryt-secondary text-gryt-on-secondary hover:not-data-disabled:bg-gryt-secondary-light",
|
|
139
358
|
neutral: "bg-gryt-surface-raised text-gryt-text hover:not-data-disabled:bg-gryt-surface-hover",
|
|
140
359
|
danger: "bg-gryt-danger text-gryt-on-danger hover:not-data-disabled:bg-gryt-danger-light",
|
|
141
360
|
ghost: "bg-transparent text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"
|
|
142
|
-
},
|
|
361
|
+
}, le = {
|
|
143
362
|
xsmall: "min-h-8 px-3 text-xs",
|
|
144
363
|
small: "min-h-9 px-4 text-sm",
|
|
145
364
|
medium: "min-h-10 px-5 text-sm",
|
|
146
365
|
large: "min-h-12 px-6 text-base"
|
|
147
|
-
},
|
|
366
|
+
}, de = i(
|
|
148
367
|
function({
|
|
149
|
-
children:
|
|
150
|
-
className:
|
|
151
|
-
endIcon:
|
|
152
|
-
size:
|
|
368
|
+
children: e,
|
|
369
|
+
className: r,
|
|
370
|
+
endIcon: t,
|
|
371
|
+
size: n = "medium",
|
|
153
372
|
startIcon: c,
|
|
154
373
|
tone: l = "primary",
|
|
155
|
-
...
|
|
374
|
+
...d
|
|
156
375
|
}, u) {
|
|
157
|
-
return /* @__PURE__ */
|
|
158
|
-
|
|
376
|
+
return /* @__PURE__ */ p(
|
|
377
|
+
bt,
|
|
159
378
|
{
|
|
160
379
|
ref: u,
|
|
161
|
-
className:
|
|
380
|
+
className: s(
|
|
162
381
|
"gryt-button",
|
|
163
382
|
"inline-flex items-center justify-center gap-2 border-0 shadow-none",
|
|
164
383
|
"rounded-(--gryt-radius-full) font-semibold whitespace-nowrap select-none",
|
|
@@ -179,81 +398,81 @@ const Ft = {
|
|
|
179
398
|
"motion-safe:not-[[aria-haspopup]]:active:not-data-disabled:scale-[0.96]",
|
|
180
399
|
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",
|
|
181
400
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
401
|
+
le[n],
|
|
402
|
+
ce[l],
|
|
403
|
+
r
|
|
185
404
|
),
|
|
186
|
-
...
|
|
405
|
+
...d,
|
|
187
406
|
children: [
|
|
188
407
|
c,
|
|
189
|
-
|
|
190
|
-
|
|
408
|
+
e,
|
|
409
|
+
t
|
|
191
410
|
]
|
|
192
411
|
}
|
|
193
412
|
);
|
|
194
413
|
}
|
|
195
|
-
),
|
|
414
|
+
), x = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light", ge = "has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-gryt-accent-light", kt = [
|
|
196
415
|
"w-full rounded-(--gryt-radius-xl) border bg-gryt-surface-raised",
|
|
197
416
|
"text-gryt-text outline-none placeholder:text-gryt-muted",
|
|
198
417
|
"transition-colors duration-150 motion-reduce:transition-none",
|
|
199
418
|
"hover:border-gryt-accent-light focus:border-gryt-accent",
|
|
200
419
|
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
201
|
-
].join(" "),
|
|
420
|
+
].join(" "), $t = {
|
|
202
421
|
small: "min-h-9 px-3 py-1.5 text-sm",
|
|
203
422
|
medium: "min-h-11 px-4 py-2.5 text-sm"
|
|
204
|
-
},
|
|
423
|
+
}, B = "rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text", A = [
|
|
205
424
|
// scale and translate are named explicitly because Tailwind v4 sets them as
|
|
206
425
|
// standalone CSS properties rather than folding them into `transform`, so
|
|
207
426
|
// transitioning `transform` would leave the popup snapping into place.
|
|
208
427
|
"transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
|
|
209
428
|
"data-starting-style:scale-[0.98] data-starting-style:opacity-0",
|
|
210
429
|
"data-ending-style:scale-[0.98] data-ending-style:opacity-0"
|
|
211
|
-
].join(" "),
|
|
430
|
+
].join(" "), V = "data-disabled:cursor-not-allowed data-disabled:opacity-50", ue = {
|
|
212
431
|
primary: "data-checked:bg-gryt-accent data-checked:text-gryt-on-accent",
|
|
213
432
|
secondary: "data-checked:bg-gryt-secondary data-checked:text-gryt-on-secondary",
|
|
214
433
|
neutral: "data-checked:bg-gryt-surface-hover data-checked:text-gryt-text",
|
|
215
434
|
danger: "data-checked:bg-gryt-danger data-checked:text-gryt-on-danger",
|
|
216
435
|
success: "data-checked:bg-gryt-success data-checked:text-gryt-on-accent",
|
|
217
436
|
warning: "data-checked:bg-gryt-warning data-checked:text-gryt-on-accent"
|
|
218
|
-
},
|
|
437
|
+
}, Ct = {
|
|
219
438
|
primary: "bg-gryt-accent",
|
|
220
439
|
secondary: "bg-gryt-secondary",
|
|
221
440
|
neutral: "bg-gryt-surface-hover",
|
|
222
441
|
danger: "bg-gryt-danger",
|
|
223
442
|
success: "bg-gryt-success",
|
|
224
443
|
warning: "bg-gryt-warning"
|
|
225
|
-
},
|
|
444
|
+
}, ye = {
|
|
226
445
|
primary: "data-checked:border-gryt-accent",
|
|
227
446
|
secondary: "data-checked:border-gryt-secondary",
|
|
228
447
|
neutral: "data-checked:border-gryt-muted",
|
|
229
448
|
danger: "data-checked:border-gryt-danger",
|
|
230
449
|
success: "data-checked:border-gryt-success",
|
|
231
450
|
warning: "data-checked:border-gryt-warning"
|
|
232
|
-
},
|
|
451
|
+
}, me = {
|
|
233
452
|
primary: "data-checked:bg-gryt-accent",
|
|
234
453
|
secondary: "data-checked:bg-gryt-secondary",
|
|
235
454
|
neutral: "data-checked:bg-gryt-surface-hover",
|
|
236
455
|
danger: "data-checked:bg-gryt-danger",
|
|
237
456
|
success: "data-checked:bg-gryt-success",
|
|
238
457
|
warning: "data-checked:bg-gryt-warning"
|
|
239
|
-
},
|
|
458
|
+
}, pe = {
|
|
240
459
|
primary: "text-gryt-accent hover:not-data-disabled:bg-gryt-accent/10",
|
|
241
460
|
secondary: "text-gryt-secondary hover:not-data-disabled:bg-gryt-secondary/10",
|
|
242
461
|
neutral: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text",
|
|
243
462
|
danger: "text-gryt-danger hover:not-data-disabled:bg-gryt-danger/10",
|
|
244
463
|
ghost: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"
|
|
245
|
-
},
|
|
464
|
+
}, fe = {
|
|
246
465
|
xsmall: "h-8 w-8",
|
|
247
466
|
small: "h-9 w-9",
|
|
248
467
|
medium: "h-10 w-10",
|
|
249
468
|
large: "h-12 w-12"
|
|
250
|
-
},
|
|
251
|
-
function({ className:
|
|
252
|
-
return /* @__PURE__ */
|
|
253
|
-
|
|
469
|
+
}, Do = i(
|
|
470
|
+
function({ className: e, size: r = "medium", tone: t = "neutral", ...n }, c) {
|
|
471
|
+
return /* @__PURE__ */ a(
|
|
472
|
+
bt,
|
|
254
473
|
{
|
|
255
474
|
ref: c,
|
|
256
|
-
className:
|
|
475
|
+
className: s(
|
|
257
476
|
"gryt-icon-button",
|
|
258
477
|
"inline-flex shrink-0 items-center justify-center border-0 bg-transparent p-0",
|
|
259
478
|
"rounded-(--gryt-radius-full) select-none",
|
|
@@ -267,295 +486,295 @@ const Ft = {
|
|
|
267
486
|
// that is what it is; Base UI puts it there, nothing to pass.
|
|
268
487
|
"motion-safe:not-[[aria-haspopup]]:hover:not-data-disabled:scale-[1.06]",
|
|
269
488
|
"motion-safe:not-[[aria-haspopup]]:active:not-data-disabled:scale-[0.94]",
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
489
|
+
x,
|
|
490
|
+
V,
|
|
491
|
+
fe[r],
|
|
492
|
+
pe[t],
|
|
493
|
+
e
|
|
275
494
|
),
|
|
276
|
-
...
|
|
495
|
+
...n
|
|
277
496
|
}
|
|
278
497
|
);
|
|
279
498
|
}
|
|
280
|
-
),
|
|
281
|
-
function({ className:
|
|
282
|
-
return /* @__PURE__ */
|
|
499
|
+
), jo = i(
|
|
500
|
+
function({ className: e, elevated: r = !1, ...t }, n) {
|
|
501
|
+
return /* @__PURE__ */ a(
|
|
283
502
|
"div",
|
|
284
503
|
{
|
|
285
|
-
ref:
|
|
286
|
-
className:
|
|
504
|
+
ref: n,
|
|
505
|
+
className: s(
|
|
287
506
|
"gryt-surface rounded-(--gryt-radius-lg) border border-gryt-border p-4 text-gryt-text",
|
|
288
|
-
|
|
289
|
-
|
|
507
|
+
r ? "bg-gryt-surface-raised" : "bg-gryt-surface",
|
|
508
|
+
e
|
|
290
509
|
),
|
|
291
|
-
...
|
|
510
|
+
...t
|
|
292
511
|
}
|
|
293
512
|
);
|
|
294
513
|
}
|
|
295
|
-
),
|
|
296
|
-
function({ children:
|
|
297
|
-
return /* @__PURE__ */
|
|
514
|
+
), Go = i(
|
|
515
|
+
function({ children: e, className: r, from: t = "assistant", ...n }, c) {
|
|
516
|
+
return /* @__PURE__ */ a(
|
|
298
517
|
"div",
|
|
299
518
|
{
|
|
300
519
|
ref: c,
|
|
301
|
-
className:
|
|
520
|
+
className: s(
|
|
302
521
|
"gryt-message-bubble",
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
522
|
+
t === "user" && "ml-auto bg-gryt-accent text-gryt-on-accent",
|
|
523
|
+
t === "assistant" && "mr-auto border border-gryt-border bg-gryt-surface text-gryt-text",
|
|
524
|
+
t === "system" && "mx-auto border border-dashed border-gryt-border bg-transparent text-gryt-muted",
|
|
525
|
+
r
|
|
307
526
|
),
|
|
308
|
-
...
|
|
309
|
-
children:
|
|
527
|
+
...n,
|
|
528
|
+
children: e
|
|
310
529
|
}
|
|
311
530
|
);
|
|
312
531
|
}
|
|
313
|
-
),
|
|
532
|
+
), Bo = i(
|
|
314
533
|
function({
|
|
315
|
-
className:
|
|
316
|
-
error:
|
|
317
|
-
fieldClassName:
|
|
318
|
-
helperText:
|
|
534
|
+
className: e,
|
|
535
|
+
error: r = !1,
|
|
536
|
+
fieldClassName: t,
|
|
537
|
+
helperText: n,
|
|
319
538
|
label: c,
|
|
320
539
|
minRows: l = 3,
|
|
321
|
-
multiline:
|
|
540
|
+
multiline: d = !1,
|
|
322
541
|
size: u = "medium",
|
|
323
|
-
...
|
|
324
|
-
},
|
|
325
|
-
const
|
|
326
|
-
|
|
542
|
+
...m
|
|
543
|
+
}, g) {
|
|
544
|
+
const f = /* @__PURE__ */ a(
|
|
545
|
+
Q.Control,
|
|
327
546
|
{
|
|
328
|
-
ref:
|
|
329
|
-
render:
|
|
330
|
-
className:
|
|
547
|
+
ref: g,
|
|
548
|
+
render: d ? /* @__PURE__ */ a("textarea", { rows: l }) : void 0,
|
|
549
|
+
className: s(
|
|
331
550
|
"gryt-text-field-control",
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
551
|
+
kt,
|
|
552
|
+
d && "resize-y leading-6",
|
|
553
|
+
r ? "border-gryt-danger" : "border-gryt-border",
|
|
554
|
+
$t[u],
|
|
555
|
+
e
|
|
337
556
|
),
|
|
338
|
-
...
|
|
557
|
+
...m
|
|
339
558
|
}
|
|
340
559
|
);
|
|
341
|
-
return /* @__PURE__ */
|
|
342
|
-
|
|
560
|
+
return /* @__PURE__ */ p(
|
|
561
|
+
Q.Root,
|
|
343
562
|
{
|
|
344
|
-
className:
|
|
563
|
+
className: s(
|
|
345
564
|
"gryt-text-field flex w-full flex-col gap-1.5",
|
|
346
|
-
|
|
565
|
+
t
|
|
347
566
|
),
|
|
348
567
|
children: [
|
|
349
|
-
c ? /* @__PURE__ */
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
568
|
+
c ? /* @__PURE__ */ a(Q.Label, { className: "text-xs font-medium text-gryt-muted", children: c }) : null,
|
|
569
|
+
f,
|
|
570
|
+
n ? /* @__PURE__ */ a(
|
|
571
|
+
Q.Description,
|
|
353
572
|
{
|
|
354
|
-
className:
|
|
573
|
+
className: s(
|
|
355
574
|
"text-xs",
|
|
356
|
-
|
|
575
|
+
r ? "text-gryt-danger" : "text-gryt-muted"
|
|
357
576
|
),
|
|
358
|
-
children:
|
|
577
|
+
children: n
|
|
359
578
|
}
|
|
360
579
|
) : null
|
|
361
580
|
]
|
|
362
581
|
}
|
|
363
582
|
);
|
|
364
583
|
}
|
|
365
|
-
),
|
|
584
|
+
), zo = i(
|
|
366
585
|
function({
|
|
367
|
-
className:
|
|
368
|
-
disabled:
|
|
369
|
-
maxRows:
|
|
370
|
-
minRows:
|
|
586
|
+
className: e,
|
|
587
|
+
disabled: r = !1,
|
|
588
|
+
maxRows: t = 8,
|
|
589
|
+
minRows: n = 1,
|
|
371
590
|
onSubmit: c,
|
|
372
591
|
placeholder: l = "Message Gryt",
|
|
373
|
-
submitLabel:
|
|
592
|
+
submitLabel: d = "Send",
|
|
374
593
|
...u
|
|
375
|
-
},
|
|
376
|
-
const
|
|
377
|
-
const
|
|
378
|
-
if (!
|
|
594
|
+
}, m) {
|
|
595
|
+
const g = ht(null), f = at(() => {
|
|
596
|
+
const w = g.current;
|
|
597
|
+
if (!w)
|
|
379
598
|
return;
|
|
380
|
-
const
|
|
381
|
-
|
|
382
|
-
Math.max(
|
|
383
|
-
|
|
599
|
+
const q = window.getComputedStyle(w), it = parseFloat(q.lineHeight) || 24, ct = parseFloat(q.paddingTop) + parseFloat(q.paddingBottom);
|
|
600
|
+
w.style.height = "auto", w.style.height = `${Math.min(
|
|
601
|
+
Math.max(w.scrollHeight, it * n + ct),
|
|
602
|
+
it * t + ct
|
|
384
603
|
)}px`;
|
|
385
|
-
}, [
|
|
386
|
-
|
|
387
|
-
function
|
|
604
|
+
}, [t, n]);
|
|
605
|
+
Lt(f, [f, u.value]);
|
|
606
|
+
function P(w) {
|
|
388
607
|
if (!c) {
|
|
389
|
-
|
|
608
|
+
w.preventDefault();
|
|
390
609
|
return;
|
|
391
610
|
}
|
|
392
|
-
c(
|
|
611
|
+
c(w);
|
|
393
612
|
}
|
|
394
|
-
return /* @__PURE__ */
|
|
395
|
-
/* @__PURE__ */
|
|
613
|
+
return /* @__PURE__ */ p("form", { className: s("gryt-composer", e), onSubmit: P, children: [
|
|
614
|
+
/* @__PURE__ */ a(
|
|
396
615
|
"textarea",
|
|
397
616
|
{
|
|
398
|
-
ref: (
|
|
399
|
-
|
|
617
|
+
ref: (w) => {
|
|
618
|
+
g.current = w, typeof m == "function" ? m(w) : m && (m.current = w);
|
|
400
619
|
},
|
|
401
|
-
rows:
|
|
402
|
-
disabled:
|
|
620
|
+
rows: n,
|
|
621
|
+
disabled: r,
|
|
403
622
|
placeholder: l,
|
|
404
|
-
onInput:
|
|
623
|
+
onInput: f,
|
|
405
624
|
className: "gryt-composer-textarea disabled:cursor-not-allowed disabled:opacity-60",
|
|
406
625
|
...u
|
|
407
626
|
}
|
|
408
627
|
),
|
|
409
|
-
/* @__PURE__ */
|
|
410
|
-
|
|
628
|
+
/* @__PURE__ */ a(
|
|
629
|
+
de,
|
|
411
630
|
{
|
|
412
631
|
type: "submit",
|
|
413
|
-
disabled:
|
|
632
|
+
disabled: r,
|
|
414
633
|
size: "small",
|
|
415
|
-
endIcon: /* @__PURE__ */
|
|
416
|
-
children:
|
|
634
|
+
endIcon: /* @__PURE__ */ a(zt, { size: 14, weight: "fill" }),
|
|
635
|
+
children: d
|
|
417
636
|
}
|
|
418
637
|
)
|
|
419
638
|
] });
|
|
420
639
|
}
|
|
421
|
-
),
|
|
640
|
+
), be = {
|
|
422
641
|
small: "h-8 w-8 text-xs",
|
|
423
642
|
medium: "h-10 w-10 text-sm",
|
|
424
643
|
large: "h-12 w-12 text-base"
|
|
425
|
-
},
|
|
426
|
-
return /* @__PURE__ */
|
|
427
|
-
|
|
644
|
+
}, he = i(function({ alt: e, children: r, className: t, fallback: n, size: c = "medium", src: l, ...d }, u) {
|
|
645
|
+
return /* @__PURE__ */ p(
|
|
646
|
+
tt.Root,
|
|
428
647
|
{
|
|
429
648
|
ref: u,
|
|
430
|
-
className:
|
|
649
|
+
className: s(
|
|
431
650
|
"gryt-avatar inline-flex shrink-0 items-center justify-center overflow-hidden align-middle select-none",
|
|
432
651
|
"rounded-(--gryt-radius-full) bg-gryt-surface-raised font-medium text-gryt-text ring-1 ring-gryt-border",
|
|
433
|
-
|
|
434
|
-
|
|
652
|
+
be[c],
|
|
653
|
+
t
|
|
435
654
|
),
|
|
436
|
-
...
|
|
655
|
+
...d,
|
|
437
656
|
children: [
|
|
438
|
-
l ? /* @__PURE__ */
|
|
439
|
-
|
|
657
|
+
l ? /* @__PURE__ */ a(
|
|
658
|
+
tt.Image,
|
|
440
659
|
{
|
|
441
660
|
src: l,
|
|
442
|
-
alt:
|
|
661
|
+
alt: e,
|
|
443
662
|
className: "h-full w-full object-cover"
|
|
444
663
|
}
|
|
445
664
|
) : null,
|
|
446
|
-
/* @__PURE__ */
|
|
665
|
+
/* @__PURE__ */ a(tt.Fallback, { className: "flex h-full w-full items-center justify-center", children: n ?? r })
|
|
447
666
|
]
|
|
448
667
|
}
|
|
449
668
|
);
|
|
450
|
-
}),
|
|
451
|
-
return /* @__PURE__ */
|
|
669
|
+
}), Fo = i(function({ active: e = !1, avatar: r, className: t, subtitle: n, title: c, ...l }, d) {
|
|
670
|
+
return /* @__PURE__ */ p(
|
|
452
671
|
"button",
|
|
453
672
|
{
|
|
454
|
-
ref:
|
|
673
|
+
ref: d,
|
|
455
674
|
type: "button",
|
|
456
|
-
className:
|
|
675
|
+
className: s(
|
|
457
676
|
"gryt-conversation-item",
|
|
458
|
-
|
|
459
|
-
|
|
677
|
+
e ? "bg-gryt-accent text-gryt-on-accent" : "text-gryt-text hover:bg-white/5",
|
|
678
|
+
t
|
|
460
679
|
),
|
|
461
680
|
...l,
|
|
462
681
|
children: [
|
|
463
|
-
|
|
464
|
-
|
|
682
|
+
r ?? /* @__PURE__ */ a(
|
|
683
|
+
he,
|
|
465
684
|
{
|
|
466
685
|
size: "small",
|
|
467
|
-
className:
|
|
468
|
-
|
|
686
|
+
className: s(
|
|
687
|
+
e ? "bg-gryt-on-accent text-gryt-accent ring-transparent" : "bg-gryt-surface-raised text-gryt-text"
|
|
469
688
|
),
|
|
470
689
|
children: c.slice(0, 1).toUpperCase()
|
|
471
690
|
}
|
|
472
691
|
),
|
|
473
|
-
/* @__PURE__ */
|
|
474
|
-
/* @__PURE__ */
|
|
475
|
-
|
|
692
|
+
/* @__PURE__ */ p("span", { className: "min-w-0 flex-1", children: [
|
|
693
|
+
/* @__PURE__ */ a("span", { className: "block truncate text-sm font-semibold", children: c }),
|
|
694
|
+
n ? /* @__PURE__ */ a(
|
|
476
695
|
"span",
|
|
477
696
|
{
|
|
478
|
-
className:
|
|
697
|
+
className: s(
|
|
479
698
|
"block truncate text-xs",
|
|
480
|
-
|
|
699
|
+
e ? "text-gryt-on-accent/70" : "text-gryt-muted"
|
|
481
700
|
),
|
|
482
|
-
children:
|
|
701
|
+
children: n
|
|
483
702
|
}
|
|
484
703
|
) : null
|
|
485
704
|
] })
|
|
486
705
|
]
|
|
487
706
|
}
|
|
488
707
|
);
|
|
489
|
-
}),
|
|
490
|
-
const u = typeof
|
|
491
|
-
return /* @__PURE__ */
|
|
708
|
+
}), Eo = i(function({ badgeContent: e, children: r, className: t, max: n = 99, showZero: c = !1, ...l }, d) {
|
|
709
|
+
const u = typeof e == "number" ? e : null, m = u !== null && u === 0 && !c, g = u !== null && u > n ? `${n}+` : e;
|
|
710
|
+
return /* @__PURE__ */ p(
|
|
492
711
|
"span",
|
|
493
712
|
{
|
|
494
|
-
ref:
|
|
495
|
-
className:
|
|
713
|
+
ref: d,
|
|
714
|
+
className: s("gryt-badge relative inline-flex", t),
|
|
496
715
|
...l,
|
|
497
716
|
children: [
|
|
498
|
-
|
|
499
|
-
|
|
717
|
+
r,
|
|
718
|
+
e !== void 0 && !m ? /* @__PURE__ */ a(
|
|
500
719
|
"span",
|
|
501
720
|
{
|
|
502
|
-
className:
|
|
721
|
+
className: s(
|
|
503
722
|
"gryt-badge-dot absolute -top-1 -right-1 z-10 inline-flex items-center justify-center",
|
|
504
723
|
"min-w-5 rounded-(--gryt-radius-full) px-1.5 py-0.5",
|
|
505
724
|
"bg-gryt-accent text-[0.65rem] leading-none font-semibold text-gryt-on-accent",
|
|
506
725
|
"ring-2 ring-gryt-bg"
|
|
507
726
|
),
|
|
508
|
-
children:
|
|
727
|
+
children: g
|
|
509
728
|
}
|
|
510
729
|
) : null
|
|
511
730
|
]
|
|
512
731
|
}
|
|
513
732
|
);
|
|
514
|
-
}),
|
|
733
|
+
}), xe = {
|
|
515
734
|
neutral: "border-gryt-border bg-gryt-surface-raised text-gryt-text",
|
|
516
735
|
primary: "border-gryt-accent/40 bg-gryt-accent/12 text-gryt-accent",
|
|
517
736
|
secondary: "border-gryt-secondary/40 bg-gryt-secondary/12 text-gryt-secondary",
|
|
518
737
|
success: "border-gryt-success/40 bg-gryt-success/12 text-gryt-success",
|
|
519
738
|
warning: "border-gryt-warning/40 bg-gryt-warning/12 text-gryt-warning",
|
|
520
739
|
danger: "border-gryt-danger/40 bg-gryt-danger/12 text-gryt-danger"
|
|
521
|
-
},
|
|
522
|
-
return /* @__PURE__ */
|
|
740
|
+
}, Vo = i(function({ children: e, className: r, icon: t, label: n, onDelete: c, tone: l = "neutral", ...d }, u) {
|
|
741
|
+
return /* @__PURE__ */ p(
|
|
523
742
|
"span",
|
|
524
743
|
{
|
|
525
744
|
ref: u,
|
|
526
|
-
className:
|
|
745
|
+
className: s(
|
|
527
746
|
"gryt-chip inline-flex items-center gap-1.5 rounded-(--gryt-radius-full) border px-3 py-1 text-xs font-medium",
|
|
528
|
-
|
|
529
|
-
|
|
747
|
+
xe[l],
|
|
748
|
+
r
|
|
530
749
|
),
|
|
531
|
-
...
|
|
750
|
+
...d,
|
|
532
751
|
children: [
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
c ? /* @__PURE__ */
|
|
752
|
+
t,
|
|
753
|
+
n ?? e,
|
|
754
|
+
c ? /* @__PURE__ */ a(
|
|
536
755
|
"button",
|
|
537
756
|
{
|
|
538
757
|
type: "button",
|
|
539
758
|
"aria-label": "Remove",
|
|
540
759
|
onClick: c,
|
|
541
|
-
className:
|
|
760
|
+
className: s(
|
|
542
761
|
"-mr-1 inline-flex h-4 w-4 items-center justify-center rounded-(--gryt-radius-full)",
|
|
543
762
|
"opacity-70 transition-opacity hover:opacity-100",
|
|
544
|
-
|
|
763
|
+
x
|
|
545
764
|
),
|
|
546
|
-
children: /* @__PURE__ */
|
|
765
|
+
children: /* @__PURE__ */ a(xt, { size: 10, weight: "bold", "aria-hidden": "true" })
|
|
547
766
|
}
|
|
548
767
|
) : null
|
|
549
768
|
]
|
|
550
769
|
}
|
|
551
770
|
);
|
|
552
|
-
}),
|
|
553
|
-
function({ className:
|
|
554
|
-
return /* @__PURE__ */
|
|
555
|
-
|
|
771
|
+
}), _o = i(
|
|
772
|
+
function({ className: e, tone: r = "primary", ...t }, n) {
|
|
773
|
+
return /* @__PURE__ */ a(
|
|
774
|
+
lt.Root,
|
|
556
775
|
{
|
|
557
|
-
ref:
|
|
558
|
-
className:
|
|
776
|
+
ref: n,
|
|
777
|
+
className: s(
|
|
559
778
|
"gryt-checkbox flex h-5 w-5 shrink-0 items-center justify-center",
|
|
560
779
|
"rounded-(--gryt-radius-sm) border border-gryt-border bg-gryt-surface-raised",
|
|
561
780
|
"transition-[scale,background-color,border-color] duration-(--gryt-dur-spring) ease-spring",
|
|
@@ -565,18 +784,18 @@ const Ft = {
|
|
|
565
784
|
"hover:not-data-disabled:border-gryt-accent-light",
|
|
566
785
|
"motion-safe:hover:not-data-disabled:scale-[1.08]",
|
|
567
786
|
"motion-safe:active:not-data-disabled:scale-[0.92]",
|
|
568
|
-
|
|
569
|
-
|
|
787
|
+
x,
|
|
788
|
+
V,
|
|
570
789
|
// Unchecked stays a neutral outline; the tone only paints once checked.
|
|
571
|
-
|
|
572
|
-
|
|
790
|
+
ue[r],
|
|
791
|
+
e
|
|
573
792
|
),
|
|
574
|
-
...
|
|
575
|
-
children: /* @__PURE__ */
|
|
576
|
-
|
|
793
|
+
...t,
|
|
794
|
+
children: /* @__PURE__ */ a(
|
|
795
|
+
lt.Indicator,
|
|
577
796
|
{
|
|
578
797
|
keepMounted: !0,
|
|
579
|
-
className:
|
|
798
|
+
className: s(
|
|
580
799
|
"flex origin-center",
|
|
581
800
|
"transition-[scale,opacity] duration-(--gryt-dur-spring) ease-spring",
|
|
582
801
|
// Scaling from 0 rather than from something near 1 is deliberate.
|
|
@@ -586,65 +805,65 @@ const Ft = {
|
|
|
586
805
|
"data-unchecked:scale-0 data-unchecked:opacity-0",
|
|
587
806
|
"motion-reduce:transition-none"
|
|
588
807
|
),
|
|
589
|
-
children: /* @__PURE__ */
|
|
808
|
+
children: /* @__PURE__ */ a(wt, { size: 12, weight: "bold" })
|
|
590
809
|
}
|
|
591
810
|
)
|
|
592
811
|
}
|
|
593
812
|
);
|
|
594
813
|
}
|
|
595
|
-
),
|
|
596
|
-
return /* @__PURE__ */
|
|
597
|
-
|
|
814
|
+
), Ho = i(function({ className: e, tone: r = "primary", ...t }, n) {
|
|
815
|
+
return /* @__PURE__ */ a(
|
|
816
|
+
dt.Root,
|
|
598
817
|
{
|
|
599
|
-
ref:
|
|
600
|
-
className:
|
|
818
|
+
ref: n,
|
|
819
|
+
className: s(
|
|
601
820
|
"gryt-radio flex h-5 w-5 shrink-0 items-center justify-center",
|
|
602
821
|
"rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface-raised",
|
|
603
822
|
"transition-[scale,background-color,border-color] duration-(--gryt-dur-spring) ease-spring",
|
|
604
823
|
"hover:not-data-disabled:border-gryt-accent-light",
|
|
605
824
|
"motion-safe:hover:not-data-disabled:scale-[1.08]",
|
|
606
825
|
"motion-safe:active:not-data-disabled:scale-[0.92]",
|
|
607
|
-
|
|
608
|
-
|
|
826
|
+
x,
|
|
827
|
+
V,
|
|
609
828
|
// Border takes the tone when selected; the dot inside carries the fill.
|
|
610
|
-
|
|
611
|
-
|
|
829
|
+
ye[r],
|
|
830
|
+
e
|
|
612
831
|
),
|
|
613
|
-
...
|
|
614
|
-
children: /* @__PURE__ */
|
|
615
|
-
|
|
832
|
+
...t,
|
|
833
|
+
children: /* @__PURE__ */ a(
|
|
834
|
+
dt.Indicator,
|
|
616
835
|
{
|
|
617
836
|
keepMounted: !0,
|
|
618
|
-
className:
|
|
837
|
+
className: s(
|
|
619
838
|
"h-2.5 w-2.5 origin-center rounded-(--gryt-radius-full)",
|
|
620
839
|
"transition-[scale,opacity] duration-(--gryt-dur-spring) ease-spring",
|
|
621
840
|
// From 0, for the same reason as the Checkbox tick — see the note there.
|
|
622
841
|
"data-unchecked:scale-0 data-unchecked:opacity-0",
|
|
623
842
|
"motion-reduce:transition-none",
|
|
624
|
-
|
|
843
|
+
Ct[r]
|
|
625
844
|
)
|
|
626
845
|
}
|
|
627
846
|
)
|
|
628
847
|
}
|
|
629
848
|
);
|
|
630
|
-
}),
|
|
631
|
-
function({ className:
|
|
632
|
-
return /* @__PURE__ */
|
|
633
|
-
|
|
849
|
+
}), Oo = i(
|
|
850
|
+
function({ className: e, ...r }, t) {
|
|
851
|
+
return /* @__PURE__ */ a(
|
|
852
|
+
Ot,
|
|
634
853
|
{
|
|
635
|
-
ref:
|
|
636
|
-
className:
|
|
637
|
-
...
|
|
854
|
+
ref: t,
|
|
855
|
+
className: s("gryt-radio-group flex flex-col gap-2", e),
|
|
856
|
+
...r
|
|
638
857
|
}
|
|
639
858
|
);
|
|
640
859
|
}
|
|
641
|
-
),
|
|
642
|
-
function({ className:
|
|
643
|
-
return /* @__PURE__ */
|
|
644
|
-
|
|
860
|
+
), Uo = i(
|
|
861
|
+
function({ className: e, tone: r = "primary", ...t }, n) {
|
|
862
|
+
return /* @__PURE__ */ a(
|
|
863
|
+
gt.Root,
|
|
645
864
|
{
|
|
646
|
-
ref:
|
|
647
|
-
className:
|
|
865
|
+
ref: n,
|
|
866
|
+
className: s(
|
|
648
867
|
"gryt-switch relative inline-flex h-6 w-10 shrink-0 items-center",
|
|
649
868
|
"rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface-raised p-0.5",
|
|
650
869
|
"transition-[scale,background-color,border-color] duration-(--gryt-dur-spring) ease-spring",
|
|
@@ -652,16 +871,16 @@ const Ft = {
|
|
|
652
871
|
"hover:not-data-disabled:border-gryt-accent-light",
|
|
653
872
|
"motion-safe:hover:not-data-disabled:scale-[1.05]",
|
|
654
873
|
"motion-safe:active:not-data-disabled:scale-[0.95]",
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
874
|
+
x,
|
|
875
|
+
V,
|
|
876
|
+
me[r],
|
|
877
|
+
e
|
|
659
878
|
),
|
|
660
|
-
...
|
|
661
|
-
children: /* @__PURE__ */
|
|
662
|
-
|
|
879
|
+
...t,
|
|
880
|
+
children: /* @__PURE__ */ a(
|
|
881
|
+
gt.Thumb,
|
|
663
882
|
{
|
|
664
|
-
className:
|
|
883
|
+
className: s(
|
|
665
884
|
"h-4.5 w-4.5 rounded-(--gryt-radius-full) bg-gryt-text",
|
|
666
885
|
"transition-transform duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
|
|
667
886
|
"data-checked:translate-x-4 data-checked:bg-gryt-bg"
|
|
@@ -671,70 +890,70 @@ const Ft = {
|
|
|
671
890
|
}
|
|
672
891
|
);
|
|
673
892
|
}
|
|
674
|
-
),
|
|
675
|
-
function
|
|
676
|
-
className:
|
|
677
|
-
tone:
|
|
678
|
-
"aria-label":
|
|
679
|
-
...
|
|
893
|
+
), pt = 3;
|
|
894
|
+
function Xo({
|
|
895
|
+
className: o,
|
|
896
|
+
tone: e = "primary",
|
|
897
|
+
"aria-label": r,
|
|
898
|
+
...t
|
|
680
899
|
}) {
|
|
681
|
-
const [
|
|
682
|
-
|
|
683
|
-
if (!
|
|
900
|
+
const [n, c] = Mt(!1), l = ht(null);
|
|
901
|
+
At(() => {
|
|
902
|
+
if (!n && l.current === null)
|
|
684
903
|
return;
|
|
685
|
-
const
|
|
904
|
+
const g = () => {
|
|
686
905
|
l.current = null, c(!1);
|
|
687
906
|
};
|
|
688
|
-
return window.addEventListener("pointerup",
|
|
689
|
-
window.removeEventListener("pointerup",
|
|
907
|
+
return window.addEventListener("pointerup", g), window.addEventListener("pointercancel", g), () => {
|
|
908
|
+
window.removeEventListener("pointerup", g), window.removeEventListener("pointercancel", g);
|
|
690
909
|
};
|
|
691
|
-
}, [
|
|
692
|
-
function
|
|
693
|
-
l.current = { x:
|
|
910
|
+
}, [n]);
|
|
911
|
+
function d(g) {
|
|
912
|
+
l.current = { x: g.clientX, y: g.clientY };
|
|
694
913
|
}
|
|
695
|
-
function u(
|
|
696
|
-
const
|
|
697
|
-
if (
|
|
914
|
+
function u(g) {
|
|
915
|
+
const f = l.current;
|
|
916
|
+
if (f === null || n)
|
|
698
917
|
return;
|
|
699
|
-
(Math.abs(
|
|
918
|
+
(Math.abs(g.clientX - f.x) > pt || Math.abs(g.clientY - f.y) > pt) && c(!0);
|
|
700
919
|
}
|
|
701
|
-
const
|
|
702
|
-
return /* @__PURE__ */
|
|
703
|
-
|
|
920
|
+
const m = n ? "transition-none" : "duration-(--gryt-dur-spring) ease-spring-tight motion-reduce:transition-none";
|
|
921
|
+
return /* @__PURE__ */ a(_.Root, { className: s("gryt-slider w-full", o), ...t, children: /* @__PURE__ */ a(
|
|
922
|
+
_.Control,
|
|
704
923
|
{
|
|
705
924
|
className: "flex w-full touch-none items-center py-2 select-none",
|
|
706
|
-
onPointerDown:
|
|
925
|
+
onPointerDown: d,
|
|
707
926
|
onPointerMove: u,
|
|
708
|
-
children: /* @__PURE__ */
|
|
709
|
-
/* @__PURE__ */
|
|
710
|
-
|
|
927
|
+
children: /* @__PURE__ */ p(_.Track, { className: "h-1.5 w-full rounded-(--gryt-radius-full) bg-gryt-surface-raised select-none", children: [
|
|
928
|
+
/* @__PURE__ */ a(
|
|
929
|
+
_.Indicator,
|
|
711
930
|
{
|
|
712
|
-
className:
|
|
931
|
+
className: s(
|
|
713
932
|
"h-full rounded-(--gryt-radius-full) select-none",
|
|
714
933
|
"transition-[width]",
|
|
715
|
-
|
|
716
|
-
|
|
934
|
+
m,
|
|
935
|
+
Ct[e]
|
|
717
936
|
)
|
|
718
937
|
}
|
|
719
938
|
),
|
|
720
|
-
/* @__PURE__ */
|
|
721
|
-
|
|
939
|
+
/* @__PURE__ */ a(
|
|
940
|
+
_.Thumb,
|
|
722
941
|
{
|
|
723
|
-
"aria-label":
|
|
724
|
-
className:
|
|
942
|
+
"aria-label": r,
|
|
943
|
+
className: s(
|
|
725
944
|
"group h-4 w-4 rounded-(--gryt-radius-full) select-none",
|
|
726
945
|
"transition-[inset-inline-start]",
|
|
727
|
-
|
|
946
|
+
m,
|
|
728
947
|
// The ring goes on the thumb but the focus lands on the visually
|
|
729
948
|
// hidden input inside it, so this has to match a descendant.
|
|
730
949
|
// Without it the slider is the one control here you cannot see
|
|
731
950
|
// yourself tab to.
|
|
732
|
-
|
|
951
|
+
ge
|
|
733
952
|
),
|
|
734
|
-
children: /* @__PURE__ */
|
|
953
|
+
children: /* @__PURE__ */ a(
|
|
735
954
|
"span",
|
|
736
955
|
{
|
|
737
|
-
className:
|
|
956
|
+
className: s(
|
|
738
957
|
"block h-full w-full rounded-(--gryt-radius-full) bg-gryt-text",
|
|
739
958
|
"transition-[scale] duration-(--gryt-dur-spring) ease-spring",
|
|
740
959
|
"motion-safe:group-hover:scale-[1.12] motion-safe:group-active:scale-[0.94]",
|
|
@@ -748,58 +967,58 @@ function vo({
|
|
|
748
967
|
}
|
|
749
968
|
) });
|
|
750
969
|
}
|
|
751
|
-
const
|
|
970
|
+
const we = {
|
|
752
971
|
small: "min-h-9 px-3 text-sm",
|
|
753
972
|
medium: "min-h-11 px-4 text-sm"
|
|
754
973
|
};
|
|
755
|
-
function
|
|
756
|
-
className:
|
|
757
|
-
label:
|
|
758
|
-
options:
|
|
759
|
-
placeholder:
|
|
760
|
-
size:
|
|
974
|
+
function Yo({
|
|
975
|
+
className: o,
|
|
976
|
+
label: e,
|
|
977
|
+
options: r = [],
|
|
978
|
+
placeholder: t = "Select",
|
|
979
|
+
size: n = "medium",
|
|
761
980
|
...c
|
|
762
981
|
}) {
|
|
763
|
-
return /* @__PURE__ */
|
|
764
|
-
/* @__PURE__ */
|
|
765
|
-
|
|
766
|
-
/* @__PURE__ */
|
|
767
|
-
|
|
982
|
+
return /* @__PURE__ */ p(v.Root, { items: r, ...c, children: [
|
|
983
|
+
/* @__PURE__ */ p("div", { className: s("gryt-select flex w-full flex-col gap-1.5", o), children: [
|
|
984
|
+
e ? /* @__PURE__ */ a(v.Label, { className: "text-xs font-medium text-gryt-muted", children: e }) : null,
|
|
985
|
+
/* @__PURE__ */ p(
|
|
986
|
+
v.Trigger,
|
|
768
987
|
{
|
|
769
|
-
className:
|
|
988
|
+
className: s(
|
|
770
989
|
"flex w-full items-center justify-between gap-2",
|
|
771
990
|
"rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface-raised",
|
|
772
991
|
"text-gryt-text select-none",
|
|
773
992
|
"transition-colors duration-150 hover:border-gryt-accent-light",
|
|
774
993
|
"data-disabled:cursor-not-allowed data-disabled:opacity-60",
|
|
775
|
-
|
|
776
|
-
|
|
994
|
+
x,
|
|
995
|
+
we[n]
|
|
777
996
|
),
|
|
778
997
|
children: [
|
|
779
|
-
/* @__PURE__ */
|
|
780
|
-
/* @__PURE__ */
|
|
998
|
+
/* @__PURE__ */ a(v.Value, { placeholder: t }),
|
|
999
|
+
/* @__PURE__ */ a(v.Icon, { className: "shrink-0 text-gryt-muted", children: /* @__PURE__ */ a(Ft, { size: 16 }) })
|
|
781
1000
|
]
|
|
782
1001
|
}
|
|
783
1002
|
)
|
|
784
1003
|
] }),
|
|
785
|
-
/* @__PURE__ */
|
|
786
|
-
|
|
1004
|
+
/* @__PURE__ */ a(v.Portal, { children: /* @__PURE__ */ a(v.Positioner, { sideOffset: 6, className: "outline-none", children: /* @__PURE__ */ a(
|
|
1005
|
+
v.Popup,
|
|
787
1006
|
{
|
|
788
|
-
className:
|
|
789
|
-
children: /* @__PURE__ */
|
|
790
|
-
|
|
1007
|
+
className: s("min-w-(--anchor-width) p-1", B, A),
|
|
1008
|
+
children: /* @__PURE__ */ a(v.List, { children: r.map((l) => /* @__PURE__ */ p(
|
|
1009
|
+
v.Item,
|
|
791
1010
|
{
|
|
792
1011
|
value: l.value,
|
|
793
1012
|
disabled: l.disabled,
|
|
794
|
-
className:
|
|
1013
|
+
className: s(
|
|
795
1014
|
"flex cursor-default items-center justify-between gap-2",
|
|
796
1015
|
"rounded-(--gryt-radius-md) px-3 py-2 text-sm text-gryt-text",
|
|
797
1016
|
"outline-none select-none data-highlighted:bg-gryt-surface-raised",
|
|
798
1017
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50"
|
|
799
1018
|
),
|
|
800
1019
|
children: [
|
|
801
|
-
/* @__PURE__ */
|
|
802
|
-
/* @__PURE__ */
|
|
1020
|
+
/* @__PURE__ */ a(v.ItemText, { children: l.label }),
|
|
1021
|
+
/* @__PURE__ */ a(v.ItemIndicator, { className: "text-gryt-accent", children: /* @__PURE__ */ a(wt, { size: 14, weight: "bold" }) })
|
|
803
1022
|
]
|
|
804
1023
|
},
|
|
805
1024
|
String(l.value)
|
|
@@ -808,182 +1027,182 @@ function No({
|
|
|
808
1027
|
) }) })
|
|
809
1028
|
] });
|
|
810
1029
|
}
|
|
811
|
-
function
|
|
812
|
-
children:
|
|
813
|
-
className:
|
|
814
|
-
side:
|
|
815
|
-
sideOffset:
|
|
816
|
-
title:
|
|
1030
|
+
function Wo({
|
|
1031
|
+
children: o,
|
|
1032
|
+
className: e,
|
|
1033
|
+
side: r = "top",
|
|
1034
|
+
sideOffset: t = 8,
|
|
1035
|
+
title: n
|
|
817
1036
|
}) {
|
|
818
|
-
return /* @__PURE__ */
|
|
819
|
-
/* @__PURE__ */
|
|
820
|
-
/* @__PURE__ */
|
|
821
|
-
|
|
1037
|
+
return /* @__PURE__ */ p(j.Root, { children: [
|
|
1038
|
+
/* @__PURE__ */ a(j.Trigger, { render: o }),
|
|
1039
|
+
/* @__PURE__ */ a(j.Portal, { children: /* @__PURE__ */ a(j.Positioner, { side: r, sideOffset: t, children: /* @__PURE__ */ a(
|
|
1040
|
+
j.Popup,
|
|
822
1041
|
{
|
|
823
|
-
className:
|
|
1042
|
+
className: s(
|
|
824
1043
|
"gryt-tooltip rounded-(--gryt-radius-md) border border-gryt-border bg-gryt-surface-raised",
|
|
825
1044
|
"px-2.5 py-1.5 text-xs text-gryt-text",
|
|
826
|
-
|
|
827
|
-
|
|
1045
|
+
A,
|
|
1046
|
+
e
|
|
828
1047
|
),
|
|
829
|
-
children:
|
|
1048
|
+
children: n
|
|
830
1049
|
}
|
|
831
1050
|
) }) })
|
|
832
1051
|
] });
|
|
833
1052
|
}
|
|
834
|
-
const
|
|
835
|
-
function({ className:
|
|
836
|
-
return /* @__PURE__ */
|
|
837
|
-
|
|
1053
|
+
const Qo = j.Provider, Jo = i(
|
|
1054
|
+
function({ className: e, orientation: r = "horizontal", ...t }, n) {
|
|
1055
|
+
return /* @__PURE__ */ a(
|
|
1056
|
+
Ut,
|
|
838
1057
|
{
|
|
839
|
-
ref:
|
|
840
|
-
orientation:
|
|
841
|
-
className:
|
|
1058
|
+
ref: n,
|
|
1059
|
+
orientation: r,
|
|
1060
|
+
className: s(
|
|
842
1061
|
"gryt-divider bg-gryt-border",
|
|
843
|
-
|
|
844
|
-
|
|
1062
|
+
r === "vertical" ? "h-full w-px" : "h-px w-full",
|
|
1063
|
+
e
|
|
845
1064
|
),
|
|
846
|
-
...
|
|
1065
|
+
...t
|
|
847
1066
|
}
|
|
848
1067
|
);
|
|
849
1068
|
}
|
|
850
|
-
),
|
|
851
|
-
return /* @__PURE__ */
|
|
1069
|
+
), Ko = i(function({ className: e, ...r }, t) {
|
|
1070
|
+
return /* @__PURE__ */ a(
|
|
852
1071
|
"div",
|
|
853
1072
|
{
|
|
854
|
-
ref:
|
|
855
|
-
className:
|
|
1073
|
+
ref: t,
|
|
1074
|
+
className: s(
|
|
856
1075
|
"gryt-card rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text",
|
|
857
|
-
|
|
1076
|
+
e
|
|
858
1077
|
),
|
|
859
|
-
...
|
|
1078
|
+
...r
|
|
860
1079
|
}
|
|
861
1080
|
);
|
|
862
1081
|
});
|
|
863
|
-
function
|
|
864
|
-
children:
|
|
865
|
-
className:
|
|
866
|
-
subheader:
|
|
867
|
-
title:
|
|
868
|
-
...
|
|
1082
|
+
function Zo({
|
|
1083
|
+
children: o,
|
|
1084
|
+
className: e,
|
|
1085
|
+
subheader: r,
|
|
1086
|
+
title: t,
|
|
1087
|
+
...n
|
|
869
1088
|
}) {
|
|
870
|
-
return /* @__PURE__ */
|
|
1089
|
+
return /* @__PURE__ */ p(
|
|
871
1090
|
"div",
|
|
872
1091
|
{
|
|
873
|
-
className:
|
|
874
|
-
...
|
|
1092
|
+
className: s("gryt-card-header flex flex-col gap-1 p-4", e),
|
|
1093
|
+
...n,
|
|
875
1094
|
children: [
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
1095
|
+
t ? /* @__PURE__ */ a("span", { className: "text-base font-semibold text-gryt-text", children: t }) : null,
|
|
1096
|
+
r ? /* @__PURE__ */ a("span", { className: "text-sm text-gryt-muted", children: r }) : null,
|
|
1097
|
+
o
|
|
879
1098
|
]
|
|
880
1099
|
}
|
|
881
1100
|
);
|
|
882
1101
|
}
|
|
883
|
-
function
|
|
884
|
-
className:
|
|
885
|
-
...
|
|
1102
|
+
function qo({
|
|
1103
|
+
className: o,
|
|
1104
|
+
...e
|
|
886
1105
|
}) {
|
|
887
|
-
return /* @__PURE__ */
|
|
1106
|
+
return /* @__PURE__ */ a(
|
|
888
1107
|
"div",
|
|
889
1108
|
{
|
|
890
|
-
className:
|
|
1109
|
+
className: s(
|
|
891
1110
|
"gryt-card-content px-4 pb-4 text-sm text-gryt-muted",
|
|
892
|
-
|
|
1111
|
+
o
|
|
893
1112
|
),
|
|
894
|
-
...
|
|
1113
|
+
...e
|
|
895
1114
|
}
|
|
896
1115
|
);
|
|
897
1116
|
}
|
|
898
|
-
function
|
|
899
|
-
className:
|
|
900
|
-
...
|
|
1117
|
+
function ta({
|
|
1118
|
+
className: o,
|
|
1119
|
+
...e
|
|
901
1120
|
}) {
|
|
902
|
-
return /* @__PURE__ */
|
|
1121
|
+
return /* @__PURE__ */ a(
|
|
903
1122
|
"div",
|
|
904
1123
|
{
|
|
905
|
-
className:
|
|
1124
|
+
className: s(
|
|
906
1125
|
"gryt-card-actions flex items-center gap-2 px-4 pb-4",
|
|
907
|
-
|
|
1126
|
+
o
|
|
908
1127
|
),
|
|
909
|
-
...
|
|
1128
|
+
...e
|
|
910
1129
|
}
|
|
911
1130
|
);
|
|
912
1131
|
}
|
|
913
|
-
const
|
|
1132
|
+
const ve = {
|
|
914
1133
|
info: "border-gryt-secondary/40 bg-gryt-secondary/10 text-gryt-secondary",
|
|
915
1134
|
success: "border-gryt-success/40 bg-gryt-success/10 text-gryt-success",
|
|
916
1135
|
warning: "border-gryt-warning/40 bg-gryt-warning/10 text-gryt-warning",
|
|
917
1136
|
error: "border-gryt-danger/40 bg-gryt-danger/10 text-gryt-danger"
|
|
918
|
-
},
|
|
919
|
-
return /* @__PURE__ */
|
|
1137
|
+
}, ea = i(function({ className: e, severity: r = "info", ...t }, n) {
|
|
1138
|
+
return /* @__PURE__ */ a(
|
|
920
1139
|
"div",
|
|
921
1140
|
{
|
|
922
|
-
ref:
|
|
1141
|
+
ref: n,
|
|
923
1142
|
role: "alert",
|
|
924
|
-
className:
|
|
1143
|
+
className: s(
|
|
925
1144
|
"gryt-alert rounded-(--gryt-radius-lg) border px-4 py-3 text-sm",
|
|
926
|
-
|
|
927
|
-
|
|
1145
|
+
ve[r],
|
|
1146
|
+
e
|
|
928
1147
|
),
|
|
929
|
-
...
|
|
1148
|
+
...t
|
|
930
1149
|
}
|
|
931
1150
|
);
|
|
932
1151
|
});
|
|
933
|
-
function
|
|
934
|
-
return /* @__PURE__ */
|
|
935
|
-
|
|
1152
|
+
function ra({ className: o, value: e = null, ...r }) {
|
|
1153
|
+
return /* @__PURE__ */ a(
|
|
1154
|
+
et.Root,
|
|
936
1155
|
{
|
|
937
|
-
value:
|
|
938
|
-
className:
|
|
939
|
-
...
|
|
940
|
-
children: /* @__PURE__ */
|
|
1156
|
+
value: e,
|
|
1157
|
+
className: s("gryt-progress w-full", o),
|
|
1158
|
+
...r,
|
|
1159
|
+
children: /* @__PURE__ */ a(et.Track, { className: "h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised", children: /* @__PURE__ */ a(et.Indicator, { className: "h-full rounded-(--gryt-radius-full) bg-gryt-accent transition-[width] duration-300 ease-out motion-reduce:transition-none" }) })
|
|
941
1160
|
}
|
|
942
1161
|
);
|
|
943
1162
|
}
|
|
944
|
-
function
|
|
945
|
-
className:
|
|
946
|
-
size:
|
|
947
|
-
"aria-label":
|
|
1163
|
+
function oa({
|
|
1164
|
+
className: o,
|
|
1165
|
+
size: e = 24,
|
|
1166
|
+
"aria-label": r = "Loading"
|
|
948
1167
|
}) {
|
|
949
|
-
return /* @__PURE__ */
|
|
950
|
-
|
|
1168
|
+
return /* @__PURE__ */ a(
|
|
1169
|
+
Et,
|
|
951
1170
|
{
|
|
952
1171
|
role: "status",
|
|
953
|
-
"aria-label":
|
|
954
|
-
size:
|
|
1172
|
+
"aria-label": r,
|
|
1173
|
+
size: e,
|
|
955
1174
|
weight: "bold",
|
|
956
|
-
className:
|
|
1175
|
+
className: s(
|
|
957
1176
|
"gryt-spinner text-gryt-accent motion-safe:animate-spin",
|
|
958
|
-
|
|
1177
|
+
o
|
|
959
1178
|
)
|
|
960
1179
|
}
|
|
961
1180
|
);
|
|
962
1181
|
}
|
|
963
|
-
const
|
|
1182
|
+
const Ne = {
|
|
964
1183
|
text: "h-4 rounded-(--gryt-radius-sm)",
|
|
965
1184
|
rounded: "rounded-(--gryt-radius-lg)",
|
|
966
1185
|
circular: "rounded-(--gryt-radius-full)",
|
|
967
1186
|
rectangular: "rounded-none"
|
|
968
1187
|
};
|
|
969
|
-
function
|
|
970
|
-
className:
|
|
971
|
-
height:
|
|
972
|
-
style:
|
|
973
|
-
variant:
|
|
974
|
-
width:
|
|
1188
|
+
function aa({
|
|
1189
|
+
className: o,
|
|
1190
|
+
height: e,
|
|
1191
|
+
style: r,
|
|
1192
|
+
variant: t = "text",
|
|
1193
|
+
width: n,
|
|
975
1194
|
...c
|
|
976
1195
|
}) {
|
|
977
1196
|
const l = {
|
|
978
|
-
width:
|
|
979
|
-
height:
|
|
980
|
-
...
|
|
1197
|
+
width: n,
|
|
1198
|
+
height: e,
|
|
1199
|
+
...r
|
|
981
1200
|
};
|
|
982
|
-
return /* @__PURE__ */
|
|
1201
|
+
return /* @__PURE__ */ a(
|
|
983
1202
|
"div",
|
|
984
1203
|
{
|
|
985
1204
|
"aria-hidden": "true",
|
|
986
|
-
className:
|
|
1205
|
+
className: s(
|
|
987
1206
|
// Not bg-gryt-surface-raised. #1e2028 against #1a1d24 is four points of
|
|
988
1207
|
// luminance, which is invisible on a laptop screen at an angle — the
|
|
989
1208
|
// placeholder that is meant to say "something is coming" said nothing.
|
|
@@ -991,131 +1210,131 @@ function Mo({
|
|
|
991
1210
|
// the surfaces it can land on rather than only the one it was picked
|
|
992
1211
|
// against, and it dims rather than brightens as it pulses.
|
|
993
1212
|
"gryt-skeleton bg-white/9 motion-safe:animate-pulse",
|
|
994
|
-
|
|
995
|
-
|
|
1213
|
+
Ne[t],
|
|
1214
|
+
o
|
|
996
1215
|
),
|
|
997
1216
|
style: l,
|
|
998
1217
|
...c
|
|
999
1218
|
}
|
|
1000
1219
|
);
|
|
1001
1220
|
}
|
|
1002
|
-
const
|
|
1003
|
-
function({ className:
|
|
1004
|
-
return /* @__PURE__ */
|
|
1005
|
-
|
|
1221
|
+
const St = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none", Pe = i(
|
|
1222
|
+
function({ className: e, ...r }, t) {
|
|
1223
|
+
return /* @__PURE__ */ a(
|
|
1224
|
+
L.Backdrop,
|
|
1006
1225
|
{
|
|
1007
|
-
ref:
|
|
1008
|
-
className:
|
|
1226
|
+
ref: t,
|
|
1227
|
+
className: s(
|
|
1009
1228
|
"gryt-dialog-backdrop fixed inset-0 min-h-dvh bg-black/60",
|
|
1010
1229
|
"backdrop-blur-(--gryt-backdrop-blur)",
|
|
1011
|
-
|
|
1230
|
+
St,
|
|
1012
1231
|
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
1013
|
-
|
|
1232
|
+
e
|
|
1014
1233
|
),
|
|
1015
|
-
...
|
|
1234
|
+
...r
|
|
1016
1235
|
}
|
|
1017
1236
|
);
|
|
1018
1237
|
}
|
|
1019
|
-
),
|
|
1020
|
-
function({ className:
|
|
1021
|
-
return /* @__PURE__ */
|
|
1022
|
-
|
|
1238
|
+
), Te = i(
|
|
1239
|
+
function({ className: e, ...r }, t) {
|
|
1240
|
+
return /* @__PURE__ */ a(
|
|
1241
|
+
L.Popup,
|
|
1023
1242
|
{
|
|
1024
|
-
ref:
|
|
1025
|
-
className:
|
|
1243
|
+
ref: t,
|
|
1244
|
+
className: s(
|
|
1026
1245
|
"gryt-dialog fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
|
|
1027
1246
|
"flex w-96 max-w-[calc(100vw-3rem)] flex-col gap-4",
|
|
1028
1247
|
"rounded-(--gryt-radius-lg) border border-gryt-border bg-gryt-surface p-5 text-gryt-text",
|
|
1029
|
-
|
|
1248
|
+
St,
|
|
1030
1249
|
"data-starting-style:scale-[0.98] data-starting-style:opacity-0",
|
|
1031
1250
|
"data-ending-style:scale-[0.98] data-ending-style:opacity-0",
|
|
1032
|
-
|
|
1251
|
+
e
|
|
1033
1252
|
),
|
|
1034
|
-
...
|
|
1253
|
+
...r
|
|
1035
1254
|
}
|
|
1036
1255
|
);
|
|
1037
1256
|
}
|
|
1038
|
-
),
|
|
1039
|
-
function({ className:
|
|
1040
|
-
return /* @__PURE__ */
|
|
1041
|
-
|
|
1257
|
+
), ke = i(
|
|
1258
|
+
function({ className: e, ...r }, t) {
|
|
1259
|
+
return /* @__PURE__ */ a(
|
|
1260
|
+
L.Title,
|
|
1042
1261
|
{
|
|
1043
|
-
ref:
|
|
1044
|
-
className:
|
|
1262
|
+
ref: t,
|
|
1263
|
+
className: s(
|
|
1045
1264
|
"gryt-dialog-title text-base font-semibold text-gryt-text",
|
|
1046
|
-
|
|
1265
|
+
e
|
|
1047
1266
|
),
|
|
1048
|
-
...
|
|
1267
|
+
...r
|
|
1049
1268
|
}
|
|
1050
1269
|
);
|
|
1051
1270
|
}
|
|
1052
|
-
),
|
|
1053
|
-
function({ className:
|
|
1054
|
-
return /* @__PURE__ */
|
|
1055
|
-
|
|
1271
|
+
), $e = i(
|
|
1272
|
+
function({ className: e, ...r }, t) {
|
|
1273
|
+
return /* @__PURE__ */ a(
|
|
1274
|
+
L.Description,
|
|
1056
1275
|
{
|
|
1057
|
-
ref:
|
|
1058
|
-
className:
|
|
1276
|
+
ref: t,
|
|
1277
|
+
className: s(
|
|
1059
1278
|
"gryt-dialog-description text-sm text-gryt-muted",
|
|
1060
|
-
|
|
1279
|
+
e
|
|
1061
1280
|
),
|
|
1062
|
-
...
|
|
1281
|
+
...r
|
|
1063
1282
|
}
|
|
1064
1283
|
);
|
|
1065
1284
|
}
|
|
1066
|
-
),
|
|
1067
|
-
function({ className:
|
|
1068
|
-
return /* @__PURE__ */
|
|
1285
|
+
), Ce = i(
|
|
1286
|
+
function({ className: e, ...r }, t) {
|
|
1287
|
+
return /* @__PURE__ */ a(
|
|
1069
1288
|
"div",
|
|
1070
1289
|
{
|
|
1071
|
-
ref:
|
|
1072
|
-
className:
|
|
1290
|
+
ref: t,
|
|
1291
|
+
className: s(
|
|
1073
1292
|
"gryt-dialog-footer flex justify-end gap-3",
|
|
1074
|
-
|
|
1293
|
+
e
|
|
1075
1294
|
),
|
|
1076
|
-
...
|
|
1295
|
+
...r
|
|
1077
1296
|
}
|
|
1078
1297
|
);
|
|
1079
1298
|
}
|
|
1080
|
-
),
|
|
1081
|
-
Root:
|
|
1082
|
-
Trigger:
|
|
1083
|
-
Portal:
|
|
1084
|
-
Close:
|
|
1085
|
-
Backdrop:
|
|
1086
|
-
Popup:
|
|
1087
|
-
Title:
|
|
1088
|
-
Description:
|
|
1089
|
-
Footer:
|
|
1090
|
-
},
|
|
1299
|
+
), na = {
|
|
1300
|
+
Root: L.Root,
|
|
1301
|
+
Trigger: L.Trigger,
|
|
1302
|
+
Portal: L.Portal,
|
|
1303
|
+
Close: L.Close,
|
|
1304
|
+
Backdrop: Pe,
|
|
1305
|
+
Popup: Te,
|
|
1306
|
+
Title: ke,
|
|
1307
|
+
Description: $e,
|
|
1308
|
+
Footer: Ce
|
|
1309
|
+
}, Se = () => () => {
|
|
1091
1310
|
};
|
|
1092
|
-
function
|
|
1093
|
-
const
|
|
1094
|
-
(
|
|
1095
|
-
if (typeof window > "u" || !window.matchMedia) return
|
|
1096
|
-
const
|
|
1097
|
-
return
|
|
1311
|
+
function Re(o) {
|
|
1312
|
+
const e = at(
|
|
1313
|
+
(t) => {
|
|
1314
|
+
if (typeof window > "u" || !window.matchMedia) return Se();
|
|
1315
|
+
const n = window.matchMedia(o);
|
|
1316
|
+
return n.addEventListener("change", t), () => n.removeEventListener("change", t);
|
|
1098
1317
|
},
|
|
1099
|
-
[
|
|
1100
|
-
),
|
|
1101
|
-
return
|
|
1318
|
+
[o]
|
|
1319
|
+
), r = at(() => typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia(o).matches, [o]);
|
|
1320
|
+
return Dt(e, r, () => !1);
|
|
1102
1321
|
}
|
|
1103
|
-
const
|
|
1322
|
+
const Ie = {
|
|
1104
1323
|
left: "left",
|
|
1105
1324
|
right: "right",
|
|
1106
1325
|
top: "up",
|
|
1107
1326
|
bottom: "down"
|
|
1108
|
-
},
|
|
1327
|
+
}, Z = jt("right"), Le = {
|
|
1109
1328
|
left: "items-stretch justify-start",
|
|
1110
1329
|
right: "items-stretch justify-end",
|
|
1111
1330
|
top: "items-start justify-center",
|
|
1112
1331
|
bottom: "items-end justify-center"
|
|
1113
|
-
},
|
|
1332
|
+
}, Me = {
|
|
1114
1333
|
left: "rounded-r-(--gryt-radius-xl)",
|
|
1115
1334
|
right: "rounded-l-(--gryt-radius-xl)",
|
|
1116
1335
|
top: "rounded-b-(--gryt-radius-xl)",
|
|
1117
1336
|
bottom: "rounded-t-(--gryt-radius-xl)"
|
|
1118
|
-
},
|
|
1337
|
+
}, Ae = {
|
|
1119
1338
|
left: [
|
|
1120
1339
|
"h-full w-[calc(20rem+var(--gryt-drawer-bleed))] max-w-[calc(85vw+var(--gryt-drawer-bleed))]",
|
|
1121
1340
|
"-ml-(--gryt-drawer-bleed) border-r py-5 pr-5 pl-[calc(1.25rem+var(--gryt-drawer-bleed))]",
|
|
@@ -1145,41 +1364,41 @@ const se = {
|
|
|
1145
1364
|
"data-ending-style:[transform:translateY(calc(100%-var(--gryt-drawer-bleed)))]"
|
|
1146
1365
|
].join(" ")
|
|
1147
1366
|
};
|
|
1148
|
-
function
|
|
1149
|
-
side:
|
|
1150
|
-
sheetOnMobile:
|
|
1151
|
-
children:
|
|
1152
|
-
...
|
|
1367
|
+
function De({
|
|
1368
|
+
side: o = "right",
|
|
1369
|
+
sheetOnMobile: e = !0,
|
|
1370
|
+
children: r,
|
|
1371
|
+
...t
|
|
1153
1372
|
}) {
|
|
1154
|
-
const
|
|
1155
|
-
return /* @__PURE__ */
|
|
1373
|
+
const n = Re("(max-width: 767px)"), c = e && n ? "bottom" : o;
|
|
1374
|
+
return /* @__PURE__ */ a(Z.Provider, { value: c, children: /* @__PURE__ */ a(T.Root, { swipeDirection: Ie[c], ...t, children: r }) });
|
|
1156
1375
|
}
|
|
1157
|
-
const
|
|
1158
|
-
function({ className:
|
|
1159
|
-
const
|
|
1160
|
-
return /* @__PURE__ */
|
|
1161
|
-
|
|
1376
|
+
const je = i(
|
|
1377
|
+
function({ className: e, ...r }, t) {
|
|
1378
|
+
const n = nt(Z);
|
|
1379
|
+
return /* @__PURE__ */ a(
|
|
1380
|
+
T.Viewport,
|
|
1162
1381
|
{
|
|
1163
|
-
ref:
|
|
1164
|
-
className:
|
|
1382
|
+
ref: t,
|
|
1383
|
+
className: s(
|
|
1165
1384
|
// z-50 matters: the popup is no longer positioned itself, so the
|
|
1166
1385
|
// viewport is what has to sit above the page. Without it a sticky
|
|
1167
1386
|
// site header renders over the panel.
|
|
1168
1387
|
"gryt-drawer-viewport fixed inset-0 z-50 flex",
|
|
1169
|
-
|
|
1170
|
-
|
|
1388
|
+
Le[n],
|
|
1389
|
+
e
|
|
1171
1390
|
),
|
|
1172
|
-
...
|
|
1391
|
+
...r
|
|
1173
1392
|
}
|
|
1174
1393
|
);
|
|
1175
1394
|
}
|
|
1176
|
-
),
|
|
1177
|
-
const
|
|
1178
|
-
return /* @__PURE__ */
|
|
1179
|
-
|
|
1395
|
+
), Ge = i(function({ className: e, ...r }, t) {
|
|
1396
|
+
const n = nt(Z);
|
|
1397
|
+
return /* @__PURE__ */ a(
|
|
1398
|
+
T.Popup,
|
|
1180
1399
|
{
|
|
1181
|
-
ref:
|
|
1182
|
-
className:
|
|
1400
|
+
ref: t,
|
|
1401
|
+
className: s(
|
|
1183
1402
|
"gryt-drawer flex flex-col gap-4 border-gryt-border bg-gryt-surface text-gryt-text",
|
|
1184
1403
|
"overflow-y-auto overscroll-contain outline-none",
|
|
1185
1404
|
"transition-transform duration-(--gryt-dur-spring-soft) ease-spring",
|
|
@@ -1187,19 +1406,19 @@ const ue = s(
|
|
|
1187
1406
|
// duration here turns a drag into a drag plus lag.
|
|
1188
1407
|
"data-swiping:duration-0 data-swiping:select-none",
|
|
1189
1408
|
"motion-reduce:transition-none",
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1409
|
+
Ae[n],
|
|
1410
|
+
Me[n],
|
|
1411
|
+
e
|
|
1193
1412
|
),
|
|
1194
|
-
...
|
|
1413
|
+
...r
|
|
1195
1414
|
}
|
|
1196
1415
|
);
|
|
1197
|
-
}),
|
|
1198
|
-
return /* @__PURE__ */
|
|
1199
|
-
|
|
1416
|
+
}), Be = i(function({ className: e, ...r }, t) {
|
|
1417
|
+
return /* @__PURE__ */ a(
|
|
1418
|
+
T.Backdrop,
|
|
1200
1419
|
{
|
|
1201
|
-
ref:
|
|
1202
|
-
className:
|
|
1420
|
+
ref: t,
|
|
1421
|
+
className: s(
|
|
1203
1422
|
"gryt-drawer-backdrop fixed inset-0 z-50 min-h-dvh bg-black/60",
|
|
1204
1423
|
"backdrop-blur-(--gryt-backdrop-blur)",
|
|
1205
1424
|
// Lightens as the panel is dragged away, so letting go halfway does not
|
|
@@ -1209,137 +1428,137 @@ const ue = s(
|
|
|
1209
1428
|
"data-swiping:duration-0",
|
|
1210
1429
|
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
1211
1430
|
"motion-reduce:transition-none",
|
|
1212
|
-
|
|
1431
|
+
e
|
|
1213
1432
|
),
|
|
1214
|
-
...
|
|
1433
|
+
...r
|
|
1215
1434
|
}
|
|
1216
1435
|
);
|
|
1217
1436
|
});
|
|
1218
|
-
function
|
|
1219
|
-
const
|
|
1220
|
-
return
|
|
1437
|
+
function ze({ className: o }) {
|
|
1438
|
+
const e = nt(Z);
|
|
1439
|
+
return e !== "bottom" && e !== "top" ? null : /* @__PURE__ */ a(
|
|
1221
1440
|
"div",
|
|
1222
1441
|
{
|
|
1223
1442
|
"aria-hidden": !0,
|
|
1224
|
-
className:
|
|
1443
|
+
className: s(
|
|
1225
1444
|
"gryt-drawer-grabber mx-auto h-1.5 w-10 shrink-0 rounded-(--gryt-radius-full) bg-gryt-border",
|
|
1226
|
-
|
|
1227
|
-
|
|
1445
|
+
e === "top" && "order-last",
|
|
1446
|
+
o
|
|
1228
1447
|
)
|
|
1229
1448
|
}
|
|
1230
1449
|
);
|
|
1231
1450
|
}
|
|
1232
|
-
const
|
|
1233
|
-
Root:
|
|
1234
|
-
Trigger:
|
|
1235
|
-
Portal:
|
|
1236
|
-
Backdrop:
|
|
1237
|
-
Viewport:
|
|
1238
|
-
Popup:
|
|
1239
|
-
Content:
|
|
1240
|
-
Grabber:
|
|
1241
|
-
Close:
|
|
1242
|
-
Title:
|
|
1243
|
-
Description:
|
|
1244
|
-
},
|
|
1245
|
-
function({ className:
|
|
1246
|
-
return /* @__PURE__ */
|
|
1247
|
-
|
|
1451
|
+
const sa = {
|
|
1452
|
+
Root: De,
|
|
1453
|
+
Trigger: T.Trigger,
|
|
1454
|
+
Portal: T.Portal,
|
|
1455
|
+
Backdrop: Be,
|
|
1456
|
+
Viewport: je,
|
|
1457
|
+
Popup: Ge,
|
|
1458
|
+
Content: T.Content,
|
|
1459
|
+
Grabber: ze,
|
|
1460
|
+
Close: T.Close,
|
|
1461
|
+
Title: T.Title,
|
|
1462
|
+
Description: T.Description
|
|
1463
|
+
}, Fe = i(
|
|
1464
|
+
function({ className: e, sideOffset: r = 8, ...t }, n) {
|
|
1465
|
+
return /* @__PURE__ */ a(
|
|
1466
|
+
G.Positioner,
|
|
1248
1467
|
{
|
|
1249
|
-
ref:
|
|
1250
|
-
sideOffset:
|
|
1251
|
-
className:
|
|
1252
|
-
...
|
|
1468
|
+
ref: n,
|
|
1469
|
+
sideOffset: r,
|
|
1470
|
+
className: s("gryt-menu-positioner outline-none", e),
|
|
1471
|
+
...t
|
|
1253
1472
|
}
|
|
1254
1473
|
);
|
|
1255
1474
|
}
|
|
1256
|
-
),
|
|
1257
|
-
return /* @__PURE__ */
|
|
1258
|
-
|
|
1475
|
+
), Ee = i(function({ className: e, ...r }, t) {
|
|
1476
|
+
return /* @__PURE__ */ a(
|
|
1477
|
+
G.Popup,
|
|
1259
1478
|
{
|
|
1260
|
-
ref:
|
|
1261
|
-
className:
|
|
1479
|
+
ref: t,
|
|
1480
|
+
className: s(
|
|
1262
1481
|
"gryt-menu min-w-44 p-1 outline-none",
|
|
1482
|
+
B,
|
|
1263
1483
|
A,
|
|
1264
|
-
|
|
1265
|
-
t
|
|
1484
|
+
e
|
|
1266
1485
|
),
|
|
1267
|
-
...
|
|
1486
|
+
...r
|
|
1268
1487
|
}
|
|
1269
1488
|
);
|
|
1270
|
-
}),
|
|
1271
|
-
return /* @__PURE__ */
|
|
1272
|
-
|
|
1489
|
+
}), Ve = i(function({ className: e, ...r }, t) {
|
|
1490
|
+
return /* @__PURE__ */ a(
|
|
1491
|
+
G.Item,
|
|
1273
1492
|
{
|
|
1274
|
-
ref:
|
|
1275
|
-
className:
|
|
1493
|
+
ref: t,
|
|
1494
|
+
className: s(
|
|
1276
1495
|
"gryt-menu-item flex cursor-default items-center gap-2 rounded-(--gryt-radius-md)",
|
|
1277
1496
|
"px-3 py-2 text-sm text-gryt-text outline-none select-none",
|
|
1278
1497
|
// Base UI drives keyboard and pointer highlight through the same
|
|
1279
1498
|
// attribute, so arrow keys and the mouse land on identical styling.
|
|
1280
1499
|
"data-highlighted:bg-gryt-surface-raised",
|
|
1281
1500
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
1282
|
-
|
|
1501
|
+
e
|
|
1283
1502
|
),
|
|
1284
|
-
...
|
|
1503
|
+
...r
|
|
1285
1504
|
}
|
|
1286
1505
|
);
|
|
1287
|
-
}),
|
|
1288
|
-
return /* @__PURE__ */
|
|
1289
|
-
|
|
1506
|
+
}), _e = i(function({ className: e, ...r }, t) {
|
|
1507
|
+
return /* @__PURE__ */ a(
|
|
1508
|
+
G.Separator,
|
|
1290
1509
|
{
|
|
1291
|
-
ref:
|
|
1292
|
-
className:
|
|
1293
|
-
...
|
|
1510
|
+
ref: t,
|
|
1511
|
+
className: s("gryt-menu-separator my-1 h-px bg-gryt-border", e),
|
|
1512
|
+
...r
|
|
1294
1513
|
}
|
|
1295
1514
|
);
|
|
1296
|
-
}),
|
|
1297
|
-
Root:
|
|
1298
|
-
Trigger:
|
|
1299
|
-
Portal:
|
|
1300
|
-
Positioner:
|
|
1301
|
-
Popup:
|
|
1302
|
-
Item:
|
|
1303
|
-
Separator:
|
|
1304
|
-
},
|
|
1305
|
-
return /* @__PURE__ */
|
|
1306
|
-
|
|
1515
|
+
}), ot = {
|
|
1516
|
+
Root: G.Root,
|
|
1517
|
+
Trigger: G.Trigger,
|
|
1518
|
+
Portal: G.Portal,
|
|
1519
|
+
Positioner: Fe,
|
|
1520
|
+
Popup: Ee,
|
|
1521
|
+
Item: Ve,
|
|
1522
|
+
Separator: _e
|
|
1523
|
+
}, He = i(function({ className: e, ...r }, t) {
|
|
1524
|
+
return /* @__PURE__ */ a(
|
|
1525
|
+
W.Root,
|
|
1307
1526
|
{
|
|
1308
|
-
ref:
|
|
1309
|
-
className:
|
|
1527
|
+
ref: t,
|
|
1528
|
+
className: s(
|
|
1310
1529
|
"gryt-tabs",
|
|
1311
1530
|
// Vertical puts the rail and the panel side by side. min-w-0 on the
|
|
1312
1531
|
// panel does the rest; without the flex here the panel lands under the
|
|
1313
1532
|
// rail and the layout reads as a very tall accordion.
|
|
1314
1533
|
"data-[orientation=vertical]:flex data-[orientation=vertical]:items-stretch",
|
|
1315
|
-
|
|
1534
|
+
e
|
|
1316
1535
|
),
|
|
1317
|
-
...
|
|
1536
|
+
...r
|
|
1318
1537
|
}
|
|
1319
1538
|
);
|
|
1320
|
-
}),
|
|
1321
|
-
return /* @__PURE__ */
|
|
1322
|
-
|
|
1539
|
+
}), Oe = i(function({ className: e, ...r }, t) {
|
|
1540
|
+
return /* @__PURE__ */ a(
|
|
1541
|
+
W.List,
|
|
1323
1542
|
{
|
|
1324
|
-
ref:
|
|
1325
|
-
className:
|
|
1543
|
+
ref: t,
|
|
1544
|
+
className: s(
|
|
1326
1545
|
"gryt-tabs-list relative inline-flex items-center gap-1 rounded-(--gryt-radius-full) bg-gryt-surface-raised p-1",
|
|
1327
1546
|
// A rail, not a pill: rows are full width and the corner radius drops
|
|
1328
1547
|
// to lg, because a 999px radius on a tall box bows its short edges.
|
|
1329
1548
|
"data-[orientation=vertical]:flex data-[orientation=vertical]:shrink-0",
|
|
1330
1549
|
"data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch",
|
|
1331
1550
|
"data-[orientation=vertical]:rounded-(--gryt-radius-lg)",
|
|
1332
|
-
|
|
1551
|
+
e
|
|
1333
1552
|
),
|
|
1334
|
-
...
|
|
1553
|
+
...r
|
|
1335
1554
|
}
|
|
1336
1555
|
);
|
|
1337
|
-
}),
|
|
1338
|
-
return /* @__PURE__ */
|
|
1339
|
-
|
|
1556
|
+
}), Ue = i(function({ className: e, ...r }, t) {
|
|
1557
|
+
return /* @__PURE__ */ a(
|
|
1558
|
+
W.Tab,
|
|
1340
1559
|
{
|
|
1341
|
-
ref:
|
|
1342
|
-
className:
|
|
1560
|
+
ref: t,
|
|
1561
|
+
className: s(
|
|
1343
1562
|
"gryt-tab inline-flex min-h-8 items-center justify-center whitespace-nowrap",
|
|
1344
1563
|
"rounded-(--gryt-radius-full) border-0 bg-transparent px-4 py-1.5",
|
|
1345
1564
|
"text-sm font-medium text-gryt-muted select-none",
|
|
@@ -1353,20 +1572,20 @@ const jo = {
|
|
|
1353
1572
|
"data-[orientation=vertical]:min-h-9 data-[orientation=vertical]:justify-start",
|
|
1354
1573
|
"data-[orientation=vertical]:gap-2.5 data-[orientation=vertical]:px-3",
|
|
1355
1574
|
"data-[orientation=vertical]:rounded-(--gryt-radius-md)",
|
|
1356
|
-
|
|
1357
|
-
|
|
1575
|
+
x,
|
|
1576
|
+
e
|
|
1358
1577
|
),
|
|
1359
|
-
...
|
|
1578
|
+
...r
|
|
1360
1579
|
}
|
|
1361
1580
|
);
|
|
1362
|
-
}),
|
|
1363
|
-
function({ className:
|
|
1364
|
-
return /* @__PURE__ */
|
|
1365
|
-
|
|
1581
|
+
}), Xe = i(
|
|
1582
|
+
function({ className: e, ...r }, t) {
|
|
1583
|
+
return /* @__PURE__ */ a(
|
|
1584
|
+
W.Indicator,
|
|
1366
1585
|
{
|
|
1367
|
-
ref:
|
|
1586
|
+
ref: t,
|
|
1368
1587
|
renderBeforeHydration: !0,
|
|
1369
|
-
className:
|
|
1588
|
+
className: s(
|
|
1370
1589
|
"gryt-tabs-indicator absolute top-1 left-0 z-0 h-[calc(100%-0.5rem)]",
|
|
1371
1590
|
"w-(--active-tab-width) translate-x-(--active-tab-left)",
|
|
1372
1591
|
"rounded-(--gryt-radius-full) bg-gryt-accent",
|
|
@@ -1380,212 +1599,212 @@ const jo = {
|
|
|
1380
1599
|
"[[data-orientation=vertical]_&]:translate-y-(--active-tab-top)",
|
|
1381
1600
|
"[[data-orientation=vertical]_&]:rounded-(--gryt-radius-md)",
|
|
1382
1601
|
"[[data-orientation=vertical]_&]:transition-[translate,height]",
|
|
1383
|
-
|
|
1602
|
+
e
|
|
1384
1603
|
),
|
|
1385
|
-
...
|
|
1604
|
+
...r
|
|
1386
1605
|
}
|
|
1387
1606
|
);
|
|
1388
1607
|
}
|
|
1389
|
-
),
|
|
1390
|
-
return /* @__PURE__ */
|
|
1391
|
-
|
|
1608
|
+
), Ye = i(function({ className: e, ...r }, t) {
|
|
1609
|
+
return /* @__PURE__ */ a(
|
|
1610
|
+
W.Panel,
|
|
1392
1611
|
{
|
|
1393
|
-
ref:
|
|
1394
|
-
className:
|
|
1612
|
+
ref: t,
|
|
1613
|
+
className: s(
|
|
1395
1614
|
"gryt-tabs-panel pt-3 text-sm text-gryt-text",
|
|
1396
1615
|
// Beside the rail rather than under it, and allowed to shrink so long
|
|
1397
1616
|
// content wraps instead of pushing the rail off screen.
|
|
1398
1617
|
"data-[orientation=vertical]:min-w-0 data-[orientation=vertical]:flex-1",
|
|
1399
1618
|
"data-[orientation=vertical]:pt-0 data-[orientation=vertical]:pl-4",
|
|
1400
|
-
|
|
1619
|
+
e
|
|
1401
1620
|
),
|
|
1402
|
-
...
|
|
1621
|
+
...r
|
|
1403
1622
|
}
|
|
1404
1623
|
);
|
|
1405
|
-
}),
|
|
1406
|
-
return /* @__PURE__ */
|
|
1407
|
-
|
|
1624
|
+
}), ia = Object.assign(He, { List: Oe, Tab: Ue, Panel: Ye, Indicator: Xe }), We = i(function({ className: e, ...r }, t) {
|
|
1625
|
+
return /* @__PURE__ */ a(
|
|
1626
|
+
U.Root,
|
|
1408
1627
|
{
|
|
1409
|
-
ref:
|
|
1410
|
-
className:
|
|
1628
|
+
ref: t,
|
|
1629
|
+
className: s(
|
|
1411
1630
|
"gryt-accordion flex w-full flex-col gap-2 rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface p-2",
|
|
1412
|
-
|
|
1631
|
+
e
|
|
1413
1632
|
),
|
|
1414
|
-
...
|
|
1633
|
+
...r
|
|
1415
1634
|
}
|
|
1416
1635
|
);
|
|
1417
|
-
}),
|
|
1418
|
-
function({ className:
|
|
1419
|
-
return /* @__PURE__ */
|
|
1420
|
-
|
|
1636
|
+
}), Qe = i(
|
|
1637
|
+
function({ className: e, ...r }, t) {
|
|
1638
|
+
return /* @__PURE__ */ a(
|
|
1639
|
+
U.Item,
|
|
1421
1640
|
{
|
|
1422
|
-
ref:
|
|
1423
|
-
className:
|
|
1424
|
-
...
|
|
1641
|
+
ref: t,
|
|
1642
|
+
className: s("gryt-accordion-item", e),
|
|
1643
|
+
...r
|
|
1425
1644
|
}
|
|
1426
1645
|
);
|
|
1427
1646
|
}
|
|
1428
|
-
),
|
|
1429
|
-
function({ children:
|
|
1430
|
-
return /* @__PURE__ */
|
|
1431
|
-
|
|
1647
|
+
), Je = i(
|
|
1648
|
+
function({ children: e, className: r, expandIcon: t, ...n }, c) {
|
|
1649
|
+
return /* @__PURE__ */ a(U.Header, { className: "gryt-accordion-header m-0", children: /* @__PURE__ */ p(
|
|
1650
|
+
U.Trigger,
|
|
1432
1651
|
{
|
|
1433
1652
|
ref: c,
|
|
1434
|
-
className:
|
|
1653
|
+
className: s(
|
|
1435
1654
|
"gryt-accordion-trigger flex w-full items-center justify-between gap-3",
|
|
1436
1655
|
"rounded-(--gryt-radius-lg) border-0 bg-transparent px-3 py-2.5",
|
|
1437
1656
|
"text-left text-sm font-medium text-gryt-text select-none",
|
|
1438
1657
|
"transition-colors duration-150 hover:bg-gryt-surface-raised",
|
|
1439
|
-
|
|
1440
|
-
|
|
1658
|
+
x,
|
|
1659
|
+
r
|
|
1441
1660
|
),
|
|
1442
|
-
...
|
|
1661
|
+
...n,
|
|
1443
1662
|
children: [
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1663
|
+
e,
|
|
1664
|
+
t === void 0 ? /* @__PURE__ */ a(
|
|
1665
|
+
Vt,
|
|
1447
1666
|
{
|
|
1448
1667
|
size: 16,
|
|
1449
1668
|
className: "shrink-0 transition-transform duration-(--gryt-dur-spring) ease-spring data-panel-open:rotate-180 motion-reduce:transition-none"
|
|
1450
1669
|
}
|
|
1451
|
-
) :
|
|
1670
|
+
) : t
|
|
1452
1671
|
]
|
|
1453
1672
|
}
|
|
1454
1673
|
) });
|
|
1455
1674
|
}
|
|
1456
|
-
),
|
|
1457
|
-
function({ children:
|
|
1458
|
-
return /* @__PURE__ */
|
|
1459
|
-
|
|
1675
|
+
), Ke = i(
|
|
1676
|
+
function({ children: e, className: r, ...t }, n) {
|
|
1677
|
+
return /* @__PURE__ */ a(
|
|
1678
|
+
U.Panel,
|
|
1460
1679
|
{
|
|
1461
|
-
ref:
|
|
1462
|
-
className:
|
|
1680
|
+
ref: n,
|
|
1681
|
+
className: s(
|
|
1463
1682
|
"gryt-accordion-panel overflow-hidden text-sm text-gryt-muted",
|
|
1464
1683
|
// Base UI measures the panel and exposes the height as a variable,
|
|
1465
1684
|
// which is what makes a real open and close transition possible.
|
|
1466
1685
|
"h-[var(--accordion-panel-height)] transition-[height] duration-(--gryt-dur-spring-soft) ease-spring",
|
|
1467
1686
|
"data-starting-style:h-0 data-ending-style:h-0",
|
|
1468
1687
|
"motion-reduce:transition-none",
|
|
1469
|
-
|
|
1688
|
+
r
|
|
1470
1689
|
),
|
|
1471
|
-
...
|
|
1472
|
-
children: /* @__PURE__ */
|
|
1690
|
+
...t,
|
|
1691
|
+
children: /* @__PURE__ */ a("div", { className: "px-3 pt-1 pb-3", children: e })
|
|
1473
1692
|
}
|
|
1474
1693
|
);
|
|
1475
1694
|
}
|
|
1476
|
-
),
|
|
1477
|
-
function({ className:
|
|
1478
|
-
return /* @__PURE__ */
|
|
1479
|
-
|
|
1695
|
+
), ca = Object.assign(We, { Item: Qe, Trigger: Je, Panel: Ke }), Ze = i(
|
|
1696
|
+
function({ className: e, sideOffset: r = 2, ...t }, n) {
|
|
1697
|
+
return /* @__PURE__ */ a(
|
|
1698
|
+
I.Positioner,
|
|
1480
1699
|
{
|
|
1481
|
-
ref:
|
|
1482
|
-
sideOffset:
|
|
1483
|
-
className:
|
|
1484
|
-
...
|
|
1700
|
+
ref: n,
|
|
1701
|
+
sideOffset: r,
|
|
1702
|
+
className: s("gryt-context-menu-positioner outline-none", e),
|
|
1703
|
+
...t
|
|
1485
1704
|
}
|
|
1486
1705
|
);
|
|
1487
1706
|
}
|
|
1488
|
-
),
|
|
1489
|
-
Root:
|
|
1490
|
-
Trigger:
|
|
1491
|
-
Portal:
|
|
1492
|
-
Positioner:
|
|
1493
|
-
Popup:
|
|
1494
|
-
Item:
|
|
1495
|
-
Separator:
|
|
1496
|
-
Group:
|
|
1497
|
-
GroupLabel:
|
|
1498
|
-
SubmenuRoot:
|
|
1499
|
-
SubmenuTrigger:
|
|
1500
|
-
},
|
|
1501
|
-
function({ className:
|
|
1502
|
-
return /* @__PURE__ */
|
|
1503
|
-
|
|
1707
|
+
), la = {
|
|
1708
|
+
Root: I.Root,
|
|
1709
|
+
Trigger: I.Trigger,
|
|
1710
|
+
Portal: I.Portal,
|
|
1711
|
+
Positioner: Ze,
|
|
1712
|
+
Popup: ot.Popup,
|
|
1713
|
+
Item: ot.Item,
|
|
1714
|
+
Separator: ot.Separator,
|
|
1715
|
+
Group: I.Group,
|
|
1716
|
+
GroupLabel: I.GroupLabel,
|
|
1717
|
+
SubmenuRoot: I.SubmenuRoot,
|
|
1718
|
+
SubmenuTrigger: I.SubmenuTrigger
|
|
1719
|
+
}, qe = i(
|
|
1720
|
+
function({ className: e, sideOffset: r = 8, ...t }, n) {
|
|
1721
|
+
return /* @__PURE__ */ a(
|
|
1722
|
+
C.Positioner,
|
|
1504
1723
|
{
|
|
1505
|
-
ref:
|
|
1506
|
-
sideOffset:
|
|
1507
|
-
className:
|
|
1508
|
-
...
|
|
1724
|
+
ref: n,
|
|
1725
|
+
sideOffset: r,
|
|
1726
|
+
className: s("gryt-popover-positioner outline-none", e),
|
|
1727
|
+
...t
|
|
1509
1728
|
}
|
|
1510
1729
|
);
|
|
1511
1730
|
}
|
|
1512
|
-
),
|
|
1513
|
-
function({ className:
|
|
1514
|
-
return /* @__PURE__ */
|
|
1515
|
-
|
|
1731
|
+
), tr = i(
|
|
1732
|
+
function({ className: e, ...r }, t) {
|
|
1733
|
+
return /* @__PURE__ */ a(
|
|
1734
|
+
C.Popup,
|
|
1516
1735
|
{
|
|
1517
|
-
ref:
|
|
1518
|
-
className:
|
|
1736
|
+
ref: t,
|
|
1737
|
+
className: s(
|
|
1519
1738
|
"gryt-popover max-w-[min(20rem,calc(100vw-2rem))] p-4 outline-none",
|
|
1739
|
+
B,
|
|
1520
1740
|
A,
|
|
1521
|
-
|
|
1522
|
-
t
|
|
1741
|
+
e
|
|
1523
1742
|
),
|
|
1524
|
-
...
|
|
1743
|
+
...r
|
|
1525
1744
|
}
|
|
1526
1745
|
);
|
|
1527
1746
|
}
|
|
1528
|
-
),
|
|
1529
|
-
return /* @__PURE__ */
|
|
1530
|
-
|
|
1747
|
+
), er = i(function({ className: e, ...r }, t) {
|
|
1748
|
+
return /* @__PURE__ */ a(
|
|
1749
|
+
C.Title,
|
|
1531
1750
|
{
|
|
1532
|
-
ref:
|
|
1533
|
-
className:
|
|
1751
|
+
ref: t,
|
|
1752
|
+
className: s(
|
|
1534
1753
|
"gryt-popover-title text-sm font-semibold text-gryt-text",
|
|
1535
|
-
|
|
1754
|
+
e
|
|
1536
1755
|
),
|
|
1537
|
-
...
|
|
1756
|
+
...r
|
|
1538
1757
|
}
|
|
1539
1758
|
);
|
|
1540
|
-
}),
|
|
1541
|
-
return /* @__PURE__ */
|
|
1542
|
-
|
|
1759
|
+
}), rr = i(function({ className: e, ...r }, t) {
|
|
1760
|
+
return /* @__PURE__ */ a(
|
|
1761
|
+
C.Description,
|
|
1543
1762
|
{
|
|
1544
|
-
ref:
|
|
1545
|
-
className:
|
|
1763
|
+
ref: t,
|
|
1764
|
+
className: s(
|
|
1546
1765
|
"gryt-popover-description mt-1 text-sm leading-6 text-gryt-muted",
|
|
1547
|
-
|
|
1766
|
+
e
|
|
1548
1767
|
),
|
|
1549
|
-
...
|
|
1768
|
+
...r
|
|
1550
1769
|
}
|
|
1551
1770
|
);
|
|
1552
|
-
}),
|
|
1553
|
-
Root:
|
|
1554
|
-
Trigger:
|
|
1555
|
-
Portal:
|
|
1556
|
-
Positioner:
|
|
1557
|
-
Popup:
|
|
1558
|
-
Title:
|
|
1559
|
-
Description:
|
|
1560
|
-
Close:
|
|
1561
|
-
Arrow:
|
|
1562
|
-
},
|
|
1771
|
+
}), da = {
|
|
1772
|
+
Root: C.Root,
|
|
1773
|
+
Trigger: C.Trigger,
|
|
1774
|
+
Portal: C.Portal,
|
|
1775
|
+
Positioner: qe,
|
|
1776
|
+
Popup: tr,
|
|
1777
|
+
Title: er,
|
|
1778
|
+
Description: rr,
|
|
1779
|
+
Close: C.Close,
|
|
1780
|
+
Arrow: C.Arrow
|
|
1781
|
+
}, or = {
|
|
1563
1782
|
neutral: "border-white/8 bg-gryt-surface",
|
|
1564
1783
|
info: "border-gryt-secondary/30 bg-gryt-secondary/8",
|
|
1565
1784
|
success: "border-gryt-success/30 bg-gryt-success/8",
|
|
1566
1785
|
warning: "border-gryt-warning/30 bg-gryt-warning/8",
|
|
1567
1786
|
danger: "border-gryt-danger/30 bg-gryt-danger/8"
|
|
1568
|
-
},
|
|
1569
|
-
function({ className:
|
|
1570
|
-
return /* @__PURE__ */
|
|
1571
|
-
|
|
1787
|
+
}, ar = i(
|
|
1788
|
+
function({ className: e, ...r }, t) {
|
|
1789
|
+
return /* @__PURE__ */ a(
|
|
1790
|
+
R.Viewport,
|
|
1572
1791
|
{
|
|
1573
|
-
ref:
|
|
1574
|
-
className:
|
|
1792
|
+
ref: t,
|
|
1793
|
+
className: s(
|
|
1575
1794
|
"gryt-toast-viewport fixed right-4 bottom-4 z-50 flex w-[min(22rem,calc(100vw-2rem))]",
|
|
1576
1795
|
"flex-col gap-2 outline-none",
|
|
1577
|
-
|
|
1796
|
+
e
|
|
1578
1797
|
),
|
|
1579
|
-
...
|
|
1798
|
+
...r
|
|
1580
1799
|
}
|
|
1581
1800
|
);
|
|
1582
1801
|
}
|
|
1583
|
-
),
|
|
1584
|
-
return /* @__PURE__ */
|
|
1585
|
-
|
|
1802
|
+
), nr = i(function({ className: e, severity: r = "neutral", ...t }, n) {
|
|
1803
|
+
return /* @__PURE__ */ a(
|
|
1804
|
+
R.Root,
|
|
1586
1805
|
{
|
|
1587
|
-
ref:
|
|
1588
|
-
className:
|
|
1806
|
+
ref: n,
|
|
1807
|
+
className: s(
|
|
1589
1808
|
"gryt-toast relative flex flex-col p-3 pr-9",
|
|
1590
1809
|
// Not popupSurface. That border is --gryt-border, a solid slate line
|
|
1591
1810
|
// that is right for a menu anchored to the thing that opened it and too
|
|
@@ -1593,139 +1812,139 @@ const jo = {
|
|
|
1593
1812
|
// white hairline separates it from the page without drawing a box
|
|
1594
1813
|
// around it.
|
|
1595
1814
|
"rounded-(--gryt-radius-xl) border text-gryt-text",
|
|
1596
|
-
|
|
1815
|
+
or[r],
|
|
1597
1816
|
// Swiping is a pointer gesture, so the toast follows the finger
|
|
1598
1817
|
// through Base UI's swipe variables before it animates out.
|
|
1599
1818
|
"transition-[opacity,transform] duration-(--gryt-dur-spring) ease-spring",
|
|
1600
1819
|
"data-starting-style:translate-y-2 data-starting-style:opacity-0",
|
|
1601
1820
|
"data-ending-style:translate-y-2 data-ending-style:opacity-0",
|
|
1602
1821
|
"motion-reduce:transition-none",
|
|
1603
|
-
|
|
1822
|
+
e
|
|
1604
1823
|
),
|
|
1605
|
-
...
|
|
1824
|
+
...t
|
|
1606
1825
|
}
|
|
1607
1826
|
);
|
|
1608
|
-
}),
|
|
1609
|
-
return /* @__PURE__ */
|
|
1610
|
-
|
|
1827
|
+
}), sr = i(function({ className: e, ...r }, t) {
|
|
1828
|
+
return /* @__PURE__ */ a(
|
|
1829
|
+
R.Title,
|
|
1611
1830
|
{
|
|
1612
|
-
ref:
|
|
1613
|
-
className:
|
|
1831
|
+
ref: t,
|
|
1832
|
+
className: s(
|
|
1614
1833
|
"gryt-toast-title text-sm font-semibold text-gryt-text",
|
|
1615
|
-
|
|
1834
|
+
e
|
|
1616
1835
|
),
|
|
1617
|
-
...
|
|
1836
|
+
...r
|
|
1618
1837
|
}
|
|
1619
1838
|
);
|
|
1620
|
-
}),
|
|
1621
|
-
return /* @__PURE__ */
|
|
1622
|
-
|
|
1839
|
+
}), ir = i(function({ className: e, ...r }, t) {
|
|
1840
|
+
return /* @__PURE__ */ a(
|
|
1841
|
+
R.Description,
|
|
1623
1842
|
{
|
|
1624
|
-
ref:
|
|
1625
|
-
className:
|
|
1843
|
+
ref: t,
|
|
1844
|
+
className: s(
|
|
1626
1845
|
"gryt-toast-description mt-0.5 text-sm leading-6 text-gryt-muted",
|
|
1627
|
-
|
|
1846
|
+
e
|
|
1628
1847
|
),
|
|
1629
|
-
...
|
|
1848
|
+
...r
|
|
1630
1849
|
}
|
|
1631
1850
|
);
|
|
1632
|
-
}),
|
|
1633
|
-
return /* @__PURE__ */
|
|
1634
|
-
|
|
1851
|
+
}), cr = i(function({ className: e, children: r, ...t }, n) {
|
|
1852
|
+
return /* @__PURE__ */ a(
|
|
1853
|
+
R.Close,
|
|
1635
1854
|
{
|
|
1636
|
-
ref:
|
|
1855
|
+
ref: n,
|
|
1637
1856
|
"aria-label": "Close",
|
|
1638
|
-
className:
|
|
1857
|
+
className: s(
|
|
1639
1858
|
"gryt-toast-close absolute top-2.5 right-2.5 inline-flex h-6 w-6 items-center justify-center",
|
|
1640
1859
|
"rounded-(--gryt-radius-full) border-0 bg-transparent text-gryt-muted",
|
|
1641
1860
|
"transition-colors hover:bg-white/8 hover:text-gryt-text motion-reduce:transition-none",
|
|
1642
1861
|
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",
|
|
1643
|
-
|
|
1862
|
+
e
|
|
1644
1863
|
),
|
|
1645
|
-
...
|
|
1646
|
-
children:
|
|
1864
|
+
...t,
|
|
1865
|
+
children: r ?? /* @__PURE__ */ a(xt, { size: 14, weight: "bold" })
|
|
1647
1866
|
}
|
|
1648
1867
|
);
|
|
1649
|
-
}),
|
|
1650
|
-
return /* @__PURE__ */
|
|
1651
|
-
|
|
1868
|
+
}), lr = i(function({ className: e, ...r }, t) {
|
|
1869
|
+
return /* @__PURE__ */ a(
|
|
1870
|
+
R.Action,
|
|
1652
1871
|
{
|
|
1653
|
-
ref:
|
|
1654
|
-
className:
|
|
1872
|
+
ref: t,
|
|
1873
|
+
className: s(
|
|
1655
1874
|
"gryt-toast-action mt-2 self-start rounded-(--gryt-radius-full) border-0",
|
|
1656
1875
|
"bg-gryt-accent px-3 py-1.5 text-sm font-medium text-gryt-on-accent",
|
|
1657
1876
|
"transition-[scale] duration-(--gryt-dur-spring) ease-spring",
|
|
1658
1877
|
"motion-safe:hover:scale-[1.04] motion-safe:active:scale-[0.96]",
|
|
1659
1878
|
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",
|
|
1660
|
-
|
|
1879
|
+
e
|
|
1661
1880
|
),
|
|
1662
|
-
...
|
|
1881
|
+
...r
|
|
1663
1882
|
}
|
|
1664
1883
|
);
|
|
1665
|
-
}),
|
|
1666
|
-
Provider:
|
|
1667
|
-
Portal:
|
|
1668
|
-
Viewport:
|
|
1669
|
-
Root:
|
|
1670
|
-
Title:
|
|
1671
|
-
Description:
|
|
1672
|
-
Close:
|
|
1673
|
-
Action:
|
|
1674
|
-
},
|
|
1675
|
-
function({ className:
|
|
1676
|
-
return /* @__PURE__ */
|
|
1677
|
-
|
|
1884
|
+
}), ga = {
|
|
1885
|
+
Provider: R.Provider,
|
|
1886
|
+
Portal: R.Portal,
|
|
1887
|
+
Viewport: ar,
|
|
1888
|
+
Root: nr,
|
|
1889
|
+
Title: sr,
|
|
1890
|
+
Description: ir,
|
|
1891
|
+
Close: cr,
|
|
1892
|
+
Action: lr
|
|
1893
|
+
}, ua = R.useToastManager, dr = i(
|
|
1894
|
+
function({ className: e, ...r }, t) {
|
|
1895
|
+
return /* @__PURE__ */ a(
|
|
1896
|
+
E.Root,
|
|
1678
1897
|
{
|
|
1679
|
-
ref:
|
|
1680
|
-
className:
|
|
1681
|
-
...
|
|
1898
|
+
ref: t,
|
|
1899
|
+
className: s("gryt-scroll-area relative", e),
|
|
1900
|
+
...r
|
|
1682
1901
|
}
|
|
1683
1902
|
);
|
|
1684
1903
|
}
|
|
1685
|
-
),
|
|
1686
|
-
function({ className:
|
|
1687
|
-
return /* @__PURE__ */
|
|
1688
|
-
|
|
1904
|
+
), gr = i(
|
|
1905
|
+
function({ className: e, ...r }, t) {
|
|
1906
|
+
return /* @__PURE__ */ a(
|
|
1907
|
+
E.Viewport,
|
|
1689
1908
|
{
|
|
1690
|
-
ref:
|
|
1691
|
-
className:
|
|
1909
|
+
ref: t,
|
|
1910
|
+
className: s(
|
|
1692
1911
|
"gryt-scroll-area-viewport h-full w-full overscroll-contain",
|
|
1693
1912
|
"focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-gryt-accent-light",
|
|
1694
|
-
|
|
1913
|
+
e
|
|
1695
1914
|
),
|
|
1696
|
-
...
|
|
1915
|
+
...r
|
|
1697
1916
|
}
|
|
1698
1917
|
);
|
|
1699
1918
|
}
|
|
1700
|
-
),
|
|
1701
|
-
function({ className:
|
|
1702
|
-
return /* @__PURE__ */
|
|
1703
|
-
|
|
1919
|
+
), ur = i(
|
|
1920
|
+
function({ className: e, orientation: r, ...t }, n) {
|
|
1921
|
+
return /* @__PURE__ */ a(
|
|
1922
|
+
E.Scrollbar,
|
|
1704
1923
|
{
|
|
1705
|
-
ref:
|
|
1706
|
-
orientation:
|
|
1707
|
-
className:
|
|
1924
|
+
ref: n,
|
|
1925
|
+
orientation: r,
|
|
1926
|
+
className: s(
|
|
1708
1927
|
"gryt-scroll-area-scrollbar flex touch-none p-0.5 select-none",
|
|
1709
1928
|
// Fades in on hover or while scrolling rather than sitting there
|
|
1710
1929
|
// permanently — a chat sidebar is mostly not being scrolled.
|
|
1711
1930
|
"opacity-0 transition-opacity duration-(--gryt-dur-fast)",
|
|
1712
1931
|
"data-hovering:opacity-100 data-scrolling:opacity-100",
|
|
1713
1932
|
"motion-reduce:transition-none",
|
|
1714
|
-
|
|
1715
|
-
|
|
1933
|
+
r === "horizontal" ? "h-2 flex-col" : "w-2",
|
|
1934
|
+
e
|
|
1716
1935
|
),
|
|
1717
|
-
...
|
|
1718
|
-
children: /* @__PURE__ */
|
|
1936
|
+
...t,
|
|
1937
|
+
children: /* @__PURE__ */ a(E.Thumb, { className: "flex-1 rounded-(--gryt-radius-full) bg-gryt-border transition-colors hover:bg-gryt-muted motion-reduce:transition-none" })
|
|
1719
1938
|
}
|
|
1720
1939
|
);
|
|
1721
1940
|
}
|
|
1722
|
-
),
|
|
1723
|
-
Root:
|
|
1724
|
-
Viewport:
|
|
1725
|
-
Scrollbar:
|
|
1726
|
-
Content:
|
|
1727
|
-
Corner:
|
|
1728
|
-
},
|
|
1941
|
+
), ya = {
|
|
1942
|
+
Root: dr,
|
|
1943
|
+
Viewport: gr,
|
|
1944
|
+
Scrollbar: ur,
|
|
1945
|
+
Content: E.Content,
|
|
1946
|
+
Corner: E.Corner
|
|
1947
|
+
}, yr = {
|
|
1729
1948
|
primary: [
|
|
1730
1949
|
"text-gryt-muted hover:not-data-disabled:bg-white/8",
|
|
1731
1950
|
"data-pressed:bg-gryt-accent data-pressed:text-gryt-on-accent",
|
|
@@ -1746,18 +1965,18 @@ const jo = {
|
|
|
1746
1965
|
"data-pressed:bg-gryt-danger data-pressed:text-gryt-on-danger",
|
|
1747
1966
|
"data-pressed:hover:not-data-disabled:bg-gryt-danger"
|
|
1748
1967
|
].join(" ")
|
|
1749
|
-
},
|
|
1968
|
+
}, mr = {
|
|
1750
1969
|
xsmall: "h-8 min-w-8 px-2 text-xs",
|
|
1751
1970
|
small: "h-9 min-w-9 px-2.5 text-sm",
|
|
1752
1971
|
medium: "h-10 min-w-10 px-3 text-sm",
|
|
1753
1972
|
large: "h-12 min-w-12 px-4 text-base"
|
|
1754
|
-
},
|
|
1755
|
-
function({ className:
|
|
1756
|
-
return /* @__PURE__ */
|
|
1757
|
-
|
|
1973
|
+
}, ma = i(
|
|
1974
|
+
function({ className: e, size: r = "medium", tone: t = "primary", ...n }, c) {
|
|
1975
|
+
return /* @__PURE__ */ a(
|
|
1976
|
+
Xt,
|
|
1758
1977
|
{
|
|
1759
1978
|
ref: c,
|
|
1760
|
-
className:
|
|
1979
|
+
className: s(
|
|
1761
1980
|
"gryt-toggle",
|
|
1762
1981
|
"inline-flex shrink-0 items-center justify-center gap-2 border-0 bg-transparent",
|
|
1763
1982
|
"rounded-(--gryt-radius-full) font-medium select-none",
|
|
@@ -1765,63 +1984,63 @@ const jo = {
|
|
|
1765
1984
|
"transition-[scale,background-color,color] duration-(--gryt-dur-spring) ease-spring",
|
|
1766
1985
|
"motion-safe:hover:not-data-disabled:scale-[1.06]",
|
|
1767
1986
|
"motion-safe:active:not-data-disabled:scale-[0.94]",
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1987
|
+
x,
|
|
1988
|
+
V,
|
|
1989
|
+
mr[r],
|
|
1990
|
+
yr[t],
|
|
1991
|
+
e
|
|
1773
1992
|
),
|
|
1774
|
-
...
|
|
1993
|
+
...n
|
|
1775
1994
|
}
|
|
1776
1995
|
);
|
|
1777
1996
|
}
|
|
1778
|
-
),
|
|
1779
|
-
function({ className:
|
|
1780
|
-
return /* @__PURE__ */
|
|
1781
|
-
|
|
1997
|
+
), pa = i(
|
|
1998
|
+
function({ className: e, ...r }, t) {
|
|
1999
|
+
return /* @__PURE__ */ a(
|
|
2000
|
+
Yt,
|
|
1782
2001
|
{
|
|
1783
|
-
ref:
|
|
1784
|
-
className:
|
|
2002
|
+
ref: t,
|
|
2003
|
+
className: s(
|
|
1785
2004
|
"gryt-toggle-group inline-flex items-center gap-1",
|
|
1786
2005
|
"rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface p-1",
|
|
1787
|
-
|
|
2006
|
+
e
|
|
1788
2007
|
),
|
|
1789
|
-
...
|
|
2008
|
+
...r
|
|
1790
2009
|
}
|
|
1791
2010
|
);
|
|
1792
2011
|
}
|
|
1793
|
-
),
|
|
2012
|
+
), pr = {
|
|
1794
2013
|
primary: "bg-gryt-accent",
|
|
1795
2014
|
success: "bg-gryt-success",
|
|
1796
2015
|
warning: "bg-gryt-warning",
|
|
1797
2016
|
danger: "bg-gryt-danger"
|
|
1798
2017
|
};
|
|
1799
|
-
function
|
|
1800
|
-
className:
|
|
1801
|
-
value:
|
|
1802
|
-
label:
|
|
1803
|
-
showValue:
|
|
1804
|
-
tone:
|
|
2018
|
+
function fa({
|
|
2019
|
+
className: o,
|
|
2020
|
+
value: e,
|
|
2021
|
+
label: r,
|
|
2022
|
+
showValue: t = !1,
|
|
2023
|
+
tone: n = "primary",
|
|
1805
2024
|
...c
|
|
1806
2025
|
}) {
|
|
1807
|
-
return /* @__PURE__ */
|
|
1808
|
-
|
|
2026
|
+
return /* @__PURE__ */ p(
|
|
2027
|
+
H.Root,
|
|
1809
2028
|
{
|
|
1810
|
-
value:
|
|
1811
|
-
className:
|
|
2029
|
+
value: e,
|
|
2030
|
+
className: s("gryt-meter flex w-full flex-col gap-1.5", o),
|
|
1812
2031
|
...c,
|
|
1813
2032
|
children: [
|
|
1814
|
-
(
|
|
1815
|
-
|
|
1816
|
-
|
|
2033
|
+
(r || t) && /* @__PURE__ */ p("div", { className: "flex items-baseline justify-between gap-2", children: [
|
|
2034
|
+
r ? /* @__PURE__ */ a(H.Label, { className: "text-sm text-gryt-muted", children: r }) : /* @__PURE__ */ a("span", {}),
|
|
2035
|
+
t && /* @__PURE__ */ a(H.Value, { className: "font-mono text-xs text-gryt-muted tabular-nums" })
|
|
1817
2036
|
] }),
|
|
1818
|
-
/* @__PURE__ */
|
|
1819
|
-
|
|
2037
|
+
/* @__PURE__ */ a(H.Track, { className: "h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised", children: /* @__PURE__ */ a(
|
|
2038
|
+
H.Indicator,
|
|
1820
2039
|
{
|
|
1821
|
-
className:
|
|
2040
|
+
className: s(
|
|
1822
2041
|
"h-full rounded-(--gryt-radius-full)",
|
|
1823
2042
|
"transition-[width] duration-120 ease-out motion-reduce:transition-none",
|
|
1824
|
-
|
|
2043
|
+
pr[n]
|
|
1825
2044
|
)
|
|
1826
2045
|
}
|
|
1827
2046
|
) })
|
|
@@ -1829,13 +2048,13 @@ function Oo({
|
|
|
1829
2048
|
}
|
|
1830
2049
|
);
|
|
1831
2050
|
}
|
|
1832
|
-
const
|
|
1833
|
-
function({ className:
|
|
1834
|
-
return /* @__PURE__ */
|
|
1835
|
-
|
|
2051
|
+
const fr = i(
|
|
2052
|
+
function({ className: e, ...r }, t) {
|
|
2053
|
+
return /* @__PURE__ */ a(
|
|
2054
|
+
M.Popup,
|
|
1836
2055
|
{
|
|
1837
|
-
ref:
|
|
1838
|
-
className:
|
|
2056
|
+
ref: t,
|
|
2057
|
+
className: s(
|
|
1839
2058
|
"gryt-alert-dialog fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
1840
2059
|
"flex w-96 max-w-[calc(100vw-3rem)] flex-col gap-4",
|
|
1841
2060
|
"rounded-(--gryt-radius-lg) border border-gryt-border bg-gryt-surface p-5 text-gryt-text",
|
|
@@ -1843,61 +2062,61 @@ const Ue = s(
|
|
|
1843
2062
|
"transition-[opacity,scale] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
|
|
1844
2063
|
"data-starting-style:scale-[0.98] data-starting-style:opacity-0",
|
|
1845
2064
|
"data-ending-style:scale-[0.98] data-ending-style:opacity-0",
|
|
1846
|
-
|
|
2065
|
+
e
|
|
1847
2066
|
),
|
|
1848
|
-
...
|
|
2067
|
+
...r
|
|
1849
2068
|
}
|
|
1850
2069
|
);
|
|
1851
2070
|
}
|
|
1852
|
-
),
|
|
1853
|
-
return /* @__PURE__ */
|
|
1854
|
-
|
|
2071
|
+
), br = i(function({ className: e, ...r }, t) {
|
|
2072
|
+
return /* @__PURE__ */ a(
|
|
2073
|
+
M.Backdrop,
|
|
1855
2074
|
{
|
|
1856
|
-
ref:
|
|
1857
|
-
className:
|
|
2075
|
+
ref: t,
|
|
2076
|
+
className: s(
|
|
1858
2077
|
"gryt-alert-dialog-backdrop fixed inset-0 z-50 min-h-dvh bg-black/60",
|
|
1859
2078
|
"backdrop-blur-(--gryt-backdrop-blur)",
|
|
1860
2079
|
"transition-opacity duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
|
|
1861
2080
|
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
1862
|
-
|
|
2081
|
+
e
|
|
1863
2082
|
),
|
|
1864
|
-
...
|
|
2083
|
+
...r
|
|
1865
2084
|
}
|
|
1866
2085
|
);
|
|
1867
|
-
}),
|
|
1868
|
-
return /* @__PURE__ */
|
|
1869
|
-
|
|
2086
|
+
}), hr = i(function({ className: e, ...r }, t) {
|
|
2087
|
+
return /* @__PURE__ */ a(
|
|
2088
|
+
M.Title,
|
|
1870
2089
|
{
|
|
1871
|
-
ref:
|
|
1872
|
-
className:
|
|
2090
|
+
ref: t,
|
|
2091
|
+
className: s(
|
|
1873
2092
|
"gryt-alert-dialog-title text-lg font-semibold text-gryt-text",
|
|
1874
|
-
|
|
2093
|
+
e
|
|
1875
2094
|
),
|
|
1876
|
-
...
|
|
2095
|
+
...r
|
|
1877
2096
|
}
|
|
1878
2097
|
);
|
|
1879
|
-
}),
|
|
1880
|
-
return /* @__PURE__ */
|
|
1881
|
-
|
|
2098
|
+
}), xr = i(function({ className: e, ...r }, t) {
|
|
2099
|
+
return /* @__PURE__ */ a(
|
|
2100
|
+
M.Description,
|
|
1882
2101
|
{
|
|
1883
|
-
ref:
|
|
1884
|
-
className:
|
|
2102
|
+
ref: t,
|
|
2103
|
+
className: s(
|
|
1885
2104
|
"gryt-alert-dialog-description text-sm leading-6 text-gryt-muted",
|
|
1886
|
-
|
|
2105
|
+
e
|
|
1887
2106
|
),
|
|
1888
|
-
...
|
|
2107
|
+
...r
|
|
1889
2108
|
}
|
|
1890
2109
|
);
|
|
1891
|
-
}),
|
|
1892
|
-
Root:
|
|
1893
|
-
Trigger:
|
|
1894
|
-
Portal:
|
|
1895
|
-
Backdrop:
|
|
1896
|
-
Popup:
|
|
1897
|
-
Title:
|
|
1898
|
-
Description:
|
|
1899
|
-
Close:
|
|
1900
|
-
},
|
|
2110
|
+
}), ba = {
|
|
2111
|
+
Root: M.Root,
|
|
2112
|
+
Trigger: M.Trigger,
|
|
2113
|
+
Portal: M.Portal,
|
|
2114
|
+
Backdrop: br,
|
|
2115
|
+
Popup: fr,
|
|
2116
|
+
Title: hr,
|
|
2117
|
+
Description: xr,
|
|
2118
|
+
Close: M.Close
|
|
2119
|
+
}, Rt = [
|
|
1901
2120
|
"flex cursor-default items-center gap-2 rounded-(--gryt-radius-md)",
|
|
1902
2121
|
"px-3 py-2 text-sm text-gryt-text outline-none select-none",
|
|
1903
2122
|
// Base UI drives keyboard and pointer highlight through one attribute, so
|
|
@@ -1905,378 +2124,378 @@ const Ue = s(
|
|
|
1905
2124
|
"data-highlighted:bg-gryt-surface-raised",
|
|
1906
2125
|
"data-selected:text-gryt-accent",
|
|
1907
2126
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50"
|
|
1908
|
-
].join(" "),
|
|
1909
|
-
|
|
1910
|
-
|
|
2127
|
+
].join(" "), It = [
|
|
2128
|
+
kt,
|
|
2129
|
+
$t.medium,
|
|
1911
2130
|
"border-gryt-border",
|
|
1912
|
-
|
|
1913
|
-
].join(" "),
|
|
1914
|
-
return /* @__PURE__ */
|
|
1915
|
-
|
|
2131
|
+
x
|
|
2132
|
+
].join(" "), wr = i(function({ className: e, ...r }, t) {
|
|
2133
|
+
return /* @__PURE__ */ a(
|
|
2134
|
+
b.Input,
|
|
1916
2135
|
{
|
|
1917
|
-
ref:
|
|
1918
|
-
className:
|
|
1919
|
-
...
|
|
2136
|
+
ref: t,
|
|
2137
|
+
className: s("gryt-combobox-input", It, e),
|
|
2138
|
+
...r
|
|
1920
2139
|
}
|
|
1921
2140
|
);
|
|
1922
|
-
}),
|
|
1923
|
-
return /* @__PURE__ */
|
|
1924
|
-
|
|
2141
|
+
}), vr = i(function({ className: e, sideOffset: r = 6, ...t }, n) {
|
|
2142
|
+
return /* @__PURE__ */ a(
|
|
2143
|
+
b.Positioner,
|
|
1925
2144
|
{
|
|
1926
|
-
ref:
|
|
1927
|
-
sideOffset:
|
|
1928
|
-
className:
|
|
1929
|
-
...
|
|
2145
|
+
ref: n,
|
|
2146
|
+
sideOffset: r,
|
|
2147
|
+
className: s("gryt-combobox-positioner outline-none", e),
|
|
2148
|
+
...t
|
|
1930
2149
|
}
|
|
1931
2150
|
);
|
|
1932
|
-
}),
|
|
1933
|
-
function({ className:
|
|
1934
|
-
return /* @__PURE__ */
|
|
1935
|
-
|
|
2151
|
+
}), Nr = i(
|
|
2152
|
+
function({ className: e, ...r }, t) {
|
|
2153
|
+
return /* @__PURE__ */ a(
|
|
2154
|
+
b.Popup,
|
|
1936
2155
|
{
|
|
1937
|
-
ref:
|
|
1938
|
-
className:
|
|
2156
|
+
ref: t,
|
|
2157
|
+
className: s(
|
|
1939
2158
|
"gryt-combobox max-h-64 w-(--anchor-width) overflow-y-auto overscroll-contain p-1 outline-none",
|
|
2159
|
+
B,
|
|
1940
2160
|
A,
|
|
1941
|
-
|
|
1942
|
-
t
|
|
2161
|
+
e
|
|
1943
2162
|
),
|
|
1944
|
-
...
|
|
2163
|
+
...r
|
|
1945
2164
|
}
|
|
1946
2165
|
);
|
|
1947
2166
|
}
|
|
1948
|
-
),
|
|
1949
|
-
return /* @__PURE__ */
|
|
1950
|
-
|
|
2167
|
+
), Pr = i(function({ className: e, ...r }, t) {
|
|
2168
|
+
return /* @__PURE__ */ a(
|
|
2169
|
+
b.Item,
|
|
1951
2170
|
{
|
|
1952
|
-
ref:
|
|
1953
|
-
className:
|
|
1954
|
-
...
|
|
2171
|
+
ref: t,
|
|
2172
|
+
className: s("gryt-combobox-item", Rt, e),
|
|
2173
|
+
...r
|
|
1955
2174
|
}
|
|
1956
2175
|
);
|
|
1957
|
-
}),
|
|
1958
|
-
return /* @__PURE__ */
|
|
1959
|
-
|
|
2176
|
+
}), Tr = i(function({ className: e, ...r }, t) {
|
|
2177
|
+
return /* @__PURE__ */ a(
|
|
2178
|
+
b.Empty,
|
|
1960
2179
|
{
|
|
1961
|
-
ref:
|
|
1962
|
-
className:
|
|
2180
|
+
ref: t,
|
|
2181
|
+
className: s(
|
|
1963
2182
|
"gryt-combobox-empty px-3 py-2 text-sm text-gryt-muted",
|
|
1964
|
-
|
|
2183
|
+
e
|
|
1965
2184
|
),
|
|
1966
|
-
...
|
|
2185
|
+
...r
|
|
1967
2186
|
}
|
|
1968
2187
|
);
|
|
1969
|
-
}),
|
|
1970
|
-
Root:
|
|
1971
|
-
Input:
|
|
1972
|
-
InputGroup:
|
|
1973
|
-
Trigger:
|
|
1974
|
-
Icon:
|
|
1975
|
-
Clear:
|
|
1976
|
-
Value:
|
|
1977
|
-
Chips:
|
|
1978
|
-
Chip:
|
|
1979
|
-
ChipRemove:
|
|
1980
|
-
Portal:
|
|
1981
|
-
Positioner:
|
|
1982
|
-
Popup:
|
|
1983
|
-
List:
|
|
1984
|
-
Item:
|
|
1985
|
-
ItemIndicator:
|
|
1986
|
-
Group:
|
|
1987
|
-
GroupLabel:
|
|
1988
|
-
Empty:
|
|
1989
|
-
Separator:
|
|
1990
|
-
},
|
|
1991
|
-
return /* @__PURE__ */
|
|
1992
|
-
|
|
2188
|
+
}), ha = {
|
|
2189
|
+
Root: b.Root,
|
|
2190
|
+
Input: wr,
|
|
2191
|
+
InputGroup: b.InputGroup,
|
|
2192
|
+
Trigger: b.Trigger,
|
|
2193
|
+
Icon: b.Icon,
|
|
2194
|
+
Clear: b.Clear,
|
|
2195
|
+
Value: b.Value,
|
|
2196
|
+
Chips: b.Chips,
|
|
2197
|
+
Chip: b.Chip,
|
|
2198
|
+
ChipRemove: b.ChipRemove,
|
|
2199
|
+
Portal: b.Portal,
|
|
2200
|
+
Positioner: vr,
|
|
2201
|
+
Popup: Nr,
|
|
2202
|
+
List: b.List,
|
|
2203
|
+
Item: Pr,
|
|
2204
|
+
ItemIndicator: b.ItemIndicator,
|
|
2205
|
+
Group: b.Group,
|
|
2206
|
+
GroupLabel: b.GroupLabel,
|
|
2207
|
+
Empty: Tr,
|
|
2208
|
+
Separator: b.Separator
|
|
2209
|
+
}, kr = i(function({ className: e, ...r }, t) {
|
|
2210
|
+
return /* @__PURE__ */ a(
|
|
2211
|
+
h.Input,
|
|
1993
2212
|
{
|
|
1994
|
-
ref:
|
|
1995
|
-
className:
|
|
1996
|
-
...
|
|
2213
|
+
ref: t,
|
|
2214
|
+
className: s("gryt-autocomplete-input", It, e),
|
|
2215
|
+
...r
|
|
1997
2216
|
}
|
|
1998
2217
|
);
|
|
1999
|
-
}),
|
|
2000
|
-
return /* @__PURE__ */
|
|
2001
|
-
|
|
2218
|
+
}), $r = i(function({ className: e, sideOffset: r = 6, ...t }, n) {
|
|
2219
|
+
return /* @__PURE__ */ a(
|
|
2220
|
+
h.Positioner,
|
|
2002
2221
|
{
|
|
2003
|
-
ref:
|
|
2004
|
-
sideOffset:
|
|
2005
|
-
className:
|
|
2006
|
-
...
|
|
2222
|
+
ref: n,
|
|
2223
|
+
sideOffset: r,
|
|
2224
|
+
className: s("gryt-autocomplete-positioner outline-none", e),
|
|
2225
|
+
...t
|
|
2007
2226
|
}
|
|
2008
2227
|
);
|
|
2009
|
-
}),
|
|
2010
|
-
return /* @__PURE__ */
|
|
2011
|
-
|
|
2228
|
+
}), Cr = i(function({ className: e, ...r }, t) {
|
|
2229
|
+
return /* @__PURE__ */ a(
|
|
2230
|
+
h.Popup,
|
|
2012
2231
|
{
|
|
2013
|
-
ref:
|
|
2014
|
-
className:
|
|
2232
|
+
ref: t,
|
|
2233
|
+
className: s(
|
|
2015
2234
|
"gryt-autocomplete max-h-64 w-(--anchor-width) overflow-y-auto overscroll-contain p-1 outline-none",
|
|
2235
|
+
B,
|
|
2016
2236
|
A,
|
|
2017
|
-
|
|
2018
|
-
t
|
|
2237
|
+
e
|
|
2019
2238
|
),
|
|
2020
|
-
...
|
|
2239
|
+
...r
|
|
2021
2240
|
}
|
|
2022
2241
|
);
|
|
2023
|
-
}),
|
|
2024
|
-
return /* @__PURE__ */
|
|
2025
|
-
|
|
2242
|
+
}), Sr = i(function({ className: e, ...r }, t) {
|
|
2243
|
+
return /* @__PURE__ */ a(
|
|
2244
|
+
h.Item,
|
|
2026
2245
|
{
|
|
2027
|
-
ref:
|
|
2028
|
-
className:
|
|
2029
|
-
...
|
|
2246
|
+
ref: t,
|
|
2247
|
+
className: s("gryt-autocomplete-item", Rt, e),
|
|
2248
|
+
...r
|
|
2030
2249
|
}
|
|
2031
2250
|
);
|
|
2032
|
-
}),
|
|
2033
|
-
return /* @__PURE__ */
|
|
2034
|
-
|
|
2251
|
+
}), Rr = i(function({ className: e, ...r }, t) {
|
|
2252
|
+
return /* @__PURE__ */ a(
|
|
2253
|
+
h.Empty,
|
|
2035
2254
|
{
|
|
2036
|
-
ref:
|
|
2037
|
-
className:
|
|
2255
|
+
ref: t,
|
|
2256
|
+
className: s(
|
|
2038
2257
|
"gryt-autocomplete-empty px-3 py-2 text-sm text-gryt-muted",
|
|
2039
|
-
|
|
2258
|
+
e
|
|
2040
2259
|
),
|
|
2041
|
-
...
|
|
2260
|
+
...r
|
|
2042
2261
|
}
|
|
2043
2262
|
);
|
|
2044
|
-
}),
|
|
2045
|
-
Root:
|
|
2046
|
-
Input:
|
|
2047
|
-
InputGroup:
|
|
2048
|
-
Trigger:
|
|
2049
|
-
Icon:
|
|
2050
|
-
Clear:
|
|
2051
|
-
Value:
|
|
2052
|
-
Portal:
|
|
2053
|
-
Positioner:
|
|
2054
|
-
Popup:
|
|
2055
|
-
List:
|
|
2056
|
-
Item:
|
|
2057
|
-
Group:
|
|
2058
|
-
GroupLabel:
|
|
2059
|
-
Empty:
|
|
2060
|
-
Separator:
|
|
2061
|
-
},
|
|
2062
|
-
function({ className:
|
|
2063
|
-
return /* @__PURE__ */
|
|
2064
|
-
|
|
2263
|
+
}), xa = {
|
|
2264
|
+
Root: h.Root,
|
|
2265
|
+
Input: kr,
|
|
2266
|
+
InputGroup: h.InputGroup,
|
|
2267
|
+
Trigger: h.Trigger,
|
|
2268
|
+
Icon: h.Icon,
|
|
2269
|
+
Clear: h.Clear,
|
|
2270
|
+
Value: h.Value,
|
|
2271
|
+
Portal: h.Portal,
|
|
2272
|
+
Positioner: $r,
|
|
2273
|
+
Popup: Cr,
|
|
2274
|
+
List: h.List,
|
|
2275
|
+
Item: Sr,
|
|
2276
|
+
Group: h.Group,
|
|
2277
|
+
GroupLabel: h.GroupLabel,
|
|
2278
|
+
Empty: Rr,
|
|
2279
|
+
Separator: h.Separator
|
|
2280
|
+
}, wa = i(
|
|
2281
|
+
function({ className: e, ...r }, t) {
|
|
2282
|
+
return /* @__PURE__ */ a(
|
|
2283
|
+
Wt,
|
|
2065
2284
|
{
|
|
2066
|
-
ref:
|
|
2067
|
-
className:
|
|
2068
|
-
...
|
|
2285
|
+
ref: t,
|
|
2286
|
+
className: s("gryt-checkbox-group flex flex-col gap-2", e),
|
|
2287
|
+
...r
|
|
2069
2288
|
}
|
|
2070
2289
|
);
|
|
2071
2290
|
}
|
|
2072
|
-
),
|
|
2073
|
-
function({ className:
|
|
2074
|
-
return /* @__PURE__ */
|
|
2075
|
-
|
|
2291
|
+
), Ir = i(
|
|
2292
|
+
function({ className: e, ...r }, t) {
|
|
2293
|
+
return /* @__PURE__ */ a(
|
|
2294
|
+
st.Trigger,
|
|
2076
2295
|
{
|
|
2077
|
-
ref:
|
|
2078
|
-
className:
|
|
2296
|
+
ref: t,
|
|
2297
|
+
className: s(
|
|
2079
2298
|
"gryt-collapsible-trigger flex w-full items-center justify-between gap-2",
|
|
2080
2299
|
"rounded-(--gryt-radius-md) border-0 bg-transparent px-2 py-2 text-left",
|
|
2081
2300
|
"text-sm font-medium text-gryt-text select-none",
|
|
2082
2301
|
"transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none",
|
|
2083
|
-
|
|
2084
|
-
|
|
2302
|
+
x,
|
|
2303
|
+
e
|
|
2085
2304
|
),
|
|
2086
|
-
...
|
|
2305
|
+
...r
|
|
2087
2306
|
}
|
|
2088
2307
|
);
|
|
2089
2308
|
}
|
|
2090
|
-
),
|
|
2091
|
-
function({ className:
|
|
2092
|
-
return /* @__PURE__ */
|
|
2093
|
-
|
|
2309
|
+
), Lr = i(
|
|
2310
|
+
function({ className: e, ...r }, t) {
|
|
2311
|
+
return /* @__PURE__ */ a(
|
|
2312
|
+
st.Panel,
|
|
2094
2313
|
{
|
|
2095
|
-
ref:
|
|
2096
|
-
className:
|
|
2314
|
+
ref: t,
|
|
2315
|
+
className: s(
|
|
2097
2316
|
"gryt-collapsible-panel overflow-hidden",
|
|
2098
2317
|
// Base UI measures the panel and exposes the height as a variable, so
|
|
2099
2318
|
// this animates to the content's real height rather than to a guess.
|
|
2100
2319
|
"h-(--collapsible-panel-height) transition-[height] duration-(--gryt-dur-spring) ease-spring",
|
|
2101
2320
|
"data-starting-style:h-0 data-ending-style:h-0",
|
|
2102
2321
|
"motion-reduce:transition-none",
|
|
2103
|
-
|
|
2322
|
+
e
|
|
2104
2323
|
),
|
|
2105
|
-
...
|
|
2324
|
+
...r
|
|
2106
2325
|
}
|
|
2107
2326
|
);
|
|
2108
2327
|
}
|
|
2109
|
-
),
|
|
2110
|
-
Root:
|
|
2111
|
-
Trigger:
|
|
2112
|
-
Panel:
|
|
2113
|
-
},
|
|
2114
|
-
return /* @__PURE__ */
|
|
2115
|
-
|
|
2328
|
+
), va = {
|
|
2329
|
+
Root: st.Root,
|
|
2330
|
+
Trigger: Ir,
|
|
2331
|
+
Panel: Lr
|
|
2332
|
+
}, Na = i(function({ className: e, ...r }, t) {
|
|
2333
|
+
return /* @__PURE__ */ a(
|
|
2334
|
+
Qt,
|
|
2116
2335
|
{
|
|
2117
|
-
ref:
|
|
2118
|
-
className:
|
|
2119
|
-
...
|
|
2336
|
+
ref: t,
|
|
2337
|
+
className: s("gryt-form flex flex-col gap-(--gryt-space-lg)", e),
|
|
2338
|
+
...r
|
|
2120
2339
|
}
|
|
2121
2340
|
);
|
|
2122
|
-
}),
|
|
2123
|
-
function({ className:
|
|
2124
|
-
return /* @__PURE__ */
|
|
2125
|
-
|
|
2341
|
+
}), Mr = i(
|
|
2342
|
+
function({ className: e, ...r }, t) {
|
|
2343
|
+
return /* @__PURE__ */ a(
|
|
2344
|
+
vt.Root,
|
|
2126
2345
|
{
|
|
2127
|
-
ref:
|
|
2128
|
-
className:
|
|
2346
|
+
ref: t,
|
|
2347
|
+
className: s(
|
|
2129
2348
|
"gryt-fieldset flex min-w-0 flex-col gap-3 border-0 p-0",
|
|
2130
|
-
|
|
2349
|
+
e
|
|
2131
2350
|
),
|
|
2132
|
-
...
|
|
2351
|
+
...r
|
|
2133
2352
|
}
|
|
2134
2353
|
);
|
|
2135
2354
|
}
|
|
2136
|
-
),
|
|
2137
|
-
return /* @__PURE__ */
|
|
2138
|
-
|
|
2355
|
+
), Ar = i(function({ className: e, ...r }, t) {
|
|
2356
|
+
return /* @__PURE__ */ a(
|
|
2357
|
+
vt.Legend,
|
|
2139
2358
|
{
|
|
2140
|
-
ref:
|
|
2141
|
-
className:
|
|
2359
|
+
ref: t,
|
|
2360
|
+
className: s(
|
|
2142
2361
|
"gryt-fieldset-legend text-sm font-semibold text-gryt-text",
|
|
2143
|
-
|
|
2362
|
+
e
|
|
2144
2363
|
),
|
|
2145
|
-
...
|
|
2364
|
+
...r
|
|
2146
2365
|
}
|
|
2147
2366
|
);
|
|
2148
|
-
}),
|
|
2149
|
-
function({ className:
|
|
2150
|
-
return /* @__PURE__ */
|
|
2151
|
-
|
|
2367
|
+
}), Pa = { Root: Mr, Legend: Ar }, Ta = i(
|
|
2368
|
+
function({ className: e, ...r }, t) {
|
|
2369
|
+
return /* @__PURE__ */ a(
|
|
2370
|
+
Jt,
|
|
2152
2371
|
{
|
|
2153
|
-
ref:
|
|
2154
|
-
className:
|
|
2372
|
+
ref: t,
|
|
2373
|
+
className: s(
|
|
2155
2374
|
"gryt-menubar flex items-center gap-1",
|
|
2156
2375
|
"rounded-(--gryt-radius-md) border border-gryt-border bg-gryt-surface p-1",
|
|
2157
|
-
|
|
2376
|
+
e
|
|
2158
2377
|
),
|
|
2159
|
-
...
|
|
2378
|
+
...r
|
|
2160
2379
|
}
|
|
2161
2380
|
);
|
|
2162
2381
|
}
|
|
2163
|
-
),
|
|
2164
|
-
return /* @__PURE__ */
|
|
2165
|
-
|
|
2382
|
+
), Dr = i(function({ className: e, ...r }, t) {
|
|
2383
|
+
return /* @__PURE__ */ a(
|
|
2384
|
+
N.Trigger,
|
|
2166
2385
|
{
|
|
2167
|
-
ref:
|
|
2168
|
-
className:
|
|
2386
|
+
ref: t,
|
|
2387
|
+
className: s(
|
|
2169
2388
|
"gryt-navigation-menu-trigger flex items-center gap-1.5 rounded-(--gryt-radius-md)",
|
|
2170
2389
|
"border-0 bg-transparent px-3 py-2 text-sm font-medium text-gryt-text select-none",
|
|
2171
2390
|
"transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none",
|
|
2172
2391
|
"data-popup-open:bg-gryt-surface-raised",
|
|
2173
|
-
|
|
2174
|
-
|
|
2392
|
+
x,
|
|
2393
|
+
e
|
|
2175
2394
|
),
|
|
2176
|
-
...
|
|
2395
|
+
...r
|
|
2177
2396
|
}
|
|
2178
2397
|
);
|
|
2179
|
-
}),
|
|
2180
|
-
return /* @__PURE__ */
|
|
2181
|
-
|
|
2398
|
+
}), jr = i(function({ className: e, ...r }, t) {
|
|
2399
|
+
return /* @__PURE__ */ a(
|
|
2400
|
+
N.Popup,
|
|
2182
2401
|
{
|
|
2183
|
-
ref:
|
|
2184
|
-
className:
|
|
2402
|
+
ref: t,
|
|
2403
|
+
className: s(
|
|
2185
2404
|
"gryt-navigation-menu-popup outline-none",
|
|
2405
|
+
B,
|
|
2186
2406
|
A,
|
|
2187
|
-
|
|
2188
|
-
t
|
|
2407
|
+
e
|
|
2189
2408
|
),
|
|
2190
|
-
...
|
|
2409
|
+
...r
|
|
2191
2410
|
}
|
|
2192
2411
|
);
|
|
2193
|
-
}),
|
|
2194
|
-
return /* @__PURE__ */
|
|
2195
|
-
|
|
2412
|
+
}), Gr = i(function({ className: e, ...r }, t) {
|
|
2413
|
+
return /* @__PURE__ */ a(
|
|
2414
|
+
N.Viewport,
|
|
2196
2415
|
{
|
|
2197
|
-
ref:
|
|
2198
|
-
className:
|
|
2416
|
+
ref: t,
|
|
2417
|
+
className: s(
|
|
2199
2418
|
"gryt-navigation-menu-viewport relative overflow-hidden",
|
|
2200
|
-
|
|
2419
|
+
e
|
|
2201
2420
|
),
|
|
2202
|
-
...
|
|
2421
|
+
...r
|
|
2203
2422
|
}
|
|
2204
2423
|
);
|
|
2205
|
-
}),
|
|
2206
|
-
return /* @__PURE__ */
|
|
2207
|
-
|
|
2424
|
+
}), Br = i(function({ className: e, ...r }, t) {
|
|
2425
|
+
return /* @__PURE__ */ a(
|
|
2426
|
+
N.Link,
|
|
2208
2427
|
{
|
|
2209
|
-
ref:
|
|
2210
|
-
className:
|
|
2428
|
+
ref: t,
|
|
2429
|
+
className: s(
|
|
2211
2430
|
"gryt-navigation-menu-link block rounded-(--gryt-radius-md) px-3 py-2",
|
|
2212
2431
|
"text-sm text-gryt-text no-underline outline-none",
|
|
2213
2432
|
"transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none",
|
|
2214
|
-
|
|
2215
|
-
|
|
2433
|
+
x,
|
|
2434
|
+
e
|
|
2216
2435
|
),
|
|
2217
|
-
...
|
|
2436
|
+
...r
|
|
2218
2437
|
}
|
|
2219
2438
|
);
|
|
2220
|
-
}),
|
|
2221
|
-
Root:
|
|
2222
|
-
List:
|
|
2223
|
-
Item:
|
|
2224
|
-
Trigger:
|
|
2225
|
-
Content:
|
|
2226
|
-
Portal:
|
|
2227
|
-
Positioner:
|
|
2228
|
-
Viewport:
|
|
2229
|
-
Popup:
|
|
2230
|
-
Link:
|
|
2231
|
-
Icon:
|
|
2232
|
-
Arrow:
|
|
2233
|
-
},
|
|
2234
|
-
function({ className:
|
|
2235
|
-
return /* @__PURE__ */
|
|
2236
|
-
|
|
2439
|
+
}), ka = {
|
|
2440
|
+
Root: N.Root,
|
|
2441
|
+
List: N.List,
|
|
2442
|
+
Item: N.Item,
|
|
2443
|
+
Trigger: Dr,
|
|
2444
|
+
Content: N.Content,
|
|
2445
|
+
Portal: N.Portal,
|
|
2446
|
+
Positioner: N.Positioner,
|
|
2447
|
+
Viewport: Gr,
|
|
2448
|
+
Popup: jr,
|
|
2449
|
+
Link: Br,
|
|
2450
|
+
Icon: N.Icon,
|
|
2451
|
+
Arrow: N.Arrow
|
|
2452
|
+
}, ft = "flex h-9 w-9 shrink-0 items-center justify-center border-0 bg-transparent text-gryt-muted transition-colors hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text motion-reduce:transition-none disabled:cursor-not-allowed disabled:opacity-50", $a = i(
|
|
2453
|
+
function({ className: e, label: r, scrubbable: t = !1, ...n }, c) {
|
|
2454
|
+
return /* @__PURE__ */ p(
|
|
2455
|
+
D.Root,
|
|
2237
2456
|
{
|
|
2238
2457
|
ref: c,
|
|
2239
|
-
className:
|
|
2240
|
-
...
|
|
2458
|
+
className: s("gryt-number-field flex flex-col gap-1.5", e),
|
|
2459
|
+
...n,
|
|
2241
2460
|
children: [
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
/* @__PURE__ */
|
|
2245
|
-
] }) : /* @__PURE__ */
|
|
2246
|
-
/* @__PURE__ */
|
|
2247
|
-
|
|
2461
|
+
r && (t ? /* @__PURE__ */ p(D.ScrubArea, { className: "cursor-ew-resize text-sm text-gryt-muted select-none", children: [
|
|
2462
|
+
r,
|
|
2463
|
+
/* @__PURE__ */ a(D.ScrubAreaCursor, {})
|
|
2464
|
+
] }) : /* @__PURE__ */ a("span", { className: "text-sm text-gryt-muted", children: r })),
|
|
2465
|
+
/* @__PURE__ */ p(
|
|
2466
|
+
D.Group,
|
|
2248
2467
|
{
|
|
2249
|
-
className:
|
|
2468
|
+
className: s(
|
|
2250
2469
|
"flex w-fit items-center overflow-hidden rounded-(--gryt-radius-full)",
|
|
2251
2470
|
"border border-gryt-border bg-gryt-surface-raised",
|
|
2252
2471
|
"focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-gryt-accent-light",
|
|
2253
|
-
|
|
2472
|
+
V
|
|
2254
2473
|
),
|
|
2255
2474
|
children: [
|
|
2256
|
-
/* @__PURE__ */
|
|
2257
|
-
|
|
2475
|
+
/* @__PURE__ */ a(
|
|
2476
|
+
D.Decrement,
|
|
2258
2477
|
{
|
|
2259
2478
|
"aria-label": "Decrease",
|
|
2260
|
-
className:
|
|
2261
|
-
children: /* @__PURE__ */
|
|
2479
|
+
className: s(ft, "rounded-l-(--gryt-radius-full)"),
|
|
2480
|
+
children: /* @__PURE__ */ a(_t, { size: 14, weight: "bold" })
|
|
2262
2481
|
}
|
|
2263
2482
|
),
|
|
2264
|
-
/* @__PURE__ */
|
|
2265
|
-
|
|
2483
|
+
/* @__PURE__ */ a(
|
|
2484
|
+
D.Input,
|
|
2266
2485
|
{
|
|
2267
|
-
className:
|
|
2486
|
+
className: s(
|
|
2268
2487
|
"w-16 border-0 bg-transparent px-1 py-2 text-center",
|
|
2269
2488
|
"font-mono text-sm text-gryt-text tabular-nums outline-none",
|
|
2270
|
-
|
|
2489
|
+
x
|
|
2271
2490
|
)
|
|
2272
2491
|
}
|
|
2273
2492
|
),
|
|
2274
|
-
/* @__PURE__ */
|
|
2275
|
-
|
|
2493
|
+
/* @__PURE__ */ a(
|
|
2494
|
+
D.Increment,
|
|
2276
2495
|
{
|
|
2277
2496
|
"aria-label": "Increase",
|
|
2278
|
-
className:
|
|
2279
|
-
children: /* @__PURE__ */
|
|
2497
|
+
className: s(ft, "rounded-r-(--gryt-radius-full)"),
|
|
2498
|
+
children: /* @__PURE__ */ a(Ht, { size: 14, weight: "bold" })
|
|
2280
2499
|
}
|
|
2281
2500
|
)
|
|
2282
2501
|
]
|
|
@@ -2286,25 +2505,25 @@ const Ue = s(
|
|
|
2286
2505
|
}
|
|
2287
2506
|
);
|
|
2288
2507
|
}
|
|
2289
|
-
),
|
|
2290
|
-
function({ className:
|
|
2291
|
-
return /* @__PURE__ */
|
|
2292
|
-
|
|
2508
|
+
), Ca = i(
|
|
2509
|
+
function({ className: e, length: r = 6, ...t }, n) {
|
|
2510
|
+
return /* @__PURE__ */ a(
|
|
2511
|
+
ut.Root,
|
|
2293
2512
|
{
|
|
2294
|
-
ref:
|
|
2295
|
-
length:
|
|
2296
|
-
className:
|
|
2297
|
-
...
|
|
2298
|
-
children: Array.from({ length:
|
|
2299
|
-
|
|
2513
|
+
ref: n,
|
|
2514
|
+
length: r,
|
|
2515
|
+
className: s("gryt-otp-field flex gap-2", e),
|
|
2516
|
+
...t,
|
|
2517
|
+
children: Array.from({ length: r }, (c, l) => /* @__PURE__ */ a(
|
|
2518
|
+
ut.Input,
|
|
2300
2519
|
{
|
|
2301
|
-
className:
|
|
2520
|
+
className: s(
|
|
2302
2521
|
"gryt-otp-input h-12 w-10 rounded-(--gryt-radius-md) text-center",
|
|
2303
2522
|
"border border-gryt-border bg-gryt-surface-raised",
|
|
2304
2523
|
"font-mono text-lg text-gryt-text tabular-nums outline-none",
|
|
2305
2524
|
"transition-colors duration-(--gryt-dur-fast) motion-reduce:transition-none",
|
|
2306
2525
|
"data-filled:border-gryt-accent",
|
|
2307
|
-
|
|
2526
|
+
x
|
|
2308
2527
|
)
|
|
2309
2528
|
},
|
|
2310
2529
|
l
|
|
@@ -2312,130 +2531,135 @@ const Ue = s(
|
|
|
2312
2531
|
}
|
|
2313
2532
|
);
|
|
2314
2533
|
}
|
|
2315
|
-
),
|
|
2316
|
-
function({ className:
|
|
2317
|
-
return /* @__PURE__ */
|
|
2318
|
-
|
|
2534
|
+
), zr = i(
|
|
2535
|
+
function({ className: e, sideOffset: r = 8, ...t }, n) {
|
|
2536
|
+
return /* @__PURE__ */ a(
|
|
2537
|
+
z.Positioner,
|
|
2319
2538
|
{
|
|
2320
|
-
ref:
|
|
2321
|
-
sideOffset:
|
|
2322
|
-
className:
|
|
2323
|
-
...
|
|
2539
|
+
ref: n,
|
|
2540
|
+
sideOffset: r,
|
|
2541
|
+
className: s("gryt-preview-card-positioner outline-none", e),
|
|
2542
|
+
...t
|
|
2324
2543
|
}
|
|
2325
2544
|
);
|
|
2326
2545
|
}
|
|
2327
|
-
),
|
|
2328
|
-
function({ className:
|
|
2329
|
-
return /* @__PURE__ */
|
|
2330
|
-
|
|
2546
|
+
), Fr = i(
|
|
2547
|
+
function({ className: e, ...r }, t) {
|
|
2548
|
+
return /* @__PURE__ */ a(
|
|
2549
|
+
z.Popup,
|
|
2331
2550
|
{
|
|
2332
|
-
ref:
|
|
2333
|
-
className:
|
|
2551
|
+
ref: t,
|
|
2552
|
+
className: s(
|
|
2334
2553
|
"gryt-preview-card w-64 max-w-[calc(100vw-2rem)] p-4 outline-none",
|
|
2554
|
+
B,
|
|
2335
2555
|
A,
|
|
2336
|
-
|
|
2337
|
-
t
|
|
2556
|
+
e
|
|
2338
2557
|
),
|
|
2339
|
-
...
|
|
2558
|
+
...r
|
|
2340
2559
|
}
|
|
2341
2560
|
);
|
|
2342
2561
|
}
|
|
2343
|
-
),
|
|
2344
|
-
Root:
|
|
2345
|
-
Trigger:
|
|
2346
|
-
Portal:
|
|
2347
|
-
Positioner:
|
|
2348
|
-
Popup:
|
|
2349
|
-
Arrow:
|
|
2350
|
-
},
|
|
2351
|
-
return /* @__PURE__ */
|
|
2352
|
-
|
|
2562
|
+
), Sa = {
|
|
2563
|
+
Root: z.Root,
|
|
2564
|
+
Trigger: z.Trigger,
|
|
2565
|
+
Portal: z.Portal,
|
|
2566
|
+
Positioner: zr,
|
|
2567
|
+
Popup: Fr,
|
|
2568
|
+
Arrow: z.Arrow
|
|
2569
|
+
}, Er = i(function({ className: e, ...r }, t) {
|
|
2570
|
+
return /* @__PURE__ */ a(
|
|
2571
|
+
F.Root,
|
|
2353
2572
|
{
|
|
2354
|
-
ref:
|
|
2355
|
-
className:
|
|
2573
|
+
ref: t,
|
|
2574
|
+
className: s(
|
|
2356
2575
|
"gryt-toolbar flex items-center gap-1",
|
|
2357
2576
|
"rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface p-1",
|
|
2358
|
-
|
|
2577
|
+
e
|
|
2359
2578
|
),
|
|
2360
|
-
...
|
|
2579
|
+
...r
|
|
2361
2580
|
}
|
|
2362
2581
|
);
|
|
2363
|
-
}),
|
|
2364
|
-
return /* @__PURE__ */
|
|
2365
|
-
|
|
2582
|
+
}), Vr = i(function({ className: e, ...r }, t) {
|
|
2583
|
+
return /* @__PURE__ */ a(
|
|
2584
|
+
F.Separator,
|
|
2366
2585
|
{
|
|
2367
|
-
ref:
|
|
2368
|
-
className:
|
|
2369
|
-
...
|
|
2586
|
+
ref: t,
|
|
2587
|
+
className: s("gryt-toolbar-separator mx-1 h-6 w-px bg-gryt-border", e),
|
|
2588
|
+
...r
|
|
2370
2589
|
}
|
|
2371
2590
|
);
|
|
2372
|
-
}),
|
|
2373
|
-
Root:
|
|
2374
|
-
Group:
|
|
2375
|
-
Button:
|
|
2376
|
-
Link:
|
|
2377
|
-
Input:
|
|
2378
|
-
Separator:
|
|
2591
|
+
}), Ra = {
|
|
2592
|
+
Root: Er,
|
|
2593
|
+
Group: F.Group,
|
|
2594
|
+
Button: F.Button,
|
|
2595
|
+
Link: F.Link,
|
|
2596
|
+
Input: F.Input,
|
|
2597
|
+
Separator: Vr
|
|
2379
2598
|
};
|
|
2380
2599
|
export {
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2600
|
+
ca as Accordion,
|
|
2601
|
+
ea as Alert,
|
|
2602
|
+
ba as AlertDialog,
|
|
2603
|
+
xa as Autocomplete,
|
|
2604
|
+
he as Avatar,
|
|
2605
|
+
Eo as Badge,
|
|
2606
|
+
de as Button,
|
|
2607
|
+
Ko as Card,
|
|
2608
|
+
ta as CardActions,
|
|
2609
|
+
qo as CardContent,
|
|
2610
|
+
Zo as CardHeader,
|
|
2611
|
+
_o as Checkbox,
|
|
2612
|
+
wa as CheckboxGroup,
|
|
2613
|
+
Vo as Chip,
|
|
2614
|
+
va as Collapsible,
|
|
2615
|
+
ha as Combobox,
|
|
2616
|
+
zo as Composer,
|
|
2617
|
+
la as ContextMenu,
|
|
2618
|
+
Fo as ConversationItem,
|
|
2619
|
+
na as Dialog,
|
|
2620
|
+
Jo as Divider,
|
|
2621
|
+
sa as Drawer,
|
|
2622
|
+
Pa as Fieldset,
|
|
2623
|
+
Na as Form,
|
|
2624
|
+
Ao as GrytProvider,
|
|
2625
|
+
Do as IconButton,
|
|
2626
|
+
ot as Menu,
|
|
2627
|
+
Ta as Menubar,
|
|
2628
|
+
Go as MessageBubble,
|
|
2629
|
+
fa as Meter,
|
|
2630
|
+
ka as NavigationMenu,
|
|
2631
|
+
$a as NumberField,
|
|
2632
|
+
Ca as OtpField,
|
|
2633
|
+
da as Popover,
|
|
2634
|
+
Sa as PreviewCard,
|
|
2635
|
+
ra as Progress,
|
|
2636
|
+
Ho as Radio,
|
|
2637
|
+
Oo as RadioGroup,
|
|
2638
|
+
ya as ScrollArea,
|
|
2639
|
+
Yo as Select,
|
|
2640
|
+
aa as Skeleton,
|
|
2641
|
+
Xo as Slider,
|
|
2642
|
+
oa as Spinner,
|
|
2643
|
+
jo as Surface,
|
|
2644
|
+
Uo as Switch,
|
|
2645
|
+
Ue as Tab,
|
|
2646
|
+
ia as Tabs,
|
|
2647
|
+
Bo as TextField,
|
|
2648
|
+
ga as Toast,
|
|
2649
|
+
ma as Toggle,
|
|
2650
|
+
pa as ToggleGroup,
|
|
2651
|
+
Ra as Toolbar,
|
|
2652
|
+
Wo as Tooltip,
|
|
2653
|
+
Qo as TooltipProvider,
|
|
2654
|
+
s as cn,
|
|
2655
|
+
se as createGrytTheme,
|
|
2656
|
+
Lo as grytAlphaScales,
|
|
2657
|
+
Mo as grytAlphaScalesLight,
|
|
2658
|
+
K as grytLightTokens,
|
|
2659
|
+
yt as grytScales,
|
|
2660
|
+
mt as grytScalesLight,
|
|
2661
|
+
y as grytTokens,
|
|
2662
|
+
Re as useMediaQuery,
|
|
2663
|
+
ua as useToastManager
|
|
2440
2664
|
};
|
|
2441
2665
|
//# sourceMappingURL=index.js.map
|