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