@emporix/component-library 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,17 +1,17 @@
1
- import { jsxs as D, jsx as u } from "react/jsx-runtime";
1
+ import { jsxs as I, jsx as u } from "react/jsx-runtime";
2
2
  import F, { useState as T, useRef as X, useMemo as me, useEffect as se, useId as he } from "react";
3
- const $e = "_primaryButton_uyzzr_1", Le = "_primaryButtonDisabled_uyzzr_34", Ae = "_spinner_uyzzr_42", _e = {
3
+ const $e = "_primaryButton_gvcke_1", Le = "_primaryButtonDisabled_gvcke_33", Ae = "_spinner_gvcke_41", _e = {
4
4
  primaryButton: $e,
5
5
  primaryButtonDisabled: Le,
6
6
  spinner: Ae
7
7
  };
8
- var Ne = {
8
+ var Ce = {
9
9
  color: void 0,
10
10
  size: void 0,
11
11
  className: void 0,
12
12
  style: void 0,
13
13
  attr: void 0
14
- }, ge = F.createContext && /* @__PURE__ */ F.createContext(Ne), qe = ["attr", "size", "title"];
14
+ }, ge = F.createContext && /* @__PURE__ */ F.createContext(Ce), qe = ["attr", "size", "title"];
15
15
  function Fe(e, t) {
16
16
  if (e == null) return {};
17
17
  var n, o, s = We(e, t);
@@ -77,15 +77,15 @@ function Ve(e, t) {
77
77
  }
78
78
  return (t === "string" ? String : Number)(e);
79
79
  }
80
- function ke(e) {
80
+ function Ne(e) {
81
81
  return e && e.map((t, n) => /* @__PURE__ */ F.createElement(t.tag, de({
82
82
  key: n
83
- }, t.attr), ke(t.child)));
83
+ }, t.attr), Ne(t.child)));
84
84
  }
85
85
  function ie(e) {
86
86
  return (t) => /* @__PURE__ */ F.createElement(He, ue({
87
87
  attr: de({}, e.attr)
88
- }, t), ke(e.child));
88
+ }, t), Ne(e.child));
89
89
  }
90
90
  function He(e) {
91
91
  var t = (n) => {
@@ -108,7 +108,7 @@ function He(e) {
108
108
  xmlns: "http://www.w3.org/2000/svg"
109
109
  }), a && /* @__PURE__ */ F.createElement("title", null, a), e.children);
110
110
  };
111
- return ge !== void 0 ? /* @__PURE__ */ F.createElement(ge.Consumer, null, (n) => t(n)) : t(Ne);
111
+ return ge !== void 0 ? /* @__PURE__ */ F.createElement(ge.Consumer, null, (n) => t(n)) : t(Ce);
112
112
  }
113
113
  function Ke(e) {
114
114
  return ie({ attr: { viewBox: "0 0 24 24", fill: "none" }, child: [{ tag: "path", attr: { opacity: "0.2", fillRule: "evenodd", clipRule: "evenodd", d: "M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", fill: "currentColor" }, child: [] }, { tag: "path", attr: { d: "M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z", fill: "currentColor" }, child: [] }] })(e);
@@ -127,7 +127,7 @@ const nn = ({
127
127
  t ? _e.primaryButtonDisabled : "",
128
128
  s
129
129
  ].filter(Boolean).join(" ");
130
- return /* @__PURE__ */ D(
130
+ return /* @__PURE__ */ I(
131
131
  "button",
132
132
  {
133
133
  type: "button",
@@ -142,7 +142,7 @@ const nn = ({
142
142
  ]
143
143
  }
144
144
  );
145
- }, Me = "_secondaryButton_1s7ft_1", Ze = "_secondaryButtonDisabled_1s7ft_33", Be = {
145
+ }, Me = "_secondaryButton_15dkw_1", Ze = "_secondaryButtonDisabled_15dkw_32", Be = {
146
146
  secondaryButton: Me,
147
147
  secondaryButtonDisabled: Ze
148
148
  }, rn = ({
@@ -190,17 +190,17 @@ const nn = ({
190
190
  }) => {
191
191
  var b;
192
192
  const i = [q.tabsContainer, o].filter(Boolean).join(" ");
193
- return /* @__PURE__ */ D("div", { className: i, "data-testid": s, ...a, children: [
193
+ return /* @__PURE__ */ I("div", { className: i, "data-testid": s, ...a, children: [
194
194
  /* @__PURE__ */ u("div", { className: q.tabsHeader, children: e.map((l) => {
195
- const p = l.id === t, k = [
195
+ const p = l.id === t, N = [
196
196
  q.tabItem,
197
197
  p ? q.active : q.inactive
198
198
  ].filter(Boolean).join(" ");
199
- return /* @__PURE__ */ D(
199
+ return /* @__PURE__ */ I(
200
200
  "button",
201
201
  {
202
202
  type: "button",
203
- className: k,
203
+ className: N,
204
204
  onClick: () => n(l.id),
205
205
  "data-testid": `${s}-tab-${l.id}`,
206
206
  children: [
@@ -226,7 +226,7 @@ function ot(e) {
226
226
  function xe(e) {
227
227
  return ie({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "6 9 12 15 18 9" }, child: [] }] })(e);
228
228
  }
229
- const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18", at = "_trigger_yz8m1_23", ct = "_triggerDisabled_yz8m1_47", ut = "_triggerInput_yz8m1_56", dt = "_value_yz8m1_74", ft = "_placeholder_yz8m1_81", pt = "_chevron_yz8m1_85", _t = "_open_yz8m1_92", yt = "_panel_yz8m1_116", mt = "_panelClosing_yz8m1_133", ht = "_filterWrapper_yz8m1_137", vt = "_filterInput_yz8m1_144", gt = "_filterIcon_yz8m1_163", bt = "_list_yz8m1_174", Bt = "_option_yz8m1_183", Ct = "_optionSelected_yz8m1_195", wt = "_optionHighlighted_yz8m1_199", Nt = "_optionDisabled_yz8m1_203", kt = "_empty_yz8m1_212", xt = "_disabled_yz8m1_219", v = {
229
+ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18", at = "_trigger_yz8m1_23", ct = "_triggerDisabled_yz8m1_47", ut = "_triggerInput_yz8m1_56", dt = "_value_yz8m1_74", ft = "_placeholder_yz8m1_81", pt = "_chevron_yz8m1_85", _t = "_open_yz8m1_92", yt = "_panel_yz8m1_116", mt = "_panelClosing_yz8m1_133", ht = "_filterWrapper_yz8m1_137", vt = "_filterInput_yz8m1_144", gt = "_filterIcon_yz8m1_163", bt = "_list_yz8m1_174", Bt = "_option_yz8m1_183", kt = "_optionSelected_yz8m1_195", wt = "_optionHighlighted_yz8m1_199", Ct = "_optionDisabled_yz8m1_203", Nt = "_empty_yz8m1_212", xt = "_disabled_yz8m1_219", v = {
230
230
  dropdown: st,
231
231
  label: it,
232
232
  required: lt,
@@ -244,15 +244,15 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
244
244
  filterIcon: gt,
245
245
  list: bt,
246
246
  option: Bt,
247
- optionSelected: Ct,
247
+ optionSelected: kt,
248
248
  optionHighlighted: wt,
249
- optionDisabled: Nt,
250
- empty: kt,
249
+ optionDisabled: Ct,
250
+ empty: Nt,
251
251
  disabled: xt
252
252
  }, K = (e, t) => {
253
253
  const o = e[t];
254
254
  return o != null ? String(o) : "";
255
- }, Y = (e, t) => e[t], S = (e, t) => t == null ? !1 : !!e[t], sn = ({
255
+ }, Y = (e, t) => e[t], z = (e, t) => t == null ? !1 : !!e[t], sn = ({
256
256
  value: e,
257
257
  onChange: t,
258
258
  onEditEnd: n,
@@ -263,27 +263,27 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
263
263
  placeholder: b = "Select",
264
264
  filter: l = !1,
265
265
  editable: p = !1,
266
- disabled: k = !1,
266
+ disabled: N = !1,
267
267
  required: P = !1,
268
- label: I,
268
+ label: S,
269
269
  inputId: L,
270
270
  className: H = "",
271
271
  panelClassName: h = "",
272
272
  valueTemplate: y,
273
- itemTemplate: C,
273
+ itemTemplate: k,
274
274
  "data-testid": g
275
275
  }) => {
276
276
  const x = o.find(
277
277
  (r) => Y(r, a) === e
278
- ), N = x ? K(x, s) : "", [c, A] = T(!1), [O, le] = T(!1), [ee, ae] = T(""), [Q, w] = T(N), [_, d] = T(0), z = X(null), W = X(null), E = X(null), G = X(null), U = X(null), te = X(!1), j = me(
278
+ ), C = x ? K(x, s) : "", [c, A] = T(!1), [O, le] = T(!1), [ee, ae] = T(""), [Q, w] = T(C), [_, d] = T(0), D = X(null), W = X(null), E = X(null), G = X(null), U = X(null), te = X(!1), j = me(
279
279
  () => l && !p ? o.filter(
280
280
  (r) => K(r, s).toLowerCase().includes(ee.toLowerCase())
281
281
  ) : o,
282
282
  [l, p, o, s, ee]
283
283
  );
284
284
  se(() => {
285
- p && w(N);
286
- }, [p, e, N]), se(() => {
285
+ p && w(C);
286
+ }, [p, e, C]), se(() => {
287
287
  c && l && !p && (ae(""), d(0), setTimeout(() => {
288
288
  var r;
289
289
  return (r = E.current) == null ? void 0 : r.focus();
@@ -293,8 +293,8 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
293
293
  const r = j.findIndex(
294
294
  (B) => Y(B, a) === e
295
295
  ), f = j.findIndex(
296
- (B) => !S(B, i)
297
- ), m = r >= 0 && !S(j[r], i);
296
+ (B) => !z(B, i)
297
+ ), m = r >= 0 && !z(j[r], i);
298
298
  d(m ? r : f >= 0 ? f : 0);
299
299
  }, [c, e, j, a, i]), se(() => {
300
300
  const r = U.current;
@@ -304,19 +304,19 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
304
304
  te.current = !0, le(!0);
305
305
  }, fe = (r) => {
306
306
  var f;
307
- (te.current || (f = r.animationName) != null && f.includes("menuOut")) && (te.current = !1, A(!1), le(!1), p && w(N));
307
+ (te.current || (f = r.animationName) != null && f.includes("menuOut")) && (te.current = !1, A(!1), le(!1), p && w(C));
308
308
  };
309
309
  se(() => {
310
310
  if (!c && !O) return;
311
311
  const r = (f) => {
312
- z.current && !z.current.contains(f.target) && (p && w(N), ne());
312
+ D.current && !D.current.contains(f.target) && (p && w(C), ne());
313
313
  };
314
314
  return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
315
- }, [c, O, p, N]);
315
+ }, [c, O, p, C]);
316
316
  const re = () => {
317
- k || A((r) => !r);
317
+ N || A((r) => !r);
318
318
  }, oe = (r, f) => {
319
- if (S(r, i)) return;
319
+ if (z(r, i)) return;
320
320
  const m = Y(r, a);
321
321
  p && w(K(r, s)), t == null || t({
322
322
  value: m ?? null,
@@ -329,8 +329,8 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
329
329
  const f = Q.trim(), m = f.toLowerCase(), B = o.find((J) => {
330
330
  const V = K(J, s).toLowerCase();
331
331
  return V === m || V.startsWith(m);
332
- }), R = B && !S(B, i) ? Y(B, a) : null;
333
- B && !S(B, i) && (w(K(B, s)), t == null || t({
332
+ }), R = B && !z(B, i) ? Y(B, a) : null;
333
+ B && !z(B, i) && (w(K(B, s)), t == null || t({
334
334
  value: R,
335
335
  originalEvent: r
336
336
  })), n == null || n({
@@ -350,7 +350,7 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
350
350
  if (r.key === "ArrowDown") {
351
351
  r.preventDefault(), d((f) => {
352
352
  for (let m = f + 1; m < j.length; m++)
353
- if (!S(j[m], i))
353
+ if (!z(j[m], i))
354
354
  return m;
355
355
  return f;
356
356
  });
@@ -359,7 +359,7 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
359
359
  if (r.key === "ArrowUp") {
360
360
  r.preventDefault(), d((f) => {
361
361
  for (let m = f - 1; m >= 0; m--)
362
- if (!S(j[m], i))
362
+ if (!z(j[m], i))
363
363
  return m;
364
364
  return f;
365
365
  });
@@ -372,8 +372,8 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
372
372
  const m = f.toLowerCase(), B = o.find((J) => {
373
373
  const V = K(J, s).toLowerCase();
374
374
  return V === m || V.startsWith(m);
375
- }), R = B && !S(B, i) ? Y(B, a) : null;
376
- B && !S(B, i) && oe(B, r), n == null || n({
375
+ }), R = B && !z(B, i) ? Y(B, a) : null;
376
+ B && !z(B, i) && oe(B, r), n == null || n({
377
377
  value: f,
378
378
  selectedValue: R,
379
379
  originalEvent: r
@@ -382,28 +382,28 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
382
382
  n == null || n({ value: "", selectedValue: null, originalEvent: r });
383
383
  } else if (j[_]) {
384
384
  const f = j[_];
385
- S(f, i) || oe(f, r);
385
+ z(f, i) || oe(f, r);
386
386
  }
387
387
  }
388
388
  }, Oe = [
389
389
  v.dropdown,
390
- k ? v.disabled : "",
390
+ N ? v.disabled : "",
391
391
  c ? v.open : "",
392
392
  H
393
- ].filter(Boolean).join(" "), ze = [
394
- v.trigger,
395
- k ? v.triggerDisabled : ""
396
393
  ].filter(Boolean).join(" "), De = [
394
+ v.trigger,
395
+ N ? v.triggerDisabled : ""
396
+ ].filter(Boolean).join(" "), Ie = [
397
397
  v.panel,
398
398
  O ? v.panelClosing : "",
399
399
  h
400
- ].filter(Boolean).join(" "), Ie = he(), ce = L ?? `dropdown-${Ie.replace(/[^a-zA-Z0-9_-]/g, "")}`, pe = `${ce}-panel`;
401
- return /* @__PURE__ */ D("div", { className: Oe, ref: z, "data-testid": g, children: [
402
- I != null && /* @__PURE__ */ D("label", { htmlFor: ce, className: v.label, children: [
403
- I,
400
+ ].filter(Boolean).join(" "), Se = he(), ce = L ?? `dropdown-${Se.replace(/[^a-zA-Z0-9_-]/g, "")}`, pe = `${ce}-panel`;
401
+ return /* @__PURE__ */ I("div", { className: Oe, ref: D, "data-testid": g, children: [
402
+ S != null && /* @__PURE__ */ I("label", { htmlFor: ce, className: v.label, children: [
403
+ S,
404
404
  P && /* @__PURE__ */ u("span", { className: v.required, children: "*" })
405
405
  ] }),
406
- /* @__PURE__ */ D(
406
+ /* @__PURE__ */ I(
407
407
  "div",
408
408
  {
409
409
  id: p ? void 0 : ce,
@@ -411,10 +411,10 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
411
411
  "aria-expanded": c || O,
412
412
  "aria-haspopup": "listbox",
413
413
  "aria-controls": c || O ? pe : void 0,
414
- "aria-disabled": k,
415
- "aria-label": typeof I == "string" ? I : void 0,
416
- tabIndex: p || k ? -1 : 0,
417
- className: ze,
414
+ "aria-disabled": N,
415
+ "aria-label": typeof S == "string" ? S : void 0,
416
+ tabIndex: p || N ? -1 : 0,
417
+ className: De,
418
418
  onClick: p ? void 0 : re,
419
419
  onKeyDown: p ? void 0 : ve,
420
420
  "data-testid": g && !p ? `${g}-trigger` : void 0,
@@ -431,17 +431,17 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
431
431
  w(r.target.value), !c && !O && A(!0), d(0);
432
432
  },
433
433
  onFocus: () => {
434
- !k && !c && !O && A(!0);
434
+ !N && !c && !O && A(!0);
435
435
  },
436
436
  onKeyDown: ve,
437
437
  placeholder: b,
438
- disabled: k,
438
+ disabled: N,
439
439
  "aria-autocomplete": "list",
440
440
  "aria-controls": c || O ? pe : void 0,
441
441
  "aria-expanded": c || O,
442
442
  "data-testid": g ? `${g}-trigger` : void 0
443
443
  }
444
- ) : /* @__PURE__ */ u("span", { className: v.value, children: y ? y(x ?? null) : N || /* @__PURE__ */ u("span", { className: v.placeholder, children: b }) }),
444
+ ) : /* @__PURE__ */ u("span", { className: v.value, children: y ? y(x ?? null) : C || /* @__PURE__ */ u("span", { className: v.placeholder, children: b }) }),
445
445
  /* @__PURE__ */ u(
446
446
  xe,
447
447
  {
@@ -453,17 +453,17 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
453
453
  ]
454
454
  }
455
455
  ),
456
- (c || O) && /* @__PURE__ */ D(
456
+ (c || O) && /* @__PURE__ */ I(
457
457
  "div",
458
458
  {
459
459
  ref: W,
460
460
  id: pe,
461
- className: De,
461
+ className: Ie,
462
462
  role: "presentation",
463
463
  onAnimationEnd: fe,
464
464
  "data-testid": g ? `${g}-panel` : void 0,
465
465
  children: [
466
- l && !p && /* @__PURE__ */ D("div", { className: v.filterWrapper, children: [
466
+ l && !p && /* @__PURE__ */ I("div", { className: v.filterWrapper, children: [
467
467
  /* @__PURE__ */ u(
468
468
  "input",
469
469
  {
@@ -486,7 +486,7 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
486
486
  /* @__PURE__ */ u(nt, { className: v.filterIcon, "aria-hidden": !0 })
487
487
  ] }),
488
488
  /* @__PURE__ */ u("ul", { className: v.list, role: "listbox", "aria-label": "Options", children: j.length === 0 ? /* @__PURE__ */ u("li", { className: v.empty, children: "No results" }) : j.map((r, f) => {
489
- const m = Y(r, a), B = K(r, s), R = S(r, i), J = e === m, V = f === _, Se = m != null ? String(m) : `option-${f}`;
489
+ const m = Y(r, a), B = K(r, s), R = z(r, i), J = e === m, V = f === _, ze = m != null ? String(m) : `option-${f}`;
490
490
  return /* @__PURE__ */ u(
491
491
  "li",
492
492
  {
@@ -503,22 +503,22 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
503
503
  onMouseEnter: () => !R && d(f),
504
504
  onClick: (Pe) => oe(r, Pe),
505
505
  "data-testid": g ? `${g}-option-${f}` : void 0,
506
- children: C ? C(r) : B
506
+ children: k ? k(r) : B
507
507
  },
508
- Se
508
+ ze
509
509
  );
510
510
  }) })
511
511
  ]
512
512
  }
513
513
  )
514
514
  ] });
515
- }, jt = "_inputText_1crp5_1", Ot = "_label_1crp5_9", zt = "_required_1crp5_20", Dt = "_tooltipIcon_1crp5_25", It = "_input_1crp5_1", St = "_inputTextarea_1crp5_72", Pt = "_inputTextDisabled_1crp5_79", M = {
515
+ }, jt = "_inputText_1crp5_1", Ot = "_label_1crp5_9", Dt = "_required_1crp5_20", It = "_tooltipIcon_1crp5_25", St = "_input_1crp5_1", zt = "_inputTextarea_1crp5_72", Pt = "_inputTextDisabled_1crp5_79", M = {
516
516
  inputText: jt,
517
517
  label: Ot,
518
- required: zt,
519
- tooltipIcon: Dt,
520
- input: It,
521
- inputTextarea: St,
518
+ required: Dt,
519
+ tooltipIcon: It,
520
+ input: St,
521
+ inputTextarea: zt,
522
522
  inputTextDisabled: Pt
523
523
  }, ln = ({
524
524
  label: e,
@@ -532,23 +532,23 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
532
532
  disabled: l = !1,
533
533
  ...p
534
534
  }) => {
535
- const { type: k = "text", ...P } = p, I = he(), L = o || `input-text-${I.replace(/[^a-zA-Z0-9_-]/g, "")}`, H = [
535
+ const { type: N = "text", ...P } = p, S = he(), L = o || `input-text-${S.replace(/[^a-zA-Z0-9_-]/g, "")}`, H = [
536
536
  M.inputText,
537
537
  l ? M.inputTextDisabled : "",
538
538
  i
539
539
  ].filter(Boolean).join(" "), h = P["aria-invalid"];
540
540
  let y;
541
541
  h === void 0 ? y = void 0 : h === !0 ? y = "true" : h === !1 ? y = "false" : y = h;
542
- const C = n ? { "aria-required": "true" } : { "aria-required": "false" }, g = y === void 0 ? {} : { "aria-invalid": y }, x = [M.input, s ? M.inputTextarea : ""].filter(Boolean).join(" "), N = {
542
+ const k = n ? { "aria-required": "true" } : { "aria-required": "false" }, g = y === void 0 ? {} : { "aria-invalid": y }, x = [M.input, s ? M.inputTextarea : ""].filter(Boolean).join(" "), C = {
543
543
  id: L,
544
544
  className: x,
545
545
  disabled: l,
546
- ...C,
546
+ ...k,
547
547
  ...g,
548
548
  "data-testid": b ? `${b}-input` : void 0
549
549
  };
550
- return /* @__PURE__ */ D("div", { className: H, "data-testid": b, children: [
551
- e != null && /* @__PURE__ */ D("label", { htmlFor: L, className: M.label, children: [
550
+ return /* @__PURE__ */ I("div", { className: H, "data-testid": b, children: [
551
+ e != null && /* @__PURE__ */ I("label", { htmlFor: L, className: M.label, children: [
552
552
  e,
553
553
  n && /* @__PURE__ */ u("span", { className: M.required, children: "*" }),
554
554
  t != null && /* @__PURE__ */ u(
@@ -565,10 +565,10 @@ const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18"
565
565
  "textarea",
566
566
  {
567
567
  ...P,
568
- ...N,
568
+ ...C,
569
569
  rows: a ?? 3
570
570
  }
571
- ) : /* @__PURE__ */ u("input", { ...P, ...N, type: k })
571
+ ) : /* @__PURE__ */ u("input", { ...P, ...C, type: N })
572
572
  ] });
573
573
  }, $t = "_accordion_l1hoq_1", Lt = "_tab_l1hoq_6", At = "_headerButton_l1hoq_11", qt = "_headerContent_l1hoq_39", Ft = "_icon_l1hoq_45", Wt = "_panel_l1hoq_53", Et = "_panelCollapsed_l1hoq_58", Rt = "_panelOpen_l1hoq_64", Vt = "_panelContent_l1hoq_70", Ht = "_noBorderLast_l1hoq_74", $ = {
574
574
  accordion: $t,
@@ -594,26 +594,26 @@ const Kt = (e, t) => e == null ? [] : Array.isArray(e) ? t ? e : e.slice(0, 1) :
594
594
  className: b = "",
595
595
  transitionOptions: l,
596
596
  pt: p,
597
- ptOptions: k,
597
+ ptOptions: N,
598
598
  unstyled: P,
599
- children: I,
599
+ children: S,
600
600
  ...L
601
601
  }) => {
602
- const H = he(), h = Mt(H), y = me(() => F.Children.toArray(I).filter(
602
+ const H = he(), h = Mt(H), y = me(() => F.Children.toArray(S).filter(
603
603
  (_) => F.isValidElement(_) && _.type === je
604
- ), [I]), C = e !== void 0, g = me(() => Kt(e, t), [e, t]), [x, N] = T([]), c = C ? g : x, A = typeof l == "object" && l != null && typeof l.timeout == "number" ? l.timeout : void 0, O = /* @__PURE__ */ u(ot, { "aria-hidden": !0 }), le = /* @__PURE__ */ u(xe, { "aria-hidden": !0 }), ee = n ?? O, ae = o ?? le, Q = (w, _) => {
604
+ ), [S]), k = e !== void 0, g = me(() => Kt(e, t), [e, t]), [x, C] = T([]), c = k ? g : x, A = typeof l == "object" && l != null && typeof l.timeout == "number" ? l.timeout : void 0, O = /* @__PURE__ */ u(ot, { "aria-hidden": !0 }), le = /* @__PURE__ */ u(xe, { "aria-hidden": !0 }), ee = n ?? O, ae = o ?? le, Q = (w, _) => {
605
605
  const d = c.includes(w);
606
606
  if (t) {
607
607
  const E = d ? c.filter((G) => G !== w) : [...c, w];
608
- C || N(E), s == null || s({ index: E, originalEvent: _ }), d ? i == null || i({ index: w, originalEvent: _ }) : a == null || a({ index: w, originalEvent: _ });
608
+ k || C(E), s == null || s({ index: E, originalEvent: _ }), d ? i == null || i({ index: w, originalEvent: _ }) : a == null || a({ index: w, originalEvent: _ });
609
609
  return;
610
610
  }
611
- const z = c.length ? c[0] : null, W = d ? [] : [w];
612
- if (C || N(W), s == null || s({ index: W, originalEvent: _ }), d) {
611
+ const D = c.length ? c[0] : null, W = d ? [] : [w];
612
+ if (k || C(W), s == null || s({ index: W, originalEvent: _ }), d) {
613
613
  i == null || i({ index: w, originalEvent: _ });
614
614
  return;
615
615
  }
616
- z != null && (i == null || i({ index: z, originalEvent: _ })), a == null || a({ index: w, originalEvent: _ });
616
+ D != null && (i == null || i({ index: D, originalEvent: _ })), a == null || a({ index: w, originalEvent: _ });
617
617
  };
618
618
  return /* @__PURE__ */ u(
619
619
  "div",
@@ -622,14 +622,14 @@ const Kt = (e, t) => e == null ? [] : Array.isArray(e) ? t ? e : e.slice(0, 1) :
622
622
  ...L,
623
623
  children: y.map((w, _) => {
624
624
  var re;
625
- const d = w.props, z = c.includes(_), W = !!d.disabled, E = `${h}-header-${_}`, G = `${h}-content-${_}`, U = d.headerTemplate != null ? typeof d.headerTemplate == "function" ? d.headerTemplate({
625
+ const d = w.props, D = c.includes(_), W = !!d.disabled, E = `${h}-header-${_}`, G = `${h}-content-${_}`, U = d.headerTemplate != null ? typeof d.headerTemplate == "function" ? d.headerTemplate({
626
626
  index: _,
627
- selected: z,
627
+ selected: D,
628
628
  disabled: W,
629
629
  count: y.length,
630
630
  first: _ === 0,
631
631
  last: _ === y.length - 1
632
- }) : d.headerTemplate : d.header, te = z ? ae : ee, j = [
632
+ }) : d.headerTemplate : d.header, te = D ? ae : ee, j = [
633
633
  $.headerButton,
634
634
  d.headerClassName ?? ""
635
635
  ].filter(Boolean).join(" "), ne = [
@@ -637,13 +637,13 @@ const Kt = (e, t) => e == null ? [] : Array.isArray(e) ? t ? e : e.slice(0, 1) :
637
637
  d.className ?? "",
638
638
  _ === y.length - 1 ? $.noBorderLast : ""
639
639
  ].filter(Boolean).join(" "), fe = typeof U == "string" ? U : void 0;
640
- return /* @__PURE__ */ D(
640
+ return /* @__PURE__ */ I(
641
641
  "div",
642
642
  {
643
643
  className: ne,
644
644
  style: d.style,
645
645
  children: [
646
- /* @__PURE__ */ D(
646
+ /* @__PURE__ */ I(
647
647
  "button",
648
648
  {
649
649
  id: E,
@@ -652,7 +652,7 @@ const Kt = (e, t) => e == null ? [] : Array.isArray(e) ? t ? e : e.slice(0, 1) :
652
652
  className: j,
653
653
  style: d.headerStyle,
654
654
  "aria-controls": G,
655
- "aria-expanded": z,
655
+ "aria-expanded": D,
656
656
  "aria-disabled": W,
657
657
  tabIndex: d.tabIndex,
658
658
  onClick: (oe) => Q(_, oe),
@@ -670,10 +670,10 @@ const Kt = (e, t) => e == null ? [] : Array.isArray(e) ? t ? e : e.slice(0, 1) :
670
670
  id: G,
671
671
  role: "region",
672
672
  "aria-labelledby": E,
673
- "aria-hidden": !z,
673
+ "aria-hidden": !D,
674
674
  className: [
675
675
  $.panel,
676
- z ? $.panelOpen : $.panelCollapsed
676
+ D ? $.panelOpen : $.panelCollapsed
677
677
  ].join(" "),
678
678
  style: {
679
679
  transitionDuration: A ? `${A}ms` : void 0
@@ -708,7 +708,7 @@ const Qt = "_selectButton_1u3fo_1", Gt = "_selectButtonDisabled_1u3fo_9", Ut = "
708
708
  buttonFirst: Xt,
709
709
  buttonLast: Yt,
710
710
  buttonSelected: Tt
711
- }, Ce = (e, t) => {
711
+ }, ke = (e, t) => {
712
712
  const o = e[t];
713
713
  return o != null ? String(o) : "";
714
714
  }, ye = (e, t) => e[t], we = (e, t) => t == null ? !1 : !!e[t], an = ({
@@ -722,22 +722,22 @@ const Qt = "_selectButton_1u3fo_1", Gt = "_selectButtonDisabled_1u3fo_9", Ut = "
722
722
  itemTemplate: b,
723
723
  disabled: l = !1,
724
724
  invalid: p = !1,
725
- className: k = "",
725
+ className: N = "",
726
726
  "data-testid": P
727
727
  }) => {
728
- const I = (h) => {
728
+ const S = (h) => {
729
729
  const y = ye(h, s);
730
730
  return i && Array.isArray(e) ? e.includes(y) : e === y;
731
731
  }, L = (h, y) => {
732
732
  if (l || we(h, a)) return;
733
- const C = ye(h, s);
734
- if (C === void 0) return;
733
+ const k = ye(h, s);
734
+ if (k === void 0) return;
735
735
  let g;
736
736
  if (i) {
737
737
  const x = Array.isArray(e) ? e : [];
738
- g = x.includes(C) ? x.filter((c) => c !== C) : [...x, C];
738
+ g = x.includes(k) ? x.filter((c) => c !== k) : [...x, k];
739
739
  } else
740
- g = e === C ? null : C;
740
+ g = e === k ? null : k;
741
741
  t == null || t({
742
742
  value: g,
743
743
  originalEvent: y
@@ -746,7 +746,7 @@ const Qt = "_selectButton_1u3fo_1", Gt = "_selectButtonDisabled_1u3fo_9", Ut = "
746
746
  Z.selectButton,
747
747
  l ? Z.selectButtonDisabled : "",
748
748
  p ? Z.selectButtonInvalid : "",
749
- k
749
+ N
750
750
  ].filter(Boolean).join(" ");
751
751
  return /* @__PURE__ */ u(
752
752
  "div",
@@ -756,18 +756,18 @@ const Qt = "_selectButton_1u3fo_1", Gt = "_selectButtonDisabled_1u3fo_9", Ut = "
756
756
  "aria-disabled": l,
757
757
  "data-testid": P,
758
758
  children: n.map((h, y) => {
759
- const C = ye(h, s), g = C != null ? String(C) : `option-${y}`, x = we(h, a), N = I(h);
759
+ const k = ye(h, s), g = k != null ? String(k) : `option-${y}`, x = we(h, a), C = S(h);
760
760
  return /* @__PURE__ */ u(
761
761
  "button",
762
762
  {
763
763
  type: "button",
764
- "aria-pressed": N,
764
+ "aria-pressed": C,
765
765
  "aria-disabled": x || l,
766
- "aria-label": Ce(h, o),
766
+ "aria-label": ke(h, o),
767
767
  disabled: l || x,
768
768
  className: [
769
769
  Z.button,
770
- N ? Z.buttonSelected : "",
770
+ C ? Z.buttonSelected : "",
771
771
  y === 0 ? Z.buttonFirst : "",
772
772
  y === n.length - 1 ? Z.buttonLast : ""
773
773
  ].filter(Boolean).join(" "),
@@ -776,7 +776,7 @@ const Qt = "_selectButton_1u3fo_1", Gt = "_selectButtonDisabled_1u3fo_9", Ut = "
776
776
  (c.key === " " || c.key === "Enter") && (c.preventDefault(), L(h, c));
777
777
  },
778
778
  "data-testid": P ? `${P}-option-${y}` : void 0,
779
- children: b ? b(h) : Ce(h, o)
779
+ children: b ? b(h) : ke(h, o)
780
780
  },
781
781
  g
782
782
  );
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- (function(j,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],s):(j=typeof globalThis<"u"?globalThis:j||self,s(j.EmporixComponentLibrary={},j.React,j.React))})(this,(function(j,s,c){"use strict";const ce={primaryButton:"_primaryButton_uyzzr_1",primaryButtonDisabled:"_primaryButtonDisabled_uyzzr_34",spinner:"_spinner_uyzzr_42"};var _e={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ye=c.createContext&&c.createContext(_e),Ne=["attr","size","title"];function ke(e,t){if(e==null)return{};var n,o,l=je(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)n=u[o],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function je(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},oe.apply(null,arguments)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,o)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?he(Object(n),!0).forEach(function(o){xe(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function xe(e,t,n){return(t=De(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e){var t=Ie(e,"string");return typeof t=="symbol"?t:t+""}function Ie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function me(e){return e&&e.map((t,n)=>c.createElement(t.tag,se({key:n},t.attr),me(t.child)))}function T(e){return t=>c.createElement(Se,oe({attr:se({},e.attr)},t),me(e.child))}function Se(e){var t=n=>{var{attr:o,size:l,title:u}=e,i=ke(e,Ne),B=l||n.size||"1em",a;return n.className&&(a=n.className),e.className&&(a=(a?a+" ":"")+e.className),c.createElement("svg",oe({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,i,{className:a,style:se(se({color:e.color||n.color},n.style),e.style),height:B,width:B,xmlns:"http://www.w3.org/2000/svg"}),u&&c.createElement("title",null,u),e.children)};return ye!==void 0?c.createElement(ye.Consumer,null,n=>t(n)):t(_e)}function Oe(e){return T({attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",fill:"currentColor"},child:[]}]})(e)}const ze=({children:e,disabled:t=!1,loading:n=!1,onClick:o,className:l="","data-testid":u,...i})=>{const B=[ce.primaryButton,t?ce.primaryButtonDisabled:"",l].filter(Boolean).join(" ");return s.jsxs("button",{type:"button",className:B,disabled:t||n,onClick:o,"data-testid":u,...i,children:[n&&s.jsx(Oe,{className:ce.spinner,size:12}),e]})},ve={secondaryButton:"_secondaryButton_1s7ft_1",secondaryButtonDisabled:"_secondaryButtonDisabled_1s7ft_33"},Pe=({children:e,disabled:t=!1,onClick:n,className:o="","data-testid":l,...u})=>{const i=[ve.secondaryButton,t?ve.secondaryButtonDisabled:"",o].filter(Boolean).join(" ");return s.jsx("button",{type:"button",className:i,disabled:t,onClick:n,"data-testid":l,...u,children:e})},A={tabsContainer:"_tabsContainer_m3c4e_1",tabsHeader:"_tabsHeader_m3c4e_7",tabItem:"_tabItem_m3c4e_13",tabContent:"_tabContent_m3c4e_29",tabLabel:"_tabLabel_m3c4e_51",tabLine:"_tabLine_m3c4e_61",active:"_active_m3c4e_68",inactive:"_inactive_m3c4e_76",tabPanels:"_tabPanels_m3c4e_84"},$e=({tabs:e,activeTabId:t,onTabChange:n,className:o="","data-testid":l,...u})=>{var B;const i=[A.tabsContainer,o].filter(Boolean).join(" ");return s.jsxs("div",{className:i,"data-testid":l,...u,children:[s.jsx("div",{className:A.tabsHeader,children:e.map(a=>{const _=a.id===t,x=[A.tabItem,_?A.active:A.inactive].filter(Boolean).join(" ");return s.jsxs("button",{type:"button",className:x,onClick:()=>n(a.id),"data-testid":`${l}-tab-${a.id}`,children:[s.jsx("div",{className:A.tabContent,children:s.jsx("span",{className:A.tabLabel,children:a.label})}),s.jsx("div",{className:A.tabLine})]},a.id)})}),s.jsx("div",{className:A.tabPanels,children:(B=e.find(a=>a.id===t))==null?void 0:B.content})]})};function Le(e){return T({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]}]})(e)}function Ae(e){return T({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12.01",y2:"8"},child:[]}]})(e)}function qe(e){return T({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"},child:[]}]})(e)}function ge(e){return T({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"},child:[]}]})(e)}const g={dropdown:"_dropdown_yz8m1_1",label:"_label_yz8m1_9",required:"_required_yz8m1_18",trigger:"_trigger_yz8m1_23",triggerDisabled:"_triggerDisabled_yz8m1_47",triggerInput:"_triggerInput_yz8m1_56",value:"_value_yz8m1_74",placeholder:"_placeholder_yz8m1_81",chevron:"_chevron_yz8m1_85",open:"_open_yz8m1_92",panel:"_panel_yz8m1_116",panelClosing:"_panelClosing_yz8m1_133",filterWrapper:"_filterWrapper_yz8m1_137",filterInput:"_filterInput_yz8m1_144",filterIcon:"_filterIcon_yz8m1_163",list:"_list_yz8m1_174",option:"_option_yz8m1_183",optionSelected:"_optionSelected_yz8m1_195",optionHighlighted:"_optionHighlighted_yz8m1_199",optionDisabled:"_optionDisabled_yz8m1_203",empty:"_empty_yz8m1_212",disabled:"_disabled_yz8m1_219"},M=(e,t)=>{const o=e[t];return o!=null?String(o):""},G=(e,t)=>e[t],z=(e,t)=>t==null?!1:!!e[t],Ee=({value:e,onChange:t,onEditEnd:n,options:o,optionLabel:l="label",optionValue:u="value",optionDisabled:i,placeholder:B="Select",filter:a=!1,editable:_=!1,disabled:x=!1,required:L=!1,label:P,inputId:q,className:Q="",panelClassName:v="",valueTemplate:h,itemTemplate:w,"data-testid":b})=>{const D=o.find(r=>G(r,u)===e),k=D?M(D,l):"",[d,E]=c.useState(!1),[S,le]=c.useState(!1),[R,ie]=c.useState(""),[U,N]=c.useState(k),[y,f]=c.useState(0),O=c.useRef(null),F=c.useRef(null),W=c.useRef(null),J=c.useRef(null),X=c.useRef(null),ee=c.useRef(!1),I=c.useMemo(()=>a&&!_?o.filter(r=>M(r,l).toLowerCase().includes(R.toLowerCase())):o,[a,_,o,l,R]);c.useEffect(()=>{_&&N(k)},[_,e,k]),c.useEffect(()=>{d&&a&&!_&&(ie(""),f(0),setTimeout(()=>{var r;return(r=W.current)==null?void 0:r.focus()},0))},[d,a,_]),c.useEffect(()=>{if(!d)return;const r=I.findIndex(C=>G(C,u)===e),p=I.findIndex(C=>!z(C,i)),m=r>=0&&!z(I[r],i);f(m?r:p>=0?p:0)},[d,e,I,u,i]),c.useEffect(()=>{const r=X.current;r!=null&&r.scrollIntoView&&typeof r.scrollIntoView=="function"&&r.scrollIntoView({block:"nearest"})},[y]);const te=()=>{ee.current=!0,le(!0)},fe=r=>{var p;(ee.current||(p=r.animationName)!=null&&p.includes("menuOut"))&&(ee.current=!1,E(!1),le(!1),_&&N(k))};c.useEffect(()=>{if(!d&&!S)return;const r=p=>{O.current&&!O.current.contains(p.target)&&(_&&N(k),te())};return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[d,S,_,k]);const ne=()=>{x||E(r=>!r)},re=(r,p)=>{if(z(r,i))return;const m=G(r,u);_&&N(M(r,l)),t==null||t({value:m??null,originalEvent:p}),te()},we=r=>{if(!d){if(r.key==="Enter"&&_&&U.trim()){r.preventDefault();const p=U.trim(),m=p.toLowerCase(),C=o.find(Y=>{const V=M(Y,l).toLowerCase();return V===m||V.startsWith(m)}),H=C&&!z(C,i)?G(C,u):null;C&&!z(C,i)&&(N(M(C,l)),t==null||t({value:H,originalEvent:r})),n==null||n({value:p,selectedValue:H,originalEvent:r});return}(r.key==="Enter"||r.key===" "||r.key==="ArrowDown")&&(r.preventDefault(),E(!0));return}if(r.key==="Escape"){r.preventDefault(),te();return}if(r.key==="ArrowDown"){r.preventDefault(),f(p=>{for(let m=p+1;m<I.length;m++)if(!z(I[m],i))return m;return p});return}if(r.key==="ArrowUp"){r.preventDefault(),f(p=>{for(let m=p-1;m>=0;m--)if(!z(I[m],i))return m;return p});return}if(r.key==="Enter"){if(r.preventDefault(),_){const p=U.trim();if(p){const m=p.toLowerCase(),C=o.find(Y=>{const V=M(Y,l).toLowerCase();return V===m||V.startsWith(m)}),H=C&&!z(C,i)?G(C,u):null;C&&!z(C,i)&&re(C,r),n==null||n({value:p,selectedValue:H,originalEvent:r})}else n==null||n({value:"",selectedValue:null,originalEvent:r})}else if(I[y]){const p=I[y];z(p,i)||re(p,r)}}},Me=[g.dropdown,x?g.disabled:"",d?g.open:"",Q].filter(Boolean).join(" "),Ke=[g.trigger,x?g.triggerDisabled:""].filter(Boolean).join(" "),Ze=[g.panel,S?g.panelClosing:"",v].filter(Boolean).join(" "),Qe=c.useId(),ae=q??`dropdown-${Qe.replace(/[^a-zA-Z0-9_-]/g,"")}`,pe=`${ae}-panel`;return s.jsxs("div",{className:Me,ref:O,"data-testid":b,children:[P!=null&&s.jsxs("label",{htmlFor:ae,className:g.label,children:[P,L&&s.jsx("span",{className:g.required,children:"*"})]}),s.jsxs("div",{id:_?void 0:ae,role:"combobox","aria-expanded":d||S,"aria-haspopup":"listbox","aria-controls":d||S?pe:void 0,"aria-disabled":x,"aria-label":typeof P=="string"?P:void 0,tabIndex:_||x?-1:0,className:Ke,onClick:_?void 0:ne,onKeyDown:_?void 0:we,"data-testid":b&&!_?`${b}-trigger`:void 0,children:[_?s.jsx("input",{ref:J,id:ae,type:"text",className:g.triggerInput,value:U,onChange:r=>{N(r.target.value),!d&&!S&&E(!0),f(0)},onFocus:()=>{!x&&!d&&!S&&E(!0)},onKeyDown:we,placeholder:B,disabled:x,"aria-autocomplete":"list","aria-controls":d||S?pe:void 0,"aria-expanded":d||S,"data-testid":b?`${b}-trigger`:void 0}):s.jsx("span",{className:g.value,children:h?h(D??null):k||s.jsx("span",{className:g.placeholder,children:B})}),s.jsx(ge,{className:g.chevron,"aria-hidden":!0,onClick:_?ne:void 0})]}),(d||S)&&s.jsxs("div",{ref:F,id:pe,className:Ze,role:"presentation",onAnimationEnd:fe,"data-testid":b?`${b}-panel`:void 0,children:[a&&!_&&s.jsxs("div",{className:g.filterWrapper,children:[s.jsx("input",{ref:W,type:"text",className:g.filterInput,value:R,onChange:r=>{ie(r.target.value),f(0)},onKeyDown:r=>{r.key==="Escape"&&E(!1),r.stopPropagation()},placeholder:"Search...","aria-label":"Filter options",title:"Filter options","data-testid":b?`${b}-filter`:void 0}),s.jsx(Le,{className:g.filterIcon,"aria-hidden":!0})]}),s.jsx("ul",{className:g.list,role:"listbox","aria-label":"Options",children:I.length===0?s.jsx("li",{className:g.empty,children:"No results"}):I.map((r,p)=>{const m=G(r,u),C=M(r,l),H=z(r,i),Y=e===m,V=p===y,Ge=m!=null?String(m):`option-${p}`;return s.jsx("li",{ref:V?X:void 0,role:"option","aria-selected":Y,"aria-disabled":H,className:[g.option,Y?g.optionSelected:"",V?g.optionHighlighted:"",H?g.optionDisabled:""].filter(Boolean).join(" "),onMouseEnter:()=>!H&&f(p),onClick:Ue=>re(r,Ue),"data-testid":b?`${b}-option-${p}`:void 0,children:w?w(r):C},Ge)})})]})]})},K={inputText:"_inputText_1crp5_1",label:"_label_1crp5_9",required:"_required_1crp5_20",tooltipIcon:"_tooltipIcon_1crp5_25",input:"_input_1crp5_1",inputTextarea:"_inputTextarea_1crp5_72",inputTextDisabled:"_inputTextDisabled_1crp5_79"},Fe=({label:e,tooltip:t,required:n=!1,inputId:o,textarea:l=!1,rows:u,className:i="","data-testid":B,disabled:a=!1,..._})=>{const{type:x="text",...L}=_,P=c.useId(),q=o||`input-text-${P.replace(/[^a-zA-Z0-9_-]/g,"")}`,Q=[K.inputText,a?K.inputTextDisabled:"",i].filter(Boolean).join(" "),v=L["aria-invalid"];let h;v===void 0?h=void 0:v===!0?h="true":v===!1?h="false":h=v;const w=n?{"aria-required":"true"}:{"aria-required":"false"},b=h===void 0?{}:{"aria-invalid":h},D=[K.input,l?K.inputTextarea:""].filter(Boolean).join(" "),k={id:q,className:D,disabled:a,...w,...b,"data-testid":B?`${B}-input`:void 0};return s.jsxs("div",{className:Q,"data-testid":B,children:[e!=null&&s.jsxs("label",{htmlFor:q,className:K.label,children:[e,n&&s.jsx("span",{className:K.required,children:"*"}),t!=null&&s.jsx("span",{className:K.tooltipIcon,title:t,"aria-label":t,children:s.jsx(Ae,{"aria-hidden":!0})})]}),l?s.jsx("textarea",{...L,...k,rows:u??3}):s.jsx("input",{...L,...k,type:x})]})},$={accordion:"_accordion_l1hoq_1",tab:"_tab_l1hoq_6",headerButton:"_headerButton_l1hoq_11",headerContent:"_headerContent_l1hoq_39",icon:"_icon_l1hoq_45",panel:"_panel_l1hoq_53",panelCollapsed:"_panelCollapsed_l1hoq_58",panelOpen:"_panelOpen_l1hoq_64",panelContent:"_panelContent_l1hoq_70",noBorderLast:"_noBorderLast_l1hoq_74"},ue=e=>null;ue.displayName="AccordionTab";const We=(e,t)=>e==null?[]:Array.isArray(e)?t?e:e.slice(0,1):[e],He=e=>e.replace(/[^a-zA-Z0-9_-]/g,""),be=({activeIndex:e,multiple:t=!1,expandIcon:n,collapseIcon:o,onTabChange:l,onTabOpen:u,onTabClose:i,className:B="",transitionOptions:a,pt:_,ptOptions:x,unstyled:L,children:P,...q})=>{const Q=c.useId(),v=He(Q),h=c.useMemo(()=>c.Children.toArray(P).filter(y=>c.isValidElement(y)&&y.type===ue),[P]),w=e!==void 0,b=c.useMemo(()=>We(e,t),[e,t]),[D,k]=c.useState([]),d=w?b:D,E=typeof a=="object"&&a!=null&&typeof a.timeout=="number"?a.timeout:void 0,S=s.jsx(qe,{"aria-hidden":!0}),le=s.jsx(ge,{"aria-hidden":!0}),R=n??S,ie=o??le,U=(N,y)=>{const f=d.includes(N);if(t){const W=f?d.filter(J=>J!==N):[...d,N];w||k(W),l==null||l({index:W,originalEvent:y}),f?i==null||i({index:N,originalEvent:y}):u==null||u({index:N,originalEvent:y});return}const O=d.length?d[0]:null,F=f?[]:[N];if(w||k(F),l==null||l({index:F,originalEvent:y}),f){i==null||i({index:N,originalEvent:y});return}O!=null&&(i==null||i({index:O,originalEvent:y})),u==null||u({index:N,originalEvent:y})};return s.jsx("div",{className:[$.accordion,B].filter(Boolean).join(" "),...q,children:h.map((N,y)=>{var ne;const f=N.props,O=d.includes(y),F=!!f.disabled,W=`${v}-header-${y}`,J=`${v}-content-${y}`,X=f.headerTemplate!=null?typeof f.headerTemplate=="function"?f.headerTemplate({index:y,selected:O,disabled:F,count:h.length,first:y===0,last:y===h.length-1}):f.headerTemplate:f.header,ee=O?ie:R,I=[$.headerButton,f.headerClassName??""].filter(Boolean).join(" "),te=[$.tab,f.className??"",y===h.length-1?$.noBorderLast:""].filter(Boolean).join(" "),fe=typeof X=="string"?X:void 0;return s.jsxs("div",{className:te,style:f.style,children:[s.jsxs("button",{id:W,type:"button",disabled:F,className:I,style:f.headerStyle,"aria-controls":J,"aria-expanded":O,"aria-disabled":F,tabIndex:f.tabIndex,onClick:re=>U(y,re),...f.headerProps,"aria-label":((ne=f.headerProps)==null?void 0:ne["aria-label"])??fe,children:[s.jsx("span",{className:$.headerContent,children:X}),s.jsx("span",{className:$.icon,"aria-hidden":!0,children:ee})]}),s.jsx("div",{id:J,role:"region","aria-labelledby":W,"aria-hidden":!O,className:[$.panel,O?$.panelOpen:$.panelCollapsed].join(" "),style:{transitionDuration:E?`${E}ms`:void 0},children:s.jsx("div",{className:[$.panelContent,f.contentClassName??""].filter(Boolean).join(" "),style:f.contentStyle,children:f.children})})]},y)})})};be.displayName="Accordion";const Z={selectButton:"_selectButton_1u3fo_1",selectButtonDisabled:"_selectButtonDisabled_1u3fo_9",selectButtonInvalid:"_selectButtonInvalid_1u3fo_14",button:"_button_1u3fo_14",buttonFirst:"_buttonFirst_1u3fo_47",buttonLast:"_buttonLast_1u3fo_51",buttonSelected:"_buttonSelected_1u3fo_59"},Be=(e,t)=>{const o=e[t];return o!=null?String(o):""},de=(e,t)=>e[t],Ce=(e,t)=>t==null?!1:!!e[t],Ve=({value:e,onChange:t,options:n,optionLabel:o="label",optionValue:l="value",optionDisabled:u,multiple:i=!1,itemTemplate:B,disabled:a=!1,invalid:_=!1,className:x="","data-testid":L})=>{const P=v=>{const h=de(v,l);return i&&Array.isArray(e)?e.includes(h):e===h},q=(v,h)=>{if(a||Ce(v,u))return;const w=de(v,l);if(w===void 0)return;let b;if(i){const D=Array.isArray(e)?e:[];b=D.includes(w)?D.filter(d=>d!==w):[...D,w]}else b=e===w?null:w;t==null||t({value:b,originalEvent:h})},Q=[Z.selectButton,a?Z.selectButtonDisabled:"",_?Z.selectButtonInvalid:"",x].filter(Boolean).join(" ");return s.jsx("div",{className:Q,role:"group","aria-disabled":a,"data-testid":L,children:n.map((v,h)=>{const w=de(v,l),b=w!=null?String(w):`option-${h}`,D=Ce(v,u),k=P(v);return s.jsx("button",{type:"button","aria-pressed":k,"aria-disabled":D||a,"aria-label":Be(v,o),disabled:a||D,className:[Z.button,k?Z.buttonSelected:"",h===0?Z.buttonFirst:"",h===n.length-1?Z.buttonLast:""].filter(Boolean).join(" "),onClick:d=>q(v,d),onKeyDown:d=>{(d.key===" "||d.key==="Enter")&&(d.preventDefault(),q(v,d))},"data-testid":L?`${L}-option-${h}`:void 0,children:B?B(v):Be(v,o)},b)})})};j.Accordion=be,j.AccordionTab=ue,j.Dropdown=Ee,j.InputText=Fe,j.PrimaryButton=ze,j.SecondaryButton=Pe,j.SelectButton=Ve,j.Tabs=$e,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(j,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],s):(j=typeof globalThis<"u"?globalThis:j||self,s(j.EmporixComponentLibrary={},j.React,j.React))})(this,(function(j,s,c){"use strict";const ce={primaryButton:"_primaryButton_gvcke_1",primaryButtonDisabled:"_primaryButtonDisabled_gvcke_33",spinner:"_spinner_gvcke_41"};var _e={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ye=c.createContext&&c.createContext(_e),we=["attr","size","title"];function Ne(e,t){if(e==null)return{};var n,o,l=je(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)n=u[o],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function je(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},oe.apply(null,arguments)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,o)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?he(Object(n),!0).forEach(function(o){xe(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function xe(e,t,n){return(t=De(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e){var t=Ie(e,"string");return typeof t=="symbol"?t:t+""}function Ie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ve(e){return e&&e.map((t,n)=>c.createElement(t.tag,se({key:n},t.attr),ve(t.child)))}function T(e){return t=>c.createElement(Se,oe({attr:se({},e.attr)},t),ve(e.child))}function Se(e){var t=n=>{var{attr:o,size:l,title:u}=e,i=Ne(e,we),B=l||n.size||"1em",a;return n.className&&(a=n.className),e.className&&(a=(a?a+" ":"")+e.className),c.createElement("svg",oe({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,i,{className:a,style:se(se({color:e.color||n.color},n.style),e.style),height:B,width:B,xmlns:"http://www.w3.org/2000/svg"}),u&&c.createElement("title",null,u),e.children)};return ye!==void 0?c.createElement(ye.Consumer,null,n=>t(n)):t(_e)}function Oe(e){return T({attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",fill:"currentColor"},child:[]}]})(e)}const Pe=({children:e,disabled:t=!1,loading:n=!1,onClick:o,className:l="","data-testid":u,...i})=>{const B=[ce.primaryButton,t?ce.primaryButtonDisabled:"",l].filter(Boolean).join(" ");return s.jsxs("button",{type:"button",className:B,disabled:t||n,onClick:o,"data-testid":u,...i,children:[n&&s.jsx(Oe,{className:ce.spinner,size:12}),e]})},me={secondaryButton:"_secondaryButton_15dkw_1",secondaryButtonDisabled:"_secondaryButtonDisabled_15dkw_32"},$e=({children:e,disabled:t=!1,onClick:n,className:o="","data-testid":l,...u})=>{const i=[me.secondaryButton,t?me.secondaryButtonDisabled:"",o].filter(Boolean).join(" ");return s.jsx("button",{type:"button",className:i,disabled:t,onClick:n,"data-testid":l,...u,children:e})},A={tabsContainer:"_tabsContainer_m3c4e_1",tabsHeader:"_tabsHeader_m3c4e_7",tabItem:"_tabItem_m3c4e_13",tabContent:"_tabContent_m3c4e_29",tabLabel:"_tabLabel_m3c4e_51",tabLine:"_tabLine_m3c4e_61",active:"_active_m3c4e_68",inactive:"_inactive_m3c4e_76",tabPanels:"_tabPanels_m3c4e_84"},Le=({tabs:e,activeTabId:t,onTabChange:n,className:o="","data-testid":l,...u})=>{var B;const i=[A.tabsContainer,o].filter(Boolean).join(" ");return s.jsxs("div",{className:i,"data-testid":l,...u,children:[s.jsx("div",{className:A.tabsHeader,children:e.map(a=>{const _=a.id===t,x=[A.tabItem,_?A.active:A.inactive].filter(Boolean).join(" ");return s.jsxs("button",{type:"button",className:x,onClick:()=>n(a.id),"data-testid":`${l}-tab-${a.id}`,children:[s.jsx("div",{className:A.tabContent,children:s.jsx("span",{className:A.tabLabel,children:a.label})}),s.jsx("div",{className:A.tabLine})]},a.id)})}),s.jsx("div",{className:A.tabPanels,children:(B=e.find(a=>a.id===t))==null?void 0:B.content})]})};function ze(e){return T({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]}]})(e)}function Ae(e){return T({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12.01",y2:"8"},child:[]}]})(e)}function qe(e){return T({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"},child:[]}]})(e)}function ge(e){return T({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"},child:[]}]})(e)}const g={dropdown:"_dropdown_yz8m1_1",label:"_label_yz8m1_9",required:"_required_yz8m1_18",trigger:"_trigger_yz8m1_23",triggerDisabled:"_triggerDisabled_yz8m1_47",triggerInput:"_triggerInput_yz8m1_56",value:"_value_yz8m1_74",placeholder:"_placeholder_yz8m1_81",chevron:"_chevron_yz8m1_85",open:"_open_yz8m1_92",panel:"_panel_yz8m1_116",panelClosing:"_panelClosing_yz8m1_133",filterWrapper:"_filterWrapper_yz8m1_137",filterInput:"_filterInput_yz8m1_144",filterIcon:"_filterIcon_yz8m1_163",list:"_list_yz8m1_174",option:"_option_yz8m1_183",optionSelected:"_optionSelected_yz8m1_195",optionHighlighted:"_optionHighlighted_yz8m1_199",optionDisabled:"_optionDisabled_yz8m1_203",empty:"_empty_yz8m1_212",disabled:"_disabled_yz8m1_219"},M=(e,t)=>{const o=e[t];return o!=null?String(o):""},G=(e,t)=>e[t],P=(e,t)=>t==null?!1:!!e[t],Ee=({value:e,onChange:t,onEditEnd:n,options:o,optionLabel:l="label",optionValue:u="value",optionDisabled:i,placeholder:B="Select",filter:a=!1,editable:_=!1,disabled:x=!1,required:z=!1,label:$,inputId:q,className:Q="",panelClassName:m="",valueTemplate:h,itemTemplate:k,"data-testid":b})=>{const D=o.find(r=>G(r,u)===e),N=D?M(D,l):"",[d,E]=c.useState(!1),[S,le]=c.useState(!1),[R,ie]=c.useState(""),[U,w]=c.useState(N),[y,p]=c.useState(0),O=c.useRef(null),F=c.useRef(null),W=c.useRef(null),J=c.useRef(null),X=c.useRef(null),ee=c.useRef(!1),I=c.useMemo(()=>a&&!_?o.filter(r=>M(r,l).toLowerCase().includes(R.toLowerCase())):o,[a,_,o,l,R]);c.useEffect(()=>{_&&w(N)},[_,e,N]),c.useEffect(()=>{d&&a&&!_&&(ie(""),p(0),setTimeout(()=>{var r;return(r=W.current)==null?void 0:r.focus()},0))},[d,a,_]),c.useEffect(()=>{if(!d)return;const r=I.findIndex(C=>G(C,u)===e),f=I.findIndex(C=>!P(C,i)),v=r>=0&&!P(I[r],i);p(v?r:f>=0?f:0)},[d,e,I,u,i]),c.useEffect(()=>{const r=X.current;r!=null&&r.scrollIntoView&&typeof r.scrollIntoView=="function"&&r.scrollIntoView({block:"nearest"})},[y]);const te=()=>{ee.current=!0,le(!0)},pe=r=>{var f;(ee.current||(f=r.animationName)!=null&&f.includes("menuOut"))&&(ee.current=!1,E(!1),le(!1),_&&w(N))};c.useEffect(()=>{if(!d&&!S)return;const r=f=>{O.current&&!O.current.contains(f.target)&&(_&&w(N),te())};return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[d,S,_,N]);const ne=()=>{x||E(r=>!r)},re=(r,f)=>{if(P(r,i))return;const v=G(r,u);_&&w(M(r,l)),t==null||t({value:v??null,originalEvent:f}),te()},ke=r=>{if(!d){if(r.key==="Enter"&&_&&U.trim()){r.preventDefault();const f=U.trim(),v=f.toLowerCase(),C=o.find(Y=>{const V=M(Y,l).toLowerCase();return V===v||V.startsWith(v)}),H=C&&!P(C,i)?G(C,u):null;C&&!P(C,i)&&(w(M(C,l)),t==null||t({value:H,originalEvent:r})),n==null||n({value:f,selectedValue:H,originalEvent:r});return}(r.key==="Enter"||r.key===" "||r.key==="ArrowDown")&&(r.preventDefault(),E(!0));return}if(r.key==="Escape"){r.preventDefault(),te();return}if(r.key==="ArrowDown"){r.preventDefault(),p(f=>{for(let v=f+1;v<I.length;v++)if(!P(I[v],i))return v;return f});return}if(r.key==="ArrowUp"){r.preventDefault(),p(f=>{for(let v=f-1;v>=0;v--)if(!P(I[v],i))return v;return f});return}if(r.key==="Enter"){if(r.preventDefault(),_){const f=U.trim();if(f){const v=f.toLowerCase(),C=o.find(Y=>{const V=M(Y,l).toLowerCase();return V===v||V.startsWith(v)}),H=C&&!P(C,i)?G(C,u):null;C&&!P(C,i)&&re(C,r),n==null||n({value:f,selectedValue:H,originalEvent:r})}else n==null||n({value:"",selectedValue:null,originalEvent:r})}else if(I[y]){const f=I[y];P(f,i)||re(f,r)}}},Me=[g.dropdown,x?g.disabled:"",d?g.open:"",Q].filter(Boolean).join(" "),Ke=[g.trigger,x?g.triggerDisabled:""].filter(Boolean).join(" "),Ze=[g.panel,S?g.panelClosing:"",m].filter(Boolean).join(" "),Qe=c.useId(),ae=q??`dropdown-${Qe.replace(/[^a-zA-Z0-9_-]/g,"")}`,fe=`${ae}-panel`;return s.jsxs("div",{className:Me,ref:O,"data-testid":b,children:[$!=null&&s.jsxs("label",{htmlFor:ae,className:g.label,children:[$,z&&s.jsx("span",{className:g.required,children:"*"})]}),s.jsxs("div",{id:_?void 0:ae,role:"combobox","aria-expanded":d||S,"aria-haspopup":"listbox","aria-controls":d||S?fe:void 0,"aria-disabled":x,"aria-label":typeof $=="string"?$:void 0,tabIndex:_||x?-1:0,className:Ke,onClick:_?void 0:ne,onKeyDown:_?void 0:ke,"data-testid":b&&!_?`${b}-trigger`:void 0,children:[_?s.jsx("input",{ref:J,id:ae,type:"text",className:g.triggerInput,value:U,onChange:r=>{w(r.target.value),!d&&!S&&E(!0),p(0)},onFocus:()=>{!x&&!d&&!S&&E(!0)},onKeyDown:ke,placeholder:B,disabled:x,"aria-autocomplete":"list","aria-controls":d||S?fe:void 0,"aria-expanded":d||S,"data-testid":b?`${b}-trigger`:void 0}):s.jsx("span",{className:g.value,children:h?h(D??null):N||s.jsx("span",{className:g.placeholder,children:B})}),s.jsx(ge,{className:g.chevron,"aria-hidden":!0,onClick:_?ne:void 0})]}),(d||S)&&s.jsxs("div",{ref:F,id:fe,className:Ze,role:"presentation",onAnimationEnd:pe,"data-testid":b?`${b}-panel`:void 0,children:[a&&!_&&s.jsxs("div",{className:g.filterWrapper,children:[s.jsx("input",{ref:W,type:"text",className:g.filterInput,value:R,onChange:r=>{ie(r.target.value),p(0)},onKeyDown:r=>{r.key==="Escape"&&E(!1),r.stopPropagation()},placeholder:"Search...","aria-label":"Filter options",title:"Filter options","data-testid":b?`${b}-filter`:void 0}),s.jsx(ze,{className:g.filterIcon,"aria-hidden":!0})]}),s.jsx("ul",{className:g.list,role:"listbox","aria-label":"Options",children:I.length===0?s.jsx("li",{className:g.empty,children:"No results"}):I.map((r,f)=>{const v=G(r,u),C=M(r,l),H=P(r,i),Y=e===v,V=f===y,Ge=v!=null?String(v):`option-${f}`;return s.jsx("li",{ref:V?X:void 0,role:"option","aria-selected":Y,"aria-disabled":H,className:[g.option,Y?g.optionSelected:"",V?g.optionHighlighted:"",H?g.optionDisabled:""].filter(Boolean).join(" "),onMouseEnter:()=>!H&&p(f),onClick:Ue=>re(r,Ue),"data-testid":b?`${b}-option-${f}`:void 0,children:k?k(r):C},Ge)})})]})]})},K={inputText:"_inputText_1crp5_1",label:"_label_1crp5_9",required:"_required_1crp5_20",tooltipIcon:"_tooltipIcon_1crp5_25",input:"_input_1crp5_1",inputTextarea:"_inputTextarea_1crp5_72",inputTextDisabled:"_inputTextDisabled_1crp5_79"},Fe=({label:e,tooltip:t,required:n=!1,inputId:o,textarea:l=!1,rows:u,className:i="","data-testid":B,disabled:a=!1,..._})=>{const{type:x="text",...z}=_,$=c.useId(),q=o||`input-text-${$.replace(/[^a-zA-Z0-9_-]/g,"")}`,Q=[K.inputText,a?K.inputTextDisabled:"",i].filter(Boolean).join(" "),m=z["aria-invalid"];let h;m===void 0?h=void 0:m===!0?h="true":m===!1?h="false":h=m;const k=n?{"aria-required":"true"}:{"aria-required":"false"},b=h===void 0?{}:{"aria-invalid":h},D=[K.input,l?K.inputTextarea:""].filter(Boolean).join(" "),N={id:q,className:D,disabled:a,...k,...b,"data-testid":B?`${B}-input`:void 0};return s.jsxs("div",{className:Q,"data-testid":B,children:[e!=null&&s.jsxs("label",{htmlFor:q,className:K.label,children:[e,n&&s.jsx("span",{className:K.required,children:"*"}),t!=null&&s.jsx("span",{className:K.tooltipIcon,title:t,"aria-label":t,children:s.jsx(Ae,{"aria-hidden":!0})})]}),l?s.jsx("textarea",{...z,...N,rows:u??3}):s.jsx("input",{...z,...N,type:x})]})},L={accordion:"_accordion_l1hoq_1",tab:"_tab_l1hoq_6",headerButton:"_headerButton_l1hoq_11",headerContent:"_headerContent_l1hoq_39",icon:"_icon_l1hoq_45",panel:"_panel_l1hoq_53",panelCollapsed:"_panelCollapsed_l1hoq_58",panelOpen:"_panelOpen_l1hoq_64",panelContent:"_panelContent_l1hoq_70",noBorderLast:"_noBorderLast_l1hoq_74"},ue=e=>null;ue.displayName="AccordionTab";const We=(e,t)=>e==null?[]:Array.isArray(e)?t?e:e.slice(0,1):[e],He=e=>e.replace(/[^a-zA-Z0-9_-]/g,""),be=({activeIndex:e,multiple:t=!1,expandIcon:n,collapseIcon:o,onTabChange:l,onTabOpen:u,onTabClose:i,className:B="",transitionOptions:a,pt:_,ptOptions:x,unstyled:z,children:$,...q})=>{const Q=c.useId(),m=He(Q),h=c.useMemo(()=>c.Children.toArray($).filter(y=>c.isValidElement(y)&&y.type===ue),[$]),k=e!==void 0,b=c.useMemo(()=>We(e,t),[e,t]),[D,N]=c.useState([]),d=k?b:D,E=typeof a=="object"&&a!=null&&typeof a.timeout=="number"?a.timeout:void 0,S=s.jsx(qe,{"aria-hidden":!0}),le=s.jsx(ge,{"aria-hidden":!0}),R=n??S,ie=o??le,U=(w,y)=>{const p=d.includes(w);if(t){const W=p?d.filter(J=>J!==w):[...d,w];k||N(W),l==null||l({index:W,originalEvent:y}),p?i==null||i({index:w,originalEvent:y}):u==null||u({index:w,originalEvent:y});return}const O=d.length?d[0]:null,F=p?[]:[w];if(k||N(F),l==null||l({index:F,originalEvent:y}),p){i==null||i({index:w,originalEvent:y});return}O!=null&&(i==null||i({index:O,originalEvent:y})),u==null||u({index:w,originalEvent:y})};return s.jsx("div",{className:[L.accordion,B].filter(Boolean).join(" "),...q,children:h.map((w,y)=>{var ne;const p=w.props,O=d.includes(y),F=!!p.disabled,W=`${m}-header-${y}`,J=`${m}-content-${y}`,X=p.headerTemplate!=null?typeof p.headerTemplate=="function"?p.headerTemplate({index:y,selected:O,disabled:F,count:h.length,first:y===0,last:y===h.length-1}):p.headerTemplate:p.header,ee=O?ie:R,I=[L.headerButton,p.headerClassName??""].filter(Boolean).join(" "),te=[L.tab,p.className??"",y===h.length-1?L.noBorderLast:""].filter(Boolean).join(" "),pe=typeof X=="string"?X:void 0;return s.jsxs("div",{className:te,style:p.style,children:[s.jsxs("button",{id:W,type:"button",disabled:F,className:I,style:p.headerStyle,"aria-controls":J,"aria-expanded":O,"aria-disabled":F,tabIndex:p.tabIndex,onClick:re=>U(y,re),...p.headerProps,"aria-label":((ne=p.headerProps)==null?void 0:ne["aria-label"])??pe,children:[s.jsx("span",{className:L.headerContent,children:X}),s.jsx("span",{className:L.icon,"aria-hidden":!0,children:ee})]}),s.jsx("div",{id:J,role:"region","aria-labelledby":W,"aria-hidden":!O,className:[L.panel,O?L.panelOpen:L.panelCollapsed].join(" "),style:{transitionDuration:E?`${E}ms`:void 0},children:s.jsx("div",{className:[L.panelContent,p.contentClassName??""].filter(Boolean).join(" "),style:p.contentStyle,children:p.children})})]},y)})})};be.displayName="Accordion";const Z={selectButton:"_selectButton_1u3fo_1",selectButtonDisabled:"_selectButtonDisabled_1u3fo_9",selectButtonInvalid:"_selectButtonInvalid_1u3fo_14",button:"_button_1u3fo_14",buttonFirst:"_buttonFirst_1u3fo_47",buttonLast:"_buttonLast_1u3fo_51",buttonSelected:"_buttonSelected_1u3fo_59"},Be=(e,t)=>{const o=e[t];return o!=null?String(o):""},de=(e,t)=>e[t],Ce=(e,t)=>t==null?!1:!!e[t],Ve=({value:e,onChange:t,options:n,optionLabel:o="label",optionValue:l="value",optionDisabled:u,multiple:i=!1,itemTemplate:B,disabled:a=!1,invalid:_=!1,className:x="","data-testid":z})=>{const $=m=>{const h=de(m,l);return i&&Array.isArray(e)?e.includes(h):e===h},q=(m,h)=>{if(a||Ce(m,u))return;const k=de(m,l);if(k===void 0)return;let b;if(i){const D=Array.isArray(e)?e:[];b=D.includes(k)?D.filter(d=>d!==k):[...D,k]}else b=e===k?null:k;t==null||t({value:b,originalEvent:h})},Q=[Z.selectButton,a?Z.selectButtonDisabled:"",_?Z.selectButtonInvalid:"",x].filter(Boolean).join(" ");return s.jsx("div",{className:Q,role:"group","aria-disabled":a,"data-testid":z,children:n.map((m,h)=>{const k=de(m,l),b=k!=null?String(k):`option-${h}`,D=Ce(m,u),N=$(m);return s.jsx("button",{type:"button","aria-pressed":N,"aria-disabled":D||a,"aria-label":Be(m,o),disabled:a||D,className:[Z.button,N?Z.buttonSelected:"",h===0?Z.buttonFirst:"",h===n.length-1?Z.buttonLast:""].filter(Boolean).join(" "),onClick:d=>q(m,d),onKeyDown:d=>{(d.key===" "||d.key==="Enter")&&(d.preventDefault(),q(m,d))},"data-testid":z?`${z}-option-${h}`:void 0,children:B?B(m):Be(m,o)},b)})})};j.Accordion=be,j.AccordionTab=ue,j.Dropdown=Ee,j.InputText=Fe,j.PrimaryButton=Pe,j.SecondaryButton=$e,j.SelectButton=Ve,j.Tabs=Le,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})}));
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- ._primaryButton_uyzzr_1{background:var(--color-primary);border:1px solid var(--color-primary);align-items:center;border-radius:4px;font-family:Lato,sans-serif;font-style:normal;font-weight:700;font-size:12px;line-height:1.5;text-transform:uppercase;color:#fff;padding:0 1.5rem;cursor:pointer;height:34px;transition:background-color .3s ease}._primaryButton_uyzzr_1:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}._primaryButton_uyzzr_1:disabled{cursor:not-allowed;color:#9cbbe3;border:1px solid var(--color-primary-hover);background:var(--color-primary-hover);opacity:.8}._primaryButton_uyzzr_1:hover{border:1px solid var(--color-primary-hover);background:var(--color-primary-hover)}._primaryButtonDisabled_uyzzr_34{cursor:not-allowed;opacity:.8}._primaryButtonDisabled_uyzzr_34:hover{transform:none}._spinner_uyzzr_42{animation:_spin_uyzzr_42 1s linear infinite;margin-right:.5rem}@keyframes _spin_uyzzr_42{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._secondaryButton_1s7ft_1{background:transparent;border:1px solid var(--color-primary);align-items:center;border-radius:4px;font-family:Lato,sans-serif;font-style:normal;font-weight:700;font-size:12px;line-height:1.5;text-transform:uppercase;color:var(--color-primary);padding:0 1.5rem;cursor:pointer;height:34px;transition:background-color .3s ease,border-color .3s ease,color .3s ease}._secondaryButton_1s7ft_1:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}._secondaryButton_1s7ft_1:disabled{cursor:not-allowed;color:#9cbbe3;border:1px solid #9cbbe3;background:transparent;opacity:.5}._secondaryButton_1s7ft_1:hover{background:#efefef}._secondaryButtonDisabled_1s7ft_33{cursor:not-allowed;opacity:.65}._secondaryButtonDisabled_1s7ft_33:hover{transform:none;background:transparent;color:#9cbbe3}._tabsContainer_m3c4e_1{display:flex;flex-direction:column;width:100%}._tabsHeader_m3c4e_7{display:flex;align-items:center;gap:0}._tabItem_m3c4e_13{display:flex;flex-direction:column;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .2s ease;background:none;border:none;padding:0;margin:0;font-family:inherit;font-size:inherit;color:inherit}._tabItem_m3c4e_13:hover ._tabContent_m3c4e_29{background-color:#128afb0d}._tabItem_m3c4e_13:focus{outline:none}._tabItem_m3c4e_13:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}._tabContent_m3c4e_29{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:10px;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-sm) var(--border-radius-sm) 0 0;transition:background-color .2s ease}._tabLabel_m3c4e_51{font-family:Lato,sans-serif;font-size:var(--font-size-base);line-height:1.5em;text-align:center;font-weight:var(--font-weight-normal);color:var(--color-text-secondary);transition:color .2s ease}._tabLine_m3c4e_61{width:100%;height:2px;background-color:transparent;transition:background-color .2s ease}._active_m3c4e_68 ._tabLabel_m3c4e_51{font-weight:var(--font-weight-bold);color:var(--color-text-primary)}._active_m3c4e_68 ._tabLine_m3c4e_61{background-color:var(--color-primary)}._inactive_m3c4e_76 ._tabLabel_m3c4e_51{font-weight:var(--font-weight-normal);color:var(--color-text-secondary)}._inactive_m3c4e_76 ._tabLine_m3c4e_61{background-color:var(--color-border-light)}._tabPanels_m3c4e_84{padding:var(--spacing-md) 0;background-color:transparent}._dropdown_yz8m1_1{position:relative;display:block;min-width:200px;width:100%;box-sizing:border-box}._label_yz8m1_9{display:block;font-weight:var(--font-weight-bold);color:var(--color-text-primary);margin-bottom:var(--spacing-sm);font-size:.875rem;line-height:var(--line-height-base)}._required_yz8m1_18{color:var(--color-text-secondary);margin-left:2px}._trigger_yz8m1_23{display:flex;align-items:center;justify-content:space-between;height:34px;padding:0 .75rem;background:var(--color-bg-primary);border:1px solid var(--color-input-border);border-radius:4px;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease;font-size:var(--font-size-base);color:var(--color-text-primary);gap:.5rem}._trigger_yz8m1_23:hover:not(:focus){border-color:var(--color-primary)}._trigger_yz8m1_23:focus{outline:0;border-color:var(--color-input-focus);box-shadow:var(--focus-ring-box-shadow)}._triggerDisabled_yz8m1_47{cursor:not-allowed;opacity:.7;background:var(--color-bg-secondary)}._triggerDisabled_yz8m1_47:hover{border-color:var(--color-input-border)}._triggerInput_yz8m1_56{flex:1;min-width:0;border:none;background:transparent;font-size:inherit;font-family:inherit;color:inherit;padding:0;outline:none}._triggerInput_yz8m1_56::placeholder{color:var(--color-text-secondary)}._triggerInput_yz8m1_56:disabled{cursor:not-allowed}._value_yz8m1_74{flex:1;text-align:left;text-overflow:ellipsis;white-space:nowrap}._placeholder_yz8m1_81{color:var(--color-text-secondary)}._chevron_yz8m1_85{flex-shrink:0;color:var(--color-text-secondary);width:1.25rem;height:1.25rem}._open_yz8m1_92 ._chevron_yz8m1_85{transform:rotate(180deg)}@keyframes _menuIn_yz8m1_1{0%{transform:translateY(-10px);opacity:.2}to{transform:translateY(0);opacity:1}}@keyframes _menuOut_yz8m1_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-10px);opacity:.2}}._panel_yz8m1_116{position:absolute;top:calc(100% + 4px);left:0;right:0;width:100%;min-width:100%;box-sizing:border-box;z-index:1000;background:var(--color-bg-primary);border:1px solid var(--color-border-light);border-radius:4px;box-shadow:0 4px 12px #00000026;overflow-x:hidden;animation:_menuIn_yz8m1_1 .25s ease-out forwards}._panelClosing_yz8m1_133{animation:_menuOut_yz8m1_1 .15s ease-in forwards}._filterWrapper_yz8m1_137{position:relative;padding:4px 8px;border-bottom:1px solid var(--color-border-light);box-sizing:border-box}._filterInput_yz8m1_144{width:100%;box-sizing:border-box;padding:4px 28px 4px 8px;border:1px solid var(--color-input-border);border-radius:4px;font-size:var(--font-size-base);color:var(--color-text-primary);background:var(--color-bg-primary)}._filterInput_yz8m1_144:focus{outline:0;border-color:var(--color-primary);box-shadow:var(--focus-ring-box-shadow)}._filterInput_yz8m1_144::placeholder{color:var(--color-text-secondary)}._filterIcon_yz8m1_163{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:var(--color-text-secondary);width:1rem;height:1rem;pointer-events:none}._list_yz8m1_174{line-height:1rem;list-style:none;margin:0;padding:.25rem 0;max-height:240px;overflow-y:auto}._option_yz8m1_183{padding:.5rem .75rem;cursor:pointer;font-size:var(--font-size-base);color:var(--color-text-primary);transition:background-color .15s ease;margin-bottom:0}._option_yz8m1_183:hover,._option_yz8m1_183:focus-visible{background:var(--color-bg-secondary)}._optionSelected_yz8m1_195{background:var(--color-dropdown-option-highlight)}._optionHighlighted_yz8m1_199{background:var(--color-bg-secondary)}._optionDisabled_yz8m1_203{cursor:not-allowed;opacity:.6;color:var(--color-text-secondary)}._optionDisabled_yz8m1_203:hover{background:transparent}._empty_yz8m1_212{padding:.75rem 1rem;color:var(--color-text-secondary);font-size:var(--font-size-sm);cursor:default}._disabled_yz8m1_219 ._trigger_yz8m1_23:hover{border-color:var(--color-input-border)}._inputText_1crp5_1{position:relative;display:block;min-width:200px;width:100%;box-sizing:border-box}._label_1crp5_9{display:inline-flex;align-items:center;gap:.25rem;font-weight:var(--font-weight-bold);color:var(--color-text-primary);margin-bottom:var(--spacing-sm);font-size:.875rem;line-height:var(--line-height-base)}._required_1crp5_20{color:var(--color-text-secondary);margin-left:2px}._tooltipIcon_1crp5_25{display:inline-flex;align-items:center;justify-content:center;color:var(--color-text-primary);cursor:help}._tooltipIcon_1crp5_25 svg{width:1rem;height:1rem}._input_1crp5_1{display:block;width:100%;height:34px;padding:0 .75rem;background:var(--color-bg-primary);border:1px solid var(--color-input-border);border-radius:4px;font-size:var(--font-size-base);font-family:inherit;color:var(--color-text-primary);transition:border-color .2s ease,box-shadow .2s ease;box-sizing:border-box}._input_1crp5_1::placeholder{color:var(--color-text-secondary)}._input_1crp5_1:hover:not(:disabled):not(:focus){border-color:var(--color-primary)}._input_1crp5_1:focus{outline:0;border-color:var(--color-input-focus);box-shadow:var(--focus-ring-box-shadow);transition:box-shadow .2s ease-in-out}._input_1crp5_1:disabled{cursor:not-allowed;opacity:.7;background:var(--color-bg-secondary)}._input_1crp5_1:disabled:hover{border-color:var(--color-input-border)}._inputTextarea_1crp5_72{height:auto;min-height:34px;padding:.5rem .75rem;resize:vertical}._inputTextDisabled_1crp5_79 ._input_1crp5_1:hover{border-color:var(--color-input-border)}._accordion_l1hoq_1{display:block;width:100%}._tab_l1hoq_6{width:100%;border-bottom:1px solid var(--color-border-light)}._headerButton_l1hoq_11{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 0;border:none;background:transparent;cursor:pointer;font-family:inherit;font-size:var(--font-size-base);line-height:var(--line-height-base);color:var(--color-text-primary)}._headerButton_l1hoq_11:disabled{cursor:not-allowed;opacity:.6}._headerButton_l1hoq_11:focus{outline:none}._headerButton_l1hoq_11:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px;border-radius:4px}._headerContent_l1hoq_39{display:flex;align-items:center;gap:.5rem}._icon_l1hoq_45{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--color-text-secondary)}._panel_l1hoq_53{overflow:hidden;transition:max-height .2s ease,opacity .2s ease,padding .2s ease}._panelCollapsed_l1hoq_58{max-height:0;opacity:0;padding:0}._panelOpen_l1hoq_64{max-height:1000px;opacity:1;padding:.25rem 0 .5rem}._panelContent_l1hoq_70{color:var(--color-text-primary)}._noBorderLast_l1hoq_74{border-bottom:none}._selectButton_1u3fo_1{display:inline-flex;flex-wrap:wrap;gap:0;font-size:var(--font-size-base);color:var(--color-text-primary)}._selectButtonDisabled_1u3fo_9{opacity:.7;pointer-events:none}._selectButtonInvalid_1u3fo_14 ._button_1u3fo_14{border-color:var(--color-primary)}._button_1u3fo_14{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 .75rem;background:var(--color-bg-primary);border:1px solid var(--color-input-border);font-size:inherit;font-family:inherit;color:var(--color-text-primary);cursor:pointer;transition:border-color .2s ease,background-color .2s ease,color .2s ease}._button_1u3fo_14:hover:not(:disabled){z-index:1;border-color:var(--color-primary);background:var(--color-bg-secondary)}._button_1u3fo_14:focus{outline:0;z-index:1}._button_1u3fo_14:disabled{cursor:not-allowed;opacity:.6}._buttonFirst_1u3fo_47{border-radius:4px 0 0 4px}._buttonLast_1u3fo_51{border-radius:0 4px 4px 0}._button_1u3fo_14:only-child{border-radius:4px}._buttonSelected_1u3fo_59{background:var(--color-primary);border-color:var(--color-primary);color:#fff}._buttonSelected_1u3fo_59:hover:not(:disabled){background:var(--color-primary-hover);border-color:var(--color-primary-hover);color:#fff}._buttonSelected_1u3fo_59:focus{box-shadow:var(--focus-ring-box-shadow)}._button_1u3fo_14+._button_1u3fo_14{margin-left:-1px}._buttonSelected_1u3fo_59+._button_1u3fo_14,._button_1u3fo_14+._buttonSelected_1u3fo_59{margin-left:-1px}:root{--color-primary: #3b73bb;--color-primary-hover: #2665b7;--color-dark: #3e4759;--color-text-primary: #212529;--color-text-secondary: #6c757d;--color-bg-primary: #ffffff;--color-bg-secondary: #f8f9fa;--color-border-light: #e9ecef;--spacing-sm: .5rem;--spacing-md: 1rem;--spacing-lg: 1.5rem;--spacing-xl: 3rem;--border-radius-sm: .25rem;--border-radius-md: .375rem;--border-radius-lg: .5rem;--font-size-sm: .875rem;--font-size-base: .875rem;--font-size-lg: 1.125rem;--font-weight-normal: 400;--font-weight-bold: 700;--line-height-base: 1rem;--color-input-border: #e9ecef;--color-input-focus: #3b73bb;--color-dropdown-option-highlight: #e6f0ff;--color-dropdown-filter-border: #3b73bb;--focus-ring-box-shadow: 0 0 0 1px rgba(38, 101, 183, .5)}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text-primary);background-color:var(--color-bg-primary);margin:0;padding:0}
1
+ ._primaryButton_gvcke_1{background:var(--color-primary);border:1px solid var(--color-primary);align-items:center;border-radius:4px;font-family:Lato,sans-serif;font-style:normal;font-weight:700;font-size:12px;text-transform:uppercase;color:#fff;padding:0 1.5rem;cursor:pointer;height:34px;transition:background-color .3s ease}._primaryButton_gvcke_1:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}._primaryButton_gvcke_1:disabled{cursor:not-allowed;color:#9cbbe3;border:1px solid var(--color-primary-hover);background:var(--color-primary-hover);opacity:.8}._primaryButton_gvcke_1:hover{border:1px solid var(--color-primary-hover);background:var(--color-primary-hover)}._primaryButtonDisabled_gvcke_33{cursor:not-allowed;opacity:.8}._primaryButtonDisabled_gvcke_33:hover{transform:none}._spinner_gvcke_41{animation:_spin_gvcke_41 1s linear infinite;margin-right:.5rem}@keyframes _spin_gvcke_41{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._secondaryButton_15dkw_1{background:transparent;border:1px solid var(--color-primary);align-items:center;border-radius:4px;font-family:Lato,sans-serif;font-style:normal;font-weight:700;font-size:12px;text-transform:uppercase;color:var(--color-primary);padding:0 1.5rem;cursor:pointer;height:34px;transition:background-color .3s ease,border-color .3s ease,color .3s ease}._secondaryButton_15dkw_1:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}._secondaryButton_15dkw_1:disabled{cursor:not-allowed;color:#9cbbe3;border:1px solid #9cbbe3;background:transparent;opacity:.5}._secondaryButton_15dkw_1:hover{background:#efefef}._secondaryButtonDisabled_15dkw_32{cursor:not-allowed;opacity:.65}._secondaryButtonDisabled_15dkw_32:hover{transform:none;background:transparent;color:#9cbbe3}._tabsContainer_m3c4e_1{display:flex;flex-direction:column;width:100%}._tabsHeader_m3c4e_7{display:flex;align-items:center;gap:0}._tabItem_m3c4e_13{display:flex;flex-direction:column;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .2s ease;background:none;border:none;padding:0;margin:0;font-family:inherit;font-size:inherit;color:inherit}._tabItem_m3c4e_13:hover ._tabContent_m3c4e_29{background-color:#128afb0d}._tabItem_m3c4e_13:focus{outline:none}._tabItem_m3c4e_13:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}._tabContent_m3c4e_29{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:10px;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-sm) var(--border-radius-sm) 0 0;transition:background-color .2s ease}._tabLabel_m3c4e_51{font-family:Lato,sans-serif;font-size:var(--font-size-base);line-height:1.5em;text-align:center;font-weight:var(--font-weight-normal);color:var(--color-text-secondary);transition:color .2s ease}._tabLine_m3c4e_61{width:100%;height:2px;background-color:transparent;transition:background-color .2s ease}._active_m3c4e_68 ._tabLabel_m3c4e_51{font-weight:var(--font-weight-bold);color:var(--color-text-primary)}._active_m3c4e_68 ._tabLine_m3c4e_61{background-color:var(--color-primary)}._inactive_m3c4e_76 ._tabLabel_m3c4e_51{font-weight:var(--font-weight-normal);color:var(--color-text-secondary)}._inactive_m3c4e_76 ._tabLine_m3c4e_61{background-color:var(--color-border-light)}._tabPanels_m3c4e_84{padding:var(--spacing-md) 0;background-color:transparent}._dropdown_yz8m1_1{position:relative;display:block;min-width:200px;width:100%;box-sizing:border-box}._label_yz8m1_9{display:block;font-weight:var(--font-weight-bold);color:var(--color-text-primary);margin-bottom:var(--spacing-sm);font-size:.875rem;line-height:var(--line-height-base)}._required_yz8m1_18{color:var(--color-text-secondary);margin-left:2px}._trigger_yz8m1_23{display:flex;align-items:center;justify-content:space-between;height:34px;padding:0 .75rem;background:var(--color-bg-primary);border:1px solid var(--color-input-border);border-radius:4px;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease;font-size:var(--font-size-base);color:var(--color-text-primary);gap:.5rem}._trigger_yz8m1_23:hover:not(:focus){border-color:var(--color-primary)}._trigger_yz8m1_23:focus{outline:0;border-color:var(--color-input-focus);box-shadow:var(--focus-ring-box-shadow)}._triggerDisabled_yz8m1_47{cursor:not-allowed;opacity:.7;background:var(--color-bg-secondary)}._triggerDisabled_yz8m1_47:hover{border-color:var(--color-input-border)}._triggerInput_yz8m1_56{flex:1;min-width:0;border:none;background:transparent;font-size:inherit;font-family:inherit;color:inherit;padding:0;outline:none}._triggerInput_yz8m1_56::placeholder{color:var(--color-text-secondary)}._triggerInput_yz8m1_56:disabled{cursor:not-allowed}._value_yz8m1_74{flex:1;text-align:left;text-overflow:ellipsis;white-space:nowrap}._placeholder_yz8m1_81{color:var(--color-text-secondary)}._chevron_yz8m1_85{flex-shrink:0;color:var(--color-text-secondary);width:1.25rem;height:1.25rem}._open_yz8m1_92 ._chevron_yz8m1_85{transform:rotate(180deg)}@keyframes _menuIn_yz8m1_1{0%{transform:translateY(-10px);opacity:.2}to{transform:translateY(0);opacity:1}}@keyframes _menuOut_yz8m1_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-10px);opacity:.2}}._panel_yz8m1_116{position:absolute;top:calc(100% + 4px);left:0;right:0;width:100%;min-width:100%;box-sizing:border-box;z-index:1000;background:var(--color-bg-primary);border:1px solid var(--color-border-light);border-radius:4px;box-shadow:0 4px 12px #00000026;overflow-x:hidden;animation:_menuIn_yz8m1_1 .25s ease-out forwards}._panelClosing_yz8m1_133{animation:_menuOut_yz8m1_1 .15s ease-in forwards}._filterWrapper_yz8m1_137{position:relative;padding:4px 8px;border-bottom:1px solid var(--color-border-light);box-sizing:border-box}._filterInput_yz8m1_144{width:100%;box-sizing:border-box;padding:4px 28px 4px 8px;border:1px solid var(--color-input-border);border-radius:4px;font-size:var(--font-size-base);color:var(--color-text-primary);background:var(--color-bg-primary)}._filterInput_yz8m1_144:focus{outline:0;border-color:var(--color-primary);box-shadow:var(--focus-ring-box-shadow)}._filterInput_yz8m1_144::placeholder{color:var(--color-text-secondary)}._filterIcon_yz8m1_163{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:var(--color-text-secondary);width:1rem;height:1rem;pointer-events:none}._list_yz8m1_174{line-height:1rem;list-style:none;margin:0;padding:.25rem 0;max-height:240px;overflow-y:auto}._option_yz8m1_183{padding:.5rem .75rem;cursor:pointer;font-size:var(--font-size-base);color:var(--color-text-primary);transition:background-color .15s ease;margin-bottom:0}._option_yz8m1_183:hover,._option_yz8m1_183:focus-visible{background:var(--color-bg-secondary)}._optionSelected_yz8m1_195{background:var(--color-dropdown-option-highlight)}._optionHighlighted_yz8m1_199{background:var(--color-bg-secondary)}._optionDisabled_yz8m1_203{cursor:not-allowed;opacity:.6;color:var(--color-text-secondary)}._optionDisabled_yz8m1_203:hover{background:transparent}._empty_yz8m1_212{padding:.75rem 1rem;color:var(--color-text-secondary);font-size:var(--font-size-sm);cursor:default}._disabled_yz8m1_219 ._trigger_yz8m1_23:hover{border-color:var(--color-input-border)}._inputText_1crp5_1{position:relative;display:block;min-width:200px;width:100%;box-sizing:border-box}._label_1crp5_9{display:inline-flex;align-items:center;gap:.25rem;font-weight:var(--font-weight-bold);color:var(--color-text-primary);margin-bottom:var(--spacing-sm);font-size:.875rem;line-height:var(--line-height-base)}._required_1crp5_20{color:var(--color-text-secondary);margin-left:2px}._tooltipIcon_1crp5_25{display:inline-flex;align-items:center;justify-content:center;color:var(--color-text-primary);cursor:help}._tooltipIcon_1crp5_25 svg{width:1rem;height:1rem}._input_1crp5_1{display:block;width:100%;height:34px;padding:0 .75rem;background:var(--color-bg-primary);border:1px solid var(--color-input-border);border-radius:4px;font-size:var(--font-size-base);font-family:inherit;color:var(--color-text-primary);transition:border-color .2s ease,box-shadow .2s ease;box-sizing:border-box}._input_1crp5_1::placeholder{color:var(--color-text-secondary)}._input_1crp5_1:hover:not(:disabled):not(:focus){border-color:var(--color-primary)}._input_1crp5_1:focus{outline:0;border-color:var(--color-input-focus);box-shadow:var(--focus-ring-box-shadow);transition:box-shadow .2s ease-in-out}._input_1crp5_1:disabled{cursor:not-allowed;opacity:.7;background:var(--color-bg-secondary)}._input_1crp5_1:disabled:hover{border-color:var(--color-input-border)}._inputTextarea_1crp5_72{height:auto;min-height:34px;padding:.5rem .75rem;resize:vertical}._inputTextDisabled_1crp5_79 ._input_1crp5_1:hover{border-color:var(--color-input-border)}._accordion_l1hoq_1{display:block;width:100%}._tab_l1hoq_6{width:100%;border-bottom:1px solid var(--color-border-light)}._headerButton_l1hoq_11{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 0;border:none;background:transparent;cursor:pointer;font-family:inherit;font-size:var(--font-size-base);line-height:var(--line-height-base);color:var(--color-text-primary)}._headerButton_l1hoq_11:disabled{cursor:not-allowed;opacity:.6}._headerButton_l1hoq_11:focus{outline:none}._headerButton_l1hoq_11:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px;border-radius:4px}._headerContent_l1hoq_39{display:flex;align-items:center;gap:.5rem}._icon_l1hoq_45{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--color-text-secondary)}._panel_l1hoq_53{overflow:hidden;transition:max-height .2s ease,opacity .2s ease,padding .2s ease}._panelCollapsed_l1hoq_58{max-height:0;opacity:0;padding:0}._panelOpen_l1hoq_64{max-height:1000px;opacity:1;padding:.25rem 0 .5rem}._panelContent_l1hoq_70{color:var(--color-text-primary)}._noBorderLast_l1hoq_74{border-bottom:none}._selectButton_1u3fo_1{display:inline-flex;flex-wrap:wrap;gap:0;font-size:var(--font-size-base);color:var(--color-text-primary)}._selectButtonDisabled_1u3fo_9{opacity:.7;pointer-events:none}._selectButtonInvalid_1u3fo_14 ._button_1u3fo_14{border-color:var(--color-primary)}._button_1u3fo_14{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 .75rem;background:var(--color-bg-primary);border:1px solid var(--color-input-border);font-size:inherit;font-family:inherit;color:var(--color-text-primary);cursor:pointer;transition:border-color .2s ease,background-color .2s ease,color .2s ease}._button_1u3fo_14:hover:not(:disabled){z-index:1;border-color:var(--color-primary);background:var(--color-bg-secondary)}._button_1u3fo_14:focus{outline:0;z-index:1}._button_1u3fo_14:disabled{cursor:not-allowed;opacity:.6}._buttonFirst_1u3fo_47{border-radius:4px 0 0 4px}._buttonLast_1u3fo_51{border-radius:0 4px 4px 0}._button_1u3fo_14:only-child{border-radius:4px}._buttonSelected_1u3fo_59{background:var(--color-primary);border-color:var(--color-primary);color:#fff}._buttonSelected_1u3fo_59:hover:not(:disabled){background:var(--color-primary-hover);border-color:var(--color-primary-hover);color:#fff}._buttonSelected_1u3fo_59:focus{box-shadow:var(--focus-ring-box-shadow)}._button_1u3fo_14+._button_1u3fo_14{margin-left:-1px}._buttonSelected_1u3fo_59+._button_1u3fo_14,._button_1u3fo_14+._buttonSelected_1u3fo_59{margin-left:-1px}:root{--color-primary: #3b73bb;--color-primary-hover: #2665b7;--color-dark: #3e4759;--color-text-primary: #212529;--color-text-secondary: #6c757d;--color-bg-primary: #ffffff;--color-bg-secondary: #f8f9fa;--color-border-light: #e9ecef;--spacing-sm: .5rem;--spacing-md: 1rem;--spacing-lg: 1.5rem;--spacing-xl: 3rem;--border-radius-sm: .25rem;--border-radius-md: .375rem;--border-radius-lg: .5rem;--font-size-sm: .875rem;--font-size-base: .875rem;--font-size-lg: 1.125rem;--font-weight-normal: 400;--font-weight-bold: 700;--line-height-base: 1rem;--color-input-border: #e9ecef;--color-input-focus: #3b73bb;--color-dropdown-option-highlight: #e6f0ff;--color-dropdown-filter-border: #3b73bb;--focus-ring-box-shadow: 0 0 0 1px rgba(38, 101, 183, .5)}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--color-text-primary);background-color:var(--color-bg-primary);margin:0;padding:0}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emporix/component-library",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "A React component library for Emporix projects",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",