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