@chloe0592/pebble 0.1.1 → 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/pebble.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import { jsxs as _, jsx as t } from "react/jsx-runtime";
2
- import b, { useId as L, useRef as O, useEffect as z, useState as H, useCallback as ae } from "react";
1
+ import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
+ import g, { useId as L, useRef as O, useEffect as z, useState as H, useCallback as ne } from "react";
3
3
  import { createPortal as le } from "react-dom";
4
- const ie = "_spinner_10ctt_1", ce = "_track_10ctt_10", de = "_arc_10ctt_18", _e = "_xs_10ctt_24", pe = "_sm_10ctt_25", ue = "_md_10ctt_26", fe = "_lg_10ctt_27", he = "_xl_10ctt_28", M = {
4
+ const ie = "_spinner_10ctt_1", ce = "_track_10ctt_10", de = "_arc_10ctt_18", _e = "_xs_10ctt_24", pe = "_sm_10ctt_25", ue = "_md_10ctt_26", he = "_lg_10ctt_27", fe = "_xl_10ctt_28", M = {
5
5
  spinner: ie,
6
6
  "pb-spin": "_pb-spin_10ctt_1",
7
7
  track: ce,
@@ -10,52 +10,53 @@ const ie = "_spinner_10ctt_1", ce = "_track_10ctt_10", de = "_arc_10ctt_18", _e
10
10
  xs: _e,
11
11
  sm: pe,
12
12
  md: ue,
13
- lg: fe,
14
- xl: he
13
+ lg: he,
14
+ xl: fe
15
15
  }, me = {
16
16
  xs: 12,
17
17
  sm: 16,
18
18
  md: 24,
19
19
  lg: 32,
20
20
  xl: 48
21
- }, Q = b.forwardRef(
22
- ({ size: r = "md", label: e = "Loading…", className: o = "" }, n) => {
23
- const s = me[r], i = L().replace(/:/g, "");
24
- return /* @__PURE__ */ _(
21
+ }, Q = g.forwardRef(
22
+ ({ size: o = "md", label: e = "Loading…", className: t = "", color: a = "indigo" }, s) => {
23
+ const d = me[o], l = L().replace(/:/g, ""), i = a === "white", u = i ? "rgba(255,255,255,0)" : "#6366f1", m = i ? "rgba(255,255,255,0.9)" : "#6366f1", _ = i ? "rgba(255,255,255,0.9)" : "#a855f7", f = i ? "rgba(255,255,255,0.25)" : void 0;
24
+ return /* @__PURE__ */ p(
25
25
  "svg",
26
26
  {
27
- ref: n,
28
- className: [M.spinner, M[r], o].filter(Boolean).join(" "),
29
- width: s,
30
- height: s,
27
+ ref: s,
28
+ className: [M.spinner, M[o], t].filter(Boolean).join(" "),
29
+ width: d,
30
+ height: d,
31
31
  viewBox: "0 0 24 24",
32
32
  fill: "none",
33
33
  "aria-label": e,
34
34
  role: "status",
35
35
  children: [
36
- /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ _("linearGradient", { id: i, x1: "12", y1: "3", x2: "21", y2: "12", gradientUnits: "userSpaceOnUse", children: [
37
- /* @__PURE__ */ t("stop", { offset: "0%", stopColor: "#6366f1", stopOpacity: "0" }),
38
- /* @__PURE__ */ t("stop", { offset: "40%", stopColor: "#6366f1", stopOpacity: "1" }),
39
- /* @__PURE__ */ t("stop", { offset: "100%", stopColor: "#a855f7", stopOpacity: "1" })
36
+ /* @__PURE__ */ r("defs", { children: /* @__PURE__ */ p("linearGradient", { id: l, x1: "12", y1: "3", x2: "21", y2: "12", gradientUnits: "userSpaceOnUse", children: [
37
+ /* @__PURE__ */ r("stop", { offset: "0%", stopColor: u, stopOpacity: "1" }),
38
+ /* @__PURE__ */ r("stop", { offset: "40%", stopColor: m, stopOpacity: "1" }),
39
+ /* @__PURE__ */ r("stop", { offset: "100%", stopColor: _, stopOpacity: "1" })
40
40
  ] }) }),
41
- /* @__PURE__ */ t(
41
+ /* @__PURE__ */ r(
42
42
  "circle",
43
43
  {
44
44
  className: M.track,
45
45
  cx: "12",
46
46
  cy: "12",
47
47
  r: "9",
48
- strokeWidth: "2.5"
48
+ strokeWidth: "2.5",
49
+ style: f ? { stroke: f } : void 0
49
50
  }
50
51
  ),
51
- /* @__PURE__ */ t(
52
+ /* @__PURE__ */ r(
52
53
  "path",
53
54
  {
54
55
  className: M.arc,
55
56
  d: "M12 3a9 9 0 0 1 9 9",
56
57
  strokeWidth: "2.5",
57
58
  strokeLinecap: "round",
58
- stroke: `url(#${i})`
59
+ stroke: `url(#${l})`
59
60
  }
60
61
  )
61
62
  ]
@@ -64,13 +65,13 @@ const ie = "_spinner_10ctt_1", ce = "_track_10ctt_10", de = "_arc_10ctt_18", _e
64
65
  }
65
66
  );
66
67
  Q.displayName = "Spinner";
67
- const be = "_button_s5t2n_1", ge = "_sm_s5t2n_47", ve = "_md_s5t2n_55", ke = "_lg_s5t2n_62", we = "_primary_s5t2n_73", ye = "_secondary_s5t2n_108", xe = "_ghost_s5t2n_148", Ne = "_outline_s5t2n_166", $e = "_danger_s5t2n_187", Be = "_fullWidth_s5t2n_234", je = "_loading_s5t2n_238", Re = "_iconLeft_s5t2n_244", Le = "_iconRight_s5t2n_245", Ie = "_label_s5t2n_258", R = {
68
+ const be = "_button_s5t2n_1", ge = "_sm_s5t2n_47", ve = "_md_s5t2n_55", ye = "_lg_s5t2n_62", ke = "_primary_s5t2n_73", we = "_secondary_s5t2n_108", xe = "_ghost_s5t2n_148", Ne = "_outline_s5t2n_166", $e = "_danger_s5t2n_187", Be = "_fullWidth_s5t2n_234", je = "_loading_s5t2n_238", Re = "_iconLeft_s5t2n_244", Le = "_iconRight_s5t2n_245", Ie = "_label_s5t2n_258", R = {
68
69
  button: be,
69
70
  sm: ge,
70
71
  md: ve,
71
- lg: ke,
72
- primary: we,
73
- secondary: ye,
72
+ lg: ye,
73
+ primary: ke,
74
+ secondary: we,
74
75
  ghost: xe,
75
76
  outline: Ne,
76
77
  danger: $e,
@@ -79,49 +80,56 @@ const be = "_button_s5t2n_1", ge = "_sm_s5t2n_47", ve = "_md_s5t2n_55", ke = "_l
79
80
  iconLeft: Re,
80
81
  iconRight: Le,
81
82
  label: Ie
82
- }, Ce = b.forwardRef(
83
+ }, Ce = g.forwardRef(
83
84
  ({
84
- variant: r = "primary",
85
+ variant: o = "primary",
85
86
  size: e = "md",
86
- isLoading: o = !1,
87
- leftIcon: n,
87
+ isLoading: t = !1,
88
+ leftIcon: a,
88
89
  rightIcon: s,
89
- fullWidth: i = !1,
90
- children: c,
91
- disabled: d,
92
- className: f = "",
93
- ...g
94
- }, u) => {
95
- const h = [
90
+ fullWidth: d = !1,
91
+ children: l,
92
+ disabled: i,
93
+ className: u = "",
94
+ ...m
95
+ }, _) => {
96
+ const f = [
96
97
  R.button,
97
- R[r],
98
+ R[o],
98
99
  R[e],
99
- i ? R.fullWidth : "",
100
- o ? R.loading : "",
101
- f
100
+ d ? R.fullWidth : "",
101
+ t ? R.loading : "",
102
+ u
102
103
  ].filter(Boolean).join(" ");
103
- return /* @__PURE__ */ _(
104
+ return /* @__PURE__ */ p(
104
105
  "button",
105
106
  {
106
- ref: u,
107
- className: h,
108
- disabled: d || o,
109
- "aria-busy": o || void 0,
110
- ...g,
107
+ ref: _,
108
+ className: f,
109
+ disabled: i || t,
110
+ "aria-busy": t || void 0,
111
+ ...m,
111
112
  children: [
112
- o ? /* @__PURE__ */ t(Q, { size: "sm", label: "Loading" }) : n && /* @__PURE__ */ t("span", { className: R.iconLeft, "aria-hidden": "true", children: n }),
113
- c && /* @__PURE__ */ t("span", { className: R.label, children: c }),
114
- !o && s && /* @__PURE__ */ t("span", { className: R.iconRight, "aria-hidden": "true", children: s })
113
+ t ? /* @__PURE__ */ r(
114
+ Q,
115
+ {
116
+ size: "sm",
117
+ label: "Loading",
118
+ color: o === "primary" || o === "danger" ? "white" : "indigo"
119
+ }
120
+ ) : a && /* @__PURE__ */ r("span", { className: R.iconLeft, "aria-hidden": "true", children: a }),
121
+ l && /* @__PURE__ */ r("span", { className: R.label, children: l }),
122
+ !t && s && /* @__PURE__ */ r("span", { className: R.iconRight, "aria-hidden": "true", children: s })
115
123
  ]
116
124
  }
117
125
  );
118
126
  }
119
127
  );
120
128
  Ce.displayName = "Button";
121
- const Te = "_wrapper_5z8qu_3", Se = "_label_5z8qu_10", We = "_inputWrapper_5z8qu_21", ze = "_error_5z8qu_39", Ee = "_disabled_5z8qu_39", qe = "_sm_5z8qu_70", Ae = "_md_5z8qu_71", De = "_lg_5z8qu_72", Me = "_input_5z8qu_21", Pe = "_hasLeft_5z8qu_109", Fe = "_hasRight_5z8qu_110", Oe = "_iconLeft_5z8qu_114", Ue = "_iconRight_5z8qu_115", Ve = "_helperText_5z8qu_134", Ge = "_errorText_5z8qu_142", k = {
129
+ const Te = "_wrapper_5z8qu_3", We = "_label_5z8qu_10", Se = "_inputWrapper_5z8qu_21", ze = "_error_5z8qu_39", Ee = "_disabled_5z8qu_39", qe = "_sm_5z8qu_70", Ae = "_md_5z8qu_71", De = "_lg_5z8qu_72", Me = "_input_5z8qu_21", Pe = "_hasLeft_5z8qu_109", Fe = "_hasRight_5z8qu_110", Oe = "_iconLeft_5z8qu_114", Ue = "_iconRight_5z8qu_115", Ve = "_helperText_5z8qu_134", Ge = "_errorText_5z8qu_142", y = {
122
130
  wrapper: Te,
123
- label: Se,
124
- inputWrapper: We,
131
+ label: We,
132
+ inputWrapper: Se,
125
133
  error: ze,
126
134
  disabled: Ee,
127
135
  sm: qe,
@@ -134,169 +142,169 @@ const Te = "_wrapper_5z8qu_3", Se = "_label_5z8qu_10", We = "_inputWrapper_5z8qu
134
142
  iconRight: Ue,
135
143
  helperText: Ve,
136
144
  errorText: Ge
137
- }, He = b.forwardRef(
145
+ }, He = g.forwardRef(
138
146
  ({
139
- label: r,
147
+ label: o,
140
148
  helperText: e,
141
- errorText: o,
142
- leftIcon: n,
149
+ errorText: t,
150
+ leftIcon: a,
143
151
  rightIcon: s,
144
- size: i = "md",
145
- className: c = "",
146
- id: d,
147
- disabled: f,
148
- ...g
149
- }, u) => {
150
- const h = L(), a = d ?? h, w = `${a}-helper`, m = `${a}-error`, N = !!o, E = [N ? m : "", e ? w : ""].filter(Boolean).join(" ") || void 0;
151
- return /* @__PURE__ */ _("div", { className: [k.wrapper, c].filter(Boolean).join(" "), children: [
152
- r && /* @__PURE__ */ t("label", { htmlFor: a, className: k.label, children: r }),
153
- /* @__PURE__ */ _(
152
+ size: d = "md",
153
+ className: l = "",
154
+ id: i,
155
+ disabled: u,
156
+ ...m
157
+ }, _) => {
158
+ const f = L(), n = i ?? f, k = `${n}-helper`, b = `${n}-error`, N = !!t, E = [N ? b : "", e ? k : ""].filter(Boolean).join(" ") || void 0;
159
+ return /* @__PURE__ */ p("div", { className: [y.wrapper, l].filter(Boolean).join(" "), children: [
160
+ o && /* @__PURE__ */ r("label", { htmlFor: n, className: y.label, children: o }),
161
+ /* @__PURE__ */ p(
154
162
  "div",
155
163
  {
156
164
  className: [
157
- k.inputWrapper,
158
- k[i],
159
- N ? k.error : "",
160
- f ? k.disabled : ""
165
+ y.inputWrapper,
166
+ y[d],
167
+ N ? y.error : "",
168
+ u ? y.disabled : ""
161
169
  ].filter(Boolean).join(" "),
162
170
  children: [
163
- n && /* @__PURE__ */ t("span", { className: k.iconLeft, "aria-hidden": "true", children: n }),
164
- /* @__PURE__ */ t(
171
+ a && /* @__PURE__ */ r("span", { className: y.iconLeft, "aria-hidden": "true", children: a }),
172
+ /* @__PURE__ */ r(
165
173
  "input",
166
174
  {
167
- ref: u,
168
- id: a,
169
- className: [k.input, n ? k.hasLeft : "", s ? k.hasRight : ""].filter(Boolean).join(" "),
170
- disabled: f,
175
+ ref: _,
176
+ id: n,
177
+ className: [y.input, a ? y.hasLeft : "", s ? y.hasRight : ""].filter(Boolean).join(" "),
178
+ disabled: u,
171
179
  "aria-invalid": N || void 0,
172
180
  "aria-describedby": E,
173
- ...g
181
+ ...m
174
182
  }
175
183
  ),
176
- s && /* @__PURE__ */ t("span", { className: k.iconRight, "aria-hidden": "true", children: s })
184
+ s && /* @__PURE__ */ r("span", { className: y.iconRight, "aria-hidden": "true", children: s })
177
185
  ]
178
186
  }
179
187
  ),
180
- N ? /* @__PURE__ */ t("p", { id: m, className: k.errorText, role: "alert", children: o }) : e ? /* @__PURE__ */ t("p", { id: w, className: k.helperText, children: e }) : null
188
+ N ? /* @__PURE__ */ r("p", { id: b, className: y.errorText, role: "alert", children: t }) : e ? /* @__PURE__ */ r("p", { id: k, className: y.helperText, children: e }) : null
181
189
  ] });
182
190
  }
183
191
  );
184
192
  He.displayName = "Input";
185
- const Ke = "_wrapper_1566g_3", Je = "_label_1566g_10", Qe = "_textarea_1566g_19", Xe = "_error_1566g_47", Ye = "_disabled_1566g_47", Ze = "_helperText_1566g_82", et = "_errorText_1566g_90", T = {
193
+ const Ke = "_wrapper_1566g_3", Je = "_label_1566g_10", Qe = "_textarea_1566g_19", Xe = "_error_1566g_47", Ye = "_disabled_1566g_47", Ze = "_helperText_1566g_82", er = "_errorText_1566g_90", T = {
186
194
  wrapper: Ke,
187
195
  label: Je,
188
196
  textarea: Qe,
189
197
  error: Xe,
190
198
  disabled: Ye,
191
199
  helperText: Ze,
192
- errorText: et
193
- }, tt = b.forwardRef(
200
+ errorText: er
201
+ }, rr = g.forwardRef(
194
202
  ({
195
- label: r,
203
+ label: o,
196
204
  helperText: e,
197
- errorText: o,
198
- resize: n = "vertical",
205
+ errorText: t,
206
+ resize: a = "vertical",
199
207
  className: s = "",
200
- id: i,
201
- disabled: c,
202
- rows: d = 4,
203
- ...f
204
- }, g) => {
205
- const u = L(), h = i ?? u, a = `${h}-helper`, w = `${h}-error`, m = !!o, N = [m ? w : "", e ? a : ""].filter(Boolean).join(" ") || void 0;
206
- return /* @__PURE__ */ _("div", { className: [T.wrapper, s].filter(Boolean).join(" "), children: [
207
- r && /* @__PURE__ */ t("label", { htmlFor: h, className: T.label, children: r }),
208
- /* @__PURE__ */ t(
208
+ id: d,
209
+ disabled: l,
210
+ rows: i = 4,
211
+ ...u
212
+ }, m) => {
213
+ const _ = L(), f = d ?? _, n = `${f}-helper`, k = `${f}-error`, b = !!t, N = [b ? k : "", e ? n : ""].filter(Boolean).join(" ") || void 0;
214
+ return /* @__PURE__ */ p("div", { className: [T.wrapper, s].filter(Boolean).join(" "), children: [
215
+ o && /* @__PURE__ */ r("label", { htmlFor: f, className: T.label, children: o }),
216
+ /* @__PURE__ */ r(
209
217
  "textarea",
210
218
  {
211
- ref: g,
212
- id: h,
213
- rows: d,
219
+ ref: m,
220
+ id: f,
221
+ rows: i,
214
222
  className: [
215
223
  T.textarea,
216
- m ? T.error : "",
217
- c ? T.disabled : ""
224
+ b ? T.error : "",
225
+ l ? T.disabled : ""
218
226
  ].filter(Boolean).join(" "),
219
- style: { resize: n },
220
- disabled: c,
221
- "aria-invalid": m || void 0,
227
+ style: { resize: a },
228
+ disabled: l,
229
+ "aria-invalid": b || void 0,
222
230
  "aria-describedby": N,
223
- ...f
231
+ ...u
224
232
  }
225
233
  ),
226
- m ? /* @__PURE__ */ t("p", { id: w, className: T.errorText, role: "alert", children: o }) : e ? /* @__PURE__ */ t("p", { id: a, className: T.helperText, children: e }) : null
234
+ b ? /* @__PURE__ */ r("p", { id: k, className: T.errorText, role: "alert", children: t }) : e ? /* @__PURE__ */ r("p", { id: n, className: T.helperText, children: e }) : null
227
235
  ] });
228
236
  }
229
237
  );
230
- tt.displayName = "Textarea";
231
- const ot = "_backdrop_1v4s9_3", rt = "_dialog_1v4s9_17", st = "_sm_1v4s9_37", nt = "_md_1v4s9_38", at = "_lg_1v4s9_39", lt = "_full_1v4s9_40", it = "_closeBtn_1v4s9_50", ct = "_header_1v4s9_92", dt = "_title_1v4s9_97", _t = "_description_1v4s9_107", pt = "_body_1v4s9_117", ut = "_footer_1v4s9_133", $ = {
232
- backdrop: ot,
238
+ rr.displayName = "Textarea";
239
+ const tr = "_backdrop_1v4s9_3", or = "_dialog_1v4s9_17", sr = "_sm_1v4s9_37", ar = "_md_1v4s9_38", nr = "_lg_1v4s9_39", lr = "_full_1v4s9_40", ir = "_closeBtn_1v4s9_50", cr = "_header_1v4s9_92", dr = "_title_1v4s9_97", _r = "_description_1v4s9_107", pr = "_body_1v4s9_117", ur = "_footer_1v4s9_133", $ = {
240
+ backdrop: tr,
233
241
  "pb-backdrop-in": "_pb-backdrop-in_1v4s9_1",
234
- dialog: rt,
242
+ dialog: or,
235
243
  "pb-dialog-in": "_pb-dialog-in_1v4s9_1",
236
- sm: st,
237
- md: nt,
238
- lg: at,
239
- full: lt,
240
- closeBtn: it,
241
- header: ct,
242
- title: dt,
243
- description: _t,
244
- body: pt,
245
- footer: ut
246
- }, ft = ({
247
- isOpen: r,
244
+ sm: sr,
245
+ md: ar,
246
+ lg: nr,
247
+ full: lr,
248
+ closeBtn: ir,
249
+ header: cr,
250
+ title: dr,
251
+ description: _r,
252
+ body: pr,
253
+ footer: ur
254
+ }, hr = ({
255
+ isOpen: o,
248
256
  onClose: e,
249
- title: o,
250
- description: n,
257
+ title: t,
258
+ description: a,
251
259
  size: s = "md",
252
- closeOnBackdrop: i = !0,
253
- children: c,
254
- footer: d,
255
- className: f = ""
260
+ closeOnBackdrop: d = !0,
261
+ children: l,
262
+ footer: i,
263
+ className: u = ""
256
264
  }) => {
257
- const g = L(), u = L(), h = O(null);
265
+ const m = L(), _ = L(), f = O(null);
258
266
  return z(() => {
259
- if (!r) return;
260
- const a = h.current;
261
- if (!a) return;
262
- const w = a.querySelector(
267
+ if (!o) return;
268
+ const n = f.current;
269
+ if (!n) return;
270
+ const k = n.querySelector(
263
271
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
264
272
  );
265
- w ? w.focus() : a.focus();
266
- }, [r]), z(() => {
267
- if (!r) return;
268
- const a = (w) => {
269
- w.key === "Escape" && e();
273
+ k ? k.focus() : n.focus();
274
+ }, [o]), z(() => {
275
+ if (!o) return;
276
+ const n = (k) => {
277
+ k.key === "Escape" && e();
270
278
  };
271
- return document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
272
- }, [r, e]), z(() => (r ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
279
+ return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
280
+ }, [o, e]), z(() => (o ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
273
281
  document.body.style.overflow = "";
274
- }), [r]), r ? le(
275
- /* @__PURE__ */ t(
282
+ }), [o]), o ? le(
283
+ /* @__PURE__ */ r(
276
284
  "div",
277
285
  {
278
286
  className: $.backdrop,
279
- onClick: i ? e : void 0,
287
+ onClick: d ? e : void 0,
280
288
  "aria-hidden": "true",
281
- children: /* @__PURE__ */ _(
289
+ children: /* @__PURE__ */ p(
282
290
  "div",
283
291
  {
284
- ref: h,
292
+ ref: f,
285
293
  role: "dialog",
286
294
  "aria-modal": "true",
287
- "aria-labelledby": o ? g : void 0,
288
- "aria-describedby": n ? u : void 0,
289
- className: [$.dialog, $[s], f].filter(Boolean).join(" "),
295
+ "aria-labelledby": t ? m : void 0,
296
+ "aria-describedby": a ? _ : void 0,
297
+ className: [$.dialog, $[s], u].filter(Boolean).join(" "),
290
298
  tabIndex: -1,
291
- onClick: (a) => a.stopPropagation(),
299
+ onClick: (n) => n.stopPropagation(),
292
300
  children: [
293
- /* @__PURE__ */ t(
301
+ /* @__PURE__ */ r(
294
302
  "button",
295
303
  {
296
304
  className: $.closeBtn,
297
305
  onClick: e,
298
306
  "aria-label": "Close modal",
299
- children: /* @__PURE__ */ t(
307
+ children: /* @__PURE__ */ r(
300
308
  "svg",
301
309
  {
302
310
  width: "18",
@@ -306,17 +314,17 @@ const ot = "_backdrop_1v4s9_3", rt = "_dialog_1v4s9_17", st = "_sm_1v4s9_37", nt
306
314
  stroke: "currentColor",
307
315
  strokeWidth: "2",
308
316
  strokeLinecap: "round",
309
- children: /* @__PURE__ */ t("path", { d: "M18 6 6 18M6 6l12 12" })
317
+ children: /* @__PURE__ */ r("path", { d: "M18 6 6 18M6 6l12 12" })
310
318
  }
311
319
  )
312
320
  }
313
321
  ),
314
- (o || n) && /* @__PURE__ */ _("div", { className: $.header, children: [
315
- o && /* @__PURE__ */ t("h2", { id: g, className: $.title, children: o }),
316
- n && /* @__PURE__ */ t("p", { id: u, className: $.description, children: n })
322
+ (t || a) && /* @__PURE__ */ p("div", { className: $.header, children: [
323
+ t && /* @__PURE__ */ r("h2", { id: m, className: $.title, children: t }),
324
+ a && /* @__PURE__ */ r("p", { id: _, className: $.description, children: a })
317
325
  ] }),
318
- /* @__PURE__ */ t("div", { className: $.body, children: c }),
319
- d && /* @__PURE__ */ t("div", { className: $.footer, children: d })
326
+ /* @__PURE__ */ r("div", { className: $.body, children: l }),
327
+ i && /* @__PURE__ */ r("div", { className: $.footer, children: i })
320
328
  ]
321
329
  }
322
330
  )
@@ -325,49 +333,49 @@ const ot = "_backdrop_1v4s9_3", rt = "_dialog_1v4s9_17", st = "_sm_1v4s9_37", nt
325
333
  document.body
326
334
  ) : null;
327
335
  };
328
- ft.displayName = "Modal";
329
- const ht = "_card_i6i72_3", mt = "_elevated_i6i72_25", bt = "_bordered_i6i72_36", gt = "_flat_i6i72_48", vt = "_hoverable_i6i72_60", kt = "_clickable_i6i72_68", wt = "_header_i6i72_96", yt = "_body_i6i72_105", xt = "_footer_i6i72_112", S = {
330
- card: ht,
336
+ hr.displayName = "Modal";
337
+ const fr = "_card_i6i72_3", mr = "_elevated_i6i72_25", br = "_bordered_i6i72_36", gr = "_flat_i6i72_48", vr = "_hoverable_i6i72_60", yr = "_clickable_i6i72_68", kr = "_header_i6i72_96", wr = "_body_i6i72_105", xr = "_footer_i6i72_112", W = {
338
+ card: fr,
331
339
  default: "_default_i6i72_15",
332
- elevated: mt,
333
- bordered: bt,
334
- flat: gt,
335
- hoverable: vt,
336
- clickable: kt,
337
- header: wt,
338
- body: yt,
339
- footer: xt
340
- }, X = ({ children: r, className: e = "", ...o }) => /* @__PURE__ */ t("div", { className: [S.header, e].filter(Boolean).join(" "), ...o, children: r });
340
+ elevated: mr,
341
+ bordered: br,
342
+ flat: gr,
343
+ hoverable: vr,
344
+ clickable: yr,
345
+ header: kr,
346
+ body: wr,
347
+ footer: xr
348
+ }, X = ({ children: o, className: e = "", ...t }) => /* @__PURE__ */ r("div", { className: [W.header, e].filter(Boolean).join(" "), ...t, children: o });
341
349
  X.displayName = "Card.Header";
342
- const Y = ({ children: r, className: e = "", ...o }) => /* @__PURE__ */ t("div", { className: [S.body, e].filter(Boolean).join(" "), ...o, children: r });
350
+ const Y = ({ children: o, className: e = "", ...t }) => /* @__PURE__ */ r("div", { className: [W.body, e].filter(Boolean).join(" "), ...t, children: o });
343
351
  Y.displayName = "Card.Body";
344
- const Z = ({ children: r, className: e = "", ...o }) => /* @__PURE__ */ t("div", { className: [S.footer, e].filter(Boolean).join(" "), ...o, children: r });
352
+ const Z = ({ children: o, className: e = "", ...t }) => /* @__PURE__ */ r("div", { className: [W.footer, e].filter(Boolean).join(" "), ...t, children: o });
345
353
  Z.displayName = "Card.Footer";
346
- const U = b.forwardRef(
354
+ const U = g.forwardRef(
347
355
  ({
348
- variant: r = "default",
356
+ variant: o = "default",
349
357
  hoverable: e = !1,
350
- clickable: o = !1,
351
- children: n,
358
+ clickable: t = !1,
359
+ children: a,
352
360
  className: s = "",
353
- ...i
354
- }, c) => {
355
- const d = [
356
- S.card,
357
- S[r],
358
- e ? S.hoverable : "",
359
- o ? S.clickable : "",
361
+ ...d
362
+ }, l) => {
363
+ const i = [
364
+ W.card,
365
+ W[o],
366
+ e ? W.hoverable : "",
367
+ t ? W.clickable : "",
360
368
  s
361
369
  ].filter(Boolean).join(" ");
362
- return /* @__PURE__ */ t(
370
+ return /* @__PURE__ */ r(
363
371
  "div",
364
372
  {
365
- ref: c,
366
- className: d,
367
- role: o ? "button" : void 0,
368
- tabIndex: o ? 0 : void 0,
369
- ...i,
370
- children: n
373
+ ref: l,
374
+ className: i,
375
+ role: t ? "button" : void 0,
376
+ tabIndex: t ? 0 : void 0,
377
+ ...d,
378
+ children: a
371
379
  }
372
380
  );
373
381
  }
@@ -376,92 +384,92 @@ U.displayName = "Card";
376
384
  U.Header = X;
377
385
  U.Body = Y;
378
386
  U.Footer = Z;
379
- const Nt = "_badge_1uusg_3", $t = "_sm_1uusg_20", Bt = "_md_1uusg_25", jt = "_dot_1uusg_32", Rt = "_primary_1uusg_56", Lt = "_success_1uusg_63", It = "_warning_1uusg_70", Ct = "_danger_1uusg_77", Tt = "_info_1uusg_84", P = {
380
- badge: Nt,
381
- sm: $t,
382
- md: Bt,
383
- dot: jt,
387
+ const Nr = "_badge_1uusg_3", $r = "_sm_1uusg_20", Br = "_md_1uusg_25", jr = "_dot_1uusg_32", Rr = "_primary_1uusg_56", Lr = "_success_1uusg_63", Ir = "_warning_1uusg_70", Cr = "_danger_1uusg_77", Tr = "_info_1uusg_84", P = {
388
+ badge: Nr,
389
+ sm: $r,
390
+ md: Br,
391
+ dot: jr,
384
392
  default: "_default_1uusg_49",
385
- primary: Rt,
386
- success: Lt,
387
- warning: It,
388
- danger: Ct,
389
- info: Tt
390
- }, St = b.forwardRef(
393
+ primary: Rr,
394
+ success: Lr,
395
+ warning: Ir,
396
+ danger: Cr,
397
+ info: Tr
398
+ }, Wr = g.forwardRef(
391
399
  ({
392
- variant: r = "default",
400
+ variant: o = "default",
393
401
  size: e = "md",
394
- dot: o = !1,
395
- children: n,
402
+ dot: t = !1,
403
+ children: a,
396
404
  className: s = "",
397
- ...i
398
- }, c) => {
399
- const d = [
405
+ ...d
406
+ }, l) => {
407
+ const i = [
400
408
  P.badge,
401
- P[r],
409
+ P[o],
402
410
  P[e],
403
- o ? P.dot : "",
411
+ t ? P.dot : "",
404
412
  s
405
413
  ].filter(Boolean).join(" ");
406
- return /* @__PURE__ */ t("span", { ref: c, className: d, ...i, children: o ? null : n });
414
+ return /* @__PURE__ */ r("span", { ref: l, className: i, ...d, children: t ? null : a });
407
415
  }
408
416
  );
409
- St.displayName = "Badge";
410
- const Wt = "_avatar_n1f99_3", zt = "_xs_n1f99_25", Et = "_sm_n1f99_26", qt = "_md_n1f99_27", At = "_lg_n1f99_28", Dt = "_xl_n1f99_29", Mt = "_image_n1f99_33", Pt = "_initials_n1f99_42", Ft = "_fallbackIcon_n1f99_57", Ot = "_status_n1f99_65", Ut = "_overflow_n1f99_95", Vt = "_group_n1f99_107", y = {
411
- avatar: Wt,
412
- xs: zt,
413
- sm: Et,
414
- md: qt,
415
- lg: At,
416
- xl: Dt,
417
- image: Mt,
418
- initials: Pt,
419
- fallbackIcon: Ft,
420
- status: Ot,
417
+ Wr.displayName = "Badge";
418
+ const Sr = "_avatar_n1f99_3", zr = "_xs_n1f99_25", Er = "_sm_n1f99_26", qr = "_md_n1f99_27", Ar = "_lg_n1f99_28", Dr = "_xl_n1f99_29", Mr = "_image_n1f99_33", Pr = "_initials_n1f99_42", Fr = "_fallbackIcon_n1f99_57", Or = "_status_n1f99_65", Ur = "_overflow_n1f99_95", Vr = "_group_n1f99_107", w = {
419
+ avatar: Sr,
420
+ xs: zr,
421
+ sm: Er,
422
+ md: qr,
423
+ lg: Ar,
424
+ xl: Dr,
425
+ image: Mr,
426
+ initials: Pr,
427
+ fallbackIcon: Fr,
428
+ status: Or,
421
429
  "status-online": "_status-online_n1f99_79",
422
430
  "status-offline": "_status-offline_n1f99_83",
423
431
  "status-busy": "_status-busy_n1f99_84",
424
432
  "status-away": "_status-away_n1f99_88",
425
- overflow: Ut,
426
- group: Vt
433
+ overflow: Ur,
434
+ group: Vr
427
435
  };
428
- function Gt(r) {
429
- const e = r.trim().split(/\s+/);
436
+ function Gr(o) {
437
+ const e = o.trim().split(/\s+/);
430
438
  return e.length === 1 ? e[0].charAt(0).toUpperCase() : (e[0].charAt(0) + e[e.length - 1].charAt(0)).toUpperCase();
431
439
  }
432
- const Ht = b.forwardRef(
433
- ({ src: r, alt: e = "", name: o, size: n = "md", status: s, className: i = "" }, c) => {
434
- const [d, f] = H(!1), g = r && !d, u = o ? Gt(o) : null;
435
- return /* @__PURE__ */ _(
440
+ const Hr = g.forwardRef(
441
+ ({ src: o, alt: e = "", name: t, size: a = "md", status: s, className: d = "" }, l) => {
442
+ const [i, u] = H(!1), m = o && !i, _ = t ? Gr(t) : null;
443
+ return /* @__PURE__ */ p(
436
444
  "div",
437
445
  {
438
- ref: c,
439
- className: [y.avatar, y[n], i].filter(Boolean).join(" "),
440
- "aria-label": o ?? e,
441
- title: o ?? e,
446
+ ref: l,
447
+ className: [w.avatar, w[a], d].filter(Boolean).join(" "),
448
+ "aria-label": t ?? e,
449
+ title: t ?? e,
442
450
  children: [
443
- g ? /* @__PURE__ */ t(
451
+ m ? /* @__PURE__ */ r(
444
452
  "img",
445
453
  {
446
- src: r,
447
- alt: e || o || "",
448
- className: y.image,
449
- onError: () => f(!0)
454
+ src: o,
455
+ alt: e || t || "",
456
+ className: w.image,
457
+ onError: () => u(!0)
450
458
  }
451
- ) : u ? /* @__PURE__ */ t("span", { className: y.initials, "aria-hidden": "true", children: u }) : /* @__PURE__ */ t(
459
+ ) : _ ? /* @__PURE__ */ r("span", { className: w.initials, "aria-hidden": "true", children: _ }) : /* @__PURE__ */ r(
452
460
  "svg",
453
461
  {
454
- className: y.fallbackIcon,
462
+ className: w.fallbackIcon,
455
463
  viewBox: "0 0 24 24",
456
464
  fill: "currentColor",
457
465
  "aria-hidden": "true",
458
- children: /* @__PURE__ */ t("path", { d: "M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5.33 0-8 2.67-8 4v1h16v-1c0-1.33-2.67-4-8-4z" })
466
+ children: /* @__PURE__ */ r("path", { d: "M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5.33 0-8 2.67-8 4v1h16v-1c0-1.33-2.67-4-8-4z" })
459
467
  }
460
468
  ),
461
- s && /* @__PURE__ */ t(
469
+ s && /* @__PURE__ */ r(
462
470
  "span",
463
471
  {
464
- className: [y.status, y[`status-${s}`]].join(" "),
472
+ className: [w.status, w[`status-${s}`]].join(" "),
465
473
  "aria-label": s
466
474
  }
467
475
  )
@@ -470,154 +478,154 @@ const Ht = b.forwardRef(
470
478
  );
471
479
  }
472
480
  );
473
- Ht.displayName = "Avatar";
474
- const Kt = ({
475
- children: r,
481
+ Hr.displayName = "Avatar";
482
+ const Kr = ({
483
+ children: o,
476
484
  max: e,
477
- size: o = "md",
478
- className: n = ""
485
+ size: t = "md",
486
+ className: a = ""
479
487
  }) => {
480
- const s = b.Children.toArray(r), i = e ? s.slice(0, e) : s, c = e && s.length > e ? s.length - e : 0;
481
- return /* @__PURE__ */ _("div", { className: [y.group, n].filter(Boolean).join(" "), children: [
482
- i,
483
- c > 0 && /* @__PURE__ */ t("div", { className: [y.avatar, y[o], y.overflow].join(" "), children: /* @__PURE__ */ _("span", { className: y.initials, children: [
488
+ const s = g.Children.toArray(o), d = e ? s.slice(0, e) : s, l = e && s.length > e ? s.length - e : 0;
489
+ return /* @__PURE__ */ p("div", { className: [w.group, a].filter(Boolean).join(" "), children: [
490
+ d,
491
+ l > 0 && /* @__PURE__ */ r("div", { className: [w.avatar, w[t], w.overflow].join(" "), children: /* @__PURE__ */ p("span", { className: w.initials, children: [
484
492
  "+",
485
- c
493
+ l
486
494
  ] }) })
487
495
  ] });
488
496
  };
489
- Kt.displayName = "AvatarGroup";
490
- const Jt = "_wrapper_4w97v_8", Qt = "_tooltip_4w97v_17", Xt = "_arrow_4w97v_49", Yt = "_top_4w97v_58", Zt = "_bottom_4w97v_77", eo = "_left_4w97v_96", to = "_right_4w97v_115", F = {
491
- wrapper: Jt,
492
- tooltip: Qt,
493
- arrow: Xt,
494
- top: Yt,
495
- bottom: Zt,
496
- left: eo,
497
- right: to
498
- }, oo = ({
499
- content: r,
497
+ Kr.displayName = "AvatarGroup";
498
+ const Jr = "_wrapper_4w97v_8", Qr = "_tooltip_4w97v_17", Xr = "_arrow_4w97v_49", Yr = "_top_4w97v_58", Zr = "_bottom_4w97v_77", et = "_left_4w97v_96", rt = "_right_4w97v_115", F = {
499
+ wrapper: Jr,
500
+ tooltip: Qr,
501
+ arrow: Xr,
502
+ top: Yr,
503
+ bottom: Zr,
504
+ left: et,
505
+ right: rt
506
+ }, tt = ({
507
+ content: o,
500
508
  placement: e = "top",
501
- children: o,
502
- className: n = ""
509
+ children: t,
510
+ className: a = ""
503
511
  }) => {
504
- const s = L(), i = b.cloneElement(o, {
512
+ const s = L(), d = g.cloneElement(t, {
505
513
  "aria-describedby": s
506
514
  });
507
- return /* @__PURE__ */ _("div", { className: [F.wrapper, n].filter(Boolean).join(" "), children: [
508
- i,
509
- /* @__PURE__ */ _(
515
+ return /* @__PURE__ */ p("div", { className: [F.wrapper, a].filter(Boolean).join(" "), children: [
516
+ d,
517
+ /* @__PURE__ */ p(
510
518
  "div",
511
519
  {
512
520
  id: s,
513
521
  role: "tooltip",
514
522
  className: [F.tooltip, F[e]].join(" "),
515
523
  children: [
516
- r,
517
- /* @__PURE__ */ t("span", { className: F.arrow, "aria-hidden": "true" })
524
+ o,
525
+ /* @__PURE__ */ r("span", { className: F.arrow, "aria-hidden": "true" })
518
526
  ]
519
527
  }
520
528
  )
521
529
  ] });
522
530
  };
523
- oo.displayName = "Tooltip";
524
- const ro = "_wrapper_kn5iw_3", so = "_label_kn5iw_12", no = "_triggerWrapper_kn5iw_23", ao = "_trigger_kn5iw_23", lo = "_open_kn5iw_64", io = "_error_kn5iw_71", co = "_disabled_kn5iw_78", _o = "_sm_kn5iw_90", po = "_md_kn5iw_91", uo = "_lg_kn5iw_92", fo = "_triggerValue_kn5iw_96", ho = "_triggerPlaceholder_kn5iw_103", mo = "_chevron_kn5iw_113", bo = "_chevronOpen_kn5iw_124", go = "_dropdown_kn5iw_135", vo = "_option_kn5iw_159", ko = "_optionDisabled_kn5iw_173", wo = "_optionSelected_kn5iw_177", yo = "_optionLabel_kn5iw_192", xo = "_checkmark_kn5iw_196", No = "_helperText_kn5iw_206", $o = "_errorText_kn5iw_214", p = {
525
- wrapper: ro,
526
- label: so,
527
- triggerWrapper: no,
528
- trigger: ao,
529
- open: lo,
530
- error: io,
531
- disabled: co,
532
- sm: _o,
533
- md: po,
534
- lg: uo,
535
- triggerValue: fo,
536
- triggerPlaceholder: ho,
537
- chevron: mo,
538
- chevronOpen: bo,
539
- dropdown: go,
540
- option: vo,
541
- optionDisabled: ko,
542
- optionSelected: wo,
543
- optionLabel: yo,
544
- checkmark: xo,
545
- helperText: No,
546
- errorText: $o
531
+ tt.displayName = "Tooltip";
532
+ const ot = "_wrapper_16rar_3", st = "_label_16rar_12", at = "_triggerWrapper_16rar_23", nt = "_trigger_16rar_23", lt = "_open_16rar_64", it = "_error_16rar_71", ct = "_disabled_16rar_78", dt = "_sm_16rar_90", _t = "_md_16rar_91", pt = "_lg_16rar_92", ut = "_triggerValue_16rar_96", ht = "_triggerPlaceholder_16rar_103", ft = "_chevron_16rar_113", mt = "_chevronOpen_16rar_124", bt = "_dropdown_16rar_135", gt = "_option_16rar_159", vt = "_optionDisabled_16rar_173", yt = "_optionSelected_16rar_177", kt = "_optionLabel_16rar_192", wt = "_checkmark_16rar_196", xt = "_helperText_16rar_206", Nt = "_errorText_16rar_214", h = {
533
+ wrapper: ot,
534
+ label: st,
535
+ triggerWrapper: at,
536
+ trigger: nt,
537
+ open: lt,
538
+ error: it,
539
+ disabled: ct,
540
+ sm: dt,
541
+ md: _t,
542
+ lg: pt,
543
+ triggerValue: ut,
544
+ triggerPlaceholder: ht,
545
+ chevron: ft,
546
+ chevronOpen: mt,
547
+ dropdown: bt,
548
+ option: gt,
549
+ optionDisabled: vt,
550
+ optionSelected: yt,
551
+ optionLabel: kt,
552
+ checkmark: wt,
553
+ helperText: xt,
554
+ errorText: Nt
547
555
  };
548
- function Bo(r) {
549
- return b.Children.toArray(r).filter(
550
- (e) => b.isValidElement(e) && e.type === "option" && !e.props.disabled
556
+ function $t(o) {
557
+ return g.Children.toArray(o).filter(
558
+ (e) => g.isValidElement(e) && e.type === "option" && !e.props.disabled
551
559
  ).map((e) => ({
552
560
  value: String(e.props.value ?? ""),
553
561
  label: String(e.props.children ?? ""),
554
562
  disabled: !!e.props.disabled
555
563
  })).filter((e) => e.value !== "");
556
564
  }
557
- function jo(r) {
558
- const e = b.Children.toArray(r).find(
559
- (o) => b.isValidElement(o) && o.type === "option" && (o.props.value === "" || o.props.value == null) && o.props.disabled
565
+ function Bt(o) {
566
+ const e = g.Children.toArray(o).find(
567
+ (t) => g.isValidElement(t) && t.type === "option" && (t.props.value === "" || t.props.value == null) && t.props.disabled
560
568
  );
561
569
  return e ? String(e.props.children) : void 0;
562
570
  }
563
- const Ro = b.forwardRef(
571
+ const jt = g.forwardRef(
564
572
  ({
565
- label: r,
573
+ label: o,
566
574
  helperText: e,
567
- errorText: o,
568
- placeholder: n,
575
+ errorText: t,
576
+ placeholder: a,
569
577
  size: s = "md",
570
- className: i = "",
571
- id: c,
572
- disabled: d,
573
- value: f,
574
- defaultValue: g,
575
- onChange: u,
576
- children: h
577
- }, a) => {
578
- const w = L(), m = c ?? w, N = `${m}-listbox`, E = `${m}-helper`, K = `${m}-error`, q = !!o, W = Bo(h), ee = n ?? jo(h) ?? "Select…", [B, j] = H(!1), [te, oe] = H(
579
- String(g ?? f ?? "")
580
- ), A = f !== void 0 ? String(f) : te, D = W.find((l) => l.value === A), V = O(null), J = O(null), re = (l) => {
581
- J.current = l, typeof a == "function" ? a(l) : a && (a.current = l);
578
+ className: d = "",
579
+ id: l,
580
+ disabled: i,
581
+ value: u,
582
+ defaultValue: m,
583
+ onChange: _,
584
+ children: f
585
+ }, n) => {
586
+ const k = L(), b = l ?? k, N = `${b}-listbox`, E = `${b}-helper`, K = `${b}-error`, q = !!t, S = $t(f), ee = a ?? Bt(f) ?? "Select…", [B, j] = H(!1), [re, te] = H(
587
+ String(m ?? u ?? "")
588
+ ), A = u !== void 0 ? String(u) : re, D = S.find((c) => c.value === A), V = O(null), J = O(null), oe = (c) => {
589
+ J.current = c, typeof n == "function" ? n(c) : n && (n.current = c);
582
590
  };
583
591
  z(() => {
584
592
  if (!B) return;
585
- const l = (v) => {
593
+ const c = (v) => {
586
594
  V.current && !V.current.contains(v.target) && j(!1);
587
595
  };
588
- return document.addEventListener("pointerdown", l), () => document.removeEventListener("pointerdown", l);
596
+ return document.addEventListener("pointerdown", c), () => document.removeEventListener("pointerdown", c);
589
597
  }, [B]);
590
- const G = ae(
591
- (l) => {
598
+ const G = ne(
599
+ (c) => {
592
600
  var v;
593
- f === void 0 && oe(l), j(!1), (v = J.current) == null || v.focus(), u == null || u({ target: { value: l } });
601
+ u === void 0 && te(c), j(!1), (v = J.current) == null || v.focus(), _ == null || _({ target: { value: c } });
594
602
  },
595
- [f, u]
596
- ), se = (l) => {
597
- if (!d)
598
- switch (l.key) {
603
+ [u, _]
604
+ ), se = (c) => {
605
+ if (!i)
606
+ switch (c.key) {
599
607
  case "Enter":
600
608
  case " ":
601
- l.preventDefault(), j((v) => !v);
609
+ c.preventDefault(), j((v) => !v);
602
610
  break;
603
611
  case "Escape":
604
612
  j(!1);
605
613
  break;
606
614
  case "ArrowDown": {
607
- if (l.preventDefault(), !B) {
615
+ if (c.preventDefault(), !B) {
608
616
  j(!0);
609
617
  break;
610
618
  }
611
- const v = W.findIndex((C) => C.value === A), I = W.slice(v + 1).find((C) => !C.disabled);
619
+ const v = S.findIndex((C) => C.value === A), I = S.slice(v + 1).find((C) => !C.disabled);
612
620
  I && G(I.value);
613
621
  break;
614
622
  }
615
623
  case "ArrowUp": {
616
- if (l.preventDefault(), !B) {
624
+ if (c.preventDefault(), !B) {
617
625
  j(!0);
618
626
  break;
619
627
  }
620
- const v = W.findIndex((C) => C.value === A), I = W.slice(0, v).reverse().find((C) => !C.disabled);
628
+ const v = S.findIndex((C) => C.value === A), I = S.slice(0, v).reverse().find((C) => !C.disabled);
621
629
  I && G(I.value);
622
630
  break;
623
631
  }
@@ -625,41 +633,41 @@ const Ro = b.forwardRef(
625
633
  j(!1);
626
634
  break;
627
635
  }
628
- }, ne = [q ? K : "", e ? E : ""].filter(Boolean).join(" ") || void 0;
629
- return /* @__PURE__ */ _("div", { ref: V, className: [p.wrapper, i].filter(Boolean).join(" "), children: [
630
- r && /* @__PURE__ */ t("label", { id: `${m}-label`, htmlFor: m, className: p.label, children: r }),
631
- /* @__PURE__ */ _("div", { className: p.triggerWrapper, children: [
632
- /* @__PURE__ */ _(
636
+ }, ae = [q ? K : "", e ? E : ""].filter(Boolean).join(" ") || void 0;
637
+ return /* @__PURE__ */ p("div", { ref: V, className: [h.wrapper, d].filter(Boolean).join(" "), children: [
638
+ o && /* @__PURE__ */ r("label", { id: `${b}-label`, htmlFor: b, className: h.label, children: o }),
639
+ /* @__PURE__ */ p("div", { className: h.triggerWrapper, children: [
640
+ /* @__PURE__ */ p(
633
641
  "button",
634
642
  {
635
- ref: re,
643
+ ref: oe,
636
644
  type: "button",
637
- id: m,
645
+ id: b,
638
646
  role: "combobox",
639
647
  "aria-haspopup": "listbox",
640
648
  "aria-expanded": B,
641
649
  "aria-controls": N,
642
- "aria-labelledby": r ? `${m}-label` : void 0,
643
- "aria-describedby": ne,
650
+ "aria-labelledby": o ? `${b}-label` : void 0,
651
+ "aria-describedby": ae,
644
652
  "aria-invalid": q || void 0,
645
- disabled: d,
653
+ disabled: i,
646
654
  className: [
647
- p.trigger,
648
- p[s],
649
- q ? p.error : "",
650
- d ? p.disabled : "",
651
- B ? p.open : ""
655
+ h.trigger,
656
+ h[s],
657
+ q ? h.error : "",
658
+ i ? h.disabled : "",
659
+ B ? h.open : ""
652
660
  ].filter(Boolean).join(" "),
653
- onClick: () => !d && j((l) => !l),
661
+ onClick: () => !i && j((c) => !c),
654
662
  onKeyDown: se,
655
663
  children: [
656
- /* @__PURE__ */ t("span", { className: D ? p.triggerValue : p.triggerPlaceholder, children: (D == null ? void 0 : D.label) ?? ee }),
657
- /* @__PURE__ */ t(
664
+ /* @__PURE__ */ r("span", { className: D ? h.triggerValue : h.triggerPlaceholder, children: (D == null ? void 0 : D.label) ?? ee }),
665
+ /* @__PURE__ */ r(
658
666
  "span",
659
667
  {
660
- className: [p.chevron, B ? p.chevronOpen : ""].filter(Boolean).join(" "),
668
+ className: [h.chevron, B ? h.chevronOpen : ""].filter(Boolean).join(" "),
661
669
  "aria-hidden": "true",
662
- children: /* @__PURE__ */ t(
670
+ children: /* @__PURE__ */ r(
663
671
  "svg",
664
672
  {
665
673
  width: "16",
@@ -670,7 +678,7 @@ const Ro = b.forwardRef(
670
678
  strokeWidth: "2",
671
679
  strokeLinecap: "round",
672
680
  strokeLinejoin: "round",
673
- children: /* @__PURE__ */ t("path", { d: "m6 9 6 6 6-6" })
681
+ children: /* @__PURE__ */ r("path", { d: "m6 9 6 6 6-6" })
674
682
  }
675
683
  )
676
684
  }
@@ -678,32 +686,32 @@ const Ro = b.forwardRef(
678
686
  ]
679
687
  }
680
688
  ),
681
- B && /* @__PURE__ */ t(
689
+ B && /* @__PURE__ */ r(
682
690
  "ul",
683
691
  {
684
692
  id: N,
685
693
  role: "listbox",
686
- "aria-labelledby": r ? `${m}-label` : void 0,
687
- className: p.dropdown,
688
- children: W.map((l) => {
689
- const v = l.value === A;
690
- return /* @__PURE__ */ _(
694
+ "aria-labelledby": o ? `${b}-label` : void 0,
695
+ className: h.dropdown,
696
+ children: S.map((c) => {
697
+ const v = c.value === A;
698
+ return /* @__PURE__ */ p(
691
699
  "li",
692
700
  {
693
701
  role: "option",
694
702
  "aria-selected": v,
695
- "aria-disabled": l.disabled,
703
+ "aria-disabled": c.disabled,
696
704
  className: [
697
- p.option,
698
- v ? p.optionSelected : "",
699
- l.disabled ? p.optionDisabled : ""
705
+ h.option,
706
+ v ? h.optionSelected : "",
707
+ c.disabled ? h.optionDisabled : ""
700
708
  ].filter(Boolean).join(" "),
701
709
  onPointerDown: (I) => {
702
- I.preventDefault(), l.disabled || G(l.value);
710
+ I.preventDefault(), c.disabled || G(c.value);
703
711
  },
704
712
  children: [
705
- /* @__PURE__ */ t("span", { className: p.optionLabel, children: l.label }),
706
- v && /* @__PURE__ */ t("span", { className: p.checkmark, "aria-hidden": "true", children: /* @__PURE__ */ t(
713
+ /* @__PURE__ */ r("span", { className: h.optionLabel, children: c.label }),
714
+ v && /* @__PURE__ */ r("span", { className: h.checkmark, "aria-hidden": "true", children: /* @__PURE__ */ r(
707
715
  "svg",
708
716
  {
709
717
  width: "14",
@@ -714,75 +722,75 @@ const Ro = b.forwardRef(
714
722
  strokeWidth: "2.5",
715
723
  strokeLinecap: "round",
716
724
  strokeLinejoin: "round",
717
- children: /* @__PURE__ */ t("path", { d: "M20 6 9 17l-5-5" })
725
+ children: /* @__PURE__ */ r("path", { d: "M20 6 9 17l-5-5" })
718
726
  }
719
727
  ) })
720
728
  ]
721
729
  },
722
- l.value
730
+ c.value
723
731
  );
724
732
  })
725
733
  }
726
734
  )
727
735
  ] }),
728
- q ? /* @__PURE__ */ t("p", { id: K, className: p.errorText, role: "alert", children: o }) : e ? /* @__PURE__ */ t("p", { id: E, className: p.helperText, children: e }) : null
736
+ q ? /* @__PURE__ */ r("p", { id: K, className: h.errorText, role: "alert", children: t }) : e ? /* @__PURE__ */ r("p", { id: E, className: h.helperText, children: e }) : null
729
737
  ] });
730
738
  }
731
739
  );
732
- Ro.displayName = "Select";
733
- const Lo = "_wrapper_cefjy_3", Io = "_checkboxRow_cefjy_10", Co = "_sm_cefjy_18", To = "_checkboxBox_cefjy_18", So = "_label_cefjy_22", Wo = "_md_cefjy_26", zo = "_checkboxOuter_cefjy_36", Eo = "_input_cefjy_46", qo = "_checkmark_cefjy_142", Ao = "_dash_cefjy_143", Do = "_disabled_cefjy_174", Mo = "_helperText_cefjy_181", x = {
734
- wrapper: Lo,
735
- checkboxRow: Io,
736
- sm: Co,
737
- checkboxBox: To,
738
- label: So,
739
- md: Wo,
740
- checkboxOuter: zo,
741
- input: Eo,
742
- checkmark: qo,
743
- dash: Ao,
744
- disabled: Do,
745
- helperText: Mo
746
- }, Po = b.forwardRef(
740
+ jt.displayName = "Select";
741
+ const Rt = "_wrapper_cefjy_3", Lt = "_checkboxRow_cefjy_10", It = "_sm_cefjy_18", Ct = "_checkboxBox_cefjy_18", Tt = "_label_cefjy_22", Wt = "_md_cefjy_26", St = "_checkboxOuter_cefjy_36", zt = "_input_cefjy_46", Et = "_checkmark_cefjy_142", qt = "_dash_cefjy_143", At = "_disabled_cefjy_174", Dt = "_helperText_cefjy_181", x = {
742
+ wrapper: Rt,
743
+ checkboxRow: Lt,
744
+ sm: It,
745
+ checkboxBox: Ct,
746
+ label: Tt,
747
+ md: Wt,
748
+ checkboxOuter: St,
749
+ input: zt,
750
+ checkmark: Et,
751
+ dash: qt,
752
+ disabled: At,
753
+ helperText: Dt
754
+ }, Mt = g.forwardRef(
747
755
  ({
748
- label: r,
756
+ label: o,
749
757
  indeterminate: e = !1,
750
- size: o = "md",
751
- helperText: n,
758
+ size: t = "md",
759
+ helperText: a,
752
760
  className: s = "",
753
- id: i,
754
- disabled: c,
755
- ...d
756
- }, f) => {
757
- const g = L(), u = i ?? g, h = O(null), a = f ?? h;
761
+ id: d,
762
+ disabled: l,
763
+ ...i
764
+ }, u) => {
765
+ const m = L(), _ = d ?? m, f = O(null), n = u ?? f;
758
766
  return z(() => {
759
- a && "current" in a && a.current && (a.current.indeterminate = e);
760
- }, [e, a]), /* @__PURE__ */ _(
767
+ n && "current" in n && n.current && (n.current.indeterminate = e);
768
+ }, [e, n]), /* @__PURE__ */ p(
761
769
  "div",
762
770
  {
763
- className: [x.wrapper, x[o], c ? x.disabled : "", s].filter(Boolean).join(" "),
771
+ className: [x.wrapper, x[t], l ? x.disabled : "", s].filter(Boolean).join(" "),
764
772
  children: [
765
- /* @__PURE__ */ _("div", { className: x.checkboxRow, children: [
766
- /* @__PURE__ */ _("div", { className: x.checkboxOuter, children: [
767
- /* @__PURE__ */ t(
773
+ /* @__PURE__ */ p("div", { className: x.checkboxRow, children: [
774
+ /* @__PURE__ */ p("div", { className: x.checkboxOuter, children: [
775
+ /* @__PURE__ */ r(
768
776
  "input",
769
777
  {
770
- ref: a,
771
- id: u,
778
+ ref: n,
779
+ id: _,
772
780
  type: "checkbox",
773
781
  className: x.input,
774
- disabled: c,
775
- ...d
782
+ disabled: l,
783
+ ...i
776
784
  }
777
785
  ),
778
- /* @__PURE__ */ _("div", { className: x.checkboxBox, "aria-hidden": "true", children: [
779
- /* @__PURE__ */ t(
786
+ /* @__PURE__ */ p("div", { className: x.checkboxBox, "aria-hidden": "true", children: [
787
+ /* @__PURE__ */ r(
780
788
  "svg",
781
789
  {
782
790
  className: x.checkmark,
783
791
  viewBox: "0 0 12 12",
784
792
  fill: "none",
785
- children: /* @__PURE__ */ t(
793
+ children: /* @__PURE__ */ r(
786
794
  "path",
787
795
  {
788
796
  d: "M2 6l3 3 5-5",
@@ -794,13 +802,13 @@ const Lo = "_wrapper_cefjy_3", Io = "_checkboxRow_cefjy_10", Co = "_sm_cefjy_18"
794
802
  )
795
803
  }
796
804
  ),
797
- /* @__PURE__ */ t(
805
+ /* @__PURE__ */ r(
798
806
  "svg",
799
807
  {
800
808
  className: x.dash,
801
809
  viewBox: "0 0 12 12",
802
810
  fill: "none",
803
- children: /* @__PURE__ */ t(
811
+ children: /* @__PURE__ */ r(
804
812
  "path",
805
813
  {
806
814
  d: "M2.5 6h7",
@@ -813,26 +821,26 @@ const Lo = "_wrapper_cefjy_3", Io = "_checkboxRow_cefjy_10", Co = "_sm_cefjy_18"
813
821
  )
814
822
  ] })
815
823
  ] }),
816
- r && /* @__PURE__ */ t("label", { htmlFor: u, className: x.label, children: r })
824
+ o && /* @__PURE__ */ r("label", { htmlFor: _, className: x.label, children: o })
817
825
  ] }),
818
- n && /* @__PURE__ */ t("p", { className: x.helperText, children: n })
826
+ a && /* @__PURE__ */ r("p", { className: x.helperText, children: a })
819
827
  ]
820
828
  }
821
829
  );
822
830
  }
823
831
  );
824
- Po.displayName = "Checkbox";
832
+ Mt.displayName = "Checkbox";
825
833
  export {
826
- Ht as Avatar,
827
- Kt as AvatarGroup,
828
- St as Badge,
834
+ Hr as Avatar,
835
+ Kr as AvatarGroup,
836
+ Wr as Badge,
829
837
  Ce as Button,
830
838
  U as Card,
831
- Po as Checkbox,
839
+ Mt as Checkbox,
832
840
  He as Input,
833
- ft as Modal,
834
- Ro as Select,
841
+ hr as Modal,
842
+ jt as Select,
835
843
  Q as Spinner,
836
- tt as Textarea,
837
- oo as Tooltip
844
+ rr as Textarea,
845
+ tt as Tooltip
838
846
  };