@gryt/ui 0.4.0 → 0.5.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/components/Slider/Slider.d.ts +20 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/utils/styles.d.ts +1 -0
- package/dist/components/utils/styles.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +653 -582
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme.css +19 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { Tooltip as
|
|
3
|
-
import { Button as
|
|
4
|
-
import { forwardRef as s, useRef as
|
|
5
|
-
import { clsx as
|
|
6
|
-
import { twMerge as
|
|
2
|
+
import { Tooltip as D } from "@base-ui/react/tooltip";
|
|
3
|
+
import { Button as it } from "@base-ui/react/button";
|
|
4
|
+
import { forwardRef as s, useRef as st, useCallback as U, useLayoutEffect as pt, useState as bt, useEffect as ft, useSyncExternalStore as xt, useContext as W, createContext as ht } from "react";
|
|
5
|
+
import { clsx as wt } from "clsx";
|
|
6
|
+
import { twMerge as vt } from "tailwind-merge";
|
|
7
7
|
import { Field as E } from "@base-ui/react/field";
|
|
8
|
-
import { PaperPlaneTilt as
|
|
8
|
+
import { PaperPlaneTilt as Nt, X as ct, Check as lt, CaretUpDown as Pt, CircleNotch as kt, CaretDown as Tt, Minus as $t, Plus as Ct } from "@phosphor-icons/react";
|
|
9
9
|
import { Avatar as X } from "@base-ui/react/avatar";
|
|
10
|
-
import { Checkbox as
|
|
11
|
-
import { Radio as
|
|
12
|
-
import { RadioGroup as
|
|
13
|
-
import { Switch as
|
|
10
|
+
import { Checkbox as q } from "@base-ui/react/checkbox";
|
|
11
|
+
import { Radio as tt } from "@base-ui/react/radio";
|
|
12
|
+
import { RadioGroup as St } from "@base-ui/react/radio-group";
|
|
13
|
+
import { Switch as et } from "@base-ui/react/switch";
|
|
14
14
|
import { Slider as B } from "@base-ui/react/slider";
|
|
15
|
-
import { Select as
|
|
16
|
-
import { Separator as
|
|
17
|
-
import { Progress as
|
|
18
|
-
import { Dialog as
|
|
19
|
-
import { Drawer as
|
|
20
|
-
import { Menu as
|
|
15
|
+
import { Select as x } from "@base-ui/react/select";
|
|
16
|
+
import { Separator as Rt } from "@base-ui/react/separator";
|
|
17
|
+
import { Progress as O } from "@base-ui/react/progress";
|
|
18
|
+
import { Dialog as $ } from "@base-ui/react/dialog";
|
|
19
|
+
import { Drawer as v } from "@base-ui/react/drawer";
|
|
20
|
+
import { Menu as A } from "@base-ui/react/menu";
|
|
21
21
|
import { Tabs as V } from "@base-ui/react/tabs";
|
|
22
22
|
import { Accordion as F } from "@base-ui/react/accordion";
|
|
23
|
-
import { ContextMenu as
|
|
24
|
-
import { Popover as
|
|
25
|
-
import { Toast as
|
|
26
|
-
import { ScrollArea as
|
|
27
|
-
import { Toggle as
|
|
28
|
-
import { ToggleGroup as
|
|
23
|
+
import { ContextMenu as T } from "@base-ui/react/context-menu";
|
|
24
|
+
import { Popover as P } from "@base-ui/react/popover";
|
|
25
|
+
import { Toast as k } from "@base-ui/react/toast";
|
|
26
|
+
import { ScrollArea as j } from "@base-ui/react/scroll-area";
|
|
27
|
+
import { Toggle as It } from "@base-ui/react/toggle";
|
|
28
|
+
import { ToggleGroup as Dt } from "@base-ui/react/toggle-group";
|
|
29
29
|
import { Meter as z } from "@base-ui/react/meter";
|
|
30
|
-
import { AlertDialog as
|
|
31
|
-
import { Autocomplete as
|
|
30
|
+
import { AlertDialog as C } from "@base-ui/react/alert-dialog";
|
|
31
|
+
import { Autocomplete as p } from "@base-ui/react/autocomplete";
|
|
32
32
|
import { Combobox as g } from "@base-ui/react/combobox";
|
|
33
|
-
import { CheckboxGroup as
|
|
34
|
-
import { Collapsible as
|
|
35
|
-
import { Form as
|
|
36
|
-
import { Fieldset as
|
|
37
|
-
import { Menubar as
|
|
38
|
-
import { NavigationMenu as
|
|
39
|
-
import { NumberField as
|
|
40
|
-
import { OTPField as
|
|
41
|
-
import { PreviewCard as
|
|
42
|
-
import { Toolbar as
|
|
43
|
-
const
|
|
33
|
+
import { CheckboxGroup as At } from "@base-ui/react/checkbox-group";
|
|
34
|
+
import { Collapsible as Q } from "@base-ui/react/collapsible";
|
|
35
|
+
import { Form as Mt } from "@base-ui/react/form";
|
|
36
|
+
import { Fieldset as dt } from "@base-ui/react/fieldset";
|
|
37
|
+
import { Menubar as Lt } from "@base-ui/react/menubar";
|
|
38
|
+
import { NavigationMenu as h } from "@base-ui/react/navigation-menu";
|
|
39
|
+
import { NumberField as I } from "@base-ui/react/number-field";
|
|
40
|
+
import { OTPField as rt } from "@base-ui/react/otp-field";
|
|
41
|
+
import { PreviewCard as M } from "@base-ui/react/preview-card";
|
|
42
|
+
import { Toolbar as L } from "@base-ui/react/toolbar";
|
|
43
|
+
const ot = {
|
|
44
44
|
color: {
|
|
45
45
|
bg: "#111318",
|
|
46
46
|
surface: "#1a1d24",
|
|
@@ -69,8 +69,8 @@ const rt = {
|
|
|
69
69
|
full: 999
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
|
-
function
|
|
73
|
-
const t = { ...
|
|
72
|
+
function jt(a = {}) {
|
|
73
|
+
const t = { ...ot.color, ...a.color }, e = { ...ot.radius, ...a.radius };
|
|
74
74
|
return {
|
|
75
75
|
"--gryt-bg": t.bg,
|
|
76
76
|
"--gryt-surface": t.surface,
|
|
@@ -118,33 +118,33 @@ function Dt(a = {}) {
|
|
|
118
118
|
"--gryt-radius-full": `${e.full}px`
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Gt(a) {
|
|
122
122
|
return Object.keys(a).some((t) => t.startsWith("--"));
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function no({
|
|
125
125
|
children: a,
|
|
126
126
|
className: t,
|
|
127
127
|
theme: e,
|
|
128
128
|
tooltipDelay: r = 400
|
|
129
129
|
}) {
|
|
130
|
-
const i = e &&
|
|
131
|
-
return /* @__PURE__ */ o("div", { className: t, style: i, children: /* @__PURE__ */ o(
|
|
130
|
+
const i = e && Gt(e) ? e : jt(e ?? {});
|
|
131
|
+
return /* @__PURE__ */ o("div", { className: t, style: i, children: /* @__PURE__ */ o(D.Provider, { delay: r, children: a }) });
|
|
132
132
|
}
|
|
133
133
|
function n(...a) {
|
|
134
|
-
return
|
|
134
|
+
return vt(wt(a));
|
|
135
135
|
}
|
|
136
|
-
const
|
|
136
|
+
const Bt = {
|
|
137
137
|
primary: "bg-gryt-accent text-gryt-on-accent hover:not-data-disabled:bg-gryt-accent-light",
|
|
138
138
|
secondary: "bg-gryt-secondary text-gryt-on-secondary hover:not-data-disabled:bg-gryt-secondary-light",
|
|
139
139
|
neutral: "bg-gryt-surface-raised text-gryt-text hover:not-data-disabled:bg-gryt-surface-hover",
|
|
140
140
|
danger: "bg-gryt-danger text-gryt-on-danger hover:not-data-disabled:bg-gryt-danger-light",
|
|
141
141
|
ghost: "bg-transparent text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"
|
|
142
|
-
},
|
|
142
|
+
}, zt = {
|
|
143
143
|
xsmall: "min-h-8 px-3 text-xs",
|
|
144
144
|
small: "min-h-9 px-4 text-sm",
|
|
145
145
|
medium: "min-h-10 px-5 text-sm",
|
|
146
146
|
large: "min-h-12 px-6 text-base"
|
|
147
|
-
},
|
|
147
|
+
}, Ft = s(
|
|
148
148
|
function({
|
|
149
149
|
children: t,
|
|
150
150
|
className: e,
|
|
@@ -152,12 +152,12 @@ const Lt = {
|
|
|
152
152
|
size: i = "medium",
|
|
153
153
|
startIcon: c,
|
|
154
154
|
tone: l = "primary",
|
|
155
|
-
...
|
|
156
|
-
},
|
|
155
|
+
...m
|
|
156
|
+
}, u) {
|
|
157
157
|
return /* @__PURE__ */ d(
|
|
158
|
-
|
|
158
|
+
it,
|
|
159
159
|
{
|
|
160
|
-
ref:
|
|
160
|
+
ref: u,
|
|
161
161
|
className: n(
|
|
162
162
|
"gryt-button",
|
|
163
163
|
"inline-flex items-center justify-center gap-2 border-0 shadow-none",
|
|
@@ -173,11 +173,11 @@ const Lt = {
|
|
|
173
173
|
"motion-safe:active:not-data-disabled:scale-[0.96]",
|
|
174
174
|
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",
|
|
175
175
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
zt[i],
|
|
177
|
+
Bt[l],
|
|
178
178
|
e
|
|
179
179
|
),
|
|
180
|
-
...
|
|
180
|
+
...m,
|
|
181
181
|
children: [
|
|
182
182
|
c,
|
|
183
183
|
t,
|
|
@@ -186,56 +186,56 @@ const Lt = {
|
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
|
-
),
|
|
189
|
+
), b = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light", Vt = "has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-gryt-accent-light", S = "rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text", R = [
|
|
190
190
|
// scale and translate are named explicitly because Tailwind v4 sets them as
|
|
191
191
|
// standalone CSS properties rather than folding them into `transform`, so
|
|
192
192
|
// transitioning `transform` would leave the popup snapping into place.
|
|
193
193
|
"transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
|
|
194
194
|
"data-starting-style:scale-[0.98] data-starting-style:opacity-0",
|
|
195
195
|
"data-ending-style:scale-[0.98] data-ending-style:opacity-0"
|
|
196
|
-
].join(" "),
|
|
196
|
+
].join(" "), G = "data-disabled:cursor-not-allowed data-disabled:opacity-50", Et = {
|
|
197
197
|
primary: "data-checked:bg-gryt-accent data-checked:text-gryt-on-accent",
|
|
198
198
|
secondary: "data-checked:bg-gryt-secondary data-checked:text-gryt-on-secondary",
|
|
199
199
|
neutral: "data-checked:bg-gryt-surface-hover data-checked:text-gryt-text",
|
|
200
200
|
danger: "data-checked:bg-gryt-danger data-checked:text-gryt-on-danger",
|
|
201
201
|
success: "data-checked:bg-gryt-success data-checked:text-gryt-on-accent",
|
|
202
202
|
warning: "data-checked:bg-gryt-warning data-checked:text-gryt-on-accent"
|
|
203
|
-
},
|
|
203
|
+
}, gt = {
|
|
204
204
|
primary: "bg-gryt-accent",
|
|
205
205
|
secondary: "bg-gryt-secondary",
|
|
206
206
|
neutral: "bg-gryt-surface-hover",
|
|
207
207
|
danger: "bg-gryt-danger",
|
|
208
208
|
success: "bg-gryt-success",
|
|
209
209
|
warning: "bg-gryt-warning"
|
|
210
|
-
},
|
|
210
|
+
}, _t = {
|
|
211
211
|
primary: "data-checked:border-gryt-accent",
|
|
212
212
|
secondary: "data-checked:border-gryt-secondary",
|
|
213
213
|
neutral: "data-checked:border-gryt-muted",
|
|
214
214
|
danger: "data-checked:border-gryt-danger",
|
|
215
215
|
success: "data-checked:border-gryt-success",
|
|
216
216
|
warning: "data-checked:border-gryt-warning"
|
|
217
|
-
},
|
|
217
|
+
}, Ht = {
|
|
218
218
|
primary: "data-checked:bg-gryt-accent",
|
|
219
219
|
secondary: "data-checked:bg-gryt-secondary",
|
|
220
220
|
neutral: "data-checked:bg-gryt-surface-hover",
|
|
221
221
|
danger: "data-checked:bg-gryt-danger",
|
|
222
222
|
success: "data-checked:bg-gryt-success",
|
|
223
223
|
warning: "data-checked:bg-gryt-warning"
|
|
224
|
-
},
|
|
224
|
+
}, Xt = {
|
|
225
225
|
primary: "text-gryt-accent hover:not-data-disabled:bg-gryt-accent/10",
|
|
226
226
|
secondary: "text-gryt-secondary hover:not-data-disabled:bg-gryt-secondary/10",
|
|
227
227
|
neutral: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text",
|
|
228
228
|
danger: "text-gryt-danger hover:not-data-disabled:bg-gryt-danger/10",
|
|
229
229
|
ghost: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"
|
|
230
|
-
},
|
|
230
|
+
}, Ot = {
|
|
231
231
|
xsmall: "h-8 w-8",
|
|
232
232
|
small: "h-9 w-9",
|
|
233
233
|
medium: "h-10 w-10",
|
|
234
234
|
large: "h-12 w-12"
|
|
235
|
-
},
|
|
235
|
+
}, io = s(
|
|
236
236
|
function({ className: t, size: e = "medium", tone: r = "neutral", ...i }, c) {
|
|
237
237
|
return /* @__PURE__ */ o(
|
|
238
|
-
|
|
238
|
+
it,
|
|
239
239
|
{
|
|
240
240
|
ref: c,
|
|
241
241
|
className: n(
|
|
@@ -246,17 +246,17 @@ const Lt = {
|
|
|
246
246
|
"transition-[scale,background-color,color] duration-(--gryt-dur-spring) ease-spring",
|
|
247
247
|
"motion-safe:hover:not-data-disabled:scale-[1.06]",
|
|
248
248
|
"motion-safe:active:not-data-disabled:scale-[0.94]",
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
249
|
+
b,
|
|
250
|
+
G,
|
|
251
|
+
Ot[e],
|
|
252
|
+
Xt[r],
|
|
253
253
|
t
|
|
254
254
|
),
|
|
255
255
|
...i
|
|
256
256
|
}
|
|
257
257
|
);
|
|
258
258
|
}
|
|
259
|
-
),
|
|
259
|
+
), so = s(
|
|
260
260
|
function({ className: t, elevated: e = !1, ...r }, i) {
|
|
261
261
|
return /* @__PURE__ */ o(
|
|
262
262
|
"div",
|
|
@@ -271,7 +271,7 @@ const Lt = {
|
|
|
271
271
|
}
|
|
272
272
|
);
|
|
273
273
|
}
|
|
274
|
-
),
|
|
274
|
+
), co = s(
|
|
275
275
|
function({ children: t, className: e, from: r = "assistant", ...i }, c) {
|
|
276
276
|
return /* @__PURE__ */ o(
|
|
277
277
|
"div",
|
|
@@ -289,10 +289,10 @@ const Lt = {
|
|
|
289
289
|
}
|
|
290
290
|
);
|
|
291
291
|
}
|
|
292
|
-
),
|
|
292
|
+
), Yt = {
|
|
293
293
|
small: "min-h-9 px-3 py-1.5 text-sm",
|
|
294
294
|
medium: "min-h-11 px-4 py-2.5 text-sm"
|
|
295
|
-
},
|
|
295
|
+
}, lo = s(
|
|
296
296
|
function({
|
|
297
297
|
className: t,
|
|
298
298
|
error: e = !1,
|
|
@@ -300,27 +300,27 @@ const Lt = {
|
|
|
300
300
|
helperText: i,
|
|
301
301
|
label: c,
|
|
302
302
|
minRows: l = 3,
|
|
303
|
-
multiline:
|
|
304
|
-
size:
|
|
305
|
-
...
|
|
306
|
-
},
|
|
307
|
-
const
|
|
303
|
+
multiline: m = !1,
|
|
304
|
+
size: u = "medium",
|
|
305
|
+
...w
|
|
306
|
+
}, y) {
|
|
307
|
+
const N = /* @__PURE__ */ o(
|
|
308
308
|
E.Control,
|
|
309
309
|
{
|
|
310
|
-
ref:
|
|
311
|
-
render:
|
|
310
|
+
ref: y,
|
|
311
|
+
render: m ? /* @__PURE__ */ o("textarea", { rows: l }) : void 0,
|
|
312
312
|
className: n(
|
|
313
313
|
"gryt-text-field-control w-full rounded-(--gryt-radius-xl) border bg-gryt-surface-raised",
|
|
314
314
|
"text-gryt-text outline-none placeholder:text-gryt-muted",
|
|
315
315
|
"transition-colors duration-150",
|
|
316
316
|
"hover:border-gryt-accent-light focus:border-gryt-accent",
|
|
317
317
|
"disabled:cursor-not-allowed disabled:opacity-60",
|
|
318
|
-
|
|
318
|
+
m && "resize-y leading-6",
|
|
319
319
|
e ? "border-gryt-danger" : "border-gryt-border",
|
|
320
|
-
|
|
320
|
+
Yt[u],
|
|
321
321
|
t
|
|
322
322
|
),
|
|
323
|
-
...
|
|
323
|
+
...w
|
|
324
324
|
}
|
|
325
325
|
);
|
|
326
326
|
return /* @__PURE__ */ d(
|
|
@@ -332,7 +332,7 @@ const Lt = {
|
|
|
332
332
|
),
|
|
333
333
|
children: [
|
|
334
334
|
c ? /* @__PURE__ */ o(E.Label, { className: "text-xs font-medium text-gryt-muted", children: c }) : null,
|
|
335
|
-
|
|
335
|
+
N,
|
|
336
336
|
i ? /* @__PURE__ */ o(
|
|
337
337
|
E.Description,
|
|
338
338
|
{
|
|
@@ -347,7 +347,7 @@ const Lt = {
|
|
|
347
347
|
}
|
|
348
348
|
);
|
|
349
349
|
}
|
|
350
|
-
),
|
|
350
|
+
), go = s(
|
|
351
351
|
function({
|
|
352
352
|
className: t,
|
|
353
353
|
disabled: e = !1,
|
|
@@ -355,70 +355,70 @@ const Lt = {
|
|
|
355
355
|
minRows: i = 1,
|
|
356
356
|
onSubmit: c,
|
|
357
357
|
placeholder: l = "Message Gryt",
|
|
358
|
-
submitLabel:
|
|
359
|
-
...
|
|
360
|
-
},
|
|
361
|
-
const
|
|
362
|
-
const
|
|
363
|
-
if (!
|
|
358
|
+
submitLabel: m = "Send",
|
|
359
|
+
...u
|
|
360
|
+
}, w) {
|
|
361
|
+
const y = st(null), N = U(() => {
|
|
362
|
+
const f = y.current;
|
|
363
|
+
if (!f)
|
|
364
364
|
return;
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
-
Math.max(
|
|
368
|
-
|
|
365
|
+
const H = window.getComputedStyle(f), K = parseFloat(H.lineHeight) || 24, Z = parseFloat(H.paddingTop) + parseFloat(H.paddingBottom);
|
|
366
|
+
f.style.height = "auto", f.style.height = `${Math.min(
|
|
367
|
+
Math.max(f.scrollHeight, K * i + Z),
|
|
368
|
+
K * r + Z
|
|
369
369
|
)}px`;
|
|
370
370
|
}, [r, i]);
|
|
371
|
-
|
|
372
|
-
function
|
|
371
|
+
pt(N, [N, u.value]);
|
|
372
|
+
function J(f) {
|
|
373
373
|
if (!c) {
|
|
374
|
-
|
|
374
|
+
f.preventDefault();
|
|
375
375
|
return;
|
|
376
376
|
}
|
|
377
|
-
c(
|
|
377
|
+
c(f);
|
|
378
378
|
}
|
|
379
|
-
return /* @__PURE__ */ d("form", { className: n("gryt-composer", t), onSubmit:
|
|
379
|
+
return /* @__PURE__ */ d("form", { className: n("gryt-composer", t), onSubmit: J, children: [
|
|
380
380
|
/* @__PURE__ */ o(
|
|
381
381
|
"textarea",
|
|
382
382
|
{
|
|
383
|
-
ref: (
|
|
384
|
-
|
|
383
|
+
ref: (f) => {
|
|
384
|
+
y.current = f, typeof w == "function" ? w(f) : w && (w.current = f);
|
|
385
385
|
},
|
|
386
386
|
rows: i,
|
|
387
387
|
disabled: e,
|
|
388
388
|
placeholder: l,
|
|
389
|
-
onInput:
|
|
389
|
+
onInput: N,
|
|
390
390
|
className: "gryt-composer-textarea disabled:cursor-not-allowed disabled:opacity-60",
|
|
391
|
-
...
|
|
391
|
+
...u
|
|
392
392
|
}
|
|
393
393
|
),
|
|
394
394
|
/* @__PURE__ */ o(
|
|
395
|
-
|
|
395
|
+
Ft,
|
|
396
396
|
{
|
|
397
397
|
type: "submit",
|
|
398
398
|
disabled: e,
|
|
399
399
|
size: "small",
|
|
400
|
-
endIcon: /* @__PURE__ */ o(
|
|
401
|
-
children:
|
|
400
|
+
endIcon: /* @__PURE__ */ o(Nt, { size: 14, weight: "fill" }),
|
|
401
|
+
children: m
|
|
402
402
|
}
|
|
403
403
|
)
|
|
404
404
|
] });
|
|
405
405
|
}
|
|
406
|
-
),
|
|
406
|
+
), Ut = {
|
|
407
407
|
small: "h-8 w-8 text-xs",
|
|
408
408
|
medium: "h-10 w-10 text-sm",
|
|
409
409
|
large: "h-12 w-12 text-base"
|
|
410
|
-
},
|
|
410
|
+
}, Wt = s(function({ alt: t, children: e, className: r, fallback: i, size: c = "medium", src: l, ...m }, u) {
|
|
411
411
|
return /* @__PURE__ */ d(
|
|
412
412
|
X.Root,
|
|
413
413
|
{
|
|
414
|
-
ref:
|
|
414
|
+
ref: u,
|
|
415
415
|
className: n(
|
|
416
416
|
"gryt-avatar inline-flex shrink-0 items-center justify-center overflow-hidden align-middle select-none",
|
|
417
417
|
"rounded-(--gryt-radius-full) bg-gryt-surface-raised font-medium text-gryt-text ring-1 ring-gryt-border",
|
|
418
|
-
|
|
418
|
+
Ut[c],
|
|
419
419
|
r
|
|
420
420
|
),
|
|
421
|
-
...
|
|
421
|
+
...m,
|
|
422
422
|
children: [
|
|
423
423
|
l ? /* @__PURE__ */ o(
|
|
424
424
|
X.Image,
|
|
@@ -432,11 +432,11 @@ const Lt = {
|
|
|
432
432
|
]
|
|
433
433
|
}
|
|
434
434
|
);
|
|
435
|
-
}),
|
|
435
|
+
}), uo = s(function({ active: t = !1, avatar: e, className: r, subtitle: i, title: c, ...l }, m) {
|
|
436
436
|
return /* @__PURE__ */ d(
|
|
437
437
|
"button",
|
|
438
438
|
{
|
|
439
|
-
ref:
|
|
439
|
+
ref: m,
|
|
440
440
|
type: "button",
|
|
441
441
|
className: n(
|
|
442
442
|
"gryt-conversation-item",
|
|
@@ -446,7 +446,7 @@ const Lt = {
|
|
|
446
446
|
...l,
|
|
447
447
|
children: [
|
|
448
448
|
e ?? /* @__PURE__ */ o(
|
|
449
|
-
|
|
449
|
+
Wt,
|
|
450
450
|
{
|
|
451
451
|
size: "small",
|
|
452
452
|
className: n(
|
|
@@ -471,17 +471,17 @@ const Lt = {
|
|
|
471
471
|
]
|
|
472
472
|
}
|
|
473
473
|
);
|
|
474
|
-
}),
|
|
475
|
-
const
|
|
474
|
+
}), yo = s(function({ badgeContent: t, children: e, className: r, max: i = 99, showZero: c = !1, ...l }, m) {
|
|
475
|
+
const u = typeof t == "number" ? t : null, w = u !== null && u === 0 && !c, y = u !== null && u > i ? `${i}+` : t;
|
|
476
476
|
return /* @__PURE__ */ d(
|
|
477
477
|
"span",
|
|
478
478
|
{
|
|
479
|
-
ref:
|
|
479
|
+
ref: m,
|
|
480
480
|
className: n("gryt-badge relative inline-flex", r),
|
|
481
481
|
...l,
|
|
482
482
|
children: [
|
|
483
483
|
e,
|
|
484
|
-
t !== void 0 && !
|
|
484
|
+
t !== void 0 && !w ? /* @__PURE__ */ o(
|
|
485
485
|
"span",
|
|
486
486
|
{
|
|
487
487
|
className: n(
|
|
@@ -490,30 +490,30 @@ const Lt = {
|
|
|
490
490
|
"bg-gryt-accent text-[0.65rem] leading-none font-semibold text-gryt-on-accent",
|
|
491
491
|
"ring-2 ring-gryt-bg"
|
|
492
492
|
),
|
|
493
|
-
children:
|
|
493
|
+
children: y
|
|
494
494
|
}
|
|
495
495
|
) : null
|
|
496
496
|
]
|
|
497
497
|
}
|
|
498
498
|
);
|
|
499
|
-
}),
|
|
499
|
+
}), Qt = {
|
|
500
500
|
neutral: "border-gryt-border bg-gryt-surface-raised text-gryt-text",
|
|
501
501
|
primary: "border-gryt-accent/40 bg-gryt-accent/12 text-gryt-accent",
|
|
502
502
|
secondary: "border-gryt-secondary/40 bg-gryt-secondary/12 text-gryt-secondary",
|
|
503
503
|
success: "border-gryt-success/40 bg-gryt-success/12 text-gryt-success",
|
|
504
504
|
warning: "border-gryt-warning/40 bg-gryt-warning/12 text-gryt-warning",
|
|
505
505
|
danger: "border-gryt-danger/40 bg-gryt-danger/12 text-gryt-danger"
|
|
506
|
-
},
|
|
506
|
+
}, mo = s(function({ children: t, className: e, icon: r, label: i, onDelete: c, tone: l = "neutral", ...m }, u) {
|
|
507
507
|
return /* @__PURE__ */ d(
|
|
508
508
|
"span",
|
|
509
509
|
{
|
|
510
|
-
ref:
|
|
510
|
+
ref: u,
|
|
511
511
|
className: n(
|
|
512
512
|
"gryt-chip inline-flex items-center gap-1.5 rounded-(--gryt-radius-full) border px-3 py-1 text-xs font-medium",
|
|
513
|
-
|
|
513
|
+
Qt[l],
|
|
514
514
|
e
|
|
515
515
|
),
|
|
516
|
-
...
|
|
516
|
+
...m,
|
|
517
517
|
children: [
|
|
518
518
|
r,
|
|
519
519
|
i ?? t,
|
|
@@ -526,18 +526,18 @@ const Lt = {
|
|
|
526
526
|
className: n(
|
|
527
527
|
"-mr-1 inline-flex h-4 w-4 items-center justify-center rounded-(--gryt-radius-full)",
|
|
528
528
|
"opacity-70 transition-opacity hover:opacity-100",
|
|
529
|
-
|
|
529
|
+
b
|
|
530
530
|
),
|
|
531
|
-
children: /* @__PURE__ */ o(
|
|
531
|
+
children: /* @__PURE__ */ o(ct, { size: 10, weight: "bold", "aria-hidden": "true" })
|
|
532
532
|
}
|
|
533
533
|
) : null
|
|
534
534
|
]
|
|
535
535
|
}
|
|
536
536
|
);
|
|
537
|
-
}),
|
|
537
|
+
}), po = s(
|
|
538
538
|
function({ className: t, tone: e = "primary", ...r }, i) {
|
|
539
539
|
return /* @__PURE__ */ o(
|
|
540
|
-
|
|
540
|
+
q.Root,
|
|
541
541
|
{
|
|
542
542
|
ref: i,
|
|
543
543
|
className: n(
|
|
@@ -550,15 +550,15 @@ const Lt = {
|
|
|
550
550
|
"hover:not-data-disabled:border-gryt-accent-light",
|
|
551
551
|
"motion-safe:hover:not-data-disabled:scale-[1.08]",
|
|
552
552
|
"motion-safe:active:not-data-disabled:scale-[0.92]",
|
|
553
|
-
|
|
554
|
-
|
|
553
|
+
b,
|
|
554
|
+
G,
|
|
555
555
|
// Unchecked stays a neutral outline; the tone only paints once checked.
|
|
556
|
-
|
|
556
|
+
Et[e],
|
|
557
557
|
t
|
|
558
558
|
),
|
|
559
559
|
...r,
|
|
560
560
|
children: /* @__PURE__ */ o(
|
|
561
|
-
|
|
561
|
+
q.Indicator,
|
|
562
562
|
{
|
|
563
563
|
keepMounted: !0,
|
|
564
564
|
className: n(
|
|
@@ -571,15 +571,15 @@ const Lt = {
|
|
|
571
571
|
"data-unchecked:scale-0 data-unchecked:opacity-0",
|
|
572
572
|
"motion-reduce:transition-none"
|
|
573
573
|
),
|
|
574
|
-
children: /* @__PURE__ */ o(
|
|
574
|
+
children: /* @__PURE__ */ o(lt, { size: 12, weight: "bold" })
|
|
575
575
|
}
|
|
576
576
|
)
|
|
577
577
|
}
|
|
578
578
|
);
|
|
579
579
|
}
|
|
580
|
-
),
|
|
580
|
+
), bo = s(function({ className: t, tone: e = "primary", ...r }, i) {
|
|
581
581
|
return /* @__PURE__ */ o(
|
|
582
|
-
|
|
582
|
+
tt.Root,
|
|
583
583
|
{
|
|
584
584
|
ref: i,
|
|
585
585
|
className: n(
|
|
@@ -589,15 +589,15 @@ const Lt = {
|
|
|
589
589
|
"hover:not-data-disabled:border-gryt-accent-light",
|
|
590
590
|
"motion-safe:hover:not-data-disabled:scale-[1.08]",
|
|
591
591
|
"motion-safe:active:not-data-disabled:scale-[0.92]",
|
|
592
|
-
|
|
593
|
-
|
|
592
|
+
b,
|
|
593
|
+
G,
|
|
594
594
|
// Border takes the tone when selected; the dot inside carries the fill.
|
|
595
|
-
|
|
595
|
+
_t[e],
|
|
596
596
|
t
|
|
597
597
|
),
|
|
598
598
|
...r,
|
|
599
599
|
children: /* @__PURE__ */ o(
|
|
600
|
-
|
|
600
|
+
tt.Indicator,
|
|
601
601
|
{
|
|
602
602
|
keepMounted: !0,
|
|
603
603
|
className: n(
|
|
@@ -606,16 +606,16 @@ const Lt = {
|
|
|
606
606
|
// From 0, for the same reason as the Checkbox tick — see the note there.
|
|
607
607
|
"data-unchecked:scale-0 data-unchecked:opacity-0",
|
|
608
608
|
"motion-reduce:transition-none",
|
|
609
|
-
|
|
609
|
+
gt[e]
|
|
610
610
|
)
|
|
611
611
|
}
|
|
612
612
|
)
|
|
613
613
|
}
|
|
614
614
|
);
|
|
615
|
-
}),
|
|
615
|
+
}), fo = s(
|
|
616
616
|
function({ className: t, ...e }, r) {
|
|
617
617
|
return /* @__PURE__ */ o(
|
|
618
|
-
|
|
618
|
+
St,
|
|
619
619
|
{
|
|
620
620
|
ref: r,
|
|
621
621
|
className: n("gryt-radio-group flex flex-col gap-2", t),
|
|
@@ -623,10 +623,10 @@ const Lt = {
|
|
|
623
623
|
}
|
|
624
624
|
);
|
|
625
625
|
}
|
|
626
|
-
),
|
|
626
|
+
), xo = s(
|
|
627
627
|
function({ className: t, tone: e = "primary", ...r }, i) {
|
|
628
628
|
return /* @__PURE__ */ o(
|
|
629
|
-
|
|
629
|
+
et.Root,
|
|
630
630
|
{
|
|
631
631
|
ref: i,
|
|
632
632
|
className: n(
|
|
@@ -637,14 +637,14 @@ const Lt = {
|
|
|
637
637
|
"hover:not-data-disabled:border-gryt-accent-light",
|
|
638
638
|
"motion-safe:hover:not-data-disabled:scale-[1.05]",
|
|
639
639
|
"motion-safe:active:not-data-disabled:scale-[0.95]",
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
640
|
+
b,
|
|
641
|
+
G,
|
|
642
|
+
Ht[e],
|
|
643
643
|
t
|
|
644
644
|
),
|
|
645
645
|
...r,
|
|
646
646
|
children: /* @__PURE__ */ o(
|
|
647
|
-
|
|
647
|
+
et.Thumb,
|
|
648
648
|
{
|
|
649
649
|
className: n(
|
|
650
650
|
"h-4.5 w-4.5 rounded-(--gryt-radius-full) bg-gryt-text",
|
|
@@ -656,25 +656,49 @@ const Lt = {
|
|
|
656
656
|
}
|
|
657
657
|
);
|
|
658
658
|
}
|
|
659
|
-
);
|
|
660
|
-
function
|
|
659
|
+
), at = 3;
|
|
660
|
+
function ho({
|
|
661
661
|
className: a,
|
|
662
662
|
tone: t = "primary",
|
|
663
663
|
"aria-label": e,
|
|
664
664
|
...r
|
|
665
665
|
}) {
|
|
666
|
-
|
|
667
|
-
|
|
666
|
+
const [i, c] = bt(!1), l = st(null);
|
|
667
|
+
ft(() => {
|
|
668
|
+
if (!i && l.current === null)
|
|
669
|
+
return;
|
|
670
|
+
const y = () => {
|
|
671
|
+
l.current = null, c(!1);
|
|
672
|
+
};
|
|
673
|
+
return window.addEventListener("pointerup", y), window.addEventListener("pointercancel", y), () => {
|
|
674
|
+
window.removeEventListener("pointerup", y), window.removeEventListener("pointercancel", y);
|
|
675
|
+
};
|
|
676
|
+
}, [i]);
|
|
677
|
+
function m(y) {
|
|
678
|
+
l.current = { x: y.clientX, y: y.clientY };
|
|
679
|
+
}
|
|
680
|
+
function u(y) {
|
|
681
|
+
const N = l.current;
|
|
682
|
+
if (N === null || i)
|
|
683
|
+
return;
|
|
684
|
+
(Math.abs(y.clientX - N.x) > at || Math.abs(y.clientY - N.y) > at) && c(!0);
|
|
685
|
+
}
|
|
686
|
+
const w = i ? "transition-none" : "duration-(--gryt-dur-spring) ease-spring-tight motion-reduce:transition-none";
|
|
687
|
+
return /* @__PURE__ */ o(B.Root, { className: n("gryt-slider w-full", a), ...r, children: /* @__PURE__ */ o(
|
|
688
|
+
B.Control,
|
|
668
689
|
{
|
|
669
|
-
className:
|
|
670
|
-
|
|
671
|
-
|
|
690
|
+
className: "flex w-full touch-none items-center py-2 select-none",
|
|
691
|
+
onPointerDown: m,
|
|
692
|
+
onPointerMove: u,
|
|
693
|
+
children: /* @__PURE__ */ d(B.Track, { className: "h-1.5 w-full rounded-(--gryt-radius-full) bg-gryt-surface-raised select-none", children: [
|
|
672
694
|
/* @__PURE__ */ o(
|
|
673
695
|
B.Indicator,
|
|
674
696
|
{
|
|
675
697
|
className: n(
|
|
676
698
|
"h-full rounded-(--gryt-radius-full) select-none",
|
|
677
|
-
|
|
699
|
+
"transition-[width]",
|
|
700
|
+
w,
|
|
701
|
+
gt[t]
|
|
678
702
|
)
|
|
679
703
|
}
|
|
680
704
|
),
|
|
@@ -683,22 +707,37 @@ function po({
|
|
|
683
707
|
{
|
|
684
708
|
"aria-label": e,
|
|
685
709
|
className: n(
|
|
686
|
-
"h-4 w-4 rounded-(--gryt-radius-full)
|
|
687
|
-
"transition-
|
|
688
|
-
|
|
689
|
-
|
|
710
|
+
"group h-4 w-4 rounded-(--gryt-radius-full) select-none",
|
|
711
|
+
"transition-[inset-inline-start]",
|
|
712
|
+
w,
|
|
713
|
+
// The ring goes on the thumb but the focus lands on the visually
|
|
714
|
+
// hidden input inside it, so this has to match a descendant.
|
|
715
|
+
// Without it the slider is the one control here you cannot see
|
|
716
|
+
// yourself tab to.
|
|
717
|
+
Vt
|
|
718
|
+
),
|
|
719
|
+
children: /* @__PURE__ */ o(
|
|
720
|
+
"span",
|
|
721
|
+
{
|
|
722
|
+
className: n(
|
|
723
|
+
"block h-full w-full rounded-(--gryt-radius-full) bg-gryt-text",
|
|
724
|
+
"transition-[scale] duration-(--gryt-dur-spring) ease-spring",
|
|
725
|
+
"motion-safe:group-hover:scale-[1.12] motion-safe:group-active:scale-[0.94]",
|
|
726
|
+
"motion-reduce:transition-none"
|
|
727
|
+
)
|
|
728
|
+
}
|
|
690
729
|
)
|
|
691
730
|
}
|
|
692
731
|
)
|
|
693
|
-
] })
|
|
732
|
+
] })
|
|
694
733
|
}
|
|
695
|
-
);
|
|
734
|
+
) });
|
|
696
735
|
}
|
|
697
|
-
const
|
|
736
|
+
const Jt = {
|
|
698
737
|
small: "min-h-9 px-3 text-sm",
|
|
699
738
|
medium: "min-h-11 px-4 text-sm"
|
|
700
739
|
};
|
|
701
|
-
function
|
|
740
|
+
function wo({
|
|
702
741
|
className: a,
|
|
703
742
|
label: t,
|
|
704
743
|
options: e = [],
|
|
@@ -706,11 +745,11 @@ function bo({
|
|
|
706
745
|
size: i = "medium",
|
|
707
746
|
...c
|
|
708
747
|
}) {
|
|
709
|
-
return /* @__PURE__ */ d(
|
|
748
|
+
return /* @__PURE__ */ d(x.Root, { items: e, ...c, children: [
|
|
710
749
|
/* @__PURE__ */ d("div", { className: n("gryt-select flex w-full flex-col gap-1.5", a), children: [
|
|
711
|
-
t ? /* @__PURE__ */ o(
|
|
750
|
+
t ? /* @__PURE__ */ o(x.Label, { className: "text-xs font-medium text-gryt-muted", children: t }) : null,
|
|
712
751
|
/* @__PURE__ */ d(
|
|
713
|
-
|
|
752
|
+
x.Trigger,
|
|
714
753
|
{
|
|
715
754
|
className: n(
|
|
716
755
|
"flex w-full items-center justify-between gap-2",
|
|
@@ -718,22 +757,22 @@ function bo({
|
|
|
718
757
|
"text-gryt-text select-none",
|
|
719
758
|
"transition-colors duration-150 hover:border-gryt-accent-light",
|
|
720
759
|
"data-disabled:cursor-not-allowed data-disabled:opacity-60",
|
|
721
|
-
|
|
722
|
-
|
|
760
|
+
b,
|
|
761
|
+
Jt[i]
|
|
723
762
|
),
|
|
724
763
|
children: [
|
|
725
|
-
/* @__PURE__ */ o(
|
|
726
|
-
/* @__PURE__ */ o(
|
|
764
|
+
/* @__PURE__ */ o(x.Value, { placeholder: r }),
|
|
765
|
+
/* @__PURE__ */ o(x.Icon, { className: "shrink-0 text-gryt-muted", children: /* @__PURE__ */ o(Pt, { size: 16 }) })
|
|
727
766
|
]
|
|
728
767
|
}
|
|
729
768
|
)
|
|
730
769
|
] }),
|
|
731
|
-
/* @__PURE__ */ o(
|
|
732
|
-
|
|
770
|
+
/* @__PURE__ */ o(x.Portal, { children: /* @__PURE__ */ o(x.Positioner, { sideOffset: 6, className: "outline-none", children: /* @__PURE__ */ o(
|
|
771
|
+
x.Popup,
|
|
733
772
|
{
|
|
734
|
-
className: n("min-w-(--anchor-width) p-1",
|
|
735
|
-
children: /* @__PURE__ */ o(
|
|
736
|
-
|
|
773
|
+
className: n("min-w-(--anchor-width) p-1", S, R),
|
|
774
|
+
children: /* @__PURE__ */ o(x.List, { children: e.map((l) => /* @__PURE__ */ d(
|
|
775
|
+
x.Item,
|
|
737
776
|
{
|
|
738
777
|
value: l.value,
|
|
739
778
|
disabled: l.disabled,
|
|
@@ -744,8 +783,8 @@ function bo({
|
|
|
744
783
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50"
|
|
745
784
|
),
|
|
746
785
|
children: [
|
|
747
|
-
/* @__PURE__ */ o(
|
|
748
|
-
/* @__PURE__ */ o(
|
|
786
|
+
/* @__PURE__ */ o(x.ItemText, { children: l.label }),
|
|
787
|
+
/* @__PURE__ */ o(x.ItemIndicator, { className: "text-gryt-accent", children: /* @__PURE__ */ o(lt, { size: 14, weight: "bold" }) })
|
|
749
788
|
]
|
|
750
789
|
},
|
|
751
790
|
String(l.value)
|
|
@@ -754,22 +793,22 @@ function bo({
|
|
|
754
793
|
) }) })
|
|
755
794
|
] });
|
|
756
795
|
}
|
|
757
|
-
function
|
|
796
|
+
function vo({
|
|
758
797
|
children: a,
|
|
759
798
|
className: t,
|
|
760
799
|
side: e = "top",
|
|
761
800
|
sideOffset: r = 8,
|
|
762
801
|
title: i
|
|
763
802
|
}) {
|
|
764
|
-
return /* @__PURE__ */ d(
|
|
765
|
-
/* @__PURE__ */ o(
|
|
766
|
-
/* @__PURE__ */ o(
|
|
767
|
-
|
|
803
|
+
return /* @__PURE__ */ d(D.Root, { children: [
|
|
804
|
+
/* @__PURE__ */ o(D.Trigger, { render: a }),
|
|
805
|
+
/* @__PURE__ */ o(D.Portal, { children: /* @__PURE__ */ o(D.Positioner, { side: e, sideOffset: r, children: /* @__PURE__ */ o(
|
|
806
|
+
D.Popup,
|
|
768
807
|
{
|
|
769
808
|
className: n(
|
|
770
809
|
"gryt-tooltip rounded-(--gryt-radius-md) border border-gryt-border bg-gryt-surface-raised",
|
|
771
810
|
"px-2.5 py-1.5 text-xs text-gryt-text",
|
|
772
|
-
|
|
811
|
+
R,
|
|
773
812
|
t
|
|
774
813
|
),
|
|
775
814
|
children: i
|
|
@@ -777,10 +816,10 @@ function fo({
|
|
|
777
816
|
) }) })
|
|
778
817
|
] });
|
|
779
818
|
}
|
|
780
|
-
const
|
|
819
|
+
const No = D.Provider, Po = s(
|
|
781
820
|
function({ className: t, orientation: e = "horizontal", ...r }, i) {
|
|
782
821
|
return /* @__PURE__ */ o(
|
|
783
|
-
|
|
822
|
+
Rt,
|
|
784
823
|
{
|
|
785
824
|
ref: i,
|
|
786
825
|
orientation: e,
|
|
@@ -793,7 +832,7 @@ const xo = R.Provider, ho = s(
|
|
|
793
832
|
}
|
|
794
833
|
);
|
|
795
834
|
}
|
|
796
|
-
),
|
|
835
|
+
), ko = s(function({ className: t, ...e }, r) {
|
|
797
836
|
return /* @__PURE__ */ o(
|
|
798
837
|
"div",
|
|
799
838
|
{
|
|
@@ -806,7 +845,7 @@ const xo = R.Provider, ho = s(
|
|
|
806
845
|
}
|
|
807
846
|
);
|
|
808
847
|
});
|
|
809
|
-
function
|
|
848
|
+
function To({
|
|
810
849
|
children: a,
|
|
811
850
|
className: t,
|
|
812
851
|
subheader: e,
|
|
@@ -826,7 +865,7 @@ function vo({
|
|
|
826
865
|
}
|
|
827
866
|
);
|
|
828
867
|
}
|
|
829
|
-
function
|
|
868
|
+
function $o({
|
|
830
869
|
className: a,
|
|
831
870
|
...t
|
|
832
871
|
}) {
|
|
@@ -841,7 +880,7 @@ function No({
|
|
|
841
880
|
}
|
|
842
881
|
);
|
|
843
882
|
}
|
|
844
|
-
function
|
|
883
|
+
function Co({
|
|
845
884
|
className: a,
|
|
846
885
|
...t
|
|
847
886
|
}) {
|
|
@@ -856,12 +895,12 @@ function Po({
|
|
|
856
895
|
}
|
|
857
896
|
);
|
|
858
897
|
}
|
|
859
|
-
const
|
|
898
|
+
const Kt = {
|
|
860
899
|
info: "border-gryt-secondary/40 bg-gryt-secondary/10 text-gryt-secondary",
|
|
861
900
|
success: "border-gryt-success/40 bg-gryt-success/10 text-gryt-success",
|
|
862
901
|
warning: "border-gryt-warning/40 bg-gryt-warning/10 text-gryt-warning",
|
|
863
902
|
error: "border-gryt-danger/40 bg-gryt-danger/10 text-gryt-danger"
|
|
864
|
-
},
|
|
903
|
+
}, So = s(function({ className: t, severity: e = "info", ...r }, i) {
|
|
865
904
|
return /* @__PURE__ */ o(
|
|
866
905
|
"div",
|
|
867
906
|
{
|
|
@@ -869,31 +908,31 @@ const Qt = {
|
|
|
869
908
|
role: "alert",
|
|
870
909
|
className: n(
|
|
871
910
|
"gryt-alert rounded-(--gryt-radius-lg) border px-4 py-3 text-sm",
|
|
872
|
-
|
|
911
|
+
Kt[e],
|
|
873
912
|
t
|
|
874
913
|
),
|
|
875
914
|
...r
|
|
876
915
|
}
|
|
877
916
|
);
|
|
878
917
|
});
|
|
879
|
-
function
|
|
918
|
+
function Ro({ className: a, value: t = null, ...e }) {
|
|
880
919
|
return /* @__PURE__ */ o(
|
|
881
|
-
|
|
920
|
+
O.Root,
|
|
882
921
|
{
|
|
883
922
|
value: t,
|
|
884
923
|
className: n("gryt-progress w-full", a),
|
|
885
924
|
...e,
|
|
886
|
-
children: /* @__PURE__ */ o(
|
|
925
|
+
children: /* @__PURE__ */ o(O.Track, { className: "h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised", children: /* @__PURE__ */ o(O.Indicator, { className: "h-full rounded-(--gryt-radius-full) bg-gryt-accent transition-[width] duration-(--gryt-dur-spring-soft) ease-spring motion-reduce:transition-none" }) })
|
|
887
926
|
}
|
|
888
927
|
);
|
|
889
928
|
}
|
|
890
|
-
function
|
|
929
|
+
function Io({
|
|
891
930
|
className: a,
|
|
892
931
|
size: t = 24,
|
|
893
932
|
"aria-label": e = "Loading"
|
|
894
933
|
}) {
|
|
895
934
|
return /* @__PURE__ */ o(
|
|
896
|
-
|
|
935
|
+
kt,
|
|
897
936
|
{
|
|
898
937
|
role: "status",
|
|
899
938
|
"aria-label": e,
|
|
@@ -906,13 +945,13 @@ function $o({
|
|
|
906
945
|
}
|
|
907
946
|
);
|
|
908
947
|
}
|
|
909
|
-
const
|
|
948
|
+
const Zt = {
|
|
910
949
|
text: "h-4 rounded-(--gryt-radius-sm)",
|
|
911
950
|
rounded: "rounded-(--gryt-radius-lg)",
|
|
912
951
|
circular: "rounded-(--gryt-radius-full)",
|
|
913
952
|
rectangular: "rounded-none"
|
|
914
953
|
};
|
|
915
|
-
function
|
|
954
|
+
function Do({
|
|
916
955
|
className: a,
|
|
917
956
|
height: t,
|
|
918
957
|
style: e,
|
|
@@ -931,7 +970,7 @@ function Co({
|
|
|
931
970
|
"aria-hidden": "true",
|
|
932
971
|
className: n(
|
|
933
972
|
"gryt-skeleton bg-gryt-surface-raised motion-safe:animate-pulse",
|
|
934
|
-
|
|
973
|
+
Zt[r],
|
|
935
974
|
a
|
|
936
975
|
),
|
|
937
976
|
style: l,
|
|
@@ -939,16 +978,16 @@ function Co({
|
|
|
939
978
|
}
|
|
940
979
|
);
|
|
941
980
|
}
|
|
942
|
-
const
|
|
981
|
+
const ut = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none", qt = s(
|
|
943
982
|
function({ className: t, ...e }, r) {
|
|
944
983
|
return /* @__PURE__ */ o(
|
|
945
|
-
|
|
984
|
+
$.Backdrop,
|
|
946
985
|
{
|
|
947
986
|
ref: r,
|
|
948
987
|
className: n(
|
|
949
988
|
"gryt-dialog-backdrop fixed inset-0 min-h-dvh bg-black/60",
|
|
950
989
|
"backdrop-blur-(--gryt-backdrop-blur)",
|
|
951
|
-
|
|
990
|
+
ut,
|
|
952
991
|
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
953
992
|
t
|
|
954
993
|
),
|
|
@@ -956,17 +995,17 @@ const lt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
956
995
|
}
|
|
957
996
|
);
|
|
958
997
|
}
|
|
959
|
-
),
|
|
998
|
+
), te = s(
|
|
960
999
|
function({ className: t, ...e }, r) {
|
|
961
1000
|
return /* @__PURE__ */ o(
|
|
962
|
-
|
|
1001
|
+
$.Popup,
|
|
963
1002
|
{
|
|
964
1003
|
ref: r,
|
|
965
1004
|
className: n(
|
|
966
1005
|
"gryt-dialog fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
|
|
967
1006
|
"flex w-96 max-w-[calc(100vw-3rem)] flex-col gap-4",
|
|
968
1007
|
"rounded-(--gryt-radius-lg) border border-gryt-border bg-gryt-surface p-5 text-gryt-text",
|
|
969
|
-
|
|
1008
|
+
ut,
|
|
970
1009
|
"data-starting-style:scale-[0.98] data-starting-style:opacity-0",
|
|
971
1010
|
"data-ending-style:scale-[0.98] data-ending-style:opacity-0",
|
|
972
1011
|
t
|
|
@@ -975,10 +1014,10 @@ const lt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
975
1014
|
}
|
|
976
1015
|
);
|
|
977
1016
|
}
|
|
978
|
-
),
|
|
1017
|
+
), ee = s(
|
|
979
1018
|
function({ className: t, ...e }, r) {
|
|
980
1019
|
return /* @__PURE__ */ o(
|
|
981
|
-
|
|
1020
|
+
$.Title,
|
|
982
1021
|
{
|
|
983
1022
|
ref: r,
|
|
984
1023
|
className: n(
|
|
@@ -989,10 +1028,10 @@ const lt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
989
1028
|
}
|
|
990
1029
|
);
|
|
991
1030
|
}
|
|
992
|
-
),
|
|
1031
|
+
), re = s(
|
|
993
1032
|
function({ className: t, ...e }, r) {
|
|
994
1033
|
return /* @__PURE__ */ o(
|
|
995
|
-
|
|
1034
|
+
$.Description,
|
|
996
1035
|
{
|
|
997
1036
|
ref: r,
|
|
998
1037
|
className: n(
|
|
@@ -1003,7 +1042,7 @@ const lt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
1003
1042
|
}
|
|
1004
1043
|
);
|
|
1005
1044
|
}
|
|
1006
|
-
),
|
|
1045
|
+
), oe = s(
|
|
1007
1046
|
function({ className: t, ...e }, r) {
|
|
1008
1047
|
return /* @__PURE__ */ o(
|
|
1009
1048
|
"div",
|
|
@@ -1017,45 +1056,45 @@ const lt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
1017
1056
|
}
|
|
1018
1057
|
);
|
|
1019
1058
|
}
|
|
1020
|
-
),
|
|
1021
|
-
Root:
|
|
1022
|
-
Trigger:
|
|
1023
|
-
Portal:
|
|
1024
|
-
Close:
|
|
1025
|
-
Backdrop:
|
|
1026
|
-
Popup:
|
|
1027
|
-
Title:
|
|
1028
|
-
Description:
|
|
1029
|
-
Footer:
|
|
1030
|
-
},
|
|
1059
|
+
), Ao = {
|
|
1060
|
+
Root: $.Root,
|
|
1061
|
+
Trigger: $.Trigger,
|
|
1062
|
+
Portal: $.Portal,
|
|
1063
|
+
Close: $.Close,
|
|
1064
|
+
Backdrop: qt,
|
|
1065
|
+
Popup: te,
|
|
1066
|
+
Title: ee,
|
|
1067
|
+
Description: re,
|
|
1068
|
+
Footer: oe
|
|
1069
|
+
}, ae = () => () => {
|
|
1031
1070
|
};
|
|
1032
|
-
function
|
|
1033
|
-
const t =
|
|
1071
|
+
function ne(a) {
|
|
1072
|
+
const t = U(
|
|
1034
1073
|
(r) => {
|
|
1035
|
-
if (typeof window > "u" || !window.matchMedia) return
|
|
1074
|
+
if (typeof window > "u" || !window.matchMedia) return ae();
|
|
1036
1075
|
const i = window.matchMedia(a);
|
|
1037
1076
|
return i.addEventListener("change", r), () => i.removeEventListener("change", r);
|
|
1038
1077
|
},
|
|
1039
1078
|
[a]
|
|
1040
|
-
), e =
|
|
1041
|
-
return
|
|
1079
|
+
), e = U(() => typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia(a).matches, [a]);
|
|
1080
|
+
return xt(t, e, () => !1);
|
|
1042
1081
|
}
|
|
1043
|
-
const
|
|
1082
|
+
const ie = {
|
|
1044
1083
|
left: "left",
|
|
1045
1084
|
right: "right",
|
|
1046
1085
|
top: "up",
|
|
1047
1086
|
bottom: "down"
|
|
1048
|
-
},
|
|
1087
|
+
}, _ = ht("right"), se = {
|
|
1049
1088
|
left: "items-stretch justify-start",
|
|
1050
1089
|
right: "items-stretch justify-end",
|
|
1051
1090
|
top: "items-start justify-center",
|
|
1052
1091
|
bottom: "items-end justify-center"
|
|
1053
|
-
},
|
|
1092
|
+
}, ce = {
|
|
1054
1093
|
left: "rounded-r-(--gryt-radius-xl)",
|
|
1055
1094
|
right: "rounded-l-(--gryt-radius-xl)",
|
|
1056
1095
|
top: "rounded-b-(--gryt-radius-xl)",
|
|
1057
1096
|
bottom: "rounded-t-(--gryt-radius-xl)"
|
|
1058
|
-
},
|
|
1097
|
+
}, le = {
|
|
1059
1098
|
left: [
|
|
1060
1099
|
"h-full w-[calc(20rem+var(--gryt-drawer-bleed))] max-w-[calc(85vw+var(--gryt-drawer-bleed))]",
|
|
1061
1100
|
"-ml-(--gryt-drawer-bleed) border-r py-5 pr-5 pl-[calc(1.25rem+var(--gryt-drawer-bleed))]",
|
|
@@ -1085,20 +1124,20 @@ const re = {
|
|
|
1085
1124
|
"data-ending-style:[transform:translateY(calc(100%-var(--gryt-drawer-bleed)))]"
|
|
1086
1125
|
].join(" ")
|
|
1087
1126
|
};
|
|
1088
|
-
function
|
|
1127
|
+
function de({
|
|
1089
1128
|
side: a = "right",
|
|
1090
1129
|
sheetOnMobile: t = !0,
|
|
1091
1130
|
children: e,
|
|
1092
1131
|
...r
|
|
1093
1132
|
}) {
|
|
1094
|
-
const i =
|
|
1095
|
-
return /* @__PURE__ */ o(
|
|
1133
|
+
const i = ne("(max-width: 767px)"), c = t && i ? "bottom" : a;
|
|
1134
|
+
return /* @__PURE__ */ o(_.Provider, { value: c, children: /* @__PURE__ */ o(v.Root, { swipeDirection: ie[c], ...r, children: e }) });
|
|
1096
1135
|
}
|
|
1097
|
-
const
|
|
1136
|
+
const ge = s(
|
|
1098
1137
|
function({ className: t, ...e }, r) {
|
|
1099
|
-
const i = W(
|
|
1138
|
+
const i = W(_);
|
|
1100
1139
|
return /* @__PURE__ */ o(
|
|
1101
|
-
|
|
1140
|
+
v.Viewport,
|
|
1102
1141
|
{
|
|
1103
1142
|
ref: r,
|
|
1104
1143
|
className: n(
|
|
@@ -1106,17 +1145,17 @@ const ie = s(
|
|
|
1106
1145
|
// viewport is what has to sit above the page. Without it a sticky
|
|
1107
1146
|
// site header renders over the panel.
|
|
1108
1147
|
"gryt-drawer-viewport fixed inset-0 z-50 flex",
|
|
1109
|
-
|
|
1148
|
+
se[i],
|
|
1110
1149
|
t
|
|
1111
1150
|
),
|
|
1112
1151
|
...e
|
|
1113
1152
|
}
|
|
1114
1153
|
);
|
|
1115
1154
|
}
|
|
1116
|
-
),
|
|
1117
|
-
const i = W(
|
|
1155
|
+
), ue = s(function({ className: t, ...e }, r) {
|
|
1156
|
+
const i = W(_);
|
|
1118
1157
|
return /* @__PURE__ */ o(
|
|
1119
|
-
|
|
1158
|
+
v.Popup,
|
|
1120
1159
|
{
|
|
1121
1160
|
ref: r,
|
|
1122
1161
|
className: n(
|
|
@@ -1127,16 +1166,16 @@ const ie = s(
|
|
|
1127
1166
|
// duration here turns a drag into a drag plus lag.
|
|
1128
1167
|
"data-swiping:duration-0 data-swiping:select-none",
|
|
1129
1168
|
"motion-reduce:transition-none",
|
|
1130
|
-
|
|
1131
|
-
|
|
1169
|
+
le[i],
|
|
1170
|
+
ce[i],
|
|
1132
1171
|
t
|
|
1133
1172
|
),
|
|
1134
1173
|
...e
|
|
1135
1174
|
}
|
|
1136
1175
|
);
|
|
1137
|
-
}),
|
|
1176
|
+
}), ye = s(function({ className: t, ...e }, r) {
|
|
1138
1177
|
return /* @__PURE__ */ o(
|
|
1139
|
-
|
|
1178
|
+
v.Backdrop,
|
|
1140
1179
|
{
|
|
1141
1180
|
ref: r,
|
|
1142
1181
|
className: n(
|
|
@@ -1155,8 +1194,8 @@ const ie = s(
|
|
|
1155
1194
|
}
|
|
1156
1195
|
);
|
|
1157
1196
|
});
|
|
1158
|
-
function
|
|
1159
|
-
const t = W(
|
|
1197
|
+
function me({ className: a }) {
|
|
1198
|
+
const t = W(_);
|
|
1160
1199
|
return t !== "bottom" && t !== "top" ? null : /* @__PURE__ */ o(
|
|
1161
1200
|
"div",
|
|
1162
1201
|
{
|
|
@@ -1169,22 +1208,22 @@ function de({ className: a }) {
|
|
|
1169
1208
|
}
|
|
1170
1209
|
);
|
|
1171
1210
|
}
|
|
1172
|
-
const
|
|
1173
|
-
Root:
|
|
1174
|
-
Trigger:
|
|
1175
|
-
Portal:
|
|
1176
|
-
Backdrop:
|
|
1177
|
-
Viewport:
|
|
1178
|
-
Popup:
|
|
1179
|
-
Content:
|
|
1180
|
-
Grabber:
|
|
1181
|
-
Close:
|
|
1182
|
-
Title:
|
|
1183
|
-
Description:
|
|
1184
|
-
},
|
|
1211
|
+
const Mo = {
|
|
1212
|
+
Root: de,
|
|
1213
|
+
Trigger: v.Trigger,
|
|
1214
|
+
Portal: v.Portal,
|
|
1215
|
+
Backdrop: ye,
|
|
1216
|
+
Viewport: ge,
|
|
1217
|
+
Popup: ue,
|
|
1218
|
+
Content: v.Content,
|
|
1219
|
+
Grabber: me,
|
|
1220
|
+
Close: v.Close,
|
|
1221
|
+
Title: v.Title,
|
|
1222
|
+
Description: v.Description
|
|
1223
|
+
}, pe = s(
|
|
1185
1224
|
function({ className: t, sideOffset: e = 8, ...r }, i) {
|
|
1186
1225
|
return /* @__PURE__ */ o(
|
|
1187
|
-
|
|
1226
|
+
A.Positioner,
|
|
1188
1227
|
{
|
|
1189
1228
|
ref: i,
|
|
1190
1229
|
sideOffset: e,
|
|
@@ -1193,23 +1232,23 @@ const Ro = {
|
|
|
1193
1232
|
}
|
|
1194
1233
|
);
|
|
1195
1234
|
}
|
|
1196
|
-
),
|
|
1235
|
+
), be = s(function({ className: t, ...e }, r) {
|
|
1197
1236
|
return /* @__PURE__ */ o(
|
|
1198
|
-
|
|
1237
|
+
A.Popup,
|
|
1199
1238
|
{
|
|
1200
1239
|
ref: r,
|
|
1201
1240
|
className: n(
|
|
1202
1241
|
"gryt-menu min-w-44 p-1 outline-none",
|
|
1203
|
-
|
|
1204
|
-
|
|
1242
|
+
S,
|
|
1243
|
+
R,
|
|
1205
1244
|
t
|
|
1206
1245
|
),
|
|
1207
1246
|
...e
|
|
1208
1247
|
}
|
|
1209
1248
|
);
|
|
1210
|
-
}),
|
|
1249
|
+
}), fe = s(function({ className: t, ...e }, r) {
|
|
1211
1250
|
return /* @__PURE__ */ o(
|
|
1212
|
-
|
|
1251
|
+
A.Item,
|
|
1213
1252
|
{
|
|
1214
1253
|
ref: r,
|
|
1215
1254
|
className: n(
|
|
@@ -1224,45 +1263,57 @@ const Ro = {
|
|
|
1224
1263
|
...e
|
|
1225
1264
|
}
|
|
1226
1265
|
);
|
|
1227
|
-
}),
|
|
1266
|
+
}), xe = s(function({ className: t, ...e }, r) {
|
|
1228
1267
|
return /* @__PURE__ */ o(
|
|
1229
|
-
|
|
1268
|
+
A.Separator,
|
|
1230
1269
|
{
|
|
1231
1270
|
ref: r,
|
|
1232
1271
|
className: n("gryt-menu-separator my-1 h-px bg-gryt-border", t),
|
|
1233
1272
|
...e
|
|
1234
1273
|
}
|
|
1235
1274
|
);
|
|
1236
|
-
}),
|
|
1237
|
-
Root:
|
|
1238
|
-
Trigger:
|
|
1239
|
-
Portal:
|
|
1240
|
-
Positioner:
|
|
1241
|
-
Popup:
|
|
1242
|
-
Item:
|
|
1243
|
-
Separator:
|
|
1244
|
-
},
|
|
1275
|
+
}), Y = {
|
|
1276
|
+
Root: A.Root,
|
|
1277
|
+
Trigger: A.Trigger,
|
|
1278
|
+
Portal: A.Portal,
|
|
1279
|
+
Positioner: pe,
|
|
1280
|
+
Popup: be,
|
|
1281
|
+
Item: fe,
|
|
1282
|
+
Separator: xe
|
|
1283
|
+
}, he = s(function({ className: t, ...e }, r) {
|
|
1245
1284
|
return /* @__PURE__ */ o(
|
|
1246
1285
|
V.Root,
|
|
1247
1286
|
{
|
|
1248
1287
|
ref: r,
|
|
1249
|
-
className: n(
|
|
1288
|
+
className: n(
|
|
1289
|
+
"gryt-tabs",
|
|
1290
|
+
// Vertical puts the rail and the panel side by side. min-w-0 on the
|
|
1291
|
+
// panel does the rest; without the flex here the panel lands under the
|
|
1292
|
+
// rail and the layout reads as a very tall accordion.
|
|
1293
|
+
"data-[orientation=vertical]:flex data-[orientation=vertical]:items-stretch",
|
|
1294
|
+
t
|
|
1295
|
+
),
|
|
1250
1296
|
...e
|
|
1251
1297
|
}
|
|
1252
1298
|
);
|
|
1253
|
-
}),
|
|
1299
|
+
}), we = s(function({ className: t, ...e }, r) {
|
|
1254
1300
|
return /* @__PURE__ */ o(
|
|
1255
1301
|
V.List,
|
|
1256
1302
|
{
|
|
1257
1303
|
ref: r,
|
|
1258
1304
|
className: n(
|
|
1259
1305
|
"gryt-tabs-list relative inline-flex items-center gap-1 rounded-(--gryt-radius-full) bg-gryt-surface-raised p-1",
|
|
1306
|
+
// A rail, not a pill: rows are full width and the corner radius drops
|
|
1307
|
+
// to lg, because a 999px radius on a tall box bows its short edges.
|
|
1308
|
+
"data-[orientation=vertical]:flex data-[orientation=vertical]:shrink-0",
|
|
1309
|
+
"data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch",
|
|
1310
|
+
"data-[orientation=vertical]:rounded-(--gryt-radius-lg)",
|
|
1260
1311
|
t
|
|
1261
1312
|
),
|
|
1262
1313
|
...e
|
|
1263
1314
|
}
|
|
1264
1315
|
);
|
|
1265
|
-
}),
|
|
1316
|
+
}), ve = s(function({ className: t, ...e }, r) {
|
|
1266
1317
|
return /* @__PURE__ */ o(
|
|
1267
1318
|
V.Tab,
|
|
1268
1319
|
{
|
|
@@ -1276,13 +1327,18 @@ const Ro = {
|
|
|
1276
1327
|
// The fill moved to Indicator so it can travel between tabs; the tab
|
|
1277
1328
|
// itself only changes its text colour.
|
|
1278
1329
|
"data-active:text-gryt-on-accent",
|
|
1279
|
-
|
|
1330
|
+
// Left-aligned and taller in a rail. Centred labels in a vertical list
|
|
1331
|
+
// leave the text edge ragged, which is what makes a rail look untidy.
|
|
1332
|
+
"data-[orientation=vertical]:min-h-9 data-[orientation=vertical]:justify-start",
|
|
1333
|
+
"data-[orientation=vertical]:gap-2.5 data-[orientation=vertical]:px-3",
|
|
1334
|
+
"data-[orientation=vertical]:rounded-(--gryt-radius-md)",
|
|
1335
|
+
b,
|
|
1280
1336
|
t
|
|
1281
1337
|
),
|
|
1282
1338
|
...e
|
|
1283
1339
|
}
|
|
1284
1340
|
);
|
|
1285
|
-
}),
|
|
1341
|
+
}), Ne = s(
|
|
1286
1342
|
function({ className: t, ...e }, r) {
|
|
1287
1343
|
return /* @__PURE__ */ o(
|
|
1288
1344
|
V.Indicator,
|
|
@@ -1295,22 +1351,37 @@ const Ro = {
|
|
|
1295
1351
|
"rounded-(--gryt-radius-full) bg-gryt-accent",
|
|
1296
1352
|
"transition-[translate,width] duration-(--gryt-dur-spring) ease-spring",
|
|
1297
1353
|
"motion-reduce:transition-none",
|
|
1354
|
+
// Same pill, travelling down the rail instead of across the row.
|
|
1355
|
+
"[[data-orientation=vertical]_&]:top-0 [[data-orientation=vertical]_&]:left-1",
|
|
1356
|
+
"[[data-orientation=vertical]_&]:h-(--active-tab-height)",
|
|
1357
|
+
"[[data-orientation=vertical]_&]:w-[calc(100%-0.5rem)]",
|
|
1358
|
+
"[[data-orientation=vertical]_&]:translate-x-0",
|
|
1359
|
+
"[[data-orientation=vertical]_&]:translate-y-(--active-tab-top)",
|
|
1360
|
+
"[[data-orientation=vertical]_&]:rounded-(--gryt-radius-md)",
|
|
1361
|
+
"[[data-orientation=vertical]_&]:transition-[translate,height]",
|
|
1298
1362
|
t
|
|
1299
1363
|
),
|
|
1300
1364
|
...e
|
|
1301
1365
|
}
|
|
1302
1366
|
);
|
|
1303
1367
|
}
|
|
1304
|
-
),
|
|
1368
|
+
), Pe = s(function({ className: t, ...e }, r) {
|
|
1305
1369
|
return /* @__PURE__ */ o(
|
|
1306
1370
|
V.Panel,
|
|
1307
1371
|
{
|
|
1308
1372
|
ref: r,
|
|
1309
|
-
className: n(
|
|
1373
|
+
className: n(
|
|
1374
|
+
"gryt-tabs-panel pt-3 text-sm text-gryt-text",
|
|
1375
|
+
// Beside the rail rather than under it, and allowed to shrink so long
|
|
1376
|
+
// content wraps instead of pushing the rail off screen.
|
|
1377
|
+
"data-[orientation=vertical]:min-w-0 data-[orientation=vertical]:flex-1",
|
|
1378
|
+
"data-[orientation=vertical]:pt-0 data-[orientation=vertical]:pl-4",
|
|
1379
|
+
t
|
|
1380
|
+
),
|
|
1310
1381
|
...e
|
|
1311
1382
|
}
|
|
1312
1383
|
);
|
|
1313
|
-
}),
|
|
1384
|
+
}), Lo = Object.assign(he, { List: we, Tab: ve, Panel: Pe, Indicator: Ne }), ke = s(function({ className: t, ...e }, r) {
|
|
1314
1385
|
return /* @__PURE__ */ o(
|
|
1315
1386
|
F.Root,
|
|
1316
1387
|
{
|
|
@@ -1322,7 +1393,7 @@ const Ro = {
|
|
|
1322
1393
|
...e
|
|
1323
1394
|
}
|
|
1324
1395
|
);
|
|
1325
|
-
}),
|
|
1396
|
+
}), Te = s(
|
|
1326
1397
|
function({ className: t, ...e }, r) {
|
|
1327
1398
|
return /* @__PURE__ */ o(
|
|
1328
1399
|
F.Item,
|
|
@@ -1333,7 +1404,7 @@ const Ro = {
|
|
|
1333
1404
|
}
|
|
1334
1405
|
);
|
|
1335
1406
|
}
|
|
1336
|
-
),
|
|
1407
|
+
), $e = s(
|
|
1337
1408
|
function({ children: t, className: e, expandIcon: r, ...i }, c) {
|
|
1338
1409
|
return /* @__PURE__ */ o(F.Header, { className: "gryt-accordion-header m-0", children: /* @__PURE__ */ d(
|
|
1339
1410
|
F.Trigger,
|
|
@@ -1344,14 +1415,14 @@ const Ro = {
|
|
|
1344
1415
|
"rounded-(--gryt-radius-lg) border-0 bg-transparent px-3 py-2.5",
|
|
1345
1416
|
"text-left text-sm font-medium text-gryt-text select-none",
|
|
1346
1417
|
"transition-colors duration-150 hover:bg-gryt-surface-raised",
|
|
1347
|
-
|
|
1418
|
+
b,
|
|
1348
1419
|
e
|
|
1349
1420
|
),
|
|
1350
1421
|
...i,
|
|
1351
1422
|
children: [
|
|
1352
1423
|
t,
|
|
1353
1424
|
r === void 0 ? /* @__PURE__ */ o(
|
|
1354
|
-
|
|
1425
|
+
Tt,
|
|
1355
1426
|
{
|
|
1356
1427
|
size: 16,
|
|
1357
1428
|
className: "shrink-0 transition-transform duration-(--gryt-dur-spring) ease-spring data-panel-open:rotate-180 motion-reduce:transition-none"
|
|
@@ -1361,7 +1432,7 @@ const Ro = {
|
|
|
1361
1432
|
}
|
|
1362
1433
|
) });
|
|
1363
1434
|
}
|
|
1364
|
-
),
|
|
1435
|
+
), Ce = s(
|
|
1365
1436
|
function({ children: t, className: e, ...r }, i) {
|
|
1366
1437
|
return /* @__PURE__ */ o(
|
|
1367
1438
|
F.Panel,
|
|
@@ -1381,10 +1452,10 @@ const Ro = {
|
|
|
1381
1452
|
}
|
|
1382
1453
|
);
|
|
1383
1454
|
}
|
|
1384
|
-
),
|
|
1455
|
+
), jo = Object.assign(ke, { Item: Te, Trigger: $e, Panel: Ce }), Se = s(
|
|
1385
1456
|
function({ className: t, sideOffset: e = 2, ...r }, i) {
|
|
1386
1457
|
return /* @__PURE__ */ o(
|
|
1387
|
-
|
|
1458
|
+
T.Positioner,
|
|
1388
1459
|
{
|
|
1389
1460
|
ref: i,
|
|
1390
1461
|
sideOffset: e,
|
|
@@ -1393,22 +1464,22 @@ const Ro = {
|
|
|
1393
1464
|
}
|
|
1394
1465
|
);
|
|
1395
1466
|
}
|
|
1396
|
-
),
|
|
1397
|
-
Root:
|
|
1398
|
-
Trigger:
|
|
1399
|
-
Portal:
|
|
1400
|
-
Positioner:
|
|
1401
|
-
Popup:
|
|
1402
|
-
Item:
|
|
1403
|
-
Separator:
|
|
1404
|
-
Group:
|
|
1405
|
-
GroupLabel:
|
|
1406
|
-
SubmenuRoot:
|
|
1407
|
-
SubmenuTrigger:
|
|
1408
|
-
},
|
|
1467
|
+
), Go = {
|
|
1468
|
+
Root: T.Root,
|
|
1469
|
+
Trigger: T.Trigger,
|
|
1470
|
+
Portal: T.Portal,
|
|
1471
|
+
Positioner: Se,
|
|
1472
|
+
Popup: Y.Popup,
|
|
1473
|
+
Item: Y.Item,
|
|
1474
|
+
Separator: Y.Separator,
|
|
1475
|
+
Group: T.Group,
|
|
1476
|
+
GroupLabel: T.GroupLabel,
|
|
1477
|
+
SubmenuRoot: T.SubmenuRoot,
|
|
1478
|
+
SubmenuTrigger: T.SubmenuTrigger
|
|
1479
|
+
}, Re = s(
|
|
1409
1480
|
function({ className: t, sideOffset: e = 8, ...r }, i) {
|
|
1410
1481
|
return /* @__PURE__ */ o(
|
|
1411
|
-
|
|
1482
|
+
P.Positioner,
|
|
1412
1483
|
{
|
|
1413
1484
|
ref: i,
|
|
1414
1485
|
sideOffset: e,
|
|
@@ -1417,25 +1488,25 @@ const Ro = {
|
|
|
1417
1488
|
}
|
|
1418
1489
|
);
|
|
1419
1490
|
}
|
|
1420
|
-
),
|
|
1491
|
+
), Ie = s(
|
|
1421
1492
|
function({ className: t, ...e }, r) {
|
|
1422
1493
|
return /* @__PURE__ */ o(
|
|
1423
|
-
|
|
1494
|
+
P.Popup,
|
|
1424
1495
|
{
|
|
1425
1496
|
ref: r,
|
|
1426
1497
|
className: n(
|
|
1427
1498
|
"gryt-popover max-w-[min(20rem,calc(100vw-2rem))] p-4 outline-none",
|
|
1428
|
-
|
|
1429
|
-
|
|
1499
|
+
S,
|
|
1500
|
+
R,
|
|
1430
1501
|
t
|
|
1431
1502
|
),
|
|
1432
1503
|
...e
|
|
1433
1504
|
}
|
|
1434
1505
|
);
|
|
1435
1506
|
}
|
|
1436
|
-
),
|
|
1507
|
+
), De = s(function({ className: t, ...e }, r) {
|
|
1437
1508
|
return /* @__PURE__ */ o(
|
|
1438
|
-
|
|
1509
|
+
P.Title,
|
|
1439
1510
|
{
|
|
1440
1511
|
ref: r,
|
|
1441
1512
|
className: n(
|
|
@@ -1445,9 +1516,9 @@ const Ro = {
|
|
|
1445
1516
|
...e
|
|
1446
1517
|
}
|
|
1447
1518
|
);
|
|
1448
|
-
}),
|
|
1519
|
+
}), Ae = s(function({ className: t, ...e }, r) {
|
|
1449
1520
|
return /* @__PURE__ */ o(
|
|
1450
|
-
|
|
1521
|
+
P.Description,
|
|
1451
1522
|
{
|
|
1452
1523
|
ref: r,
|
|
1453
1524
|
className: n(
|
|
@@ -1457,20 +1528,20 @@ const Ro = {
|
|
|
1457
1528
|
...e
|
|
1458
1529
|
}
|
|
1459
1530
|
);
|
|
1460
|
-
}),
|
|
1461
|
-
Root:
|
|
1462
|
-
Trigger:
|
|
1463
|
-
Portal:
|
|
1464
|
-
Positioner:
|
|
1465
|
-
Popup:
|
|
1466
|
-
Title:
|
|
1467
|
-
Description:
|
|
1468
|
-
Close:
|
|
1469
|
-
Arrow:
|
|
1470
|
-
},
|
|
1531
|
+
}), Bo = {
|
|
1532
|
+
Root: P.Root,
|
|
1533
|
+
Trigger: P.Trigger,
|
|
1534
|
+
Portal: P.Portal,
|
|
1535
|
+
Positioner: Re,
|
|
1536
|
+
Popup: Ie,
|
|
1537
|
+
Title: De,
|
|
1538
|
+
Description: Ae,
|
|
1539
|
+
Close: P.Close,
|
|
1540
|
+
Arrow: P.Arrow
|
|
1541
|
+
}, Me = s(
|
|
1471
1542
|
function({ className: t, ...e }, r) {
|
|
1472
1543
|
return /* @__PURE__ */ o(
|
|
1473
|
-
|
|
1544
|
+
k.Viewport,
|
|
1474
1545
|
{
|
|
1475
1546
|
ref: r,
|
|
1476
1547
|
className: n(
|
|
@@ -1482,14 +1553,14 @@ const Ro = {
|
|
|
1482
1553
|
}
|
|
1483
1554
|
);
|
|
1484
1555
|
}
|
|
1485
|
-
),
|
|
1556
|
+
), Le = s(function({ className: t, ...e }, r) {
|
|
1486
1557
|
return /* @__PURE__ */ o(
|
|
1487
|
-
|
|
1558
|
+
k.Root,
|
|
1488
1559
|
{
|
|
1489
1560
|
ref: r,
|
|
1490
1561
|
className: n(
|
|
1491
1562
|
"gryt-toast relative flex flex-col p-3 pr-9",
|
|
1492
|
-
|
|
1563
|
+
S,
|
|
1493
1564
|
// Swiping is a pointer gesture, so the toast follows the finger
|
|
1494
1565
|
// through Base UI's swipe variables before it animates out.
|
|
1495
1566
|
"transition-[opacity,transform] duration-(--gryt-dur-spring) ease-spring",
|
|
@@ -1501,9 +1572,9 @@ const Ro = {
|
|
|
1501
1572
|
...e
|
|
1502
1573
|
}
|
|
1503
1574
|
);
|
|
1504
|
-
}),
|
|
1575
|
+
}), je = s(function({ className: t, ...e }, r) {
|
|
1505
1576
|
return /* @__PURE__ */ o(
|
|
1506
|
-
|
|
1577
|
+
k.Title,
|
|
1507
1578
|
{
|
|
1508
1579
|
ref: r,
|
|
1509
1580
|
className: n(
|
|
@@ -1513,9 +1584,9 @@ const Ro = {
|
|
|
1513
1584
|
...e
|
|
1514
1585
|
}
|
|
1515
1586
|
);
|
|
1516
|
-
}),
|
|
1587
|
+
}), Ge = s(function({ className: t, ...e }, r) {
|
|
1517
1588
|
return /* @__PURE__ */ o(
|
|
1518
|
-
|
|
1589
|
+
k.Description,
|
|
1519
1590
|
{
|
|
1520
1591
|
ref: r,
|
|
1521
1592
|
className: n(
|
|
@@ -1525,9 +1596,9 @@ const Ro = {
|
|
|
1525
1596
|
...e
|
|
1526
1597
|
}
|
|
1527
1598
|
);
|
|
1528
|
-
}),
|
|
1599
|
+
}), Be = s(function({ className: t, children: e, ...r }, i) {
|
|
1529
1600
|
return /* @__PURE__ */ o(
|
|
1530
|
-
|
|
1601
|
+
k.Close,
|
|
1531
1602
|
{
|
|
1532
1603
|
ref: i,
|
|
1533
1604
|
"aria-label": "Close",
|
|
@@ -1539,12 +1610,12 @@ const Ro = {
|
|
|
1539
1610
|
t
|
|
1540
1611
|
),
|
|
1541
1612
|
...r,
|
|
1542
|
-
children: e ?? /* @__PURE__ */ o(
|
|
1613
|
+
children: e ?? /* @__PURE__ */ o(ct, { size: 14, weight: "bold" })
|
|
1543
1614
|
}
|
|
1544
1615
|
);
|
|
1545
|
-
}),
|
|
1616
|
+
}), ze = s(function({ className: t, ...e }, r) {
|
|
1546
1617
|
return /* @__PURE__ */ o(
|
|
1547
|
-
|
|
1618
|
+
k.Action,
|
|
1548
1619
|
{
|
|
1549
1620
|
ref: r,
|
|
1550
1621
|
className: n(
|
|
@@ -1558,19 +1629,19 @@ const Ro = {
|
|
|
1558
1629
|
...e
|
|
1559
1630
|
}
|
|
1560
1631
|
);
|
|
1561
|
-
}),
|
|
1562
|
-
Provider:
|
|
1563
|
-
Portal:
|
|
1564
|
-
Viewport:
|
|
1565
|
-
Root:
|
|
1566
|
-
Title:
|
|
1567
|
-
Description:
|
|
1568
|
-
Close:
|
|
1569
|
-
Action:
|
|
1570
|
-
},
|
|
1632
|
+
}), zo = {
|
|
1633
|
+
Provider: k.Provider,
|
|
1634
|
+
Portal: k.Portal,
|
|
1635
|
+
Viewport: Me,
|
|
1636
|
+
Root: Le,
|
|
1637
|
+
Title: je,
|
|
1638
|
+
Description: Ge,
|
|
1639
|
+
Close: Be,
|
|
1640
|
+
Action: ze
|
|
1641
|
+
}, Fo = k.useToastManager, Fe = s(
|
|
1571
1642
|
function({ className: t, ...e }, r) {
|
|
1572
1643
|
return /* @__PURE__ */ o(
|
|
1573
|
-
|
|
1644
|
+
j.Root,
|
|
1574
1645
|
{
|
|
1575
1646
|
ref: r,
|
|
1576
1647
|
className: n("gryt-scroll-area relative", t),
|
|
@@ -1578,10 +1649,10 @@ const Ro = {
|
|
|
1578
1649
|
}
|
|
1579
1650
|
);
|
|
1580
1651
|
}
|
|
1581
|
-
),
|
|
1652
|
+
), Ve = s(
|
|
1582
1653
|
function({ className: t, ...e }, r) {
|
|
1583
1654
|
return /* @__PURE__ */ o(
|
|
1584
|
-
|
|
1655
|
+
j.Viewport,
|
|
1585
1656
|
{
|
|
1586
1657
|
ref: r,
|
|
1587
1658
|
className: n(
|
|
@@ -1593,10 +1664,10 @@ const Ro = {
|
|
|
1593
1664
|
}
|
|
1594
1665
|
);
|
|
1595
1666
|
}
|
|
1596
|
-
),
|
|
1667
|
+
), Ee = s(
|
|
1597
1668
|
function({ className: t, orientation: e, ...r }, i) {
|
|
1598
1669
|
return /* @__PURE__ */ o(
|
|
1599
|
-
|
|
1670
|
+
j.Scrollbar,
|
|
1600
1671
|
{
|
|
1601
1672
|
ref: i,
|
|
1602
1673
|
orientation: e,
|
|
@@ -1611,17 +1682,17 @@ const Ro = {
|
|
|
1611
1682
|
t
|
|
1612
1683
|
),
|
|
1613
1684
|
...r,
|
|
1614
|
-
children: /* @__PURE__ */ o(
|
|
1685
|
+
children: /* @__PURE__ */ o(j.Thumb, { className: "flex-1 rounded-(--gryt-radius-full) bg-gryt-border transition-colors hover:bg-gryt-muted motion-reduce:transition-none" })
|
|
1615
1686
|
}
|
|
1616
1687
|
);
|
|
1617
1688
|
}
|
|
1618
|
-
),
|
|
1619
|
-
Root:
|
|
1620
|
-
Viewport:
|
|
1621
|
-
Scrollbar:
|
|
1622
|
-
Content:
|
|
1623
|
-
Corner:
|
|
1624
|
-
},
|
|
1689
|
+
), Vo = {
|
|
1690
|
+
Root: Fe,
|
|
1691
|
+
Viewport: Ve,
|
|
1692
|
+
Scrollbar: Ee,
|
|
1693
|
+
Content: j.Content,
|
|
1694
|
+
Corner: j.Corner
|
|
1695
|
+
}, _e = {
|
|
1625
1696
|
primary: [
|
|
1626
1697
|
"text-gryt-muted hover:not-data-disabled:bg-white/8",
|
|
1627
1698
|
"data-pressed:bg-gryt-accent data-pressed:text-gryt-on-accent",
|
|
@@ -1642,15 +1713,15 @@ const Ro = {
|
|
|
1642
1713
|
"data-pressed:bg-gryt-danger data-pressed:text-gryt-on-danger",
|
|
1643
1714
|
"data-pressed:hover:not-data-disabled:bg-gryt-danger"
|
|
1644
1715
|
].join(" ")
|
|
1645
|
-
},
|
|
1716
|
+
}, He = {
|
|
1646
1717
|
xsmall: "h-8 min-w-8 px-2 text-xs",
|
|
1647
1718
|
small: "h-9 min-w-9 px-2.5 text-sm",
|
|
1648
1719
|
medium: "h-10 min-w-10 px-3 text-sm",
|
|
1649
1720
|
large: "h-12 min-w-12 px-4 text-base"
|
|
1650
|
-
},
|
|
1721
|
+
}, Eo = s(
|
|
1651
1722
|
function({ className: t, size: e = "medium", tone: r = "primary", ...i }, c) {
|
|
1652
1723
|
return /* @__PURE__ */ o(
|
|
1653
|
-
|
|
1724
|
+
It,
|
|
1654
1725
|
{
|
|
1655
1726
|
ref: c,
|
|
1656
1727
|
className: n(
|
|
@@ -1661,20 +1732,20 @@ const Ro = {
|
|
|
1661
1732
|
"transition-[scale,background-color,color] duration-(--gryt-dur-spring) ease-spring",
|
|
1662
1733
|
"motion-safe:hover:not-data-disabled:scale-[1.06]",
|
|
1663
1734
|
"motion-safe:active:not-data-disabled:scale-[0.94]",
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1735
|
+
b,
|
|
1736
|
+
G,
|
|
1737
|
+
He[e],
|
|
1738
|
+
_e[r],
|
|
1668
1739
|
t
|
|
1669
1740
|
),
|
|
1670
1741
|
...i
|
|
1671
1742
|
}
|
|
1672
1743
|
);
|
|
1673
1744
|
}
|
|
1674
|
-
),
|
|
1745
|
+
), _o = s(
|
|
1675
1746
|
function({ className: t, ...e }, r) {
|
|
1676
1747
|
return /* @__PURE__ */ o(
|
|
1677
|
-
|
|
1748
|
+
Dt,
|
|
1678
1749
|
{
|
|
1679
1750
|
ref: r,
|
|
1680
1751
|
className: n(
|
|
@@ -1686,13 +1757,13 @@ const Ro = {
|
|
|
1686
1757
|
}
|
|
1687
1758
|
);
|
|
1688
1759
|
}
|
|
1689
|
-
),
|
|
1760
|
+
), Xe = {
|
|
1690
1761
|
primary: "bg-gryt-accent",
|
|
1691
1762
|
success: "bg-gryt-success",
|
|
1692
1763
|
warning: "bg-gryt-warning",
|
|
1693
1764
|
danger: "bg-gryt-danger"
|
|
1694
1765
|
};
|
|
1695
|
-
function
|
|
1766
|
+
function Ho({
|
|
1696
1767
|
className: a,
|
|
1697
1768
|
value: t,
|
|
1698
1769
|
label: e,
|
|
@@ -1716,7 +1787,7 @@ function Fo({
|
|
|
1716
1787
|
{
|
|
1717
1788
|
className: n(
|
|
1718
1789
|
"h-full rounded-(--gryt-radius-full)",
|
|
1719
|
-
|
|
1790
|
+
Xe[i]
|
|
1720
1791
|
)
|
|
1721
1792
|
}
|
|
1722
1793
|
) })
|
|
@@ -1724,10 +1795,10 @@ function Fo({
|
|
|
1724
1795
|
}
|
|
1725
1796
|
);
|
|
1726
1797
|
}
|
|
1727
|
-
const
|
|
1798
|
+
const Oe = s(
|
|
1728
1799
|
function({ className: t, ...e }, r) {
|
|
1729
1800
|
return /* @__PURE__ */ o(
|
|
1730
|
-
|
|
1801
|
+
C.Popup,
|
|
1731
1802
|
{
|
|
1732
1803
|
ref: r,
|
|
1733
1804
|
className: n(
|
|
@@ -1744,9 +1815,9 @@ const Ee = s(
|
|
|
1744
1815
|
}
|
|
1745
1816
|
);
|
|
1746
1817
|
}
|
|
1747
|
-
),
|
|
1818
|
+
), Ye = s(function({ className: t, ...e }, r) {
|
|
1748
1819
|
return /* @__PURE__ */ o(
|
|
1749
|
-
|
|
1820
|
+
C.Backdrop,
|
|
1750
1821
|
{
|
|
1751
1822
|
ref: r,
|
|
1752
1823
|
className: n(
|
|
@@ -1759,9 +1830,9 @@ const Ee = s(
|
|
|
1759
1830
|
...e
|
|
1760
1831
|
}
|
|
1761
1832
|
);
|
|
1762
|
-
}),
|
|
1833
|
+
}), Ue = s(function({ className: t, ...e }, r) {
|
|
1763
1834
|
return /* @__PURE__ */ o(
|
|
1764
|
-
|
|
1835
|
+
C.Title,
|
|
1765
1836
|
{
|
|
1766
1837
|
ref: r,
|
|
1767
1838
|
className: n(
|
|
@@ -1771,9 +1842,9 @@ const Ee = s(
|
|
|
1771
1842
|
...e
|
|
1772
1843
|
}
|
|
1773
1844
|
);
|
|
1774
|
-
}),
|
|
1845
|
+
}), We = s(function({ className: t, ...e }, r) {
|
|
1775
1846
|
return /* @__PURE__ */ o(
|
|
1776
|
-
|
|
1847
|
+
C.Description,
|
|
1777
1848
|
{
|
|
1778
1849
|
ref: r,
|
|
1779
1850
|
className: n(
|
|
@@ -1783,16 +1854,16 @@ const Ee = s(
|
|
|
1783
1854
|
...e
|
|
1784
1855
|
}
|
|
1785
1856
|
);
|
|
1786
|
-
}),
|
|
1787
|
-
Root:
|
|
1788
|
-
Trigger:
|
|
1789
|
-
Portal:
|
|
1790
|
-
Backdrop:
|
|
1791
|
-
Popup:
|
|
1792
|
-
Title:
|
|
1793
|
-
Description:
|
|
1794
|
-
Close:
|
|
1795
|
-
},
|
|
1857
|
+
}), Xo = {
|
|
1858
|
+
Root: C.Root,
|
|
1859
|
+
Trigger: C.Trigger,
|
|
1860
|
+
Portal: C.Portal,
|
|
1861
|
+
Backdrop: Ye,
|
|
1862
|
+
Popup: Oe,
|
|
1863
|
+
Title: Ue,
|
|
1864
|
+
Description: We,
|
|
1865
|
+
Close: C.Close
|
|
1866
|
+
}, yt = [
|
|
1796
1867
|
"flex cursor-default items-center gap-2 rounded-(--gryt-radius-md)",
|
|
1797
1868
|
"px-3 py-2 text-sm text-gryt-text outline-none select-none",
|
|
1798
1869
|
// Base UI drives keyboard and pointer highlight through one attribute, so
|
|
@@ -1800,20 +1871,20 @@ const Ee = s(
|
|
|
1800
1871
|
"data-highlighted:bg-gryt-surface-raised",
|
|
1801
1872
|
"data-selected:text-gryt-accent",
|
|
1802
1873
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50"
|
|
1803
|
-
].join(" "),
|
|
1874
|
+
].join(" "), mt = [
|
|
1804
1875
|
"w-full rounded-(--gryt-radius-input) border border-gryt-border bg-gryt-surface-raised",
|
|
1805
1876
|
"px-3 py-2 text-sm text-gryt-text outline-none placeholder:text-gryt-muted",
|
|
1806
|
-
|
|
1807
|
-
].join(" "),
|
|
1877
|
+
b
|
|
1878
|
+
].join(" "), Qe = s(function({ className: t, ...e }, r) {
|
|
1808
1879
|
return /* @__PURE__ */ o(
|
|
1809
1880
|
g.Input,
|
|
1810
1881
|
{
|
|
1811
1882
|
ref: r,
|
|
1812
|
-
className: n("gryt-combobox-input",
|
|
1883
|
+
className: n("gryt-combobox-input", mt, t),
|
|
1813
1884
|
...e
|
|
1814
1885
|
}
|
|
1815
1886
|
);
|
|
1816
|
-
}),
|
|
1887
|
+
}), Je = s(function({ className: t, sideOffset: e = 6, ...r }, i) {
|
|
1817
1888
|
return /* @__PURE__ */ o(
|
|
1818
1889
|
g.Positioner,
|
|
1819
1890
|
{
|
|
@@ -1823,7 +1894,7 @@ const Ee = s(
|
|
|
1823
1894
|
...r
|
|
1824
1895
|
}
|
|
1825
1896
|
);
|
|
1826
|
-
}),
|
|
1897
|
+
}), Ke = s(
|
|
1827
1898
|
function({ className: t, ...e }, r) {
|
|
1828
1899
|
return /* @__PURE__ */ o(
|
|
1829
1900
|
g.Popup,
|
|
@@ -1831,24 +1902,24 @@ const Ee = s(
|
|
|
1831
1902
|
ref: r,
|
|
1832
1903
|
className: n(
|
|
1833
1904
|
"gryt-combobox max-h-64 w-(--anchor-width) overflow-y-auto overscroll-contain p-1 outline-none",
|
|
1834
|
-
|
|
1835
|
-
|
|
1905
|
+
S,
|
|
1906
|
+
R,
|
|
1836
1907
|
t
|
|
1837
1908
|
),
|
|
1838
1909
|
...e
|
|
1839
1910
|
}
|
|
1840
1911
|
);
|
|
1841
1912
|
}
|
|
1842
|
-
),
|
|
1913
|
+
), Ze = s(function({ className: t, ...e }, r) {
|
|
1843
1914
|
return /* @__PURE__ */ o(
|
|
1844
1915
|
g.Item,
|
|
1845
1916
|
{
|
|
1846
1917
|
ref: r,
|
|
1847
|
-
className: n("gryt-combobox-item",
|
|
1918
|
+
className: n("gryt-combobox-item", yt, t),
|
|
1848
1919
|
...e
|
|
1849
1920
|
}
|
|
1850
1921
|
);
|
|
1851
|
-
}),
|
|
1922
|
+
}), qe = s(function({ className: t, ...e }, r) {
|
|
1852
1923
|
return /* @__PURE__ */ o(
|
|
1853
1924
|
g.Empty,
|
|
1854
1925
|
{
|
|
@@ -1860,9 +1931,9 @@ const Ee = s(
|
|
|
1860
1931
|
...e
|
|
1861
1932
|
}
|
|
1862
1933
|
);
|
|
1863
|
-
}),
|
|
1934
|
+
}), Oo = {
|
|
1864
1935
|
Root: g.Root,
|
|
1865
|
-
Input:
|
|
1936
|
+
Input: Qe,
|
|
1866
1937
|
InputGroup: g.InputGroup,
|
|
1867
1938
|
Trigger: g.Trigger,
|
|
1868
1939
|
Icon: g.Icon,
|
|
@@ -1872,27 +1943,27 @@ const Ee = s(
|
|
|
1872
1943
|
Chip: g.Chip,
|
|
1873
1944
|
ChipRemove: g.ChipRemove,
|
|
1874
1945
|
Portal: g.Portal,
|
|
1875
|
-
Positioner:
|
|
1876
|
-
Popup:
|
|
1946
|
+
Positioner: Je,
|
|
1947
|
+
Popup: Ke,
|
|
1877
1948
|
List: g.List,
|
|
1878
|
-
Item:
|
|
1949
|
+
Item: Ze,
|
|
1879
1950
|
ItemIndicator: g.ItemIndicator,
|
|
1880
1951
|
Group: g.Group,
|
|
1881
1952
|
GroupLabel: g.GroupLabel,
|
|
1882
|
-
Empty:
|
|
1953
|
+
Empty: qe,
|
|
1883
1954
|
Separator: g.Separator
|
|
1884
|
-
},
|
|
1955
|
+
}, tr = s(function({ className: t, ...e }, r) {
|
|
1885
1956
|
return /* @__PURE__ */ o(
|
|
1886
|
-
|
|
1957
|
+
p.Input,
|
|
1887
1958
|
{
|
|
1888
1959
|
ref: r,
|
|
1889
|
-
className: n("gryt-autocomplete-input",
|
|
1960
|
+
className: n("gryt-autocomplete-input", mt, t),
|
|
1890
1961
|
...e
|
|
1891
1962
|
}
|
|
1892
1963
|
);
|
|
1893
|
-
}),
|
|
1964
|
+
}), er = s(function({ className: t, sideOffset: e = 6, ...r }, i) {
|
|
1894
1965
|
return /* @__PURE__ */ o(
|
|
1895
|
-
|
|
1966
|
+
p.Positioner,
|
|
1896
1967
|
{
|
|
1897
1968
|
ref: i,
|
|
1898
1969
|
sideOffset: e,
|
|
@@ -1900,32 +1971,32 @@ const Ee = s(
|
|
|
1900
1971
|
...r
|
|
1901
1972
|
}
|
|
1902
1973
|
);
|
|
1903
|
-
}),
|
|
1974
|
+
}), rr = s(function({ className: t, ...e }, r) {
|
|
1904
1975
|
return /* @__PURE__ */ o(
|
|
1905
|
-
|
|
1976
|
+
p.Popup,
|
|
1906
1977
|
{
|
|
1907
1978
|
ref: r,
|
|
1908
1979
|
className: n(
|
|
1909
1980
|
"gryt-autocomplete max-h-64 w-(--anchor-width) overflow-y-auto overscroll-contain p-1 outline-none",
|
|
1910
|
-
|
|
1911
|
-
|
|
1981
|
+
S,
|
|
1982
|
+
R,
|
|
1912
1983
|
t
|
|
1913
1984
|
),
|
|
1914
1985
|
...e
|
|
1915
1986
|
}
|
|
1916
1987
|
);
|
|
1917
|
-
}),
|
|
1988
|
+
}), or = s(function({ className: t, ...e }, r) {
|
|
1918
1989
|
return /* @__PURE__ */ o(
|
|
1919
|
-
|
|
1990
|
+
p.Item,
|
|
1920
1991
|
{
|
|
1921
1992
|
ref: r,
|
|
1922
|
-
className: n("gryt-autocomplete-item",
|
|
1993
|
+
className: n("gryt-autocomplete-item", yt, t),
|
|
1923
1994
|
...e
|
|
1924
1995
|
}
|
|
1925
1996
|
);
|
|
1926
|
-
}),
|
|
1997
|
+
}), ar = s(function({ className: t, ...e }, r) {
|
|
1927
1998
|
return /* @__PURE__ */ o(
|
|
1928
|
-
|
|
1999
|
+
p.Empty,
|
|
1929
2000
|
{
|
|
1930
2001
|
ref: r,
|
|
1931
2002
|
className: n(
|
|
@@ -1935,27 +2006,27 @@ const Ee = s(
|
|
|
1935
2006
|
...e
|
|
1936
2007
|
}
|
|
1937
2008
|
);
|
|
1938
|
-
}),
|
|
1939
|
-
Root:
|
|
1940
|
-
Input:
|
|
1941
|
-
InputGroup:
|
|
1942
|
-
Trigger:
|
|
1943
|
-
Icon:
|
|
1944
|
-
Clear:
|
|
1945
|
-
Value:
|
|
1946
|
-
Portal:
|
|
1947
|
-
Positioner:
|
|
1948
|
-
Popup:
|
|
1949
|
-
List:
|
|
1950
|
-
Item:
|
|
1951
|
-
Group:
|
|
1952
|
-
GroupLabel:
|
|
1953
|
-
Empty:
|
|
1954
|
-
Separator:
|
|
1955
|
-
},
|
|
2009
|
+
}), Yo = {
|
|
2010
|
+
Root: p.Root,
|
|
2011
|
+
Input: tr,
|
|
2012
|
+
InputGroup: p.InputGroup,
|
|
2013
|
+
Trigger: p.Trigger,
|
|
2014
|
+
Icon: p.Icon,
|
|
2015
|
+
Clear: p.Clear,
|
|
2016
|
+
Value: p.Value,
|
|
2017
|
+
Portal: p.Portal,
|
|
2018
|
+
Positioner: er,
|
|
2019
|
+
Popup: rr,
|
|
2020
|
+
List: p.List,
|
|
2021
|
+
Item: or,
|
|
2022
|
+
Group: p.Group,
|
|
2023
|
+
GroupLabel: p.GroupLabel,
|
|
2024
|
+
Empty: ar,
|
|
2025
|
+
Separator: p.Separator
|
|
2026
|
+
}, Uo = s(
|
|
1956
2027
|
function({ className: t, ...e }, r) {
|
|
1957
2028
|
return /* @__PURE__ */ o(
|
|
1958
|
-
|
|
2029
|
+
At,
|
|
1959
2030
|
{
|
|
1960
2031
|
ref: r,
|
|
1961
2032
|
className: n("gryt-checkbox-group flex flex-col gap-2", t),
|
|
@@ -1963,10 +2034,10 @@ const Ee = s(
|
|
|
1963
2034
|
}
|
|
1964
2035
|
);
|
|
1965
2036
|
}
|
|
1966
|
-
),
|
|
2037
|
+
), nr = s(
|
|
1967
2038
|
function({ className: t, ...e }, r) {
|
|
1968
2039
|
return /* @__PURE__ */ o(
|
|
1969
|
-
|
|
2040
|
+
Q.Trigger,
|
|
1970
2041
|
{
|
|
1971
2042
|
ref: r,
|
|
1972
2043
|
className: n(
|
|
@@ -1974,17 +2045,17 @@ const Ee = s(
|
|
|
1974
2045
|
"rounded-(--gryt-radius-md) border-0 bg-transparent px-2 py-2 text-left",
|
|
1975
2046
|
"text-sm font-medium text-gryt-text select-none",
|
|
1976
2047
|
"transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none",
|
|
1977
|
-
|
|
2048
|
+
b,
|
|
1978
2049
|
t
|
|
1979
2050
|
),
|
|
1980
2051
|
...e
|
|
1981
2052
|
}
|
|
1982
2053
|
);
|
|
1983
2054
|
}
|
|
1984
|
-
),
|
|
2055
|
+
), ir = s(
|
|
1985
2056
|
function({ className: t, ...e }, r) {
|
|
1986
2057
|
return /* @__PURE__ */ o(
|
|
1987
|
-
|
|
2058
|
+
Q.Panel,
|
|
1988
2059
|
{
|
|
1989
2060
|
ref: r,
|
|
1990
2061
|
className: n(
|
|
@@ -2000,23 +2071,23 @@ const Ee = s(
|
|
|
2000
2071
|
}
|
|
2001
2072
|
);
|
|
2002
2073
|
}
|
|
2003
|
-
),
|
|
2004
|
-
Root:
|
|
2005
|
-
Trigger:
|
|
2006
|
-
Panel:
|
|
2007
|
-
},
|
|
2074
|
+
), Wo = {
|
|
2075
|
+
Root: Q.Root,
|
|
2076
|
+
Trigger: nr,
|
|
2077
|
+
Panel: ir
|
|
2078
|
+
}, Qo = s(function({ className: t, ...e }, r) {
|
|
2008
2079
|
return /* @__PURE__ */ o(
|
|
2009
|
-
|
|
2080
|
+
Mt,
|
|
2010
2081
|
{
|
|
2011
2082
|
ref: r,
|
|
2012
2083
|
className: n("gryt-form flex flex-col gap-(--gryt-space-lg)", t),
|
|
2013
2084
|
...e
|
|
2014
2085
|
}
|
|
2015
2086
|
);
|
|
2016
|
-
}),
|
|
2087
|
+
}), sr = s(
|
|
2017
2088
|
function({ className: t, ...e }, r) {
|
|
2018
2089
|
return /* @__PURE__ */ o(
|
|
2019
|
-
|
|
2090
|
+
dt.Root,
|
|
2020
2091
|
{
|
|
2021
2092
|
ref: r,
|
|
2022
2093
|
className: n(
|
|
@@ -2027,9 +2098,9 @@ const Ee = s(
|
|
|
2027
2098
|
}
|
|
2028
2099
|
);
|
|
2029
2100
|
}
|
|
2030
|
-
),
|
|
2101
|
+
), cr = s(function({ className: t, ...e }, r) {
|
|
2031
2102
|
return /* @__PURE__ */ o(
|
|
2032
|
-
|
|
2103
|
+
dt.Legend,
|
|
2033
2104
|
{
|
|
2034
2105
|
ref: r,
|
|
2035
2106
|
className: n(
|
|
@@ -2039,10 +2110,10 @@ const Ee = s(
|
|
|
2039
2110
|
...e
|
|
2040
2111
|
}
|
|
2041
2112
|
);
|
|
2042
|
-
}),
|
|
2113
|
+
}), Jo = { Root: sr, Legend: cr }, Ko = s(
|
|
2043
2114
|
function({ className: t, ...e }, r) {
|
|
2044
2115
|
return /* @__PURE__ */ o(
|
|
2045
|
-
|
|
2116
|
+
Lt,
|
|
2046
2117
|
{
|
|
2047
2118
|
ref: r,
|
|
2048
2119
|
className: n(
|
|
@@ -2054,9 +2125,9 @@ const Ee = s(
|
|
|
2054
2125
|
}
|
|
2055
2126
|
);
|
|
2056
2127
|
}
|
|
2057
|
-
),
|
|
2128
|
+
), lr = s(function({ className: t, ...e }, r) {
|
|
2058
2129
|
return /* @__PURE__ */ o(
|
|
2059
|
-
|
|
2130
|
+
h.Trigger,
|
|
2060
2131
|
{
|
|
2061
2132
|
ref: r,
|
|
2062
2133
|
className: n(
|
|
@@ -2064,29 +2135,29 @@ const Ee = s(
|
|
|
2064
2135
|
"border-0 bg-transparent px-3 py-2 text-sm font-medium text-gryt-text select-none",
|
|
2065
2136
|
"transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none",
|
|
2066
2137
|
"data-popup-open:bg-gryt-surface-raised",
|
|
2067
|
-
|
|
2138
|
+
b,
|
|
2068
2139
|
t
|
|
2069
2140
|
),
|
|
2070
2141
|
...e
|
|
2071
2142
|
}
|
|
2072
2143
|
);
|
|
2073
|
-
}),
|
|
2144
|
+
}), dr = s(function({ className: t, ...e }, r) {
|
|
2074
2145
|
return /* @__PURE__ */ o(
|
|
2075
|
-
|
|
2146
|
+
h.Popup,
|
|
2076
2147
|
{
|
|
2077
2148
|
ref: r,
|
|
2078
2149
|
className: n(
|
|
2079
2150
|
"gryt-navigation-menu-popup outline-none",
|
|
2080
|
-
|
|
2081
|
-
|
|
2151
|
+
S,
|
|
2152
|
+
R,
|
|
2082
2153
|
t
|
|
2083
2154
|
),
|
|
2084
2155
|
...e
|
|
2085
2156
|
}
|
|
2086
2157
|
);
|
|
2087
|
-
}),
|
|
2158
|
+
}), gr = s(function({ className: t, ...e }, r) {
|
|
2088
2159
|
return /* @__PURE__ */ o(
|
|
2089
|
-
|
|
2160
|
+
h.Viewport,
|
|
2090
2161
|
{
|
|
2091
2162
|
ref: r,
|
|
2092
2163
|
className: n(
|
|
@@ -2096,81 +2167,81 @@ const Ee = s(
|
|
|
2096
2167
|
...e
|
|
2097
2168
|
}
|
|
2098
2169
|
);
|
|
2099
|
-
}),
|
|
2170
|
+
}), ur = s(function({ className: t, ...e }, r) {
|
|
2100
2171
|
return /* @__PURE__ */ o(
|
|
2101
|
-
|
|
2172
|
+
h.Link,
|
|
2102
2173
|
{
|
|
2103
2174
|
ref: r,
|
|
2104
2175
|
className: n(
|
|
2105
2176
|
"gryt-navigation-menu-link block rounded-(--gryt-radius-md) px-3 py-2",
|
|
2106
2177
|
"text-sm text-gryt-text no-underline outline-none",
|
|
2107
2178
|
"transition-colors hover:bg-gryt-surface-raised motion-reduce:transition-none",
|
|
2108
|
-
|
|
2179
|
+
b,
|
|
2109
2180
|
t
|
|
2110
2181
|
),
|
|
2111
2182
|
...e
|
|
2112
2183
|
}
|
|
2113
2184
|
);
|
|
2114
|
-
}),
|
|
2115
|
-
Root:
|
|
2116
|
-
List:
|
|
2117
|
-
Item:
|
|
2118
|
-
Trigger:
|
|
2119
|
-
Content:
|
|
2120
|
-
Portal:
|
|
2121
|
-
Positioner:
|
|
2122
|
-
Viewport:
|
|
2123
|
-
Popup:
|
|
2124
|
-
Link:
|
|
2125
|
-
Icon:
|
|
2126
|
-
Arrow:
|
|
2127
|
-
},
|
|
2185
|
+
}), Zo = {
|
|
2186
|
+
Root: h.Root,
|
|
2187
|
+
List: h.List,
|
|
2188
|
+
Item: h.Item,
|
|
2189
|
+
Trigger: lr,
|
|
2190
|
+
Content: h.Content,
|
|
2191
|
+
Portal: h.Portal,
|
|
2192
|
+
Positioner: h.Positioner,
|
|
2193
|
+
Viewport: gr,
|
|
2194
|
+
Popup: dr,
|
|
2195
|
+
Link: ur,
|
|
2196
|
+
Icon: h.Icon,
|
|
2197
|
+
Arrow: h.Arrow
|
|
2198
|
+
}, 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", qo = s(
|
|
2128
2199
|
function({ className: t, label: e, scrubbable: r = !1, ...i }, c) {
|
|
2129
2200
|
return /* @__PURE__ */ d(
|
|
2130
|
-
|
|
2201
|
+
I.Root,
|
|
2131
2202
|
{
|
|
2132
2203
|
ref: c,
|
|
2133
2204
|
className: n("gryt-number-field flex flex-col gap-1.5", t),
|
|
2134
2205
|
...i,
|
|
2135
2206
|
children: [
|
|
2136
|
-
e && (r ? /* @__PURE__ */ d(
|
|
2207
|
+
e && (r ? /* @__PURE__ */ d(I.ScrubArea, { className: "cursor-ew-resize text-sm text-gryt-muted select-none", children: [
|
|
2137
2208
|
e,
|
|
2138
|
-
/* @__PURE__ */ o(
|
|
2209
|
+
/* @__PURE__ */ o(I.ScrubAreaCursor, {})
|
|
2139
2210
|
] }) : /* @__PURE__ */ o("span", { className: "text-sm text-gryt-muted", children: e })),
|
|
2140
2211
|
/* @__PURE__ */ d(
|
|
2141
|
-
|
|
2212
|
+
I.Group,
|
|
2142
2213
|
{
|
|
2143
2214
|
className: n(
|
|
2144
2215
|
"flex w-fit items-center overflow-hidden rounded-(--gryt-radius-full)",
|
|
2145
2216
|
"border border-gryt-border bg-gryt-surface-raised",
|
|
2146
2217
|
"focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-gryt-accent-light",
|
|
2147
|
-
|
|
2218
|
+
G
|
|
2148
2219
|
),
|
|
2149
2220
|
children: [
|
|
2150
2221
|
/* @__PURE__ */ o(
|
|
2151
|
-
|
|
2222
|
+
I.Decrement,
|
|
2152
2223
|
{
|
|
2153
2224
|
"aria-label": "Decrease",
|
|
2154
|
-
className: n(
|
|
2155
|
-
children: /* @__PURE__ */ o(
|
|
2225
|
+
className: n(nt, "rounded-l-(--gryt-radius-full)"),
|
|
2226
|
+
children: /* @__PURE__ */ o($t, { size: 14, weight: "bold" })
|
|
2156
2227
|
}
|
|
2157
2228
|
),
|
|
2158
2229
|
/* @__PURE__ */ o(
|
|
2159
|
-
|
|
2230
|
+
I.Input,
|
|
2160
2231
|
{
|
|
2161
2232
|
className: n(
|
|
2162
2233
|
"w-16 border-0 bg-transparent px-1 py-2 text-center",
|
|
2163
2234
|
"font-mono text-sm text-gryt-text tabular-nums outline-none",
|
|
2164
|
-
|
|
2235
|
+
b
|
|
2165
2236
|
)
|
|
2166
2237
|
}
|
|
2167
2238
|
),
|
|
2168
2239
|
/* @__PURE__ */ o(
|
|
2169
|
-
|
|
2240
|
+
I.Increment,
|
|
2170
2241
|
{
|
|
2171
2242
|
"aria-label": "Increase",
|
|
2172
|
-
className: n(
|
|
2173
|
-
children: /* @__PURE__ */ o(
|
|
2243
|
+
className: n(nt, "rounded-r-(--gryt-radius-full)"),
|
|
2244
|
+
children: /* @__PURE__ */ o(Ct, { size: 14, weight: "bold" })
|
|
2174
2245
|
}
|
|
2175
2246
|
)
|
|
2176
2247
|
]
|
|
@@ -2180,17 +2251,17 @@ const Ee = s(
|
|
|
2180
2251
|
}
|
|
2181
2252
|
);
|
|
2182
2253
|
}
|
|
2183
|
-
),
|
|
2254
|
+
), ta = s(
|
|
2184
2255
|
function({ className: t, length: e = 6, ...r }, i) {
|
|
2185
2256
|
return /* @__PURE__ */ o(
|
|
2186
|
-
|
|
2257
|
+
rt.Root,
|
|
2187
2258
|
{
|
|
2188
2259
|
ref: i,
|
|
2189
2260
|
length: e,
|
|
2190
2261
|
className: n("gryt-otp-field flex gap-2", t),
|
|
2191
2262
|
...r,
|
|
2192
2263
|
children: Array.from({ length: e }, (c, l) => /* @__PURE__ */ o(
|
|
2193
|
-
|
|
2264
|
+
rt.Input,
|
|
2194
2265
|
{
|
|
2195
2266
|
className: n(
|
|
2196
2267
|
"gryt-otp-input h-12 w-10 rounded-(--gryt-radius-md) text-center",
|
|
@@ -2198,7 +2269,7 @@ const Ee = s(
|
|
|
2198
2269
|
"font-mono text-lg text-gryt-text tabular-nums outline-none",
|
|
2199
2270
|
"transition-colors duration-(--gryt-dur-fast) motion-reduce:transition-none",
|
|
2200
2271
|
"data-filled:border-gryt-accent",
|
|
2201
|
-
|
|
2272
|
+
b
|
|
2202
2273
|
)
|
|
2203
2274
|
},
|
|
2204
2275
|
l
|
|
@@ -2206,10 +2277,10 @@ const Ee = s(
|
|
|
2206
2277
|
}
|
|
2207
2278
|
);
|
|
2208
2279
|
}
|
|
2209
|
-
),
|
|
2280
|
+
), yr = s(
|
|
2210
2281
|
function({ className: t, sideOffset: e = 8, ...r }, i) {
|
|
2211
2282
|
return /* @__PURE__ */ o(
|
|
2212
|
-
|
|
2283
|
+
M.Positioner,
|
|
2213
2284
|
{
|
|
2214
2285
|
ref: i,
|
|
2215
2286
|
sideOffset: e,
|
|
@@ -2218,32 +2289,32 @@ const Ee = s(
|
|
|
2218
2289
|
}
|
|
2219
2290
|
);
|
|
2220
2291
|
}
|
|
2221
|
-
),
|
|
2292
|
+
), mr = s(
|
|
2222
2293
|
function({ className: t, ...e }, r) {
|
|
2223
2294
|
return /* @__PURE__ */ o(
|
|
2224
|
-
|
|
2295
|
+
M.Popup,
|
|
2225
2296
|
{
|
|
2226
2297
|
ref: r,
|
|
2227
2298
|
className: n(
|
|
2228
2299
|
"gryt-preview-card w-64 max-w-[calc(100vw-2rem)] p-4 outline-none",
|
|
2229
|
-
|
|
2230
|
-
|
|
2300
|
+
S,
|
|
2301
|
+
R,
|
|
2231
2302
|
t
|
|
2232
2303
|
),
|
|
2233
2304
|
...e
|
|
2234
2305
|
}
|
|
2235
2306
|
);
|
|
2236
2307
|
}
|
|
2237
|
-
),
|
|
2238
|
-
Root:
|
|
2239
|
-
Trigger:
|
|
2240
|
-
Portal:
|
|
2241
|
-
Positioner:
|
|
2242
|
-
Popup:
|
|
2243
|
-
Arrow:
|
|
2244
|
-
},
|
|
2308
|
+
), ea = {
|
|
2309
|
+
Root: M.Root,
|
|
2310
|
+
Trigger: M.Trigger,
|
|
2311
|
+
Portal: M.Portal,
|
|
2312
|
+
Positioner: yr,
|
|
2313
|
+
Popup: mr,
|
|
2314
|
+
Arrow: M.Arrow
|
|
2315
|
+
}, pr = s(function({ className: t, ...e }, r) {
|
|
2245
2316
|
return /* @__PURE__ */ o(
|
|
2246
|
-
|
|
2317
|
+
L.Root,
|
|
2247
2318
|
{
|
|
2248
2319
|
ref: r,
|
|
2249
2320
|
className: n(
|
|
@@ -2254,82 +2325,82 @@ const Ee = s(
|
|
|
2254
2325
|
...e
|
|
2255
2326
|
}
|
|
2256
2327
|
);
|
|
2257
|
-
}),
|
|
2328
|
+
}), br = s(function({ className: t, ...e }, r) {
|
|
2258
2329
|
return /* @__PURE__ */ o(
|
|
2259
|
-
|
|
2330
|
+
L.Separator,
|
|
2260
2331
|
{
|
|
2261
2332
|
ref: r,
|
|
2262
2333
|
className: n("gryt-toolbar-separator mx-1 h-6 w-px bg-gryt-border", t),
|
|
2263
2334
|
...e
|
|
2264
2335
|
}
|
|
2265
2336
|
);
|
|
2266
|
-
}),
|
|
2267
|
-
Root:
|
|
2268
|
-
Group:
|
|
2269
|
-
Button:
|
|
2270
|
-
Link:
|
|
2271
|
-
Input:
|
|
2272
|
-
Separator:
|
|
2337
|
+
}), ra = {
|
|
2338
|
+
Root: pr,
|
|
2339
|
+
Group: L.Group,
|
|
2340
|
+
Button: L.Button,
|
|
2341
|
+
Link: L.Link,
|
|
2342
|
+
Input: L.Input,
|
|
2343
|
+
Separator: br
|
|
2273
2344
|
};
|
|
2274
2345
|
export {
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2346
|
+
jo as Accordion,
|
|
2347
|
+
So as Alert,
|
|
2348
|
+
Xo as AlertDialog,
|
|
2349
|
+
Yo as Autocomplete,
|
|
2350
|
+
Wt as Avatar,
|
|
2351
|
+
yo as Badge,
|
|
2352
|
+
Ft as Button,
|
|
2353
|
+
ko as Card,
|
|
2354
|
+
Co as CardActions,
|
|
2355
|
+
$o as CardContent,
|
|
2356
|
+
To as CardHeader,
|
|
2357
|
+
po as Checkbox,
|
|
2358
|
+
Uo as CheckboxGroup,
|
|
2359
|
+
mo as Chip,
|
|
2360
|
+
Wo as Collapsible,
|
|
2361
|
+
Oo as Combobox,
|
|
2362
|
+
go as Composer,
|
|
2363
|
+
Go as ContextMenu,
|
|
2364
|
+
uo as ConversationItem,
|
|
2365
|
+
Ao as Dialog,
|
|
2366
|
+
Po as Divider,
|
|
2367
|
+
Mo as Drawer,
|
|
2368
|
+
Jo as Fieldset,
|
|
2369
|
+
Qo as Form,
|
|
2370
|
+
no as GrytProvider,
|
|
2371
|
+
io as IconButton,
|
|
2372
|
+
Y as Menu,
|
|
2373
|
+
Ko as Menubar,
|
|
2374
|
+
co as MessageBubble,
|
|
2375
|
+
Ho as Meter,
|
|
2376
|
+
Zo as NavigationMenu,
|
|
2377
|
+
qo as NumberField,
|
|
2378
|
+
ta as OtpField,
|
|
2379
|
+
Bo as Popover,
|
|
2380
|
+
ea as PreviewCard,
|
|
2381
|
+
Ro as Progress,
|
|
2382
|
+
bo as Radio,
|
|
2383
|
+
fo as RadioGroup,
|
|
2384
|
+
Vo as ScrollArea,
|
|
2385
|
+
wo as Select,
|
|
2386
|
+
Do as Skeleton,
|
|
2387
|
+
ho as Slider,
|
|
2388
|
+
Io as Spinner,
|
|
2389
|
+
so as Surface,
|
|
2390
|
+
xo as Switch,
|
|
2391
|
+
ve as Tab,
|
|
2392
|
+
Lo as Tabs,
|
|
2393
|
+
lo as TextField,
|
|
2394
|
+
zo as Toast,
|
|
2395
|
+
Eo as Toggle,
|
|
2396
|
+
_o as ToggleGroup,
|
|
2397
|
+
ra as Toolbar,
|
|
2398
|
+
vo as Tooltip,
|
|
2399
|
+
No as TooltipProvider,
|
|
2329
2400
|
n as cn,
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2401
|
+
jt as createGrytTheme,
|
|
2402
|
+
ot as grytTokens,
|
|
2403
|
+
ne as useMediaQuery,
|
|
2404
|
+
Fo as useToastManager
|
|
2334
2405
|
};
|
|
2335
2406
|
//# sourceMappingURL=index.js.map
|