@overmap-ai/blocks 0.0.1-alpha.37 → 0.0.1-alpha.39
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/Theme/DefaultTheme.d.ts +4 -6
- package/dist/Theme/index.d.ts +1 -1
- package/dist/blocks.js +170 -158
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +2 -2
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/utils.d.ts +2 -3
- package/package.json +1 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export declare const DefaultTheme: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ThemeProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
1
|
+
import { Theme } from "@radix-ui/themes";
|
|
2
|
+
import { ComponentProps, FC } from "react";
|
|
3
|
+
export type DefaultThemeProps = ComponentProps<typeof Theme>;
|
|
4
|
+
export declare const DefaultTheme: FC<DefaultThemeProps>;
|
package/dist/Theme/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./DefaultTheme";
|
|
2
|
-
export { Theme } from "@radix-ui/themes";
|
|
2
|
+
export { Theme, type ThemeOptions, useThemeContext, updateThemeAppearanceClass } from "@radix-ui/themes";
|
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 T, Dialog as
|
|
6
|
-
import { AccessibleIcon as
|
|
5
|
+
import { useThemeContext as ee, Badge as oe, Button as te, IconButton as F, Flex as T, Dialog as D, AlertDialog as k, Select as R, TextField as P, Text as V, Popover as $, TextArea as ne, Callout as O, Theme as re } from "@radix-ui/themes";
|
|
6
|
+
import { AccessibleIcon as _o, AspectRatio as wo, Avatar as yo, Blockquote as So, Box as To, Callout as xo, Card as ko, Checkbox as bo, Code as Do, Container as Io, ContextMenu as Ao, DropdownMenu as Bo, Em as No, Flex as Ro, Grid as Po, Heading as $o, HoverCard as Oo, Inset as Lo, Kbd as jo, Link as zo, Portal as Go, Quote as Mo, RadioGroup as Eo, ScrollArea as Fo, Section as Vo, Separator as Ho, Slider as qo, Slot as Ko, Strong as Qo, Switch as Jo, Table as Uo, Tabs as Wo, Text as Xo, TextField as Yo, Theme as Zo, Tooltip as et, VisuallyHidden as ot, updateThemeAppearanceClass as tt, useThemeContext as nt } 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 v, cloneElement as se, useState as L, useCallback as S, 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 b 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 pe = K.exports;
|
|
51
|
+
const C = /* @__PURE__ */ ue(pe);
|
|
52
|
+
function N(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 R(c, i) {
|
|
|
57
57
|
} else
|
|
58
58
|
return i[c];
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const de = {
|
|
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 : de[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: C("overmap-badge", i),
|
|
73
73
|
ref: s,
|
|
74
74
|
color: r || a,
|
|
75
75
|
radius: t ? "full" : void 0,
|
|
@@ -77,7 +77,7 @@ const pe = {
|
|
|
77
77
|
children: e
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
-
}),
|
|
80
|
+
}), no = v(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 pe = {
|
|
|
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 p = 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: C(i, m, {
|
|
100
100
|
[A.fluid]: n
|
|
101
101
|
}),
|
|
102
|
-
color:
|
|
103
|
-
size:
|
|
102
|
+
color: p,
|
|
103
|
+
size: N(t, z),
|
|
104
104
|
type: l,
|
|
105
105
|
...s
|
|
106
106
|
}
|
|
@@ -114,14 +114,14 @@ const pe = {
|
|
|
114
114
|
type: l = "button",
|
|
115
115
|
...s
|
|
116
116
|
}, a) {
|
|
117
|
-
const
|
|
117
|
+
const p = 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: C(i, m, A.default),
|
|
122
122
|
ref: a,
|
|
123
|
-
color:
|
|
124
|
-
size:
|
|
123
|
+
color: p,
|
|
124
|
+
size: N(t, z),
|
|
125
125
|
type: l,
|
|
126
126
|
...s,
|
|
127
127
|
children: n
|
|
@@ -141,37 +141,37 @@ const pe = {
|
|
|
141
141
|
severity: l = "primary",
|
|
142
142
|
size: s = "medium",
|
|
143
143
|
variant: a = "solid",
|
|
144
|
-
hoverEffects:
|
|
144
|
+
hoverEffects: p,
|
|
145
145
|
...m
|
|
146
146
|
}, u) {
|
|
147
147
|
return /* @__PURE__ */ o(
|
|
148
148
|
T,
|
|
149
149
|
{
|
|
150
|
-
className:
|
|
150
|
+
className: C("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" ? N(s, Se[e]) : "0" : r,
|
|
155
155
|
direction: e,
|
|
156
156
|
"data-direction": e,
|
|
157
157
|
...m,
|
|
158
|
-
children: t.map((
|
|
158
|
+
children: t.map((d, w) => d.type === G || d.type === M ? se(d, { key: w, size: s, severity: l, variant: a, hoverEffects: p }) : d)
|
|
159
159
|
}
|
|
160
160
|
);
|
|
161
|
-
}), xe =
|
|
161
|
+
}), xe = v(Te), ke = v(function(i) {
|
|
162
162
|
const { title: n, description: t, content: r, closeDialog: e } = i;
|
|
163
163
|
return /* @__PURE__ */ f(T, { direction: "column", gap: "2", children: [
|
|
164
164
|
/* @__PURE__ */ f(T, { direction: "column", gap: "1", children: [
|
|
165
165
|
/* @__PURE__ */ f(T, { justify: "between", children: [
|
|
166
|
-
/* @__PURE__ */ o(
|
|
167
|
-
/* @__PURE__ */ o(
|
|
166
|
+
/* @__PURE__ */ o(D.Title, { mb: "0", children: n }),
|
|
167
|
+
/* @__PURE__ */ o(D.Close, { children: /* @__PURE__ */ o(F, { color: "gray", variant: "ghost", "aria-label": "Close", children: /* @__PURE__ */ o(X, {}) }) })
|
|
168
168
|
] }),
|
|
169
|
-
/* @__PURE__ */ o(
|
|
169
|
+
/* @__PURE__ */ o(D.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
|
+
}), ro = v(function(i) {
|
|
174
|
+
const { children: n, size: t, onOpen: r, onCloseInterrupt: e, ...l } = i, [s, a] = L(!1), p = S(
|
|
175
175
|
(u) => {
|
|
176
176
|
if (u && r)
|
|
177
177
|
r();
|
|
@@ -184,41 +184,41 @@ const pe = {
|
|
|
184
184
|
(u) => {
|
|
185
185
|
if (u != null && u.force)
|
|
186
186
|
return a(!1);
|
|
187
|
-
|
|
187
|
+
p(!1);
|
|
188
188
|
},
|
|
189
|
-
[
|
|
189
|
+
[p]
|
|
190
190
|
);
|
|
191
|
-
return /* @__PURE__ */ f(
|
|
192
|
-
/* @__PURE__ */ o(
|
|
193
|
-
n(
|
|
191
|
+
return /* @__PURE__ */ f(D.Root, { open: s, onOpenChange: p, children: [
|
|
192
|
+
/* @__PURE__ */ o(D.Content, { size: t, children: /* @__PURE__ */ o(ke, { closeDialog: m, ...l }) }),
|
|
193
|
+
n(D.Trigger)
|
|
194
194
|
] });
|
|
195
|
-
}), J = (c) => /* @__PURE__ */ o(
|
|
195
|
+
}), J = (c) => /* @__PURE__ */ o(k.Title, { mb: "0", ...c }), be = (c) => {
|
|
196
196
|
const { title: i, description: n, actionText: t = "Confirm", cancelText: r = "Cancel", onAction: e, onCancel: l, severity: s } = c;
|
|
197
197
|
return /* @__PURE__ */ f(T, { direction: "column", gap: "2", children: [
|
|
198
198
|
/* @__PURE__ */ f(T, { direction: "column", gap: "1", children: [
|
|
199
199
|
/* @__PURE__ */ o(J, { children: i }),
|
|
200
|
-
/* @__PURE__ */ o(
|
|
200
|
+
/* @__PURE__ */ o(k.Description, { children: n })
|
|
201
201
|
] }),
|
|
202
202
|
/* @__PURE__ */ f(T, { gap: "3", mt: "4", justify: "end", children: [
|
|
203
|
-
/* @__PURE__ */ o(
|
|
204
|
-
/* @__PURE__ */ o(
|
|
203
|
+
/* @__PURE__ */ o(k.Cancel, { children: /* @__PURE__ */ o(G, { variant: "soft", severity: "info", onClick: l, children: r }) }),
|
|
204
|
+
/* @__PURE__ */ o(k.Action, { children: /* @__PURE__ */ o(G, { variant: "solid", severity: s, onClick: e, children: t }) })
|
|
205
205
|
] })
|
|
206
206
|
] });
|
|
207
|
-
},
|
|
207
|
+
}, De = v(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: k.Description
|
|
212
212
|
}), [t]);
|
|
213
|
-
return /* @__PURE__ */ f(
|
|
214
|
-
/* @__PURE__ */ o(
|
|
213
|
+
return /* @__PURE__ */ f(k.Root, { open: n, onOpenChange: t, children: [
|
|
214
|
+
/* @__PURE__ */ o(k.Content, { children: "content" in e ? e.content(l) : /* @__PURE__ */ o(be, { ...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
|
-
},
|
|
221
|
+
}, io = v(function({ children: i }) {
|
|
222
222
|
const [n, t] = L(!1), [r, e] = L(Ie), l = S(
|
|
223
223
|
(s) => {
|
|
224
224
|
if (n)
|
|
@@ -227,10 +227,10 @@ const pe = {
|
|
|
227
227
|
},
|
|
228
228
|
[n]
|
|
229
229
|
);
|
|
230
|
-
return /* @__PURE__ */ o(
|
|
231
|
-
}),
|
|
230
|
+
return /* @__PURE__ */ o(De, { open: n, setOpen: t, ...r, children: /* @__PURE__ */ o(U.Provider, { value: l, children: i }) });
|
|
231
|
+
}), so = () => ce(U), Ae = "_fluid_7n1wr_1", Be = {
|
|
232
232
|
fluid: Ae
|
|
233
|
-
},
|
|
233
|
+
}, Ne = _(function({
|
|
234
234
|
className: i,
|
|
235
235
|
fluid: n,
|
|
236
236
|
size: t = "medium",
|
|
@@ -239,38 +239,38 @@ const pe = {
|
|
|
239
239
|
placeholder: l = "Select",
|
|
240
240
|
side: s,
|
|
241
241
|
items: a = [],
|
|
242
|
-
value:
|
|
242
|
+
value: p,
|
|
243
243
|
id: m,
|
|
244
244
|
...u
|
|
245
|
-
},
|
|
246
|
-
const w = j(() =>
|
|
247
|
-
return /* @__PURE__ */ q(
|
|
248
|
-
|
|
245
|
+
}, d) {
|
|
246
|
+
const w = j(() => N(t, z), [t]), h = x(e);
|
|
247
|
+
return /* @__PURE__ */ q(R.Root, { size: w, ...u, key: p === void 0 ? 1 : 0, value: p }, /* @__PURE__ */ o(
|
|
248
|
+
R.Trigger,
|
|
249
249
|
{
|
|
250
|
-
className:
|
|
250
|
+
className: C(i, {
|
|
251
251
|
[Be.fluid]: n
|
|
252
252
|
}),
|
|
253
253
|
id: m,
|
|
254
|
-
ref:
|
|
254
|
+
ref: d,
|
|
255
255
|
variant: r,
|
|
256
256
|
placeholder: l,
|
|
257
257
|
color: h
|
|
258
258
|
}
|
|
259
259
|
), /* @__PURE__ */ o(
|
|
260
|
-
|
|
260
|
+
R.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(R.Item, { value: y, ...W, children: g }, y))
|
|
267
267
|
}
|
|
268
268
|
));
|
|
269
|
-
}),
|
|
270
|
-
accommodateCharCount:
|
|
269
|
+
}), co = B.memo(Ne), Re = "_accommodateCharCount_fni4k_1", Pe = "_noLeftIcon_fni4k_9", $e = "_noRightIcon_fni4k_13", Oe = "_charCount_fni4k_17", I = {
|
|
270
|
+
accommodateCharCount: Re,
|
|
271
271
|
default: "_default_fni4k_5",
|
|
272
|
-
noLeftIcon:
|
|
273
|
-
noRightIcon:
|
|
272
|
+
noLeftIcon: Pe,
|
|
273
|
+
noRightIcon: $e,
|
|
274
274
|
charCount: Oe
|
|
275
275
|
}, Le = _(function({
|
|
276
276
|
className: i,
|
|
@@ -281,69 +281,69 @@ const pe = {
|
|
|
281
281
|
value: l,
|
|
282
282
|
variant: s,
|
|
283
283
|
severity: a = "primary",
|
|
284
|
-
...
|
|
284
|
+
...p
|
|
285
285
|
}, m) {
|
|
286
|
-
const u = j(() =>
|
|
286
|
+
const u = j(() => N(r, z), [r]), d = x(a), w = e || e === void 0 && p.maxLength !== void 0, h = l !== void 0 ? l.toString() : void 0;
|
|
287
287
|
return /* @__PURE__ */ f(
|
|
288
|
-
|
|
288
|
+
P.Root,
|
|
289
289
|
{
|
|
290
|
-
className:
|
|
290
|
+
className: C({
|
|
291
291
|
[I.accommodateCharCount]: w
|
|
292
292
|
}),
|
|
293
293
|
size: u,
|
|
294
294
|
variant: s,
|
|
295
|
-
color:
|
|
295
|
+
color: d,
|
|
296
296
|
children: [
|
|
297
|
-
/* @__PURE__ */ o(
|
|
297
|
+
/* @__PURE__ */ o(P.Slot, { children: n }),
|
|
298
298
|
/* @__PURE__ */ o(
|
|
299
|
-
|
|
299
|
+
P.Input,
|
|
300
300
|
{
|
|
301
|
-
className:
|
|
301
|
+
className: C(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: d,
|
|
309
|
+
...p
|
|
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(P.Slot, { children: t }),
|
|
313
|
+
w && /* @__PURE__ */ o(V, { as: "p", className: I.charCount, size: "1", color: "gray", children: p.maxLength !== void 0 ? `${h == null ? void 0 : h.length}/${p.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
|
+
}), lo = B.memo(Le), je = _(function({ defaultOpen: i = !1, modal: n = !1, content: t, children: r, ...e }, l) {
|
|
318
|
+
return /* @__PURE__ */ f($.Root, { defaultOpen: i, modal: n, children: [
|
|
319
|
+
/* @__PURE__ */ o($.Trigger, { children: r }),
|
|
320
|
+
/* @__PURE__ */ o($.Content, { ref: l, ...e, children: t($.Close) })
|
|
321
321
|
] });
|
|
322
|
-
}),
|
|
322
|
+
}), ao = 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 p = x(e), m = x("info"), u = n || n === void 0 && (s.maxLength !== void 0 || s.minLength !== void 0), d = r !== void 0 ? r.toString() : "", w = j(() => {
|
|
326
326
|
if (t) {
|
|
327
|
-
let h = t.replace("{current}",
|
|
327
|
+
let h = t.replace("{current}", d.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 d.length;
|
|
331
|
+
}, [t, s.maxLength, s.minLength, d.length]);
|
|
332
332
|
return /* @__PURE__ */ f(ie, { children: [
|
|
333
333
|
/* @__PURE__ */ o(
|
|
334
334
|
ne,
|
|
335
335
|
{
|
|
336
|
-
className:
|
|
336
|
+
className: C("overmap-textarea", i),
|
|
337
337
|
style: { resize: l },
|
|
338
338
|
ref: a,
|
|
339
339
|
value: r,
|
|
340
|
-
color:
|
|
340
|
+
color: p,
|
|
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
|
+
}), uo = v(Me), Ee = _(function({
|
|
347
347
|
className: i,
|
|
348
348
|
items: n,
|
|
349
349
|
orientation: t = "horizontal",
|
|
@@ -352,16 +352,16 @@ const pe = {
|
|
|
352
352
|
severity: l,
|
|
353
353
|
gap: s,
|
|
354
354
|
size: a,
|
|
355
|
-
...
|
|
355
|
+
...p
|
|
356
356
|
}, m) {
|
|
357
357
|
return /* @__PURE__ */ o(
|
|
358
358
|
le,
|
|
359
359
|
{
|
|
360
|
-
className:
|
|
360
|
+
className: C("overmap-toggle-group", i),
|
|
361
361
|
ref: m,
|
|
362
362
|
value: e,
|
|
363
363
|
orientation: t,
|
|
364
|
-
...
|
|
364
|
+
...p,
|
|
365
365
|
children: /* @__PURE__ */ o(
|
|
366
366
|
xe,
|
|
367
367
|
{
|
|
@@ -370,13 +370,13 @@ const pe = {
|
|
|
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, ...d }) => /* @__PURE__ */ q(ae, { asChild: !0, ...d, key: d.value }, /* @__PURE__ */ o(
|
|
374
374
|
M,
|
|
375
375
|
{
|
|
376
|
-
className:
|
|
377
|
-
"aria-label":
|
|
376
|
+
className: C("overmap-toggle-group-button"),
|
|
377
|
+
"aria-label": d.value,
|
|
378
378
|
severity: l,
|
|
379
|
-
variant:
|
|
379
|
+
variant: d.value === e ? "solid" : "soft",
|
|
380
380
|
size: a,
|
|
381
381
|
children: u
|
|
382
382
|
}
|
|
@@ -385,32 +385,32 @@ const pe = {
|
|
|
385
385
|
)
|
|
386
386
|
}
|
|
387
387
|
);
|
|
388
|
-
}),
|
|
388
|
+
}), po = v(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 p = x(r), m = S(
|
|
393
393
|
(u) => {
|
|
394
394
|
!u && l && l();
|
|
395
395
|
},
|
|
396
396
|
[l]
|
|
397
397
|
);
|
|
398
|
-
return /* @__PURE__ */ o(
|
|
398
|
+
return /* @__PURE__ */ o(b.Root, { asChild: !0, ref: a, ...s, onOpenChange: m, children: /* @__PURE__ */ o(
|
|
399
399
|
O.Root,
|
|
400
400
|
{
|
|
401
|
-
className:
|
|
401
|
+
className: C("overmap-toast", E.wrapper),
|
|
402
402
|
variant: "surface",
|
|
403
|
-
color:
|
|
403
|
+
color: p,
|
|
404
404
|
size: e,
|
|
405
405
|
children: /* @__PURE__ */ f(T, { width: "100%", align: "center", gap: "4", justify: "between", children: [
|
|
406
406
|
/* @__PURE__ */ f(T, { align: "center", gap: "4", children: [
|
|
407
407
|
/* @__PURE__ */ o(O.Icon, { children: t || /* @__PURE__ */ o(Y, {}) }),
|
|
408
408
|
/* @__PURE__ */ f(T, { direction: "column", gap: "0", children: [
|
|
409
|
-
/* @__PURE__ */ o(
|
|
410
|
-
/* @__PURE__ */ o(
|
|
409
|
+
/* @__PURE__ */ o(b.Title, { asChild: !0, children: /* @__PURE__ */ o(O.Text, { weight: "bold", children: i }) }),
|
|
410
|
+
/* @__PURE__ */ o(b.Description, { asChild: !0, children: /* @__PURE__ */ o(O.Text, { weight: "light", children: n }) })
|
|
411
411
|
] })
|
|
412
412
|
] }),
|
|
413
|
-
/* @__PURE__ */ o(
|
|
413
|
+
/* @__PURE__ */ o(b.Close, { asChild: !0, children: /* @__PURE__ */ o(
|
|
414
414
|
M,
|
|
415
415
|
{
|
|
416
416
|
className: E.closeButton,
|
|
@@ -424,12 +424,12 @@ const pe = {
|
|
|
424
424
|
] })
|
|
425
425
|
}
|
|
426
426
|
) });
|
|
427
|
-
}), qe =
|
|
427
|
+
}), qe = v(function({
|
|
428
428
|
children: i,
|
|
429
429
|
...n
|
|
430
430
|
}) {
|
|
431
|
-
return /* @__PURE__ */ o(
|
|
432
|
-
}), Ke =
|
|
431
|
+
return /* @__PURE__ */ o(b.Provider, { swipeDirection: "right", swipeThreshold: 75, ...n, children: i });
|
|
432
|
+
}), Ke = v(He), Qe = b.Viewport, Je = H({}), mo = v(function({
|
|
433
433
|
children: i,
|
|
434
434
|
// Use this class to change where the viewport for the toasts should be
|
|
435
435
|
viewportClass: n,
|
|
@@ -440,7 +440,7 @@ const pe = {
|
|
|
440
440
|
}) {
|
|
441
441
|
const [l, s] = L([]), a = S((g) => {
|
|
442
442
|
s((y) => [...y, g]);
|
|
443
|
-
}, []),
|
|
443
|
+
}, []), p = S(
|
|
444
444
|
(g) => {
|
|
445
445
|
a({ severity: "primary", ...g });
|
|
446
446
|
},
|
|
@@ -455,7 +455,7 @@ const pe = {
|
|
|
455
455
|
a({ severity: "danger", ...g });
|
|
456
456
|
},
|
|
457
457
|
[a]
|
|
458
|
-
),
|
|
458
|
+
), d = S(
|
|
459
459
|
(g) => {
|
|
460
460
|
a({ severity: "info", ...g });
|
|
461
461
|
},
|
|
@@ -468,80 +468,92 @@ const pe = {
|
|
|
468
468
|
[l]
|
|
469
469
|
), h = {
|
|
470
470
|
showToast: a,
|
|
471
|
-
showPrimary:
|
|
471
|
+
showPrimary: p,
|
|
472
472
|
showSuccess: m,
|
|
473
473
|
showError: u,
|
|
474
|
-
showInfo:
|
|
474
|
+
showInfo: d
|
|
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
|
-
|
|
481
|
+
}), Ue = "_tokens_552zu_2", We = {
|
|
482
|
+
tokens: Ue
|
|
483
|
+
}, ho = v(
|
|
483
484
|
_((c, i) => {
|
|
484
|
-
const { panelBackground: n = "solid",
|
|
485
|
-
return /* @__PURE__ */ o(
|
|
485
|
+
const { panelBackground: n = "solid", className: t, ...r } = c;
|
|
486
|
+
return /* @__PURE__ */ o(
|
|
487
|
+
re,
|
|
488
|
+
{
|
|
489
|
+
className: C(t, We.tokens),
|
|
490
|
+
panelBackground: n,
|
|
491
|
+
ref: i,
|
|
492
|
+
...r
|
|
493
|
+
}
|
|
494
|
+
);
|
|
486
495
|
})
|
|
487
496
|
);
|
|
488
497
|
export {
|
|
489
|
-
|
|
490
|
-
|
|
498
|
+
_o as AccessibleIcon,
|
|
499
|
+
De as AlertDialog,
|
|
491
500
|
U as AlertDialogContent,
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
501
|
+
io as AlertDialogProvider,
|
|
502
|
+
wo as AspectRatio,
|
|
503
|
+
yo as Avatar,
|
|
504
|
+
no as Badge,
|
|
505
|
+
So as Blockquote,
|
|
506
|
+
To as Box,
|
|
498
507
|
G as Button,
|
|
499
508
|
xe as ButtonGroup,
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
509
|
+
xo as Callout,
|
|
510
|
+
ko as Card,
|
|
511
|
+
bo as Checkbox,
|
|
512
|
+
Do as Code,
|
|
513
|
+
Io as Container,
|
|
514
|
+
Ao as ContextMenu,
|
|
515
|
+
ho as DefaultTheme,
|
|
516
|
+
ro as Dialog,
|
|
517
|
+
Bo as DropdownMenu,
|
|
518
|
+
No as Em,
|
|
519
|
+
Ro as Flex,
|
|
520
|
+
Po as Grid,
|
|
521
|
+
$o as Heading,
|
|
522
|
+
Oo as HoverCard,
|
|
514
523
|
M as IconButton,
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
524
|
+
lo as Input,
|
|
525
|
+
Lo as Inset,
|
|
526
|
+
jo as Kbd,
|
|
527
|
+
zo as Link,
|
|
528
|
+
ao as Popover,
|
|
529
|
+
Go as Portal,
|
|
530
|
+
Mo as Quote,
|
|
531
|
+
Eo as RadioGroup,
|
|
532
|
+
Fo as ScrollArea,
|
|
533
|
+
Vo as Section,
|
|
534
|
+
co as Select,
|
|
535
|
+
Ho as Separator,
|
|
536
|
+
qo as Slider,
|
|
537
|
+
Ko as Slot,
|
|
538
|
+
Qo as Strong,
|
|
539
|
+
Jo as Switch,
|
|
540
|
+
Uo as Table,
|
|
541
|
+
Wo as Tabs,
|
|
542
|
+
Xo as Text,
|
|
543
|
+
uo as TextArea,
|
|
544
|
+
Yo as TextField,
|
|
545
|
+
Zo as Theme,
|
|
537
546
|
Ke as Toast,
|
|
538
547
|
Je as ToastContext,
|
|
539
|
-
|
|
548
|
+
mo as ToastContextProvider,
|
|
540
549
|
qe as ToastProvider,
|
|
541
550
|
Qe as ToastViewport,
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
551
|
+
po as ToggleGroup,
|
|
552
|
+
et as Tooltip,
|
|
553
|
+
ot as VisuallyHidden,
|
|
554
|
+
tt as updateThemeAppearanceClass,
|
|
555
|
+
so as useAlertDialog,
|
|
556
|
+
x as useSeverityColor,
|
|
557
|
+
nt as useThemeContext
|
|
546
558
|
};
|
|
547
559
|
//# sourceMappingURL=blocks.js.map
|