@overmap-ai/blocks 0.0.1-alpha.40 → 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 +146 -156
- 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
|
}
|
|
@@ -48,8 +48,8 @@ var K = { exports: {} };
|
|
|
48
48
|
})();
|
|
49
49
|
})(K);
|
|
50
50
|
var de = K.exports;
|
|
51
|
-
const
|
|
52
|
-
function
|
|
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");
|
|
@@ -69,7 +69,7 @@ const pe = {
|
|
|
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 pe = {
|
|
|
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,
|
|
@@ -96,11 +96,11 @@ const pe = {
|
|
|
96
96
|
te,
|
|
97
97
|
{
|
|
98
98
|
ref: a,
|
|
99
|
-
className:
|
|
99
|
+
className: v(i, m, {
|
|
100
100
|
[A.fluid]: n
|
|
101
101
|
}),
|
|
102
102
|
color: d,
|
|
103
|
-
size:
|
|
103
|
+
size: R(t, z),
|
|
104
104
|
type: l,
|
|
105
105
|
...s
|
|
106
106
|
}
|
|
@@ -118,10 +118,10 @@ const pe = {
|
|
|
118
118
|
return /* @__PURE__ */ o(
|
|
119
119
|
F,
|
|
120
120
|
{
|
|
121
|
-
className:
|
|
121
|
+
className: v(i, m, A.default),
|
|
122
122
|
ref: a,
|
|
123
123
|
color: d,
|
|
124
|
-
size:
|
|
124
|
+
size: R(t, z),
|
|
125
125
|
type: l,
|
|
126
126
|
...s,
|
|
127
127
|
children: n
|
|
@@ -129,10 +129,10 @@ const pe = {
|
|
|
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,
|
|
@@ -145,33 +145,33 @@ const pe = {
|
|
|
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
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), d =
|
|
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,7 +180,7 @@ const pe = {
|
|
|
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);
|
|
@@ -188,38 +188,38 @@ const pe = {
|
|
|
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 pe = {
|
|
|
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",
|
|
@@ -243,11 +243,11 @@ const pe = {
|
|
|
243
243
|
id: m,
|
|
244
244
|
...u
|
|
245
245
|
}, p) {
|
|
246
|
-
const w = j(() =>
|
|
247
|
-
return /* @__PURE__ */ q(
|
|
248
|
-
|
|
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,
|
|
@@ -257,20 +257,20 @@ const pe = {
|
|
|
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,
|
|
@@ -283,22 +283,22 @@ const pe = {
|
|
|
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
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
|
}),
|
|
@@ -309,17 +309,17 @@ const pe = {
|
|
|
309
309
|
...d
|
|
310
310
|
}
|
|
311
311
|
),
|
|
312
|
-
/* @__PURE__ */ o(
|
|
312
|
+
/* @__PURE__ */ o($.Slot, { children: t }),
|
|
313
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
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(() => {
|
|
@@ -333,7 +333,7 @@ const pe = {
|
|
|
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,
|
|
@@ -343,7 +343,7 @@ const pe = {
|
|
|
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",
|
|
@@ -357,7 +357,7 @@ const pe = {
|
|
|
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,
|
|
@@ -373,7 +373,7 @@ const pe = {
|
|
|
373
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:
|
|
376
|
+
className: v("overmap-toggle-group-button"),
|
|
377
377
|
"aria-label": p.value,
|
|
378
378
|
severity: l,
|
|
379
379
|
variant: p.value === e ? "solid" : "soft",
|
|
@@ -385,32 +385,32 @@ const pe = {
|
|
|
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 d = x(r), m =
|
|
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
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 pe = {
|
|
|
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 pe = {
|
|
|
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
|
-
}, []), d =
|
|
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
|
-
), p =
|
|
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);
|
|
@@ -478,83 +478,73 @@ const pe = {
|
|
|
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", radius: t = "full",
|
|
486
|
-
return /* @__PURE__ */ o(
|
|
487
|
-
re,
|
|
488
|
-
{
|
|
489
|
-
className: C(r, We.tokens),
|
|
490
|
-
panelBackground: n,
|
|
491
|
-
radius: t,
|
|
492
|
-
ref: i,
|
|
493
|
-
...e
|
|
494
|
-
}
|
|
495
|
-
);
|
|
484
|
+
const { panelBackground: n = "solid", radius: t = "full", ...r } = c;
|
|
485
|
+
return /* @__PURE__ */ o(re, { panelBackground: n, radius: t, ref: i, ...r });
|
|
496
486
|
})
|
|
497
487
|
);
|
|
498
488
|
export {
|
|
499
|
-
|
|
500
|
-
|
|
489
|
+
Co as AccessibleIcon,
|
|
490
|
+
ke as AlertDialog,
|
|
501
491
|
U as AlertDialogContent,
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
492
|
+
no as AlertDialogProvider,
|
|
493
|
+
vo as AspectRatio,
|
|
494
|
+
_o as Avatar,
|
|
495
|
+
oo as Badge,
|
|
496
|
+
wo as Blockquote,
|
|
497
|
+
yo as Box,
|
|
508
498
|
G as Button,
|
|
509
499
|
xe as ButtonGroup,
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
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,
|
|
524
514
|
M as IconButton,
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
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,
|
|
547
537
|
Ke as Toast,
|
|
548
538
|
Je as ToastContext,
|
|
549
|
-
|
|
539
|
+
uo as ToastContextProvider,
|
|
550
540
|
qe as ToastProvider,
|
|
551
541
|
Qe as ToastViewport,
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
542
|
+
ao as ToggleGroup,
|
|
543
|
+
Yo as Tooltip,
|
|
544
|
+
Zo as VisuallyHidden,
|
|
545
|
+
et as updateThemeAppearanceClass,
|
|
546
|
+
ro as useAlertDialog,
|
|
557
547
|
x as useSeverityColor,
|
|
558
|
-
|
|
548
|
+
ot as useThemeContext
|
|
559
549
|
};
|
|
560
550
|
//# sourceMappingURL=blocks.js.map
|
package/dist/blocks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.js","sources":["../node_modules/classnames/index.js","../src/utils.ts","../src/Badge/Badge.tsx","../src/Buttons/constants.ts","../src/constants.ts","../src/Buttons/Button.tsx","../src/Buttons/IconButton.tsx","../src/ButtonGroup/ButtonGroup.tsx","../src/Dialogs/Dialog/DialogContent.tsx","../src/Dialogs/Dialog/Dialog.tsx","../src/Dialogs/AlertDialog/AlertDialogContent.tsx","../src/Dialogs/AlertDialog/AlertDialog.tsx","../src/Dialogs/AlertDialog/context.tsx","../src/Dialogs/AlertDialog/hooks.ts","../src/Select/Select.tsx","../src/Input/Input.tsx","../src/Popover/Popover.tsx","../src/TextArea/TextArea.tsx","../src/ToggleGroup/ToggleGroup.tsx","../src/Toast/Toast.tsx","../src/Toast/ToastContext.tsx","../src/Theme/DefaultTheme.tsx"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import { Responsive, ThemeOptions, useThemeContext } from \"@radix-ui/themes\"\nimport { Severity } from \"typings\"\n\n// applyResponsiveMapping is a helper function used to map the keys of a Radix Responsive type that can be understood\n// by a Radix component or primitive. The point of this is to leverage our own custom prop names and values while still\n// using Radix's built in Responsiveness functionality.\n/**\n * Returns an object with mapped key values or a single mapped value\n * @param value an object or string\n * @param mapping a Record mapping the object values of param value\n */\nexport function applyResponsiveMapping<T extends string, K>(value: Responsive<T>, mapping: Record<T, K>) {\n\tif (typeof value === \"object\") {\n\t\tif (!(\"initial\" in value)) {\n\t\t\t// Responsive objects require an 'initial' property to be set that acts as a default\n\t\t\tthrow new Error(\"Expected initial property to be set in Responsive object\")\n\t\t}\n\t\treturn Object.fromEntries(Object.entries(value).map(([key, _value]) => [key, mapping[_value]]))\n\t} else {\n\t\treturn mapping[value]\n\t}\n}\n\nconst nonThemeSeverityMapping = {\n\tsuccess: \"green\",\n\tdanger: \"red\",\n\tinfo: \"gray\",\n} as const\n\nexport type AccentColor = ThemeOptions[\"accentColor\"]\n\n/** Performs theme-sensitive mapping of a severity to radix color */\nexport const useSeverityColor = (severity: Severity): AccentColor => {\n\tconst theme = useThemeContext()\n\tif (severity === \"primary\") return theme.accentColor\n\n\treturn nonThemeSeverityMapping[severity]\n}\n","import { Badge as RadixBadge } from \"@radix-ui/themes\"\nimport { FC, forwardRef, memo, Ref } from \"react\"\nimport { BadgeProps } from \"./typings.ts\"\nimport classNames from \"classnames\"\nimport { useSeverityColor } from \"../utils.ts\"\n\nconst _Badge = forwardRef(function Badge(\n\t{ className, severity = \"primary\", rounded, color, children, ...rest }: BadgeProps,\n\tref: Ref<HTMLSpanElement>,\n) {\n\tconst severityColor = useSeverityColor(severity)\n\n\treturn (\n\t\t<RadixBadge\n\t\t\tclassName={classNames(\"overmap-badge\", className)}\n\t\t\tref={ref}\n\t\t\tcolor={color ? color : severityColor}\n\t\t\tradius={rounded ? \"full\" : undefined}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</RadixBadge>\n\t)\n})\n\n/** The Badge Component is a user interface element that provides visual feedback, typically displaying a small amount\n * of information. It is commonly used to indicate counts, statuses, or labels in a concise and visually appealing\n * manner. This Badge components wraps the Badge component from Radix-ui found here https://www.radix-ui.com/themes/docs/components/badge */\nexport const Badge: FC<BadgeProps> = memo(_Badge)\n","import { ButtonHoverEffect } from \"./typings.ts\"\nimport styles from \"./Button.module.sass\"\n\nexport const hoverEffectClassNameMapping: Record<ButtonHoverEffect, string | undefined> = {\n\tspin90Clockwise: styles.hoverSpin90Clockwise,\n\tspin180Clockwise: styles.hoverSpin180Clockwise,\n\tspin360Clockwise: styles.hoverSpin360Clockwise,\n}\n","import { Size } from \"./typings.ts\"\n\n// Mappings\nexport const SizeMapping: Record<Size, \"1\" | \"2\" | \"3\"> = {\n\tsmall: \"1\",\n\tmedium: \"2\",\n\tlarge: \"3\",\n}\n","import React, { FC, forwardRef } from \"react\"\nimport { ButtonProps } from \"./typings.ts\"\nimport styles from \"./Button.module.sass\"\nimport classNames from \"classnames\"\nimport { Button as RadixButton } from \"@radix-ui/themes\"\nimport { hoverEffectClassNameMapping } from \"./constants.ts\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\n\nconst _Button = forwardRef(function Button(\n\t{ className, fluid, size = \"medium\", severity = \"primary\", hoverEffects, type = \"button\", ...rest }: ButtonProps,\n\tref: React.Ref<HTMLButtonElement>,\n) {\n\tconst color = useSeverityColor(severity)\n\tconst hoverEffectClasses =\n\t\thoverEffects?.map((hoverEffect) => {\n\t\t\treturn hoverEffectClassNameMapping[hoverEffect]\n\t\t}) || []\n\n\treturn (\n\t\t<RadixButton\n\t\t\tref={ref}\n\t\t\tclassName={classNames(className, hoverEffectClasses, {\n\t\t\t\t[styles.fluid!]: fluid,\n\t\t\t})}\n\t\t\tcolor={color}\n\t\t\tsize={applyResponsiveMapping(size, SizeMapping)}\n\t\t\ttype={type}\n\t\t\t{...rest}\n\t\t/>\n\t)\n})\n\n// using FC so storybook correctly displays the component props\nconst Button: FC<ButtonProps> = React.memo(_Button)\n\nexport default Button\n","import React, { FC, forwardRef } from \"react\"\nimport { ButtonProps } from \"./typings.ts\"\nimport classNames from \"classnames\"\nimport { IconButton as RadixIconButton } from \"@radix-ui/themes\"\nimport { hoverEffectClassNameMapping } from \"./constants.ts\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\n\nimport styles from \"./Button.module.sass\"\n\ninterface IconButtonProps extends Omit<ButtonProps, \"fluid\"> {\n\t\"aria-label\": string\n}\n\nconst _Button = forwardRef(function Button(\n\t{\n\t\tclassName,\n\t\tchildren,\n\t\tsize = \"medium\",\n\t\tseverity = \"primary\",\n\t\thoverEffects,\n\t\ttype = \"button\",\n\t\t...rest\n\t}: IconButtonProps,\n\tref: React.Ref<HTMLButtonElement>,\n) {\n\tconst color = useSeverityColor(severity)\n\tconst hoverEffectClasses =\n\t\thoverEffects?.map((hoverEffect) => {\n\t\t\treturn hoverEffectClassNameMapping[hoverEffect]\n\t\t}) || []\n\n\treturn (\n\t\t<RadixIconButton\n\t\t\tclassName={classNames(className, hoverEffectClasses, styles.default)}\n\t\t\tref={ref}\n\t\t\tcolor={color}\n\t\t\tsize={applyResponsiveMapping(size, SizeMapping)}\n\t\t\ttype={type}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</RadixIconButton>\n\t)\n})\n\n// using FC so storybook correctly displays the component props\n/** The `IconButton` is a `Button` variant specifically designed for single icons. */\nconst IconButton: FC<IconButtonProps> = React.memo(_Button)\n\nexport default IconButton\n","import { FC, forwardRef, memo, Ref, cloneElement } from \"react\"\nimport { Flex } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { ButtonGroupProps } from \"./typings.ts\"\n\nimport styles from \"./ButtonGroup.module.sass\"\nimport { Size } from \"../typings.ts\"\nimport { applyResponsiveMapping } from \"../utils.ts\"\nimport { Button, IconButton } from \"../Buttons\"\n\nconst GhostVariantSizeToGapMapping: Record<\"row\" | \"column\", Record<Size, ButtonGroupProps[\"gap\"]>> = {\n\trow: { small: \"4\", medium: \"4\", large: \"5\" },\n\tcolumn: { small: \"2\", medium: \"3\", large: \"4\" },\n}\n\nconst _ButtonGroup = forwardRef(function ButtonGroup(\n\t{\n\t\tclassName,\n\t\tmerged = false,\n\t\tchildren,\n\t\tgap = \"2\",\n\t\tdirection = \"row\",\n\t\tseverity = \"primary\",\n\t\tsize = \"medium\",\n\t\tvariant = \"solid\",\n\t\thoverEffects,\n\t\t...rest\n\t}: ButtonGroupProps,\n\tref: Ref<HTMLDivElement>,\n) {\n\treturn (\n\t\t<Flex\n\t\t\tclassName={classNames(\"overmap-button-group\", className, {\n\t\t\t\t[styles.merged!]: merged,\n\t\t\t})}\n\t\t\tref={ref}\n\t\t\tgap={\n\t\t\t\tmerged\n\t\t\t\t\t? variant === \"ghost\"\n\t\t\t\t\t\t? applyResponsiveMapping(size, GhostVariantSizeToGapMapping[direction])\n\t\t\t\t\t\t: \"0\"\n\t\t\t\t\t: gap\n\t\t\t}\n\t\t\tdirection={direction}\n\t\t\tdata-direction={direction}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children.map((child, index) => {\n\t\t\t\tif (child.type === Button || child.type === IconButton) {\n\t\t\t\t\treturn cloneElement(child, { key: index, size, severity, variant, hoverEffects })\n\t\t\t\t} else {\n\t\t\t\t\treturn child\n\t\t\t\t}\n\t\t\t})}\n\t\t</Flex>\n\t)\n})\n\n/** The ButtonGroup Component is a user interface element that groups multiple buttons together for improved user\n * interaction and visual clarity. It is commonly used to present related actions or options in a compact and organized\n * manner. The ButtonGroup supports all props of the RadixUI Flex layout component besides MarginProps,\n * further documentation for the Flex layout component can be found here https://www.radix-ui.com/themes/docs/components/flex */\nexport const ButtonGroup: FC<ButtonGroupProps> = memo(_ButtonGroup)\n","import { memo } from \"react\"\nimport { Dialog, Flex, IconButton } from \"@radix-ui/themes\"\nimport { Cross1Icon } from \"@radix-ui/react-icons\"\nimport { DialogContentProps } from \"./typings\"\n\nexport const DialogContent = memo(function DialogContent(props: DialogContentProps) {\n\tconst { title, description, content, closeDialog } = props\n\treturn (\n\t\t<Flex direction=\"column\" gap=\"2\">\n\t\t\t<Flex direction=\"column\" gap=\"1\">\n\t\t\t\t<Flex justify=\"between\">\n\t\t\t\t\t<Dialog.Title mb=\"0\">{title}</Dialog.Title>\n\t\t\t\t\t<Dialog.Close>\n\t\t\t\t\t\t<IconButton color=\"gray\" variant=\"ghost\" aria-label=\"Close\">\n\t\t\t\t\t\t\t<Cross1Icon />\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t</Dialog.Close>\n\t\t\t\t</Flex>\n\t\t\t\t<Dialog.Description>{description}</Dialog.Description>\n\t\t\t</Flex>\n\t\t\t{content(closeDialog)}\n\t\t</Flex>\n\t)\n})\n","import { memo, useState, useCallback } from \"react\"\nimport { Dialog as RadixDialog } from \"@radix-ui/themes\"\nimport { DialogContent } from \"./DialogContent\"\nimport { CloseDialogWithOptions, DialogProps } from \"./typings\"\n\n/**\n * Display or collect information in a modal. Unlike the `AlertDialog`, the `Dialog`'s can be nested\n * and close when clicking outside of the dialog content.\n */\nexport const Dialog = memo(function Dialog(props: DialogProps) {\n\tconst { children, size, onOpen, onCloseInterrupt, ...contentProps } = props\n\tconst [open, setOpen] = useState(false)\n\n\tconst handleOpenChange = useCallback(\n\t\t(next: boolean) => {\n\t\t\tif (next && onOpen) {\n\t\t\t\tonOpen()\n\t\t\t} else if (!next && onCloseInterrupt) {\n\t\t\t\t// closes the dialog, bypassing the checks in `handleOpenChange`\n\t\t\t\tconst confirmClose = () => setOpen(false)\n\n\t\t\t\t// if onCloseInterrupt is passed, bypass the standard close behavior and require\n\t\t\t\t// the passed `confirmClose` to close the dialog\n\t\t\t\treturn onCloseInterrupt(confirmClose)\n\t\t\t}\n\n\t\t\tsetOpen(next)\n\t\t},\n\t\t[onOpen, onCloseInterrupt],\n\t)\n\n\tconst closeDialog = useCallback<CloseDialogWithOptions>(\n\t\t(options) => {\n\t\t\tif (options?.force) {\n\t\t\t\t// bypass the checks in the `handleOpenChange` function\n\t\t\t\treturn setOpen(false)\n\t\t\t}\n\n\t\t\thandleOpenChange(false)\n\t\t},\n\t\t[handleOpenChange],\n\t)\n\n\treturn (\n\t\t<RadixDialog.Root open={open} onOpenChange={handleOpenChange}>\n\t\t\t<RadixDialog.Content size={size}>\n\t\t\t\t<DialogContent closeDialog={closeDialog} {...contentProps} />\n\t\t\t</RadixDialog.Content>\n\n\t\t\t{children(RadixDialog.Trigger)}\n\t\t</RadixDialog.Root>\n\t)\n})\n","import { AlertDialog, Flex } from \"@radix-ui/themes\"\nimport { AlertDialogStandardContent } from \"./typings\"\nimport { Button } from \"../../Buttons\"\n\n// remove the margin-bottom from the title so that Flex works as expected\nexport const Title: typeof AlertDialog.Title = ((props) => (\n\t<AlertDialog.Title mb=\"0\" {...props} />\n)) as typeof AlertDialog.Title\n\nexport const AlertDialogContent = (props: AlertDialogStandardContent) => {\n\tconst { title, description, actionText = \"Confirm\", cancelText = \"Cancel\", onAction, onCancel, severity } = props\n\treturn (\n\t\t<Flex direction=\"column\" gap=\"2\">\n\t\t\t<Flex direction=\"column\" gap=\"1\">\n\t\t\t\t<Title>{title}</Title>\n\t\t\t\t<AlertDialog.Description>{description}</AlertDialog.Description>\n\t\t\t</Flex>\n\n\t\t\t<Flex gap=\"3\" mt=\"4\" justify=\"end\">\n\t\t\t\t<AlertDialog.Cancel>\n\t\t\t\t\t<Button variant=\"soft\" severity=\"info\" onClick={onCancel}>\n\t\t\t\t\t\t{cancelText}\n\t\t\t\t\t</Button>\n\t\t\t\t</AlertDialog.Cancel>\n\t\t\t\t<AlertDialog.Action>\n\t\t\t\t\t<Button variant=\"solid\" severity={severity} onClick={onAction}>\n\t\t\t\t\t\t{actionText}\n\t\t\t\t\t</Button>\n\t\t\t\t</AlertDialog.Action>\n\t\t\t</Flex>\n\t\t</Flex>\n\t)\n}\n","import { memo, useMemo } from \"react\"\nimport { AlertDialog as RadixAlertDialog } from \"@radix-ui/themes\"\nimport { AlertDialogContentHelpers, AlertDialogProps } from \"./typings\"\nimport { AlertDialogContent, Title } from \"./AlertDialogContent\"\n\n/**\n * The AlertDialog is used to confirm an action or prompt the user for a decision.\n * Unlike the Dialog, the AlertDialog is not dismissible by clicking outside of the dialog, nor can it be nested.\n *\n * To use, place the `AlertDialogProvider` at the root of your app and use the `useAlertDialog` hook to open the dialog.\n *\n * To set the content of the dialog, use the `content` prop or pass values for the `title`, `description`, and `onAction` props.\n */\nexport const AlertDialog = memo(function AlertDialog(props: AlertDialogProps) {\n\tconst { open, setOpen, children, ...contentProps } = props\n\n\tconst helpers: AlertDialogContentHelpers = useMemo(() => {\n\t\treturn {\n\t\t\tclose: () => setOpen(false),\n\t\t\tTitle,\n\t\t\tDescription: RadixAlertDialog.Description,\n\t\t}\n\t}, [setOpen])\n\n\treturn (\n\t\t<RadixAlertDialog.Root open={open} onOpenChange={setOpen}>\n\t\t\t<RadixAlertDialog.Content>\n\t\t\t\t{\"content\" in contentProps ? contentProps.content(helpers) : <AlertDialogContent {...contentProps} />}\n\t\t\t</RadixAlertDialog.Content>\n\t\t\t{children}\n\t\t</RadixAlertDialog.Root>\n\t)\n})\n","import { createContext, memo, useState, useCallback } from \"react\"\nimport { AlertDialogContextType, AlertDialogOptions } from \"./typings\"\nimport { AlertDialog } from \"./AlertDialog\"\n\ninterface AlertDialogProviderProps {\n\tchildren: React.ReactNode\n}\n\nexport const AlertDialogContent = createContext<AlertDialogContextType>(() => {\n\tthrow new Error(\"No AlertDialogProvider found\")\n})\n\nconst initialState: AlertDialogOptions = {\n\tcontent: () => null,\n}\n\nexport const AlertDialogProvider = memo(function AlertDialogProvider({ children }: AlertDialogProviderProps) {\n\tconst [open, setOpen] = useState(false)\n\tconst [state, setState] = useState<AlertDialogOptions>(initialState)\n\n\tconst openDialog = useCallback<AlertDialogContextType>(\n\t\t(options) => {\n\t\t\tif (open) throw new Error(\"AlertDialog is already open\")\n\n\t\t\tsetState(options)\n\t\t\tsetOpen(true)\n\t\t},\n\t\t[open],\n\t)\n\n\treturn (\n\t\t<AlertDialog open={open} setOpen={setOpen} {...state}>\n\t\t\t<AlertDialogContent.Provider value={openDialog}>{children}</AlertDialogContent.Provider>\n\t\t</AlertDialog>\n\t)\n})\n","import { useContext } from \"react\"\nimport { AlertDialogContent } from \"./context\"\n\nexport const useAlertDialog = () => {\n\treturn useContext(AlertDialogContent)\n}\n","import React, { FC, forwardRef, useMemo } from \"react\"\nimport { Select as RadixSelect } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\nimport { SelectItemProps, SelectProps } from \"./typings.ts\"\n\nimport styles from \"./Select.module.sass\"\n\nconst _Select = forwardRef(function Select(\n\t{\n\t\tclassName,\n\t\tfluid,\n\t\tsize = \"medium\",\n\t\tvariant = \"surface\",\n\t\tseverity = \"primary\",\n\t\tplaceholder = \"Select\",\n\t\tside,\n\t\titems = [],\n\t\tvalue,\n\t\tid,\n\t\t...rest\n\t}: SelectProps,\n\tref: React.Ref<HTMLButtonElement>,\n) {\n\tconst mappedSize = useMemo(() => {\n\t\treturn applyResponsiveMapping(size, SizeMapping)\n\t}, [size])\n\tconst color = useSeverityColor(severity)\n\n\t// TODO: extend functionality to support grouping of items\n\t// TODO: remove key change based on value once placeholder issue it fixed in radix-ui/themes\n\treturn (\n\t\t<RadixSelect.Root size={mappedSize} {...rest} key={value === undefined ? 1 : 0} value={value}>\n\t\t\t<RadixSelect.Trigger\n\t\t\t\tclassName={classNames(className, {\n\t\t\t\t\t[styles.fluid!]: fluid,\n\t\t\t\t})}\n\t\t\t\tid={id}\n\t\t\t\tref={ref}\n\t\t\t\tvariant={variant}\n\t\t\t\tplaceholder={placeholder}\n\t\t\t\tcolor={color}\n\t\t\t/>\n\t\t\t<RadixSelect.Content\n\t\t\t\tside={side}\n\t\t\t\tposition=\"popper\"\n\t\t\t\tvariant={variant !== \"surface\" ? \"soft\" : \"solid\"}\n\t\t\t\tcolor={color}\n\t\t\t>\n\t\t\t\t{items.map(({ label, value, ...rest }: SelectItemProps) => (\n\t\t\t\t\t<RadixSelect.Item key={value} value={value} {...rest}>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</RadixSelect.Item>\n\t\t\t\t))}\n\t\t\t</RadixSelect.Content>\n\t\t</RadixSelect.Root>\n\t)\n})\nexport const Select: FC<SelectProps> = React.memo(_Select)\n","import React, { FC, forwardRef, useMemo } from \"react\"\nimport { Text, TextField as RadixTextField } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\nimport { InputProps } from \"./typings.ts\"\n\nimport styles from \"./Input.module.sass\"\n\nconst _Input = forwardRef(function Input(\n\t{\n\t\tclassName,\n\t\tleftIcon,\n\t\trightIcon,\n\t\tsize = \"medium\",\n\t\tshowInputLength,\n\t\tvalue,\n\t\tvariant,\n\t\tseverity = \"primary\",\n\t\t...rest\n\t}: InputProps,\n\tref: React.Ref<HTMLInputElement>,\n) {\n\tconst computedSize = useMemo(() => {\n\t\treturn applyResponsiveMapping(size, SizeMapping)\n\t}, [size])\n\n\tconst color = useSeverityColor(severity)\n\n\tconst displayInputLength = showInputLength || (showInputLength === undefined && rest.maxLength !== undefined)\n\tconst valueAsString = value !== undefined ? value.toString() : undefined\n\n\treturn (\n\t\t<RadixTextField.Root\n\t\t\tclassName={classNames({\n\t\t\t\t[styles.accommodateCharCount!]: displayInputLength,\n\t\t\t})}\n\t\t\tsize={computedSize}\n\t\t\tvariant={variant}\n\t\t\tcolor={color}\n\t\t>\n\t\t\t<RadixTextField.Slot>{leftIcon}</RadixTextField.Slot>\n\t\t\t<RadixTextField.Input\n\t\t\t\tclassName={classNames(styles.default, className, {\n\t\t\t\t\t[styles.noLeftIcon!]: !leftIcon,\n\t\t\t\t\t[styles.noRightIcon!]: !rightIcon,\n\t\t\t\t})}\n\t\t\t\tref={ref}\n\t\t\t\tsize={computedSize}\n\t\t\t\tvariant={variant}\n\t\t\t\tcolor={color}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t\t<RadixTextField.Slot>{rightIcon}</RadixTextField.Slot>\n\t\t\t{displayInputLength && (\n\t\t\t\t<Text as=\"p\" className={styles.charCount} size=\"1\" color=\"gray\">\n\t\t\t\t\t{rest.maxLength !== undefined\n\t\t\t\t\t\t? `${valueAsString?.length}/${rest.maxLength}`\n\t\t\t\t\t\t: `${valueAsString?.length}`}\n\t\t\t\t</Text>\n\t\t\t)}\n\t\t</RadixTextField.Root>\n\t)\n})\nexport const Input: FC<InputProps> = React.memo(_Input)\n","import React, { forwardRef, FC } from \"react\"\nimport { Popover as RadixPopover } from \"@radix-ui/themes\"\nimport { PopoverProps } from \"./typings.ts\"\n\nconst _Popover = forwardRef(function Popover(\n\t{ defaultOpen = false, modal = false, content, children, ...rest }: PopoverProps,\n\tref: React.Ref<HTMLDivElement>,\n) {\n\treturn (\n\t\t<RadixPopover.Root defaultOpen={defaultOpen} modal={modal}>\n\t\t\t<RadixPopover.Trigger>{children}</RadixPopover.Trigger>\n\t\t\t<RadixPopover.Content ref={ref} {...rest}>\n\t\t\t\t{content(RadixPopover.Close)}\n\t\t\t</RadixPopover.Content>\n\t\t</RadixPopover.Root>\n\t)\n})\nexport const Popover: FC<PopoverProps> = React.memo(_Popover)\n","import { FC, forwardRef, memo, Ref, useMemo } from \"react\"\nimport { Text, TextArea as RadixTextArea } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { TextAreaProps } from \"./typings.ts\"\n\nimport styles from \"./Textarea.module.sass\"\nimport { useSeverityColor } from \"../utils.ts\"\n\nconst _TextArea = forwardRef(function TextArea(\n\t{ className, showInputLength, inputLengthTemplate, value, severity = \"primary\", resize, ...rest }: TextAreaProps,\n\tref: Ref<HTMLTextAreaElement>,\n) {\n\tconst severityColor = useSeverityColor(severity)\n\tconst infoColor = useSeverityColor(\"info\")\n\n\tconst displayInputLength =\n\t\tshowInputLength ||\n\t\t(showInputLength === undefined && (rest.maxLength !== undefined || rest.minLength !== undefined))\n\tconst valueAsString = value !== undefined ? value.toString() : \"\"\n\n\tconst displayInputLengthValue = useMemo(() => {\n\t\tif (inputLengthTemplate) {\n\t\t\tlet template = inputLengthTemplate.replace(\"{current}\", valueAsString.length.toString())\n\t\t\tif (rest.minLength !== undefined) {\n\t\t\t\ttemplate = template.replace(\"{min}\", rest.minLength.toString())\n\t\t\t}\n\t\t\tif (rest.maxLength !== undefined) {\n\t\t\t\ttemplate = template.replace(\"{max}\", rest.maxLength.toString())\n\t\t\t}\n\t\t\treturn template\n\t\t}\n\t\treturn valueAsString.length\n\t}, [inputLengthTemplate, rest.maxLength, rest.minLength, valueAsString.length])\n\n\treturn (\n\t\t<>\n\t\t\t<RadixTextArea\n\t\t\t\tclassName={classNames(\"overmap-textarea\", className)}\n\t\t\t\tstyle={{ resize: resize }}\n\t\t\t\tref={ref}\n\t\t\t\tvalue={value}\n\t\t\t\tcolor={severityColor}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t\t{displayInputLength && (\n\t\t\t\t<Text as=\"p\" className={styles.charCount} color={infoColor} align=\"right\">\n\t\t\t\t\t{displayInputLengthValue}\n\t\t\t\t</Text>\n\t\t\t)}\n\t\t</>\n\t)\n})\n\n/** The TextArea Component is a user interface element that allows users to input and edit multi-line text.\n It is commonly used in forms, chat applications, and other scenarios where longer text inputs are required.\n This TextArea is a wrapper of the RadixUI TextArea component found here https://www.radix-ui.com/themes/docs/components/text-area.\n */\nexport const TextArea: FC<TextAreaProps> = memo(_TextArea)\n","import { FC, forwardRef, memo, Ref } from \"react\"\nimport { Item, Root } from \"@radix-ui/react-toggle-group\"\nimport { ToggleGroupItemProps, ToggleGroupSingleProps } from \"./typings.ts\"\nimport { IconButton } from \"../Buttons\"\nimport classNames from \"classnames\"\nimport { ButtonGroup } from \"../ButtonGroup\"\n\nconst _ToggleGroup = forwardRef(function ToggleGroup(\n\t{\n\t\tclassName,\n\t\titems,\n\t\torientation = \"horizontal\",\n\t\tmerged = true,\n\t\tvalue,\n\t\tseverity,\n\t\tgap,\n\t\tsize,\n\t\t...rest\n\t}: ToggleGroupSingleProps,\n\tref: Ref<HTMLDivElement>,\n) {\n\treturn (\n\t\t<Root\n\t\t\tclassName={classNames(\"overmap-toggle-group\", className)}\n\t\t\tref={ref}\n\t\t\tvalue={value}\n\t\t\torientation={orientation}\n\t\t\t{...rest}\n\t\t>\n\t\t\t<ButtonGroup\n\t\t\t\twidth=\"min-content\"\n\t\t\t\theight=\"min-content\"\n\t\t\t\tmerged={merged}\n\t\t\t\tdirection={orientation === \"vertical\" ? \"column\" : \"row\"}\n\t\t\t\tgap={gap}\n\t\t\t>\n\t\t\t\t{items.map(({ children, ...rest }: ToggleGroupItemProps) => (\n\t\t\t\t\t<Item asChild {...rest} key={rest.value}>\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\tclassName={classNames(\"overmap-toggle-group-button\")}\n\t\t\t\t\t\t\taria-label={rest.value}\n\t\t\t\t\t\t\tseverity={severity}\n\t\t\t\t\t\t\tvariant={rest.value === value ? \"solid\" : \"soft\"}\n\t\t\t\t\t\t\tsize={size}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t</Item>\n\t\t\t\t))}\n\t\t\t</ButtonGroup>\n\t\t</Root>\n\t)\n})\n\n/** The Toggle Group Component is a user interface element that allows users to select a single option from a set of\n * mutually exclusive choices. It is commonly used in situations where users need to make a single selection from a\n * predefined list of options. This component is built using the ButtonGroup and IconButton components in combination\n * with the Radix Toggle Group primitive found here https://www.radix-ui.com/primitives/docs/components/toggle-group */\nexport const ToggleGroup: FC<ToggleGroupSingleProps> = memo(_ToggleGroup)\n","import { FC, forwardRef, memo, Ref, useCallback } from \"react\"\nimport * as RadixToast from \"@radix-ui/react-toast\"\nimport { Callout, Flex } from \"@radix-ui/themes\"\nimport { Cross2Icon, InfoCircledIcon } from \"@radix-ui/react-icons\"\nimport classNames from \"classnames\"\nimport { IconButton } from \"../Buttons\"\nimport { ToastProps, ToastProviderProps } from \"./typings.ts\"\nimport { useSeverityColor } from \"../utils.ts\"\n\nimport styles from \"./Toast.module.sass\"\n\nconst _Toast = forwardRef(function Toast(\n\t{ title, description, icon, severity = \"primary\", size, onClose, ...rest }: ToastProps,\n\tref: Ref<HTMLLIElement>,\n) {\n\tconst color = useSeverityColor(severity)\n\tconst handleOpenChange = useCallback(\n\t\t(open: boolean) => {\n\t\t\tif (!open && onClose) onClose()\n\t\t},\n\t\t[onClose],\n\t)\n\n\treturn (\n\t\t<RadixToast.Root asChild ref={ref} {...rest} onOpenChange={handleOpenChange}>\n\t\t\t<Callout.Root\n\t\t\t\tclassName={classNames(\"overmap-toast\", styles.wrapper)}\n\t\t\t\tvariant=\"surface\"\n\t\t\t\tcolor={color}\n\t\t\t\tsize={size}\n\t\t\t>\n\t\t\t\t<Flex width=\"100%\" align=\"center\" gap=\"4\" justify=\"between\">\n\t\t\t\t\t<Flex align=\"center\" gap=\"4\">\n\t\t\t\t\t\t<Callout.Icon>{icon || <InfoCircledIcon />}</Callout.Icon>\n\t\t\t\t\t\t<Flex direction=\"column\" gap=\"0\">\n\t\t\t\t\t\t\t<RadixToast.Title asChild>\n\t\t\t\t\t\t\t\t<Callout.Text weight=\"bold\">{title}</Callout.Text>\n\t\t\t\t\t\t\t</RadixToast.Title>\n\t\t\t\t\t\t\t<RadixToast.Description asChild>\n\t\t\t\t\t\t\t\t<Callout.Text weight=\"light\">{description}</Callout.Text>\n\t\t\t\t\t\t\t</RadixToast.Description>\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</Flex>\n\t\t\t\t\t<RadixToast.Close asChild>\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\tclassName={styles.closeButton}\n\t\t\t\t\t\t\taria-label=\"Close\"\n\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tseverity={severity}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Cross2Icon />\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t</RadixToast.Close>\n\t\t\t\t</Flex>\n\t\t\t</Callout.Root>\n\t\t</RadixToast.Root>\n\t)\n})\n\nexport const ToastProvider: FC<ToastProviderProps> = memo(function ToastProvider({\n\tchildren,\n\t...rest\n}: ToastProviderProps) {\n\treturn (\n\t\t<RadixToast.Provider swipeDirection=\"right\" swipeThreshold={75} {...rest}>\n\t\t\t{children}\n\t\t</RadixToast.Provider>\n\t)\n})\n\nexport const Toast: FC<ToastProps> = memo(_Toast)\nexport const ToastViewport: FC<RadixToast.ToastViewportProps> = RadixToast.Viewport\n","import { memo, createContext, useState, useCallback, FC } from \"react\"\nimport { IToastContext, SimpleToastMessage, ToastContextProviderProps, ToastProps } from \"./typings.ts\"\nimport { Toast, ToastProvider, ToastViewport } from \"./Toast.tsx\"\n\nexport const ToastContext = createContext({} as IToastContext)\n\nexport const ToastContextProvider: FC<ToastContextProviderProps> = memo(function ToastContextProvider({\n\tchildren,\n\t// Use this class to change where the viewport for the toasts should be\n\tviewportClass,\n\thotkey,\n\t// Default duration value for all Toasts\n\tduration = 10000,\n\t...rest\n}: ToastContextProviderProps) {\n\tconst [toasts, setToasts] = useState<ToastProps[]>([])\n\n\tconst showToast = useCallback((toastProps: ToastProps) => {\n\t\tsetToasts((prevToasts) => [...prevToasts, toastProps])\n\t}, [])\n\n\tconst showPrimary = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"primary\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst showSuccess = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"success\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst showError = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"danger\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst showInfo = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"info\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst deleteToastAtIndex = useCallback(\n\t\t(index: number) => {\n\t\t\tconst tempToasts = [...toasts]\n\t\t\ttempToasts.splice(index, 1)\n\t\t\tsetToasts(() => tempToasts)\n\t\t},\n\t\t[toasts],\n\t)\n\n\tconst toastContextValue = {\n\t\tshowToast,\n\t\tshowPrimary,\n\t\tshowSuccess,\n\t\tshowError,\n\t\tshowInfo,\n\t}\n\n\treturn (\n\t\t<ToastContext.Provider value={toastContextValue}>\n\t\t\t<ToastProvider duration={duration} {...rest}>\n\t\t\t\t<ToastViewport className={viewportClass} hotkey={hotkey} />\n\t\t\t\t{toasts.map((toastProps, index) => (\n\t\t\t\t\t<Toast key={index} {...toastProps} onClose={() => deleteToastAtIndex(index)} />\n\t\t\t\t))}\n\t\t\t\t{children}\n\t\t\t</ToastProvider>\n\t\t</ToastContext.Provider>\n\t)\n})\n","import { Theme } from \"@radix-ui/themes\"\nimport { ComponentProps, FC, forwardRef, memo } from \"react\"\n// css file contains updates to the default radix tokens\nimport styles from \"./DefaultTheme.module.sass\"\nimport classNames from \"classnames\"\n\nexport type DefaultThemeProps = ComponentProps<typeof Theme>\n\nexport const DefaultTheme: FC<DefaultThemeProps> = memo(\n\tforwardRef<HTMLDivElement, DefaultThemeProps>((props, ref) => {\n\t\tconst { panelBackground = \"solid\", radius = \"full\", className, ...rest } = props\n\t\treturn (\n\t\t\t<Theme\n\t\t\t\tclassName={classNames(className, styles.tokens)}\n\t\t\t\tpanelBackground={panelBackground}\n\t\t\t\tradius={radius}\n\t\t\t\tref={ref}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t)\n\t}),\n)\n"],"names":["hasOwn","classNames","classes","i","arg","argType","inner","key","module","applyResponsiveMapping","value","mapping","_value","nonThemeSeverityMapping","useSeverityColor","severity","theme","useThemeContext","_Badge","forwardRef","className","rounded","color","children","rest","ref","severityColor","jsx","RadixBadge","Badge","memo","hoverEffectClassNameMapping","styles","SizeMapping","_Button","fluid","size","hoverEffects","type","hoverEffectClasses","hoverEffect","RadixButton","Button","React","RadixIconButton","IconButton","GhostVariantSizeToGapMapping","_ButtonGroup","merged","gap","direction","variant","Flex","child","index","cloneElement","ButtonGroup","DialogContent","props","title","description","content","closeDialog","jsxs","Dialog","Cross1Icon","onOpen","onCloseInterrupt","contentProps","open","setOpen","useState","handleOpenChange","useCallback","next","options","RadixDialog","Title","AlertDialog","AlertDialogContent","actionText","cancelText","onAction","onCancel","helpers","useMemo","RadixAlertDialog","createContext","initialState","AlertDialogProvider","state","setState","openDialog","useAlertDialog","useContext","_Select","placeholder","side","items","id","mappedSize","createElement","RadixSelect","label","Select","_Input","leftIcon","rightIcon","showInputLength","computedSize","displayInputLength","valueAsString","RadixTextField","Text","Input","_Popover","defaultOpen","modal","RadixPopover","Popover","_TextArea","inputLengthTemplate","resize","infoColor","displayInputLengthValue","template","Fragment","RadixTextArea","TextArea","_ToggleGroup","orientation","Root","Item","ToggleGroup","_Toast","icon","onClose","RadixToast","Callout","InfoCircledIcon","Cross2Icon","ToastProvider","Toast","ToastViewport","ToastContext","ToastContextProvider","viewportClass","hotkey","duration","toasts","setToasts","showToast","toastProps","prevToasts","showPrimary","simpleMessage","showSuccess","showError","showInfo","deleteToastAtIndex","tempToasts","toastContextValue","DefaultTheme","panelBackground","radius","Theme"],"mappings":";;;;;;;;;;;;;;;;;;;;AAOA,GAAC,WAAY;AAGZ,QAAIA,IAAS,CAAE,EAAC;AAGhB,aAASC,IAAa;AAGrB,eAFIC,IAAU,CAAA,GAELC,IAAI,GAAGA,IAAI,UAAU,QAAQA,KAAK;AAC1C,YAAIC,IAAM,UAAUD,CAAC;AACrB,YAAKC,GAEL;AAAA,cAAIC,IAAU,OAAOD;AAErB,cAAIC,MAAY,YAAYA,MAAY;AACvC,YAAAH,EAAQ,KAAKE,CAAG;AAAA,mBACN,MAAM,QAAQA,CAAG;AAC3B,gBAAIA,EAAI,QAAQ;AACf,kBAAIE,IAAQL,EAAW,MAAM,MAAMG,CAAG;AACtC,cAAIE,KACHJ,EAAQ,KAAKI,CAAK;AAAA,YAEnB;AAAA,qBACSD,MAAY,UAAU;AAChC,gBAAID,EAAI,aAAa,OAAO,UAAU,YAAY,CAACA,EAAI,SAAS,SAAQ,EAAG,SAAS,eAAe,GAAG;AACrG,cAAAF,EAAQ,KAAKE,EAAI,SAAU,CAAA;AAC3B;AAAA,YACA;AAED,qBAASG,KAAOH;AACf,cAAIJ,EAAO,KAAKI,GAAKG,CAAG,KAAKH,EAAIG,CAAG,KACnCL,EAAQ,KAAKK,CAAG;AAAA,UAGlB;AAAA;AAAA,MACD;AAED,aAAOL,EAAQ,KAAK,GAAG;AAAA,IACvB;AAED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C;;GCrEY2I,KAAsCpI;AAAA,EAClDX,EAA8C,CAACuC,GAAOjC,MAAQ;AACvD,UAAA,EAAE,iBAAA0I,IAAkB,SAAS,QAAAC,IAAS,QAAQ,WAAAhJ,GAAW,GAAGI,EAAS,IAAAkC;AAE1E,WAAA,gBAAA/B;AAAA,MAAC0I;AAAA,MAAA;AAAA,QACA,WAAWpK,EAAWmB,GAAWY,GAAO,MAAM;AAAA,QAC9C,iBAAAmI;AAAA,QACA,QAAAC;AAAA,QACA,KAAA3I;AAAA,QACC,GAAGD;AAAA,MAAA;AAAA,IAAA;AAAA,EACL,CAED;AACF;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"blocks.js","sources":["../node_modules/classnames/index.js","../src/utils.ts","../src/Badge/Badge.tsx","../src/Buttons/constants.ts","../src/constants.ts","../src/Buttons/Button.tsx","../src/Buttons/IconButton.tsx","../src/ButtonGroup/ButtonGroup.tsx","../src/Dialogs/Dialog/DialogContent.tsx","../src/Dialogs/Dialog/Dialog.tsx","../src/Dialogs/AlertDialog/AlertDialogContent.tsx","../src/Dialogs/AlertDialog/AlertDialog.tsx","../src/Dialogs/AlertDialog/context.tsx","../src/Dialogs/AlertDialog/hooks.ts","../src/Select/Select.tsx","../src/Input/Input.tsx","../src/Popover/Popover.tsx","../src/TextArea/TextArea.tsx","../src/ToggleGroup/ToggleGroup.tsx","../src/Toast/Toast.tsx","../src/Toast/ToastContext.tsx","../src/Theme/DefaultTheme.tsx"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import { Responsive, ThemeOptions, useThemeContext } from \"@radix-ui/themes\"\nimport { Severity } from \"typings\"\n\n// applyResponsiveMapping is a helper function used to map the keys of a Radix Responsive type that can be understood\n// by a Radix component or primitive. The point of this is to leverage our own custom prop names and values while still\n// using Radix's built in Responsiveness functionality.\n/**\n * Returns an object with mapped key values or a single mapped value\n * @param value an object or string\n * @param mapping a Record mapping the object values of param value\n */\nexport function applyResponsiveMapping<T extends string, K>(value: Responsive<T>, mapping: Record<T, K>) {\n\tif (typeof value === \"object\") {\n\t\tif (!(\"initial\" in value)) {\n\t\t\t// Responsive objects require an 'initial' property to be set that acts as a default\n\t\t\tthrow new Error(\"Expected initial property to be set in Responsive object\")\n\t\t}\n\t\treturn Object.fromEntries(Object.entries(value).map(([key, _value]) => [key, mapping[_value]]))\n\t} else {\n\t\treturn mapping[value]\n\t}\n}\n\nconst nonThemeSeverityMapping = {\n\tsuccess: \"green\",\n\tdanger: \"red\",\n\tinfo: \"gray\",\n} as const\n\nexport type AccentColor = ThemeOptions[\"accentColor\"]\n\n/** Performs theme-sensitive mapping of a severity to radix color */\nexport const useSeverityColor = (severity: Severity): AccentColor => {\n\tconst theme = useThemeContext()\n\tif (severity === \"primary\") return theme.accentColor\n\n\treturn nonThemeSeverityMapping[severity]\n}\n","import { Badge as RadixBadge } from \"@radix-ui/themes\"\nimport { FC, forwardRef, memo, Ref } from \"react\"\nimport { BadgeProps } from \"./typings.ts\"\nimport classNames from \"classnames\"\nimport { useSeverityColor } from \"../utils.ts\"\n\nconst _Badge = forwardRef(function Badge(\n\t{ className, severity = \"primary\", rounded, color, children, ...rest }: BadgeProps,\n\tref: Ref<HTMLSpanElement>,\n) {\n\tconst severityColor = useSeverityColor(severity)\n\n\treturn (\n\t\t<RadixBadge\n\t\t\tclassName={classNames(\"overmap-badge\", className)}\n\t\t\tref={ref}\n\t\t\tcolor={color ? color : severityColor}\n\t\t\tradius={rounded ? \"full\" : undefined}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</RadixBadge>\n\t)\n})\n\n/** The Badge Component is a user interface element that provides visual feedback, typically displaying a small amount\n * of information. It is commonly used to indicate counts, statuses, or labels in a concise and visually appealing\n * manner. This Badge components wraps the Badge component from Radix-ui found here https://www.radix-ui.com/themes/docs/components/badge */\nexport const Badge: FC<BadgeProps> = memo(_Badge)\n","import { ButtonHoverEffect } from \"./typings.ts\"\nimport styles from \"./Button.module.sass\"\n\nexport const hoverEffectClassNameMapping: Record<ButtonHoverEffect, string | undefined> = {\n\tspin90Clockwise: styles.hoverSpin90Clockwise,\n\tspin180Clockwise: styles.hoverSpin180Clockwise,\n\tspin360Clockwise: styles.hoverSpin360Clockwise,\n}\n","import { Size } from \"./typings.ts\"\n\n// Mappings\nexport const SizeMapping: Record<Size, \"1\" | \"2\" | \"3\"> = {\n\tsmall: \"1\",\n\tmedium: \"2\",\n\tlarge: \"3\",\n}\n","import React, { FC, forwardRef } from \"react\"\nimport { ButtonProps } from \"./typings.ts\"\nimport styles from \"./Button.module.sass\"\nimport classNames from \"classnames\"\nimport { Button as RadixButton } from \"@radix-ui/themes\"\nimport { hoverEffectClassNameMapping } from \"./constants.ts\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\n\nconst _Button = forwardRef(function Button(\n\t{ className, fluid, size = \"medium\", severity = \"primary\", hoverEffects, type = \"button\", ...rest }: ButtonProps,\n\tref: React.Ref<HTMLButtonElement>,\n) {\n\tconst color = useSeverityColor(severity)\n\tconst hoverEffectClasses =\n\t\thoverEffects?.map((hoverEffect) => {\n\t\t\treturn hoverEffectClassNameMapping[hoverEffect]\n\t\t}) || []\n\n\treturn (\n\t\t<RadixButton\n\t\t\tref={ref}\n\t\t\tclassName={classNames(className, hoverEffectClasses, {\n\t\t\t\t[styles.fluid!]: fluid,\n\t\t\t})}\n\t\t\tcolor={color}\n\t\t\tsize={applyResponsiveMapping(size, SizeMapping)}\n\t\t\ttype={type}\n\t\t\t{...rest}\n\t\t/>\n\t)\n})\n\n// using FC so storybook correctly displays the component props\nconst Button: FC<ButtonProps> = React.memo(_Button)\n\nexport default Button\n","import React, { FC, forwardRef } from \"react\"\nimport { ButtonProps } from \"./typings.ts\"\nimport classNames from \"classnames\"\nimport { IconButton as RadixIconButton } from \"@radix-ui/themes\"\nimport { hoverEffectClassNameMapping } from \"./constants.ts\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\n\nimport styles from \"./Button.module.sass\"\n\ninterface IconButtonProps extends Omit<ButtonProps, \"fluid\"> {\n\t\"aria-label\": string\n}\n\nconst _Button = forwardRef(function Button(\n\t{\n\t\tclassName,\n\t\tchildren,\n\t\tsize = \"medium\",\n\t\tseverity = \"primary\",\n\t\thoverEffects,\n\t\ttype = \"button\",\n\t\t...rest\n\t}: IconButtonProps,\n\tref: React.Ref<HTMLButtonElement>,\n) {\n\tconst color = useSeverityColor(severity)\n\tconst hoverEffectClasses =\n\t\thoverEffects?.map((hoverEffect) => {\n\t\t\treturn hoverEffectClassNameMapping[hoverEffect]\n\t\t}) || []\n\n\treturn (\n\t\t<RadixIconButton\n\t\t\tclassName={classNames(className, hoverEffectClasses, styles.default)}\n\t\t\tref={ref}\n\t\t\tcolor={color}\n\t\t\tsize={applyResponsiveMapping(size, SizeMapping)}\n\t\t\ttype={type}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</RadixIconButton>\n\t)\n})\n\n// using FC so storybook correctly displays the component props\n/** The `IconButton` is a `Button` variant specifically designed for single icons. */\nconst IconButton: FC<IconButtonProps> = React.memo(_Button)\n\nexport default IconButton\n","import { FC, forwardRef, memo, Ref, cloneElement } from \"react\"\nimport { Flex } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { ButtonGroupProps } from \"./typings.ts\"\n\nimport styles from \"./ButtonGroup.module.sass\"\nimport { Size } from \"../typings.ts\"\nimport { applyResponsiveMapping } from \"../utils.ts\"\nimport { Button, IconButton } from \"../Buttons\"\n\nconst GhostVariantSizeToGapMapping: Record<\"row\" | \"column\", Record<Size, ButtonGroupProps[\"gap\"]>> = {\n\trow: { small: \"4\", medium: \"4\", large: \"5\" },\n\tcolumn: { small: \"2\", medium: \"3\", large: \"4\" },\n}\n\nconst _ButtonGroup = forwardRef(function ButtonGroup(\n\t{\n\t\tclassName,\n\t\tmerged = false,\n\t\tchildren,\n\t\tgap = \"2\",\n\t\tdirection = \"row\",\n\t\tseverity = \"primary\",\n\t\tsize = \"medium\",\n\t\tvariant = \"solid\",\n\t\thoverEffects,\n\t\t...rest\n\t}: ButtonGroupProps,\n\tref: Ref<HTMLDivElement>,\n) {\n\treturn (\n\t\t<Flex\n\t\t\tclassName={classNames(\"overmap-button-group\", className, {\n\t\t\t\t[styles.merged!]: merged,\n\t\t\t})}\n\t\t\tref={ref}\n\t\t\tgap={\n\t\t\t\tmerged\n\t\t\t\t\t? variant === \"ghost\"\n\t\t\t\t\t\t? applyResponsiveMapping(size, GhostVariantSizeToGapMapping[direction])\n\t\t\t\t\t\t: \"0\"\n\t\t\t\t\t: gap\n\t\t\t}\n\t\t\tdirection={direction}\n\t\t\tdata-direction={direction}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children.map((child, index) => {\n\t\t\t\tif (child.type === Button || child.type === IconButton) {\n\t\t\t\t\treturn cloneElement(child, { key: index, size, severity, variant, hoverEffects })\n\t\t\t\t} else {\n\t\t\t\t\treturn child\n\t\t\t\t}\n\t\t\t})}\n\t\t</Flex>\n\t)\n})\n\n/** The ButtonGroup Component is a user interface element that groups multiple buttons together for improved user\n * interaction and visual clarity. It is commonly used to present related actions or options in a compact and organized\n * manner. The ButtonGroup supports all props of the RadixUI Flex layout component besides MarginProps,\n * further documentation for the Flex layout component can be found here https://www.radix-ui.com/themes/docs/components/flex */\nexport const ButtonGroup: FC<ButtonGroupProps> = memo(_ButtonGroup)\n","import { memo } from \"react\"\nimport { Dialog, Flex, IconButton } from \"@radix-ui/themes\"\nimport { Cross1Icon } from \"@radix-ui/react-icons\"\nimport { DialogContentProps } from \"./typings\"\n\nexport const DialogContent = memo(function DialogContent(props: DialogContentProps) {\n\tconst { title, description, content, closeDialog } = props\n\treturn (\n\t\t<Flex direction=\"column\" gap=\"2\">\n\t\t\t<Flex direction=\"column\" gap=\"1\">\n\t\t\t\t<Flex justify=\"between\">\n\t\t\t\t\t<Dialog.Title mb=\"0\">{title}</Dialog.Title>\n\t\t\t\t\t<Dialog.Close>\n\t\t\t\t\t\t<IconButton color=\"gray\" variant=\"ghost\" aria-label=\"Close\">\n\t\t\t\t\t\t\t<Cross1Icon />\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t</Dialog.Close>\n\t\t\t\t</Flex>\n\t\t\t\t<Dialog.Description>{description}</Dialog.Description>\n\t\t\t</Flex>\n\t\t\t{content(closeDialog)}\n\t\t</Flex>\n\t)\n})\n","import { memo, useState, useCallback } from \"react\"\nimport { Dialog as RadixDialog } from \"@radix-ui/themes\"\nimport { DialogContent } from \"./DialogContent\"\nimport { CloseDialogWithOptions, DialogProps } from \"./typings\"\n\n/**\n * Display or collect information in a modal. Unlike the `AlertDialog`, the `Dialog`'s can be nested\n * and close when clicking outside of the dialog content.\n */\nexport const Dialog = memo(function Dialog(props: DialogProps) {\n\tconst { children, size, onOpen, onCloseInterrupt, ...contentProps } = props\n\tconst [open, setOpen] = useState(false)\n\n\tconst handleOpenChange = useCallback(\n\t\t(next: boolean) => {\n\t\t\tif (next && onOpen) {\n\t\t\t\tonOpen()\n\t\t\t} else if (!next && onCloseInterrupt) {\n\t\t\t\t// closes the dialog, bypassing the checks in `handleOpenChange`\n\t\t\t\tconst confirmClose = () => setOpen(false)\n\n\t\t\t\t// if onCloseInterrupt is passed, bypass the standard close behavior and require\n\t\t\t\t// the passed `confirmClose` to close the dialog\n\t\t\t\treturn onCloseInterrupt(confirmClose)\n\t\t\t}\n\n\t\t\tsetOpen(next)\n\t\t},\n\t\t[onOpen, onCloseInterrupt],\n\t)\n\n\tconst closeDialog = useCallback<CloseDialogWithOptions>(\n\t\t(options) => {\n\t\t\tif (options?.force) {\n\t\t\t\t// bypass the checks in the `handleOpenChange` function\n\t\t\t\treturn setOpen(false)\n\t\t\t}\n\n\t\t\thandleOpenChange(false)\n\t\t},\n\t\t[handleOpenChange],\n\t)\n\n\treturn (\n\t\t<RadixDialog.Root open={open} onOpenChange={handleOpenChange}>\n\t\t\t<RadixDialog.Content size={size}>\n\t\t\t\t<DialogContent closeDialog={closeDialog} {...contentProps} />\n\t\t\t</RadixDialog.Content>\n\n\t\t\t{children(RadixDialog.Trigger)}\n\t\t</RadixDialog.Root>\n\t)\n})\n","import { AlertDialog, Flex } from \"@radix-ui/themes\"\nimport { AlertDialogStandardContent } from \"./typings\"\nimport { Button } from \"../../Buttons\"\n\n// remove the margin-bottom from the title so that Flex works as expected\nexport const Title: typeof AlertDialog.Title = ((props) => (\n\t<AlertDialog.Title mb=\"0\" {...props} />\n)) as typeof AlertDialog.Title\n\nexport const AlertDialogContent = (props: AlertDialogStandardContent) => {\n\tconst { title, description, actionText = \"Confirm\", cancelText = \"Cancel\", onAction, onCancel, severity } = props\n\treturn (\n\t\t<Flex direction=\"column\" gap=\"2\">\n\t\t\t<Flex direction=\"column\" gap=\"1\">\n\t\t\t\t<Title>{title}</Title>\n\t\t\t\t<AlertDialog.Description>{description}</AlertDialog.Description>\n\t\t\t</Flex>\n\n\t\t\t<Flex gap=\"3\" mt=\"4\" justify=\"end\">\n\t\t\t\t<AlertDialog.Cancel>\n\t\t\t\t\t<Button variant=\"soft\" severity=\"info\" onClick={onCancel}>\n\t\t\t\t\t\t{cancelText}\n\t\t\t\t\t</Button>\n\t\t\t\t</AlertDialog.Cancel>\n\t\t\t\t<AlertDialog.Action>\n\t\t\t\t\t<Button variant=\"solid\" severity={severity} onClick={onAction}>\n\t\t\t\t\t\t{actionText}\n\t\t\t\t\t</Button>\n\t\t\t\t</AlertDialog.Action>\n\t\t\t</Flex>\n\t\t</Flex>\n\t)\n}\n","import { memo, useMemo } from \"react\"\nimport { AlertDialog as RadixAlertDialog } from \"@radix-ui/themes\"\nimport { AlertDialogContentHelpers, AlertDialogProps } from \"./typings\"\nimport { AlertDialogContent, Title } from \"./AlertDialogContent\"\n\n/**\n * The AlertDialog is used to confirm an action or prompt the user for a decision.\n * Unlike the Dialog, the AlertDialog is not dismissible by clicking outside of the dialog, nor can it be nested.\n *\n * To use, place the `AlertDialogProvider` at the root of your app and use the `useAlertDialog` hook to open the dialog.\n *\n * To set the content of the dialog, use the `content` prop or pass values for the `title`, `description`, and `onAction` props.\n */\nexport const AlertDialog = memo(function AlertDialog(props: AlertDialogProps) {\n\tconst { open, setOpen, children, ...contentProps } = props\n\n\tconst helpers: AlertDialogContentHelpers = useMemo(() => {\n\t\treturn {\n\t\t\tclose: () => setOpen(false),\n\t\t\tTitle,\n\t\t\tDescription: RadixAlertDialog.Description,\n\t\t}\n\t}, [setOpen])\n\n\treturn (\n\t\t<RadixAlertDialog.Root open={open} onOpenChange={setOpen}>\n\t\t\t<RadixAlertDialog.Content>\n\t\t\t\t{\"content\" in contentProps ? contentProps.content(helpers) : <AlertDialogContent {...contentProps} />}\n\t\t\t</RadixAlertDialog.Content>\n\t\t\t{children}\n\t\t</RadixAlertDialog.Root>\n\t)\n})\n","import { createContext, memo, useState, useCallback } from \"react\"\nimport { AlertDialogContextType, AlertDialogOptions } from \"./typings\"\nimport { AlertDialog } from \"./AlertDialog\"\n\ninterface AlertDialogProviderProps {\n\tchildren: React.ReactNode\n}\n\nexport const AlertDialogContent = createContext<AlertDialogContextType>(() => {\n\tthrow new Error(\"No AlertDialogProvider found\")\n})\n\nconst initialState: AlertDialogOptions = {\n\tcontent: () => null,\n}\n\nexport const AlertDialogProvider = memo(function AlertDialogProvider({ children }: AlertDialogProviderProps) {\n\tconst [open, setOpen] = useState(false)\n\tconst [state, setState] = useState<AlertDialogOptions>(initialState)\n\n\tconst openDialog = useCallback<AlertDialogContextType>(\n\t\t(options) => {\n\t\t\tif (open) throw new Error(\"AlertDialog is already open\")\n\n\t\t\tsetState(options)\n\t\t\tsetOpen(true)\n\t\t},\n\t\t[open],\n\t)\n\n\treturn (\n\t\t<AlertDialog open={open} setOpen={setOpen} {...state}>\n\t\t\t<AlertDialogContent.Provider value={openDialog}>{children}</AlertDialogContent.Provider>\n\t\t</AlertDialog>\n\t)\n})\n","import { useContext } from \"react\"\nimport { AlertDialogContent } from \"./context\"\n\nexport const useAlertDialog = () => {\n\treturn useContext(AlertDialogContent)\n}\n","import React, { FC, forwardRef, useMemo } from \"react\"\nimport { Select as RadixSelect } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\nimport { SelectItemProps, SelectProps } from \"./typings.ts\"\n\nimport styles from \"./Select.module.sass\"\n\nconst _Select = forwardRef(function Select(\n\t{\n\t\tclassName,\n\t\tfluid,\n\t\tsize = \"medium\",\n\t\tvariant = \"surface\",\n\t\tseverity = \"primary\",\n\t\tplaceholder = \"Select\",\n\t\tside,\n\t\titems = [],\n\t\tvalue,\n\t\tid,\n\t\t...rest\n\t}: SelectProps,\n\tref: React.Ref<HTMLButtonElement>,\n) {\n\tconst mappedSize = useMemo(() => {\n\t\treturn applyResponsiveMapping(size, SizeMapping)\n\t}, [size])\n\tconst color = useSeverityColor(severity)\n\n\t// TODO: extend functionality to support grouping of items\n\t// TODO: remove key change based on value once placeholder issue it fixed in radix-ui/themes\n\treturn (\n\t\t<RadixSelect.Root size={mappedSize} {...rest} key={value === undefined ? 1 : 0} value={value}>\n\t\t\t<RadixSelect.Trigger\n\t\t\t\tclassName={classNames(className, {\n\t\t\t\t\t[styles.fluid!]: fluid,\n\t\t\t\t})}\n\t\t\t\tid={id}\n\t\t\t\tref={ref}\n\t\t\t\tvariant={variant}\n\t\t\t\tplaceholder={placeholder}\n\t\t\t\tcolor={color}\n\t\t\t/>\n\t\t\t<RadixSelect.Content\n\t\t\t\tside={side}\n\t\t\t\tposition=\"popper\"\n\t\t\t\tvariant={variant !== \"surface\" ? \"soft\" : \"solid\"}\n\t\t\t\tcolor={color}\n\t\t\t>\n\t\t\t\t{items.map(({ label, value, ...rest }: SelectItemProps) => (\n\t\t\t\t\t<RadixSelect.Item key={value} value={value} {...rest}>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</RadixSelect.Item>\n\t\t\t\t))}\n\t\t\t</RadixSelect.Content>\n\t\t</RadixSelect.Root>\n\t)\n})\nexport const Select: FC<SelectProps> = React.memo(_Select)\n","import React, { FC, forwardRef, useMemo } from \"react\"\nimport { Text, TextField as RadixTextField } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\nimport { InputProps } from \"./typings.ts\"\n\nimport styles from \"./Input.module.sass\"\n\nconst _Input = forwardRef(function Input(\n\t{\n\t\tclassName,\n\t\tleftIcon,\n\t\trightIcon,\n\t\tsize = \"medium\",\n\t\tshowInputLength,\n\t\tvalue,\n\t\tvariant,\n\t\tseverity = \"primary\",\n\t\t...rest\n\t}: InputProps,\n\tref: React.Ref<HTMLInputElement>,\n) {\n\tconst computedSize = useMemo(() => {\n\t\treturn applyResponsiveMapping(size, SizeMapping)\n\t}, [size])\n\n\tconst color = useSeverityColor(severity)\n\n\tconst displayInputLength = showInputLength || (showInputLength === undefined && rest.maxLength !== undefined)\n\tconst valueAsString = value !== undefined ? value.toString() : undefined\n\n\treturn (\n\t\t<RadixTextField.Root\n\t\t\tclassName={classNames({\n\t\t\t\t[styles.accommodateCharCount!]: displayInputLength,\n\t\t\t})}\n\t\t\tsize={computedSize}\n\t\t\tvariant={variant}\n\t\t\tcolor={color}\n\t\t>\n\t\t\t<RadixTextField.Slot>{leftIcon}</RadixTextField.Slot>\n\t\t\t<RadixTextField.Input\n\t\t\t\tclassName={classNames(styles.default, className, {\n\t\t\t\t\t[styles.noLeftIcon!]: !leftIcon,\n\t\t\t\t\t[styles.noRightIcon!]: !rightIcon,\n\t\t\t\t})}\n\t\t\t\tref={ref}\n\t\t\t\tsize={computedSize}\n\t\t\t\tvariant={variant}\n\t\t\t\tcolor={color}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t\t<RadixTextField.Slot>{rightIcon}</RadixTextField.Slot>\n\t\t\t{displayInputLength && (\n\t\t\t\t<Text as=\"p\" className={styles.charCount} size=\"1\" color=\"gray\">\n\t\t\t\t\t{rest.maxLength !== undefined\n\t\t\t\t\t\t? `${valueAsString?.length}/${rest.maxLength}`\n\t\t\t\t\t\t: `${valueAsString?.length}`}\n\t\t\t\t</Text>\n\t\t\t)}\n\t\t</RadixTextField.Root>\n\t)\n})\nexport const Input: FC<InputProps> = React.memo(_Input)\n","import React, { forwardRef, FC } from \"react\"\nimport { Popover as RadixPopover } from \"@radix-ui/themes\"\nimport { PopoverProps } from \"./typings.ts\"\n\nconst _Popover = forwardRef(function Popover(\n\t{ defaultOpen = false, modal = false, content, children, ...rest }: PopoverProps,\n\tref: React.Ref<HTMLDivElement>,\n) {\n\treturn (\n\t\t<RadixPopover.Root defaultOpen={defaultOpen} modal={modal}>\n\t\t\t<RadixPopover.Trigger>{children}</RadixPopover.Trigger>\n\t\t\t<RadixPopover.Content ref={ref} {...rest}>\n\t\t\t\t{content(RadixPopover.Close)}\n\t\t\t</RadixPopover.Content>\n\t\t</RadixPopover.Root>\n\t)\n})\nexport const Popover: FC<PopoverProps> = React.memo(_Popover)\n","import { FC, forwardRef, memo, Ref, useMemo } from \"react\"\nimport { Text, TextArea as RadixTextArea } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { TextAreaProps } from \"./typings.ts\"\n\nimport styles from \"./Textarea.module.sass\"\nimport { useSeverityColor } from \"../utils.ts\"\n\nconst _TextArea = forwardRef(function TextArea(\n\t{ className, showInputLength, inputLengthTemplate, value, severity = \"primary\", resize, ...rest }: TextAreaProps,\n\tref: Ref<HTMLTextAreaElement>,\n) {\n\tconst severityColor = useSeverityColor(severity)\n\tconst infoColor = useSeverityColor(\"info\")\n\n\tconst displayInputLength =\n\t\tshowInputLength ||\n\t\t(showInputLength === undefined && (rest.maxLength !== undefined || rest.minLength !== undefined))\n\tconst valueAsString = value !== undefined ? value.toString() : \"\"\n\n\tconst displayInputLengthValue = useMemo(() => {\n\t\tif (inputLengthTemplate) {\n\t\t\tlet template = inputLengthTemplate.replace(\"{current}\", valueAsString.length.toString())\n\t\t\tif (rest.minLength !== undefined) {\n\t\t\t\ttemplate = template.replace(\"{min}\", rest.minLength.toString())\n\t\t\t}\n\t\t\tif (rest.maxLength !== undefined) {\n\t\t\t\ttemplate = template.replace(\"{max}\", rest.maxLength.toString())\n\t\t\t}\n\t\t\treturn template\n\t\t}\n\t\treturn valueAsString.length\n\t}, [inputLengthTemplate, rest.maxLength, rest.minLength, valueAsString.length])\n\n\treturn (\n\t\t<>\n\t\t\t<RadixTextArea\n\t\t\t\tclassName={classNames(\"overmap-textarea\", className)}\n\t\t\t\tstyle={{ resize: resize }}\n\t\t\t\tref={ref}\n\t\t\t\tvalue={value}\n\t\t\t\tcolor={severityColor}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t\t{displayInputLength && (\n\t\t\t\t<Text as=\"p\" className={styles.charCount} color={infoColor} align=\"right\">\n\t\t\t\t\t{displayInputLengthValue}\n\t\t\t\t</Text>\n\t\t\t)}\n\t\t</>\n\t)\n})\n\n/** The TextArea Component is a user interface element that allows users to input and edit multi-line text.\n It is commonly used in forms, chat applications, and other scenarios where longer text inputs are required.\n This TextArea is a wrapper of the RadixUI TextArea component found here https://www.radix-ui.com/themes/docs/components/text-area.\n */\nexport const TextArea: FC<TextAreaProps> = memo(_TextArea)\n","import { FC, forwardRef, memo, Ref } from \"react\"\nimport { Item, Root } from \"@radix-ui/react-toggle-group\"\nimport { ToggleGroupItemProps, ToggleGroupSingleProps } from \"./typings.ts\"\nimport { IconButton } from \"../Buttons\"\nimport classNames from \"classnames\"\nimport { ButtonGroup } from \"../ButtonGroup\"\n\nconst _ToggleGroup = forwardRef(function ToggleGroup(\n\t{\n\t\tclassName,\n\t\titems,\n\t\torientation = \"horizontal\",\n\t\tmerged = true,\n\t\tvalue,\n\t\tseverity,\n\t\tgap,\n\t\tsize,\n\t\t...rest\n\t}: ToggleGroupSingleProps,\n\tref: Ref<HTMLDivElement>,\n) {\n\treturn (\n\t\t<Root\n\t\t\tclassName={classNames(\"overmap-toggle-group\", className)}\n\t\t\tref={ref}\n\t\t\tvalue={value}\n\t\t\torientation={orientation}\n\t\t\t{...rest}\n\t\t>\n\t\t\t<ButtonGroup\n\t\t\t\twidth=\"min-content\"\n\t\t\t\theight=\"min-content\"\n\t\t\t\tmerged={merged}\n\t\t\t\tdirection={orientation === \"vertical\" ? \"column\" : \"row\"}\n\t\t\t\tgap={gap}\n\t\t\t>\n\t\t\t\t{items.map(({ children, ...rest }: ToggleGroupItemProps) => (\n\t\t\t\t\t<Item asChild {...rest} key={rest.value}>\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\tclassName={classNames(\"overmap-toggle-group-button\")}\n\t\t\t\t\t\t\taria-label={rest.value}\n\t\t\t\t\t\t\tseverity={severity}\n\t\t\t\t\t\t\tvariant={rest.value === value ? \"solid\" : \"soft\"}\n\t\t\t\t\t\t\tsize={size}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t</Item>\n\t\t\t\t))}\n\t\t\t</ButtonGroup>\n\t\t</Root>\n\t)\n})\n\n/** The Toggle Group Component is a user interface element that allows users to select a single option from a set of\n * mutually exclusive choices. It is commonly used in situations where users need to make a single selection from a\n * predefined list of options. This component is built using the ButtonGroup and IconButton components in combination\n * with the Radix Toggle Group primitive found here https://www.radix-ui.com/primitives/docs/components/toggle-group */\nexport const ToggleGroup: FC<ToggleGroupSingleProps> = memo(_ToggleGroup)\n","import { FC, forwardRef, memo, Ref, useCallback } from \"react\"\nimport * as RadixToast from \"@radix-ui/react-toast\"\nimport { Callout, Flex } from \"@radix-ui/themes\"\nimport { Cross2Icon, InfoCircledIcon } from \"@radix-ui/react-icons\"\nimport classNames from \"classnames\"\nimport { IconButton } from \"../Buttons\"\nimport { ToastProps, ToastProviderProps } from \"./typings.ts\"\nimport { useSeverityColor } from \"../utils.ts\"\n\nimport styles from \"./Toast.module.sass\"\n\nconst _Toast = forwardRef(function Toast(\n\t{ title, description, icon, severity = \"primary\", size, onClose, ...rest }: ToastProps,\n\tref: Ref<HTMLLIElement>,\n) {\n\tconst color = useSeverityColor(severity)\n\tconst handleOpenChange = useCallback(\n\t\t(open: boolean) => {\n\t\t\tif (!open && onClose) onClose()\n\t\t},\n\t\t[onClose],\n\t)\n\n\treturn (\n\t\t<RadixToast.Root asChild ref={ref} {...rest} onOpenChange={handleOpenChange}>\n\t\t\t<Callout.Root\n\t\t\t\tclassName={classNames(\"overmap-toast\", styles.wrapper)}\n\t\t\t\tvariant=\"surface\"\n\t\t\t\tcolor={color}\n\t\t\t\tsize={size}\n\t\t\t>\n\t\t\t\t<Flex width=\"100%\" align=\"center\" gap=\"4\" justify=\"between\">\n\t\t\t\t\t<Flex align=\"center\" gap=\"4\">\n\t\t\t\t\t\t<Callout.Icon>{icon || <InfoCircledIcon />}</Callout.Icon>\n\t\t\t\t\t\t<Flex direction=\"column\" gap=\"0\">\n\t\t\t\t\t\t\t<RadixToast.Title asChild>\n\t\t\t\t\t\t\t\t<Callout.Text weight=\"bold\">{title}</Callout.Text>\n\t\t\t\t\t\t\t</RadixToast.Title>\n\t\t\t\t\t\t\t<RadixToast.Description asChild>\n\t\t\t\t\t\t\t\t<Callout.Text weight=\"light\">{description}</Callout.Text>\n\t\t\t\t\t\t\t</RadixToast.Description>\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</Flex>\n\t\t\t\t\t<RadixToast.Close asChild>\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\tclassName={styles.closeButton}\n\t\t\t\t\t\t\taria-label=\"Close\"\n\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tseverity={severity}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Cross2Icon />\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t</RadixToast.Close>\n\t\t\t\t</Flex>\n\t\t\t</Callout.Root>\n\t\t</RadixToast.Root>\n\t)\n})\n\nexport const ToastProvider: FC<ToastProviderProps> = memo(function ToastProvider({\n\tchildren,\n\t...rest\n}: ToastProviderProps) {\n\treturn (\n\t\t<RadixToast.Provider swipeDirection=\"right\" swipeThreshold={75} {...rest}>\n\t\t\t{children}\n\t\t</RadixToast.Provider>\n\t)\n})\n\nexport const Toast: FC<ToastProps> = memo(_Toast)\nexport const ToastViewport: FC<RadixToast.ToastViewportProps> = RadixToast.Viewport\n","import { memo, createContext, useState, useCallback, FC } from \"react\"\nimport { IToastContext, SimpleToastMessage, ToastContextProviderProps, ToastProps } from \"./typings.ts\"\nimport { Toast, ToastProvider, ToastViewport } from \"./Toast.tsx\"\n\nexport const ToastContext = createContext({} as IToastContext)\n\nexport const ToastContextProvider: FC<ToastContextProviderProps> = memo(function ToastContextProvider({\n\tchildren,\n\t// Use this class to change where the viewport for the toasts should be\n\tviewportClass,\n\thotkey,\n\t// Default duration value for all Toasts\n\tduration = 10000,\n\t...rest\n}: ToastContextProviderProps) {\n\tconst [toasts, setToasts] = useState<ToastProps[]>([])\n\n\tconst showToast = useCallback((toastProps: ToastProps) => {\n\t\tsetToasts((prevToasts) => [...prevToasts, toastProps])\n\t}, [])\n\n\tconst showPrimary = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"primary\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst showSuccess = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"success\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst showError = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"danger\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst showInfo = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"info\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst deleteToastAtIndex = useCallback(\n\t\t(index: number) => {\n\t\t\tconst tempToasts = [...toasts]\n\t\t\ttempToasts.splice(index, 1)\n\t\t\tsetToasts(() => tempToasts)\n\t\t},\n\t\t[toasts],\n\t)\n\n\tconst toastContextValue = {\n\t\tshowToast,\n\t\tshowPrimary,\n\t\tshowSuccess,\n\t\tshowError,\n\t\tshowInfo,\n\t}\n\n\treturn (\n\t\t<ToastContext.Provider value={toastContextValue}>\n\t\t\t<ToastProvider duration={duration} {...rest}>\n\t\t\t\t<ToastViewport className={viewportClass} hotkey={hotkey} />\n\t\t\t\t{toasts.map((toastProps, index) => (\n\t\t\t\t\t<Toast key={index} {...toastProps} onClose={() => deleteToastAtIndex(index)} />\n\t\t\t\t))}\n\t\t\t\t{children}\n\t\t\t</ToastProvider>\n\t\t</ToastContext.Provider>\n\t)\n})\n","import { Theme } from \"@radix-ui/themes\"\nimport { ComponentProps, FC, forwardRef, memo } from \"react\"\n// css file contains updates to the default radix tokens\nimport \"./DefaultTheme.css\"\n\nexport type DefaultThemeProps = ComponentProps<typeof Theme>\n\nexport const DefaultTheme: FC<DefaultThemeProps> = memo(\n\tforwardRef<HTMLDivElement, DefaultThemeProps>((props, ref) => {\n\t\tconst { panelBackground = \"solid\", radius = \"full\", ...rest } = props\n\t\treturn <Theme panelBackground={panelBackground} radius={radius} ref={ref} {...rest} />\n\t}),\n)\n"],"names":["hasOwn","classNames","classes","i","arg","argType","inner","key","module","applyResponsiveMapping","value","mapping","_value","nonThemeSeverityMapping","useSeverityColor","severity","theme","useThemeContext","_Badge","forwardRef","className","rounded","color","children","rest","ref","severityColor","jsx","RadixBadge","Badge","memo","hoverEffectClassNameMapping","styles","SizeMapping","_Button","fluid","size","hoverEffects","type","hoverEffectClasses","hoverEffect","RadixButton","Button","React","RadixIconButton","IconButton","GhostVariantSizeToGapMapping","_ButtonGroup","merged","gap","direction","variant","Flex","child","index","cloneElement","ButtonGroup","DialogContent","props","title","description","content","closeDialog","jsxs","Dialog","Cross1Icon","onOpen","onCloseInterrupt","contentProps","open","setOpen","useState","handleOpenChange","useCallback","next","options","RadixDialog","Title","AlertDialog","AlertDialogContent","actionText","cancelText","onAction","onCancel","helpers","useMemo","RadixAlertDialog","createContext","initialState","AlertDialogProvider","state","setState","openDialog","useAlertDialog","useContext","_Select","placeholder","side","items","id","mappedSize","createElement","RadixSelect","label","Select","_Input","leftIcon","rightIcon","showInputLength","computedSize","displayInputLength","valueAsString","RadixTextField","Text","Input","_Popover","defaultOpen","modal","RadixPopover","Popover","_TextArea","inputLengthTemplate","resize","infoColor","displayInputLengthValue","template","Fragment","RadixTextArea","TextArea","_ToggleGroup","orientation","Root","Item","ToggleGroup","_Toast","icon","onClose","RadixToast","Callout","InfoCircledIcon","Cross2Icon","ToastProvider","Toast","ToastViewport","ToastContext","ToastContextProvider","viewportClass","hotkey","duration","toasts","setToasts","showToast","toastProps","prevToasts","showPrimary","simpleMessage","showSuccess","showError","showInfo","deleteToastAtIndex","tempToasts","toastContextValue","DefaultTheme","panelBackground","radius","Theme"],"mappings":";;;;;;;;;;;;;;;;;;;;AAOA,GAAC,WAAY;AAGZ,QAAIA,IAAS,CAAE,EAAC;AAGhB,aAASC,IAAa;AAGrB,eAFIC,IAAU,CAAA,GAELC,IAAI,GAAGA,IAAI,UAAU,QAAQA,KAAK;AAC1C,YAAIC,IAAM,UAAUD,CAAC;AACrB,YAAKC,GAEL;AAAA,cAAIC,IAAU,OAAOD;AAErB,cAAIC,MAAY,YAAYA,MAAY;AACvC,YAAAH,EAAQ,KAAKE,CAAG;AAAA,mBACN,MAAM,QAAQA,CAAG;AAC3B,gBAAIA,EAAI,QAAQ;AACf,kBAAIE,IAAQL,EAAW,MAAM,MAAMG,CAAG;AACtC,cAAIE,KACHJ,EAAQ,KAAKI,CAAK;AAAA,YAEnB;AAAA,qBACSD,MAAY,UAAU;AAChC,gBAAID,EAAI,aAAa,OAAO,UAAU,YAAY,CAACA,EAAI,SAAS,SAAQ,EAAG,SAAS,eAAe,GAAG;AACrG,cAAAF,EAAQ,KAAKE,EAAI,SAAU,CAAA;AAC3B;AAAA,YACA;AAED,qBAASG,KAAOH;AACf,cAAIJ,EAAO,KAAKI,GAAKG,CAAG,KAAKH,EAAIG,CAAG,KACnCL,EAAQ,KAAKK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AAA,GAA9DA,CAAiE,CAC7E;AAAA,IACA/B;AAAA,EAAA,EACF,CAAA,EACD,CAAA;AAEF,CAAC;ACtEM,MAAM2I,KAAsCpI;AAAA,EAClDX,EAA8C,CAACuC,GAAOjC,MAAQ;AAC7D,UAAM,EAAE,iBAAA0I,IAAkB,SAAS,QAAAC,IAAS,QAAQ,GAAG5I,EAAS,IAAAkC;AAChE,6BAAQ2G,IAAM,EAAA,iBAAAF,GAAkC,QAAAC,GAAgB,KAAA3I,GAAW,GAAGD,EAAM,CAAA;AAAA,EAAA,CACpF;AACF;","x_google_ignoreList":[0]}
|
package/dist/blocks.umd.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(o,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("@radix-ui/themes/styles.css"),require("@radix-ui/colors"),require("@radix-ui/react-icons"),require("@radix-ui/themes"),require("react/jsx-runtime"),require("react"),require("@radix-ui/react-toggle-group"),require("@radix-ui/react-toast")):typeof define=="function"&&define.amd?define(["exports","@radix-ui/themes/styles.css","@radix-ui/colors","@radix-ui/react-icons","@radix-ui/themes","react/jsx-runtime","react","@radix-ui/react-toggle-group","@radix-ui/react-toast"],D):(o=typeof globalThis<"u"?globalThis:o||self,D(o.blocks={},null,o.colors,o.reactIcons,o.themes,o.jsxRuntime,o.React,o.reactToggleGroup,o.RadixToast))})(this,function(o,D,N,
|
|
1
|
+
(function(o,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("@radix-ui/themes/styles.css"),require("@radix-ui/colors"),require("@radix-ui/react-icons"),require("@radix-ui/themes"),require("react/jsx-runtime"),require("react"),require("@radix-ui/react-toggle-group"),require("@radix-ui/react-toast")):typeof define=="function"&&define.amd?define(["exports","@radix-ui/themes/styles.css","@radix-ui/colors","@radix-ui/react-icons","@radix-ui/themes","react/jsx-runtime","react","@radix-ui/react-toggle-group","@radix-ui/react-toast"],D):(o=typeof globalThis<"u"?globalThis:o||self,D(o.blocks={},null,o.colors,o.reactIcons,o.themes,o.jsxRuntime,o.React,o.reactToggleGroup,o.RadixToast))})(this,function(o,D,N,O,e,r,i,F,K){"use strict";function Q(t){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const a=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(c,l,a.get?a:{enumerable:!0,get:()=>t[l]})}}return c.default=t,Object.freeze(c)}const T=Q(K);function J(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var L={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(t){(function(){var c={}.hasOwnProperty;function l(){for(var a=[],s=0;s<arguments.length;s++){var n=arguments[s];if(n){var d=typeof n;if(d==="string"||d==="number")a.push(n);else if(Array.isArray(n)){if(n.length){var u=l.apply(null,n);u&&a.push(u)}}else if(d==="object"){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){a.push(n.toString());continue}for(var f in n)c.call(n,f)&&n[f]&&a.push(f)}}}return a.join(" ")}t.exports?(l.default=l,t.exports=l):window.classNames=l})()})(L);var U=L.exports;const v=J(U);function j(t,c){if(typeof t=="object"){if(!("initial"in t))throw new Error("Expected initial property to be set in Responsive object");return Object.fromEntries(Object.entries(t).map(([l,a])=>[l,c[a]]))}else return c[t]}const W={success:"green",danger:"red",info:"gray"},w=t=>{const c=e.useThemeContext();return t==="primary"?c.accentColor:W[t]},X=i.forwardRef(function({className:c,severity:l="primary",rounded:a,color:s,children:n,...d},u){const f=w(l);return r.jsx(e.Badge,{className:v("overmap-badge",c),ref:u,color:s||f,radius:a?"full":void 0,...d,children:n})}),Y=i.memo(X),S={fluid:"_fluid_r73gr_1",hoverSpin90Clockwise:"_hoverSpin90Clockwise_r73gr_15",hoverSpin180Clockwise:"_hoverSpin180Clockwise_r73gr_25",hoverSpin360Clockwise:"_hoverSpin360Clockwise_r73gr_35"},M={spin90Clockwise:S.hoverSpin90Clockwise,spin180Clockwise:S.hoverSpin180Clockwise,spin360Clockwise:S.hoverSpin360Clockwise},k={small:"1",medium:"2",large:"3"},Z=i.forwardRef(function({className:c,fluid:l,size:a="medium",severity:s="primary",hoverEffects:n,type:d="button",...u},f){const p=w(s),C=(n==null?void 0:n.map(g=>M[g]))||[];return r.jsx(e.Button,{ref:f,className:v(c,C,{[S.fluid]:l}),color:p,size:j(a,k),type:d,...u})}),A=i.memo(Z),R=i.forwardRef(function({className:c,children:l,size:a="medium",severity:s="primary",hoverEffects:n,type:d="button",...u},f){const p=w(s),C=(n==null?void 0:n.map(g=>M[g]))||[];return r.jsx(e.IconButton,{className:v(c,C,S.default),ref:f,color:p,size:j(a,k),type:d,...u,children:l})}),I=i.memo(R),ee={merged:"_merged_f4366_1"},oe={row:{small:"4",medium:"4",large:"5"},column:{small:"2",medium:"3",large:"4"}},re=i.forwardRef(function({className:c,merged:l=!1,children:a,gap:s="2",direction:n="row",severity:d="primary",size:u="medium",variant:f="solid",hoverEffects:p,...C},g){return r.jsx(e.Flex,{className:v("overmap-button-group",c,{[ee.merged]:l}),ref:g,gap:l?f==="ghost"?j(u,oe[n]):"0":s,direction:n,"data-direction":n,...C,children:a.map((b,m)=>b.type===A||b.type===I?i.cloneElement(b,{key:m,size:u,severity:d,variant:f,hoverEffects:p}):b)})}),x=i.memo(re),ne=i.memo(function(c){const{title:l,description:a,content:s,closeDialog:n}=c;return r.jsxs(e.Flex,{direction:"column",gap:"2",children:[r.jsxs(e.Flex,{direction:"column",gap:"1",children:[r.jsxs(e.Flex,{justify:"between",children:[r.jsx(e.Dialog.Title,{mb:"0",children:l}),r.jsx(e.Dialog.Close,{children:r.jsx(e.IconButton,{color:"gray",variant:"ghost","aria-label":"Close",children:r.jsx(T.Cross1Icon,{})})})]}),r.jsx(e.Dialog.Description,{children:a})]}),s(n)]})}),te=i.memo(function(c){const{children:l,size:a,onOpen:s,onCloseInterrupt:n,...d}=c,[u,f]=i.useState(!1),p=i.useCallback(g=>{if(g&&s)s();else if(!g&&n)return n(()=>f(!1));f(g)},[s,n]),C=i.useCallback(g=>{if(g!=null&&g.force)return f(!1);p(!1)},[p]);return r.jsxs(e.Dialog.Root,{open:u,onOpenChange:p,children:[r.jsx(e.Dialog.Content,{size:a,children:r.jsx(ne,{closeDialog:C,...d})}),l(e.Dialog.Trigger)]})}),$=t=>r.jsx(e.AlertDialog.Title,{mb:"0",...t}),le=t=>{const{title:c,description:l,actionText:a="Confirm",cancelText:s="Cancel",onAction:n,onCancel:d,severity:u}=t;return r.jsxs(e.Flex,{direction:"column",gap:"2",children:[r.jsxs(e.Flex,{direction:"column",gap:"1",children:[r.jsx($,{children:c}),r.jsx(e.AlertDialog.Description,{children:l})]}),r.jsxs(e.Flex,{gap:"3",mt:"4",justify:"end",children:[r.jsx(e.AlertDialog.Cancel,{children:r.jsx(A,{variant:"soft",severity:"info",onClick:d,children:s})}),r.jsx(e.AlertDialog.Action,{children:r.jsx(A,{variant:"solid",severity:u,onClick:n,children:a})})]})]})},G=i.memo(function(c){const{open:l,setOpen:a,children:s,...n}=c,d=i.useMemo(()=>({close:()=>a(!1),Title:$,Description:e.AlertDialog.Description}),[a]);return r.jsxs(e.AlertDialog.Root,{open:l,onOpenChange:a,children:[r.jsx(e.AlertDialog.Content,{children:"content"in n?n.content(d):r.jsx(le,{...n})}),s]})}),B=i.createContext(()=>{throw new Error("No AlertDialogProvider found")}),ie={content:()=>null},ae=i.memo(function({children:c}){const[l,a]=i.useState(!1),[s,n]=i.useState(ie),d=i.useCallback(u=>{if(l)throw new Error("AlertDialog is already open");n(u),a(!0)},[l]);return r.jsx(G,{open:l,setOpen:a,...s,children:r.jsx(B.Provider,{value:d,children:c})})}),ce=()=>i.useContext(B),se={fluid:"_fluid_7n1wr_1"},ue=i.forwardRef(function({className:c,fluid:l,size:a="medium",variant:s="surface",severity:n="primary",placeholder:d="Select",side:u,items:f=[],value:p,id:C,...g},b){const m=i.useMemo(()=>j(a,k),[a]),y=w(n);return i.createElement(e.Select.Root,{size:m,...g,key:p===void 0?1:0,value:p},r.jsx(e.Select.Trigger,{className:v(c,{[se.fluid]:l}),id:C,ref:b,variant:s,placeholder:d,color:y}),r.jsx(e.Select.Content,{side:u,position:"popper",variant:s!=="surface"?"soft":"solid",color:y,children:f.map(({label:h,value:P,...je})=>r.jsx(e.Select.Item,{value:P,...je,children:h},P))}))}),de=i.memo(ue),_={accommodateCharCount:"_accommodateCharCount_fni4k_1",default:"_default_fni4k_5",noLeftIcon:"_noLeftIcon_fni4k_9",noRightIcon:"_noRightIcon_fni4k_13",charCount:"_charCount_fni4k_17"},fe=i.forwardRef(function({className:c,leftIcon:l,rightIcon:a,size:s="medium",showInputLength:n,value:d,variant:u,severity:f="primary",...p},C){const g=i.useMemo(()=>j(s,k),[s]),b=w(f),m=n||n===void 0&&p.maxLength!==void 0,y=d!==void 0?d.toString():void 0;return r.jsxs(e.TextField.Root,{className:v({[_.accommodateCharCount]:m}),size:g,variant:u,color:b,children:[r.jsx(e.TextField.Slot,{children:l}),r.jsx(e.TextField.Input,{className:v(_.default,c,{[_.noLeftIcon]:!l,[_.noRightIcon]:!a}),ref:C,size:g,variant:u,color:b,...p}),r.jsx(e.TextField.Slot,{children:a}),m&&r.jsx(e.Text,{as:"p",className:_.charCount,size:"1",color:"gray",children:p.maxLength!==void 0?`${y==null?void 0:y.length}/${p.maxLength}`:`${y==null?void 0:y.length}`})]})}),ge=i.memo(fe),pe=i.forwardRef(function({defaultOpen:c=!1,modal:l=!1,content:a,children:s,...n},d){return r.jsxs(e.Popover.Root,{defaultOpen:c,modal:l,children:[r.jsx(e.Popover.Trigger,{children:s}),r.jsx(e.Popover.Content,{ref:d,...n,children:a(e.Popover.Close)})]})}),be=i.memo(pe),Ce={charCount:"_charCount_17uut_1"},ye=i.forwardRef(function({className:c,showInputLength:l,inputLengthTemplate:a,value:s,severity:n="primary",resize:d,...u},f){const p=w(n),C=w("info"),g=l||l===void 0&&(u.maxLength!==void 0||u.minLength!==void 0),b=s!==void 0?s.toString():"",m=i.useMemo(()=>{if(a){let y=a.replace("{current}",b.length.toString());return u.minLength!==void 0&&(y=y.replace("{min}",u.minLength.toString())),u.maxLength!==void 0&&(y=y.replace("{max}",u.maxLength.toString())),y}return b.length},[a,u.maxLength,u.minLength,b.length]);return r.jsxs(r.Fragment,{children:[r.jsx(e.TextArea,{className:v("overmap-textarea",c),style:{resize:d},ref:f,value:s,color:p,...u}),g&&r.jsx(e.Text,{as:"p",className:Ce.charCount,color:C,align:"right",children:m})]})}),he=i.memo(ye),ve=i.forwardRef(function({className:c,items:l,orientation:a="horizontal",merged:s=!0,value:n,severity:d,gap:u,size:f,...p},C){return r.jsx(F.Root,{className:v("overmap-toggle-group",c),ref:C,value:n,orientation:a,...p,children:r.jsx(x,{width:"min-content",height:"min-content",merged:s,direction:a==="vertical"?"column":"row",gap:u,children:l.map(({children:g,...b})=>i.createElement(F.Item,{asChild:!0,...b,key:b.value},r.jsx(I,{className:v("overmap-toggle-group-button"),"aria-label":b.value,severity:d,variant:b.value===n?"solid":"soft",size:f,children:g})))})})}),me=i.memo(ve),z={wrapper:"_wrapper_o13vb_1",slideRight:"_slideRight_o13vb_1"},Pe=i.forwardRef(function({title:c,description:l,icon:a,severity:s="primary",size:n,onClose:d,...u},f){const p=w(s),C=i.useCallback(g=>{!g&&d&&d()},[d]);return r.jsx(O.Root,{asChild:!0,ref:f,...u,onOpenChange:C,children:r.jsx(e.Callout.Root,{className:v("overmap-toast",z.wrapper),variant:"surface",color:p,size:n,children:r.jsxs(e.Flex,{width:"100%",align:"center",gap:"4",justify:"between",children:[r.jsxs(e.Flex,{align:"center",gap:"4",children:[r.jsx(e.Callout.Icon,{children:a||r.jsx(T.InfoCircledIcon,{})}),r.jsxs(e.Flex,{direction:"column",gap:"0",children:[r.jsx(O.Title,{asChild:!0,children:r.jsx(e.Callout.Text,{weight:"bold",children:c})}),r.jsx(O.Description,{asChild:!0,children:r.jsx(e.Callout.Text,{weight:"light",children:l})})]})]}),r.jsx(O.Close,{asChild:!0,children:r.jsx(I,{className:z.closeButton,"aria-label":"Close",variant:"ghost",size:"small",severity:s,children:r.jsx(T.Cross2Icon,{})})})]})})})}),q=i.memo(function({children:c,...l}){return r.jsx(O.Provider,{swipeDirection:"right",swipeThreshold:75,...l,children:c})}),E=i.memo(Pe),V=O.Viewport,H=i.createContext({}),we=i.memo(function({children:c,viewportClass:l,hotkey:a,duration:s=1e4,...n}){const[d,u]=i.useState([]),f=i.useCallback(h=>{u(P=>[...P,h])},[]),p=i.useCallback(h=>{f({severity:"primary",...h})},[f]),C=i.useCallback(h=>{f({severity:"success",...h})},[f]),g=i.useCallback(h=>{f({severity:"danger",...h})},[f]),b=i.useCallback(h=>{f({severity:"info",...h})},[f]),m=i.useCallback(h=>{const P=[...d];P.splice(h,1),u(()=>P)},[d]),y={showToast:f,showPrimary:p,showSuccess:C,showError:g,showInfo:b};return r.jsx(H.Provider,{value:y,children:r.jsxs(q,{duration:s,...n,children:[r.jsx(V,{className:l,hotkey:a}),d.map((h,P)=>r.jsx(E,{...h,onClose:()=>m(P)},P)),c]})})}),Oe={tokens:"_tokens_552zu_2"},Te=i.memo(i.forwardRef((t,c)=>{const{panelBackground:l="solid",radius:a="full",className:s,...n}=t;return r.jsx(e.Theme,{className:v(s,Oe.tokens),panelBackground:l,radius:a,ref:c,...n})}));Object.defineProperty(o,"AccessibleIcon",{enumerable:!0,get:()=>e.AccessibleIcon}),Object.defineProperty(o,"AspectRatio",{enumerable:!0,get:()=>e.AspectRatio}),Object.defineProperty(o,"Avatar",{enumerable:!0,get:()=>e.Avatar}),Object.defineProperty(o,"Blockquote",{enumerable:!0,get:()=>e.Blockquote}),Object.defineProperty(o,"Box",{enumerable:!0,get:()=>e.Box}),Object.defineProperty(o,"Callout",{enumerable:!0,get:()=>e.Callout}),Object.defineProperty(o,"Card",{enumerable:!0,get:()=>e.Card}),Object.defineProperty(o,"Checkbox",{enumerable:!0,get:()=>e.Checkbox}),Object.defineProperty(o,"Code",{enumerable:!0,get:()=>e.Code}),Object.defineProperty(o,"Container",{enumerable:!0,get:()=>e.Container}),Object.defineProperty(o,"ContextMenu",{enumerable:!0,get:()=>e.ContextMenu}),Object.defineProperty(o,"DropdownMenu",{enumerable:!0,get:()=>e.DropdownMenu}),Object.defineProperty(o,"Em",{enumerable:!0,get:()=>e.Em}),Object.defineProperty(o,"Flex",{enumerable:!0,get:()=>e.Flex}),Object.defineProperty(o,"Grid",{enumerable:!0,get:()=>e.Grid}),Object.defineProperty(o,"Heading",{enumerable:!0,get:()=>e.Heading}),Object.defineProperty(o,"HoverCard",{enumerable:!0,get:()=>e.HoverCard}),Object.defineProperty(o,"Inset",{enumerable:!0,get:()=>e.Inset}),Object.defineProperty(o,"Kbd",{enumerable:!0,get:()=>e.Kbd}),Object.defineProperty(o,"Link",{enumerable:!0,get:()=>e.Link}),Object.defineProperty(o,"Portal",{enumerable:!0,get:()=>e.Portal}),Object.defineProperty(o,"Quote",{enumerable:!0,get:()=>e.Quote}),Object.defineProperty(o,"RadioGroup",{enumerable:!0,get:()=>e.RadioGroup}),Object.defineProperty(o,"ScrollArea",{enumerable:!0,get:()=>e.ScrollArea}),Object.defineProperty(o,"Section",{enumerable:!0,get:()=>e.Section}),Object.defineProperty(o,"Separator",{enumerable:!0,get:()=>e.Separator}),Object.defineProperty(o,"Slider",{enumerable:!0,get:()=>e.Slider}),Object.defineProperty(o,"Slot",{enumerable:!0,get:()=>e.Slot}),Object.defineProperty(o,"Strong",{enumerable:!0,get:()=>e.Strong}),Object.defineProperty(o,"Switch",{enumerable:!0,get:()=>e.Switch}),Object.defineProperty(o,"Table",{enumerable:!0,get:()=>e.Table}),Object.defineProperty(o,"Tabs",{enumerable:!0,get:()=>e.Tabs}),Object.defineProperty(o,"Text",{enumerable:!0,get:()=>e.Text}),Object.defineProperty(o,"TextField",{enumerable:!0,get:()=>e.TextField}),Object.defineProperty(o,"Theme",{enumerable:!0,get:()=>e.Theme}),Object.defineProperty(o,"Tooltip",{enumerable:!0,get:()=>e.Tooltip}),Object.defineProperty(o,"VisuallyHidden",{enumerable:!0,get:()=>e.VisuallyHidden}),Object.defineProperty(o,"updateThemeAppearanceClass",{enumerable:!0,get:()=>e.updateThemeAppearanceClass}),Object.defineProperty(o,"useThemeContext",{enumerable:!0,get:()=>e.useThemeContext}),o.AlertDialog=G,o.AlertDialogContent=B,o.AlertDialogProvider=ae,o.Badge=Y,o.Button=A,o.ButtonGroup=x,o.DefaultTheme=Te,o.Dialog=te,o.IconButton=I,o.Input=ge,o.Popover=be,o.Select=de,o.TextArea=he,o.Toast=E,o.ToastContext=H,o.ToastContextProvider=we,o.ToastProvider=q,o.ToastViewport=V,o.ToggleGroup=me,o.useAlertDialog=ce,o.useSeverityColor=w,Object.keys(N).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:()=>N[t]})}),Object.keys(T).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:()=>T[t]})}),Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
5
|
+
*/(function(t){(function(){var c={}.hasOwnProperty;function l(){for(var a=[],u=0;u<arguments.length;u++){var n=arguments[u];if(n){var d=typeof n;if(d==="string"||d==="number")a.push(n);else if(Array.isArray(n)){if(n.length){var s=l.apply(null,n);s&&a.push(s)}}else if(d==="object"){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){a.push(n.toString());continue}for(var f in n)c.call(n,f)&&n[f]&&a.push(f)}}}return a.join(" ")}t.exports?(l.default=l,t.exports=l):window.classNames=l})()})(L);var U=L.exports;const v=J(U);function j(t,c){if(typeof t=="object"){if(!("initial"in t))throw new Error("Expected initial property to be set in Responsive object");return Object.fromEntries(Object.entries(t).map(([l,a])=>[l,c[a]]))}else return c[t]}const W={success:"green",danger:"red",info:"gray"},w=t=>{const c=e.useThemeContext();return t==="primary"?c.accentColor:W[t]},X=i.forwardRef(function({className:c,severity:l="primary",rounded:a,color:u,children:n,...d},s){const f=w(l);return r.jsx(e.Badge,{className:v("overmap-badge",c),ref:s,color:u||f,radius:a?"full":void 0,...d,children:n})}),Y=i.memo(X),S={fluid:"_fluid_r73gr_1",hoverSpin90Clockwise:"_hoverSpin90Clockwise_r73gr_15",hoverSpin180Clockwise:"_hoverSpin180Clockwise_r73gr_25",hoverSpin360Clockwise:"_hoverSpin360Clockwise_r73gr_35"},M={spin90Clockwise:S.hoverSpin90Clockwise,spin180Clockwise:S.hoverSpin180Clockwise,spin360Clockwise:S.hoverSpin360Clockwise},k={small:"1",medium:"2",large:"3"},Z=i.forwardRef(function({className:c,fluid:l,size:a="medium",severity:u="primary",hoverEffects:n,type:d="button",...s},f){const p=w(u),C=(n==null?void 0:n.map(g=>M[g]))||[];return r.jsx(e.Button,{ref:f,className:v(c,C,{[S.fluid]:l}),color:p,size:j(a,k),type:d,...s})}),A=i.memo(Z),R=i.forwardRef(function({className:c,children:l,size:a="medium",severity:u="primary",hoverEffects:n,type:d="button",...s},f){const p=w(u),C=(n==null?void 0:n.map(g=>M[g]))||[];return r.jsx(e.IconButton,{className:v(c,C,S.default),ref:f,color:p,size:j(a,k),type:d,...s,children:l})}),I=i.memo(R),ee={merged:"_merged_f4366_1"},oe={row:{small:"4",medium:"4",large:"5"},column:{small:"2",medium:"3",large:"4"}},re=i.forwardRef(function({className:c,merged:l=!1,children:a,gap:u="2",direction:n="row",severity:d="primary",size:s="medium",variant:f="solid",hoverEffects:p,...C},g){return r.jsx(e.Flex,{className:v("overmap-button-group",c,{[ee.merged]:l}),ref:g,gap:l?f==="ghost"?j(s,oe[n]):"0":u,direction:n,"data-direction":n,...C,children:a.map((b,m)=>b.type===A||b.type===I?i.cloneElement(b,{key:m,size:s,severity:d,variant:f,hoverEffects:p}):b)})}),x=i.memo(re),ne=i.memo(function(c){const{title:l,description:a,content:u,closeDialog:n}=c;return r.jsxs(e.Flex,{direction:"column",gap:"2",children:[r.jsxs(e.Flex,{direction:"column",gap:"1",children:[r.jsxs(e.Flex,{justify:"between",children:[r.jsx(e.Dialog.Title,{mb:"0",children:l}),r.jsx(e.Dialog.Close,{children:r.jsx(e.IconButton,{color:"gray",variant:"ghost","aria-label":"Close",children:r.jsx(O.Cross1Icon,{})})})]}),r.jsx(e.Dialog.Description,{children:a})]}),u(n)]})}),te=i.memo(function(c){const{children:l,size:a,onOpen:u,onCloseInterrupt:n,...d}=c,[s,f]=i.useState(!1),p=i.useCallback(g=>{if(g&&u)u();else if(!g&&n)return n(()=>f(!1));f(g)},[u,n]),C=i.useCallback(g=>{if(g!=null&&g.force)return f(!1);p(!1)},[p]);return r.jsxs(e.Dialog.Root,{open:s,onOpenChange:p,children:[r.jsx(e.Dialog.Content,{size:a,children:r.jsx(ne,{closeDialog:C,...d})}),l(e.Dialog.Trigger)]})}),$=t=>r.jsx(e.AlertDialog.Title,{mb:"0",...t}),le=t=>{const{title:c,description:l,actionText:a="Confirm",cancelText:u="Cancel",onAction:n,onCancel:d,severity:s}=t;return r.jsxs(e.Flex,{direction:"column",gap:"2",children:[r.jsxs(e.Flex,{direction:"column",gap:"1",children:[r.jsx($,{children:c}),r.jsx(e.AlertDialog.Description,{children:l})]}),r.jsxs(e.Flex,{gap:"3",mt:"4",justify:"end",children:[r.jsx(e.AlertDialog.Cancel,{children:r.jsx(A,{variant:"soft",severity:"info",onClick:d,children:u})}),r.jsx(e.AlertDialog.Action,{children:r.jsx(A,{variant:"solid",severity:s,onClick:n,children:a})})]})]})},G=i.memo(function(c){const{open:l,setOpen:a,children:u,...n}=c,d=i.useMemo(()=>({close:()=>a(!1),Title:$,Description:e.AlertDialog.Description}),[a]);return r.jsxs(e.AlertDialog.Root,{open:l,onOpenChange:a,children:[r.jsx(e.AlertDialog.Content,{children:"content"in n?n.content(d):r.jsx(le,{...n})}),u]})}),B=i.createContext(()=>{throw new Error("No AlertDialogProvider found")}),ie={content:()=>null},ae=i.memo(function({children:c}){const[l,a]=i.useState(!1),[u,n]=i.useState(ie),d=i.useCallback(s=>{if(l)throw new Error("AlertDialog is already open");n(s),a(!0)},[l]);return r.jsx(G,{open:l,setOpen:a,...u,children:r.jsx(B.Provider,{value:d,children:c})})}),ce=()=>i.useContext(B),ue={fluid:"_fluid_7n1wr_1"},se=i.forwardRef(function({className:c,fluid:l,size:a="medium",variant:u="surface",severity:n="primary",placeholder:d="Select",side:s,items:f=[],value:p,id:C,...g},b){const m=i.useMemo(()=>j(a,k),[a]),y=w(n);return i.createElement(e.Select.Root,{size:m,...g,key:p===void 0?1:0,value:p},r.jsx(e.Select.Trigger,{className:v(c,{[ue.fluid]:l}),id:C,ref:b,variant:u,placeholder:d,color:y}),r.jsx(e.Select.Content,{side:s,position:"popper",variant:u!=="surface"?"soft":"solid",color:y,children:f.map(({label:h,value:P,...Oe})=>r.jsx(e.Select.Item,{value:P,...Oe,children:h},P))}))}),de=i.memo(se),_={accommodateCharCount:"_accommodateCharCount_fni4k_1",default:"_default_fni4k_5",noLeftIcon:"_noLeftIcon_fni4k_9",noRightIcon:"_noRightIcon_fni4k_13",charCount:"_charCount_fni4k_17"},fe=i.forwardRef(function({className:c,leftIcon:l,rightIcon:a,size:u="medium",showInputLength:n,value:d,variant:s,severity:f="primary",...p},C){const g=i.useMemo(()=>j(u,k),[u]),b=w(f),m=n||n===void 0&&p.maxLength!==void 0,y=d!==void 0?d.toString():void 0;return r.jsxs(e.TextField.Root,{className:v({[_.accommodateCharCount]:m}),size:g,variant:s,color:b,children:[r.jsx(e.TextField.Slot,{children:l}),r.jsx(e.TextField.Input,{className:v(_.default,c,{[_.noLeftIcon]:!l,[_.noRightIcon]:!a}),ref:C,size:g,variant:s,color:b,...p}),r.jsx(e.TextField.Slot,{children:a}),m&&r.jsx(e.Text,{as:"p",className:_.charCount,size:"1",color:"gray",children:p.maxLength!==void 0?`${y==null?void 0:y.length}/${p.maxLength}`:`${y==null?void 0:y.length}`})]})}),ge=i.memo(fe),pe=i.forwardRef(function({defaultOpen:c=!1,modal:l=!1,content:a,children:u,...n},d){return r.jsxs(e.Popover.Root,{defaultOpen:c,modal:l,children:[r.jsx(e.Popover.Trigger,{children:u}),r.jsx(e.Popover.Content,{ref:d,...n,children:a(e.Popover.Close)})]})}),be=i.memo(pe),Ce={charCount:"_charCount_17uut_1"},ye=i.forwardRef(function({className:c,showInputLength:l,inputLengthTemplate:a,value:u,severity:n="primary",resize:d,...s},f){const p=w(n),C=w("info"),g=l||l===void 0&&(s.maxLength!==void 0||s.minLength!==void 0),b=u!==void 0?u.toString():"",m=i.useMemo(()=>{if(a){let y=a.replace("{current}",b.length.toString());return s.minLength!==void 0&&(y=y.replace("{min}",s.minLength.toString())),s.maxLength!==void 0&&(y=y.replace("{max}",s.maxLength.toString())),y}return b.length},[a,s.maxLength,s.minLength,b.length]);return r.jsxs(r.Fragment,{children:[r.jsx(e.TextArea,{className:v("overmap-textarea",c),style:{resize:d},ref:f,value:u,color:p,...s}),g&&r.jsx(e.Text,{as:"p",className:Ce.charCount,color:C,align:"right",children:m})]})}),he=i.memo(ye),ve=i.forwardRef(function({className:c,items:l,orientation:a="horizontal",merged:u=!0,value:n,severity:d,gap:s,size:f,...p},C){return r.jsx(F.Root,{className:v("overmap-toggle-group",c),ref:C,value:n,orientation:a,...p,children:r.jsx(x,{width:"min-content",height:"min-content",merged:u,direction:a==="vertical"?"column":"row",gap:s,children:l.map(({children:g,...b})=>i.createElement(F.Item,{asChild:!0,...b,key:b.value},r.jsx(I,{className:v("overmap-toggle-group-button"),"aria-label":b.value,severity:d,variant:b.value===n?"solid":"soft",size:f,children:g})))})})}),me=i.memo(ve),z={wrapper:"_wrapper_o13vb_1",slideRight:"_slideRight_o13vb_1"},Pe=i.forwardRef(function({title:c,description:l,icon:a,severity:u="primary",size:n,onClose:d,...s},f){const p=w(u),C=i.useCallback(g=>{!g&&d&&d()},[d]);return r.jsx(T.Root,{asChild:!0,ref:f,...s,onOpenChange:C,children:r.jsx(e.Callout.Root,{className:v("overmap-toast",z.wrapper),variant:"surface",color:p,size:n,children:r.jsxs(e.Flex,{width:"100%",align:"center",gap:"4",justify:"between",children:[r.jsxs(e.Flex,{align:"center",gap:"4",children:[r.jsx(e.Callout.Icon,{children:a||r.jsx(O.InfoCircledIcon,{})}),r.jsxs(e.Flex,{direction:"column",gap:"0",children:[r.jsx(T.Title,{asChild:!0,children:r.jsx(e.Callout.Text,{weight:"bold",children:c})}),r.jsx(T.Description,{asChild:!0,children:r.jsx(e.Callout.Text,{weight:"light",children:l})})]})]}),r.jsx(T.Close,{asChild:!0,children:r.jsx(I,{className:z.closeButton,"aria-label":"Close",variant:"ghost",size:"small",severity:u,children:r.jsx(O.Cross2Icon,{})})})]})})})}),q=i.memo(function({children:c,...l}){return r.jsx(T.Provider,{swipeDirection:"right",swipeThreshold:75,...l,children:c})}),E=i.memo(Pe),V=T.Viewport,H=i.createContext({}),we=i.memo(function({children:c,viewportClass:l,hotkey:a,duration:u=1e4,...n}){const[d,s]=i.useState([]),f=i.useCallback(h=>{s(P=>[...P,h])},[]),p=i.useCallback(h=>{f({severity:"primary",...h})},[f]),C=i.useCallback(h=>{f({severity:"success",...h})},[f]),g=i.useCallback(h=>{f({severity:"danger",...h})},[f]),b=i.useCallback(h=>{f({severity:"info",...h})},[f]),m=i.useCallback(h=>{const P=[...d];P.splice(h,1),s(()=>P)},[d]),y={showToast:f,showPrimary:p,showSuccess:C,showError:g,showInfo:b};return r.jsx(H.Provider,{value:y,children:r.jsxs(q,{duration:u,...n,children:[r.jsx(V,{className:l,hotkey:a}),d.map((h,P)=>r.jsx(E,{...h,onClose:()=>m(P)},P)),c]})})}),$e="",Te=i.memo(i.forwardRef((t,c)=>{const{panelBackground:l="solid",radius:a="full",...u}=t;return r.jsx(e.Theme,{panelBackground:l,radius:a,ref:c,...u})}));Object.defineProperty(o,"AccessibleIcon",{enumerable:!0,get:()=>e.AccessibleIcon}),Object.defineProperty(o,"AspectRatio",{enumerable:!0,get:()=>e.AspectRatio}),Object.defineProperty(o,"Avatar",{enumerable:!0,get:()=>e.Avatar}),Object.defineProperty(o,"Blockquote",{enumerable:!0,get:()=>e.Blockquote}),Object.defineProperty(o,"Box",{enumerable:!0,get:()=>e.Box}),Object.defineProperty(o,"Callout",{enumerable:!0,get:()=>e.Callout}),Object.defineProperty(o,"Card",{enumerable:!0,get:()=>e.Card}),Object.defineProperty(o,"Checkbox",{enumerable:!0,get:()=>e.Checkbox}),Object.defineProperty(o,"Code",{enumerable:!0,get:()=>e.Code}),Object.defineProperty(o,"Container",{enumerable:!0,get:()=>e.Container}),Object.defineProperty(o,"ContextMenu",{enumerable:!0,get:()=>e.ContextMenu}),Object.defineProperty(o,"DropdownMenu",{enumerable:!0,get:()=>e.DropdownMenu}),Object.defineProperty(o,"Em",{enumerable:!0,get:()=>e.Em}),Object.defineProperty(o,"Flex",{enumerable:!0,get:()=>e.Flex}),Object.defineProperty(o,"Grid",{enumerable:!0,get:()=>e.Grid}),Object.defineProperty(o,"Heading",{enumerable:!0,get:()=>e.Heading}),Object.defineProperty(o,"HoverCard",{enumerable:!0,get:()=>e.HoverCard}),Object.defineProperty(o,"Inset",{enumerable:!0,get:()=>e.Inset}),Object.defineProperty(o,"Kbd",{enumerable:!0,get:()=>e.Kbd}),Object.defineProperty(o,"Link",{enumerable:!0,get:()=>e.Link}),Object.defineProperty(o,"Portal",{enumerable:!0,get:()=>e.Portal}),Object.defineProperty(o,"Quote",{enumerable:!0,get:()=>e.Quote}),Object.defineProperty(o,"RadioGroup",{enumerable:!0,get:()=>e.RadioGroup}),Object.defineProperty(o,"ScrollArea",{enumerable:!0,get:()=>e.ScrollArea}),Object.defineProperty(o,"Section",{enumerable:!0,get:()=>e.Section}),Object.defineProperty(o,"Separator",{enumerable:!0,get:()=>e.Separator}),Object.defineProperty(o,"Slider",{enumerable:!0,get:()=>e.Slider}),Object.defineProperty(o,"Slot",{enumerable:!0,get:()=>e.Slot}),Object.defineProperty(o,"Strong",{enumerable:!0,get:()=>e.Strong}),Object.defineProperty(o,"Switch",{enumerable:!0,get:()=>e.Switch}),Object.defineProperty(o,"Table",{enumerable:!0,get:()=>e.Table}),Object.defineProperty(o,"Tabs",{enumerable:!0,get:()=>e.Tabs}),Object.defineProperty(o,"Text",{enumerable:!0,get:()=>e.Text}),Object.defineProperty(o,"TextField",{enumerable:!0,get:()=>e.TextField}),Object.defineProperty(o,"Theme",{enumerable:!0,get:()=>e.Theme}),Object.defineProperty(o,"Tooltip",{enumerable:!0,get:()=>e.Tooltip}),Object.defineProperty(o,"VisuallyHidden",{enumerable:!0,get:()=>e.VisuallyHidden}),Object.defineProperty(o,"updateThemeAppearanceClass",{enumerable:!0,get:()=>e.updateThemeAppearanceClass}),Object.defineProperty(o,"useThemeContext",{enumerable:!0,get:()=>e.useThemeContext}),o.AlertDialog=G,o.AlertDialogContent=B,o.AlertDialogProvider=ae,o.Badge=Y,o.Button=A,o.ButtonGroup=x,o.DefaultTheme=Te,o.Dialog=te,o.IconButton=I,o.Input=ge,o.Popover=be,o.Select=de,o.TextArea=he,o.Toast=E,o.ToastContext=H,o.ToastContextProvider=we,o.ToastProvider=q,o.ToastViewport=V,o.ToggleGroup=me,o.useAlertDialog=ce,o.useSeverityColor=w,Object.keys(N).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:()=>N[t]})}),Object.keys(O).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:()=>O[t]})}),Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
6
6
|
//# sourceMappingURL=blocks.umd.cjs.map
|
package/dist/blocks.umd.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.umd.cjs","sources":["../node_modules/classnames/index.js","../src/utils.ts","../src/Badge/Badge.tsx","../src/Buttons/constants.ts","../src/constants.ts","../src/Buttons/Button.tsx","../src/Buttons/IconButton.tsx","../src/ButtonGroup/ButtonGroup.tsx","../src/Dialogs/Dialog/DialogContent.tsx","../src/Dialogs/Dialog/Dialog.tsx","../src/Dialogs/AlertDialog/AlertDialogContent.tsx","../src/Dialogs/AlertDialog/AlertDialog.tsx","../src/Dialogs/AlertDialog/context.tsx","../src/Dialogs/AlertDialog/hooks.ts","../src/Select/Select.tsx","../src/Input/Input.tsx","../src/Popover/Popover.tsx","../src/TextArea/TextArea.tsx","../src/ToggleGroup/ToggleGroup.tsx","../src/Toast/Toast.tsx","../src/Toast/ToastContext.tsx","../src/Theme/DefaultTheme.tsx"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import { Responsive, ThemeOptions, useThemeContext } from \"@radix-ui/themes\"\nimport { Severity } from \"typings\"\n\n// applyResponsiveMapping is a helper function used to map the keys of a Radix Responsive type that can be understood\n// by a Radix component or primitive. The point of this is to leverage our own custom prop names and values while still\n// using Radix's built in Responsiveness functionality.\n/**\n * Returns an object with mapped key values or a single mapped value\n * @param value an object or string\n * @param mapping a Record mapping the object values of param value\n */\nexport function applyResponsiveMapping<T extends string, K>(value: Responsive<T>, mapping: Record<T, K>) {\n\tif (typeof value === \"object\") {\n\t\tif (!(\"initial\" in value)) {\n\t\t\t// Responsive objects require an 'initial' property to be set that acts as a default\n\t\t\tthrow new Error(\"Expected initial property to be set in Responsive object\")\n\t\t}\n\t\treturn Object.fromEntries(Object.entries(value).map(([key, _value]) => [key, mapping[_value]]))\n\t} else {\n\t\treturn mapping[value]\n\t}\n}\n\nconst nonThemeSeverityMapping = {\n\tsuccess: \"green\",\n\tdanger: \"red\",\n\tinfo: \"gray\",\n} as const\n\nexport type AccentColor = ThemeOptions[\"accentColor\"]\n\n/** Performs theme-sensitive mapping of a severity to radix color */\nexport const useSeverityColor = (severity: Severity): AccentColor => {\n\tconst theme = useThemeContext()\n\tif (severity === \"primary\") return theme.accentColor\n\n\treturn nonThemeSeverityMapping[severity]\n}\n","import { Badge as RadixBadge } from \"@radix-ui/themes\"\nimport { FC, forwardRef, memo, Ref } from \"react\"\nimport { BadgeProps } from \"./typings.ts\"\nimport classNames from \"classnames\"\nimport { useSeverityColor } from \"../utils.ts\"\n\nconst _Badge = forwardRef(function Badge(\n\t{ className, severity = \"primary\", rounded, color, children, ...rest }: BadgeProps,\n\tref: Ref<HTMLSpanElement>,\n) {\n\tconst severityColor = useSeverityColor(severity)\n\n\treturn (\n\t\t<RadixBadge\n\t\t\tclassName={classNames(\"overmap-badge\", className)}\n\t\t\tref={ref}\n\t\t\tcolor={color ? color : severityColor}\n\t\t\tradius={rounded ? \"full\" : undefined}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</RadixBadge>\n\t)\n})\n\n/** The Badge Component is a user interface element that provides visual feedback, typically displaying a small amount\n * of information. It is commonly used to indicate counts, statuses, or labels in a concise and visually appealing\n * manner. This Badge components wraps the Badge component from Radix-ui found here https://www.radix-ui.com/themes/docs/components/badge */\nexport const Badge: FC<BadgeProps> = memo(_Badge)\n","import { ButtonHoverEffect } from \"./typings.ts\"\nimport styles from \"./Button.module.sass\"\n\nexport const hoverEffectClassNameMapping: Record<ButtonHoverEffect, string | undefined> = {\n\tspin90Clockwise: styles.hoverSpin90Clockwise,\n\tspin180Clockwise: styles.hoverSpin180Clockwise,\n\tspin360Clockwise: styles.hoverSpin360Clockwise,\n}\n","import { Size } from \"./typings.ts\"\n\n// Mappings\nexport const SizeMapping: Record<Size, \"1\" | \"2\" | \"3\"> = {\n\tsmall: \"1\",\n\tmedium: \"2\",\n\tlarge: \"3\",\n}\n","import React, { FC, forwardRef } from \"react\"\nimport { ButtonProps } from \"./typings.ts\"\nimport styles from \"./Button.module.sass\"\nimport classNames from \"classnames\"\nimport { Button as RadixButton } from \"@radix-ui/themes\"\nimport { hoverEffectClassNameMapping } from \"./constants.ts\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\n\nconst _Button = forwardRef(function Button(\n\t{ className, fluid, size = \"medium\", severity = \"primary\", hoverEffects, type = \"button\", ...rest }: ButtonProps,\n\tref: React.Ref<HTMLButtonElement>,\n) {\n\tconst color = useSeverityColor(severity)\n\tconst hoverEffectClasses =\n\t\thoverEffects?.map((hoverEffect) => {\n\t\t\treturn hoverEffectClassNameMapping[hoverEffect]\n\t\t}) || []\n\n\treturn (\n\t\t<RadixButton\n\t\t\tref={ref}\n\t\t\tclassName={classNames(className, hoverEffectClasses, {\n\t\t\t\t[styles.fluid!]: fluid,\n\t\t\t})}\n\t\t\tcolor={color}\n\t\t\tsize={applyResponsiveMapping(size, SizeMapping)}\n\t\t\ttype={type}\n\t\t\t{...rest}\n\t\t/>\n\t)\n})\n\n// using FC so storybook correctly displays the component props\nconst Button: FC<ButtonProps> = React.memo(_Button)\n\nexport default Button\n","import React, { FC, forwardRef } from \"react\"\nimport { ButtonProps } from \"./typings.ts\"\nimport classNames from \"classnames\"\nimport { IconButton as RadixIconButton } from \"@radix-ui/themes\"\nimport { hoverEffectClassNameMapping } from \"./constants.ts\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\n\nimport styles from \"./Button.module.sass\"\n\ninterface IconButtonProps extends Omit<ButtonProps, \"fluid\"> {\n\t\"aria-label\": string\n}\n\nconst _Button = forwardRef(function Button(\n\t{\n\t\tclassName,\n\t\tchildren,\n\t\tsize = \"medium\",\n\t\tseverity = \"primary\",\n\t\thoverEffects,\n\t\ttype = \"button\",\n\t\t...rest\n\t}: IconButtonProps,\n\tref: React.Ref<HTMLButtonElement>,\n) {\n\tconst color = useSeverityColor(severity)\n\tconst hoverEffectClasses =\n\t\thoverEffects?.map((hoverEffect) => {\n\t\t\treturn hoverEffectClassNameMapping[hoverEffect]\n\t\t}) || []\n\n\treturn (\n\t\t<RadixIconButton\n\t\t\tclassName={classNames(className, hoverEffectClasses, styles.default)}\n\t\t\tref={ref}\n\t\t\tcolor={color}\n\t\t\tsize={applyResponsiveMapping(size, SizeMapping)}\n\t\t\ttype={type}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</RadixIconButton>\n\t)\n})\n\n// using FC so storybook correctly displays the component props\n/** The `IconButton` is a `Button` variant specifically designed for single icons. */\nconst IconButton: FC<IconButtonProps> = React.memo(_Button)\n\nexport default IconButton\n","import { FC, forwardRef, memo, Ref, cloneElement } from \"react\"\nimport { Flex } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { ButtonGroupProps } from \"./typings.ts\"\n\nimport styles from \"./ButtonGroup.module.sass\"\nimport { Size } from \"../typings.ts\"\nimport { applyResponsiveMapping } from \"../utils.ts\"\nimport { Button, IconButton } from \"../Buttons\"\n\nconst GhostVariantSizeToGapMapping: Record<\"row\" | \"column\", Record<Size, ButtonGroupProps[\"gap\"]>> = {\n\trow: { small: \"4\", medium: \"4\", large: \"5\" },\n\tcolumn: { small: \"2\", medium: \"3\", large: \"4\" },\n}\n\nconst _ButtonGroup = forwardRef(function ButtonGroup(\n\t{\n\t\tclassName,\n\t\tmerged = false,\n\t\tchildren,\n\t\tgap = \"2\",\n\t\tdirection = \"row\",\n\t\tseverity = \"primary\",\n\t\tsize = \"medium\",\n\t\tvariant = \"solid\",\n\t\thoverEffects,\n\t\t...rest\n\t}: ButtonGroupProps,\n\tref: Ref<HTMLDivElement>,\n) {\n\treturn (\n\t\t<Flex\n\t\t\tclassName={classNames(\"overmap-button-group\", className, {\n\t\t\t\t[styles.merged!]: merged,\n\t\t\t})}\n\t\t\tref={ref}\n\t\t\tgap={\n\t\t\t\tmerged\n\t\t\t\t\t? variant === \"ghost\"\n\t\t\t\t\t\t? applyResponsiveMapping(size, GhostVariantSizeToGapMapping[direction])\n\t\t\t\t\t\t: \"0\"\n\t\t\t\t\t: gap\n\t\t\t}\n\t\t\tdirection={direction}\n\t\t\tdata-direction={direction}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children.map((child, index) => {\n\t\t\t\tif (child.type === Button || child.type === IconButton) {\n\t\t\t\t\treturn cloneElement(child, { key: index, size, severity, variant, hoverEffects })\n\t\t\t\t} else {\n\t\t\t\t\treturn child\n\t\t\t\t}\n\t\t\t})}\n\t\t</Flex>\n\t)\n})\n\n/** The ButtonGroup Component is a user interface element that groups multiple buttons together for improved user\n * interaction and visual clarity. It is commonly used to present related actions or options in a compact and organized\n * manner. The ButtonGroup supports all props of the RadixUI Flex layout component besides MarginProps,\n * further documentation for the Flex layout component can be found here https://www.radix-ui.com/themes/docs/components/flex */\nexport const ButtonGroup: FC<ButtonGroupProps> = memo(_ButtonGroup)\n","import { memo } from \"react\"\nimport { Dialog, Flex, IconButton } from \"@radix-ui/themes\"\nimport { Cross1Icon } from \"@radix-ui/react-icons\"\nimport { DialogContentProps } from \"./typings\"\n\nexport const DialogContent = memo(function DialogContent(props: DialogContentProps) {\n\tconst { title, description, content, closeDialog } = props\n\treturn (\n\t\t<Flex direction=\"column\" gap=\"2\">\n\t\t\t<Flex direction=\"column\" gap=\"1\">\n\t\t\t\t<Flex justify=\"between\">\n\t\t\t\t\t<Dialog.Title mb=\"0\">{title}</Dialog.Title>\n\t\t\t\t\t<Dialog.Close>\n\t\t\t\t\t\t<IconButton color=\"gray\" variant=\"ghost\" aria-label=\"Close\">\n\t\t\t\t\t\t\t<Cross1Icon />\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t</Dialog.Close>\n\t\t\t\t</Flex>\n\t\t\t\t<Dialog.Description>{description}</Dialog.Description>\n\t\t\t</Flex>\n\t\t\t{content(closeDialog)}\n\t\t</Flex>\n\t)\n})\n","import { memo, useState, useCallback } from \"react\"\nimport { Dialog as RadixDialog } from \"@radix-ui/themes\"\nimport { DialogContent } from \"./DialogContent\"\nimport { CloseDialogWithOptions, DialogProps } from \"./typings\"\n\n/**\n * Display or collect information in a modal. Unlike the `AlertDialog`, the `Dialog`'s can be nested\n * and close when clicking outside of the dialog content.\n */\nexport const Dialog = memo(function Dialog(props: DialogProps) {\n\tconst { children, size, onOpen, onCloseInterrupt, ...contentProps } = props\n\tconst [open, setOpen] = useState(false)\n\n\tconst handleOpenChange = useCallback(\n\t\t(next: boolean) => {\n\t\t\tif (next && onOpen) {\n\t\t\t\tonOpen()\n\t\t\t} else if (!next && onCloseInterrupt) {\n\t\t\t\t// closes the dialog, bypassing the checks in `handleOpenChange`\n\t\t\t\tconst confirmClose = () => setOpen(false)\n\n\t\t\t\t// if onCloseInterrupt is passed, bypass the standard close behavior and require\n\t\t\t\t// the passed `confirmClose` to close the dialog\n\t\t\t\treturn onCloseInterrupt(confirmClose)\n\t\t\t}\n\n\t\t\tsetOpen(next)\n\t\t},\n\t\t[onOpen, onCloseInterrupt],\n\t)\n\n\tconst closeDialog = useCallback<CloseDialogWithOptions>(\n\t\t(options) => {\n\t\t\tif (options?.force) {\n\t\t\t\t// bypass the checks in the `handleOpenChange` function\n\t\t\t\treturn setOpen(false)\n\t\t\t}\n\n\t\t\thandleOpenChange(false)\n\t\t},\n\t\t[handleOpenChange],\n\t)\n\n\treturn (\n\t\t<RadixDialog.Root open={open} onOpenChange={handleOpenChange}>\n\t\t\t<RadixDialog.Content size={size}>\n\t\t\t\t<DialogContent closeDialog={closeDialog} {...contentProps} />\n\t\t\t</RadixDialog.Content>\n\n\t\t\t{children(RadixDialog.Trigger)}\n\t\t</RadixDialog.Root>\n\t)\n})\n","import { AlertDialog, Flex } from \"@radix-ui/themes\"\nimport { AlertDialogStandardContent } from \"./typings\"\nimport { Button } from \"../../Buttons\"\n\n// remove the margin-bottom from the title so that Flex works as expected\nexport const Title: typeof AlertDialog.Title = ((props) => (\n\t<AlertDialog.Title mb=\"0\" {...props} />\n)) as typeof AlertDialog.Title\n\nexport const AlertDialogContent = (props: AlertDialogStandardContent) => {\n\tconst { title, description, actionText = \"Confirm\", cancelText = \"Cancel\", onAction, onCancel, severity } = props\n\treturn (\n\t\t<Flex direction=\"column\" gap=\"2\">\n\t\t\t<Flex direction=\"column\" gap=\"1\">\n\t\t\t\t<Title>{title}</Title>\n\t\t\t\t<AlertDialog.Description>{description}</AlertDialog.Description>\n\t\t\t</Flex>\n\n\t\t\t<Flex gap=\"3\" mt=\"4\" justify=\"end\">\n\t\t\t\t<AlertDialog.Cancel>\n\t\t\t\t\t<Button variant=\"soft\" severity=\"info\" onClick={onCancel}>\n\t\t\t\t\t\t{cancelText}\n\t\t\t\t\t</Button>\n\t\t\t\t</AlertDialog.Cancel>\n\t\t\t\t<AlertDialog.Action>\n\t\t\t\t\t<Button variant=\"solid\" severity={severity} onClick={onAction}>\n\t\t\t\t\t\t{actionText}\n\t\t\t\t\t</Button>\n\t\t\t\t</AlertDialog.Action>\n\t\t\t</Flex>\n\t\t</Flex>\n\t)\n}\n","import { memo, useMemo } from \"react\"\nimport { AlertDialog as RadixAlertDialog } from \"@radix-ui/themes\"\nimport { AlertDialogContentHelpers, AlertDialogProps } from \"./typings\"\nimport { AlertDialogContent, Title } from \"./AlertDialogContent\"\n\n/**\n * The AlertDialog is used to confirm an action or prompt the user for a decision.\n * Unlike the Dialog, the AlertDialog is not dismissible by clicking outside of the dialog, nor can it be nested.\n *\n * To use, place the `AlertDialogProvider` at the root of your app and use the `useAlertDialog` hook to open the dialog.\n *\n * To set the content of the dialog, use the `content` prop or pass values for the `title`, `description`, and `onAction` props.\n */\nexport const AlertDialog = memo(function AlertDialog(props: AlertDialogProps) {\n\tconst { open, setOpen, children, ...contentProps } = props\n\n\tconst helpers: AlertDialogContentHelpers = useMemo(() => {\n\t\treturn {\n\t\t\tclose: () => setOpen(false),\n\t\t\tTitle,\n\t\t\tDescription: RadixAlertDialog.Description,\n\t\t}\n\t}, [setOpen])\n\n\treturn (\n\t\t<RadixAlertDialog.Root open={open} onOpenChange={setOpen}>\n\t\t\t<RadixAlertDialog.Content>\n\t\t\t\t{\"content\" in contentProps ? contentProps.content(helpers) : <AlertDialogContent {...contentProps} />}\n\t\t\t</RadixAlertDialog.Content>\n\t\t\t{children}\n\t\t</RadixAlertDialog.Root>\n\t)\n})\n","import { createContext, memo, useState, useCallback } from \"react\"\nimport { AlertDialogContextType, AlertDialogOptions } from \"./typings\"\nimport { AlertDialog } from \"./AlertDialog\"\n\ninterface AlertDialogProviderProps {\n\tchildren: React.ReactNode\n}\n\nexport const AlertDialogContent = createContext<AlertDialogContextType>(() => {\n\tthrow new Error(\"No AlertDialogProvider found\")\n})\n\nconst initialState: AlertDialogOptions = {\n\tcontent: () => null,\n}\n\nexport const AlertDialogProvider = memo(function AlertDialogProvider({ children }: AlertDialogProviderProps) {\n\tconst [open, setOpen] = useState(false)\n\tconst [state, setState] = useState<AlertDialogOptions>(initialState)\n\n\tconst openDialog = useCallback<AlertDialogContextType>(\n\t\t(options) => {\n\t\t\tif (open) throw new Error(\"AlertDialog is already open\")\n\n\t\t\tsetState(options)\n\t\t\tsetOpen(true)\n\t\t},\n\t\t[open],\n\t)\n\n\treturn (\n\t\t<AlertDialog open={open} setOpen={setOpen} {...state}>\n\t\t\t<AlertDialogContent.Provider value={openDialog}>{children}</AlertDialogContent.Provider>\n\t\t</AlertDialog>\n\t)\n})\n","import { useContext } from \"react\"\nimport { AlertDialogContent } from \"./context\"\n\nexport const useAlertDialog = () => {\n\treturn useContext(AlertDialogContent)\n}\n","import React, { FC, forwardRef, useMemo } from \"react\"\nimport { Select as RadixSelect } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\nimport { SelectItemProps, SelectProps } from \"./typings.ts\"\n\nimport styles from \"./Select.module.sass\"\n\nconst _Select = forwardRef(function Select(\n\t{\n\t\tclassName,\n\t\tfluid,\n\t\tsize = \"medium\",\n\t\tvariant = \"surface\",\n\t\tseverity = \"primary\",\n\t\tplaceholder = \"Select\",\n\t\tside,\n\t\titems = [],\n\t\tvalue,\n\t\tid,\n\t\t...rest\n\t}: SelectProps,\n\tref: React.Ref<HTMLButtonElement>,\n) {\n\tconst mappedSize = useMemo(() => {\n\t\treturn applyResponsiveMapping(size, SizeMapping)\n\t}, [size])\n\tconst color = useSeverityColor(severity)\n\n\t// TODO: extend functionality to support grouping of items\n\t// TODO: remove key change based on value once placeholder issue it fixed in radix-ui/themes\n\treturn (\n\t\t<RadixSelect.Root size={mappedSize} {...rest} key={value === undefined ? 1 : 0} value={value}>\n\t\t\t<RadixSelect.Trigger\n\t\t\t\tclassName={classNames(className, {\n\t\t\t\t\t[styles.fluid!]: fluid,\n\t\t\t\t})}\n\t\t\t\tid={id}\n\t\t\t\tref={ref}\n\t\t\t\tvariant={variant}\n\t\t\t\tplaceholder={placeholder}\n\t\t\t\tcolor={color}\n\t\t\t/>\n\t\t\t<RadixSelect.Content\n\t\t\t\tside={side}\n\t\t\t\tposition=\"popper\"\n\t\t\t\tvariant={variant !== \"surface\" ? \"soft\" : \"solid\"}\n\t\t\t\tcolor={color}\n\t\t\t>\n\t\t\t\t{items.map(({ label, value, ...rest }: SelectItemProps) => (\n\t\t\t\t\t<RadixSelect.Item key={value} value={value} {...rest}>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</RadixSelect.Item>\n\t\t\t\t))}\n\t\t\t</RadixSelect.Content>\n\t\t</RadixSelect.Root>\n\t)\n})\nexport const Select: FC<SelectProps> = React.memo(_Select)\n","import React, { FC, forwardRef, useMemo } from \"react\"\nimport { Text, TextField as RadixTextField } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\nimport { InputProps } from \"./typings.ts\"\n\nimport styles from \"./Input.module.sass\"\n\nconst _Input = forwardRef(function Input(\n\t{\n\t\tclassName,\n\t\tleftIcon,\n\t\trightIcon,\n\t\tsize = \"medium\",\n\t\tshowInputLength,\n\t\tvalue,\n\t\tvariant,\n\t\tseverity = \"primary\",\n\t\t...rest\n\t}: InputProps,\n\tref: React.Ref<HTMLInputElement>,\n) {\n\tconst computedSize = useMemo(() => {\n\t\treturn applyResponsiveMapping(size, SizeMapping)\n\t}, [size])\n\n\tconst color = useSeverityColor(severity)\n\n\tconst displayInputLength = showInputLength || (showInputLength === undefined && rest.maxLength !== undefined)\n\tconst valueAsString = value !== undefined ? value.toString() : undefined\n\n\treturn (\n\t\t<RadixTextField.Root\n\t\t\tclassName={classNames({\n\t\t\t\t[styles.accommodateCharCount!]: displayInputLength,\n\t\t\t})}\n\t\t\tsize={computedSize}\n\t\t\tvariant={variant}\n\t\t\tcolor={color}\n\t\t>\n\t\t\t<RadixTextField.Slot>{leftIcon}</RadixTextField.Slot>\n\t\t\t<RadixTextField.Input\n\t\t\t\tclassName={classNames(styles.default, className, {\n\t\t\t\t\t[styles.noLeftIcon!]: !leftIcon,\n\t\t\t\t\t[styles.noRightIcon!]: !rightIcon,\n\t\t\t\t})}\n\t\t\t\tref={ref}\n\t\t\t\tsize={computedSize}\n\t\t\t\tvariant={variant}\n\t\t\t\tcolor={color}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t\t<RadixTextField.Slot>{rightIcon}</RadixTextField.Slot>\n\t\t\t{displayInputLength && (\n\t\t\t\t<Text as=\"p\" className={styles.charCount} size=\"1\" color=\"gray\">\n\t\t\t\t\t{rest.maxLength !== undefined\n\t\t\t\t\t\t? `${valueAsString?.length}/${rest.maxLength}`\n\t\t\t\t\t\t: `${valueAsString?.length}`}\n\t\t\t\t</Text>\n\t\t\t)}\n\t\t</RadixTextField.Root>\n\t)\n})\nexport const Input: FC<InputProps> = React.memo(_Input)\n","import React, { forwardRef, FC } from \"react\"\nimport { Popover as RadixPopover } from \"@radix-ui/themes\"\nimport { PopoverProps } from \"./typings.ts\"\n\nconst _Popover = forwardRef(function Popover(\n\t{ defaultOpen = false, modal = false, content, children, ...rest }: PopoverProps,\n\tref: React.Ref<HTMLDivElement>,\n) {\n\treturn (\n\t\t<RadixPopover.Root defaultOpen={defaultOpen} modal={modal}>\n\t\t\t<RadixPopover.Trigger>{children}</RadixPopover.Trigger>\n\t\t\t<RadixPopover.Content ref={ref} {...rest}>\n\t\t\t\t{content(RadixPopover.Close)}\n\t\t\t</RadixPopover.Content>\n\t\t</RadixPopover.Root>\n\t)\n})\nexport const Popover: FC<PopoverProps> = React.memo(_Popover)\n","import { FC, forwardRef, memo, Ref, useMemo } from \"react\"\nimport { Text, TextArea as RadixTextArea } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { TextAreaProps } from \"./typings.ts\"\n\nimport styles from \"./Textarea.module.sass\"\nimport { useSeverityColor } from \"../utils.ts\"\n\nconst _TextArea = forwardRef(function TextArea(\n\t{ className, showInputLength, inputLengthTemplate, value, severity = \"primary\", resize, ...rest }: TextAreaProps,\n\tref: Ref<HTMLTextAreaElement>,\n) {\n\tconst severityColor = useSeverityColor(severity)\n\tconst infoColor = useSeverityColor(\"info\")\n\n\tconst displayInputLength =\n\t\tshowInputLength ||\n\t\t(showInputLength === undefined && (rest.maxLength !== undefined || rest.minLength !== undefined))\n\tconst valueAsString = value !== undefined ? value.toString() : \"\"\n\n\tconst displayInputLengthValue = useMemo(() => {\n\t\tif (inputLengthTemplate) {\n\t\t\tlet template = inputLengthTemplate.replace(\"{current}\", valueAsString.length.toString())\n\t\t\tif (rest.minLength !== undefined) {\n\t\t\t\ttemplate = template.replace(\"{min}\", rest.minLength.toString())\n\t\t\t}\n\t\t\tif (rest.maxLength !== undefined) {\n\t\t\t\ttemplate = template.replace(\"{max}\", rest.maxLength.toString())\n\t\t\t}\n\t\t\treturn template\n\t\t}\n\t\treturn valueAsString.length\n\t}, [inputLengthTemplate, rest.maxLength, rest.minLength, valueAsString.length])\n\n\treturn (\n\t\t<>\n\t\t\t<RadixTextArea\n\t\t\t\tclassName={classNames(\"overmap-textarea\", className)}\n\t\t\t\tstyle={{ resize: resize }}\n\t\t\t\tref={ref}\n\t\t\t\tvalue={value}\n\t\t\t\tcolor={severityColor}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t\t{displayInputLength && (\n\t\t\t\t<Text as=\"p\" className={styles.charCount} color={infoColor} align=\"right\">\n\t\t\t\t\t{displayInputLengthValue}\n\t\t\t\t</Text>\n\t\t\t)}\n\t\t</>\n\t)\n})\n\n/** The TextArea Component is a user interface element that allows users to input and edit multi-line text.\n It is commonly used in forms, chat applications, and other scenarios where longer text inputs are required.\n This TextArea is a wrapper of the RadixUI TextArea component found here https://www.radix-ui.com/themes/docs/components/text-area.\n */\nexport const TextArea: FC<TextAreaProps> = memo(_TextArea)\n","import { FC, forwardRef, memo, Ref } from \"react\"\nimport { Item, Root } from \"@radix-ui/react-toggle-group\"\nimport { ToggleGroupItemProps, ToggleGroupSingleProps } from \"./typings.ts\"\nimport { IconButton } from \"../Buttons\"\nimport classNames from \"classnames\"\nimport { ButtonGroup } from \"../ButtonGroup\"\n\nconst _ToggleGroup = forwardRef(function ToggleGroup(\n\t{\n\t\tclassName,\n\t\titems,\n\t\torientation = \"horizontal\",\n\t\tmerged = true,\n\t\tvalue,\n\t\tseverity,\n\t\tgap,\n\t\tsize,\n\t\t...rest\n\t}: ToggleGroupSingleProps,\n\tref: Ref<HTMLDivElement>,\n) {\n\treturn (\n\t\t<Root\n\t\t\tclassName={classNames(\"overmap-toggle-group\", className)}\n\t\t\tref={ref}\n\t\t\tvalue={value}\n\t\t\torientation={orientation}\n\t\t\t{...rest}\n\t\t>\n\t\t\t<ButtonGroup\n\t\t\t\twidth=\"min-content\"\n\t\t\t\theight=\"min-content\"\n\t\t\t\tmerged={merged}\n\t\t\t\tdirection={orientation === \"vertical\" ? \"column\" : \"row\"}\n\t\t\t\tgap={gap}\n\t\t\t>\n\t\t\t\t{items.map(({ children, ...rest }: ToggleGroupItemProps) => (\n\t\t\t\t\t<Item asChild {...rest} key={rest.value}>\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\tclassName={classNames(\"overmap-toggle-group-button\")}\n\t\t\t\t\t\t\taria-label={rest.value}\n\t\t\t\t\t\t\tseverity={severity}\n\t\t\t\t\t\t\tvariant={rest.value === value ? \"solid\" : \"soft\"}\n\t\t\t\t\t\t\tsize={size}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t</Item>\n\t\t\t\t))}\n\t\t\t</ButtonGroup>\n\t\t</Root>\n\t)\n})\n\n/** The Toggle Group Component is a user interface element that allows users to select a single option from a set of\n * mutually exclusive choices. It is commonly used in situations where users need to make a single selection from a\n * predefined list of options. This component is built using the ButtonGroup and IconButton components in combination\n * with the Radix Toggle Group primitive found here https://www.radix-ui.com/primitives/docs/components/toggle-group */\nexport const ToggleGroup: FC<ToggleGroupSingleProps> = memo(_ToggleGroup)\n","import { FC, forwardRef, memo, Ref, useCallback } from \"react\"\nimport * as RadixToast from \"@radix-ui/react-toast\"\nimport { Callout, Flex } from \"@radix-ui/themes\"\nimport { Cross2Icon, InfoCircledIcon } from \"@radix-ui/react-icons\"\nimport classNames from \"classnames\"\nimport { IconButton } from \"../Buttons\"\nimport { ToastProps, ToastProviderProps } from \"./typings.ts\"\nimport { useSeverityColor } from \"../utils.ts\"\n\nimport styles from \"./Toast.module.sass\"\n\nconst _Toast = forwardRef(function Toast(\n\t{ title, description, icon, severity = \"primary\", size, onClose, ...rest }: ToastProps,\n\tref: Ref<HTMLLIElement>,\n) {\n\tconst color = useSeverityColor(severity)\n\tconst handleOpenChange = useCallback(\n\t\t(open: boolean) => {\n\t\t\tif (!open && onClose) onClose()\n\t\t},\n\t\t[onClose],\n\t)\n\n\treturn (\n\t\t<RadixToast.Root asChild ref={ref} {...rest} onOpenChange={handleOpenChange}>\n\t\t\t<Callout.Root\n\t\t\t\tclassName={classNames(\"overmap-toast\", styles.wrapper)}\n\t\t\t\tvariant=\"surface\"\n\t\t\t\tcolor={color}\n\t\t\t\tsize={size}\n\t\t\t>\n\t\t\t\t<Flex width=\"100%\" align=\"center\" gap=\"4\" justify=\"between\">\n\t\t\t\t\t<Flex align=\"center\" gap=\"4\">\n\t\t\t\t\t\t<Callout.Icon>{icon || <InfoCircledIcon />}</Callout.Icon>\n\t\t\t\t\t\t<Flex direction=\"column\" gap=\"0\">\n\t\t\t\t\t\t\t<RadixToast.Title asChild>\n\t\t\t\t\t\t\t\t<Callout.Text weight=\"bold\">{title}</Callout.Text>\n\t\t\t\t\t\t\t</RadixToast.Title>\n\t\t\t\t\t\t\t<RadixToast.Description asChild>\n\t\t\t\t\t\t\t\t<Callout.Text weight=\"light\">{description}</Callout.Text>\n\t\t\t\t\t\t\t</RadixToast.Description>\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</Flex>\n\t\t\t\t\t<RadixToast.Close asChild>\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\tclassName={styles.closeButton}\n\t\t\t\t\t\t\taria-label=\"Close\"\n\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tseverity={severity}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Cross2Icon />\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t</RadixToast.Close>\n\t\t\t\t</Flex>\n\t\t\t</Callout.Root>\n\t\t</RadixToast.Root>\n\t)\n})\n\nexport const ToastProvider: FC<ToastProviderProps> = memo(function ToastProvider({\n\tchildren,\n\t...rest\n}: ToastProviderProps) {\n\treturn (\n\t\t<RadixToast.Provider swipeDirection=\"right\" swipeThreshold={75} {...rest}>\n\t\t\t{children}\n\t\t</RadixToast.Provider>\n\t)\n})\n\nexport const Toast: FC<ToastProps> = memo(_Toast)\nexport const ToastViewport: FC<RadixToast.ToastViewportProps> = RadixToast.Viewport\n","import { memo, createContext, useState, useCallback, FC } from \"react\"\nimport { IToastContext, SimpleToastMessage, ToastContextProviderProps, ToastProps } from \"./typings.ts\"\nimport { Toast, ToastProvider, ToastViewport } from \"./Toast.tsx\"\n\nexport const ToastContext = createContext({} as IToastContext)\n\nexport const ToastContextProvider: FC<ToastContextProviderProps> = memo(function ToastContextProvider({\n\tchildren,\n\t// Use this class to change where the viewport for the toasts should be\n\tviewportClass,\n\thotkey,\n\t// Default duration value for all Toasts\n\tduration = 10000,\n\t...rest\n}: ToastContextProviderProps) {\n\tconst [toasts, setToasts] = useState<ToastProps[]>([])\n\n\tconst showToast = useCallback((toastProps: ToastProps) => {\n\t\tsetToasts((prevToasts) => [...prevToasts, toastProps])\n\t}, [])\n\n\tconst showPrimary = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"primary\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst showSuccess = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"success\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst showError = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"danger\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst showInfo = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"info\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst deleteToastAtIndex = useCallback(\n\t\t(index: number) => {\n\t\t\tconst tempToasts = [...toasts]\n\t\t\ttempToasts.splice(index, 1)\n\t\t\tsetToasts(() => tempToasts)\n\t\t},\n\t\t[toasts],\n\t)\n\n\tconst toastContextValue = {\n\t\tshowToast,\n\t\tshowPrimary,\n\t\tshowSuccess,\n\t\tshowError,\n\t\tshowInfo,\n\t}\n\n\treturn (\n\t\t<ToastContext.Provider value={toastContextValue}>\n\t\t\t<ToastProvider duration={duration} {...rest}>\n\t\t\t\t<ToastViewport className={viewportClass} hotkey={hotkey} />\n\t\t\t\t{toasts.map((toastProps, index) => (\n\t\t\t\t\t<Toast key={index} {...toastProps} onClose={() => deleteToastAtIndex(index)} />\n\t\t\t\t))}\n\t\t\t\t{children}\n\t\t\t</ToastProvider>\n\t\t</ToastContext.Provider>\n\t)\n})\n","import { Theme } from \"@radix-ui/themes\"\nimport { ComponentProps, FC, forwardRef, memo } from \"react\"\n// css file contains updates to the default radix tokens\nimport styles from \"./DefaultTheme.module.sass\"\nimport classNames from \"classnames\"\n\nexport type DefaultThemeProps = ComponentProps<typeof Theme>\n\nexport const DefaultTheme: FC<DefaultThemeProps> = memo(\n\tforwardRef<HTMLDivElement, DefaultThemeProps>((props, ref) => {\n\t\tconst { panelBackground = \"solid\", radius = \"full\", className, ...rest } = props\n\t\treturn (\n\t\t\t<Theme\n\t\t\t\tclassName={classNames(className, styles.tokens)}\n\t\t\t\tpanelBackground={panelBackground}\n\t\t\t\tradius={radius}\n\t\t\t\tref={ref}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t)\n\t}),\n)\n"],"names":["hasOwn","classNames","classes","i","arg","argType","inner","key","module","applyResponsiveMapping","value","mapping","_value","nonThemeSeverityMapping","useSeverityColor","severity","theme","useThemeContext","_Badge","forwardRef","className","rounded","color","children","rest","ref","severityColor","jsx","RadixBadge","Badge","memo","hoverEffectClassNameMapping","styles","SizeMapping","_Button","fluid","size","hoverEffects","type","hoverEffectClasses","hoverEffect","RadixButton","Button","React","RadixIconButton","IconButton","GhostVariantSizeToGapMapping","_ButtonGroup","merged","gap","direction","variant","Flex","child","index","cloneElement","ButtonGroup","DialogContent","props","title","description","content","closeDialog","jsxs","Dialog","Cross1Icon","onOpen","onCloseInterrupt","contentProps","open","setOpen","useState","handleOpenChange","useCallback","next","options","RadixDialog","Title","AlertDialog","AlertDialogContent","actionText","cancelText","onAction","onCancel","helpers","useMemo","RadixAlertDialog","createContext","initialState","AlertDialogProvider","state","setState","openDialog","useAlertDialog","useContext","_Select","placeholder","side","items","id","mappedSize","createElement","RadixSelect","label","Select","_Input","leftIcon","rightIcon","showInputLength","computedSize","displayInputLength","valueAsString","RadixTextField","Text","Input","_Popover","defaultOpen","modal","RadixPopover","Popover","_TextArea","inputLengthTemplate","resize","infoColor","displayInputLengthValue","template","Fragment","RadixTextArea","TextArea","_ToggleGroup","orientation","Root","Item","ToggleGroup","_Toast","icon","onClose","RadixToast","Callout","InfoCircledIcon","Cross2Icon","ToastProvider","Toast","ToastViewport","ToastContext","ToastContextProvider","viewportClass","hotkey","duration","toasts","setToasts","showToast","toastProps","prevToasts","showPrimary","simpleMessage","showSuccess","showError","showInfo","deleteToastAtIndex","tempToasts","toastContextValue","DefaultTheme","panelBackground","radius","Theme"],"mappings":";;;;gBAOC,UAAY,CAGZ,IAAIA,EAAS,CAAE,EAAC,eAGhB,SAASC,GAAa,CAGrB,QAFIC,EAAU,CAAA,EAELC,EAAI,EAAGA,EAAI,UAAU,OAAQA,IAAK,CAC1C,IAAIC,EAAM,UAAUD,CAAC,EACrB,GAAKC,EAEL,KAAIC,EAAU,OAAOD,EAErB,GAAIC,IAAY,UAAYA,IAAY,SACvCH,EAAQ,KAAKE,CAAG,UACN,MAAM,QAAQA,CAAG,GAC3B,GAAIA,EAAI,OAAQ,CACf,IAAIE,EAAQL,EAAW,MAAM,KAAMG,CAAG,EAClCE,GACHJ,EAAQ,KAAKI,CAAK,CAEnB,UACSD,IAAY,SAAU,CAChC,GAAID,EAAI,WAAa,OAAO,UAAU,UAAY,CAACA,EAAI,SAAS,SAAQ,EAAG,SAAS,eAAe,EAAG,CACrGF,EAAQ,KAAKE,EAAI,SAAU,CAAA,EAC3B,QACA,CAED,QAASG,KAAOH,EACXJ,EAAO,KAAKI,EAAKG,CAAG,GAAKH,EAAIG,CAAG,GACnCL,EAAQ,KAAKK,CAAG,CAGlB,EACD,CAED,OAAOL,EAAQ,KAAK,GAAG,CACvB,CAEoCM,EAAO,SAC3CP,EAAW,QAAUA,EACrBO,EAAA,QAAiBP,GAOjB,OAAO,WAAaA,CAEtB,uCChDgB,SAAAQ,EAA4CC,EAAsBC,EAAuB,CACpG,GAAA,OAAOD,GAAU,SAAU,CAC1B,GAAA,EAAE,YAAaA,GAEZ,MAAA,IAAI,MAAM,0DAA0D,EAE3E,OAAO,OAAO,YAAY,OAAO,QAAQA,CAAK,EAAE,IAAI,CAAC,CAACH,EAAKK,CAAM,IAAM,CAACL,EAAKI,EAAQC,CAAM,CAAC,CAAC,CAAC,CAAA,KAE9F,QAAOD,EAAQD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EAGFY,EAAoB,CACzB,UAAAV,EACA,YAAAG,EACA,YAAAE,EACA,UAAAC,EACA,SAAAC,CAAA,EAIA,OAAAnI,EAAA,IAACqH,EAAa,SAAb,CAAsB,MAAOiB,EAC7B,SAAClG,EAAAA,KAAA8E,EAAA,CAAc,SAAAO,EAAqB,GAAG5H,EACtC,SAAA,CAACG,EAAAA,IAAAoH,EAAA,CAAc,UAAWG,EAAe,OAAAC,CAAgB,CAAA,EACxDE,EAAO,IAAI,CAACG,EAAYlG,IACvB3B,EAAAA,IAAAmH,EAAA,CAAmB,GAAGU,EAAY,QAAS,IAAMO,EAAmBzG,CAAK,CAAA,EAA9DA,CAAiE,CAC7E,EACA/B,CAAA,CACF,CAAA,CACD,CAAA,CAEF,CAAC,gCCrEY2I,GAAsCpI,EAAA,KAClDX,aAA8C,CAACuC,EAAOjC,IAAQ,CACvD,KAAA,CAAE,gBAAA0I,EAAkB,QAAS,OAAAC,EAAS,OAAQ,UAAAhJ,EAAW,GAAGI,CAAS,EAAAkC,EAE1E,OAAA/B,EAAA,IAAC0I,EAAA,MAAA,CACA,UAAWpK,EAAWmB,EAAWY,GAAO,MAAM,EAC9C,gBAAAmI,EACA,OAAAC,EACA,IAAA3I,EACC,GAAGD,CAAA,CAAA,CACL,CAED,CACF","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"blocks.umd.cjs","sources":["../node_modules/classnames/index.js","../src/utils.ts","../src/Badge/Badge.tsx","../src/Buttons/constants.ts","../src/constants.ts","../src/Buttons/Button.tsx","../src/Buttons/IconButton.tsx","../src/ButtonGroup/ButtonGroup.tsx","../src/Dialogs/Dialog/DialogContent.tsx","../src/Dialogs/Dialog/Dialog.tsx","../src/Dialogs/AlertDialog/AlertDialogContent.tsx","../src/Dialogs/AlertDialog/AlertDialog.tsx","../src/Dialogs/AlertDialog/context.tsx","../src/Dialogs/AlertDialog/hooks.ts","../src/Select/Select.tsx","../src/Input/Input.tsx","../src/Popover/Popover.tsx","../src/TextArea/TextArea.tsx","../src/ToggleGroup/ToggleGroup.tsx","../src/Toast/Toast.tsx","../src/Toast/ToastContext.tsx","../src/Theme/DefaultTheme.tsx"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import { Responsive, ThemeOptions, useThemeContext } from \"@radix-ui/themes\"\nimport { Severity } from \"typings\"\n\n// applyResponsiveMapping is a helper function used to map the keys of a Radix Responsive type that can be understood\n// by a Radix component or primitive. The point of this is to leverage our own custom prop names and values while still\n// using Radix's built in Responsiveness functionality.\n/**\n * Returns an object with mapped key values or a single mapped value\n * @param value an object or string\n * @param mapping a Record mapping the object values of param value\n */\nexport function applyResponsiveMapping<T extends string, K>(value: Responsive<T>, mapping: Record<T, K>) {\n\tif (typeof value === \"object\") {\n\t\tif (!(\"initial\" in value)) {\n\t\t\t// Responsive objects require an 'initial' property to be set that acts as a default\n\t\t\tthrow new Error(\"Expected initial property to be set in Responsive object\")\n\t\t}\n\t\treturn Object.fromEntries(Object.entries(value).map(([key, _value]) => [key, mapping[_value]]))\n\t} else {\n\t\treturn mapping[value]\n\t}\n}\n\nconst nonThemeSeverityMapping = {\n\tsuccess: \"green\",\n\tdanger: \"red\",\n\tinfo: \"gray\",\n} as const\n\nexport type AccentColor = ThemeOptions[\"accentColor\"]\n\n/** Performs theme-sensitive mapping of a severity to radix color */\nexport const useSeverityColor = (severity: Severity): AccentColor => {\n\tconst theme = useThemeContext()\n\tif (severity === \"primary\") return theme.accentColor\n\n\treturn nonThemeSeverityMapping[severity]\n}\n","import { Badge as RadixBadge } from \"@radix-ui/themes\"\nimport { FC, forwardRef, memo, Ref } from \"react\"\nimport { BadgeProps } from \"./typings.ts\"\nimport classNames from \"classnames\"\nimport { useSeverityColor } from \"../utils.ts\"\n\nconst _Badge = forwardRef(function Badge(\n\t{ className, severity = \"primary\", rounded, color, children, ...rest }: BadgeProps,\n\tref: Ref<HTMLSpanElement>,\n) {\n\tconst severityColor = useSeverityColor(severity)\n\n\treturn (\n\t\t<RadixBadge\n\t\t\tclassName={classNames(\"overmap-badge\", className)}\n\t\t\tref={ref}\n\t\t\tcolor={color ? color : severityColor}\n\t\t\tradius={rounded ? \"full\" : undefined}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</RadixBadge>\n\t)\n})\n\n/** The Badge Component is a user interface element that provides visual feedback, typically displaying a small amount\n * of information. It is commonly used to indicate counts, statuses, or labels in a concise and visually appealing\n * manner. This Badge components wraps the Badge component from Radix-ui found here https://www.radix-ui.com/themes/docs/components/badge */\nexport const Badge: FC<BadgeProps> = memo(_Badge)\n","import { ButtonHoverEffect } from \"./typings.ts\"\nimport styles from \"./Button.module.sass\"\n\nexport const hoverEffectClassNameMapping: Record<ButtonHoverEffect, string | undefined> = {\n\tspin90Clockwise: styles.hoverSpin90Clockwise,\n\tspin180Clockwise: styles.hoverSpin180Clockwise,\n\tspin360Clockwise: styles.hoverSpin360Clockwise,\n}\n","import { Size } from \"./typings.ts\"\n\n// Mappings\nexport const SizeMapping: Record<Size, \"1\" | \"2\" | \"3\"> = {\n\tsmall: \"1\",\n\tmedium: \"2\",\n\tlarge: \"3\",\n}\n","import React, { FC, forwardRef } from \"react\"\nimport { ButtonProps } from \"./typings.ts\"\nimport styles from \"./Button.module.sass\"\nimport classNames from \"classnames\"\nimport { Button as RadixButton } from \"@radix-ui/themes\"\nimport { hoverEffectClassNameMapping } from \"./constants.ts\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\n\nconst _Button = forwardRef(function Button(\n\t{ className, fluid, size = \"medium\", severity = \"primary\", hoverEffects, type = \"button\", ...rest }: ButtonProps,\n\tref: React.Ref<HTMLButtonElement>,\n) {\n\tconst color = useSeverityColor(severity)\n\tconst hoverEffectClasses =\n\t\thoverEffects?.map((hoverEffect) => {\n\t\t\treturn hoverEffectClassNameMapping[hoverEffect]\n\t\t}) || []\n\n\treturn (\n\t\t<RadixButton\n\t\t\tref={ref}\n\t\t\tclassName={classNames(className, hoverEffectClasses, {\n\t\t\t\t[styles.fluid!]: fluid,\n\t\t\t})}\n\t\t\tcolor={color}\n\t\t\tsize={applyResponsiveMapping(size, SizeMapping)}\n\t\t\ttype={type}\n\t\t\t{...rest}\n\t\t/>\n\t)\n})\n\n// using FC so storybook correctly displays the component props\nconst Button: FC<ButtonProps> = React.memo(_Button)\n\nexport default Button\n","import React, { FC, forwardRef } from \"react\"\nimport { ButtonProps } from \"./typings.ts\"\nimport classNames from \"classnames\"\nimport { IconButton as RadixIconButton } from \"@radix-ui/themes\"\nimport { hoverEffectClassNameMapping } from \"./constants.ts\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\n\nimport styles from \"./Button.module.sass\"\n\ninterface IconButtonProps extends Omit<ButtonProps, \"fluid\"> {\n\t\"aria-label\": string\n}\n\nconst _Button = forwardRef(function Button(\n\t{\n\t\tclassName,\n\t\tchildren,\n\t\tsize = \"medium\",\n\t\tseverity = \"primary\",\n\t\thoverEffects,\n\t\ttype = \"button\",\n\t\t...rest\n\t}: IconButtonProps,\n\tref: React.Ref<HTMLButtonElement>,\n) {\n\tconst color = useSeverityColor(severity)\n\tconst hoverEffectClasses =\n\t\thoverEffects?.map((hoverEffect) => {\n\t\t\treturn hoverEffectClassNameMapping[hoverEffect]\n\t\t}) || []\n\n\treturn (\n\t\t<RadixIconButton\n\t\t\tclassName={classNames(className, hoverEffectClasses, styles.default)}\n\t\t\tref={ref}\n\t\t\tcolor={color}\n\t\t\tsize={applyResponsiveMapping(size, SizeMapping)}\n\t\t\ttype={type}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</RadixIconButton>\n\t)\n})\n\n// using FC so storybook correctly displays the component props\n/** The `IconButton` is a `Button` variant specifically designed for single icons. */\nconst IconButton: FC<IconButtonProps> = React.memo(_Button)\n\nexport default IconButton\n","import { FC, forwardRef, memo, Ref, cloneElement } from \"react\"\nimport { Flex } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { ButtonGroupProps } from \"./typings.ts\"\n\nimport styles from \"./ButtonGroup.module.sass\"\nimport { Size } from \"../typings.ts\"\nimport { applyResponsiveMapping } from \"../utils.ts\"\nimport { Button, IconButton } from \"../Buttons\"\n\nconst GhostVariantSizeToGapMapping: Record<\"row\" | \"column\", Record<Size, ButtonGroupProps[\"gap\"]>> = {\n\trow: { small: \"4\", medium: \"4\", large: \"5\" },\n\tcolumn: { small: \"2\", medium: \"3\", large: \"4\" },\n}\n\nconst _ButtonGroup = forwardRef(function ButtonGroup(\n\t{\n\t\tclassName,\n\t\tmerged = false,\n\t\tchildren,\n\t\tgap = \"2\",\n\t\tdirection = \"row\",\n\t\tseverity = \"primary\",\n\t\tsize = \"medium\",\n\t\tvariant = \"solid\",\n\t\thoverEffects,\n\t\t...rest\n\t}: ButtonGroupProps,\n\tref: Ref<HTMLDivElement>,\n) {\n\treturn (\n\t\t<Flex\n\t\t\tclassName={classNames(\"overmap-button-group\", className, {\n\t\t\t\t[styles.merged!]: merged,\n\t\t\t})}\n\t\t\tref={ref}\n\t\t\tgap={\n\t\t\t\tmerged\n\t\t\t\t\t? variant === \"ghost\"\n\t\t\t\t\t\t? applyResponsiveMapping(size, GhostVariantSizeToGapMapping[direction])\n\t\t\t\t\t\t: \"0\"\n\t\t\t\t\t: gap\n\t\t\t}\n\t\t\tdirection={direction}\n\t\t\tdata-direction={direction}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children.map((child, index) => {\n\t\t\t\tif (child.type === Button || child.type === IconButton) {\n\t\t\t\t\treturn cloneElement(child, { key: index, size, severity, variant, hoverEffects })\n\t\t\t\t} else {\n\t\t\t\t\treturn child\n\t\t\t\t}\n\t\t\t})}\n\t\t</Flex>\n\t)\n})\n\n/** The ButtonGroup Component is a user interface element that groups multiple buttons together for improved user\n * interaction and visual clarity. It is commonly used to present related actions or options in a compact and organized\n * manner. The ButtonGroup supports all props of the RadixUI Flex layout component besides MarginProps,\n * further documentation for the Flex layout component can be found here https://www.radix-ui.com/themes/docs/components/flex */\nexport const ButtonGroup: FC<ButtonGroupProps> = memo(_ButtonGroup)\n","import { memo } from \"react\"\nimport { Dialog, Flex, IconButton } from \"@radix-ui/themes\"\nimport { Cross1Icon } from \"@radix-ui/react-icons\"\nimport { DialogContentProps } from \"./typings\"\n\nexport const DialogContent = memo(function DialogContent(props: DialogContentProps) {\n\tconst { title, description, content, closeDialog } = props\n\treturn (\n\t\t<Flex direction=\"column\" gap=\"2\">\n\t\t\t<Flex direction=\"column\" gap=\"1\">\n\t\t\t\t<Flex justify=\"between\">\n\t\t\t\t\t<Dialog.Title mb=\"0\">{title}</Dialog.Title>\n\t\t\t\t\t<Dialog.Close>\n\t\t\t\t\t\t<IconButton color=\"gray\" variant=\"ghost\" aria-label=\"Close\">\n\t\t\t\t\t\t\t<Cross1Icon />\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t</Dialog.Close>\n\t\t\t\t</Flex>\n\t\t\t\t<Dialog.Description>{description}</Dialog.Description>\n\t\t\t</Flex>\n\t\t\t{content(closeDialog)}\n\t\t</Flex>\n\t)\n})\n","import { memo, useState, useCallback } from \"react\"\nimport { Dialog as RadixDialog } from \"@radix-ui/themes\"\nimport { DialogContent } from \"./DialogContent\"\nimport { CloseDialogWithOptions, DialogProps } from \"./typings\"\n\n/**\n * Display or collect information in a modal. Unlike the `AlertDialog`, the `Dialog`'s can be nested\n * and close when clicking outside of the dialog content.\n */\nexport const Dialog = memo(function Dialog(props: DialogProps) {\n\tconst { children, size, onOpen, onCloseInterrupt, ...contentProps } = props\n\tconst [open, setOpen] = useState(false)\n\n\tconst handleOpenChange = useCallback(\n\t\t(next: boolean) => {\n\t\t\tif (next && onOpen) {\n\t\t\t\tonOpen()\n\t\t\t} else if (!next && onCloseInterrupt) {\n\t\t\t\t// closes the dialog, bypassing the checks in `handleOpenChange`\n\t\t\t\tconst confirmClose = () => setOpen(false)\n\n\t\t\t\t// if onCloseInterrupt is passed, bypass the standard close behavior and require\n\t\t\t\t// the passed `confirmClose` to close the dialog\n\t\t\t\treturn onCloseInterrupt(confirmClose)\n\t\t\t}\n\n\t\t\tsetOpen(next)\n\t\t},\n\t\t[onOpen, onCloseInterrupt],\n\t)\n\n\tconst closeDialog = useCallback<CloseDialogWithOptions>(\n\t\t(options) => {\n\t\t\tif (options?.force) {\n\t\t\t\t// bypass the checks in the `handleOpenChange` function\n\t\t\t\treturn setOpen(false)\n\t\t\t}\n\n\t\t\thandleOpenChange(false)\n\t\t},\n\t\t[handleOpenChange],\n\t)\n\n\treturn (\n\t\t<RadixDialog.Root open={open} onOpenChange={handleOpenChange}>\n\t\t\t<RadixDialog.Content size={size}>\n\t\t\t\t<DialogContent closeDialog={closeDialog} {...contentProps} />\n\t\t\t</RadixDialog.Content>\n\n\t\t\t{children(RadixDialog.Trigger)}\n\t\t</RadixDialog.Root>\n\t)\n})\n","import { AlertDialog, Flex } from \"@radix-ui/themes\"\nimport { AlertDialogStandardContent } from \"./typings\"\nimport { Button } from \"../../Buttons\"\n\n// remove the margin-bottom from the title so that Flex works as expected\nexport const Title: typeof AlertDialog.Title = ((props) => (\n\t<AlertDialog.Title mb=\"0\" {...props} />\n)) as typeof AlertDialog.Title\n\nexport const AlertDialogContent = (props: AlertDialogStandardContent) => {\n\tconst { title, description, actionText = \"Confirm\", cancelText = \"Cancel\", onAction, onCancel, severity } = props\n\treturn (\n\t\t<Flex direction=\"column\" gap=\"2\">\n\t\t\t<Flex direction=\"column\" gap=\"1\">\n\t\t\t\t<Title>{title}</Title>\n\t\t\t\t<AlertDialog.Description>{description}</AlertDialog.Description>\n\t\t\t</Flex>\n\n\t\t\t<Flex gap=\"3\" mt=\"4\" justify=\"end\">\n\t\t\t\t<AlertDialog.Cancel>\n\t\t\t\t\t<Button variant=\"soft\" severity=\"info\" onClick={onCancel}>\n\t\t\t\t\t\t{cancelText}\n\t\t\t\t\t</Button>\n\t\t\t\t</AlertDialog.Cancel>\n\t\t\t\t<AlertDialog.Action>\n\t\t\t\t\t<Button variant=\"solid\" severity={severity} onClick={onAction}>\n\t\t\t\t\t\t{actionText}\n\t\t\t\t\t</Button>\n\t\t\t\t</AlertDialog.Action>\n\t\t\t</Flex>\n\t\t</Flex>\n\t)\n}\n","import { memo, useMemo } from \"react\"\nimport { AlertDialog as RadixAlertDialog } from \"@radix-ui/themes\"\nimport { AlertDialogContentHelpers, AlertDialogProps } from \"./typings\"\nimport { AlertDialogContent, Title } from \"./AlertDialogContent\"\n\n/**\n * The AlertDialog is used to confirm an action or prompt the user for a decision.\n * Unlike the Dialog, the AlertDialog is not dismissible by clicking outside of the dialog, nor can it be nested.\n *\n * To use, place the `AlertDialogProvider` at the root of your app and use the `useAlertDialog` hook to open the dialog.\n *\n * To set the content of the dialog, use the `content` prop or pass values for the `title`, `description`, and `onAction` props.\n */\nexport const AlertDialog = memo(function AlertDialog(props: AlertDialogProps) {\n\tconst { open, setOpen, children, ...contentProps } = props\n\n\tconst helpers: AlertDialogContentHelpers = useMemo(() => {\n\t\treturn {\n\t\t\tclose: () => setOpen(false),\n\t\t\tTitle,\n\t\t\tDescription: RadixAlertDialog.Description,\n\t\t}\n\t}, [setOpen])\n\n\treturn (\n\t\t<RadixAlertDialog.Root open={open} onOpenChange={setOpen}>\n\t\t\t<RadixAlertDialog.Content>\n\t\t\t\t{\"content\" in contentProps ? contentProps.content(helpers) : <AlertDialogContent {...contentProps} />}\n\t\t\t</RadixAlertDialog.Content>\n\t\t\t{children}\n\t\t</RadixAlertDialog.Root>\n\t)\n})\n","import { createContext, memo, useState, useCallback } from \"react\"\nimport { AlertDialogContextType, AlertDialogOptions } from \"./typings\"\nimport { AlertDialog } from \"./AlertDialog\"\n\ninterface AlertDialogProviderProps {\n\tchildren: React.ReactNode\n}\n\nexport const AlertDialogContent = createContext<AlertDialogContextType>(() => {\n\tthrow new Error(\"No AlertDialogProvider found\")\n})\n\nconst initialState: AlertDialogOptions = {\n\tcontent: () => null,\n}\n\nexport const AlertDialogProvider = memo(function AlertDialogProvider({ children }: AlertDialogProviderProps) {\n\tconst [open, setOpen] = useState(false)\n\tconst [state, setState] = useState<AlertDialogOptions>(initialState)\n\n\tconst openDialog = useCallback<AlertDialogContextType>(\n\t\t(options) => {\n\t\t\tif (open) throw new Error(\"AlertDialog is already open\")\n\n\t\t\tsetState(options)\n\t\t\tsetOpen(true)\n\t\t},\n\t\t[open],\n\t)\n\n\treturn (\n\t\t<AlertDialog open={open} setOpen={setOpen} {...state}>\n\t\t\t<AlertDialogContent.Provider value={openDialog}>{children}</AlertDialogContent.Provider>\n\t\t</AlertDialog>\n\t)\n})\n","import { useContext } from \"react\"\nimport { AlertDialogContent } from \"./context\"\n\nexport const useAlertDialog = () => {\n\treturn useContext(AlertDialogContent)\n}\n","import React, { FC, forwardRef, useMemo } from \"react\"\nimport { Select as RadixSelect } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\nimport { SelectItemProps, SelectProps } from \"./typings.ts\"\n\nimport styles from \"./Select.module.sass\"\n\nconst _Select = forwardRef(function Select(\n\t{\n\t\tclassName,\n\t\tfluid,\n\t\tsize = \"medium\",\n\t\tvariant = \"surface\",\n\t\tseverity = \"primary\",\n\t\tplaceholder = \"Select\",\n\t\tside,\n\t\titems = [],\n\t\tvalue,\n\t\tid,\n\t\t...rest\n\t}: SelectProps,\n\tref: React.Ref<HTMLButtonElement>,\n) {\n\tconst mappedSize = useMemo(() => {\n\t\treturn applyResponsiveMapping(size, SizeMapping)\n\t}, [size])\n\tconst color = useSeverityColor(severity)\n\n\t// TODO: extend functionality to support grouping of items\n\t// TODO: remove key change based on value once placeholder issue it fixed in radix-ui/themes\n\treturn (\n\t\t<RadixSelect.Root size={mappedSize} {...rest} key={value === undefined ? 1 : 0} value={value}>\n\t\t\t<RadixSelect.Trigger\n\t\t\t\tclassName={classNames(className, {\n\t\t\t\t\t[styles.fluid!]: fluid,\n\t\t\t\t})}\n\t\t\t\tid={id}\n\t\t\t\tref={ref}\n\t\t\t\tvariant={variant}\n\t\t\t\tplaceholder={placeholder}\n\t\t\t\tcolor={color}\n\t\t\t/>\n\t\t\t<RadixSelect.Content\n\t\t\t\tside={side}\n\t\t\t\tposition=\"popper\"\n\t\t\t\tvariant={variant !== \"surface\" ? \"soft\" : \"solid\"}\n\t\t\t\tcolor={color}\n\t\t\t>\n\t\t\t\t{items.map(({ label, value, ...rest }: SelectItemProps) => (\n\t\t\t\t\t<RadixSelect.Item key={value} value={value} {...rest}>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</RadixSelect.Item>\n\t\t\t\t))}\n\t\t\t</RadixSelect.Content>\n\t\t</RadixSelect.Root>\n\t)\n})\nexport const Select: FC<SelectProps> = React.memo(_Select)\n","import React, { FC, forwardRef, useMemo } from \"react\"\nimport { Text, TextField as RadixTextField } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { applyResponsiveMapping, useSeverityColor } from \"../utils.ts\"\nimport { SizeMapping } from \"../constants.ts\"\nimport { InputProps } from \"./typings.ts\"\n\nimport styles from \"./Input.module.sass\"\n\nconst _Input = forwardRef(function Input(\n\t{\n\t\tclassName,\n\t\tleftIcon,\n\t\trightIcon,\n\t\tsize = \"medium\",\n\t\tshowInputLength,\n\t\tvalue,\n\t\tvariant,\n\t\tseverity = \"primary\",\n\t\t...rest\n\t}: InputProps,\n\tref: React.Ref<HTMLInputElement>,\n) {\n\tconst computedSize = useMemo(() => {\n\t\treturn applyResponsiveMapping(size, SizeMapping)\n\t}, [size])\n\n\tconst color = useSeverityColor(severity)\n\n\tconst displayInputLength = showInputLength || (showInputLength === undefined && rest.maxLength !== undefined)\n\tconst valueAsString = value !== undefined ? value.toString() : undefined\n\n\treturn (\n\t\t<RadixTextField.Root\n\t\t\tclassName={classNames({\n\t\t\t\t[styles.accommodateCharCount!]: displayInputLength,\n\t\t\t})}\n\t\t\tsize={computedSize}\n\t\t\tvariant={variant}\n\t\t\tcolor={color}\n\t\t>\n\t\t\t<RadixTextField.Slot>{leftIcon}</RadixTextField.Slot>\n\t\t\t<RadixTextField.Input\n\t\t\t\tclassName={classNames(styles.default, className, {\n\t\t\t\t\t[styles.noLeftIcon!]: !leftIcon,\n\t\t\t\t\t[styles.noRightIcon!]: !rightIcon,\n\t\t\t\t})}\n\t\t\t\tref={ref}\n\t\t\t\tsize={computedSize}\n\t\t\t\tvariant={variant}\n\t\t\t\tcolor={color}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t\t<RadixTextField.Slot>{rightIcon}</RadixTextField.Slot>\n\t\t\t{displayInputLength && (\n\t\t\t\t<Text as=\"p\" className={styles.charCount} size=\"1\" color=\"gray\">\n\t\t\t\t\t{rest.maxLength !== undefined\n\t\t\t\t\t\t? `${valueAsString?.length}/${rest.maxLength}`\n\t\t\t\t\t\t: `${valueAsString?.length}`}\n\t\t\t\t</Text>\n\t\t\t)}\n\t\t</RadixTextField.Root>\n\t)\n})\nexport const Input: FC<InputProps> = React.memo(_Input)\n","import React, { forwardRef, FC } from \"react\"\nimport { Popover as RadixPopover } from \"@radix-ui/themes\"\nimport { PopoverProps } from \"./typings.ts\"\n\nconst _Popover = forwardRef(function Popover(\n\t{ defaultOpen = false, modal = false, content, children, ...rest }: PopoverProps,\n\tref: React.Ref<HTMLDivElement>,\n) {\n\treturn (\n\t\t<RadixPopover.Root defaultOpen={defaultOpen} modal={modal}>\n\t\t\t<RadixPopover.Trigger>{children}</RadixPopover.Trigger>\n\t\t\t<RadixPopover.Content ref={ref} {...rest}>\n\t\t\t\t{content(RadixPopover.Close)}\n\t\t\t</RadixPopover.Content>\n\t\t</RadixPopover.Root>\n\t)\n})\nexport const Popover: FC<PopoverProps> = React.memo(_Popover)\n","import { FC, forwardRef, memo, Ref, useMemo } from \"react\"\nimport { Text, TextArea as RadixTextArea } from \"@radix-ui/themes\"\nimport classNames from \"classnames\"\nimport { TextAreaProps } from \"./typings.ts\"\n\nimport styles from \"./Textarea.module.sass\"\nimport { useSeverityColor } from \"../utils.ts\"\n\nconst _TextArea = forwardRef(function TextArea(\n\t{ className, showInputLength, inputLengthTemplate, value, severity = \"primary\", resize, ...rest }: TextAreaProps,\n\tref: Ref<HTMLTextAreaElement>,\n) {\n\tconst severityColor = useSeverityColor(severity)\n\tconst infoColor = useSeverityColor(\"info\")\n\n\tconst displayInputLength =\n\t\tshowInputLength ||\n\t\t(showInputLength === undefined && (rest.maxLength !== undefined || rest.minLength !== undefined))\n\tconst valueAsString = value !== undefined ? value.toString() : \"\"\n\n\tconst displayInputLengthValue = useMemo(() => {\n\t\tif (inputLengthTemplate) {\n\t\t\tlet template = inputLengthTemplate.replace(\"{current}\", valueAsString.length.toString())\n\t\t\tif (rest.minLength !== undefined) {\n\t\t\t\ttemplate = template.replace(\"{min}\", rest.minLength.toString())\n\t\t\t}\n\t\t\tif (rest.maxLength !== undefined) {\n\t\t\t\ttemplate = template.replace(\"{max}\", rest.maxLength.toString())\n\t\t\t}\n\t\t\treturn template\n\t\t}\n\t\treturn valueAsString.length\n\t}, [inputLengthTemplate, rest.maxLength, rest.minLength, valueAsString.length])\n\n\treturn (\n\t\t<>\n\t\t\t<RadixTextArea\n\t\t\t\tclassName={classNames(\"overmap-textarea\", className)}\n\t\t\t\tstyle={{ resize: resize }}\n\t\t\t\tref={ref}\n\t\t\t\tvalue={value}\n\t\t\t\tcolor={severityColor}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t\t{displayInputLength && (\n\t\t\t\t<Text as=\"p\" className={styles.charCount} color={infoColor} align=\"right\">\n\t\t\t\t\t{displayInputLengthValue}\n\t\t\t\t</Text>\n\t\t\t)}\n\t\t</>\n\t)\n})\n\n/** The TextArea Component is a user interface element that allows users to input and edit multi-line text.\n It is commonly used in forms, chat applications, and other scenarios where longer text inputs are required.\n This TextArea is a wrapper of the RadixUI TextArea component found here https://www.radix-ui.com/themes/docs/components/text-area.\n */\nexport const TextArea: FC<TextAreaProps> = memo(_TextArea)\n","import { FC, forwardRef, memo, Ref } from \"react\"\nimport { Item, Root } from \"@radix-ui/react-toggle-group\"\nimport { ToggleGroupItemProps, ToggleGroupSingleProps } from \"./typings.ts\"\nimport { IconButton } from \"../Buttons\"\nimport classNames from \"classnames\"\nimport { ButtonGroup } from \"../ButtonGroup\"\n\nconst _ToggleGroup = forwardRef(function ToggleGroup(\n\t{\n\t\tclassName,\n\t\titems,\n\t\torientation = \"horizontal\",\n\t\tmerged = true,\n\t\tvalue,\n\t\tseverity,\n\t\tgap,\n\t\tsize,\n\t\t...rest\n\t}: ToggleGroupSingleProps,\n\tref: Ref<HTMLDivElement>,\n) {\n\treturn (\n\t\t<Root\n\t\t\tclassName={classNames(\"overmap-toggle-group\", className)}\n\t\t\tref={ref}\n\t\t\tvalue={value}\n\t\t\torientation={orientation}\n\t\t\t{...rest}\n\t\t>\n\t\t\t<ButtonGroup\n\t\t\t\twidth=\"min-content\"\n\t\t\t\theight=\"min-content\"\n\t\t\t\tmerged={merged}\n\t\t\t\tdirection={orientation === \"vertical\" ? \"column\" : \"row\"}\n\t\t\t\tgap={gap}\n\t\t\t>\n\t\t\t\t{items.map(({ children, ...rest }: ToggleGroupItemProps) => (\n\t\t\t\t\t<Item asChild {...rest} key={rest.value}>\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\tclassName={classNames(\"overmap-toggle-group-button\")}\n\t\t\t\t\t\t\taria-label={rest.value}\n\t\t\t\t\t\t\tseverity={severity}\n\t\t\t\t\t\t\tvariant={rest.value === value ? \"solid\" : \"soft\"}\n\t\t\t\t\t\t\tsize={size}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t</Item>\n\t\t\t\t))}\n\t\t\t</ButtonGroup>\n\t\t</Root>\n\t)\n})\n\n/** The Toggle Group Component is a user interface element that allows users to select a single option from a set of\n * mutually exclusive choices. It is commonly used in situations where users need to make a single selection from a\n * predefined list of options. This component is built using the ButtonGroup and IconButton components in combination\n * with the Radix Toggle Group primitive found here https://www.radix-ui.com/primitives/docs/components/toggle-group */\nexport const ToggleGroup: FC<ToggleGroupSingleProps> = memo(_ToggleGroup)\n","import { FC, forwardRef, memo, Ref, useCallback } from \"react\"\nimport * as RadixToast from \"@radix-ui/react-toast\"\nimport { Callout, Flex } from \"@radix-ui/themes\"\nimport { Cross2Icon, InfoCircledIcon } from \"@radix-ui/react-icons\"\nimport classNames from \"classnames\"\nimport { IconButton } from \"../Buttons\"\nimport { ToastProps, ToastProviderProps } from \"./typings.ts\"\nimport { useSeverityColor } from \"../utils.ts\"\n\nimport styles from \"./Toast.module.sass\"\n\nconst _Toast = forwardRef(function Toast(\n\t{ title, description, icon, severity = \"primary\", size, onClose, ...rest }: ToastProps,\n\tref: Ref<HTMLLIElement>,\n) {\n\tconst color = useSeverityColor(severity)\n\tconst handleOpenChange = useCallback(\n\t\t(open: boolean) => {\n\t\t\tif (!open && onClose) onClose()\n\t\t},\n\t\t[onClose],\n\t)\n\n\treturn (\n\t\t<RadixToast.Root asChild ref={ref} {...rest} onOpenChange={handleOpenChange}>\n\t\t\t<Callout.Root\n\t\t\t\tclassName={classNames(\"overmap-toast\", styles.wrapper)}\n\t\t\t\tvariant=\"surface\"\n\t\t\t\tcolor={color}\n\t\t\t\tsize={size}\n\t\t\t>\n\t\t\t\t<Flex width=\"100%\" align=\"center\" gap=\"4\" justify=\"between\">\n\t\t\t\t\t<Flex align=\"center\" gap=\"4\">\n\t\t\t\t\t\t<Callout.Icon>{icon || <InfoCircledIcon />}</Callout.Icon>\n\t\t\t\t\t\t<Flex direction=\"column\" gap=\"0\">\n\t\t\t\t\t\t\t<RadixToast.Title asChild>\n\t\t\t\t\t\t\t\t<Callout.Text weight=\"bold\">{title}</Callout.Text>\n\t\t\t\t\t\t\t</RadixToast.Title>\n\t\t\t\t\t\t\t<RadixToast.Description asChild>\n\t\t\t\t\t\t\t\t<Callout.Text weight=\"light\">{description}</Callout.Text>\n\t\t\t\t\t\t\t</RadixToast.Description>\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</Flex>\n\t\t\t\t\t<RadixToast.Close asChild>\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\tclassName={styles.closeButton}\n\t\t\t\t\t\t\taria-label=\"Close\"\n\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tseverity={severity}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Cross2Icon />\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t</RadixToast.Close>\n\t\t\t\t</Flex>\n\t\t\t</Callout.Root>\n\t\t</RadixToast.Root>\n\t)\n})\n\nexport const ToastProvider: FC<ToastProviderProps> = memo(function ToastProvider({\n\tchildren,\n\t...rest\n}: ToastProviderProps) {\n\treturn (\n\t\t<RadixToast.Provider swipeDirection=\"right\" swipeThreshold={75} {...rest}>\n\t\t\t{children}\n\t\t</RadixToast.Provider>\n\t)\n})\n\nexport const Toast: FC<ToastProps> = memo(_Toast)\nexport const ToastViewport: FC<RadixToast.ToastViewportProps> = RadixToast.Viewport\n","import { memo, createContext, useState, useCallback, FC } from \"react\"\nimport { IToastContext, SimpleToastMessage, ToastContextProviderProps, ToastProps } from \"./typings.ts\"\nimport { Toast, ToastProvider, ToastViewport } from \"./Toast.tsx\"\n\nexport const ToastContext = createContext({} as IToastContext)\n\nexport const ToastContextProvider: FC<ToastContextProviderProps> = memo(function ToastContextProvider({\n\tchildren,\n\t// Use this class to change where the viewport for the toasts should be\n\tviewportClass,\n\thotkey,\n\t// Default duration value for all Toasts\n\tduration = 10000,\n\t...rest\n}: ToastContextProviderProps) {\n\tconst [toasts, setToasts] = useState<ToastProps[]>([])\n\n\tconst showToast = useCallback((toastProps: ToastProps) => {\n\t\tsetToasts((prevToasts) => [...prevToasts, toastProps])\n\t}, [])\n\n\tconst showPrimary = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"primary\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst showSuccess = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"success\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst showError = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"danger\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst showInfo = useCallback(\n\t\t(simpleMessage: SimpleToastMessage) => {\n\t\t\tshowToast({ severity: \"info\", ...simpleMessage })\n\t\t},\n\t\t[showToast],\n\t)\n\n\tconst deleteToastAtIndex = useCallback(\n\t\t(index: number) => {\n\t\t\tconst tempToasts = [...toasts]\n\t\t\ttempToasts.splice(index, 1)\n\t\t\tsetToasts(() => tempToasts)\n\t\t},\n\t\t[toasts],\n\t)\n\n\tconst toastContextValue = {\n\t\tshowToast,\n\t\tshowPrimary,\n\t\tshowSuccess,\n\t\tshowError,\n\t\tshowInfo,\n\t}\n\n\treturn (\n\t\t<ToastContext.Provider value={toastContextValue}>\n\t\t\t<ToastProvider duration={duration} {...rest}>\n\t\t\t\t<ToastViewport className={viewportClass} hotkey={hotkey} />\n\t\t\t\t{toasts.map((toastProps, index) => (\n\t\t\t\t\t<Toast key={index} {...toastProps} onClose={() => deleteToastAtIndex(index)} />\n\t\t\t\t))}\n\t\t\t\t{children}\n\t\t\t</ToastProvider>\n\t\t</ToastContext.Provider>\n\t)\n})\n","import { Theme } from \"@radix-ui/themes\"\nimport { ComponentProps, FC, forwardRef, memo } from \"react\"\n// css file contains updates to the default radix tokens\nimport \"./DefaultTheme.css\"\n\nexport type DefaultThemeProps = ComponentProps<typeof Theme>\n\nexport const DefaultTheme: FC<DefaultThemeProps> = memo(\n\tforwardRef<HTMLDivElement, DefaultThemeProps>((props, ref) => {\n\t\tconst { panelBackground = \"solid\", radius = \"full\", ...rest } = props\n\t\treturn <Theme panelBackground={panelBackground} radius={radius} ref={ref} {...rest} />\n\t}),\n)\n"],"names":["hasOwn","classNames","classes","i","arg","argType","inner","key","module","applyResponsiveMapping","value","mapping","_value","nonThemeSeverityMapping","useSeverityColor","severity","theme","useThemeContext","_Badge","forwardRef","className","rounded","color","children","rest","ref","severityColor","jsx","RadixBadge","Badge","memo","hoverEffectClassNameMapping","styles","SizeMapping","_Button","fluid","size","hoverEffects","type","hoverEffectClasses","hoverEffect","RadixButton","Button","React","RadixIconButton","IconButton","GhostVariantSizeToGapMapping","_ButtonGroup","merged","gap","direction","variant","Flex","child","index","cloneElement","ButtonGroup","DialogContent","props","title","description","content","closeDialog","jsxs","Dialog","Cross1Icon","onOpen","onCloseInterrupt","contentProps","open","setOpen","useState","handleOpenChange","useCallback","next","options","RadixDialog","Title","AlertDialog","AlertDialogContent","actionText","cancelText","onAction","onCancel","helpers","useMemo","RadixAlertDialog","createContext","initialState","AlertDialogProvider","state","setState","openDialog","useAlertDialog","useContext","_Select","placeholder","side","items","id","mappedSize","createElement","RadixSelect","label","Select","_Input","leftIcon","rightIcon","showInputLength","computedSize","displayInputLength","valueAsString","RadixTextField","Text","Input","_Popover","defaultOpen","modal","RadixPopover","Popover","_TextArea","inputLengthTemplate","resize","infoColor","displayInputLengthValue","template","Fragment","RadixTextArea","TextArea","_ToggleGroup","orientation","Root","Item","ToggleGroup","_Toast","icon","onClose","RadixToast","Callout","InfoCircledIcon","Cross2Icon","ToastProvider","Toast","ToastViewport","ToastContext","ToastContextProvider","viewportClass","hotkey","duration","toasts","setToasts","showToast","toastProps","prevToasts","showPrimary","simpleMessage","showSuccess","showError","showInfo","deleteToastAtIndex","tempToasts","toastContextValue","DefaultTheme","panelBackground","radius","Theme"],"mappings":";;;;gBAOC,UAAY,CAGZ,IAAIA,EAAS,CAAE,EAAC,eAGhB,SAASC,GAAa,CAGrB,QAFIC,EAAU,CAAA,EAELC,EAAI,EAAGA,EAAI,UAAU,OAAQA,IAAK,CAC1C,IAAIC,EAAM,UAAUD,CAAC,EACrB,GAAKC,EAEL,KAAIC,EAAU,OAAOD,EAErB,GAAIC,IAAY,UAAYA,IAAY,SACvCH,EAAQ,KAAKE,CAAG,UACN,MAAM,QAAQA,CAAG,GAC3B,GAAIA,EAAI,OAAQ,CACf,IAA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AC,QCtEY2I,GAAsCpI,EAAA,KAClDX,aAA8C,CAACuC,EAAOjC,IAAQ,CAC7D,KAAM,CAAE,gBAAA0I,EAAkB,QAAS,OAAAC,EAAS,OAAQ,GAAG5I,CAAS,EAAAkC,EAChE,aAAQ2G,EAAM,MAAA,CAAA,gBAAAF,EAAkC,OAAAC,EAAgB,IAAA3I,EAAW,GAAGD,CAAM,CAAA,CAAA,CACpF,CACF","x_google_ignoreList":[0]}
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._fluid_r73gr_1{flex-grow:1;width:auto}._hoverSpin90Clockwise_r73gr_15>svg{transition:unset}._hoverSpin90Clockwise_r73gr_15 svg{transition:transform .25s ease-in-out!important}._hoverSpin90Clockwise_r73gr_15:hover:not(:disabled) svg{transform:rotate(90deg)!important}._hoverSpin180Clockwise_r73gr_25>svg{transition:unset}._hoverSpin180Clockwise_r73gr_25 svg{transition:transform .3s ease-in-out!important}._hoverSpin180Clockwise_r73gr_25:hover:not(:disabled) svg{transform:rotate(180deg)!important}._hoverSpin360Clockwise_r73gr_35>svg{transition:unset}._hoverSpin360Clockwise_r73gr_35 svg{transition:transform .5s ease-in-out!important}._hoverSpin360Clockwise_r73gr_35:hover:not(:disabled) svg{transform:rotate(360deg)!important}._merged_f4366_1 button:not(:first-child):not(:last-child){border-radius:0}._merged_f4366_1[data-direction=column] button:first-child{border-bottom-right-radius:0;border-bottom-left-radius:0}._merged_f4366_1[data-direction=column] button:last-child{border-top-left-radius:0;border-top-right-radius:0}._merged_f4366_1[data-direction=row] button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}._merged_f4366_1[data-direction=row] button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._fluid_7n1wr_1{flex-grow:1;width:auto}._accommodateCharCount_fni4k_1{margin-bottom:var(--line-height-1)}._default_fni4k_5{flex-grow:0}._noLeftIcon_fni4k_9{padding-left:.5rem!important}._noRightIcon_fni4k_13{padding-right:.5rem!important}._charCount_fni4k_17{position:absolute;right:0;top:98%;font-size:xx-small!important}._charCount_17uut_1{font-size:x-small}._wrapper_o13vb_1{width:fit-content;min-width:300px;max-width:400px;display:block}._wrapper_o13vb_1[data-swipe=move]{transform:translate(var(--radix-toast-swipe-move-x));transition:transform .2s ease-out}._wrapper_o13vb_1[data-swipe=cancel]{transform:translate(0);transition:transform .2s ease-out}._wrapper_o13vb_1[data-swipe=end]{animation:_slideRight_o13vb_1 .2s ease-out}@keyframes _slideRight_o13vb_1{0%{transform:translate(var(--radix-toast-swipe-end-x))}to{transform:translate(100%)}}.
|
|
1
|
+
._fluid_r73gr_1{flex-grow:1;width:auto}._hoverSpin90Clockwise_r73gr_15>svg{transition:unset}._hoverSpin90Clockwise_r73gr_15 svg{transition:transform .25s ease-in-out!important}._hoverSpin90Clockwise_r73gr_15:hover:not(:disabled) svg{transform:rotate(90deg)!important}._hoverSpin180Clockwise_r73gr_25>svg{transition:unset}._hoverSpin180Clockwise_r73gr_25 svg{transition:transform .3s ease-in-out!important}._hoverSpin180Clockwise_r73gr_25:hover:not(:disabled) svg{transform:rotate(180deg)!important}._hoverSpin360Clockwise_r73gr_35>svg{transition:unset}._hoverSpin360Clockwise_r73gr_35 svg{transition:transform .5s ease-in-out!important}._hoverSpin360Clockwise_r73gr_35:hover:not(:disabled) svg{transform:rotate(360deg)!important}._merged_f4366_1 button:not(:first-child):not(:last-child){border-radius:0}._merged_f4366_1[data-direction=column] button:first-child{border-bottom-right-radius:0;border-bottom-left-radius:0}._merged_f4366_1[data-direction=column] button:last-child{border-top-left-radius:0;border-top-right-radius:0}._merged_f4366_1[data-direction=row] button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}._merged_f4366_1[data-direction=row] button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._fluid_7n1wr_1{flex-grow:1;width:auto}._accommodateCharCount_fni4k_1{margin-bottom:var(--line-height-1)}._default_fni4k_5{flex-grow:0}._noLeftIcon_fni4k_9{padding-left:.5rem!important}._noRightIcon_fni4k_13{padding-right:.5rem!important}._charCount_fni4k_17{position:absolute;right:0;top:98%;font-size:xx-small!important}._charCount_17uut_1{font-size:x-small}._wrapper_o13vb_1{width:fit-content;min-width:300px;max-width:400px;display:block}._wrapper_o13vb_1[data-swipe=move]{transform:translate(var(--radix-toast-swipe-move-x));transition:transform .2s ease-out}._wrapper_o13vb_1[data-swipe=cancel]{transform:translate(0);transition:transform .2s ease-out}._wrapper_o13vb_1[data-swipe=end]{animation:_slideRight_o13vb_1 .2s ease-out}@keyframes _slideRight_o13vb_1{0%{transform:translate(var(--radix-toast-swipe-end-x))}to{transform:translate(100%)}}.radix-themes.radix-themes{--cursor-button: pointer;--cursor-menu-item: pointer}
|