@overmap-ai/blocks 0.0.1-alpha.39 → 0.0.1-alpha.41
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/blocks.js +178 -187
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +2 -2
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/blocks.js
CHANGED
|
@@ -2,12 +2,12 @@ import "@radix-ui/themes/styles.css";
|
|
|
2
2
|
export * from "@radix-ui/colors";
|
|
3
3
|
import { Cross1Icon as X, InfoCircledIcon as Y, Cross2Icon as Z } from "@radix-ui/react-icons";
|
|
4
4
|
export * from "@radix-ui/react-icons";
|
|
5
|
-
import { useThemeContext as ee, Badge as oe, Button as te, IconButton as F, Flex as
|
|
6
|
-
import { AccessibleIcon as
|
|
5
|
+
import { useThemeContext as ee, Badge as oe, Button as te, IconButton as F, Flex as S, Dialog as k, AlertDialog as b, Select as P, TextField as $, Text as V, Popover as N, TextArea as ne, Callout as O, Theme as re } from "@radix-ui/themes";
|
|
6
|
+
import { AccessibleIcon as Co, AspectRatio as vo, Avatar as _o, Blockquote as wo, Box as yo, Callout as To, Card as So, Checkbox as xo, Code as bo, Container as Do, ContextMenu as ko, DropdownMenu as Io, Em as Ao, Flex as Bo, Grid as Ro, Heading as Po, HoverCard as $o, Inset as No, Kbd as Oo, Link as Lo, Portal as jo, Quote as zo, RadioGroup as Go, ScrollArea as Mo, Section as Eo, Separator as Fo, Slider as Vo, Slot as Ho, Strong as qo, Switch as Ko, Table as Qo, Tabs as Jo, Text as Uo, TextField as Wo, Theme as Xo, Tooltip as Yo, VisuallyHidden as Zo, updateThemeAppearanceClass as et, useThemeContext as ot } from "@radix-ui/themes";
|
|
7
7
|
import { jsx as o, jsxs as f, Fragment as ie } from "react/jsx-runtime";
|
|
8
|
-
import B, { forwardRef as _, memo as
|
|
8
|
+
import B, { forwardRef as _, memo as C, cloneElement as se, useState as L, useCallback as T, useMemo as j, createContext as H, useContext as ce, createElement as q } from "react";
|
|
9
9
|
import { Root as le, Item as ae } from "@radix-ui/react-toggle-group";
|
|
10
|
-
import * as
|
|
10
|
+
import * as D from "@radix-ui/react-toast";
|
|
11
11
|
function ue(c) {
|
|
12
12
|
return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
|
|
13
13
|
}
|
|
@@ -47,9 +47,9 @@ var K = { exports: {} };
|
|
|
47
47
|
c.exports ? (n.default = n, c.exports = n) : window.classNames = n;
|
|
48
48
|
})();
|
|
49
49
|
})(K);
|
|
50
|
-
var
|
|
51
|
-
const
|
|
52
|
-
function
|
|
50
|
+
var de = K.exports;
|
|
51
|
+
const v = /* @__PURE__ */ ue(de);
|
|
52
|
+
function R(c, i) {
|
|
53
53
|
if (typeof c == "object") {
|
|
54
54
|
if (!("initial" in c))
|
|
55
55
|
throw new Error("Expected initial property to be set in Responsive object");
|
|
@@ -57,19 +57,19 @@ function N(c, i) {
|
|
|
57
57
|
} else
|
|
58
58
|
return i[c];
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const pe = {
|
|
61
61
|
success: "green",
|
|
62
62
|
danger: "red",
|
|
63
63
|
info: "gray"
|
|
64
64
|
}, x = (c) => {
|
|
65
65
|
const i = ee();
|
|
66
|
-
return c === "primary" ? i.accentColor :
|
|
66
|
+
return c === "primary" ? i.accentColor : pe[c];
|
|
67
67
|
}, me = _(function({ className: i, severity: n = "primary", rounded: t, color: r, children: e, ...l }, s) {
|
|
68
68
|
const a = x(n);
|
|
69
69
|
return /* @__PURE__ */ o(
|
|
70
70
|
oe,
|
|
71
71
|
{
|
|
72
|
-
className:
|
|
72
|
+
className: v("overmap-badge", i),
|
|
73
73
|
ref: s,
|
|
74
74
|
color: r || a,
|
|
75
75
|
radius: t ? "full" : void 0,
|
|
@@ -77,7 +77,7 @@ const de = {
|
|
|
77
77
|
children: e
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
-
}),
|
|
80
|
+
}), oo = C(me), he = "_fluid_r73gr_1", ge = "_hoverSpin90Clockwise_r73gr_15", fe = "_hoverSpin180Clockwise_r73gr_25", Ce = "_hoverSpin360Clockwise_r73gr_35", A = {
|
|
81
81
|
fluid: he,
|
|
82
82
|
hoverSpin90Clockwise: ge,
|
|
83
83
|
hoverSpin180Clockwise: fe,
|
|
@@ -91,16 +91,16 @@ const de = {
|
|
|
91
91
|
medium: "2",
|
|
92
92
|
large: "3"
|
|
93
93
|
}, ve = _(function({ className: i, fluid: n, size: t = "medium", severity: r = "primary", hoverEffects: e, type: l = "button", ...s }, a) {
|
|
94
|
-
const
|
|
94
|
+
const d = x(r), m = (e == null ? void 0 : e.map((u) => Q[u])) || [];
|
|
95
95
|
return /* @__PURE__ */ o(
|
|
96
96
|
te,
|
|
97
97
|
{
|
|
98
98
|
ref: a,
|
|
99
|
-
className:
|
|
99
|
+
className: v(i, m, {
|
|
100
100
|
[A.fluid]: n
|
|
101
101
|
}),
|
|
102
|
-
color:
|
|
103
|
-
size:
|
|
102
|
+
color: d,
|
|
103
|
+
size: R(t, z),
|
|
104
104
|
type: l,
|
|
105
105
|
...s
|
|
106
106
|
}
|
|
@@ -114,14 +114,14 @@ const de = {
|
|
|
114
114
|
type: l = "button",
|
|
115
115
|
...s
|
|
116
116
|
}, a) {
|
|
117
|
-
const
|
|
117
|
+
const d = x(r), m = (e == null ? void 0 : e.map((u) => Q[u])) || [];
|
|
118
118
|
return /* @__PURE__ */ o(
|
|
119
119
|
F,
|
|
120
120
|
{
|
|
121
|
-
className:
|
|
121
|
+
className: v(i, m, A.default),
|
|
122
122
|
ref: a,
|
|
123
|
-
color:
|
|
124
|
-
size:
|
|
123
|
+
color: d,
|
|
124
|
+
size: R(t, z),
|
|
125
125
|
type: l,
|
|
126
126
|
...s,
|
|
127
127
|
children: n
|
|
@@ -129,10 +129,10 @@ const de = {
|
|
|
129
129
|
);
|
|
130
130
|
}), M = B.memo(_e), we = "_merged_f4366_1", ye = {
|
|
131
131
|
merged: we
|
|
132
|
-
},
|
|
132
|
+
}, Te = {
|
|
133
133
|
row: { small: "4", medium: "4", large: "5" },
|
|
134
134
|
column: { small: "2", medium: "3", large: "4" }
|
|
135
|
-
},
|
|
135
|
+
}, Se = _(function({
|
|
136
136
|
className: i,
|
|
137
137
|
merged: n = !1,
|
|
138
138
|
children: t,
|
|
@@ -141,37 +141,37 @@ const de = {
|
|
|
141
141
|
severity: l = "primary",
|
|
142
142
|
size: s = "medium",
|
|
143
143
|
variant: a = "solid",
|
|
144
|
-
hoverEffects:
|
|
144
|
+
hoverEffects: d,
|
|
145
145
|
...m
|
|
146
146
|
}, u) {
|
|
147
147
|
return /* @__PURE__ */ o(
|
|
148
|
-
|
|
148
|
+
S,
|
|
149
149
|
{
|
|
150
|
-
className:
|
|
150
|
+
className: v("overmap-button-group", i, {
|
|
151
151
|
[ye.merged]: n
|
|
152
152
|
}),
|
|
153
153
|
ref: u,
|
|
154
|
-
gap: n ? a === "ghost" ?
|
|
154
|
+
gap: n ? a === "ghost" ? R(s, Te[e]) : "0" : r,
|
|
155
155
|
direction: e,
|
|
156
156
|
"data-direction": e,
|
|
157
157
|
...m,
|
|
158
|
-
children: t.map((
|
|
158
|
+
children: t.map((p, w) => p.type === G || p.type === M ? se(p, { key: w, size: s, severity: l, variant: a, hoverEffects: d }) : p)
|
|
159
159
|
}
|
|
160
160
|
);
|
|
161
|
-
}), xe =
|
|
161
|
+
}), xe = C(Se), be = C(function(i) {
|
|
162
162
|
const { title: n, description: t, content: r, closeDialog: e } = i;
|
|
163
|
-
return /* @__PURE__ */ f(
|
|
164
|
-
/* @__PURE__ */ f(
|
|
165
|
-
/* @__PURE__ */ f(
|
|
166
|
-
/* @__PURE__ */ o(
|
|
167
|
-
/* @__PURE__ */ o(
|
|
163
|
+
return /* @__PURE__ */ f(S, { direction: "column", gap: "2", children: [
|
|
164
|
+
/* @__PURE__ */ f(S, { direction: "column", gap: "1", children: [
|
|
165
|
+
/* @__PURE__ */ f(S, { justify: "between", children: [
|
|
166
|
+
/* @__PURE__ */ o(k.Title, { mb: "0", children: n }),
|
|
167
|
+
/* @__PURE__ */ o(k.Close, { children: /* @__PURE__ */ o(F, { color: "gray", variant: "ghost", "aria-label": "Close", children: /* @__PURE__ */ o(X, {}) }) })
|
|
168
168
|
] }),
|
|
169
|
-
/* @__PURE__ */ o(
|
|
169
|
+
/* @__PURE__ */ o(k.Description, { children: t })
|
|
170
170
|
] }),
|
|
171
171
|
r(e)
|
|
172
172
|
] });
|
|
173
|
-
}),
|
|
174
|
-
const { children: n, size: t, onOpen: r, onCloseInterrupt: e, ...l } = i, [s, a] = L(!1),
|
|
173
|
+
}), to = C(function(i) {
|
|
174
|
+
const { children: n, size: t, onOpen: r, onCloseInterrupt: e, ...l } = i, [s, a] = L(!1), d = T(
|
|
175
175
|
(u) => {
|
|
176
176
|
if (u && r)
|
|
177
177
|
r();
|
|
@@ -180,46 +180,46 @@ const de = {
|
|
|
180
180
|
a(u);
|
|
181
181
|
},
|
|
182
182
|
[r, e]
|
|
183
|
-
), m =
|
|
183
|
+
), m = T(
|
|
184
184
|
(u) => {
|
|
185
185
|
if (u != null && u.force)
|
|
186
186
|
return a(!1);
|
|
187
|
-
|
|
187
|
+
d(!1);
|
|
188
188
|
},
|
|
189
|
-
[
|
|
189
|
+
[d]
|
|
190
190
|
);
|
|
191
|
-
return /* @__PURE__ */ f(
|
|
192
|
-
/* @__PURE__ */ o(
|
|
193
|
-
n(
|
|
191
|
+
return /* @__PURE__ */ f(k.Root, { open: s, onOpenChange: d, children: [
|
|
192
|
+
/* @__PURE__ */ o(k.Content, { size: t, children: /* @__PURE__ */ o(be, { closeDialog: m, ...l }) }),
|
|
193
|
+
n(k.Trigger)
|
|
194
194
|
] });
|
|
195
|
-
}), J = (c) => /* @__PURE__ */ o(
|
|
195
|
+
}), J = (c) => /* @__PURE__ */ o(b.Title, { mb: "0", ...c }), De = (c) => {
|
|
196
196
|
const { title: i, description: n, actionText: t = "Confirm", cancelText: r = "Cancel", onAction: e, onCancel: l, severity: s } = c;
|
|
197
|
-
return /* @__PURE__ */ f(
|
|
198
|
-
/* @__PURE__ */ f(
|
|
197
|
+
return /* @__PURE__ */ f(S, { direction: "column", gap: "2", children: [
|
|
198
|
+
/* @__PURE__ */ f(S, { direction: "column", gap: "1", children: [
|
|
199
199
|
/* @__PURE__ */ o(J, { children: i }),
|
|
200
|
-
/* @__PURE__ */ o(
|
|
200
|
+
/* @__PURE__ */ o(b.Description, { children: n })
|
|
201
201
|
] }),
|
|
202
|
-
/* @__PURE__ */ f(
|
|
203
|
-
/* @__PURE__ */ o(
|
|
204
|
-
/* @__PURE__ */ o(
|
|
202
|
+
/* @__PURE__ */ f(S, { gap: "3", mt: "4", justify: "end", children: [
|
|
203
|
+
/* @__PURE__ */ o(b.Cancel, { children: /* @__PURE__ */ o(G, { variant: "soft", severity: "info", onClick: l, children: r }) }),
|
|
204
|
+
/* @__PURE__ */ o(b.Action, { children: /* @__PURE__ */ o(G, { variant: "solid", severity: s, onClick: e, children: t }) })
|
|
205
205
|
] })
|
|
206
206
|
] });
|
|
207
|
-
},
|
|
207
|
+
}, ke = C(function(i) {
|
|
208
208
|
const { open: n, setOpen: t, children: r, ...e } = i, l = j(() => ({
|
|
209
209
|
close: () => t(!1),
|
|
210
210
|
Title: J,
|
|
211
|
-
Description:
|
|
211
|
+
Description: b.Description
|
|
212
212
|
}), [t]);
|
|
213
|
-
return /* @__PURE__ */ f(
|
|
214
|
-
/* @__PURE__ */ o(
|
|
213
|
+
return /* @__PURE__ */ f(b.Root, { open: n, onOpenChange: t, children: [
|
|
214
|
+
/* @__PURE__ */ o(b.Content, { children: "content" in e ? e.content(l) : /* @__PURE__ */ o(De, { ...e }) }),
|
|
215
215
|
r
|
|
216
216
|
] });
|
|
217
217
|
}), U = H(() => {
|
|
218
218
|
throw new Error("No AlertDialogProvider found");
|
|
219
219
|
}), Ie = {
|
|
220
220
|
content: () => null
|
|
221
|
-
},
|
|
222
|
-
const [n, t] = L(!1), [r, e] = L(Ie), l =
|
|
221
|
+
}, no = C(function({ children: i }) {
|
|
222
|
+
const [n, t] = L(!1), [r, e] = L(Ie), l = T(
|
|
223
223
|
(s) => {
|
|
224
224
|
if (n)
|
|
225
225
|
throw new Error("AlertDialog is already open");
|
|
@@ -227,10 +227,10 @@ const de = {
|
|
|
227
227
|
},
|
|
228
228
|
[n]
|
|
229
229
|
);
|
|
230
|
-
return /* @__PURE__ */ o(
|
|
231
|
-
}),
|
|
230
|
+
return /* @__PURE__ */ o(ke, { open: n, setOpen: t, ...r, children: /* @__PURE__ */ o(U.Provider, { value: l, children: i }) });
|
|
231
|
+
}), ro = () => ce(U), Ae = "_fluid_7n1wr_1", Be = {
|
|
232
232
|
fluid: Ae
|
|
233
|
-
},
|
|
233
|
+
}, Re = _(function({
|
|
234
234
|
className: i,
|
|
235
235
|
fluid: n,
|
|
236
236
|
size: t = "medium",
|
|
@@ -239,38 +239,38 @@ const de = {
|
|
|
239
239
|
placeholder: l = "Select",
|
|
240
240
|
side: s,
|
|
241
241
|
items: a = [],
|
|
242
|
-
value:
|
|
242
|
+
value: d,
|
|
243
243
|
id: m,
|
|
244
244
|
...u
|
|
245
|
-
},
|
|
246
|
-
const w = j(() =>
|
|
247
|
-
return /* @__PURE__ */ q(
|
|
248
|
-
|
|
245
|
+
}, p) {
|
|
246
|
+
const w = j(() => R(t, z), [t]), h = x(e);
|
|
247
|
+
return /* @__PURE__ */ q(P.Root, { size: w, ...u, key: d === void 0 ? 1 : 0, value: d }, /* @__PURE__ */ o(
|
|
248
|
+
P.Trigger,
|
|
249
249
|
{
|
|
250
|
-
className:
|
|
250
|
+
className: v(i, {
|
|
251
251
|
[Be.fluid]: n
|
|
252
252
|
}),
|
|
253
253
|
id: m,
|
|
254
|
-
ref:
|
|
254
|
+
ref: p,
|
|
255
255
|
variant: r,
|
|
256
256
|
placeholder: l,
|
|
257
257
|
color: h
|
|
258
258
|
}
|
|
259
259
|
), /* @__PURE__ */ o(
|
|
260
|
-
|
|
260
|
+
P.Content,
|
|
261
261
|
{
|
|
262
262
|
side: s,
|
|
263
263
|
position: "popper",
|
|
264
264
|
variant: r !== "surface" ? "soft" : "solid",
|
|
265
265
|
color: h,
|
|
266
|
-
children: a.map(({ label: g, value: y, ...W }) => /* @__PURE__ */ o(
|
|
266
|
+
children: a.map(({ label: g, value: y, ...W }) => /* @__PURE__ */ o(P.Item, { value: y, ...W, children: g }, y))
|
|
267
267
|
}
|
|
268
268
|
));
|
|
269
|
-
}),
|
|
270
|
-
accommodateCharCount:
|
|
269
|
+
}), io = B.memo(Re), Pe = "_accommodateCharCount_fni4k_1", $e = "_noLeftIcon_fni4k_9", Ne = "_noRightIcon_fni4k_13", Oe = "_charCount_fni4k_17", I = {
|
|
270
|
+
accommodateCharCount: Pe,
|
|
271
271
|
default: "_default_fni4k_5",
|
|
272
|
-
noLeftIcon:
|
|
273
|
-
noRightIcon:
|
|
272
|
+
noLeftIcon: $e,
|
|
273
|
+
noRightIcon: Ne,
|
|
274
274
|
charCount: Oe
|
|
275
275
|
}, Le = _(function({
|
|
276
276
|
className: i,
|
|
@@ -281,69 +281,69 @@ const de = {
|
|
|
281
281
|
value: l,
|
|
282
282
|
variant: s,
|
|
283
283
|
severity: a = "primary",
|
|
284
|
-
...
|
|
284
|
+
...d
|
|
285
285
|
}, m) {
|
|
286
|
-
const u = j(() =>
|
|
286
|
+
const u = j(() => R(r, z), [r]), p = x(a), w = e || e === void 0 && d.maxLength !== void 0, h = l !== void 0 ? l.toString() : void 0;
|
|
287
287
|
return /* @__PURE__ */ f(
|
|
288
|
-
|
|
288
|
+
$.Root,
|
|
289
289
|
{
|
|
290
|
-
className:
|
|
290
|
+
className: v({
|
|
291
291
|
[I.accommodateCharCount]: w
|
|
292
292
|
}),
|
|
293
293
|
size: u,
|
|
294
294
|
variant: s,
|
|
295
|
-
color:
|
|
295
|
+
color: p,
|
|
296
296
|
children: [
|
|
297
|
-
/* @__PURE__ */ o(
|
|
297
|
+
/* @__PURE__ */ o($.Slot, { children: n }),
|
|
298
298
|
/* @__PURE__ */ o(
|
|
299
|
-
|
|
299
|
+
$.Input,
|
|
300
300
|
{
|
|
301
|
-
className:
|
|
301
|
+
className: v(I.default, i, {
|
|
302
302
|
[I.noLeftIcon]: !n,
|
|
303
303
|
[I.noRightIcon]: !t
|
|
304
304
|
}),
|
|
305
305
|
ref: m,
|
|
306
306
|
size: u,
|
|
307
307
|
variant: s,
|
|
308
|
-
color:
|
|
309
|
-
...
|
|
308
|
+
color: p,
|
|
309
|
+
...d
|
|
310
310
|
}
|
|
311
311
|
),
|
|
312
|
-
/* @__PURE__ */ o(
|
|
313
|
-
w && /* @__PURE__ */ o(V, { as: "p", className: I.charCount, size: "1", color: "gray", children:
|
|
312
|
+
/* @__PURE__ */ o($.Slot, { children: t }),
|
|
313
|
+
w && /* @__PURE__ */ o(V, { as: "p", className: I.charCount, size: "1", color: "gray", children: d.maxLength !== void 0 ? `${h == null ? void 0 : h.length}/${d.maxLength}` : `${h == null ? void 0 : h.length}` })
|
|
314
314
|
]
|
|
315
315
|
}
|
|
316
316
|
);
|
|
317
|
-
}),
|
|
318
|
-
return /* @__PURE__ */ f(
|
|
319
|
-
/* @__PURE__ */ o(
|
|
320
|
-
/* @__PURE__ */ o(
|
|
317
|
+
}), so = B.memo(Le), je = _(function({ defaultOpen: i = !1, modal: n = !1, content: t, children: r, ...e }, l) {
|
|
318
|
+
return /* @__PURE__ */ f(N.Root, { defaultOpen: i, modal: n, children: [
|
|
319
|
+
/* @__PURE__ */ o(N.Trigger, { children: r }),
|
|
320
|
+
/* @__PURE__ */ o(N.Content, { ref: l, ...e, children: t(N.Close) })
|
|
321
321
|
] });
|
|
322
|
-
}),
|
|
322
|
+
}), co = B.memo(je), ze = "_charCount_17uut_1", Ge = {
|
|
323
323
|
charCount: ze
|
|
324
324
|
}, Me = _(function({ className: i, showInputLength: n, inputLengthTemplate: t, value: r, severity: e = "primary", resize: l, ...s }, a) {
|
|
325
|
-
const
|
|
325
|
+
const d = x(e), m = x("info"), u = n || n === void 0 && (s.maxLength !== void 0 || s.minLength !== void 0), p = r !== void 0 ? r.toString() : "", w = j(() => {
|
|
326
326
|
if (t) {
|
|
327
|
-
let h = t.replace("{current}",
|
|
327
|
+
let h = t.replace("{current}", p.length.toString());
|
|
328
328
|
return s.minLength !== void 0 && (h = h.replace("{min}", s.minLength.toString())), s.maxLength !== void 0 && (h = h.replace("{max}", s.maxLength.toString())), h;
|
|
329
329
|
}
|
|
330
|
-
return
|
|
331
|
-
}, [t, s.maxLength, s.minLength,
|
|
330
|
+
return p.length;
|
|
331
|
+
}, [t, s.maxLength, s.minLength, p.length]);
|
|
332
332
|
return /* @__PURE__ */ f(ie, { children: [
|
|
333
333
|
/* @__PURE__ */ o(
|
|
334
334
|
ne,
|
|
335
335
|
{
|
|
336
|
-
className:
|
|
336
|
+
className: v("overmap-textarea", i),
|
|
337
337
|
style: { resize: l },
|
|
338
338
|
ref: a,
|
|
339
339
|
value: r,
|
|
340
|
-
color:
|
|
340
|
+
color: d,
|
|
341
341
|
...s
|
|
342
342
|
}
|
|
343
343
|
),
|
|
344
344
|
u && /* @__PURE__ */ o(V, { as: "p", className: Ge.charCount, color: m, align: "right", children: w })
|
|
345
345
|
] });
|
|
346
|
-
}),
|
|
346
|
+
}), lo = C(Me), Ee = _(function({
|
|
347
347
|
className: i,
|
|
348
348
|
items: n,
|
|
349
349
|
orientation: t = "horizontal",
|
|
@@ -352,16 +352,16 @@ const de = {
|
|
|
352
352
|
severity: l,
|
|
353
353
|
gap: s,
|
|
354
354
|
size: a,
|
|
355
|
-
...
|
|
355
|
+
...d
|
|
356
356
|
}, m) {
|
|
357
357
|
return /* @__PURE__ */ o(
|
|
358
358
|
le,
|
|
359
359
|
{
|
|
360
|
-
className:
|
|
360
|
+
className: v("overmap-toggle-group", i),
|
|
361
361
|
ref: m,
|
|
362
362
|
value: e,
|
|
363
363
|
orientation: t,
|
|
364
|
-
...
|
|
364
|
+
...d,
|
|
365
365
|
children: /* @__PURE__ */ o(
|
|
366
366
|
xe,
|
|
367
367
|
{
|
|
@@ -370,13 +370,13 @@ const de = {
|
|
|
370
370
|
merged: r,
|
|
371
371
|
direction: t === "vertical" ? "column" : "row",
|
|
372
372
|
gap: s,
|
|
373
|
-
children: n.map(({ children: u, ...
|
|
373
|
+
children: n.map(({ children: u, ...p }) => /* @__PURE__ */ q(ae, { asChild: !0, ...p, key: p.value }, /* @__PURE__ */ o(
|
|
374
374
|
M,
|
|
375
375
|
{
|
|
376
|
-
className:
|
|
377
|
-
"aria-label":
|
|
376
|
+
className: v("overmap-toggle-group-button"),
|
|
377
|
+
"aria-label": p.value,
|
|
378
378
|
severity: l,
|
|
379
|
-
variant:
|
|
379
|
+
variant: p.value === e ? "solid" : "soft",
|
|
380
380
|
size: a,
|
|
381
381
|
children: u
|
|
382
382
|
}
|
|
@@ -385,32 +385,32 @@ const de = {
|
|
|
385
385
|
)
|
|
386
386
|
}
|
|
387
387
|
);
|
|
388
|
-
}),
|
|
388
|
+
}), ao = C(Ee), Fe = "_wrapper_o13vb_1", Ve = "_slideRight_o13vb_1", E = {
|
|
389
389
|
wrapper: Fe,
|
|
390
390
|
slideRight: Ve
|
|
391
391
|
}, He = _(function({ title: i, description: n, icon: t, severity: r = "primary", size: e, onClose: l, ...s }, a) {
|
|
392
|
-
const
|
|
392
|
+
const d = x(r), m = T(
|
|
393
393
|
(u) => {
|
|
394
394
|
!u && l && l();
|
|
395
395
|
},
|
|
396
396
|
[l]
|
|
397
397
|
);
|
|
398
|
-
return /* @__PURE__ */ o(
|
|
398
|
+
return /* @__PURE__ */ o(D.Root, { asChild: !0, ref: a, ...s, onOpenChange: m, children: /* @__PURE__ */ o(
|
|
399
399
|
O.Root,
|
|
400
400
|
{
|
|
401
|
-
className:
|
|
401
|
+
className: v("overmap-toast", E.wrapper),
|
|
402
402
|
variant: "surface",
|
|
403
|
-
color:
|
|
403
|
+
color: d,
|
|
404
404
|
size: e,
|
|
405
|
-
children: /* @__PURE__ */ f(
|
|
406
|
-
/* @__PURE__ */ f(
|
|
405
|
+
children: /* @__PURE__ */ f(S, { width: "100%", align: "center", gap: "4", justify: "between", children: [
|
|
406
|
+
/* @__PURE__ */ f(S, { align: "center", gap: "4", children: [
|
|
407
407
|
/* @__PURE__ */ o(O.Icon, { children: t || /* @__PURE__ */ o(Y, {}) }),
|
|
408
|
-
/* @__PURE__ */ f(
|
|
409
|
-
/* @__PURE__ */ o(
|
|
410
|
-
/* @__PURE__ */ o(
|
|
408
|
+
/* @__PURE__ */ f(S, { direction: "column", gap: "0", children: [
|
|
409
|
+
/* @__PURE__ */ o(D.Title, { asChild: !0, children: /* @__PURE__ */ o(O.Text, { weight: "bold", children: i }) }),
|
|
410
|
+
/* @__PURE__ */ o(D.Description, { asChild: !0, children: /* @__PURE__ */ o(O.Text, { weight: "light", children: n }) })
|
|
411
411
|
] })
|
|
412
412
|
] }),
|
|
413
|
-
/* @__PURE__ */ o(
|
|
413
|
+
/* @__PURE__ */ o(D.Close, { asChild: !0, children: /* @__PURE__ */ o(
|
|
414
414
|
M,
|
|
415
415
|
{
|
|
416
416
|
className: E.closeButton,
|
|
@@ -424,12 +424,12 @@ const de = {
|
|
|
424
424
|
] })
|
|
425
425
|
}
|
|
426
426
|
) });
|
|
427
|
-
}), qe =
|
|
427
|
+
}), qe = C(function({
|
|
428
428
|
children: i,
|
|
429
429
|
...n
|
|
430
430
|
}) {
|
|
431
|
-
return /* @__PURE__ */ o(
|
|
432
|
-
}), Ke =
|
|
431
|
+
return /* @__PURE__ */ o(D.Provider, { swipeDirection: "right", swipeThreshold: 75, ...n, children: i });
|
|
432
|
+
}), Ke = C(He), Qe = D.Viewport, Je = H({}), uo = C(function({
|
|
433
433
|
children: i,
|
|
434
434
|
// Use this class to change where the viewport for the toasts should be
|
|
435
435
|
viewportClass: n,
|
|
@@ -438,29 +438,29 @@ const de = {
|
|
|
438
438
|
duration: r = 1e4,
|
|
439
439
|
...e
|
|
440
440
|
}) {
|
|
441
|
-
const [l, s] = L([]), a =
|
|
441
|
+
const [l, s] = L([]), a = T((g) => {
|
|
442
442
|
s((y) => [...y, g]);
|
|
443
|
-
}, []),
|
|
443
|
+
}, []), d = T(
|
|
444
444
|
(g) => {
|
|
445
445
|
a({ severity: "primary", ...g });
|
|
446
446
|
},
|
|
447
447
|
[a]
|
|
448
|
-
), m =
|
|
448
|
+
), m = T(
|
|
449
449
|
(g) => {
|
|
450
450
|
a({ severity: "success", ...g });
|
|
451
451
|
},
|
|
452
452
|
[a]
|
|
453
|
-
), u =
|
|
453
|
+
), u = T(
|
|
454
454
|
(g) => {
|
|
455
455
|
a({ severity: "danger", ...g });
|
|
456
456
|
},
|
|
457
457
|
[a]
|
|
458
|
-
),
|
|
458
|
+
), p = T(
|
|
459
459
|
(g) => {
|
|
460
460
|
a({ severity: "info", ...g });
|
|
461
461
|
},
|
|
462
462
|
[a]
|
|
463
|
-
), w =
|
|
463
|
+
), w = T(
|
|
464
464
|
(g) => {
|
|
465
465
|
const y = [...l];
|
|
466
466
|
y.splice(g, 1), s(() => y);
|
|
@@ -468,92 +468,83 @@ const de = {
|
|
|
468
468
|
[l]
|
|
469
469
|
), h = {
|
|
470
470
|
showToast: a,
|
|
471
|
-
showPrimary:
|
|
471
|
+
showPrimary: d,
|
|
472
472
|
showSuccess: m,
|
|
473
473
|
showError: u,
|
|
474
|
-
showInfo:
|
|
474
|
+
showInfo: p
|
|
475
475
|
};
|
|
476
476
|
return /* @__PURE__ */ o(Je.Provider, { value: h, children: /* @__PURE__ */ f(qe, { duration: r, ...e, children: [
|
|
477
477
|
/* @__PURE__ */ o(Qe, { className: n, hotkey: t }),
|
|
478
478
|
l.map((g, y) => /* @__PURE__ */ o(Ke, { ...g, onClose: () => w(y) }, y)),
|
|
479
479
|
i
|
|
480
480
|
] }) });
|
|
481
|
-
})
|
|
482
|
-
|
|
483
|
-
}, ho = v(
|
|
481
|
+
});
|
|
482
|
+
const po = C(
|
|
484
483
|
_((c, i) => {
|
|
485
|
-
const { panelBackground: n = "solid",
|
|
486
|
-
return /* @__PURE__ */ o(
|
|
487
|
-
re,
|
|
488
|
-
{
|
|
489
|
-
className: C(t, We.tokens),
|
|
490
|
-
panelBackground: n,
|
|
491
|
-
ref: i,
|
|
492
|
-
...r
|
|
493
|
-
}
|
|
494
|
-
);
|
|
484
|
+
const { panelBackground: n = "solid", radius: t = "full", ...r } = c;
|
|
485
|
+
return /* @__PURE__ */ o(re, { panelBackground: n, radius: t, ref: i, ...r });
|
|
495
486
|
})
|
|
496
487
|
);
|
|
497
488
|
export {
|
|
498
|
-
|
|
499
|
-
|
|
489
|
+
Co as AccessibleIcon,
|
|
490
|
+
ke as AlertDialog,
|
|
500
491
|
U as AlertDialogContent,
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
492
|
+
no as AlertDialogProvider,
|
|
493
|
+
vo as AspectRatio,
|
|
494
|
+
_o as Avatar,
|
|
495
|
+
oo as Badge,
|
|
496
|
+
wo as Blockquote,
|
|
497
|
+
yo as Box,
|
|
507
498
|
G as Button,
|
|
508
499
|
xe as ButtonGroup,
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
500
|
+
To as Callout,
|
|
501
|
+
So as Card,
|
|
502
|
+
xo as Checkbox,
|
|
503
|
+
bo as Code,
|
|
504
|
+
Do as Container,
|
|
505
|
+
ko as ContextMenu,
|
|
506
|
+
po as DefaultTheme,
|
|
507
|
+
to as Dialog,
|
|
508
|
+
Io as DropdownMenu,
|
|
509
|
+
Ao as Em,
|
|
510
|
+
Bo as Flex,
|
|
511
|
+
Ro as Grid,
|
|
512
|
+
Po as Heading,
|
|
513
|
+
$o as HoverCard,
|
|
523
514
|
M as IconButton,
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
515
|
+
so as Input,
|
|
516
|
+
No as Inset,
|
|
517
|
+
Oo as Kbd,
|
|
518
|
+
Lo as Link,
|
|
519
|
+
co as Popover,
|
|
520
|
+
jo as Portal,
|
|
521
|
+
zo as Quote,
|
|
522
|
+
Go as RadioGroup,
|
|
523
|
+
Mo as ScrollArea,
|
|
524
|
+
Eo as Section,
|
|
525
|
+
io as Select,
|
|
526
|
+
Fo as Separator,
|
|
527
|
+
Vo as Slider,
|
|
528
|
+
Ho as Slot,
|
|
529
|
+
qo as Strong,
|
|
530
|
+
Ko as Switch,
|
|
531
|
+
Qo as Table,
|
|
532
|
+
Jo as Tabs,
|
|
533
|
+
Uo as Text,
|
|
534
|
+
lo as TextArea,
|
|
535
|
+
Wo as TextField,
|
|
536
|
+
Xo as Theme,
|
|
546
537
|
Ke as Toast,
|
|
547
538
|
Je as ToastContext,
|
|
548
|
-
|
|
539
|
+
uo as ToastContextProvider,
|
|
549
540
|
qe as ToastProvider,
|
|
550
541
|
Qe as ToastViewport,
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
542
|
+
ao as ToggleGroup,
|
|
543
|
+
Yo as Tooltip,
|
|
544
|
+
Zo as VisuallyHidden,
|
|
545
|
+
et as updateThemeAppearanceClass,
|
|
546
|
+
ro as useAlertDialog,
|
|
556
547
|
x as useSeverityColor,
|
|
557
|
-
|
|
548
|
+
ot as useThemeContext
|
|
558
549
|
};
|
|
559
550
|
//# sourceMappingURL=blocks.js.map
|