cattle-care-ui 0.1.21 → 0.1.23

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,27 +1,30 @@
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, useRef as f, useState as p } from "react";
4
+ var m = {
5
+ primary: "_primary_3dzs3_1",
6
+ secondary: "_secondary_3dzs3_2",
7
+ tertiary: "_tertiary_3dzs3_3",
8
+ outline: "_outline_3dzs3_4",
9
+ onDark: "_onDark_3dzs3_5",
10
+ dangerous: "_dangerous_3dzs3_6",
11
+ xs: "_xs_3dzs3_49",
12
+ sm: "_sm_3dzs3_55",
13
+ base: "_base_3dzs3_61",
14
+ icon: "_icon_3dzs3_67",
15
+ leadingIcon: "_leadingIcon_3dzs3_75",
16
+ trailingIcon: "_trailingIcon_3dzs3_78",
17
+ iconOnly: "_iconOnly_3dzs3_86",
18
+ fullWidth: "_fullWidth_3dzs3_99"
16
19
  };
17
20
  //#endregion
18
21
  //#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 }) {
22
+ function h({ variant: e = "primary", size: r = "base", leadingIcon: i, trailingIcon: a, fullWidth: o, children: s, className: c, ref: l, ...u }) {
20
23
  let d = !s && !!i, f = [
21
- p[e],
22
- p[r],
23
- d && p.iconOnly,
24
- o && p.fullWidth,
24
+ m[e],
25
+ m[r],
26
+ d && m.iconOnly,
27
+ o && m.fullWidth,
25
28
  c
26
29
  ].filter(Boolean).join(" ");
27
30
  return /* @__PURE__ */ n("button", {
@@ -31,18 +34,18 @@ function m({ variant: e = "primary", size: r = "base", leadingIcon: i, trailingI
31
34
  ...u,
32
35
  children: [
33
36
  i && /* @__PURE__ */ t("span", {
34
- className: `${p.icon} ${d ? "" : p.leadingIcon}`.trim(),
37
+ className: `${m.icon} ${d ? "" : m.leadingIcon}`.trim(),
35
38
  children: i
36
39
  }),
37
40
  s,
38
41
  a && /* @__PURE__ */ t("span", {
39
- className: `${p.icon} ${p.trailingIcon}`,
42
+ className: `${m.icon} ${m.trailingIcon}`,
40
43
  children: a
41
44
  })
42
45
  ]
43
46
  });
44
47
  }
45
- var h = {
48
+ var g = {
46
49
  wrap: "_wrap_1spnu_1",
47
50
  fluid: "_fluid_1spnu_9",
48
51
  backing: "_backing_1spnu_14",
@@ -54,102 +57,31 @@ var h = {
54
57
  };
55
58
  //#endregion
56
59
  //#region src/components/Card.tsx
57
- function g({ stacked: e, completed: r, interactive: i, draggable: a, dragging: o, fluid: s, children: c, ...l }) {
60
+ function _({ stacked: e, completed: r, interactive: i, draggable: a, dragging: o, fluid: s, children: c, ...l }) {
58
61
  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", {
62
+ className: `${g.wrap} ${s ? g.fluid : ""}`,
63
+ children: [e && /* @__PURE__ */ t("div", { className: `${g.backing} ${r ? g.completed : ""}` }), /* @__PURE__ */ t("div", {
61
64
  className: [
62
- h.card,
63
- r ? h.completed : "",
64
- i ? h.interactive : "",
65
- a ? h.grabbable : "",
66
- o ? h.dragging : ""
65
+ g.card,
66
+ r ? g.completed : "",
67
+ i ? g.interactive : "",
68
+ a ? g.grabbable : "",
69
+ o ? g.dragging : ""
67
70
  ].filter(Boolean).join(" "),
68
71
  ...l,
69
72
  children: c
70
73
  })]
71
74
  });
72
75
  }
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
76
  //#endregion
145
77
  //#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();
78
+ var v = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
147
79
  //#endregion
148
80
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
149
- function te(e, t, n = []) {
81
+ function y(e, t, n = []) {
150
82
  if (t == null) throw Error("[lucide]: iconNode is required when icon name is used");
151
83
  return {
152
- name: C(e),
84
+ name: v(e),
153
85
  size: 24,
154
86
  node: t,
155
87
  ...n.length > 0 ? { aliases: n } : {}
@@ -157,7 +89,7 @@ function te(e, t, n = []) {
157
89
  }
158
90
  //#endregion
159
91
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
160
- var w = (e) => {
92
+ var b = (e) => {
161
93
  let t = "", n = !1;
162
94
  for (let r of e) {
163
95
  if (r === "-" || r === "_" || r <= " ") {
@@ -167,10 +99,10 @@ var w = (e) => {
167
99
  t.length === 0 ? t += r.toLowerCase() : t += n ? r.toUpperCase() : r, n = !1;
168
100
  }
169
101
  return t;
170
- }, T = (e) => {
171
- let t = w(e);
102
+ }, x = (e) => {
103
+ let t = b(e);
172
104
  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 = {
105
+ }, S = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), C = {
174
106
  xmlns: "http://www.w3.org/2000/svg",
175
107
  width: 24,
176
108
  height: 24,
@@ -183,22 +115,22 @@ var w = (e) => {
183
115
  };
184
116
  //#endregion
185
117
  //#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
186
- function O(e) {
118
+ function w(e) {
187
119
  return e != null;
188
120
  }
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"];
121
+ function ee(e, t = {}) {
122
+ let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? C.width, a = e.size ?? e.height ?? C.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 ? S(...c) : S("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? C["stroke-width"]) * Number(e.size ?? e.width ?? C.width) / Number(t.size ?? t.width ?? C.width) : t.strokeWidth ?? C["stroke-width"];
191
123
  return [
192
124
  "svg",
193
125
  {
194
- ...Object.entries(D).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
126
+ ...Object.entries(C).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
195
127
  ..."color" in t && t.color && { [r("stroke")]: t.color },
196
- ..."size" in t && O(t.size) && {
128
+ ..."size" in t && w(t.size) && {
197
129
  [r("width")]: t.size,
198
130
  [r("height")]: t.size
199
131
  },
200
- ..."width" in t && O(t.width) && { [r("width")]: t.width },
201
- ..."height" in t && O(t.height) && { [r("height")]: t.height },
132
+ ..."width" in t && w(t.width) && { [r("width")]: t.width },
133
+ ..."height" in t && w(t.height) && { [r("height")]: t.height },
202
134
  [r("stroke-width")]: u,
203
135
  ...l && { [r("class")]: l },
204
136
  [r("viewBox")]: `0 0 ${i} ${a}`,
@@ -220,8 +152,8 @@ function k(e, t = {}) {
220
152
  }
221
153
  //#endregion
222
154
  //#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
223
- function A(e, t = {}) {
224
- return k(e, {
155
+ function te(e, t = {}) {
156
+ return ee(e, {
225
157
  ...t,
226
158
  attributeNames: {
227
159
  ...t.attributeNames,
@@ -235,44 +167,44 @@ function A(e, t = {}) {
235
167
  }
236
168
  //#endregion
237
169
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
238
- var j = (e) => {
170
+ var ne = (e) => {
239
171
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
240
172
  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 = {
173
+ }, re = i({}), T = () => c(re), E = o(({ color: e, size: t, width: n, height: r, strokeWidth: i, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
242
174
  node: u,
243
175
  aliases: [],
244
176
  size: 24
245
177
  }, ...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, {
178
+ let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = T() ?? {}, b = !!l || ne(f), [x, C, w = []] = te(d, {
247
179
  color: e ?? v,
248
180
  width: n ?? t ?? m,
249
181
  height: r ?? t ?? m,
250
182
  strokeWidth: i ?? h,
251
183
  absoluteStrokeWidth: o ?? g,
252
184
  nonScalingStroke: s ?? _,
253
- className: E(y, c),
185
+ className: S(y, c),
254
186
  hasA11yProp: b,
255
187
  attributes: f
256
188
  });
257
189
  return a(x, {
258
190
  ref: p,
259
- ...S
260
- }, [...ee.map(([e, t]) => a(e, t)), ...Array.isArray(l) ? l : [l]]);
191
+ ...C
192
+ }, [...w.map(([e, t]) => a(e, t)), ...Array.isArray(l) ? l : [l]]);
261
193
  });
262
194
  //#endregion
263
195
  //#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, {
196
+ function D(e, t = [], n = []) {
197
+ let r = typeof e == "string" ? y(e, t, n) : e, i = o(({ className: e, ...t }, n) => a(E, {
266
198
  ref: n,
267
199
  icon: r,
268
200
  className: e,
269
201
  ...t
270
202
  }));
271
- return r.name && (i.displayName = T(r.name)), i;
203
+ return r.name && (i.displayName = x(r.name)), i;
272
204
  }
273
205
  //#endregion
274
206
  //#region node_modules/lucide-react/dist/esm/icons/check.mjs
275
- var I = {
207
+ var O = {
276
208
  name: "check",
277
209
  size: 24,
278
210
  node: [["path", {
@@ -280,8 +212,8 @@ var I = {
280
212
  key: "1gmf2c"
281
213
  }]]
282
214
  };
283
- I.node;
284
- var ne = F(I), L = {
215
+ O.node;
216
+ var ie = D(O), k = {
285
217
  name: "chevron-down",
286
218
  size: 24,
287
219
  node: [["path", {
@@ -289,8 +221,8 @@ var ne = F(I), L = {
289
221
  key: "qrunsl"
290
222
  }]]
291
223
  };
292
- L.node;
293
- var re = F(L), R = {
224
+ k.node;
225
+ var A = D(k), ae = {
294
226
  name: "eye-off",
295
227
  size: 24,
296
228
  node: [
@@ -312,8 +244,8 @@ var re = F(L), R = {
312
244
  }]
313
245
  ]
314
246
  };
315
- R.node;
316
- var z = F(R), B = {
247
+ ae.node;
248
+ var oe = D(ae), j = {
317
249
  name: "eye",
318
250
  size: 24,
319
251
  node: [["path", {
@@ -326,8 +258,8 @@ var z = F(R), B = {
326
258
  key: "1v7zrd"
327
259
  }]]
328
260
  };
329
- B.node;
330
- var ie = F(B), V = {
261
+ j.node;
262
+ var M = D(j), N = {
331
263
  name: "search",
332
264
  size: 24,
333
265
  node: [["path", {
@@ -340,8 +272,150 @@ var ie = F(B), V = {
340
272
  key: "4ej97u"
341
273
  }]]
342
274
  };
343
- V.node;
344
- var ae = F(V), H = {
275
+ N.node;
276
+ var P = D(N), F = {
277
+ name: "x",
278
+ size: 24,
279
+ node: [["path", {
280
+ d: "M18 6 6 18",
281
+ key: "1bl5f8"
282
+ }], ["path", {
283
+ d: "m6 6 12 12",
284
+ key: "d8bk6v"
285
+ }]]
286
+ };
287
+ F.node;
288
+ var se = D(F), I = {
289
+ neutral: "_neutral_kgxl4_1",
290
+ pill: "_pill_kgxl4_2",
291
+ accent: "_accent_kgxl4_3",
292
+ success: "_success_kgxl4_4",
293
+ warning: "_warning_kgxl4_5",
294
+ danger: "_danger_kgxl4_6",
295
+ count: "_count_kgxl4_7",
296
+ chip: "_chip_kgxl4_8",
297
+ pressed: "_pressed_kgxl4_34",
298
+ slots: "_slots_kgxl4_100",
299
+ leading: "_leading_kgxl4_104",
300
+ interactive: "_interactive_kgxl4_110",
301
+ button: "_button_kgxl4_120",
302
+ disabled: "_disabled_kgxl4_132",
303
+ main: "_main_kgxl4_161",
304
+ remove: "_remove_kgxl4_162",
305
+ removable: "_removable_kgxl4_179"
306
+ }, L = {
307
+ chip: "_chip_uk2l3_3",
308
+ disabled: "_disabled_uk2l3_12",
309
+ selected: "_selected_uk2l3_25"
310
+ };
311
+ //#endregion
312
+ //#region src/components/Tag.tsx
313
+ function R(...e) {
314
+ return e.filter(Boolean).join(" ");
315
+ }
316
+ function ce(r) {
317
+ if (r.variant === "count") {
318
+ let { variant: e, children: n, ...i } = r;
319
+ return /* @__PURE__ */ t("span", {
320
+ className: I[e],
321
+ ...i,
322
+ children: n
323
+ });
324
+ }
325
+ 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, _ = R(I[i], h && L.chip, h && g && L.selected, h && c && L.disabled, (p || m) && I.interactive, g && I.pressed, c && I.disabled, (l != null || m) && I.slots), v = /* @__PURE__ */ n(e, { children: [l != null && /* @__PURE__ */ t("span", {
326
+ className: I.leading,
327
+ children: l
328
+ }), a] });
329
+ return m ? /* @__PURE__ */ n("span", {
330
+ className: R(_, I.removable),
331
+ ...f,
332
+ children: [p ? /* @__PURE__ */ t("button", {
333
+ type: "button",
334
+ className: R(I.main, I.slots),
335
+ "aria-pressed": s,
336
+ disabled: c,
337
+ onClick: o,
338
+ children: v
339
+ }) : v, /* @__PURE__ */ t("button", {
340
+ type: "button",
341
+ className: I.remove,
342
+ "aria-label": d,
343
+ disabled: c,
344
+ onClick: () => u(),
345
+ children: /* @__PURE__ */ t(se, {
346
+ size: 12,
347
+ "aria-hidden": "true"
348
+ })
349
+ })]
350
+ }) : p ? /* @__PURE__ */ t("button", {
351
+ type: "button",
352
+ className: R(_, I.button),
353
+ "aria-pressed": s,
354
+ disabled: c,
355
+ onClick: o,
356
+ ...f,
357
+ children: v
358
+ }) : /* @__PURE__ */ t("span", {
359
+ className: _,
360
+ ...f,
361
+ children: v
362
+ });
363
+ }
364
+ var z = {
365
+ group: "_group_1s11w_1",
366
+ sm: "_sm_1s11w_9",
367
+ chip: "_chip_1s11w_13 _chip_uk2l3_3",
368
+ base: "_base_1s11w_28",
369
+ selected: "_selected_1s11w_44 _selected_uk2l3_25"
370
+ }, B = {
371
+ group: "_group_16vyf_1",
372
+ groupLabel: "_groupLabel_16vyf_7"
373
+ }, V = { label: "_label_10zsm_1" };
374
+ //#endregion
375
+ //#region src/components/FieldLabel.tsx
376
+ function H({ children: e, htmlFor: n, className: r }) {
377
+ let i = `${V.label} ${r ?? ""}`.trim();
378
+ return n ? /* @__PURE__ */ t("label", {
379
+ className: i,
380
+ htmlFor: n,
381
+ children: e
382
+ }) : /* @__PURE__ */ t("span", {
383
+ className: i,
384
+ children: e
385
+ });
386
+ }
387
+ //#endregion
388
+ //#region src/components/TagGroup.tsx
389
+ function le({ items: e, value: r, onChange: i, size: a = "base", disabled: o = !1, label: s, ...c }) {
390
+ function l(e) {
391
+ i(r.includes(e) ? r.filter((t) => t !== e) : [...r, e]);
392
+ }
393
+ let u = /* @__PURE__ */ t("div", {
394
+ role: "group",
395
+ "aria-label": s ? void 0 : c["aria-label"],
396
+ className: `${z.group} ${z[a]}`,
397
+ children: e.map((e) => {
398
+ let n = r.includes(e.value), i = o || e.disabled;
399
+ return /* @__PURE__ */ t("button", {
400
+ type: "button",
401
+ "aria-pressed": n,
402
+ disabled: i,
403
+ className: [z.chip, n && z.selected].filter(Boolean).join(" "),
404
+ onClick: () => !i && l(e.value),
405
+ children: e.label
406
+ }, e.value);
407
+ })
408
+ });
409
+ return s ? /* @__PURE__ */ n("div", {
410
+ className: B.group,
411
+ ...c,
412
+ children: [/* @__PURE__ */ t(H, {
413
+ className: B.groupLabel,
414
+ children: s
415
+ }), u]
416
+ }) : u;
417
+ }
418
+ var U = {
345
419
  toolbar: "_toolbar_1s82l_1",
346
420
  searchWrap: "_searchWrap_1s82l_14",
347
421
  searchIcon: "_searchIcon_1s82l_33",
@@ -351,44 +425,44 @@ var ae = F(V), H = {
351
425
  };
352
426
  //#endregion
353
427
  //#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(() => {
428
+ function ue({ searchValue: e, onSearchChange: r, placeholder: i = "Search…", shortcutLabel: a = "⌘K", shortcutKey: o = "k", children: s }) {
429
+ let c = f(null);
430
+ return l(() => {
357
431
  function e(e) {
358
- (e.metaKey || e.ctrlKey) && e.key.toLowerCase() === o.toLowerCase() && (e.preventDefault(), l.current?.focus());
432
+ (e.metaKey || e.ctrlKey) && e.key.toLowerCase() === o.toLowerCase() && (e.preventDefault(), c.current?.focus());
359
433
  }
360
434
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
361
435
  }, [o]), /* @__PURE__ */ n("div", {
362
- className: H.toolbar,
436
+ className: U.toolbar,
363
437
  children: [/* @__PURE__ */ n("div", {
364
- className: H.searchWrap,
438
+ className: U.searchWrap,
365
439
  children: [
366
440
  /* @__PURE__ */ t("span", {
367
- className: H.searchIcon,
368
- children: /* @__PURE__ */ t(ae, {})
441
+ className: U.searchIcon,
442
+ children: /* @__PURE__ */ t(P, {})
369
443
  }),
370
444
  /* @__PURE__ */ t("input", {
371
- ref: l,
445
+ ref: c,
372
446
  type: "text",
373
- className: H.search,
447
+ className: U.search,
374
448
  placeholder: i,
375
449
  autoComplete: "off",
376
450
  value: e,
377
451
  onChange: (e) => r?.(e.target.value)
378
452
  }),
379
453
  a && /* @__PURE__ */ t("span", {
380
- className: H.searchShortcut,
454
+ className: U.searchShortcut,
381
455
  "aria-hidden": "true",
382
456
  children: a
383
457
  })
384
458
  ]
385
459
  }), s && /* @__PURE__ */ t("div", {
386
- className: H.controls,
460
+ className: U.controls,
387
461
  children: s
388
462
  })]
389
463
  });
390
464
  }
391
- var U = {
465
+ var W = {
392
466
  checkbox: "_checkbox_54v1q_1",
393
467
  control: "_control_54v1q_8",
394
468
  labelText: "_labelText_54v1q_17",
@@ -398,15 +472,15 @@ var U = {
398
472
  };
399
473
  //#endregion
400
474
  //#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 }) {
475
+ function de({ checked: e, onChange: r, onBlur: i, name: a, label: o, ariaLabel: s, disabled: c, className: l, ref: u }) {
402
476
  return /* @__PURE__ */ n("label", {
403
- className: `${U.checkbox} ${l ?? ""}`,
477
+ className: `${W.checkbox} ${l ?? ""}`,
404
478
  children: [/* @__PURE__ */ n("span", {
405
- className: U.control,
479
+ className: W.control,
406
480
  children: [/* @__PURE__ */ t("input", {
407
481
  ref: u,
408
482
  type: "checkbox",
409
- className: U.input,
483
+ className: W.input,
410
484
  checked: e,
411
485
  onChange: r,
412
486
  onBlur: i,
@@ -414,32 +488,32 @@ function W({ checked: e, onChange: r, onBlur: i, name: a, label: o, ariaLabel: s
414
488
  "aria-label": s,
415
489
  disabled: c
416
490
  }), /* @__PURE__ */ t("span", {
417
- className: U.box,
491
+ className: W.box,
418
492
  children: /* @__PURE__ */ t("svg", {
419
- className: U.icon,
493
+ className: W.icon,
420
494
  viewBox: "0 0 17 18",
421
495
  "aria-hidden": "true",
422
496
  children: /* @__PURE__ */ t("polyline", { points: "1 9 7 14 15 4" })
423
497
  })
424
498
  })]
425
499
  }), o && /* @__PURE__ */ t("span", {
426
- className: U.labelText,
500
+ className: W.labelText,
427
501
  children: o
428
502
  })]
429
503
  });
430
504
  }
431
- function se({ label: e, items: r, value: i, onChange: a, disabled: o, ...s }) {
505
+ function fe({ label: e, items: r, value: i, onChange: a, disabled: o, ...s }) {
432
506
  function c(e) {
433
507
  a(i.includes(e) ? i.filter((t) => t !== e) : [...i, e]);
434
508
  }
435
509
  return /* @__PURE__ */ n("div", {
436
510
  role: "group",
437
511
  "aria-label": e ? void 0 : s["aria-label"],
438
- className: b.group,
439
- children: [e && /* @__PURE__ */ t(S, {
440
- className: b.groupLabel,
512
+ className: B.group,
513
+ children: [e && /* @__PURE__ */ t(H, {
514
+ className: B.groupLabel,
441
515
  children: e
442
- }), r.map((e) => /* @__PURE__ */ t(W, {
516
+ }), r.map((e) => /* @__PURE__ */ t(de, {
443
517
  checked: i.includes(e.value),
444
518
  onChange: () => c(e.value),
445
519
  label: e.label,
@@ -457,7 +531,7 @@ var G = {
457
531
  };
458
532
  //#endregion
459
533
  //#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 }) {
534
+ function pe({ checked: e, onChange: r, onBlur: i, name: a, value: o, label: s, ariaLabel: c, disabled: l, className: u, ref: d }) {
461
535
  return /* @__PURE__ */ n("label", {
462
536
  className: `${G.radio} ${u ?? ""}`,
463
537
  children: [/* @__PURE__ */ n("span", {
@@ -483,15 +557,15 @@ function ce({ checked: e, onChange: r, onBlur: i, name: a, value: o, label: s, a
483
557
  })]
484
558
  });
485
559
  }
486
- function le({ label: e, name: r, items: i, value: a, onChange: o, disabled: s, ...c }) {
560
+ function me({ label: e, name: r, items: i, value: a, onChange: o, disabled: s, ...c }) {
487
561
  return /* @__PURE__ */ n("div", {
488
562
  role: "radiogroup",
489
563
  "aria-label": e ? void 0 : c["aria-label"],
490
- className: b.group,
491
- children: [e && /* @__PURE__ */ t(S, {
492
- className: b.groupLabel,
564
+ className: B.group,
565
+ children: [e && /* @__PURE__ */ t(H, {
566
+ className: B.groupLabel,
493
567
  children: e
494
- }), i.map((e) => /* @__PURE__ */ t(ce, {
568
+ }), i.map((e) => /* @__PURE__ */ t(pe, {
495
569
  name: r,
496
570
  value: e.value,
497
571
  checked: a === e.value,
@@ -513,7 +587,7 @@ var K = {
513
587
  };
514
588
  //#endregion
515
589
  //#region src/components/Switch.tsx
516
- function ue({ checked: e, onChange: r, size: i = "base", label: a, ariaLabel: o, disabled: s, className: c }) {
590
+ function he({ checked: e, onChange: r, size: i = "base", label: a, ariaLabel: o, disabled: s, className: c }) {
517
591
  return /* @__PURE__ */ n("label", {
518
592
  className: `${K.switch} ${c ?? ""}`,
519
593
  children: [/* @__PURE__ */ n("span", {
@@ -537,27 +611,27 @@ function ue({ checked: e, onChange: r, size: i = "base", label: a, ariaLabel: o,
537
611
  });
538
612
  }
539
613
  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"
614
+ field: "_field_duryc_1",
615
+ inputWrap: "_inputWrap_duryc_6",
616
+ input: "_input_duryc_6",
617
+ toolbar: "_toolbar_duryc_14",
618
+ errorWrap: "_errorWrap_duryc_24",
619
+ sm: "_sm_duryc_71",
620
+ base: "_base_duryc_79",
621
+ icon: "_icon_duryc_87",
622
+ helperText: "_helperText_duryc_125",
623
+ errorText: "_errorText_duryc_130",
624
+ trailing: "_trailing_duryc_134",
625
+ pickerInput: "_pickerInput_duryc_165"
552
626
  };
553
627
  //#endregion
554
628
  //#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;
629
+ function ge({ label: e, helperText: r, error: i, size: a = "base", variant: o = "default", leadingIcon: s, id: c, className: l, ref: d, ...f }) {
630
+ let p = u(), m = c ?? p;
557
631
  return /* @__PURE__ */ n("div", {
558
- className: [q.field, u].filter(Boolean).join(" "),
632
+ className: [q.field, l].filter(Boolean).join(" "),
559
633
  children: [
560
- e && /* @__PURE__ */ t(S, {
634
+ e && /* @__PURE__ */ t(H, {
561
635
  htmlFor: m,
562
636
  children: e
563
637
  }),
@@ -583,21 +657,133 @@ function de({ label: e, helperText: r, error: i, size: a = "base", variant: o =
583
657
  ]
584
658
  });
585
659
  }
660
+ var J = {
661
+ field: "_field_muf9j_3",
662
+ wrap: "_wrap_muf9j_1",
663
+ readOnly: "_readOnly_muf9j_14",
664
+ errorWrap: "_errorWrap_muf9j_1",
665
+ disabled: "_disabled_muf9j_1",
666
+ sm: "_sm_muf9j_27",
667
+ textarea: "_textarea_muf9j_30",
668
+ base: "_base_muf9j_33",
669
+ "resize-none": "_resize-none_muf9j_66",
670
+ "resize-vertical": "_resize-vertical_muf9j_69",
671
+ footer: "_footer_muf9j_73",
672
+ helperText: "_helperText_muf9j_78",
673
+ errorText: "_errorText_muf9j_83",
674
+ count: "_count_muf9j_87",
675
+ countNear: "_countNear_muf9j_93",
676
+ countLimit: "_countLimit_muf9j_96"
677
+ };
678
+ //#endregion
679
+ //#region src/components/TextArea.tsx
680
+ function _e(e, t) {
681
+ typeof e == "function" ? e(t) : e && (e.current = t);
682
+ }
683
+ function ve({ label: e, helperText: r, error: i, size: a = "base", resize: o = "vertical", autoResize: c = !1, maxRows: l = 8, showCount: m = !1, id: h, className: g, ref: _, rows: v = 3, value: y, defaultValue: b, maxLength: x, disabled: S, readOnly: C, onChange: w, onInput: ee, "aria-describedby": te, ...ne }) {
684
+ let re = u(), T = h ?? re, E = f(null), D = y !== void 0, [O, ie] = p(() => String(b ?? "").length), k = D ? String(y).length : O, A = s(() => {
685
+ let e = E.current;
686
+ if (!e || !c) return;
687
+ 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;
688
+ e.style.height = "auto";
689
+ let o = Math.min(e.scrollHeight, a);
690
+ e.style.height = `${o}px`, e.style.overflowY = e.scrollHeight > a ? "auto" : "hidden";
691
+ }, [c, l]);
692
+ d(() => {
693
+ A();
694
+ }, [
695
+ A,
696
+ y,
697
+ v,
698
+ a
699
+ ]), d(() => {
700
+ let e = E.current;
701
+ if (!c || !e || typeof ResizeObserver > "u") return;
702
+ let t = e.clientWidth, n = new ResizeObserver(() => {
703
+ e.clientWidth !== t && (t = e.clientWidth, A());
704
+ });
705
+ return n.observe(e), () => n.disconnect();
706
+ }, [c, A]), d(() => {
707
+ let e = E.current;
708
+ !c && e && (e.style.height = "", e.style.overflowY = "");
709
+ }, [c]);
710
+ let ae = (e) => {
711
+ D || ie(e.target.value.length), w?.(e);
712
+ }, oe = (e) => {
713
+ D || (ie(e.currentTarget.value.length), A()), ee?.(e);
714
+ }, j = `${T}-helper`, M = `${T}-error`, N = `${T}-count`, P = [
715
+ te,
716
+ i ? M : r ? j : null,
717
+ m ? N : null
718
+ ].filter(Boolean).join(" ") || void 0, F = x ? k / x : 0, se = F >= 1 ? J.countLimit : F >= .9 ? J.countNear : "", I = [
719
+ J.wrap,
720
+ J[a],
721
+ i ? J.errorWrap : "",
722
+ S ? J.disabled : "",
723
+ C ? J.readOnly : ""
724
+ ].filter(Boolean).join(" "), L = c ? "none" : o;
725
+ return /* @__PURE__ */ n("div", {
726
+ className: [J.field, g].filter(Boolean).join(" "),
727
+ children: [
728
+ e && /* @__PURE__ */ t(H, {
729
+ htmlFor: T,
730
+ children: e
731
+ }),
732
+ /* @__PURE__ */ t("div", {
733
+ className: I,
734
+ children: /* @__PURE__ */ t("textarea", {
735
+ ...ne,
736
+ ref: (e) => {
737
+ E.current = e, _e(_, e);
738
+ },
739
+ id: T,
740
+ className: `${J.textarea} ${J[`resize-${L}`]}`,
741
+ rows: v,
742
+ value: y,
743
+ defaultValue: b,
744
+ maxLength: x,
745
+ disabled: S,
746
+ readOnly: C,
747
+ "aria-invalid": i ? !0 : ne["aria-invalid"],
748
+ "aria-describedby": P,
749
+ onChange: ae,
750
+ onInput: oe
751
+ })
752
+ }),
753
+ (i || r || m) && /* @__PURE__ */ n("div", {
754
+ className: J.footer,
755
+ children: [i ? /* @__PURE__ */ t("span", {
756
+ id: M,
757
+ className: J.errorText,
758
+ children: i
759
+ }) : r ? /* @__PURE__ */ t("span", {
760
+ id: j,
761
+ className: J.helperText,
762
+ children: r
763
+ }) : null, m && /* @__PURE__ */ t("span", {
764
+ id: N,
765
+ className: `${J.count} ${se}`,
766
+ children: x ? `${k} / ${x}` : k
767
+ })]
768
+ })
769
+ ]
770
+ });
771
+ }
586
772
  //#endregion
587
773
  //#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);
774
+ function ye({ 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: m, ...h }) {
775
+ let g = u(), _ = l ?? g, [v, y] = p(c);
590
776
  return /* @__PURE__ */ n("div", {
591
777
  className: [q.field, d].filter(Boolean).join(" "),
592
778
  children: [
593
- e && /* @__PURE__ */ t(S, {
779
+ e && /* @__PURE__ */ t(H, {
594
780
  htmlFor: _,
595
781
  children: e
596
782
  }),
597
783
  /* @__PURE__ */ n("div", {
598
784
  className: `${q.inputWrap} ${q.default} ${q[a]} ${i ? q.errorWrap : ""}`,
599
785
  children: [/* @__PURE__ */ t("input", {
600
- ref: p,
786
+ ref: f,
601
787
  id: _,
602
788
  className: q.input,
603
789
  type: v ? "text" : "password",
@@ -612,7 +798,7 @@ function fe({ label: e, helperText: r, error: i, size: a = "base", showLabel: o
612
798
  "aria-controls": _,
613
799
  disabled: m,
614
800
  onClick: () => y((e) => !e),
615
- children: t(v ? z : ie, {})
801
+ children: t(v ? oe : M, {})
616
802
  })]
617
803
  }),
618
804
  i ? /* @__PURE__ */ t("span", {
@@ -627,15 +813,15 @@ function fe({ label: e, helperText: r, error: i, size: a = "base", showLabel: o
627
813
  }
628
814
  //#endregion
629
815
  //#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);
816
+ function be({ label: e, helperText: r, error: i, size: a = "base", openLabel: o = "Open calendar", id: s, className: c, ref: l, onClick: d, disabled: p, ...m }) {
817
+ let h = u(), g = s ?? h, _ = f(null);
632
818
  function v(e) {
633
- _.current = e, typeof u == "function" ? u(e) : u && (u.current = e);
819
+ _.current = e, typeof l == "function" ? l(e) : l && (l.current = e);
634
820
  }
635
821
  return /* @__PURE__ */ n("div", {
636
822
  className: [q.field, c].filter(Boolean).join(" "),
637
823
  children: [
638
- e && /* @__PURE__ */ t(S, {
824
+ e && /* @__PURE__ */ t(H, {
639
825
  htmlFor: g,
640
826
  children: e
641
827
  }),
@@ -649,7 +835,7 @@ function pe({ label: e, helperText: r, error: i, size: a = "base", openLabel: o
649
835
  inputMode: "none",
650
836
  readOnly: !0,
651
837
  disabled: p,
652
- onClick: f
838
+ onClick: d
653
839
  }), /* @__PURE__ */ t("button", {
654
840
  type: "button",
655
841
  tabIndex: -1,
@@ -657,7 +843,7 @@ function pe({ label: e, helperText: r, error: i, size: a = "base", openLabel: o
657
843
  "aria-label": o,
658
844
  disabled: p,
659
845
  onClick: () => _.current?.click(),
660
- children: /* @__PURE__ */ t(re, {})
846
+ children: /* @__PURE__ */ t(A, {})
661
847
  })]
662
848
  }),
663
849
  i ? /* @__PURE__ */ t("span", {
@@ -670,7 +856,7 @@ function pe({ label: e, helperText: r, error: i, size: a = "base", openLabel: o
670
856
  ]
671
857
  });
672
858
  }
673
- var J = {
859
+ var Y = {
674
860
  field: "_field_tr8ir_1",
675
861
  inputWrap: "_inputWrap_tr8ir_6",
676
862
  errorWrap: "_errorWrap_tr8ir_19",
@@ -684,64 +870,64 @@ var J = {
684
870
  };
685
871
  //#endregion
686
872
  //#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;
873
+ function xe({ label: e, helperText: r, error: i, size: a = "base", prefix: o, suffix: s, id: c, ...l }) {
874
+ let d = u(), f = c ?? d;
689
875
  return /* @__PURE__ */ n("div", {
690
- className: J.field,
876
+ className: Y.field,
691
877
  children: [
692
- e && /* @__PURE__ */ t(S, {
878
+ e && /* @__PURE__ */ t(H, {
693
879
  htmlFor: f,
694
880
  children: e
695
881
  }),
696
882
  /* @__PURE__ */ n("div", {
697
- className: `${J.inputWrap} ${J[a]} ${i ? J.errorWrap : ""}`,
883
+ className: `${Y.inputWrap} ${Y[a]} ${i ? Y.errorWrap : ""}`,
698
884
  children: [
699
885
  o && /* @__PURE__ */ t("span", {
700
- className: J.prefix,
886
+ className: Y.prefix,
701
887
  children: o
702
888
  }),
703
889
  /* @__PURE__ */ t("input", {
704
890
  id: f,
705
- className: J.input,
706
- ...u
891
+ className: Y.input,
892
+ ...l
707
893
  }),
708
894
  s && /* @__PURE__ */ t("span", {
709
- className: J.suffix,
895
+ className: Y.suffix,
710
896
  children: s
711
897
  })
712
898
  ]
713
899
  }),
714
900
  i ? /* @__PURE__ */ t("span", {
715
- className: J.errorText,
901
+ className: Y.errorText,
716
902
  children: i
717
903
  }) : r ? /* @__PURE__ */ t("span", {
718
- className: J.helperText,
904
+ className: Y.helperText,
719
905
  children: r
720
906
  }) : null
721
907
  ]
722
908
  });
723
909
  }
724
- var he = {
910
+ var Se = {
725
911
  menu: "_menu_471l2_1",
726
912
  divider: "_divider_471l2_15"
727
913
  };
728
914
  //#endregion
729
915
  //#region src/components/Menu.tsx
730
- function ge({ children: e, ...n }) {
916
+ function Ce({ children: e, ...n }) {
731
917
  return /* @__PURE__ */ t("div", {
732
918
  role: "menu",
733
- className: he.menu,
919
+ className: Se.menu,
734
920
  ...n,
735
921
  children: e
736
922
  });
737
923
  }
738
- function _e() {
924
+ function we() {
739
925
  return /* @__PURE__ */ t("div", {
740
- className: he.divider,
926
+ className: Se.divider,
741
927
  role: "separator"
742
928
  });
743
929
  }
744
- var Y = {
930
+ var X = {
745
931
  item: "_item_manci_1",
746
932
  icon: "_icon_manci_25",
747
933
  check: "_check_manci_26",
@@ -752,11 +938,11 @@ var Y = {
752
938
  };
753
939
  //#endregion
754
940
  //#region src/components/MenuItem.tsx
755
- function ve({ icon: e, trailing: r, selected: i, destructive: a, children: o, ...s }) {
941
+ function Te({ icon: e, trailing: r, selected: i, destructive: a, children: o, ...s }) {
756
942
  let c = [
757
- Y.item,
758
- i && Y.selected,
759
- a && Y.destructive
943
+ X.item,
944
+ i && X.selected,
945
+ a && X.destructive
760
946
  ].filter(Boolean).join(" ");
761
947
  return /* @__PURE__ */ n("button", {
762
948
  type: "button",
@@ -765,210 +951,287 @@ function ve({ icon: e, trailing: r, selected: i, destructive: a, children: o, ..
765
951
  ...s,
766
952
  children: [
767
953
  e && /* @__PURE__ */ t("span", {
768
- className: Y.icon,
954
+ className: X.icon,
769
955
  children: e
770
956
  }),
771
957
  /* @__PURE__ */ t("span", {
772
- className: Y.label,
958
+ className: X.label,
773
959
  children: o
774
960
  }),
775
961
  r && /* @__PURE__ */ t("span", {
776
- className: Y.trailing,
962
+ className: X.trailing,
777
963
  children: r
778
964
  }),
779
965
  i && /* @__PURE__ */ t("span", {
780
- className: Y.check,
781
- children: /* @__PURE__ */ t(ne, {})
966
+ className: X.check,
967
+ children: /* @__PURE__ */ t(ie, {})
782
968
  })
783
969
  ]
784
970
  });
785
971
  }
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"
972
+ var Z = {
973
+ field: "_field_xyp4n_1",
974
+ fieldInline: "_fieldInline_xyp4n_2",
975
+ trigger: "_trigger_xyp4n_17",
976
+ errorWrap: "_errorWrap_xyp4n_41",
977
+ sm: "_sm_xyp4n_60",
978
+ base: "_base_xyp4n_68",
979
+ icon: "_icon_xyp4n_77",
980
+ value: "_value_xyp4n_91",
981
+ placeholder: "_placeholder_xyp4n_99",
982
+ chevron: "_chevron_xyp4n_102",
983
+ chevronOpen: "_chevronOpen_xyp4n_117",
984
+ menuWrap: "_menuWrap_xyp4n_121",
985
+ menuIn: "_menuIn_xyp4n_1",
986
+ menuWrapAuto: "_menuWrapAuto_xyp4n_131",
987
+ menuWrapEnd: "_menuWrapEnd_xyp4n_137",
988
+ menuWrapUp: "_menuWrapUp_xyp4n_142",
989
+ menuWrapClosing: "_menuWrapClosing_xyp4n_154",
990
+ menuOut: "_menuOut_xyp4n_1",
991
+ list: "_list_xyp4n_178",
992
+ itemIn: "_itemIn_xyp4n_1",
993
+ highlight: "_highlight_xyp4n_195",
994
+ highlightInstant: "_highlightInstant_xyp4n_208",
995
+ pillChevron: "_pillChevron_xyp4n_233",
996
+ buttonChevron: "_buttonChevron_xyp4n_234",
997
+ pillTrigger: "_pillTrigger_xyp4n_240",
998
+ pillIcon: "_pillIcon_xyp4n_276",
999
+ search: "_search_xyp4n_308",
1000
+ noResults: "_noResults_xyp4n_326",
1001
+ helperText: "_helperText_xyp4n_331",
1002
+ errorText: "_errorText_xyp4n_336"
804
1003
  };
805
1004
  //#endregion
806
1005
  //#region src/components/Dropdown.tsx
807
- function ye(e) {
1006
+ function Ee(e) {
808
1007
  return e.searchText === void 0 ? typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : "" : e.searchText;
809
1008
  }
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("");
1009
+ function De({ variant: e = "field", triggerLabel: r, menuAlign: i = "start", label: a, helperText: o, error: s, size: c = "base", placeholder: m = "Select…", options: g, value: _, onChange: v, disabled: y, searchable: b, searchPlaceholder: x = "Search…", noResultsText: S = "No matches", defaultOpen: C = !1, autoFocus: w, className: ee, labelClassName: te, "aria-label": ne, "data-testid": re }) {
1010
+ let [T, E] = p(C), [D, O] = p(C), [ie, k] = p(""), [ae, oe] = p(!1), [j, M] = p(null), N = f(null), P = f(null), F = f(null), se = f(null), I = u(), L = u(), R = g.find((e) => e.value === _), ce = ie.trim().toLowerCase(), z = b && ce ? g.filter((e) => Ee(e).toLowerCase().includes(ce)) : g, B = z.filter((e) => !e.disabled).map((e) => e.value), V = e === "field";
1011
+ function le() {
1012
+ O(!0), E(!0);
814
1013
  }
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);
1014
+ function U() {
1015
+ E(!1), k("");
1016
+ }
1017
+ l(() => {
1018
+ if (!T) return;
1019
+ if (b) {
1020
+ se.current?.focus();
826
1021
  return;
827
1022
  }
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;
1023
+ let e = _ ?? B[0];
1024
+ (N.current?.querySelector(`[data-value="${e}"]`))?.focus();
1025
+ }, [T]), d(() => {
1026
+ if (!T || !F.current || !N.current) return;
1027
+ let e = N.current.getBoundingClientRect(), t = F.current.offsetHeight, n = window.innerHeight - e.bottom, r = e.top;
1028
+ oe(n < t + 8 && r > n);
1029
+ }, [T]), l(() => {
1030
+ if (!T) return;
832
1031
  function e(e) {
833
- A.current?.contains(e.target) || z();
1032
+ N.current?.contains(e.target) || U();
834
1033
  }
835
1034
  function t(e) {
836
- e.key === "Escape" && (z(), j.current?.focus());
1035
+ e.key === "Escape" && (U(), P.current?.focus());
837
1036
  }
838
1037
  return window.addEventListener("pointerdown", e), window.addEventListener("keydown", t), () => {
839
1038
  window.removeEventListener("pointerdown", e), window.removeEventListener("keydown", t);
840
1039
  };
841
- }, [w]);
842
- function B(e) {
843
- e !== void 0 && A.current?.querySelector(`[data-value="${e}"]`)?.focus();
1040
+ }, [T]);
1041
+ function ue(e) {
1042
+ e !== void 0 && N.current?.querySelector(`[data-value="${e}"]`)?.focus();
844
1043
  }
845
- function ie(e) {
846
- (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), T(!0));
1044
+ function W(e) {
1045
+ (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), le());
847
1046
  }
848
- function V(e) {
849
- e.key === "ArrowDown" && (e.preventDefault(), B(R[0])), e.key === "Enter" && R.length === 1 && (e.preventDefault(), H(R[0]));
1047
+ function de(e) {
1048
+ e.key === "ArrowDown" && (e.preventDefault(), ue(B[0])), e.key === "Enter" && B.length === 1 && (e.preventDefault(), pe(B[0]));
850
1049
  }
851
- function ae(e, t) {
852
- let n = R.indexOf(t);
1050
+ function fe(e, t) {
1051
+ let n = B.indexOf(t);
853
1052
  if (n === -1) return;
854
1053
  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();
1054
+ if (e.key === "ArrowDown" && (r = (n + 1) % B.length), e.key === "ArrowUp") {
1055
+ if (b && n === 0) {
1056
+ e.preventDefault(), se.current?.focus();
858
1057
  return;
859
1058
  }
860
- r = (n - 1 + R.length) % R.length;
1059
+ r = (n - 1 + B.length) % B.length;
861
1060
  }
862
- e.key === "Home" && (r = 0), e.key === "End" && (r = R.length - 1), r !== null && (e.preventDefault(), B(R[r]));
1061
+ e.key === "Home" && (r = 0), e.key === "End" && (r = B.length - 1), r !== null && (e.preventDefault(), ue(B[r]));
1062
+ }
1063
+ function G(e) {
1064
+ M((t) => ({
1065
+ top: e.offsetTop,
1066
+ height: e.offsetHeight,
1067
+ instant: !t
1068
+ }));
863
1069
  }
864
- function H(e) {
865
- m(e), z(), j.current?.focus();
1070
+ function pe(e) {
1071
+ v(e), U(), P.current?.focus();
866
1072
  }
1073
+ let me = r ?? (R ? R.label : m), K = {
1074
+ "aria-haspopup": "listbox",
1075
+ "aria-expanded": T,
1076
+ "aria-controls": T ? L : void 0,
1077
+ "aria-label": a ? void 0 : ne,
1078
+ autoFocus: w,
1079
+ disabled: y,
1080
+ onClick: () => T ? U() : le(),
1081
+ onKeyDown: W
1082
+ };
867
1083
  return /* @__PURE__ */ n("div", {
868
- className: [X.field, x].filter(Boolean).join(" "),
869
- ref: A,
870
- "data-testid": te,
1084
+ className: [V ? Z.field : Z.fieldInline, ee].filter(Boolean).join(" "),
1085
+ ref: N,
1086
+ "data-testid": re,
871
1087
  children: [
872
- e && /* @__PURE__ */ t(S, {
873
- htmlFor: P,
874
- className: ee,
875
- children: e
1088
+ V && a && /* @__PURE__ */ t(H, {
1089
+ htmlFor: I,
1090
+ className: te,
1091
+ children: a
876
1092
  }),
877
- /* @__PURE__ */ n("button", {
878
- ref: j,
879
- id: P,
1093
+ V ? /* @__PURE__ */ n("button", {
1094
+ ref: P,
1095
+ id: I,
880
1096
  type: "button",
881
1097
  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,
1098
+ className: `${Z.trigger} ${Z[c]} ${s ? Z.errorWrap : ""}`,
1099
+ ...K,
891
1100
  children: [
892
- I?.icon && /* @__PURE__ */ t("span", {
893
- className: X.icon,
894
- children: I.icon
1101
+ R?.icon && /* @__PURE__ */ t("span", {
1102
+ className: Z.icon,
1103
+ children: R.icon
1104
+ }),
1105
+ /* @__PURE__ */ t("span", {
1106
+ className: `${Z.value} ${!R && r === void 0 ? Z.placeholder : ""}`,
1107
+ children: me
895
1108
  }),
896
1109
  /* @__PURE__ */ t("span", {
897
- className: `${X.value} ${I ? "" : X.placeholder}`,
898
- children: I ? I.label : o
1110
+ className: `${Z.chevron} ${T ? Z.chevronOpen : ""}`,
1111
+ children: /* @__PURE__ */ t(A, {})
1112
+ })
1113
+ ]
1114
+ }) : e === "pill" ? /* @__PURE__ */ n("button", {
1115
+ ref: P,
1116
+ id: I,
1117
+ type: "button",
1118
+ className: Z.pillTrigger,
1119
+ ...K,
1120
+ children: [
1121
+ R?.icon && /* @__PURE__ */ t("span", {
1122
+ className: Z.pillIcon,
1123
+ children: R.icon
899
1124
  }),
1125
+ me,
900
1126
  /* @__PURE__ */ t("span", {
901
- className: `${X.chevron} ${w ? X.chevronOpen : ""}`,
902
- children: /* @__PURE__ */ t(re, {})
1127
+ className: `${Z.pillChevron} ${T ? Z.chevronOpen : ""}`,
1128
+ children: /* @__PURE__ */ t(A, {})
903
1129
  })
904
1130
  ]
1131
+ }) : /* @__PURE__ */ t(h, {
1132
+ ref: P,
1133
+ id: I,
1134
+ variant: e,
1135
+ size: c,
1136
+ leadingIcon: R?.icon,
1137
+ trailingIcon: /* @__PURE__ */ t("span", {
1138
+ className: `${Z.buttonChevron} ${T ? Z.chevronOpen : ""}`,
1139
+ children: /* @__PURE__ */ t(A, {})
1140
+ }),
1141
+ ...K,
1142
+ children: me
905
1143
  }),
906
- w && /* @__PURE__ */ t("div", {
907
- ref: M,
908
- className: `${X.menuWrap} ${O ? X.menuWrapUp : ""}`,
909
- children: /* @__PURE__ */ n(ge, {
1144
+ D && /* @__PURE__ */ t("div", {
1145
+ ref: F,
1146
+ className: [
1147
+ Z.menuWrap,
1148
+ !V && Z.menuWrapAuto,
1149
+ !V && i === "end" && Z.menuWrapEnd,
1150
+ ae && Z.menuWrapUp,
1151
+ !T && Z.menuWrapClosing
1152
+ ].filter(Boolean).join(" "),
1153
+ onAnimationEnd: (e) => {
1154
+ T || e.target !== e.currentTarget || (O(!1), oe(!1));
1155
+ },
1156
+ children: /* @__PURE__ */ n(Ce, {
910
1157
  role: "presentation",
911
- style: { width: "100%" },
912
- children: [g && /* @__PURE__ */ t("input", {
913
- ref: N,
1158
+ style: V ? { width: "100%" } : void 0,
1159
+ children: [b && /* @__PURE__ */ t("input", {
1160
+ ref: se,
914
1161
  type: "text",
915
- className: X.search,
916
- value: E,
917
- placeholder: _,
918
- "aria-label": _,
919
- "aria-controls": F,
1162
+ className: Z.search,
1163
+ value: ie,
1164
+ placeholder: x,
1165
+ "aria-label": x,
1166
+ "aria-controls": L,
920
1167
  autoComplete: "off",
921
1168
  spellCheck: !1,
922
- onChange: (e) => D(e.target.value),
923
- onKeyDown: V
924
- }), /* @__PURE__ */ t("div", {
925
- id: F,
1169
+ onChange: (e) => {
1170
+ k(e.target.value), M(null);
1171
+ },
1172
+ onKeyDown: de
1173
+ }), /* @__PURE__ */ n("div", {
1174
+ id: L,
926
1175
  role: "listbox",
927
- "aria-label": e ?? C,
928
- className: X.list,
929
- children: L.length === 0 ? /* @__PURE__ */ t("div", {
930
- className: X.noResults,
1176
+ "aria-label": a ?? ne,
1177
+ className: Z.list,
1178
+ onMouseLeave: () => M(null),
1179
+ onBlur: (e) => {
1180
+ e.currentTarget.contains(e.relatedTarget) || M(null);
1181
+ },
1182
+ children: [j && z.length > 0 && /* @__PURE__ */ t("span", {
1183
+ "aria-hidden": "true",
1184
+ className: `${Z.highlight} ${j.instant ? Z.highlightInstant : ""}`,
1185
+ style: {
1186
+ transform: `translateY(${j.top}px)`,
1187
+ height: j.height
1188
+ }
1189
+ }), z.length === 0 ? /* @__PURE__ */ t("div", {
1190
+ className: Z.noResults,
931
1191
  role: "presentation",
932
- children: v
933
- }) : L.map((e) => /* @__PURE__ */ t(ve, {
1192
+ children: S
1193
+ }) : z.map((e, n) => /* @__PURE__ */ t(Te, {
1194
+ style: { "--i": Math.min(n, 8) },
934
1195
  "data-value": e.value,
935
1196
  role: "option",
936
- "aria-selected": e.value === p,
1197
+ "aria-selected": e.value === _,
937
1198
  icon: e.icon,
938
- selected: e.value === p,
1199
+ selected: e.value === _,
939
1200
  disabled: e.disabled,
940
- onClick: () => H(e.value),
941
- onKeyDown: (t) => ae(t, e.value),
1201
+ onClick: () => pe(e.value),
1202
+ onMouseEnter: (t) => !e.disabled && G(t.currentTarget),
1203
+ onFocus: (e) => G(e.currentTarget),
1204
+ onKeyDown: (t) => fe(t, e.value),
942
1205
  children: e.label
943
- }, e.value))
1206
+ }, e.value))]
944
1207
  })]
945
1208
  })
946
1209
  }),
947
- i ? /* @__PURE__ */ t("span", {
948
- className: X.errorText,
949
- children: i
950
- }) : r ? /* @__PURE__ */ t("span", {
951
- className: X.helperText,
952
- children: r
1210
+ V && s ? /* @__PURE__ */ t("span", {
1211
+ className: Z.errorText,
1212
+ children: s
1213
+ }) : V && o ? /* @__PURE__ */ t("span", {
1214
+ className: Z.helperText,
1215
+ children: o
953
1216
  }) : null
954
1217
  ]
955
1218
  });
956
1219
  }
957
- var xe = { highlight: "_highlight_1anli_1" };
1220
+ var Oe = { highlight: "_highlight_1anli_1" };
958
1221
  //#endregion
959
1222
  //#region src/components/HighlightText.tsx
960
- function Se(e) {
1223
+ function ke(e) {
961
1224
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
962
1225
  }
963
- function Ce({ text: n, query: i }) {
1226
+ function Ae({ text: n, query: i }) {
964
1227
  if (!i) return /* @__PURE__ */ t(e, { children: n });
965
- let a = n.split(RegExp(`(${Se(i)})`, "ig"));
1228
+ let a = n.split(RegExp(`(${ke(i)})`, "ig"));
966
1229
  return /* @__PURE__ */ t(e, { children: a.map((e, n) => e.toLowerCase() === i.toLowerCase() ? /* @__PURE__ */ t("mark", {
967
- className: xe.highlight,
1230
+ className: Oe.highlight,
968
1231
  children: e
969
1232
  }, n) : /* @__PURE__ */ t(r, { children: e }, n)) });
970
1233
  }
971
- var Z = {
1234
+ var Q = {
972
1235
  group: "_group_10t2j_1",
973
1236
  btn: "_btn_10t2j_4",
974
1237
  caret: "_caret_10t2j_29",
@@ -990,24 +1253,24 @@ var Z = {
990
1253
  };
991
1254
  //#endregion
992
1255
  //#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;
1256
+ function je({ label: e, options: r, optionLabel: i, activeSet: a, onToggle: o, onSetAll: s, searchable: c }) {
1257
+ let [l, u] = p(""), d = l.trim().toLowerCase(), f = d ? r.filter((e) => i(e).toLowerCase().includes(d)) : r, m = r.length > 0 && a.size === r.length;
995
1258
  return /* @__PURE__ */ n("div", { children: [
996
1259
  /* @__PURE__ */ n("div", {
997
- className: Z.sectionHeader,
1260
+ className: Q.sectionHeader,
998
1261
  children: [/* @__PURE__ */ t("div", {
999
- className: Z.sectionLabel,
1262
+ className: Q.sectionLabel,
1000
1263
  children: e
1001
1264
  }), s && /* @__PURE__ */ t("button", {
1002
1265
  type: "button",
1003
- className: Z.allToggle,
1266
+ className: Q.allToggle,
1004
1267
  onClick: () => s(m ? [] : r),
1005
1268
  children: m ? "Deselect all" : "Select all"
1006
1269
  })]
1007
1270
  }),
1008
1271
  c && /* @__PURE__ */ t("input", {
1009
1272
  type: "text",
1010
- className: Z.search,
1273
+ className: Q.search,
1011
1274
  placeholder: `Search ${e.toLowerCase()}…`,
1012
1275
  autoComplete: "off",
1013
1276
  value: l,
@@ -1015,12 +1278,12 @@ function we({ label: e, options: r, optionLabel: i, activeSet: a, onToggle: o, o
1015
1278
  onChange: (e) => u(e.target.value)
1016
1279
  }),
1017
1280
  /* @__PURE__ */ n("div", {
1018
- className: Z.optionsList,
1019
- children: [p.length === 0 && /* @__PURE__ */ t("div", {
1020
- className: Z.empty,
1281
+ className: Q.optionsList,
1282
+ children: [f.length === 0 && /* @__PURE__ */ t("div", {
1283
+ className: Q.empty,
1021
1284
  children: "No match"
1022
- }), p.map((e) => /* @__PURE__ */ t(W, {
1023
- className: Z.option,
1285
+ }), f.map((e) => /* @__PURE__ */ t(de, {
1286
+ className: Q.option,
1024
1287
  checked: a.has(e),
1025
1288
  onChange: () => o(e),
1026
1289
  label: i(e)
@@ -1028,25 +1291,25 @@ function we({ label: e, options: r, optionLabel: i, activeSet: a, onToggle: o, o
1028
1291
  })
1029
1292
  ] });
1030
1293
  }
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"
1294
+ var $ = {
1295
+ line: "_line_1c7pz_1",
1296
+ box: "_box_1c7pz_2",
1297
+ indicator: "_indicator_1c7pz_9",
1298
+ settling: "_settling_1c7pz_17",
1299
+ indicatorLine: "_indicatorLine_1c7pz_21",
1300
+ indicatorBox: "_indicatorBox_1c7pz_27",
1301
+ tab: "_tab_1c7pz_35",
1302
+ selected: "_selected_1c7pz_77",
1303
+ icon: "_icon_1c7pz_86",
1304
+ iconOnly: "_iconOnly_1c7pz_100",
1305
+ sm: "_sm_1c7pz_156"
1043
1306
  };
1044
1307
  //#endregion
1045
1308
  //#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);
1309
+ function Me({ items: e, value: r, onChange: i, variant: a = "line", size: o = "base", ...s }) {
1310
+ let c = e.filter((e) => !e.disabled).map((e) => e.value), l = f(null), u = f(/* @__PURE__ */ new Map()), m = f(r), [h, g] = p(null), [_, v] = p("idle");
1311
+ d(() => {
1312
+ let e = u.current.get(r);
1050
1313
  e && (g({
1051
1314
  left: e.offsetLeft,
1052
1315
  width: e.offsetWidth
@@ -1060,11 +1323,11 @@ function Te({ items: e, value: r, onChange: i, variant: a = "line", size: o = "b
1060
1323
  function y(e) {
1061
1324
  e.propertyName === "scale" && (_ === "moving" ? v("settling") : _ === "settling" && v("idle"));
1062
1325
  }
1063
- u(() => {
1326
+ d(() => {
1064
1327
  let e = l.current;
1065
1328
  if (!e) return;
1066
1329
  let t = new ResizeObserver(() => {
1067
- let e = p.current.get(r);
1330
+ let e = u.current.get(r);
1068
1331
  e && g({
1069
1332
  left: e.offsetLeft,
1070
1333
  width: e.offsetWidth
@@ -1081,15 +1344,15 @@ function Te({ items: e, value: r, onChange: i, variant: a = "line", size: o = "b
1081
1344
  return /* @__PURE__ */ n("div", {
1082
1345
  ref: l,
1083
1346
  role: "tablist",
1084
- className: [Q[a], a === "box" && o === "sm" && Q.sm].filter(Boolean).join(" "),
1347
+ className: [$[a], a === "box" && o === "sm" && $.sm].filter(Boolean).join(" "),
1085
1348
  onKeyDown: b,
1086
1349
  ...s,
1087
1350
  children: [h && /* @__PURE__ */ t("span", {
1088
1351
  "aria-hidden": !0,
1089
1352
  className: [
1090
- Q.indicator,
1091
- a === "line" ? Q.indicatorLine : Q.indicatorBox,
1092
- _ === "settling" && Q.settling
1353
+ $.indicator,
1354
+ a === "line" ? $.indicatorLine : $.indicatorBox,
1355
+ _ === "settling" && $.settling
1093
1356
  ].filter(Boolean).join(" "),
1094
1357
  onTransitionEnd: y,
1095
1358
  style: {
@@ -1101,7 +1364,7 @@ function Te({ items: e, value: r, onChange: i, variant: a = "line", size: o = "b
1101
1364
  let a = e.value === r, o = !e.label && !!e.icon;
1102
1365
  return /* @__PURE__ */ n("button", {
1103
1366
  ref: (t) => {
1104
- t ? p.current.set(e.value, t) : p.current.delete(e.value);
1367
+ t ? u.current.set(e.value, t) : u.current.delete(e.value);
1105
1368
  },
1106
1369
  type: "button",
1107
1370
  role: "tab",
@@ -1110,34 +1373,34 @@ function Te({ items: e, value: r, onChange: i, variant: a = "line", size: o = "b
1110
1373
  disabled: e.disabled,
1111
1374
  tabIndex: a ? 0 : -1,
1112
1375
  className: [
1113
- Q.tab,
1114
- a && Q.selected,
1115
- o && Q.iconOnly
1376
+ $.tab,
1377
+ a && $.selected,
1378
+ o && $.iconOnly
1116
1379
  ].filter(Boolean).join(" "),
1117
1380
  onClick: () => !e.disabled && i(e.value),
1118
1381
  children: [e.icon && /* @__PURE__ */ t("span", {
1119
- className: Q.icon,
1382
+ className: $.icon,
1120
1383
  children: e.icon
1121
1384
  }), e.label]
1122
1385
  }, e.value);
1123
1386
  })]
1124
1387
  });
1125
1388
  }
1126
- var Ee = {
1389
+ var Ne = {
1127
1390
  root: "_root_17koe_1",
1128
1391
  label: "_label_17koe_7"
1129
1392
  };
1130
1393
  //#endregion
1131
1394
  //#region src/components/Toggle.tsx
1132
- function De({ items: e, value: r, onChange: i, label: a, "aria-label": o }) {
1133
- let s = l();
1395
+ function Pe({ items: e, value: r, onChange: i, label: a, "aria-label": o }) {
1396
+ let s = u();
1134
1397
  return /* @__PURE__ */ n("div", {
1135
- className: Ee.root,
1398
+ className: Ne.root,
1136
1399
  children: [a && /* @__PURE__ */ t("span", {
1137
1400
  id: s,
1138
- className: Ee.label,
1401
+ className: Ne.label,
1139
1402
  children: a
1140
- }), /* @__PURE__ */ t(Te, {
1403
+ }), /* @__PURE__ */ t(Me, {
1141
1404
  items: e,
1142
1405
  value: r,
1143
1406
  onChange: i,
@@ -1148,21 +1411,21 @@ function De({ items: e, value: r, onChange: i, label: a, "aria-label": o }) {
1148
1411
  })]
1149
1412
  });
1150
1413
  }
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"
1414
+ var Fe = {
1415
+ spinner: "_spinner_9jjxr_3",
1416
+ inner: "_inner_9jjxr_11",
1417
+ outer: "_outer_9jjxr_12",
1418
+ spin: "_spin_9jjxr_3",
1419
+ spinReverse: "_spinReverse_9jjxr_1",
1420
+ default: "_default_9jjxr_28",
1421
+ subtle: "_subtle_9jjxr_35"
1159
1422
  };
1160
1423
  //#endregion
1161
1424
  //#region src/components/Spinner.tsx
1162
- function Oe({ variant: e = "default", size: r = 64, label: i = "Loading", className: a, "data-testid": o }) {
1425
+ function Ie({ variant: e = "default", size: r = 64, label: i = "Loading", className: a, "data-testid": o }) {
1163
1426
  let s = [
1164
- $.spinner,
1165
- $[e],
1427
+ Fe.spinner,
1428
+ Fe[e],
1166
1429
  a
1167
1430
  ].filter(Boolean).join(" ");
1168
1431
  return /* @__PURE__ */ n("div", {
@@ -1175,7 +1438,7 @@ function Oe({ variant: e = "default", size: r = 64, label: i = "Loading", classN
1175
1438
  },
1176
1439
  "data-testid": o,
1177
1440
  children: [/* @__PURE__ */ t("svg", {
1178
- className: $.inner,
1441
+ className: Fe.inner,
1179
1442
  width: r,
1180
1443
  height: r,
1181
1444
  viewBox: "0 0 64 64",
@@ -1183,7 +1446,7 @@ function Oe({ variant: e = "default", size: r = 64, label: i = "Loading", classN
1183
1446
  "aria-hidden": "true",
1184
1447
  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
1448
  }), /* @__PURE__ */ t("svg", {
1186
- className: $.outer,
1449
+ className: Fe.outer,
1187
1450
  width: r,
1188
1451
  height: r,
1189
1452
  viewBox: "0 0 64 64",
@@ -1195,15 +1458,15 @@ function Oe({ variant: e = "default", size: r = 64, label: i = "Loading", classN
1195
1458
  }
1196
1459
  //#endregion
1197
1460
  //#region src/utils/format.ts
1198
- function ke(e) {
1461
+ function Le(e) {
1199
1462
  let t = Math.floor(e / 60), n = e % 60;
1200
1463
  return `${t}h:${String(n).padStart(2, "0")}m`;
1201
1464
  }
1202
- function Ae(e, t) {
1465
+ function Re(e, t) {
1203
1466
  let n = Math.floor(e / 60), r = e % 60, i = (e) => String(e).padStart(2, "0");
1204
1467
  return `${i(n)}:${i(r)}:${i(t)}`;
1205
1468
  }
1206
1469
  //#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 };
1470
+ export { h as Button, _ as Card, de as Checkbox, fe as CheckboxGroup, be as DateField, De as Dropdown, H as FieldLabel, je as FilterSection, Ae as HighlightText, Ce as Menu, we as MenuDivider, Te as MenuItem, xe as NumberField, ye as PasswordField, pe as RadioButton, me as RadioGroup, Ie as Spinner, he as Switch, Me as Tabs, ce as Tag, le as TagGroup, ve as TextArea, ge as TextField, Pe as Toggle, ue as Toolbar, Le as formatDuration, Re as formatDurationHMS };
1208
1471
 
1209
1472
  //# sourceMappingURL=index.js.map