@gryt/ui 0.17.1 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GrytProvider.d.ts +11 -1
- package/dist/GrytProvider.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +498 -485
- package/dist/index.js.map +1 -1
- package/dist/portalContainer.d.ts +29 -0
- package/dist/portalContainer.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as I } from "@base-ui/react/tooltip";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { clsx as
|
|
8
|
-
import { twMerge as
|
|
3
|
+
import { createContext as it, useContext as _, useRef as W, forwardRef as s, useCallback as K, useLayoutEffect as ht, useState as wt, useEffect as vt, useSyncExternalStore as Nt } from "react";
|
|
4
|
+
import { createGrytTheme as Pt } from "@gryt/theme";
|
|
5
|
+
import { GRYT_HUE_KEYS as da, GRYT_NEUTRAL_KEYS as ga, GRYT_RADIUS_KEYS as ua, GRYT_THEME_NAME_MAX as ya, alphaScale as ma, cloneGrytTheme as pa, contrast as ba, createGrytTheme as fa, decodeGrytTheme as xa, encodeGrytTheme as ha, grytAlphaScales as wa, grytAlphaScalesLight as va, grytLightTokens as Na, grytPresets as Pa, grytPresetsById as Ta, grytScales as ka, grytScalesLight as Ca, grytTheme as Sa, grytThemeHues as $a, grytThemeToOptions as Ra, grytTokens as Ia, hexToOklch as Aa, hexToRgb as Da, hueScale as Ma, hueScaleLight as Ga, isHexColor as La, neutralScale as ja, neutralScaleLight as Ba, normalizeHexColor as za, normalizeThemeName as Fa, oklchToHex as Ea, rgbToHex as Va } from "@gryt/theme";
|
|
6
|
+
import { Button as st } from "@base-ui/react/button";
|
|
7
|
+
import { clsx as Tt } from "clsx";
|
|
8
|
+
import { twMerge as kt } from "tailwind-merge";
|
|
9
9
|
import { Field as V } from "@base-ui/react/field";
|
|
10
|
-
import { PaperPlaneTilt as
|
|
11
|
-
import { Avatar as
|
|
12
|
-
import { Checkbox as
|
|
13
|
-
import { Radio as
|
|
14
|
-
import { RadioGroup as
|
|
15
|
-
import { Switch as
|
|
10
|
+
import { PaperPlaneTilt as Ct, X as ct, Check as lt, CaretUpDown as St, CircleNotch as $t, CaretDown as Rt, Minus as It, Plus as At } from "@phosphor-icons/react";
|
|
11
|
+
import { Avatar as O } from "@base-ui/react/avatar";
|
|
12
|
+
import { Checkbox as tt } from "@base-ui/react/checkbox";
|
|
13
|
+
import { Radio as et } from "@base-ui/react/radio";
|
|
14
|
+
import { RadioGroup as Dt } from "@base-ui/react/radio-group";
|
|
15
|
+
import { Switch as rt } from "@base-ui/react/switch";
|
|
16
16
|
import { Slider as B } from "@base-ui/react/slider";
|
|
17
17
|
import { Select as x } from "@base-ui/react/select";
|
|
18
|
-
import { Separator as
|
|
19
|
-
import { Progress as
|
|
18
|
+
import { Separator as Mt } from "@base-ui/react/separator";
|
|
19
|
+
import { Progress as X } from "@base-ui/react/progress";
|
|
20
20
|
import { Dialog as C } from "@base-ui/react/dialog";
|
|
21
21
|
import { Drawer as v } from "@base-ui/react/drawer";
|
|
22
22
|
import { Menu as A } from "@base-ui/react/menu";
|
|
@@ -26,49 +26,60 @@ import { ContextMenu as k } from "@base-ui/react/context-menu";
|
|
|
26
26
|
import { Popover as P } from "@base-ui/react/popover";
|
|
27
27
|
import { Toast as T } from "@base-ui/react/toast";
|
|
28
28
|
import { ScrollArea as L } from "@base-ui/react/scroll-area";
|
|
29
|
-
import { Toggle as
|
|
30
|
-
import { ToggleGroup as
|
|
29
|
+
import { Toggle as Gt } from "@base-ui/react/toggle";
|
|
30
|
+
import { ToggleGroup as Lt } from "@base-ui/react/toggle-group";
|
|
31
31
|
import { Meter as z } from "@base-ui/react/meter";
|
|
32
32
|
import { AlertDialog as S } from "@base-ui/react/alert-dialog";
|
|
33
33
|
import { Autocomplete as p } from "@base-ui/react/autocomplete";
|
|
34
|
-
import { Combobox as
|
|
35
|
-
import { CheckboxGroup as
|
|
36
|
-
import { Collapsible as
|
|
37
|
-
import { Form as
|
|
38
|
-
import { Fieldset as
|
|
39
|
-
import { Menubar as
|
|
34
|
+
import { Combobox as u } from "@base-ui/react/combobox";
|
|
35
|
+
import { CheckboxGroup as jt } from "@base-ui/react/checkbox-group";
|
|
36
|
+
import { Collapsible as Q } from "@base-ui/react/collapsible";
|
|
37
|
+
import { Form as Bt } from "@base-ui/react/form";
|
|
38
|
+
import { Fieldset as dt } from "@base-ui/react/fieldset";
|
|
39
|
+
import { Menubar as zt } from "@base-ui/react/menubar";
|
|
40
40
|
import { NavigationMenu as h } from "@base-ui/react/navigation-menu";
|
|
41
41
|
import { NumberField as R } from "@base-ui/react/number-field";
|
|
42
|
-
import { OTPField as
|
|
42
|
+
import { OTPField as ot } from "@base-ui/react/otp-field";
|
|
43
43
|
import { PreviewCard as M } from "@base-ui/react/preview-card";
|
|
44
44
|
import { Toolbar as G } from "@base-ui/react/toolbar";
|
|
45
|
-
|
|
45
|
+
const gt = it(void 0);
|
|
46
|
+
function ut() {
|
|
47
|
+
return _(gt);
|
|
48
|
+
}
|
|
49
|
+
function Ft(a) {
|
|
46
50
|
return Object.keys(a).some((t) => t.startsWith("--"));
|
|
47
51
|
}
|
|
48
|
-
function
|
|
52
|
+
function go({
|
|
49
53
|
children: a,
|
|
50
54
|
className: t,
|
|
51
55
|
theme: e,
|
|
52
|
-
tooltipDelay: r = 400
|
|
56
|
+
tooltipDelay: r = 400,
|
|
57
|
+
containOverlays: i = !1
|
|
53
58
|
}) {
|
|
54
|
-
const
|
|
55
|
-
return /* @__PURE__ */ o("div", { className: t, style:
|
|
59
|
+
const c = W(null), l = e === void 0 ? void 0 : Ft(e) ? e : Pt(e);
|
|
60
|
+
return /* @__PURE__ */ o("div", { className: t, style: l, ref: c, children: /* @__PURE__ */ o(
|
|
61
|
+
gt.Provider,
|
|
62
|
+
{
|
|
63
|
+
value: i ? c : void 0,
|
|
64
|
+
children: /* @__PURE__ */ o(I.Provider, { delay: r, children: a })
|
|
65
|
+
}
|
|
66
|
+
) });
|
|
56
67
|
}
|
|
57
68
|
function n(...a) {
|
|
58
|
-
return
|
|
69
|
+
return kt(Tt(a));
|
|
59
70
|
}
|
|
60
|
-
const
|
|
71
|
+
const Et = {
|
|
61
72
|
primary: "bg-gryt-accent text-gryt-on-accent hover:not-data-disabled:bg-gryt-accent-light data-disabled:bg-gryt-surface-raised data-disabled:text-gryt-muted",
|
|
62
73
|
secondary: "bg-gryt-secondary text-gryt-on-secondary hover:not-data-disabled:bg-gryt-secondary-light data-disabled:bg-gryt-surface-raised data-disabled:text-gryt-muted",
|
|
63
74
|
neutral: "bg-gryt-surface-raised text-gryt-text hover:not-data-disabled:bg-gryt-surface-hover data-disabled:text-gryt-muted",
|
|
64
75
|
danger: "bg-gryt-danger text-gryt-on-danger hover:not-data-disabled:bg-gryt-danger-light data-disabled:bg-gryt-surface-raised data-disabled:text-gryt-muted",
|
|
65
76
|
ghost: "bg-transparent text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"
|
|
66
|
-
},
|
|
77
|
+
}, Vt = {
|
|
67
78
|
xsmall: "min-h-8 px-3 text-xs",
|
|
68
79
|
small: "min-h-9 px-4 text-sm",
|
|
69
80
|
medium: "min-h-10 px-5 text-sm",
|
|
70
81
|
large: "min-h-12 px-6 text-base"
|
|
71
|
-
},
|
|
82
|
+
}, _t = s(
|
|
72
83
|
function({
|
|
73
84
|
children: t,
|
|
74
85
|
className: e,
|
|
@@ -76,12 +87,12 @@ const zt = {
|
|
|
76
87
|
size: i = "medium",
|
|
77
88
|
startIcon: c,
|
|
78
89
|
tone: l = "primary",
|
|
79
|
-
...
|
|
80
|
-
},
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
-
|
|
90
|
+
...d
|
|
91
|
+
}, y) {
|
|
92
|
+
return /* @__PURE__ */ g(
|
|
93
|
+
st,
|
|
83
94
|
{
|
|
84
|
-
ref:
|
|
95
|
+
ref: y,
|
|
85
96
|
className: n(
|
|
86
97
|
"gryt-button",
|
|
87
98
|
"inline-flex cursor-pointer items-center justify-center gap-2 border-0 shadow-none",
|
|
@@ -108,11 +119,11 @@ const zt = {
|
|
|
108
119
|
// and an icon at full strength on a dead button is the same lie in
|
|
109
120
|
// miniature.
|
|
110
121
|
"data-disabled:cursor-not-allowed data-disabled:opacity-60",
|
|
111
|
-
|
|
112
|
-
|
|
122
|
+
Vt[i],
|
|
123
|
+
Et[l],
|
|
113
124
|
e
|
|
114
125
|
),
|
|
115
|
-
...
|
|
126
|
+
...d,
|
|
116
127
|
children: [
|
|
117
128
|
c,
|
|
118
129
|
t,
|
|
@@ -121,13 +132,13 @@ const zt = {
|
|
|
121
132
|
}
|
|
122
133
|
);
|
|
123
134
|
}
|
|
124
|
-
), b = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",
|
|
135
|
+
), b = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light", Yt = "has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-gryt-accent-light", yt = [
|
|
125
136
|
"w-full rounded-(--gryt-radius-xl) border bg-gryt-surface-raised",
|
|
126
137
|
"text-gryt-text outline-none placeholder:text-gryt-muted",
|
|
127
138
|
"transition-colors duration-150 motion-reduce:transition-none",
|
|
128
139
|
"hover:border-gryt-accent-light focus:border-gryt-accent",
|
|
129
140
|
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
130
|
-
].join(" "),
|
|
141
|
+
].join(" "), mt = {
|
|
131
142
|
small: "min-h-9 px-3 py-1.5 text-sm",
|
|
132
143
|
medium: "min-h-11 px-4 py-2.5 text-sm"
|
|
133
144
|
}, D = "rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text", $ = [
|
|
@@ -137,49 +148,49 @@ const zt = {
|
|
|
137
148
|
"transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
|
|
138
149
|
"data-starting-style:scale-[0.98] data-starting-style:opacity-0",
|
|
139
150
|
"data-ending-style:scale-[0.98] data-ending-style:opacity-0"
|
|
140
|
-
].join(" "), j = "cursor-pointer data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
151
|
+
].join(" "), j = "cursor-pointer data-disabled:cursor-not-allowed data-disabled:opacity-50", Ht = {
|
|
141
152
|
primary: "data-checked:bg-gryt-accent data-checked:text-gryt-on-accent",
|
|
142
153
|
secondary: "data-checked:bg-gryt-secondary data-checked:text-gryt-on-secondary",
|
|
143
154
|
neutral: "data-checked:bg-gryt-surface-hover data-checked:text-gryt-text",
|
|
144
155
|
danger: "data-checked:bg-gryt-danger data-checked:text-gryt-on-danger",
|
|
145
156
|
success: "data-checked:bg-gryt-success data-checked:text-gryt-on-accent",
|
|
146
157
|
warning: "data-checked:bg-gryt-warning data-checked:text-gryt-on-accent"
|
|
147
|
-
},
|
|
158
|
+
}, pt = {
|
|
148
159
|
primary: "bg-gryt-accent",
|
|
149
160
|
secondary: "bg-gryt-secondary",
|
|
150
161
|
neutral: "bg-gryt-surface-hover",
|
|
151
162
|
danger: "bg-gryt-danger",
|
|
152
163
|
success: "bg-gryt-success",
|
|
153
164
|
warning: "bg-gryt-warning"
|
|
154
|
-
},
|
|
165
|
+
}, Ot = {
|
|
155
166
|
primary: "data-checked:border-gryt-accent",
|
|
156
167
|
secondary: "data-checked:border-gryt-secondary",
|
|
157
168
|
neutral: "data-checked:border-gryt-muted",
|
|
158
169
|
danger: "data-checked:border-gryt-danger",
|
|
159
170
|
success: "data-checked:border-gryt-success",
|
|
160
171
|
warning: "data-checked:border-gryt-warning"
|
|
161
|
-
},
|
|
172
|
+
}, Xt = {
|
|
162
173
|
primary: "data-checked:bg-gryt-accent",
|
|
163
174
|
secondary: "data-checked:bg-gryt-secondary",
|
|
164
175
|
neutral: "data-checked:bg-gryt-surface-hover",
|
|
165
176
|
danger: "data-checked:bg-gryt-danger",
|
|
166
177
|
success: "data-checked:bg-gryt-success",
|
|
167
178
|
warning: "data-checked:bg-gryt-warning"
|
|
168
|
-
},
|
|
179
|
+
}, Ut = {
|
|
169
180
|
primary: "text-gryt-accent-11 hover:not-data-disabled:bg-gryt-accent-3",
|
|
170
181
|
secondary: "text-gryt-secondary-11 hover:not-data-disabled:bg-gryt-secondary-3",
|
|
171
182
|
neutral: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text",
|
|
172
183
|
danger: "text-gryt-danger-11 hover:not-data-disabled:bg-gryt-danger-3",
|
|
173
184
|
ghost: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"
|
|
174
|
-
},
|
|
185
|
+
}, Kt = {
|
|
175
186
|
xsmall: "h-8 w-8",
|
|
176
187
|
small: "h-9 w-9",
|
|
177
188
|
medium: "h-10 w-10",
|
|
178
189
|
large: "h-12 w-12"
|
|
179
|
-
},
|
|
190
|
+
}, uo = s(
|
|
180
191
|
function({ className: t, size: e = "medium", tone: r = "neutral", ...i }, c) {
|
|
181
192
|
return /* @__PURE__ */ o(
|
|
182
|
-
|
|
193
|
+
st,
|
|
183
194
|
{
|
|
184
195
|
ref: c,
|
|
185
196
|
className: n(
|
|
@@ -198,15 +209,15 @@ const zt = {
|
|
|
198
209
|
"motion-safe:not-[[aria-haspopup]]:active:not-data-disabled:scale-[0.94]",
|
|
199
210
|
b,
|
|
200
211
|
j,
|
|
201
|
-
|
|
202
|
-
|
|
212
|
+
Kt[e],
|
|
213
|
+
Ut[r],
|
|
203
214
|
t
|
|
204
215
|
),
|
|
205
216
|
...i
|
|
206
217
|
}
|
|
207
218
|
);
|
|
208
219
|
}
|
|
209
|
-
),
|
|
220
|
+
), yo = s(
|
|
210
221
|
function({ className: t, elevated: e = !1, ...r }, i) {
|
|
211
222
|
return /* @__PURE__ */ o(
|
|
212
223
|
"div",
|
|
@@ -221,7 +232,7 @@ const zt = {
|
|
|
221
232
|
}
|
|
222
233
|
);
|
|
223
234
|
}
|
|
224
|
-
),
|
|
235
|
+
), mo = s(
|
|
225
236
|
function({ children: t, className: e, from: r = "assistant", ...i }, c) {
|
|
226
237
|
return /* @__PURE__ */ o(
|
|
227
238
|
"div",
|
|
@@ -239,7 +250,7 @@ const zt = {
|
|
|
239
250
|
}
|
|
240
251
|
);
|
|
241
252
|
}
|
|
242
|
-
),
|
|
253
|
+
), po = s(
|
|
243
254
|
function({
|
|
244
255
|
className: t,
|
|
245
256
|
error: e = !1,
|
|
@@ -247,27 +258,27 @@ const zt = {
|
|
|
247
258
|
helperText: i,
|
|
248
259
|
label: c,
|
|
249
260
|
minRows: l = 3,
|
|
250
|
-
multiline:
|
|
251
|
-
size:
|
|
261
|
+
multiline: d = !1,
|
|
262
|
+
size: y = "medium",
|
|
252
263
|
...w
|
|
253
|
-
},
|
|
264
|
+
}, m) {
|
|
254
265
|
const N = /* @__PURE__ */ o(
|
|
255
266
|
V.Control,
|
|
256
267
|
{
|
|
257
|
-
ref:
|
|
258
|
-
render:
|
|
268
|
+
ref: m,
|
|
269
|
+
render: d ? /* @__PURE__ */ o("textarea", { rows: l }) : void 0,
|
|
259
270
|
className: n(
|
|
260
271
|
"gryt-text-field-control",
|
|
261
|
-
|
|
262
|
-
|
|
272
|
+
yt,
|
|
273
|
+
d && "resize-y leading-6",
|
|
263
274
|
e ? "border-gryt-danger" : "border-gryt-border",
|
|
264
|
-
|
|
275
|
+
mt[y],
|
|
265
276
|
t
|
|
266
277
|
),
|
|
267
278
|
...w
|
|
268
279
|
}
|
|
269
280
|
);
|
|
270
|
-
return /* @__PURE__ */
|
|
281
|
+
return /* @__PURE__ */ g(
|
|
271
282
|
V.Root,
|
|
272
283
|
{
|
|
273
284
|
className: n(
|
|
@@ -291,7 +302,7 @@ const zt = {
|
|
|
291
302
|
}
|
|
292
303
|
);
|
|
293
304
|
}
|
|
294
|
-
),
|
|
305
|
+
), bo = s(
|
|
295
306
|
function({
|
|
296
307
|
className: t,
|
|
297
308
|
disabled: e = !1,
|
|
@@ -299,88 +310,88 @@ const zt = {
|
|
|
299
310
|
minRows: i = 1,
|
|
300
311
|
onSubmit: c,
|
|
301
312
|
placeholder: l = "Message Gryt",
|
|
302
|
-
submitLabel:
|
|
303
|
-
...
|
|
313
|
+
submitLabel: d = "Send",
|
|
314
|
+
...y
|
|
304
315
|
}, w) {
|
|
305
|
-
const
|
|
306
|
-
const f =
|
|
316
|
+
const m = W(null), N = K(() => {
|
|
317
|
+
const f = m.current;
|
|
307
318
|
if (!f)
|
|
308
319
|
return;
|
|
309
|
-
const
|
|
320
|
+
const H = window.getComputedStyle(f), Z = parseFloat(H.lineHeight) || 24, q = parseFloat(H.paddingTop) + parseFloat(H.paddingBottom);
|
|
310
321
|
f.style.height = "auto", f.style.height = `${Math.min(
|
|
311
|
-
Math.max(f.scrollHeight,
|
|
312
|
-
|
|
322
|
+
Math.max(f.scrollHeight, Z * i + q),
|
|
323
|
+
Z * r + q
|
|
313
324
|
)}px`;
|
|
314
325
|
}, [r, i]);
|
|
315
|
-
|
|
316
|
-
function
|
|
326
|
+
ht(N, [N, y.value]);
|
|
327
|
+
function J(f) {
|
|
317
328
|
if (!c) {
|
|
318
329
|
f.preventDefault();
|
|
319
330
|
return;
|
|
320
331
|
}
|
|
321
332
|
c(f);
|
|
322
333
|
}
|
|
323
|
-
return /* @__PURE__ */
|
|
334
|
+
return /* @__PURE__ */ g("form", { className: n("gryt-composer", t), onSubmit: J, children: [
|
|
324
335
|
/* @__PURE__ */ o(
|
|
325
336
|
"textarea",
|
|
326
337
|
{
|
|
327
338
|
ref: (f) => {
|
|
328
|
-
|
|
339
|
+
m.current = f, typeof w == "function" ? w(f) : w && (w.current = f);
|
|
329
340
|
},
|
|
330
341
|
rows: i,
|
|
331
342
|
disabled: e,
|
|
332
343
|
placeholder: l,
|
|
333
344
|
onInput: N,
|
|
334
345
|
className: "gryt-composer-textarea disabled:cursor-not-allowed disabled:opacity-60",
|
|
335
|
-
...
|
|
346
|
+
...y
|
|
336
347
|
}
|
|
337
348
|
),
|
|
338
349
|
/* @__PURE__ */ o(
|
|
339
|
-
|
|
350
|
+
_t,
|
|
340
351
|
{
|
|
341
352
|
type: "submit",
|
|
342
353
|
disabled: e,
|
|
343
354
|
size: "small",
|
|
344
|
-
endIcon: /* @__PURE__ */ o(
|
|
345
|
-
children:
|
|
355
|
+
endIcon: /* @__PURE__ */ o(Ct, { size: 14, weight: "fill" }),
|
|
356
|
+
children: d
|
|
346
357
|
}
|
|
347
358
|
)
|
|
348
359
|
] });
|
|
349
360
|
}
|
|
350
|
-
),
|
|
361
|
+
), Wt = {
|
|
351
362
|
small: "h-8 w-8 text-xs",
|
|
352
363
|
medium: "h-10 w-10 text-sm",
|
|
353
364
|
large: "h-12 w-12 text-base"
|
|
354
|
-
},
|
|
355
|
-
return /* @__PURE__ */
|
|
356
|
-
|
|
365
|
+
}, Qt = s(function({ alt: t, children: e, className: r, fallback: i, size: c = "medium", src: l, ...d }, y) {
|
|
366
|
+
return /* @__PURE__ */ g(
|
|
367
|
+
O.Root,
|
|
357
368
|
{
|
|
358
|
-
ref:
|
|
369
|
+
ref: y,
|
|
359
370
|
className: n(
|
|
360
371
|
"gryt-avatar inline-flex shrink-0 items-center justify-center overflow-hidden align-middle select-none",
|
|
361
372
|
"rounded-(--gryt-radius-full) bg-gryt-surface-raised font-medium text-gryt-text ring-1 ring-gryt-border",
|
|
362
|
-
|
|
373
|
+
Wt[c],
|
|
363
374
|
r
|
|
364
375
|
),
|
|
365
|
-
...
|
|
376
|
+
...d,
|
|
366
377
|
children: [
|
|
367
378
|
l ? /* @__PURE__ */ o(
|
|
368
|
-
|
|
379
|
+
O.Image,
|
|
369
380
|
{
|
|
370
381
|
src: l,
|
|
371
382
|
alt: t,
|
|
372
383
|
className: "h-full w-full object-cover"
|
|
373
384
|
}
|
|
374
385
|
) : null,
|
|
375
|
-
/* @__PURE__ */ o(
|
|
386
|
+
/* @__PURE__ */ o(O.Fallback, { className: "flex h-full w-full items-center justify-center", children: i ?? e })
|
|
376
387
|
]
|
|
377
388
|
}
|
|
378
389
|
);
|
|
379
|
-
}),
|
|
380
|
-
return /* @__PURE__ */
|
|
390
|
+
}), fo = s(function({ active: t = !1, avatar: e, className: r, subtitle: i, title: c, ...l }, d) {
|
|
391
|
+
return /* @__PURE__ */ g(
|
|
381
392
|
"button",
|
|
382
393
|
{
|
|
383
|
-
ref:
|
|
394
|
+
ref: d,
|
|
384
395
|
type: "button",
|
|
385
396
|
className: n(
|
|
386
397
|
"gryt-conversation-item enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -390,7 +401,7 @@ const zt = {
|
|
|
390
401
|
...l,
|
|
391
402
|
children: [
|
|
392
403
|
e ?? /* @__PURE__ */ o(
|
|
393
|
-
|
|
404
|
+
Qt,
|
|
394
405
|
{
|
|
395
406
|
size: "small",
|
|
396
407
|
className: n(
|
|
@@ -399,7 +410,7 @@ const zt = {
|
|
|
399
410
|
children: c.slice(0, 1).toUpperCase()
|
|
400
411
|
}
|
|
401
412
|
),
|
|
402
|
-
/* @__PURE__ */
|
|
413
|
+
/* @__PURE__ */ g("span", { className: "min-w-0 flex-1", children: [
|
|
403
414
|
/* @__PURE__ */ o("span", { className: "block truncate text-sm font-semibold", children: c }),
|
|
404
415
|
i ? /* @__PURE__ */ o(
|
|
405
416
|
"span",
|
|
@@ -415,12 +426,12 @@ const zt = {
|
|
|
415
426
|
]
|
|
416
427
|
}
|
|
417
428
|
);
|
|
418
|
-
}),
|
|
419
|
-
const
|
|
420
|
-
return /* @__PURE__ */
|
|
429
|
+
}), xo = s(function({ badgeContent: t, children: e, className: r, max: i = 99, showZero: c = !1, ...l }, d) {
|
|
430
|
+
const y = typeof t == "number" ? t : null, w = y !== null && y === 0 && !c, m = y !== null && y > i ? `${i}+` : t;
|
|
431
|
+
return /* @__PURE__ */ g(
|
|
421
432
|
"span",
|
|
422
433
|
{
|
|
423
|
-
ref:
|
|
434
|
+
ref: d,
|
|
424
435
|
className: n("gryt-badge relative inline-flex", r),
|
|
425
436
|
...l,
|
|
426
437
|
children: [
|
|
@@ -434,30 +445,30 @@ const zt = {
|
|
|
434
445
|
"bg-gryt-accent text-[0.65rem] leading-none font-semibold text-gryt-on-accent",
|
|
435
446
|
"ring-2 ring-gryt-bg"
|
|
436
447
|
),
|
|
437
|
-
children:
|
|
448
|
+
children: m
|
|
438
449
|
}
|
|
439
450
|
) : null
|
|
440
451
|
]
|
|
441
452
|
}
|
|
442
453
|
);
|
|
443
|
-
}),
|
|
454
|
+
}), Jt = {
|
|
444
455
|
neutral: "border-gryt-border bg-gryt-surface-raised text-gryt-text",
|
|
445
456
|
primary: "border-gryt-accent-6 bg-gryt-accent-3 text-gryt-accent-11",
|
|
446
457
|
secondary: "border-gryt-secondary-6 bg-gryt-secondary-3 text-gryt-secondary-11",
|
|
447
458
|
success: "border-gryt-success-6 bg-gryt-success-3 text-gryt-success-11",
|
|
448
459
|
warning: "border-gryt-warning-6 bg-gryt-warning-3 text-gryt-warning-11",
|
|
449
460
|
danger: "border-gryt-danger-6 bg-gryt-danger-3 text-gryt-danger-11"
|
|
450
|
-
},
|
|
451
|
-
return /* @__PURE__ */
|
|
461
|
+
}, ho = s(function({ children: t, className: e, icon: r, label: i, onDelete: c, tone: l = "neutral", ...d }, y) {
|
|
462
|
+
return /* @__PURE__ */ g(
|
|
452
463
|
"span",
|
|
453
464
|
{
|
|
454
|
-
ref:
|
|
465
|
+
ref: y,
|
|
455
466
|
className: n(
|
|
456
467
|
"gryt-chip inline-flex items-center gap-1.5 rounded-(--gryt-radius-full) border px-3 py-1 text-xs font-medium",
|
|
457
|
-
|
|
468
|
+
Jt[l],
|
|
458
469
|
e
|
|
459
470
|
),
|
|
460
|
-
...
|
|
471
|
+
...d,
|
|
461
472
|
children: [
|
|
462
473
|
r,
|
|
463
474
|
i ?? t,
|
|
@@ -472,16 +483,16 @@ const zt = {
|
|
|
472
483
|
"opacity-70 transition-opacity hover:opacity-100",
|
|
473
484
|
b
|
|
474
485
|
),
|
|
475
|
-
children: /* @__PURE__ */ o(
|
|
486
|
+
children: /* @__PURE__ */ o(ct, { size: 10, weight: "bold", "aria-hidden": "true" })
|
|
476
487
|
}
|
|
477
488
|
) : null
|
|
478
489
|
]
|
|
479
490
|
}
|
|
480
491
|
);
|
|
481
|
-
}),
|
|
492
|
+
}), wo = s(
|
|
482
493
|
function({ className: t, tone: e = "primary", ...r }, i) {
|
|
483
494
|
return /* @__PURE__ */ o(
|
|
484
|
-
|
|
495
|
+
tt.Root,
|
|
485
496
|
{
|
|
486
497
|
ref: i,
|
|
487
498
|
className: n(
|
|
@@ -497,12 +508,12 @@ const zt = {
|
|
|
497
508
|
b,
|
|
498
509
|
j,
|
|
499
510
|
// Unchecked stays a neutral outline; the tone only paints once checked.
|
|
500
|
-
|
|
511
|
+
Ht[e],
|
|
501
512
|
t
|
|
502
513
|
),
|
|
503
514
|
...r,
|
|
504
515
|
children: /* @__PURE__ */ o(
|
|
505
|
-
|
|
516
|
+
tt.Indicator,
|
|
506
517
|
{
|
|
507
518
|
keepMounted: !0,
|
|
508
519
|
className: n(
|
|
@@ -515,15 +526,15 @@ const zt = {
|
|
|
515
526
|
"data-unchecked:scale-0 data-unchecked:opacity-0",
|
|
516
527
|
"motion-reduce:transition-none"
|
|
517
528
|
),
|
|
518
|
-
children: /* @__PURE__ */ o(
|
|
529
|
+
children: /* @__PURE__ */ o(lt, { size: 12, weight: "bold" })
|
|
519
530
|
}
|
|
520
531
|
)
|
|
521
532
|
}
|
|
522
533
|
);
|
|
523
534
|
}
|
|
524
|
-
),
|
|
535
|
+
), vo = s(function({ className: t, tone: e = "primary", ...r }, i) {
|
|
525
536
|
return /* @__PURE__ */ o(
|
|
526
|
-
|
|
537
|
+
et.Root,
|
|
527
538
|
{
|
|
528
539
|
ref: i,
|
|
529
540
|
className: n(
|
|
@@ -536,12 +547,12 @@ const zt = {
|
|
|
536
547
|
b,
|
|
537
548
|
j,
|
|
538
549
|
// Border takes the tone when selected; the dot inside carries the fill.
|
|
539
|
-
|
|
550
|
+
Ot[e],
|
|
540
551
|
t
|
|
541
552
|
),
|
|
542
553
|
...r,
|
|
543
554
|
children: /* @__PURE__ */ o(
|
|
544
|
-
|
|
555
|
+
et.Indicator,
|
|
545
556
|
{
|
|
546
557
|
keepMounted: !0,
|
|
547
558
|
className: n(
|
|
@@ -550,16 +561,16 @@ const zt = {
|
|
|
550
561
|
// From 0, for the same reason as the Checkbox tick — see the note there.
|
|
551
562
|
"data-unchecked:scale-0 data-unchecked:opacity-0",
|
|
552
563
|
"motion-reduce:transition-none",
|
|
553
|
-
|
|
564
|
+
pt[e]
|
|
554
565
|
)
|
|
555
566
|
}
|
|
556
567
|
)
|
|
557
568
|
}
|
|
558
569
|
);
|
|
559
|
-
}),
|
|
570
|
+
}), No = s(
|
|
560
571
|
function({ className: t, ...e }, r) {
|
|
561
572
|
return /* @__PURE__ */ o(
|
|
562
|
-
|
|
573
|
+
Dt,
|
|
563
574
|
{
|
|
564
575
|
ref: r,
|
|
565
576
|
className: n("gryt-radio-group flex flex-col gap-2", t),
|
|
@@ -567,10 +578,10 @@ const zt = {
|
|
|
567
578
|
}
|
|
568
579
|
);
|
|
569
580
|
}
|
|
570
|
-
),
|
|
581
|
+
), Po = s(
|
|
571
582
|
function({ className: t, tone: e = "primary", ...r }, i) {
|
|
572
583
|
return /* @__PURE__ */ o(
|
|
573
|
-
|
|
584
|
+
rt.Root,
|
|
574
585
|
{
|
|
575
586
|
ref: i,
|
|
576
587
|
className: n(
|
|
@@ -583,12 +594,12 @@ const zt = {
|
|
|
583
594
|
"motion-safe:active:not-data-disabled:scale-[0.95]",
|
|
584
595
|
b,
|
|
585
596
|
j,
|
|
586
|
-
|
|
597
|
+
Xt[e],
|
|
587
598
|
t
|
|
588
599
|
),
|
|
589
600
|
...r,
|
|
590
601
|
children: /* @__PURE__ */ o(
|
|
591
|
-
|
|
602
|
+
rt.Thumb,
|
|
592
603
|
{
|
|
593
604
|
className: n(
|
|
594
605
|
"h-4.5 w-4.5 rounded-(--gryt-radius-full) bg-gryt-text",
|
|
@@ -600,41 +611,41 @@ const zt = {
|
|
|
600
611
|
}
|
|
601
612
|
);
|
|
602
613
|
}
|
|
603
|
-
),
|
|
604
|
-
function
|
|
614
|
+
), at = 3;
|
|
615
|
+
function To({
|
|
605
616
|
className: a,
|
|
606
617
|
tone: t = "primary",
|
|
607
618
|
"aria-label": e,
|
|
608
619
|
...r
|
|
609
620
|
}) {
|
|
610
|
-
const [i, c] =
|
|
611
|
-
|
|
621
|
+
const [i, c] = wt(!1), l = W(null);
|
|
622
|
+
vt(() => {
|
|
612
623
|
if (!i && l.current === null)
|
|
613
624
|
return;
|
|
614
|
-
const
|
|
625
|
+
const m = () => {
|
|
615
626
|
l.current = null, c(!1);
|
|
616
627
|
};
|
|
617
|
-
return window.addEventListener("pointerup",
|
|
618
|
-
window.removeEventListener("pointerup",
|
|
628
|
+
return window.addEventListener("pointerup", m), window.addEventListener("pointercancel", m), () => {
|
|
629
|
+
window.removeEventListener("pointerup", m), window.removeEventListener("pointercancel", m);
|
|
619
630
|
};
|
|
620
631
|
}, [i]);
|
|
621
|
-
function m
|
|
622
|
-
l.current = { x:
|
|
632
|
+
function d(m) {
|
|
633
|
+
l.current = { x: m.clientX, y: m.clientY };
|
|
623
634
|
}
|
|
624
|
-
function
|
|
635
|
+
function y(m) {
|
|
625
636
|
const N = l.current;
|
|
626
637
|
if (N === null || i)
|
|
627
638
|
return;
|
|
628
|
-
(Math.abs(
|
|
639
|
+
(Math.abs(m.clientX - N.x) > at || Math.abs(m.clientY - N.y) > at) && c(!0);
|
|
629
640
|
}
|
|
630
641
|
const w = i ? "transition-none" : "duration-(--gryt-dur-spring) ease-spring-tight motion-reduce:transition-none";
|
|
631
642
|
return /* @__PURE__ */ o(B.Root, { className: n("gryt-slider w-full", a), ...r, children: /* @__PURE__ */ o(
|
|
632
643
|
B.Control,
|
|
633
644
|
{
|
|
634
645
|
className: "flex w-full cursor-pointer touch-none items-center py-2 select-none",
|
|
635
|
-
onPointerDown:
|
|
636
|
-
onPointerMove:
|
|
637
|
-
children: /* @__PURE__ */
|
|
646
|
+
onPointerDown: d,
|
|
647
|
+
onPointerMove: y,
|
|
648
|
+
children: /* @__PURE__ */ g(B.Track, { className: "h-1.5 w-full rounded-(--gryt-radius-full) bg-gryt-surface-raised select-none", children: [
|
|
638
649
|
/* @__PURE__ */ o(
|
|
639
650
|
B.Indicator,
|
|
640
651
|
{
|
|
@@ -642,7 +653,7 @@ function No({
|
|
|
642
653
|
"h-full rounded-(--gryt-radius-full) select-none",
|
|
643
654
|
"transition-[width]",
|
|
644
655
|
w,
|
|
645
|
-
|
|
656
|
+
pt[t]
|
|
646
657
|
)
|
|
647
658
|
}
|
|
648
659
|
),
|
|
@@ -658,7 +669,7 @@ function No({
|
|
|
658
669
|
// hidden input inside it, so this has to match a descendant.
|
|
659
670
|
// Without it the slider is the one control here you cannot see
|
|
660
671
|
// yourself tab to.
|
|
661
|
-
|
|
672
|
+
Yt
|
|
662
673
|
),
|
|
663
674
|
children: /* @__PURE__ */ o(
|
|
664
675
|
"span",
|
|
@@ -677,11 +688,11 @@ function No({
|
|
|
677
688
|
}
|
|
678
689
|
) });
|
|
679
690
|
}
|
|
680
|
-
const
|
|
691
|
+
const Zt = {
|
|
681
692
|
small: "min-h-9 px-3 text-sm",
|
|
682
693
|
medium: "min-h-11 px-4 text-sm"
|
|
683
694
|
};
|
|
684
|
-
function
|
|
695
|
+
function ko({
|
|
685
696
|
className: a,
|
|
686
697
|
label: t,
|
|
687
698
|
options: e = [],
|
|
@@ -689,10 +700,11 @@ function Po({
|
|
|
689
700
|
size: i = "medium",
|
|
690
701
|
...c
|
|
691
702
|
}) {
|
|
692
|
-
|
|
693
|
-
|
|
703
|
+
const l = ut();
|
|
704
|
+
return /* @__PURE__ */ g(x.Root, { items: e, ...c, children: [
|
|
705
|
+
/* @__PURE__ */ g("div", { className: n("gryt-select flex w-full flex-col gap-1.5", a), children: [
|
|
694
706
|
t ? /* @__PURE__ */ o(x.Label, { className: "text-xs font-medium text-gryt-muted", children: t }) : null,
|
|
695
|
-
/* @__PURE__ */
|
|
707
|
+
/* @__PURE__ */ g(
|
|
696
708
|
x.Trigger,
|
|
697
709
|
{
|
|
698
710
|
className: n(
|
|
@@ -702,16 +714,16 @@ function Po({
|
|
|
702
714
|
"transition-colors duration-150 hover:border-gryt-accent-light",
|
|
703
715
|
"data-disabled:cursor-not-allowed data-disabled:opacity-60",
|
|
704
716
|
b,
|
|
705
|
-
|
|
717
|
+
Zt[i]
|
|
706
718
|
),
|
|
707
719
|
children: [
|
|
708
720
|
/* @__PURE__ */ o(x.Value, { placeholder: r }),
|
|
709
|
-
/* @__PURE__ */ o(x.Icon, { className: "shrink-0 text-gryt-muted", children: /* @__PURE__ */ o(
|
|
721
|
+
/* @__PURE__ */ o(x.Icon, { className: "shrink-0 text-gryt-muted", children: /* @__PURE__ */ o(St, { size: 16 }) })
|
|
710
722
|
]
|
|
711
723
|
}
|
|
712
724
|
)
|
|
713
725
|
] }),
|
|
714
|
-
/* @__PURE__ */ o(x.Portal, { children: /* @__PURE__ */ o(
|
|
726
|
+
/* @__PURE__ */ o(x.Portal, { container: l, children: /* @__PURE__ */ o(
|
|
715
727
|
x.Positioner,
|
|
716
728
|
{
|
|
717
729
|
sideOffset: 6,
|
|
@@ -720,11 +732,11 @@ function Po({
|
|
|
720
732
|
x.Popup,
|
|
721
733
|
{
|
|
722
734
|
className: n("min-w-(--anchor-width) p-1", D, $),
|
|
723
|
-
children: /* @__PURE__ */ o(x.List, { children: e.map((
|
|
735
|
+
children: /* @__PURE__ */ o(x.List, { children: e.map((d) => /* @__PURE__ */ g(
|
|
724
736
|
x.Item,
|
|
725
737
|
{
|
|
726
|
-
value:
|
|
727
|
-
disabled:
|
|
738
|
+
value: d.value,
|
|
739
|
+
disabled: d.disabled,
|
|
728
740
|
className: n(
|
|
729
741
|
"flex cursor-pointer items-center justify-between gap-2",
|
|
730
742
|
"rounded-(--gryt-radius-md) px-3 py-2 text-sm text-gryt-text",
|
|
@@ -732,11 +744,11 @@ function Po({
|
|
|
732
744
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50"
|
|
733
745
|
),
|
|
734
746
|
children: [
|
|
735
|
-
/* @__PURE__ */ o(x.ItemText, { children:
|
|
736
|
-
/* @__PURE__ */ o(x.ItemIndicator, { className: "text-gryt-accent-11", children: /* @__PURE__ */ o(
|
|
747
|
+
/* @__PURE__ */ o(x.ItemText, { children: d.label }),
|
|
748
|
+
/* @__PURE__ */ o(x.ItemIndicator, { className: "text-gryt-accent-11", children: /* @__PURE__ */ o(lt, { size: 14, weight: "bold" }) })
|
|
737
749
|
]
|
|
738
750
|
},
|
|
739
|
-
String(
|
|
751
|
+
String(d.value)
|
|
740
752
|
)) })
|
|
741
753
|
}
|
|
742
754
|
)
|
|
@@ -744,16 +756,17 @@ function Po({
|
|
|
744
756
|
) })
|
|
745
757
|
] });
|
|
746
758
|
}
|
|
747
|
-
function
|
|
759
|
+
function Co({
|
|
748
760
|
children: a,
|
|
749
761
|
className: t,
|
|
750
762
|
side: e = "top",
|
|
751
763
|
sideOffset: r = 8,
|
|
752
764
|
title: i
|
|
753
765
|
}) {
|
|
754
|
-
|
|
766
|
+
const c = ut();
|
|
767
|
+
return /* @__PURE__ */ g(I.Root, { children: [
|
|
755
768
|
/* @__PURE__ */ o(I.Trigger, { render: a }),
|
|
756
|
-
/* @__PURE__ */ o(I.Portal, { children: /* @__PURE__ */ o(
|
|
769
|
+
/* @__PURE__ */ o(I.Portal, { container: c, children: /* @__PURE__ */ o(
|
|
757
770
|
I.Positioner,
|
|
758
771
|
{
|
|
759
772
|
side: e,
|
|
@@ -775,10 +788,10 @@ function To({
|
|
|
775
788
|
) })
|
|
776
789
|
] });
|
|
777
790
|
}
|
|
778
|
-
const
|
|
791
|
+
const So = I.Provider, $o = s(
|
|
779
792
|
function({ className: t, orientation: e = "horizontal", ...r }, i) {
|
|
780
793
|
return /* @__PURE__ */ o(
|
|
781
|
-
|
|
794
|
+
Mt,
|
|
782
795
|
{
|
|
783
796
|
ref: i,
|
|
784
797
|
orientation: e,
|
|
@@ -791,7 +804,7 @@ const ko = I.Provider, Co = s(
|
|
|
791
804
|
}
|
|
792
805
|
);
|
|
793
806
|
}
|
|
794
|
-
),
|
|
807
|
+
), Ro = s(function({ className: t, ...e }, r) {
|
|
795
808
|
return /* @__PURE__ */ o(
|
|
796
809
|
"div",
|
|
797
810
|
{
|
|
@@ -804,14 +817,14 @@ const ko = I.Provider, Co = s(
|
|
|
804
817
|
}
|
|
805
818
|
);
|
|
806
819
|
});
|
|
807
|
-
function
|
|
820
|
+
function Io({
|
|
808
821
|
children: a,
|
|
809
822
|
className: t,
|
|
810
823
|
subheader: e,
|
|
811
824
|
title: r,
|
|
812
825
|
...i
|
|
813
826
|
}) {
|
|
814
|
-
return /* @__PURE__ */
|
|
827
|
+
return /* @__PURE__ */ g(
|
|
815
828
|
"div",
|
|
816
829
|
{
|
|
817
830
|
className: n("gryt-card-header flex flex-col gap-1 p-4", t),
|
|
@@ -824,7 +837,7 @@ function $o({
|
|
|
824
837
|
}
|
|
825
838
|
);
|
|
826
839
|
}
|
|
827
|
-
function
|
|
840
|
+
function Ao({
|
|
828
841
|
className: a,
|
|
829
842
|
...t
|
|
830
843
|
}) {
|
|
@@ -839,7 +852,7 @@ function Ro({
|
|
|
839
852
|
}
|
|
840
853
|
);
|
|
841
854
|
}
|
|
842
|
-
function
|
|
855
|
+
function Do({
|
|
843
856
|
className: a,
|
|
844
857
|
...t
|
|
845
858
|
}) {
|
|
@@ -854,12 +867,12 @@ function Io({
|
|
|
854
867
|
}
|
|
855
868
|
);
|
|
856
869
|
}
|
|
857
|
-
const
|
|
870
|
+
const qt = {
|
|
858
871
|
info: "border-gryt-secondary-6 bg-gryt-secondary-3 text-gryt-secondary-11",
|
|
859
872
|
success: "border-gryt-success-6 bg-gryt-success-3 text-gryt-success-11",
|
|
860
873
|
warning: "border-gryt-warning-6 bg-gryt-warning-3 text-gryt-warning-11",
|
|
861
874
|
error: "border-gryt-danger-6 bg-gryt-danger-3 text-gryt-danger-11"
|
|
862
|
-
},
|
|
875
|
+
}, Mo = s(function({ className: t, severity: e = "info", ...r }, i) {
|
|
863
876
|
return /* @__PURE__ */ o(
|
|
864
877
|
"div",
|
|
865
878
|
{
|
|
@@ -867,22 +880,22 @@ const Jt = {
|
|
|
867
880
|
role: "alert",
|
|
868
881
|
className: n(
|
|
869
882
|
"gryt-alert rounded-(--gryt-radius-lg) border px-4 py-3 text-sm",
|
|
870
|
-
|
|
883
|
+
qt[e],
|
|
871
884
|
t
|
|
872
885
|
),
|
|
873
886
|
...r
|
|
874
887
|
}
|
|
875
888
|
);
|
|
876
889
|
});
|
|
877
|
-
function
|
|
890
|
+
function Go({ className: a, value: t = null, ...e }) {
|
|
878
891
|
return /* @__PURE__ */ o(
|
|
879
|
-
|
|
892
|
+
X.Root,
|
|
880
893
|
{
|
|
881
894
|
value: t,
|
|
882
895
|
className: n("gryt-progress w-full", a),
|
|
883
896
|
...e,
|
|
884
|
-
children: /* @__PURE__ */ o(
|
|
885
|
-
|
|
897
|
+
children: /* @__PURE__ */ o(X.Track, { className: "h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised", children: /* @__PURE__ */ o(
|
|
898
|
+
X.Indicator,
|
|
886
899
|
{
|
|
887
900
|
className: n(
|
|
888
901
|
"h-full rounded-(--gryt-radius-full) bg-gryt-accent",
|
|
@@ -899,13 +912,13 @@ function Do({ className: a, value: t = null, ...e }) {
|
|
|
899
912
|
}
|
|
900
913
|
);
|
|
901
914
|
}
|
|
902
|
-
function
|
|
915
|
+
function Lo({
|
|
903
916
|
className: a,
|
|
904
917
|
size: t = 24,
|
|
905
918
|
"aria-label": e = "Loading"
|
|
906
919
|
}) {
|
|
907
920
|
return /* @__PURE__ */ o(
|
|
908
|
-
|
|
921
|
+
$t,
|
|
909
922
|
{
|
|
910
923
|
role: "status",
|
|
911
924
|
"aria-label": e,
|
|
@@ -918,13 +931,13 @@ function Mo({
|
|
|
918
931
|
}
|
|
919
932
|
);
|
|
920
933
|
}
|
|
921
|
-
const
|
|
934
|
+
const te = {
|
|
922
935
|
text: "h-4 rounded-(--gryt-radius-sm)",
|
|
923
936
|
rounded: "rounded-(--gryt-radius-lg)",
|
|
924
937
|
circular: "rounded-(--gryt-radius-full)",
|
|
925
938
|
rectangular: "rounded-none"
|
|
926
939
|
};
|
|
927
|
-
function
|
|
940
|
+
function jo({
|
|
928
941
|
className: a,
|
|
929
942
|
height: t,
|
|
930
943
|
style: e,
|
|
@@ -949,7 +962,7 @@ function Go({
|
|
|
949
962
|
// the surfaces it can land on rather than only the one it was picked
|
|
950
963
|
// against, and it dims rather than brightens as it pulses.
|
|
951
964
|
"gryt-skeleton bg-white/9 motion-safe:animate-pulse",
|
|
952
|
-
|
|
965
|
+
te[r],
|
|
953
966
|
a
|
|
954
967
|
),
|
|
955
968
|
style: l,
|
|
@@ -957,7 +970,7 @@ function Go({
|
|
|
957
970
|
}
|
|
958
971
|
);
|
|
959
972
|
}
|
|
960
|
-
const
|
|
973
|
+
const bt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none", ee = s(
|
|
961
974
|
function({ className: t, ...e }, r) {
|
|
962
975
|
return /* @__PURE__ */ o(
|
|
963
976
|
C.Backdrop,
|
|
@@ -966,7 +979,7 @@ const yt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
966
979
|
className: n(
|
|
967
980
|
"gryt-dialog-backdrop fixed inset-0 min-h-dvh bg-black/60",
|
|
968
981
|
"backdrop-blur-(--gryt-backdrop-blur)",
|
|
969
|
-
|
|
982
|
+
bt,
|
|
970
983
|
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
971
984
|
t
|
|
972
985
|
),
|
|
@@ -974,7 +987,7 @@ const yt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
974
987
|
}
|
|
975
988
|
);
|
|
976
989
|
}
|
|
977
|
-
),
|
|
990
|
+
), re = s(
|
|
978
991
|
function({ className: t, ...e }, r) {
|
|
979
992
|
return /* @__PURE__ */ o(
|
|
980
993
|
C.Popup,
|
|
@@ -984,7 +997,7 @@ const yt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
984
997
|
"gryt-dialog fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
|
|
985
998
|
"flex w-[32rem] max-w-[calc(100vw-3rem)] flex-col gap-4",
|
|
986
999
|
"rounded-(--gryt-radius-lg) border border-gryt-border bg-gryt-surface p-5 text-gryt-text",
|
|
987
|
-
|
|
1000
|
+
bt,
|
|
988
1001
|
"data-starting-style:scale-[0.98] data-starting-style:opacity-0",
|
|
989
1002
|
"data-ending-style:scale-[0.98] data-ending-style:opacity-0",
|
|
990
1003
|
t
|
|
@@ -993,7 +1006,7 @@ const yt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
993
1006
|
}
|
|
994
1007
|
);
|
|
995
1008
|
}
|
|
996
|
-
),
|
|
1009
|
+
), oe = s(
|
|
997
1010
|
function({ className: t, ...e }, r) {
|
|
998
1011
|
return /* @__PURE__ */ o(
|
|
999
1012
|
C.Title,
|
|
@@ -1007,7 +1020,7 @@ const yt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
1007
1020
|
}
|
|
1008
1021
|
);
|
|
1009
1022
|
}
|
|
1010
|
-
),
|
|
1023
|
+
), ae = s(
|
|
1011
1024
|
function({ className: t, ...e }, r) {
|
|
1012
1025
|
return /* @__PURE__ */ o(
|
|
1013
1026
|
C.Description,
|
|
@@ -1021,7 +1034,7 @@ const yt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
1021
1034
|
}
|
|
1022
1035
|
);
|
|
1023
1036
|
}
|
|
1024
|
-
),
|
|
1037
|
+
), ne = s(
|
|
1025
1038
|
function({ className: t, ...e }, r) {
|
|
1026
1039
|
return /* @__PURE__ */ o(
|
|
1027
1040
|
"div",
|
|
@@ -1035,45 +1048,45 @@ const yt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
1035
1048
|
}
|
|
1036
1049
|
);
|
|
1037
1050
|
}
|
|
1038
|
-
),
|
|
1051
|
+
), Bo = {
|
|
1039
1052
|
Root: C.Root,
|
|
1040
1053
|
Trigger: C.Trigger,
|
|
1041
1054
|
Portal: C.Portal,
|
|
1042
1055
|
Close: C.Close,
|
|
1043
|
-
Backdrop:
|
|
1044
|
-
Popup:
|
|
1045
|
-
Title:
|
|
1046
|
-
Description:
|
|
1047
|
-
Footer:
|
|
1048
|
-
},
|
|
1056
|
+
Backdrop: ee,
|
|
1057
|
+
Popup: re,
|
|
1058
|
+
Title: oe,
|
|
1059
|
+
Description: ae,
|
|
1060
|
+
Footer: ne
|
|
1061
|
+
}, ie = () => () => {
|
|
1049
1062
|
};
|
|
1050
|
-
function
|
|
1051
|
-
const t =
|
|
1063
|
+
function se(a) {
|
|
1064
|
+
const t = K(
|
|
1052
1065
|
(r) => {
|
|
1053
|
-
if (typeof window > "u" || !window.matchMedia) return
|
|
1066
|
+
if (typeof window > "u" || !window.matchMedia) return ie();
|
|
1054
1067
|
const i = window.matchMedia(a);
|
|
1055
1068
|
return i.addEventListener("change", r), () => i.removeEventListener("change", r);
|
|
1056
1069
|
},
|
|
1057
1070
|
[a]
|
|
1058
|
-
), e =
|
|
1059
|
-
return
|
|
1071
|
+
), e = K(() => typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia(a).matches, [a]);
|
|
1072
|
+
return Nt(t, e, () => !1);
|
|
1060
1073
|
}
|
|
1061
|
-
const
|
|
1074
|
+
const ce = {
|
|
1062
1075
|
left: "left",
|
|
1063
1076
|
right: "right",
|
|
1064
1077
|
top: "up",
|
|
1065
1078
|
bottom: "down"
|
|
1066
|
-
},
|
|
1079
|
+
}, Y = it("right"), le = {
|
|
1067
1080
|
left: "items-stretch justify-start",
|
|
1068
1081
|
right: "items-stretch justify-end",
|
|
1069
1082
|
top: "items-start justify-center",
|
|
1070
1083
|
bottom: "items-end justify-center"
|
|
1071
|
-
},
|
|
1084
|
+
}, de = {
|
|
1072
1085
|
left: "rounded-r-(--gryt-radius-xl)",
|
|
1073
1086
|
right: "rounded-l-(--gryt-radius-xl)",
|
|
1074
1087
|
top: "rounded-b-(--gryt-radius-xl)",
|
|
1075
1088
|
bottom: "rounded-t-(--gryt-radius-xl)"
|
|
1076
|
-
},
|
|
1089
|
+
}, ge = {
|
|
1077
1090
|
left: [
|
|
1078
1091
|
"h-full w-[calc(20rem+var(--gryt-drawer-bleed))] max-w-[calc(85vw+var(--gryt-drawer-bleed))]",
|
|
1079
1092
|
"-ml-(--gryt-drawer-bleed) border-r py-5 pr-5 pl-[calc(1.25rem+var(--gryt-drawer-bleed))]",
|
|
@@ -1103,18 +1116,18 @@ const ie = {
|
|
|
1103
1116
|
"data-ending-style:[transform:translateY(calc(100%-var(--gryt-drawer-bleed)))]"
|
|
1104
1117
|
].join(" ")
|
|
1105
1118
|
};
|
|
1106
|
-
function
|
|
1119
|
+
function ue({
|
|
1107
1120
|
side: a = "right",
|
|
1108
1121
|
sheetOnMobile: t = !0,
|
|
1109
1122
|
children: e,
|
|
1110
1123
|
...r
|
|
1111
1124
|
}) {
|
|
1112
|
-
const i =
|
|
1113
|
-
return /* @__PURE__ */ o(
|
|
1125
|
+
const i = se("(max-width: 767px)"), c = t && i ? "bottom" : a;
|
|
1126
|
+
return /* @__PURE__ */ o(Y.Provider, { value: c, children: /* @__PURE__ */ o(v.Root, { swipeDirection: ce[c], ...r, children: e }) });
|
|
1114
1127
|
}
|
|
1115
|
-
const
|
|
1128
|
+
const ye = s(
|
|
1116
1129
|
function({ className: t, ...e }, r) {
|
|
1117
|
-
const i =
|
|
1130
|
+
const i = _(Y);
|
|
1118
1131
|
return /* @__PURE__ */ o(
|
|
1119
1132
|
v.Viewport,
|
|
1120
1133
|
{
|
|
@@ -1124,15 +1137,15 @@ const ge = s(
|
|
|
1124
1137
|
// viewport is what has to sit above the page. Without it a sticky
|
|
1125
1138
|
// site header renders over the panel.
|
|
1126
1139
|
"gryt-drawer-viewport fixed inset-0 z-50 flex",
|
|
1127
|
-
|
|
1140
|
+
le[i],
|
|
1128
1141
|
t
|
|
1129
1142
|
),
|
|
1130
1143
|
...e
|
|
1131
1144
|
}
|
|
1132
1145
|
);
|
|
1133
1146
|
}
|
|
1134
|
-
),
|
|
1135
|
-
const i =
|
|
1147
|
+
), me = s(function({ className: t, ...e }, r) {
|
|
1148
|
+
const i = _(Y);
|
|
1136
1149
|
return /* @__PURE__ */ o(
|
|
1137
1150
|
v.Popup,
|
|
1138
1151
|
{
|
|
@@ -1145,14 +1158,14 @@ const ge = s(
|
|
|
1145
1158
|
// duration here turns a drag into a drag plus lag.
|
|
1146
1159
|
"data-swiping:duration-0 data-swiping:select-none",
|
|
1147
1160
|
"motion-reduce:transition-none",
|
|
1148
|
-
|
|
1149
|
-
|
|
1161
|
+
ge[i],
|
|
1162
|
+
de[i],
|
|
1150
1163
|
t
|
|
1151
1164
|
),
|
|
1152
1165
|
...e
|
|
1153
1166
|
}
|
|
1154
1167
|
);
|
|
1155
|
-
}),
|
|
1168
|
+
}), pe = s(function({ className: t, ...e }, r) {
|
|
1156
1169
|
return /* @__PURE__ */ o(
|
|
1157
1170
|
v.Backdrop,
|
|
1158
1171
|
{
|
|
@@ -1173,8 +1186,8 @@ const ge = s(
|
|
|
1173
1186
|
}
|
|
1174
1187
|
);
|
|
1175
1188
|
});
|
|
1176
|
-
function
|
|
1177
|
-
const t =
|
|
1189
|
+
function be({ className: a }) {
|
|
1190
|
+
const t = _(Y);
|
|
1178
1191
|
return t !== "bottom" && t !== "top" ? null : /* @__PURE__ */ o(
|
|
1179
1192
|
"div",
|
|
1180
1193
|
{
|
|
@@ -1187,19 +1200,19 @@ function me({ className: a }) {
|
|
|
1187
1200
|
}
|
|
1188
1201
|
);
|
|
1189
1202
|
}
|
|
1190
|
-
const
|
|
1191
|
-
Root:
|
|
1203
|
+
const zo = {
|
|
1204
|
+
Root: ue,
|
|
1192
1205
|
Trigger: v.Trigger,
|
|
1193
1206
|
Portal: v.Portal,
|
|
1194
|
-
Backdrop:
|
|
1195
|
-
Viewport:
|
|
1196
|
-
Popup:
|
|
1207
|
+
Backdrop: pe,
|
|
1208
|
+
Viewport: ye,
|
|
1209
|
+
Popup: me,
|
|
1197
1210
|
Content: v.Content,
|
|
1198
|
-
Grabber:
|
|
1211
|
+
Grabber: be,
|
|
1199
1212
|
Close: v.Close,
|
|
1200
1213
|
Title: v.Title,
|
|
1201
1214
|
Description: v.Description
|
|
1202
|
-
},
|
|
1215
|
+
}, fe = s(
|
|
1203
1216
|
function({ className: t, sideOffset: e = 8, ...r }, i) {
|
|
1204
1217
|
return /* @__PURE__ */ o(
|
|
1205
1218
|
A.Positioner,
|
|
@@ -1211,7 +1224,7 @@ const jo = {
|
|
|
1211
1224
|
}
|
|
1212
1225
|
);
|
|
1213
1226
|
}
|
|
1214
|
-
),
|
|
1227
|
+
), xe = s(function({ className: t, ...e }, r) {
|
|
1215
1228
|
return /* @__PURE__ */ o(
|
|
1216
1229
|
A.Popup,
|
|
1217
1230
|
{
|
|
@@ -1225,7 +1238,7 @@ const jo = {
|
|
|
1225
1238
|
...e
|
|
1226
1239
|
}
|
|
1227
1240
|
);
|
|
1228
|
-
}),
|
|
1241
|
+
}), he = s(function({ className: t, ...e }, r) {
|
|
1229
1242
|
return /* @__PURE__ */ o(
|
|
1230
1243
|
A.Item,
|
|
1231
1244
|
{
|
|
@@ -1242,7 +1255,7 @@ const jo = {
|
|
|
1242
1255
|
...e
|
|
1243
1256
|
}
|
|
1244
1257
|
);
|
|
1245
|
-
}),
|
|
1258
|
+
}), we = s(function({ className: t, ...e }, r) {
|
|
1246
1259
|
return /* @__PURE__ */ o(
|
|
1247
1260
|
A.Separator,
|
|
1248
1261
|
{
|
|
@@ -1251,15 +1264,15 @@ const jo = {
|
|
|
1251
1264
|
...e
|
|
1252
1265
|
}
|
|
1253
1266
|
);
|
|
1254
|
-
}),
|
|
1267
|
+
}), U = {
|
|
1255
1268
|
Root: A.Root,
|
|
1256
1269
|
Trigger: A.Trigger,
|
|
1257
1270
|
Portal: A.Portal,
|
|
1258
|
-
Positioner:
|
|
1259
|
-
Popup:
|
|
1260
|
-
Item:
|
|
1261
|
-
Separator:
|
|
1262
|
-
},
|
|
1271
|
+
Positioner: fe,
|
|
1272
|
+
Popup: xe,
|
|
1273
|
+
Item: he,
|
|
1274
|
+
Separator: we
|
|
1275
|
+
}, ve = s(function({ className: t, ...e }, r) {
|
|
1263
1276
|
return /* @__PURE__ */ o(
|
|
1264
1277
|
E.Root,
|
|
1265
1278
|
{
|
|
@@ -1275,7 +1288,7 @@ const jo = {
|
|
|
1275
1288
|
...e
|
|
1276
1289
|
}
|
|
1277
1290
|
);
|
|
1278
|
-
}),
|
|
1291
|
+
}), Ne = s(function({ className: t, ...e }, r) {
|
|
1279
1292
|
return /* @__PURE__ */ o(
|
|
1280
1293
|
E.List,
|
|
1281
1294
|
{
|
|
@@ -1292,7 +1305,7 @@ const jo = {
|
|
|
1292
1305
|
...e
|
|
1293
1306
|
}
|
|
1294
1307
|
);
|
|
1295
|
-
}),
|
|
1308
|
+
}), Pe = s(function({ className: t, ...e }, r) {
|
|
1296
1309
|
return /* @__PURE__ */ o(
|
|
1297
1310
|
E.Tab,
|
|
1298
1311
|
{
|
|
@@ -1318,7 +1331,7 @@ const jo = {
|
|
|
1318
1331
|
...e
|
|
1319
1332
|
}
|
|
1320
1333
|
);
|
|
1321
|
-
}),
|
|
1334
|
+
}), Te = s(
|
|
1322
1335
|
function({ className: t, ...e }, r) {
|
|
1323
1336
|
return /* @__PURE__ */ o(
|
|
1324
1337
|
E.Indicator,
|
|
@@ -1345,7 +1358,7 @@ const jo = {
|
|
|
1345
1358
|
}
|
|
1346
1359
|
);
|
|
1347
1360
|
}
|
|
1348
|
-
),
|
|
1361
|
+
), ke = s(function({ className: t, ...e }, r) {
|
|
1349
1362
|
return /* @__PURE__ */ o(
|
|
1350
1363
|
E.Panel,
|
|
1351
1364
|
{
|
|
@@ -1361,7 +1374,7 @@ const jo = {
|
|
|
1361
1374
|
...e
|
|
1362
1375
|
}
|
|
1363
1376
|
);
|
|
1364
|
-
}),
|
|
1377
|
+
}), Fo = Object.assign(ve, { List: Ne, Tab: Pe, Panel: ke, Indicator: Te }), Ce = s(function({ className: t, ...e }, r) {
|
|
1365
1378
|
return /* @__PURE__ */ o(
|
|
1366
1379
|
F.Root,
|
|
1367
1380
|
{
|
|
@@ -1373,7 +1386,7 @@ const jo = {
|
|
|
1373
1386
|
...e
|
|
1374
1387
|
}
|
|
1375
1388
|
);
|
|
1376
|
-
}),
|
|
1389
|
+
}), Se = s(
|
|
1377
1390
|
function({ className: t, ...e }, r) {
|
|
1378
1391
|
return /* @__PURE__ */ o(
|
|
1379
1392
|
F.Item,
|
|
@@ -1384,9 +1397,9 @@ const jo = {
|
|
|
1384
1397
|
}
|
|
1385
1398
|
);
|
|
1386
1399
|
}
|
|
1387
|
-
),
|
|
1400
|
+
), $e = s(
|
|
1388
1401
|
function({ children: t, className: e, expandIcon: r, ...i }, c) {
|
|
1389
|
-
return /* @__PURE__ */ o(F.Header, { className: "gryt-accordion-header m-0", children: /* @__PURE__ */
|
|
1402
|
+
return /* @__PURE__ */ o(F.Header, { className: "gryt-accordion-header m-0", children: /* @__PURE__ */ g(
|
|
1390
1403
|
F.Trigger,
|
|
1391
1404
|
{
|
|
1392
1405
|
ref: c,
|
|
@@ -1403,7 +1416,7 @@ const jo = {
|
|
|
1403
1416
|
children: [
|
|
1404
1417
|
t,
|
|
1405
1418
|
r === void 0 ? /* @__PURE__ */ o(
|
|
1406
|
-
|
|
1419
|
+
Rt,
|
|
1407
1420
|
{
|
|
1408
1421
|
size: 16,
|
|
1409
1422
|
className: "shrink-0 transition-transform duration-(--gryt-dur-spring) ease-spring data-panel-open:rotate-180 motion-reduce:transition-none"
|
|
@@ -1413,7 +1426,7 @@ const jo = {
|
|
|
1413
1426
|
}
|
|
1414
1427
|
) });
|
|
1415
1428
|
}
|
|
1416
|
-
),
|
|
1429
|
+
), Re = s(
|
|
1417
1430
|
function({ children: t, className: e, ...r }, i) {
|
|
1418
1431
|
return /* @__PURE__ */ o(
|
|
1419
1432
|
F.Panel,
|
|
@@ -1433,7 +1446,7 @@ const jo = {
|
|
|
1433
1446
|
}
|
|
1434
1447
|
);
|
|
1435
1448
|
}
|
|
1436
|
-
),
|
|
1449
|
+
), Eo = Object.assign(Ce, { Item: Se, Trigger: $e, Panel: Re }), Ie = s(
|
|
1437
1450
|
function({ className: t, sideOffset: e = 2, ...r }, i) {
|
|
1438
1451
|
return /* @__PURE__ */ o(
|
|
1439
1452
|
k.Positioner,
|
|
@@ -1445,19 +1458,19 @@ const jo = {
|
|
|
1445
1458
|
}
|
|
1446
1459
|
);
|
|
1447
1460
|
}
|
|
1448
|
-
),
|
|
1461
|
+
), Vo = {
|
|
1449
1462
|
Root: k.Root,
|
|
1450
1463
|
Trigger: k.Trigger,
|
|
1451
1464
|
Portal: k.Portal,
|
|
1452
|
-
Positioner:
|
|
1453
|
-
Popup:
|
|
1454
|
-
Item:
|
|
1455
|
-
Separator:
|
|
1465
|
+
Positioner: Ie,
|
|
1466
|
+
Popup: U.Popup,
|
|
1467
|
+
Item: U.Item,
|
|
1468
|
+
Separator: U.Separator,
|
|
1456
1469
|
Group: k.Group,
|
|
1457
1470
|
GroupLabel: k.GroupLabel,
|
|
1458
1471
|
SubmenuRoot: k.SubmenuRoot,
|
|
1459
1472
|
SubmenuTrigger: k.SubmenuTrigger
|
|
1460
|
-
},
|
|
1473
|
+
}, Ae = s(
|
|
1461
1474
|
function({ className: t, sideOffset: e = 8, ...r }, i) {
|
|
1462
1475
|
return /* @__PURE__ */ o(
|
|
1463
1476
|
P.Positioner,
|
|
@@ -1469,7 +1482,7 @@ const jo = {
|
|
|
1469
1482
|
}
|
|
1470
1483
|
);
|
|
1471
1484
|
}
|
|
1472
|
-
),
|
|
1485
|
+
), De = s(
|
|
1473
1486
|
function({ className: t, ...e }, r) {
|
|
1474
1487
|
return /* @__PURE__ */ o(
|
|
1475
1488
|
P.Popup,
|
|
@@ -1485,7 +1498,7 @@ const jo = {
|
|
|
1485
1498
|
}
|
|
1486
1499
|
);
|
|
1487
1500
|
}
|
|
1488
|
-
),
|
|
1501
|
+
), Me = s(function({ className: t, ...e }, r) {
|
|
1489
1502
|
return /* @__PURE__ */ o(
|
|
1490
1503
|
P.Title,
|
|
1491
1504
|
{
|
|
@@ -1497,7 +1510,7 @@ const jo = {
|
|
|
1497
1510
|
...e
|
|
1498
1511
|
}
|
|
1499
1512
|
);
|
|
1500
|
-
}),
|
|
1513
|
+
}), Ge = s(function({ className: t, ...e }, r) {
|
|
1501
1514
|
return /* @__PURE__ */ o(
|
|
1502
1515
|
P.Description,
|
|
1503
1516
|
{
|
|
@@ -1509,23 +1522,23 @@ const jo = {
|
|
|
1509
1522
|
...e
|
|
1510
1523
|
}
|
|
1511
1524
|
);
|
|
1512
|
-
}),
|
|
1525
|
+
}), _o = {
|
|
1513
1526
|
Root: P.Root,
|
|
1514
1527
|
Trigger: P.Trigger,
|
|
1515
1528
|
Portal: P.Portal,
|
|
1516
|
-
Positioner:
|
|
1517
|
-
Popup:
|
|
1518
|
-
Title:
|
|
1519
|
-
Description:
|
|
1529
|
+
Positioner: Ae,
|
|
1530
|
+
Popup: De,
|
|
1531
|
+
Title: Me,
|
|
1532
|
+
Description: Ge,
|
|
1520
1533
|
Close: P.Close,
|
|
1521
1534
|
Arrow: P.Arrow
|
|
1522
|
-
},
|
|
1535
|
+
}, Le = {
|
|
1523
1536
|
neutral: "border-white/8 bg-gryt-surface",
|
|
1524
1537
|
info: "border-gryt-secondary-6 bg-gryt-secondary-2",
|
|
1525
1538
|
success: "border-gryt-success-6 bg-gryt-success-2",
|
|
1526
1539
|
warning: "border-gryt-warning-6 bg-gryt-warning-2",
|
|
1527
1540
|
danger: "border-gryt-danger-6 bg-gryt-danger-2"
|
|
1528
|
-
},
|
|
1541
|
+
}, je = s(
|
|
1529
1542
|
function({ className: t, ...e }, r) {
|
|
1530
1543
|
return /* @__PURE__ */ o(
|
|
1531
1544
|
T.Viewport,
|
|
@@ -1540,7 +1553,7 @@ const jo = {
|
|
|
1540
1553
|
}
|
|
1541
1554
|
);
|
|
1542
1555
|
}
|
|
1543
|
-
),
|
|
1556
|
+
), Be = s(function({ className: t, severity: e = "neutral", ...r }, i) {
|
|
1544
1557
|
return /* @__PURE__ */ o(
|
|
1545
1558
|
T.Root,
|
|
1546
1559
|
{
|
|
@@ -1553,7 +1566,7 @@ const jo = {
|
|
|
1553
1566
|
// white hairline separates it from the page without drawing a box
|
|
1554
1567
|
// around it.
|
|
1555
1568
|
"rounded-(--gryt-radius-xl) border text-gryt-text",
|
|
1556
|
-
|
|
1569
|
+
Le[e],
|
|
1557
1570
|
// Swiping is a pointer gesture, so the toast follows the finger
|
|
1558
1571
|
// through Base UI's swipe variables before it animates out.
|
|
1559
1572
|
"transition-[opacity,transform] duration-(--gryt-dur-spring) ease-spring",
|
|
@@ -1565,7 +1578,7 @@ const jo = {
|
|
|
1565
1578
|
...r
|
|
1566
1579
|
}
|
|
1567
1580
|
);
|
|
1568
|
-
}),
|
|
1581
|
+
}), ze = s(function({ className: t, ...e }, r) {
|
|
1569
1582
|
return /* @__PURE__ */ o(
|
|
1570
1583
|
T.Title,
|
|
1571
1584
|
{
|
|
@@ -1577,7 +1590,7 @@ const jo = {
|
|
|
1577
1590
|
...e
|
|
1578
1591
|
}
|
|
1579
1592
|
);
|
|
1580
|
-
}),
|
|
1593
|
+
}), Fe = s(function({ className: t, ...e }, r) {
|
|
1581
1594
|
return /* @__PURE__ */ o(
|
|
1582
1595
|
T.Description,
|
|
1583
1596
|
{
|
|
@@ -1589,7 +1602,7 @@ const jo = {
|
|
|
1589
1602
|
...e
|
|
1590
1603
|
}
|
|
1591
1604
|
);
|
|
1592
|
-
}),
|
|
1605
|
+
}), Ee = s(function({ className: t, children: e, ...r }, i) {
|
|
1593
1606
|
return /* @__PURE__ */ o(
|
|
1594
1607
|
T.Close,
|
|
1595
1608
|
{
|
|
@@ -1603,10 +1616,10 @@ const jo = {
|
|
|
1603
1616
|
t
|
|
1604
1617
|
),
|
|
1605
1618
|
...r,
|
|
1606
|
-
children: e ?? /* @__PURE__ */ o(
|
|
1619
|
+
children: e ?? /* @__PURE__ */ o(ct, { size: 14, weight: "bold" })
|
|
1607
1620
|
}
|
|
1608
1621
|
);
|
|
1609
|
-
}),
|
|
1622
|
+
}), Ve = s(function({ className: t, ...e }, r) {
|
|
1610
1623
|
return /* @__PURE__ */ o(
|
|
1611
1624
|
T.Action,
|
|
1612
1625
|
{
|
|
@@ -1622,16 +1635,16 @@ const jo = {
|
|
|
1622
1635
|
...e
|
|
1623
1636
|
}
|
|
1624
1637
|
);
|
|
1625
|
-
}),
|
|
1638
|
+
}), Yo = {
|
|
1626
1639
|
Provider: T.Provider,
|
|
1627
1640
|
Portal: T.Portal,
|
|
1628
|
-
Viewport:
|
|
1629
|
-
Root:
|
|
1630
|
-
Title:
|
|
1631
|
-
Description:
|
|
1632
|
-
Close:
|
|
1633
|
-
Action:
|
|
1634
|
-
},
|
|
1641
|
+
Viewport: je,
|
|
1642
|
+
Root: Be,
|
|
1643
|
+
Title: ze,
|
|
1644
|
+
Description: Fe,
|
|
1645
|
+
Close: Ee,
|
|
1646
|
+
Action: Ve
|
|
1647
|
+
}, Ho = T.useToastManager, _e = s(
|
|
1635
1648
|
function({ className: t, ...e }, r) {
|
|
1636
1649
|
return /* @__PURE__ */ o(
|
|
1637
1650
|
L.Root,
|
|
@@ -1642,7 +1655,7 @@ const jo = {
|
|
|
1642
1655
|
}
|
|
1643
1656
|
);
|
|
1644
1657
|
}
|
|
1645
|
-
),
|
|
1658
|
+
), Ye = s(
|
|
1646
1659
|
function({ className: t, ...e }, r) {
|
|
1647
1660
|
return /* @__PURE__ */ o(
|
|
1648
1661
|
L.Viewport,
|
|
@@ -1657,7 +1670,7 @@ const jo = {
|
|
|
1657
1670
|
}
|
|
1658
1671
|
);
|
|
1659
1672
|
}
|
|
1660
|
-
),
|
|
1673
|
+
), He = s(
|
|
1661
1674
|
function({ className: t, orientation: e, ...r }, i) {
|
|
1662
1675
|
return /* @__PURE__ */ o(
|
|
1663
1676
|
L.Scrollbar,
|
|
@@ -1679,13 +1692,13 @@ const jo = {
|
|
|
1679
1692
|
}
|
|
1680
1693
|
);
|
|
1681
1694
|
}
|
|
1682
|
-
),
|
|
1683
|
-
Root:
|
|
1684
|
-
Viewport:
|
|
1685
|
-
Scrollbar:
|
|
1695
|
+
), Oo = {
|
|
1696
|
+
Root: _e,
|
|
1697
|
+
Viewport: Ye,
|
|
1698
|
+
Scrollbar: He,
|
|
1686
1699
|
Content: L.Content,
|
|
1687
1700
|
Corner: L.Corner
|
|
1688
|
-
},
|
|
1701
|
+
}, Oe = {
|
|
1689
1702
|
primary: [
|
|
1690
1703
|
"text-gryt-muted hover:not-data-disabled:bg-white/8",
|
|
1691
1704
|
"data-pressed:bg-gryt-accent data-pressed:text-gryt-on-accent",
|
|
@@ -1706,15 +1719,15 @@ const jo = {
|
|
|
1706
1719
|
"data-pressed:bg-gryt-danger data-pressed:text-gryt-on-danger",
|
|
1707
1720
|
"data-pressed:hover:not-data-disabled:bg-gryt-danger"
|
|
1708
1721
|
].join(" ")
|
|
1709
|
-
},
|
|
1722
|
+
}, Xe = {
|
|
1710
1723
|
xsmall: "h-8 min-w-8 px-2 text-xs",
|
|
1711
1724
|
small: "h-9 min-w-9 px-2.5 text-sm",
|
|
1712
1725
|
medium: "h-10 min-w-10 px-3 text-sm",
|
|
1713
1726
|
large: "h-12 min-w-12 px-4 text-base"
|
|
1714
|
-
},
|
|
1727
|
+
}, Xo = s(
|
|
1715
1728
|
function({ className: t, size: e = "medium", tone: r = "primary", ...i }, c) {
|
|
1716
1729
|
return /* @__PURE__ */ o(
|
|
1717
|
-
|
|
1730
|
+
Gt,
|
|
1718
1731
|
{
|
|
1719
1732
|
ref: c,
|
|
1720
1733
|
className: n(
|
|
@@ -1727,18 +1740,18 @@ const jo = {
|
|
|
1727
1740
|
"motion-safe:active:not-data-disabled:scale-[0.94]",
|
|
1728
1741
|
b,
|
|
1729
1742
|
j,
|
|
1730
|
-
|
|
1731
|
-
|
|
1743
|
+
Xe[e],
|
|
1744
|
+
Oe[r],
|
|
1732
1745
|
t
|
|
1733
1746
|
),
|
|
1734
1747
|
...i
|
|
1735
1748
|
}
|
|
1736
1749
|
);
|
|
1737
1750
|
}
|
|
1738
|
-
),
|
|
1751
|
+
), Uo = s(
|
|
1739
1752
|
function({ className: t, ...e }, r) {
|
|
1740
1753
|
return /* @__PURE__ */ o(
|
|
1741
|
-
|
|
1754
|
+
Lt,
|
|
1742
1755
|
{
|
|
1743
1756
|
ref: r,
|
|
1744
1757
|
className: n(
|
|
@@ -1750,13 +1763,13 @@ const jo = {
|
|
|
1750
1763
|
}
|
|
1751
1764
|
);
|
|
1752
1765
|
}
|
|
1753
|
-
),
|
|
1766
|
+
), Ue = {
|
|
1754
1767
|
primary: "bg-gryt-accent",
|
|
1755
1768
|
success: "bg-gryt-success",
|
|
1756
1769
|
warning: "bg-gryt-warning",
|
|
1757
1770
|
danger: "bg-gryt-danger"
|
|
1758
1771
|
};
|
|
1759
|
-
function
|
|
1772
|
+
function Ko({
|
|
1760
1773
|
className: a,
|
|
1761
1774
|
value: t,
|
|
1762
1775
|
label: e,
|
|
@@ -1764,14 +1777,14 @@ function Xo({
|
|
|
1764
1777
|
tone: i = "primary",
|
|
1765
1778
|
...c
|
|
1766
1779
|
}) {
|
|
1767
|
-
return /* @__PURE__ */
|
|
1780
|
+
return /* @__PURE__ */ g(
|
|
1768
1781
|
z.Root,
|
|
1769
1782
|
{
|
|
1770
1783
|
value: t,
|
|
1771
1784
|
className: n("gryt-meter flex w-full flex-col gap-1.5", a),
|
|
1772
1785
|
...c,
|
|
1773
1786
|
children: [
|
|
1774
|
-
(e || r) && /* @__PURE__ */
|
|
1787
|
+
(e || r) && /* @__PURE__ */ g("div", { className: "flex items-baseline justify-between gap-2", children: [
|
|
1775
1788
|
e ? /* @__PURE__ */ o(z.Label, { className: "text-sm text-gryt-muted", children: e }) : /* @__PURE__ */ o("span", {}),
|
|
1776
1789
|
r && /* @__PURE__ */ o(z.Value, { className: "font-mono text-xs text-gryt-muted tabular-nums" })
|
|
1777
1790
|
] }),
|
|
@@ -1781,7 +1794,7 @@ function Xo({
|
|
|
1781
1794
|
className: n(
|
|
1782
1795
|
"h-full rounded-(--gryt-radius-full)",
|
|
1783
1796
|
"transition-[width] duration-120 ease-out motion-reduce:transition-none",
|
|
1784
|
-
|
|
1797
|
+
Ue[i]
|
|
1785
1798
|
)
|
|
1786
1799
|
}
|
|
1787
1800
|
) })
|
|
@@ -1789,7 +1802,7 @@ function Xo({
|
|
|
1789
1802
|
}
|
|
1790
1803
|
);
|
|
1791
1804
|
}
|
|
1792
|
-
const
|
|
1805
|
+
const Ke = s(
|
|
1793
1806
|
function({ className: t, ...e }, r) {
|
|
1794
1807
|
return /* @__PURE__ */ o(
|
|
1795
1808
|
S.Popup,
|
|
@@ -1809,7 +1822,7 @@ const Xe = s(
|
|
|
1809
1822
|
}
|
|
1810
1823
|
);
|
|
1811
1824
|
}
|
|
1812
|
-
),
|
|
1825
|
+
), We = s(function({ className: t, ...e }, r) {
|
|
1813
1826
|
return /* @__PURE__ */ o(
|
|
1814
1827
|
S.Backdrop,
|
|
1815
1828
|
{
|
|
@@ -1824,7 +1837,7 @@ const Xe = s(
|
|
|
1824
1837
|
...e
|
|
1825
1838
|
}
|
|
1826
1839
|
);
|
|
1827
|
-
}),
|
|
1840
|
+
}), Qe = s(function({ className: t, ...e }, r) {
|
|
1828
1841
|
return /* @__PURE__ */ o(
|
|
1829
1842
|
S.Title,
|
|
1830
1843
|
{
|
|
@@ -1836,7 +1849,7 @@ const Xe = s(
|
|
|
1836
1849
|
...e
|
|
1837
1850
|
}
|
|
1838
1851
|
);
|
|
1839
|
-
}),
|
|
1852
|
+
}), Je = s(function({ className: t, ...e }, r) {
|
|
1840
1853
|
return /* @__PURE__ */ o(
|
|
1841
1854
|
S.Description,
|
|
1842
1855
|
{
|
|
@@ -1848,16 +1861,16 @@ const Xe = s(
|
|
|
1848
1861
|
...e
|
|
1849
1862
|
}
|
|
1850
1863
|
);
|
|
1851
|
-
}),
|
|
1864
|
+
}), Wo = {
|
|
1852
1865
|
Root: S.Root,
|
|
1853
1866
|
Trigger: S.Trigger,
|
|
1854
1867
|
Portal: S.Portal,
|
|
1855
|
-
Backdrop:
|
|
1856
|
-
Popup:
|
|
1857
|
-
Title:
|
|
1858
|
-
Description:
|
|
1868
|
+
Backdrop: We,
|
|
1869
|
+
Popup: Ke,
|
|
1870
|
+
Title: Qe,
|
|
1871
|
+
Description: Je,
|
|
1859
1872
|
Close: S.Close
|
|
1860
|
-
},
|
|
1873
|
+
}, ft = [
|
|
1861
1874
|
"flex cursor-default items-center gap-2 rounded-(--gryt-radius-md)",
|
|
1862
1875
|
"px-3 py-2 text-sm text-gryt-text outline-none select-none",
|
|
1863
1876
|
// Base UI drives keyboard and pointer highlight through one attribute, so
|
|
@@ -1865,23 +1878,23 @@ const Xe = s(
|
|
|
1865
1878
|
"data-highlighted:bg-gryt-surface-raised",
|
|
1866
1879
|
"data-selected:text-gryt-accent-11",
|
|
1867
1880
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50"
|
|
1868
|
-
].join(" "),
|
|
1869
|
-
|
|
1870
|
-
|
|
1881
|
+
].join(" "), xt = [
|
|
1882
|
+
yt,
|
|
1883
|
+
mt.medium,
|
|
1871
1884
|
"border-gryt-border",
|
|
1872
1885
|
b
|
|
1873
|
-
].join(" "),
|
|
1886
|
+
].join(" "), Ze = s(function({ className: t, ...e }, r) {
|
|
1874
1887
|
return /* @__PURE__ */ o(
|
|
1875
|
-
|
|
1888
|
+
u.Input,
|
|
1876
1889
|
{
|
|
1877
1890
|
ref: r,
|
|
1878
|
-
className: n("gryt-combobox-input",
|
|
1891
|
+
className: n("gryt-combobox-input", xt, t),
|
|
1879
1892
|
...e
|
|
1880
1893
|
}
|
|
1881
1894
|
);
|
|
1882
|
-
}),
|
|
1895
|
+
}), qe = s(function({ className: t, sideOffset: e = 6, ...r }, i) {
|
|
1883
1896
|
return /* @__PURE__ */ o(
|
|
1884
|
-
|
|
1897
|
+
u.Positioner,
|
|
1885
1898
|
{
|
|
1886
1899
|
ref: i,
|
|
1887
1900
|
sideOffset: e,
|
|
@@ -1889,10 +1902,10 @@ const Xe = s(
|
|
|
1889
1902
|
...r
|
|
1890
1903
|
}
|
|
1891
1904
|
);
|
|
1892
|
-
}),
|
|
1905
|
+
}), tr = s(
|
|
1893
1906
|
function({ className: t, ...e }, r) {
|
|
1894
1907
|
return /* @__PURE__ */ o(
|
|
1895
|
-
|
|
1908
|
+
u.Popup,
|
|
1896
1909
|
{
|
|
1897
1910
|
ref: r,
|
|
1898
1911
|
className: n(
|
|
@@ -1905,18 +1918,18 @@ const Xe = s(
|
|
|
1905
1918
|
}
|
|
1906
1919
|
);
|
|
1907
1920
|
}
|
|
1908
|
-
),
|
|
1921
|
+
), er = s(function({ className: t, ...e }, r) {
|
|
1909
1922
|
return /* @__PURE__ */ o(
|
|
1910
|
-
|
|
1923
|
+
u.Item,
|
|
1911
1924
|
{
|
|
1912
1925
|
ref: r,
|
|
1913
|
-
className: n("gryt-combobox-item",
|
|
1926
|
+
className: n("gryt-combobox-item", ft, t),
|
|
1914
1927
|
...e
|
|
1915
1928
|
}
|
|
1916
1929
|
);
|
|
1917
|
-
}),
|
|
1930
|
+
}), rr = s(function({ className: t, ...e }, r) {
|
|
1918
1931
|
return /* @__PURE__ */ o(
|
|
1919
|
-
|
|
1932
|
+
u.Empty,
|
|
1920
1933
|
{
|
|
1921
1934
|
ref: r,
|
|
1922
1935
|
className: n(
|
|
@@ -1926,37 +1939,37 @@ const Xe = s(
|
|
|
1926
1939
|
...e
|
|
1927
1940
|
}
|
|
1928
1941
|
);
|
|
1929
|
-
}),
|
|
1930
|
-
Root:
|
|
1931
|
-
Input:
|
|
1932
|
-
InputGroup:
|
|
1933
|
-
Trigger:
|
|
1934
|
-
Icon:
|
|
1935
|
-
Clear:
|
|
1936
|
-
Value:
|
|
1937
|
-
Chips:
|
|
1938
|
-
Chip:
|
|
1939
|
-
ChipRemove:
|
|
1940
|
-
Portal:
|
|
1941
|
-
Positioner:
|
|
1942
|
-
Popup:
|
|
1943
|
-
List:
|
|
1944
|
-
Item:
|
|
1945
|
-
ItemIndicator:
|
|
1946
|
-
Group:
|
|
1947
|
-
GroupLabel:
|
|
1948
|
-
Empty:
|
|
1949
|
-
Separator:
|
|
1950
|
-
},
|
|
1942
|
+
}), Qo = {
|
|
1943
|
+
Root: u.Root,
|
|
1944
|
+
Input: Ze,
|
|
1945
|
+
InputGroup: u.InputGroup,
|
|
1946
|
+
Trigger: u.Trigger,
|
|
1947
|
+
Icon: u.Icon,
|
|
1948
|
+
Clear: u.Clear,
|
|
1949
|
+
Value: u.Value,
|
|
1950
|
+
Chips: u.Chips,
|
|
1951
|
+
Chip: u.Chip,
|
|
1952
|
+
ChipRemove: u.ChipRemove,
|
|
1953
|
+
Portal: u.Portal,
|
|
1954
|
+
Positioner: qe,
|
|
1955
|
+
Popup: tr,
|
|
1956
|
+
List: u.List,
|
|
1957
|
+
Item: er,
|
|
1958
|
+
ItemIndicator: u.ItemIndicator,
|
|
1959
|
+
Group: u.Group,
|
|
1960
|
+
GroupLabel: u.GroupLabel,
|
|
1961
|
+
Empty: rr,
|
|
1962
|
+
Separator: u.Separator
|
|
1963
|
+
}, or = s(function({ className: t, ...e }, r) {
|
|
1951
1964
|
return /* @__PURE__ */ o(
|
|
1952
1965
|
p.Input,
|
|
1953
1966
|
{
|
|
1954
1967
|
ref: r,
|
|
1955
|
-
className: n("gryt-autocomplete-input",
|
|
1968
|
+
className: n("gryt-autocomplete-input", xt, t),
|
|
1956
1969
|
...e
|
|
1957
1970
|
}
|
|
1958
1971
|
);
|
|
1959
|
-
}),
|
|
1972
|
+
}), ar = s(function({ className: t, sideOffset: e = 6, ...r }, i) {
|
|
1960
1973
|
return /* @__PURE__ */ o(
|
|
1961
1974
|
p.Positioner,
|
|
1962
1975
|
{
|
|
@@ -1966,7 +1979,7 @@ const Xe = s(
|
|
|
1966
1979
|
...r
|
|
1967
1980
|
}
|
|
1968
1981
|
);
|
|
1969
|
-
}),
|
|
1982
|
+
}), nr = s(function({ className: t, ...e }, r) {
|
|
1970
1983
|
return /* @__PURE__ */ o(
|
|
1971
1984
|
p.Popup,
|
|
1972
1985
|
{
|
|
@@ -1980,16 +1993,16 @@ const Xe = s(
|
|
|
1980
1993
|
...e
|
|
1981
1994
|
}
|
|
1982
1995
|
);
|
|
1983
|
-
}),
|
|
1996
|
+
}), ir = s(function({ className: t, ...e }, r) {
|
|
1984
1997
|
return /* @__PURE__ */ o(
|
|
1985
1998
|
p.Item,
|
|
1986
1999
|
{
|
|
1987
2000
|
ref: r,
|
|
1988
|
-
className: n("gryt-autocomplete-item",
|
|
2001
|
+
className: n("gryt-autocomplete-item", ft, t),
|
|
1989
2002
|
...e
|
|
1990
2003
|
}
|
|
1991
2004
|
);
|
|
1992
|
-
}),
|
|
2005
|
+
}), sr = s(function({ className: t, ...e }, r) {
|
|
1993
2006
|
return /* @__PURE__ */ o(
|
|
1994
2007
|
p.Empty,
|
|
1995
2008
|
{
|
|
@@ -2001,27 +2014,27 @@ const Xe = s(
|
|
|
2001
2014
|
...e
|
|
2002
2015
|
}
|
|
2003
2016
|
);
|
|
2004
|
-
}),
|
|
2017
|
+
}), Jo = {
|
|
2005
2018
|
Root: p.Root,
|
|
2006
|
-
Input:
|
|
2019
|
+
Input: or,
|
|
2007
2020
|
InputGroup: p.InputGroup,
|
|
2008
2021
|
Trigger: p.Trigger,
|
|
2009
2022
|
Icon: p.Icon,
|
|
2010
2023
|
Clear: p.Clear,
|
|
2011
2024
|
Value: p.Value,
|
|
2012
2025
|
Portal: p.Portal,
|
|
2013
|
-
Positioner:
|
|
2014
|
-
Popup:
|
|
2026
|
+
Positioner: ar,
|
|
2027
|
+
Popup: nr,
|
|
2015
2028
|
List: p.List,
|
|
2016
|
-
Item:
|
|
2029
|
+
Item: ir,
|
|
2017
2030
|
Group: p.Group,
|
|
2018
2031
|
GroupLabel: p.GroupLabel,
|
|
2019
|
-
Empty:
|
|
2032
|
+
Empty: sr,
|
|
2020
2033
|
Separator: p.Separator
|
|
2021
|
-
},
|
|
2034
|
+
}, Zo = s(
|
|
2022
2035
|
function({ className: t, ...e }, r) {
|
|
2023
2036
|
return /* @__PURE__ */ o(
|
|
2024
|
-
|
|
2037
|
+
jt,
|
|
2025
2038
|
{
|
|
2026
2039
|
ref: r,
|
|
2027
2040
|
className: n("gryt-checkbox-group flex flex-col gap-2", t),
|
|
@@ -2029,10 +2042,10 @@ const Xe = s(
|
|
|
2029
2042
|
}
|
|
2030
2043
|
);
|
|
2031
2044
|
}
|
|
2032
|
-
),
|
|
2045
|
+
), cr = s(
|
|
2033
2046
|
function({ className: t, ...e }, r) {
|
|
2034
2047
|
return /* @__PURE__ */ o(
|
|
2035
|
-
|
|
2048
|
+
Q.Trigger,
|
|
2036
2049
|
{
|
|
2037
2050
|
ref: r,
|
|
2038
2051
|
className: n(
|
|
@@ -2047,10 +2060,10 @@ const Xe = s(
|
|
|
2047
2060
|
}
|
|
2048
2061
|
);
|
|
2049
2062
|
}
|
|
2050
|
-
),
|
|
2063
|
+
), lr = s(
|
|
2051
2064
|
function({ className: t, ...e }, r) {
|
|
2052
2065
|
return /* @__PURE__ */ o(
|
|
2053
|
-
|
|
2066
|
+
Q.Panel,
|
|
2054
2067
|
{
|
|
2055
2068
|
ref: r,
|
|
2056
2069
|
className: n(
|
|
@@ -2066,23 +2079,23 @@ const Xe = s(
|
|
|
2066
2079
|
}
|
|
2067
2080
|
);
|
|
2068
2081
|
}
|
|
2069
|
-
),
|
|
2070
|
-
Root:
|
|
2071
|
-
Trigger:
|
|
2072
|
-
Panel:
|
|
2073
|
-
},
|
|
2082
|
+
), qo = {
|
|
2083
|
+
Root: Q.Root,
|
|
2084
|
+
Trigger: cr,
|
|
2085
|
+
Panel: lr
|
|
2086
|
+
}, ta = s(function({ className: t, ...e }, r) {
|
|
2074
2087
|
return /* @__PURE__ */ o(
|
|
2075
|
-
|
|
2088
|
+
Bt,
|
|
2076
2089
|
{
|
|
2077
2090
|
ref: r,
|
|
2078
2091
|
className: n("gryt-form flex flex-col gap-(--gryt-space-lg)", t),
|
|
2079
2092
|
...e
|
|
2080
2093
|
}
|
|
2081
2094
|
);
|
|
2082
|
-
}),
|
|
2095
|
+
}), dr = s(
|
|
2083
2096
|
function({ className: t, ...e }, r) {
|
|
2084
2097
|
return /* @__PURE__ */ o(
|
|
2085
|
-
|
|
2098
|
+
dt.Root,
|
|
2086
2099
|
{
|
|
2087
2100
|
ref: r,
|
|
2088
2101
|
className: n(
|
|
@@ -2093,9 +2106,9 @@ const Xe = s(
|
|
|
2093
2106
|
}
|
|
2094
2107
|
);
|
|
2095
2108
|
}
|
|
2096
|
-
),
|
|
2109
|
+
), gr = s(function({ className: t, ...e }, r) {
|
|
2097
2110
|
return /* @__PURE__ */ o(
|
|
2098
|
-
|
|
2111
|
+
dt.Legend,
|
|
2099
2112
|
{
|
|
2100
2113
|
ref: r,
|
|
2101
2114
|
className: n(
|
|
@@ -2105,10 +2118,10 @@ const Xe = s(
|
|
|
2105
2118
|
...e
|
|
2106
2119
|
}
|
|
2107
2120
|
);
|
|
2108
|
-
}),
|
|
2121
|
+
}), ea = { Root: dr, Legend: gr }, ra = s(
|
|
2109
2122
|
function({ className: t, ...e }, r) {
|
|
2110
2123
|
return /* @__PURE__ */ o(
|
|
2111
|
-
|
|
2124
|
+
zt,
|
|
2112
2125
|
{
|
|
2113
2126
|
ref: r,
|
|
2114
2127
|
className: n(
|
|
@@ -2120,7 +2133,7 @@ const Xe = s(
|
|
|
2120
2133
|
}
|
|
2121
2134
|
);
|
|
2122
2135
|
}
|
|
2123
|
-
),
|
|
2136
|
+
), ur = s(function({ className: t, ...e }, r) {
|
|
2124
2137
|
return /* @__PURE__ */ o(
|
|
2125
2138
|
h.Trigger,
|
|
2126
2139
|
{
|
|
@@ -2136,7 +2149,7 @@ const Xe = s(
|
|
|
2136
2149
|
...e
|
|
2137
2150
|
}
|
|
2138
2151
|
);
|
|
2139
|
-
}),
|
|
2152
|
+
}), yr = s(function({ className: t, ...e }, r) {
|
|
2140
2153
|
return /* @__PURE__ */ o(
|
|
2141
2154
|
h.Popup,
|
|
2142
2155
|
{
|
|
@@ -2150,7 +2163,7 @@ const Xe = s(
|
|
|
2150
2163
|
...e
|
|
2151
2164
|
}
|
|
2152
2165
|
);
|
|
2153
|
-
}),
|
|
2166
|
+
}), mr = s(function({ className: t, ...e }, r) {
|
|
2154
2167
|
return /* @__PURE__ */ o(
|
|
2155
2168
|
h.Positioner,
|
|
2156
2169
|
{
|
|
@@ -2159,7 +2172,7 @@ const Xe = s(
|
|
|
2159
2172
|
...e
|
|
2160
2173
|
}
|
|
2161
2174
|
);
|
|
2162
|
-
}),
|
|
2175
|
+
}), pr = s(function({ className: t, ...e }, r) {
|
|
2163
2176
|
return /* @__PURE__ */ o(
|
|
2164
2177
|
h.Viewport,
|
|
2165
2178
|
{
|
|
@@ -2171,7 +2184,7 @@ const Xe = s(
|
|
|
2171
2184
|
...e
|
|
2172
2185
|
}
|
|
2173
2186
|
);
|
|
2174
|
-
}),
|
|
2187
|
+
}), br = s(function({ className: t, ...e }, r) {
|
|
2175
2188
|
return /* @__PURE__ */ o(
|
|
2176
2189
|
h.Link,
|
|
2177
2190
|
{
|
|
@@ -2186,33 +2199,33 @@ const Xe = s(
|
|
|
2186
2199
|
...e
|
|
2187
2200
|
}
|
|
2188
2201
|
);
|
|
2189
|
-
}),
|
|
2202
|
+
}), oa = {
|
|
2190
2203
|
Root: h.Root,
|
|
2191
2204
|
List: h.List,
|
|
2192
2205
|
Item: h.Item,
|
|
2193
|
-
Trigger:
|
|
2206
|
+
Trigger: ur,
|
|
2194
2207
|
Content: h.Content,
|
|
2195
2208
|
Portal: h.Portal,
|
|
2196
|
-
Positioner:
|
|
2197
|
-
Viewport:
|
|
2198
|
-
Popup:
|
|
2199
|
-
Link:
|
|
2209
|
+
Positioner: mr,
|
|
2210
|
+
Viewport: pr,
|
|
2211
|
+
Popup: yr,
|
|
2212
|
+
Link: br,
|
|
2200
2213
|
Icon: h.Icon,
|
|
2201
2214
|
Arrow: h.Arrow
|
|
2202
|
-
},
|
|
2215
|
+
}, nt = "flex h-9 w-9 shrink-0 items-center justify-center border-0 bg-transparent text-gryt-muted transition-colors hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text motion-reduce:transition-none disabled:cursor-not-allowed disabled:opacity-50", aa = s(
|
|
2203
2216
|
function({ className: t, label: e, scrubbable: r = !1, ...i }, c) {
|
|
2204
|
-
return /* @__PURE__ */
|
|
2217
|
+
return /* @__PURE__ */ g(
|
|
2205
2218
|
R.Root,
|
|
2206
2219
|
{
|
|
2207
2220
|
ref: c,
|
|
2208
2221
|
className: n("gryt-number-field flex flex-col gap-1.5", t),
|
|
2209
2222
|
...i,
|
|
2210
2223
|
children: [
|
|
2211
|
-
e && (r ? /* @__PURE__ */
|
|
2224
|
+
e && (r ? /* @__PURE__ */ g(R.ScrubArea, { className: "cursor-ew-resize text-sm text-gryt-muted select-none", children: [
|
|
2212
2225
|
e,
|
|
2213
2226
|
/* @__PURE__ */ o(R.ScrubAreaCursor, {})
|
|
2214
2227
|
] }) : /* @__PURE__ */ o("span", { className: "text-sm text-gryt-muted", children: e })),
|
|
2215
|
-
/* @__PURE__ */
|
|
2228
|
+
/* @__PURE__ */ g(
|
|
2216
2229
|
R.Group,
|
|
2217
2230
|
{
|
|
2218
2231
|
className: n(
|
|
@@ -2226,8 +2239,8 @@ const Xe = s(
|
|
|
2226
2239
|
R.Decrement,
|
|
2227
2240
|
{
|
|
2228
2241
|
"aria-label": "Decrease",
|
|
2229
|
-
className: n(
|
|
2230
|
-
children: /* @__PURE__ */ o(
|
|
2242
|
+
className: n(nt, "rounded-l-(--gryt-radius-full)"),
|
|
2243
|
+
children: /* @__PURE__ */ o(It, { size: 14, weight: "bold" })
|
|
2231
2244
|
}
|
|
2232
2245
|
),
|
|
2233
2246
|
/* @__PURE__ */ o(
|
|
@@ -2244,8 +2257,8 @@ const Xe = s(
|
|
|
2244
2257
|
R.Increment,
|
|
2245
2258
|
{
|
|
2246
2259
|
"aria-label": "Increase",
|
|
2247
|
-
className: n(
|
|
2248
|
-
children: /* @__PURE__ */ o(
|
|
2260
|
+
className: n(nt, "rounded-r-(--gryt-radius-full)"),
|
|
2261
|
+
children: /* @__PURE__ */ o(At, { size: 14, weight: "bold" })
|
|
2249
2262
|
}
|
|
2250
2263
|
)
|
|
2251
2264
|
]
|
|
@@ -2255,17 +2268,17 @@ const Xe = s(
|
|
|
2255
2268
|
}
|
|
2256
2269
|
);
|
|
2257
2270
|
}
|
|
2258
|
-
),
|
|
2271
|
+
), na = s(
|
|
2259
2272
|
function({ className: t, length: e = 6, ...r }, i) {
|
|
2260
2273
|
return /* @__PURE__ */ o(
|
|
2261
|
-
|
|
2274
|
+
ot.Root,
|
|
2262
2275
|
{
|
|
2263
2276
|
ref: i,
|
|
2264
2277
|
length: e,
|
|
2265
2278
|
className: n("gryt-otp-field flex gap-2", t),
|
|
2266
2279
|
...r,
|
|
2267
2280
|
children: Array.from({ length: e }, (c, l) => /* @__PURE__ */ o(
|
|
2268
|
-
|
|
2281
|
+
ot.Input,
|
|
2269
2282
|
{
|
|
2270
2283
|
className: n(
|
|
2271
2284
|
"gryt-otp-input h-12 w-10 rounded-(--gryt-radius-md) text-center",
|
|
@@ -2281,7 +2294,7 @@ const Xe = s(
|
|
|
2281
2294
|
}
|
|
2282
2295
|
);
|
|
2283
2296
|
}
|
|
2284
|
-
),
|
|
2297
|
+
), fr = s(
|
|
2285
2298
|
function({ className: t, sideOffset: e = 8, ...r }, i) {
|
|
2286
2299
|
return /* @__PURE__ */ o(
|
|
2287
2300
|
M.Positioner,
|
|
@@ -2293,7 +2306,7 @@ const Xe = s(
|
|
|
2293
2306
|
}
|
|
2294
2307
|
);
|
|
2295
2308
|
}
|
|
2296
|
-
),
|
|
2309
|
+
), xr = s(
|
|
2297
2310
|
function({ className: t, ...e }, r) {
|
|
2298
2311
|
return /* @__PURE__ */ o(
|
|
2299
2312
|
M.Popup,
|
|
@@ -2309,14 +2322,14 @@ const Xe = s(
|
|
|
2309
2322
|
}
|
|
2310
2323
|
);
|
|
2311
2324
|
}
|
|
2312
|
-
),
|
|
2325
|
+
), ia = {
|
|
2313
2326
|
Root: M.Root,
|
|
2314
2327
|
Trigger: M.Trigger,
|
|
2315
2328
|
Portal: M.Portal,
|
|
2316
|
-
Positioner:
|
|
2317
|
-
Popup:
|
|
2329
|
+
Positioner: fr,
|
|
2330
|
+
Popup: xr,
|
|
2318
2331
|
Arrow: M.Arrow
|
|
2319
|
-
},
|
|
2332
|
+
}, hr = s(function({ className: t, ...e }, r) {
|
|
2320
2333
|
return /* @__PURE__ */ o(
|
|
2321
2334
|
G.Root,
|
|
2322
2335
|
{
|
|
@@ -2329,7 +2342,7 @@ const Xe = s(
|
|
|
2329
2342
|
...e
|
|
2330
2343
|
}
|
|
2331
2344
|
);
|
|
2332
|
-
}),
|
|
2345
|
+
}), wr = s(function({ className: t, ...e }, r) {
|
|
2333
2346
|
return /* @__PURE__ */ o(
|
|
2334
2347
|
G.Separator,
|
|
2335
2348
|
{
|
|
@@ -2338,103 +2351,103 @@ const Xe = s(
|
|
|
2338
2351
|
...e
|
|
2339
2352
|
}
|
|
2340
2353
|
);
|
|
2341
|
-
}),
|
|
2342
|
-
Root:
|
|
2354
|
+
}), sa = {
|
|
2355
|
+
Root: hr,
|
|
2343
2356
|
Group: G.Group,
|
|
2344
2357
|
Button: G.Button,
|
|
2345
2358
|
Link: G.Link,
|
|
2346
2359
|
Input: G.Input,
|
|
2347
|
-
Separator:
|
|
2360
|
+
Separator: wr
|
|
2348
2361
|
};
|
|
2349
2362
|
export {
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2363
|
+
Eo as Accordion,
|
|
2364
|
+
Mo as Alert,
|
|
2365
|
+
Wo as AlertDialog,
|
|
2366
|
+
Jo as Autocomplete,
|
|
2367
|
+
Qt as Avatar,
|
|
2368
|
+
xo as Badge,
|
|
2369
|
+
_t as Button,
|
|
2370
|
+
Ro as Card,
|
|
2371
|
+
Do as CardActions,
|
|
2372
|
+
Ao as CardContent,
|
|
2373
|
+
Io as CardHeader,
|
|
2374
|
+
wo as Checkbox,
|
|
2375
|
+
Zo as CheckboxGroup,
|
|
2376
|
+
ho as Chip,
|
|
2377
|
+
qo as Collapsible,
|
|
2378
|
+
Qo as Combobox,
|
|
2379
|
+
bo as Composer,
|
|
2380
|
+
Vo as ContextMenu,
|
|
2381
|
+
fo as ConversationItem,
|
|
2382
|
+
Bo as Dialog,
|
|
2383
|
+
$o as Divider,
|
|
2384
|
+
zo as Drawer,
|
|
2385
|
+
ea as Fieldset,
|
|
2386
|
+
ta as Form,
|
|
2387
|
+
da as GRYT_HUE_KEYS,
|
|
2388
|
+
ga as GRYT_NEUTRAL_KEYS,
|
|
2389
|
+
ua as GRYT_RADIUS_KEYS,
|
|
2390
|
+
ya as GRYT_THEME_NAME_MAX,
|
|
2391
|
+
go as GrytProvider,
|
|
2392
|
+
uo as IconButton,
|
|
2393
|
+
U as Menu,
|
|
2394
|
+
ra as Menubar,
|
|
2395
|
+
mo as MessageBubble,
|
|
2396
|
+
Ko as Meter,
|
|
2397
|
+
oa as NavigationMenu,
|
|
2398
|
+
aa as NumberField,
|
|
2399
|
+
na as OtpField,
|
|
2400
|
+
_o as Popover,
|
|
2401
|
+
ia as PreviewCard,
|
|
2402
|
+
Go as Progress,
|
|
2403
|
+
vo as Radio,
|
|
2404
|
+
No as RadioGroup,
|
|
2405
|
+
Oo as ScrollArea,
|
|
2406
|
+
ko as Select,
|
|
2407
|
+
jo as Skeleton,
|
|
2408
|
+
To as Slider,
|
|
2409
|
+
Lo as Spinner,
|
|
2410
|
+
yo as Surface,
|
|
2411
|
+
Po as Switch,
|
|
2412
|
+
Pe as Tab,
|
|
2413
|
+
Fo as Tabs,
|
|
2414
|
+
po as TextField,
|
|
2415
|
+
Yo as Toast,
|
|
2416
|
+
Xo as Toggle,
|
|
2417
|
+
Uo as ToggleGroup,
|
|
2418
|
+
sa as Toolbar,
|
|
2419
|
+
Co as Tooltip,
|
|
2420
|
+
So as TooltipProvider,
|
|
2421
|
+
ma as alphaScale,
|
|
2422
|
+
pa as cloneGrytTheme,
|
|
2410
2423
|
n as cn,
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2424
|
+
ba as contrast,
|
|
2425
|
+
fa as createGrytTheme,
|
|
2426
|
+
xa as decodeGrytTheme,
|
|
2427
|
+
ha as encodeGrytTheme,
|
|
2428
|
+
wa as grytAlphaScales,
|
|
2429
|
+
va as grytAlphaScalesLight,
|
|
2430
|
+
Na as grytLightTokens,
|
|
2431
|
+
Pa as grytPresets,
|
|
2432
|
+
Ta as grytPresetsById,
|
|
2433
|
+
ka as grytScales,
|
|
2434
|
+
Ca as grytScalesLight,
|
|
2435
|
+
Sa as grytTheme,
|
|
2436
|
+
$a as grytThemeHues,
|
|
2437
|
+
Ra as grytThemeToOptions,
|
|
2438
|
+
Ia as grytTokens,
|
|
2439
|
+
Aa as hexToOklch,
|
|
2440
|
+
Da as hexToRgb,
|
|
2441
|
+
Ma as hueScale,
|
|
2442
|
+
Ga as hueScaleLight,
|
|
2443
|
+
La as isHexColor,
|
|
2444
|
+
ja as neutralScale,
|
|
2445
|
+
Ba as neutralScaleLight,
|
|
2446
|
+
za as normalizeHexColor,
|
|
2447
|
+
Fa as normalizeThemeName,
|
|
2448
|
+
Ea as oklchToHex,
|
|
2449
|
+
Va as rgbToHex,
|
|
2450
|
+
se as useMediaQuery,
|
|
2451
|
+
Ho as useToastManager
|
|
2439
2452
|
};
|
|
2440
2453
|
//# sourceMappingURL=index.js.map
|