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