@overmap-ai/blocks 0.0.1 → 0.0.2-alpha.1

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.
Files changed (89) hide show
  1. package/dist/blocks.js +878 -482
  2. package/dist/blocks.js.map +1 -1
  3. package/dist/blocks.umd.cjs +2 -2
  4. package/dist/blocks.umd.cjs.map +1 -1
  5. package/dist/src/DropdownMenu/DropdownMenu.d.ts +12 -0
  6. package/dist/src/DropdownMenu/index.d.ts +2 -0
  7. package/dist/src/DropdownMenu/typings.d.ts +41 -0
  8. package/dist/src/LeftAndRightPanels/LeftAndRightPanels.d.ts +34 -0
  9. package/dist/src/LeftAndRightPanels/index.d.ts +1 -0
  10. package/dist/src/Separator/Separator.d.ts +3 -0
  11. package/dist/src/Separator/index.d.ts +2 -0
  12. package/dist/src/Separator/typings.d.ts +19 -0
  13. package/dist/src/Sidebar/Sidebar.d.ts +30 -0
  14. package/dist/src/Sidebar/index.d.ts +1 -0
  15. package/dist/{index.d.ts → src/index.d.ts} +5 -1
  16. package/dist/stories/AlertDialog.stories.d.ts +22 -0
  17. package/dist/stories/Badge.stories.d.ts +16 -0
  18. package/dist/stories/Button.stories.d.ts +20 -0
  19. package/dist/stories/ButtonGroup.stories.d.ts +30 -0
  20. package/dist/stories/Dialog.stories.d.ts +31 -0
  21. package/dist/stories/DropdownMenu.stories.d.ts +18 -0
  22. package/dist/stories/Input.stories.d.ts +17 -0
  23. package/dist/stories/LeftAndRightPanels.stories.d.ts +14 -0
  24. package/dist/stories/Select.stories.d.ts +21 -0
  25. package/dist/stories/Separator.stories.d.ts +17 -0
  26. package/dist/stories/Switch.stories.d.ts +24 -0
  27. package/dist/stories/Text.stories.d.ts +17 -0
  28. package/dist/stories/TextArea.stories.d.ts +17 -0
  29. package/dist/stories/ToggleGroup.stories.d.ts +24 -0
  30. package/dist/stories/constants.d.ts +2 -0
  31. package/dist/style.css +1 -1
  32. package/package.json +8 -2
  33. /package/dist/{Badge → src/Badge}/Badge.d.ts +0 -0
  34. /package/dist/{Badge → src/Badge}/index.d.ts +0 -0
  35. /package/dist/{Badge → src/Badge}/typings.d.ts +0 -0
  36. /package/dist/{ButtonGroup → src/ButtonGroup}/ButtonGroup.d.ts +0 -0
  37. /package/dist/{ButtonGroup → src/ButtonGroup}/context.d.ts +0 -0
  38. /package/dist/{ButtonGroup → src/ButtonGroup}/index.d.ts +0 -0
  39. /package/dist/{ButtonGroup → src/ButtonGroup}/typings.d.ts +0 -0
  40. /package/dist/{Buttons → src/Buttons}/Button.d.ts +0 -0
  41. /package/dist/{Buttons → src/Buttons}/IconButton.d.ts +0 -0
  42. /package/dist/{Buttons → src/Buttons}/constants.d.ts +0 -0
  43. /package/dist/{Buttons → src/Buttons}/index.d.ts +0 -0
  44. /package/dist/{Buttons → src/Buttons}/typings.d.ts +0 -0
  45. /package/dist/{Dialogs → src/Dialogs}/AlertDialog/AlertDialog.d.ts +0 -0
  46. /package/dist/{Dialogs → src/Dialogs}/AlertDialog/AlertDialogContent.d.ts +0 -0
  47. /package/dist/{Dialogs → src/Dialogs}/AlertDialog/context.d.ts +0 -0
  48. /package/dist/{Dialogs → src/Dialogs}/AlertDialog/hooks.d.ts +0 -0
  49. /package/dist/{Dialogs → src/Dialogs}/AlertDialog/index.d.ts +0 -0
  50. /package/dist/{Dialogs → src/Dialogs}/AlertDialog/typings.d.ts +0 -0
  51. /package/dist/{Dialogs → src/Dialogs}/Dialog/Dialog.d.ts +0 -0
  52. /package/dist/{Dialogs → src/Dialogs}/Dialog/DialogContent.d.ts +0 -0
  53. /package/dist/{Dialogs → src/Dialogs}/Dialog/index.d.ts +0 -0
  54. /package/dist/{Dialogs → src/Dialogs}/Dialog/typings.d.ts +0 -0
  55. /package/dist/{Dialogs → src/Dialogs}/index.d.ts +0 -0
  56. /package/dist/{Dialogs → src/Dialogs}/typings.d.ts +0 -0
  57. /package/dist/{Input → src/Input}/Input.d.ts +0 -0
  58. /package/dist/{Input → src/Input}/index.d.ts +0 -0
  59. /package/dist/{Input → src/Input}/typings.d.ts +0 -0
  60. /package/dist/{MultiSelect → src/MultiSelect}/MultiSelect.d.ts +0 -0
  61. /package/dist/{MultiSelect → src/MultiSelect}/MultiSelectItem.d.ts +0 -0
  62. /package/dist/{MultiSelect → src/MultiSelect}/index.d.ts +0 -0
  63. /package/dist/{Popover → src/Popover}/Popover.d.ts +0 -0
  64. /package/dist/{Popover → src/Popover}/index.d.ts +0 -0
  65. /package/dist/{Popover → src/Popover}/typings.d.ts +0 -0
  66. /package/dist/{Select → src/Select}/Select.d.ts +0 -0
  67. /package/dist/{Select → src/Select}/index.d.ts +0 -0
  68. /package/dist/{Select → src/Select}/typings.d.ts +0 -0
  69. /package/dist/{Switch → src/Switch}/Switch.d.ts +0 -0
  70. /package/dist/{Switch → src/Switch}/index.d.ts +0 -0
  71. /package/dist/{Switch → src/Switch}/typings.d.ts +0 -0
  72. /package/dist/{Text → src/Text}/Text.d.ts +0 -0
  73. /package/dist/{Text → src/Text}/index.d.ts +0 -0
  74. /package/dist/{TextArea → src/TextArea}/TextArea.d.ts +0 -0
  75. /package/dist/{TextArea → src/TextArea}/index.d.ts +0 -0
  76. /package/dist/{TextArea → src/TextArea}/typings.d.ts +0 -0
  77. /package/dist/{Theme → src/Theme}/DefaultTheme.d.ts +0 -0
  78. /package/dist/{Theme → src/Theme}/index.d.ts +0 -0
  79. /package/dist/{Toast → src/Toast}/Toast.d.ts +0 -0
  80. /package/dist/{Toast → src/Toast}/ToastContext.d.ts +0 -0
  81. /package/dist/{Toast → src/Toast}/ToastProvider.d.ts +0 -0
  82. /package/dist/{Toast → src/Toast}/index.d.ts +0 -0
  83. /package/dist/{Toast → src/Toast}/typings.d.ts +0 -0
  84. /package/dist/{ToggleGroup → src/ToggleGroup}/ToggleGroup.d.ts +0 -0
  85. /package/dist/{ToggleGroup → src/ToggleGroup}/index.d.ts +0 -0
  86. /package/dist/{ToggleGroup → src/ToggleGroup}/typings.d.ts +0 -0
  87. /package/dist/{constants.d.ts → src/constants.d.ts} +0 -0
  88. /package/dist/{typings.d.ts → src/typings.d.ts} +0 -0
  89. /package/dist/{utils.d.ts → src/utils.d.ts} +0 -0
package/dist/blocks.js CHANGED
@@ -1,371 +1,436 @@
1
1
  import "@radix-ui/themes/styles.css";
2
2
  export * from "@radix-ui/colors";
3
- import { Cross1Icon as he, InfoCircledIcon as pe, Cross2Icon as me } from "@radix-ui/react-icons";
3
+ import { Cross1Icon as Ve, DragHandleDots2Icon as le, InfoCircledIcon as He, Cross2Icon as Fe } from "@radix-ui/react-icons";
4
4
  export * from "@radix-ui/react-icons";
5
- import { useThemeContext as fe, Badge as ge, Button as Ce, IconButton as Y, Flex as x, Dialog as N, AlertDialog as R, Select as I, Box as ve, Checkbox as _e, Switch as we, Portal as ye, TextField as V, Text as H, Popover as j, TextArea as Te, Callout as G, Theme as Se } from "@radix-ui/themes";
6
- import { AccessibleIcon as qt, AspectRatio as Kt, Avatar as Ut, Blockquote as Qt, Box as Jt, Callout as Xt, Card as Yt, Checkbox as Zt, Code as eo, Container as to, ContextMenu as oo, DropdownMenu as no, Em as ro, Flex as so, Grid as io, Heading as co, HoverCard as lo, Inset as ao, Kbd as uo, Link as ho, Portal as po, Quote as mo, RadioGroup as fo, ScrollArea as go, Section as Co, Separator as vo, Slider as _o, Slot as wo, Strong as yo, Switch as To, Table as So, Tabs as xo, TextField as ko, Theme as bo, Tooltip as Io, VisuallyHidden as Do, updateThemeAppearanceClass as Ro, useThemeContext as Ao } from "@radix-ui/themes";
7
- import { jsx as o, jsxs as C, Fragment as Z } from "react/jsx-runtime";
8
- import P, { useMemo as z, forwardRef as _, memo as w, createContext as q, useContext as K, useState as D, useCallback as b, createElement as ee, useEffect as te, useRef as xe, useLayoutEffect as ke } from "react";
9
- import { Root as be, Item as Ie } from "@radix-ui/react-toggle-group";
10
- import * as M from "@radix-ui/react-toast";
11
- import { ToastProvider as De, ToastViewport as Re } from "@radix-ui/react-toast";
12
- function Ae(n) {
13
- return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
5
+ import { useThemeContext as Xe, Badge as Ue, Button as qe, IconButton as Re, Flex as D, Dialog as H, AlertDialog as M, DropdownMenu as O, Select as L, Box as X, Checkbox as Ke, Switch as Qe, Portal as Je, TextField as ne, Text as ue, Popover as oe, TextArea as Ye, Callout as re, Theme as Ze, Separator as _e } from "@radix-ui/themes";
6
+ import { AccessibleIcon as Kn, AspectRatio as Qn, Avatar as Jn, Blockquote as Yn, Box as Zn, Callout as eo, Card as to, Checkbox as no, Code as oo, Container as ro, ContextMenu as io, Em as so, Flex as ao, Grid as co, Heading as lo, HoverCard as uo, Inset as ho, Kbd as po, Link as mo, Portal as fo, Quote as go, RadioGroup as Co, ScrollArea as vo, Section as _o, Slider as wo, Slot as yo, Strong as xo, Table as So, Tabs as To, TextField as Po, Theme as Ro, Tooltip as $o, VisuallyHidden as Do, updateThemeAppearanceClass as zo, useThemeContext as bo } from "@radix-ui/themes";
7
+ import { jsx as t, jsxs as C, Fragment as q } from "react/jsx-runtime";
8
+ import K, { useMemo as W, forwardRef as P, memo as w, createContext as me, useContext as fe, useState as $, useCallback as y, createElement as $e, useEffect as de, useRef as ce, useLayoutEffect as et } from "react";
9
+ import * as ie from "@radix-ui/react-dialog";
10
+ import { Resizable as pe } from "re-resizable";
11
+ import { Transition as we } from "react-transition-group";
12
+ import { Root as tt, Item as nt } from "@radix-ui/react-toggle-group";
13
+ import * as se from "@radix-ui/react-toast";
14
+ import { ToastProvider as ot, ToastViewport as rt } from "@radix-ui/react-toast";
15
+ function it(s) {
16
+ return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
14
17
  }
15
- var oe = { exports: {} };
18
+ var De = { exports: {} };
16
19
  /*!
17
20
  Copyright (c) 2018 Jed Watson.
18
21
  Licensed under the MIT License (MIT), see
19
22
  http://jedwatson.github.io/classnames
20
23
  */
21
- (function(n) {
24
+ (function(s) {
22
25
  (function() {
23
- var c = {}.hasOwnProperty;
24
- function r() {
25
- for (var t = [], i = 0; i < arguments.length; i++) {
26
- var e = arguments[i];
26
+ var a = {}.hasOwnProperty;
27
+ function o() {
28
+ for (var n = [], r = 0; r < arguments.length; r++) {
29
+ var e = arguments[r];
27
30
  if (e) {
28
- var l = typeof e;
29
- if (l === "string" || l === "number")
30
- t.push(e);
31
+ var c = typeof e;
32
+ if (c === "string" || c === "number")
33
+ n.push(e);
31
34
  else if (Array.isArray(e)) {
32
35
  if (e.length) {
33
- var s = r.apply(null, e);
34
- s && t.push(s);
36
+ var i = o.apply(null, e);
37
+ i && n.push(i);
35
38
  }
36
- } else if (l === "object") {
39
+ } else if (c === "object") {
37
40
  if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]")) {
38
- t.push(e.toString());
41
+ n.push(e.toString());
39
42
  continue;
40
43
  }
41
- for (var p in e)
42
- c.call(e, p) && e[p] && t.push(p);
44
+ for (var u in e)
45
+ a.call(e, u) && e[u] && n.push(u);
43
46
  }
44
47
  }
45
48
  }
46
- return t.join(" ");
49
+ return n.join(" ");
47
50
  }
48
- n.exports ? (r.default = r, n.exports = r) : window.classNames = r;
51
+ s.exports ? (o.default = o, s.exports = o) : window.classNames = o;
49
52
  })();
50
- })(oe);
51
- var $e = oe.exports;
52
- const T = /* @__PURE__ */ Ae($e);
53
- function O(n, c) {
54
- return z(() => {
55
- if (n !== void 0)
56
- if (typeof n == "object") {
57
- if (!("initial" in n))
53
+ })(De);
54
+ var st = De.exports;
55
+ const x = /* @__PURE__ */ it(st);
56
+ function B(s, a) {
57
+ return W(() => {
58
+ if (s !== void 0)
59
+ if (typeof s == "object") {
60
+ if (!("initial" in s))
58
61
  throw new Error("Expected initial property to be set in Responsive object");
59
- return Object.fromEntries(Object.entries(n).map(([r, t]) => [r, c[t]]));
62
+ return Object.fromEntries(Object.entries(s).map(([o, n]) => [o, a[n]]));
60
63
  } else
61
- return c[n];
62
- }, [c, n]);
64
+ return a[s];
65
+ }, [a, s]);
63
66
  }
64
- const Ne = {
67
+ const at = {
65
68
  success: "green",
66
69
  danger: "red",
67
70
  info: "gray"
68
- }, S = (n) => {
69
- const c = fe();
70
- if (n)
71
- return n === "primary" ? c.accentColor : Ne[n];
72
- }, Oe = _(function({ className: c, severity: r = "primary", color: t, children: i, ...e }, l) {
73
- const s = S(r);
74
- return /* @__PURE__ */ o(
75
- ge,
71
+ }, R = (s) => {
72
+ const a = Xe();
73
+ if (s)
74
+ return s === "primary" ? a.accentColor : at[s];
75
+ }, ct = P(function({ className: a, severity: o = "primary", color: n, children: r, ...e }, c) {
76
+ const i = R(o);
77
+ return /* @__PURE__ */ t(
78
+ Ue,
76
79
  {
77
- className: T("overmap-badge", c),
78
- ref: l,
79
- color: t || s,
80
+ className: x("overmap-badge", a),
81
+ ref: c,
82
+ color: n || i,
80
83
  ...e,
81
- children: i
84
+ children: r
82
85
  }
83
86
  );
84
- }), Dt = w(Oe), Ee = "_fluid_r73gr_1", Be = "_hoverSpin90Clockwise_r73gr_15", Pe = "_hoverSpin180Clockwise_r73gr_25", ze = "_hoverSpin360Clockwise_r73gr_35", B = {
85
- fluid: Ee,
86
- hoverSpin90Clockwise: Be,
87
- hoverSpin180Clockwise: Pe,
88
- hoverSpin360Clockwise: ze
89
- }, ne = {
90
- spin90Clockwise: B.hoverSpin90Clockwise,
91
- spin180Clockwise: B.hoverSpin180Clockwise,
92
- spin360Clockwise: B.hoverSpin360Clockwise
93
- }, L = {
87
+ }), Rn = w(ct), lt = "_fluid_r73gr_1", ut = "_hoverSpin90Clockwise_r73gr_15", dt = "_hoverSpin180Clockwise_r73gr_25", ht = "_hoverSpin360Clockwise_r73gr_35", U = {
88
+ fluid: lt,
89
+ hoverSpin90Clockwise: ut,
90
+ hoverSpin180Clockwise: dt,
91
+ hoverSpin360Clockwise: ht
92
+ }, ze = {
93
+ spin90Clockwise: U.hoverSpin90Clockwise,
94
+ spin180Clockwise: U.hoverSpin180Clockwise,
95
+ spin360Clockwise: U.hoverSpin360Clockwise
96
+ }, Q = {
94
97
  small: "1",
95
98
  medium: "2",
96
99
  large: "3"
97
- }, re = q({}), se = () => K(re), Le = _(function(c, r) {
98
- const t = se(), {
99
- className: i,
100
+ }, be = me({}), Ie = () => fe(be), pt = P(function(a, o) {
101
+ const n = Ie(), {
102
+ className: r,
100
103
  type: e = "button",
101
- fluid: l = t.fluid ?? !1,
102
- size: s = t.size ?? "medium",
103
- severity: p = t.severity ?? "primary",
104
- hoverEffects: a = t.hoverEffects ?? [],
105
- variant: d = t.variant,
106
- ...h
107
- } = c, m = S(p), f = a.map((u) => ne[u]);
108
- return /* @__PURE__ */ o(
109
- Ce,
104
+ fluid: c = n.fluid ?? !1,
105
+ size: i = n.size ?? "medium",
106
+ severity: u = n.severity ?? "primary",
107
+ hoverEffects: l = n.hoverEffects ?? [],
108
+ variant: p = n.variant,
109
+ ...d
110
+ } = a, m = R(u), f = l.map((h) => ze[h]);
111
+ return /* @__PURE__ */ t(
112
+ qe,
110
113
  {
111
- ref: r,
114
+ ref: o,
112
115
  type: e,
113
- className: T(i, f, {
114
- [B.fluid]: l
116
+ className: x(r, f, {
117
+ [U.fluid]: c
115
118
  }),
116
119
  color: m,
117
- size: O(s, L),
118
- variant: d,
119
- ...h
120
+ size: B(i, Q),
121
+ variant: p,
122
+ ...d
120
123
  }
121
124
  );
122
- }), Q = P.memo(Le), Ve = _(function(c, r) {
123
- const t = se(), {
124
- className: i,
125
+ }), ye = K.memo(pt), mt = P(function(a, o) {
126
+ const n = Ie(), {
127
+ className: r,
125
128
  children: e,
126
- type: l = "button",
127
- fluid: s = t.fluid ?? !1,
128
- size: p = t.size ?? "medium",
129
- severity: a = t.severity ?? "primary",
130
- hoverEffects: d = t.hoverEffects ?? [],
131
- variant: h = t.variant,
129
+ type: c = "button",
130
+ fluid: i = n.fluid ?? !1,
131
+ size: u = n.size ?? "medium",
132
+ severity: l = n.severity ?? "primary",
133
+ hoverEffects: p = n.hoverEffects ?? [],
134
+ variant: d = n.variant,
132
135
  ...m
133
- } = c, f = S(a), u = (d == null ? void 0 : d.map((g) => ne[g])) || [];
134
- return /* @__PURE__ */ o(
135
- Y,
136
+ } = a, f = R(l), h = (p == null ? void 0 : p.map((v) => ze[v])) || [];
137
+ return /* @__PURE__ */ t(
138
+ Re,
136
139
  {
137
- className: T(i, u, {
138
- [B.fluid]: s
140
+ className: x(r, h, {
141
+ [U.fluid]: i
139
142
  }),
140
- ref: r,
143
+ ref: o,
141
144
  color: f,
142
- size: O(p, L),
143
- variant: h,
144
- type: l,
145
+ size: B(u, Q),
146
+ variant: d,
147
+ type: c,
145
148
  ...m,
146
149
  children: e
147
150
  }
148
151
  );
149
- }), ie = P.memo(Ve), je = "_merged_f4366_1", Ge = {
150
- merged: je
151
- }, Me = {
152
+ }), Oe = K.memo(mt), ft = "_merged_f4366_1", gt = {
153
+ merged: ft
154
+ }, Ct = {
152
155
  row: { small: "4", medium: "4", large: "5" },
153
156
  column: { small: "2", medium: "3", large: "4" }
154
- }, Fe = _(function({
155
- className: c,
156
- merged: r = !1,
157
- children: t,
158
- gap: i,
157
+ }, vt = P(function({
158
+ className: a,
159
+ merged: o = !1,
160
+ children: n,
161
+ gap: r,
159
162
  direction: e = "row",
160
- severity: l,
161
- size: s = "medium",
162
- variant: p,
163
- hoverEffects: a,
164
- fluid: d,
165
- ...h
163
+ severity: c,
164
+ size: i = "medium",
165
+ variant: u,
166
+ hoverEffects: l,
167
+ fluid: p,
168
+ ...d
166
169
  }, m) {
167
- const f = O(s, Me[e]), u = p === "ghost" ? f : "0";
168
- return /* @__PURE__ */ o(
169
- x,
170
+ const f = B(i, Ct[e]), h = u === "ghost" ? f : "0";
171
+ return /* @__PURE__ */ t(
172
+ D,
170
173
  {
171
- className: T("overmap-button-group", c, {
172
- [Ge.merged]: r
174
+ className: x("overmap-button-group", a, {
175
+ [gt.merged]: o
173
176
  }),
174
177
  ref: m,
175
- gap: r ? i ?? u : i ?? "2",
178
+ gap: o ? r ?? h : r ?? "2",
176
179
  direction: e,
177
180
  "data-direction": e,
178
- ...h,
179
- children: /* @__PURE__ */ o(re.Provider, { value: { size: s, severity: l, variant: p, hoverEffects: a, fluid: d }, children: t })
181
+ ...d,
182
+ children: /* @__PURE__ */ t(be.Provider, { value: { size: i, severity: c, variant: u, hoverEffects: l, fluid: p }, children: n })
180
183
  }
181
184
  );
182
- }), We = w(Fe), He = w(function(c) {
183
- const { title: r, description: t, content: i, closeDialog: e } = c;
184
- return /* @__PURE__ */ C(x, { direction: "column", gap: "2", children: [
185
- /* @__PURE__ */ C(x, { direction: "column", gap: "1", children: [
186
- /* @__PURE__ */ C(x, { justify: "between", children: [
187
- /* @__PURE__ */ o(N.Title, { mb: "0", children: r }),
188
- /* @__PURE__ */ o(N.Close, { children: /* @__PURE__ */ o(Y, { color: "gray", variant: "ghost", "aria-label": "Close", children: /* @__PURE__ */ o(he, {}) }) })
185
+ }), _t = w(vt), wt = w(function(a) {
186
+ const { title: o, description: n, content: r, closeDialog: e } = a;
187
+ return /* @__PURE__ */ C(D, { direction: "column", gap: "2", children: [
188
+ /* @__PURE__ */ C(D, { direction: "column", gap: "1", children: [
189
+ /* @__PURE__ */ C(D, { justify: "between", children: [
190
+ /* @__PURE__ */ t(H.Title, { mb: "0", children: o }),
191
+ /* @__PURE__ */ t(H.Close, { children: /* @__PURE__ */ t(Re, { color: "gray", variant: "ghost", "aria-label": "Close", children: /* @__PURE__ */ t(Ve, {}) }) })
189
192
  ] }),
190
- /* @__PURE__ */ o(N.Description, { children: t })
193
+ /* @__PURE__ */ t(H.Description, { children: n })
191
194
  ] }),
192
- i(e)
195
+ r(e)
193
196
  ] });
194
- }), Rt = w(function(c) {
195
- const { children: r, size: t, onOpen: i, onCloseInterrupt: e, ...l } = c, [s, p] = D(!1), a = b(
196
- (h) => {
197
- if (h && i)
198
- i();
199
- else if (!h && e)
200
- return e(() => p(!1));
201
- p(h);
197
+ }), $n = w(function(a) {
198
+ const { children: o, size: n, onOpen: r, onCloseInterrupt: e, ...c } = a, [i, u] = $(!1), l = y(
199
+ (d) => {
200
+ if (d && r)
201
+ r();
202
+ else if (!d && e)
203
+ return e(() => u(!1));
204
+ u(d);
202
205
  },
203
- [i, e]
204
- ), d = b(
205
- (h) => {
206
- if (h != null && h.force)
207
- return p(!1);
208
- a(!1);
206
+ [r, e]
207
+ ), p = y(
208
+ (d) => {
209
+ if (d != null && d.force)
210
+ return u(!1);
211
+ l(!1);
209
212
  },
210
- [a]
213
+ [l]
211
214
  );
212
- return /* @__PURE__ */ C(N.Root, { open: s, onOpenChange: a, children: [
213
- /* @__PURE__ */ o(N.Content, { size: t, children: /* @__PURE__ */ o(He, { closeDialog: d, ...l }) }),
214
- r(N.Trigger)
215
+ return /* @__PURE__ */ C(H.Root, { open: i, onOpenChange: l, children: [
216
+ /* @__PURE__ */ t(H.Content, { size: n, children: /* @__PURE__ */ t(wt, { closeDialog: p, ...c }) }),
217
+ o(H.Trigger)
215
218
  ] });
216
- }), ce = (n) => /* @__PURE__ */ o(R.Title, { mb: "0", ...n }), qe = (n) => {
217
- const { title: c, description: r, actionText: t = "Confirm", cancelText: i = "Cancel", onAction: e, onCancel: l, severity: s } = n;
218
- return /* @__PURE__ */ C(x, { direction: "column", gap: "2", children: [
219
- /* @__PURE__ */ C(x, { direction: "column", gap: "1", children: [
220
- /* @__PURE__ */ o(ce, { children: c }),
221
- /* @__PURE__ */ o(R.Description, { children: r })
219
+ }), Ne = (s) => /* @__PURE__ */ t(M.Title, { mb: "0", ...s }), yt = (s) => {
220
+ const { title: a, description: o, actionText: n = "Confirm", cancelText: r = "Cancel", onAction: e, onCancel: c, severity: i } = s;
221
+ return /* @__PURE__ */ C(D, { direction: "column", gap: "2", children: [
222
+ /* @__PURE__ */ C(D, { direction: "column", gap: "1", children: [
223
+ /* @__PURE__ */ t(Ne, { children: a }),
224
+ /* @__PURE__ */ t(M.Description, { children: o })
222
225
  ] }),
223
- /* @__PURE__ */ C(x, { gap: "3", mt: "4", justify: "end", children: [
224
- /* @__PURE__ */ o(R.Cancel, { children: /* @__PURE__ */ o(Q, { variant: "soft", severity: "info", onClick: l, children: i }) }),
225
- /* @__PURE__ */ o(R.Action, { children: /* @__PURE__ */ o(Q, { variant: "solid", severity: s, onClick: e, children: t }) })
226
+ /* @__PURE__ */ C(D, { gap: "3", mt: "4", justify: "end", children: [
227
+ /* @__PURE__ */ t(M.Cancel, { children: /* @__PURE__ */ t(ye, { variant: "soft", severity: "info", onClick: c, children: r }) }),
228
+ /* @__PURE__ */ t(M.Action, { children: /* @__PURE__ */ t(ye, { variant: "solid", severity: i, onClick: e, children: n }) })
226
229
  ] })
227
230
  ] });
228
- }, Ke = w(function(c) {
229
- const { open: r, setOpen: t, children: i, ...e } = c, l = z(() => ({
230
- close: () => t(!1),
231
- Title: ce,
232
- Description: R.Description
233
- }), [t]);
234
- return /* @__PURE__ */ C(R.Root, { open: r, onOpenChange: t, children: [
235
- /* @__PURE__ */ o(R.Content, { children: "content" in e ? e.content(l) : /* @__PURE__ */ o(qe, { ...e }) }),
236
- i
231
+ }, xt = w(function(a) {
232
+ const { open: o, setOpen: n, children: r, ...e } = a, c = W(() => ({
233
+ close: () => n(!1),
234
+ Title: Ne,
235
+ Description: M.Description
236
+ }), [n]);
237
+ return /* @__PURE__ */ C(M.Root, { open: o, onOpenChange: n, children: [
238
+ /* @__PURE__ */ t(M.Content, { children: "content" in e ? e.content(c) : /* @__PURE__ */ t(yt, { ...e }) }),
239
+ r
237
240
  ] });
238
- }), le = q(() => {
241
+ }), ke = me(() => {
239
242
  throw new Error("No AlertDialogProvider found");
240
- }), Ue = {
243
+ }), St = {
241
244
  content: () => null
242
- }, At = w(function({ children: c }) {
243
- const [r, t] = D(!1), [i, e] = D(Ue), l = b(
244
- (s) => {
245
- if (r)
245
+ }, Dn = w(function({ children: a }) {
246
+ const [o, n] = $(!1), [r, e] = $(St), c = y(
247
+ (i) => {
248
+ if (o)
246
249
  throw new Error("AlertDialog is already open");
247
- e(s), t(!0);
250
+ e(i), n(!0);
251
+ },
252
+ [o]
253
+ );
254
+ return /* @__PURE__ */ t(xt, { open: o, setOpen: n, ...r, children: /* @__PURE__ */ t(ke.Provider, { value: c, children: a }) });
255
+ }), zn = () => fe(ke), Tt = w(function({
256
+ severity: a,
257
+ itemContent: o,
258
+ closeOnSelect: n = !0,
259
+ onSelect: r,
260
+ ...e
261
+ }) {
262
+ const c = R(a), i = y(
263
+ (u) => {
264
+ n || u.preventDefault(), r && r(u);
248
265
  },
249
- [r]
266
+ [n, r]
250
267
  );
251
- return /* @__PURE__ */ o(Ke, { open: r, setOpen: t, ...i, children: /* @__PURE__ */ o(le.Provider, { value: l, children: c }) });
252
- }), $t = () => K(le), Qe = "_fluid_7n1wr_1", Je = {
253
- fluid: Qe
254
- }, Xe = _(function({
255
- className: c,
256
- fluid: r,
257
- size: t = "medium",
258
- variant: i = "surface",
268
+ return /* @__PURE__ */ t(O.Item, { onSelect: i, color: c, ...e, children: o });
269
+ }), Pt = w(function({
270
+ defaultOpen: a,
271
+ open: o,
272
+ onOpenChange: n,
273
+ modal: r,
274
+ trigger: e,
275
+ label: c,
276
+ severity: i = "info",
277
+ children: u,
278
+ ...l
279
+ }) {
280
+ const p = R(i);
281
+ return /* @__PURE__ */ C(O.Root, { defaultOpen: a, open: o, onOpenChange: n, modal: r, children: [
282
+ /* @__PURE__ */ t(O.Trigger, { children: e }),
283
+ /* @__PURE__ */ C(O.Content, { color: p, ...l, children: [
284
+ c && /* @__PURE__ */ t(O.Label, { children: c }),
285
+ u
286
+ ] })
287
+ ] });
288
+ }), Rt = w(function({
289
+ separatorBelow: a = !1,
290
+ separatorAbove: o = !1,
291
+ children: n,
292
+ ...r
293
+ }) {
294
+ return /* @__PURE__ */ C(q, { children: [
295
+ o && /* @__PURE__ */ t(O.Separator, {}),
296
+ /* @__PURE__ */ t(O.Group, { ...r, children: n }),
297
+ a && /* @__PURE__ */ t(O.Separator, {})
298
+ ] });
299
+ }), $t = w(function({
300
+ defaultOpen: a,
301
+ open: o,
302
+ onOpenChange: n,
303
+ trigger: r,
304
+ children: e,
305
+ ...c
306
+ }) {
307
+ return /* @__PURE__ */ C(O.Sub, { defaultOpen: a, open: o, onOpenChange: n, children: [
308
+ /* @__PURE__ */ t(O.SubTrigger, { children: r }),
309
+ /* @__PURE__ */ t(O.SubContent, { ...c, children: e })
310
+ ] });
311
+ }), bn = {
312
+ Root: Pt,
313
+ ItemGroup: Rt,
314
+ Item: Tt,
315
+ SubMenu: $t
316
+ }, Dt = "_fluid_7n1wr_1", xe = {
317
+ fluid: Dt
318
+ }, zt = P(function({
319
+ className: a,
320
+ fluid: o,
321
+ size: n = "medium",
322
+ variant: r = "surface",
259
323
  severity: e = "primary",
260
- itemSeverity: l = "info",
261
- placeholder: s = "Select",
262
- side: p,
263
- items: a = [],
264
- value: d,
265
- id: h,
324
+ itemSeverity: c = "info",
325
+ placeholder: i = "Select",
326
+ side: u,
327
+ items: l = [],
328
+ value: p,
329
+ id: d,
266
330
  ...m
267
331
  }, f) {
268
- const u = O(t, L), g = S(e), y = S(l);
269
- return /* @__PURE__ */ ee(I.Root, { size: u, ...m, key: d === void 0 ? 1 : 0, value: d }, /* @__PURE__ */ o(
270
- I.Trigger,
332
+ const h = B(n, Q), v = R(e), g = R(c);
333
+ return /* @__PURE__ */ $e(L.Root, { size: h, ...m, key: p === void 0 ? 1 : 0, value: p }, /* @__PURE__ */ t(
334
+ L.Trigger,
271
335
  {
272
- className: T(c, {
273
- [Je.fluid]: r
336
+ className: x(a, {
337
+ [xe.fluid]: o
274
338
  }),
275
- id: h,
339
+ id: d,
276
340
  ref: f,
277
- variant: i,
278
- placeholder: s,
279
- color: g
341
+ variant: r,
342
+ placeholder: i,
343
+ color: v
280
344
  }
281
- ), /* @__PURE__ */ o(
282
- I.Content,
345
+ ), /* @__PURE__ */ t(
346
+ L.Content,
283
347
  {
284
- side: p,
348
+ side: u,
349
+ className: xe.contentDefault,
285
350
  position: "popper",
286
- variant: i !== "surface" ? "soft" : "solid",
287
- color: y,
288
- children: a.map(({ itemContent: k, value: A, ...E }) => /* @__PURE__ */ o(I.Item, { className: "overmap-select-item", value: A, ...E, children: k }, A))
351
+ variant: r !== "surface" ? "soft" : "solid",
352
+ color: g,
353
+ children: l.map(({ itemContent: T, value: E, ...I }) => /* @__PURE__ */ t(L.Item, { className: "overmap-select-item", value: E, ...I, children: T }, E))
289
354
  }
290
355
  ));
291
- }), Nt = P.memo(Xe), J = w(
292
- _((n, c) => {
293
- const { checked: r, label: t, value: i, size: e = "2" } = n;
294
- return /* @__PURE__ */ o(ve, { asChild: !0, px: e, children: /* @__PURE__ */ o(I.Item, { value: i, ref: c, children: /* @__PURE__ */ C(x, { gap: e, align: "center", children: [
295
- /* @__PURE__ */ o(_e, { checked: r }),
296
- t
356
+ }), In = K.memo(zt), Se = w(
357
+ P((s, a) => {
358
+ const { checked: o, label: n, value: r, size: e = "2" } = s;
359
+ return /* @__PURE__ */ t(X, { asChild: !0, px: e, children: /* @__PURE__ */ t(L.Item, { value: r, ref: a, children: /* @__PURE__ */ C(D, { gap: e, align: "center", children: [
360
+ /* @__PURE__ */ t(Ke, { checked: o }),
361
+ n
297
362
  ] }) }) });
298
363
  })
299
- ), F = "__select_all__", Ot = w(
300
- _((n, c) => {
301
- const [r, t] = D(!1), { placeholder: i, value: e, onValueChange: l, options: s, disabled: p, id: a, radius: d, variant: h, name: m } = n, f = O(n.size, L), u = S(n.severity), g = z(() => new Map(s.map((v) => [v.value, v.label])), [s]), y = e.length > 4 ? (
364
+ ), ae = "__select_all__", On = w(
365
+ P((s, a) => {
366
+ const [o, n] = $(!1), { placeholder: r, value: e, onValueChange: c, options: i, disabled: u, id: l, radius: p, variant: d, name: m } = s, f = B(s.size, Q), h = R(s.severity), v = W(() => new Map(i.map((_) => [_.value, _.label])), [i]), g = e.length > 4 ? (
302
367
  // to ensure the width of the select doesn't get too big
303
368
  `${e.length} options selected`
304
369
  ) : (
305
370
  // convert the values to labels
306
- e.map((v) => g.get(v)).join(", ")
307
- ), k = b(() => t(!1), []), A = b((v) => {
308
- v && t(!0);
309
- }, []), E = b(
310
- (v) => {
311
- let W;
312
- v === F ? W = e.length === s.length ? [] : s.map((de) => de.value) : W = e.includes(v) ? e.filter((U) => U !== v) : [...e, v], l(W);
371
+ e.map((_) => v.get(_)).join(", ")
372
+ ), T = y(() => n(!1), []), E = y((_) => {
373
+ _ && n(!0);
374
+ }, []), I = y(
375
+ (_) => {
376
+ let F;
377
+ _ === ae ? F = e.length === i.length ? [] : i.map((G) => G.value) : F = e.includes(_) ? e.filter((J) => J !== _) : [...e, _], c(F);
313
378
  },
314
- [l, s, e]
379
+ [c, i, e]
315
380
  );
316
- return te(() => {
317
- if (s.some(({ value: v }) => v === F))
318
- throw new Error(`Cannot have an option with the value "${F}"`);
319
- }, [s]), /* @__PURE__ */ C(
320
- I.Root,
381
+ return de(() => {
382
+ if (i.some(({ value: _ }) => _ === ae))
383
+ throw new Error(`Cannot have an option with the value "${ae}"`);
384
+ }, [i]), /* @__PURE__ */ C(
385
+ L.Root,
321
386
  {
322
- open: r,
387
+ open: o,
323
388
  value: "",
324
- onOpenChange: A,
325
- onValueChange: E,
326
- disabled: p,
389
+ onOpenChange: E,
390
+ onValueChange: I,
391
+ disabled: u,
327
392
  size: f,
328
393
  name: m,
329
394
  autoComplete: "off",
330
395
  children: [
331
- /* @__PURE__ */ o(
332
- I.Trigger,
396
+ /* @__PURE__ */ t(
397
+ L.Trigger,
333
398
  {
334
- ref: c,
335
- id: a,
336
- radius: d,
337
- variant: h,
338
- color: u,
339
- placeholder: e.length > 0 ? y : i,
399
+ ref: a,
400
+ id: l,
401
+ radius: p,
402
+ variant: d,
403
+ color: h,
404
+ placeholder: e.length > 0 ? g : r,
340
405
  "data-placeholder": e.length > 0 ? void 0 : !0
341
406
  }
342
407
  ),
343
408
  /* @__PURE__ */ C(
344
- I.Content,
409
+ L.Content,
345
410
  {
346
411
  color: "gray",
347
412
  variant: "soft",
348
413
  position: "popper",
349
- onEscapeKeyDown: k,
350
- onPointerDownOutside: k,
414
+ onEscapeKeyDown: T,
415
+ onPointerDownOutside: T,
351
416
  children: [
352
- /* @__PURE__ */ o(
353
- J,
417
+ /* @__PURE__ */ t(
418
+ Se,
354
419
  {
355
- value: F,
420
+ value: ae,
356
421
  label: "Select all",
357
- checked: e.length === s.length,
422
+ checked: e.length === i.length,
358
423
  size: f
359
424
  }
360
425
  ),
361
- s.map((v) => /* @__PURE__ */ o(
362
- J,
426
+ i.map((_) => /* @__PURE__ */ t(
427
+ Se,
363
428
  {
364
- ...v,
365
- checked: e.includes(v.value),
429
+ ..._,
430
+ checked: e.includes(_.value),
366
431
  size: f
367
432
  },
368
- v.value
433
+ _.value
369
434
  ))
370
435
  ]
371
436
  }
@@ -374,307 +439,638 @@ const Ne = {
374
439
  }
375
440
  );
376
441
  })
377
- ), Ye = {
442
+ ), bt = {
378
443
  default: "_default_u936h_1"
379
- }, Ze = _(function({ className: c, severity: r = "primary", icon: t, defaultChecked: i = !1, onCheckedChange: e, ...l }, s) {
380
- const p = xe(null), [a, d] = D(l.checked ? l.checked : i), [h, m] = D(), f = S(r);
381
- ke(() => {
382
- var k;
383
- const y = s || p;
384
- "current" in y && y.current && m((k = y.current) == null ? void 0 : k.querySelector("span.rt-SwitchThumb"));
385
- }, [s]);
386
- const u = b(
387
- (y) => {
388
- d(y), e && e(y);
444
+ }, It = P(function({ className: a, severity: o = "primary", icon: n, defaultChecked: r = !1, onCheckedChange: e, ...c }, i) {
445
+ const u = ce(null), [l, p] = $(c.checked ? c.checked : r), [d, m] = $(), f = R(o);
446
+ et(() => {
447
+ var T;
448
+ const g = i || u;
449
+ "current" in g && g.current && m((T = g.current) == null ? void 0 : T.querySelector("span.rt-SwitchThumb"));
450
+ }, [i]);
451
+ const h = y(
452
+ (g) => {
453
+ p(g), e && e(g);
389
454
  },
390
455
  [e]
391
- ), g = l.checked ? l.checked : a;
392
- return /* @__PURE__ */ C(Z, { children: [
393
- /* @__PURE__ */ o(
394
- we,
456
+ ), v = c.checked ? c.checked : l;
457
+ return /* @__PURE__ */ C(q, { children: [
458
+ /* @__PURE__ */ t(
459
+ Qe,
395
460
  {
396
- className: T("overmap-switch", c, Ye.default),
397
- ref: s || p,
461
+ className: x("overmap-switch", a, bt.default),
462
+ ref: i || u,
398
463
  color: f,
399
464
  radius: "full",
400
- defaultChecked: i,
401
- onCheckedChange: u,
402
- ...l
465
+ defaultChecked: r,
466
+ onCheckedChange: h,
467
+ ...c
403
468
  }
404
469
  ),
405
- /* @__PURE__ */ o(ye, { container: h, asChild: !0, children: t && "checked" in t ? g ? t.checked : t.unchecked : t })
470
+ /* @__PURE__ */ t(Je, { container: d, asChild: !0, children: n && "checked" in n ? v ? n.checked : n.unchecked : n })
406
471
  ] });
407
- });
408
- w(Ze);
409
- const et = "_accommodateCharCount_sr18k_1", tt = "_wrapper_sr18k_5", ot = "_noLeftIcon_sr18k_13", nt = "_noRightIcon_sr18k_17", rt = "_charCount_sr18k_21", $ = {
410
- accommodateCharCount: et,
411
- wrapper: tt,
472
+ }), Nn = w(It), Ot = "_sidebarContent_1onyo_1", Nt = "_right_1onyo_7", kt = "_resizeHandle_1onyo_10", Et = "_left_1onyo_13", At = "_overlay_1onyo_33", j = {
473
+ sidebarContent: Ot,
474
+ right: Nt,
475
+ resizeHandle: kt,
476
+ left: Et,
477
+ overlay: At
478
+ }, Lt = P(function({
479
+ side: a = "left",
480
+ modal: o = !0,
481
+ children: n,
482
+ open: r,
483
+ containerSelector: e,
484
+ overlay: c = !0,
485
+ resizable: i = !0,
486
+ // Props related to Resizable
487
+ minWidth: u = "300px",
488
+ maxWidth: l = "500px",
489
+ ...p
490
+ }, d) {
491
+ const m = a === "right", f = a === "left", [h, v] = $();
492
+ return de(() => {
493
+ const g = e ?? '[data-is-root-theme="true"]', T = document.querySelector(g);
494
+ if (T === void 0)
495
+ throw new Error(`Could not find a container element using the following selector ${g}`);
496
+ v(T);
497
+ }, [e]), /* @__PURE__ */ t(ie.Root, { open: r, modal: o, children: /* @__PURE__ */ C(ie.Portal, { container: h, children: [
498
+ c && /* @__PURE__ */ t(ie.Overlay, { className: x(j.overlay) }),
499
+ /* @__PURE__ */ t(
500
+ ie.Content,
501
+ {
502
+ className: x("overmap-sidebar", "rt-DialogContent", j.sidebarContent, {
503
+ [j.left]: f,
504
+ [j.right]: m
505
+ }),
506
+ ref: d,
507
+ asChild: !0,
508
+ ...p,
509
+ children: /* @__PURE__ */ t(X, { width: "auto", children: /* @__PURE__ */ t(
510
+ pe,
511
+ {
512
+ minWidth: u,
513
+ maxWidth: l,
514
+ defaultSize: { width: "300px", height: "100%" },
515
+ enable: { right: i && f, left: i && m },
516
+ handleClasses: { left: j.resizeHandle, right: j.resizeHandle },
517
+ handleComponent: {
518
+ right: /* @__PURE__ */ t(le, {}),
519
+ left: /* @__PURE__ */ t(le, {})
520
+ },
521
+ children: n
522
+ }
523
+ ) })
524
+ }
525
+ )
526
+ ] }) });
527
+ }), kn = w(Lt), Mt = "_accommodateCharCount_sr18k_1", Wt = "_wrapper_sr18k_5", Bt = "_noLeftIcon_sr18k_13", Gt = "_noRightIcon_sr18k_17", jt = "_charCount_sr18k_21", V = {
528
+ accommodateCharCount: Mt,
529
+ wrapper: Wt,
412
530
  default: "_default_sr18k_9",
413
- noLeftIcon: ot,
414
- noRightIcon: nt,
415
- charCount: rt
416
- }, st = _(function({
417
- className: c,
418
- leftSlot: r,
419
- rightSlot: t,
420
- size: i = "medium",
531
+ noLeftIcon: Bt,
532
+ noRightIcon: Gt,
533
+ charCount: jt
534
+ }, Vt = P(function({
535
+ className: a,
536
+ leftSlot: o,
537
+ rightSlot: n,
538
+ size: r = "medium",
421
539
  showInputLength: e,
422
- value: l,
423
- variant: s,
424
- severity: p = "primary",
425
- ...a
426
- }, d) {
427
- const h = O(i, L), m = S(p), f = e || e === void 0 && a.maxLength !== void 0, u = l !== void 0 ? l.toString() : void 0;
540
+ value: c,
541
+ variant: i,
542
+ severity: u = "primary",
543
+ ...l
544
+ }, p) {
545
+ const d = B(r, Q), m = R(u), f = e || e === void 0 && l.maxLength !== void 0, h = c !== void 0 ? c.toString() : void 0;
428
546
  return /* @__PURE__ */ C(
429
- V.Root,
547
+ ne.Root,
430
548
  {
431
- className: T($.wrapper, {
432
- [$.accommodateCharCount]: f
549
+ className: x(V.wrapper, {
550
+ [V.accommodateCharCount]: f
433
551
  }),
434
- size: h,
435
- variant: s,
552
+ size: d,
553
+ variant: i,
436
554
  color: m,
437
555
  children: [
438
- r && /* @__PURE__ */ o(V.Slot, { children: r }),
439
- /* @__PURE__ */ o(
440
- V.Input,
556
+ o && /* @__PURE__ */ t(ne.Slot, { children: o }),
557
+ /* @__PURE__ */ t(
558
+ ne.Input,
441
559
  {
442
- className: T($.default, c, {
443
- [$.noLeftIcon]: !r,
444
- [$.noRightIcon]: !t
560
+ className: x(V.default, a, {
561
+ [V.noLeftIcon]: !o,
562
+ [V.noRightIcon]: !n
445
563
  }),
446
- ref: d,
447
- size: h,
448
- variant: s,
564
+ ref: p,
565
+ size: d,
566
+ variant: i,
449
567
  color: m,
450
- ...a
568
+ ...l
451
569
  }
452
570
  ),
453
- t && /* @__PURE__ */ o(V.Slot, { children: t }),
454
- f && /* @__PURE__ */ o(H, { as: "p", className: $.charCount, size: "1", color: "gray", children: a.maxLength !== void 0 ? `${u == null ? void 0 : u.length}/${a.maxLength}` : `${u == null ? void 0 : u.length}` })
571
+ n && /* @__PURE__ */ t(ne.Slot, { children: n }),
572
+ f && /* @__PURE__ */ t(ue, { as: "p", className: V.charCount, size: "1", color: "gray", children: l.maxLength !== void 0 ? `${h == null ? void 0 : h.length}/${l.maxLength}` : `${h == null ? void 0 : h.length}` })
455
573
  ]
456
574
  }
457
575
  );
458
- }), Et = P.memo(st), it = _(function({ defaultOpen: c = !1, modal: r = !1, content: t, children: i, ...e }, l) {
459
- return /* @__PURE__ */ C(j.Root, { defaultOpen: c, modal: r, children: [
460
- /* @__PURE__ */ o(j.Trigger, { children: i }),
461
- /* @__PURE__ */ o(j.Content, { ref: l, ...e, children: t(j.Close) })
576
+ }), En = K.memo(Vt), Ht = "_wrapper_tmtz0_1", Ft = {
577
+ wrapper: Ht
578
+ }, Xt = P(function({ className: a, defaultOpen: o = !1, modal: n = !1, content: r, children: e, ...c }, i) {
579
+ return /* @__PURE__ */ C(oe.Root, { defaultOpen: o, modal: n, children: [
580
+ /* @__PURE__ */ t(oe.Trigger, { children: e }),
581
+ /* @__PURE__ */ t(
582
+ oe.Content,
583
+ {
584
+ ref: i,
585
+ className: x("overmap-popover", a, Ft.wrapper),
586
+ ...c,
587
+ children: r(oe.Close)
588
+ }
589
+ )
462
590
  ] });
463
- }), Bt = P.memo(it), ct = "_charCount_17uut_1", lt = {
464
- charCount: ct
465
- }, at = _(function({ className: c, showInputLength: r, inputLengthTemplate: t, value: i, severity: e = "primary", resize: l, ...s }, p) {
466
- const a = S(e), d = S("info"), h = r || r === void 0 && (s.maxLength !== void 0 || s.minLength !== void 0), m = i !== void 0 ? i.toString() : "", f = z(() => {
467
- if (t) {
468
- let u = t.replace("{current}", m.length.toString());
469
- return s.minLength !== void 0 && (u = u.replace("{min}", s.minLength.toString())), s.maxLength !== void 0 && (u = u.replace("{max}", s.maxLength.toString())), u;
591
+ }), An = K.memo(Xt), Ut = "_wrapper_1mz2e_1", qt = "_panelContent_1mz2e_6", Kt = "_left_1mz2e_14", Qt = "_right_1mz2e_18", Jt = "_resizable_1mz2e_23", Yt = "_resizeHandle_1mz2e_28", Zt = "_panelMainContent_1mz2e_48", b = {
592
+ wrapper: Ut,
593
+ panelContent: qt,
594
+ left: Kt,
595
+ right: Qt,
596
+ resizable: Jt,
597
+ resizeHandle: Yt,
598
+ panelMainContent: Zt
599
+ }, Te = 200, A = 150, Ln = w(function({
600
+ children: a,
601
+ showLeft: o,
602
+ leftPanel: n,
603
+ leftMinWidth: r = Te,
604
+ showRight: e,
605
+ rightPanel: c,
606
+ rightMinWidth: i = Te,
607
+ resizeable: u
608
+ }) {
609
+ const l = ce(null), p = ce(null), [d, m] = $(0), [f, h] = $(), v = ce(null), [g, T] = $(0), [E, I] = $(), _ = y(
610
+ (S, z, N) => (k, Ce, ve, he) => {
611
+ if (!l.current)
612
+ return;
613
+ const Z = S + he.width;
614
+ N(l.current.clientWidth - Z), z(() => Z);
615
+ },
616
+ []
617
+ ), F = y(
618
+ (S, z, N, k) => _(d, m, I)(S, z, N, k),
619
+ [_, d]
620
+ ), J = y(
621
+ (S, z, N, k) => _(g, T, h)(S, z, N, k),
622
+ [_, g]
623
+ ), G = y(
624
+ (S, z, N, k, Ce, ve, he, Z) => {
625
+ if (!l.current)
626
+ return;
627
+ let ee = S;
628
+ if (ee === 0 && (ee = z, N(ee)), ve) {
629
+ const te = l.current.clientWidth - ee;
630
+ Z(te), Ce > te && (he(te), k(l.current.clientWidth - te));
631
+ }
632
+ },
633
+ []
634
+ ), Le = y(
635
+ () => G(
636
+ g,
637
+ i,
638
+ T,
639
+ I,
640
+ d,
641
+ o,
642
+ m,
643
+ h
644
+ ),
645
+ [G, d, i, g, o]
646
+ ), Me = y(
647
+ () => G(
648
+ d,
649
+ r,
650
+ m,
651
+ h,
652
+ g,
653
+ e,
654
+ T,
655
+ I
656
+ ),
657
+ [G, r, d, g, e]
658
+ ), Y = y(
659
+ (S, z) => {
660
+ l.current && S && z(l.current.clientWidth);
661
+ },
662
+ []
663
+ ), We = y(
664
+ () => Y(o, h),
665
+ [Y, o]
666
+ ), Be = y(
667
+ () => Y(e, I),
668
+ [Y, e]
669
+ ), ge = y(() => {
670
+ var S, z, N, k;
671
+ l.current && (h(l.current.clientWidth - (((S = v.current) == null ? void 0 : S.clientWidth) || 0)), I(l.current.clientWidth - (((z = p.current) == null ? void 0 : z.clientWidth) || 0)), m(((N = p.current) == null ? void 0 : N.clientWidth) || 0), T(((k = v.current) == null ? void 0 : k.clientWidth) || 0));
672
+ }, []);
673
+ de(() => {
674
+ if (!l.current)
675
+ return;
676
+ const S = new ResizeObserver(ge);
677
+ return S.observe(l.current), () => {
678
+ S.disconnect();
679
+ };
680
+ }, [ge]);
681
+ const Ge = W(() => ({
682
+ entering: {
683
+ transform: `translateX(-${d}px)`,
684
+ marginRight: `-${d}px`,
685
+ transitionProperty: "transform, margin-right",
686
+ transitionDuration: `${A}ms`,
687
+ transitionTimingFunction: "linear"
688
+ },
689
+ entered: {
690
+ transform: "translateX(0)",
691
+ marginRight: 0,
692
+ transitionProperty: "transform, margin-right",
693
+ transitionDuration: `${A}ms`,
694
+ transitionTimingFunction: "linear"
695
+ },
696
+ exiting: {
697
+ transform: `translateX(-${d}px)`,
698
+ marginRight: `-${d}px`,
699
+ transitionProperty: "transform, margin-right",
700
+ transitionDuration: `${A}ms`,
701
+ transitionTimingFunction: "linear"
702
+ },
703
+ exited: {},
704
+ unmounted: {}
705
+ }), [d]), je = W(() => ({
706
+ entering: {
707
+ transform: `translateX(${g}px)`,
708
+ marginLeft: `${-g}px`,
709
+ transitionProperty: "transform, margin-left",
710
+ transitionDuration: `${A}ms`,
711
+ transitionTimingFunction: "linear"
712
+ },
713
+ entered: {
714
+ transform: "translateX(0)",
715
+ marginLeft: 0,
716
+ transitionProperty: "transform, margin-left",
717
+ transitionDuration: `${A}ms`,
718
+ transitionTimingFunction: "linear"
719
+ },
720
+ exiting: {
721
+ transform: `translateX(${g}px)`,
722
+ marginLeft: `${-g}px`,
723
+ transitionProperty: "transform, margin-left",
724
+ transitionDuration: `${A}ms`,
725
+ transitionTimingFunction: "linear"
726
+ },
727
+ exited: {},
728
+ unmounted: {}
729
+ }), [g]);
730
+ return /* @__PURE__ */ C(
731
+ D,
732
+ {
733
+ className: b.wrapper,
734
+ style: { minWidth: `${r + i}px` },
735
+ ref: l,
736
+ width: "100%",
737
+ height: "100%",
738
+ justify: "center",
739
+ m: "0",
740
+ p: "0",
741
+ children: [
742
+ /* @__PURE__ */ t(
743
+ we,
744
+ {
745
+ nodeRef: p,
746
+ timeout: o ? 0 : A,
747
+ in: o,
748
+ unmountOnExit: !0,
749
+ onEntering: Me,
750
+ onExited: Be,
751
+ children: (S) => /* @__PURE__ */ t(
752
+ X,
753
+ {
754
+ ref: p,
755
+ className: x(b.panelContent, b.left),
756
+ style: Ge[S],
757
+ width: "auto",
758
+ height: "100%",
759
+ m: "0",
760
+ p: "0",
761
+ children: /* @__PURE__ */ t(
762
+ pe,
763
+ {
764
+ className: b.resizable,
765
+ size: {
766
+ width: d,
767
+ height: "100%"
768
+ },
769
+ onResizeStop: F,
770
+ enable: { right: (u == null ? void 0 : u.left) !== void 0 ? u.left : !0 },
771
+ minWidth: r,
772
+ maxWidth: f,
773
+ handleClasses: { right: x(b.resizeHandle, b.left) },
774
+ handleComponent: {
775
+ right: /* @__PURE__ */ t(le, { height: "14px", width: "14px" })
776
+ },
777
+ children: n
778
+ }
779
+ )
780
+ }
781
+ )
782
+ }
783
+ ),
784
+ /* @__PURE__ */ t(X, { className: b.panelMainContent, width: "max-content", children: a }),
785
+ /* @__PURE__ */ t(
786
+ we,
787
+ {
788
+ nodeRef: v,
789
+ timeout: e ? 0 : A,
790
+ in: e,
791
+ unmountOnExit: !0,
792
+ onEntering: Le,
793
+ onExited: We,
794
+ children: (S) => /* @__PURE__ */ t(
795
+ X,
796
+ {
797
+ ref: v,
798
+ className: x(b.panelContent, b.right),
799
+ style: je[S],
800
+ width: "auto",
801
+ height: "100%",
802
+ m: "0",
803
+ p: "0",
804
+ children: /* @__PURE__ */ t(
805
+ pe,
806
+ {
807
+ className: b.resizable,
808
+ size: { width: g, height: "100%" },
809
+ onResizeStop: J,
810
+ enable: { left: (u == null ? void 0 : u.right) !== void 0 ? u.right : !0 },
811
+ minWidth: i,
812
+ maxWidth: E,
813
+ handleClasses: { left: x(b.resizeHandle, b.right) },
814
+ handleComponent: { left: /* @__PURE__ */ t(le, { height: "14px", width: "14px" }) },
815
+ children: c
816
+ }
817
+ )
818
+ }
819
+ )
820
+ }
821
+ )
822
+ ]
823
+ }
824
+ );
825
+ }), en = "_charCount_17uut_1", tn = {
826
+ charCount: en
827
+ }, nn = P(function({ className: a, showInputLength: o, inputLengthTemplate: n, value: r, severity: e = "primary", resize: c, ...i }, u) {
828
+ const l = R(e), p = R("info"), d = o || o === void 0 && (i.maxLength !== void 0 || i.minLength !== void 0), m = r !== void 0 ? r.toString() : "", f = W(() => {
829
+ if (n) {
830
+ let h = n.replace("{current}", m.length.toString());
831
+ return i.minLength !== void 0 && (h = h.replace("{min}", i.minLength.toString())), i.maxLength !== void 0 && (h = h.replace("{max}", i.maxLength.toString())), h;
470
832
  }
471
833
  return m.length;
472
- }, [t, s.maxLength, s.minLength, m.length]);
473
- return /* @__PURE__ */ C(Z, { children: [
474
- /* @__PURE__ */ o(
475
- Te,
834
+ }, [n, i.maxLength, i.minLength, m.length]);
835
+ return /* @__PURE__ */ C(q, { children: [
836
+ /* @__PURE__ */ t(
837
+ Ye,
476
838
  {
477
- className: T("overmap-textarea", c),
478
- style: { resize: l },
479
- ref: p,
480
- value: i,
481
- color: a,
482
- ...s
839
+ className: x("overmap-textarea", a),
840
+ style: { resize: c },
841
+ ref: u,
842
+ value: r,
843
+ color: l,
844
+ ...i
483
845
  }
484
846
  ),
485
- h && /* @__PURE__ */ o(H, { as: "p", className: lt.charCount, color: d, align: "right", children: f })
847
+ d && /* @__PURE__ */ t(ue, { as: "p", className: tn.charCount, color: p, align: "right", children: f })
486
848
  ] });
487
- }), Pt = w(at), ut = _(function({
849
+ }), Mn = w(nn), on = P(function({
488
850
  // ToggleGroup Primitive Props
489
- loop: c,
490
- type: r,
491
- rovingFocus: t,
492
- value: i,
851
+ loop: a,
852
+ type: o,
853
+ rovingFocus: n,
854
+ value: r,
493
855
  onValueChange: e,
494
- defaultValue: l,
495
- disabled: s,
496
- items: p,
856
+ defaultValue: c,
857
+ disabled: i,
858
+ items: u,
497
859
  // ButtonGroup Props
498
- className: a,
499
- direction: d = "row",
500
- ...h
860
+ className: l,
861
+ direction: p = "row",
862
+ ...d
501
863
  }, m) {
502
- return /* @__PURE__ */ o(
503
- be,
864
+ return /* @__PURE__ */ t(
865
+ tt,
504
866
  {
505
- type: r,
506
- className: T("overmap-toggle-group", a),
867
+ type: o,
868
+ className: x("overmap-toggle-group", l),
507
869
  ref: m,
508
- value: i,
870
+ value: r,
509
871
  onValueChange: e,
510
- disabled: s,
511
- orientation: d === "column" ? "vertical" : "horizontal",
512
- loop: c,
513
- rovingFocus: t,
514
- defaultValue: l,
872
+ disabled: i,
873
+ orientation: p === "column" ? "vertical" : "horizontal",
874
+ loop: a,
875
+ rovingFocus: n,
876
+ defaultValue: c,
515
877
  asChild: !0,
516
- children: /* @__PURE__ */ o(We, { direction: d, ...h, children: p.map(({ children: f, ...u }) => /* @__PURE__ */ ee(Ie, { asChild: !0, ...u, key: u.value }, /* @__PURE__ */ o(
517
- ie,
878
+ children: /* @__PURE__ */ t(_t, { direction: p, ...d, children: u.map(({ children: f, ...h }) => /* @__PURE__ */ $e(nt, { asChild: !0, ...h, key: h.value }, /* @__PURE__ */ t(
879
+ Oe,
518
880
  {
519
- className: T("overmap-toggle-group-button"),
520
- "aria-label": u.value,
521
- variant: u.value === i ? "solid" : "soft",
881
+ className: x("overmap-toggle-group-button"),
882
+ "aria-label": h.value,
883
+ variant: h.value === r ? "solid" : "soft",
522
884
  children: f
523
885
  }
524
886
  ))) })
525
887
  }
526
888
  );
527
- }), zt = w(ut), dt = "_ToastViewport_t8tlv_1", ht = "_ToastRoot_t8tlv_20", pt = "_slideIn_t8tlv_1", mt = "_swipeOut_t8tlv_1", ae = {
528
- ToastViewport: dt,
529
- ToastRoot: ht,
530
- slideIn: pt,
531
- swipeOut: mt
532
- }, ft = _(function({ title: c, description: r, icon: t, severity: i = "primary", size: e, onClose: l, sensitivity: s, ...p }, a) {
533
- const [d, h] = D(!0), m = S(i), f = b(
534
- (u) => {
535
- !u && l && l(), h(u);
889
+ }), Wn = w(on), rn = "_ToastViewport_t8tlv_1", sn = "_ToastRoot_t8tlv_20", an = "_slideIn_t8tlv_1", cn = "_swipeOut_t8tlv_1", Ee = {
890
+ ToastViewport: rn,
891
+ ToastRoot: sn,
892
+ slideIn: an,
893
+ swipeOut: cn
894
+ }, ln = P(function({ title: a, description: o, icon: n, severity: r = "primary", size: e, onClose: c, sensitivity: i, ...u }, l) {
895
+ const [p, d] = $(!0), m = R(r), f = y(
896
+ (h) => {
897
+ !h && c && c(), d(h);
536
898
  },
537
- [l]
899
+ [c]
538
900
  );
539
- return /* @__PURE__ */ o(M.Root, { asChild: !0, ref: a, ...p, open: d, type: s, onOpenChange: f, children: /* @__PURE__ */ o(G.Root, { className: ae.ToastRoot, variant: "surface", color: m, size: e, children: /* @__PURE__ */ C(x, { width: "100%", align: "center", gap: "4", justify: "between", children: [
540
- /* @__PURE__ */ C(x, { align: "center", gap: "4", children: [
541
- /* @__PURE__ */ o(G.Icon, { children: t || /* @__PURE__ */ o(pe, {}) }),
542
- /* @__PURE__ */ C(x, { direction: "column", gap: "0", children: [
543
- /* @__PURE__ */ o(M.Title, { asChild: !0, children: /* @__PURE__ */ o(G.Text, { weight: "medium", children: c }) }),
544
- /* @__PURE__ */ o(M.Description, { asChild: !0, children: /* @__PURE__ */ o(G.Text, { weight: "light", children: r }) })
901
+ return /* @__PURE__ */ t(se.Root, { asChild: !0, ref: l, ...u, open: p, type: i, onOpenChange: f, children: /* @__PURE__ */ t(re.Root, { className: Ee.ToastRoot, variant: "surface", color: m, size: e, children: /* @__PURE__ */ C(D, { width: "100%", align: "center", gap: "4", justify: "between", children: [
902
+ /* @__PURE__ */ C(D, { align: "center", gap: "4", children: [
903
+ /* @__PURE__ */ t(re.Icon, { children: n || /* @__PURE__ */ t(He, {}) }),
904
+ /* @__PURE__ */ C(D, { direction: "column", gap: "0", children: [
905
+ /* @__PURE__ */ t(se.Title, { asChild: !0, children: /* @__PURE__ */ t(re.Text, { weight: "medium", children: a }) }),
906
+ /* @__PURE__ */ t(se.Description, { asChild: !0, children: /* @__PURE__ */ t(re.Text, { weight: "light", children: o }) })
545
907
  ] })
546
908
  ] }),
547
- /* @__PURE__ */ o(M.Close, { asChild: !0, children: /* @__PURE__ */ o(ie, { "aria-label": "Close", variant: "ghost", size: "small", severity: i, children: /* @__PURE__ */ o(me, {}) }) })
909
+ /* @__PURE__ */ t(se.Close, { asChild: !0, children: /* @__PURE__ */ t(Oe, { "aria-label": "Close", variant: "ghost", size: "small", severity: r, children: /* @__PURE__ */ t(Fe, {}) }) })
548
910
  ] }) }) });
549
- }), gt = w(ft), ue = q({}), Lt = () => {
550
- const n = K(ue);
551
- if (!n)
911
+ }), un = w(ln), Ae = me({}), Bn = () => {
912
+ const s = fe(Ae);
913
+ if (!s)
552
914
  throw new Error("useToast must be used within a ToastProvider");
553
- return n;
554
- }, Ct = 240 / 60, X = 5e3, vt = (n) => {
555
- if (n.duration && n.duration >= X)
556
- return n.duration;
557
- const c = n.severity === "danger" ? 1.5 : 1, r = n.description.split(" ").length + n.title.split(" ").length;
558
- return (X + r / Ct) * c;
559
- }, Vt = w(function({
560
- children: c,
915
+ return s;
916
+ }, dn = 240 / 60, Pe = 5e3, hn = (s) => {
917
+ if (s.duration && s.duration >= Pe)
918
+ return s.duration;
919
+ const a = s.severity === "danger" ? 1.5 : 1, o = s.description.split(" ").length + s.title.split(" ").length;
920
+ return (Pe + o / dn) * a;
921
+ }, Gn = w(function({
922
+ children: a,
561
923
  // Use this class to change where the viewport for the toasts should be
562
- className: r,
563
- hotkey: t,
564
- ...i
924
+ className: o,
925
+ hotkey: n,
926
+ ...r
565
927
  }) {
566
- const [e, l] = D([]), s = b((a, d, h) => {
567
- l((m) => {
568
- const f = m.find((u) => u.id === a);
569
- return f && d === 0 && clearTimeout(f.timeout), m.filter((u) => u.id !== a);
570
- }), h && h();
571
- }, []), p = z(() => {
572
- let a = 0;
573
- const d = (g) => {
574
- const y = vt(g), k = a.toString();
575
- a += 1;
576
- const A = setTimeout(() => s(k, 1, g.onClose), y);
577
- l((E) => [...E, { ...g, timeout: A, duration: y, id: k }]);
928
+ const [e, c] = $([]), i = y((l, p, d) => {
929
+ c((m) => {
930
+ const f = m.find((h) => h.id === l);
931
+ return f && p === 0 && clearTimeout(f.timeout), m.filter((h) => h.id !== l);
932
+ }), d && d();
933
+ }, []), u = W(() => {
934
+ let l = 0;
935
+ const p = (v) => {
936
+ const g = hn(v), T = l.toString();
937
+ l += 1;
938
+ const E = setTimeout(() => i(T, 1, v.onClose), g);
939
+ c((I) => [...I, { ...v, timeout: E, duration: g, id: T }]);
578
940
  };
579
941
  return {
580
- showToast: d,
581
- showPrimary: (g) => d({ ...g, severity: "primary" }),
582
- showSuccess: (g) => d({ ...g, severity: "success" }),
583
- showError: (g) => d({ ...g, severity: "danger" }),
584
- showInfo: (g) => d({ ...g, severity: "info" })
942
+ showToast: p,
943
+ showPrimary: (v) => p({ ...v, severity: "primary" }),
944
+ showSuccess: (v) => p({ ...v, severity: "success" }),
945
+ showError: (v) => p({ ...v, severity: "danger" }),
946
+ showInfo: (v) => p({ ...v, severity: "info" })
585
947
  };
586
- }, [s]);
587
- return te(() => () => {
588
- for (const { timeout: a } of e)
589
- clearTimeout(a);
590
- }, []), /* @__PURE__ */ o(ue.Provider, { value: p, children: /* @__PURE__ */ C(De, { ...i, children: [
591
- c,
592
- /* @__PURE__ */ o(Re, { className: T(r, ae.ToastViewport), hotkey: t }),
593
- e.map(({ id: a, onClose: d, ...h }) => /* @__PURE__ */ o(gt, { ...h, onClose: () => s(a, 0, d) }, a))
948
+ }, [i]);
949
+ return de(() => () => {
950
+ for (const { timeout: l } of e)
951
+ clearTimeout(l);
952
+ }, []), /* @__PURE__ */ t(Ae.Provider, { value: u, children: /* @__PURE__ */ C(ot, { ...r, children: [
953
+ a,
954
+ /* @__PURE__ */ t(rt, { className: x(o, Ee.ToastViewport), hotkey: n }),
955
+ e.map(({ id: l, onClose: p, ...d }) => /* @__PURE__ */ t(un, { ...d, onClose: () => i(l, 0, p) }, l))
594
956
  ] }) });
595
- }), _t = "_noWrap_1wpa5_1", wt = {
596
- noWrap: _t
597
- }, jt = w(
598
- _(({ className: n, noWrap: c, severity: r, as: t, ...i }, e) => {
599
- const l = S(r);
600
- return /* @__PURE__ */ o(
601
- H,
957
+ }), pn = "_noWrap_1wpa5_1", mn = {
958
+ noWrap: pn
959
+ }, jn = w(
960
+ P(({ className: s, noWrap: a, severity: o, as: n, ...r }, e) => {
961
+ const c = R(o);
962
+ return /* @__PURE__ */ t(
963
+ ue,
602
964
  {
603
965
  ref: e,
604
- as: t,
605
- className: T(n, { [wt.noWrap]: c }),
606
- color: l,
607
- ...i
966
+ as: n,
967
+ className: x(s, { [mn.noWrap]: a }),
968
+ color: c,
969
+ ...r
608
970
  }
609
971
  );
610
972
  })
611
973
  );
612
- const Gt = w(
613
- _((n, c) => {
614
- const { panelBackground: r = "solid", radius: t = "full", ...i } = n;
615
- return /* @__PURE__ */ o(Se, { panelBackground: r, radius: t, ref: c, ...i });
974
+ const Vn = w(
975
+ P((s, a) => {
976
+ const { panelBackground: o = "solid", radius: n = "full", ...r } = s;
977
+ return /* @__PURE__ */ t(Ze, { panelBackground: o, radius: n, ref: a, ...r });
616
978
  })
617
- );
979
+ ), fn = {
980
+ 1: "max-content",
981
+ 2: "max-content",
982
+ 3: "max-content",
983
+ 4: "100%"
984
+ }, gn = P(function({
985
+ severity: a = "info",
986
+ weight: o = "light",
987
+ gap: n = "1",
988
+ text: r,
989
+ orientation: e = "horizontal",
990
+ size: c,
991
+ ...i
992
+ }) {
993
+ const u = B(c, fn), l = R(a);
994
+ return /* @__PURE__ */ t(q, { children: /* @__PURE__ */ C(
995
+ D,
996
+ {
997
+ width: e === "horizontal" ? u : "max-content",
998
+ height: e === "vertical" ? u : "max-content",
999
+ direction: e === "vertical" ? "column" : "row",
1000
+ align: "center",
1001
+ gap: n,
1002
+ children: [
1003
+ /* @__PURE__ */ t(_e, { size: c, orientation: e, color: l, ...i }),
1004
+ r && /* @__PURE__ */ C(q, { children: [
1005
+ /* @__PURE__ */ t(ue, { as: "span", size: "1", weight: o, color: l, children: r }),
1006
+ /* @__PURE__ */ t(_e, { size: c, orientation: e, color: l, ...i })
1007
+ ] })
1008
+ ]
1009
+ }
1010
+ ) });
1011
+ }), Hn = w(gn);
618
1012
  export {
619
- qt as AccessibleIcon,
620
- Ke as AlertDialog,
621
- le as AlertDialogContent,
622
- At as AlertDialogProvider,
623
- Kt as AspectRatio,
624
- Ut as Avatar,
625
- Dt as Badge,
626
- Qt as Blockquote,
627
- Jt as Box,
628
- Q as Button,
629
- We as ButtonGroup,
630
- Xt as Callout,
631
- Yt as Card,
632
- Zt as Checkbox,
633
- eo as Code,
634
- to as Container,
635
- oo as ContextMenu,
636
- Gt as DefaultTheme,
637
- Rt as Dialog,
638
- no as DropdownMenu,
639
- ro as Em,
640
- so as Flex,
641
- io as Grid,
642
- co as Heading,
643
- lo as HoverCard,
644
- ie as IconButton,
645
- Et as Input,
646
- ao as Inset,
647
- uo as Kbd,
648
- ho as Link,
649
- Ot as MultiSelect,
650
- Bt as Popover,
651
- po as Portal,
652
- mo as Quote,
653
- fo as RadioGroup,
654
- go as ScrollArea,
655
- Co as Section,
656
- Nt as Select,
657
- vo as Separator,
658
- _o as Slider,
659
- wo as Slot,
660
- yo as Strong,
661
- To as Switch,
1013
+ Kn as AccessibleIcon,
1014
+ xt as AlertDialog,
1015
+ ke as AlertDialogContent,
1016
+ Dn as AlertDialogProvider,
1017
+ Qn as AspectRatio,
1018
+ Jn as Avatar,
1019
+ Rn as Badge,
1020
+ Yn as Blockquote,
1021
+ Zn as Box,
1022
+ ye as Button,
1023
+ _t as ButtonGroup,
1024
+ eo as Callout,
1025
+ to as Card,
1026
+ no as Checkbox,
1027
+ oo as Code,
1028
+ ro as Container,
1029
+ io as ContextMenu,
1030
+ Vn as DefaultTheme,
1031
+ $n as Dialog,
1032
+ bn as DropdownMenu,
1033
+ so as Em,
1034
+ ao as Flex,
1035
+ co as Grid,
1036
+ lo as Heading,
1037
+ uo as HoverCard,
1038
+ Oe as IconButton,
1039
+ En as Input,
1040
+ ho as Inset,
1041
+ po as Kbd,
1042
+ Ln as LeftAndRightPanels,
1043
+ mo as Link,
1044
+ On as MultiSelect,
1045
+ An as Popover,
1046
+ fo as Portal,
1047
+ go as Quote,
1048
+ Co as RadioGroup,
1049
+ vo as ScrollArea,
1050
+ _o as Section,
1051
+ In as Select,
1052
+ Hn as Separator,
1053
+ kn as Sidebar,
1054
+ wo as Slider,
1055
+ yo as Slot,
1056
+ xo as Strong,
1057
+ Nn as Switch,
662
1058
  So as Table,
663
- xo as Tabs,
664
- jt as Text,
665
- Pt as TextArea,
666
- ko as TextField,
667
- bo as Theme,
668
- gt as Toast,
669
- ue as ToastContext,
670
- Vt as ToastProvider,
671
- zt as ToggleGroup,
672
- Io as Tooltip,
1059
+ To as Tabs,
1060
+ jn as Text,
1061
+ Mn as TextArea,
1062
+ Po as TextField,
1063
+ Ro as Theme,
1064
+ un as Toast,
1065
+ Ae as ToastContext,
1066
+ Gn as ToastProvider,
1067
+ Wn as ToggleGroup,
1068
+ $o as Tooltip,
673
1069
  Do as VisuallyHidden,
674
- Ro as updateThemeAppearanceClass,
675
- $t as useAlertDialog,
676
- S as useSeverityColor,
677
- Ao as useThemeContext,
678
- Lt as useToast
1070
+ zo as updateThemeAppearanceClass,
1071
+ zn as useAlertDialog,
1072
+ R as useSeverityColor,
1073
+ bo as useThemeContext,
1074
+ Bn as useToast
679
1075
  };
680
1076
  //# sourceMappingURL=blocks.js.map