@overmap-ai/blocks 0.0.1-alpha.32 → 0.0.1-alpha.34

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