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