cattle-care-ui 0.1.21 → 0.1.26

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/index.js CHANGED
@@ -1,48 +1,67 @@
1
1
  "use client";
2
2
  import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import { Fragment as r, createContext as i, createElement as a, forwardRef as o, useContext as s, useEffect as c, useId as l, useLayoutEffect as u, useRef as d, useState as f } from "react";
4
- var p = {
5
- primary: "_primary_12k4r_1",
6
- secondary: "_secondary_12k4r_2",
7
- tertiary: "_tertiary_12k4r_3",
8
- dangerous: "_dangerous_12k4r_4",
9
- sm: "_sm_12k4r_35",
10
- base: "_base_12k4r_41",
11
- icon: "_icon_12k4r_47",
12
- leadingIcon: "_leadingIcon_12k4r_55",
13
- trailingIcon: "_trailingIcon_12k4r_58",
14
- iconOnly: "_iconOnly_12k4r_66",
15
- fullWidth: "_fullWidth_12k4r_76"
3
+ import { Fragment as r, createContext as i, createElement as a, forwardRef as o, useCallback as s, useContext as c, useEffect as l, useId as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
4
+ import { createPortal as h } from "react-dom";
5
+ var g = {
6
+ primary: "_primary_9y79v_1",
7
+ secondary: "_secondary_9y79v_2",
8
+ tertiary: "_tertiary_9y79v_3",
9
+ onDark: "_onDark_9y79v_4",
10
+ dangerous: "_dangerous_9y79v_5",
11
+ xs: "_xs_9y79v_45",
12
+ sm: "_sm_9y79v_51",
13
+ base: "_base_9y79v_57",
14
+ icon: "_icon_9y79v_63",
15
+ leadingIcon: "_leadingIcon_9y79v_71",
16
+ trailingIcon: "_trailingIcon_9y79v_74",
17
+ iconOnly: "_iconOnly_9y79v_82",
18
+ fullWidth: "_fullWidth_9y79v_95",
19
+ link: "_link_9y79v_197",
20
+ underlineHover: "_underlineHover_9y79v_221"
16
21
  };
17
22
  //#endregion
18
23
  //#region src/components/Button.tsx
19
- function m({ variant: e = "primary", size: r = "base", leadingIcon: i, trailingIcon: a, fullWidth: o, children: s, className: c, ref: l, ...u }) {
20
- let d = !s && !!i, f = [
21
- p[e],
22
- p[r],
23
- d && p.iconOnly,
24
- o && p.fullWidth,
25
- c
24
+ function _({ variant: e = "primary", size: r = "base", leadingIcon: i, trailingIcon: a, fullWidth: o, underline: s = "always", children: c, className: l, ref: u, ...d }) {
25
+ if (e === "link") {
26
+ let e = [
27
+ g.link,
28
+ s === "hover" && g.underlineHover,
29
+ l
30
+ ].filter(Boolean).join(" ");
31
+ return /* @__PURE__ */ t("button", {
32
+ ref: u,
33
+ type: "button",
34
+ className: e,
35
+ ...d,
36
+ children: c
37
+ });
38
+ }
39
+ let f = !c && !!i, p = [
40
+ g[e],
41
+ g[r],
42
+ f && g.iconOnly,
43
+ o && g.fullWidth,
44
+ l
26
45
  ].filter(Boolean).join(" ");
27
46
  return /* @__PURE__ */ n("button", {
28
- ref: l,
47
+ ref: u,
29
48
  type: "button",
30
- className: f,
31
- ...u,
49
+ className: p,
50
+ ...d,
32
51
  children: [
33
52
  i && /* @__PURE__ */ t("span", {
34
- className: `${p.icon} ${d ? "" : p.leadingIcon}`.trim(),
53
+ className: `${g.icon} ${f ? "" : g.leadingIcon}`.trim(),
35
54
  children: i
36
55
  }),
37
- s,
56
+ c,
38
57
  a && /* @__PURE__ */ t("span", {
39
- className: `${p.icon} ${p.trailingIcon}`,
58
+ className: `${g.icon} ${g.trailingIcon}`,
40
59
  children: a
41
60
  })
42
61
  ]
43
62
  });
44
63
  }
45
- var h = {
64
+ var v = {
46
65
  wrap: "_wrap_1spnu_1",
47
66
  fluid: "_fluid_1spnu_9",
48
67
  backing: "_backing_1spnu_14",
@@ -54,102 +73,31 @@ var h = {
54
73
  };
55
74
  //#endregion
56
75
  //#region src/components/Card.tsx
57
- function g({ stacked: e, completed: r, interactive: i, draggable: a, dragging: o, fluid: s, children: c, ...l }) {
76
+ function y({ stacked: e, completed: r, interactive: i, draggable: a, dragging: o, fluid: s, children: c, ...l }) {
58
77
  return /* @__PURE__ */ n("div", {
59
- className: `${h.wrap} ${s ? h.fluid : ""}`,
60
- children: [e && /* @__PURE__ */ t("div", { className: `${h.backing} ${r ? h.completed : ""}` }), /* @__PURE__ */ t("div", {
78
+ className: `${v.wrap} ${s ? v.fluid : ""}`,
79
+ children: [e && /* @__PURE__ */ t("div", { className: `${v.backing} ${r ? v.completed : ""}` }), /* @__PURE__ */ t("div", {
61
80
  className: [
62
- h.card,
63
- r ? h.completed : "",
64
- i ? h.interactive : "",
65
- a ? h.grabbable : "",
66
- o ? h.dragging : ""
81
+ v.card,
82
+ r ? v.completed : "",
83
+ i ? v.interactive : "",
84
+ a ? v.grabbable : "",
85
+ o ? v.dragging : ""
67
86
  ].filter(Boolean).join(" "),
68
87
  ...l,
69
88
  children: c
70
89
  })]
71
90
  });
72
91
  }
73
- var _ = {
74
- neutral: "_neutral_1h6kq_1",
75
- pill: "_pill_1h6kq_2",
76
- accent: "_accent_1h6kq_3",
77
- success: "_success_1h6kq_4",
78
- danger: "_danger_1h6kq_5",
79
- count: "_count_1h6kq_6"
80
- };
81
- //#endregion
82
- //#region src/components/Tag.tsx
83
- function v({ variant: e = "neutral", children: n, ...r }) {
84
- return /* @__PURE__ */ t("span", {
85
- className: _[e],
86
- ...r,
87
- children: n
88
- });
89
- }
90
- var y = {
91
- group: "_group_jl3nf_1",
92
- sm: "_sm_jl3nf_9",
93
- chip: "_chip_jl3nf_13",
94
- base: "_base_jl3nf_33",
95
- selected: "_selected_jl3nf_59"
96
- }, b = {
97
- group: "_group_16vyf_1",
98
- groupLabel: "_groupLabel_16vyf_7"
99
- }, x = { label: "_label_10zsm_1" };
100
- //#endregion
101
- //#region src/components/FieldLabel.tsx
102
- function S({ children: e, htmlFor: n, className: r }) {
103
- let i = `${x.label} ${r ?? ""}`.trim();
104
- return n ? /* @__PURE__ */ t("label", {
105
- className: i,
106
- htmlFor: n,
107
- children: e
108
- }) : /* @__PURE__ */ t("span", {
109
- className: i,
110
- children: e
111
- });
112
- }
113
- //#endregion
114
- //#region src/components/TagGroup.tsx
115
- function ee({ items: e, value: r, onChange: i, size: a = "base", disabled: o = !1, label: s, ...c }) {
116
- function l(e) {
117
- i(r.includes(e) ? r.filter((t) => t !== e) : [...r, e]);
118
- }
119
- let u = /* @__PURE__ */ t("div", {
120
- role: "group",
121
- "aria-label": s ? void 0 : c["aria-label"],
122
- className: `${y.group} ${y[a]}`,
123
- children: e.map((e) => {
124
- let n = r.includes(e.value), i = o || e.disabled;
125
- return /* @__PURE__ */ t("button", {
126
- type: "button",
127
- "aria-pressed": n,
128
- disabled: i,
129
- className: [y.chip, n && y.selected].filter(Boolean).join(" "),
130
- onClick: () => !i && l(e.value),
131
- children: e.label
132
- }, e.value);
133
- })
134
- });
135
- return s ? /* @__PURE__ */ n("div", {
136
- className: b.group,
137
- ...c,
138
- children: [/* @__PURE__ */ t(S, {
139
- className: b.groupLabel,
140
- children: s
141
- }), u]
142
- }) : u;
143
- }
144
92
  //#endregion
145
93
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
146
- var C = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
94
+ var b = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
147
95
  //#endregion
148
96
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
149
- function te(e, t, n = []) {
97
+ function x(e, t, n = []) {
150
98
  if (t == null) throw Error("[lucide]: iconNode is required when icon name is used");
151
99
  return {
152
- name: C(e),
100
+ name: b(e),
153
101
  size: 24,
154
102
  node: t,
155
103
  ...n.length > 0 ? { aliases: n } : {}
@@ -157,7 +105,7 @@ function te(e, t, n = []) {
157
105
  }
158
106
  //#endregion
159
107
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
160
- var w = (e) => {
108
+ var ee = (e) => {
161
109
  let t = "", n = !1;
162
110
  for (let r of e) {
163
111
  if (r === "-" || r === "_" || r <= " ") {
@@ -167,10 +115,10 @@ var w = (e) => {
167
115
  t.length === 0 ? t += r.toLowerCase() : t += n ? r.toUpperCase() : r, n = !1;
168
116
  }
169
117
  return t;
170
- }, T = (e) => {
171
- let t = w(e);
118
+ }, S = (e) => {
119
+ let t = ee(e);
172
120
  return t.charAt(0).toUpperCase() + t.slice(1);
173
- }, E = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), D = {
121
+ }, C = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), w = {
174
122
  xmlns: "http://www.w3.org/2000/svg",
175
123
  width: 24,
176
124
  height: 24,
@@ -183,22 +131,22 @@ var w = (e) => {
183
131
  };
184
132
  //#endregion
185
133
  //#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
186
- function O(e) {
134
+ function T(e) {
187
135
  return e != null;
188
136
  }
189
- function k(e, t = {}) {
190
- let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? D.width, a = e.size ?? e.height ?? D.height, o = e.aliases?.filter((e) => typeof e == "string" && e.trim() !== "").map((e) => `lucide-${e}`) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...o], c = t.className?.split(" ").filter(Boolean) ?? [], l = t.includeDefaultClasses === !1 ? E(...c) : E("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? D["stroke-width"]) * Number(e.size ?? e.width ?? D.width) / Number(t.size ?? t.width ?? D.width) : t.strokeWidth ?? D["stroke-width"];
137
+ function E(e, t = {}) {
138
+ let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? w.width, a = e.size ?? e.height ?? w.height, o = e.aliases?.filter((e) => typeof e == "string" && e.trim() !== "").map((e) => `lucide-${e}`) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...o], c = t.className?.split(" ").filter(Boolean) ?? [], l = t.includeDefaultClasses === !1 ? C(...c) : C("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? w["stroke-width"]) * Number(e.size ?? e.width ?? w.width) / Number(t.size ?? t.width ?? w.width) : t.strokeWidth ?? w["stroke-width"];
191
139
  return [
192
140
  "svg",
193
141
  {
194
- ...Object.entries(D).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
142
+ ...Object.entries(w).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
195
143
  ..."color" in t && t.color && { [r("stroke")]: t.color },
196
- ..."size" in t && O(t.size) && {
144
+ ..."size" in t && T(t.size) && {
197
145
  [r("width")]: t.size,
198
146
  [r("height")]: t.size
199
147
  },
200
- ..."width" in t && O(t.width) && { [r("width")]: t.width },
201
- ..."height" in t && O(t.height) && { [r("height")]: t.height },
148
+ ..."width" in t && T(t.width) && { [r("width")]: t.width },
149
+ ..."height" in t && T(t.height) && { [r("height")]: t.height },
202
150
  [r("stroke-width")]: u,
203
151
  ...l && { [r("class")]: l },
204
152
  [r("viewBox")]: `0 0 ${i} ${a}`,
@@ -220,8 +168,8 @@ function k(e, t = {}) {
220
168
  }
221
169
  //#endregion
222
170
  //#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
223
- function A(e, t = {}) {
224
- return k(e, {
171
+ function te(e, t = {}) {
172
+ return E(e, {
225
173
  ...t,
226
174
  attributeNames: {
227
175
  ...t.attributeNames,
@@ -235,44 +183,44 @@ function A(e, t = {}) {
235
183
  }
236
184
  //#endregion
237
185
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
238
- var j = (e) => {
186
+ var D = (e) => {
239
187
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
240
188
  return !1;
241
- }, M = i({}), N = () => s(M), P = o(({ color: e, size: t, width: n, height: r, strokeWidth: i, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
189
+ }, O = i({}), k = () => c(O), A = o(({ color: e, size: t, width: n, height: r, strokeWidth: i, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
242
190
  node: u,
243
191
  aliases: [],
244
192
  size: 24
245
193
  }, ...f }, p) => {
246
- let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = N() ?? {}, b = !!l || j(f), [x, S, ee = []] = A(d, {
194
+ let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = k() ?? {}, b = !!l || D(f), [x, ee, S = []] = te(d, {
247
195
  color: e ?? v,
248
196
  width: n ?? t ?? m,
249
197
  height: r ?? t ?? m,
250
198
  strokeWidth: i ?? h,
251
199
  absoluteStrokeWidth: o ?? g,
252
200
  nonScalingStroke: s ?? _,
253
- className: E(y, c),
201
+ className: C(y, c),
254
202
  hasA11yProp: b,
255
203
  attributes: f
256
204
  });
257
205
  return a(x, {
258
206
  ref: p,
259
- ...S
260
- }, [...ee.map(([e, t]) => a(e, t)), ...Array.isArray(l) ? l : [l]]);
207
+ ...ee
208
+ }, [...S.map(([e, t]) => a(e, t)), ...Array.isArray(l) ? l : [l]]);
261
209
  });
262
210
  //#endregion
263
211
  //#region node_modules/lucide-react/dist/esm/createLucideIcon.mjs
264
- function F(e, t = [], n = []) {
265
- let r = typeof e == "string" ? te(e, t, n) : e, i = o(({ className: e, ...t }, n) => a(P, {
212
+ function j(e, t = [], n = []) {
213
+ let r = typeof e == "string" ? x(e, t, n) : e, i = o(({ className: e, ...t }, n) => a(A, {
266
214
  ref: n,
267
215
  icon: r,
268
216
  className: e,
269
217
  ...t
270
218
  }));
271
- return r.name && (i.displayName = T(r.name)), i;
219
+ return r.name && (i.displayName = S(r.name)), i;
272
220
  }
273
221
  //#endregion
274
222
  //#region node_modules/lucide-react/dist/esm/icons/check.mjs
275
- var I = {
223
+ var M = {
276
224
  name: "check",
277
225
  size: 24,
278
226
  node: [["path", {
@@ -280,8 +228,8 @@ var I = {
280
228
  key: "1gmf2c"
281
229
  }]]
282
230
  };
283
- I.node;
284
- var ne = F(I), L = {
231
+ M.node;
232
+ var N = j(M), ne = {
285
233
  name: "chevron-down",
286
234
  size: 24,
287
235
  node: [["path", {
@@ -289,8 +237,26 @@ var ne = F(I), L = {
289
237
  key: "qrunsl"
290
238
  }]]
291
239
  };
240
+ ne.node;
241
+ var P = j(ne), F = {
242
+ name: "chevron-left",
243
+ size: 24,
244
+ node: [["path", {
245
+ d: "m15 18-6-6 6-6",
246
+ key: "1wnfg3"
247
+ }]]
248
+ };
249
+ F.node;
250
+ var I = j(F), L = {
251
+ name: "chevron-right",
252
+ size: 24,
253
+ node: [["path", {
254
+ d: "m9 18 6-6-6-6",
255
+ key: "mthhwq"
256
+ }]]
257
+ };
292
258
  L.node;
293
- var re = F(L), R = {
259
+ var R = j(L), z = {
294
260
  name: "eye-off",
295
261
  size: 24,
296
262
  node: [
@@ -312,8 +278,8 @@ var re = F(L), R = {
312
278
  }]
313
279
  ]
314
280
  };
315
- R.node;
316
- var z = F(R), B = {
281
+ z.node;
282
+ var re = j(z), ie = {
317
283
  name: "eye",
318
284
  size: 24,
319
285
  node: [["path", {
@@ -326,8 +292,8 @@ var z = F(R), B = {
326
292
  key: "1v7zrd"
327
293
  }]]
328
294
  };
329
- B.node;
330
- var ie = F(B), V = {
295
+ ie.node;
296
+ var ae = j(ie), oe = {
331
297
  name: "search",
332
298
  size: 24,
333
299
  node: [["path", {
@@ -340,8 +306,150 @@ var ie = F(B), V = {
340
306
  key: "4ej97u"
341
307
  }]]
342
308
  };
343
- V.node;
344
- var ae = F(V), H = {
309
+ oe.node;
310
+ var se = j(oe), ce = {
311
+ name: "x",
312
+ size: 24,
313
+ node: [["path", {
314
+ d: "M18 6 6 18",
315
+ key: "1bl5f8"
316
+ }], ["path", {
317
+ d: "m6 6 12 12",
318
+ key: "d8bk6v"
319
+ }]]
320
+ };
321
+ ce.node;
322
+ var B = j(ce), V = {
323
+ neutral: "_neutral_kgxl4_1",
324
+ pill: "_pill_kgxl4_2",
325
+ accent: "_accent_kgxl4_3",
326
+ success: "_success_kgxl4_4",
327
+ warning: "_warning_kgxl4_5",
328
+ danger: "_danger_kgxl4_6",
329
+ count: "_count_kgxl4_7",
330
+ chip: "_chip_kgxl4_8",
331
+ pressed: "_pressed_kgxl4_34",
332
+ slots: "_slots_kgxl4_100",
333
+ leading: "_leading_kgxl4_104",
334
+ interactive: "_interactive_kgxl4_110",
335
+ button: "_button_kgxl4_120",
336
+ disabled: "_disabled_kgxl4_132",
337
+ main: "_main_kgxl4_161",
338
+ remove: "_remove_kgxl4_162",
339
+ removable: "_removable_kgxl4_179"
340
+ }, le = {
341
+ chip: "_chip_uk2l3_3",
342
+ disabled: "_disabled_uk2l3_12",
343
+ selected: "_selected_uk2l3_25"
344
+ };
345
+ //#endregion
346
+ //#region src/components/Tag.tsx
347
+ function H(...e) {
348
+ return e.filter(Boolean).join(" ");
349
+ }
350
+ function U(r) {
351
+ if (r.variant === "count") {
352
+ let { variant: e, children: n, ...i } = r;
353
+ return /* @__PURE__ */ t("span", {
354
+ className: V[e],
355
+ ...i,
356
+ children: n
357
+ });
358
+ }
359
+ let { variant: i = "neutral", children: a, onClick: o, pressed: s, disabled: c, leading: l, onRemove: u, removeLabel: d, ...f } = r, p = !!o, m = !!u, h = i === "chip", g = p && s === !0, _ = H(V[i], h && le.chip, h && g && le.selected, h && c && le.disabled, (p || m) && V.interactive, g && V.pressed, c && V.disabled, (l != null || m) && V.slots), v = /* @__PURE__ */ n(e, { children: [l != null && /* @__PURE__ */ t("span", {
360
+ className: V.leading,
361
+ children: l
362
+ }), a] });
363
+ return m ? /* @__PURE__ */ n("span", {
364
+ className: H(_, V.removable),
365
+ ...f,
366
+ children: [p ? /* @__PURE__ */ t("button", {
367
+ type: "button",
368
+ className: H(V.main, V.slots),
369
+ "aria-pressed": s,
370
+ disabled: c,
371
+ onClick: o,
372
+ children: v
373
+ }) : v, /* @__PURE__ */ t("button", {
374
+ type: "button",
375
+ className: V.remove,
376
+ "aria-label": d,
377
+ disabled: c,
378
+ onClick: () => u(),
379
+ children: /* @__PURE__ */ t(B, {
380
+ size: 12,
381
+ "aria-hidden": "true"
382
+ })
383
+ })]
384
+ }) : p ? /* @__PURE__ */ t("button", {
385
+ type: "button",
386
+ className: H(_, V.button),
387
+ "aria-pressed": s,
388
+ disabled: c,
389
+ onClick: o,
390
+ ...f,
391
+ children: v
392
+ }) : /* @__PURE__ */ t("span", {
393
+ className: _,
394
+ ...f,
395
+ children: v
396
+ });
397
+ }
398
+ var W = {
399
+ group: "_group_1s11w_1",
400
+ sm: "_sm_1s11w_9",
401
+ chip: "_chip_1s11w_13 _chip_uk2l3_3",
402
+ base: "_base_1s11w_28",
403
+ selected: "_selected_1s11w_44 _selected_uk2l3_25"
404
+ }, G = {
405
+ group: "_group_16vyf_1",
406
+ groupLabel: "_groupLabel_16vyf_7"
407
+ }, ue = { label: "_label_10zsm_1" };
408
+ //#endregion
409
+ //#region src/components/FieldLabel.tsx
410
+ function K({ children: e, htmlFor: n, className: r }) {
411
+ let i = `${ue.label} ${r ?? ""}`.trim();
412
+ return n ? /* @__PURE__ */ t("label", {
413
+ className: i,
414
+ htmlFor: n,
415
+ children: e
416
+ }) : /* @__PURE__ */ t("span", {
417
+ className: i,
418
+ children: e
419
+ });
420
+ }
421
+ //#endregion
422
+ //#region src/components/TagGroup.tsx
423
+ function de({ items: e, value: r, onChange: i, size: a = "base", disabled: o = !1, label: s, ...c }) {
424
+ function l(e) {
425
+ i(r.includes(e) ? r.filter((t) => t !== e) : [...r, e]);
426
+ }
427
+ let u = /* @__PURE__ */ t("div", {
428
+ role: "group",
429
+ "aria-label": s ? void 0 : c["aria-label"],
430
+ className: `${W.group} ${W[a]}`,
431
+ children: e.map((e) => {
432
+ let n = r.includes(e.value), i = o || e.disabled;
433
+ return /* @__PURE__ */ t("button", {
434
+ type: "button",
435
+ "aria-pressed": n,
436
+ disabled: i,
437
+ className: [W.chip, n && W.selected].filter(Boolean).join(" "),
438
+ onClick: () => !i && l(e.value),
439
+ children: e.label
440
+ }, e.value);
441
+ })
442
+ });
443
+ return s ? /* @__PURE__ */ n("div", {
444
+ className: G.group,
445
+ ...c,
446
+ children: [/* @__PURE__ */ t(K, {
447
+ className: G.groupLabel,
448
+ children: s
449
+ }), u]
450
+ }) : u;
451
+ }
452
+ var fe = {
345
453
  toolbar: "_toolbar_1s82l_1",
346
454
  searchWrap: "_searchWrap_1s82l_14",
347
455
  searchIcon: "_searchIcon_1s82l_33",
@@ -351,62 +459,63 @@ var ae = F(V), H = {
351
459
  };
352
460
  //#endregion
353
461
  //#region src/components/Toolbar.tsx
354
- function oe({ searchValue: e, onSearchChange: r, placeholder: i = "Search…", shortcutLabel: a = "⌘K", shortcutKey: o = "k", children: s }) {
355
- let l = d(null);
356
- return c(() => {
462
+ function pe({ searchValue: e, onSearchChange: r, placeholder: i = "Search…", shortcutLabel: a = "⌘K", shortcutKey: o = "k", children: s }) {
463
+ let c = p(null);
464
+ return l(() => {
357
465
  function e(e) {
358
- (e.metaKey || e.ctrlKey) && e.key.toLowerCase() === o.toLowerCase() && (e.preventDefault(), l.current?.focus());
466
+ (e.metaKey || e.ctrlKey) && e.key.toLowerCase() === o.toLowerCase() && (e.preventDefault(), c.current?.focus());
359
467
  }
360
468
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
361
469
  }, [o]), /* @__PURE__ */ n("div", {
362
- className: H.toolbar,
470
+ className: fe.toolbar,
363
471
  children: [/* @__PURE__ */ n("div", {
364
- className: H.searchWrap,
472
+ className: fe.searchWrap,
365
473
  children: [
366
474
  /* @__PURE__ */ t("span", {
367
- className: H.searchIcon,
368
- children: /* @__PURE__ */ t(ae, {})
475
+ className: fe.searchIcon,
476
+ children: /* @__PURE__ */ t(se, {})
369
477
  }),
370
478
  /* @__PURE__ */ t("input", {
371
- ref: l,
479
+ ref: c,
372
480
  type: "text",
373
- className: H.search,
481
+ className: fe.search,
374
482
  placeholder: i,
375
483
  autoComplete: "off",
376
484
  value: e,
377
485
  onChange: (e) => r?.(e.target.value)
378
486
  }),
379
487
  a && /* @__PURE__ */ t("span", {
380
- className: H.searchShortcut,
488
+ className: fe.searchShortcut,
381
489
  "aria-hidden": "true",
382
490
  children: a
383
491
  })
384
492
  ]
385
493
  }), s && /* @__PURE__ */ t("div", {
386
- className: H.controls,
494
+ className: fe.controls,
387
495
  children: s
388
496
  })]
389
497
  });
390
498
  }
391
- var U = {
392
- checkbox: "_checkbox_54v1q_1",
393
- control: "_control_54v1q_8",
394
- labelText: "_labelText_54v1q_17",
395
- input: "_input_54v1q_25",
396
- box: "_box_54v1q_32",
397
- icon: "_icon_54v1q_63"
499
+ var q = {
500
+ checkbox: "_checkbox_fknu2_1",
501
+ control: "_control_fknu2_8",
502
+ labelText: "_labelText_fknu2_17",
503
+ input: "_input_fknu2_25",
504
+ box: "_box_fknu2_32",
505
+ icon: "_icon_fknu2_63",
506
+ indicator: "_indicator_fknu2_99"
398
507
  };
399
508
  //#endregion
400
509
  //#region src/components/Checkbox.tsx
401
- function W({ checked: e, onChange: r, onBlur: i, name: a, label: o, ariaLabel: s, disabled: c, className: l, ref: u }) {
510
+ function me({ checked: e, onChange: r, onBlur: i, name: a, label: o, ariaLabel: s, disabled: c, className: l, ref: u }) {
402
511
  return /* @__PURE__ */ n("label", {
403
- className: `${U.checkbox} ${l ?? ""}`,
512
+ className: `${q.checkbox} ${l ?? ""}`,
404
513
  children: [/* @__PURE__ */ n("span", {
405
- className: U.control,
514
+ className: q.control,
406
515
  children: [/* @__PURE__ */ t("input", {
407
516
  ref: u,
408
517
  type: "checkbox",
409
- className: U.input,
518
+ className: q.input,
410
519
  checked: e,
411
520
  onChange: r,
412
521
  onBlur: i,
@@ -414,32 +523,46 @@ function W({ checked: e, onChange: r, onBlur: i, name: a, label: o, ariaLabel: s
414
523
  "aria-label": s,
415
524
  disabled: c
416
525
  }), /* @__PURE__ */ t("span", {
417
- className: U.box,
526
+ className: q.box,
418
527
  children: /* @__PURE__ */ t("svg", {
419
- className: U.icon,
528
+ className: q.icon,
420
529
  viewBox: "0 0 17 18",
421
530
  "aria-hidden": "true",
422
531
  children: /* @__PURE__ */ t("polyline", { points: "1 9 7 14 15 4" })
423
532
  })
424
533
  })]
425
534
  }), o && /* @__PURE__ */ t("span", {
426
- className: U.labelText,
535
+ className: q.labelText,
427
536
  children: o
428
537
  })]
429
538
  });
430
539
  }
431
- function se({ label: e, items: r, value: i, onChange: a, disabled: o, ...s }) {
540
+ function he({ checked: e, disabled: n }) {
541
+ return /* @__PURE__ */ t("span", {
542
+ className: `${q.box} ${q.indicator}`,
543
+ "data-checked": e,
544
+ "data-disabled": n || void 0,
545
+ "aria-hidden": "true",
546
+ children: /* @__PURE__ */ t("svg", {
547
+ className: q.icon,
548
+ viewBox: "0 0 17 18",
549
+ "aria-hidden": "true",
550
+ children: /* @__PURE__ */ t("polyline", { points: "1 9 7 14 15 4" })
551
+ })
552
+ });
553
+ }
554
+ function ge({ label: e, items: r, value: i, onChange: a, disabled: o, ...s }) {
432
555
  function c(e) {
433
556
  a(i.includes(e) ? i.filter((t) => t !== e) : [...i, e]);
434
557
  }
435
558
  return /* @__PURE__ */ n("div", {
436
559
  role: "group",
437
560
  "aria-label": e ? void 0 : s["aria-label"],
438
- className: b.group,
439
- children: [e && /* @__PURE__ */ t(S, {
440
- className: b.groupLabel,
561
+ className: G.group,
562
+ children: [e && /* @__PURE__ */ t(K, {
563
+ className: G.groupLabel,
441
564
  children: e
442
- }), r.map((e) => /* @__PURE__ */ t(W, {
565
+ }), r.map((e) => /* @__PURE__ */ t(me, {
443
566
  checked: i.includes(e.value),
444
567
  onChange: () => c(e.value),
445
568
  label: e.label,
@@ -447,25 +570,25 @@ function se({ label: e, items: r, value: i, onChange: a, disabled: o, ...s }) {
447
570
  }, e.value))]
448
571
  });
449
572
  }
450
- var G = {
451
- radio: "_radio_wj7kb_1",
452
- control: "_control_wj7kb_8",
453
- labelText: "_labelText_wj7kb_17",
454
- input: "_input_wj7kb_25",
455
- circle: "_circle_wj7kb_32",
456
- dot: "_dot_wj7kb_63"
573
+ var _e = {
574
+ radio: "_radio_46a3j_1",
575
+ control: "_control_46a3j_8",
576
+ labelText: "_labelText_46a3j_17",
577
+ input: "_input_46a3j_25",
578
+ circle: "_circle_46a3j_32",
579
+ dot: "_dot_46a3j_63"
457
580
  };
458
581
  //#endregion
459
582
  //#region src/components/RadioButton.tsx
460
- function ce({ checked: e, onChange: r, onBlur: i, name: a, value: o, label: s, ariaLabel: c, disabled: l, className: u, ref: d }) {
583
+ function ve({ checked: e, onChange: r, onBlur: i, name: a, value: o, label: s, ariaLabel: c, disabled: l, className: u, ref: d }) {
461
584
  return /* @__PURE__ */ n("label", {
462
- className: `${G.radio} ${u ?? ""}`,
585
+ className: `${_e.radio} ${u ?? ""}`,
463
586
  children: [/* @__PURE__ */ n("span", {
464
- className: G.control,
587
+ className: _e.control,
465
588
  children: [/* @__PURE__ */ t("input", {
466
589
  ref: d,
467
590
  type: "radio",
468
- className: G.input,
591
+ className: _e.input,
469
592
  checked: e,
470
593
  onChange: r,
471
594
  onBlur: i,
@@ -474,24 +597,24 @@ function ce({ checked: e, onChange: r, onBlur: i, name: a, value: o, label: s, a
474
597
  "aria-label": c,
475
598
  disabled: l
476
599
  }), /* @__PURE__ */ t("span", {
477
- className: G.circle,
478
- children: /* @__PURE__ */ t("span", { className: G.dot })
600
+ className: _e.circle,
601
+ children: /* @__PURE__ */ t("span", { className: _e.dot })
479
602
  })]
480
603
  }), s && /* @__PURE__ */ t("span", {
481
- className: G.labelText,
604
+ className: _e.labelText,
482
605
  children: s
483
606
  })]
484
607
  });
485
608
  }
486
- function le({ label: e, name: r, items: i, value: a, onChange: o, disabled: s, ...c }) {
609
+ function ye({ label: e, name: r, items: i, value: a, onChange: o, disabled: s, ...c }) {
487
610
  return /* @__PURE__ */ n("div", {
488
611
  role: "radiogroup",
489
612
  "aria-label": e ? void 0 : c["aria-label"],
490
- className: b.group,
491
- children: [e && /* @__PURE__ */ t(S, {
492
- className: b.groupLabel,
613
+ className: G.group,
614
+ children: [e && /* @__PURE__ */ t(K, {
615
+ className: G.groupLabel,
493
616
  children: e
494
- }), i.map((e) => /* @__PURE__ */ t(ce, {
617
+ }), i.map((e) => /* @__PURE__ */ t(ve, {
495
618
  name: r,
496
619
  value: e.value,
497
620
  checked: a === e.value,
@@ -501,125 +624,237 @@ function le({ label: e, name: r, items: i, value: a, onChange: o, disabled: s, .
501
624
  }, e.value))]
502
625
  });
503
626
  }
504
- var K = {
505
- switch: "_switch_1uo9k_1",
506
- input: "_input_1uo9k_7",
507
- control: "_control_1uo9k_10",
508
- track: "_track_1uo9k_26",
509
- thumb: "_thumb_1uo9k_52",
510
- sm: "_sm_1uo9k_65",
511
- base: "_base_1uo9k_74",
512
- labelText: "_labelText_1uo9k_84"
627
+ var be = {
628
+ switch: "_switch_2mkka_1",
629
+ input: "_input_2mkka_7",
630
+ control: "_control_2mkka_10",
631
+ track: "_track_2mkka_26",
632
+ thumb: "_thumb_2mkka_52",
633
+ sm: "_sm_2mkka_65",
634
+ base: "_base_2mkka_74",
635
+ labelText: "_labelText_2mkka_84"
513
636
  };
514
637
  //#endregion
515
638
  //#region src/components/Switch.tsx
516
- function ue({ checked: e, onChange: r, size: i = "base", label: a, ariaLabel: o, disabled: s, className: c }) {
639
+ function xe({ checked: e, onChange: r, size: i = "base", label: a, ariaLabel: o, disabled: s, className: c }) {
517
640
  return /* @__PURE__ */ n("label", {
518
- className: `${K.switch} ${c ?? ""}`,
641
+ className: `${be.switch} ${c ?? ""}`,
519
642
  children: [/* @__PURE__ */ n("span", {
520
- className: `${K.control} ${K[i]}`,
643
+ className: `${be.control} ${be[i]}`,
521
644
  children: [/* @__PURE__ */ t("input", {
522
645
  type: "checkbox",
523
646
  role: "switch",
524
- className: K.input,
647
+ className: be.input,
525
648
  checked: e,
526
649
  onChange: r,
527
650
  "aria-label": o,
528
651
  disabled: s
529
652
  }), /* @__PURE__ */ t("span", {
530
- className: K.track,
531
- children: /* @__PURE__ */ t("span", { className: K.thumb })
653
+ className: be.track,
654
+ children: /* @__PURE__ */ t("span", { className: be.thumb })
532
655
  })]
533
656
  }), a && /* @__PURE__ */ t("span", {
534
- className: K.labelText,
657
+ className: be.labelText,
535
658
  children: a
536
659
  })]
537
660
  });
538
661
  }
539
- var q = {
540
- field: "_field_p41tk_1",
541
- inputWrap: "_inputWrap_p41tk_6",
542
- errorWrap: "_errorWrap_p41tk_19",
543
- input: "_input_p41tk_6",
544
- toolbar: "_toolbar_p41tk_27",
545
- sm: "_sm_p41tk_57",
546
- base: "_base_p41tk_65",
547
- icon: "_icon_p41tk_73",
548
- helperText: "_helperText_p41tk_111",
549
- errorText: "_errorText_p41tk_116",
550
- trailing: "_trailing_p41tk_120",
551
- pickerInput: "_pickerInput_p41tk_151"
662
+ var J = {
663
+ field: "_field_t8ugp_1",
664
+ inputWrap: "_inputWrap_t8ugp_6",
665
+ input: "_input_t8ugp_6",
666
+ toolbar: "_toolbar_t8ugp_14",
667
+ errorWrap: "_errorWrap_t8ugp_24",
668
+ sm: "_sm_t8ugp_71",
669
+ base: "_base_t8ugp_79",
670
+ icon: "_icon_t8ugp_87",
671
+ helperText: "_helperText_t8ugp_125",
672
+ errorText: "_errorText_t8ugp_130",
673
+ trailing: "_trailing_t8ugp_134",
674
+ pickerInput: "_pickerInput_t8ugp_165"
552
675
  };
553
676
  //#endregion
554
677
  //#region src/components/TextField.tsx
555
- function de({ label: e, helperText: r, error: i, size: a = "base", variant: o = "default", leadingIcon: s, id: c, className: u, ref: d, ...f }) {
556
- let p = l(), m = c ?? p;
678
+ function Se({ label: e, helperText: r, error: i, size: a = "base", variant: o = "default", leadingIcon: s, id: c, className: l, ref: d, ...f }) {
679
+ let p = u(), m = c ?? p;
557
680
  return /* @__PURE__ */ n("div", {
558
- className: [q.field, u].filter(Boolean).join(" "),
681
+ className: [J.field, l].filter(Boolean).join(" "),
559
682
  children: [
560
- e && /* @__PURE__ */ t(S, {
683
+ e && /* @__PURE__ */ t(K, {
561
684
  htmlFor: m,
562
685
  children: e
563
686
  }),
564
687
  /* @__PURE__ */ n("div", {
565
- className: `${q.inputWrap} ${q[o]} ${q[a]} ${i ? q.errorWrap : ""}`,
688
+ className: `${J.inputWrap} ${J[o]} ${J[a]} ${i ? J.errorWrap : ""}`,
566
689
  children: [s && /* @__PURE__ */ t("span", {
567
- className: q.icon,
690
+ className: J.icon,
568
691
  children: s
569
692
  }), /* @__PURE__ */ t("input", {
570
693
  ref: d,
571
694
  id: m,
572
- className: q.input,
695
+ className: J.input,
573
696
  ...f
574
697
  })]
575
698
  }),
576
699
  i ? /* @__PURE__ */ t("span", {
577
- className: q.errorText,
700
+ className: J.errorText,
578
701
  children: i
579
702
  }) : r ? /* @__PURE__ */ t("span", {
580
- className: q.helperText,
703
+ className: J.helperText,
581
704
  children: r
582
705
  }) : null
583
706
  ]
584
707
  });
585
708
  }
709
+ var Y = {
710
+ field: "_field_fz8o2_3",
711
+ wrap: "_wrap_fz8o2_1",
712
+ readOnly: "_readOnly_fz8o2_14",
713
+ errorWrap: "_errorWrap_fz8o2_1",
714
+ disabled: "_disabled_fz8o2_1",
715
+ sm: "_sm_fz8o2_27",
716
+ textarea: "_textarea_fz8o2_30",
717
+ base: "_base_fz8o2_33",
718
+ "resize-none": "_resize-none_fz8o2_66",
719
+ "resize-vertical": "_resize-vertical_fz8o2_69",
720
+ footer: "_footer_fz8o2_73",
721
+ helperText: "_helperText_fz8o2_78",
722
+ errorText: "_errorText_fz8o2_83",
723
+ count: "_count_fz8o2_87",
724
+ countNear: "_countNear_fz8o2_93",
725
+ countLimit: "_countLimit_fz8o2_96"
726
+ };
727
+ //#endregion
728
+ //#region src/components/TextArea.tsx
729
+ function Ce(e, t) {
730
+ typeof e == "function" ? e(t) : e && (e.current = t);
731
+ }
732
+ function we({ label: e, helperText: r, error: i, size: a = "base", resize: o = "vertical", autoResize: c = !1, maxRows: l = 8, showCount: f = !1, id: h, className: g, ref: _, rows: v = 3, value: y, defaultValue: b, maxLength: x, disabled: ee, readOnly: S, onChange: C, onInput: w, "aria-describedby": T, ...E }) {
733
+ let te = u(), D = h ?? te, O = p(null), k = y !== void 0, [A, j] = m(() => String(b ?? "").length), M = k ? String(y).length : A, N = s(() => {
734
+ let e = O.current;
735
+ if (!e || !c) return;
736
+ let t = getComputedStyle(e), n = parseFloat(t.fontSize) || 14, r = parseFloat(t.lineHeight) || n * 1.4, i = (parseFloat(t.paddingTop) || 0) + (parseFloat(t.paddingBottom) || 0), a = r * l + i;
737
+ e.style.height = "auto";
738
+ let o = Math.min(e.scrollHeight, a);
739
+ e.style.height = `${o}px`, e.style.overflowY = e.scrollHeight > a ? "auto" : "hidden";
740
+ }, [c, l]);
741
+ d(() => {
742
+ N();
743
+ }, [
744
+ N,
745
+ y,
746
+ v,
747
+ a
748
+ ]), d(() => {
749
+ let e = O.current;
750
+ if (!c || !e || typeof ResizeObserver > "u") return;
751
+ let t = e.clientWidth, n = new ResizeObserver(() => {
752
+ e.clientWidth !== t && (t = e.clientWidth, N());
753
+ });
754
+ return n.observe(e), () => n.disconnect();
755
+ }, [c, N]), d(() => {
756
+ let e = O.current;
757
+ !c && e && (e.style.height = "", e.style.overflowY = "");
758
+ }, [c]);
759
+ let ne = (e) => {
760
+ k || j(e.target.value.length), C?.(e);
761
+ }, P = (e) => {
762
+ k || (j(e.currentTarget.value.length), N()), w?.(e);
763
+ }, F = `${D}-helper`, I = `${D}-error`, L = `${D}-count`, R = [
764
+ T,
765
+ i ? I : r ? F : null,
766
+ f ? L : null
767
+ ].filter(Boolean).join(" ") || void 0, z = x ? M / x : 0, re = z >= 1 ? Y.countLimit : z >= .9 ? Y.countNear : "", ie = [
768
+ Y.wrap,
769
+ Y[a],
770
+ i ? Y.errorWrap : "",
771
+ ee ? Y.disabled : "",
772
+ S ? Y.readOnly : ""
773
+ ].filter(Boolean).join(" "), ae = c ? "none" : o;
774
+ return /* @__PURE__ */ n("div", {
775
+ className: [Y.field, g].filter(Boolean).join(" "),
776
+ children: [
777
+ e && /* @__PURE__ */ t(K, {
778
+ htmlFor: D,
779
+ children: e
780
+ }),
781
+ /* @__PURE__ */ t("div", {
782
+ className: ie,
783
+ children: /* @__PURE__ */ t("textarea", {
784
+ ...E,
785
+ ref: (e) => {
786
+ O.current = e, Ce(_, e);
787
+ },
788
+ id: D,
789
+ className: `${Y.textarea} ${Y[`resize-${ae}`]}`,
790
+ rows: v,
791
+ value: y,
792
+ defaultValue: b,
793
+ maxLength: x,
794
+ disabled: ee,
795
+ readOnly: S,
796
+ "aria-invalid": i ? !0 : E["aria-invalid"],
797
+ "aria-describedby": R,
798
+ onChange: ne,
799
+ onInput: P
800
+ })
801
+ }),
802
+ (i || r || f) && /* @__PURE__ */ n("div", {
803
+ className: Y.footer,
804
+ children: [i ? /* @__PURE__ */ t("span", {
805
+ id: I,
806
+ className: Y.errorText,
807
+ children: i
808
+ }) : r ? /* @__PURE__ */ t("span", {
809
+ id: F,
810
+ className: Y.helperText,
811
+ children: r
812
+ }) : null, f && /* @__PURE__ */ t("span", {
813
+ id: L,
814
+ className: `${Y.count} ${re}`,
815
+ children: x ? `${M} / ${x}` : M
816
+ })]
817
+ })
818
+ ]
819
+ });
820
+ }
586
821
  //#endregion
587
822
  //#region src/components/PasswordField.tsx
588
- function fe({ label: e, helperText: r, error: i, size: a = "base", showLabel: o = "Show password", hideLabel: s = "Hide password", defaultVisible: c = !1, id: u, className: d, ref: p, disabled: m, ...h }) {
589
- let g = l(), _ = u ?? g, [v, y] = f(c);
823
+ function Te({ label: e, helperText: r, error: i, size: a = "base", showLabel: o = "Show password", hideLabel: s = "Hide password", defaultVisible: c = !1, id: l, className: d, ref: f, disabled: p, ...h }) {
824
+ let g = u(), _ = l ?? g, [v, y] = m(c);
590
825
  return /* @__PURE__ */ n("div", {
591
- className: [q.field, d].filter(Boolean).join(" "),
826
+ className: [J.field, d].filter(Boolean).join(" "),
592
827
  children: [
593
- e && /* @__PURE__ */ t(S, {
828
+ e && /* @__PURE__ */ t(K, {
594
829
  htmlFor: _,
595
830
  children: e
596
831
  }),
597
832
  /* @__PURE__ */ n("div", {
598
- className: `${q.inputWrap} ${q.default} ${q[a]} ${i ? q.errorWrap : ""}`,
833
+ className: `${J.inputWrap} ${J.default} ${J[a]} ${i ? J.errorWrap : ""}`,
599
834
  children: [/* @__PURE__ */ t("input", {
600
- ref: p,
835
+ ref: f,
601
836
  id: _,
602
- className: q.input,
837
+ className: J.input,
603
838
  type: v ? "text" : "password",
604
839
  autoComplete: "off",
605
- disabled: m,
840
+ disabled: p,
606
841
  ...h
607
842
  }), /* @__PURE__ */ t("button", {
608
843
  type: "button",
609
- className: q.trailing,
844
+ className: J.trailing,
610
845
  "aria-label": v ? s : o,
611
846
  "aria-pressed": v,
612
847
  "aria-controls": _,
613
- disabled: m,
848
+ disabled: p,
614
849
  onClick: () => y((e) => !e),
615
- children: t(v ? z : ie, {})
850
+ children: t(v ? re : ae, {})
616
851
  })]
617
852
  }),
618
853
  i ? /* @__PURE__ */ t("span", {
619
- className: q.errorText,
854
+ className: J.errorText,
620
855
  children: i
621
856
  }) : r ? /* @__PURE__ */ t("span", {
622
- className: q.helperText,
857
+ className: J.helperText,
623
858
  children: r
624
859
  }) : null
625
860
  ]
@@ -627,348 +862,751 @@ function fe({ label: e, helperText: r, error: i, size: a = "base", showLabel: o
627
862
  }
628
863
  //#endregion
629
864
  //#region src/components/DateField.tsx
630
- function pe({ label: e, helperText: r, error: i, size: a = "base", openLabel: o = "Open calendar", id: s, className: c, ref: u, onClick: f, disabled: p, ...m }) {
631
- let h = l(), g = s ?? h, _ = d(null);
865
+ function Ee({ label: e, helperText: r, error: i, size: a = "base", openLabel: o = "Open calendar", id: s, className: c, ref: l, onClick: d, disabled: f, ...m }) {
866
+ let h = u(), g = s ?? h, _ = p(null);
632
867
  function v(e) {
633
- _.current = e, typeof u == "function" ? u(e) : u && (u.current = e);
868
+ _.current = e, typeof l == "function" ? l(e) : l && (l.current = e);
634
869
  }
635
870
  return /* @__PURE__ */ n("div", {
636
- className: [q.field, c].filter(Boolean).join(" "),
871
+ className: [J.field, c].filter(Boolean).join(" "),
637
872
  children: [
638
- e && /* @__PURE__ */ t(S, {
873
+ e && /* @__PURE__ */ t(K, {
639
874
  htmlFor: g,
640
875
  children: e
641
876
  }),
642
877
  /* @__PURE__ */ n("div", {
643
- className: `${q.inputWrap} ${q.default} ${q[a]} ${i ? q.errorWrap : ""}`,
878
+ className: `${J.inputWrap} ${J.default} ${J[a]} ${i ? J.errorWrap : ""}`,
644
879
  children: [/* @__PURE__ */ t("input", {
645
880
  ...m,
646
881
  ref: v,
647
882
  id: g,
648
- className: `${q.input} ${q.pickerInput}`,
883
+ className: `${J.input} ${J.pickerInput}`,
649
884
  inputMode: "none",
650
885
  readOnly: !0,
651
- disabled: p,
652
- onClick: f
886
+ disabled: f,
887
+ onClick: d
653
888
  }), /* @__PURE__ */ t("button", {
654
889
  type: "button",
655
890
  tabIndex: -1,
656
- className: q.trailing,
891
+ className: J.trailing,
657
892
  "aria-label": o,
658
- disabled: p,
893
+ disabled: f,
659
894
  onClick: () => _.current?.click(),
660
- children: /* @__PURE__ */ t(re, {})
895
+ children: /* @__PURE__ */ t(P, {})
661
896
  })]
662
897
  }),
663
898
  i ? /* @__PURE__ */ t("span", {
664
- className: q.errorText,
899
+ className: J.errorText,
665
900
  children: i
666
901
  }) : r ? /* @__PURE__ */ t("span", {
667
- className: q.helperText,
902
+ className: J.helperText,
668
903
  children: r
669
904
  }) : null
670
905
  ]
671
906
  });
672
907
  }
673
- var J = {
674
- field: "_field_tr8ir_1",
675
- inputWrap: "_inputWrap_tr8ir_6",
676
- errorWrap: "_errorWrap_tr8ir_19",
677
- input: "_input_tr8ir_6",
678
- sm: "_sm_tr8ir_27",
679
- base: "_base_tr8ir_35",
680
- prefix: "_prefix_tr8ir_43",
681
- suffix: "_suffix_tr8ir_46",
682
- helperText: "_helperText_tr8ir_94",
683
- errorText: "_errorText_tr8ir_99"
908
+ //#endregion
909
+ //#region src/utils/date.ts
910
+ function De(e) {
911
+ return new Date(e.getFullYear(), e.getMonth(), e.getDate());
912
+ }
913
+ function Oe(e, t) {
914
+ return new Date(e.getFullYear(), e.getMonth(), e.getDate() + t);
915
+ }
916
+ function ke(e, t) {
917
+ return new Date(e, t + 1, 0).getDate();
918
+ }
919
+ function Ae(e, t) {
920
+ let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = Math.min(e.getDate(), ke(n.getFullYear(), n.getMonth()));
921
+ return new Date(n.getFullYear(), n.getMonth(), r);
922
+ }
923
+ function je(e, t) {
924
+ return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
925
+ }
926
+ function Me(e, t) {
927
+ return e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate();
928
+ }
929
+ function Ne(e, t, n) {
930
+ return !!(t && Me(e, t) < 0 || n && Me(e, n) > 0);
931
+ }
932
+ function Pe(e, t, n) {
933
+ return t && Me(e, t) < 0 ? De(t) : n && Me(e, n) > 0 ? De(n) : De(e);
934
+ }
935
+ function Fe(e, t) {
936
+ return Oe(e, -((e.getDay() - t + 7) % 7));
937
+ }
938
+ function Ie(e, t) {
939
+ return Oe(Fe(e, t), 6);
940
+ }
941
+ var Le = 6;
942
+ function Re(e, t, n) {
943
+ let r = Fe(new Date(e, t, 1), n), i = [];
944
+ for (let e = 0; e < Le; e++) {
945
+ let n = [];
946
+ for (let i = 0; i < 7; i++) {
947
+ let a = Oe(r, e * 7 + i);
948
+ n.push({
949
+ date: a,
950
+ inMonth: a.getMonth() === t
951
+ });
952
+ }
953
+ i.push(n);
954
+ }
955
+ return i;
956
+ }
957
+ var X = {
958
+ calendar: "_calendar_fwh07_1",
959
+ header: "_header_fwh07_7",
960
+ navButton: "_navButton_fwh07_13",
961
+ title: "_title_fwh07_21",
962
+ grid: "_grid_fwh07_27",
963
+ row: "_row_fwh07_31",
964
+ weekday: "_weekday_fwh07_35",
965
+ day: "_day_fwh07_44",
966
+ selected: "_selected_fwh07_61",
967
+ disabled: "_disabled_fwh07_61",
968
+ outside: "_outside_fwh07_68",
969
+ today: "_today_fwh07_71"
970
+ }, ze = (e) => `${e.getFullYear()}-${e.getMonth() + 1}-${e.getDate()}`;
971
+ function Be(e, t) {
972
+ return e.charAt(0).toLocaleUpperCase(t) + e.slice(1);
973
+ }
974
+ function Ve({ value: e, onChange: r, minDate: i, maxDate: a, locale: o = "en", weekStartsOn: s = 0, autoFocus: c, previousMonthLabel: d = "Previous month", nextMonthLabel: h = "Next month", className: g }) {
975
+ let [v, y] = m(() => Pe(e ?? /* @__PURE__ */ new Date(), i, a)), b = e ? ze(e) : null, [x, ee] = m(b);
976
+ b !== x && (ee(b), e && y(Pe(e, i, a)));
977
+ let S = p(null), C = p(!!c), w = u();
978
+ l(() => {
979
+ C.current && (C.current = !1, S.current?.querySelector(`[data-date="${ze(v)}"]`)?.focus());
980
+ }, [v]);
981
+ let T = v.getFullYear(), E = v.getMonth(), te = f(() => Re(T, E, s), [
982
+ T,
983
+ E,
984
+ s
985
+ ]), D = De(/* @__PURE__ */ new Date()), O = f(() => ({
986
+ title: new Intl.DateTimeFormat(o, {
987
+ month: "long",
988
+ year: "numeric"
989
+ }),
990
+ short: new Intl.DateTimeFormat(o, { weekday: "short" }),
991
+ long: new Intl.DateTimeFormat(o, { weekday: "long" }),
992
+ full: new Intl.DateTimeFormat(o, { dateStyle: "full" })
993
+ }), [o]), k = te[0].map(({ date: e }) => ({
994
+ short: Be(O.short.format(e), o).slice(0, 2),
995
+ long: O.long.format(e)
996
+ })), A = (e) => !!i && new Date(e.getFullYear(), e.getMonth(), 0) < De(i), j = (e) => !!a && new Date(e.getFullYear(), e.getMonth() + 1, 1) > De(a), M = A(v), N = j(v);
997
+ function ne(e) {
998
+ C.current = !0, y(Pe(e, i, a));
999
+ }
1000
+ function P(e) {
1001
+ let t = Pe(Ae(v, e), i, a);
1002
+ C.current = e < 0 ? A(t) : j(t), y(t);
1003
+ }
1004
+ function F(e) {
1005
+ let t = null;
1006
+ switch (e.key) {
1007
+ case "ArrowLeft":
1008
+ t = Oe(v, -1);
1009
+ break;
1010
+ case "ArrowRight":
1011
+ t = Oe(v, 1);
1012
+ break;
1013
+ case "ArrowUp":
1014
+ t = Oe(v, -7);
1015
+ break;
1016
+ case "ArrowDown":
1017
+ t = Oe(v, 7);
1018
+ break;
1019
+ case "PageUp":
1020
+ t = Ae(v, -1);
1021
+ break;
1022
+ case "PageDown":
1023
+ t = Ae(v, 1);
1024
+ break;
1025
+ case "Home":
1026
+ t = Fe(v, s);
1027
+ break;
1028
+ case "End": t = Ie(v, s);
1029
+ }
1030
+ t && (e.preventDefault(), ne(t));
1031
+ }
1032
+ function L(e) {
1033
+ let t = De(e);
1034
+ y(t), r(t);
1035
+ }
1036
+ return /* @__PURE__ */ n("div", {
1037
+ className: [X.calendar, g].filter(Boolean).join(" "),
1038
+ children: [/* @__PURE__ */ n("div", {
1039
+ className: X.header,
1040
+ children: [
1041
+ /* @__PURE__ */ t(_, {
1042
+ variant: "tertiary",
1043
+ size: "sm",
1044
+ className: X.navButton,
1045
+ leadingIcon: /* @__PURE__ */ t(I, {}),
1046
+ "aria-label": d,
1047
+ disabled: M,
1048
+ onClick: () => P(-1)
1049
+ }),
1050
+ /* @__PURE__ */ t("div", {
1051
+ id: w,
1052
+ className: X.title,
1053
+ "aria-live": "polite",
1054
+ children: Be(O.title.format(v), o)
1055
+ }),
1056
+ /* @__PURE__ */ t(_, {
1057
+ variant: "tertiary",
1058
+ size: "sm",
1059
+ className: X.navButton,
1060
+ leadingIcon: /* @__PURE__ */ t(R, {}),
1061
+ "aria-label": h,
1062
+ disabled: N,
1063
+ onClick: () => P(1)
1064
+ })
1065
+ ]
1066
+ }), /* @__PURE__ */ n("div", {
1067
+ ref: S,
1068
+ role: "grid",
1069
+ "aria-labelledby": w,
1070
+ className: X.grid,
1071
+ onKeyDown: F,
1072
+ children: [/* @__PURE__ */ t("div", {
1073
+ role: "row",
1074
+ className: X.row,
1075
+ children: k.map((e) => /* @__PURE__ */ t("span", {
1076
+ role: "columnheader",
1077
+ "aria-label": e.long,
1078
+ className: X.weekday,
1079
+ children: e.short
1080
+ }, e.long))
1081
+ }), te.map((n) => /* @__PURE__ */ t("div", {
1082
+ role: "row",
1083
+ className: X.row,
1084
+ children: n.map(({ date: n, inMonth: r }) => {
1085
+ let o = Ne(n, i, a), s = !!e && je(n, e), c = je(n, D);
1086
+ return /* @__PURE__ */ t("button", {
1087
+ type: "button",
1088
+ role: "gridcell",
1089
+ "data-date": ze(n),
1090
+ tabIndex: je(n, v) ? 0 : -1,
1091
+ "aria-selected": s,
1092
+ "aria-disabled": o || void 0,
1093
+ "aria-current": c ? "date" : void 0,
1094
+ "aria-label": O.full.format(n),
1095
+ className: [
1096
+ X.day,
1097
+ !r && X.outside,
1098
+ c && X.today,
1099
+ s && X.selected,
1100
+ o && X.disabled
1101
+ ].filter(Boolean).join(" "),
1102
+ onMouseDown: o ? (e) => e.preventDefault() : void 0,
1103
+ onClick: o ? void 0 : () => L(n),
1104
+ children: n.getDate()
1105
+ }, ze(n));
1106
+ })
1107
+ }, ze(n[0].date)))]
1108
+ })]
1109
+ });
1110
+ }
1111
+ var He = { popup: "_popup_hem3z_1" }, Ue = "(max-width: 480px)", We = 4, Ge = 8;
1112
+ function Ke({ value: r, onChange: i, minDate: a, maxDate: o, disabled: c, locale: g = "en", weekStartsOn: _ = 0, formatValue: v, placement: y = "bottom-start", label: b, helperText: x, error: ee, size: S, openLabel: C, placeholder: w, dialogLabel: T = "Choose date", className: E, id: te }) {
1113
+ let [D, O] = m(!1), k = p(null), A = p(null), j = u(), M = D && !c, N = f(() => new Intl.DateTimeFormat(g, {
1114
+ month: "short",
1115
+ day: "2-digit"
1116
+ }), [g]), ne = r ? v ? v(r) : N.format(r) : "", P = s(() => k.current?.parentElement ?? k.current, []), F = s(() => {
1117
+ let e = A.current, t = P();
1118
+ if (!e || !t) return;
1119
+ if (window.matchMedia(Ue).matches) {
1120
+ e.style.left = "", e.style.top = "";
1121
+ return;
1122
+ }
1123
+ let n = t.getBoundingClientRect(), r = e.offsetWidth, i = e.offsetHeight, a = document.documentElement.clientWidth, o = window.innerHeight, s = y === "bottom-end" ? n.right - r : n.left;
1124
+ s = Math.max(Ge, Math.min(s, a - r - Ge));
1125
+ let c = n.bottom + We, l = c + i <= o - Ge, u = n.top - We - i >= Ge;
1126
+ !l && u && (c = n.top - We - i), e.style.left = `${s}px`, e.style.top = `${c}px`;
1127
+ }, [P, y]);
1128
+ d(() => {
1129
+ if (M) return F(), window.addEventListener("resize", F), window.addEventListener("scroll", F, !0), () => {
1130
+ window.removeEventListener("resize", F), window.removeEventListener("scroll", F, !0);
1131
+ };
1132
+ }, [M, F]), l(() => {
1133
+ if (!M) return;
1134
+ function e() {
1135
+ O(!1), k.current?.focus();
1136
+ }
1137
+ function t(e) {
1138
+ let t = e.target;
1139
+ A.current?.contains(t) || P()?.contains(t) || O(!1);
1140
+ }
1141
+ function n(t) {
1142
+ if (t.key === "Escape") {
1143
+ t.preventDefault(), e();
1144
+ return;
1145
+ }
1146
+ if (t.key !== "Tab") return;
1147
+ let n = A.current;
1148
+ if (!n) return;
1149
+ let r = Array.from(n.querySelectorAll("button:not(:disabled):not([tabindex=\"-1\"])"));
1150
+ if (r.length === 0) {
1151
+ t.preventDefault();
1152
+ return;
1153
+ }
1154
+ let i = r[0], a = r[r.length - 1], o = document.activeElement;
1155
+ n.contains(o) ? t.shiftKey && o === i ? (t.preventDefault(), a.focus()) : !t.shiftKey && o === a && (t.preventDefault(), i.focus()) : (t.preventDefault(), (t.shiftKey ? a : i).focus());
1156
+ }
1157
+ return window.addEventListener("pointerdown", t), window.addEventListener("keydown", n), () => {
1158
+ window.removeEventListener("pointerdown", t), window.removeEventListener("keydown", n);
1159
+ };
1160
+ }, [M, P]);
1161
+ function I(e) {
1162
+ (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), c || O(!0));
1163
+ }
1164
+ function L(e) {
1165
+ i(e), O(!1), k.current?.focus();
1166
+ }
1167
+ return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t(Ee, {
1168
+ ref: k,
1169
+ id: te,
1170
+ className: E,
1171
+ label: b,
1172
+ helperText: x,
1173
+ error: ee,
1174
+ size: S,
1175
+ openLabel: C,
1176
+ placeholder: w,
1177
+ disabled: c,
1178
+ value: ne,
1179
+ role: "combobox",
1180
+ "aria-haspopup": "dialog",
1181
+ "aria-expanded": M,
1182
+ "aria-controls": M ? j : void 0,
1183
+ onClick: () => !c && O((e) => !e),
1184
+ onKeyDown: I
1185
+ }), M && h(/* @__PURE__ */ t("div", {
1186
+ ref: A,
1187
+ id: j,
1188
+ role: "dialog",
1189
+ "aria-label": T,
1190
+ className: He.popup,
1191
+ children: /* @__PURE__ */ t(Ve, {
1192
+ autoFocus: !0,
1193
+ value: r,
1194
+ onChange: L,
1195
+ minDate: a,
1196
+ maxDate: o,
1197
+ locale: g,
1198
+ weekStartsOn: _
1199
+ })
1200
+ }), document.body)] });
1201
+ }
1202
+ var Z = {
1203
+ field: "_field_14eal_1",
1204
+ inputWrap: "_inputWrap_14eal_6",
1205
+ errorWrap: "_errorWrap_14eal_19",
1206
+ input: "_input_14eal_6",
1207
+ sm: "_sm_14eal_27",
1208
+ base: "_base_14eal_35",
1209
+ prefix: "_prefix_14eal_43",
1210
+ suffix: "_suffix_14eal_46",
1211
+ helperText: "_helperText_14eal_94",
1212
+ errorText: "_errorText_14eal_99"
684
1213
  };
685
1214
  //#endregion
686
1215
  //#region src/components/NumberField.tsx
687
- function me({ label: e, helperText: r, error: i, size: a = "base", prefix: o, suffix: s, id: c, ...u }) {
688
- let d = l(), f = c ?? d;
1216
+ function qe({ label: e, helperText: r, error: i, size: a = "base", prefix: o, suffix: s, id: c, ...l }) {
1217
+ let d = u(), f = c ?? d;
689
1218
  return /* @__PURE__ */ n("div", {
690
- className: J.field,
1219
+ className: Z.field,
691
1220
  children: [
692
- e && /* @__PURE__ */ t(S, {
1221
+ e && /* @__PURE__ */ t(K, {
693
1222
  htmlFor: f,
694
1223
  children: e
695
1224
  }),
696
1225
  /* @__PURE__ */ n("div", {
697
- className: `${J.inputWrap} ${J[a]} ${i ? J.errorWrap : ""}`,
1226
+ className: `${Z.inputWrap} ${Z[a]} ${i ? Z.errorWrap : ""}`,
698
1227
  children: [
699
1228
  o && /* @__PURE__ */ t("span", {
700
- className: J.prefix,
1229
+ className: Z.prefix,
701
1230
  children: o
702
1231
  }),
703
1232
  /* @__PURE__ */ t("input", {
704
1233
  id: f,
705
- className: J.input,
706
- ...u
1234
+ className: Z.input,
1235
+ ...l
707
1236
  }),
708
1237
  s && /* @__PURE__ */ t("span", {
709
- className: J.suffix,
1238
+ className: Z.suffix,
710
1239
  children: s
711
1240
  })
712
1241
  ]
713
1242
  }),
714
1243
  i ? /* @__PURE__ */ t("span", {
715
- className: J.errorText,
1244
+ className: Z.errorText,
716
1245
  children: i
717
1246
  }) : r ? /* @__PURE__ */ t("span", {
718
- className: J.helperText,
1247
+ className: Z.helperText,
719
1248
  children: r
720
1249
  }) : null
721
1250
  ]
722
1251
  });
723
1252
  }
724
- var he = {
1253
+ var Je = {
725
1254
  menu: "_menu_471l2_1",
726
1255
  divider: "_divider_471l2_15"
727
1256
  };
728
1257
  //#endregion
729
1258
  //#region src/components/Menu.tsx
730
- function ge({ children: e, ...n }) {
1259
+ function Ye({ children: e, ...n }) {
731
1260
  return /* @__PURE__ */ t("div", {
732
1261
  role: "menu",
733
- className: he.menu,
1262
+ className: Je.menu,
734
1263
  ...n,
735
1264
  children: e
736
1265
  });
737
1266
  }
738
- function _e() {
1267
+ function Xe() {
739
1268
  return /* @__PURE__ */ t("div", {
740
- className: he.divider,
1269
+ className: Je.divider,
741
1270
  role: "separator"
742
1271
  });
743
1272
  }
744
- var Y = {
745
- item: "_item_manci_1",
746
- icon: "_icon_manci_25",
747
- check: "_check_manci_26",
748
- label: "_label_manci_54",
749
- trailing: "_trailing_manci_61",
750
- selected: "_selected_manci_67",
751
- destructive: "_destructive_manci_92"
1273
+ var Ze = {
1274
+ item: "_item_1q8ai_1",
1275
+ icon: "_icon_1q8ai_25",
1276
+ check: "_check_1q8ai_26",
1277
+ leading: "_leading_1q8ai_40",
1278
+ label: "_label_1q8ai_60",
1279
+ trailing: "_trailing_1q8ai_67",
1280
+ selected: "_selected_1q8ai_73",
1281
+ destructive: "_destructive_1q8ai_98"
752
1282
  };
753
1283
  //#endregion
754
1284
  //#region src/components/MenuItem.tsx
755
- function ve({ icon: e, trailing: r, selected: i, destructive: a, children: o, ...s }) {
756
- let c = [
757
- Y.item,
758
- i && Y.selected,
759
- a && Y.destructive
1285
+ function Qe({ leading: e, icon: r, trailing: i, selected: a, destructive: o, children: s, ...c }) {
1286
+ let l = [
1287
+ Ze.item,
1288
+ a && Ze.selected,
1289
+ o && Ze.destructive
760
1290
  ].filter(Boolean).join(" ");
761
1291
  return /* @__PURE__ */ n("button", {
762
1292
  type: "button",
763
1293
  role: "menuitem",
764
- className: c,
765
- ...s,
1294
+ className: l,
1295
+ ...c,
766
1296
  children: [
767
1297
  e && /* @__PURE__ */ t("span", {
768
- className: Y.icon,
1298
+ className: Ze.leading,
769
1299
  children: e
770
1300
  }),
771
- /* @__PURE__ */ t("span", {
772
- className: Y.label,
773
- children: o
774
- }),
775
1301
  r && /* @__PURE__ */ t("span", {
776
- className: Y.trailing,
1302
+ className: Ze.icon,
777
1303
  children: r
778
1304
  }),
1305
+ /* @__PURE__ */ t("span", {
1306
+ className: Ze.label,
1307
+ children: s
1308
+ }),
779
1309
  i && /* @__PURE__ */ t("span", {
780
- className: Y.check,
781
- children: /* @__PURE__ */ t(ne, {})
1310
+ className: Ze.trailing,
1311
+ children: i
1312
+ }),
1313
+ a && /* @__PURE__ */ t("span", {
1314
+ className: Ze.check,
1315
+ children: /* @__PURE__ */ t(N, {})
782
1316
  })
783
1317
  ]
784
1318
  });
785
1319
  }
786
- var X = {
787
- field: "_field_ynqml_1",
788
- trigger: "_trigger_ynqml_7",
789
- errorWrap: "_errorWrap_ynqml_25",
790
- sm: "_sm_ynqml_34",
791
- base: "_base_ynqml_42",
792
- icon: "_icon_ynqml_51",
793
- value: "_value_ynqml_65",
794
- placeholder: "_placeholder_ynqml_73",
795
- chevron: "_chevron_ynqml_76",
796
- chevronOpen: "_chevronOpen_ynqml_91",
797
- menuWrap: "_menuWrap_ynqml_95",
798
- menuWrapUp: "_menuWrapUp_ynqml_102",
799
- list: "_list_ynqml_106",
800
- search: "_search_ynqml_113",
801
- noResults: "_noResults_ynqml_131",
802
- helperText: "_helperText_ynqml_136",
803
- errorText: "_errorText_ynqml_141"
1320
+ var Q = {
1321
+ field: "_field_15vgr_1",
1322
+ fieldInline: "_fieldInline_15vgr_2",
1323
+ trigger: "_trigger_15vgr_17",
1324
+ errorWrap: "_errorWrap_15vgr_41",
1325
+ sm: "_sm_15vgr_60",
1326
+ base: "_base_15vgr_68",
1327
+ icon: "_icon_15vgr_77",
1328
+ value: "_value_15vgr_91",
1329
+ placeholder: "_placeholder_15vgr_99",
1330
+ chevron: "_chevron_15vgr_102",
1331
+ chevronOpen: "_chevronOpen_15vgr_117",
1332
+ menuWrap: "_menuWrap_15vgr_121",
1333
+ menuIn: "_menuIn_15vgr_1",
1334
+ menuWrapAuto: "_menuWrapAuto_15vgr_131",
1335
+ menuWrapEnd: "_menuWrapEnd_15vgr_137",
1336
+ menuWrapUp: "_menuWrapUp_15vgr_142",
1337
+ menuWrapClosing: "_menuWrapClosing_15vgr_154",
1338
+ menuOut: "_menuOut_15vgr_1",
1339
+ list: "_list_15vgr_178",
1340
+ itemIn: "_itemIn_15vgr_1",
1341
+ highlight: "_highlight_15vgr_195",
1342
+ highlightInstant: "_highlightInstant_15vgr_208",
1343
+ pillChevron: "_pillChevron_15vgr_233",
1344
+ buttonChevron: "_buttonChevron_15vgr_234",
1345
+ pillTrigger: "_pillTrigger_15vgr_240",
1346
+ pillIcon: "_pillIcon_15vgr_276",
1347
+ search: "_search_15vgr_308",
1348
+ noResults: "_noResults_15vgr_326",
1349
+ helperText: "_helperText_15vgr_331",
1350
+ errorText: "_errorText_15vgr_336",
1351
+ prefix: "_prefix_15vgr_341",
1352
+ menuWrapMultiple: "_menuWrapMultiple_15vgr_345"
804
1353
  };
805
1354
  //#endregion
806
1355
  //#region src/components/Dropdown.tsx
807
- function ye(e) {
1356
+ function $e(e) {
808
1357
  return e.searchText === void 0 ? typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : "" : e.searchText;
809
1358
  }
810
- function be({ label: e, helperText: r, error: i, size: a = "base", placeholder: o = "Select…", options: s, value: p, onChange: m, disabled: h, searchable: g, searchPlaceholder: _ = "Search…", noResultsText: v = "No matches", defaultOpen: y = !1, autoFocus: b, className: x, labelClassName: ee, "aria-label": C, "data-testid": te }) {
811
- let [w, T] = f(y), [E, D] = f(""), [O, k] = f(!1), A = d(null), j = d(null), M = d(null), N = d(null), P = l(), F = l(), I = s.find((e) => e.value === p), ne = E.trim().toLowerCase(), L = g && ne ? s.filter((e) => ye(e).toLowerCase().includes(ne)) : s, R = L.filter((e) => !e.disabled).map((e) => e.value);
812
- function z() {
813
- T(!1), D("");
1359
+ function et(e) {
1360
+ return typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : e.searchText;
1361
+ }
1362
+ var tt = (e) => `and ${e} more`;
1363
+ function nt(r) {
1364
+ let { variant: i = "field", triggerLabel: a, menuAlign: o = "start", label: s, helperText: c, error: f, size: h = "base", placeholder: g = "Select…", options: v, disabled: y, searchable: b, searchPlaceholder: x = "Search…", noResultsText: ee = "No matches", defaultOpen: S = !1, autoFocus: C, className: w, labelClassName: T, "aria-label": E, "data-testid": te } = r, D = r.multiple === !0, [O, k] = m(S), [A, j] = m(S), [M, N] = m(""), [ne, F] = m(!1), [I, L] = m(null), R = p(null), z = p(null), re = p(null), ie = p(null), ae = u(), oe = u(), se = r.multiple ? void 0 : r.value, ce = r.multiple && r.value || [], B = ce.map((e) => v.find((t) => t.value === e)).filter((e) => e !== void 0), V = D ? void 0 : v.find((e) => e.value === se), le = M.trim().toLowerCase(), H = b && le ? v.filter((e) => $e(e).toLowerCase().includes(le)) : v, U = H.filter((e) => !e.disabled).map((e) => e.value), W = i === "field";
1365
+ function G() {
1366
+ j(!0), k(!0);
814
1367
  }
815
- c(() => {
816
- if (!w) return;
817
- if (g) {
818
- N.current?.focus();
819
- return;
820
- }
821
- let e = p ?? R[0];
822
- (A.current?.querySelector(`[data-value="${e}"]`))?.focus();
823
- }, [w]), u(() => {
824
- if (!w || !M.current || !A.current) {
825
- k(!1);
1368
+ function ue() {
1369
+ k(!1), N("");
1370
+ }
1371
+ l(() => {
1372
+ if (!O) return;
1373
+ if (b) {
1374
+ ie.current?.focus();
826
1375
  return;
827
1376
  }
828
- let e = A.current.getBoundingClientRect(), t = M.current.getBoundingClientRect().height, n = window.innerHeight - e.bottom, r = e.top;
829
- k(n < t + 8 && r > n);
830
- }, [w]), c(() => {
831
- if (!w) return;
1377
+ let e = (D ? B.find((e) => !e.disabled)?.value : se) ?? U[0];
1378
+ (R.current?.querySelector(`[data-value="${e}"]`))?.focus();
1379
+ }, [O]), d(() => {
1380
+ if (!O || !re.current || !R.current) return;
1381
+ let e = R.current.getBoundingClientRect(), t = re.current.offsetHeight, n = window.innerHeight - e.bottom, r = e.top;
1382
+ F(n < t + 8 && r > n);
1383
+ }, [O]), l(() => {
1384
+ if (!O) return;
832
1385
  function e(e) {
833
- A.current?.contains(e.target) || z();
1386
+ R.current?.contains(e.target) || ue();
834
1387
  }
835
1388
  function t(e) {
836
- e.key === "Escape" && (z(), j.current?.focus());
1389
+ e.key === "Escape" && (ue(), z.current?.focus()), e.key === "Tab" && D && ue();
837
1390
  }
838
1391
  return window.addEventListener("pointerdown", e), window.addEventListener("keydown", t), () => {
839
1392
  window.removeEventListener("pointerdown", e), window.removeEventListener("keydown", t);
840
1393
  };
841
- }, [w]);
842
- function B(e) {
843
- e !== void 0 && A.current?.querySelector(`[data-value="${e}"]`)?.focus();
1394
+ }, [O, D]);
1395
+ function de(e) {
1396
+ e !== void 0 && R.current?.querySelector(`[data-value="${e}"]`)?.focus();
844
1397
  }
845
- function ie(e) {
846
- (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), T(!0));
1398
+ function fe(e) {
1399
+ (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), G());
847
1400
  }
848
- function V(e) {
849
- e.key === "ArrowDown" && (e.preventDefault(), B(R[0])), e.key === "Enter" && R.length === 1 && (e.preventDefault(), H(R[0]));
1401
+ function pe(e) {
1402
+ e.key === "ArrowDown" && (e.preventDefault(), de(U[0])), e.key === "Enter" && U.length === 1 && (e.preventDefault(), ge(U[0]));
850
1403
  }
851
- function ae(e, t) {
852
- let n = R.indexOf(t);
1404
+ function q(e, t) {
1405
+ let n = U.indexOf(t);
853
1406
  if (n === -1) return;
854
1407
  let r = null;
855
- if (e.key === "ArrowDown" && (r = (n + 1) % R.length), e.key === "ArrowUp") {
856
- if (g && n === 0) {
857
- e.preventDefault(), N.current?.focus();
1408
+ if (e.key === "ArrowDown" && (r = (n + 1) % U.length), e.key === "ArrowUp") {
1409
+ if (b && n === 0) {
1410
+ e.preventDefault(), ie.current?.focus();
858
1411
  return;
859
1412
  }
860
- r = (n - 1 + R.length) % R.length;
1413
+ r = (n - 1 + U.length) % U.length;
1414
+ }
1415
+ e.key === "Home" && (r = 0), e.key === "End" && (r = U.length - 1), r !== null && (e.preventDefault(), de(U[r]));
1416
+ }
1417
+ function me(e) {
1418
+ L((t) => ({
1419
+ top: e.offsetTop,
1420
+ height: e.offsetHeight,
1421
+ instant: !t
1422
+ }));
1423
+ }
1424
+ function ge(e) {
1425
+ if (r.multiple) {
1426
+ let t = r.value ?? [];
1427
+ r.onChange(t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
1428
+ return;
861
1429
  }
862
- e.key === "Home" && (r = 0), e.key === "End" && (r = R.length - 1), r !== null && (e.preventDefault(), B(R[r]));
1430
+ r.onChange(e), ue(), z.current?.focus();
863
1431
  }
864
- function H(e) {
865
- m(e), z(), j.current?.focus();
1432
+ function _e() {
1433
+ if (r.multiple && r.renderTriggerLabel) return r.renderTriggerLabel(B);
1434
+ let e = B[0];
1435
+ if (B.length === 1) return e.label;
1436
+ let t = et(e);
1437
+ return t === void 0 ? `${B.length} selected` : `${t} ${(r.multiple && r.moreText || tt)(B.length - 1)}`;
866
1438
  }
1439
+ let ve = a === void 0 && (D ? B.length === 0 : !V), ye = D && r.triggerPrefix ? /* @__PURE__ */ n("span", {
1440
+ className: Q.prefix,
1441
+ children: [r.triggerPrefix, " "]
1442
+ }) : null, be = a ?? (ve ? g : D ? _e() : V?.label), xe = /* @__PURE__ */ n(e, { children: [ye, be] }), J = {
1443
+ "aria-haspopup": "listbox",
1444
+ "aria-expanded": O,
1445
+ "aria-controls": O ? oe : void 0,
1446
+ "aria-label": s ? void 0 : E,
1447
+ autoFocus: C,
1448
+ disabled: y,
1449
+ onClick: () => O ? ue() : G(),
1450
+ onKeyDown: fe
1451
+ };
867
1452
  return /* @__PURE__ */ n("div", {
868
- className: [X.field, x].filter(Boolean).join(" "),
869
- ref: A,
1453
+ className: [W ? Q.field : Q.fieldInline, w].filter(Boolean).join(" "),
1454
+ ref: R,
870
1455
  "data-testid": te,
871
1456
  children: [
872
- e && /* @__PURE__ */ t(S, {
873
- htmlFor: P,
874
- className: ee,
875
- children: e
1457
+ W && s && /* @__PURE__ */ t(K, {
1458
+ htmlFor: ae,
1459
+ className: T,
1460
+ children: s
876
1461
  }),
877
- /* @__PURE__ */ n("button", {
878
- ref: j,
879
- id: P,
1462
+ W ? /* @__PURE__ */ n("button", {
1463
+ ref: z,
1464
+ id: ae,
880
1465
  type: "button",
881
1466
  role: "combobox",
882
- className: `${X.trigger} ${X[a]} ${i ? X.errorWrap : ""}`,
883
- "aria-haspopup": "listbox",
884
- "aria-expanded": w,
885
- "aria-controls": w ? F : void 0,
886
- "aria-label": e ? void 0 : C,
887
- autoFocus: b,
888
- disabled: h,
889
- onClick: () => w ? z() : T(!0),
890
- onKeyDown: ie,
1467
+ className: `${Q.trigger} ${Q[h]} ${f ? Q.errorWrap : ""}`,
1468
+ ...J,
891
1469
  children: [
892
- I?.icon && /* @__PURE__ */ t("span", {
893
- className: X.icon,
894
- children: I.icon
1470
+ V?.icon && /* @__PURE__ */ t("span", {
1471
+ className: Q.icon,
1472
+ children: V.icon
895
1473
  }),
896
1474
  /* @__PURE__ */ t("span", {
897
- className: `${X.value} ${I ? "" : X.placeholder}`,
898
- children: I ? I.label : o
1475
+ className: `${Q.value} ${ve ? Q.placeholder : ""}`,
1476
+ children: xe
899
1477
  }),
900
1478
  /* @__PURE__ */ t("span", {
901
- className: `${X.chevron} ${w ? X.chevronOpen : ""}`,
902
- children: /* @__PURE__ */ t(re, {})
1479
+ className: `${Q.chevron} ${O ? Q.chevronOpen : ""}`,
1480
+ children: /* @__PURE__ */ t(P, {})
903
1481
  })
904
1482
  ]
1483
+ }) : i === "pill" ? /* @__PURE__ */ n("button", {
1484
+ ref: z,
1485
+ id: ae,
1486
+ type: "button",
1487
+ className: Q.pillTrigger,
1488
+ ...J,
1489
+ children: [
1490
+ V?.icon && /* @__PURE__ */ t("span", {
1491
+ className: Q.pillIcon,
1492
+ children: V.icon
1493
+ }),
1494
+ xe,
1495
+ /* @__PURE__ */ t("span", {
1496
+ className: `${Q.pillChevron} ${O ? Q.chevronOpen : ""}`,
1497
+ children: /* @__PURE__ */ t(P, {})
1498
+ })
1499
+ ]
1500
+ }) : /* @__PURE__ */ t(_, {
1501
+ ref: z,
1502
+ id: ae,
1503
+ variant: i,
1504
+ size: h,
1505
+ leadingIcon: V?.icon,
1506
+ trailingIcon: /* @__PURE__ */ t("span", {
1507
+ className: `${Q.buttonChevron} ${O ? Q.chevronOpen : ""}`,
1508
+ children: /* @__PURE__ */ t(P, {})
1509
+ }),
1510
+ ...J,
1511
+ children: xe
905
1512
  }),
906
- w && /* @__PURE__ */ t("div", {
907
- ref: M,
908
- className: `${X.menuWrap} ${O ? X.menuWrapUp : ""}`,
909
- children: /* @__PURE__ */ n(ge, {
1513
+ A && /* @__PURE__ */ t("div", {
1514
+ ref: re,
1515
+ className: [
1516
+ Q.menuWrap,
1517
+ !W && Q.menuWrapAuto,
1518
+ !W && D && Q.menuWrapMultiple,
1519
+ !W && o === "end" && Q.menuWrapEnd,
1520
+ ne && Q.menuWrapUp,
1521
+ !O && Q.menuWrapClosing
1522
+ ].filter(Boolean).join(" "),
1523
+ onAnimationEnd: (e) => {
1524
+ O || e.target !== e.currentTarget || (j(!1), F(!1));
1525
+ },
1526
+ children: /* @__PURE__ */ n(Ye, {
910
1527
  role: "presentation",
911
- style: { width: "100%" },
912
- children: [g && /* @__PURE__ */ t("input", {
913
- ref: N,
1528
+ style: W ? { width: "100%" } : void 0,
1529
+ children: [b && /* @__PURE__ */ t("input", {
1530
+ ref: ie,
914
1531
  type: "text",
915
- className: X.search,
916
- value: E,
917
- placeholder: _,
918
- "aria-label": _,
919
- "aria-controls": F,
1532
+ className: Q.search,
1533
+ value: M,
1534
+ placeholder: x,
1535
+ "aria-label": x,
1536
+ "aria-controls": oe,
920
1537
  autoComplete: "off",
921
1538
  spellCheck: !1,
922
- onChange: (e) => D(e.target.value),
923
- onKeyDown: V
924
- }), /* @__PURE__ */ t("div", {
925
- id: F,
1539
+ onChange: (e) => {
1540
+ N(e.target.value), L(null);
1541
+ },
1542
+ onKeyDown: pe
1543
+ }), /* @__PURE__ */ n("div", {
1544
+ id: oe,
926
1545
  role: "listbox",
927
- "aria-label": e ?? C,
928
- className: X.list,
929
- children: L.length === 0 ? /* @__PURE__ */ t("div", {
930
- className: X.noResults,
1546
+ "aria-multiselectable": D || void 0,
1547
+ "aria-label": s ?? E,
1548
+ className: Q.list,
1549
+ onMouseLeave: () => L(null),
1550
+ onBlur: (e) => {
1551
+ e.currentTarget.contains(e.relatedTarget) || L(null);
1552
+ },
1553
+ children: [I && H.length > 0 && /* @__PURE__ */ t("span", {
1554
+ "aria-hidden": "true",
1555
+ className: `${Q.highlight} ${I.instant ? Q.highlightInstant : ""}`,
1556
+ style: {
1557
+ transform: `translateY(${I.top}px)`,
1558
+ height: I.height
1559
+ }
1560
+ }), H.length === 0 ? /* @__PURE__ */ t("div", {
1561
+ className: Q.noResults,
931
1562
  role: "presentation",
932
- children: v
933
- }) : L.map((e) => /* @__PURE__ */ t(ve, {
1563
+ children: ee
1564
+ }) : H.map((e, n) => /* @__PURE__ */ t(Qe, {
1565
+ style: { "--i": Math.min(n, 8) },
934
1566
  "data-value": e.value,
935
1567
  role: "option",
936
- "aria-selected": e.value === p,
1568
+ "aria-selected": D ? ce.includes(e.value) : e.value === se,
937
1569
  icon: e.icon,
938
- selected: e.value === p,
1570
+ leading: D ? /* @__PURE__ */ t(he, {
1571
+ checked: ce.includes(e.value),
1572
+ disabled: e.disabled
1573
+ }) : void 0,
1574
+ selected: !D && e.value === se,
939
1575
  disabled: e.disabled,
940
- onClick: () => H(e.value),
941
- onKeyDown: (t) => ae(t, e.value),
1576
+ onClick: () => ge(e.value),
1577
+ onMouseEnter: (t) => !e.disabled && me(t.currentTarget),
1578
+ onFocus: (e) => me(e.currentTarget),
1579
+ onKeyDown: (t) => q(t, e.value),
942
1580
  children: e.label
943
- }, e.value))
1581
+ }, e.value))]
944
1582
  })]
945
1583
  })
946
1584
  }),
947
- i ? /* @__PURE__ */ t("span", {
948
- className: X.errorText,
949
- children: i
950
- }) : r ? /* @__PURE__ */ t("span", {
951
- className: X.helperText,
952
- children: r
1585
+ W && f ? /* @__PURE__ */ t("span", {
1586
+ className: Q.errorText,
1587
+ children: f
1588
+ }) : W && c ? /* @__PURE__ */ t("span", {
1589
+ className: Q.helperText,
1590
+ children: c
953
1591
  }) : null
954
1592
  ]
955
1593
  });
956
1594
  }
957
- var xe = { highlight: "_highlight_1anli_1" };
1595
+ var rt = { highlight: "_highlight_1anli_1" };
958
1596
  //#endregion
959
1597
  //#region src/components/HighlightText.tsx
960
- function Se(e) {
1598
+ function it(e) {
961
1599
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
962
1600
  }
963
- function Ce({ text: n, query: i }) {
1601
+ function at({ text: n, query: i }) {
964
1602
  if (!i) return /* @__PURE__ */ t(e, { children: n });
965
- let a = n.split(RegExp(`(${Se(i)})`, "ig"));
1603
+ let a = n.split(RegExp(`(${it(i)})`, "ig"));
966
1604
  return /* @__PURE__ */ t(e, { children: a.map((e, n) => e.toLowerCase() === i.toLowerCase() ? /* @__PURE__ */ t("mark", {
967
- className: xe.highlight,
1605
+ className: rt.highlight,
968
1606
  children: e
969
1607
  }, n) : /* @__PURE__ */ t(r, { children: e }, n)) });
970
1608
  }
971
- var Z = {
1609
+ var ot = {
972
1610
  group: "_group_10t2j_1",
973
1611
  btn: "_btn_10t2j_4",
974
1612
  caret: "_caret_10t2j_29",
@@ -990,24 +1628,24 @@ var Z = {
990
1628
  };
991
1629
  //#endregion
992
1630
  //#region src/components/FilterSection.tsx
993
- function we({ label: e, options: r, optionLabel: i, activeSet: a, onToggle: o, onSetAll: s, searchable: c }) {
994
- let [l, u] = f(""), d = l.trim().toLowerCase(), p = d ? r.filter((e) => i(e).toLowerCase().includes(d)) : r, m = r.length > 0 && a.size === r.length;
1631
+ function st({ label: e, options: r, optionLabel: i, activeSet: a, onToggle: o, onSetAll: s, searchable: c }) {
1632
+ let [l, u] = m(""), d = l.trim().toLowerCase(), f = d ? r.filter((e) => i(e).toLowerCase().includes(d)) : r, p = r.length > 0 && a.size === r.length;
995
1633
  return /* @__PURE__ */ n("div", { children: [
996
1634
  /* @__PURE__ */ n("div", {
997
- className: Z.sectionHeader,
1635
+ className: ot.sectionHeader,
998
1636
  children: [/* @__PURE__ */ t("div", {
999
- className: Z.sectionLabel,
1637
+ className: ot.sectionLabel,
1000
1638
  children: e
1001
1639
  }), s && /* @__PURE__ */ t("button", {
1002
1640
  type: "button",
1003
- className: Z.allToggle,
1004
- onClick: () => s(m ? [] : r),
1005
- children: m ? "Deselect all" : "Select all"
1641
+ className: ot.allToggle,
1642
+ onClick: () => s(p ? [] : r),
1643
+ children: p ? "Deselect all" : "Select all"
1006
1644
  })]
1007
1645
  }),
1008
1646
  c && /* @__PURE__ */ t("input", {
1009
1647
  type: "text",
1010
- className: Z.search,
1648
+ className: ot.search,
1011
1649
  placeholder: `Search ${e.toLowerCase()}…`,
1012
1650
  autoComplete: "off",
1013
1651
  value: l,
@@ -1015,12 +1653,12 @@ function we({ label: e, options: r, optionLabel: i, activeSet: a, onToggle: o, o
1015
1653
  onChange: (e) => u(e.target.value)
1016
1654
  }),
1017
1655
  /* @__PURE__ */ n("div", {
1018
- className: Z.optionsList,
1019
- children: [p.length === 0 && /* @__PURE__ */ t("div", {
1020
- className: Z.empty,
1656
+ className: ot.optionsList,
1657
+ children: [f.length === 0 && /* @__PURE__ */ t("div", {
1658
+ className: ot.empty,
1021
1659
  children: "No match"
1022
- }), p.map((e) => /* @__PURE__ */ t(W, {
1023
- className: Z.option,
1660
+ }), f.map((e) => /* @__PURE__ */ t(me, {
1661
+ className: ot.option,
1024
1662
  checked: a.has(e),
1025
1663
  onChange: () => o(e),
1026
1664
  label: i(e)
@@ -1028,29 +1666,29 @@ function we({ label: e, options: r, optionLabel: i, activeSet: a, onToggle: o, o
1028
1666
  })
1029
1667
  ] });
1030
1668
  }
1031
- var Q = {
1032
- line: "_line_z2201_1",
1033
- box: "_box_z2201_2",
1034
- indicator: "_indicator_z2201_9",
1035
- settling: "_settling_z2201_17",
1036
- indicatorLine: "_indicatorLine_z2201_21",
1037
- indicatorBox: "_indicatorBox_z2201_27",
1038
- tab: "_tab_z2201_35",
1039
- selected: "_selected_z2201_80",
1040
- icon: "_icon_z2201_89",
1041
- iconOnly: "_iconOnly_z2201_103",
1042
- sm: "_sm_z2201_163"
1669
+ var $ = {
1670
+ line: "_line_1myai_1",
1671
+ box: "_box_1myai_2",
1672
+ indicator: "_indicator_1myai_9",
1673
+ settling: "_settling_1myai_17",
1674
+ indicatorLine: "_indicatorLine_1myai_21",
1675
+ indicatorBox: "_indicatorBox_1myai_27",
1676
+ tab: "_tab_1myai_35",
1677
+ selected: "_selected_1myai_77",
1678
+ icon: "_icon_1myai_86",
1679
+ iconOnly: "_iconOnly_1myai_100",
1680
+ sm: "_sm_1myai_156"
1043
1681
  };
1044
1682
  //#endregion
1045
1683
  //#region src/components/Tabs.tsx
1046
- function Te({ items: e, value: r, onChange: i, variant: a = "line", size: o = "base", ...s }) {
1047
- let c = e.filter((e) => !e.disabled).map((e) => e.value), l = d(null), p = d(/* @__PURE__ */ new Map()), m = d(r), [h, g] = f(null), [_, v] = f("idle");
1048
- u(() => {
1049
- let e = p.current.get(r);
1684
+ function ct({ items: e, value: r, onChange: i, variant: a = "line", size: o = "base", ...s }) {
1685
+ let c = e.filter((e) => !e.disabled).map((e) => e.value), l = p(null), u = p(/* @__PURE__ */ new Map()), f = p(r), [h, g] = m(null), [_, v] = m("idle");
1686
+ d(() => {
1687
+ let e = u.current.get(r);
1050
1688
  e && (g({
1051
1689
  left: e.offsetLeft,
1052
1690
  width: e.offsetWidth
1053
- }), a === "box" && m.current !== r && v("moving"), m.current = r);
1691
+ }), a === "box" && f.current !== r && v("moving"), f.current = r);
1054
1692
  }, [
1055
1693
  r,
1056
1694
  e,
@@ -1060,11 +1698,11 @@ function Te({ items: e, value: r, onChange: i, variant: a = "line", size: o = "b
1060
1698
  function y(e) {
1061
1699
  e.propertyName === "scale" && (_ === "moving" ? v("settling") : _ === "settling" && v("idle"));
1062
1700
  }
1063
- u(() => {
1701
+ d(() => {
1064
1702
  let e = l.current;
1065
1703
  if (!e) return;
1066
1704
  let t = new ResizeObserver(() => {
1067
- let e = p.current.get(r);
1705
+ let e = u.current.get(r);
1068
1706
  e && g({
1069
1707
  left: e.offsetLeft,
1070
1708
  width: e.offsetWidth
@@ -1081,15 +1719,15 @@ function Te({ items: e, value: r, onChange: i, variant: a = "line", size: o = "b
1081
1719
  return /* @__PURE__ */ n("div", {
1082
1720
  ref: l,
1083
1721
  role: "tablist",
1084
- className: [Q[a], a === "box" && o === "sm" && Q.sm].filter(Boolean).join(" "),
1722
+ className: [$[a], a === "box" && o === "sm" && $.sm].filter(Boolean).join(" "),
1085
1723
  onKeyDown: b,
1086
1724
  ...s,
1087
1725
  children: [h && /* @__PURE__ */ t("span", {
1088
1726
  "aria-hidden": !0,
1089
1727
  className: [
1090
- Q.indicator,
1091
- a === "line" ? Q.indicatorLine : Q.indicatorBox,
1092
- _ === "settling" && Q.settling
1728
+ $.indicator,
1729
+ a === "line" ? $.indicatorLine : $.indicatorBox,
1730
+ _ === "settling" && $.settling
1093
1731
  ].filter(Boolean).join(" "),
1094
1732
  onTransitionEnd: y,
1095
1733
  style: {
@@ -1101,7 +1739,7 @@ function Te({ items: e, value: r, onChange: i, variant: a = "line", size: o = "b
1101
1739
  let a = e.value === r, o = !e.label && !!e.icon;
1102
1740
  return /* @__PURE__ */ n("button", {
1103
1741
  ref: (t) => {
1104
- t ? p.current.set(e.value, t) : p.current.delete(e.value);
1742
+ t ? u.current.set(e.value, t) : u.current.delete(e.value);
1105
1743
  },
1106
1744
  type: "button",
1107
1745
  role: "tab",
@@ -1110,34 +1748,34 @@ function Te({ items: e, value: r, onChange: i, variant: a = "line", size: o = "b
1110
1748
  disabled: e.disabled,
1111
1749
  tabIndex: a ? 0 : -1,
1112
1750
  className: [
1113
- Q.tab,
1114
- a && Q.selected,
1115
- o && Q.iconOnly
1751
+ $.tab,
1752
+ a && $.selected,
1753
+ o && $.iconOnly
1116
1754
  ].filter(Boolean).join(" "),
1117
1755
  onClick: () => !e.disabled && i(e.value),
1118
1756
  children: [e.icon && /* @__PURE__ */ t("span", {
1119
- className: Q.icon,
1757
+ className: $.icon,
1120
1758
  children: e.icon
1121
1759
  }), e.label]
1122
1760
  }, e.value);
1123
1761
  })]
1124
1762
  });
1125
1763
  }
1126
- var Ee = {
1127
- root: "_root_17koe_1",
1128
- label: "_label_17koe_7"
1764
+ var lt = {
1765
+ root: "_root_1605f_1",
1766
+ label: "_label_1605f_7"
1129
1767
  };
1130
1768
  //#endregion
1131
1769
  //#region src/components/Toggle.tsx
1132
- function De({ items: e, value: r, onChange: i, label: a, "aria-label": o }) {
1133
- let s = l();
1770
+ function ut({ items: e, value: r, onChange: i, label: a, "aria-label": o }) {
1771
+ let s = u();
1134
1772
  return /* @__PURE__ */ n("div", {
1135
- className: Ee.root,
1773
+ className: lt.root,
1136
1774
  children: [a && /* @__PURE__ */ t("span", {
1137
1775
  id: s,
1138
- className: Ee.label,
1776
+ className: lt.label,
1139
1777
  children: a
1140
- }), /* @__PURE__ */ t(Te, {
1778
+ }), /* @__PURE__ */ t(ct, {
1141
1779
  items: e,
1142
1780
  value: r,
1143
1781
  onChange: i,
@@ -1148,21 +1786,21 @@ function De({ items: e, value: r, onChange: i, label: a, "aria-label": o }) {
1148
1786
  })]
1149
1787
  });
1150
1788
  }
1151
- var $ = {
1152
- spinner: "_spinner_1lfif_1",
1153
- inner: "_inner_1lfif_7",
1154
- outer: "_outer_1lfif_8",
1155
- spin: "_spin_1lfif_1",
1156
- spinReverse: "_spinReverse_1lfif_1",
1157
- default: "_default_1lfif_24",
1158
- subtle: "_subtle_1lfif_31"
1789
+ var dt = {
1790
+ spinner: "_spinner_9jjxr_3",
1791
+ inner: "_inner_9jjxr_11",
1792
+ outer: "_outer_9jjxr_12",
1793
+ spin: "_spin_9jjxr_3",
1794
+ spinReverse: "_spinReverse_9jjxr_1",
1795
+ default: "_default_9jjxr_28",
1796
+ subtle: "_subtle_9jjxr_35"
1159
1797
  };
1160
1798
  //#endregion
1161
1799
  //#region src/components/Spinner.tsx
1162
- function Oe({ variant: e = "default", size: r = 64, label: i = "Loading", className: a, "data-testid": o }) {
1800
+ function ft({ variant: e = "default", size: r = 64, label: i = "Loading", className: a, "data-testid": o }) {
1163
1801
  let s = [
1164
- $.spinner,
1165
- $[e],
1802
+ dt.spinner,
1803
+ dt[e],
1166
1804
  a
1167
1805
  ].filter(Boolean).join(" ");
1168
1806
  return /* @__PURE__ */ n("div", {
@@ -1175,7 +1813,7 @@ function Oe({ variant: e = "default", size: r = 64, label: i = "Loading", classN
1175
1813
  },
1176
1814
  "data-testid": o,
1177
1815
  children: [/* @__PURE__ */ t("svg", {
1178
- className: $.inner,
1816
+ className: dt.inner,
1179
1817
  width: r,
1180
1818
  height: r,
1181
1819
  viewBox: "0 0 64 64",
@@ -1183,7 +1821,7 @@ function Oe({ variant: e = "default", size: r = 64, label: i = "Loading", classN
1183
1821
  "aria-hidden": "true",
1184
1822
  children: /* @__PURE__ */ t("path", { d: "M45.4273 17.5099C45.5053 17.5796 45.5088 17.6535 45.4377 17.7316L38.8829 24.8071C38.8634 24.828 38.8365 24.8404 38.8079 24.8416C38.7793 24.8428 38.7514 24.8326 38.7303 24.8134C36.6569 22.9045 34.221 22.0275 31.4225 22.1823C29.9153 22.2659 28.5572 22.6333 27.3483 23.2845C25.0295 24.5352 23.4428 26.4155 22.588 28.9253C20.717 34.4308 24.3708 40.1612 29.8184 41.6584C30.8097 41.9302 31.99 41.9735 33.3593 41.788C35.158 41.5433 36.8709 40.5854 38.3412 39.5627C38.4022 39.5203 38.4764 39.5014 38.5502 39.5094C38.6241 39.5175 38.6925 39.552 38.7428 39.6066L45.1742 46.6069C45.1803 46.6137 45.185 46.6217 45.188 46.6303C45.191 46.639 45.1923 46.6482 45.1917 46.6573C45.1911 46.6665 45.1887 46.6754 45.1846 46.6836C45.1805 46.6918 45.1748 46.6992 45.1679 46.7052C44.4401 47.3033 43.6502 47.8855 42.7982 48.4516C39.8799 50.3897 36.6339 51.4633 33.0602 51.6725C29.3847 51.8872 25.9031 51.1106 22.6152 49.3425C19.7917 47.8227 17.4903 45.764 15.7112 43.1663C14.4132 41.2707 13.4349 39.3097 12.8667 37.0717C11.973 33.5775 11.9925 30.1014 12.9253 26.6435C13.1679 25.7483 13.5465 24.8469 13.8414 23.9412C14.6703 21.4035 16.9915 18.887 18.9133 17.1899C26.3467 10.6186 38.1184 10.8908 45.4273 17.5099Z" })
1185
1823
  }), /* @__PURE__ */ t("svg", {
1186
- className: $.outer,
1824
+ className: dt.outer,
1187
1825
  width: r,
1188
1826
  height: r,
1189
1827
  viewBox: "0 0 64 64",
@@ -1195,15 +1833,15 @@ function Oe({ variant: e = "default", size: r = 64, label: i = "Loading", classN
1195
1833
  }
1196
1834
  //#endregion
1197
1835
  //#region src/utils/format.ts
1198
- function ke(e) {
1836
+ function pt(e) {
1199
1837
  let t = Math.floor(e / 60), n = e % 60;
1200
1838
  return `${t}h:${String(n).padStart(2, "0")}m`;
1201
1839
  }
1202
- function Ae(e, t) {
1840
+ function mt(e, t) {
1203
1841
  let n = Math.floor(e / 60), r = e % 60, i = (e) => String(e).padStart(2, "0");
1204
1842
  return `${i(n)}:${i(r)}:${i(t)}`;
1205
1843
  }
1206
1844
  //#endregion
1207
- export { m as Button, g as Card, W as Checkbox, se as CheckboxGroup, pe as DateField, be as Dropdown, S as FieldLabel, we as FilterSection, Ce as HighlightText, ge as Menu, _e as MenuDivider, ve as MenuItem, me as NumberField, fe as PasswordField, ce as RadioButton, le as RadioGroup, Oe as Spinner, ue as Switch, Te as Tabs, v as Tag, ee as TagGroup, de as TextField, De as Toggle, oe as Toolbar, ke as formatDuration, Ae as formatDurationHMS };
1845
+ export { _ as Button, Ve as Calendar, y as Card, me as Checkbox, ge as CheckboxGroup, Ee as DateField, Ke as DatePicker, nt as Dropdown, K as FieldLabel, st as FilterSection, at as HighlightText, Ye as Menu, Xe as MenuDivider, Qe as MenuItem, qe as NumberField, Te as PasswordField, ve as RadioButton, ye as RadioGroup, ft as Spinner, xe as Switch, ct as Tabs, U as Tag, de as TagGroup, we as TextArea, Se as TextField, ut as Toggle, pe as Toolbar, pt as formatDuration, mt as formatDurationHMS };
1208
1846
 
1209
1847
  //# sourceMappingURL=index.js.map