@dnotrever2/super-kit 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/super-kit.js CHANGED
@@ -1,25 +1,25 @@
1
- import { jsxs as d, jsx as e, Fragment as Ie } from "react/jsx-runtime";
2
- import { forwardRef as P, useState as Y, useCallback as te, useRef as ne, useImperativeHandle as ge, useEffect as ae, useMemo as se, useContext as $e, createContext as Le } from "react";
3
- import { createPortal as Me } from "react-dom";
4
- const Te = "_badge_lyltm_1", Se = "_neutral_lyltm_18", Re = "_accent_lyltm_24", De = "_outline_lyltm_29", Oe = "_success_lyltm_35", We = "_warning_lyltm_40", Ee = "_danger_lyltm_45", Ae = "_info_lyltm_50", Fe = "_count_lyltm_55", ze = "_mono_lyltm_63", Ve = "_version_lyltm_71", Xe = "_dismiss_lyltm_80", Ue = "_dismissBtn_lyltm_84", Ge = "_dot_lyltm_98", qe = "_dotIndicator_lyltm_111", He = "_pill_lyltm_119", E = {
5
- badge: Te,
6
- neutral: Se,
7
- accent: Re,
8
- outline: De,
9
- success: Oe,
10
- warning: We,
11
- danger: Ee,
12
- info: Ae,
13
- count: Fe,
14
- mono: ze,
15
- version: Ve,
16
- dismiss: Xe,
17
- dismissBtn: Ue,
18
- dot: Ge,
19
- dotIndicator: qe,
20
- pill: He
21
- }, Ke = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "10", height: "10", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) });
22
- function Ye({
1
+ import { jsxs as d, jsx as e, Fragment as Le } from "react/jsx-runtime";
2
+ import { forwardRef as J, useState as K, useCallback as te, useRef as ne, useImperativeHandle as ge, useEffect as ie, useMemo as le, useContext as Me, createContext as Te } from "react";
3
+ import { createPortal as Se } from "react-dom";
4
+ const Re = "_badge_lyltm_1", Ae = "_neutral_lyltm_18", De = "_accent_lyltm_24", Oe = "_outline_lyltm_29", We = "_success_lyltm_35", Ee = "_warning_lyltm_40", Fe = "_danger_lyltm_45", ze = "_info_lyltm_50", Ve = "_count_lyltm_55", Xe = "_mono_lyltm_63", Ue = "_version_lyltm_71", Ge = "_dismiss_lyltm_80", qe = "_dismissBtn_lyltm_84", He = "_dot_lyltm_98", Ke = "_dotIndicator_lyltm_111", Ye = "_pill_lyltm_119", z = {
5
+ badge: Re,
6
+ neutral: Ae,
7
+ accent: De,
8
+ outline: Oe,
9
+ success: We,
10
+ warning: Ee,
11
+ danger: Fe,
12
+ info: ze,
13
+ count: Ve,
14
+ mono: Xe,
15
+ version: Ue,
16
+ dismiss: Ge,
17
+ dismissBtn: qe,
18
+ dot: He,
19
+ dotIndicator: Ke,
20
+ pill: Ye
21
+ }, Ze = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "10", height: "10", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) });
22
+ function Je({
23
23
  variant: o = "neutral",
24
24
  icon: s,
25
25
  pill: t = !1,
@@ -31,12 +31,12 @@ function Ye({
31
31
  ...i
32
32
  }) {
33
33
  if (o === "dot") {
34
- const f = [E.badge, E.dot, r].filter(Boolean).join(" ");
35
- return /* @__PURE__ */ d("span", { ...i, className: f, children: [
34
+ const m = [z.badge, z.dot, r].filter(Boolean).join(" ");
35
+ return /* @__PURE__ */ d("span", { ...i, className: m, children: [
36
36
  /* @__PURE__ */ e(
37
37
  "span",
38
38
  {
39
- className: E.dotIndicator,
39
+ className: z.dotIndicator,
40
40
  style: { background: l ?? "var(--accent)" }
41
41
  }
42
42
  ),
@@ -44,10 +44,10 @@ function Ye({
44
44
  ] });
45
45
  }
46
46
  const h = [
47
- E.badge,
48
- E[o],
49
- t ? E.pill : null,
50
- n ? E.dismiss : null,
47
+ z.badge,
48
+ z[o],
49
+ t ? z.pill : null,
50
+ n ? z.dismiss : null,
51
51
  r
52
52
  ].filter(Boolean).join(" ");
53
53
  return /* @__PURE__ */ d("span", { ...i, className: h, children: [
@@ -57,16 +57,16 @@ function Ye({
57
57
  "button",
58
58
  {
59
59
  type: "button",
60
- className: E.dismissBtn,
60
+ className: z.dismissBtn,
61
61
  "aria-label": "Remove",
62
62
  onClick: a,
63
- children: /* @__PURE__ */ e(Ke, {})
63
+ children: /* @__PURE__ */ e(Ze, {})
64
64
  }
65
65
  )
66
66
  ] });
67
67
  }
68
- Ye.displayName = "Badge";
69
- function Ze({
68
+ Je.displayName = "Badge";
69
+ function Qe({
70
70
  direction: o = "vertical",
71
71
  track: s = !1,
72
72
  arrows: t = !1,
@@ -77,7 +77,7 @@ function Ze({
77
77
  children: r,
78
78
  className: i,
79
79
  style: h,
80
- ...f
80
+ ...m
81
81
  }) {
82
82
  const g = [
83
83
  "sb",
@@ -86,31 +86,31 @@ function Ze({
86
86
  n ? "sb-auto-hide" : null,
87
87
  a ? "sb-expand" : null,
88
88
  i
89
- ].filter(Boolean).join(" "), b = o === "vertical" ? { overflowY: "auto", overflowX: "hidden" } : o === "horizontal" ? { overflowX: "auto", overflowY: "hidden" } : { overflow: "auto" }, m = l !== void 0 ? { "--sb-w": `${l}px` } : void 0;
89
+ ].filter(Boolean).join(" "), f = o === "vertical" ? { overflowY: "auto", overflowX: "hidden" } : o === "horizontal" ? { overflowX: "auto", overflowY: "hidden" } : { overflow: "auto" }, p = l !== void 0 ? { "--sb-w": `${l}px` } : void 0;
90
90
  return /* @__PURE__ */ e(
91
91
  "div",
92
92
  {
93
- ...f,
93
+ ...m,
94
94
  className: g,
95
- style: { height: c, ...b, ...m, ...h },
95
+ style: { height: c, ...f, ...p, ...h },
96
96
  children: r
97
97
  }
98
98
  );
99
99
  }
100
- Ze.displayName = "Scrollable";
101
- const Je = "_btn_8cdvn_1", Qe = "_icon_8cdvn_34", Pe = "_primary_8cdvn_43", et = "_secondary_8cdvn_51", tt = "_ghost_8cdvn_61", nt = "_danger_8cdvn_71", ot = "_success_8cdvn_79", st = "_warning_8cdvn_87", lt = "_sm_8cdvn_96", at = "_md_8cdvn_104", ct = "_lg_8cdvn_106", ee = {
102
- btn: Je,
103
- icon: Qe,
104
- primary: Pe,
105
- secondary: et,
106
- ghost: tt,
107
- danger: nt,
108
- success: ot,
109
- warning: st,
110
- sm: lt,
111
- md: at,
112
- lg: ct
113
- }, it = P(
100
+ Qe.displayName = "Scrollable";
101
+ const Pe = "_btn_8cdvn_1", et = "_icon_8cdvn_34", tt = "_primary_8cdvn_43", nt = "_secondary_8cdvn_51", ot = "_ghost_8cdvn_61", st = "_danger_8cdvn_71", lt = "_success_8cdvn_79", at = "_warning_8cdvn_87", ct = "_sm_8cdvn_96", it = "_md_8cdvn_104", rt = "_lg_8cdvn_106", ee = {
102
+ btn: Pe,
103
+ icon: et,
104
+ primary: tt,
105
+ secondary: nt,
106
+ ghost: ot,
107
+ danger: st,
108
+ success: lt,
109
+ warning: at,
110
+ sm: ct,
111
+ md: it,
112
+ lg: rt
113
+ }, dt = J(
114
114
  ({
115
115
  type: o = "button",
116
116
  variant: s = "secondary",
@@ -122,7 +122,7 @@ const Je = "_btn_8cdvn_1", Qe = "_icon_8cdvn_34", Pe = "_primary_8cdvn_43", et =
122
122
  disabled: r,
123
123
  ...i
124
124
  }, h) => {
125
- const f = [
125
+ const m = [
126
126
  ee.btn,
127
127
  ee[s],
128
128
  ee[t],
@@ -134,7 +134,7 @@ const Je = "_btn_8cdvn_1", Qe = "_icon_8cdvn_34", Pe = "_primary_8cdvn_43", et =
134
134
  ref: h,
135
135
  type: o,
136
136
  disabled: r || a,
137
- className: f,
137
+ className: m,
138
138
  ...i,
139
139
  children: [
140
140
  n ? /* @__PURE__ */ e("span", { className: ee.icon, children: n }) : null,
@@ -144,34 +144,34 @@ const Je = "_btn_8cdvn_1", Qe = "_icon_8cdvn_34", Pe = "_primary_8cdvn_43", et =
144
144
  );
145
145
  }
146
146
  );
147
- it.displayName = "Button";
148
- const rt = "_card_1gxgi_1", dt = "_bordered_1gxgi_8", _t = "_tilt_1gxgi_12", ut = "_closeBtn_1gxgi_20", ht = "_padSm_1gxgi_41", ft = "_padMd_1gxgi_42", mt = "_padLg_1gxgi_43", pt = "_padNone_1gxgi_44", gt = "_header_1gxgi_47", vt = "_headerIcon_1gxgi_54", bt = "_title_1gxgi_63", kt = "_subtitle_1gxgi_69", Nt = "_stat_1gxgi_76", yt = "_statValue_1gxgi_83", xt = "_statUnit_1gxgi_91", wt = "_statDelta_1gxgi_97", jt = "_deltaPositive_1gxgi_102", Bt = "_deltaNegative_1gxgi_103", Ct = "_deltaNeutral_1gxgi_104", v = {
149
- card: rt,
150
- bordered: dt,
151
- tilt: _t,
152
- closeBtn: ut,
153
- padSm: ht,
154
- padMd: ft,
155
- padLg: mt,
156
- padNone: pt,
157
- header: gt,
158
- headerIcon: vt,
159
- title: bt,
160
- subtitle: kt,
161
- stat: Nt,
162
- statValue: yt,
163
- statUnit: xt,
164
- statDelta: wt,
147
+ dt.displayName = "Button";
148
+ const _t = "_card_1gxgi_1", ut = "_bordered_1gxgi_8", ht = "_tilt_1gxgi_12", mt = "_closeBtn_1gxgi_20", ft = "_padSm_1gxgi_41", pt = "_padMd_1gxgi_42", gt = "_padLg_1gxgi_43", vt = "_padNone_1gxgi_44", bt = "_header_1gxgi_47", kt = "_headerIcon_1gxgi_54", Nt = "_title_1gxgi_63", yt = "_subtitle_1gxgi_69", xt = "_stat_1gxgi_76", wt = "_statValue_1gxgi_83", Bt = "_statUnit_1gxgi_91", Ct = "_statDelta_1gxgi_97", jt = "_deltaPositive_1gxgi_102", It = "_deltaNegative_1gxgi_103", $t = "_deltaNeutral_1gxgi_104", b = {
149
+ card: _t,
150
+ bordered: ut,
151
+ tilt: ht,
152
+ closeBtn: mt,
153
+ padSm: ft,
154
+ padMd: pt,
155
+ padLg: gt,
156
+ padNone: vt,
157
+ header: bt,
158
+ headerIcon: kt,
159
+ title: Nt,
160
+ subtitle: yt,
161
+ stat: xt,
162
+ statValue: wt,
163
+ statUnit: Bt,
164
+ statDelta: Ct,
165
165
  deltaPositive: jt,
166
- deltaNegative: Bt,
167
- deltaNeutral: Ct
168
- }, It = {
169
- none: v.padNone,
170
- sm: v.padSm,
171
- md: v.padMd,
172
- lg: v.padLg
173
- }, $t = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", width: "10", height: "10", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) });
174
- function Lt({
166
+ deltaNegative: It,
167
+ deltaNeutral: $t
168
+ }, Lt = {
169
+ none: b.padNone,
170
+ sm: b.padSm,
171
+ md: b.padMd,
172
+ lg: b.padLg
173
+ }, Mt = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", width: "10", height: "10", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) });
174
+ function Tt({
175
175
  padding: o = "md",
176
176
  bordered: s = !1,
177
177
  tilt: t = !1,
@@ -181,7 +181,7 @@ function Lt({
181
181
  className: c,
182
182
  ...r
183
183
  }) {
184
- const i = [v.card, It[o], s ? v.bordered : null, t ? v.tilt : null, c].filter(Boolean).join(" ");
184
+ const i = [b.card, Lt[o], s ? b.bordered : null, t ? b.tilt : null, c].filter(Boolean).join(" ");
185
185
  return /* @__PURE__ */ d("div", { ...r, className: i, children: [
186
186
  n && /* @__PURE__ */ e(
187
187
  "button",
@@ -189,32 +189,32 @@ function Lt({
189
189
  type: "button",
190
190
  "aria-label": "Close",
191
191
  ...a,
192
- className: [v.closeBtn, a == null ? void 0 : a.className].filter(Boolean).join(" "),
192
+ className: [b.closeBtn, a == null ? void 0 : a.className].filter(Boolean).join(" "),
193
193
  onClick: n,
194
- children: /* @__PURE__ */ e($t, {})
194
+ children: /* @__PURE__ */ e(Mt, {})
195
195
  }
196
196
  ),
197
197
  l
198
198
  ] });
199
199
  }
200
- Lt.displayName = "Card";
201
- function Mt({
200
+ Tt.displayName = "Card";
201
+ function St({
202
202
  icon: o,
203
203
  title: s,
204
204
  subtitle: t,
205
205
  className: n,
206
206
  ...a
207
207
  }) {
208
- return /* @__PURE__ */ d("div", { ...a, className: [v.header, n].filter(Boolean).join(" "), children: [
209
- o && /* @__PURE__ */ e("span", { className: v.headerIcon, children: o }),
208
+ return /* @__PURE__ */ d("div", { ...a, className: [b.header, n].filter(Boolean).join(" "), children: [
209
+ o && /* @__PURE__ */ e("span", { className: b.headerIcon, children: o }),
210
210
  /* @__PURE__ */ d("div", { children: [
211
- /* @__PURE__ */ e("div", { className: v.title, children: s }),
212
- t && /* @__PURE__ */ e("div", { className: v.subtitle, children: t })
211
+ /* @__PURE__ */ e("div", { className: b.title, children: s }),
212
+ t && /* @__PURE__ */ e("div", { className: b.subtitle, children: t })
213
213
  ] })
214
214
  ] });
215
215
  }
216
- Mt.displayName = "CardHeader";
217
- function Tt({
216
+ St.displayName = "CardHeader";
217
+ function Rt({
218
218
  value: o,
219
219
  unit: s,
220
220
  delta: t,
@@ -223,13 +223,13 @@ function Tt({
223
223
  ...l
224
224
  }) {
225
225
  const c = [
226
- v.statDelta,
227
- n === "positive" ? v.deltaPositive : n === "negative" ? v.deltaNegative : v.deltaNeutral
226
+ b.statDelta,
227
+ n === "positive" ? b.deltaPositive : n === "negative" ? b.deltaNegative : b.deltaNeutral
228
228
  ].filter(Boolean).join(" ");
229
- return /* @__PURE__ */ d("div", { ...l, className: [v.stat, a].filter(Boolean).join(" "), children: [
230
- /* @__PURE__ */ d("span", { className: v.statValue, children: [
229
+ return /* @__PURE__ */ d("div", { ...l, className: [b.stat, a].filter(Boolean).join(" "), children: [
230
+ /* @__PURE__ */ d("span", { className: b.statValue, children: [
231
231
  o,
232
- s && /* @__PURE__ */ d("span", { className: v.statUnit, children: [
232
+ s && /* @__PURE__ */ d("span", { className: b.statUnit, children: [
233
233
  " ",
234
234
  s
235
235
  ] })
@@ -237,9 +237,9 @@ function Tt({
237
237
  t && /* @__PURE__ */ e("span", { className: c, children: t })
238
238
  ] });
239
239
  }
240
- Tt.displayName = "CardStat";
241
- function ce(o, s, t) {
242
- const [n, a] = Y(s), l = o !== void 0, c = l ? o : n, r = te(
240
+ Rt.displayName = "CardStat";
241
+ function re(o, s, t) {
242
+ const [n, a] = K(s), l = o !== void 0, c = l ? o : n, r = te(
243
243
  (i) => {
244
244
  l || a(i), t == null || t(i);
245
245
  },
@@ -247,13 +247,13 @@ function ce(o, s, t) {
247
247
  );
248
248
  return [c, r, l];
249
249
  }
250
- const St = "X", Rt = /[a-zA-Z0-9]/;
250
+ const At = "X", Dt = /[a-zA-Z0-9]/;
251
251
  function ve(o, s = {}) {
252
- const t = s.allowedPattern ?? Rt;
252
+ const t = s.allowedPattern ?? Dt;
253
253
  return o.split("").filter((n) => t.test(n)).join("");
254
254
  }
255
- function Dt(o, s, t = {}) {
256
- const n = t.placeholder ?? St, a = ve(o, t);
255
+ function Ot(o, s, t = {}) {
256
+ const n = t.placeholder ?? At, a = ve(o, t);
257
257
  let l = 0, c = "";
258
258
  for (const r of s) {
259
259
  if (l >= a.length)
@@ -266,20 +266,20 @@ function Dt(o, s, t = {}) {
266
266
  }
267
267
  return c;
268
268
  }
269
- const Ot = "_wrapper_25x8h_1", Wt = "_field_25x8h_7", Et = "_label_25x8h_13", At = "_input_25x8h_22", Ft = "_hasIcon_25x8h_52", zt = "_hasIconRight_25x8h_55", Vt = "_hasClear_25x8h_58", Xt = "_hasClearAndIconRight_25x8h_61", Ut = "_iconSlot_25x8h_64", Gt = "_iconSlotRight_25x8h_78", qt = "_iconSlotRightWithClear_25x8h_92", Ht = "_clearBtn_25x8h_95", I = {
270
- wrapper: Ot,
271
- field: Wt,
272
- label: Et,
273
- input: At,
274
- hasIcon: Ft,
275
- hasIconRight: zt,
276
- hasClear: Vt,
277
- hasClearAndIconRight: Xt,
278
- iconSlot: Ut,
279
- iconSlotRight: Gt,
280
- iconSlotRightWithClear: qt,
281
- clearBtn: Ht
282
- }, Kt = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "12", height: "12", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), Yt = P(
269
+ const Wt = "_wrapper_25x8h_1", Et = "_field_25x8h_7", Ft = "_label_25x8h_13", zt = "_input_25x8h_22", Vt = "_hasIcon_25x8h_52", Xt = "_hasIconRight_25x8h_55", Ut = "_hasClear_25x8h_58", Gt = "_hasClearAndIconRight_25x8h_61", qt = "_iconSlot_25x8h_64", Ht = "_iconSlotRight_25x8h_78", Kt = "_iconSlotRightWithClear_25x8h_92", Yt = "_clearBtn_25x8h_95", I = {
270
+ wrapper: Wt,
271
+ field: Et,
272
+ label: Ft,
273
+ input: zt,
274
+ hasIcon: Vt,
275
+ hasIconRight: Xt,
276
+ hasClear: Ut,
277
+ hasClearAndIconRight: Gt,
278
+ iconSlot: qt,
279
+ iconSlotRight: Ht,
280
+ iconSlotRightWithClear: Kt,
281
+ clearBtn: Yt
282
+ }, Zt = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "12", height: "12", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), Jt = J(
283
283
  ({
284
284
  label: o,
285
285
  icon: s,
@@ -291,105 +291,105 @@ const Ot = "_wrapper_25x8h_1", Wt = "_field_25x8h_7", Et = "_label_25x8h_13", At
291
291
  disabled: r,
292
292
  mask: i,
293
293
  maskAllowedPattern: h,
294
- maskPlaceholder: f,
294
+ maskPlaceholder: m,
295
295
  selectOnFocus: g = !1,
296
- textAlign: b,
297
- onChange: m,
298
- onValueChange: k,
299
- value: R,
300
- wrapperProps: x,
301
- fieldProps: N,
302
- className: w,
296
+ textAlign: f,
297
+ onChange: p,
298
+ onValueChange: N,
299
+ value: S,
300
+ wrapperProps: C,
301
+ fieldProps: k,
302
+ className: x,
303
303
  ...y
304
- }, M) => {
305
- const $ = ne(null), [U, oe] = ce(
306
- R,
304
+ }, $) => {
305
+ const L = ne(null), [G, Q] = re(
306
+ S,
307
307
  c,
308
- (p) => {
309
- k == null || k({
310
- value: p,
311
- rawValue: i ? ve(p, {
308
+ (v) => {
309
+ N == null || N({
310
+ value: v,
311
+ rawValue: i ? ve(v, {
312
312
  allowedPattern: h
313
- }) : p
313
+ }) : v
314
314
  });
315
315
  }
316
316
  );
317
- ge(M, () => $.current);
318
- const T = te(
319
- (p) => i ? Dt(p, i, {
317
+ ge($, () => L.current);
318
+ const oe = te(
319
+ (v) => i ? Ot(v, i, {
320
320
  allowedPattern: h,
321
- placeholder: f
322
- }) : p,
323
- [i, h, f]
324
- ), W = (p) => {
325
- const V = T(p.target.value);
326
- p.target.value = V, oe(V), m == null || m(p);
327
- }, G = () => {
328
- var p;
329
- oe(""), (p = $.current) == null || p.focus();
330
- }, Z = s && t === "right", q = s && t === "left", F = [
321
+ placeholder: m
322
+ }) : v,
323
+ [i, h, m]
324
+ ), R = (v) => {
325
+ const A = oe(v.target.value);
326
+ v.target.value = A, Q(A), p == null || p(v);
327
+ }, W = () => {
328
+ var v;
329
+ Q(""), (v = L.current) == null || v.focus();
330
+ }, E = s && t === "right", P = s && t === "left", Y = [
331
331
  I.input,
332
- q ? I.hasIcon : null,
333
- Z ? I.hasIconRight : null,
334
- n && Z ? I.hasClearAndIconRight : n ? I.hasClear : null,
335
- w
336
- ].filter(Boolean).join(" "), J = (p) => {
337
- var V;
338
- g && p.target.select(), (V = y.onFocus) == null || V.call(y, p);
339
- }, B = /* @__PURE__ */ e(
332
+ P ? I.hasIcon : null,
333
+ E ? I.hasIconRight : null,
334
+ n && E ? I.hasClearAndIconRight : n ? I.hasClear : null,
335
+ x
336
+ ].filter(Boolean).join(" "), X = (v) => {
337
+ var A;
338
+ g && v.target.select(), (A = y.onFocus) == null || A.call(y, v);
339
+ }, Z = /* @__PURE__ */ e(
340
340
  "input",
341
341
  {
342
- ref: $,
342
+ ref: L,
343
343
  disabled: r,
344
- value: T(U),
345
- onChange: W,
346
- onFocus: J,
347
- className: F,
348
- style: b ? { textAlign: b, ...y.style } : y.style,
344
+ value: oe(G),
345
+ onChange: R,
346
+ onFocus: X,
347
+ className: Y,
348
+ style: f ? { textAlign: f, ...y.style } : y.style,
349
349
  ...y
350
350
  }
351
- ), z = [I.wrapper, x == null ? void 0 : x.className].filter(Boolean).join(" "), Q = /* @__PURE__ */ d("span", { ...x, className: z, children: [
352
- q ? /* @__PURE__ */ e("span", { className: I.iconSlot, children: s }) : null,
353
- B,
354
- Z ? /* @__PURE__ */ e("span", { className: [I.iconSlotRight, n ? I.iconSlotRightWithClear : null].filter(Boolean).join(" "), children: s }) : null,
351
+ ), j = [I.wrapper, C == null ? void 0 : C.className].filter(Boolean).join(" "), F = /* @__PURE__ */ d("span", { ...C, className: j, children: [
352
+ P ? /* @__PURE__ */ e("span", { className: I.iconSlot, children: s }) : null,
353
+ Z,
354
+ E ? /* @__PURE__ */ e("span", { className: [I.iconSlotRight, n ? I.iconSlotRightWithClear : null].filter(Boolean).join(" "), children: s }) : null,
355
355
  n ? /* @__PURE__ */ e(
356
356
  "button",
357
357
  {
358
358
  type: "button",
359
359
  "aria-label": "Clear",
360
360
  title: "Clear",
361
- disabled: r || U.length === 0,
362
- onClick: G,
361
+ disabled: r || G.length === 0,
362
+ onClick: W,
363
363
  className: I.clearBtn,
364
364
  ...a,
365
- children: (a == null ? void 0 : a.children) ?? /* @__PURE__ */ e(Kt, {})
365
+ children: (a == null ? void 0 : a.children) ?? /* @__PURE__ */ e(Zt, {})
366
366
  }
367
367
  ) : null
368
368
  ] });
369
- return !o && !N ? Q : /* @__PURE__ */ d("div", { ...N, className: [I.field, N == null ? void 0 : N.className].filter(Boolean).join(" "), children: [
369
+ return !o && !k ? F : /* @__PURE__ */ d("div", { ...k, className: [I.field, k == null ? void 0 : k.className].filter(Boolean).join(" "), children: [
370
370
  o ? /* @__PURE__ */ e("label", { className: I.label, children: o }) : null,
371
- Q
371
+ F
372
372
  ] });
373
373
  }
374
374
  );
375
- Yt.displayName = "Input";
376
- const Zt = "_checkbox_7kjwa_2", Jt = "_checkboxBox_7kjwa_13", Qt = "_checked_7kjwa_33", Pt = "_indeterminate_7kjwa_42", en = "_disabled_7kjwa_55", tn = "_radio_7kjwa_61", nn = "_radioDot_7kjwa_72", on = "_radioChecked_7kjwa_85", sn = "_radioDisabled_7kjwa_97", ln = "_radioGroup_7kjwa_102", an = "_switchWrap_7kjwa_109", cn = "_switchTrack_7kjwa_120", rn = "_switchOn_7kjwa_143", dn = "_switchDisabled_7kjwa_153", j = {
377
- checkbox: Zt,
378
- checkboxBox: Jt,
379
- checked: Qt,
380
- indeterminate: Pt,
381
- disabled: en,
382
- radio: tn,
383
- radioDot: nn,
384
- radioChecked: on,
385
- radioDisabled: sn,
386
- radioGroup: ln,
387
- switchWrap: an,
388
- switchTrack: cn,
389
- switchOn: rn,
390
- switchDisabled: dn
391
- }, _n = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5" }) });
392
- function un({
375
+ Jt.displayName = "Input";
376
+ const Qt = "_checkbox_7kjwa_2", Pt = "_checkboxBox_7kjwa_13", en = "_checked_7kjwa_33", tn = "_indeterminate_7kjwa_42", nn = "_disabled_7kjwa_55", on = "_radio_7kjwa_61", sn = "_radioDot_7kjwa_72", ln = "_radioChecked_7kjwa_85", an = "_radioDisabled_7kjwa_97", cn = "_radioGroup_7kjwa_102", rn = "_switchWrap_7kjwa_109", dn = "_switchTrack_7kjwa_120", _n = "_switchOn_7kjwa_143", un = "_switchDisabled_7kjwa_153", B = {
377
+ checkbox: Qt,
378
+ checkboxBox: Pt,
379
+ checked: en,
380
+ indeterminate: tn,
381
+ disabled: nn,
382
+ radio: on,
383
+ radioDot: sn,
384
+ radioChecked: ln,
385
+ radioDisabled: an,
386
+ radioGroup: cn,
387
+ switchWrap: rn,
388
+ switchTrack: dn,
389
+ switchOn: _n,
390
+ switchDisabled: un
391
+ }, hn = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5" }) });
392
+ function mn({
393
393
  label: o,
394
394
  checked: s,
395
395
  defaultChecked: t,
@@ -400,10 +400,10 @@ function un({
400
400
  ...r
401
401
  }) {
402
402
  const i = s ?? t ?? !1, h = [
403
- j.checkbox,
404
- i && !n ? j.checked : null,
405
- n ? j.indeterminate : null,
406
- a ? j.disabled : null,
403
+ B.checkbox,
404
+ i && !n ? B.checked : null,
405
+ n ? B.indeterminate : null,
406
+ a ? B.disabled : null,
407
407
  c
408
408
  ].filter(Boolean).join(" ");
409
409
  return /* @__PURE__ */ d("label", { className: h, children: [
@@ -415,15 +415,15 @@ function un({
415
415
  checked: i,
416
416
  disabled: a,
417
417
  style: { display: "none" },
418
- onChange: (f) => l == null ? void 0 : l(f.currentTarget.checked)
418
+ onChange: (m) => l == null ? void 0 : l(m.currentTarget.checked)
419
419
  }
420
420
  ),
421
- /* @__PURE__ */ e("span", { className: j.checkboxBox, children: !n && /* @__PURE__ */ e(_n, {}) }),
421
+ /* @__PURE__ */ e("span", { className: B.checkboxBox, children: !n && /* @__PURE__ */ e(hn, {}) }),
422
422
  o
423
423
  ] });
424
424
  }
425
- un.displayName = "Checkbox";
426
- function hn({
425
+ mn.displayName = "Checkbox";
426
+ function fn({
427
427
  label: o,
428
428
  checked: s = !1,
429
429
  disabled: t = !1,
@@ -433,9 +433,9 @@ function hn({
433
433
  ...c
434
434
  }) {
435
435
  const r = [
436
- j.radio,
437
- s ? j.radioChecked : null,
438
- t ? j.radioDisabled : null,
436
+ B.radio,
437
+ s ? B.radioChecked : null,
438
+ t ? B.radioDisabled : null,
439
439
  l
440
440
  ].filter(Boolean).join(" ");
441
441
  return /* @__PURE__ */ d("label", { className: r, children: [
@@ -451,17 +451,17 @@ function hn({
451
451
  onChange: (i) => n == null ? void 0 : n(i.currentTarget.value)
452
452
  }
453
453
  ),
454
- /* @__PURE__ */ e("span", { className: j.radioDot }),
454
+ /* @__PURE__ */ e("span", { className: B.radioDot }),
455
455
  o
456
456
  ] });
457
457
  }
458
- hn.displayName = "Radio";
459
- function fn({ children: o, className: s, ...t }) {
460
- const n = [j.radioGroup, s].filter(Boolean).join(" ");
458
+ fn.displayName = "Radio";
459
+ function pn({ children: o, className: s, ...t }) {
460
+ const n = [B.radioGroup, s].filter(Boolean).join(" ");
461
461
  return /* @__PURE__ */ e("div", { ...t, className: n, role: "radiogroup", children: o });
462
462
  }
463
- fn.displayName = "RadioGroup";
464
- function mn({
463
+ pn.displayName = "RadioGroup";
464
+ function gn({
465
465
  label: o,
466
466
  checked: s,
467
467
  defaultChecked: t,
@@ -471,9 +471,9 @@ function mn({
471
471
  ...c
472
472
  }) {
473
473
  const r = s ?? t ?? !1, i = [
474
- j.switchWrap,
475
- r ? j.switchOn : null,
476
- n ? j.switchDisabled : null,
474
+ B.switchWrap,
475
+ r ? B.switchOn : null,
476
+ n ? B.switchDisabled : null,
477
477
  l
478
478
  ].filter(Boolean).join(" ");
479
479
  return /* @__PURE__ */ d("label", { className: i, children: [
@@ -488,26 +488,26 @@ function mn({
488
488
  onChange: (h) => a == null ? void 0 : a(h.currentTarget.checked)
489
489
  }
490
490
  ),
491
- /* @__PURE__ */ e("span", { className: j.switchTrack }),
491
+ /* @__PURE__ */ e("span", { className: B.switchTrack }),
492
492
  o
493
493
  ] });
494
494
  }
495
- mn.displayName = "Switch";
496
- const pn = "_menu_pga52_1", gn = "_item_pga52_13", vn = "_active_pga52_41", bn = "_danger_pga52_53", kn = "_disabled_pga52_65", Nn = "_kbd_pga52_71", yn = "_separator_pga52_79", X = {
497
- menu: pn,
498
- item: gn,
499
- active: vn,
500
- danger: bn,
501
- disabled: kn,
502
- kbd: Nn,
503
- separator: yn
495
+ gn.displayName = "Switch";
496
+ const vn = "_menu_pga52_1", bn = "_item_pga52_13", kn = "_active_pga52_41", Nn = "_danger_pga52_53", yn = "_disabled_pga52_65", xn = "_kbd_pga52_71", wn = "_separator_pga52_79", U = {
497
+ menu: vn,
498
+ item: bn,
499
+ active: kn,
500
+ danger: Nn,
501
+ disabled: yn,
502
+ kbd: xn,
503
+ separator: wn
504
504
  };
505
- function xn({ children: o, className: s, ...t }) {
506
- const n = [X.menu, s].filter(Boolean).join(" ");
505
+ function Bn({ children: o, className: s, ...t }) {
506
+ const n = [U.menu, s].filter(Boolean).join(" ");
507
507
  return /* @__PURE__ */ e("div", { ...t, className: n, role: "menu", children: o });
508
508
  }
509
- xn.displayName = "Menu";
510
- function wn({
509
+ Bn.displayName = "Menu";
510
+ function Cn({
511
511
  icon: o,
512
512
  kbd: s,
513
513
  active: t = !1,
@@ -518,35 +518,35 @@ function wn({
518
518
  ...r
519
519
  }) {
520
520
  const i = [
521
- X.item,
522
- t ? X.active : null,
523
- n ? X.danger : null,
524
- a ? X.disabled : null,
521
+ U.item,
522
+ t ? U.active : null,
523
+ n ? U.danger : null,
524
+ a ? U.disabled : null,
525
525
  c
526
526
  ].filter(Boolean).join(" ");
527
527
  return /* @__PURE__ */ d("button", { ...r, type: "button", className: i, disabled: a, role: "menuitem", children: [
528
528
  o,
529
529
  l,
530
- s && /* @__PURE__ */ e("span", { className: X.kbd, children: s })
530
+ s && /* @__PURE__ */ e("span", { className: U.kbd, children: s })
531
531
  ] });
532
532
  }
533
- wn.displayName = "MenuItem";
533
+ Cn.displayName = "MenuItem";
534
534
  function jn({ className: o, ...s }) {
535
- const t = [X.separator, o].filter(Boolean).join(" ");
535
+ const t = [U.separator, o].filter(Boolean).join(" ");
536
536
  return /* @__PURE__ */ e("div", { ...s, className: t, role: "separator" });
537
537
  }
538
538
  jn.displayName = "MenuSeparator";
539
- const Bn = "_backdrop_pya14_1", Cn = "_modal_pya14_23", In = "_header_pya14_37", $n = "_titleBlock_pya14_45", Ln = "_title_pya14_45", Mn = "_subtitle_pya14_58", Tn = "_closeBtn_pya14_64", Sn = "_body_pya14_86", Rn = "_footer_pya14_92", D = {
540
- backdrop: Bn,
541
- modal: Cn,
542
- header: In,
543
- titleBlock: $n,
544
- title: Ln,
545
- subtitle: Mn,
546
- closeBtn: Tn,
547
- body: Sn,
548
- footer: Rn
549
- }, Dn = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "11", height: "11", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), On = P(
539
+ const In = "_backdrop_pya14_1", $n = "_modal_pya14_23", Ln = "_header_pya14_37", Mn = "_titleBlock_pya14_45", Tn = "_title_pya14_45", Sn = "_subtitle_pya14_58", Rn = "_closeBtn_pya14_64", An = "_body_pya14_86", Dn = "_footer_pya14_92", D = {
540
+ backdrop: In,
541
+ modal: $n,
542
+ header: Ln,
543
+ titleBlock: Mn,
544
+ title: Tn,
545
+ subtitle: Sn,
546
+ closeBtn: Rn,
547
+ body: An,
548
+ footer: Dn
549
+ }, On = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "11", height: "11", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), Wn = J(
550
550
  ({
551
551
  open: o,
552
552
  title: s,
@@ -558,40 +558,40 @@ const Bn = "_backdrop_pya14_1", Cn = "_modal_pya14_23", In = "_header_pya14_37",
558
558
  backdropProps: r,
559
559
  modalProps: i,
560
560
  headerProps: h,
561
- bodyProps: f,
561
+ bodyProps: m,
562
562
  footerProps: g,
563
- closeButtonProps: b,
564
- onOpenChange: m,
565
- onClose: k
566
- }, R) => {
567
- const x = ne(null);
568
- ge(R, () => x.current), ae(() => {
563
+ closeButtonProps: f,
564
+ onOpenChange: p,
565
+ onClose: N
566
+ }, S) => {
567
+ const C = ne(null);
568
+ ge(S, () => C.current), ie(() => {
569
569
  if (!o) return;
570
- const $ = (U) => {
571
- U.key === "Escape" && N();
570
+ const L = (G) => {
571
+ G.key === "Escape" && k();
572
572
  };
573
- return document.addEventListener("keydown", $), () => document.removeEventListener("keydown", $);
573
+ return document.addEventListener("keydown", L), () => document.removeEventListener("keydown", L);
574
574
  }, [o]);
575
- const N = () => {
576
- m == null || m(!1), k == null || k();
577
- }, w = ($) => {
578
- l && $.target === $.currentTarget && N();
575
+ const k = () => {
576
+ p == null || p(!1), N == null || N();
577
+ }, x = (L) => {
578
+ l && L.target === L.currentTarget && k();
579
579
  };
580
580
  if (!o) return null;
581
- const y = [D.backdrop, r == null ? void 0 : r.className].filter(Boolean).join(" "), M = [D.modal, i == null ? void 0 : i.className].filter(Boolean).join(" ");
581
+ const y = [D.backdrop, r == null ? void 0 : r.className].filter(Boolean).join(" "), $ = [D.modal, i == null ? void 0 : i.className].filter(Boolean).join(" ");
582
582
  return /* @__PURE__ */ e(
583
583
  "div",
584
584
  {
585
585
  ...r,
586
586
  className: y,
587
- onClick: w,
587
+ onClick: x,
588
588
  role: "presentation",
589
589
  children: /* @__PURE__ */ d(
590
590
  "div",
591
591
  {
592
- ref: x,
592
+ ref: C,
593
593
  ...i,
594
- className: M,
594
+ className: $,
595
595
  role: "dialog",
596
596
  "aria-modal": "true",
597
597
  children: [
@@ -606,17 +606,17 @@ const Bn = "_backdrop_pya14_1", Cn = "_modal_pya14_23", In = "_header_pya14_37",
606
606
  type: "button",
607
607
  "aria-label": "Close",
608
608
  className: D.closeBtn,
609
- onClick: N,
610
- ...b,
611
- children: (b == null ? void 0 : b.children) ?? /* @__PURE__ */ e(Dn, {})
609
+ onClick: k,
610
+ ...f,
611
+ children: (f == null ? void 0 : f.children) ?? /* @__PURE__ */ e(On, {})
612
612
  }
613
613
  )
614
614
  ] }),
615
615
  /* @__PURE__ */ e(
616
616
  "section",
617
617
  {
618
- ...f,
619
- className: [D.body, f == null ? void 0 : f.className].filter(Boolean).join(" "),
618
+ ...m,
619
+ className: [D.body, m == null ? void 0 : m.className].filter(Boolean).join(" "),
620
620
  children: n
621
621
  }
622
622
  ),
@@ -635,22 +635,22 @@ const Bn = "_backdrop_pya14_1", Cn = "_modal_pya14_23", In = "_header_pya14_37",
635
635
  );
636
636
  }
637
637
  );
638
- On.displayName = "Modal";
639
- const Wn = "_wrapper_10d4l_1", En = "_pop_10d4l_8", An = "_sideRight_10d4l_22", Fn = "_sideTop_10d4l_27", zn = "_arrow_10d4l_34", Vn = "_head_10d4l_60", Xn = "_title_10d4l_67", Un = "_closeBtn_10d4l_74", Gn = "_body_10d4l_105", O = {
640
- wrapper: Wn,
641
- pop: En,
642
- sideRight: An,
643
- sideTop: Fn,
644
- arrow: zn,
645
- head: Vn,
646
- title: Xn,
647
- closeBtn: Un,
648
- body: Gn
649
- }, qn = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
638
+ Wn.displayName = "Modal";
639
+ const En = "_wrapper_10d4l_1", Fn = "_pop_10d4l_8", zn = "_sideRight_10d4l_22", Vn = "_sideTop_10d4l_27", Xn = "_arrow_10d4l_34", Un = "_head_10d4l_60", Gn = "_title_10d4l_67", qn = "_closeBtn_10d4l_74", Hn = "_body_10d4l_105", O = {
640
+ wrapper: En,
641
+ pop: Fn,
642
+ sideRight: zn,
643
+ sideTop: Vn,
644
+ arrow: Xn,
645
+ head: Un,
646
+ title: Gn,
647
+ closeBtn: qn,
648
+ body: Hn
649
+ }, Kn = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
650
650
  /* @__PURE__ */ e("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
651
651
  /* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
652
652
  ] });
653
- function Hn({
653
+ function Yn({
654
654
  open: o,
655
655
  defaultOpen: s = !1,
656
656
  title: t,
@@ -661,25 +661,25 @@ function Hn({
661
661
  onOpenChange: r,
662
662
  popProps: i
663
663
  }) {
664
- const [h, f] = Y(s), g = o !== void 0, b = g ? o : h, m = ne(null);
665
- function k(w) {
666
- g || f(w), r == null || r(w);
664
+ const [h, m] = K(s), g = o !== void 0, f = g ? o : h, p = ne(null);
665
+ function N(x) {
666
+ g || m(x), r == null || r(x);
667
667
  }
668
- ae(() => {
669
- function w(y) {
670
- m.current && !m.current.contains(y.target) && k(!1);
668
+ ie(() => {
669
+ function x(y) {
670
+ p.current && !p.current.contains(y.target) && N(!1);
671
671
  }
672
- return b && document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
673
- }, [b]);
674
- const R = l.startsWith("top"), x = l.endsWith("end"), N = [
672
+ return f && document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
673
+ }, [f]);
674
+ const S = l.startsWith("top"), C = l.endsWith("end"), k = [
675
675
  O.pop,
676
- x ? O.sideRight : null,
677
- R ? O.sideTop : null,
676
+ C ? O.sideRight : null,
677
+ S ? O.sideTop : null,
678
678
  i == null ? void 0 : i.className
679
679
  ].filter(Boolean).join(" ");
680
- return /* @__PURE__ */ d("div", { ref: m, className: O.wrapper, children: [
681
- a && /* @__PURE__ */ e("div", { onClick: () => k(!b), style: { display: "inline-flex" }, children: a }),
682
- b && /* @__PURE__ */ d("div", { ...i, className: N, children: [
680
+ return /* @__PURE__ */ d("div", { ref: p, className: O.wrapper, children: [
681
+ a && /* @__PURE__ */ e("div", { onClick: () => N(!f), style: { display: "inline-flex" }, children: a }),
682
+ f && /* @__PURE__ */ d("div", { ...i, className: k, children: [
683
683
  /* @__PURE__ */ e("span", { className: O.arrow }),
684
684
  (t || c) && /* @__PURE__ */ d("div", { className: O.head, children: [
685
685
  t && /* @__PURE__ */ e("span", { className: O.title, children: t }),
@@ -689,8 +689,8 @@ function Hn({
689
689
  type: "button",
690
690
  className: O.closeBtn,
691
691
  "aria-label": "Close",
692
- onClick: () => k(!1),
693
- children: /* @__PURE__ */ e(qn, {})
692
+ onClick: () => N(!1),
693
+ children: /* @__PURE__ */ e(Kn, {})
694
694
  }
695
695
  )
696
696
  ] }),
@@ -698,21 +698,21 @@ function Hn({
698
698
  ] })
699
699
  ] });
700
700
  }
701
- Hn.displayName = "Popover";
702
- const Kn = "_group_1ehqf_1", Yn = "_pb_1ehqf_9", Zn = "_on_1ehqf_37", Jn = "_accent_1ehqf_42", Qn = "_solo_1ehqf_47", Pn = "_disabled_1ehqf_62", K = {
703
- group: Kn,
704
- pb: Yn,
705
- on: Zn,
706
- accent: Jn,
707
- solo: Qn,
708
- disabled: Pn
701
+ Yn.displayName = "Popover";
702
+ const Zn = "_group_1ehqf_1", Jn = "_pb_1ehqf_9", Qn = "_on_1ehqf_37", Pn = "_accent_1ehqf_42", eo = "_solo_1ehqf_47", to = "_disabled_1ehqf_62", H = {
703
+ group: Zn,
704
+ pb: Jn,
705
+ on: Qn,
706
+ accent: Pn,
707
+ solo: eo,
708
+ disabled: to
709
709
  };
710
- function eo({ children: o, className: s, ...t }) {
711
- const n = [K.group, s].filter(Boolean).join(" ");
710
+ function no({ children: o, className: s, ...t }) {
711
+ const n = [H.group, s].filter(Boolean).join(" ");
712
712
  return /* @__PURE__ */ e("div", { ...t, className: n, role: "group", children: o });
713
713
  }
714
- eo.displayName = "PushButtonGroup";
715
- function to({
714
+ no.displayName = "PushButtonGroup";
715
+ function oo({
716
716
  on: o = !1,
717
717
  accent: s = !1,
718
718
  solo: t = !1,
@@ -723,11 +723,11 @@ function to({
723
723
  ...r
724
724
  }) {
725
725
  const i = [
726
- K.pb,
727
- o ? K.on : null,
728
- o && s ? K.accent : null,
729
- t ? K.solo : null,
730
- l ? K.disabled : null,
726
+ H.pb,
727
+ o ? H.on : null,
728
+ o && s ? H.accent : null,
729
+ t ? H.solo : null,
730
+ l ? H.disabled : null,
731
731
  c
732
732
  ].filter(Boolean).join(" ");
733
733
  return /* @__PURE__ */ d("button", { ...r, type: "button", className: i, disabled: l, children: [
@@ -735,140 +735,148 @@ function to({
735
735
  a
736
736
  ] });
737
737
  }
738
- to.displayName = "PushButton";
739
- const no = "_root_1ijff_1", oo = "_field_1ijff_6", so = "_label_1ijff_12", lo = "_labelMeta_1ijff_24", ao = "_trigger_1ijff_33", co = "_triggerOpen_1ijff_59", io = "_triggerConnectedBottom_1ijff_64", ro = "_triggerConnectedTop_1ijff_69", _o = "_triggerValue_1ijff_74", uo = "_triggerPlaceholder_1ijff_83", ho = "_chevron_1ijff_85", fo = "_chevronOpen_1ijff_94", mo = "_chips_1ijff_97", po = "_chip_1ijff_97", go = "_chipOverflow_1ijff_120", vo = "_clearBtn_1ijff_123", bo = "_popover_1ijff_143", ko = "_popoverBottom_1ijff_154", No = "_popoverTop_1ijff_162", yo = "_search_1ijff_181", xo = "_searchIcon_1ijff_188", wo = "_searchInput_1ijff_195", jo = "_list_1ijff_209", Bo = "_item_1ijff_217", Co = "_itemActive_1ijff_230", Io = "_itemDisabled_1ijff_238", $o = "_itemMeta_1ijff_240", Lo = "_checkbox_1ijff_248", Mo = "_checkboxChecked_1ijff_260", To = "_checkIcon_1ijff_266", So = "_emptyState_1ijff_277", Ro = "_popFooter_1ijff_285", Do = "_popFooterBtn_1ijff_295", u = {
740
- root: no,
741
- field: oo,
742
- label: so,
743
- labelMeta: lo,
744
- trigger: ao,
745
- triggerOpen: co,
746
- triggerConnectedBottom: io,
747
- triggerConnectedTop: ro,
748
- triggerValue: _o,
749
- triggerPlaceholder: uo,
750
- chevron: ho,
751
- chevronOpen: fo,
752
- chips: mo,
753
- chip: po,
754
- chipOverflow: go,
755
- clearBtn: vo,
756
- popover: bo,
757
- popoverBottom: ko,
758
- popoverTop: No,
759
- search: yo,
760
- searchIcon: xo,
761
- searchInput: wo,
738
+ oo.displayName = "PushButton";
739
+ const so = "_root_15t75_1", lo = "_field_15t75_6", ao = "_label_15t75_12", co = "_labelMeta_15t75_24", io = "_trigger_15t75_33", ro = "_triggerOpen_15t75_59", _o = "_triggerConnectedBottom_15t75_64", uo = "_triggerConnectedTop_15t75_69", ho = "_triggerValue_15t75_74", mo = "_triggerPlaceholder_15t75_83", fo = "_chevron_15t75_85", po = "_chevronOpen_15t75_94", go = "_chips_15t75_97", vo = "_chip_15t75_97", bo = "_chipOverflow_15t75_120", ko = "_clearBtn_15t75_123", No = "_popover_15t75_143", yo = "_popoverBottom_15t75_154", xo = "_popoverTop_15t75_162", wo = "_search_15t75_181", Bo = "_searchIcon_15t75_188", Co = "_searchInput_15t75_195", jo = "_list_15t75_209", Io = "_item_15t75_217", $o = "_itemAlignLeft_15t75_230", Lo = "_itemAlignCenter_15t75_231", Mo = "_itemAlignRight_15t75_232", To = "_itemActive_15t75_235", So = "_itemDisabled_15t75_243", Ro = "_itemMeta_15t75_245", Ao = "_checkbox_15t75_254", Do = "_checkboxChecked_15t75_266", Oo = "_checkIcon_15t75_272", Wo = "_emptyState_15t75_293", Eo = "_popFooter_15t75_301", Fo = "_popFooterBtn_15t75_311", u = {
740
+ root: so,
741
+ field: lo,
742
+ label: ao,
743
+ labelMeta: co,
744
+ trigger: io,
745
+ triggerOpen: ro,
746
+ triggerConnectedBottom: _o,
747
+ triggerConnectedTop: uo,
748
+ triggerValue: ho,
749
+ triggerPlaceholder: mo,
750
+ chevron: fo,
751
+ chevronOpen: po,
752
+ chips: go,
753
+ chip: vo,
754
+ chipOverflow: bo,
755
+ clearBtn: ko,
756
+ popover: No,
757
+ popoverBottom: yo,
758
+ popoverTop: xo,
759
+ search: wo,
760
+ searchIcon: Bo,
761
+ searchInput: Co,
762
762
  list: jo,
763
- item: Bo,
764
- itemActive: Co,
765
- itemDisabled: Io,
766
- itemMeta: $o,
767
- checkbox: Lo,
768
- checkboxChecked: Mo,
769
- checkIcon: To,
770
- emptyState: So,
771
- popFooter: Ro,
772
- popFooterBtn: Do
773
- }, Oo = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "14", height: "14", children: /* @__PURE__ */ e("path", { d: "m6 9 6 6 6-6" }) }), me = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "12", height: "12", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), Wo = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
763
+ item: Io,
764
+ itemAlignLeft: $o,
765
+ itemAlignCenter: Lo,
766
+ itemAlignRight: Mo,
767
+ itemActive: To,
768
+ itemDisabled: So,
769
+ itemMeta: Ro,
770
+ checkbox: Ao,
771
+ checkboxChecked: Do,
772
+ checkIcon: Oo,
773
+ emptyState: Wo,
774
+ popFooter: Eo,
775
+ popFooterBtn: Fo
776
+ }, zo = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "14", height: "14", children: /* @__PURE__ */ e("path", { d: "m6 9 6 6 6-6" }) }), pe = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "12", height: "12", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), Vo = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
774
777
  /* @__PURE__ */ e("circle", { cx: "11", cy: "11", r: "7" }),
775
778
  /* @__PURE__ */ e("path", { d: "m20 20-3.5-3.5" })
776
- ] }), pe = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", width: "10", height: "10", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5" }) }), Eo = (o, s) => {
779
+ ] }), ae = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", width: "10", height: "10", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5" }) }), Xo = (o, s) => {
777
780
  const t = s.trim().toLowerCase();
778
781
  return t ? o.filter(
779
782
  (n) => String(n.label).toLowerCase().includes(t)
780
783
  ) : o;
781
- }, Ao = P(
784
+ }, Uo = J(
782
785
  ({
783
786
  label: o,
784
787
  clearable: s = !1,
785
788
  defaultValue: t = null,
786
789
  disabled: n = !1,
787
790
  emptyLabel: a = "No options found",
788
- filterOptions: l = Eo,
791
+ filterOptions: l = Xo,
789
792
  isLoading: c = !1,
790
793
  loadingLabel: r = "Loading...",
791
794
  multiple: i = !1,
792
795
  onSearchChange: h,
793
- onValueChange: f,
796
+ onValueChange: m,
794
797
  options: g,
795
- optionsPosition: b = "bottom",
796
- placeholder: m = "Select",
797
- searchable: k = !1,
798
- searchPlaceholder: R = "Search...",
799
- showSelectedCount: x = !0,
800
- showClearAll: N = !0,
801
- showSelectedValues: w = !0,
802
- closeOnSelect: y,
803
- value: M,
804
- className: $,
805
- ...U
798
+ optionsAlign: f = "left",
799
+ optionsPosition: p = "bottom",
800
+ placeholder: N = "Select",
801
+ searchable: S = !1,
802
+ searchPlaceholder: C = "Search...",
803
+ showSelectedCount: k = !0,
804
+ showClearAll: x = !0,
805
+ showSelectedValues: y = !0,
806
+ closeOnSelect: $,
807
+ value: L,
808
+ className: G,
809
+ ...Q
806
810
  }, oe) => {
807
- const [T, W] = Y(!1), [G, Z] = Y(""), q = ne(null), [F, J] = ce(
808
- M,
811
+ const [R, W] = K(!1), [E, P] = K(""), Y = ne(null), [X, Z] = re(
812
+ L,
809
813
  t,
810
814
  (_) => {
811
- const C = g.filter(
812
- (H) => Array.isArray(_) ? _.includes(H.value) : H.value === _
815
+ const w = g.filter(
816
+ (q) => Array.isArray(_) ? _.includes(q.value) : q.value === _
813
817
  );
814
- f == null || f(_, C);
818
+ m == null || m(_, w);
815
819
  }
816
- ), B = se(
817
- () => Array.isArray(F) ? F : F ? [F] : [],
818
- [F]
819
- ), z = se(
820
- () => g.filter((_) => B.includes(_.value)),
821
- [g, B]
822
- ), Q = se(
823
- () => l(g, G),
824
- [l, g, G]
820
+ ), j = le(
821
+ () => Array.isArray(X) ? X : X ? [X] : [],
822
+ [X]
823
+ ), F = le(
824
+ () => g.filter((_) => j.includes(_.value)),
825
+ [g, j]
826
+ ), v = le(
827
+ () => l(g, E),
828
+ [l, g, E]
825
829
  );
826
- ae(() => {
827
- if (!T) return;
828
- const _ = (C) => {
829
- q.current && !q.current.contains(C.target) && W(!1);
830
+ ie(() => {
831
+ if (!R) return;
832
+ const _ = (w) => {
833
+ Y.current && !Y.current.contains(w.target) && W(!1);
830
834
  };
831
835
  return document.addEventListener("mousedown", _), () => document.removeEventListener("mousedown", _);
832
- }, [T]);
833
- const p = (_) => {
834
- Z(_), h == null || h(_);
835
- }, V = (_) => {
836
+ }, [R]);
837
+ const A = (_) => {
838
+ P(_), h == null || h(_);
839
+ }, ye = (_) => {
836
840
  if (!_.disabled) {
837
841
  if (i) {
838
- const C = B.includes(_.value) ? B.filter((H) => H !== _.value) : [...B, _.value];
839
- J(C), y && W(!1);
842
+ const w = j.includes(_.value) ? j.filter((q) => q !== _.value) : [...j, _.value];
843
+ Z(w), $ && W(!1);
840
844
  return;
841
845
  }
842
- J(_.value), (y ?? !0) && W(!1);
846
+ Z(_.value), ($ ?? !0) && W(!1);
843
847
  }
844
- }, ie = () => {
845
- J(i ? [] : null), p("");
846
- }, ye = (_) => {
847
- (_.key === "Enter" || _.key === " ") && (_.preventDefault(), W((C) => !C)), _.key === "Escape" && W(!1);
848
- }, re = b === "top", xe = [
848
+ }, de = () => {
849
+ Z(i ? [] : null), A("");
850
+ }, xe = (_) => {
851
+ (_.key === "Enter" || _.key === " ") && (_.preventDefault(), W((w) => !w)), _.key === "Escape" && W(!1);
852
+ }, _e = p === "top", we = [
849
853
  u.trigger,
850
- T ? u.triggerOpen : null,
851
- T ? re ? u.triggerConnectedTop : u.triggerConnectedBottom : null
852
- ].filter(Boolean).join(" "), we = !i || w, je = i && w && z.length > 0, de = i, Be = i && B.length > 0, _e = we && z.length > 0, ue = 2, he = z.length - ue, Ce = [u.root, $].filter(Boolean).join(" "), fe = /* @__PURE__ */ d("div", { ref: q, ...U, className: Ce, children: [
854
+ R ? u.triggerOpen : null,
855
+ R ? _e ? u.triggerConnectedTop : u.triggerConnectedBottom : null
856
+ ].filter(Boolean).join(" "), Be = !i || y, Ce = i && y && F.length > 0, se = i, je = i && j.length > 0, ue = Be && F.length > 0, he = 2, me = F.length - he, Ie = [u.root, G].filter(Boolean).join(" "), $e = {
857
+ left: u.itemAlignLeft,
858
+ center: u.itemAlignCenter,
859
+ right: u.itemAlignRight
860
+ }[f], fe = /* @__PURE__ */ d("div", { ref: Y, ...Q, className: Ie, children: [
853
861
  /* @__PURE__ */ d(
854
862
  "button",
855
863
  {
856
864
  type: "button",
857
- className: xe,
865
+ className: we,
858
866
  disabled: n,
859
867
  "aria-haspopup": "listbox",
860
- "aria-expanded": T,
868
+ "aria-expanded": R,
861
869
  onClick: () => !n && W((_) => !_),
862
- onKeyDown: ye,
870
+ onKeyDown: xe,
863
871
  children: [
864
- je ? /* @__PURE__ */ d("div", { className: u.chips, children: [
865
- z.slice(0, ue).map((_) => /* @__PURE__ */ e("span", { className: u.chip, children: _.label }, _.value)),
866
- he > 0 && /* @__PURE__ */ d("span", { className: [u.chip, u.chipOverflow].join(" "), children: [
872
+ Ce ? /* @__PURE__ */ d("div", { className: u.chips, children: [
873
+ F.slice(0, he).map((_) => /* @__PURE__ */ e("span", { className: u.chip, children: _.label }, _.value)),
874
+ me > 0 && /* @__PURE__ */ d("span", { className: [u.chip, u.chipOverflow].join(" "), children: [
867
875
  "+",
868
- he
876
+ me
869
877
  ] })
870
- ] }) : /* @__PURE__ */ e("span", { className: [u.triggerValue, _e ? null : u.triggerPlaceholder].filter(Boolean).join(" "), children: _e ? z.map((_) => _.label).join(", ") : m }),
871
- s && B.length > 0 && /* @__PURE__ */ e(
878
+ ] }) : /* @__PURE__ */ e("span", { className: [u.triggerValue, ue ? null : u.triggerPlaceholder].filter(Boolean).join(" "), children: ue ? F.map((_) => _.label).join(", ") : N }),
879
+ s && j.length > 0 && /* @__PURE__ */ e(
872
880
  "button",
873
881
  {
874
882
  type: "button",
@@ -876,72 +884,74 @@ const no = "_root_1ijff_1", oo = "_field_1ijff_6", so = "_label_1ijff_12", lo =
876
884
  className: u.clearBtn,
877
885
  disabled: n,
878
886
  onClick: (_) => {
879
- _.stopPropagation(), ie();
887
+ _.stopPropagation(), de();
880
888
  },
881
- children: /* @__PURE__ */ e(me, {})
889
+ children: /* @__PURE__ */ e(pe, {})
882
890
  }
883
891
  ),
884
- /* @__PURE__ */ e("span", { className: [u.chevron, T ? u.chevronOpen : null].filter(Boolean).join(" "), children: /* @__PURE__ */ e(Oo, {}) })
892
+ /* @__PURE__ */ e("span", { className: [u.chevron, R ? u.chevronOpen : null].filter(Boolean).join(" "), children: /* @__PURE__ */ e(zo, {}) })
885
893
  ]
886
894
  }
887
895
  ),
888
- T && /* @__PURE__ */ d(
896
+ R && /* @__PURE__ */ d(
889
897
  "div",
890
898
  {
891
899
  className: [
892
900
  u.popover,
893
- re ? u.popoverTop : u.popoverBottom
901
+ _e ? u.popoverTop : u.popoverBottom
894
902
  ].join(" "),
895
903
  role: "listbox",
896
904
  "aria-multiselectable": i || void 0,
897
905
  children: [
898
- k && /* @__PURE__ */ d("div", { className: u.search, children: [
899
- /* @__PURE__ */ e("span", { className: u.searchIcon, children: /* @__PURE__ */ e(Wo, {}) }),
906
+ S && /* @__PURE__ */ d("div", { className: u.search, children: [
907
+ /* @__PURE__ */ e("span", { className: u.searchIcon, children: /* @__PURE__ */ e(Vo, {}) }),
900
908
  /* @__PURE__ */ e(
901
909
  "input",
902
910
  {
903
911
  autoFocus: !0,
904
- value: G,
905
- placeholder: R,
912
+ value: E,
913
+ placeholder: C,
906
914
  className: u.searchInput,
907
- onChange: (_) => p(_.target.value)
915
+ onChange: (_) => A(_.target.value)
908
916
  }
909
917
  ),
910
- G && /* @__PURE__ */ e("button", { className: u.clearBtn, onClick: () => p(""), children: /* @__PURE__ */ e(me, {}) })
918
+ E && /* @__PURE__ */ e("button", { className: u.clearBtn, onClick: () => A(""), children: /* @__PURE__ */ e(pe, {}) })
911
919
  ] }),
912
- /* @__PURE__ */ d("ul", { className: u.list, children: [
920
+ /* @__PURE__ */ d("ul", { className: [u.list, "sb"].join(" "), children: [
913
921
  c && /* @__PURE__ */ e("li", { className: u.emptyState, children: r }),
914
- !c && Q.length === 0 && /* @__PURE__ */ e("li", { className: u.emptyState, children: a }),
915
- !c && Q.map((_) => {
916
- const C = B.includes(_.value), H = [
922
+ !c && v.length === 0 && /* @__PURE__ */ e("li", { className: u.emptyState, children: a }),
923
+ !c && v.map((_) => {
924
+ const w = j.includes(_.value), q = [
917
925
  u.item,
918
- C ? u.itemActive : null,
926
+ $e,
927
+ w ? u.itemActive : null,
919
928
  _.disabled ? u.itemDisabled : null
920
929
  ].filter(Boolean).join(" ");
921
930
  return /* @__PURE__ */ d(
922
931
  "li",
923
932
  {
924
- className: H,
933
+ className: q,
925
934
  role: "option",
926
- "aria-selected": C,
927
- onClick: () => V(_),
935
+ "aria-selected": w,
936
+ onClick: () => ye(_),
928
937
  children: [
929
- de ? /* @__PURE__ */ e("span", { className: [u.checkbox, C ? u.checkboxChecked : null].filter(Boolean).join(" "), children: C && /* @__PURE__ */ e(pe, {}) }) : null,
938
+ !se && f === "right" && w && /* @__PURE__ */ e("span", { className: u.checkIcon, children: /* @__PURE__ */ e(ae, {}) }),
939
+ se ? /* @__PURE__ */ e("span", { className: [u.checkbox, w ? u.checkboxChecked : null].filter(Boolean).join(" "), children: w && /* @__PURE__ */ e(ae, {}) }) : null,
930
940
  /* @__PURE__ */ e("span", { children: _.label }),
931
941
  _.meta && /* @__PURE__ */ e("span", { className: u.itemMeta, children: _.meta }),
932
- !de && C && /* @__PURE__ */ e("span", { className: u.checkIcon, children: /* @__PURE__ */ e(pe, {}) })
942
+ !se && f !== "right" && w && /* @__PURE__ */ e("span", { className: u.checkIcon, children: /* @__PURE__ */ e(ae, {}) })
933
943
  ]
934
944
  },
935
945
  _.value
936
946
  );
937
947
  })
938
948
  ] }),
939
- Be && (x || N) && /* @__PURE__ */ d("div", { className: u.popFooter, children: [
940
- x && /* @__PURE__ */ d("span", { children: [
941
- B.length,
949
+ je && (k || x) && /* @__PURE__ */ d("div", { className: u.popFooter, children: [
950
+ k && /* @__PURE__ */ d("span", { children: [
951
+ j.length,
942
952
  " selected"
943
953
  ] }),
944
- N && /* @__PURE__ */ e("button", { className: u.popFooterBtn, onClick: ie, children: "Clear all" })
954
+ x && /* @__PURE__ */ e("button", { className: u.popFooterBtn, onClick: de, children: "Clear all" })
945
955
  ] })
946
956
  ]
947
957
  }
@@ -950,9 +960,9 @@ const no = "_root_1ijff_1", oo = "_field_1ijff_6", so = "_label_1ijff_12", lo =
950
960
  return o ? /* @__PURE__ */ d("div", { className: u.field, children: [
951
961
  /* @__PURE__ */ d("label", { className: u.label, children: [
952
962
  o,
953
- i && x && B.length > 0 && /* @__PURE__ */ d("span", { className: u.labelMeta, children: [
963
+ i && k && j.length > 0 && /* @__PURE__ */ d("span", { className: u.labelMeta, children: [
954
964
  "· ",
955
- B.length,
965
+ j.length,
956
966
  " selected"
957
967
  ] })
958
968
  ] }),
@@ -960,23 +970,23 @@ const no = "_root_1ijff_1", oo = "_field_1ijff_6", so = "_label_1ijff_12", lo =
960
970
  ] }) : fe;
961
971
  }
962
972
  );
963
- Ao.displayName = "Select";
964
- const Fo = "_ring_mxe7t_2", zo = "_spin_mxe7t_1", Vo = "_ringMuted_mxe7t_12", Xo = "_sm_mxe7t_14", Uo = "_md_mxe7t_15", Go = "_lg_mxe7t_16", qo = "_onAccent_mxe7t_19", Ho = "_dots_mxe7t_29", Ko = "_dot_mxe7t_29", Yo = "_dotPulse_mxe7t_1", Zo = "_bar_mxe7t_52", Jo = "_barFill_mxe7t_62", Qo = "_barSlide_mxe7t_1", S = {
965
- ring: Fo,
966
- spin: zo,
967
- ringMuted: Vo,
968
- sm: Xo,
969
- md: Uo,
970
- lg: Go,
971
- onAccent: qo,
972
- dots: Ho,
973
- dot: Ko,
974
- dotPulse: Yo,
975
- bar: Zo,
976
- barFill: Jo,
977
- barSlide: Qo
973
+ Uo.displayName = "Select";
974
+ const Go = "_ring_mxe7t_2", qo = "_spin_mxe7t_1", Ho = "_ringMuted_mxe7t_12", Ko = "_sm_mxe7t_14", Yo = "_md_mxe7t_15", Zo = "_lg_mxe7t_16", Jo = "_onAccent_mxe7t_19", Qo = "_dots_mxe7t_29", Po = "_dot_mxe7t_29", es = "_dotPulse_mxe7t_1", ts = "_bar_mxe7t_52", ns = "_barFill_mxe7t_62", os = "_barSlide_mxe7t_1", T = {
975
+ ring: Go,
976
+ spin: qo,
977
+ ringMuted: Ho,
978
+ sm: Ko,
979
+ md: Yo,
980
+ lg: Zo,
981
+ onAccent: Jo,
982
+ dots: Qo,
983
+ dot: Po,
984
+ dotPulse: es,
985
+ bar: ts,
986
+ barFill: ns,
987
+ barSlide: os
978
988
  };
979
- function Po({
989
+ function ss({
980
990
  variant: o = "ring",
981
991
  size: s = "md",
982
992
  muted: t = !1,
@@ -985,22 +995,22 @@ function Po({
985
995
  ...l
986
996
  }) {
987
997
  if (o === "dots") {
988
- const r = [S.dots, a].filter(Boolean).join(" ");
998
+ const r = [T.dots, a].filter(Boolean).join(" ");
989
999
  return /* @__PURE__ */ d("span", { ...l, className: r, role: "status", "aria-label": "Loading", children: [
990
- /* @__PURE__ */ e("span", { className: S.dot }),
991
- /* @__PURE__ */ e("span", { className: S.dot }),
992
- /* @__PURE__ */ e("span", { className: S.dot })
1000
+ /* @__PURE__ */ e("span", { className: T.dot }),
1001
+ /* @__PURE__ */ e("span", { className: T.dot }),
1002
+ /* @__PURE__ */ e("span", { className: T.dot })
993
1003
  ] });
994
1004
  }
995
1005
  if (o === "bar") {
996
- const r = [S.bar, a].filter(Boolean).join(" ");
997
- return /* @__PURE__ */ e("span", { ...l, className: r, role: "status", "aria-label": "Loading", children: /* @__PURE__ */ e("span", { className: S.barFill }) });
1006
+ const r = [T.bar, a].filter(Boolean).join(" ");
1007
+ return /* @__PURE__ */ e("span", { ...l, className: r, role: "status", "aria-label": "Loading", children: /* @__PURE__ */ e("span", { className: T.barFill }) });
998
1008
  }
999
1009
  const c = [
1000
- S.ring,
1001
- S[s],
1002
- t ? S.ringMuted : null,
1003
- n ? S.onAccent : null,
1010
+ T.ring,
1011
+ T[s],
1012
+ t ? T.ringMuted : null,
1013
+ n ? T.onAccent : null,
1004
1014
  a
1005
1015
  ].filter(Boolean).join(" ");
1006
1016
  return /* @__PURE__ */ e(
@@ -1013,20 +1023,20 @@ function Po({
1013
1023
  }
1014
1024
  );
1015
1025
  }
1016
- Po.displayName = "Spinner";
1017
- const es = "_field_fazrx_1", ts = "_label_fazrx_7", ns = "_wrapper_fazrx_16", os = "_textarea_fazrx_20", ss = "_mono_fazrx_53", ls = "_hasClear_fazrx_59", as = "_clearBtn_fazrx_62", cs = "_footer_fazrx_84", is = "_helpText_fazrx_92", rs = "_charCount_fazrx_94", ds = "_charCountOver_fazrx_100", L = {
1018
- field: es,
1019
- label: ts,
1020
- wrapper: ns,
1021
- textarea: os,
1022
- mono: ss,
1023
- hasClear: ls,
1024
- clearBtn: as,
1025
- footer: cs,
1026
- helpText: is,
1027
- charCount: rs,
1028
- charCountOver: ds
1029
- }, _s = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "12", height: "12", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), us = P(
1026
+ ss.displayName = "Spinner";
1027
+ const ls = "_field_fazrx_1", as = "_label_fazrx_7", cs = "_wrapper_fazrx_16", is = "_textarea_fazrx_20", rs = "_mono_fazrx_53", ds = "_hasClear_fazrx_59", _s = "_clearBtn_fazrx_62", us = "_footer_fazrx_84", hs = "_helpText_fazrx_92", ms = "_charCount_fazrx_94", fs = "_charCountOver_fazrx_100", M = {
1028
+ field: ls,
1029
+ label: as,
1030
+ wrapper: cs,
1031
+ textarea: is,
1032
+ mono: rs,
1033
+ hasClear: ds,
1034
+ clearBtn: _s,
1035
+ footer: us,
1036
+ helpText: hs,
1037
+ charCount: ms,
1038
+ charCountOver: fs
1039
+ }, ps = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "12", height: "12", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), gs = J(
1030
1040
  ({
1031
1041
  label: o,
1032
1042
  helpText: s,
@@ -1038,33 +1048,33 @@ const es = "_field_fazrx_1", ts = "_label_fazrx_7", ns = "_wrapper_fazrx_16", os
1038
1048
  disabled: r,
1039
1049
  onChange: i,
1040
1050
  onValueChange: h,
1041
- className: f,
1051
+ className: m,
1042
1052
  ...g
1043
- }, b) => {
1044
- const [m, k] = ce(
1053
+ }, f) => {
1054
+ const [p, N] = re(
1045
1055
  l,
1046
1056
  c,
1047
- (M) => h == null ? void 0 : h(M)
1048
- ), R = (M) => {
1049
- k(M.target.value), i == null || i(M);
1050
- }, x = () => {
1051
- k("");
1052
- }, N = t !== void 0 && m.length > t, w = [
1053
- L.textarea,
1057
+ ($) => h == null ? void 0 : h($)
1058
+ ), S = ($) => {
1059
+ N($.target.value), i == null || i($);
1060
+ }, C = () => {
1061
+ N("");
1062
+ }, k = t !== void 0 && p.length > t, x = [
1063
+ M.textarea,
1054
1064
  "sb",
1055
- a ? L.mono : null,
1056
- n ? L.hasClear : null,
1057
- f
1058
- ].filter(Boolean).join(" "), y = /* @__PURE__ */ d("div", { className: L.wrapper, children: [
1065
+ a ? M.mono : null,
1066
+ n ? M.hasClear : null,
1067
+ m
1068
+ ].filter(Boolean).join(" "), y = /* @__PURE__ */ d("div", { className: M.wrapper, children: [
1059
1069
  /* @__PURE__ */ e(
1060
1070
  "textarea",
1061
1071
  {
1062
- ref: b,
1072
+ ref: f,
1063
1073
  disabled: r,
1064
1074
  maxLength: t,
1065
- value: m,
1066
- onChange: R,
1067
- className: w,
1075
+ value: p,
1076
+ onChange: S,
1077
+ className: x,
1068
1078
  ...g
1069
1079
  }
1070
1080
  ),
@@ -1072,21 +1082,21 @@ const es = "_field_fazrx_1", ts = "_label_fazrx_7", ns = "_wrapper_fazrx_16", os
1072
1082
  "button",
1073
1083
  {
1074
1084
  type: "button",
1075
- className: L.clearBtn,
1076
- disabled: r || m.length === 0,
1085
+ className: M.clearBtn,
1086
+ disabled: r || p.length === 0,
1077
1087
  "aria-label": "Clear",
1078
- onClick: x,
1079
- children: /* @__PURE__ */ e(_s, {})
1088
+ onClick: C,
1089
+ children: /* @__PURE__ */ e(ps, {})
1080
1090
  }
1081
1091
  )
1082
1092
  ] });
1083
- return !o && !s && t === void 0 ? y : /* @__PURE__ */ d("div", { className: L.field, children: [
1084
- o && /* @__PURE__ */ e("label", { className: L.label, children: o }),
1093
+ return !o && !s && t === void 0 ? y : /* @__PURE__ */ d("div", { className: M.field, children: [
1094
+ o && /* @__PURE__ */ e("label", { className: M.label, children: o }),
1085
1095
  y,
1086
- (s || t !== void 0) && /* @__PURE__ */ d("div", { className: L.footer, children: [
1087
- s && /* @__PURE__ */ e("span", { className: L.helpText, children: s }),
1088
- t !== void 0 && /* @__PURE__ */ d("span", { className: [L.charCount, N ? L.charCountOver : null].filter(Boolean).join(" "), children: [
1089
- m.length,
1096
+ (s || t !== void 0) && /* @__PURE__ */ d("div", { className: M.footer, children: [
1097
+ s && /* @__PURE__ */ e("span", { className: M.helpText, children: s }),
1098
+ t !== void 0 && /* @__PURE__ */ d("span", { className: [M.charCount, k ? M.charCountOver : null].filter(Boolean).join(" "), children: [
1099
+ p.length,
1090
1100
  " / ",
1091
1101
  t
1092
1102
  ] })
@@ -1094,35 +1104,35 @@ const es = "_field_fazrx_1", ts = "_label_fazrx_7", ns = "_wrapper_fazrx_16", os
1094
1104
  ] });
1095
1105
  }
1096
1106
  );
1097
- us.displayName = "Textarea";
1098
- const hs = "_toast_d6t69_1", fs = "_slideUp_d6t69_1", ms = "_toastExiting_d6t69_26", ps = "_slideOut_d6t69_1", gs = "_lead_d6t69_30", vs = "_body_d6t69_37", bs = "_title_d6t69_45", ks = "_message_d6t69_51", Ns = "_closeBtn_d6t69_56", ys = "_ok_d6t69_79", xs = "_error_d6t69_82", ws = "_warning_d6t69_85", js = "_info_d6t69_88", Bs = "_stack_d6t69_92", A = {
1099
- toast: hs,
1100
- slideUp: fs,
1101
- toastExiting: ms,
1102
- slideOut: ps,
1103
- lead: gs,
1104
- body: vs,
1105
- title: bs,
1106
- message: ks,
1107
- closeBtn: Ns,
1108
- ok: ys,
1109
- error: xs,
1110
- warning: ws,
1111
- info: js,
1112
- stack: Bs
1113
- }, Cs = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", width: "16", height: "16", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5" }) }), be = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "11", height: "11", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), Is = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "16", height: "16", children: [
1107
+ gs.displayName = "Textarea";
1108
+ const vs = "_toast_d6t69_1", bs = "_slideUp_d6t69_1", ks = "_toastExiting_d6t69_26", Ns = "_slideOut_d6t69_1", ys = "_lead_d6t69_30", xs = "_body_d6t69_37", ws = "_title_d6t69_45", Bs = "_message_d6t69_51", Cs = "_closeBtn_d6t69_56", js = "_ok_d6t69_79", Is = "_error_d6t69_82", $s = "_warning_d6t69_85", Ls = "_info_d6t69_88", Ms = "_stack_d6t69_92", V = {
1109
+ toast: vs,
1110
+ slideUp: bs,
1111
+ toastExiting: ks,
1112
+ slideOut: Ns,
1113
+ lead: ys,
1114
+ body: xs,
1115
+ title: ws,
1116
+ message: Bs,
1117
+ closeBtn: Cs,
1118
+ ok: js,
1119
+ error: Is,
1120
+ warning: $s,
1121
+ info: Ls,
1122
+ stack: Ms
1123
+ }, Ts = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", width: "16", height: "16", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5" }) }), be = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "11", height: "11", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), Ss = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "16", height: "16", children: [
1114
1124
  /* @__PURE__ */ e("path", { d: "M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
1115
1125
  /* @__PURE__ */ e("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
1116
1126
  /* @__PURE__ */ e("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
1117
- ] }), $s = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "16", height: "16", children: [
1127
+ ] }), Rs = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "16", height: "16", children: [
1118
1128
  /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
1119
1129
  /* @__PURE__ */ e("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
1120
1130
  /* @__PURE__ */ e("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
1121
- ] }), Ls = {
1122
- ok: /* @__PURE__ */ e(Cs, {}),
1131
+ ] }), As = {
1132
+ ok: /* @__PURE__ */ e(Ts, {}),
1123
1133
  error: /* @__PURE__ */ e(be, {}),
1124
- warning: /* @__PURE__ */ e(Is, {}),
1125
- info: /* @__PURE__ */ e($s, {})
1134
+ warning: /* @__PURE__ */ e(Ss, {}),
1135
+ info: /* @__PURE__ */ e(Rs, {})
1126
1136
  };
1127
1137
  function ke({
1128
1138
  variant: o = "ok",
@@ -1133,21 +1143,21 @@ function ke({
1133
1143
  ...l
1134
1144
  }) {
1135
1145
  const c = [
1136
- A.toast,
1137
- A[o],
1146
+ V.toast,
1147
+ V[o],
1138
1148
  a
1139
1149
  ].filter(Boolean).join(" ");
1140
1150
  return /* @__PURE__ */ d("div", { ...l, className: c, role: "alert", children: [
1141
- /* @__PURE__ */ e("span", { className: A.lead, children: Ls[o] }),
1142
- /* @__PURE__ */ d("div", { className: A.body, children: [
1143
- /* @__PURE__ */ e("div", { className: A.title, children: s }),
1144
- t && /* @__PURE__ */ e("div", { className: A.message, children: t })
1151
+ /* @__PURE__ */ e("span", { className: V.lead, children: As[o] }),
1152
+ /* @__PURE__ */ d("div", { className: V.body, children: [
1153
+ /* @__PURE__ */ e("div", { className: V.title, children: s }),
1154
+ t && /* @__PURE__ */ e("div", { className: V.message, children: t })
1145
1155
  ] }),
1146
1156
  n && /* @__PURE__ */ e(
1147
1157
  "button",
1148
1158
  {
1149
1159
  type: "button",
1150
- className: A.closeBtn,
1160
+ className: V.closeBtn,
1151
1161
  "aria-label": "Dismiss",
1152
1162
  onClick: n,
1153
1163
  children: /* @__PURE__ */ e(be, {})
@@ -1156,9 +1166,9 @@ function ke({
1156
1166
  ] });
1157
1167
  }
1158
1168
  ke.displayName = "Toast";
1159
- const Ne = Le(null);
1160
- function zs({ children: o }) {
1161
- const [s, t] = Y([]), n = te((l) => {
1169
+ const Ne = Te(null);
1170
+ function qs({ children: o }) {
1171
+ const [s, t] = K([]), n = te((l) => {
1162
1172
  t((c) => c.filter((r) => r.id !== l));
1163
1173
  }, []), a = te(
1164
1174
  (l) => {
@@ -1169,8 +1179,8 @@ function zs({ children: o }) {
1169
1179
  );
1170
1180
  return /* @__PURE__ */ d(Ne.Provider, { value: { toast: a, dismiss: n }, children: [
1171
1181
  o,
1172
- typeof document < "u" && Me(
1173
- /* @__PURE__ */ e("div", { className: A.stack, children: s.map((l) => /* @__PURE__ */ e(
1182
+ typeof document < "u" && Se(
1183
+ /* @__PURE__ */ e("div", { className: V.stack, children: s.map((l) => /* @__PURE__ */ e(
1174
1184
  ke,
1175
1185
  {
1176
1186
  variant: l.variant,
@@ -1184,30 +1194,30 @@ function zs({ children: o }) {
1184
1194
  )
1185
1195
  ] });
1186
1196
  }
1187
- function Vs() {
1188
- const o = $e(Ne);
1197
+ function Hs() {
1198
+ const o = Me(Ne);
1189
1199
  if (!o)
1190
1200
  throw new Error("useToast must be used within a ToastProvider");
1191
1201
  return o;
1192
1202
  }
1193
- const Ms = "_wrapper_18lxw_1", Ts = "_tooltip_18lxw_6", Ss = "_fadeIn_18lxw_1", Rs = "_top_18lxw_33", Ds = "_bottom_18lxw_52", Os = "_kbd_18lxw_72", le = {
1194
- wrapper: Ms,
1195
- tooltip: Ts,
1196
- fadeIn: Ss,
1197
- top: Rs,
1198
- bottom: Ds,
1199
- kbd: Os
1203
+ const Ds = "_wrapper_18lxw_1", Os = "_tooltip_18lxw_6", Ws = "_fadeIn_18lxw_1", Es = "_top_18lxw_33", Fs = "_bottom_18lxw_52", zs = "_kbd_18lxw_72", ce = {
1204
+ wrapper: Ds,
1205
+ tooltip: Os,
1206
+ fadeIn: Ws,
1207
+ top: Es,
1208
+ bottom: Fs,
1209
+ kbd: zs
1200
1210
  };
1201
- function Ws({
1211
+ function Vs({
1202
1212
  content: o,
1203
1213
  side: s = "top",
1204
1214
  children: t,
1205
1215
  wrapperProps: n,
1206
1216
  disabled: a = !1
1207
1217
  }) {
1208
- const [l, c] = Y(!1);
1209
- if (a) return /* @__PURE__ */ e(Ie, { children: t });
1210
- const r = [le.tooltip, le[s]].filter(Boolean).join(" "), i = [le.wrapper, n == null ? void 0 : n.className].filter(Boolean).join(" ");
1218
+ const [l, c] = K(!1);
1219
+ if (a) return /* @__PURE__ */ e(Le, { children: t });
1220
+ const r = [ce.tooltip, ce[s]].filter(Boolean).join(" "), i = [ce.wrapper, n == null ? void 0 : n.className].filter(Boolean).join(" ");
1211
1221
  return /* @__PURE__ */ d(
1212
1222
  "span",
1213
1223
  {
@@ -1224,35 +1234,35 @@ function Ws({
1224
1234
  }
1225
1235
  );
1226
1236
  }
1227
- Ws.displayName = "Tooltip";
1237
+ Vs.displayName = "Tooltip";
1228
1238
  export {
1229
- Ye as Badge,
1230
- it as Button,
1231
- Lt as Card,
1232
- Mt as CardHeader,
1233
- Tt as CardStat,
1234
- un as Checkbox,
1235
- Yt as Input,
1236
- xn as Menu,
1237
- wn as MenuItem,
1239
+ Je as Badge,
1240
+ dt as Button,
1241
+ Tt as Card,
1242
+ St as CardHeader,
1243
+ Rt as CardStat,
1244
+ mn as Checkbox,
1245
+ Jt as Input,
1246
+ Bn as Menu,
1247
+ Cn as MenuItem,
1238
1248
  jn as MenuSeparator,
1239
- On as Modal,
1240
- Hn as Popover,
1241
- to as PushButton,
1242
- eo as PushButtonGroup,
1243
- hn as Radio,
1244
- fn as RadioGroup,
1245
- Ze as Scrollable,
1246
- Ao as Select,
1247
- Po as Spinner,
1248
- mn as Switch,
1249
- us as Textarea,
1249
+ Wn as Modal,
1250
+ Yn as Popover,
1251
+ oo as PushButton,
1252
+ no as PushButtonGroup,
1253
+ fn as Radio,
1254
+ pn as RadioGroup,
1255
+ Qe as Scrollable,
1256
+ Uo as Select,
1257
+ ss as Spinner,
1258
+ gn as Switch,
1259
+ gs as Textarea,
1250
1260
  ke as Toast,
1251
- zs as ToastProvider,
1252
- Ws as Tooltip,
1253
- Dt as applyMask,
1261
+ qs as ToastProvider,
1262
+ Vs as Tooltip,
1263
+ Ot as applyMask,
1254
1264
  ve as getRawMaskValue,
1255
- ce as useControlledState,
1256
- Vs as useToast
1265
+ re as useControlledState,
1266
+ Hs as useToast
1257
1267
  };
1258
1268
  //# sourceMappingURL=super-kit.js.map