@gryt/ui 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GrytProvider.d.ts +11 -1
- package/dist/GrytProvider.d.ts.map +1 -1
- package/dist/components/Button/Button.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 +525 -507
- package/dist/index.js.map +1 -1
- package/dist/portalContainer.d.ts +29 -0
- package/dist/portalContainer.d.ts.map +1 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
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
|
-
import { Autocomplete as
|
|
34
|
-
import { Combobox as
|
|
35
|
-
import { CheckboxGroup as
|
|
36
|
-
import { Collapsible as
|
|
37
|
-
import { Form as
|
|
38
|
-
import { Fieldset as
|
|
39
|
-
import { Menubar as
|
|
33
|
+
import { Autocomplete as p } from "@base-ui/react/autocomplete";
|
|
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
|
|
61
|
-
primary: "bg-gryt-accent text-gryt-on-accent hover:not-data-disabled:bg-gryt-accent-light",
|
|
62
|
-
secondary: "bg-gryt-secondary text-gryt-on-secondary hover:not-data-disabled:bg-gryt-secondary-light",
|
|
63
|
-
neutral: "bg-gryt-surface-raised text-gryt-text hover:not-data-disabled:bg-gryt-surface-hover",
|
|
64
|
-
danger: "bg-gryt-danger text-gryt-on-danger hover:not-data-disabled:bg-gryt-danger-light",
|
|
71
|
+
const Et = {
|
|
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",
|
|
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",
|
|
74
|
+
neutral: "bg-gryt-surface-raised text-gryt-text hover:not-data-disabled:bg-gryt-surface-hover data-disabled:text-gryt-muted",
|
|
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",
|
|
@@ -102,12 +113,17 @@ const zt = {
|
|
|
102
113
|
"motion-safe:not-[[aria-haspopup]]:hover:not-data-disabled:scale-[1.03]",
|
|
103
114
|
"motion-safe:not-[[aria-haspopup]]:active:not-data-disabled:scale-[0.96]",
|
|
104
115
|
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gryt-accent-light",
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
116
|
+
// Lighter than it was, because the fill swap above is doing the work
|
|
117
|
+
// now. It is kept because `startIcon` and `endIcon` are the caller's
|
|
118
|
+
// elements with the caller's colours — nothing here can mute those,
|
|
119
|
+
// and an icon at full strength on a dead button is the same lie in
|
|
120
|
+
// miniature.
|
|
121
|
+
"data-disabled:cursor-not-allowed data-disabled:opacity-60",
|
|
122
|
+
Vt[i],
|
|
123
|
+
Et[l],
|
|
108
124
|
e
|
|
109
125
|
),
|
|
110
|
-
...
|
|
126
|
+
...d,
|
|
111
127
|
children: [
|
|
112
128
|
c,
|
|
113
129
|
t,
|
|
@@ -116,13 +132,13 @@ const zt = {
|
|
|
116
132
|
}
|
|
117
133
|
);
|
|
118
134
|
}
|
|
119
|
-
), 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 = [
|
|
120
136
|
"w-full rounded-(--gryt-radius-xl) border bg-gryt-surface-raised",
|
|
121
137
|
"text-gryt-text outline-none placeholder:text-gryt-muted",
|
|
122
138
|
"transition-colors duration-150 motion-reduce:transition-none",
|
|
123
139
|
"hover:border-gryt-accent-light focus:border-gryt-accent",
|
|
124
140
|
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
125
|
-
].join(" "),
|
|
141
|
+
].join(" "), mt = {
|
|
126
142
|
small: "min-h-9 px-3 py-1.5 text-sm",
|
|
127
143
|
medium: "min-h-11 px-4 py-2.5 text-sm"
|
|
128
144
|
}, D = "rounded-(--gryt-radius-xl) border border-gryt-border bg-gryt-surface text-gryt-text", $ = [
|
|
@@ -132,49 +148,49 @@ const zt = {
|
|
|
132
148
|
"transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none",
|
|
133
149
|
"data-starting-style:scale-[0.98] data-starting-style:opacity-0",
|
|
134
150
|
"data-ending-style:scale-[0.98] data-ending-style:opacity-0"
|
|
135
|
-
].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 = {
|
|
136
152
|
primary: "data-checked:bg-gryt-accent data-checked:text-gryt-on-accent",
|
|
137
153
|
secondary: "data-checked:bg-gryt-secondary data-checked:text-gryt-on-secondary",
|
|
138
154
|
neutral: "data-checked:bg-gryt-surface-hover data-checked:text-gryt-text",
|
|
139
155
|
danger: "data-checked:bg-gryt-danger data-checked:text-gryt-on-danger",
|
|
140
156
|
success: "data-checked:bg-gryt-success data-checked:text-gryt-on-accent",
|
|
141
157
|
warning: "data-checked:bg-gryt-warning data-checked:text-gryt-on-accent"
|
|
142
|
-
},
|
|
158
|
+
}, pt = {
|
|
143
159
|
primary: "bg-gryt-accent",
|
|
144
160
|
secondary: "bg-gryt-secondary",
|
|
145
161
|
neutral: "bg-gryt-surface-hover",
|
|
146
162
|
danger: "bg-gryt-danger",
|
|
147
163
|
success: "bg-gryt-success",
|
|
148
164
|
warning: "bg-gryt-warning"
|
|
149
|
-
},
|
|
165
|
+
}, Ot = {
|
|
150
166
|
primary: "data-checked:border-gryt-accent",
|
|
151
167
|
secondary: "data-checked:border-gryt-secondary",
|
|
152
168
|
neutral: "data-checked:border-gryt-muted",
|
|
153
169
|
danger: "data-checked:border-gryt-danger",
|
|
154
170
|
success: "data-checked:border-gryt-success",
|
|
155
171
|
warning: "data-checked:border-gryt-warning"
|
|
156
|
-
},
|
|
172
|
+
}, Xt = {
|
|
157
173
|
primary: "data-checked:bg-gryt-accent",
|
|
158
174
|
secondary: "data-checked:bg-gryt-secondary",
|
|
159
175
|
neutral: "data-checked:bg-gryt-surface-hover",
|
|
160
176
|
danger: "data-checked:bg-gryt-danger",
|
|
161
177
|
success: "data-checked:bg-gryt-success",
|
|
162
178
|
warning: "data-checked:bg-gryt-warning"
|
|
163
|
-
},
|
|
179
|
+
}, Ut = {
|
|
164
180
|
primary: "text-gryt-accent-11 hover:not-data-disabled:bg-gryt-accent-3",
|
|
165
181
|
secondary: "text-gryt-secondary-11 hover:not-data-disabled:bg-gryt-secondary-3",
|
|
166
182
|
neutral: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text",
|
|
167
183
|
danger: "text-gryt-danger-11 hover:not-data-disabled:bg-gryt-danger-3",
|
|
168
184
|
ghost: "text-gryt-muted hover:not-data-disabled:bg-white/8 hover:not-data-disabled:text-gryt-text"
|
|
169
|
-
},
|
|
185
|
+
}, Kt = {
|
|
170
186
|
xsmall: "h-8 w-8",
|
|
171
187
|
small: "h-9 w-9",
|
|
172
188
|
medium: "h-10 w-10",
|
|
173
189
|
large: "h-12 w-12"
|
|
174
|
-
},
|
|
190
|
+
}, uo = s(
|
|
175
191
|
function({ className: t, size: e = "medium", tone: r = "neutral", ...i }, c) {
|
|
176
192
|
return /* @__PURE__ */ o(
|
|
177
|
-
|
|
193
|
+
st,
|
|
178
194
|
{
|
|
179
195
|
ref: c,
|
|
180
196
|
className: n(
|
|
@@ -193,15 +209,15 @@ const zt = {
|
|
|
193
209
|
"motion-safe:not-[[aria-haspopup]]:active:not-data-disabled:scale-[0.94]",
|
|
194
210
|
b,
|
|
195
211
|
j,
|
|
196
|
-
|
|
197
|
-
|
|
212
|
+
Kt[e],
|
|
213
|
+
Ut[r],
|
|
198
214
|
t
|
|
199
215
|
),
|
|
200
216
|
...i
|
|
201
217
|
}
|
|
202
218
|
);
|
|
203
219
|
}
|
|
204
|
-
),
|
|
220
|
+
), yo = s(
|
|
205
221
|
function({ className: t, elevated: e = !1, ...r }, i) {
|
|
206
222
|
return /* @__PURE__ */ o(
|
|
207
223
|
"div",
|
|
@@ -216,7 +232,7 @@ const zt = {
|
|
|
216
232
|
}
|
|
217
233
|
);
|
|
218
234
|
}
|
|
219
|
-
),
|
|
235
|
+
), mo = s(
|
|
220
236
|
function({ children: t, className: e, from: r = "assistant", ...i }, c) {
|
|
221
237
|
return /* @__PURE__ */ o(
|
|
222
238
|
"div",
|
|
@@ -234,7 +250,7 @@ const zt = {
|
|
|
234
250
|
}
|
|
235
251
|
);
|
|
236
252
|
}
|
|
237
|
-
),
|
|
253
|
+
), po = s(
|
|
238
254
|
function({
|
|
239
255
|
className: t,
|
|
240
256
|
error: e = !1,
|
|
@@ -242,27 +258,27 @@ const zt = {
|
|
|
242
258
|
helperText: i,
|
|
243
259
|
label: c,
|
|
244
260
|
minRows: l = 3,
|
|
245
|
-
multiline:
|
|
246
|
-
size:
|
|
261
|
+
multiline: d = !1,
|
|
262
|
+
size: y = "medium",
|
|
247
263
|
...w
|
|
248
|
-
},
|
|
264
|
+
}, m) {
|
|
249
265
|
const N = /* @__PURE__ */ o(
|
|
250
266
|
V.Control,
|
|
251
267
|
{
|
|
252
|
-
ref:
|
|
253
|
-
render:
|
|
268
|
+
ref: m,
|
|
269
|
+
render: d ? /* @__PURE__ */ o("textarea", { rows: l }) : void 0,
|
|
254
270
|
className: n(
|
|
255
271
|
"gryt-text-field-control",
|
|
256
|
-
|
|
257
|
-
|
|
272
|
+
yt,
|
|
273
|
+
d && "resize-y leading-6",
|
|
258
274
|
e ? "border-gryt-danger" : "border-gryt-border",
|
|
259
|
-
|
|
275
|
+
mt[y],
|
|
260
276
|
t
|
|
261
277
|
),
|
|
262
278
|
...w
|
|
263
279
|
}
|
|
264
280
|
);
|
|
265
|
-
return /* @__PURE__ */
|
|
281
|
+
return /* @__PURE__ */ g(
|
|
266
282
|
V.Root,
|
|
267
283
|
{
|
|
268
284
|
className: n(
|
|
@@ -286,7 +302,7 @@ const zt = {
|
|
|
286
302
|
}
|
|
287
303
|
);
|
|
288
304
|
}
|
|
289
|
-
),
|
|
305
|
+
), bo = s(
|
|
290
306
|
function({
|
|
291
307
|
className: t,
|
|
292
308
|
disabled: e = !1,
|
|
@@ -294,88 +310,88 @@ const zt = {
|
|
|
294
310
|
minRows: i = 1,
|
|
295
311
|
onSubmit: c,
|
|
296
312
|
placeholder: l = "Message Gryt",
|
|
297
|
-
submitLabel:
|
|
298
|
-
...
|
|
313
|
+
submitLabel: d = "Send",
|
|
314
|
+
...y
|
|
299
315
|
}, w) {
|
|
300
|
-
const
|
|
301
|
-
const f =
|
|
316
|
+
const m = W(null), N = K(() => {
|
|
317
|
+
const f = m.current;
|
|
302
318
|
if (!f)
|
|
303
319
|
return;
|
|
304
|
-
const
|
|
320
|
+
const H = window.getComputedStyle(f), Z = parseFloat(H.lineHeight) || 24, q = parseFloat(H.paddingTop) + parseFloat(H.paddingBottom);
|
|
305
321
|
f.style.height = "auto", f.style.height = `${Math.min(
|
|
306
|
-
Math.max(f.scrollHeight,
|
|
307
|
-
|
|
322
|
+
Math.max(f.scrollHeight, Z * i + q),
|
|
323
|
+
Z * r + q
|
|
308
324
|
)}px`;
|
|
309
325
|
}, [r, i]);
|
|
310
|
-
|
|
311
|
-
function
|
|
326
|
+
ht(N, [N, y.value]);
|
|
327
|
+
function J(f) {
|
|
312
328
|
if (!c) {
|
|
313
329
|
f.preventDefault();
|
|
314
330
|
return;
|
|
315
331
|
}
|
|
316
332
|
c(f);
|
|
317
333
|
}
|
|
318
|
-
return /* @__PURE__ */
|
|
334
|
+
return /* @__PURE__ */ g("form", { className: n("gryt-composer", t), onSubmit: J, children: [
|
|
319
335
|
/* @__PURE__ */ o(
|
|
320
336
|
"textarea",
|
|
321
337
|
{
|
|
322
338
|
ref: (f) => {
|
|
323
|
-
|
|
339
|
+
m.current = f, typeof w == "function" ? w(f) : w && (w.current = f);
|
|
324
340
|
},
|
|
325
341
|
rows: i,
|
|
326
342
|
disabled: e,
|
|
327
343
|
placeholder: l,
|
|
328
344
|
onInput: N,
|
|
329
345
|
className: "gryt-composer-textarea disabled:cursor-not-allowed disabled:opacity-60",
|
|
330
|
-
...
|
|
346
|
+
...y
|
|
331
347
|
}
|
|
332
348
|
),
|
|
333
349
|
/* @__PURE__ */ o(
|
|
334
|
-
|
|
350
|
+
_t,
|
|
335
351
|
{
|
|
336
352
|
type: "submit",
|
|
337
353
|
disabled: e,
|
|
338
354
|
size: "small",
|
|
339
|
-
endIcon: /* @__PURE__ */ o(
|
|
340
|
-
children:
|
|
355
|
+
endIcon: /* @__PURE__ */ o(Ct, { size: 14, weight: "fill" }),
|
|
356
|
+
children: d
|
|
341
357
|
}
|
|
342
358
|
)
|
|
343
359
|
] });
|
|
344
360
|
}
|
|
345
|
-
),
|
|
361
|
+
), Wt = {
|
|
346
362
|
small: "h-8 w-8 text-xs",
|
|
347
363
|
medium: "h-10 w-10 text-sm",
|
|
348
364
|
large: "h-12 w-12 text-base"
|
|
349
|
-
},
|
|
350
|
-
return /* @__PURE__ */
|
|
351
|
-
|
|
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,
|
|
352
368
|
{
|
|
353
|
-
ref:
|
|
369
|
+
ref: y,
|
|
354
370
|
className: n(
|
|
355
371
|
"gryt-avatar inline-flex shrink-0 items-center justify-center overflow-hidden align-middle select-none",
|
|
356
372
|
"rounded-(--gryt-radius-full) bg-gryt-surface-raised font-medium text-gryt-text ring-1 ring-gryt-border",
|
|
357
|
-
|
|
373
|
+
Wt[c],
|
|
358
374
|
r
|
|
359
375
|
),
|
|
360
|
-
...
|
|
376
|
+
...d,
|
|
361
377
|
children: [
|
|
362
378
|
l ? /* @__PURE__ */ o(
|
|
363
|
-
|
|
379
|
+
O.Image,
|
|
364
380
|
{
|
|
365
381
|
src: l,
|
|
366
382
|
alt: t,
|
|
367
383
|
className: "h-full w-full object-cover"
|
|
368
384
|
}
|
|
369
385
|
) : null,
|
|
370
|
-
/* @__PURE__ */ o(
|
|
386
|
+
/* @__PURE__ */ o(O.Fallback, { className: "flex h-full w-full items-center justify-center", children: i ?? e })
|
|
371
387
|
]
|
|
372
388
|
}
|
|
373
389
|
);
|
|
374
|
-
}),
|
|
375
|
-
return /* @__PURE__ */
|
|
390
|
+
}), fo = s(function({ active: t = !1, avatar: e, className: r, subtitle: i, title: c, ...l }, d) {
|
|
391
|
+
return /* @__PURE__ */ g(
|
|
376
392
|
"button",
|
|
377
393
|
{
|
|
378
|
-
ref:
|
|
394
|
+
ref: d,
|
|
379
395
|
type: "button",
|
|
380
396
|
className: n(
|
|
381
397
|
"gryt-conversation-item enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -385,7 +401,7 @@ const zt = {
|
|
|
385
401
|
...l,
|
|
386
402
|
children: [
|
|
387
403
|
e ?? /* @__PURE__ */ o(
|
|
388
|
-
|
|
404
|
+
Qt,
|
|
389
405
|
{
|
|
390
406
|
size: "small",
|
|
391
407
|
className: n(
|
|
@@ -394,7 +410,7 @@ const zt = {
|
|
|
394
410
|
children: c.slice(0, 1).toUpperCase()
|
|
395
411
|
}
|
|
396
412
|
),
|
|
397
|
-
/* @__PURE__ */
|
|
413
|
+
/* @__PURE__ */ g("span", { className: "min-w-0 flex-1", children: [
|
|
398
414
|
/* @__PURE__ */ o("span", { className: "block truncate text-sm font-semibold", children: c }),
|
|
399
415
|
i ? /* @__PURE__ */ o(
|
|
400
416
|
"span",
|
|
@@ -410,12 +426,12 @@ const zt = {
|
|
|
410
426
|
]
|
|
411
427
|
}
|
|
412
428
|
);
|
|
413
|
-
}),
|
|
414
|
-
const
|
|
415
|
-
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(
|
|
416
432
|
"span",
|
|
417
433
|
{
|
|
418
|
-
ref:
|
|
434
|
+
ref: d,
|
|
419
435
|
className: n("gryt-badge relative inline-flex", r),
|
|
420
436
|
...l,
|
|
421
437
|
children: [
|
|
@@ -429,30 +445,30 @@ const zt = {
|
|
|
429
445
|
"bg-gryt-accent text-[0.65rem] leading-none font-semibold text-gryt-on-accent",
|
|
430
446
|
"ring-2 ring-gryt-bg"
|
|
431
447
|
),
|
|
432
|
-
children:
|
|
448
|
+
children: m
|
|
433
449
|
}
|
|
434
450
|
) : null
|
|
435
451
|
]
|
|
436
452
|
}
|
|
437
453
|
);
|
|
438
|
-
}),
|
|
454
|
+
}), Jt = {
|
|
439
455
|
neutral: "border-gryt-border bg-gryt-surface-raised text-gryt-text",
|
|
440
456
|
primary: "border-gryt-accent-6 bg-gryt-accent-3 text-gryt-accent-11",
|
|
441
457
|
secondary: "border-gryt-secondary-6 bg-gryt-secondary-3 text-gryt-secondary-11",
|
|
442
458
|
success: "border-gryt-success-6 bg-gryt-success-3 text-gryt-success-11",
|
|
443
459
|
warning: "border-gryt-warning-6 bg-gryt-warning-3 text-gryt-warning-11",
|
|
444
460
|
danger: "border-gryt-danger-6 bg-gryt-danger-3 text-gryt-danger-11"
|
|
445
|
-
},
|
|
446
|
-
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(
|
|
447
463
|
"span",
|
|
448
464
|
{
|
|
449
|
-
ref:
|
|
465
|
+
ref: y,
|
|
450
466
|
className: n(
|
|
451
467
|
"gryt-chip inline-flex items-center gap-1.5 rounded-(--gryt-radius-full) border px-3 py-1 text-xs font-medium",
|
|
452
|
-
|
|
468
|
+
Jt[l],
|
|
453
469
|
e
|
|
454
470
|
),
|
|
455
|
-
...
|
|
471
|
+
...d,
|
|
456
472
|
children: [
|
|
457
473
|
r,
|
|
458
474
|
i ?? t,
|
|
@@ -467,16 +483,16 @@ const zt = {
|
|
|
467
483
|
"opacity-70 transition-opacity hover:opacity-100",
|
|
468
484
|
b
|
|
469
485
|
),
|
|
470
|
-
children: /* @__PURE__ */ o(
|
|
486
|
+
children: /* @__PURE__ */ o(ct, { size: 10, weight: "bold", "aria-hidden": "true" })
|
|
471
487
|
}
|
|
472
488
|
) : null
|
|
473
489
|
]
|
|
474
490
|
}
|
|
475
491
|
);
|
|
476
|
-
}),
|
|
492
|
+
}), wo = s(
|
|
477
493
|
function({ className: t, tone: e = "primary", ...r }, i) {
|
|
478
494
|
return /* @__PURE__ */ o(
|
|
479
|
-
|
|
495
|
+
tt.Root,
|
|
480
496
|
{
|
|
481
497
|
ref: i,
|
|
482
498
|
className: n(
|
|
@@ -492,12 +508,12 @@ const zt = {
|
|
|
492
508
|
b,
|
|
493
509
|
j,
|
|
494
510
|
// Unchecked stays a neutral outline; the tone only paints once checked.
|
|
495
|
-
|
|
511
|
+
Ht[e],
|
|
496
512
|
t
|
|
497
513
|
),
|
|
498
514
|
...r,
|
|
499
515
|
children: /* @__PURE__ */ o(
|
|
500
|
-
|
|
516
|
+
tt.Indicator,
|
|
501
517
|
{
|
|
502
518
|
keepMounted: !0,
|
|
503
519
|
className: n(
|
|
@@ -510,15 +526,15 @@ const zt = {
|
|
|
510
526
|
"data-unchecked:scale-0 data-unchecked:opacity-0",
|
|
511
527
|
"motion-reduce:transition-none"
|
|
512
528
|
),
|
|
513
|
-
children: /* @__PURE__ */ o(
|
|
529
|
+
children: /* @__PURE__ */ o(lt, { size: 12, weight: "bold" })
|
|
514
530
|
}
|
|
515
531
|
)
|
|
516
532
|
}
|
|
517
533
|
);
|
|
518
534
|
}
|
|
519
|
-
),
|
|
535
|
+
), vo = s(function({ className: t, tone: e = "primary", ...r }, i) {
|
|
520
536
|
return /* @__PURE__ */ o(
|
|
521
|
-
|
|
537
|
+
et.Root,
|
|
522
538
|
{
|
|
523
539
|
ref: i,
|
|
524
540
|
className: n(
|
|
@@ -531,12 +547,12 @@ const zt = {
|
|
|
531
547
|
b,
|
|
532
548
|
j,
|
|
533
549
|
// Border takes the tone when selected; the dot inside carries the fill.
|
|
534
|
-
|
|
550
|
+
Ot[e],
|
|
535
551
|
t
|
|
536
552
|
),
|
|
537
553
|
...r,
|
|
538
554
|
children: /* @__PURE__ */ o(
|
|
539
|
-
|
|
555
|
+
et.Indicator,
|
|
540
556
|
{
|
|
541
557
|
keepMounted: !0,
|
|
542
558
|
className: n(
|
|
@@ -545,16 +561,16 @@ const zt = {
|
|
|
545
561
|
// From 0, for the same reason as the Checkbox tick — see the note there.
|
|
546
562
|
"data-unchecked:scale-0 data-unchecked:opacity-0",
|
|
547
563
|
"motion-reduce:transition-none",
|
|
548
|
-
|
|
564
|
+
pt[e]
|
|
549
565
|
)
|
|
550
566
|
}
|
|
551
567
|
)
|
|
552
568
|
}
|
|
553
569
|
);
|
|
554
|
-
}),
|
|
570
|
+
}), No = s(
|
|
555
571
|
function({ className: t, ...e }, r) {
|
|
556
572
|
return /* @__PURE__ */ o(
|
|
557
|
-
|
|
573
|
+
Dt,
|
|
558
574
|
{
|
|
559
575
|
ref: r,
|
|
560
576
|
className: n("gryt-radio-group flex flex-col gap-2", t),
|
|
@@ -562,10 +578,10 @@ const zt = {
|
|
|
562
578
|
}
|
|
563
579
|
);
|
|
564
580
|
}
|
|
565
|
-
),
|
|
581
|
+
), Po = s(
|
|
566
582
|
function({ className: t, tone: e = "primary", ...r }, i) {
|
|
567
583
|
return /* @__PURE__ */ o(
|
|
568
|
-
|
|
584
|
+
rt.Root,
|
|
569
585
|
{
|
|
570
586
|
ref: i,
|
|
571
587
|
className: n(
|
|
@@ -578,12 +594,12 @@ const zt = {
|
|
|
578
594
|
"motion-safe:active:not-data-disabled:scale-[0.95]",
|
|
579
595
|
b,
|
|
580
596
|
j,
|
|
581
|
-
|
|
597
|
+
Xt[e],
|
|
582
598
|
t
|
|
583
599
|
),
|
|
584
600
|
...r,
|
|
585
601
|
children: /* @__PURE__ */ o(
|
|
586
|
-
|
|
602
|
+
rt.Thumb,
|
|
587
603
|
{
|
|
588
604
|
className: n(
|
|
589
605
|
"h-4.5 w-4.5 rounded-(--gryt-radius-full) bg-gryt-text",
|
|
@@ -595,41 +611,41 @@ const zt = {
|
|
|
595
611
|
}
|
|
596
612
|
);
|
|
597
613
|
}
|
|
598
|
-
),
|
|
599
|
-
function
|
|
614
|
+
), at = 3;
|
|
615
|
+
function To({
|
|
600
616
|
className: a,
|
|
601
617
|
tone: t = "primary",
|
|
602
618
|
"aria-label": e,
|
|
603
619
|
...r
|
|
604
620
|
}) {
|
|
605
|
-
const [i, c] =
|
|
606
|
-
|
|
621
|
+
const [i, c] = wt(!1), l = W(null);
|
|
622
|
+
vt(() => {
|
|
607
623
|
if (!i && l.current === null)
|
|
608
624
|
return;
|
|
609
|
-
const
|
|
625
|
+
const m = () => {
|
|
610
626
|
l.current = null, c(!1);
|
|
611
627
|
};
|
|
612
|
-
return window.addEventListener("pointerup",
|
|
613
|
-
window.removeEventListener("pointerup",
|
|
628
|
+
return window.addEventListener("pointerup", m), window.addEventListener("pointercancel", m), () => {
|
|
629
|
+
window.removeEventListener("pointerup", m), window.removeEventListener("pointercancel", m);
|
|
614
630
|
};
|
|
615
631
|
}, [i]);
|
|
616
|
-
function
|
|
617
|
-
l.current = { x:
|
|
632
|
+
function d(m) {
|
|
633
|
+
l.current = { x: m.clientX, y: m.clientY };
|
|
618
634
|
}
|
|
619
|
-
function
|
|
635
|
+
function y(m) {
|
|
620
636
|
const N = l.current;
|
|
621
637
|
if (N === null || i)
|
|
622
638
|
return;
|
|
623
|
-
(Math.abs(
|
|
639
|
+
(Math.abs(m.clientX - N.x) > at || Math.abs(m.clientY - N.y) > at) && c(!0);
|
|
624
640
|
}
|
|
625
641
|
const w = i ? "transition-none" : "duration-(--gryt-dur-spring) ease-spring-tight motion-reduce:transition-none";
|
|
626
642
|
return /* @__PURE__ */ o(B.Root, { className: n("gryt-slider w-full", a), ...r, children: /* @__PURE__ */ o(
|
|
627
643
|
B.Control,
|
|
628
644
|
{
|
|
629
645
|
className: "flex w-full cursor-pointer touch-none items-center py-2 select-none",
|
|
630
|
-
onPointerDown:
|
|
631
|
-
onPointerMove:
|
|
632
|
-
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: [
|
|
633
649
|
/* @__PURE__ */ o(
|
|
634
650
|
B.Indicator,
|
|
635
651
|
{
|
|
@@ -637,7 +653,7 @@ function No({
|
|
|
637
653
|
"h-full rounded-(--gryt-radius-full) select-none",
|
|
638
654
|
"transition-[width]",
|
|
639
655
|
w,
|
|
640
|
-
|
|
656
|
+
pt[t]
|
|
641
657
|
)
|
|
642
658
|
}
|
|
643
659
|
),
|
|
@@ -653,7 +669,7 @@ function No({
|
|
|
653
669
|
// hidden input inside it, so this has to match a descendant.
|
|
654
670
|
// Without it the slider is the one control here you cannot see
|
|
655
671
|
// yourself tab to.
|
|
656
|
-
|
|
672
|
+
Yt
|
|
657
673
|
),
|
|
658
674
|
children: /* @__PURE__ */ o(
|
|
659
675
|
"span",
|
|
@@ -672,11 +688,11 @@ function No({
|
|
|
672
688
|
}
|
|
673
689
|
) });
|
|
674
690
|
}
|
|
675
|
-
const
|
|
691
|
+
const Zt = {
|
|
676
692
|
small: "min-h-9 px-3 text-sm",
|
|
677
693
|
medium: "min-h-11 px-4 text-sm"
|
|
678
694
|
};
|
|
679
|
-
function
|
|
695
|
+
function ko({
|
|
680
696
|
className: a,
|
|
681
697
|
label: t,
|
|
682
698
|
options: e = [],
|
|
@@ -684,10 +700,11 @@ function Po({
|
|
|
684
700
|
size: i = "medium",
|
|
685
701
|
...c
|
|
686
702
|
}) {
|
|
687
|
-
|
|
688
|
-
|
|
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: [
|
|
689
706
|
t ? /* @__PURE__ */ o(x.Label, { className: "text-xs font-medium text-gryt-muted", children: t }) : null,
|
|
690
|
-
/* @__PURE__ */
|
|
707
|
+
/* @__PURE__ */ g(
|
|
691
708
|
x.Trigger,
|
|
692
709
|
{
|
|
693
710
|
className: n(
|
|
@@ -697,16 +714,16 @@ function Po({
|
|
|
697
714
|
"transition-colors duration-150 hover:border-gryt-accent-light",
|
|
698
715
|
"data-disabled:cursor-not-allowed data-disabled:opacity-60",
|
|
699
716
|
b,
|
|
700
|
-
|
|
717
|
+
Zt[i]
|
|
701
718
|
),
|
|
702
719
|
children: [
|
|
703
720
|
/* @__PURE__ */ o(x.Value, { placeholder: r }),
|
|
704
|
-
/* @__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 }) })
|
|
705
722
|
]
|
|
706
723
|
}
|
|
707
724
|
)
|
|
708
725
|
] }),
|
|
709
|
-
/* @__PURE__ */ o(x.Portal, { children: /* @__PURE__ */ o(
|
|
726
|
+
/* @__PURE__ */ o(x.Portal, { container: l, children: /* @__PURE__ */ o(
|
|
710
727
|
x.Positioner,
|
|
711
728
|
{
|
|
712
729
|
sideOffset: 6,
|
|
@@ -715,11 +732,11 @@ function Po({
|
|
|
715
732
|
x.Popup,
|
|
716
733
|
{
|
|
717
734
|
className: n("min-w-(--anchor-width) p-1", D, $),
|
|
718
|
-
children: /* @__PURE__ */ o(x.List, { children: e.map((
|
|
735
|
+
children: /* @__PURE__ */ o(x.List, { children: e.map((d) => /* @__PURE__ */ g(
|
|
719
736
|
x.Item,
|
|
720
737
|
{
|
|
721
|
-
value:
|
|
722
|
-
disabled:
|
|
738
|
+
value: d.value,
|
|
739
|
+
disabled: d.disabled,
|
|
723
740
|
className: n(
|
|
724
741
|
"flex cursor-pointer items-center justify-between gap-2",
|
|
725
742
|
"rounded-(--gryt-radius-md) px-3 py-2 text-sm text-gryt-text",
|
|
@@ -727,11 +744,11 @@ function Po({
|
|
|
727
744
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50"
|
|
728
745
|
),
|
|
729
746
|
children: [
|
|
730
|
-
/* @__PURE__ */ o(x.ItemText, { children:
|
|
731
|
-
/* @__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" }) })
|
|
732
749
|
]
|
|
733
750
|
},
|
|
734
|
-
String(
|
|
751
|
+
String(d.value)
|
|
735
752
|
)) })
|
|
736
753
|
}
|
|
737
754
|
)
|
|
@@ -739,16 +756,17 @@ function Po({
|
|
|
739
756
|
) })
|
|
740
757
|
] });
|
|
741
758
|
}
|
|
742
|
-
function
|
|
759
|
+
function Co({
|
|
743
760
|
children: a,
|
|
744
761
|
className: t,
|
|
745
762
|
side: e = "top",
|
|
746
763
|
sideOffset: r = 8,
|
|
747
764
|
title: i
|
|
748
765
|
}) {
|
|
749
|
-
|
|
766
|
+
const c = ut();
|
|
767
|
+
return /* @__PURE__ */ g(I.Root, { children: [
|
|
750
768
|
/* @__PURE__ */ o(I.Trigger, { render: a }),
|
|
751
|
-
/* @__PURE__ */ o(I.Portal, { children: /* @__PURE__ */ o(
|
|
769
|
+
/* @__PURE__ */ o(I.Portal, { container: c, children: /* @__PURE__ */ o(
|
|
752
770
|
I.Positioner,
|
|
753
771
|
{
|
|
754
772
|
side: e,
|
|
@@ -770,10 +788,10 @@ function To({
|
|
|
770
788
|
) })
|
|
771
789
|
] });
|
|
772
790
|
}
|
|
773
|
-
const
|
|
791
|
+
const So = I.Provider, $o = s(
|
|
774
792
|
function({ className: t, orientation: e = "horizontal", ...r }, i) {
|
|
775
793
|
return /* @__PURE__ */ o(
|
|
776
|
-
|
|
794
|
+
Mt,
|
|
777
795
|
{
|
|
778
796
|
ref: i,
|
|
779
797
|
orientation: e,
|
|
@@ -786,7 +804,7 @@ const ko = I.Provider, Co = s(
|
|
|
786
804
|
}
|
|
787
805
|
);
|
|
788
806
|
}
|
|
789
|
-
),
|
|
807
|
+
), Ro = s(function({ className: t, ...e }, r) {
|
|
790
808
|
return /* @__PURE__ */ o(
|
|
791
809
|
"div",
|
|
792
810
|
{
|
|
@@ -799,14 +817,14 @@ const ko = I.Provider, Co = s(
|
|
|
799
817
|
}
|
|
800
818
|
);
|
|
801
819
|
});
|
|
802
|
-
function
|
|
820
|
+
function Io({
|
|
803
821
|
children: a,
|
|
804
822
|
className: t,
|
|
805
823
|
subheader: e,
|
|
806
824
|
title: r,
|
|
807
825
|
...i
|
|
808
826
|
}) {
|
|
809
|
-
return /* @__PURE__ */
|
|
827
|
+
return /* @__PURE__ */ g(
|
|
810
828
|
"div",
|
|
811
829
|
{
|
|
812
830
|
className: n("gryt-card-header flex flex-col gap-1 p-4", t),
|
|
@@ -819,7 +837,7 @@ function $o({
|
|
|
819
837
|
}
|
|
820
838
|
);
|
|
821
839
|
}
|
|
822
|
-
function
|
|
840
|
+
function Ao({
|
|
823
841
|
className: a,
|
|
824
842
|
...t
|
|
825
843
|
}) {
|
|
@@ -834,7 +852,7 @@ function Ro({
|
|
|
834
852
|
}
|
|
835
853
|
);
|
|
836
854
|
}
|
|
837
|
-
function
|
|
855
|
+
function Do({
|
|
838
856
|
className: a,
|
|
839
857
|
...t
|
|
840
858
|
}) {
|
|
@@ -849,12 +867,12 @@ function Io({
|
|
|
849
867
|
}
|
|
850
868
|
);
|
|
851
869
|
}
|
|
852
|
-
const
|
|
870
|
+
const qt = {
|
|
853
871
|
info: "border-gryt-secondary-6 bg-gryt-secondary-3 text-gryt-secondary-11",
|
|
854
872
|
success: "border-gryt-success-6 bg-gryt-success-3 text-gryt-success-11",
|
|
855
873
|
warning: "border-gryt-warning-6 bg-gryt-warning-3 text-gryt-warning-11",
|
|
856
874
|
error: "border-gryt-danger-6 bg-gryt-danger-3 text-gryt-danger-11"
|
|
857
|
-
},
|
|
875
|
+
}, Mo = s(function({ className: t, severity: e = "info", ...r }, i) {
|
|
858
876
|
return /* @__PURE__ */ o(
|
|
859
877
|
"div",
|
|
860
878
|
{
|
|
@@ -862,22 +880,22 @@ const Jt = {
|
|
|
862
880
|
role: "alert",
|
|
863
881
|
className: n(
|
|
864
882
|
"gryt-alert rounded-(--gryt-radius-lg) border px-4 py-3 text-sm",
|
|
865
|
-
|
|
883
|
+
qt[e],
|
|
866
884
|
t
|
|
867
885
|
),
|
|
868
886
|
...r
|
|
869
887
|
}
|
|
870
888
|
);
|
|
871
889
|
});
|
|
872
|
-
function
|
|
890
|
+
function Go({ className: a, value: t = null, ...e }) {
|
|
873
891
|
return /* @__PURE__ */ o(
|
|
874
|
-
|
|
892
|
+
X.Root,
|
|
875
893
|
{
|
|
876
894
|
value: t,
|
|
877
895
|
className: n("gryt-progress w-full", a),
|
|
878
896
|
...e,
|
|
879
|
-
children: /* @__PURE__ */ o(
|
|
880
|
-
|
|
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,
|
|
881
899
|
{
|
|
882
900
|
className: n(
|
|
883
901
|
"h-full rounded-(--gryt-radius-full) bg-gryt-accent",
|
|
@@ -894,13 +912,13 @@ function Do({ className: a, value: t = null, ...e }) {
|
|
|
894
912
|
}
|
|
895
913
|
);
|
|
896
914
|
}
|
|
897
|
-
function
|
|
915
|
+
function Lo({
|
|
898
916
|
className: a,
|
|
899
917
|
size: t = 24,
|
|
900
918
|
"aria-label": e = "Loading"
|
|
901
919
|
}) {
|
|
902
920
|
return /* @__PURE__ */ o(
|
|
903
|
-
|
|
921
|
+
$t,
|
|
904
922
|
{
|
|
905
923
|
role: "status",
|
|
906
924
|
"aria-label": e,
|
|
@@ -913,13 +931,13 @@ function Mo({
|
|
|
913
931
|
}
|
|
914
932
|
);
|
|
915
933
|
}
|
|
916
|
-
const
|
|
934
|
+
const te = {
|
|
917
935
|
text: "h-4 rounded-(--gryt-radius-sm)",
|
|
918
936
|
rounded: "rounded-(--gryt-radius-lg)",
|
|
919
937
|
circular: "rounded-(--gryt-radius-full)",
|
|
920
938
|
rectangular: "rounded-none"
|
|
921
939
|
};
|
|
922
|
-
function
|
|
940
|
+
function jo({
|
|
923
941
|
className: a,
|
|
924
942
|
height: t,
|
|
925
943
|
style: e,
|
|
@@ -944,7 +962,7 @@ function Go({
|
|
|
944
962
|
// the surfaces it can land on rather than only the one it was picked
|
|
945
963
|
// against, and it dims rather than brightens as it pulses.
|
|
946
964
|
"gryt-skeleton bg-white/9 motion-safe:animate-pulse",
|
|
947
|
-
|
|
965
|
+
te[r],
|
|
948
966
|
a
|
|
949
967
|
),
|
|
950
968
|
style: l,
|
|
@@ -952,7 +970,7 @@ function Go({
|
|
|
952
970
|
}
|
|
953
971
|
);
|
|
954
972
|
}
|
|
955
|
-
const
|
|
973
|
+
const bt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ease-spring motion-reduce:transition-none", ee = s(
|
|
956
974
|
function({ className: t, ...e }, r) {
|
|
957
975
|
return /* @__PURE__ */ o(
|
|
958
976
|
C.Backdrop,
|
|
@@ -961,7 +979,7 @@ const yt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
961
979
|
className: n(
|
|
962
980
|
"gryt-dialog-backdrop fixed inset-0 min-h-dvh bg-black/60",
|
|
963
981
|
"backdrop-blur-(--gryt-backdrop-blur)",
|
|
964
|
-
|
|
982
|
+
bt,
|
|
965
983
|
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
966
984
|
t
|
|
967
985
|
),
|
|
@@ -969,7 +987,7 @@ const yt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
969
987
|
}
|
|
970
988
|
);
|
|
971
989
|
}
|
|
972
|
-
),
|
|
990
|
+
), re = s(
|
|
973
991
|
function({ className: t, ...e }, r) {
|
|
974
992
|
return /* @__PURE__ */ o(
|
|
975
993
|
C.Popup,
|
|
@@ -979,7 +997,7 @@ const yt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
979
997
|
"gryt-dialog fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
|
|
980
998
|
"flex w-[32rem] max-w-[calc(100vw-3rem)] flex-col gap-4",
|
|
981
999
|
"rounded-(--gryt-radius-lg) border border-gryt-border bg-gryt-surface p-5 text-gryt-text",
|
|
982
|
-
|
|
1000
|
+
bt,
|
|
983
1001
|
"data-starting-style:scale-[0.98] data-starting-style:opacity-0",
|
|
984
1002
|
"data-ending-style:scale-[0.98] data-ending-style:opacity-0",
|
|
985
1003
|
t
|
|
@@ -988,7 +1006,7 @@ const yt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
988
1006
|
}
|
|
989
1007
|
);
|
|
990
1008
|
}
|
|
991
|
-
),
|
|
1009
|
+
), oe = s(
|
|
992
1010
|
function({ className: t, ...e }, r) {
|
|
993
1011
|
return /* @__PURE__ */ o(
|
|
994
1012
|
C.Title,
|
|
@@ -1002,7 +1020,7 @@ const yt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
1002
1020
|
}
|
|
1003
1021
|
);
|
|
1004
1022
|
}
|
|
1005
|
-
),
|
|
1023
|
+
), ae = s(
|
|
1006
1024
|
function({ className: t, ...e }, r) {
|
|
1007
1025
|
return /* @__PURE__ */ o(
|
|
1008
1026
|
C.Description,
|
|
@@ -1016,7 +1034,7 @@ const yt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
1016
1034
|
}
|
|
1017
1035
|
);
|
|
1018
1036
|
}
|
|
1019
|
-
),
|
|
1037
|
+
), ne = s(
|
|
1020
1038
|
function({ className: t, ...e }, r) {
|
|
1021
1039
|
return /* @__PURE__ */ o(
|
|
1022
1040
|
"div",
|
|
@@ -1030,45 +1048,45 @@ const yt = "transition-[opacity,scale,translate] duration-(--gryt-dur-spring) ea
|
|
|
1030
1048
|
}
|
|
1031
1049
|
);
|
|
1032
1050
|
}
|
|
1033
|
-
),
|
|
1051
|
+
), Bo = {
|
|
1034
1052
|
Root: C.Root,
|
|
1035
1053
|
Trigger: C.Trigger,
|
|
1036
1054
|
Portal: C.Portal,
|
|
1037
1055
|
Close: C.Close,
|
|
1038
|
-
Backdrop:
|
|
1039
|
-
Popup:
|
|
1040
|
-
Title:
|
|
1041
|
-
Description:
|
|
1042
|
-
Footer:
|
|
1043
|
-
},
|
|
1056
|
+
Backdrop: ee,
|
|
1057
|
+
Popup: re,
|
|
1058
|
+
Title: oe,
|
|
1059
|
+
Description: ae,
|
|
1060
|
+
Footer: ne
|
|
1061
|
+
}, ie = () => () => {
|
|
1044
1062
|
};
|
|
1045
|
-
function
|
|
1046
|
-
const t =
|
|
1063
|
+
function se(a) {
|
|
1064
|
+
const t = K(
|
|
1047
1065
|
(r) => {
|
|
1048
|
-
if (typeof window > "u" || !window.matchMedia) return
|
|
1066
|
+
if (typeof window > "u" || !window.matchMedia) return ie();
|
|
1049
1067
|
const i = window.matchMedia(a);
|
|
1050
1068
|
return i.addEventListener("change", r), () => i.removeEventListener("change", r);
|
|
1051
1069
|
},
|
|
1052
1070
|
[a]
|
|
1053
|
-
), e =
|
|
1054
|
-
return
|
|
1071
|
+
), e = K(() => typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia(a).matches, [a]);
|
|
1072
|
+
return Nt(t, e, () => !1);
|
|
1055
1073
|
}
|
|
1056
|
-
const
|
|
1074
|
+
const ce = {
|
|
1057
1075
|
left: "left",
|
|
1058
1076
|
right: "right",
|
|
1059
1077
|
top: "up",
|
|
1060
1078
|
bottom: "down"
|
|
1061
|
-
},
|
|
1079
|
+
}, Y = it("right"), le = {
|
|
1062
1080
|
left: "items-stretch justify-start",
|
|
1063
1081
|
right: "items-stretch justify-end",
|
|
1064
1082
|
top: "items-start justify-center",
|
|
1065
1083
|
bottom: "items-end justify-center"
|
|
1066
|
-
},
|
|
1084
|
+
}, de = {
|
|
1067
1085
|
left: "rounded-r-(--gryt-radius-xl)",
|
|
1068
1086
|
right: "rounded-l-(--gryt-radius-xl)",
|
|
1069
1087
|
top: "rounded-b-(--gryt-radius-xl)",
|
|
1070
1088
|
bottom: "rounded-t-(--gryt-radius-xl)"
|
|
1071
|
-
},
|
|
1089
|
+
}, ge = {
|
|
1072
1090
|
left: [
|
|
1073
1091
|
"h-full w-[calc(20rem+var(--gryt-drawer-bleed))] max-w-[calc(85vw+var(--gryt-drawer-bleed))]",
|
|
1074
1092
|
"-ml-(--gryt-drawer-bleed) border-r py-5 pr-5 pl-[calc(1.25rem+var(--gryt-drawer-bleed))]",
|
|
@@ -1098,18 +1116,18 @@ const ie = {
|
|
|
1098
1116
|
"data-ending-style:[transform:translateY(calc(100%-var(--gryt-drawer-bleed)))]"
|
|
1099
1117
|
].join(" ")
|
|
1100
1118
|
};
|
|
1101
|
-
function
|
|
1119
|
+
function ue({
|
|
1102
1120
|
side: a = "right",
|
|
1103
1121
|
sheetOnMobile: t = !0,
|
|
1104
1122
|
children: e,
|
|
1105
1123
|
...r
|
|
1106
1124
|
}) {
|
|
1107
|
-
const i =
|
|
1108
|
-
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 }) });
|
|
1109
1127
|
}
|
|
1110
|
-
const
|
|
1128
|
+
const ye = s(
|
|
1111
1129
|
function({ className: t, ...e }, r) {
|
|
1112
|
-
const i =
|
|
1130
|
+
const i = _(Y);
|
|
1113
1131
|
return /* @__PURE__ */ o(
|
|
1114
1132
|
v.Viewport,
|
|
1115
1133
|
{
|
|
@@ -1119,15 +1137,15 @@ const ge = s(
|
|
|
1119
1137
|
// viewport is what has to sit above the page. Without it a sticky
|
|
1120
1138
|
// site header renders over the panel.
|
|
1121
1139
|
"gryt-drawer-viewport fixed inset-0 z-50 flex",
|
|
1122
|
-
|
|
1140
|
+
le[i],
|
|
1123
1141
|
t
|
|
1124
1142
|
),
|
|
1125
1143
|
...e
|
|
1126
1144
|
}
|
|
1127
1145
|
);
|
|
1128
1146
|
}
|
|
1129
|
-
),
|
|
1130
|
-
const i =
|
|
1147
|
+
), me = s(function({ className: t, ...e }, r) {
|
|
1148
|
+
const i = _(Y);
|
|
1131
1149
|
return /* @__PURE__ */ o(
|
|
1132
1150
|
v.Popup,
|
|
1133
1151
|
{
|
|
@@ -1140,14 +1158,14 @@ const ge = s(
|
|
|
1140
1158
|
// duration here turns a drag into a drag plus lag.
|
|
1141
1159
|
"data-swiping:duration-0 data-swiping:select-none",
|
|
1142
1160
|
"motion-reduce:transition-none",
|
|
1143
|
-
|
|
1144
|
-
|
|
1161
|
+
ge[i],
|
|
1162
|
+
de[i],
|
|
1145
1163
|
t
|
|
1146
1164
|
),
|
|
1147
1165
|
...e
|
|
1148
1166
|
}
|
|
1149
1167
|
);
|
|
1150
|
-
}),
|
|
1168
|
+
}), pe = s(function({ className: t, ...e }, r) {
|
|
1151
1169
|
return /* @__PURE__ */ o(
|
|
1152
1170
|
v.Backdrop,
|
|
1153
1171
|
{
|
|
@@ -1168,8 +1186,8 @@ const ge = s(
|
|
|
1168
1186
|
}
|
|
1169
1187
|
);
|
|
1170
1188
|
});
|
|
1171
|
-
function
|
|
1172
|
-
const t =
|
|
1189
|
+
function be({ className: a }) {
|
|
1190
|
+
const t = _(Y);
|
|
1173
1191
|
return t !== "bottom" && t !== "top" ? null : /* @__PURE__ */ o(
|
|
1174
1192
|
"div",
|
|
1175
1193
|
{
|
|
@@ -1182,19 +1200,19 @@ function pe({ className: a }) {
|
|
|
1182
1200
|
}
|
|
1183
1201
|
);
|
|
1184
1202
|
}
|
|
1185
|
-
const
|
|
1186
|
-
Root:
|
|
1203
|
+
const zo = {
|
|
1204
|
+
Root: ue,
|
|
1187
1205
|
Trigger: v.Trigger,
|
|
1188
1206
|
Portal: v.Portal,
|
|
1189
|
-
Backdrop:
|
|
1190
|
-
Viewport:
|
|
1191
|
-
Popup:
|
|
1207
|
+
Backdrop: pe,
|
|
1208
|
+
Viewport: ye,
|
|
1209
|
+
Popup: me,
|
|
1192
1210
|
Content: v.Content,
|
|
1193
|
-
Grabber:
|
|
1211
|
+
Grabber: be,
|
|
1194
1212
|
Close: v.Close,
|
|
1195
1213
|
Title: v.Title,
|
|
1196
1214
|
Description: v.Description
|
|
1197
|
-
},
|
|
1215
|
+
}, fe = s(
|
|
1198
1216
|
function({ className: t, sideOffset: e = 8, ...r }, i) {
|
|
1199
1217
|
return /* @__PURE__ */ o(
|
|
1200
1218
|
A.Positioner,
|
|
@@ -1206,7 +1224,7 @@ const jo = {
|
|
|
1206
1224
|
}
|
|
1207
1225
|
);
|
|
1208
1226
|
}
|
|
1209
|
-
),
|
|
1227
|
+
), xe = s(function({ className: t, ...e }, r) {
|
|
1210
1228
|
return /* @__PURE__ */ o(
|
|
1211
1229
|
A.Popup,
|
|
1212
1230
|
{
|
|
@@ -1220,7 +1238,7 @@ const jo = {
|
|
|
1220
1238
|
...e
|
|
1221
1239
|
}
|
|
1222
1240
|
);
|
|
1223
|
-
}),
|
|
1241
|
+
}), he = s(function({ className: t, ...e }, r) {
|
|
1224
1242
|
return /* @__PURE__ */ o(
|
|
1225
1243
|
A.Item,
|
|
1226
1244
|
{
|
|
@@ -1237,7 +1255,7 @@ const jo = {
|
|
|
1237
1255
|
...e
|
|
1238
1256
|
}
|
|
1239
1257
|
);
|
|
1240
|
-
}),
|
|
1258
|
+
}), we = s(function({ className: t, ...e }, r) {
|
|
1241
1259
|
return /* @__PURE__ */ o(
|
|
1242
1260
|
A.Separator,
|
|
1243
1261
|
{
|
|
@@ -1246,15 +1264,15 @@ const jo = {
|
|
|
1246
1264
|
...e
|
|
1247
1265
|
}
|
|
1248
1266
|
);
|
|
1249
|
-
}),
|
|
1267
|
+
}), U = {
|
|
1250
1268
|
Root: A.Root,
|
|
1251
1269
|
Trigger: A.Trigger,
|
|
1252
1270
|
Portal: A.Portal,
|
|
1253
|
-
Positioner:
|
|
1254
|
-
Popup:
|
|
1255
|
-
Item:
|
|
1256
|
-
Separator:
|
|
1257
|
-
},
|
|
1271
|
+
Positioner: fe,
|
|
1272
|
+
Popup: xe,
|
|
1273
|
+
Item: he,
|
|
1274
|
+
Separator: we
|
|
1275
|
+
}, ve = s(function({ className: t, ...e }, r) {
|
|
1258
1276
|
return /* @__PURE__ */ o(
|
|
1259
1277
|
E.Root,
|
|
1260
1278
|
{
|
|
@@ -1270,7 +1288,7 @@ const jo = {
|
|
|
1270
1288
|
...e
|
|
1271
1289
|
}
|
|
1272
1290
|
);
|
|
1273
|
-
}),
|
|
1291
|
+
}), Ne = s(function({ className: t, ...e }, r) {
|
|
1274
1292
|
return /* @__PURE__ */ o(
|
|
1275
1293
|
E.List,
|
|
1276
1294
|
{
|
|
@@ -1287,7 +1305,7 @@ const jo = {
|
|
|
1287
1305
|
...e
|
|
1288
1306
|
}
|
|
1289
1307
|
);
|
|
1290
|
-
}),
|
|
1308
|
+
}), Pe = s(function({ className: t, ...e }, r) {
|
|
1291
1309
|
return /* @__PURE__ */ o(
|
|
1292
1310
|
E.Tab,
|
|
1293
1311
|
{
|
|
@@ -1313,7 +1331,7 @@ const jo = {
|
|
|
1313
1331
|
...e
|
|
1314
1332
|
}
|
|
1315
1333
|
);
|
|
1316
|
-
}),
|
|
1334
|
+
}), Te = s(
|
|
1317
1335
|
function({ className: t, ...e }, r) {
|
|
1318
1336
|
return /* @__PURE__ */ o(
|
|
1319
1337
|
E.Indicator,
|
|
@@ -1340,7 +1358,7 @@ const jo = {
|
|
|
1340
1358
|
}
|
|
1341
1359
|
);
|
|
1342
1360
|
}
|
|
1343
|
-
),
|
|
1361
|
+
), ke = s(function({ className: t, ...e }, r) {
|
|
1344
1362
|
return /* @__PURE__ */ o(
|
|
1345
1363
|
E.Panel,
|
|
1346
1364
|
{
|
|
@@ -1356,7 +1374,7 @@ const jo = {
|
|
|
1356
1374
|
...e
|
|
1357
1375
|
}
|
|
1358
1376
|
);
|
|
1359
|
-
}),
|
|
1377
|
+
}), Fo = Object.assign(ve, { List: Ne, Tab: Pe, Panel: ke, Indicator: Te }), Ce = s(function({ className: t, ...e }, r) {
|
|
1360
1378
|
return /* @__PURE__ */ o(
|
|
1361
1379
|
F.Root,
|
|
1362
1380
|
{
|
|
@@ -1368,7 +1386,7 @@ const jo = {
|
|
|
1368
1386
|
...e
|
|
1369
1387
|
}
|
|
1370
1388
|
);
|
|
1371
|
-
}),
|
|
1389
|
+
}), Se = s(
|
|
1372
1390
|
function({ className: t, ...e }, r) {
|
|
1373
1391
|
return /* @__PURE__ */ o(
|
|
1374
1392
|
F.Item,
|
|
@@ -1379,9 +1397,9 @@ const jo = {
|
|
|
1379
1397
|
}
|
|
1380
1398
|
);
|
|
1381
1399
|
}
|
|
1382
|
-
),
|
|
1400
|
+
), $e = s(
|
|
1383
1401
|
function({ children: t, className: e, expandIcon: r, ...i }, c) {
|
|
1384
|
-
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(
|
|
1385
1403
|
F.Trigger,
|
|
1386
1404
|
{
|
|
1387
1405
|
ref: c,
|
|
@@ -1398,7 +1416,7 @@ const jo = {
|
|
|
1398
1416
|
children: [
|
|
1399
1417
|
t,
|
|
1400
1418
|
r === void 0 ? /* @__PURE__ */ o(
|
|
1401
|
-
|
|
1419
|
+
Rt,
|
|
1402
1420
|
{
|
|
1403
1421
|
size: 16,
|
|
1404
1422
|
className: "shrink-0 transition-transform duration-(--gryt-dur-spring) ease-spring data-panel-open:rotate-180 motion-reduce:transition-none"
|
|
@@ -1408,7 +1426,7 @@ const jo = {
|
|
|
1408
1426
|
}
|
|
1409
1427
|
) });
|
|
1410
1428
|
}
|
|
1411
|
-
),
|
|
1429
|
+
), Re = s(
|
|
1412
1430
|
function({ children: t, className: e, ...r }, i) {
|
|
1413
1431
|
return /* @__PURE__ */ o(
|
|
1414
1432
|
F.Panel,
|
|
@@ -1428,7 +1446,7 @@ const jo = {
|
|
|
1428
1446
|
}
|
|
1429
1447
|
);
|
|
1430
1448
|
}
|
|
1431
|
-
),
|
|
1449
|
+
), Eo = Object.assign(Ce, { Item: Se, Trigger: $e, Panel: Re }), Ie = s(
|
|
1432
1450
|
function({ className: t, sideOffset: e = 2, ...r }, i) {
|
|
1433
1451
|
return /* @__PURE__ */ o(
|
|
1434
1452
|
k.Positioner,
|
|
@@ -1440,19 +1458,19 @@ const jo = {
|
|
|
1440
1458
|
}
|
|
1441
1459
|
);
|
|
1442
1460
|
}
|
|
1443
|
-
),
|
|
1461
|
+
), Vo = {
|
|
1444
1462
|
Root: k.Root,
|
|
1445
1463
|
Trigger: k.Trigger,
|
|
1446
1464
|
Portal: k.Portal,
|
|
1447
|
-
Positioner:
|
|
1448
|
-
Popup:
|
|
1449
|
-
Item:
|
|
1450
|
-
Separator:
|
|
1465
|
+
Positioner: Ie,
|
|
1466
|
+
Popup: U.Popup,
|
|
1467
|
+
Item: U.Item,
|
|
1468
|
+
Separator: U.Separator,
|
|
1451
1469
|
Group: k.Group,
|
|
1452
1470
|
GroupLabel: k.GroupLabel,
|
|
1453
1471
|
SubmenuRoot: k.SubmenuRoot,
|
|
1454
1472
|
SubmenuTrigger: k.SubmenuTrigger
|
|
1455
|
-
},
|
|
1473
|
+
}, Ae = s(
|
|
1456
1474
|
function({ className: t, sideOffset: e = 8, ...r }, i) {
|
|
1457
1475
|
return /* @__PURE__ */ o(
|
|
1458
1476
|
P.Positioner,
|
|
@@ -1464,7 +1482,7 @@ const jo = {
|
|
|
1464
1482
|
}
|
|
1465
1483
|
);
|
|
1466
1484
|
}
|
|
1467
|
-
),
|
|
1485
|
+
), De = s(
|
|
1468
1486
|
function({ className: t, ...e }, r) {
|
|
1469
1487
|
return /* @__PURE__ */ o(
|
|
1470
1488
|
P.Popup,
|
|
@@ -1480,7 +1498,7 @@ const jo = {
|
|
|
1480
1498
|
}
|
|
1481
1499
|
);
|
|
1482
1500
|
}
|
|
1483
|
-
),
|
|
1501
|
+
), Me = s(function({ className: t, ...e }, r) {
|
|
1484
1502
|
return /* @__PURE__ */ o(
|
|
1485
1503
|
P.Title,
|
|
1486
1504
|
{
|
|
@@ -1492,7 +1510,7 @@ const jo = {
|
|
|
1492
1510
|
...e
|
|
1493
1511
|
}
|
|
1494
1512
|
);
|
|
1495
|
-
}),
|
|
1513
|
+
}), Ge = s(function({ className: t, ...e }, r) {
|
|
1496
1514
|
return /* @__PURE__ */ o(
|
|
1497
1515
|
P.Description,
|
|
1498
1516
|
{
|
|
@@ -1504,23 +1522,23 @@ const jo = {
|
|
|
1504
1522
|
...e
|
|
1505
1523
|
}
|
|
1506
1524
|
);
|
|
1507
|
-
}),
|
|
1525
|
+
}), _o = {
|
|
1508
1526
|
Root: P.Root,
|
|
1509
1527
|
Trigger: P.Trigger,
|
|
1510
1528
|
Portal: P.Portal,
|
|
1511
|
-
Positioner:
|
|
1512
|
-
Popup:
|
|
1513
|
-
Title:
|
|
1514
|
-
Description:
|
|
1529
|
+
Positioner: Ae,
|
|
1530
|
+
Popup: De,
|
|
1531
|
+
Title: Me,
|
|
1532
|
+
Description: Ge,
|
|
1515
1533
|
Close: P.Close,
|
|
1516
1534
|
Arrow: P.Arrow
|
|
1517
|
-
},
|
|
1535
|
+
}, Le = {
|
|
1518
1536
|
neutral: "border-white/8 bg-gryt-surface",
|
|
1519
1537
|
info: "border-gryt-secondary-6 bg-gryt-secondary-2",
|
|
1520
1538
|
success: "border-gryt-success-6 bg-gryt-success-2",
|
|
1521
1539
|
warning: "border-gryt-warning-6 bg-gryt-warning-2",
|
|
1522
1540
|
danger: "border-gryt-danger-6 bg-gryt-danger-2"
|
|
1523
|
-
},
|
|
1541
|
+
}, je = s(
|
|
1524
1542
|
function({ className: t, ...e }, r) {
|
|
1525
1543
|
return /* @__PURE__ */ o(
|
|
1526
1544
|
T.Viewport,
|
|
@@ -1535,7 +1553,7 @@ const jo = {
|
|
|
1535
1553
|
}
|
|
1536
1554
|
);
|
|
1537
1555
|
}
|
|
1538
|
-
),
|
|
1556
|
+
), Be = s(function({ className: t, severity: e = "neutral", ...r }, i) {
|
|
1539
1557
|
return /* @__PURE__ */ o(
|
|
1540
1558
|
T.Root,
|
|
1541
1559
|
{
|
|
@@ -1548,7 +1566,7 @@ const jo = {
|
|
|
1548
1566
|
// white hairline separates it from the page without drawing a box
|
|
1549
1567
|
// around it.
|
|
1550
1568
|
"rounded-(--gryt-radius-xl) border text-gryt-text",
|
|
1551
|
-
|
|
1569
|
+
Le[e],
|
|
1552
1570
|
// Swiping is a pointer gesture, so the toast follows the finger
|
|
1553
1571
|
// through Base UI's swipe variables before it animates out.
|
|
1554
1572
|
"transition-[opacity,transform] duration-(--gryt-dur-spring) ease-spring",
|
|
@@ -1560,7 +1578,7 @@ const jo = {
|
|
|
1560
1578
|
...r
|
|
1561
1579
|
}
|
|
1562
1580
|
);
|
|
1563
|
-
}),
|
|
1581
|
+
}), ze = s(function({ className: t, ...e }, r) {
|
|
1564
1582
|
return /* @__PURE__ */ o(
|
|
1565
1583
|
T.Title,
|
|
1566
1584
|
{
|
|
@@ -1572,7 +1590,7 @@ const jo = {
|
|
|
1572
1590
|
...e
|
|
1573
1591
|
}
|
|
1574
1592
|
);
|
|
1575
|
-
}),
|
|
1593
|
+
}), Fe = s(function({ className: t, ...e }, r) {
|
|
1576
1594
|
return /* @__PURE__ */ o(
|
|
1577
1595
|
T.Description,
|
|
1578
1596
|
{
|
|
@@ -1584,7 +1602,7 @@ const jo = {
|
|
|
1584
1602
|
...e
|
|
1585
1603
|
}
|
|
1586
1604
|
);
|
|
1587
|
-
}),
|
|
1605
|
+
}), Ee = s(function({ className: t, children: e, ...r }, i) {
|
|
1588
1606
|
return /* @__PURE__ */ o(
|
|
1589
1607
|
T.Close,
|
|
1590
1608
|
{
|
|
@@ -1598,10 +1616,10 @@ const jo = {
|
|
|
1598
1616
|
t
|
|
1599
1617
|
),
|
|
1600
1618
|
...r,
|
|
1601
|
-
children: e ?? /* @__PURE__ */ o(
|
|
1619
|
+
children: e ?? /* @__PURE__ */ o(ct, { size: 14, weight: "bold" })
|
|
1602
1620
|
}
|
|
1603
1621
|
);
|
|
1604
|
-
}),
|
|
1622
|
+
}), Ve = s(function({ className: t, ...e }, r) {
|
|
1605
1623
|
return /* @__PURE__ */ o(
|
|
1606
1624
|
T.Action,
|
|
1607
1625
|
{
|
|
@@ -1617,16 +1635,16 @@ const jo = {
|
|
|
1617
1635
|
...e
|
|
1618
1636
|
}
|
|
1619
1637
|
);
|
|
1620
|
-
}),
|
|
1638
|
+
}), Yo = {
|
|
1621
1639
|
Provider: T.Provider,
|
|
1622
1640
|
Portal: T.Portal,
|
|
1623
|
-
Viewport:
|
|
1624
|
-
Root:
|
|
1625
|
-
Title:
|
|
1626
|
-
Description:
|
|
1627
|
-
Close:
|
|
1628
|
-
Action:
|
|
1629
|
-
},
|
|
1641
|
+
Viewport: je,
|
|
1642
|
+
Root: Be,
|
|
1643
|
+
Title: ze,
|
|
1644
|
+
Description: Fe,
|
|
1645
|
+
Close: Ee,
|
|
1646
|
+
Action: Ve
|
|
1647
|
+
}, Ho = T.useToastManager, _e = s(
|
|
1630
1648
|
function({ className: t, ...e }, r) {
|
|
1631
1649
|
return /* @__PURE__ */ o(
|
|
1632
1650
|
L.Root,
|
|
@@ -1637,7 +1655,7 @@ const jo = {
|
|
|
1637
1655
|
}
|
|
1638
1656
|
);
|
|
1639
1657
|
}
|
|
1640
|
-
),
|
|
1658
|
+
), Ye = s(
|
|
1641
1659
|
function({ className: t, ...e }, r) {
|
|
1642
1660
|
return /* @__PURE__ */ o(
|
|
1643
1661
|
L.Viewport,
|
|
@@ -1652,7 +1670,7 @@ const jo = {
|
|
|
1652
1670
|
}
|
|
1653
1671
|
);
|
|
1654
1672
|
}
|
|
1655
|
-
),
|
|
1673
|
+
), He = s(
|
|
1656
1674
|
function({ className: t, orientation: e, ...r }, i) {
|
|
1657
1675
|
return /* @__PURE__ */ o(
|
|
1658
1676
|
L.Scrollbar,
|
|
@@ -1674,13 +1692,13 @@ const jo = {
|
|
|
1674
1692
|
}
|
|
1675
1693
|
);
|
|
1676
1694
|
}
|
|
1677
|
-
),
|
|
1678
|
-
Root:
|
|
1679
|
-
Viewport:
|
|
1680
|
-
Scrollbar:
|
|
1695
|
+
), Oo = {
|
|
1696
|
+
Root: _e,
|
|
1697
|
+
Viewport: Ye,
|
|
1698
|
+
Scrollbar: He,
|
|
1681
1699
|
Content: L.Content,
|
|
1682
1700
|
Corner: L.Corner
|
|
1683
|
-
},
|
|
1701
|
+
}, Oe = {
|
|
1684
1702
|
primary: [
|
|
1685
1703
|
"text-gryt-muted hover:not-data-disabled:bg-white/8",
|
|
1686
1704
|
"data-pressed:bg-gryt-accent data-pressed:text-gryt-on-accent",
|
|
@@ -1701,15 +1719,15 @@ const jo = {
|
|
|
1701
1719
|
"data-pressed:bg-gryt-danger data-pressed:text-gryt-on-danger",
|
|
1702
1720
|
"data-pressed:hover:not-data-disabled:bg-gryt-danger"
|
|
1703
1721
|
].join(" ")
|
|
1704
|
-
},
|
|
1722
|
+
}, Xe = {
|
|
1705
1723
|
xsmall: "h-8 min-w-8 px-2 text-xs",
|
|
1706
1724
|
small: "h-9 min-w-9 px-2.5 text-sm",
|
|
1707
1725
|
medium: "h-10 min-w-10 px-3 text-sm",
|
|
1708
1726
|
large: "h-12 min-w-12 px-4 text-base"
|
|
1709
|
-
},
|
|
1727
|
+
}, Xo = s(
|
|
1710
1728
|
function({ className: t, size: e = "medium", tone: r = "primary", ...i }, c) {
|
|
1711
1729
|
return /* @__PURE__ */ o(
|
|
1712
|
-
|
|
1730
|
+
Gt,
|
|
1713
1731
|
{
|
|
1714
1732
|
ref: c,
|
|
1715
1733
|
className: n(
|
|
@@ -1722,18 +1740,18 @@ const jo = {
|
|
|
1722
1740
|
"motion-safe:active:not-data-disabled:scale-[0.94]",
|
|
1723
1741
|
b,
|
|
1724
1742
|
j,
|
|
1725
|
-
|
|
1726
|
-
|
|
1743
|
+
Xe[e],
|
|
1744
|
+
Oe[r],
|
|
1727
1745
|
t
|
|
1728
1746
|
),
|
|
1729
1747
|
...i
|
|
1730
1748
|
}
|
|
1731
1749
|
);
|
|
1732
1750
|
}
|
|
1733
|
-
),
|
|
1751
|
+
), Uo = s(
|
|
1734
1752
|
function({ className: t, ...e }, r) {
|
|
1735
1753
|
return /* @__PURE__ */ o(
|
|
1736
|
-
|
|
1754
|
+
Lt,
|
|
1737
1755
|
{
|
|
1738
1756
|
ref: r,
|
|
1739
1757
|
className: n(
|
|
@@ -1745,13 +1763,13 @@ const jo = {
|
|
|
1745
1763
|
}
|
|
1746
1764
|
);
|
|
1747
1765
|
}
|
|
1748
|
-
),
|
|
1766
|
+
), Ue = {
|
|
1749
1767
|
primary: "bg-gryt-accent",
|
|
1750
1768
|
success: "bg-gryt-success",
|
|
1751
1769
|
warning: "bg-gryt-warning",
|
|
1752
1770
|
danger: "bg-gryt-danger"
|
|
1753
1771
|
};
|
|
1754
|
-
function
|
|
1772
|
+
function Ko({
|
|
1755
1773
|
className: a,
|
|
1756
1774
|
value: t,
|
|
1757
1775
|
label: e,
|
|
@@ -1759,14 +1777,14 @@ function Xo({
|
|
|
1759
1777
|
tone: i = "primary",
|
|
1760
1778
|
...c
|
|
1761
1779
|
}) {
|
|
1762
|
-
return /* @__PURE__ */
|
|
1780
|
+
return /* @__PURE__ */ g(
|
|
1763
1781
|
z.Root,
|
|
1764
1782
|
{
|
|
1765
1783
|
value: t,
|
|
1766
1784
|
className: n("gryt-meter flex w-full flex-col gap-1.5", a),
|
|
1767
1785
|
...c,
|
|
1768
1786
|
children: [
|
|
1769
|
-
(e || r) && /* @__PURE__ */
|
|
1787
|
+
(e || r) && /* @__PURE__ */ g("div", { className: "flex items-baseline justify-between gap-2", children: [
|
|
1770
1788
|
e ? /* @__PURE__ */ o(z.Label, { className: "text-sm text-gryt-muted", children: e }) : /* @__PURE__ */ o("span", {}),
|
|
1771
1789
|
r && /* @__PURE__ */ o(z.Value, { className: "font-mono text-xs text-gryt-muted tabular-nums" })
|
|
1772
1790
|
] }),
|
|
@@ -1776,7 +1794,7 @@ function Xo({
|
|
|
1776
1794
|
className: n(
|
|
1777
1795
|
"h-full rounded-(--gryt-radius-full)",
|
|
1778
1796
|
"transition-[width] duration-120 ease-out motion-reduce:transition-none",
|
|
1779
|
-
|
|
1797
|
+
Ue[i]
|
|
1780
1798
|
)
|
|
1781
1799
|
}
|
|
1782
1800
|
) })
|
|
@@ -1784,7 +1802,7 @@ function Xo({
|
|
|
1784
1802
|
}
|
|
1785
1803
|
);
|
|
1786
1804
|
}
|
|
1787
|
-
const
|
|
1805
|
+
const Ke = s(
|
|
1788
1806
|
function({ className: t, ...e }, r) {
|
|
1789
1807
|
return /* @__PURE__ */ o(
|
|
1790
1808
|
S.Popup,
|
|
@@ -1804,7 +1822,7 @@ const Xe = s(
|
|
|
1804
1822
|
}
|
|
1805
1823
|
);
|
|
1806
1824
|
}
|
|
1807
|
-
),
|
|
1825
|
+
), We = s(function({ className: t, ...e }, r) {
|
|
1808
1826
|
return /* @__PURE__ */ o(
|
|
1809
1827
|
S.Backdrop,
|
|
1810
1828
|
{
|
|
@@ -1819,7 +1837,7 @@ const Xe = s(
|
|
|
1819
1837
|
...e
|
|
1820
1838
|
}
|
|
1821
1839
|
);
|
|
1822
|
-
}),
|
|
1840
|
+
}), Qe = s(function({ className: t, ...e }, r) {
|
|
1823
1841
|
return /* @__PURE__ */ o(
|
|
1824
1842
|
S.Title,
|
|
1825
1843
|
{
|
|
@@ -1831,7 +1849,7 @@ const Xe = s(
|
|
|
1831
1849
|
...e
|
|
1832
1850
|
}
|
|
1833
1851
|
);
|
|
1834
|
-
}),
|
|
1852
|
+
}), Je = s(function({ className: t, ...e }, r) {
|
|
1835
1853
|
return /* @__PURE__ */ o(
|
|
1836
1854
|
S.Description,
|
|
1837
1855
|
{
|
|
@@ -1843,16 +1861,16 @@ const Xe = s(
|
|
|
1843
1861
|
...e
|
|
1844
1862
|
}
|
|
1845
1863
|
);
|
|
1846
|
-
}),
|
|
1864
|
+
}), Wo = {
|
|
1847
1865
|
Root: S.Root,
|
|
1848
1866
|
Trigger: S.Trigger,
|
|
1849
1867
|
Portal: S.Portal,
|
|
1850
|
-
Backdrop:
|
|
1851
|
-
Popup:
|
|
1852
|
-
Title:
|
|
1853
|
-
Description:
|
|
1868
|
+
Backdrop: We,
|
|
1869
|
+
Popup: Ke,
|
|
1870
|
+
Title: Qe,
|
|
1871
|
+
Description: Je,
|
|
1854
1872
|
Close: S.Close
|
|
1855
|
-
},
|
|
1873
|
+
}, ft = [
|
|
1856
1874
|
"flex cursor-default items-center gap-2 rounded-(--gryt-radius-md)",
|
|
1857
1875
|
"px-3 py-2 text-sm text-gryt-text outline-none select-none",
|
|
1858
1876
|
// Base UI drives keyboard and pointer highlight through one attribute, so
|
|
@@ -1860,23 +1878,23 @@ const Xe = s(
|
|
|
1860
1878
|
"data-highlighted:bg-gryt-surface-raised",
|
|
1861
1879
|
"data-selected:text-gryt-accent-11",
|
|
1862
1880
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50"
|
|
1863
|
-
].join(" "),
|
|
1864
|
-
|
|
1865
|
-
|
|
1881
|
+
].join(" "), xt = [
|
|
1882
|
+
yt,
|
|
1883
|
+
mt.medium,
|
|
1866
1884
|
"border-gryt-border",
|
|
1867
1885
|
b
|
|
1868
|
-
].join(" "),
|
|
1886
|
+
].join(" "), Ze = s(function({ className: t, ...e }, r) {
|
|
1869
1887
|
return /* @__PURE__ */ o(
|
|
1870
|
-
|
|
1888
|
+
u.Input,
|
|
1871
1889
|
{
|
|
1872
1890
|
ref: r,
|
|
1873
|
-
className: n("gryt-combobox-input",
|
|
1891
|
+
className: n("gryt-combobox-input", xt, t),
|
|
1874
1892
|
...e
|
|
1875
1893
|
}
|
|
1876
1894
|
);
|
|
1877
|
-
}),
|
|
1895
|
+
}), qe = s(function({ className: t, sideOffset: e = 6, ...r }, i) {
|
|
1878
1896
|
return /* @__PURE__ */ o(
|
|
1879
|
-
|
|
1897
|
+
u.Positioner,
|
|
1880
1898
|
{
|
|
1881
1899
|
ref: i,
|
|
1882
1900
|
sideOffset: e,
|
|
@@ -1884,10 +1902,10 @@ const Xe = s(
|
|
|
1884
1902
|
...r
|
|
1885
1903
|
}
|
|
1886
1904
|
);
|
|
1887
|
-
}),
|
|
1905
|
+
}), tr = s(
|
|
1888
1906
|
function({ className: t, ...e }, r) {
|
|
1889
1907
|
return /* @__PURE__ */ o(
|
|
1890
|
-
|
|
1908
|
+
u.Popup,
|
|
1891
1909
|
{
|
|
1892
1910
|
ref: r,
|
|
1893
1911
|
className: n(
|
|
@@ -1900,18 +1918,18 @@ const Xe = s(
|
|
|
1900
1918
|
}
|
|
1901
1919
|
);
|
|
1902
1920
|
}
|
|
1903
|
-
),
|
|
1921
|
+
), er = s(function({ className: t, ...e }, r) {
|
|
1904
1922
|
return /* @__PURE__ */ o(
|
|
1905
|
-
|
|
1923
|
+
u.Item,
|
|
1906
1924
|
{
|
|
1907
1925
|
ref: r,
|
|
1908
|
-
className: n("gryt-combobox-item",
|
|
1926
|
+
className: n("gryt-combobox-item", ft, t),
|
|
1909
1927
|
...e
|
|
1910
1928
|
}
|
|
1911
1929
|
);
|
|
1912
|
-
}),
|
|
1930
|
+
}), rr = s(function({ className: t, ...e }, r) {
|
|
1913
1931
|
return /* @__PURE__ */ o(
|
|
1914
|
-
|
|
1932
|
+
u.Empty,
|
|
1915
1933
|
{
|
|
1916
1934
|
ref: r,
|
|
1917
1935
|
className: n(
|
|
@@ -1921,39 +1939,39 @@ const Xe = s(
|
|
|
1921
1939
|
...e
|
|
1922
1940
|
}
|
|
1923
1941
|
);
|
|
1924
|
-
}),
|
|
1925
|
-
Root:
|
|
1926
|
-
Input:
|
|
1927
|
-
InputGroup:
|
|
1928
|
-
Trigger:
|
|
1929
|
-
Icon:
|
|
1930
|
-
Clear:
|
|
1931
|
-
Value:
|
|
1932
|
-
Chips:
|
|
1933
|
-
Chip:
|
|
1934
|
-
ChipRemove:
|
|
1935
|
-
Portal:
|
|
1936
|
-
Positioner:
|
|
1937
|
-
Popup:
|
|
1938
|
-
List:
|
|
1939
|
-
Item:
|
|
1940
|
-
ItemIndicator:
|
|
1941
|
-
Group:
|
|
1942
|
-
GroupLabel:
|
|
1943
|
-
Empty:
|
|
1944
|
-
Separator:
|
|
1945
|
-
},
|
|
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) {
|
|
1946
1964
|
return /* @__PURE__ */ o(
|
|
1947
|
-
|
|
1965
|
+
p.Input,
|
|
1948
1966
|
{
|
|
1949
1967
|
ref: r,
|
|
1950
|
-
className: n("gryt-autocomplete-input",
|
|
1968
|
+
className: n("gryt-autocomplete-input", xt, t),
|
|
1951
1969
|
...e
|
|
1952
1970
|
}
|
|
1953
1971
|
);
|
|
1954
|
-
}),
|
|
1972
|
+
}), ar = s(function({ className: t, sideOffset: e = 6, ...r }, i) {
|
|
1955
1973
|
return /* @__PURE__ */ o(
|
|
1956
|
-
|
|
1974
|
+
p.Positioner,
|
|
1957
1975
|
{
|
|
1958
1976
|
ref: i,
|
|
1959
1977
|
sideOffset: e,
|
|
@@ -1961,9 +1979,9 @@ const Xe = s(
|
|
|
1961
1979
|
...r
|
|
1962
1980
|
}
|
|
1963
1981
|
);
|
|
1964
|
-
}),
|
|
1982
|
+
}), nr = s(function({ className: t, ...e }, r) {
|
|
1965
1983
|
return /* @__PURE__ */ o(
|
|
1966
|
-
|
|
1984
|
+
p.Popup,
|
|
1967
1985
|
{
|
|
1968
1986
|
ref: r,
|
|
1969
1987
|
className: n(
|
|
@@ -1975,18 +1993,18 @@ const Xe = s(
|
|
|
1975
1993
|
...e
|
|
1976
1994
|
}
|
|
1977
1995
|
);
|
|
1978
|
-
}),
|
|
1996
|
+
}), ir = s(function({ className: t, ...e }, r) {
|
|
1979
1997
|
return /* @__PURE__ */ o(
|
|
1980
|
-
|
|
1998
|
+
p.Item,
|
|
1981
1999
|
{
|
|
1982
2000
|
ref: r,
|
|
1983
|
-
className: n("gryt-autocomplete-item",
|
|
2001
|
+
className: n("gryt-autocomplete-item", ft, t),
|
|
1984
2002
|
...e
|
|
1985
2003
|
}
|
|
1986
2004
|
);
|
|
1987
|
-
}),
|
|
2005
|
+
}), sr = s(function({ className: t, ...e }, r) {
|
|
1988
2006
|
return /* @__PURE__ */ o(
|
|
1989
|
-
|
|
2007
|
+
p.Empty,
|
|
1990
2008
|
{
|
|
1991
2009
|
ref: r,
|
|
1992
2010
|
className: n(
|
|
@@ -1996,27 +2014,27 @@ const Xe = s(
|
|
|
1996
2014
|
...e
|
|
1997
2015
|
}
|
|
1998
2016
|
);
|
|
1999
|
-
}),
|
|
2000
|
-
Root:
|
|
2001
|
-
Input:
|
|
2002
|
-
InputGroup:
|
|
2003
|
-
Trigger:
|
|
2004
|
-
Icon:
|
|
2005
|
-
Clear:
|
|
2006
|
-
Value:
|
|
2007
|
-
Portal:
|
|
2008
|
-
Positioner:
|
|
2009
|
-
Popup:
|
|
2010
|
-
List:
|
|
2011
|
-
Item:
|
|
2012
|
-
Group:
|
|
2013
|
-
GroupLabel:
|
|
2014
|
-
Empty:
|
|
2015
|
-
Separator:
|
|
2016
|
-
},
|
|
2017
|
+
}), Jo = {
|
|
2018
|
+
Root: p.Root,
|
|
2019
|
+
Input: or,
|
|
2020
|
+
InputGroup: p.InputGroup,
|
|
2021
|
+
Trigger: p.Trigger,
|
|
2022
|
+
Icon: p.Icon,
|
|
2023
|
+
Clear: p.Clear,
|
|
2024
|
+
Value: p.Value,
|
|
2025
|
+
Portal: p.Portal,
|
|
2026
|
+
Positioner: ar,
|
|
2027
|
+
Popup: nr,
|
|
2028
|
+
List: p.List,
|
|
2029
|
+
Item: ir,
|
|
2030
|
+
Group: p.Group,
|
|
2031
|
+
GroupLabel: p.GroupLabel,
|
|
2032
|
+
Empty: sr,
|
|
2033
|
+
Separator: p.Separator
|
|
2034
|
+
}, Zo = s(
|
|
2017
2035
|
function({ className: t, ...e }, r) {
|
|
2018
2036
|
return /* @__PURE__ */ o(
|
|
2019
|
-
|
|
2037
|
+
jt,
|
|
2020
2038
|
{
|
|
2021
2039
|
ref: r,
|
|
2022
2040
|
className: n("gryt-checkbox-group flex flex-col gap-2", t),
|
|
@@ -2024,10 +2042,10 @@ const Xe = s(
|
|
|
2024
2042
|
}
|
|
2025
2043
|
);
|
|
2026
2044
|
}
|
|
2027
|
-
),
|
|
2045
|
+
), cr = s(
|
|
2028
2046
|
function({ className: t, ...e }, r) {
|
|
2029
2047
|
return /* @__PURE__ */ o(
|
|
2030
|
-
|
|
2048
|
+
Q.Trigger,
|
|
2031
2049
|
{
|
|
2032
2050
|
ref: r,
|
|
2033
2051
|
className: n(
|
|
@@ -2042,10 +2060,10 @@ const Xe = s(
|
|
|
2042
2060
|
}
|
|
2043
2061
|
);
|
|
2044
2062
|
}
|
|
2045
|
-
),
|
|
2063
|
+
), lr = s(
|
|
2046
2064
|
function({ className: t, ...e }, r) {
|
|
2047
2065
|
return /* @__PURE__ */ o(
|
|
2048
|
-
|
|
2066
|
+
Q.Panel,
|
|
2049
2067
|
{
|
|
2050
2068
|
ref: r,
|
|
2051
2069
|
className: n(
|
|
@@ -2061,23 +2079,23 @@ const Xe = s(
|
|
|
2061
2079
|
}
|
|
2062
2080
|
);
|
|
2063
2081
|
}
|
|
2064
|
-
),
|
|
2065
|
-
Root:
|
|
2066
|
-
Trigger:
|
|
2067
|
-
Panel:
|
|
2068
|
-
},
|
|
2082
|
+
), qo = {
|
|
2083
|
+
Root: Q.Root,
|
|
2084
|
+
Trigger: cr,
|
|
2085
|
+
Panel: lr
|
|
2086
|
+
}, ta = s(function({ className: t, ...e }, r) {
|
|
2069
2087
|
return /* @__PURE__ */ o(
|
|
2070
|
-
|
|
2088
|
+
Bt,
|
|
2071
2089
|
{
|
|
2072
2090
|
ref: r,
|
|
2073
2091
|
className: n("gryt-form flex flex-col gap-(--gryt-space-lg)", t),
|
|
2074
2092
|
...e
|
|
2075
2093
|
}
|
|
2076
2094
|
);
|
|
2077
|
-
}),
|
|
2095
|
+
}), dr = s(
|
|
2078
2096
|
function({ className: t, ...e }, r) {
|
|
2079
2097
|
return /* @__PURE__ */ o(
|
|
2080
|
-
|
|
2098
|
+
dt.Root,
|
|
2081
2099
|
{
|
|
2082
2100
|
ref: r,
|
|
2083
2101
|
className: n(
|
|
@@ -2088,9 +2106,9 @@ const Xe = s(
|
|
|
2088
2106
|
}
|
|
2089
2107
|
);
|
|
2090
2108
|
}
|
|
2091
|
-
),
|
|
2109
|
+
), gr = s(function({ className: t, ...e }, r) {
|
|
2092
2110
|
return /* @__PURE__ */ o(
|
|
2093
|
-
|
|
2111
|
+
dt.Legend,
|
|
2094
2112
|
{
|
|
2095
2113
|
ref: r,
|
|
2096
2114
|
className: n(
|
|
@@ -2100,10 +2118,10 @@ const Xe = s(
|
|
|
2100
2118
|
...e
|
|
2101
2119
|
}
|
|
2102
2120
|
);
|
|
2103
|
-
}),
|
|
2121
|
+
}), ea = { Root: dr, Legend: gr }, ra = s(
|
|
2104
2122
|
function({ className: t, ...e }, r) {
|
|
2105
2123
|
return /* @__PURE__ */ o(
|
|
2106
|
-
|
|
2124
|
+
zt,
|
|
2107
2125
|
{
|
|
2108
2126
|
ref: r,
|
|
2109
2127
|
className: n(
|
|
@@ -2115,7 +2133,7 @@ const Xe = s(
|
|
|
2115
2133
|
}
|
|
2116
2134
|
);
|
|
2117
2135
|
}
|
|
2118
|
-
),
|
|
2136
|
+
), ur = s(function({ className: t, ...e }, r) {
|
|
2119
2137
|
return /* @__PURE__ */ o(
|
|
2120
2138
|
h.Trigger,
|
|
2121
2139
|
{
|
|
@@ -2131,7 +2149,7 @@ const Xe = s(
|
|
|
2131
2149
|
...e
|
|
2132
2150
|
}
|
|
2133
2151
|
);
|
|
2134
|
-
}),
|
|
2152
|
+
}), yr = s(function({ className: t, ...e }, r) {
|
|
2135
2153
|
return /* @__PURE__ */ o(
|
|
2136
2154
|
h.Popup,
|
|
2137
2155
|
{
|
|
@@ -2145,7 +2163,7 @@ const Xe = s(
|
|
|
2145
2163
|
...e
|
|
2146
2164
|
}
|
|
2147
2165
|
);
|
|
2148
|
-
}),
|
|
2166
|
+
}), mr = s(function({ className: t, ...e }, r) {
|
|
2149
2167
|
return /* @__PURE__ */ o(
|
|
2150
2168
|
h.Positioner,
|
|
2151
2169
|
{
|
|
@@ -2154,7 +2172,7 @@ const Xe = s(
|
|
|
2154
2172
|
...e
|
|
2155
2173
|
}
|
|
2156
2174
|
);
|
|
2157
|
-
}),
|
|
2175
|
+
}), pr = s(function({ className: t, ...e }, r) {
|
|
2158
2176
|
return /* @__PURE__ */ o(
|
|
2159
2177
|
h.Viewport,
|
|
2160
2178
|
{
|
|
@@ -2166,7 +2184,7 @@ const Xe = s(
|
|
|
2166
2184
|
...e
|
|
2167
2185
|
}
|
|
2168
2186
|
);
|
|
2169
|
-
}),
|
|
2187
|
+
}), br = s(function({ className: t, ...e }, r) {
|
|
2170
2188
|
return /* @__PURE__ */ o(
|
|
2171
2189
|
h.Link,
|
|
2172
2190
|
{
|
|
@@ -2181,33 +2199,33 @@ const Xe = s(
|
|
|
2181
2199
|
...e
|
|
2182
2200
|
}
|
|
2183
2201
|
);
|
|
2184
|
-
}),
|
|
2202
|
+
}), oa = {
|
|
2185
2203
|
Root: h.Root,
|
|
2186
2204
|
List: h.List,
|
|
2187
2205
|
Item: h.Item,
|
|
2188
|
-
Trigger:
|
|
2206
|
+
Trigger: ur,
|
|
2189
2207
|
Content: h.Content,
|
|
2190
2208
|
Portal: h.Portal,
|
|
2191
|
-
Positioner:
|
|
2192
|
-
Viewport:
|
|
2193
|
-
Popup:
|
|
2194
|
-
Link:
|
|
2209
|
+
Positioner: mr,
|
|
2210
|
+
Viewport: pr,
|
|
2211
|
+
Popup: yr,
|
|
2212
|
+
Link: br,
|
|
2195
2213
|
Icon: h.Icon,
|
|
2196
2214
|
Arrow: h.Arrow
|
|
2197
|
-
},
|
|
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(
|
|
2198
2216
|
function({ className: t, label: e, scrubbable: r = !1, ...i }, c) {
|
|
2199
|
-
return /* @__PURE__ */
|
|
2217
|
+
return /* @__PURE__ */ g(
|
|
2200
2218
|
R.Root,
|
|
2201
2219
|
{
|
|
2202
2220
|
ref: c,
|
|
2203
2221
|
className: n("gryt-number-field flex flex-col gap-1.5", t),
|
|
2204
2222
|
...i,
|
|
2205
2223
|
children: [
|
|
2206
|
-
e && (r ? /* @__PURE__ */
|
|
2224
|
+
e && (r ? /* @__PURE__ */ g(R.ScrubArea, { className: "cursor-ew-resize text-sm text-gryt-muted select-none", children: [
|
|
2207
2225
|
e,
|
|
2208
2226
|
/* @__PURE__ */ o(R.ScrubAreaCursor, {})
|
|
2209
2227
|
] }) : /* @__PURE__ */ o("span", { className: "text-sm text-gryt-muted", children: e })),
|
|
2210
|
-
/* @__PURE__ */
|
|
2228
|
+
/* @__PURE__ */ g(
|
|
2211
2229
|
R.Group,
|
|
2212
2230
|
{
|
|
2213
2231
|
className: n(
|
|
@@ -2221,8 +2239,8 @@ const Xe = s(
|
|
|
2221
2239
|
R.Decrement,
|
|
2222
2240
|
{
|
|
2223
2241
|
"aria-label": "Decrease",
|
|
2224
|
-
className: n(
|
|
2225
|
-
children: /* @__PURE__ */ o(
|
|
2242
|
+
className: n(nt, "rounded-l-(--gryt-radius-full)"),
|
|
2243
|
+
children: /* @__PURE__ */ o(It, { size: 14, weight: "bold" })
|
|
2226
2244
|
}
|
|
2227
2245
|
),
|
|
2228
2246
|
/* @__PURE__ */ o(
|
|
@@ -2239,8 +2257,8 @@ const Xe = s(
|
|
|
2239
2257
|
R.Increment,
|
|
2240
2258
|
{
|
|
2241
2259
|
"aria-label": "Increase",
|
|
2242
|
-
className: n(
|
|
2243
|
-
children: /* @__PURE__ */ o(
|
|
2260
|
+
className: n(nt, "rounded-r-(--gryt-radius-full)"),
|
|
2261
|
+
children: /* @__PURE__ */ o(At, { size: 14, weight: "bold" })
|
|
2244
2262
|
}
|
|
2245
2263
|
)
|
|
2246
2264
|
]
|
|
@@ -2250,17 +2268,17 @@ const Xe = s(
|
|
|
2250
2268
|
}
|
|
2251
2269
|
);
|
|
2252
2270
|
}
|
|
2253
|
-
),
|
|
2271
|
+
), na = s(
|
|
2254
2272
|
function({ className: t, length: e = 6, ...r }, i) {
|
|
2255
2273
|
return /* @__PURE__ */ o(
|
|
2256
|
-
|
|
2274
|
+
ot.Root,
|
|
2257
2275
|
{
|
|
2258
2276
|
ref: i,
|
|
2259
2277
|
length: e,
|
|
2260
2278
|
className: n("gryt-otp-field flex gap-2", t),
|
|
2261
2279
|
...r,
|
|
2262
2280
|
children: Array.from({ length: e }, (c, l) => /* @__PURE__ */ o(
|
|
2263
|
-
|
|
2281
|
+
ot.Input,
|
|
2264
2282
|
{
|
|
2265
2283
|
className: n(
|
|
2266
2284
|
"gryt-otp-input h-12 w-10 rounded-(--gryt-radius-md) text-center",
|
|
@@ -2276,7 +2294,7 @@ const Xe = s(
|
|
|
2276
2294
|
}
|
|
2277
2295
|
);
|
|
2278
2296
|
}
|
|
2279
|
-
),
|
|
2297
|
+
), fr = s(
|
|
2280
2298
|
function({ className: t, sideOffset: e = 8, ...r }, i) {
|
|
2281
2299
|
return /* @__PURE__ */ o(
|
|
2282
2300
|
M.Positioner,
|
|
@@ -2288,7 +2306,7 @@ const Xe = s(
|
|
|
2288
2306
|
}
|
|
2289
2307
|
);
|
|
2290
2308
|
}
|
|
2291
|
-
),
|
|
2309
|
+
), xr = s(
|
|
2292
2310
|
function({ className: t, ...e }, r) {
|
|
2293
2311
|
return /* @__PURE__ */ o(
|
|
2294
2312
|
M.Popup,
|
|
@@ -2304,14 +2322,14 @@ const Xe = s(
|
|
|
2304
2322
|
}
|
|
2305
2323
|
);
|
|
2306
2324
|
}
|
|
2307
|
-
),
|
|
2325
|
+
), ia = {
|
|
2308
2326
|
Root: M.Root,
|
|
2309
2327
|
Trigger: M.Trigger,
|
|
2310
2328
|
Portal: M.Portal,
|
|
2311
|
-
Positioner:
|
|
2312
|
-
Popup:
|
|
2329
|
+
Positioner: fr,
|
|
2330
|
+
Popup: xr,
|
|
2313
2331
|
Arrow: M.Arrow
|
|
2314
|
-
},
|
|
2332
|
+
}, hr = s(function({ className: t, ...e }, r) {
|
|
2315
2333
|
return /* @__PURE__ */ o(
|
|
2316
2334
|
G.Root,
|
|
2317
2335
|
{
|
|
@@ -2324,7 +2342,7 @@ const Xe = s(
|
|
|
2324
2342
|
...e
|
|
2325
2343
|
}
|
|
2326
2344
|
);
|
|
2327
|
-
}),
|
|
2345
|
+
}), wr = s(function({ className: t, ...e }, r) {
|
|
2328
2346
|
return /* @__PURE__ */ o(
|
|
2329
2347
|
G.Separator,
|
|
2330
2348
|
{
|
|
@@ -2333,103 +2351,103 @@ const Xe = s(
|
|
|
2333
2351
|
...e
|
|
2334
2352
|
}
|
|
2335
2353
|
);
|
|
2336
|
-
}),
|
|
2337
|
-
Root:
|
|
2354
|
+
}), sa = {
|
|
2355
|
+
Root: hr,
|
|
2338
2356
|
Group: G.Group,
|
|
2339
2357
|
Button: G.Button,
|
|
2340
2358
|
Link: G.Link,
|
|
2341
2359
|
Input: G.Input,
|
|
2342
|
-
Separator:
|
|
2360
|
+
Separator: wr
|
|
2343
2361
|
};
|
|
2344
2362
|
export {
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
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
|
-
|
|
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,
|
|
2405
2423
|
n as cn,
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
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
|
|
2434
2452
|
};
|
|
2435
2453
|
//# sourceMappingURL=index.js.map
|