@gryt/ui 0.10.1 → 0.11.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/GrytProvider.d.ts.map +1 -1
- 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 +1701 -1169
- package/dist/index.js.map +1 -1
- package/dist/theme/presets.d.ts +14 -0
- package/dist/theme/presets.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
1
|
+
import { jsx as n, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as G } from "@base-ui/react/tooltip";
|
|
3
|
-
import { Button as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { clsx as
|
|
6
|
-
import { twMerge as
|
|
3
|
+
import { Button as Se } from "@base-ui/react/button";
|
|
4
|
+
import { forwardRef as i, useRef as Re, useCallback as de, useLayoutEffect as Xe, useState as We, useEffect as Ke, useSyncExternalStore as Je, useContext as ue, createContext as Qe } from "react";
|
|
5
|
+
import { clsx as Ze } from "clsx";
|
|
6
|
+
import { twMerge as qe } from "tailwind-merge";
|
|
7
7
|
import { Field as q } from "@base-ui/react/field";
|
|
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
|
|
8
|
+
import { PaperPlaneTilt as et, X as $e, Check as Ce, CaretUpDown as tt, CircleNotch as rt, CaretDown as at, Minus as nt, Plus as ot } from "@phosphor-icons/react";
|
|
9
|
+
import { Avatar as ae } from "@base-ui/react/avatar";
|
|
10
|
+
import { Checkbox as he } from "@base-ui/react/checkbox";
|
|
11
|
+
import { Radio as xe } from "@base-ui/react/radio";
|
|
12
|
+
import { RadioGroup as st } from "@base-ui/react/radio-group";
|
|
13
|
+
import { Switch as we } from "@base-ui/react/switch";
|
|
14
|
+
import { Slider as U } 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
|
|
16
|
+
import { Separator as ct } from "@base-ui/react/separator";
|
|
17
|
+
import { Progress as ne } from "@base-ui/react/progress";
|
|
18
|
+
import { Dialog as I } from "@base-ui/react/dialog";
|
|
19
19
|
import { Drawer as k } from "@base-ui/react/drawer";
|
|
20
|
-
import { Menu as
|
|
20
|
+
import { Menu as j } from "@base-ui/react/menu";
|
|
21
21
|
import { Tabs as Z } from "@base-ui/react/tabs";
|
|
22
22
|
import { Accordion as K } from "@base-ui/react/accordion";
|
|
23
|
-
import { ContextMenu as
|
|
24
|
-
import { Popover as
|
|
25
|
-
import { Toast as
|
|
23
|
+
import { ContextMenu as A } from "@base-ui/react/context-menu";
|
|
24
|
+
import { Popover as R } from "@base-ui/react/popover";
|
|
25
|
+
import { Toast as C } from "@base-ui/react/toast";
|
|
26
26
|
import { ScrollArea as _ } from "@base-ui/react/scroll-area";
|
|
27
|
-
import { Toggle as
|
|
28
|
-
import { ToggleGroup as
|
|
29
|
-
import { Meter as
|
|
30
|
-
import { AlertDialog as
|
|
27
|
+
import { Toggle as it } from "@base-ui/react/toggle";
|
|
28
|
+
import { ToggleGroup as dt } from "@base-ui/react/toggle-group";
|
|
29
|
+
import { Meter as O } from "@base-ui/react/meter";
|
|
30
|
+
import { AlertDialog as M } from "@base-ui/react/alert-dialog";
|
|
31
31
|
import { Autocomplete as h } from "@base-ui/react/autocomplete";
|
|
32
|
-
import { Combobox as
|
|
33
|
-
import { CheckboxGroup as
|
|
34
|
-
import { Collapsible as
|
|
35
|
-
import { Form as
|
|
36
|
-
import { Fieldset as
|
|
37
|
-
import { Menubar as
|
|
32
|
+
import { Combobox as p } from "@base-ui/react/combobox";
|
|
33
|
+
import { CheckboxGroup as lt } from "@base-ui/react/checkbox-group";
|
|
34
|
+
import { Collapsible as ge } from "@base-ui/react/collapsible";
|
|
35
|
+
import { Form as ut } from "@base-ui/react/form";
|
|
36
|
+
import { Fieldset as Ae } from "@base-ui/react/fieldset";
|
|
37
|
+
import { Menubar as gt } from "@base-ui/react/menubar";
|
|
38
38
|
import { NavigationMenu as N } from "@base-ui/react/navigation-menu";
|
|
39
|
-
import { NumberField as
|
|
40
|
-
import { OTPField as
|
|
39
|
+
import { NumberField as D } from "@base-ui/react/number-field";
|
|
40
|
+
import { OTPField as ve } from "@base-ui/react/otp-field";
|
|
41
41
|
import { PreviewCard as z } from "@base-ui/react/preview-card";
|
|
42
42
|
import { Toolbar as B } from "@base-ui/react/toolbar";
|
|
43
|
-
function
|
|
44
|
-
return
|
|
43
|
+
function Ie(a) {
|
|
44
|
+
return a <= 0.04045 ? a / 12.92 : ((a + 0.055) / 1.055) ** 2.4;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
46
|
+
function oe(a) {
|
|
47
|
+
return a <= 31308e-7 ? 12.92 * a : 1.055 * a ** (1 / 2.4) - 0.055;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return Math.min(1, Math.max(0,
|
|
49
|
+
function Y(a) {
|
|
50
|
+
return Math.min(1, Math.max(0, a));
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
const
|
|
52
|
+
function X(a) {
|
|
53
|
+
const t = a.replace("#", ""), r = t.length === 3 ? t.split("").map((e) => e + e).join("") : t;
|
|
54
54
|
return [
|
|
55
55
|
parseInt(r.slice(0, 2), 16) / 255,
|
|
56
56
|
parseInt(r.slice(2, 4), 16) / 255,
|
|
57
57
|
parseInt(r.slice(4, 6), 16) / 255
|
|
58
58
|
];
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
const
|
|
62
|
-
return `#${
|
|
60
|
+
function Me([a, t, r]) {
|
|
61
|
+
const e = (o) => Math.round(Y(o) * 255).toString(16).padStart(2, "0");
|
|
62
|
+
return `#${e(a)}${e(t)}${e(r)}`;
|
|
63
63
|
}
|
|
64
|
-
function J(
|
|
65
|
-
const [
|
|
66
|
-
0.4122214708 *
|
|
67
|
-
),
|
|
68
|
-
0.2119034982 *
|
|
69
|
-
),
|
|
70
|
-
0.0883024619 *
|
|
71
|
-
),
|
|
64
|
+
function J(a) {
|
|
65
|
+
const [t, r, e] = X(a).map(Ie), o = Math.cbrt(
|
|
66
|
+
0.4122214708 * t + 0.5363325363 * r + 0.0514459929 * e
|
|
67
|
+
), c = Math.cbrt(
|
|
68
|
+
0.2119034982 * t + 0.6806995451 * r + 0.1073969566 * e
|
|
69
|
+
), d = Math.cbrt(
|
|
70
|
+
0.0883024619 * t + 0.2817188376 * r + 0.6299787005 * e
|
|
71
|
+
), l = 0.2104542553 * o + 0.793617785 * c - 0.0040720468 * d, g = 1.9779984951 * o - 2.428592205 * c + 0.4505937099 * d, y = 0.0259040371 * o + 0.7827717662 * c - 0.808675766 * d;
|
|
72
72
|
return {
|
|
73
|
-
l
|
|
74
|
-
c: Math.hypot(g,
|
|
75
|
-
h: (Math.atan2(
|
|
73
|
+
l,
|
|
74
|
+
c: Math.hypot(g, y),
|
|
75
|
+
h: (Math.atan2(y, g) * 180 / Math.PI + 360) % 360
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
const
|
|
80
|
-
return
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
78
|
+
function $({ l: a, c: t, h: r }) {
|
|
79
|
+
const e = t * Math.cos(r * Math.PI / 180), o = t * Math.sin(r * Math.PI / 180), c = (a + 0.3963377774 * e + 0.2158037573 * o) ** 3, d = (a - 0.1055613458 * e - 0.0638541728 * o) ** 3, l = (a - 0.0894841775 * e - 1.291485548 * o) ** 3;
|
|
80
|
+
return Me([
|
|
81
|
+
oe(Y(4.0767416621 * c - 3.3077115913 * d + 0.2309699292 * l)),
|
|
82
|
+
oe(Y(-1.2684380046 * c + 2.6097574011 * d - 0.3413193965 * l)),
|
|
83
|
+
oe(Y(-0.0041960863 * c - 0.7034186147 * d + 1.707614701 * l))
|
|
84
84
|
]);
|
|
85
85
|
}
|
|
86
|
-
const
|
|
87
|
-
function
|
|
88
|
-
const { h: r } = J(
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
return
|
|
86
|
+
const ft = [0.195, 0.24, 0.27, 0.3, 0.33, 0.37, 0.43, 0.52], yt = [0.014, 0.026, 0.04, 0.052, 0.062, 0.072, 0.084, 0.1];
|
|
87
|
+
function L(a, t) {
|
|
88
|
+
const { h: r } = J(a), e = ft.map((l, g) => $({ l, c: yt[g], h: r }));
|
|
89
|
+
e.push(a, t);
|
|
90
|
+
const o = J(t).l, c = Math.min(0.95, Math.max(0.84, o + 0.04)), d = Math.min(0.98, Math.max(c + 0.06, 0.93));
|
|
91
|
+
return e.push($({ l: c, c: 0.11, h: r })), e.push($({ l: d, c: 0.055, h: r })), e;
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const mt = [
|
|
94
94
|
0.187,
|
|
95
95
|
0.231,
|
|
96
96
|
0.245,
|
|
@@ -103,7 +103,7 @@ const ge = [
|
|
|
103
103
|
0.57,
|
|
104
104
|
0.627,
|
|
105
105
|
0.908
|
|
106
|
-
],
|
|
106
|
+
], bt = [
|
|
107
107
|
0.011,
|
|
108
108
|
0.014,
|
|
109
109
|
0.016,
|
|
@@ -117,36 +117,36 @@ const ge = [
|
|
|
117
117
|
0,
|
|
118
118
|
8e-3
|
|
119
119
|
];
|
|
120
|
-
function
|
|
121
|
-
const
|
|
122
|
-
0:
|
|
123
|
-
1:
|
|
124
|
-
2:
|
|
125
|
-
5:
|
|
126
|
-
10:
|
|
127
|
-
11:
|
|
128
|
-
}, r = J(
|
|
129
|
-
return
|
|
130
|
-
(
|
|
120
|
+
function He(a) {
|
|
121
|
+
const t = {
|
|
122
|
+
0: a.bg,
|
|
123
|
+
1: a.surface,
|
|
124
|
+
2: a.surfaceRaised,
|
|
125
|
+
5: a.border,
|
|
126
|
+
10: a.muted,
|
|
127
|
+
11: a.text
|
|
128
|
+
}, r = J(a.border).h;
|
|
129
|
+
return mt.map(
|
|
130
|
+
(e, o) => t[o] ?? $({ l: e, c: bt[o], h: r })
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
|
-
function Q(
|
|
134
|
-
const r =
|
|
135
|
-
return
|
|
136
|
-
const
|
|
137
|
-
let
|
|
138
|
-
for (let
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
if (
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
), [
|
|
146
|
-
return `rgb(${
|
|
133
|
+
function Q(a, t) {
|
|
134
|
+
const r = X(t);
|
|
135
|
+
return a.map((e) => {
|
|
136
|
+
const o = X(e);
|
|
137
|
+
let c = 0;
|
|
138
|
+
for (let f = 0; f < 3; f++) {
|
|
139
|
+
const b = o[f], P = r[f];
|
|
140
|
+
b > P ? c = Math.max(c, P < 1 ? (b - P) / (1 - P) : 0) : b < P && (c = Math.max(c, P > 0 ? (P - b) / P : 0));
|
|
141
|
+
}
|
|
142
|
+
if (c < 1e-6) return "transparent";
|
|
143
|
+
const d = Me(
|
|
144
|
+
o.map((f, b) => Y(r[b] + (f - r[b]) / c))
|
|
145
|
+
), [l, g, y] = X(d).map((f) => Math.round(f * 255));
|
|
146
|
+
return `rgb(${l} ${g} ${y} / ${(c * 100).toFixed(1)}%)`;
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
const
|
|
149
|
+
const pt = [
|
|
150
150
|
0.962,
|
|
151
151
|
1,
|
|
152
152
|
0.978,
|
|
@@ -159,7 +159,7 @@ const me = [
|
|
|
159
159
|
0.61,
|
|
160
160
|
0.48,
|
|
161
161
|
0.25
|
|
162
|
-
],
|
|
162
|
+
], ht = [
|
|
163
163
|
6e-3,
|
|
164
164
|
0,
|
|
165
165
|
4e-3,
|
|
@@ -172,33 +172,33 @@ const me = [
|
|
|
172
172
|
0.014,
|
|
173
173
|
0.012,
|
|
174
174
|
0.014
|
|
175
|
-
],
|
|
176
|
-
function
|
|
177
|
-
const
|
|
178
|
-
0:
|
|
179
|
-
1:
|
|
180
|
-
2:
|
|
181
|
-
5:
|
|
182
|
-
10:
|
|
183
|
-
11:
|
|
184
|
-
}, r = J(
|
|
185
|
-
return
|
|
186
|
-
(
|
|
175
|
+
], xt = [0.975, 0.955, 0.93, 0.905, 0.878, 0.845, 0.795, 0.72], wt = [0.012, 0.024, 0.038, 0.05, 0.062, 0.074, 0.09, 0.11];
|
|
176
|
+
function De(a) {
|
|
177
|
+
const t = {
|
|
178
|
+
0: a.bg,
|
|
179
|
+
1: a.surface,
|
|
180
|
+
2: a.surfaceRaised,
|
|
181
|
+
5: a.border,
|
|
182
|
+
10: a.muted,
|
|
183
|
+
11: a.text
|
|
184
|
+
}, r = J(a.border).h;
|
|
185
|
+
return pt.map(
|
|
186
|
+
(e, o) => t[o] ?? $({ l: e, c: ht[o], h: r })
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
const { l:
|
|
191
|
-
(
|
|
189
|
+
function S(a) {
|
|
190
|
+
const { l: t, c: r, h: e } = J(a), o = xt.map(
|
|
191
|
+
(c, d) => $({ l: c, c: wt[d], h: e })
|
|
192
192
|
);
|
|
193
|
-
return
|
|
193
|
+
return o.push(a), o.push($({ l: Math.max(0, t - 0.07), c: r, h: e })), o.push($({ l: 0.46, c: 0.15, h: e })), o.push($({ l: 0.33, c: 0.1, h: e })), o;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
const [
|
|
197
|
-
return 0.2126 *
|
|
195
|
+
function Ne(a) {
|
|
196
|
+
const [t, r, e] = X(a).map(Ie);
|
|
197
|
+
return 0.2126 * t + 0.7152 * r + 0.0722 * e;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
200
|
-
const r =
|
|
201
|
-
return (Math.max(r,
|
|
199
|
+
function qa(a, t) {
|
|
200
|
+
const r = Ne(a), e = Ne(t);
|
|
201
|
+
return (Math.max(r, e) + 0.05) / (Math.min(r, e) + 0.05);
|
|
202
202
|
}
|
|
203
203
|
const u = {
|
|
204
204
|
color: {
|
|
@@ -238,8 +238,8 @@ const u = {
|
|
|
238
238
|
border: "#dadde6",
|
|
239
239
|
muted: "#5b5d65",
|
|
240
240
|
text: "#1f2129"
|
|
241
|
-
},
|
|
242
|
-
neutral:
|
|
241
|
+
}, Pe = {
|
|
242
|
+
neutral: He({
|
|
243
243
|
bg: u.color.bg,
|
|
244
244
|
surface: u.color.surface,
|
|
245
245
|
surfaceRaised: u.color.surfaceRaised,
|
|
@@ -247,124 +247,124 @@ const u = {
|
|
|
247
247
|
muted: u.color.muted,
|
|
248
248
|
text: u.color.text
|
|
249
249
|
}),
|
|
250
|
-
accent:
|
|
251
|
-
secondary:
|
|
250
|
+
accent: L(u.color.accent, u.color.accentLight),
|
|
251
|
+
secondary: L(
|
|
252
252
|
u.color.secondary,
|
|
253
253
|
u.color.secondaryLight
|
|
254
254
|
),
|
|
255
|
-
success:
|
|
256
|
-
danger:
|
|
257
|
-
warning:
|
|
258
|
-
},
|
|
259
|
-
neutral:
|
|
260
|
-
accent:
|
|
261
|
-
secondary:
|
|
262
|
-
success:
|
|
263
|
-
danger:
|
|
264
|
-
warning:
|
|
265
|
-
},
|
|
266
|
-
neutral: Q(
|
|
267
|
-
accent: Q(
|
|
268
|
-
},
|
|
269
|
-
neutral: Q(
|
|
270
|
-
accent: Q(
|
|
255
|
+
success: L(u.color.success, u.color.success),
|
|
256
|
+
danger: L(u.color.danger, u.color.dangerLight),
|
|
257
|
+
warning: L(u.color.warning, u.color.warning)
|
|
258
|
+
}, le = {
|
|
259
|
+
neutral: De(T),
|
|
260
|
+
accent: S(u.color.accent),
|
|
261
|
+
secondary: S(u.color.secondary),
|
|
262
|
+
success: S(u.color.success),
|
|
263
|
+
danger: S(u.color.danger),
|
|
264
|
+
warning: S(u.color.warning)
|
|
265
|
+
}, Ge = le.neutral[3], en = {
|
|
266
|
+
neutral: Q(Pe.neutral, u.color.bg),
|
|
267
|
+
accent: Q(Pe.accent, u.color.bg)
|
|
268
|
+
}, tn = {
|
|
269
|
+
neutral: Q(le.neutral, T.bg),
|
|
270
|
+
accent: Q(le.accent, T.bg)
|
|
271
271
|
};
|
|
272
|
-
function
|
|
273
|
-
const
|
|
272
|
+
function vt(a = {}) {
|
|
273
|
+
const t = a.appearance === "light", e = { ...t ? {
|
|
274
274
|
...u.color,
|
|
275
275
|
...T,
|
|
276
|
-
surfaceHover:
|
|
277
|
-
} : u.color, ...
|
|
278
|
-
bg:
|
|
279
|
-
surface:
|
|
280
|
-
surfaceRaised:
|
|
281
|
-
border:
|
|
282
|
-
muted:
|
|
283
|
-
text:
|
|
284
|
-
},
|
|
285
|
-
neutral:
|
|
286
|
-
accent:
|
|
287
|
-
secondary:
|
|
288
|
-
success:
|
|
289
|
-
danger:
|
|
290
|
-
warning:
|
|
276
|
+
surfaceHover: Ge
|
|
277
|
+
} : u.color, ...a.color }, o = { ...u.radius, ...a.radius }, c = {
|
|
278
|
+
bg: e.bg,
|
|
279
|
+
surface: e.surface,
|
|
280
|
+
surfaceRaised: e.surfaceRaised,
|
|
281
|
+
border: e.border,
|
|
282
|
+
muted: e.muted,
|
|
283
|
+
text: e.text
|
|
284
|
+
}, d = t ? {
|
|
285
|
+
neutral: De(c),
|
|
286
|
+
accent: S(e.accent),
|
|
287
|
+
secondary: S(e.secondary),
|
|
288
|
+
success: S(e.success),
|
|
289
|
+
danger: S(e.danger),
|
|
290
|
+
warning: S(e.warning)
|
|
291
291
|
} : {
|
|
292
|
-
neutral:
|
|
293
|
-
accent:
|
|
294
|
-
secondary:
|
|
295
|
-
success:
|
|
296
|
-
danger:
|
|
297
|
-
warning:
|
|
298
|
-
},
|
|
299
|
-
for (const [g,
|
|
300
|
-
|
|
301
|
-
|
|
292
|
+
neutral: He(c),
|
|
293
|
+
accent: L(e.accent, e.accentLight),
|
|
294
|
+
secondary: L(e.secondary, e.secondaryLight),
|
|
295
|
+
success: L(e.success, e.success),
|
|
296
|
+
danger: L(e.danger, e.dangerLight),
|
|
297
|
+
warning: L(e.warning, e.warning)
|
|
298
|
+
}, l = {};
|
|
299
|
+
for (const [g, y] of Object.entries(d))
|
|
300
|
+
y.forEach((f, b) => {
|
|
301
|
+
l[`--gryt-${g}-${b + 1}`] = f, l[`--color-gryt-${g}-${b + 1}`] = f;
|
|
302
302
|
});
|
|
303
303
|
for (const g of ["neutral", "accent"])
|
|
304
|
-
Q(
|
|
305
|
-
|
|
304
|
+
Q(d[g], e.bg).forEach((y, f) => {
|
|
305
|
+
l[`--gryt-${g}-a${f + 1}`] = y, l[`--color-gryt-${g}-a${f + 1}`] = y;
|
|
306
306
|
});
|
|
307
307
|
return {
|
|
308
|
-
...
|
|
309
|
-
"--gryt-bg":
|
|
310
|
-
"--gryt-surface":
|
|
311
|
-
"--gryt-surface-raised":
|
|
312
|
-
"--gryt-surface-hover":
|
|
313
|
-
"--gryt-border":
|
|
314
|
-
"--gryt-text":
|
|
315
|
-
"--gryt-muted":
|
|
316
|
-
"--gryt-accent":
|
|
317
|
-
"--gryt-accent-light":
|
|
318
|
-
"--gryt-secondary":
|
|
319
|
-
"--gryt-secondary-light":
|
|
320
|
-
"--gryt-success":
|
|
321
|
-
"--gryt-danger":
|
|
322
|
-
"--gryt-danger-light":
|
|
323
|
-
"--gryt-warning":
|
|
324
|
-
"--gryt-on-accent":
|
|
325
|
-
"--gryt-on-secondary":
|
|
326
|
-
"--gryt-on-danger":
|
|
308
|
+
...l,
|
|
309
|
+
"--gryt-bg": e.bg,
|
|
310
|
+
"--gryt-surface": e.surface,
|
|
311
|
+
"--gryt-surface-raised": e.surfaceRaised,
|
|
312
|
+
"--gryt-surface-hover": e.surfaceHover,
|
|
313
|
+
"--gryt-border": e.border,
|
|
314
|
+
"--gryt-text": e.text,
|
|
315
|
+
"--gryt-muted": e.muted,
|
|
316
|
+
"--gryt-accent": e.accent,
|
|
317
|
+
"--gryt-accent-light": e.accentLight,
|
|
318
|
+
"--gryt-secondary": e.secondary,
|
|
319
|
+
"--gryt-secondary-light": e.secondaryLight,
|
|
320
|
+
"--gryt-success": e.success,
|
|
321
|
+
"--gryt-danger": e.danger,
|
|
322
|
+
"--gryt-danger-light": e.dangerLight,
|
|
323
|
+
"--gryt-warning": e.warning,
|
|
324
|
+
"--gryt-on-accent": e.onAccent,
|
|
325
|
+
"--gryt-on-secondary": e.onSecondary,
|
|
326
|
+
"--gryt-on-danger": e.onDanger,
|
|
327
327
|
// Tailwind's @theme emits --color-* names, and the utilities compile
|
|
328
328
|
// against those. Both sets have to move together or an override would
|
|
329
329
|
// change the raw var but not bg-gryt-accent.
|
|
330
|
-
"--color-gryt-bg":
|
|
331
|
-
"--color-gryt-surface":
|
|
332
|
-
"--color-gryt-surface-raised":
|
|
333
|
-
"--color-gryt-surface-hover":
|
|
334
|
-
"--color-gryt-border":
|
|
335
|
-
"--color-gryt-text":
|
|
336
|
-
"--color-gryt-muted":
|
|
337
|
-
"--color-gryt-accent":
|
|
338
|
-
"--color-gryt-accent-light":
|
|
339
|
-
"--color-gryt-secondary":
|
|
340
|
-
"--color-gryt-secondary-light":
|
|
341
|
-
"--color-gryt-success":
|
|
342
|
-
"--color-gryt-danger":
|
|
343
|
-
"--color-gryt-danger-light":
|
|
344
|
-
"--color-gryt-warning":
|
|
345
|
-
"--color-gryt-on-accent":
|
|
346
|
-
"--color-gryt-on-secondary":
|
|
347
|
-
"--color-gryt-on-danger":
|
|
348
|
-
"--gryt-radius-sm": `${
|
|
349
|
-
"--gryt-radius-md": `${
|
|
350
|
-
"--gryt-radius-lg": `${
|
|
351
|
-
"--gryt-radius-xl": `${
|
|
352
|
-
"--gryt-radius-full": `${
|
|
330
|
+
"--color-gryt-bg": e.bg,
|
|
331
|
+
"--color-gryt-surface": e.surface,
|
|
332
|
+
"--color-gryt-surface-raised": e.surfaceRaised,
|
|
333
|
+
"--color-gryt-surface-hover": e.surfaceHover,
|
|
334
|
+
"--color-gryt-border": e.border,
|
|
335
|
+
"--color-gryt-text": e.text,
|
|
336
|
+
"--color-gryt-muted": e.muted,
|
|
337
|
+
"--color-gryt-accent": e.accent,
|
|
338
|
+
"--color-gryt-accent-light": e.accentLight,
|
|
339
|
+
"--color-gryt-secondary": e.secondary,
|
|
340
|
+
"--color-gryt-secondary-light": e.secondaryLight,
|
|
341
|
+
"--color-gryt-success": e.success,
|
|
342
|
+
"--color-gryt-danger": e.danger,
|
|
343
|
+
"--color-gryt-danger-light": e.dangerLight,
|
|
344
|
+
"--color-gryt-warning": e.warning,
|
|
345
|
+
"--color-gryt-on-accent": e.onAccent,
|
|
346
|
+
"--color-gryt-on-secondary": e.onSecondary,
|
|
347
|
+
"--color-gryt-on-danger": e.onDanger,
|
|
348
|
+
"--gryt-radius-sm": `${o.sm}px`,
|
|
349
|
+
"--gryt-radius-md": `${o.md}px`,
|
|
350
|
+
"--gryt-radius-lg": `${o.lg}px`,
|
|
351
|
+
"--gryt-radius-xl": `${o.xl}px`,
|
|
352
|
+
"--gryt-radius-full": `${o.full}px`
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
return Object.keys(
|
|
355
|
+
function Nt(a) {
|
|
356
|
+
return Object.keys(a).some((t) => t.startsWith("--"));
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
children:
|
|
360
|
-
className:
|
|
358
|
+
function rn({
|
|
359
|
+
children: a,
|
|
360
|
+
className: t,
|
|
361
361
|
theme: r,
|
|
362
|
-
tooltipDelay:
|
|
362
|
+
tooltipDelay: e = 400
|
|
363
363
|
}) {
|
|
364
|
-
const
|
|
365
|
-
return /* @__PURE__ */ n("div", { className:
|
|
364
|
+
const o = r === void 0 ? void 0 : Nt(r) ? r : vt(r);
|
|
365
|
+
return /* @__PURE__ */ n("div", { className: t, style: o, children: /* @__PURE__ */ n(G.Provider, { delay: e, children: a }) });
|
|
366
366
|
}
|
|
367
|
-
const
|
|
367
|
+
const ee = [
|
|
368
368
|
"accent",
|
|
369
369
|
"accentLight",
|
|
370
370
|
"secondary",
|
|
@@ -376,7 +376,7 @@ const tt = [
|
|
|
376
376
|
"onAccent",
|
|
377
377
|
"onSecondary",
|
|
378
378
|
"onDanger"
|
|
379
|
-
],
|
|
379
|
+
], je = [
|
|
380
380
|
"bg",
|
|
381
381
|
"surface",
|
|
382
382
|
"surfaceRaised",
|
|
@@ -384,11 +384,11 @@ const tt = [
|
|
|
384
384
|
"border",
|
|
385
385
|
"muted",
|
|
386
386
|
"text"
|
|
387
|
-
],
|
|
388
|
-
function
|
|
389
|
-
return
|
|
387
|
+
], fe = ["sm", "md", "lg", "xl", "full"], Pt = 60;
|
|
388
|
+
function ye(a) {
|
|
389
|
+
return a.replace(/\s+/g, " ").trim().slice(0, Pt);
|
|
390
390
|
}
|
|
391
|
-
const
|
|
391
|
+
const F = {
|
|
392
392
|
hue: {
|
|
393
393
|
accent: u.color.accent,
|
|
394
394
|
accentLight: u.color.accentLight,
|
|
@@ -416,31 +416,31 @@ const X = {
|
|
|
416
416
|
bg: T.bg,
|
|
417
417
|
surface: T.surface,
|
|
418
418
|
surfaceRaised: T.surfaceRaised,
|
|
419
|
-
surfaceHover:
|
|
419
|
+
surfaceHover: Ge,
|
|
420
420
|
border: T.border,
|
|
421
421
|
muted: T.muted,
|
|
422
422
|
text: T.text
|
|
423
423
|
},
|
|
424
424
|
radius: { ...u.radius }
|
|
425
425
|
};
|
|
426
|
-
function
|
|
426
|
+
function Ee(a) {
|
|
427
427
|
return {
|
|
428
|
-
...
|
|
429
|
-
hue: { ...
|
|
430
|
-
lightHue:
|
|
431
|
-
dark: { ...
|
|
432
|
-
light: { ...
|
|
433
|
-
radius: { ...
|
|
428
|
+
...a.name === void 0 ? {} : { name: a.name },
|
|
429
|
+
hue: { ...a.hue },
|
|
430
|
+
lightHue: a.lightHue === null ? null : { ...a.lightHue },
|
|
431
|
+
dark: { ...a.dark },
|
|
432
|
+
light: { ...a.light },
|
|
433
|
+
radius: { ...a.radius }
|
|
434
434
|
};
|
|
435
435
|
}
|
|
436
|
-
function
|
|
437
|
-
return
|
|
436
|
+
function kt(a, t) {
|
|
437
|
+
return t === "light" && a.lightHue !== null ? a.lightHue : a.hue;
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function an(a, t) {
|
|
440
440
|
return {
|
|
441
|
-
appearance:
|
|
442
|
-
color: { ...
|
|
443
|
-
radius: { ...
|
|
441
|
+
appearance: t,
|
|
442
|
+
color: { ...kt(a, t), ...a[t] },
|
|
443
|
+
radius: { ...a.radius }
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
446
|
const W = {
|
|
@@ -455,7 +455,7 @@ const W = {
|
|
|
455
455
|
onAccent: "on-accent",
|
|
456
456
|
onSecondary: "on-secondary",
|
|
457
457
|
onDanger: "on-danger"
|
|
458
|
-
},
|
|
458
|
+
}, ze = {
|
|
459
459
|
bg: "bg",
|
|
460
460
|
surface: "surface",
|
|
461
461
|
surfaceRaised: "raised",
|
|
@@ -463,134 +463,664 @@ const W = {
|
|
|
463
463
|
border: "border",
|
|
464
464
|
muted: "muted",
|
|
465
465
|
text: "text"
|
|
466
|
-
},
|
|
467
|
-
function
|
|
468
|
-
return
|
|
466
|
+
}, Tt = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
467
|
+
function Be(a) {
|
|
468
|
+
return Tt.test(a.trim());
|
|
469
469
|
}
|
|
470
|
-
function
|
|
471
|
-
const
|
|
472
|
-
return
|
|
470
|
+
function me(a) {
|
|
471
|
+
const t = a.trim().toLowerCase();
|
|
472
|
+
return t.length === 4 ? `#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}` : t;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
const r = new URLSearchParams(),
|
|
476
|
-
|
|
477
|
-
for (const
|
|
478
|
-
|
|
479
|
-
if (
|
|
480
|
-
for (const
|
|
481
|
-
r.set(`lh-${W[
|
|
482
|
-
for (const
|
|
483
|
-
const
|
|
484
|
-
for (const
|
|
485
|
-
|
|
474
|
+
function nn(a, t) {
|
|
475
|
+
const r = new URLSearchParams(), e = (c) => me(c).slice(1), o = ye(a.name ?? "");
|
|
476
|
+
o !== "" && r.set("name", o);
|
|
477
|
+
for (const c of ee)
|
|
478
|
+
a.hue[c] !== F.hue[c] && r.set(W[c], e(a.hue[c]));
|
|
479
|
+
if (a.lightHue !== null)
|
|
480
|
+
for (const c of ee)
|
|
481
|
+
r.set(`lh-${W[c]}`, e(a.lightHue[c]));
|
|
482
|
+
for (const c of ["dark", "light"]) {
|
|
483
|
+
const d = c === "dark" ? "d" : "l";
|
|
484
|
+
for (const l of je)
|
|
485
|
+
a[c][l] !== F[c][l] && r.set(`${d}-${ze[l]}`, e(a[c][l]));
|
|
486
486
|
}
|
|
487
|
-
for (const
|
|
488
|
-
|
|
489
|
-
return
|
|
487
|
+
for (const c of fe)
|
|
488
|
+
a.radius[c] !== F.radius[c] && r.set(`r-${c}`, String(a.radius[c]));
|
|
489
|
+
return t === "light" && r.set("mode", "light"), r;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
492
|
-
const
|
|
493
|
-
if (
|
|
494
|
-
if (
|
|
495
|
-
const r =
|
|
496
|
-
return
|
|
491
|
+
function on(a) {
|
|
492
|
+
const t = a.trim();
|
|
493
|
+
if (t === "") return null;
|
|
494
|
+
if (t.startsWith("{")) return St(t);
|
|
495
|
+
const r = t.includes("?") ? t.slice(t.indexOf("?") + 1) : t;
|
|
496
|
+
return Lt(new URLSearchParams(r));
|
|
497
497
|
}
|
|
498
|
-
function
|
|
499
|
-
const
|
|
498
|
+
function Lt(a) {
|
|
499
|
+
const t = Ee(F);
|
|
500
500
|
let r = !1;
|
|
501
|
-
const
|
|
502
|
-
const
|
|
503
|
-
if (
|
|
504
|
-
const
|
|
505
|
-
return
|
|
506
|
-
},
|
|
507
|
-
|
|
508
|
-
for (const
|
|
509
|
-
const
|
|
510
|
-
|
|
501
|
+
const e = (c) => {
|
|
502
|
+
const d = a.get(c);
|
|
503
|
+
if (d === null) return null;
|
|
504
|
+
const l = d.startsWith("#") ? d : `#${d}`;
|
|
505
|
+
return Be(l) ? (r = !0, me(l)) : null;
|
|
506
|
+
}, o = ye(a.get("name") ?? "");
|
|
507
|
+
o !== "" && (t.name = o, r = !0);
|
|
508
|
+
for (const c of ee) {
|
|
509
|
+
const d = e(W[c]);
|
|
510
|
+
d !== null && (t.hue[c] = d);
|
|
511
511
|
}
|
|
512
|
-
if (
|
|
513
|
-
const
|
|
514
|
-
for (const
|
|
515
|
-
const
|
|
516
|
-
|
|
512
|
+
if (a.has(`lh-${W.accent}`)) {
|
|
513
|
+
const c = { ...t.hue };
|
|
514
|
+
for (const d of ee) {
|
|
515
|
+
const l = e(`lh-${W[d]}`);
|
|
516
|
+
l !== null && (c[d] = l);
|
|
517
517
|
}
|
|
518
|
-
|
|
518
|
+
t.lightHue = c;
|
|
519
519
|
}
|
|
520
|
-
for (const
|
|
521
|
-
const
|
|
522
|
-
for (const
|
|
523
|
-
const g =
|
|
524
|
-
g !== null && (
|
|
520
|
+
for (const c of ["dark", "light"]) {
|
|
521
|
+
const d = c === "dark" ? "d" : "l";
|
|
522
|
+
for (const l of je) {
|
|
523
|
+
const g = e(`${d}-${ze[l]}`);
|
|
524
|
+
g !== null && (t[c][l] = g);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
|
-
for (const
|
|
528
|
-
const
|
|
529
|
-
Number.isFinite(
|
|
527
|
+
for (const c of fe) {
|
|
528
|
+
const d = Number(a.get(`r-${c}`));
|
|
529
|
+
Number.isFinite(d) && d >= 0 && d <= 999 && a.has(`r-${c}`) && (t.radius[c] = Math.round(d), r = !0);
|
|
530
530
|
}
|
|
531
531
|
return r ? {
|
|
532
|
-
theme:
|
|
533
|
-
appearance:
|
|
532
|
+
theme: t,
|
|
533
|
+
appearance: a.get("mode") === "light" ? "light" : "dark"
|
|
534
534
|
} : null;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
537
|
-
let
|
|
536
|
+
function St(a) {
|
|
537
|
+
let t;
|
|
538
538
|
try {
|
|
539
|
-
|
|
539
|
+
t = JSON.parse(a);
|
|
540
540
|
} catch {
|
|
541
541
|
return null;
|
|
542
542
|
}
|
|
543
|
-
if (typeof
|
|
544
|
-
const r =
|
|
545
|
-
let
|
|
546
|
-
const
|
|
547
|
-
if (!(typeof
|
|
548
|
-
for (const [g,
|
|
549
|
-
typeof
|
|
543
|
+
if (typeof t != "object" || t === null) return null;
|
|
544
|
+
const r = t, e = Ee(F);
|
|
545
|
+
let o = !1;
|
|
546
|
+
const c = (d, l) => {
|
|
547
|
+
if (!(typeof d != "object" || d === null))
|
|
548
|
+
for (const [g, y] of Object.entries(d))
|
|
549
|
+
typeof y == "string" && Be(y) && g in l && (l[g] = me(y), o = !0);
|
|
550
550
|
};
|
|
551
551
|
if (typeof r.name == "string") {
|
|
552
|
-
const
|
|
553
|
-
|
|
552
|
+
const d = ye(r.name);
|
|
553
|
+
d !== "" && (e.name = d, o = !0);
|
|
554
554
|
}
|
|
555
|
-
if (
|
|
556
|
-
const
|
|
557
|
-
|
|
555
|
+
if (c(r.hue, e.hue), c(r.dark, e.dark), c(r.light, e.light), typeof r.lightHue == "object" && r.lightHue !== null) {
|
|
556
|
+
const d = { ...e.hue };
|
|
557
|
+
c(r.lightHue, d), e.lightHue = d;
|
|
558
558
|
}
|
|
559
559
|
if (typeof r.radius == "object" && r.radius !== null)
|
|
560
|
-
for (const [
|
|
560
|
+
for (const [d, l] of Object.entries(
|
|
561
561
|
r.radius
|
|
562
562
|
)) {
|
|
563
|
-
const g = Number(
|
|
564
|
-
|
|
563
|
+
const g = Number(l);
|
|
564
|
+
fe.includes(d) && Number.isFinite(g) && g >= 0 && g <= 999 && (e.radius[d] = Math.round(g), o = !0);
|
|
565
565
|
}
|
|
566
|
-
return
|
|
566
|
+
return o ? { theme: e, appearance: "dark" } : null;
|
|
567
567
|
}
|
|
568
|
-
|
|
569
|
-
|
|
568
|
+
const se = { sm: 8, md: 12, lg: 20, xl: 28, full: 999 }, ce = { sm: 6, md: 8, lg: 14, xl: 18, full: 999 }, Rt = { sm: 4, md: 6, lg: 10, xl: 14, full: 6 }, $t = { sm: 6, md: 8, lg: 10, xl: 14, full: 10 }, ke = { sm: 2, md: 4, lg: 6, xl: 8, full: 4 }, Ct = [
|
|
569
|
+
{
|
|
570
|
+
id: "gryt",
|
|
571
|
+
name: "Gryt",
|
|
572
|
+
note: "What the library ships, from the Gryt code-theme.",
|
|
573
|
+
group: "Gryt",
|
|
574
|
+
source: "github.com/Gryt-chat/code-theme",
|
|
575
|
+
theme: F
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
id: "ember",
|
|
579
|
+
name: "Ember",
|
|
580
|
+
note: "Warm all the way down — the neutrals are brown, not blue.",
|
|
581
|
+
group: "Gryt",
|
|
582
|
+
theme: {
|
|
583
|
+
name: "Ember",
|
|
584
|
+
hue: {
|
|
585
|
+
accent: "#f0803c",
|
|
586
|
+
accentLight: "#ff9f66",
|
|
587
|
+
secondary: "#d9a441",
|
|
588
|
+
secondaryLight: "#ecc06a",
|
|
589
|
+
success: "#8bb056",
|
|
590
|
+
danger: "#e35d55",
|
|
591
|
+
dangerLight: "#ef8079",
|
|
592
|
+
warning: "#e8b33e",
|
|
593
|
+
onAccent: "#231004",
|
|
594
|
+
onSecondary: "#241a04",
|
|
595
|
+
onDanger: "#2b0a08"
|
|
596
|
+
},
|
|
597
|
+
lightHue: null,
|
|
598
|
+
dark: {
|
|
599
|
+
bg: "#17110e",
|
|
600
|
+
surface: "#1f1815",
|
|
601
|
+
surfaceRaised: "#251d19",
|
|
602
|
+
surfaceHover: "#33261f",
|
|
603
|
+
border: "#352822",
|
|
604
|
+
muted: "#a48f81",
|
|
605
|
+
text: "#f5ece5"
|
|
606
|
+
},
|
|
607
|
+
light: {
|
|
608
|
+
bg: "#f6efe8",
|
|
609
|
+
surface: "#fffdfb",
|
|
610
|
+
surfaceRaised: "#faf3ec",
|
|
611
|
+
surfaceHover: "#efe3d8",
|
|
612
|
+
border: "#e0d2c4",
|
|
613
|
+
muted: "#6b5b50",
|
|
614
|
+
text: "#241a14"
|
|
615
|
+
},
|
|
616
|
+
radius: se
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
id: "paper",
|
|
621
|
+
name: "Paper",
|
|
622
|
+
note: "Near-monochrome. One quiet slate accent and nothing else.",
|
|
623
|
+
group: "Gryt",
|
|
624
|
+
theme: {
|
|
625
|
+
name: "Paper",
|
|
626
|
+
hue: {
|
|
627
|
+
accent: "#8390a8",
|
|
628
|
+
accentLight: "#a3aec2",
|
|
629
|
+
secondary: "#93a0a0",
|
|
630
|
+
secondaryLight: "#b1bcbc",
|
|
631
|
+
success: "#7f9b7f",
|
|
632
|
+
danger: "#b56b6b",
|
|
633
|
+
dangerLight: "#c98d8d",
|
|
634
|
+
warning: "#b39a6a",
|
|
635
|
+
onAccent: "#11151c",
|
|
636
|
+
onSecondary: "#121717",
|
|
637
|
+
onDanger: "#1d0e0e"
|
|
638
|
+
},
|
|
639
|
+
lightHue: null,
|
|
640
|
+
dark: {
|
|
641
|
+
bg: "#101011",
|
|
642
|
+
surface: "#17171a",
|
|
643
|
+
surfaceRaised: "#1d1d20",
|
|
644
|
+
surfaceHover: "#282a2e",
|
|
645
|
+
border: "#2a2a2e",
|
|
646
|
+
muted: "#8e8e94",
|
|
647
|
+
text: "#ededf0"
|
|
648
|
+
},
|
|
649
|
+
light: {
|
|
650
|
+
bg: "#f0f0f2",
|
|
651
|
+
surface: "#ffffff",
|
|
652
|
+
surfaceRaised: "#f7f7f9",
|
|
653
|
+
surfaceHover: "#e6e6ea",
|
|
654
|
+
border: "#d6d6dc",
|
|
655
|
+
muted: "#5b5b63",
|
|
656
|
+
text: "#17171a"
|
|
657
|
+
},
|
|
658
|
+
radius: ce
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
id: "signal",
|
|
663
|
+
name: "Signal",
|
|
664
|
+
note: "Black, white, and a yellow that cannot be missed.",
|
|
665
|
+
group: "Gryt",
|
|
666
|
+
theme: {
|
|
667
|
+
name: "Signal",
|
|
668
|
+
hue: {
|
|
669
|
+
accent: "#ffd400",
|
|
670
|
+
accentLight: "#ffe454",
|
|
671
|
+
secondary: "#00d0ff",
|
|
672
|
+
secondaryLight: "#66e2ff",
|
|
673
|
+
success: "#00e06a",
|
|
674
|
+
danger: "#ff453a",
|
|
675
|
+
dangerLight: "#ff7a72",
|
|
676
|
+
warning: "#ffab00",
|
|
677
|
+
onAccent: "#161200",
|
|
678
|
+
onSecondary: "#001a20",
|
|
679
|
+
onDanger: "#1a0300"
|
|
680
|
+
},
|
|
681
|
+
lightHue: null,
|
|
682
|
+
dark: {
|
|
683
|
+
bg: "#000000",
|
|
684
|
+
surface: "#0c0c0c",
|
|
685
|
+
surfaceRaised: "#151515",
|
|
686
|
+
surfaceHover: "#242424",
|
|
687
|
+
border: "#454545",
|
|
688
|
+
muted: "#bcbcbc",
|
|
689
|
+
text: "#ffffff"
|
|
690
|
+
},
|
|
691
|
+
light: {
|
|
692
|
+
bg: "#f0f0f0",
|
|
693
|
+
surface: "#ffffff",
|
|
694
|
+
surfaceRaised: "#f8f8f8",
|
|
695
|
+
surfaceHover: "#e3e3e3",
|
|
696
|
+
border: "#6f6f6f",
|
|
697
|
+
muted: "#3d3d3d",
|
|
698
|
+
text: "#000000"
|
|
699
|
+
},
|
|
700
|
+
radius: ke
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
/* Dracula's eleven, and Alucard's eleven for the light half, from the
|
|
705
|
+
palette tables in dracula/dracula-theme. Background, Current Line,
|
|
706
|
+
Foreground and Comment are exact; the two steps between Background and
|
|
707
|
+
Current Line are derived, because Dracula does not name them. */
|
|
708
|
+
id: "dracula",
|
|
709
|
+
name: "Dracula",
|
|
710
|
+
note: "The purple-and-pink dark theme, with Alucard as its light half.",
|
|
711
|
+
group: "Ported",
|
|
712
|
+
source: "draculatheme.com, MIT",
|
|
713
|
+
theme: {
|
|
714
|
+
name: "Dracula",
|
|
715
|
+
hue: {
|
|
716
|
+
accent: "#bd93f9",
|
|
717
|
+
accentLight: "#d0b3fb",
|
|
718
|
+
secondary: "#8be9fd",
|
|
719
|
+
secondaryLight: "#aff0fe",
|
|
720
|
+
success: "#50fa7b",
|
|
721
|
+
danger: "#ff5555",
|
|
722
|
+
dangerLight: "#ff7979",
|
|
723
|
+
warning: "#ffb86c",
|
|
724
|
+
onAccent: "#282a36",
|
|
725
|
+
onSecondary: "#282a36",
|
|
726
|
+
onDanger: "#282a36"
|
|
727
|
+
},
|
|
728
|
+
lightHue: {
|
|
729
|
+
accent: "#644ac9",
|
|
730
|
+
accentLight: "#7b64d6",
|
|
731
|
+
secondary: "#036a96",
|
|
732
|
+
secondaryLight: "#0b83b5",
|
|
733
|
+
success: "#14710a",
|
|
734
|
+
danger: "#cb3a2a",
|
|
735
|
+
dangerLight: "#d95445",
|
|
736
|
+
warning: "#a34d14",
|
|
737
|
+
onAccent: "#fffbeb",
|
|
738
|
+
onSecondary: "#fffbeb",
|
|
739
|
+
onDanger: "#fffbeb"
|
|
740
|
+
},
|
|
741
|
+
dark: {
|
|
742
|
+
bg: "#282a36",
|
|
743
|
+
surface: "#31323f",
|
|
744
|
+
surfaceRaised: "#383a49",
|
|
745
|
+
surfaceHover: "#44475a",
|
|
746
|
+
border: "#44475a",
|
|
747
|
+
muted: "#6272a4",
|
|
748
|
+
text: "#f8f8f2"
|
|
749
|
+
},
|
|
750
|
+
light: {
|
|
751
|
+
bg: "#f5f1e1",
|
|
752
|
+
surface: "#fffbeb",
|
|
753
|
+
surfaceRaised: "#faf6e6",
|
|
754
|
+
surfaceHover: "#ece7d4",
|
|
755
|
+
border: "#dcd6bf",
|
|
756
|
+
muted: "#6c664b",
|
|
757
|
+
text: "#1f1f1f"
|
|
758
|
+
},
|
|
759
|
+
radius: ce
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
/* nord0-nord15, exactly as nordtheme.com publishes them. Polar Night is
|
|
764
|
+
the dark neutrals, Snow Storm the light ones, Frost the accents and
|
|
765
|
+
Aurora the status colours. Nothing here is derived. */
|
|
766
|
+
id: "nord",
|
|
767
|
+
name: "Nord",
|
|
768
|
+
note: "Polar Night and Snow Storm, with Frost on top.",
|
|
769
|
+
group: "Ported",
|
|
770
|
+
source: "nordtheme.com, MIT",
|
|
771
|
+
theme: {
|
|
772
|
+
name: "Nord",
|
|
773
|
+
hue: {
|
|
774
|
+
accent: "#88c0d0",
|
|
775
|
+
accentLight: "#8fbcbb",
|
|
776
|
+
secondary: "#81a1c1",
|
|
777
|
+
secondaryLight: "#a3b8d4",
|
|
778
|
+
success: "#a3be8c",
|
|
779
|
+
danger: "#bf616a",
|
|
780
|
+
dangerLight: "#d08770",
|
|
781
|
+
warning: "#ebcb8b",
|
|
782
|
+
onAccent: "#2e3440",
|
|
783
|
+
onSecondary: "#2e3440",
|
|
784
|
+
onDanger: "#eceff4"
|
|
785
|
+
},
|
|
786
|
+
lightHue: {
|
|
787
|
+
accent: "#5e81ac",
|
|
788
|
+
accentLight: "#81a1c1",
|
|
789
|
+
secondary: "#8fbcbb",
|
|
790
|
+
secondaryLight: "#88c0d0",
|
|
791
|
+
success: "#a3be8c",
|
|
792
|
+
danger: "#bf616a",
|
|
793
|
+
dangerLight: "#d08770",
|
|
794
|
+
warning: "#ebcb8b",
|
|
795
|
+
onAccent: "#eceff4",
|
|
796
|
+
onSecondary: "#2e3440",
|
|
797
|
+
onDanger: "#eceff4"
|
|
798
|
+
},
|
|
799
|
+
dark: {
|
|
800
|
+
bg: "#2e3440",
|
|
801
|
+
surface: "#3b4252",
|
|
802
|
+
surfaceRaised: "#434c5e",
|
|
803
|
+
surfaceHover: "#4c566a",
|
|
804
|
+
border: "#4c566a",
|
|
805
|
+
muted: "#d8dee9",
|
|
806
|
+
text: "#eceff4"
|
|
807
|
+
},
|
|
808
|
+
light: {
|
|
809
|
+
bg: "#e5e9f0",
|
|
810
|
+
surface: "#eceff4",
|
|
811
|
+
surfaceRaised: "#e9edf2",
|
|
812
|
+
surfaceHover: "#d8dee9",
|
|
813
|
+
border: "#c9d1de",
|
|
814
|
+
muted: "#4c566a",
|
|
815
|
+
text: "#2e3440"
|
|
816
|
+
},
|
|
817
|
+
radius: ce
|
|
818
|
+
}
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
/* Mocha and Latte from catppuccin/palette's palette.json. base, mantle,
|
|
822
|
+
surface0/1/2, text and subtext0 are exact; the border step is derived
|
|
823
|
+
from surface1 and surface2, which is where a border sits in their own
|
|
824
|
+
ports. */
|
|
825
|
+
id: "catppuccin",
|
|
826
|
+
name: "Catppuccin",
|
|
827
|
+
note: "Mocha for dark, Latte for light. Mauve does the accent work.",
|
|
828
|
+
group: "Ported",
|
|
829
|
+
source: "catppuccin/palette, MIT",
|
|
830
|
+
theme: {
|
|
831
|
+
name: "Catppuccin",
|
|
832
|
+
hue: {
|
|
833
|
+
accent: "#cba6f7",
|
|
834
|
+
accentLight: "#dcc0fa",
|
|
835
|
+
secondary: "#89b4fa",
|
|
836
|
+
secondaryLight: "#a8c8fb",
|
|
837
|
+
success: "#a6e3a1",
|
|
838
|
+
danger: "#f38ba8",
|
|
839
|
+
dangerLight: "#eba0ac",
|
|
840
|
+
warning: "#f9e2af",
|
|
841
|
+
onAccent: "#1e1e2e",
|
|
842
|
+
onSecondary: "#1e1e2e",
|
|
843
|
+
onDanger: "#1e1e2e"
|
|
844
|
+
},
|
|
845
|
+
lightHue: {
|
|
846
|
+
accent: "#8839ef",
|
|
847
|
+
accentLight: "#9a55f2",
|
|
848
|
+
secondary: "#1e66f5",
|
|
849
|
+
secondaryLight: "#4680f7",
|
|
850
|
+
success: "#40a02b",
|
|
851
|
+
danger: "#d20f39",
|
|
852
|
+
dangerLight: "#e64553",
|
|
853
|
+
warning: "#df8e1d",
|
|
854
|
+
onAccent: "#eff1f5",
|
|
855
|
+
onSecondary: "#eff1f5",
|
|
856
|
+
onDanger: "#eff1f5"
|
|
857
|
+
},
|
|
858
|
+
dark: {
|
|
859
|
+
bg: "#1e1e2e",
|
|
860
|
+
surface: "#313244",
|
|
861
|
+
surfaceRaised: "#45475a",
|
|
862
|
+
surfaceHover: "#585b70",
|
|
863
|
+
border: "#45475a",
|
|
864
|
+
muted: "#a6adc8",
|
|
865
|
+
text: "#cdd6f4"
|
|
866
|
+
},
|
|
867
|
+
light: {
|
|
868
|
+
bg: "#e6e9ef",
|
|
869
|
+
surface: "#eff1f5",
|
|
870
|
+
surfaceRaised: "#eaedf3",
|
|
871
|
+
surfaceHover: "#dce0e8",
|
|
872
|
+
border: "#ccd0da",
|
|
873
|
+
muted: "#6c6f85",
|
|
874
|
+
text: "#4c4f69"
|
|
875
|
+
},
|
|
876
|
+
radius: se
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
/* Primer's functional tokens, from @primer/primitives' compiled themes:
|
|
881
|
+
bgColor-default, bgColor-muted, borderColor-default, fgColor-default,
|
|
882
|
+
fgColor-muted, and the -emphasis fills for accent, danger, success,
|
|
883
|
+
attention and done. The raised and hover steps are derived — Primer
|
|
884
|
+
expresses those as translucent overlays rather than as solid colours. */
|
|
885
|
+
id: "github",
|
|
886
|
+
name: "GitHub",
|
|
887
|
+
note: "Primer's own tokens, six-pixel corners included.",
|
|
888
|
+
group: "Ported",
|
|
889
|
+
source: "@primer/primitives",
|
|
890
|
+
theme: {
|
|
891
|
+
name: "GitHub",
|
|
892
|
+
hue: {
|
|
893
|
+
accent: "#1f6feb",
|
|
894
|
+
accentLight: "#4493f8",
|
|
895
|
+
secondary: "#8957e5",
|
|
896
|
+
secondaryLight: "#a371f7",
|
|
897
|
+
success: "#238636",
|
|
898
|
+
danger: "#da3633",
|
|
899
|
+
dangerLight: "#f85149",
|
|
900
|
+
warning: "#9e6a03",
|
|
901
|
+
onAccent: "#ffffff",
|
|
902
|
+
onSecondary: "#ffffff",
|
|
903
|
+
onDanger: "#ffffff"
|
|
904
|
+
},
|
|
905
|
+
lightHue: {
|
|
906
|
+
accent: "#0969da",
|
|
907
|
+
accentLight: "#218bff",
|
|
908
|
+
secondary: "#8250df",
|
|
909
|
+
secondaryLight: "#a475f9",
|
|
910
|
+
success: "#1f883d",
|
|
911
|
+
danger: "#cf222e",
|
|
912
|
+
dangerLight: "#d1242f",
|
|
913
|
+
warning: "#9a6700",
|
|
914
|
+
onAccent: "#ffffff",
|
|
915
|
+
onSecondary: "#ffffff",
|
|
916
|
+
onDanger: "#ffffff"
|
|
917
|
+
},
|
|
918
|
+
dark: {
|
|
919
|
+
bg: "#0d1117",
|
|
920
|
+
surface: "#151b23",
|
|
921
|
+
surfaceRaised: "#1c222b",
|
|
922
|
+
surfaceHover: "#262c36",
|
|
923
|
+
border: "#3d444d",
|
|
924
|
+
muted: "#9198a1",
|
|
925
|
+
text: "#f0f6fc"
|
|
926
|
+
},
|
|
927
|
+
light: {
|
|
928
|
+
bg: "#f6f8fa",
|
|
929
|
+
surface: "#ffffff",
|
|
930
|
+
surfaceRaised: "#fbfcfd",
|
|
931
|
+
surfaceHover: "#eef1f4",
|
|
932
|
+
border: "#d1d9e0",
|
|
933
|
+
muted: "#59636e",
|
|
934
|
+
text: "#1f2328"
|
|
935
|
+
},
|
|
936
|
+
radius: Rt
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
/* Read off anthropic.com's own stylesheet: the clay #d97757, the cream
|
|
941
|
+
#f0eee6 and #faf9f5, the ink #141413, and the neutrals #3d3d3a,
|
|
942
|
+
#87867f, #b0aea5, #c6c4ba, #e8e6dc. Anthropic publishes no token file,
|
|
943
|
+
so the status hues have no published counterpart and are Gryt's own —
|
|
944
|
+
this is the one preset that is a likeness rather than a port. */
|
|
945
|
+
id: "claude",
|
|
946
|
+
name: "Claude",
|
|
947
|
+
note: "Anthropic's clay orange on cream and near-black.",
|
|
948
|
+
group: "Ported",
|
|
949
|
+
source: "anthropic.com — a likeness, not a published palette",
|
|
950
|
+
theme: {
|
|
951
|
+
name: "Claude",
|
|
952
|
+
hue: {
|
|
953
|
+
accent: "#d97757",
|
|
954
|
+
accentLight: "#e59275",
|
|
955
|
+
secondary: "#7d9ec4",
|
|
956
|
+
secondaryLight: "#9db8d6",
|
|
957
|
+
success: "#6ba368",
|
|
958
|
+
danger: "#bf4d43",
|
|
959
|
+
dangerLight: "#d4726a",
|
|
960
|
+
warning: "#d9a441",
|
|
961
|
+
onAccent: "#241009",
|
|
962
|
+
onSecondary: "#0c1720",
|
|
963
|
+
onDanger: "#faf9f5"
|
|
964
|
+
},
|
|
965
|
+
lightHue: null,
|
|
966
|
+
dark: {
|
|
967
|
+
bg: "#141413",
|
|
968
|
+
surface: "#1f1e1d",
|
|
969
|
+
surfaceRaised: "#262624",
|
|
970
|
+
surfaceHover: "#3d3d3a",
|
|
971
|
+
border: "#3d3d3a",
|
|
972
|
+
muted: "#b0aea5",
|
|
973
|
+
text: "#faf9f5"
|
|
974
|
+
},
|
|
975
|
+
light: {
|
|
976
|
+
bg: "#f0eee6",
|
|
977
|
+
surface: "#faf9f5",
|
|
978
|
+
surfaceRaised: "#f5f3ec",
|
|
979
|
+
surfaceHover: "#e8e6dc",
|
|
980
|
+
border: "#d5d2c5",
|
|
981
|
+
muted: "#87867f",
|
|
982
|
+
text: "#141413"
|
|
983
|
+
},
|
|
984
|
+
radius: se
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
/* The zinc theme from shadcn-ui/ui's registry, converted from its OKLCH
|
|
989
|
+
values. One deliberate departure: shadcn's primary is monochrome —
|
|
990
|
+
near-white in dark, near-black in light — which cannot be a Gryt accent,
|
|
991
|
+
because the accent is also the colour every link and focus ring is drawn
|
|
992
|
+
from. Its destructive red is the accent here, and the neutrals are the
|
|
993
|
+
theme's own. */
|
|
994
|
+
id: "shadcn",
|
|
995
|
+
name: "shadcn/ui",
|
|
996
|
+
note: "Zinc neutrals and a ten-pixel radius. No pills anywhere.",
|
|
997
|
+
group: "Ported",
|
|
998
|
+
source: "ui.shadcn.com, MIT — accent adapted",
|
|
999
|
+
theme: {
|
|
1000
|
+
name: "shadcn/ui",
|
|
1001
|
+
hue: {
|
|
1002
|
+
accent: "#a1a1aa",
|
|
1003
|
+
accentLight: "#d4d4d8",
|
|
1004
|
+
secondary: "#71717a",
|
|
1005
|
+
secondaryLight: "#a1a1aa",
|
|
1006
|
+
success: "#4ade80",
|
|
1007
|
+
danger: "#e7000b",
|
|
1008
|
+
dangerLight: "#fb2c36",
|
|
1009
|
+
warning: "#fd9a00",
|
|
1010
|
+
onAccent: "#18181b",
|
|
1011
|
+
onSecondary: "#fafafa",
|
|
1012
|
+
onDanger: "#fafafa"
|
|
1013
|
+
},
|
|
1014
|
+
lightHue: {
|
|
1015
|
+
accent: "#3f3f46",
|
|
1016
|
+
accentLight: "#52525b",
|
|
1017
|
+
secondary: "#71717a",
|
|
1018
|
+
secondaryLight: "#a1a1aa",
|
|
1019
|
+
success: "#00a63e",
|
|
1020
|
+
danger: "#e7000b",
|
|
1021
|
+
dangerLight: "#fb2c36",
|
|
1022
|
+
warning: "#e17100",
|
|
1023
|
+
onAccent: "#fafafa",
|
|
1024
|
+
onSecondary: "#fafafa",
|
|
1025
|
+
onDanger: "#fafafa"
|
|
1026
|
+
},
|
|
1027
|
+
dark: {
|
|
1028
|
+
bg: "#18181b",
|
|
1029
|
+
surface: "#27272a",
|
|
1030
|
+
surfaceRaised: "#3f3f46",
|
|
1031
|
+
surfaceHover: "#3f3f46",
|
|
1032
|
+
border: "#3f3f46",
|
|
1033
|
+
muted: "#a1a1aa",
|
|
1034
|
+
text: "#fafafa"
|
|
1035
|
+
},
|
|
1036
|
+
light: {
|
|
1037
|
+
bg: "#f4f4f5",
|
|
1038
|
+
surface: "#ffffff",
|
|
1039
|
+
surfaceRaised: "#fafafa",
|
|
1040
|
+
surfaceHover: "#e4e4e7",
|
|
1041
|
+
border: "#e4e4e7",
|
|
1042
|
+
muted: "#71717a",
|
|
1043
|
+
text: "#18181b"
|
|
1044
|
+
},
|
|
1045
|
+
radius: $t
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
/* Ethan Schoonover's sixteen, exactly. base03 and base02 are the dark
|
|
1050
|
+
page and surface, base2 and base3 the light ones, and the accent hues
|
|
1051
|
+
are shared between the two halves — which is the whole point of
|
|
1052
|
+
Solarized. The steps between base03 and base02 are derived. */
|
|
1053
|
+
id: "solarized",
|
|
1054
|
+
name: "Solarized",
|
|
1055
|
+
note: "Both halves on one set of accents, as designed.",
|
|
1056
|
+
group: "Ported",
|
|
1057
|
+
source: "ethanschoonover.com/solarized, MIT",
|
|
1058
|
+
theme: {
|
|
1059
|
+
name: "Solarized",
|
|
1060
|
+
hue: {
|
|
1061
|
+
accent: "#268bd2",
|
|
1062
|
+
accentLight: "#4ba3e3",
|
|
1063
|
+
secondary: "#2aa198",
|
|
1064
|
+
secondaryLight: "#43bbb1",
|
|
1065
|
+
success: "#859900",
|
|
1066
|
+
danger: "#dc322f",
|
|
1067
|
+
dangerLight: "#cb4b16",
|
|
1068
|
+
warning: "#b58900",
|
|
1069
|
+
onAccent: "#fdf6e3",
|
|
1070
|
+
onSecondary: "#002b36",
|
|
1071
|
+
onDanger: "#fdf6e3"
|
|
1072
|
+
},
|
|
1073
|
+
lightHue: null,
|
|
1074
|
+
dark: {
|
|
1075
|
+
bg: "#002b36",
|
|
1076
|
+
surface: "#073642",
|
|
1077
|
+
surfaceRaised: "#0b414f",
|
|
1078
|
+
surfaceHover: "#134b5a",
|
|
1079
|
+
border: "#0f4757",
|
|
1080
|
+
muted: "#93a1a1",
|
|
1081
|
+
text: "#eee8d5"
|
|
1082
|
+
},
|
|
1083
|
+
light: {
|
|
1084
|
+
bg: "#eee8d5",
|
|
1085
|
+
surface: "#fdf6e3",
|
|
1086
|
+
surfaceRaised: "#f7f0dc",
|
|
1087
|
+
surfaceHover: "#e4dcc4",
|
|
1088
|
+
border: "#d9d0b4",
|
|
1089
|
+
muted: "#586e75",
|
|
1090
|
+
text: "#073642"
|
|
1091
|
+
},
|
|
1092
|
+
radius: ke
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
], sn = new Map(
|
|
1096
|
+
Ct.map((a) => [a.id, a])
|
|
1097
|
+
);
|
|
1098
|
+
function s(...a) {
|
|
1099
|
+
return qe(Ze(a));
|
|
570
1100
|
}
|
|
571
|
-
const
|
|
1101
|
+
const At = {
|
|
572
1102
|
primary: "bg-gryt-accent text-gryt-on-accent hover:not-data-disabled:bg-gryt-accent-light",
|
|
573
1103
|
secondary: "bg-gryt-secondary text-gryt-on-secondary hover:not-data-disabled:bg-gryt-secondary-light",
|
|
574
1104
|
neutral: "bg-gryt-surface-raised text-gryt-text hover:not-data-disabled:bg-gryt-surface-hover",
|
|
575
1105
|
danger: "bg-gryt-danger text-gryt-on-danger hover:not-data-disabled:bg-gryt-danger-light",
|
|
576
1106
|
ghost: "bg-transparent text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"
|
|
577
|
-
},
|
|
1107
|
+
}, It = {
|
|
578
1108
|
xsmall: "min-h-8 px-3 text-xs",
|
|
579
1109
|
small: "min-h-9 px-4 text-sm",
|
|
580
1110
|
medium: "min-h-10 px-5 text-sm",
|
|
581
1111
|
large: "min-h-12 px-6 text-base"
|
|
582
|
-
},
|
|
1112
|
+
}, Mt = i(
|
|
583
1113
|
function({
|
|
584
|
-
children:
|
|
1114
|
+
children: t,
|
|
585
1115
|
className: r,
|
|
586
|
-
endIcon:
|
|
587
|
-
size:
|
|
588
|
-
startIcon:
|
|
589
|
-
tone:
|
|
590
|
-
...
|
|
1116
|
+
endIcon: e,
|
|
1117
|
+
size: o = "medium",
|
|
1118
|
+
startIcon: c,
|
|
1119
|
+
tone: d = "primary",
|
|
1120
|
+
...l
|
|
591
1121
|
}, g) {
|
|
592
|
-
return /* @__PURE__ */
|
|
593
|
-
|
|
1122
|
+
return /* @__PURE__ */ m(
|
|
1123
|
+
Se,
|
|
594
1124
|
{
|
|
595
1125
|
ref: g,
|
|
596
1126
|
className: s(
|
|
@@ -614,80 +1144,80 @@ const Te = {
|
|
|
614
1144
|
"motion-safe:not-[[aria-haspopup]]:active:not-data-disabled:scale-[0.96]",
|
|
615
1145
|
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",
|
|
616
1146
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
617
|
-
|
|
618
|
-
|
|
1147
|
+
It[o],
|
|
1148
|
+
At[d],
|
|
619
1149
|
r
|
|
620
1150
|
),
|
|
621
|
-
...
|
|
1151
|
+
...l,
|
|
622
1152
|
children: [
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
1153
|
+
c,
|
|
1154
|
+
t,
|
|
1155
|
+
e
|
|
626
1156
|
]
|
|
627
1157
|
}
|
|
628
1158
|
);
|
|
629
1159
|
}
|
|
630
|
-
), x = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",
|
|
1160
|
+
), x = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light", Ht = "has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-gryt-accent-light", Fe = [
|
|
631
1161
|
"w-full rounded-(--gryt-radius-xl) border bg-gryt-surface-raised",
|
|
632
1162
|
"text-gryt-text outline-none placeholder:text-gryt-muted",
|
|
633
1163
|
"transition-colors duration-150 motion-reduce:transition-none",
|
|
634
1164
|
"hover:border-gryt-accent-light focus:border-gryt-accent",
|
|
635
1165
|
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
636
|
-
].join(" "),
|
|
1166
|
+
].join(" "), _e = {
|
|
637
1167
|
small: "min-h-9 px-3 py-1.5 text-sm",
|
|
638
1168
|
medium: "min-h-11 px-4 py-2.5 text-sm"
|
|
639
|
-
}, E = "rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text",
|
|
1169
|
+
}, E = "rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text", H = [
|
|
640
1170
|
// scale and translate are named explicitly because Tailwind v4 sets them as
|
|
641
1171
|
// standalone CSS properties rather than folding them into `transform`, so
|
|
642
1172
|
// transitioning `transform` would leave the popup snapping into place.
|
|
643
1173
|
"transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
|
|
644
1174
|
"data-starting-style:scale-[0.98] data-starting-style:opacity-0",
|
|
645
1175
|
"data-ending-style:scale-[0.98] data-ending-style:opacity-0"
|
|
646
|
-
].join(" "),
|
|
1176
|
+
].join(" "), V = "data-disabled:cursor-not-allowed data-disabled:opacity-50", Dt = {
|
|
647
1177
|
primary: "data-checked:bg-gryt-accent data-checked:text-gryt-on-accent",
|
|
648
1178
|
secondary: "data-checked:bg-gryt-secondary data-checked:text-gryt-on-secondary",
|
|
649
1179
|
neutral: "data-checked:bg-gryt-surface-hover data-checked:text-gryt-text",
|
|
650
1180
|
danger: "data-checked:bg-gryt-danger data-checked:text-gryt-on-danger",
|
|
651
1181
|
success: "data-checked:bg-gryt-success data-checked:text-gryt-on-accent",
|
|
652
1182
|
warning: "data-checked:bg-gryt-warning data-checked:text-gryt-on-accent"
|
|
653
|
-
},
|
|
1183
|
+
}, Ve = {
|
|
654
1184
|
primary: "bg-gryt-accent",
|
|
655
1185
|
secondary: "bg-gryt-secondary",
|
|
656
1186
|
neutral: "bg-gryt-surface-hover",
|
|
657
1187
|
danger: "bg-gryt-danger",
|
|
658
1188
|
success: "bg-gryt-success",
|
|
659
1189
|
warning: "bg-gryt-warning"
|
|
660
|
-
},
|
|
1190
|
+
}, Gt = {
|
|
661
1191
|
primary: "data-checked:border-gryt-accent",
|
|
662
1192
|
secondary: "data-checked:border-gryt-secondary",
|
|
663
1193
|
neutral: "data-checked:border-gryt-muted",
|
|
664
1194
|
danger: "data-checked:border-gryt-danger",
|
|
665
1195
|
success: "data-checked:border-gryt-success",
|
|
666
1196
|
warning: "data-checked:border-gryt-warning"
|
|
667
|
-
},
|
|
1197
|
+
}, jt = {
|
|
668
1198
|
primary: "data-checked:bg-gryt-accent",
|
|
669
1199
|
secondary: "data-checked:bg-gryt-secondary",
|
|
670
1200
|
neutral: "data-checked:bg-gryt-surface-hover",
|
|
671
1201
|
danger: "data-checked:bg-gryt-danger",
|
|
672
1202
|
success: "data-checked:bg-gryt-success",
|
|
673
1203
|
warning: "data-checked:bg-gryt-warning"
|
|
674
|
-
},
|
|
1204
|
+
}, Et = {
|
|
675
1205
|
primary: "text-gryt-accent-11 hover:not-data-disabled:bg-gryt-accent-3",
|
|
676
1206
|
secondary: "text-gryt-secondary-11 hover:not-data-disabled:bg-gryt-secondary-3",
|
|
677
1207
|
neutral: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text",
|
|
678
1208
|
danger: "text-gryt-danger-11 hover:not-data-disabled:bg-gryt-danger-3",
|
|
679
1209
|
ghost: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"
|
|
680
|
-
},
|
|
1210
|
+
}, zt = {
|
|
681
1211
|
xsmall: "h-8 w-8",
|
|
682
1212
|
small: "h-9 w-9",
|
|
683
1213
|
medium: "h-10 w-10",
|
|
684
1214
|
large: "h-12 w-12"
|
|
685
|
-
},
|
|
686
|
-
function({ className:
|
|
1215
|
+
}, cn = i(
|
|
1216
|
+
function({ className: t, size: r = "medium", tone: e = "neutral", ...o }, c) {
|
|
687
1217
|
return /* @__PURE__ */ n(
|
|
688
|
-
|
|
1218
|
+
Se,
|
|
689
1219
|
{
|
|
690
|
-
ref:
|
|
1220
|
+
ref: c,
|
|
691
1221
|
className: s(
|
|
692
1222
|
"gryt-icon-button",
|
|
693
1223
|
"inline-flex shrink-0 items-center justify-center border-0 bg-transparent p-0",
|
|
@@ -703,235 +1233,235 @@ const Te = {
|
|
|
703
1233
|
"motion-safe:not-[[aria-haspopup]]:hover:not-data-disabled:scale-[1.06]",
|
|
704
1234
|
"motion-safe:not-[[aria-haspopup]]:active:not-data-disabled:scale-[0.94]",
|
|
705
1235
|
x,
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
1236
|
+
V,
|
|
1237
|
+
zt[r],
|
|
1238
|
+
Et[e],
|
|
1239
|
+
t
|
|
710
1240
|
),
|
|
711
|
-
...
|
|
1241
|
+
...o
|
|
712
1242
|
}
|
|
713
1243
|
);
|
|
714
1244
|
}
|
|
715
|
-
),
|
|
716
|
-
function({ className:
|
|
1245
|
+
), dn = i(
|
|
1246
|
+
function({ className: t, elevated: r = !1, ...e }, o) {
|
|
717
1247
|
return /* @__PURE__ */ n(
|
|
718
1248
|
"div",
|
|
719
1249
|
{
|
|
720
|
-
ref:
|
|
1250
|
+
ref: o,
|
|
721
1251
|
className: s(
|
|
722
1252
|
"gryt-surface rounded-(--gryt-radius-lg) border border-gryt-border p-4 text-gryt-text",
|
|
723
1253
|
r ? "bg-gryt-surface-raised" : "bg-gryt-surface",
|
|
724
|
-
|
|
1254
|
+
t
|
|
725
1255
|
),
|
|
726
|
-
...
|
|
1256
|
+
...e
|
|
727
1257
|
}
|
|
728
1258
|
);
|
|
729
1259
|
}
|
|
730
|
-
),
|
|
731
|
-
function({ children:
|
|
1260
|
+
), ln = i(
|
|
1261
|
+
function({ children: t, className: r, from: e = "assistant", ...o }, c) {
|
|
732
1262
|
return /* @__PURE__ */ n(
|
|
733
1263
|
"div",
|
|
734
1264
|
{
|
|
735
|
-
ref:
|
|
1265
|
+
ref: c,
|
|
736
1266
|
className: s(
|
|
737
1267
|
"gryt-message-bubble",
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
1268
|
+
e === "user" && "ml-auto bg-gryt-accent text-gryt-on-accent",
|
|
1269
|
+
e === "assistant" && "mr-auto border border-gryt-border bg-gryt-surface text-gryt-text",
|
|
1270
|
+
e === "system" && "mx-auto border border-dashed border-gryt-border bg-transparent text-gryt-muted",
|
|
741
1271
|
r
|
|
742
1272
|
),
|
|
743
|
-
...
|
|
744
|
-
children:
|
|
1273
|
+
...o,
|
|
1274
|
+
children: t
|
|
745
1275
|
}
|
|
746
1276
|
);
|
|
747
1277
|
}
|
|
748
|
-
),
|
|
1278
|
+
), un = i(
|
|
749
1279
|
function({
|
|
750
|
-
className:
|
|
1280
|
+
className: t,
|
|
751
1281
|
error: r = !1,
|
|
752
|
-
fieldClassName:
|
|
753
|
-
helperText:
|
|
754
|
-
label:
|
|
755
|
-
minRows:
|
|
756
|
-
multiline:
|
|
1282
|
+
fieldClassName: e,
|
|
1283
|
+
helperText: o,
|
|
1284
|
+
label: c,
|
|
1285
|
+
minRows: d = 3,
|
|
1286
|
+
multiline: l = !1,
|
|
757
1287
|
size: g = "medium",
|
|
758
|
-
...
|
|
759
|
-
},
|
|
760
|
-
const
|
|
1288
|
+
...y
|
|
1289
|
+
}, f) {
|
|
1290
|
+
const b = /* @__PURE__ */ n(
|
|
761
1291
|
q.Control,
|
|
762
1292
|
{
|
|
763
|
-
ref:
|
|
764
|
-
render:
|
|
1293
|
+
ref: f,
|
|
1294
|
+
render: l ? /* @__PURE__ */ n("textarea", { rows: d }) : void 0,
|
|
765
1295
|
className: s(
|
|
766
1296
|
"gryt-text-field-control",
|
|
767
|
-
|
|
768
|
-
|
|
1297
|
+
Fe,
|
|
1298
|
+
l && "resize-y leading-6",
|
|
769
1299
|
r ? "border-gryt-danger" : "border-gryt-border",
|
|
770
|
-
|
|
771
|
-
|
|
1300
|
+
_e[g],
|
|
1301
|
+
t
|
|
772
1302
|
),
|
|
773
|
-
...
|
|
1303
|
+
...y
|
|
774
1304
|
}
|
|
775
1305
|
);
|
|
776
|
-
return /* @__PURE__ */
|
|
1306
|
+
return /* @__PURE__ */ m(
|
|
777
1307
|
q.Root,
|
|
778
1308
|
{
|
|
779
1309
|
className: s(
|
|
780
1310
|
"gryt-text-field flex w-full flex-col gap-1.5",
|
|
781
|
-
|
|
1311
|
+
e
|
|
782
1312
|
),
|
|
783
1313
|
children: [
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
1314
|
+
c ? /* @__PURE__ */ n(q.Label, { className: "text-xs font-medium text-gryt-muted", children: c }) : null,
|
|
1315
|
+
b,
|
|
1316
|
+
o ? /* @__PURE__ */ n(
|
|
787
1317
|
q.Description,
|
|
788
1318
|
{
|
|
789
1319
|
className: s(
|
|
790
1320
|
"text-xs",
|
|
791
1321
|
r ? "text-gryt-danger-11" : "text-gryt-muted"
|
|
792
1322
|
),
|
|
793
|
-
children:
|
|
1323
|
+
children: o
|
|
794
1324
|
}
|
|
795
1325
|
) : null
|
|
796
1326
|
]
|
|
797
1327
|
}
|
|
798
1328
|
);
|
|
799
1329
|
}
|
|
800
|
-
),
|
|
1330
|
+
), gn = i(
|
|
801
1331
|
function({
|
|
802
|
-
className:
|
|
1332
|
+
className: t,
|
|
803
1333
|
disabled: r = !1,
|
|
804
|
-
maxRows:
|
|
805
|
-
minRows:
|
|
806
|
-
onSubmit:
|
|
807
|
-
placeholder:
|
|
808
|
-
submitLabel:
|
|
1334
|
+
maxRows: e = 8,
|
|
1335
|
+
minRows: o = 1,
|
|
1336
|
+
onSubmit: c,
|
|
1337
|
+
placeholder: d = "Message Gryt",
|
|
1338
|
+
submitLabel: l = "Send",
|
|
809
1339
|
...g
|
|
810
|
-
},
|
|
811
|
-
const
|
|
812
|
-
const w =
|
|
1340
|
+
}, y) {
|
|
1341
|
+
const f = Re(null), b = de(() => {
|
|
1342
|
+
const w = f.current;
|
|
813
1343
|
if (!w)
|
|
814
1344
|
return;
|
|
815
|
-
const
|
|
1345
|
+
const re = window.getComputedStyle(w), be = parseFloat(re.lineHeight) || 24, pe = parseFloat(re.paddingTop) + parseFloat(re.paddingBottom);
|
|
816
1346
|
w.style.height = "auto", w.style.height = `${Math.min(
|
|
817
|
-
Math.max(w.scrollHeight,
|
|
818
|
-
|
|
1347
|
+
Math.max(w.scrollHeight, be * o + pe),
|
|
1348
|
+
be * e + pe
|
|
819
1349
|
)}px`;
|
|
820
|
-
}, [
|
|
821
|
-
|
|
1350
|
+
}, [e, o]);
|
|
1351
|
+
Xe(b, [b, g.value]);
|
|
822
1352
|
function P(w) {
|
|
823
|
-
if (!
|
|
1353
|
+
if (!c) {
|
|
824
1354
|
w.preventDefault();
|
|
825
1355
|
return;
|
|
826
1356
|
}
|
|
827
|
-
|
|
1357
|
+
c(w);
|
|
828
1358
|
}
|
|
829
|
-
return /* @__PURE__ */
|
|
1359
|
+
return /* @__PURE__ */ m("form", { className: s("gryt-composer", t), onSubmit: P, children: [
|
|
830
1360
|
/* @__PURE__ */ n(
|
|
831
1361
|
"textarea",
|
|
832
1362
|
{
|
|
833
1363
|
ref: (w) => {
|
|
834
|
-
|
|
1364
|
+
f.current = w, typeof y == "function" ? y(w) : y && (y.current = w);
|
|
835
1365
|
},
|
|
836
|
-
rows:
|
|
1366
|
+
rows: o,
|
|
837
1367
|
disabled: r,
|
|
838
|
-
placeholder:
|
|
839
|
-
onInput:
|
|
1368
|
+
placeholder: d,
|
|
1369
|
+
onInput: b,
|
|
840
1370
|
className: "gryt-composer-textarea disabled:cursor-not-allowed disabled:opacity-60",
|
|
841
1371
|
...g
|
|
842
1372
|
}
|
|
843
1373
|
),
|
|
844
1374
|
/* @__PURE__ */ n(
|
|
845
|
-
|
|
1375
|
+
Mt,
|
|
846
1376
|
{
|
|
847
1377
|
type: "submit",
|
|
848
1378
|
disabled: r,
|
|
849
1379
|
size: "small",
|
|
850
|
-
endIcon: /* @__PURE__ */ n(
|
|
851
|
-
children:
|
|
1380
|
+
endIcon: /* @__PURE__ */ n(et, { size: 14, weight: "fill" }),
|
|
1381
|
+
children: l
|
|
852
1382
|
}
|
|
853
1383
|
)
|
|
854
1384
|
] });
|
|
855
1385
|
}
|
|
856
|
-
),
|
|
1386
|
+
), Bt = {
|
|
857
1387
|
small: "h-8 w-8 text-xs",
|
|
858
1388
|
medium: "h-10 w-10 text-sm",
|
|
859
1389
|
large: "h-12 w-12 text-base"
|
|
860
|
-
},
|
|
861
|
-
return /* @__PURE__ */
|
|
862
|
-
|
|
1390
|
+
}, Ft = i(function({ alt: t, children: r, className: e, fallback: o, size: c = "medium", src: d, ...l }, g) {
|
|
1391
|
+
return /* @__PURE__ */ m(
|
|
1392
|
+
ae.Root,
|
|
863
1393
|
{
|
|
864
1394
|
ref: g,
|
|
865
1395
|
className: s(
|
|
866
1396
|
"gryt-avatar inline-flex shrink-0 items-center justify-center overflow-hidden align-middle select-none",
|
|
867
1397
|
"rounded-(--gryt-radius-full) bg-gryt-surface-raised font-medium text-gryt-text ring-1 ring-gryt-border",
|
|
868
|
-
|
|
869
|
-
|
|
1398
|
+
Bt[c],
|
|
1399
|
+
e
|
|
870
1400
|
),
|
|
871
|
-
...
|
|
1401
|
+
...l,
|
|
872
1402
|
children: [
|
|
873
|
-
|
|
874
|
-
|
|
1403
|
+
d ? /* @__PURE__ */ n(
|
|
1404
|
+
ae.Image,
|
|
875
1405
|
{
|
|
876
|
-
src:
|
|
877
|
-
alt:
|
|
1406
|
+
src: d,
|
|
1407
|
+
alt: t,
|
|
878
1408
|
className: "h-full w-full object-cover"
|
|
879
1409
|
}
|
|
880
1410
|
) : null,
|
|
881
|
-
/* @__PURE__ */ n(
|
|
1411
|
+
/* @__PURE__ */ n(ae.Fallback, { className: "flex h-full w-full items-center justify-center", children: o ?? r })
|
|
882
1412
|
]
|
|
883
1413
|
}
|
|
884
1414
|
);
|
|
885
|
-
}),
|
|
886
|
-
return /* @__PURE__ */
|
|
1415
|
+
}), fn = i(function({ active: t = !1, avatar: r, className: e, subtitle: o, title: c, ...d }, l) {
|
|
1416
|
+
return /* @__PURE__ */ m(
|
|
887
1417
|
"button",
|
|
888
1418
|
{
|
|
889
|
-
ref:
|
|
1419
|
+
ref: l,
|
|
890
1420
|
type: "button",
|
|
891
1421
|
className: s(
|
|
892
1422
|
"gryt-conversation-item",
|
|
893
|
-
|
|
894
|
-
|
|
1423
|
+
t ? "bg-gryt-accent text-gryt-on-accent" : "text-gryt-text hover:bg-white/5",
|
|
1424
|
+
e
|
|
895
1425
|
),
|
|
896
|
-
...
|
|
1426
|
+
...d,
|
|
897
1427
|
children: [
|
|
898
1428
|
r ?? /* @__PURE__ */ n(
|
|
899
|
-
|
|
1429
|
+
Ft,
|
|
900
1430
|
{
|
|
901
1431
|
size: "small",
|
|
902
1432
|
className: s(
|
|
903
|
-
|
|
1433
|
+
t ? "bg-gryt-on-accent text-gryt-accent-9 ring-transparent" : "bg-gryt-surface-raised text-gryt-text"
|
|
904
1434
|
),
|
|
905
|
-
children:
|
|
1435
|
+
children: c.slice(0, 1).toUpperCase()
|
|
906
1436
|
}
|
|
907
1437
|
),
|
|
908
|
-
/* @__PURE__ */
|
|
909
|
-
/* @__PURE__ */ n("span", { className: "block truncate text-sm font-semibold", children:
|
|
910
|
-
|
|
1438
|
+
/* @__PURE__ */ m("span", { className: "min-w-0 flex-1", children: [
|
|
1439
|
+
/* @__PURE__ */ n("span", { className: "block truncate text-sm font-semibold", children: c }),
|
|
1440
|
+
o ? /* @__PURE__ */ n(
|
|
911
1441
|
"span",
|
|
912
1442
|
{
|
|
913
1443
|
className: s(
|
|
914
1444
|
"block truncate text-xs",
|
|
915
|
-
|
|
1445
|
+
t ? "text-gryt-on-accent/85" : "text-gryt-muted"
|
|
916
1446
|
),
|
|
917
|
-
children:
|
|
1447
|
+
children: o
|
|
918
1448
|
}
|
|
919
1449
|
) : null
|
|
920
1450
|
] })
|
|
921
1451
|
]
|
|
922
1452
|
}
|
|
923
1453
|
);
|
|
924
|
-
}),
|
|
925
|
-
const g = typeof
|
|
926
|
-
return /* @__PURE__ */
|
|
1454
|
+
}), yn = i(function({ badgeContent: t, children: r, className: e, max: o = 99, showZero: c = !1, ...d }, l) {
|
|
1455
|
+
const g = typeof t == "number" ? t : null, y = g !== null && g === 0 && !c, f = g !== null && g > o ? `${o}+` : t;
|
|
1456
|
+
return /* @__PURE__ */ m(
|
|
927
1457
|
"span",
|
|
928
1458
|
{
|
|
929
|
-
ref:
|
|
930
|
-
className: s("gryt-badge relative inline-flex",
|
|
931
|
-
...
|
|
1459
|
+
ref: l,
|
|
1460
|
+
className: s("gryt-badge relative inline-flex", e),
|
|
1461
|
+
...d,
|
|
932
1462
|
children: [
|
|
933
1463
|
r,
|
|
934
|
-
|
|
1464
|
+
t !== void 0 && !y ? /* @__PURE__ */ n(
|
|
935
1465
|
"span",
|
|
936
1466
|
{
|
|
937
1467
|
className: s(
|
|
@@ -940,56 +1470,56 @@ const Te = {
|
|
|
940
1470
|
"bg-gryt-accent text-[0.65rem] leading-none font-semibold text-gryt-on-accent",
|
|
941
1471
|
"ring-2 ring-gryt-bg"
|
|
942
1472
|
),
|
|
943
|
-
children:
|
|
1473
|
+
children: f
|
|
944
1474
|
}
|
|
945
1475
|
) : null
|
|
946
1476
|
]
|
|
947
1477
|
}
|
|
948
1478
|
);
|
|
949
|
-
}),
|
|
1479
|
+
}), _t = {
|
|
950
1480
|
neutral: "border-gryt-border bg-gryt-surface-raised text-gryt-text",
|
|
951
1481
|
primary: "border-gryt-accent-6 bg-gryt-accent-3 text-gryt-accent-11",
|
|
952
1482
|
secondary: "border-gryt-secondary-6 bg-gryt-secondary-3 text-gryt-secondary-11",
|
|
953
1483
|
success: "border-gryt-success-6 bg-gryt-success-3 text-gryt-success-11",
|
|
954
1484
|
warning: "border-gryt-warning-6 bg-gryt-warning-3 text-gryt-warning-11",
|
|
955
1485
|
danger: "border-gryt-danger-6 bg-gryt-danger-3 text-gryt-danger-11"
|
|
956
|
-
},
|
|
957
|
-
return /* @__PURE__ */
|
|
1486
|
+
}, mn = i(function({ children: t, className: r, icon: e, label: o, onDelete: c, tone: d = "neutral", ...l }, g) {
|
|
1487
|
+
return /* @__PURE__ */ m(
|
|
958
1488
|
"span",
|
|
959
1489
|
{
|
|
960
1490
|
ref: g,
|
|
961
1491
|
className: s(
|
|
962
1492
|
"gryt-chip inline-flex items-center gap-1.5 rounded-(--gryt-radius-full) border px-3 py-1 text-xs font-medium",
|
|
963
|
-
|
|
1493
|
+
_t[d],
|
|
964
1494
|
r
|
|
965
1495
|
),
|
|
966
|
-
...
|
|
1496
|
+
...l,
|
|
967
1497
|
children: [
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
1498
|
+
e,
|
|
1499
|
+
o ?? t,
|
|
1500
|
+
c ? /* @__PURE__ */ n(
|
|
971
1501
|
"button",
|
|
972
1502
|
{
|
|
973
1503
|
type: "button",
|
|
974
1504
|
"aria-label": "Remove",
|
|
975
|
-
onClick:
|
|
1505
|
+
onClick: c,
|
|
976
1506
|
className: s(
|
|
977
1507
|
"-mr-1 inline-flex h-4 w-4 items-center justify-center rounded-(--gryt-radius-full)",
|
|
978
1508
|
"opacity-70 transition-opacity hover:opacity-100",
|
|
979
1509
|
x
|
|
980
1510
|
),
|
|
981
|
-
children: /* @__PURE__ */ n($
|
|
1511
|
+
children: /* @__PURE__ */ n($e, { size: 10, weight: "bold", "aria-hidden": "true" })
|
|
982
1512
|
}
|
|
983
1513
|
) : null
|
|
984
1514
|
]
|
|
985
1515
|
}
|
|
986
1516
|
);
|
|
987
|
-
}),
|
|
988
|
-
function({ className:
|
|
1517
|
+
}), bn = i(
|
|
1518
|
+
function({ className: t, tone: r = "primary", ...e }, o) {
|
|
989
1519
|
return /* @__PURE__ */ n(
|
|
990
|
-
|
|
1520
|
+
he.Root,
|
|
991
1521
|
{
|
|
992
|
-
ref:
|
|
1522
|
+
ref: o,
|
|
993
1523
|
className: s(
|
|
994
1524
|
"gryt-checkbox flex h-5 w-5 shrink-0 items-center justify-center",
|
|
995
1525
|
"rounded-(--gryt-radius-sm) border border-gryt-border bg-gryt-surface-raised",
|
|
@@ -1001,14 +1531,14 @@ const Te = {
|
|
|
1001
1531
|
"motion-safe:hover:not-data-disabled:scale-[1.08]",
|
|
1002
1532
|
"motion-safe:active:not-data-disabled:scale-[0.92]",
|
|
1003
1533
|
x,
|
|
1004
|
-
|
|
1534
|
+
V,
|
|
1005
1535
|
// Unchecked stays a neutral outline; the tone only paints once checked.
|
|
1006
|
-
|
|
1007
|
-
|
|
1536
|
+
Dt[r],
|
|
1537
|
+
t
|
|
1008
1538
|
),
|
|
1009
|
-
...
|
|
1539
|
+
...e,
|
|
1010
1540
|
children: /* @__PURE__ */ n(
|
|
1011
|
-
|
|
1541
|
+
he.Indicator,
|
|
1012
1542
|
{
|
|
1013
1543
|
keepMounted: !0,
|
|
1014
1544
|
className: s(
|
|
@@ -1021,17 +1551,17 @@ const Te = {
|
|
|
1021
1551
|
"data-unchecked:scale-0 data-unchecked:opacity-0",
|
|
1022
1552
|
"motion-reduce:transition-none"
|
|
1023
1553
|
),
|
|
1024
|
-
children: /* @__PURE__ */ n(
|
|
1554
|
+
children: /* @__PURE__ */ n(Ce, { size: 12, weight: "bold" })
|
|
1025
1555
|
}
|
|
1026
1556
|
)
|
|
1027
1557
|
}
|
|
1028
1558
|
);
|
|
1029
1559
|
}
|
|
1030
|
-
),
|
|
1560
|
+
), pn = i(function({ className: t, tone: r = "primary", ...e }, o) {
|
|
1031
1561
|
return /* @__PURE__ */ n(
|
|
1032
|
-
|
|
1562
|
+
xe.Root,
|
|
1033
1563
|
{
|
|
1034
|
-
ref:
|
|
1564
|
+
ref: o,
|
|
1035
1565
|
className: s(
|
|
1036
1566
|
"gryt-radio flex h-5 w-5 shrink-0 items-center justify-center",
|
|
1037
1567
|
"rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface-raised",
|
|
@@ -1040,14 +1570,14 @@ const Te = {
|
|
|
1040
1570
|
"motion-safe:hover:not-data-disabled:scale-[1.08]",
|
|
1041
1571
|
"motion-safe:active:not-data-disabled:scale-[0.92]",
|
|
1042
1572
|
x,
|
|
1043
|
-
|
|
1573
|
+
V,
|
|
1044
1574
|
// Border takes the tone when selected; the dot inside carries the fill.
|
|
1045
|
-
|
|
1046
|
-
|
|
1575
|
+
Gt[r],
|
|
1576
|
+
t
|
|
1047
1577
|
),
|
|
1048
|
-
...
|
|
1578
|
+
...e,
|
|
1049
1579
|
children: /* @__PURE__ */ n(
|
|
1050
|
-
|
|
1580
|
+
xe.Indicator,
|
|
1051
1581
|
{
|
|
1052
1582
|
keepMounted: !0,
|
|
1053
1583
|
className: s(
|
|
@@ -1056,29 +1586,29 @@ const Te = {
|
|
|
1056
1586
|
// From 0, for the same reason as the Checkbox tick — see the note there.
|
|
1057
1587
|
"data-unchecked:scale-0 data-unchecked:opacity-0",
|
|
1058
1588
|
"motion-reduce:transition-none",
|
|
1059
|
-
|
|
1589
|
+
Ve[r]
|
|
1060
1590
|
)
|
|
1061
1591
|
}
|
|
1062
1592
|
)
|
|
1063
1593
|
}
|
|
1064
1594
|
);
|
|
1065
|
-
}),
|
|
1066
|
-
function({ className:
|
|
1595
|
+
}), hn = i(
|
|
1596
|
+
function({ className: t, ...r }, e) {
|
|
1067
1597
|
return /* @__PURE__ */ n(
|
|
1068
|
-
|
|
1598
|
+
st,
|
|
1069
1599
|
{
|
|
1070
|
-
ref:
|
|
1071
|
-
className: s("gryt-radio-group flex flex-col gap-2",
|
|
1600
|
+
ref: e,
|
|
1601
|
+
className: s("gryt-radio-group flex flex-col gap-2", t),
|
|
1072
1602
|
...r
|
|
1073
1603
|
}
|
|
1074
1604
|
);
|
|
1075
1605
|
}
|
|
1076
|
-
),
|
|
1077
|
-
function({ className:
|
|
1606
|
+
), xn = i(
|
|
1607
|
+
function({ className: t, tone: r = "primary", ...e }, o) {
|
|
1078
1608
|
return /* @__PURE__ */ n(
|
|
1079
|
-
|
|
1609
|
+
we.Root,
|
|
1080
1610
|
{
|
|
1081
|
-
ref:
|
|
1611
|
+
ref: o,
|
|
1082
1612
|
className: s(
|
|
1083
1613
|
"gryt-switch relative inline-flex h-6 w-10 shrink-0 items-center",
|
|
1084
1614
|
"rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface-raised p-0.5",
|
|
@@ -1088,13 +1618,13 @@ const Te = {
|
|
|
1088
1618
|
"motion-safe:hover:not-data-disabled:scale-[1.05]",
|
|
1089
1619
|
"motion-safe:active:not-data-disabled:scale-[0.95]",
|
|
1090
1620
|
x,
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1621
|
+
V,
|
|
1622
|
+
jt[r],
|
|
1623
|
+
t
|
|
1094
1624
|
),
|
|
1095
|
-
...
|
|
1625
|
+
...e,
|
|
1096
1626
|
children: /* @__PURE__ */ n(
|
|
1097
|
-
|
|
1627
|
+
we.Thumb,
|
|
1098
1628
|
{
|
|
1099
1629
|
className: s(
|
|
1100
1630
|
"h-4.5 w-4.5 rounded-(--gryt-radius-full) bg-gryt-text",
|
|
@@ -1106,65 +1636,65 @@ const Te = {
|
|
|
1106
1636
|
}
|
|
1107
1637
|
);
|
|
1108
1638
|
}
|
|
1109
|
-
),
|
|
1110
|
-
function
|
|
1111
|
-
className:
|
|
1112
|
-
tone:
|
|
1639
|
+
), Te = 3;
|
|
1640
|
+
function wn({
|
|
1641
|
+
className: a,
|
|
1642
|
+
tone: t = "primary",
|
|
1113
1643
|
"aria-label": r,
|
|
1114
|
-
...
|
|
1644
|
+
...e
|
|
1115
1645
|
}) {
|
|
1116
|
-
const [
|
|
1117
|
-
|
|
1118
|
-
if (!
|
|
1646
|
+
const [o, c] = We(!1), d = Re(null);
|
|
1647
|
+
Ke(() => {
|
|
1648
|
+
if (!o && d.current === null)
|
|
1119
1649
|
return;
|
|
1120
|
-
const
|
|
1121
|
-
|
|
1650
|
+
const f = () => {
|
|
1651
|
+
d.current = null, c(!1);
|
|
1122
1652
|
};
|
|
1123
|
-
return window.addEventListener("pointerup",
|
|
1124
|
-
window.removeEventListener("pointerup",
|
|
1653
|
+
return window.addEventListener("pointerup", f), window.addEventListener("pointercancel", f), () => {
|
|
1654
|
+
window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", f);
|
|
1125
1655
|
};
|
|
1126
|
-
}, [
|
|
1127
|
-
function
|
|
1128
|
-
|
|
1656
|
+
}, [o]);
|
|
1657
|
+
function l(f) {
|
|
1658
|
+
d.current = { x: f.clientX, y: f.clientY };
|
|
1129
1659
|
}
|
|
1130
|
-
function g(
|
|
1131
|
-
const
|
|
1132
|
-
if (
|
|
1660
|
+
function g(f) {
|
|
1661
|
+
const b = d.current;
|
|
1662
|
+
if (b === null || o)
|
|
1133
1663
|
return;
|
|
1134
|
-
(Math.abs(
|
|
1664
|
+
(Math.abs(f.clientX - b.x) > Te || Math.abs(f.clientY - b.y) > Te) && c(!0);
|
|
1135
1665
|
}
|
|
1136
|
-
const
|
|
1137
|
-
return /* @__PURE__ */ n(
|
|
1138
|
-
|
|
1666
|
+
const y = o ? "transition-none" : "duration-(--gryt-dur-spring) ease-spring-tight motion-reduce:transition-none";
|
|
1667
|
+
return /* @__PURE__ */ n(U.Root, { className: s("gryt-slider w-full", a), ...e, children: /* @__PURE__ */ n(
|
|
1668
|
+
U.Control,
|
|
1139
1669
|
{
|
|
1140
1670
|
className: "flex w-full touch-none items-center py-2 select-none",
|
|
1141
|
-
onPointerDown:
|
|
1671
|
+
onPointerDown: l,
|
|
1142
1672
|
onPointerMove: g,
|
|
1143
|
-
children: /* @__PURE__ */
|
|
1673
|
+
children: /* @__PURE__ */ m(U.Track, { className: "h-1.5 w-full rounded-(--gryt-radius-full) bg-gryt-surface-raised select-none", children: [
|
|
1144
1674
|
/* @__PURE__ */ n(
|
|
1145
|
-
|
|
1675
|
+
U.Indicator,
|
|
1146
1676
|
{
|
|
1147
1677
|
className: s(
|
|
1148
1678
|
"h-full rounded-(--gryt-radius-full) select-none",
|
|
1149
1679
|
"transition-[width]",
|
|
1150
|
-
|
|
1151
|
-
|
|
1680
|
+
y,
|
|
1681
|
+
Ve[t]
|
|
1152
1682
|
)
|
|
1153
1683
|
}
|
|
1154
1684
|
),
|
|
1155
1685
|
/* @__PURE__ */ n(
|
|
1156
|
-
|
|
1686
|
+
U.Thumb,
|
|
1157
1687
|
{
|
|
1158
1688
|
"aria-label": r,
|
|
1159
1689
|
className: s(
|
|
1160
1690
|
"group h-4 w-4 rounded-(--gryt-radius-full) select-none",
|
|
1161
1691
|
"transition-[inset-inline-start]",
|
|
1162
|
-
|
|
1692
|
+
y,
|
|
1163
1693
|
// The ring goes on the thumb but the focus lands on the visually
|
|
1164
1694
|
// hidden input inside it, so this has to match a descendant.
|
|
1165
1695
|
// Without it the slider is the one control here you cannot see
|
|
1166
1696
|
// yourself tab to.
|
|
1167
|
-
|
|
1697
|
+
Ht
|
|
1168
1698
|
),
|
|
1169
1699
|
children: /* @__PURE__ */ n(
|
|
1170
1700
|
"span",
|
|
@@ -1183,22 +1713,22 @@ function mn({
|
|
|
1183
1713
|
}
|
|
1184
1714
|
) });
|
|
1185
1715
|
}
|
|
1186
|
-
const
|
|
1716
|
+
const Vt = {
|
|
1187
1717
|
small: "min-h-9 px-3 text-sm",
|
|
1188
1718
|
medium: "min-h-11 px-4 text-sm"
|
|
1189
1719
|
};
|
|
1190
|
-
function
|
|
1191
|
-
className:
|
|
1192
|
-
label:
|
|
1720
|
+
function vn({
|
|
1721
|
+
className: a,
|
|
1722
|
+
label: t,
|
|
1193
1723
|
options: r = [],
|
|
1194
|
-
placeholder:
|
|
1195
|
-
size:
|
|
1196
|
-
...
|
|
1724
|
+
placeholder: e = "Select",
|
|
1725
|
+
size: o = "medium",
|
|
1726
|
+
...c
|
|
1197
1727
|
}) {
|
|
1198
|
-
return /* @__PURE__ */
|
|
1199
|
-
/* @__PURE__ */
|
|
1200
|
-
|
|
1201
|
-
/* @__PURE__ */
|
|
1728
|
+
return /* @__PURE__ */ m(v.Root, { items: r, ...c, children: [
|
|
1729
|
+
/* @__PURE__ */ m("div", { className: s("gryt-select flex w-full flex-col gap-1.5", a), children: [
|
|
1730
|
+
t ? /* @__PURE__ */ n(v.Label, { className: "text-xs font-medium text-gryt-muted", children: t }) : null,
|
|
1731
|
+
/* @__PURE__ */ m(
|
|
1202
1732
|
v.Trigger,
|
|
1203
1733
|
{
|
|
1204
1734
|
className: s(
|
|
@@ -1208,11 +1738,11 @@ function pn({
|
|
|
1208
1738
|
"transition-colors duration-150 hover:border-gryt-accent-light",
|
|
1209
1739
|
"data-disabled:cursor-not-allowed data-disabled:opacity-60",
|
|
1210
1740
|
x,
|
|
1211
|
-
|
|
1741
|
+
Vt[o]
|
|
1212
1742
|
),
|
|
1213
1743
|
children: [
|
|
1214
|
-
/* @__PURE__ */ n(v.Value, { placeholder:
|
|
1215
|
-
/* @__PURE__ */ n(v.Icon, { className: "shrink-0 text-gryt-muted", children: /* @__PURE__ */ n(
|
|
1744
|
+
/* @__PURE__ */ n(v.Value, { placeholder: e }),
|
|
1745
|
+
/* @__PURE__ */ n(v.Icon, { className: "shrink-0 text-gryt-muted", children: /* @__PURE__ */ n(tt, { size: 16 }) })
|
|
1216
1746
|
]
|
|
1217
1747
|
}
|
|
1218
1748
|
)
|
|
@@ -1220,12 +1750,12 @@ function pn({
|
|
|
1220
1750
|
/* @__PURE__ */ n(v.Portal, { children: /* @__PURE__ */ n(v.Positioner, { sideOffset: 6, className: "outline-none", children: /* @__PURE__ */ n(
|
|
1221
1751
|
v.Popup,
|
|
1222
1752
|
{
|
|
1223
|
-
className: s("min-w-(--anchor-width) p-1", E,
|
|
1224
|
-
children: /* @__PURE__ */ n(v.List, { children: r.map((
|
|
1753
|
+
className: s("min-w-(--anchor-width) p-1", E, H),
|
|
1754
|
+
children: /* @__PURE__ */ n(v.List, { children: r.map((d) => /* @__PURE__ */ m(
|
|
1225
1755
|
v.Item,
|
|
1226
1756
|
{
|
|
1227
|
-
value:
|
|
1228
|
-
disabled:
|
|
1757
|
+
value: d.value,
|
|
1758
|
+
disabled: d.disabled,
|
|
1229
1759
|
className: s(
|
|
1230
1760
|
"flex cursor-default items-center justify-between gap-2",
|
|
1231
1761
|
"rounded-(--gryt-radius-md) px-3 py-2 text-sm text-gryt-text",
|
|
@@ -1233,185 +1763,185 @@ function pn({
|
|
|
1233
1763
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50"
|
|
1234
1764
|
),
|
|
1235
1765
|
children: [
|
|
1236
|
-
/* @__PURE__ */ n(v.ItemText, { children:
|
|
1237
|
-
/* @__PURE__ */ n(v.ItemIndicator, { className: "text-gryt-accent-11", children: /* @__PURE__ */ n(
|
|
1766
|
+
/* @__PURE__ */ n(v.ItemText, { children: d.label }),
|
|
1767
|
+
/* @__PURE__ */ n(v.ItemIndicator, { className: "text-gryt-accent-11", children: /* @__PURE__ */ n(Ce, { size: 14, weight: "bold" }) })
|
|
1238
1768
|
]
|
|
1239
1769
|
},
|
|
1240
|
-
String(
|
|
1770
|
+
String(d.value)
|
|
1241
1771
|
)) })
|
|
1242
1772
|
}
|
|
1243
1773
|
) }) })
|
|
1244
1774
|
] });
|
|
1245
1775
|
}
|
|
1246
|
-
function
|
|
1247
|
-
children:
|
|
1248
|
-
className:
|
|
1776
|
+
function Nn({
|
|
1777
|
+
children: a,
|
|
1778
|
+
className: t,
|
|
1249
1779
|
side: r = "top",
|
|
1250
|
-
sideOffset:
|
|
1251
|
-
title:
|
|
1780
|
+
sideOffset: e = 8,
|
|
1781
|
+
title: o
|
|
1252
1782
|
}) {
|
|
1253
|
-
return /* @__PURE__ */
|
|
1254
|
-
/* @__PURE__ */ n(G.Trigger, { render:
|
|
1255
|
-
/* @__PURE__ */ n(G.Portal, { children: /* @__PURE__ */ n(G.Positioner, { side: r, sideOffset:
|
|
1783
|
+
return /* @__PURE__ */ m(G.Root, { children: [
|
|
1784
|
+
/* @__PURE__ */ n(G.Trigger, { render: a }),
|
|
1785
|
+
/* @__PURE__ */ n(G.Portal, { children: /* @__PURE__ */ n(G.Positioner, { side: r, sideOffset: e, children: /* @__PURE__ */ n(
|
|
1256
1786
|
G.Popup,
|
|
1257
1787
|
{
|
|
1258
1788
|
className: s(
|
|
1259
1789
|
"gryt-tooltip rounded-(--gryt-radius-md) border border-gryt-border bg-gryt-surface-raised",
|
|
1260
1790
|
"px-2.5 py-1.5 text-xs text-gryt-text",
|
|
1261
|
-
|
|
1262
|
-
|
|
1791
|
+
H,
|
|
1792
|
+
t
|
|
1263
1793
|
),
|
|
1264
|
-
children:
|
|
1794
|
+
children: o
|
|
1265
1795
|
}
|
|
1266
1796
|
) }) })
|
|
1267
1797
|
] });
|
|
1268
1798
|
}
|
|
1269
|
-
const
|
|
1270
|
-
function({ className:
|
|
1799
|
+
const Pn = G.Provider, kn = i(
|
|
1800
|
+
function({ className: t, orientation: r = "horizontal", ...e }, o) {
|
|
1271
1801
|
return /* @__PURE__ */ n(
|
|
1272
|
-
|
|
1802
|
+
ct,
|
|
1273
1803
|
{
|
|
1274
|
-
ref:
|
|
1804
|
+
ref: o,
|
|
1275
1805
|
orientation: r,
|
|
1276
1806
|
className: s(
|
|
1277
1807
|
"gryt-divider bg-gryt-border",
|
|
1278
1808
|
r === "vertical" ? "h-full w-px" : "h-px w-full",
|
|
1279
|
-
|
|
1809
|
+
t
|
|
1280
1810
|
),
|
|
1281
|
-
...
|
|
1811
|
+
...e
|
|
1282
1812
|
}
|
|
1283
1813
|
);
|
|
1284
1814
|
}
|
|
1285
|
-
),
|
|
1815
|
+
), Tn = i(function({ className: t, ...r }, e) {
|
|
1286
1816
|
return /* @__PURE__ */ n(
|
|
1287
1817
|
"div",
|
|
1288
1818
|
{
|
|
1289
|
-
ref:
|
|
1819
|
+
ref: e,
|
|
1290
1820
|
className: s(
|
|
1291
1821
|
"gryt-card rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text",
|
|
1292
|
-
|
|
1822
|
+
t
|
|
1293
1823
|
),
|
|
1294
1824
|
...r
|
|
1295
1825
|
}
|
|
1296
1826
|
);
|
|
1297
1827
|
});
|
|
1298
|
-
function
|
|
1299
|
-
children:
|
|
1300
|
-
className:
|
|
1828
|
+
function Ln({
|
|
1829
|
+
children: a,
|
|
1830
|
+
className: t,
|
|
1301
1831
|
subheader: r,
|
|
1302
|
-
title:
|
|
1303
|
-
...
|
|
1832
|
+
title: e,
|
|
1833
|
+
...o
|
|
1304
1834
|
}) {
|
|
1305
|
-
return /* @__PURE__ */
|
|
1835
|
+
return /* @__PURE__ */ m(
|
|
1306
1836
|
"div",
|
|
1307
1837
|
{
|
|
1308
|
-
className: s("gryt-card-header flex flex-col gap-1 p-4",
|
|
1309
|
-
...
|
|
1838
|
+
className: s("gryt-card-header flex flex-col gap-1 p-4", t),
|
|
1839
|
+
...o,
|
|
1310
1840
|
children: [
|
|
1311
|
-
|
|
1841
|
+
e ? /* @__PURE__ */ n("span", { className: "text-base font-semibold text-gryt-text", children: e }) : null,
|
|
1312
1842
|
r ? /* @__PURE__ */ n("span", { className: "text-sm text-gryt-muted", children: r }) : null,
|
|
1313
|
-
|
|
1843
|
+
a
|
|
1314
1844
|
]
|
|
1315
1845
|
}
|
|
1316
1846
|
);
|
|
1317
1847
|
}
|
|
1318
|
-
function
|
|
1319
|
-
className:
|
|
1320
|
-
...
|
|
1848
|
+
function Sn({
|
|
1849
|
+
className: a,
|
|
1850
|
+
...t
|
|
1321
1851
|
}) {
|
|
1322
1852
|
return /* @__PURE__ */ n(
|
|
1323
1853
|
"div",
|
|
1324
1854
|
{
|
|
1325
1855
|
className: s(
|
|
1326
1856
|
"gryt-card-content px-4 pb-4 text-sm text-gryt-muted",
|
|
1327
|
-
|
|
1857
|
+
a
|
|
1328
1858
|
),
|
|
1329
|
-
...
|
|
1859
|
+
...t
|
|
1330
1860
|
}
|
|
1331
1861
|
);
|
|
1332
1862
|
}
|
|
1333
|
-
function
|
|
1334
|
-
className:
|
|
1335
|
-
...
|
|
1863
|
+
function Rn({
|
|
1864
|
+
className: a,
|
|
1865
|
+
...t
|
|
1336
1866
|
}) {
|
|
1337
1867
|
return /* @__PURE__ */ n(
|
|
1338
1868
|
"div",
|
|
1339
1869
|
{
|
|
1340
1870
|
className: s(
|
|
1341
1871
|
"gryt-card-actions flex items-center gap-2 px-4 pb-4",
|
|
1342
|
-
|
|
1872
|
+
a
|
|
1343
1873
|
),
|
|
1344
|
-
...
|
|
1874
|
+
...t
|
|
1345
1875
|
}
|
|
1346
1876
|
);
|
|
1347
1877
|
}
|
|
1348
|
-
const
|
|
1878
|
+
const Ut = {
|
|
1349
1879
|
info: "border-gryt-secondary-6 bg-gryt-secondary-3 text-gryt-secondary-11",
|
|
1350
1880
|
success: "border-gryt-success-6 bg-gryt-success-3 text-gryt-success-11",
|
|
1351
1881
|
warning: "border-gryt-warning-6 bg-gryt-warning-3 text-gryt-warning-11",
|
|
1352
1882
|
error: "border-gryt-danger-6 bg-gryt-danger-3 text-gryt-danger-11"
|
|
1353
|
-
},
|
|
1883
|
+
}, $n = i(function({ className: t, severity: r = "info", ...e }, o) {
|
|
1354
1884
|
return /* @__PURE__ */ n(
|
|
1355
1885
|
"div",
|
|
1356
1886
|
{
|
|
1357
|
-
ref:
|
|
1887
|
+
ref: o,
|
|
1358
1888
|
role: "alert",
|
|
1359
1889
|
className: s(
|
|
1360
1890
|
"gryt-alert rounded-(--gryt-radius-lg) border px-4 py-3 text-sm",
|
|
1361
|
-
|
|
1362
|
-
|
|
1891
|
+
Ut[r],
|
|
1892
|
+
t
|
|
1363
1893
|
),
|
|
1364
|
-
...
|
|
1894
|
+
...e
|
|
1365
1895
|
}
|
|
1366
1896
|
);
|
|
1367
1897
|
});
|
|
1368
|
-
function
|
|
1898
|
+
function Cn({ className: a, value: t = null, ...r }) {
|
|
1369
1899
|
return /* @__PURE__ */ n(
|
|
1370
|
-
|
|
1900
|
+
ne.Root,
|
|
1371
1901
|
{
|
|
1372
|
-
value:
|
|
1373
|
-
className: s("gryt-progress w-full",
|
|
1902
|
+
value: t,
|
|
1903
|
+
className: s("gryt-progress w-full", a),
|
|
1374
1904
|
...r,
|
|
1375
|
-
children: /* @__PURE__ */ n(
|
|
1905
|
+
children: /* @__PURE__ */ n(ne.Track, { className: "h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised", children: /* @__PURE__ */ n(ne.Indicator, { className: "h-full rounded-(--gryt-radius-full) bg-gryt-accent transition-[width] duration-300 ease-out motion-reduce:transition-none" }) })
|
|
1376
1906
|
}
|
|
1377
1907
|
);
|
|
1378
1908
|
}
|
|
1379
|
-
function
|
|
1380
|
-
className:
|
|
1381
|
-
size:
|
|
1909
|
+
function An({
|
|
1910
|
+
className: a,
|
|
1911
|
+
size: t = 24,
|
|
1382
1912
|
"aria-label": r = "Loading"
|
|
1383
1913
|
}) {
|
|
1384
1914
|
return /* @__PURE__ */ n(
|
|
1385
|
-
|
|
1915
|
+
rt,
|
|
1386
1916
|
{
|
|
1387
1917
|
role: "status",
|
|
1388
1918
|
"aria-label": r,
|
|
1389
|
-
size:
|
|
1919
|
+
size: t,
|
|
1390
1920
|
weight: "bold",
|
|
1391
1921
|
className: s(
|
|
1392
1922
|
"gryt-spinner text-gryt-accent-11 motion-safe:animate-spin",
|
|
1393
|
-
|
|
1923
|
+
a
|
|
1394
1924
|
)
|
|
1395
1925
|
}
|
|
1396
1926
|
);
|
|
1397
1927
|
}
|
|
1398
|
-
const
|
|
1928
|
+
const Ot = {
|
|
1399
1929
|
text: "h-4 rounded-(--gryt-radius-sm)",
|
|
1400
1930
|
rounded: "rounded-(--gryt-radius-lg)",
|
|
1401
1931
|
circular: "rounded-(--gryt-radius-full)",
|
|
1402
1932
|
rectangular: "rounded-none"
|
|
1403
1933
|
};
|
|
1404
|
-
function
|
|
1405
|
-
className:
|
|
1406
|
-
height:
|
|
1934
|
+
function In({
|
|
1935
|
+
className: a,
|
|
1936
|
+
height: t,
|
|
1407
1937
|
style: r,
|
|
1408
|
-
variant:
|
|
1409
|
-
width:
|
|
1410
|
-
...
|
|
1938
|
+
variant: e = "text",
|
|
1939
|
+
width: o,
|
|
1940
|
+
...c
|
|
1411
1941
|
}) {
|
|
1412
|
-
const
|
|
1413
|
-
width:
|
|
1414
|
-
height:
|
|
1942
|
+
const d = {
|
|
1943
|
+
width: o,
|
|
1944
|
+
height: t,
|
|
1415
1945
|
...r
|
|
1416
1946
|
};
|
|
1417
1947
|
return /* @__PURE__ */ n(
|
|
@@ -1426,131 +1956,131 @@ function $n({
|
|
|
1426
1956
|
// the surfaces it can land on rather than only the one it was picked
|
|
1427
1957
|
// against, and it dims rather than brightens as it pulses.
|
|
1428
1958
|
"gryt-skeleton bg-white/9 motion-safe:animate-pulse",
|
|
1429
|
-
|
|
1430
|
-
|
|
1959
|
+
Ot[e],
|
|
1960
|
+
a
|
|
1431
1961
|
),
|
|
1432
|
-
style:
|
|
1433
|
-
...
|
|
1962
|
+
style: d,
|
|
1963
|
+
...c
|
|
1434
1964
|
}
|
|
1435
1965
|
);
|
|
1436
1966
|
}
|
|
1437
|
-
const
|
|
1438
|
-
function({ className:
|
|
1967
|
+
const Ue = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none", Yt = i(
|
|
1968
|
+
function({ className: t, ...r }, e) {
|
|
1439
1969
|
return /* @__PURE__ */ n(
|
|
1440
|
-
|
|
1970
|
+
I.Backdrop,
|
|
1441
1971
|
{
|
|
1442
|
-
ref:
|
|
1972
|
+
ref: e,
|
|
1443
1973
|
className: s(
|
|
1444
1974
|
"gryt-dialog-backdrop fixed inset-0 min-h-dvh bg-black/60",
|
|
1445
1975
|
"backdrop-blur-(--gryt-backdrop-blur)",
|
|
1446
|
-
|
|
1976
|
+
Ue,
|
|
1447
1977
|
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
1448
|
-
|
|
1978
|
+
t
|
|
1449
1979
|
),
|
|
1450
1980
|
...r
|
|
1451
1981
|
}
|
|
1452
1982
|
);
|
|
1453
1983
|
}
|
|
1454
|
-
),
|
|
1455
|
-
function({ className:
|
|
1984
|
+
), Xt = i(
|
|
1985
|
+
function({ className: t, ...r }, e) {
|
|
1456
1986
|
return /* @__PURE__ */ n(
|
|
1457
|
-
|
|
1987
|
+
I.Popup,
|
|
1458
1988
|
{
|
|
1459
|
-
ref:
|
|
1989
|
+
ref: e,
|
|
1460
1990
|
className: s(
|
|
1461
1991
|
"gryt-dialog fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
|
|
1462
1992
|
"flex w-96 max-w-[calc(100vw-3rem)] flex-col gap-4",
|
|
1463
1993
|
"rounded-(--gryt-radius-lg) border border-gryt-border bg-gryt-surface p-5 text-gryt-text",
|
|
1464
|
-
|
|
1994
|
+
Ue,
|
|
1465
1995
|
"data-starting-style:scale-[0.98] data-starting-style:opacity-0",
|
|
1466
1996
|
"data-ending-style:scale-[0.98] data-ending-style:opacity-0",
|
|
1467
|
-
|
|
1997
|
+
t
|
|
1468
1998
|
),
|
|
1469
1999
|
...r
|
|
1470
2000
|
}
|
|
1471
2001
|
);
|
|
1472
2002
|
}
|
|
1473
|
-
),
|
|
1474
|
-
function({ className:
|
|
2003
|
+
), Wt = i(
|
|
2004
|
+
function({ className: t, ...r }, e) {
|
|
1475
2005
|
return /* @__PURE__ */ n(
|
|
1476
|
-
|
|
2006
|
+
I.Title,
|
|
1477
2007
|
{
|
|
1478
|
-
ref:
|
|
2008
|
+
ref: e,
|
|
1479
2009
|
className: s(
|
|
1480
2010
|
"gryt-dialog-title text-base font-semibold text-gryt-text",
|
|
1481
|
-
|
|
2011
|
+
t
|
|
1482
2012
|
),
|
|
1483
2013
|
...r
|
|
1484
2014
|
}
|
|
1485
2015
|
);
|
|
1486
2016
|
}
|
|
1487
|
-
),
|
|
1488
|
-
function({ className:
|
|
2017
|
+
), Kt = i(
|
|
2018
|
+
function({ className: t, ...r }, e) {
|
|
1489
2019
|
return /* @__PURE__ */ n(
|
|
1490
|
-
|
|
2020
|
+
I.Description,
|
|
1491
2021
|
{
|
|
1492
|
-
ref:
|
|
2022
|
+
ref: e,
|
|
1493
2023
|
className: s(
|
|
1494
2024
|
"gryt-dialog-description text-sm text-gryt-muted",
|
|
1495
|
-
|
|
2025
|
+
t
|
|
1496
2026
|
),
|
|
1497
2027
|
...r
|
|
1498
2028
|
}
|
|
1499
2029
|
);
|
|
1500
2030
|
}
|
|
1501
|
-
),
|
|
1502
|
-
function({ className:
|
|
2031
|
+
), Jt = i(
|
|
2032
|
+
function({ className: t, ...r }, e) {
|
|
1503
2033
|
return /* @__PURE__ */ n(
|
|
1504
2034
|
"div",
|
|
1505
2035
|
{
|
|
1506
|
-
ref:
|
|
2036
|
+
ref: e,
|
|
1507
2037
|
className: s(
|
|
1508
2038
|
"gryt-dialog-footer flex justify-end gap-3",
|
|
1509
|
-
|
|
2039
|
+
t
|
|
1510
2040
|
),
|
|
1511
2041
|
...r
|
|
1512
2042
|
}
|
|
1513
2043
|
);
|
|
1514
2044
|
}
|
|
1515
|
-
),
|
|
1516
|
-
Root:
|
|
1517
|
-
Trigger:
|
|
1518
|
-
Portal:
|
|
1519
|
-
Close:
|
|
1520
|
-
Backdrop:
|
|
1521
|
-
Popup:
|
|
1522
|
-
Title:
|
|
1523
|
-
Description:
|
|
1524
|
-
Footer:
|
|
1525
|
-
},
|
|
2045
|
+
), Mn = {
|
|
2046
|
+
Root: I.Root,
|
|
2047
|
+
Trigger: I.Trigger,
|
|
2048
|
+
Portal: I.Portal,
|
|
2049
|
+
Close: I.Close,
|
|
2050
|
+
Backdrop: Yt,
|
|
2051
|
+
Popup: Xt,
|
|
2052
|
+
Title: Wt,
|
|
2053
|
+
Description: Kt,
|
|
2054
|
+
Footer: Jt
|
|
2055
|
+
}, Qt = () => () => {
|
|
1526
2056
|
};
|
|
1527
|
-
function
|
|
1528
|
-
const
|
|
1529
|
-
(
|
|
1530
|
-
if (typeof window > "u" || !window.matchMedia) return
|
|
1531
|
-
const
|
|
1532
|
-
return
|
|
2057
|
+
function Zt(a) {
|
|
2058
|
+
const t = de(
|
|
2059
|
+
(e) => {
|
|
2060
|
+
if (typeof window > "u" || !window.matchMedia) return Qt();
|
|
2061
|
+
const o = window.matchMedia(a);
|
|
2062
|
+
return o.addEventListener("change", e), () => o.removeEventListener("change", e);
|
|
1533
2063
|
},
|
|
1534
|
-
[
|
|
1535
|
-
), r =
|
|
1536
|
-
return
|
|
2064
|
+
[a]
|
|
2065
|
+
), r = de(() => typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia(a).matches, [a]);
|
|
2066
|
+
return Je(t, r, () => !1);
|
|
1537
2067
|
}
|
|
1538
|
-
const
|
|
2068
|
+
const qt = {
|
|
1539
2069
|
left: "left",
|
|
1540
2070
|
right: "right",
|
|
1541
2071
|
top: "up",
|
|
1542
2072
|
bottom: "down"
|
|
1543
|
-
},
|
|
2073
|
+
}, te = Qe("right"), er = {
|
|
1544
2074
|
left: "items-stretch justify-start",
|
|
1545
2075
|
right: "items-stretch justify-end",
|
|
1546
2076
|
top: "items-start justify-center",
|
|
1547
2077
|
bottom: "items-end justify-center"
|
|
1548
|
-
},
|
|
2078
|
+
}, tr = {
|
|
1549
2079
|
left: "rounded-r-(--gryt-radius-xl)",
|
|
1550
2080
|
right: "rounded-l-(--gryt-radius-xl)",
|
|
1551
2081
|
top: "rounded-b-(--gryt-radius-xl)",
|
|
1552
2082
|
bottom: "rounded-t-(--gryt-radius-xl)"
|
|
1553
|
-
},
|
|
2083
|
+
}, rr = {
|
|
1554
2084
|
left: [
|
|
1555
2085
|
"h-full w-[calc(20rem+var(--gryt-drawer-bleed))] max-w-[calc(85vw+var(--gryt-drawer-bleed))]",
|
|
1556
2086
|
"-ml-(--gryt-drawer-bleed) border-r py-5 pr-5 pl-[calc(1.25rem+var(--gryt-drawer-bleed))]",
|
|
@@ -1580,40 +2110,40 @@ const Xe = {
|
|
|
1580
2110
|
"data-ending-style:[transform:translateY(calc(100%-var(--gryt-drawer-bleed)))]"
|
|
1581
2111
|
].join(" ")
|
|
1582
2112
|
};
|
|
1583
|
-
function
|
|
1584
|
-
side:
|
|
1585
|
-
sheetOnMobile:
|
|
2113
|
+
function ar({
|
|
2114
|
+
side: a = "right",
|
|
2115
|
+
sheetOnMobile: t = !0,
|
|
1586
2116
|
children: r,
|
|
1587
|
-
...
|
|
2117
|
+
...e
|
|
1588
2118
|
}) {
|
|
1589
|
-
const
|
|
1590
|
-
return /* @__PURE__ */ n(
|
|
2119
|
+
const o = Zt("(max-width: 767px)"), c = t && o ? "bottom" : a;
|
|
2120
|
+
return /* @__PURE__ */ n(te.Provider, { value: c, children: /* @__PURE__ */ n(k.Root, { swipeDirection: qt[c], ...e, children: r }) });
|
|
1591
2121
|
}
|
|
1592
|
-
const
|
|
1593
|
-
function({ className:
|
|
1594
|
-
const
|
|
2122
|
+
const nr = i(
|
|
2123
|
+
function({ className: t, ...r }, e) {
|
|
2124
|
+
const o = ue(te);
|
|
1595
2125
|
return /* @__PURE__ */ n(
|
|
1596
2126
|
k.Viewport,
|
|
1597
2127
|
{
|
|
1598
|
-
ref:
|
|
2128
|
+
ref: e,
|
|
1599
2129
|
className: s(
|
|
1600
2130
|
// z-50 matters: the popup is no longer positioned itself, so the
|
|
1601
2131
|
// viewport is what has to sit above the page. Without it a sticky
|
|
1602
2132
|
// site header renders over the panel.
|
|
1603
2133
|
"gryt-drawer-viewport fixed inset-0 z-50 flex",
|
|
1604
|
-
|
|
1605
|
-
|
|
2134
|
+
er[o],
|
|
2135
|
+
t
|
|
1606
2136
|
),
|
|
1607
2137
|
...r
|
|
1608
2138
|
}
|
|
1609
2139
|
);
|
|
1610
2140
|
}
|
|
1611
|
-
),
|
|
1612
|
-
const
|
|
2141
|
+
), or = i(function({ className: t, ...r }, e) {
|
|
2142
|
+
const o = ue(te);
|
|
1613
2143
|
return /* @__PURE__ */ n(
|
|
1614
2144
|
k.Popup,
|
|
1615
2145
|
{
|
|
1616
|
-
ref:
|
|
2146
|
+
ref: e,
|
|
1617
2147
|
className: s(
|
|
1618
2148
|
"gryt-drawer flex flex-col gap-4 border-gryt-border bg-gryt-surface text-gryt-text",
|
|
1619
2149
|
"overflow-y-auto overscroll-contain outline-none",
|
|
@@ -1622,18 +2152,18 @@ const Ze = c(
|
|
|
1622
2152
|
// duration here turns a drag into a drag plus lag.
|
|
1623
2153
|
"data-swiping:duration-0 data-swiping:select-none",
|
|
1624
2154
|
"motion-reduce:transition-none",
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
2155
|
+
rr[o],
|
|
2156
|
+
tr[o],
|
|
2157
|
+
t
|
|
1628
2158
|
),
|
|
1629
2159
|
...r
|
|
1630
2160
|
}
|
|
1631
2161
|
);
|
|
1632
|
-
}),
|
|
2162
|
+
}), sr = i(function({ className: t, ...r }, e) {
|
|
1633
2163
|
return /* @__PURE__ */ n(
|
|
1634
2164
|
k.Backdrop,
|
|
1635
2165
|
{
|
|
1636
|
-
ref:
|
|
2166
|
+
ref: e,
|
|
1637
2167
|
className: s(
|
|
1638
2168
|
"gryt-drawer-backdrop fixed inset-0 z-50 min-h-dvh bg-black/60",
|
|
1639
2169
|
"backdrop-blur-(--gryt-backdrop-blur)",
|
|
@@ -1644,69 +2174,69 @@ const Ze = c(
|
|
|
1644
2174
|
"data-swiping:duration-0",
|
|
1645
2175
|
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
1646
2176
|
"motion-reduce:transition-none",
|
|
1647
|
-
|
|
2177
|
+
t
|
|
1648
2178
|
),
|
|
1649
2179
|
...r
|
|
1650
2180
|
}
|
|
1651
2181
|
);
|
|
1652
2182
|
});
|
|
1653
|
-
function
|
|
1654
|
-
const
|
|
1655
|
-
return
|
|
2183
|
+
function cr({ className: a }) {
|
|
2184
|
+
const t = ue(te);
|
|
2185
|
+
return t !== "bottom" && t !== "top" ? null : /* @__PURE__ */ n(
|
|
1656
2186
|
"div",
|
|
1657
2187
|
{
|
|
1658
2188
|
"aria-hidden": !0,
|
|
1659
2189
|
className: s(
|
|
1660
2190
|
"gryt-drawer-grabber mx-auto h-1.5 w-10 shrink-0 rounded-(--gryt-radius-full) bg-gryt-border",
|
|
1661
|
-
|
|
1662
|
-
|
|
2191
|
+
t === "top" && "order-last",
|
|
2192
|
+
a
|
|
1663
2193
|
)
|
|
1664
2194
|
}
|
|
1665
2195
|
);
|
|
1666
2196
|
}
|
|
1667
|
-
const
|
|
1668
|
-
Root:
|
|
2197
|
+
const Hn = {
|
|
2198
|
+
Root: ar,
|
|
1669
2199
|
Trigger: k.Trigger,
|
|
1670
2200
|
Portal: k.Portal,
|
|
1671
|
-
Backdrop:
|
|
1672
|
-
Viewport:
|
|
1673
|
-
Popup:
|
|
2201
|
+
Backdrop: sr,
|
|
2202
|
+
Viewport: nr,
|
|
2203
|
+
Popup: or,
|
|
1674
2204
|
Content: k.Content,
|
|
1675
|
-
Grabber:
|
|
2205
|
+
Grabber: cr,
|
|
1676
2206
|
Close: k.Close,
|
|
1677
2207
|
Title: k.Title,
|
|
1678
2208
|
Description: k.Description
|
|
1679
|
-
},
|
|
1680
|
-
function({ className:
|
|
2209
|
+
}, ir = i(
|
|
2210
|
+
function({ className: t, sideOffset: r = 8, ...e }, o) {
|
|
1681
2211
|
return /* @__PURE__ */ n(
|
|
1682
|
-
|
|
2212
|
+
j.Positioner,
|
|
1683
2213
|
{
|
|
1684
|
-
ref:
|
|
2214
|
+
ref: o,
|
|
1685
2215
|
sideOffset: r,
|
|
1686
|
-
className: s("gryt-menu-positioner outline-none",
|
|
1687
|
-
...
|
|
2216
|
+
className: s("gryt-menu-positioner outline-none", t),
|
|
2217
|
+
...e
|
|
1688
2218
|
}
|
|
1689
2219
|
);
|
|
1690
2220
|
}
|
|
1691
|
-
),
|
|
2221
|
+
), dr = i(function({ className: t, ...r }, e) {
|
|
1692
2222
|
return /* @__PURE__ */ n(
|
|
1693
|
-
|
|
2223
|
+
j.Popup,
|
|
1694
2224
|
{
|
|
1695
|
-
ref:
|
|
2225
|
+
ref: e,
|
|
1696
2226
|
className: s(
|
|
1697
2227
|
"gryt-menu min-w-44 p-1 outline-none",
|
|
1698
2228
|
E,
|
|
1699
|
-
|
|
1700
|
-
|
|
2229
|
+
H,
|
|
2230
|
+
t
|
|
1701
2231
|
),
|
|
1702
2232
|
...r
|
|
1703
2233
|
}
|
|
1704
2234
|
);
|
|
1705
|
-
}),
|
|
2235
|
+
}), lr = i(function({ className: t, ...r }, e) {
|
|
1706
2236
|
return /* @__PURE__ */ n(
|
|
1707
|
-
|
|
2237
|
+
j.Item,
|
|
1708
2238
|
{
|
|
1709
|
-
ref:
|
|
2239
|
+
ref: e,
|
|
1710
2240
|
className: s(
|
|
1711
2241
|
"gryt-menu-item flex cursor-default items-center gap-2 rounded-(--gryt-radius-md)",
|
|
1712
2242
|
"px-3 py-2 text-sm text-gryt-text outline-none select-none",
|
|
@@ -1714,49 +2244,49 @@ const Sn = {
|
|
|
1714
2244
|
// attribute, so arrow keys and the mouse land on identical styling.
|
|
1715
2245
|
"data-highlighted:bg-gryt-surface-raised",
|
|
1716
2246
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
1717
|
-
|
|
2247
|
+
t
|
|
1718
2248
|
),
|
|
1719
2249
|
...r
|
|
1720
2250
|
}
|
|
1721
2251
|
);
|
|
1722
|
-
}),
|
|
2252
|
+
}), ur = i(function({ className: t, ...r }, e) {
|
|
1723
2253
|
return /* @__PURE__ */ n(
|
|
1724
|
-
|
|
2254
|
+
j.Separator,
|
|
1725
2255
|
{
|
|
1726
|
-
ref:
|
|
1727
|
-
className: s("gryt-menu-separator my-1 h-px bg-gryt-border",
|
|
2256
|
+
ref: e,
|
|
2257
|
+
className: s("gryt-menu-separator my-1 h-px bg-gryt-border", t),
|
|
1728
2258
|
...r
|
|
1729
2259
|
}
|
|
1730
2260
|
);
|
|
1731
|
-
}),
|
|
1732
|
-
Root:
|
|
1733
|
-
Trigger:
|
|
1734
|
-
Portal:
|
|
1735
|
-
Positioner:
|
|
1736
|
-
Popup:
|
|
1737
|
-
Item:
|
|
1738
|
-
Separator:
|
|
1739
|
-
},
|
|
2261
|
+
}), ie = {
|
|
2262
|
+
Root: j.Root,
|
|
2263
|
+
Trigger: j.Trigger,
|
|
2264
|
+
Portal: j.Portal,
|
|
2265
|
+
Positioner: ir,
|
|
2266
|
+
Popup: dr,
|
|
2267
|
+
Item: lr,
|
|
2268
|
+
Separator: ur
|
|
2269
|
+
}, gr = i(function({ className: t, ...r }, e) {
|
|
1740
2270
|
return /* @__PURE__ */ n(
|
|
1741
2271
|
Z.Root,
|
|
1742
2272
|
{
|
|
1743
|
-
ref:
|
|
2273
|
+
ref: e,
|
|
1744
2274
|
className: s(
|
|
1745
2275
|
"gryt-tabs",
|
|
1746
2276
|
// Vertical puts the rail and the panel side by side. min-w-0 on the
|
|
1747
2277
|
// panel does the rest; without the flex here the panel lands under the
|
|
1748
2278
|
// rail and the layout reads as a very tall accordion.
|
|
1749
2279
|
"data-[orientation=vertical]:flex data-[orientation=vertical]:items-stretch",
|
|
1750
|
-
|
|
2280
|
+
t
|
|
1751
2281
|
),
|
|
1752
2282
|
...r
|
|
1753
2283
|
}
|
|
1754
2284
|
);
|
|
1755
|
-
}),
|
|
2285
|
+
}), fr = i(function({ className: t, ...r }, e) {
|
|
1756
2286
|
return /* @__PURE__ */ n(
|
|
1757
2287
|
Z.List,
|
|
1758
2288
|
{
|
|
1759
|
-
ref:
|
|
2289
|
+
ref: e,
|
|
1760
2290
|
className: s(
|
|
1761
2291
|
"gryt-tabs-list relative inline-flex items-center gap-1 rounded-(--gryt-radius-full) bg-gryt-surface-raised p-1",
|
|
1762
2292
|
// A rail, not a pill: rows are full width and the corner radius drops
|
|
@@ -1764,16 +2294,16 @@ const Sn = {
|
|
|
1764
2294
|
"data-[orientation=vertical]:flex data-[orientation=vertical]:shrink-0",
|
|
1765
2295
|
"data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch",
|
|
1766
2296
|
"data-[orientation=vertical]:rounded-(--gryt-radius-lg)",
|
|
1767
|
-
|
|
2297
|
+
t
|
|
1768
2298
|
),
|
|
1769
2299
|
...r
|
|
1770
2300
|
}
|
|
1771
2301
|
);
|
|
1772
|
-
}),
|
|
2302
|
+
}), yr = i(function({ className: t, ...r }, e) {
|
|
1773
2303
|
return /* @__PURE__ */ n(
|
|
1774
2304
|
Z.Tab,
|
|
1775
2305
|
{
|
|
1776
|
-
ref:
|
|
2306
|
+
ref: e,
|
|
1777
2307
|
className: s(
|
|
1778
2308
|
"gryt-tab inline-flex min-h-8 items-center justify-center whitespace-nowrap",
|
|
1779
2309
|
"rounded-(--gryt-radius-full) border-0 bg-transparent px-4 py-1.5",
|
|
@@ -1789,17 +2319,17 @@ const Sn = {
|
|
|
1789
2319
|
"data-[orientation=vertical]:gap-2.5 data-[orientation=vertical]:px-3",
|
|
1790
2320
|
"data-[orientation=vertical]:rounded-(--gryt-radius-md)",
|
|
1791
2321
|
x,
|
|
1792
|
-
|
|
2322
|
+
t
|
|
1793
2323
|
),
|
|
1794
2324
|
...r
|
|
1795
2325
|
}
|
|
1796
2326
|
);
|
|
1797
|
-
}),
|
|
1798
|
-
function({ className:
|
|
2327
|
+
}), mr = i(
|
|
2328
|
+
function({ className: t, ...r }, e) {
|
|
1799
2329
|
return /* @__PURE__ */ n(
|
|
1800
2330
|
Z.Indicator,
|
|
1801
2331
|
{
|
|
1802
|
-
ref:
|
|
2332
|
+
ref: e,
|
|
1803
2333
|
renderBeforeHydration: !0,
|
|
1804
2334
|
className: s(
|
|
1805
2335
|
"gryt-tabs-indicator absolute top-1 left-0 z-0 h-[calc(100%-0.5rem)]",
|
|
@@ -1815,57 +2345,57 @@ const Sn = {
|
|
|
1815
2345
|
"[[data-orientation=vertical]_&]:translate-y-(--active-tab-top)",
|
|
1816
2346
|
"[[data-orientation=vertical]_&]:rounded-(--gryt-radius-md)",
|
|
1817
2347
|
"[[data-orientation=vertical]_&]:transition-[translate,height]",
|
|
1818
|
-
|
|
2348
|
+
t
|
|
1819
2349
|
),
|
|
1820
2350
|
...r
|
|
1821
2351
|
}
|
|
1822
2352
|
);
|
|
1823
2353
|
}
|
|
1824
|
-
),
|
|
2354
|
+
), br = i(function({ className: t, ...r }, e) {
|
|
1825
2355
|
return /* @__PURE__ */ n(
|
|
1826
2356
|
Z.Panel,
|
|
1827
2357
|
{
|
|
1828
|
-
ref:
|
|
2358
|
+
ref: e,
|
|
1829
2359
|
className: s(
|
|
1830
2360
|
"gryt-tabs-panel pt-3 text-sm text-gryt-text",
|
|
1831
2361
|
// Beside the rail rather than under it, and allowed to shrink so long
|
|
1832
2362
|
// content wraps instead of pushing the rail off screen.
|
|
1833
2363
|
"data-[orientation=vertical]:min-w-0 data-[orientation=vertical]:flex-1",
|
|
1834
2364
|
"data-[orientation=vertical]:pt-0 data-[orientation=vertical]:pl-4",
|
|
1835
|
-
|
|
2365
|
+
t
|
|
1836
2366
|
),
|
|
1837
2367
|
...r
|
|
1838
2368
|
}
|
|
1839
2369
|
);
|
|
1840
|
-
}),
|
|
2370
|
+
}), Dn = Object.assign(gr, { List: fr, Tab: yr, Panel: br, Indicator: mr }), pr = i(function({ className: t, ...r }, e) {
|
|
1841
2371
|
return /* @__PURE__ */ n(
|
|
1842
2372
|
K.Root,
|
|
1843
2373
|
{
|
|
1844
|
-
ref:
|
|
2374
|
+
ref: e,
|
|
1845
2375
|
className: s(
|
|
1846
2376
|
"gryt-accordion flex w-full flex-col gap-2 rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface p-2",
|
|
1847
|
-
|
|
2377
|
+
t
|
|
1848
2378
|
),
|
|
1849
2379
|
...r
|
|
1850
2380
|
}
|
|
1851
2381
|
);
|
|
1852
|
-
}),
|
|
1853
|
-
function({ className:
|
|
2382
|
+
}), hr = i(
|
|
2383
|
+
function({ className: t, ...r }, e) {
|
|
1854
2384
|
return /* @__PURE__ */ n(
|
|
1855
2385
|
K.Item,
|
|
1856
2386
|
{
|
|
1857
|
-
ref:
|
|
1858
|
-
className: s("gryt-accordion-item",
|
|
2387
|
+
ref: e,
|
|
2388
|
+
className: s("gryt-accordion-item", t),
|
|
1859
2389
|
...r
|
|
1860
2390
|
}
|
|
1861
2391
|
);
|
|
1862
2392
|
}
|
|
1863
|
-
),
|
|
1864
|
-
function({ children:
|
|
1865
|
-
return /* @__PURE__ */ n(K.Header, { className: "gryt-accordion-header m-0", children: /* @__PURE__ */
|
|
2393
|
+
), xr = i(
|
|
2394
|
+
function({ children: t, className: r, expandIcon: e, ...o }, c) {
|
|
2395
|
+
return /* @__PURE__ */ n(K.Header, { className: "gryt-accordion-header m-0", children: /* @__PURE__ */ m(
|
|
1866
2396
|
K.Trigger,
|
|
1867
2397
|
{
|
|
1868
|
-
ref:
|
|
2398
|
+
ref: c,
|
|
1869
2399
|
className: s(
|
|
1870
2400
|
"gryt-accordion-trigger flex w-full items-center justify-between gap-3",
|
|
1871
2401
|
"rounded-(--gryt-radius-lg) border-0 bg-transparent px-3 py-2.5",
|
|
@@ -1874,26 +2404,26 @@ const Sn = {
|
|
|
1874
2404
|
x,
|
|
1875
2405
|
r
|
|
1876
2406
|
),
|
|
1877
|
-
...
|
|
2407
|
+
...o,
|
|
1878
2408
|
children: [
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
2409
|
+
t,
|
|
2410
|
+
e === void 0 ? /* @__PURE__ */ n(
|
|
2411
|
+
at,
|
|
1882
2412
|
{
|
|
1883
2413
|
size: 16,
|
|
1884
2414
|
className: "shrink-0 transition-transform duration-(--gryt-dur-spring) ease-spring data-panel-open:rotate-180 motion-reduce:transition-none"
|
|
1885
2415
|
}
|
|
1886
|
-
) :
|
|
2416
|
+
) : e
|
|
1887
2417
|
]
|
|
1888
2418
|
}
|
|
1889
2419
|
) });
|
|
1890
2420
|
}
|
|
1891
|
-
),
|
|
1892
|
-
function({ children:
|
|
2421
|
+
), wr = i(
|
|
2422
|
+
function({ children: t, className: r, ...e }, o) {
|
|
1893
2423
|
return /* @__PURE__ */ n(
|
|
1894
2424
|
K.Panel,
|
|
1895
2425
|
{
|
|
1896
|
-
ref:
|
|
2426
|
+
ref: o,
|
|
1897
2427
|
className: s(
|
|
1898
2428
|
"gryt-accordion-panel overflow-hidden text-sm text-gryt-muted",
|
|
1899
2429
|
// Base UI measures the panel and exposes the height as a variable,
|
|
@@ -1903,123 +2433,123 @@ const Sn = {
|
|
|
1903
2433
|
"motion-reduce:transition-none",
|
|
1904
2434
|
r
|
|
1905
2435
|
),
|
|
1906
|
-
...
|
|
1907
|
-
children: /* @__PURE__ */ n("div", { className: "px-3 pt-1 pb-3", children:
|
|
2436
|
+
...e,
|
|
2437
|
+
children: /* @__PURE__ */ n("div", { className: "px-3 pt-1 pb-3", children: t })
|
|
1908
2438
|
}
|
|
1909
2439
|
);
|
|
1910
2440
|
}
|
|
1911
|
-
),
|
|
1912
|
-
function({ className:
|
|
2441
|
+
), Gn = Object.assign(pr, { Item: hr, Trigger: xr, Panel: wr }), vr = i(
|
|
2442
|
+
function({ className: t, sideOffset: r = 2, ...e }, o) {
|
|
1913
2443
|
return /* @__PURE__ */ n(
|
|
1914
|
-
|
|
2444
|
+
A.Positioner,
|
|
1915
2445
|
{
|
|
1916
|
-
ref:
|
|
2446
|
+
ref: o,
|
|
1917
2447
|
sideOffset: r,
|
|
1918
|
-
className: s("gryt-context-menu-positioner outline-none",
|
|
1919
|
-
...
|
|
2448
|
+
className: s("gryt-context-menu-positioner outline-none", t),
|
|
2449
|
+
...e
|
|
1920
2450
|
}
|
|
1921
2451
|
);
|
|
1922
2452
|
}
|
|
1923
|
-
),
|
|
1924
|
-
Root:
|
|
1925
|
-
Trigger:
|
|
1926
|
-
Portal:
|
|
1927
|
-
Positioner:
|
|
1928
|
-
Popup:
|
|
1929
|
-
Item:
|
|
1930
|
-
Separator:
|
|
1931
|
-
Group:
|
|
1932
|
-
GroupLabel:
|
|
1933
|
-
SubmenuRoot:
|
|
1934
|
-
SubmenuTrigger:
|
|
1935
|
-
},
|
|
1936
|
-
function({ className:
|
|
2453
|
+
), jn = {
|
|
2454
|
+
Root: A.Root,
|
|
2455
|
+
Trigger: A.Trigger,
|
|
2456
|
+
Portal: A.Portal,
|
|
2457
|
+
Positioner: vr,
|
|
2458
|
+
Popup: ie.Popup,
|
|
2459
|
+
Item: ie.Item,
|
|
2460
|
+
Separator: ie.Separator,
|
|
2461
|
+
Group: A.Group,
|
|
2462
|
+
GroupLabel: A.GroupLabel,
|
|
2463
|
+
SubmenuRoot: A.SubmenuRoot,
|
|
2464
|
+
SubmenuTrigger: A.SubmenuTrigger
|
|
2465
|
+
}, Nr = i(
|
|
2466
|
+
function({ className: t, sideOffset: r = 8, ...e }, o) {
|
|
1937
2467
|
return /* @__PURE__ */ n(
|
|
1938
|
-
|
|
2468
|
+
R.Positioner,
|
|
1939
2469
|
{
|
|
1940
|
-
ref:
|
|
2470
|
+
ref: o,
|
|
1941
2471
|
sideOffset: r,
|
|
1942
|
-
className: s("gryt-popover-positioner outline-none",
|
|
1943
|
-
...
|
|
2472
|
+
className: s("gryt-popover-positioner outline-none", t),
|
|
2473
|
+
...e
|
|
1944
2474
|
}
|
|
1945
2475
|
);
|
|
1946
2476
|
}
|
|
1947
|
-
),
|
|
1948
|
-
function({ className:
|
|
2477
|
+
), Pr = i(
|
|
2478
|
+
function({ className: t, ...r }, e) {
|
|
1949
2479
|
return /* @__PURE__ */ n(
|
|
1950
|
-
|
|
2480
|
+
R.Popup,
|
|
1951
2481
|
{
|
|
1952
|
-
ref:
|
|
2482
|
+
ref: e,
|
|
1953
2483
|
className: s(
|
|
1954
2484
|
"gryt-popover max-w-[min(20rem,calc(100vw-2rem))] p-4 outline-none",
|
|
1955
2485
|
E,
|
|
1956
|
-
|
|
1957
|
-
|
|
2486
|
+
H,
|
|
2487
|
+
t
|
|
1958
2488
|
),
|
|
1959
2489
|
...r
|
|
1960
2490
|
}
|
|
1961
2491
|
);
|
|
1962
2492
|
}
|
|
1963
|
-
),
|
|
2493
|
+
), kr = i(function({ className: t, ...r }, e) {
|
|
1964
2494
|
return /* @__PURE__ */ n(
|
|
1965
|
-
|
|
2495
|
+
R.Title,
|
|
1966
2496
|
{
|
|
1967
|
-
ref:
|
|
2497
|
+
ref: e,
|
|
1968
2498
|
className: s(
|
|
1969
2499
|
"gryt-popover-title text-sm font-semibold text-gryt-text",
|
|
1970
|
-
|
|
2500
|
+
t
|
|
1971
2501
|
),
|
|
1972
2502
|
...r
|
|
1973
2503
|
}
|
|
1974
2504
|
);
|
|
1975
|
-
}),
|
|
2505
|
+
}), Tr = i(function({ className: t, ...r }, e) {
|
|
1976
2506
|
return /* @__PURE__ */ n(
|
|
1977
|
-
|
|
2507
|
+
R.Description,
|
|
1978
2508
|
{
|
|
1979
|
-
ref:
|
|
2509
|
+
ref: e,
|
|
1980
2510
|
className: s(
|
|
1981
2511
|
"gryt-popover-description mt-1 text-sm leading-6 text-gryt-muted",
|
|
1982
|
-
|
|
2512
|
+
t
|
|
1983
2513
|
),
|
|
1984
2514
|
...r
|
|
1985
2515
|
}
|
|
1986
2516
|
);
|
|
1987
|
-
}),
|
|
1988
|
-
Root:
|
|
1989
|
-
Trigger:
|
|
1990
|
-
Portal:
|
|
1991
|
-
Positioner:
|
|
1992
|
-
Popup:
|
|
1993
|
-
Title:
|
|
1994
|
-
Description:
|
|
1995
|
-
Close:
|
|
1996
|
-
Arrow:
|
|
1997
|
-
},
|
|
2517
|
+
}), En = {
|
|
2518
|
+
Root: R.Root,
|
|
2519
|
+
Trigger: R.Trigger,
|
|
2520
|
+
Portal: R.Portal,
|
|
2521
|
+
Positioner: Nr,
|
|
2522
|
+
Popup: Pr,
|
|
2523
|
+
Title: kr,
|
|
2524
|
+
Description: Tr,
|
|
2525
|
+
Close: R.Close,
|
|
2526
|
+
Arrow: R.Arrow
|
|
2527
|
+
}, Lr = {
|
|
1998
2528
|
neutral: "border-white/8 bg-gryt-surface",
|
|
1999
2529
|
info: "border-gryt-secondary-6 bg-gryt-secondary-2",
|
|
2000
2530
|
success: "border-gryt-success-6 bg-gryt-success-2",
|
|
2001
2531
|
warning: "border-gryt-warning-6 bg-gryt-warning-2",
|
|
2002
2532
|
danger: "border-gryt-danger-6 bg-gryt-danger-2"
|
|
2003
|
-
},
|
|
2004
|
-
function({ className:
|
|
2533
|
+
}, Sr = i(
|
|
2534
|
+
function({ className: t, ...r }, e) {
|
|
2005
2535
|
return /* @__PURE__ */ n(
|
|
2006
|
-
|
|
2536
|
+
C.Viewport,
|
|
2007
2537
|
{
|
|
2008
|
-
ref:
|
|
2538
|
+
ref: e,
|
|
2009
2539
|
className: s(
|
|
2010
2540
|
"gryt-toast-viewport fixed right-4 bottom-4 z-50 flex w-[min(22rem,calc(100vw-2rem))]",
|
|
2011
2541
|
"flex-col gap-2 outline-none",
|
|
2012
|
-
|
|
2542
|
+
t
|
|
2013
2543
|
),
|
|
2014
2544
|
...r
|
|
2015
2545
|
}
|
|
2016
2546
|
);
|
|
2017
2547
|
}
|
|
2018
|
-
),
|
|
2548
|
+
), Rr = i(function({ className: t, severity: r = "neutral", ...e }, o) {
|
|
2019
2549
|
return /* @__PURE__ */ n(
|
|
2020
|
-
|
|
2550
|
+
C.Root,
|
|
2021
2551
|
{
|
|
2022
|
-
ref:
|
|
2552
|
+
ref: o,
|
|
2023
2553
|
className: s(
|
|
2024
2554
|
"gryt-toast relative flex flex-col p-3 pr-9",
|
|
2025
2555
|
// Not popupSurface. That border is --gryt-border, a solid slate line
|
|
@@ -2028,116 +2558,116 @@ const Sn = {
|
|
|
2028
2558
|
// white hairline separates it from the page without drawing a box
|
|
2029
2559
|
// around it.
|
|
2030
2560
|
"rounded-(--gryt-radius-xl) border text-gryt-text",
|
|
2031
|
-
|
|
2561
|
+
Lr[r],
|
|
2032
2562
|
// Swiping is a pointer gesture, so the toast follows the finger
|
|
2033
2563
|
// through Base UI's swipe variables before it animates out.
|
|
2034
2564
|
"transition-[opacity,transform] duration-(--gryt-dur-spring) ease-spring",
|
|
2035
2565
|
"data-starting-style:translate-y-2 data-starting-style:opacity-0",
|
|
2036
2566
|
"data-ending-style:translate-y-2 data-ending-style:opacity-0",
|
|
2037
2567
|
"motion-reduce:transition-none",
|
|
2038
|
-
|
|
2568
|
+
t
|
|
2039
2569
|
),
|
|
2040
|
-
...
|
|
2570
|
+
...e
|
|
2041
2571
|
}
|
|
2042
2572
|
);
|
|
2043
|
-
}),
|
|
2573
|
+
}), $r = i(function({ className: t, ...r }, e) {
|
|
2044
2574
|
return /* @__PURE__ */ n(
|
|
2045
|
-
|
|
2575
|
+
C.Title,
|
|
2046
2576
|
{
|
|
2047
|
-
ref:
|
|
2577
|
+
ref: e,
|
|
2048
2578
|
className: s(
|
|
2049
2579
|
"gryt-toast-title text-sm font-semibold text-gryt-text",
|
|
2050
|
-
|
|
2580
|
+
t
|
|
2051
2581
|
),
|
|
2052
2582
|
...r
|
|
2053
2583
|
}
|
|
2054
2584
|
);
|
|
2055
|
-
}),
|
|
2585
|
+
}), Cr = i(function({ className: t, ...r }, e) {
|
|
2056
2586
|
return /* @__PURE__ */ n(
|
|
2057
|
-
|
|
2587
|
+
C.Description,
|
|
2058
2588
|
{
|
|
2059
|
-
ref:
|
|
2589
|
+
ref: e,
|
|
2060
2590
|
className: s(
|
|
2061
2591
|
"gryt-toast-description mt-0.5 text-sm leading-6 text-gryt-muted",
|
|
2062
|
-
|
|
2592
|
+
t
|
|
2063
2593
|
),
|
|
2064
2594
|
...r
|
|
2065
2595
|
}
|
|
2066
2596
|
);
|
|
2067
|
-
}),
|
|
2597
|
+
}), Ar = i(function({ className: t, children: r, ...e }, o) {
|
|
2068
2598
|
return /* @__PURE__ */ n(
|
|
2069
|
-
|
|
2599
|
+
C.Close,
|
|
2070
2600
|
{
|
|
2071
|
-
ref:
|
|
2601
|
+
ref: o,
|
|
2072
2602
|
"aria-label": "Close",
|
|
2073
2603
|
className: s(
|
|
2074
2604
|
"gryt-toast-close absolute top-2.5 right-2.5 inline-flex h-6 w-6 items-center justify-center",
|
|
2075
2605
|
"rounded-(--gryt-radius-full) border-0 bg-transparent text-gryt-muted",
|
|
2076
2606
|
"transition-colors hover:bg-white/8 hover:text-gryt-text motion-reduce:transition-none",
|
|
2077
2607
|
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",
|
|
2078
|
-
|
|
2608
|
+
t
|
|
2079
2609
|
),
|
|
2080
|
-
...
|
|
2081
|
-
children: r ?? /* @__PURE__ */ n($
|
|
2610
|
+
...e,
|
|
2611
|
+
children: r ?? /* @__PURE__ */ n($e, { size: 14, weight: "bold" })
|
|
2082
2612
|
}
|
|
2083
2613
|
);
|
|
2084
|
-
}),
|
|
2614
|
+
}), Ir = i(function({ className: t, ...r }, e) {
|
|
2085
2615
|
return /* @__PURE__ */ n(
|
|
2086
|
-
|
|
2616
|
+
C.Action,
|
|
2087
2617
|
{
|
|
2088
|
-
ref:
|
|
2618
|
+
ref: e,
|
|
2089
2619
|
className: s(
|
|
2090
2620
|
"gryt-toast-action mt-2 self-start rounded-(--gryt-radius-full) border-0",
|
|
2091
2621
|
"bg-gryt-accent px-3 py-1.5 text-sm font-medium text-gryt-on-accent",
|
|
2092
2622
|
"transition-[scale] duration-(--gryt-dur-spring) ease-spring",
|
|
2093
2623
|
"motion-safe:hover:scale-[1.04] motion-safe:active:scale-[0.96]",
|
|
2094
2624
|
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",
|
|
2095
|
-
|
|
2625
|
+
t
|
|
2096
2626
|
),
|
|
2097
2627
|
...r
|
|
2098
2628
|
}
|
|
2099
2629
|
);
|
|
2100
|
-
}),
|
|
2101
|
-
Provider:
|
|
2102
|
-
Portal:
|
|
2103
|
-
Viewport:
|
|
2104
|
-
Root:
|
|
2105
|
-
Title:
|
|
2106
|
-
Description:
|
|
2107
|
-
Close:
|
|
2108
|
-
Action:
|
|
2109
|
-
},
|
|
2110
|
-
function({ className:
|
|
2630
|
+
}), zn = {
|
|
2631
|
+
Provider: C.Provider,
|
|
2632
|
+
Portal: C.Portal,
|
|
2633
|
+
Viewport: Sr,
|
|
2634
|
+
Root: Rr,
|
|
2635
|
+
Title: $r,
|
|
2636
|
+
Description: Cr,
|
|
2637
|
+
Close: Ar,
|
|
2638
|
+
Action: Ir
|
|
2639
|
+
}, Bn = C.useToastManager, Mr = i(
|
|
2640
|
+
function({ className: t, ...r }, e) {
|
|
2111
2641
|
return /* @__PURE__ */ n(
|
|
2112
2642
|
_.Root,
|
|
2113
2643
|
{
|
|
2114
|
-
ref:
|
|
2115
|
-
className: s("gryt-scroll-area relative",
|
|
2644
|
+
ref: e,
|
|
2645
|
+
className: s("gryt-scroll-area relative", t),
|
|
2116
2646
|
...r
|
|
2117
2647
|
}
|
|
2118
2648
|
);
|
|
2119
2649
|
}
|
|
2120
|
-
),
|
|
2121
|
-
function({ className:
|
|
2650
|
+
), Hr = i(
|
|
2651
|
+
function({ className: t, ...r }, e) {
|
|
2122
2652
|
return /* @__PURE__ */ n(
|
|
2123
2653
|
_.Viewport,
|
|
2124
2654
|
{
|
|
2125
|
-
ref:
|
|
2655
|
+
ref: e,
|
|
2126
2656
|
className: s(
|
|
2127
2657
|
"gryt-scroll-area-viewport h-full w-full overscroll-contain",
|
|
2128
2658
|
"focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-gryt-accent-light",
|
|
2129
|
-
|
|
2659
|
+
t
|
|
2130
2660
|
),
|
|
2131
2661
|
...r
|
|
2132
2662
|
}
|
|
2133
2663
|
);
|
|
2134
2664
|
}
|
|
2135
|
-
),
|
|
2136
|
-
function({ className:
|
|
2665
|
+
), Dr = i(
|
|
2666
|
+
function({ className: t, orientation: r, ...e }, o) {
|
|
2137
2667
|
return /* @__PURE__ */ n(
|
|
2138
2668
|
_.Scrollbar,
|
|
2139
2669
|
{
|
|
2140
|
-
ref:
|
|
2670
|
+
ref: o,
|
|
2141
2671
|
orientation: r,
|
|
2142
2672
|
className: s(
|
|
2143
2673
|
"gryt-scroll-area-scrollbar flex touch-none p-0.5 select-none",
|
|
@@ -2147,20 +2677,20 @@ const Sn = {
|
|
|
2147
2677
|
"data-hovering:opacity-100 data-scrolling:opacity-100",
|
|
2148
2678
|
"motion-reduce:transition-none",
|
|
2149
2679
|
r === "horizontal" ? "h-2 flex-col" : "w-2",
|
|
2150
|
-
|
|
2680
|
+
t
|
|
2151
2681
|
),
|
|
2152
|
-
...
|
|
2682
|
+
...e,
|
|
2153
2683
|
children: /* @__PURE__ */ n(_.Thumb, { className: "flex-1 rounded-(--gryt-radius-full) bg-gryt-border transition-colors hover:bg-gryt-muted motion-reduce:transition-none" })
|
|
2154
2684
|
}
|
|
2155
2685
|
);
|
|
2156
2686
|
}
|
|
2157
|
-
),
|
|
2158
|
-
Root:
|
|
2159
|
-
Viewport:
|
|
2160
|
-
Scrollbar:
|
|
2687
|
+
), Fn = {
|
|
2688
|
+
Root: Mr,
|
|
2689
|
+
Viewport: Hr,
|
|
2690
|
+
Scrollbar: Dr,
|
|
2161
2691
|
Content: _.Content,
|
|
2162
2692
|
Corner: _.Corner
|
|
2163
|
-
},
|
|
2693
|
+
}, Gr = {
|
|
2164
2694
|
primary: [
|
|
2165
2695
|
"text-gryt-muted hover:not-data-disabled:bg-white/8",
|
|
2166
2696
|
"data-pressed:bg-gryt-accent data-pressed:text-gryt-on-accent",
|
|
@@ -2181,17 +2711,17 @@ const Sn = {
|
|
|
2181
2711
|
"data-pressed:bg-gryt-danger data-pressed:text-gryt-on-danger",
|
|
2182
2712
|
"data-pressed:hover:not-data-disabled:bg-gryt-danger"
|
|
2183
2713
|
].join(" ")
|
|
2184
|
-
},
|
|
2714
|
+
}, jr = {
|
|
2185
2715
|
xsmall: "h-8 min-w-8 px-2 text-xs",
|
|
2186
2716
|
small: "h-9 min-w-9 px-2.5 text-sm",
|
|
2187
2717
|
medium: "h-10 min-w-10 px-3 text-sm",
|
|
2188
2718
|
large: "h-12 min-w-12 px-4 text-base"
|
|
2189
|
-
},
|
|
2190
|
-
function({ className:
|
|
2719
|
+
}, _n = i(
|
|
2720
|
+
function({ className: t, size: r = "medium", tone: e = "primary", ...o }, c) {
|
|
2191
2721
|
return /* @__PURE__ */ n(
|
|
2192
|
-
|
|
2722
|
+
it,
|
|
2193
2723
|
{
|
|
2194
|
-
ref:
|
|
2724
|
+
ref: c,
|
|
2195
2725
|
className: s(
|
|
2196
2726
|
"gryt-toggle",
|
|
2197
2727
|
"inline-flex shrink-0 items-center justify-center gap-2 border-0 bg-transparent",
|
|
@@ -2201,62 +2731,62 @@ const Sn = {
|
|
|
2201
2731
|
"motion-safe:hover:not-data-disabled:scale-[1.06]",
|
|
2202
2732
|
"motion-safe:active:not-data-disabled:scale-[0.94]",
|
|
2203
2733
|
x,
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2734
|
+
V,
|
|
2735
|
+
jr[r],
|
|
2736
|
+
Gr[e],
|
|
2737
|
+
t
|
|
2208
2738
|
),
|
|
2209
|
-
...
|
|
2739
|
+
...o
|
|
2210
2740
|
}
|
|
2211
2741
|
);
|
|
2212
2742
|
}
|
|
2213
|
-
),
|
|
2214
|
-
function({ className:
|
|
2743
|
+
), Vn = i(
|
|
2744
|
+
function({ className: t, ...r }, e) {
|
|
2215
2745
|
return /* @__PURE__ */ n(
|
|
2216
|
-
|
|
2746
|
+
dt,
|
|
2217
2747
|
{
|
|
2218
|
-
ref:
|
|
2748
|
+
ref: e,
|
|
2219
2749
|
className: s(
|
|
2220
2750
|
"gryt-toggle-group inline-flex items-center gap-1",
|
|
2221
2751
|
"rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface p-1",
|
|
2222
|
-
|
|
2752
|
+
t
|
|
2223
2753
|
),
|
|
2224
2754
|
...r
|
|
2225
2755
|
}
|
|
2226
2756
|
);
|
|
2227
2757
|
}
|
|
2228
|
-
),
|
|
2758
|
+
), Er = {
|
|
2229
2759
|
primary: "bg-gryt-accent",
|
|
2230
2760
|
success: "bg-gryt-success",
|
|
2231
2761
|
warning: "bg-gryt-warning",
|
|
2232
2762
|
danger: "bg-gryt-danger"
|
|
2233
2763
|
};
|
|
2234
|
-
function
|
|
2235
|
-
className:
|
|
2236
|
-
value:
|
|
2764
|
+
function Un({
|
|
2765
|
+
className: a,
|
|
2766
|
+
value: t,
|
|
2237
2767
|
label: r,
|
|
2238
|
-
showValue:
|
|
2239
|
-
tone:
|
|
2240
|
-
...
|
|
2768
|
+
showValue: e = !1,
|
|
2769
|
+
tone: o = "primary",
|
|
2770
|
+
...c
|
|
2241
2771
|
}) {
|
|
2242
|
-
return /* @__PURE__ */
|
|
2243
|
-
|
|
2772
|
+
return /* @__PURE__ */ m(
|
|
2773
|
+
O.Root,
|
|
2244
2774
|
{
|
|
2245
|
-
value:
|
|
2246
|
-
className: s("gryt-meter flex w-full flex-col gap-1.5",
|
|
2247
|
-
...
|
|
2775
|
+
value: t,
|
|
2776
|
+
className: s("gryt-meter flex w-full flex-col gap-1.5", a),
|
|
2777
|
+
...c,
|
|
2248
2778
|
children: [
|
|
2249
|
-
(r ||
|
|
2250
|
-
r ? /* @__PURE__ */ n(
|
|
2251
|
-
|
|
2779
|
+
(r || e) && /* @__PURE__ */ m("div", { className: "flex items-baseline justify-between gap-2", children: [
|
|
2780
|
+
r ? /* @__PURE__ */ n(O.Label, { className: "text-sm text-gryt-muted", children: r }) : /* @__PURE__ */ n("span", {}),
|
|
2781
|
+
e && /* @__PURE__ */ n(O.Value, { className: "font-mono text-xs text-gryt-muted tabular-nums" })
|
|
2252
2782
|
] }),
|
|
2253
|
-
/* @__PURE__ */ n(
|
|
2254
|
-
|
|
2783
|
+
/* @__PURE__ */ n(O.Track, { className: "h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised", children: /* @__PURE__ */ n(
|
|
2784
|
+
O.Indicator,
|
|
2255
2785
|
{
|
|
2256
2786
|
className: s(
|
|
2257
2787
|
"h-full rounded-(--gryt-radius-full)",
|
|
2258
2788
|
"transition-[width] duration-120 ease-out motion-reduce:transition-none",
|
|
2259
|
-
|
|
2789
|
+
Er[o]
|
|
2260
2790
|
)
|
|
2261
2791
|
}
|
|
2262
2792
|
) })
|
|
@@ -2264,12 +2794,12 @@ function En({
|
|
|
2264
2794
|
}
|
|
2265
2795
|
);
|
|
2266
2796
|
}
|
|
2267
|
-
const
|
|
2268
|
-
function({ className:
|
|
2797
|
+
const zr = i(
|
|
2798
|
+
function({ className: t, ...r }, e) {
|
|
2269
2799
|
return /* @__PURE__ */ n(
|
|
2270
|
-
|
|
2800
|
+
M.Popup,
|
|
2271
2801
|
{
|
|
2272
|
-
ref:
|
|
2802
|
+
ref: e,
|
|
2273
2803
|
className: s(
|
|
2274
2804
|
"gryt-alert-dialog fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
2275
2805
|
"flex w-96 max-w-[calc(100vw-3rem)] flex-col gap-4",
|
|
@@ -2278,61 +2808,61 @@ const Ar = c(
|
|
|
2278
2808
|
"transition-[opacity,scale] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
|
|
2279
2809
|
"data-starting-style:scale-[0.98] data-starting-style:opacity-0",
|
|
2280
2810
|
"data-ending-style:scale-[0.98] data-ending-style:opacity-0",
|
|
2281
|
-
|
|
2811
|
+
t
|
|
2282
2812
|
),
|
|
2283
2813
|
...r
|
|
2284
2814
|
}
|
|
2285
2815
|
);
|
|
2286
2816
|
}
|
|
2287
|
-
),
|
|
2817
|
+
), Br = i(function({ className: t, ...r }, e) {
|
|
2288
2818
|
return /* @__PURE__ */ n(
|
|
2289
|
-
|
|
2819
|
+
M.Backdrop,
|
|
2290
2820
|
{
|
|
2291
|
-
ref:
|
|
2821
|
+
ref: e,
|
|
2292
2822
|
className: s(
|
|
2293
2823
|
"gryt-alert-dialog-backdrop fixed inset-0 z-50 min-h-dvh bg-black/60",
|
|
2294
2824
|
"backdrop-blur-(--gryt-backdrop-blur)",
|
|
2295
2825
|
"transition-opacity duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
|
|
2296
2826
|
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
2297
|
-
|
|
2827
|
+
t
|
|
2298
2828
|
),
|
|
2299
2829
|
...r
|
|
2300
2830
|
}
|
|
2301
2831
|
);
|
|
2302
|
-
}),
|
|
2832
|
+
}), Fr = i(function({ className: t, ...r }, e) {
|
|
2303
2833
|
return /* @__PURE__ */ n(
|
|
2304
|
-
|
|
2834
|
+
M.Title,
|
|
2305
2835
|
{
|
|
2306
|
-
ref:
|
|
2836
|
+
ref: e,
|
|
2307
2837
|
className: s(
|
|
2308
2838
|
"gryt-alert-dialog-title text-lg font-semibold text-gryt-text",
|
|
2309
|
-
|
|
2839
|
+
t
|
|
2310
2840
|
),
|
|
2311
2841
|
...r
|
|
2312
2842
|
}
|
|
2313
2843
|
);
|
|
2314
|
-
}),
|
|
2844
|
+
}), _r = i(function({ className: t, ...r }, e) {
|
|
2315
2845
|
return /* @__PURE__ */ n(
|
|
2316
|
-
|
|
2846
|
+
M.Description,
|
|
2317
2847
|
{
|
|
2318
|
-
ref:
|
|
2848
|
+
ref: e,
|
|
2319
2849
|
className: s(
|
|
2320
2850
|
"gryt-alert-dialog-description text-sm leading-6 text-gryt-muted",
|
|
2321
|
-
|
|
2851
|
+
t
|
|
2322
2852
|
),
|
|
2323
2853
|
...r
|
|
2324
2854
|
}
|
|
2325
2855
|
);
|
|
2326
|
-
}),
|
|
2327
|
-
Root:
|
|
2328
|
-
Trigger:
|
|
2329
|
-
Portal:
|
|
2330
|
-
Backdrop:
|
|
2331
|
-
Popup:
|
|
2332
|
-
Title:
|
|
2333
|
-
Description:
|
|
2334
|
-
Close:
|
|
2335
|
-
},
|
|
2856
|
+
}), On = {
|
|
2857
|
+
Root: M.Root,
|
|
2858
|
+
Trigger: M.Trigger,
|
|
2859
|
+
Portal: M.Portal,
|
|
2860
|
+
Backdrop: Br,
|
|
2861
|
+
Popup: zr,
|
|
2862
|
+
Title: Fr,
|
|
2863
|
+
Description: _r,
|
|
2864
|
+
Close: M.Close
|
|
2865
|
+
}, Oe = [
|
|
2336
2866
|
"flex cursor-default items-center gap-2 rounded-(--gryt-radius-md)",
|
|
2337
2867
|
"px-3 py-2 text-sm text-gryt-text outline-none select-none",
|
|
2338
2868
|
// Base UI drives keyboard and pointer highlight through one attribute, so
|
|
@@ -2340,194 +2870,194 @@ const Ar = c(
|
|
|
2340
2870
|
"data-highlighted:bg-gryt-surface-raised",
|
|
2341
2871
|
"data-selected:text-gryt-accent-11",
|
|
2342
2872
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50"
|
|
2343
|
-
].join(" "),
|
|
2344
|
-
|
|
2345
|
-
|
|
2873
|
+
].join(" "), Ye = [
|
|
2874
|
+
Fe,
|
|
2875
|
+
_e.medium,
|
|
2346
2876
|
"border-gryt-border",
|
|
2347
2877
|
x
|
|
2348
|
-
].join(" "),
|
|
2878
|
+
].join(" "), Vr = i(function({ className: t, ...r }, e) {
|
|
2349
2879
|
return /* @__PURE__ */ n(
|
|
2350
|
-
|
|
2880
|
+
p.Input,
|
|
2351
2881
|
{
|
|
2352
|
-
ref:
|
|
2353
|
-
className: s("gryt-combobox-input",
|
|
2882
|
+
ref: e,
|
|
2883
|
+
className: s("gryt-combobox-input", Ye, t),
|
|
2354
2884
|
...r
|
|
2355
2885
|
}
|
|
2356
2886
|
);
|
|
2357
|
-
}),
|
|
2887
|
+
}), Ur = i(function({ className: t, sideOffset: r = 6, ...e }, o) {
|
|
2358
2888
|
return /* @__PURE__ */ n(
|
|
2359
|
-
|
|
2889
|
+
p.Positioner,
|
|
2360
2890
|
{
|
|
2361
|
-
ref:
|
|
2891
|
+
ref: o,
|
|
2362
2892
|
sideOffset: r,
|
|
2363
|
-
className: s("gryt-combobox-positioner outline-none",
|
|
2364
|
-
...
|
|
2893
|
+
className: s("gryt-combobox-positioner outline-none", t),
|
|
2894
|
+
...e
|
|
2365
2895
|
}
|
|
2366
2896
|
);
|
|
2367
|
-
}),
|
|
2368
|
-
function({ className:
|
|
2897
|
+
}), Or = i(
|
|
2898
|
+
function({ className: t, ...r }, e) {
|
|
2369
2899
|
return /* @__PURE__ */ n(
|
|
2370
|
-
|
|
2900
|
+
p.Popup,
|
|
2371
2901
|
{
|
|
2372
|
-
ref:
|
|
2902
|
+
ref: e,
|
|
2373
2903
|
className: s(
|
|
2374
2904
|
"gryt-combobox max-h-64 w-(--anchor-width) overflow-y-auto overscroll-contain p-1 outline-none",
|
|
2375
2905
|
E,
|
|
2376
|
-
|
|
2377
|
-
|
|
2906
|
+
H,
|
|
2907
|
+
t
|
|
2378
2908
|
),
|
|
2379
2909
|
...r
|
|
2380
2910
|
}
|
|
2381
2911
|
);
|
|
2382
2912
|
}
|
|
2383
|
-
),
|
|
2913
|
+
), Yr = i(function({ className: t, ...r }, e) {
|
|
2384
2914
|
return /* @__PURE__ */ n(
|
|
2385
|
-
|
|
2915
|
+
p.Item,
|
|
2386
2916
|
{
|
|
2387
|
-
ref:
|
|
2388
|
-
className: s("gryt-combobox-item",
|
|
2917
|
+
ref: e,
|
|
2918
|
+
className: s("gryt-combobox-item", Oe, t),
|
|
2389
2919
|
...r
|
|
2390
2920
|
}
|
|
2391
2921
|
);
|
|
2392
|
-
}),
|
|
2922
|
+
}), Xr = i(function({ className: t, ...r }, e) {
|
|
2393
2923
|
return /* @__PURE__ */ n(
|
|
2394
|
-
|
|
2924
|
+
p.Empty,
|
|
2395
2925
|
{
|
|
2396
|
-
ref:
|
|
2926
|
+
ref: e,
|
|
2397
2927
|
className: s(
|
|
2398
2928
|
"gryt-combobox-empty px-3 py-2 text-sm text-gryt-muted",
|
|
2399
|
-
|
|
2929
|
+
t
|
|
2400
2930
|
),
|
|
2401
2931
|
...r
|
|
2402
2932
|
}
|
|
2403
2933
|
);
|
|
2404
|
-
}),
|
|
2405
|
-
Root:
|
|
2406
|
-
Input:
|
|
2407
|
-
InputGroup:
|
|
2408
|
-
Trigger:
|
|
2409
|
-
Icon:
|
|
2410
|
-
Clear:
|
|
2411
|
-
Value:
|
|
2412
|
-
Chips:
|
|
2413
|
-
Chip:
|
|
2414
|
-
ChipRemove:
|
|
2415
|
-
Portal:
|
|
2416
|
-
Positioner:
|
|
2417
|
-
Popup:
|
|
2418
|
-
List:
|
|
2419
|
-
Item:
|
|
2420
|
-
ItemIndicator:
|
|
2421
|
-
Group:
|
|
2422
|
-
GroupLabel:
|
|
2423
|
-
Empty:
|
|
2424
|
-
Separator:
|
|
2425
|
-
},
|
|
2934
|
+
}), Yn = {
|
|
2935
|
+
Root: p.Root,
|
|
2936
|
+
Input: Vr,
|
|
2937
|
+
InputGroup: p.InputGroup,
|
|
2938
|
+
Trigger: p.Trigger,
|
|
2939
|
+
Icon: p.Icon,
|
|
2940
|
+
Clear: p.Clear,
|
|
2941
|
+
Value: p.Value,
|
|
2942
|
+
Chips: p.Chips,
|
|
2943
|
+
Chip: p.Chip,
|
|
2944
|
+
ChipRemove: p.ChipRemove,
|
|
2945
|
+
Portal: p.Portal,
|
|
2946
|
+
Positioner: Ur,
|
|
2947
|
+
Popup: Or,
|
|
2948
|
+
List: p.List,
|
|
2949
|
+
Item: Yr,
|
|
2950
|
+
ItemIndicator: p.ItemIndicator,
|
|
2951
|
+
Group: p.Group,
|
|
2952
|
+
GroupLabel: p.GroupLabel,
|
|
2953
|
+
Empty: Xr,
|
|
2954
|
+
Separator: p.Separator
|
|
2955
|
+
}, Wr = i(function({ className: t, ...r }, e) {
|
|
2426
2956
|
return /* @__PURE__ */ n(
|
|
2427
2957
|
h.Input,
|
|
2428
2958
|
{
|
|
2429
|
-
ref:
|
|
2430
|
-
className: s("gryt-autocomplete-input",
|
|
2959
|
+
ref: e,
|
|
2960
|
+
className: s("gryt-autocomplete-input", Ye, t),
|
|
2431
2961
|
...r
|
|
2432
2962
|
}
|
|
2433
2963
|
);
|
|
2434
|
-
}),
|
|
2964
|
+
}), Kr = i(function({ className: t, sideOffset: r = 6, ...e }, o) {
|
|
2435
2965
|
return /* @__PURE__ */ n(
|
|
2436
2966
|
h.Positioner,
|
|
2437
2967
|
{
|
|
2438
|
-
ref:
|
|
2968
|
+
ref: o,
|
|
2439
2969
|
sideOffset: r,
|
|
2440
|
-
className: s("gryt-autocomplete-positioner outline-none",
|
|
2441
|
-
...
|
|
2970
|
+
className: s("gryt-autocomplete-positioner outline-none", t),
|
|
2971
|
+
...e
|
|
2442
2972
|
}
|
|
2443
2973
|
);
|
|
2444
|
-
}),
|
|
2974
|
+
}), Jr = i(function({ className: t, ...r }, e) {
|
|
2445
2975
|
return /* @__PURE__ */ n(
|
|
2446
2976
|
h.Popup,
|
|
2447
2977
|
{
|
|
2448
|
-
ref:
|
|
2978
|
+
ref: e,
|
|
2449
2979
|
className: s(
|
|
2450
2980
|
"gryt-autocomplete max-h-64 w-(--anchor-width) overflow-y-auto overscroll-contain p-1 outline-none",
|
|
2451
2981
|
E,
|
|
2452
|
-
|
|
2453
|
-
|
|
2982
|
+
H,
|
|
2983
|
+
t
|
|
2454
2984
|
),
|
|
2455
2985
|
...r
|
|
2456
2986
|
}
|
|
2457
2987
|
);
|
|
2458
|
-
}),
|
|
2988
|
+
}), Qr = i(function({ className: t, ...r }, e) {
|
|
2459
2989
|
return /* @__PURE__ */ n(
|
|
2460
2990
|
h.Item,
|
|
2461
2991
|
{
|
|
2462
|
-
ref:
|
|
2463
|
-
className: s("gryt-autocomplete-item",
|
|
2992
|
+
ref: e,
|
|
2993
|
+
className: s("gryt-autocomplete-item", Oe, t),
|
|
2464
2994
|
...r
|
|
2465
2995
|
}
|
|
2466
2996
|
);
|
|
2467
|
-
}),
|
|
2997
|
+
}), Zr = i(function({ className: t, ...r }, e) {
|
|
2468
2998
|
return /* @__PURE__ */ n(
|
|
2469
2999
|
h.Empty,
|
|
2470
3000
|
{
|
|
2471
|
-
ref:
|
|
3001
|
+
ref: e,
|
|
2472
3002
|
className: s(
|
|
2473
3003
|
"gryt-autocomplete-empty px-3 py-2 text-sm text-gryt-muted",
|
|
2474
|
-
|
|
3004
|
+
t
|
|
2475
3005
|
),
|
|
2476
3006
|
...r
|
|
2477
3007
|
}
|
|
2478
3008
|
);
|
|
2479
|
-
}),
|
|
3009
|
+
}), Xn = {
|
|
2480
3010
|
Root: h.Root,
|
|
2481
|
-
Input:
|
|
3011
|
+
Input: Wr,
|
|
2482
3012
|
InputGroup: h.InputGroup,
|
|
2483
3013
|
Trigger: h.Trigger,
|
|
2484
3014
|
Icon: h.Icon,
|
|
2485
3015
|
Clear: h.Clear,
|
|
2486
3016
|
Value: h.Value,
|
|
2487
3017
|
Portal: h.Portal,
|
|
2488
|
-
Positioner:
|
|
2489
|
-
Popup:
|
|
3018
|
+
Positioner: Kr,
|
|
3019
|
+
Popup: Jr,
|
|
2490
3020
|
List: h.List,
|
|
2491
|
-
Item:
|
|
3021
|
+
Item: Qr,
|
|
2492
3022
|
Group: h.Group,
|
|
2493
3023
|
GroupLabel: h.GroupLabel,
|
|
2494
|
-
Empty:
|
|
3024
|
+
Empty: Zr,
|
|
2495
3025
|
Separator: h.Separator
|
|
2496
|
-
},
|
|
2497
|
-
function({ className:
|
|
3026
|
+
}, Wn = i(
|
|
3027
|
+
function({ className: t, ...r }, e) {
|
|
2498
3028
|
return /* @__PURE__ */ n(
|
|
2499
|
-
|
|
3029
|
+
lt,
|
|
2500
3030
|
{
|
|
2501
|
-
ref:
|
|
2502
|
-
className: s("gryt-checkbox-group flex flex-col gap-2",
|
|
3031
|
+
ref: e,
|
|
3032
|
+
className: s("gryt-checkbox-group flex flex-col gap-2", t),
|
|
2503
3033
|
...r
|
|
2504
3034
|
}
|
|
2505
3035
|
);
|
|
2506
3036
|
}
|
|
2507
|
-
),
|
|
2508
|
-
function({ className:
|
|
3037
|
+
), qr = i(
|
|
3038
|
+
function({ className: t, ...r }, e) {
|
|
2509
3039
|
return /* @__PURE__ */ n(
|
|
2510
|
-
|
|
3040
|
+
ge.Trigger,
|
|
2511
3041
|
{
|
|
2512
|
-
ref:
|
|
3042
|
+
ref: e,
|
|
2513
3043
|
className: s(
|
|
2514
3044
|
"gryt-collapsible-trigger flex w-full items-center justify-between gap-2",
|
|
2515
3045
|
"rounded-(--gryt-radius-md) border-0 bg-transparent px-2 py-2 text-left",
|
|
2516
3046
|
"text-sm font-medium text-gryt-text select-none",
|
|
2517
3047
|
"transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none",
|
|
2518
3048
|
x,
|
|
2519
|
-
|
|
3049
|
+
t
|
|
2520
3050
|
),
|
|
2521
3051
|
...r
|
|
2522
3052
|
}
|
|
2523
3053
|
);
|
|
2524
3054
|
}
|
|
2525
|
-
),
|
|
2526
|
-
function({ className:
|
|
3055
|
+
), ea = i(
|
|
3056
|
+
function({ className: t, ...r }, e) {
|
|
2527
3057
|
return /* @__PURE__ */ n(
|
|
2528
|
-
|
|
3058
|
+
ge.Panel,
|
|
2529
3059
|
{
|
|
2530
|
-
ref:
|
|
3060
|
+
ref: e,
|
|
2531
3061
|
className: s(
|
|
2532
3062
|
"gryt-collapsible-panel overflow-hidden",
|
|
2533
3063
|
// Base UI measures the panel and exposes the height as a variable, so
|
|
@@ -2535,169 +3065,169 @@ const Ar = c(
|
|
|
2535
3065
|
"h-(--collapsible-panel-height) transition-[height] duration-(--gryt-dur-spring) ease-spring",
|
|
2536
3066
|
"data-starting-style:h-0 data-ending-style:h-0",
|
|
2537
3067
|
"motion-reduce:transition-none",
|
|
2538
|
-
|
|
3068
|
+
t
|
|
2539
3069
|
),
|
|
2540
3070
|
...r
|
|
2541
3071
|
}
|
|
2542
3072
|
);
|
|
2543
3073
|
}
|
|
2544
|
-
),
|
|
2545
|
-
Root:
|
|
2546
|
-
Trigger:
|
|
2547
|
-
Panel:
|
|
2548
|
-
},
|
|
3074
|
+
), Kn = {
|
|
3075
|
+
Root: ge.Root,
|
|
3076
|
+
Trigger: qr,
|
|
3077
|
+
Panel: ea
|
|
3078
|
+
}, Jn = i(function({ className: t, ...r }, e) {
|
|
2549
3079
|
return /* @__PURE__ */ n(
|
|
2550
|
-
|
|
3080
|
+
ut,
|
|
2551
3081
|
{
|
|
2552
|
-
ref:
|
|
2553
|
-
className: s("gryt-form flex flex-col gap-(--gryt-space-lg)",
|
|
3082
|
+
ref: e,
|
|
3083
|
+
className: s("gryt-form flex flex-col gap-(--gryt-space-lg)", t),
|
|
2554
3084
|
...r
|
|
2555
3085
|
}
|
|
2556
3086
|
);
|
|
2557
|
-
}),
|
|
2558
|
-
function({ className:
|
|
3087
|
+
}), ta = i(
|
|
3088
|
+
function({ className: t, ...r }, e) {
|
|
2559
3089
|
return /* @__PURE__ */ n(
|
|
2560
|
-
|
|
3090
|
+
Ae.Root,
|
|
2561
3091
|
{
|
|
2562
|
-
ref:
|
|
3092
|
+
ref: e,
|
|
2563
3093
|
className: s(
|
|
2564
3094
|
"gryt-fieldset flex min-w-0 flex-col gap-3 border-0 p-0",
|
|
2565
|
-
|
|
3095
|
+
t
|
|
2566
3096
|
),
|
|
2567
3097
|
...r
|
|
2568
3098
|
}
|
|
2569
3099
|
);
|
|
2570
3100
|
}
|
|
2571
|
-
),
|
|
3101
|
+
), ra = i(function({ className: t, ...r }, e) {
|
|
2572
3102
|
return /* @__PURE__ */ n(
|
|
2573
|
-
|
|
3103
|
+
Ae.Legend,
|
|
2574
3104
|
{
|
|
2575
|
-
ref:
|
|
3105
|
+
ref: e,
|
|
2576
3106
|
className: s(
|
|
2577
3107
|
"gryt-fieldset-legend text-sm font-semibold text-gryt-text",
|
|
2578
|
-
|
|
3108
|
+
t
|
|
2579
3109
|
),
|
|
2580
3110
|
...r
|
|
2581
3111
|
}
|
|
2582
3112
|
);
|
|
2583
|
-
}),
|
|
2584
|
-
function({ className:
|
|
3113
|
+
}), Qn = { Root: ta, Legend: ra }, Zn = i(
|
|
3114
|
+
function({ className: t, ...r }, e) {
|
|
2585
3115
|
return /* @__PURE__ */ n(
|
|
2586
|
-
|
|
3116
|
+
gt,
|
|
2587
3117
|
{
|
|
2588
|
-
ref:
|
|
3118
|
+
ref: e,
|
|
2589
3119
|
className: s(
|
|
2590
3120
|
"gryt-menubar flex items-center gap-1",
|
|
2591
3121
|
"rounded-(--gryt-radius-md) border border-gryt-border bg-gryt-surface p-1",
|
|
2592
|
-
|
|
3122
|
+
t
|
|
2593
3123
|
),
|
|
2594
3124
|
...r
|
|
2595
3125
|
}
|
|
2596
3126
|
);
|
|
2597
3127
|
}
|
|
2598
|
-
),
|
|
3128
|
+
), aa = i(function({ className: t, ...r }, e) {
|
|
2599
3129
|
return /* @__PURE__ */ n(
|
|
2600
3130
|
N.Trigger,
|
|
2601
3131
|
{
|
|
2602
|
-
ref:
|
|
3132
|
+
ref: e,
|
|
2603
3133
|
className: s(
|
|
2604
3134
|
"gryt-navigation-menu-trigger flex items-center gap-1.5 rounded-(--gryt-radius-md)",
|
|
2605
3135
|
"border-0 bg-transparent px-3 py-2 text-sm font-medium text-gryt-text select-none",
|
|
2606
3136
|
"transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none",
|
|
2607
3137
|
"data-popup-open:bg-gryt-surface-raised",
|
|
2608
3138
|
x,
|
|
2609
|
-
|
|
3139
|
+
t
|
|
2610
3140
|
),
|
|
2611
3141
|
...r
|
|
2612
3142
|
}
|
|
2613
3143
|
);
|
|
2614
|
-
}),
|
|
3144
|
+
}), na = i(function({ className: t, ...r }, e) {
|
|
2615
3145
|
return /* @__PURE__ */ n(
|
|
2616
3146
|
N.Popup,
|
|
2617
3147
|
{
|
|
2618
|
-
ref:
|
|
3148
|
+
ref: e,
|
|
2619
3149
|
className: s(
|
|
2620
3150
|
"gryt-navigation-menu-popup outline-none",
|
|
2621
3151
|
E,
|
|
2622
|
-
|
|
2623
|
-
|
|
3152
|
+
H,
|
|
3153
|
+
t
|
|
2624
3154
|
),
|
|
2625
3155
|
...r
|
|
2626
3156
|
}
|
|
2627
3157
|
);
|
|
2628
|
-
}),
|
|
3158
|
+
}), oa = i(function({ className: t, ...r }, e) {
|
|
2629
3159
|
return /* @__PURE__ */ n(
|
|
2630
3160
|
N.Viewport,
|
|
2631
3161
|
{
|
|
2632
|
-
ref:
|
|
3162
|
+
ref: e,
|
|
2633
3163
|
className: s(
|
|
2634
3164
|
"gryt-navigation-menu-viewport relative overflow-hidden",
|
|
2635
|
-
|
|
3165
|
+
t
|
|
2636
3166
|
),
|
|
2637
3167
|
...r
|
|
2638
3168
|
}
|
|
2639
3169
|
);
|
|
2640
|
-
}),
|
|
3170
|
+
}), sa = i(function({ className: t, ...r }, e) {
|
|
2641
3171
|
return /* @__PURE__ */ n(
|
|
2642
3172
|
N.Link,
|
|
2643
3173
|
{
|
|
2644
|
-
ref:
|
|
3174
|
+
ref: e,
|
|
2645
3175
|
className: s(
|
|
2646
3176
|
"gryt-navigation-menu-link block rounded-(--gryt-radius-md) px-3 py-2",
|
|
2647
3177
|
"text-sm text-gryt-text no-underline outline-none",
|
|
2648
3178
|
"transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none",
|
|
2649
3179
|
x,
|
|
2650
|
-
|
|
3180
|
+
t
|
|
2651
3181
|
),
|
|
2652
3182
|
...r
|
|
2653
3183
|
}
|
|
2654
3184
|
);
|
|
2655
|
-
}),
|
|
3185
|
+
}), qn = {
|
|
2656
3186
|
Root: N.Root,
|
|
2657
3187
|
List: N.List,
|
|
2658
3188
|
Item: N.Item,
|
|
2659
|
-
Trigger:
|
|
3189
|
+
Trigger: aa,
|
|
2660
3190
|
Content: N.Content,
|
|
2661
3191
|
Portal: N.Portal,
|
|
2662
3192
|
Positioner: N.Positioner,
|
|
2663
|
-
Viewport:
|
|
2664
|
-
Popup:
|
|
2665
|
-
Link:
|
|
3193
|
+
Viewport: oa,
|
|
3194
|
+
Popup: na,
|
|
3195
|
+
Link: sa,
|
|
2666
3196
|
Icon: N.Icon,
|
|
2667
3197
|
Arrow: N.Arrow
|
|
2668
|
-
},
|
|
2669
|
-
function({ className:
|
|
2670
|
-
return /* @__PURE__ */
|
|
2671
|
-
|
|
3198
|
+
}, Le = "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", eo = i(
|
|
3199
|
+
function({ className: t, label: r, scrubbable: e = !1, ...o }, c) {
|
|
3200
|
+
return /* @__PURE__ */ m(
|
|
3201
|
+
D.Root,
|
|
2672
3202
|
{
|
|
2673
|
-
ref:
|
|
2674
|
-
className: s("gryt-number-field flex flex-col gap-1.5",
|
|
2675
|
-
...
|
|
3203
|
+
ref: c,
|
|
3204
|
+
className: s("gryt-number-field flex flex-col gap-1.5", t),
|
|
3205
|
+
...o,
|
|
2676
3206
|
children: [
|
|
2677
|
-
r && (
|
|
3207
|
+
r && (e ? /* @__PURE__ */ m(D.ScrubArea, { className: "cursor-ew-resize text-sm text-gryt-muted select-none", children: [
|
|
2678
3208
|
r,
|
|
2679
|
-
/* @__PURE__ */ n(
|
|
3209
|
+
/* @__PURE__ */ n(D.ScrubAreaCursor, {})
|
|
2680
3210
|
] }) : /* @__PURE__ */ n("span", { className: "text-sm text-gryt-muted", children: r })),
|
|
2681
|
-
/* @__PURE__ */
|
|
2682
|
-
|
|
3211
|
+
/* @__PURE__ */ m(
|
|
3212
|
+
D.Group,
|
|
2683
3213
|
{
|
|
2684
3214
|
className: s(
|
|
2685
3215
|
"flex w-fit items-center overflow-hidden rounded-(--gryt-radius-full)",
|
|
2686
3216
|
"border border-gryt-border bg-gryt-surface-raised",
|
|
2687
3217
|
"focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-gryt-accent-light",
|
|
2688
|
-
|
|
3218
|
+
V
|
|
2689
3219
|
),
|
|
2690
3220
|
children: [
|
|
2691
3221
|
/* @__PURE__ */ n(
|
|
2692
|
-
|
|
3222
|
+
D.Decrement,
|
|
2693
3223
|
{
|
|
2694
3224
|
"aria-label": "Decrease",
|
|
2695
|
-
className: s(
|
|
2696
|
-
children: /* @__PURE__ */ n(
|
|
3225
|
+
className: s(Le, "rounded-l-(--gryt-radius-full)"),
|
|
3226
|
+
children: /* @__PURE__ */ n(nt, { size: 14, weight: "bold" })
|
|
2697
3227
|
}
|
|
2698
3228
|
),
|
|
2699
3229
|
/* @__PURE__ */ n(
|
|
2700
|
-
|
|
3230
|
+
D.Input,
|
|
2701
3231
|
{
|
|
2702
3232
|
className: s(
|
|
2703
3233
|
"w-16 border-0 bg-transparent px-1 py-2 text-center",
|
|
@@ -2707,11 +3237,11 @@ const Ar = c(
|
|
|
2707
3237
|
}
|
|
2708
3238
|
),
|
|
2709
3239
|
/* @__PURE__ */ n(
|
|
2710
|
-
|
|
3240
|
+
D.Increment,
|
|
2711
3241
|
{
|
|
2712
3242
|
"aria-label": "Increase",
|
|
2713
|
-
className: s(
|
|
2714
|
-
children: /* @__PURE__ */ n(
|
|
3243
|
+
className: s(Le, "rounded-r-(--gryt-radius-full)"),
|
|
3244
|
+
children: /* @__PURE__ */ n(ot, { size: 14, weight: "bold" })
|
|
2715
3245
|
}
|
|
2716
3246
|
)
|
|
2717
3247
|
]
|
|
@@ -2721,17 +3251,17 @@ const Ar = c(
|
|
|
2721
3251
|
}
|
|
2722
3252
|
);
|
|
2723
3253
|
}
|
|
2724
|
-
),
|
|
2725
|
-
function({ className:
|
|
3254
|
+
), to = i(
|
|
3255
|
+
function({ className: t, length: r = 6, ...e }, o) {
|
|
2726
3256
|
return /* @__PURE__ */ n(
|
|
2727
|
-
|
|
3257
|
+
ve.Root,
|
|
2728
3258
|
{
|
|
2729
|
-
ref:
|
|
3259
|
+
ref: o,
|
|
2730
3260
|
length: r,
|
|
2731
|
-
className: s("gryt-otp-field flex gap-2",
|
|
2732
|
-
...
|
|
2733
|
-
children: Array.from({ length: r }, (
|
|
2734
|
-
|
|
3261
|
+
className: s("gryt-otp-field flex gap-2", t),
|
|
3262
|
+
...e,
|
|
3263
|
+
children: Array.from({ length: r }, (c, d) => /* @__PURE__ */ n(
|
|
3264
|
+
ve.Input,
|
|
2735
3265
|
{
|
|
2736
3266
|
className: s(
|
|
2737
3267
|
"gryt-otp-input h-12 w-10 rounded-(--gryt-radius-md) text-center",
|
|
@@ -2742,156 +3272,158 @@ const Ar = c(
|
|
|
2742
3272
|
x
|
|
2743
3273
|
)
|
|
2744
3274
|
},
|
|
2745
|
-
|
|
3275
|
+
d
|
|
2746
3276
|
))
|
|
2747
3277
|
}
|
|
2748
3278
|
);
|
|
2749
3279
|
}
|
|
2750
|
-
),
|
|
2751
|
-
function({ className:
|
|
3280
|
+
), ca = i(
|
|
3281
|
+
function({ className: t, sideOffset: r = 8, ...e }, o) {
|
|
2752
3282
|
return /* @__PURE__ */ n(
|
|
2753
3283
|
z.Positioner,
|
|
2754
3284
|
{
|
|
2755
|
-
ref:
|
|
3285
|
+
ref: o,
|
|
2756
3286
|
sideOffset: r,
|
|
2757
|
-
className: s("gryt-preview-card-positioner outline-none",
|
|
2758
|
-
...
|
|
3287
|
+
className: s("gryt-preview-card-positioner outline-none", t),
|
|
3288
|
+
...e
|
|
2759
3289
|
}
|
|
2760
3290
|
);
|
|
2761
3291
|
}
|
|
2762
|
-
),
|
|
2763
|
-
function({ className:
|
|
3292
|
+
), ia = i(
|
|
3293
|
+
function({ className: t, ...r }, e) {
|
|
2764
3294
|
return /* @__PURE__ */ n(
|
|
2765
3295
|
z.Popup,
|
|
2766
3296
|
{
|
|
2767
|
-
ref:
|
|
3297
|
+
ref: e,
|
|
2768
3298
|
className: s(
|
|
2769
3299
|
"gryt-preview-card w-64 max-w-[calc(100vw-2rem)] p-4 outline-none",
|
|
2770
3300
|
E,
|
|
2771
|
-
|
|
2772
|
-
|
|
3301
|
+
H,
|
|
3302
|
+
t
|
|
2773
3303
|
),
|
|
2774
3304
|
...r
|
|
2775
3305
|
}
|
|
2776
3306
|
);
|
|
2777
3307
|
}
|
|
2778
|
-
),
|
|
3308
|
+
), ro = {
|
|
2779
3309
|
Root: z.Root,
|
|
2780
3310
|
Trigger: z.Trigger,
|
|
2781
3311
|
Portal: z.Portal,
|
|
2782
|
-
Positioner:
|
|
2783
|
-
Popup:
|
|
3312
|
+
Positioner: ca,
|
|
3313
|
+
Popup: ia,
|
|
2784
3314
|
Arrow: z.Arrow
|
|
2785
|
-
},
|
|
3315
|
+
}, da = i(function({ className: t, ...r }, e) {
|
|
2786
3316
|
return /* @__PURE__ */ n(
|
|
2787
3317
|
B.Root,
|
|
2788
3318
|
{
|
|
2789
|
-
ref:
|
|
3319
|
+
ref: e,
|
|
2790
3320
|
className: s(
|
|
2791
3321
|
"gryt-toolbar flex items-center gap-1",
|
|
2792
3322
|
"rounded-(--gryt-radius-full) border border-gryt-border bg-gryt-surface p-1",
|
|
2793
|
-
|
|
3323
|
+
t
|
|
2794
3324
|
),
|
|
2795
3325
|
...r
|
|
2796
3326
|
}
|
|
2797
3327
|
);
|
|
2798
|
-
}),
|
|
3328
|
+
}), la = i(function({ className: t, ...r }, e) {
|
|
2799
3329
|
return /* @__PURE__ */ n(
|
|
2800
3330
|
B.Separator,
|
|
2801
3331
|
{
|
|
2802
|
-
ref:
|
|
2803
|
-
className: s("gryt-toolbar-separator mx-1 h-6 w-px bg-gryt-border",
|
|
3332
|
+
ref: e,
|
|
3333
|
+
className: s("gryt-toolbar-separator mx-1 h-6 w-px bg-gryt-border", t),
|
|
2804
3334
|
...r
|
|
2805
3335
|
}
|
|
2806
3336
|
);
|
|
2807
|
-
}),
|
|
2808
|
-
Root:
|
|
3337
|
+
}), ao = {
|
|
3338
|
+
Root: da,
|
|
2809
3339
|
Group: B.Group,
|
|
2810
3340
|
Button: B.Button,
|
|
2811
3341
|
Link: B.Link,
|
|
2812
3342
|
Input: B.Input,
|
|
2813
|
-
Separator:
|
|
3343
|
+
Separator: la
|
|
2814
3344
|
};
|
|
2815
3345
|
export {
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
3346
|
+
Gn as Accordion,
|
|
3347
|
+
$n as Alert,
|
|
3348
|
+
On as AlertDialog,
|
|
3349
|
+
Xn as Autocomplete,
|
|
3350
|
+
Ft as Avatar,
|
|
3351
|
+
yn as Badge,
|
|
3352
|
+
Mt as Button,
|
|
3353
|
+
Tn as Card,
|
|
3354
|
+
Rn as CardActions,
|
|
3355
|
+
Sn as CardContent,
|
|
3356
|
+
Ln as CardHeader,
|
|
3357
|
+
bn as Checkbox,
|
|
3358
|
+
Wn as CheckboxGroup,
|
|
3359
|
+
mn as Chip,
|
|
3360
|
+
Kn as Collapsible,
|
|
3361
|
+
Yn as Combobox,
|
|
3362
|
+
gn as Composer,
|
|
3363
|
+
jn as ContextMenu,
|
|
3364
|
+
fn as ConversationItem,
|
|
3365
|
+
Mn as Dialog,
|
|
3366
|
+
kn as Divider,
|
|
3367
|
+
Hn as Drawer,
|
|
3368
|
+
Qn as Fieldset,
|
|
3369
|
+
Jn as Form,
|
|
3370
|
+
ee as GRYT_HUE_KEYS,
|
|
3371
|
+
je as GRYT_NEUTRAL_KEYS,
|
|
3372
|
+
fe as GRYT_RADIUS_KEYS,
|
|
3373
|
+
Pt as GRYT_THEME_NAME_MAX,
|
|
3374
|
+
rn as GrytProvider,
|
|
3375
|
+
cn as IconButton,
|
|
3376
|
+
ie as Menu,
|
|
3377
|
+
Zn as Menubar,
|
|
3378
|
+
ln as MessageBubble,
|
|
3379
|
+
Un as Meter,
|
|
3380
|
+
qn as NavigationMenu,
|
|
3381
|
+
eo as NumberField,
|
|
3382
|
+
to as OtpField,
|
|
3383
|
+
En as Popover,
|
|
3384
|
+
ro as PreviewCard,
|
|
3385
|
+
Cn as Progress,
|
|
3386
|
+
pn as Radio,
|
|
3387
|
+
hn as RadioGroup,
|
|
3388
|
+
Fn as ScrollArea,
|
|
3389
|
+
vn as Select,
|
|
3390
|
+
In as Skeleton,
|
|
3391
|
+
wn as Slider,
|
|
3392
|
+
An as Spinner,
|
|
3393
|
+
dn as Surface,
|
|
3394
|
+
xn as Switch,
|
|
3395
|
+
yr as Tab,
|
|
3396
|
+
Dn as Tabs,
|
|
3397
|
+
un as TextField,
|
|
3398
|
+
zn as Toast,
|
|
3399
|
+
_n as Toggle,
|
|
3400
|
+
Vn as ToggleGroup,
|
|
3401
|
+
ao as Toolbar,
|
|
3402
|
+
Nn as Tooltip,
|
|
3403
|
+
Pn as TooltipProvider,
|
|
3404
|
+
Ee as cloneGrytTheme,
|
|
2875
3405
|
s as cn,
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
3406
|
+
qa as contrast,
|
|
3407
|
+
vt as createGrytTheme,
|
|
3408
|
+
on as decodeGrytTheme,
|
|
3409
|
+
nn as encodeGrytTheme,
|
|
3410
|
+
en as grytAlphaScales,
|
|
3411
|
+
tn as grytAlphaScalesLight,
|
|
2882
3412
|
T as grytLightTokens,
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
3413
|
+
Ct as grytPresets,
|
|
3414
|
+
sn as grytPresetsById,
|
|
3415
|
+
Pe as grytScales,
|
|
3416
|
+
le as grytScalesLight,
|
|
3417
|
+
F as grytTheme,
|
|
3418
|
+
kt as grytThemeHues,
|
|
3419
|
+
an as grytThemeToOptions,
|
|
2888
3420
|
u as grytTokens,
|
|
2889
3421
|
J as hexToOklch,
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
3422
|
+
Be as isHexColor,
|
|
3423
|
+
me as normalizeHexColor,
|
|
3424
|
+
ye as normalizeThemeName,
|
|
3425
|
+
$ as oklchToHex,
|
|
3426
|
+
Zt as useMediaQuery,
|
|
3427
|
+
Bn as useToastManager
|
|
2896
3428
|
};
|
|
2897
3429
|
//# sourceMappingURL=index.js.map
|