@overmap-ai/blocks 0.0.4 → 0.0.5
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/README.md +3 -3
- package/dist/Toast/ToastProvider.d.ts +3 -1
- package/dist/blocks.js +217 -214
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +2 -2
- package/dist/blocks.umd.cjs.map +1 -1
- package/package.json +90 -90
package/dist/blocks.js
CHANGED
|
@@ -2,8 +2,8 @@ import "@radix-ui/themes/styles.css";
|
|
|
2
2
|
export * from "@radix-ui/colors";
|
|
3
3
|
import { Cross1Icon as Xe, DragHandleDots2Icon as ue, InfoCircledIcon as qe, Cross2Icon as Ue } from "@radix-ui/react-icons";
|
|
4
4
|
export * from "@radix-ui/react-icons";
|
|
5
|
-
import { useThemeContext as Ke, Badge as Qe, Button as Je, IconButton as $e, Flex as
|
|
6
|
-
import { AccessibleIcon as
|
|
5
|
+
import { useThemeContext as Ke, Badge as Qe, Button as Je, IconButton as $e, Flex as P, Box as M, Card as Ye, Inset as ne, Dialog as F, AlertDialog as W, DropdownMenu as O, Select as L, Checkbox as Ze, Switch as et, Portal as tt, TextField as oe, Text as de, Popover as re, TextArea as nt, Callout as ie, Theme as ot, Separator as xe } from "@radix-ui/themes";
|
|
6
|
+
import { AccessibleIcon as oo, AspectRatio as ro, Avatar as io, Blockquote as so, Box as ao, Callout as co, Card as lo, Checkbox as uo, Code as ho, Container as po, ContextMenu as mo, Em as fo, Flex as go, Grid as Co, Heading as vo, HoverCard as _o, Inset as wo, Kbd as yo, Link as xo, Portal as So, Quote as To, RadioGroup as Ro, ScrollArea as Po, Section as bo, Slider as zo, Slot as $o, Strong as Do, Table as Io, Tabs as Oo, TextField as No, Theme as ko, Tooltip as Ao, VisuallyHidden as Eo, updateThemeAppearanceClass as Lo, useThemeContext as Bo } from "@radix-ui/themes";
|
|
7
7
|
import { jsx as e, jsxs as C, Fragment as K } from "react/jsx-runtime";
|
|
8
8
|
import Q, { useMemo as G, forwardRef as y, memo as _, createContext as ge, useContext as Ce, Children as Se, useState as z, useCallback as x, createElement as De, useEffect as he, useRef as le, useLayoutEffect as rt } from "react";
|
|
9
9
|
import * as se from "@radix-ui/react-dialog";
|
|
@@ -41,8 +41,8 @@ var Ie = { exports: {} };
|
|
|
41
41
|
n.push(t.toString());
|
|
42
42
|
continue;
|
|
43
43
|
}
|
|
44
|
-
for (var
|
|
45
|
-
a.call(t,
|
|
44
|
+
for (var d in t)
|
|
45
|
+
a.call(t, d) && t[d] && n.push(d);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -84,7 +84,7 @@ const dt = {
|
|
|
84
84
|
children: r
|
|
85
85
|
}
|
|
86
86
|
);
|
|
87
|
-
}),
|
|
87
|
+
}), kn = _(ht), pt = "_fluid_r73gr_1", mt = "_hoverSpin90Clockwise_r73gr_15", ft = "_hoverSpin180Clockwise_r73gr_25", gt = "_hoverSpin360Clockwise_r73gr_35", U = {
|
|
88
88
|
fluid: pt,
|
|
89
89
|
hoverSpin90Clockwise: mt,
|
|
90
90
|
hoverSpin180Clockwise: ft,
|
|
@@ -103,11 +103,11 @@ const dt = {
|
|
|
103
103
|
type: t = "button",
|
|
104
104
|
fluid: c = n.fluid ?? !1,
|
|
105
105
|
size: i = n.size ?? "medium",
|
|
106
|
-
severity:
|
|
106
|
+
severity: d = n.severity ?? "primary",
|
|
107
107
|
hoverEffects: l = n.hoverEffects ?? [],
|
|
108
108
|
variant: h = n.variant,
|
|
109
109
|
...p
|
|
110
|
-
} = a, m = b(
|
|
110
|
+
} = a, m = b(d), f = l.map((u) => Oe[u]);
|
|
111
111
|
return /* @__PURE__ */ e(
|
|
112
112
|
Je,
|
|
113
113
|
{
|
|
@@ -128,21 +128,21 @@ const dt = {
|
|
|
128
128
|
children: t,
|
|
129
129
|
type: c = "button",
|
|
130
130
|
fluid: i = n.fluid ?? !1,
|
|
131
|
-
size:
|
|
131
|
+
size: d = n.size ?? "medium",
|
|
132
132
|
severity: l = n.severity ?? "primary",
|
|
133
133
|
hoverEffects: h = n.hoverEffects ?? [],
|
|
134
134
|
variant: p = n.variant,
|
|
135
135
|
...m
|
|
136
|
-
} = a, f = b(l),
|
|
136
|
+
} = a, f = b(l), u = (h == null ? void 0 : h.map((v) => Oe[v])) || [];
|
|
137
137
|
return /* @__PURE__ */ e(
|
|
138
138
|
$e,
|
|
139
139
|
{
|
|
140
|
-
className: S(r,
|
|
140
|
+
className: S(r, u, {
|
|
141
141
|
[U.fluid]: i
|
|
142
142
|
}),
|
|
143
143
|
ref: o,
|
|
144
144
|
color: f,
|
|
145
|
-
size: B(
|
|
145
|
+
size: B(d, X),
|
|
146
146
|
variant: p,
|
|
147
147
|
type: c,
|
|
148
148
|
...m,
|
|
@@ -162,29 +162,29 @@ const dt = {
|
|
|
162
162
|
direction: t = "row",
|
|
163
163
|
severity: c,
|
|
164
164
|
size: i = "medium",
|
|
165
|
-
variant:
|
|
165
|
+
variant: d,
|
|
166
166
|
hoverEffects: l,
|
|
167
167
|
fluid: h,
|
|
168
168
|
...p
|
|
169
169
|
}, m) {
|
|
170
|
-
const f = B(i, yt[t]),
|
|
170
|
+
const f = B(i, yt[t]), u = d === "ghost" ? f : "0";
|
|
171
171
|
return /* @__PURE__ */ e(
|
|
172
|
-
|
|
172
|
+
P,
|
|
173
173
|
{
|
|
174
174
|
className: S("overmap-button-group", a, {
|
|
175
175
|
[wt.merged]: o
|
|
176
176
|
}),
|
|
177
177
|
ref: m,
|
|
178
|
-
gap: o ? r ??
|
|
178
|
+
gap: o ? r ?? u : r ?? "2",
|
|
179
179
|
direction: t,
|
|
180
180
|
"data-direction": t,
|
|
181
181
|
...p,
|
|
182
|
-
children: /* @__PURE__ */ e(Ne.Provider, { value: { size: i, severity: c, variant:
|
|
182
|
+
children: /* @__PURE__ */ e(Ne.Provider, { value: { size: i, severity: c, variant: d, hoverEffects: l, fluid: h }, children: n })
|
|
183
183
|
}
|
|
184
184
|
);
|
|
185
|
-
}),
|
|
185
|
+
}), Ae = _(xt), St = _(
|
|
186
186
|
y((s, a) => {
|
|
187
|
-
const { children: o, border: n, before: r, after: t, size: c } = s, i = n ? "surface" : "ghost",
|
|
187
|
+
const { children: o, border: n, before: r, after: t, size: c } = s, i = n ? "surface" : "ghost", d = B(c, X), h = /* @__PURE__ */ C(Ye, { ref: a, size: d, variant: i, children: [
|
|
188
188
|
r,
|
|
189
189
|
r && t ? /* @__PURE__ */ e(ne, { side: "x", pt: "current", pb: "current", children: o }) : r ? /* @__PURE__ */ e(ne, { side: "bottom", pt: "current", children: o }) : t ? /* @__PURE__ */ e(ne, { side: "top", pb: "current", children: o }) : /* @__PURE__ */ e(ne, { children: o }),
|
|
190
190
|
t
|
|
@@ -195,7 +195,7 @@ const dt = {
|
|
|
195
195
|
y((s, a) => {
|
|
196
196
|
const { children: o, variant: n = "outline", size: r, className: t, ...c } = s, i = Se.count(o);
|
|
197
197
|
return /* @__PURE__ */ e(St, { ...c, border: n === "outline" || n === "surface", size: r, children: /* @__PURE__ */ e(
|
|
198
|
-
|
|
198
|
+
Ae,
|
|
199
199
|
{
|
|
200
200
|
size: r,
|
|
201
201
|
severity: "info",
|
|
@@ -205,26 +205,26 @@ const dt = {
|
|
|
205
205
|
gap: "0",
|
|
206
206
|
direction: "column",
|
|
207
207
|
ref: a,
|
|
208
|
-
children: Se.map(o, (h, p) => /* @__PURE__ */ C(
|
|
208
|
+
children: Se.map(o, (h, p) => /* @__PURE__ */ C(P, { direction: "column", children: [
|
|
209
209
|
h,
|
|
210
|
-
p < i - 1 && /* @__PURE__ */ e(
|
|
210
|
+
p < i - 1 && /* @__PURE__ */ e(Tn, { size: "4" })
|
|
211
211
|
] }, p))
|
|
212
212
|
}
|
|
213
213
|
) });
|
|
214
214
|
})
|
|
215
|
-
),
|
|
215
|
+
), Rt = _(
|
|
216
216
|
y((s, a) => {
|
|
217
217
|
const { variant: o } = ve(), n = /* @__PURE__ */ e(fe, { ref: a, ...s, variant: o });
|
|
218
|
-
return o === "ghost" ? /* @__PURE__ */ e(
|
|
218
|
+
return o === "ghost" ? /* @__PURE__ */ e(P, { px: "2", py: "1", children: /* @__PURE__ */ e(M, { grow: "1", width: "100%", asChild: !0, children: n }) }) : n;
|
|
219
219
|
})
|
|
220
|
-
),
|
|
220
|
+
), An = {
|
|
221
221
|
Root: Tt,
|
|
222
|
-
Item:
|
|
223
|
-
},
|
|
222
|
+
Item: Rt
|
|
223
|
+
}, Pt = _(function(a) {
|
|
224
224
|
const { title: o, description: n, content: r, closeDialog: t } = a;
|
|
225
|
-
return /* @__PURE__ */ C(
|
|
226
|
-
/* @__PURE__ */ C(
|
|
227
|
-
/* @__PURE__ */ C(
|
|
225
|
+
return /* @__PURE__ */ C(P, { direction: "column", gap: "2", children: [
|
|
226
|
+
/* @__PURE__ */ C(P, { direction: "column", gap: "1", children: [
|
|
227
|
+
/* @__PURE__ */ C(P, { justify: "between", children: [
|
|
228
228
|
/* @__PURE__ */ e(F.Title, { mb: "0", children: o }),
|
|
229
229
|
/* @__PURE__ */ e(F.Close, { children: /* @__PURE__ */ e($e, { color: "gray", variant: "ghost", "aria-label": "Close", children: /* @__PURE__ */ e(Xe, {}) }) })
|
|
230
230
|
] }),
|
|
@@ -234,18 +234,18 @@ const dt = {
|
|
|
234
234
|
] });
|
|
235
235
|
}), En = _(
|
|
236
236
|
y((s, a) => {
|
|
237
|
-
const { children: o, content: n, title: r, description: t, onOpen: c, defaultOpen: i, onCloseInterrupt:
|
|
238
|
-
(
|
|
239
|
-
if (
|
|
237
|
+
const { children: o, content: n, title: r, description: t, onOpen: c, defaultOpen: i, onCloseInterrupt: d, ...l } = s, [h, p] = z(i ?? !1), m = x(
|
|
238
|
+
(u) => {
|
|
239
|
+
if (u && c)
|
|
240
240
|
c();
|
|
241
|
-
else if (!
|
|
242
|
-
return
|
|
243
|
-
p(
|
|
241
|
+
else if (!u && d)
|
|
242
|
+
return d(() => p(!1));
|
|
243
|
+
p(u);
|
|
244
244
|
},
|
|
245
|
-
[c,
|
|
245
|
+
[c, d]
|
|
246
246
|
), f = x(
|
|
247
|
-
(
|
|
248
|
-
if (
|
|
247
|
+
(u) => {
|
|
248
|
+
if (u != null && u.force)
|
|
249
249
|
return p(!1);
|
|
250
250
|
m(!1);
|
|
251
251
|
},
|
|
@@ -254,7 +254,7 @@ const dt = {
|
|
|
254
254
|
return /* @__PURE__ */ C(F.Root, { open: h, onOpenChange: m, children: [
|
|
255
255
|
/* @__PURE__ */ e(F.Trigger, { children: o }),
|
|
256
256
|
/* @__PURE__ */ e(F.Content, { ref: a, ...l, children: /* @__PURE__ */ e(
|
|
257
|
-
|
|
257
|
+
Pt,
|
|
258
258
|
{
|
|
259
259
|
closeDialog: f,
|
|
260
260
|
content: n,
|
|
@@ -264,14 +264,14 @@ const dt = {
|
|
|
264
264
|
) })
|
|
265
265
|
] });
|
|
266
266
|
})
|
|
267
|
-
),
|
|
267
|
+
), Ee = (s) => /* @__PURE__ */ e(W.Title, { mb: "0", ...s }), bt = (s) => {
|
|
268
268
|
const { title: a, description: o, actionText: n = "Confirm", cancelText: r = "Cancel", onAction: t, onCancel: c, severity: i } = s;
|
|
269
|
-
return /* @__PURE__ */ C(
|
|
270
|
-
/* @__PURE__ */ C(
|
|
271
|
-
/* @__PURE__ */ e(
|
|
269
|
+
return /* @__PURE__ */ C(P, { direction: "column", gap: "2", children: [
|
|
270
|
+
/* @__PURE__ */ C(P, { direction: "column", gap: "1", children: [
|
|
271
|
+
/* @__PURE__ */ e(Ee, { children: a }),
|
|
272
272
|
/* @__PURE__ */ e(W.Description, { children: o })
|
|
273
273
|
] }),
|
|
274
|
-
/* @__PURE__ */ C(
|
|
274
|
+
/* @__PURE__ */ C(P, { gap: "3", mt: "4", justify: "end", children: [
|
|
275
275
|
/* @__PURE__ */ e(W.Cancel, { children: /* @__PURE__ */ e(fe, { variant: "soft", severity: "info", onClick: c, children: r }) }),
|
|
276
276
|
/* @__PURE__ */ e(W.Action, { children: /* @__PURE__ */ e(fe, { variant: "solid", severity: i, onClick: t, children: n }) })
|
|
277
277
|
] })
|
|
@@ -279,7 +279,7 @@ const dt = {
|
|
|
279
279
|
}, zt = _(function(a) {
|
|
280
280
|
const { open: o, setOpen: n, children: r, ...t } = a, c = G(() => ({
|
|
281
281
|
close: () => n(!1),
|
|
282
|
-
Title:
|
|
282
|
+
Title: Ee,
|
|
283
283
|
Description: W.Description
|
|
284
284
|
}), [n]);
|
|
285
285
|
return /* @__PURE__ */ C(W.Root, { open: o, onOpenChange: n, children: [
|
|
@@ -290,7 +290,7 @@ const dt = {
|
|
|
290
290
|
throw new Error("No AlertDialogProvider found");
|
|
291
291
|
}), $t = {
|
|
292
292
|
content: () => null
|
|
293
|
-
},
|
|
293
|
+
}, Ln = _(function({ children: a }) {
|
|
294
294
|
const [o, n] = z(!1), [r, t] = z($t), c = x(
|
|
295
295
|
(i) => {
|
|
296
296
|
if (o)
|
|
@@ -300,7 +300,7 @@ const dt = {
|
|
|
300
300
|
[o]
|
|
301
301
|
);
|
|
302
302
|
return /* @__PURE__ */ e(zt, { open: o, setOpen: n, ...r, children: /* @__PURE__ */ e(Le.Provider, { value: c, children: a }) });
|
|
303
|
-
}),
|
|
303
|
+
}), Bn = () => Ce(Le), Dt = _(function({
|
|
304
304
|
severity: a,
|
|
305
305
|
itemContent: o,
|
|
306
306
|
closeOnSelect: n = !0,
|
|
@@ -308,8 +308,8 @@ const dt = {
|
|
|
308
308
|
...t
|
|
309
309
|
}) {
|
|
310
310
|
const c = b(a), i = x(
|
|
311
|
-
(
|
|
312
|
-
n ||
|
|
311
|
+
(d) => {
|
|
312
|
+
n || d.preventDefault(), r && r(d);
|
|
313
313
|
},
|
|
314
314
|
[n, r]
|
|
315
315
|
);
|
|
@@ -322,7 +322,7 @@ const dt = {
|
|
|
322
322
|
trigger: t,
|
|
323
323
|
label: c,
|
|
324
324
|
severity: i = "info",
|
|
325
|
-
children:
|
|
325
|
+
children: d,
|
|
326
326
|
...l
|
|
327
327
|
}) {
|
|
328
328
|
const h = b(i);
|
|
@@ -330,7 +330,7 @@ const dt = {
|
|
|
330
330
|
/* @__PURE__ */ e(O.Trigger, { children: t }),
|
|
331
331
|
/* @__PURE__ */ C(O.Content, { color: h, ...l, children: [
|
|
332
332
|
c && /* @__PURE__ */ e(O.Label, { children: c }),
|
|
333
|
-
|
|
333
|
+
d
|
|
334
334
|
] })
|
|
335
335
|
] });
|
|
336
336
|
}), Ot = _(function({
|
|
@@ -356,14 +356,14 @@ const dt = {
|
|
|
356
356
|
/* @__PURE__ */ e(O.SubTrigger, { children: r }),
|
|
357
357
|
/* @__PURE__ */ e(O.SubContent, { ...c, children: t })
|
|
358
358
|
] });
|
|
359
|
-
}),
|
|
359
|
+
}), Mn = {
|
|
360
360
|
Root: It,
|
|
361
361
|
ItemGroup: Ot,
|
|
362
362
|
Item: Dt,
|
|
363
363
|
SubMenu: Nt
|
|
364
|
-
}, kt = "_fluid_7n1wr_1",
|
|
364
|
+
}, kt = "_fluid_7n1wr_1", Re = {
|
|
365
365
|
fluid: kt
|
|
366
|
-
},
|
|
366
|
+
}, At = y(function({
|
|
367
367
|
className: a,
|
|
368
368
|
fluid: o,
|
|
369
369
|
size: n = "medium",
|
|
@@ -371,18 +371,18 @@ const dt = {
|
|
|
371
371
|
severity: t = "primary",
|
|
372
372
|
itemSeverity: c = "info",
|
|
373
373
|
placeholder: i = "Select",
|
|
374
|
-
side:
|
|
374
|
+
side: d,
|
|
375
375
|
items: l = [],
|
|
376
376
|
value: h,
|
|
377
377
|
id: p,
|
|
378
378
|
...m
|
|
379
379
|
}, f) {
|
|
380
|
-
const
|
|
381
|
-
return /* @__PURE__ */ De(L.Root, { size:
|
|
380
|
+
const u = B(n, X), v = b(t), g = b(c);
|
|
381
|
+
return /* @__PURE__ */ De(L.Root, { size: u, ...m, key: h === void 0 ? 1 : 0, value: h }, /* @__PURE__ */ e(
|
|
382
382
|
L.Trigger,
|
|
383
383
|
{
|
|
384
384
|
className: S(a, {
|
|
385
|
-
[
|
|
385
|
+
[Re.fluid]: o
|
|
386
386
|
}),
|
|
387
387
|
id: p,
|
|
388
388
|
ref: f,
|
|
@@ -393,31 +393,31 @@ const dt = {
|
|
|
393
393
|
), /* @__PURE__ */ e(
|
|
394
394
|
L.Content,
|
|
395
395
|
{
|
|
396
|
-
side:
|
|
397
|
-
className:
|
|
396
|
+
side: d,
|
|
397
|
+
className: Re.contentDefault,
|
|
398
398
|
position: "popper",
|
|
399
399
|
variant: r !== "surface" ? "soft" : "solid",
|
|
400
400
|
color: g,
|
|
401
|
-
children: l.map(({ itemContent:
|
|
401
|
+
children: l.map(({ itemContent: R, value: A, ...I }) => /* @__PURE__ */ e(L.Item, { className: "overmap-select-item", value: A, ...I, children: R }, A))
|
|
402
402
|
}
|
|
403
403
|
));
|
|
404
|
-
}),
|
|
404
|
+
}), Wn = Q.memo(At), Pe = _(
|
|
405
405
|
y((s, a) => {
|
|
406
406
|
const { checked: o, label: n, value: r, size: t = "2" } = s;
|
|
407
|
-
return /* @__PURE__ */ e(M, { asChild: !0, px: t, children: /* @__PURE__ */ e(L.Item, { value: r, ref: a, children: /* @__PURE__ */ C(
|
|
407
|
+
return /* @__PURE__ */ e(M, { asChild: !0, px: t, children: /* @__PURE__ */ e(L.Item, { value: r, ref: a, children: /* @__PURE__ */ C(P, { gap: t, align: "center", children: [
|
|
408
408
|
/* @__PURE__ */ e(Ze, { checked: o }),
|
|
409
409
|
n
|
|
410
410
|
] }) }) });
|
|
411
411
|
})
|
|
412
|
-
), ce = "__select_all__",
|
|
412
|
+
), ce = "__select_all__", Gn = _(
|
|
413
413
|
y((s, a) => {
|
|
414
|
-
const [o, n] = z(!1), { placeholder: r, value: t, onValueChange: c, options: i, disabled:
|
|
414
|
+
const [o, n] = z(!1), { placeholder: r, value: t, onValueChange: c, options: i, disabled: d, id: l, radius: h, variant: p, name: m } = s, f = B(s.size, X), u = b(s.severity), v = G(() => new Map(i.map((w) => [w.value, w.label])), [i]), g = t.length > 4 ? (
|
|
415
415
|
// to ensure the width of the select doesn't get too big
|
|
416
416
|
`${t.length} options selected`
|
|
417
417
|
) : (
|
|
418
418
|
// convert the values to labels
|
|
419
419
|
t.map((w) => v.get(w)).join(", ")
|
|
420
|
-
),
|
|
420
|
+
), R = x(() => n(!1), []), A = x((w) => {
|
|
421
421
|
w && n(!0);
|
|
422
422
|
}, []), I = x(
|
|
423
423
|
(w) => {
|
|
@@ -434,9 +434,9 @@ const dt = {
|
|
|
434
434
|
{
|
|
435
435
|
open: o,
|
|
436
436
|
value: "",
|
|
437
|
-
onOpenChange:
|
|
437
|
+
onOpenChange: A,
|
|
438
438
|
onValueChange: I,
|
|
439
|
-
disabled:
|
|
439
|
+
disabled: d,
|
|
440
440
|
size: f,
|
|
441
441
|
name: m,
|
|
442
442
|
autoComplete: "off",
|
|
@@ -448,7 +448,7 @@ const dt = {
|
|
|
448
448
|
id: l,
|
|
449
449
|
radius: h,
|
|
450
450
|
variant: p,
|
|
451
|
-
color:
|
|
451
|
+
color: u,
|
|
452
452
|
placeholder: t.length > 0 ? g : r,
|
|
453
453
|
"data-placeholder": t.length > 0 ? void 0 : !0
|
|
454
454
|
}
|
|
@@ -459,11 +459,11 @@ const dt = {
|
|
|
459
459
|
color: "gray",
|
|
460
460
|
variant: "soft",
|
|
461
461
|
position: "popper",
|
|
462
|
-
onEscapeKeyDown:
|
|
463
|
-
onPointerDownOutside:
|
|
462
|
+
onEscapeKeyDown: R,
|
|
463
|
+
onPointerDownOutside: R,
|
|
464
464
|
children: [
|
|
465
465
|
/* @__PURE__ */ e(
|
|
466
|
-
|
|
466
|
+
Pe,
|
|
467
467
|
{
|
|
468
468
|
value: ce,
|
|
469
469
|
label: "Select all",
|
|
@@ -472,7 +472,7 @@ const dt = {
|
|
|
472
472
|
}
|
|
473
473
|
),
|
|
474
474
|
i.map((w) => /* @__PURE__ */ e(
|
|
475
|
-
|
|
475
|
+
Pe,
|
|
476
476
|
{
|
|
477
477
|
...w,
|
|
478
478
|
checked: t.includes(w.value),
|
|
@@ -487,16 +487,16 @@ const dt = {
|
|
|
487
487
|
}
|
|
488
488
|
);
|
|
489
489
|
})
|
|
490
|
-
),
|
|
490
|
+
), Et = {
|
|
491
491
|
default: "_default_u936h_1"
|
|
492
492
|
}, Lt = y(function({ className: a, severity: o = "primary", icon: n, defaultChecked: r = !1, onCheckedChange: t, ...c }, i) {
|
|
493
|
-
const
|
|
493
|
+
const d = le(null), [l, h] = z(c.checked ? c.checked : r), [p, m] = z(), f = b(o);
|
|
494
494
|
rt(() => {
|
|
495
|
-
var
|
|
496
|
-
const g = i ||
|
|
497
|
-
"current" in g && g.current && m((
|
|
495
|
+
var R;
|
|
496
|
+
const g = i || d;
|
|
497
|
+
"current" in g && g.current && m((R = g.current) == null ? void 0 : R.querySelector("span.rt-SwitchThumb"));
|
|
498
498
|
}, [i]);
|
|
499
|
-
const
|
|
499
|
+
const u = x(
|
|
500
500
|
(g) => {
|
|
501
501
|
h(g), t && t(g);
|
|
502
502
|
},
|
|
@@ -506,18 +506,18 @@ const dt = {
|
|
|
506
506
|
/* @__PURE__ */ e(
|
|
507
507
|
et,
|
|
508
508
|
{
|
|
509
|
-
className: S("overmap-switch", a,
|
|
510
|
-
ref: i ||
|
|
509
|
+
className: S("overmap-switch", a, Et.default),
|
|
510
|
+
ref: i || d,
|
|
511
511
|
color: f,
|
|
512
512
|
radius: "full",
|
|
513
513
|
defaultChecked: r,
|
|
514
|
-
onCheckedChange:
|
|
514
|
+
onCheckedChange: u,
|
|
515
515
|
...c
|
|
516
516
|
}
|
|
517
517
|
),
|
|
518
518
|
/* @__PURE__ */ e(tt, { container: p, asChild: !0, children: n && "checked" in n ? v ? n.checked : n.unchecked : n })
|
|
519
519
|
] });
|
|
520
|
-
}),
|
|
520
|
+
}), Vn = _(Lt), Bt = "_sidebarContent_1onyo_1", Mt = "_right_1onyo_7", Wt = "_resizeHandle_1onyo_10", Gt = "_left_1onyo_13", Vt = "_overlay_1onyo_33", j = {
|
|
521
521
|
sidebarContent: Bt,
|
|
522
522
|
right: Mt,
|
|
523
523
|
resizeHandle: Wt,
|
|
@@ -532,17 +532,17 @@ const dt = {
|
|
|
532
532
|
overlay: c = !0,
|
|
533
533
|
resizable: i = !0,
|
|
534
534
|
// Props related to Resizable
|
|
535
|
-
minWidth:
|
|
535
|
+
minWidth: d = "300px",
|
|
536
536
|
maxWidth: l = "500px",
|
|
537
537
|
...h
|
|
538
538
|
}, p) {
|
|
539
|
-
const m = a === "right", f = a === "left", [
|
|
539
|
+
const m = a === "right", f = a === "left", [u, v] = z();
|
|
540
540
|
return he(() => {
|
|
541
|
-
const g = t ?? '[data-is-root-theme="true"]',
|
|
542
|
-
if (
|
|
541
|
+
const g = t ?? '[data-is-root-theme="true"]', R = document.querySelector(g);
|
|
542
|
+
if (R === void 0)
|
|
543
543
|
throw new Error(`Could not find a container element using the following selector ${g}`);
|
|
544
|
-
v(
|
|
545
|
-
}, [t]), /* @__PURE__ */ e(se.Root, { open: r, modal: o, children: /* @__PURE__ */ C(se.Portal, { container:
|
|
544
|
+
v(R);
|
|
545
|
+
}, [t]), /* @__PURE__ */ e(se.Root, { open: r, modal: o, children: /* @__PURE__ */ C(se.Portal, { container: u, children: [
|
|
546
546
|
c && /* @__PURE__ */ e(se.Overlay, { className: S(j.overlay) }),
|
|
547
547
|
/* @__PURE__ */ e(
|
|
548
548
|
se.Content,
|
|
@@ -557,7 +557,7 @@ const dt = {
|
|
|
557
557
|
children: /* @__PURE__ */ e(M, { width: "auto", children: /* @__PURE__ */ e(
|
|
558
558
|
me,
|
|
559
559
|
{
|
|
560
|
-
minWidth:
|
|
560
|
+
minWidth: d,
|
|
561
561
|
maxWidth: l,
|
|
562
562
|
defaultSize: { width: "300px", height: "100%" },
|
|
563
563
|
enable: { right: i && f, left: i && m },
|
|
@@ -572,7 +572,7 @@ const dt = {
|
|
|
572
572
|
}
|
|
573
573
|
)
|
|
574
574
|
] }) });
|
|
575
|
-
}),
|
|
575
|
+
}), jn = _(jt), Ht = "_accommodateCharCount_sr18k_1", Ft = "_wrapper_sr18k_5", Xt = "_noLeftIcon_sr18k_13", qt = "_noRightIcon_sr18k_17", Ut = "_charCount_sr18k_21", H = {
|
|
576
576
|
accommodateCharCount: Ht,
|
|
577
577
|
wrapper: Ft,
|
|
578
578
|
default: "_default_sr18k_9",
|
|
@@ -587,10 +587,10 @@ const dt = {
|
|
|
587
587
|
showInputLength: t,
|
|
588
588
|
value: c,
|
|
589
589
|
variant: i,
|
|
590
|
-
severity:
|
|
590
|
+
severity: d = "primary",
|
|
591
591
|
...l
|
|
592
592
|
}, h) {
|
|
593
|
-
const p = B(r, X), m = b(
|
|
593
|
+
const p = B(r, X), m = b(d), f = t || t === void 0 && l.maxLength !== void 0, u = c !== void 0 ? c.toString() : void 0;
|
|
594
594
|
return /* @__PURE__ */ C(
|
|
595
595
|
oe.Root,
|
|
596
596
|
{
|
|
@@ -617,11 +617,11 @@ const dt = {
|
|
|
617
617
|
}
|
|
618
618
|
),
|
|
619
619
|
n && /* @__PURE__ */ e(oe.Slot, { children: n }),
|
|
620
|
-
f && /* @__PURE__ */ e(de, { as: "p", className: H.charCount, size: "1", color: "gray", children: l.maxLength !== void 0 ? `${
|
|
620
|
+
f && /* @__PURE__ */ e(de, { as: "p", className: H.charCount, size: "1", color: "gray", children: l.maxLength !== void 0 ? `${u == null ? void 0 : u.length}/${l.maxLength}` : `${u == null ? void 0 : u.length}` })
|
|
621
621
|
]
|
|
622
622
|
}
|
|
623
623
|
);
|
|
624
|
-
}),
|
|
624
|
+
}), Hn = Q.memo(Kt), Qt = "_wrapper_tmtz0_1", Jt = {
|
|
625
625
|
wrapper: Qt
|
|
626
626
|
}, Yt = y(function({ className: a, defaultOpen: o = !1, modal: n = !1, content: r, children: t, ...c }, i) {
|
|
627
627
|
return /* @__PURE__ */ C(re.Root, { defaultOpen: o, modal: n, children: [
|
|
@@ -636,7 +636,7 @@ const dt = {
|
|
|
636
636
|
}
|
|
637
637
|
)
|
|
638
638
|
] });
|
|
639
|
-
}),
|
|
639
|
+
}), Fn = Q.memo(Yt), Zt = "_wrapper_1mz2e_1", en = "_panelContent_1mz2e_6", tn = "_left_1mz2e_14", nn = "_right_1mz2e_18", on = "_resizable_1mz2e_23", rn = "_resizeHandle_1mz2e_28", sn = "_panelMainContent_1mz2e_48", D = {
|
|
640
640
|
wrapper: Zt,
|
|
641
641
|
panelContent: en,
|
|
642
642
|
left: tn,
|
|
@@ -644,7 +644,7 @@ const dt = {
|
|
|
644
644
|
resizable: on,
|
|
645
645
|
resizeHandle: rn,
|
|
646
646
|
panelMainContent: sn
|
|
647
|
-
}, be = 200,
|
|
647
|
+
}, be = 200, E = 150, Xn = _(function({
|
|
648
648
|
children: a,
|
|
649
649
|
showLeft: o,
|
|
650
650
|
leftPanel: n,
|
|
@@ -652,9 +652,9 @@ const dt = {
|
|
|
652
652
|
showRight: t,
|
|
653
653
|
rightPanel: c,
|
|
654
654
|
rightMinWidth: i = be,
|
|
655
|
-
resizeable:
|
|
655
|
+
resizeable: d
|
|
656
656
|
}) {
|
|
657
|
-
const l = le(null), h = le(null), [p, m] = z(0), [f,
|
|
657
|
+
const l = le(null), h = le(null), [p, m] = z(0), [f, u] = z(), v = le(null), [g, R] = z(0), [A, I] = z(), w = x(
|
|
658
658
|
(T, $, N) => (k, we, ye, pe) => {
|
|
659
659
|
if (!l.current)
|
|
660
660
|
return;
|
|
@@ -666,7 +666,7 @@ const dt = {
|
|
|
666
666
|
(T, $, N, k) => w(p, m, I)(T, $, N, k),
|
|
667
667
|
[w, p]
|
|
668
668
|
), J = x(
|
|
669
|
-
(T, $, N, k) => w(g,
|
|
669
|
+
(T, $, N, k) => w(g, R, u)(T, $, N, k),
|
|
670
670
|
[w, g]
|
|
671
671
|
), V = x(
|
|
672
672
|
(T, $, N, k, we, ye, pe, Z) => {
|
|
@@ -683,12 +683,12 @@ const dt = {
|
|
|
683
683
|
() => V(
|
|
684
684
|
g,
|
|
685
685
|
i,
|
|
686
|
-
|
|
686
|
+
R,
|
|
687
687
|
I,
|
|
688
688
|
p,
|
|
689
689
|
o,
|
|
690
690
|
m,
|
|
691
|
-
|
|
691
|
+
u
|
|
692
692
|
),
|
|
693
693
|
[V, p, i, g, o]
|
|
694
694
|
), Ge = x(
|
|
@@ -696,10 +696,10 @@ const dt = {
|
|
|
696
696
|
p,
|
|
697
697
|
r,
|
|
698
698
|
m,
|
|
699
|
-
|
|
699
|
+
u,
|
|
700
700
|
g,
|
|
701
701
|
t,
|
|
702
|
-
|
|
702
|
+
R,
|
|
703
703
|
I
|
|
704
704
|
),
|
|
705
705
|
[V, r, p, g, t]
|
|
@@ -709,14 +709,14 @@ const dt = {
|
|
|
709
709
|
},
|
|
710
710
|
[]
|
|
711
711
|
), Ve = x(
|
|
712
|
-
() => Y(o,
|
|
712
|
+
() => Y(o, u),
|
|
713
713
|
[Y, o]
|
|
714
714
|
), je = x(
|
|
715
715
|
() => Y(t, I),
|
|
716
716
|
[Y, t]
|
|
717
717
|
), _e = x(() => {
|
|
718
718
|
var T, $, N, k;
|
|
719
|
-
l.current && (
|
|
719
|
+
l.current && (u(l.current.clientWidth - (((T = v.current) == null ? void 0 : T.clientWidth) || 0)), I(l.current.clientWidth - ((($ = h.current) == null ? void 0 : $.clientWidth) || 0)), m(((N = h.current) == null ? void 0 : N.clientWidth) || 0), R(((k = v.current) == null ? void 0 : k.clientWidth) || 0));
|
|
720
720
|
}, []);
|
|
721
721
|
he(() => {
|
|
722
722
|
if (!l.current)
|
|
@@ -731,21 +731,21 @@ const dt = {
|
|
|
731
731
|
transform: `translateX(-${p}px)`,
|
|
732
732
|
marginRight: `-${p}px`,
|
|
733
733
|
transitionProperty: "transform, margin-right",
|
|
734
|
-
transitionDuration: `${
|
|
734
|
+
transitionDuration: `${E}ms`,
|
|
735
735
|
transitionTimingFunction: "linear"
|
|
736
736
|
},
|
|
737
737
|
entered: {
|
|
738
738
|
transform: "translateX(0)",
|
|
739
739
|
marginRight: 0,
|
|
740
740
|
transitionProperty: "transform, margin-right",
|
|
741
|
-
transitionDuration: `${
|
|
741
|
+
transitionDuration: `${E}ms`,
|
|
742
742
|
transitionTimingFunction: "linear"
|
|
743
743
|
},
|
|
744
744
|
exiting: {
|
|
745
745
|
transform: `translateX(-${p}px)`,
|
|
746
746
|
marginRight: `-${p}px`,
|
|
747
747
|
transitionProperty: "transform, margin-right",
|
|
748
|
-
transitionDuration: `${
|
|
748
|
+
transitionDuration: `${E}ms`,
|
|
749
749
|
transitionTimingFunction: "linear"
|
|
750
750
|
},
|
|
751
751
|
exited: {},
|
|
@@ -755,28 +755,28 @@ const dt = {
|
|
|
755
755
|
transform: `translateX(${g}px)`,
|
|
756
756
|
marginLeft: `${-g}px`,
|
|
757
757
|
transitionProperty: "transform, margin-left",
|
|
758
|
-
transitionDuration: `${
|
|
758
|
+
transitionDuration: `${E}ms`,
|
|
759
759
|
transitionTimingFunction: "linear"
|
|
760
760
|
},
|
|
761
761
|
entered: {
|
|
762
762
|
transform: "translateX(0)",
|
|
763
763
|
marginLeft: 0,
|
|
764
764
|
transitionProperty: "transform, margin-left",
|
|
765
|
-
transitionDuration: `${
|
|
765
|
+
transitionDuration: `${E}ms`,
|
|
766
766
|
transitionTimingFunction: "linear"
|
|
767
767
|
},
|
|
768
768
|
exiting: {
|
|
769
769
|
transform: `translateX(${g}px)`,
|
|
770
770
|
marginLeft: `${-g}px`,
|
|
771
771
|
transitionProperty: "transform, margin-left",
|
|
772
|
-
transitionDuration: `${
|
|
772
|
+
transitionDuration: `${E}ms`,
|
|
773
773
|
transitionTimingFunction: "linear"
|
|
774
774
|
},
|
|
775
775
|
exited: {},
|
|
776
776
|
unmounted: {}
|
|
777
777
|
}), [g]);
|
|
778
778
|
return /* @__PURE__ */ C(
|
|
779
|
-
|
|
779
|
+
P,
|
|
780
780
|
{
|
|
781
781
|
className: D.wrapper,
|
|
782
782
|
style: { minWidth: `${r + i}px` },
|
|
@@ -791,7 +791,7 @@ const dt = {
|
|
|
791
791
|
Te,
|
|
792
792
|
{
|
|
793
793
|
nodeRef: h,
|
|
794
|
-
timeout: o ? 0 :
|
|
794
|
+
timeout: o ? 0 : E,
|
|
795
795
|
in: o,
|
|
796
796
|
unmountOnExit: !0,
|
|
797
797
|
onEntering: Ge,
|
|
@@ -815,7 +815,7 @@ const dt = {
|
|
|
815
815
|
height: "100%"
|
|
816
816
|
},
|
|
817
817
|
onResizeStop: q,
|
|
818
|
-
enable: { right: (
|
|
818
|
+
enable: { right: (d == null ? void 0 : d.left) !== void 0 ? d.left : !0 },
|
|
819
819
|
minWidth: r,
|
|
820
820
|
maxWidth: f,
|
|
821
821
|
handleClasses: { right: S(D.resizeHandle, D.left) },
|
|
@@ -834,7 +834,7 @@ const dt = {
|
|
|
834
834
|
Te,
|
|
835
835
|
{
|
|
836
836
|
nodeRef: v,
|
|
837
|
-
timeout: t ? 0 :
|
|
837
|
+
timeout: t ? 0 : E,
|
|
838
838
|
in: t,
|
|
839
839
|
unmountOnExit: !0,
|
|
840
840
|
onEntering: We,
|
|
@@ -855,9 +855,9 @@ const dt = {
|
|
|
855
855
|
className: D.resizable,
|
|
856
856
|
size: { width: g, height: "100%" },
|
|
857
857
|
onResizeStop: J,
|
|
858
|
-
enable: { left: (
|
|
858
|
+
enable: { left: (d == null ? void 0 : d.right) !== void 0 ? d.right : !0 },
|
|
859
859
|
minWidth: i,
|
|
860
|
-
maxWidth:
|
|
860
|
+
maxWidth: A,
|
|
861
861
|
handleClasses: { left: S(D.resizeHandle, D.right) },
|
|
862
862
|
handleComponent: { left: /* @__PURE__ */ e(ue, { height: "14px", width: "14px" }) },
|
|
863
863
|
children: c
|
|
@@ -872,11 +872,11 @@ const dt = {
|
|
|
872
872
|
);
|
|
873
873
|
}), an = "_charCount_17uut_1", cn = {
|
|
874
874
|
charCount: an
|
|
875
|
-
}, ln = y(function({ className: a, showInputLength: o, inputLengthTemplate: n, value: r, severity: t = "primary", resize: c, ...i },
|
|
875
|
+
}, ln = y(function({ className: a, showInputLength: o, inputLengthTemplate: n, value: r, severity: t = "primary", resize: c, ...i }, d) {
|
|
876
876
|
const l = b(t), h = b("info"), p = o || o === void 0 && (i.maxLength !== void 0 || i.minLength !== void 0), m = r !== void 0 ? r.toString() : "", f = G(() => {
|
|
877
877
|
if (n) {
|
|
878
|
-
let
|
|
879
|
-
return i.minLength !== void 0 && (
|
|
878
|
+
let u = n.replace("{current}", m.length.toString());
|
|
879
|
+
return i.minLength !== void 0 && (u = u.replace("{min}", i.minLength.toString())), i.maxLength !== void 0 && (u = u.replace("{max}", i.maxLength.toString())), u;
|
|
880
880
|
}
|
|
881
881
|
return m.length;
|
|
882
882
|
}, [n, i.maxLength, i.minLength, m.length]);
|
|
@@ -886,7 +886,7 @@ const dt = {
|
|
|
886
886
|
{
|
|
887
887
|
className: S("overmap-textarea", a),
|
|
888
888
|
style: { resize: c },
|
|
889
|
-
ref:
|
|
889
|
+
ref: d,
|
|
890
890
|
value: r,
|
|
891
891
|
color: l,
|
|
892
892
|
...i
|
|
@@ -894,7 +894,7 @@ const dt = {
|
|
|
894
894
|
),
|
|
895
895
|
p && /* @__PURE__ */ e(de, { as: "p", className: cn.charCount, color: h, align: "right", children: f })
|
|
896
896
|
] });
|
|
897
|
-
}),
|
|
897
|
+
}), qn = _(ln), un = y(function({
|
|
898
898
|
// ToggleGroup Primitive Props
|
|
899
899
|
loop: a,
|
|
900
900
|
type: o,
|
|
@@ -903,7 +903,7 @@ const dt = {
|
|
|
903
903
|
onValueChange: t,
|
|
904
904
|
defaultValue: c,
|
|
905
905
|
disabled: i,
|
|
906
|
-
items:
|
|
906
|
+
items: d,
|
|
907
907
|
// ButtonGroup Props
|
|
908
908
|
className: l,
|
|
909
909
|
direction: h = "row",
|
|
@@ -923,40 +923,40 @@ const dt = {
|
|
|
923
923
|
rovingFocus: n,
|
|
924
924
|
defaultValue: c,
|
|
925
925
|
asChild: !0,
|
|
926
|
-
children: /* @__PURE__ */ e(
|
|
926
|
+
children: /* @__PURE__ */ e(Ae, { direction: h, ...p, children: d.map(({ children: f, ...u }) => /* @__PURE__ */ De(st, { asChild: !0, ...u, key: u.value }, /* @__PURE__ */ e(
|
|
927
927
|
ke,
|
|
928
928
|
{
|
|
929
929
|
className: S("overmap-toggle-group-button"),
|
|
930
|
-
"aria-label":
|
|
931
|
-
variant:
|
|
930
|
+
"aria-label": u.value,
|
|
931
|
+
variant: u.value === r ? "solid" : "soft",
|
|
932
932
|
children: f
|
|
933
933
|
}
|
|
934
934
|
))) })
|
|
935
935
|
}
|
|
936
936
|
);
|
|
937
|
-
}),
|
|
937
|
+
}), Un = _(un), dn = "_ToastViewport_t8tlv_1", hn = "_ToastRoot_t8tlv_20", pn = "_slideIn_t8tlv_1", mn = "_swipeOut_t8tlv_1", Be = {
|
|
938
938
|
ToastViewport: dn,
|
|
939
939
|
ToastRoot: hn,
|
|
940
940
|
slideIn: pn,
|
|
941
941
|
swipeOut: mn
|
|
942
|
-
}, fn = y(function({ title: a, description: o, icon: n, severity: r = "primary", size: t, onClose: c, sensitivity: i, ...
|
|
942
|
+
}, fn = y(function({ title: a, description: o, icon: n, severity: r = "primary", size: t, onClose: c, sensitivity: i, ...d }, l) {
|
|
943
943
|
const [h, p] = z(!0), m = b(r), f = x(
|
|
944
|
-
(
|
|
945
|
-
!
|
|
944
|
+
(u) => {
|
|
945
|
+
!u && c && c(), p(u);
|
|
946
946
|
},
|
|
947
947
|
[c]
|
|
948
948
|
);
|
|
949
|
-
return /* @__PURE__ */ e(ae.Root, { asChild: !0, ref: l, ...
|
|
950
|
-
/* @__PURE__ */ C(
|
|
949
|
+
return /* @__PURE__ */ e(ae.Root, { asChild: !0, ref: l, ...d, open: h, type: i, onOpenChange: f, children: /* @__PURE__ */ e(ie.Root, { className: Be.ToastRoot, variant: "surface", color: m, size: t, children: /* @__PURE__ */ C(P, { width: "100%", align: "center", gap: "4", justify: "between", children: [
|
|
950
|
+
/* @__PURE__ */ C(P, { align: "center", gap: "4", children: [
|
|
951
951
|
/* @__PURE__ */ e(ie.Icon, { children: n || /* @__PURE__ */ e(qe, {}) }),
|
|
952
|
-
/* @__PURE__ */ C(
|
|
952
|
+
/* @__PURE__ */ C(P, { direction: "column", gap: "0", children: [
|
|
953
953
|
/* @__PURE__ */ e(ae.Title, { asChild: !0, children: /* @__PURE__ */ e(ie.Text, { weight: "medium", children: a }) }),
|
|
954
954
|
/* @__PURE__ */ e(ae.Description, { asChild: !0, children: /* @__PURE__ */ e(ie.Text, { weight: "light", children: o }) })
|
|
955
955
|
] })
|
|
956
956
|
] }),
|
|
957
957
|
/* @__PURE__ */ e(ae.Close, { asChild: !0, children: /* @__PURE__ */ e(ke, { "aria-label": "Close", variant: "ghost", size: "small", severity: r, children: /* @__PURE__ */ e(Ue, {}) }) })
|
|
958
958
|
] }) }) });
|
|
959
|
-
}), gn = _(fn), Me = ge({}),
|
|
959
|
+
}), gn = _(fn), Me = ge({}), Kn = () => {
|
|
960
960
|
const s = Ce(Me);
|
|
961
961
|
if (!s)
|
|
962
962
|
throw new Error("useToast must be used within a ToastProvider");
|
|
@@ -966,7 +966,9 @@ const dt = {
|
|
|
966
966
|
return s.duration;
|
|
967
967
|
const a = s.severity === "danger" ? 1.5 : 1, o = s.description.split(" ").length + s.title.split(" ").length;
|
|
968
968
|
return (ze + o / Cn) * a;
|
|
969
|
-
}
|
|
969
|
+
};
|
|
970
|
+
let _n;
|
|
971
|
+
const Qn = _(function({
|
|
970
972
|
children: a,
|
|
971
973
|
// Use this class to change where the viewport for the toasts should be
|
|
972
974
|
className: o,
|
|
@@ -975,36 +977,36 @@ const dt = {
|
|
|
975
977
|
}) {
|
|
976
978
|
const [t, c] = z([]), i = x((l, h, p) => {
|
|
977
979
|
c((m) => {
|
|
978
|
-
const f = m.find((
|
|
979
|
-
return f && h === 0 && clearTimeout(f.timeout), m.filter((
|
|
980
|
+
const f = m.find((u) => u.id === l);
|
|
981
|
+
return f && h === 0 && clearTimeout(f.timeout), m.filter((u) => u.id !== l);
|
|
980
982
|
}), p && p();
|
|
981
|
-
}, []),
|
|
983
|
+
}, []), d = G(() => {
|
|
982
984
|
let l = 0;
|
|
983
985
|
const h = (v) => {
|
|
984
|
-
const g = vn(v),
|
|
986
|
+
const g = vn(v), R = l.toString();
|
|
985
987
|
l += 1;
|
|
986
|
-
const
|
|
987
|
-
c((I) => [...I, { ...v, timeout:
|
|
988
|
-
};
|
|
989
|
-
return {
|
|
988
|
+
const A = setTimeout(() => i(R, 1, v.onClose), g);
|
|
989
|
+
c((I) => [...I, { ...v, timeout: A, duration: g, id: R }]);
|
|
990
|
+
}, p = (v) => h({ ...v, severity: "primary" }), m = (v) => h({ ...v, severity: "success" }), f = (v) => h({ ...v, severity: "danger" }), u = (v) => h({ ...v, severity: "info" });
|
|
991
|
+
return _n = h, {
|
|
990
992
|
showToast: h,
|
|
991
|
-
showPrimary:
|
|
992
|
-
showSuccess:
|
|
993
|
-
showError:
|
|
994
|
-
showInfo:
|
|
993
|
+
showPrimary: p,
|
|
994
|
+
showSuccess: m,
|
|
995
|
+
showError: f,
|
|
996
|
+
showInfo: u
|
|
995
997
|
};
|
|
996
998
|
}, [i]);
|
|
997
999
|
return he(() => () => {
|
|
998
1000
|
for (const { timeout: l } of t)
|
|
999
1001
|
clearTimeout(l);
|
|
1000
|
-
}, []), /* @__PURE__ */ e(Me.Provider, { value:
|
|
1002
|
+
}, []), /* @__PURE__ */ e(Me.Provider, { value: d, children: /* @__PURE__ */ C(at, { ...r, children: [
|
|
1001
1003
|
a,
|
|
1002
1004
|
/* @__PURE__ */ e(ct, { className: S(o, Be.ToastViewport), hotkey: n }),
|
|
1003
1005
|
t.map(({ id: l, onClose: h, ...p }) => /* @__PURE__ */ e(gn, { ...p, onClose: () => i(l, 0, h) }, l))
|
|
1004
1006
|
] }) });
|
|
1005
|
-
}),
|
|
1006
|
-
noWrap:
|
|
1007
|
-
},
|
|
1007
|
+
}), wn = "_noWrap_1wpa5_1", yn = {
|
|
1008
|
+
noWrap: wn
|
|
1009
|
+
}, Jn = _(
|
|
1008
1010
|
y(({ className: s, noWrap: a, severity: o, as: n, ...r }, t) => {
|
|
1009
1011
|
const c = b(o);
|
|
1010
1012
|
return /* @__PURE__ */ e(
|
|
@@ -1012,24 +1014,24 @@ const dt = {
|
|
|
1012
1014
|
{
|
|
1013
1015
|
ref: t,
|
|
1014
1016
|
as: n,
|
|
1015
|
-
className: S(s, { [
|
|
1017
|
+
className: S(s, { [yn.noWrap]: a }),
|
|
1016
1018
|
color: c,
|
|
1017
1019
|
...r
|
|
1018
1020
|
}
|
|
1019
1021
|
);
|
|
1020
1022
|
})
|
|
1021
1023
|
);
|
|
1022
|
-
const
|
|
1024
|
+
const Yn = _(
|
|
1023
1025
|
y((s, a) => {
|
|
1024
1026
|
const { panelBackground: o = "solid", radius: n = "full", ...r } = s;
|
|
1025
1027
|
return /* @__PURE__ */ e(ot, { panelBackground: o, radius: n, ref: a, ...r });
|
|
1026
1028
|
})
|
|
1027
|
-
),
|
|
1029
|
+
), xn = {
|
|
1028
1030
|
1: "max-content",
|
|
1029
1031
|
2: "max-content",
|
|
1030
1032
|
3: "max-content",
|
|
1031
1033
|
4: "100%"
|
|
1032
|
-
},
|
|
1034
|
+
}, Sn = y(function({
|
|
1033
1035
|
severity: a = "info",
|
|
1034
1036
|
weight: o = "light",
|
|
1035
1037
|
gap: n = "1",
|
|
@@ -1038,12 +1040,12 @@ const Jn = _(
|
|
|
1038
1040
|
size: c,
|
|
1039
1041
|
...i
|
|
1040
1042
|
}) {
|
|
1041
|
-
const
|
|
1043
|
+
const d = B(c, xn), l = b(a);
|
|
1042
1044
|
return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ C(
|
|
1043
|
-
|
|
1045
|
+
P,
|
|
1044
1046
|
{
|
|
1045
|
-
width: t === "horizontal" ?
|
|
1046
|
-
height: t === "vertical" ?
|
|
1047
|
+
width: t === "horizontal" ? d : "max-content",
|
|
1048
|
+
height: t === "vertical" ? d : "max-content",
|
|
1047
1049
|
direction: t === "vertical" ? "column" : "row",
|
|
1048
1050
|
align: "center",
|
|
1049
1051
|
gap: n,
|
|
@@ -1056,70 +1058,71 @@ const Jn = _(
|
|
|
1056
1058
|
]
|
|
1057
1059
|
}
|
|
1058
1060
|
) });
|
|
1059
|
-
}),
|
|
1061
|
+
}), Tn = _(Sn);
|
|
1060
1062
|
export {
|
|
1061
|
-
|
|
1063
|
+
oo as AccessibleIcon,
|
|
1062
1064
|
zt as AlertDialog,
|
|
1063
1065
|
Le as AlertDialogContent,
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1066
|
+
Ln as AlertDialogProvider,
|
|
1067
|
+
ro as AspectRatio,
|
|
1068
|
+
io as Avatar,
|
|
1069
|
+
kn as Badge,
|
|
1070
|
+
so as Blockquote,
|
|
1071
|
+
ao as Box,
|
|
1070
1072
|
fe as Button,
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1073
|
+
Ae as ButtonGroup,
|
|
1074
|
+
An as ButtonList,
|
|
1075
|
+
co as Callout,
|
|
1076
|
+
lo as Card,
|
|
1077
|
+
uo as Checkbox,
|
|
1078
|
+
ho as Code,
|
|
1079
|
+
po as Container,
|
|
1080
|
+
mo as ContextMenu,
|
|
1081
|
+
Yn as DefaultTheme,
|
|
1080
1082
|
En as Dialog,
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1083
|
+
Mn as DropdownMenu,
|
|
1084
|
+
fo as Em,
|
|
1085
|
+
go as Flex,
|
|
1086
|
+
Co as Grid,
|
|
1087
|
+
vo as Heading,
|
|
1088
|
+
_o as HoverCard,
|
|
1087
1089
|
ke as IconButton,
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1090
|
+
Hn as Input,
|
|
1091
|
+
wo as Inset,
|
|
1092
|
+
yo as Kbd,
|
|
1093
|
+
Xn as LeftAndRightPanels,
|
|
1094
|
+
xo as Link,
|
|
1095
|
+
Gn as MultiSelect,
|
|
1096
|
+
Fn as Popover,
|
|
1097
|
+
So as Portal,
|
|
1098
|
+
To as Quote,
|
|
1099
|
+
Ro as RadioGroup,
|
|
1098
1100
|
Po as ScrollArea,
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1101
|
+
bo as Section,
|
|
1102
|
+
Wn as Select,
|
|
1103
|
+
Tn as Separator,
|
|
1104
|
+
jn as Sidebar,
|
|
1105
|
+
zo as Slider,
|
|
1106
|
+
$o as Slot,
|
|
1107
|
+
Do as Strong,
|
|
1108
|
+
Vn as Switch,
|
|
1109
|
+
Io as Table,
|
|
1110
|
+
Oo as Tabs,
|
|
1111
|
+
Jn as Text,
|
|
1112
|
+
qn as TextArea,
|
|
1113
|
+
No as TextField,
|
|
1114
|
+
ko as Theme,
|
|
1113
1115
|
gn as Toast,
|
|
1114
1116
|
Me as ToastContext,
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1117
|
+
Qn as ToastProvider,
|
|
1118
|
+
Un as ToggleGroup,
|
|
1119
|
+
Ao as Tooltip,
|
|
1118
1120
|
Eo as VisuallyHidden,
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
+
_n as unsafeShowToast,
|
|
1122
|
+
Lo as updateThemeAppearanceClass,
|
|
1123
|
+
Bn as useAlertDialog,
|
|
1121
1124
|
b as useSeverityColor,
|
|
1122
|
-
|
|
1123
|
-
|
|
1125
|
+
Bo as useThemeContext,
|
|
1126
|
+
Kn as useToast
|
|
1124
1127
|
};
|
|
1125
1128
|
//# sourceMappingURL=blocks.js.map
|