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