@emporix/component-library 1.5.1 → 1.5.2

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,25 +1,25 @@
1
- import { jsxs as I, jsx as u } from "react/jsx-runtime";
2
- import F, { useState as T, useRef as X, useMemo as me, useEffect as ie, useId as he } from "react";
3
- const Le = "_primaryButton_uyzzr_1", Ae = "_primaryButtonDisabled_uyzzr_34", qe = "_spinner_uyzzr_42", _e = {
4
- primaryButton: Le,
5
- primaryButtonDisabled: Ae,
6
- spinner: qe
1
+ import { jsxs as D, jsx as u } from "react/jsx-runtime";
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 = {
4
+ primaryButton: $e,
5
+ primaryButtonDisabled: Le,
6
+ spinner: Ae
7
7
  };
8
- var we = {
8
+ var Ne = {
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(we), ze = ["attr", "size", "title"];
14
+ }, ge = F.createContext && /* @__PURE__ */ F.createContext(Ne), qe = ["attr", "size", "title"];
15
15
  function Fe(e, t) {
16
16
  if (e == null) return {};
17
- var n, o, i = We(e, t);
17
+ var n, o, s = We(e, t);
18
18
  if (Object.getOwnPropertySymbols) {
19
19
  var a = Object.getOwnPropertySymbols(e);
20
- for (o = 0; o < a.length; o++) n = a[o], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
20
+ for (o = 0; o < a.length; o++) n = a[o], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (s[n] = e[n]);
21
21
  }
22
- return i;
22
+ return s;
23
23
  }
24
24
  function We(e, t) {
25
25
  if (e == null) return {};
@@ -43,8 +43,8 @@ function be(e, t) {
43
43
  var n = Object.keys(e);
44
44
  if (Object.getOwnPropertySymbols) {
45
45
  var o = Object.getOwnPropertySymbols(e);
46
- t && (o = o.filter(function(i) {
47
- return Object.getOwnPropertyDescriptor(e, i).enumerable;
46
+ t && (o = o.filter(function(s) {
47
+ return Object.getOwnPropertyDescriptor(e, s).enumerable;
48
48
  })), n.push.apply(n, o);
49
49
  }
50
50
  return n;
@@ -77,28 +77,28 @@ function Ve(e, t) {
77
77
  }
78
78
  return (t === "string" ? String : Number)(e);
79
79
  }
80
- function Ne(e) {
80
+ function ke(e) {
81
81
  return e && e.map((t, n) => /* @__PURE__ */ F.createElement(t.tag, de({
82
82
  key: n
83
- }, t.attr), Ne(t.child)));
83
+ }, t.attr), ke(t.child)));
84
84
  }
85
- function se(e) {
85
+ function ie(e) {
86
86
  return (t) => /* @__PURE__ */ F.createElement(He, ue({
87
87
  attr: de({}, e.attr)
88
- }, t), Ne(e.child));
88
+ }, t), ke(e.child));
89
89
  }
90
90
  function He(e) {
91
91
  var t = (n) => {
92
92
  var {
93
93
  attr: o,
94
- size: i,
94
+ size: s,
95
95
  title: a
96
- } = e, s = Fe(e, ze), b = i || n.size || "1em", l;
96
+ } = e, i = Fe(e, qe), b = s || n.size || "1em", l;
97
97
  return n.className && (l = n.className), e.className && (l = (l ? l + " " : "") + e.className), /* @__PURE__ */ F.createElement("svg", ue({
98
98
  stroke: "currentColor",
99
99
  fill: "currentColor",
100
100
  strokeWidth: "0"
101
- }, n.attr, o, s, {
101
+ }, n.attr, o, i, {
102
102
  className: l,
103
103
  style: de(de({
104
104
  color: e.color || n.color
@@ -108,26 +108,26 @@ 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(we);
111
+ return ge !== void 0 ? /* @__PURE__ */ F.createElement(ge.Consumer, null, (n) => t(n)) : t(Ne);
112
112
  }
113
113
  function Ke(e) {
114
- return se({ 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);
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);
115
115
  }
116
116
  const nn = ({
117
117
  children: e,
118
118
  disabled: t = !1,
119
119
  loading: n = !1,
120
120
  onClick: o,
121
- className: i = "",
121
+ className: s = "",
122
122
  "data-testid": a,
123
- ...s
123
+ ...i
124
124
  }) => {
125
125
  const b = [
126
126
  _e.primaryButton,
127
127
  t ? _e.primaryButtonDisabled : "",
128
- i
128
+ s
129
129
  ].filter(Boolean).join(" ");
130
- return /* @__PURE__ */ I(
130
+ return /* @__PURE__ */ D(
131
131
  "button",
132
132
  {
133
133
  type: "button",
@@ -135,14 +135,14 @@ const nn = ({
135
135
  disabled: t || n,
136
136
  onClick: o,
137
137
  "data-testid": a,
138
- ...s,
138
+ ...i,
139
139
  children: [
140
140
  n && /* @__PURE__ */ u(Ke, { className: _e.spinner, size: 12 }),
141
141
  e
142
142
  ]
143
143
  }
144
144
  );
145
- }, Me = "_secondaryButton_1s7ft_1", Ze = "_secondaryButtonDisabled_1s7ft_33", xe = {
145
+ }, Me = "_secondaryButton_1s7ft_1", Ze = "_secondaryButtonDisabled_1s7ft_33", Be = {
146
146
  secondaryButton: Me,
147
147
  secondaryButtonDisabled: Ze
148
148
  }, rn = ({
@@ -150,27 +150,27 @@ const nn = ({
150
150
  disabled: t = !1,
151
151
  onClick: n,
152
152
  className: o = "",
153
- "data-testid": i,
153
+ "data-testid": s,
154
154
  ...a
155
155
  }) => {
156
- const s = [
157
- xe.secondaryButton,
158
- t ? xe.secondaryButtonDisabled : "",
156
+ const i = [
157
+ Be.secondaryButton,
158
+ t ? Be.secondaryButtonDisabled : "",
159
159
  o
160
160
  ].filter(Boolean).join(" ");
161
161
  return /* @__PURE__ */ u(
162
162
  "button",
163
163
  {
164
164
  type: "button",
165
- className: s,
165
+ className: i,
166
166
  disabled: t,
167
167
  onClick: n,
168
- "data-testid": i,
168
+ "data-testid": s,
169
169
  ...a,
170
170
  children: e
171
171
  }
172
172
  );
173
- }, Qe = "_tabsContainer_m3c4e_1", Ge = "_tabsHeader_m3c4e_7", Ue = "_tabItem_m3c4e_13", Je = "_tabContent_m3c4e_29", Xe = "_tabLabel_m3c4e_51", Ye = "_tabLine_m3c4e_61", Te = "_active_m3c4e_68", et = "_inactive_m3c4e_76", tt = "_tabPanels_m3c4e_84", z = {
173
+ }, Qe = "_tabsContainer_m3c4e_1", Ge = "_tabsHeader_m3c4e_7", Ue = "_tabItem_m3c4e_13", Je = "_tabContent_m3c4e_29", Xe = "_tabLabel_m3c4e_51", Ye = "_tabLine_m3c4e_61", Te = "_active_m3c4e_68", et = "_inactive_m3c4e_76", tt = "_tabPanels_m3c4e_84", q = {
174
174
  tabsContainer: Qe,
175
175
  tabsHeader: Ge,
176
176
  tabItem: Ue,
@@ -185,57 +185,57 @@ const nn = ({
185
185
  activeTabId: t,
186
186
  onTabChange: n,
187
187
  className: o = "",
188
- "data-testid": i,
188
+ "data-testid": s,
189
189
  ...a
190
190
  }) => {
191
191
  var b;
192
- const s = [z.tabsContainer, o].filter(Boolean).join(" ");
193
- return /* @__PURE__ */ I("div", { className: s, "data-testid": i, ...a, children: [
194
- /* @__PURE__ */ u("div", { className: z.tabsHeader, children: e.map((l) => {
195
- const f = l.id === t, N = [
196
- z.tabItem,
197
- f ? z.active : z.inactive
192
+ const i = [q.tabsContainer, o].filter(Boolean).join(" ");
193
+ return /* @__PURE__ */ D("div", { className: i, "data-testid": s, ...a, children: [
194
+ /* @__PURE__ */ u("div", { className: q.tabsHeader, children: e.map((l) => {
195
+ const p = l.id === t, k = [
196
+ q.tabItem,
197
+ p ? q.active : q.inactive
198
198
  ].filter(Boolean).join(" ");
199
- return /* @__PURE__ */ I(
199
+ return /* @__PURE__ */ D(
200
200
  "button",
201
201
  {
202
202
  type: "button",
203
- className: N,
203
+ className: k,
204
204
  onClick: () => n(l.id),
205
- "data-testid": `${i}-tab-${l.id}`,
205
+ "data-testid": `${s}-tab-${l.id}`,
206
206
  children: [
207
- /* @__PURE__ */ u("div", { className: z.tabContent, children: /* @__PURE__ */ u("span", { className: z.tabLabel, children: l.label }) }),
208
- /* @__PURE__ */ u("div", { className: z.tabLine })
207
+ /* @__PURE__ */ u("div", { className: q.tabContent, children: /* @__PURE__ */ u("span", { className: q.tabLabel, children: l.label }) }),
208
+ /* @__PURE__ */ u("div", { className: q.tabLine })
209
209
  ]
210
210
  },
211
211
  l.id
212
212
  );
213
213
  }) }),
214
- /* @__PURE__ */ u("div", { className: z.tabPanels, children: (b = e.find((l) => l.id === t)) == null ? void 0 : b.content })
214
+ /* @__PURE__ */ u("div", { className: q.tabPanels, children: (b = e.find((l) => l.id === t)) == null ? void 0 : b.content })
215
215
  ] });
216
216
  };
217
217
  function nt(e) {
218
- return se({ 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);
218
+ return ie({ 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);
219
219
  }
220
220
  function rt(e) {
221
- return se({ 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);
221
+ return ie({ 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);
222
222
  }
223
223
  function ot(e) {
224
- return se({ 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);
224
+ return ie({ 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);
225
225
  }
226
- function ke(e) {
227
- return se({ 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);
226
+ function xe(e) {
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 it = "_dropdown_1xupi_1", st = "_label_1xupi_9", lt = "_required_1xupi_18", at = "_trigger_1xupi_23", ct = "_triggerDisabled_1xupi_47", ut = "_triggerInput_1xupi_56", dt = "_value_1xupi_74", pt = "_placeholder_1xupi_82", ft = "_chevron_1xupi_86", _t = "_open_1xupi_93", yt = "_panel_1xupi_117", mt = "_panelClosing_1xupi_134", ht = "_filterWrapper_1xupi_138", vt = "_filterInput_1xupi_145", gt = "_filterIcon_1xupi_164", bt = "_list_1xupi_175", xt = "_option_1xupi_184", Bt = "_optionSelected_1xupi_196", Ct = "_optionHighlighted_1xupi_200", wt = "_optionDisabled_1xupi_204", Nt = "_empty_1xupi_213", kt = "_disabled_1xupi_220", v = {
230
- dropdown: it,
231
- label: st,
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 = {
230
+ dropdown: st,
231
+ label: it,
232
232
  required: lt,
233
233
  trigger: at,
234
234
  triggerDisabled: ct,
235
235
  triggerInput: ut,
236
236
  value: dt,
237
- placeholder: pt,
238
- chevron: ft,
237
+ placeholder: ft,
238
+ chevron: pt,
239
239
  open: _t,
240
240
  panel: yt,
241
241
  panelClosing: mt,
@@ -243,104 +243,104 @@ const it = "_dropdown_1xupi_1", st = "_label_1xupi_9", lt = "_required_1xupi_18"
243
243
  filterInput: vt,
244
244
  filterIcon: gt,
245
245
  list: bt,
246
- option: xt,
247
- optionSelected: Bt,
248
- optionHighlighted: Ct,
249
- optionDisabled: wt,
250
- empty: Nt,
251
- disabled: kt
246
+ option: Bt,
247
+ optionSelected: Ct,
248
+ optionHighlighted: wt,
249
+ optionDisabled: Nt,
250
+ empty: kt,
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], P = (e, t) => t == null ? !1 : !!e[t], sn = ({
255
+ }, Y = (e, t) => e[t], S = (e, t) => t == null ? !1 : !!e[t], sn = ({
256
256
  value: e,
257
257
  onChange: t,
258
258
  onEditEnd: n,
259
259
  options: o,
260
- optionLabel: i = "label",
260
+ optionLabel: s = "label",
261
261
  optionValue: a = "value",
262
- optionDisabled: s,
262
+ optionDisabled: i,
263
263
  placeholder: b = "Select",
264
264
  filter: l = !1,
265
- editable: f = !1,
266
- disabled: N = !1,
267
- required: $ = !1,
268
- label: S,
269
- inputId: A,
265
+ editable: p = !1,
266
+ disabled: k = !1,
267
+ required: P = !1,
268
+ label: I,
269
+ inputId: L,
270
270
  className: H = "",
271
271
  panelClassName: h = "",
272
272
  valueTemplate: y,
273
- itemTemplate: B,
273
+ itemTemplate: C,
274
274
  "data-testid": g
275
275
  }) => {
276
- const k = o.find(
276
+ const x = o.find(
277
277
  (r) => Y(r, a) === e
278
- ), w = k ? K(k, i) : "", [c, q] = T(!1), [O, le] = T(!1), [ee, ae] = T(""), [Q, C] = T(w), [_, d] = T(0), D = X(null), W = X(null), E = X(null), G = X(null), U = X(null), te = X(!1), j = me(
279
- () => l && !f ? o.filter(
280
- (r) => K(r, i).toLowerCase().includes(ee.toLowerCase())
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(
279
+ () => l && !p ? o.filter(
280
+ (r) => K(r, s).toLowerCase().includes(ee.toLowerCase())
281
281
  ) : o,
282
- [l, f, o, i, ee]
282
+ [l, p, o, s, ee]
283
283
  );
284
- ie(() => {
285
- f && C(w);
286
- }, [f, e, w]), ie(() => {
287
- c && l && !f && (ae(""), d(0), setTimeout(() => {
284
+ se(() => {
285
+ p && w(N);
286
+ }, [p, e, N]), se(() => {
287
+ c && l && !p && (ae(""), d(0), setTimeout(() => {
288
288
  var r;
289
289
  return (r = E.current) == null ? void 0 : r.focus();
290
290
  }, 0));
291
- }, [c, l, f]), ie(() => {
291
+ }, [c, l, p]), se(() => {
292
292
  if (!c) return;
293
293
  const r = j.findIndex(
294
- (x) => Y(x, a) === e
295
- ), p = j.findIndex(
296
- (x) => !P(x, s)
297
- ), m = r >= 0 && !P(j[r], s);
298
- d(m ? r : p >= 0 ? p : 0);
299
- }, [c, e, j, a, s]), ie(() => {
294
+ (B) => Y(B, a) === e
295
+ ), f = j.findIndex(
296
+ (B) => !S(B, i)
297
+ ), m = r >= 0 && !S(j[r], i);
298
+ d(m ? r : f >= 0 ? f : 0);
299
+ }, [c, e, j, a, i]), se(() => {
300
300
  const r = U.current;
301
301
  r != null && r.scrollIntoView && typeof r.scrollIntoView == "function" && r.scrollIntoView({ block: "nearest" });
302
302
  }, [_]);
303
303
  const ne = () => {
304
304
  te.current = !0, le(!0);
305
- }, pe = (r) => {
306
- var p;
307
- (te.current || (p = r.animationName) != null && p.includes("menuOut")) && (te.current = !1, q(!1), le(!1), f && C(w));
305
+ }, fe = (r) => {
306
+ var f;
307
+ (te.current || (f = r.animationName) != null && f.includes("menuOut")) && (te.current = !1, A(!1), le(!1), p && w(N));
308
308
  };
309
- ie(() => {
309
+ se(() => {
310
310
  if (!c && !O) return;
311
- const r = (p) => {
312
- D.current && !D.current.contains(p.target) && (f && C(w), ne());
311
+ const r = (f) => {
312
+ z.current && !z.current.contains(f.target) && (p && w(N), ne());
313
313
  };
314
314
  return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
315
- }, [c, O, f, w]);
315
+ }, [c, O, p, N]);
316
316
  const re = () => {
317
- N || q((r) => !r);
318
- }, oe = (r, p) => {
319
- if (P(r, s)) return;
317
+ k || A((r) => !r);
318
+ }, oe = (r, f) => {
319
+ if (S(r, i)) return;
320
320
  const m = Y(r, a);
321
- f && C(K(r, i)), t == null || t({
321
+ p && w(K(r, s)), t == null || t({
322
322
  value: m ?? null,
323
- originalEvent: p
323
+ originalEvent: f
324
324
  }), ne();
325
325
  }, ve = (r) => {
326
326
  if (!c) {
327
- if (r.key === "Enter" && f && Q.trim()) {
327
+ if (r.key === "Enter" && p && Q.trim()) {
328
328
  r.preventDefault();
329
- const p = Q.trim(), m = p.toLowerCase(), x = o.find((J) => {
330
- const V = K(J, i).toLowerCase();
329
+ const f = Q.trim(), m = f.toLowerCase(), B = o.find((J) => {
330
+ const V = K(J, s).toLowerCase();
331
331
  return V === m || V.startsWith(m);
332
- }), R = x && !P(x, s) ? Y(x, a) : null;
333
- x && !P(x, s) && (C(K(x, i)), t == null || t({
332
+ }), R = B && !S(B, i) ? Y(B, a) : null;
333
+ B && !S(B, i) && (w(K(B, s)), t == null || t({
334
334
  value: R,
335
335
  originalEvent: r
336
336
  })), n == null || n({
337
- value: p,
337
+ value: f,
338
338
  selectedValue: R,
339
339
  originalEvent: r
340
340
  });
341
341
  return;
342
342
  }
343
- (r.key === "Enter" || r.key === " " || r.key === "ArrowDown") && (r.preventDefault(), q(!0));
343
+ (r.key === "Enter" || r.key === " " || r.key === "ArrowDown") && (r.preventDefault(), A(!0));
344
344
  return;
345
345
  }
346
346
  if (r.key === "Escape") {
@@ -348,78 +348,78 @@ const it = "_dropdown_1xupi_1", st = "_label_1xupi_9", lt = "_required_1xupi_18"
348
348
  return;
349
349
  }
350
350
  if (r.key === "ArrowDown") {
351
- r.preventDefault(), d((p) => {
352
- for (let m = p + 1; m < j.length; m++)
353
- if (!P(j[m], s))
351
+ r.preventDefault(), d((f) => {
352
+ for (let m = f + 1; m < j.length; m++)
353
+ if (!S(j[m], i))
354
354
  return m;
355
- return p;
355
+ return f;
356
356
  });
357
357
  return;
358
358
  }
359
359
  if (r.key === "ArrowUp") {
360
- r.preventDefault(), d((p) => {
361
- for (let m = p - 1; m >= 0; m--)
362
- if (!P(j[m], s))
360
+ r.preventDefault(), d((f) => {
361
+ for (let m = f - 1; m >= 0; m--)
362
+ if (!S(j[m], i))
363
363
  return m;
364
- return p;
364
+ return f;
365
365
  });
366
366
  return;
367
367
  }
368
368
  if (r.key === "Enter") {
369
- if (r.preventDefault(), f) {
370
- const p = Q.trim();
371
- if (p) {
372
- const m = p.toLowerCase(), x = o.find((J) => {
373
- const V = K(J, i).toLowerCase();
369
+ if (r.preventDefault(), p) {
370
+ const f = Q.trim();
371
+ if (f) {
372
+ const m = f.toLowerCase(), B = o.find((J) => {
373
+ const V = K(J, s).toLowerCase();
374
374
  return V === m || V.startsWith(m);
375
- }), R = x && !P(x, s) ? Y(x, a) : null;
376
- x && !P(x, s) && oe(x, r), n == null || n({
377
- value: p,
375
+ }), R = B && !S(B, i) ? Y(B, a) : null;
376
+ B && !S(B, i) && oe(B, r), n == null || n({
377
+ value: f,
378
378
  selectedValue: R,
379
379
  originalEvent: r
380
380
  });
381
381
  } else
382
382
  n == null || n({ value: "", selectedValue: null, originalEvent: r });
383
383
  } else if (j[_]) {
384
- const p = j[_];
385
- P(p, s) || oe(p, r);
384
+ const f = j[_];
385
+ S(f, i) || oe(f, r);
386
386
  }
387
387
  }
388
388
  }, Oe = [
389
389
  v.dropdown,
390
- N ? v.disabled : "",
390
+ k ? v.disabled : "",
391
391
  c ? v.open : "",
392
392
  H
393
- ].filter(Boolean).join(" "), De = [
393
+ ].filter(Boolean).join(" "), ze = [
394
394
  v.trigger,
395
- N ? v.triggerDisabled : ""
396
- ].filter(Boolean).join(" "), Ie = [
395
+ k ? v.triggerDisabled : ""
396
+ ].filter(Boolean).join(" "), De = [
397
397
  v.panel,
398
398
  O ? v.panelClosing : "",
399
399
  h
400
- ].filter(Boolean).join(" "), Se = he(), ce = A ?? `dropdown-${Se.replace(/[^a-zA-Z0-9_-]/g, "")}`, fe = `${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
- $ && /* @__PURE__ */ u("span", { className: v.required, children: "*" })
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,
404
+ P && /* @__PURE__ */ u("span", { className: v.required, children: "*" })
405
405
  ] }),
406
- /* @__PURE__ */ I(
406
+ /* @__PURE__ */ D(
407
407
  "div",
408
408
  {
409
- id: f ? void 0 : ce,
409
+ id: p ? void 0 : ce,
410
410
  role: "combobox",
411
411
  "aria-expanded": c || O,
412
412
  "aria-haspopup": "listbox",
413
- "aria-controls": c || O ? fe : void 0,
414
- "aria-disabled": N,
415
- "aria-label": typeof S == "string" ? S : void 0,
416
- tabIndex: f || N ? -1 : 0,
417
- className: De,
418
- onClick: f ? void 0 : re,
419
- onKeyDown: f ? void 0 : ve,
420
- "data-testid": g && !f ? `${g}-trigger` : void 0,
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,
418
+ onClick: p ? void 0 : re,
419
+ onKeyDown: p ? void 0 : ve,
420
+ "data-testid": g && !p ? `${g}-trigger` : void 0,
421
421
  children: [
422
- f ? /* @__PURE__ */ u(
422
+ p ? /* @__PURE__ */ u(
423
423
  "input",
424
424
  {
425
425
  ref: G,
@@ -428,42 +428,42 @@ const it = "_dropdown_1xupi_1", st = "_label_1xupi_9", lt = "_required_1xupi_18"
428
428
  className: v.triggerInput,
429
429
  value: Q,
430
430
  onChange: (r) => {
431
- C(r.target.value), !c && !O && q(!0), d(0);
431
+ w(r.target.value), !c && !O && A(!0), d(0);
432
432
  },
433
433
  onFocus: () => {
434
- !N && !c && !O && q(!0);
434
+ !k && !c && !O && A(!0);
435
435
  },
436
436
  onKeyDown: ve,
437
437
  placeholder: b,
438
- disabled: N,
438
+ disabled: k,
439
439
  "aria-autocomplete": "list",
440
- "aria-controls": c || O ? fe : void 0,
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(k ?? null) : w || /* @__PURE__ */ u("span", { className: v.placeholder, children: b }) }),
444
+ ) : /* @__PURE__ */ u("span", { className: v.value, children: y ? y(x ?? null) : N || /* @__PURE__ */ u("span", { className: v.placeholder, children: b }) }),
445
445
  /* @__PURE__ */ u(
446
- ke,
446
+ xe,
447
447
  {
448
448
  className: v.chevron,
449
449
  "aria-hidden": !0,
450
- onClick: f ? re : void 0
450
+ onClick: p ? re : void 0
451
451
  }
452
452
  )
453
453
  ]
454
454
  }
455
455
  ),
456
- (c || O) && /* @__PURE__ */ I(
456
+ (c || O) && /* @__PURE__ */ D(
457
457
  "div",
458
458
  {
459
459
  ref: W,
460
- id: fe,
461
- className: Ie,
460
+ id: pe,
461
+ className: De,
462
462
  role: "presentation",
463
- onAnimationEnd: pe,
463
+ onAnimationEnd: fe,
464
464
  "data-testid": g ? `${g}-panel` : void 0,
465
465
  children: [
466
- l && !f && /* @__PURE__ */ I("div", { className: v.filterWrapper, children: [
466
+ l && !p && /* @__PURE__ */ D("div", { className: v.filterWrapper, children: [
467
467
  /* @__PURE__ */ u(
468
468
  "input",
469
469
  {
@@ -475,7 +475,7 @@ const it = "_dropdown_1xupi_1", st = "_label_1xupi_9", lt = "_required_1xupi_18"
475
475
  ae(r.target.value), d(0);
476
476
  },
477
477
  onKeyDown: (r) => {
478
- r.key === "Escape" && q(!1), r.stopPropagation();
478
+ r.key === "Escape" && A(!1), r.stopPropagation();
479
479
  },
480
480
  placeholder: "Search...",
481
481
  "aria-label": "Filter options",
@@ -485,8 +485,8 @@ const it = "_dropdown_1xupi_1", st = "_label_1xupi_9", lt = "_required_1xupi_18"
485
485
  ),
486
486
  /* @__PURE__ */ u(nt, { className: v.filterIcon, "aria-hidden": !0 })
487
487
  ] }),
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, p) => {
489
- const m = Y(r, a), x = K(r, i), R = P(r, s), J = e === m, V = p === _, Pe = m != null ? String(m) : `option-${p}`;
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}`;
490
490
  return /* @__PURE__ */ u(
491
491
  "li",
492
492
  {
@@ -500,55 +500,55 @@ const it = "_dropdown_1xupi_1", st = "_label_1xupi_9", lt = "_required_1xupi_18"
500
500
  V ? v.optionHighlighted : "",
501
501
  R ? v.optionDisabled : ""
502
502
  ].filter(Boolean).join(" "),
503
- onMouseEnter: () => !R && d(p),
504
- onClick: ($e) => oe(r, $e),
505
- "data-testid": g ? `${g}-option-${p}` : void 0,
506
- children: B ? B(r) : x
503
+ onMouseEnter: () => !R && d(f),
504
+ onClick: (Pe) => oe(r, Pe),
505
+ "data-testid": g ? `${g}-option-${f}` : void 0,
506
+ children: C ? C(r) : B
507
507
  },
508
- Pe
508
+ Se
509
509
  );
510
510
  }) })
511
511
  ]
512
512
  }
513
513
  )
514
514
  ] });
515
- }, jt = "_inputText_1crp5_1", Ot = "_label_1crp5_9", Dt = "_required_1crp5_20", It = "_tooltipIcon_1crp5_25", St = "_input_1crp5_1", Pt = "_inputTextarea_1crp5_72", $t = "_inputTextDisabled_1crp5_79", M = {
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 = {
516
516
  inputText: jt,
517
517
  label: Ot,
518
- required: Dt,
519
- tooltipIcon: It,
520
- input: St,
521
- inputTextarea: Pt,
522
- inputTextDisabled: $t
518
+ required: zt,
519
+ tooltipIcon: Dt,
520
+ input: It,
521
+ inputTextarea: St,
522
+ inputTextDisabled: Pt
523
523
  }, ln = ({
524
524
  label: e,
525
525
  tooltip: t,
526
526
  required: n = !1,
527
527
  inputId: o,
528
- textarea: i = !1,
528
+ textarea: s = !1,
529
529
  rows: a,
530
- className: s = "",
530
+ className: i = "",
531
531
  "data-testid": b,
532
532
  disabled: l = !1,
533
- ...f
533
+ ...p
534
534
  }) => {
535
- const { type: N = "text", ...$ } = f, S = he(), A = o || `input-text-${S.replace(/[^a-zA-Z0-9_-]/g, "")}`, H = [
535
+ const { type: k = "text", ...P } = p, I = he(), L = o || `input-text-${I.replace(/[^a-zA-Z0-9_-]/g, "")}`, H = [
536
536
  M.inputText,
537
537
  l ? M.inputTextDisabled : "",
538
- s
539
- ].filter(Boolean).join(" "), h = $["aria-invalid"];
538
+ i
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 B = n ? { "aria-required": "true" } : { "aria-required": "false" }, g = y === void 0 ? {} : { "aria-invalid": y }, k = [M.input, i ? M.inputTextarea : ""].filter(Boolean).join(" "), w = {
543
- id: A,
544
- className: k,
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 = {
543
+ id: L,
544
+ className: x,
545
545
  disabled: l,
546
- ...B,
546
+ ...C,
547
547
  ...g,
548
548
  "data-testid": b ? `${b}-input` : void 0
549
549
  };
550
- return /* @__PURE__ */ I("div", { className: H, "data-testid": b, children: [
551
- e != null && /* @__PURE__ */ I("label", { htmlFor: A, className: M.label, children: [
550
+ return /* @__PURE__ */ D("div", { className: H, "data-testid": b, children: [
551
+ e != null && /* @__PURE__ */ D("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(
@@ -561,20 +561,20 @@ const it = "_dropdown_1xupi_1", st = "_label_1xupi_9", lt = "_required_1xupi_18"
561
561
  }
562
562
  )
563
563
  ] }),
564
- i ? /* @__PURE__ */ u(
564
+ s ? /* @__PURE__ */ u(
565
565
  "textarea",
566
566
  {
567
- ...$,
568
- ...w,
567
+ ...P,
568
+ ...N,
569
569
  rows: a ?? 3
570
570
  }
571
- ) : /* @__PURE__ */ u("input", { ...$, ...w, type: N })
571
+ ) : /* @__PURE__ */ u("input", { ...P, ...N, type: k })
572
572
  ] });
573
- }, Lt = "_accordion_l1hoq_1", At = "_tab_l1hoq_6", qt = "_headerButton_l1hoq_11", zt = "_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", L = {
574
- accordion: Lt,
575
- tab: At,
576
- headerButton: qt,
577
- headerContent: zt,
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
+ accordion: $t,
575
+ tab: Lt,
576
+ headerButton: At,
577
+ headerContent: qt,
578
578
  icon: Ft,
579
579
  panel: Wt,
580
580
  panelCollapsed: Et,
@@ -588,62 +588,62 @@ const Kt = (e, t) => e == null ? [] : Array.isArray(e) ? t ? e : e.slice(0, 1) :
588
588
  multiple: t = !1,
589
589
  expandIcon: n,
590
590
  collapseIcon: o,
591
- onTabChange: i,
591
+ onTabChange: s,
592
592
  onTabOpen: a,
593
- onTabClose: s,
593
+ onTabClose: i,
594
594
  className: b = "",
595
595
  transitionOptions: l,
596
- pt: f,
597
- ptOptions: N,
598
- unstyled: $,
599
- children: S,
600
- ...A
596
+ pt: p,
597
+ ptOptions: k,
598
+ unstyled: P,
599
+ children: I,
600
+ ...L
601
601
  }) => {
602
- const H = he(), h = Mt(H), y = me(() => F.Children.toArray(S).filter(
602
+ const H = he(), h = Mt(H), y = me(() => F.Children.toArray(I).filter(
603
603
  (_) => F.isValidElement(_) && _.type === je
604
- ), [S]), B = e !== void 0, g = me(() => Kt(e, t), [e, t]), [k, w] = T([]), c = B ? g : k, q = typeof l == "object" && l != null && typeof l.timeout == "number" ? l.timeout : void 0, O = /* @__PURE__ */ u(ot, { "aria-hidden": !0 }), le = /* @__PURE__ */ u(ke, { "aria-hidden": !0 }), ee = n ?? O, ae = o ?? le, Q = (C, _) => {
605
- const d = c.includes(C);
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, _) => {
605
+ const d = c.includes(w);
606
606
  if (t) {
607
- const E = d ? c.filter((G) => G !== C) : [...c, C];
608
- B || w(E), i == null || i({ index: E, originalEvent: _ }), d ? s == null || s({ index: C, originalEvent: _ }) : a == null || a({ index: C, originalEvent: _ });
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: _ });
609
609
  return;
610
610
  }
611
- const D = c.length ? c[0] : null, W = d ? [] : [C];
612
- if (B || w(W), i == null || i({ index: W, originalEvent: _ }), d) {
613
- s == null || s({ index: C, originalEvent: _ });
611
+ const z = c.length ? c[0] : null, W = d ? [] : [w];
612
+ if (C || N(W), s == null || s({ index: W, originalEvent: _ }), d) {
613
+ i == null || i({ index: w, originalEvent: _ });
614
614
  return;
615
615
  }
616
- D != null && (s == null || s({ index: D, originalEvent: _ })), a == null || a({ index: C, originalEvent: _ });
616
+ z != null && (i == null || i({ index: z, originalEvent: _ })), a == null || a({ index: w, originalEvent: _ });
617
617
  };
618
618
  return /* @__PURE__ */ u(
619
619
  "div",
620
620
  {
621
- className: [L.accordion, b].filter(Boolean).join(" "),
622
- ...A,
623
- children: y.map((C, _) => {
621
+ className: [$.accordion, b].filter(Boolean).join(" "),
622
+ ...L,
623
+ children: y.map((w, _) => {
624
624
  var re;
625
- const d = C.props, D = 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, z = 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: D,
627
+ selected: z,
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 = D ? ae : ee, j = [
633
- L.headerButton,
632
+ }) : d.headerTemplate : d.header, te = z ? ae : ee, j = [
633
+ $.headerButton,
634
634
  d.headerClassName ?? ""
635
635
  ].filter(Boolean).join(" "), ne = [
636
- L.tab,
636
+ $.tab,
637
637
  d.className ?? "",
638
- _ === y.length - 1 ? L.noBorderLast : ""
639
- ].filter(Boolean).join(" "), pe = typeof U == "string" ? U : void 0;
640
- return /* @__PURE__ */ I(
638
+ _ === y.length - 1 ? $.noBorderLast : ""
639
+ ].filter(Boolean).join(" "), fe = typeof U == "string" ? U : void 0;
640
+ return /* @__PURE__ */ D(
641
641
  "div",
642
642
  {
643
643
  className: ne,
644
644
  style: d.style,
645
645
  children: [
646
- /* @__PURE__ */ I(
646
+ /* @__PURE__ */ D(
647
647
  "button",
648
648
  {
649
649
  id: E,
@@ -652,15 +652,15 @@ 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": D,
655
+ "aria-expanded": z,
656
656
  "aria-disabled": W,
657
657
  tabIndex: d.tabIndex,
658
658
  onClick: (oe) => Q(_, oe),
659
659
  ...d.headerProps,
660
- "aria-label": ((re = d.headerProps) == null ? void 0 : re["aria-label"]) ?? pe,
660
+ "aria-label": ((re = d.headerProps) == null ? void 0 : re["aria-label"]) ?? fe,
661
661
  children: [
662
- /* @__PURE__ */ u("span", { className: L.headerContent, children: U }),
663
- /* @__PURE__ */ u("span", { className: L.icon, "aria-hidden": !0, children: te })
662
+ /* @__PURE__ */ u("span", { className: $.headerContent, children: U }),
663
+ /* @__PURE__ */ u("span", { className: $.icon, "aria-hidden": !0, children: te })
664
664
  ]
665
665
  }
666
666
  ),
@@ -670,19 +670,19 @@ 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": !D,
673
+ "aria-hidden": !z,
674
674
  className: [
675
- L.panel,
676
- D ? L.panelOpen : L.panelCollapsed
675
+ $.panel,
676
+ z ? $.panelOpen : $.panelCollapsed
677
677
  ].join(" "),
678
678
  style: {
679
- transitionDuration: q ? `${q}ms` : void 0
679
+ transitionDuration: A ? `${A}ms` : void 0
680
680
  },
681
681
  children: /* @__PURE__ */ u(
682
682
  "div",
683
683
  {
684
684
  className: [
685
- L.panelContent,
685
+ $.panelContent,
686
686
  d.contentClassName ?? ""
687
687
  ].filter(Boolean).join(" "),
688
688
  style: d.contentStyle,
@@ -708,36 +708,36 @@ const Qt = "_selectButton_1u3fo_1", Gt = "_selectButtonDisabled_1u3fo_9", Ut = "
708
708
  buttonFirst: Xt,
709
709
  buttonLast: Yt,
710
710
  buttonSelected: Tt
711
- }, Be = (e, t) => {
711
+ }, Ce = (e, t) => {
712
712
  const o = e[t];
713
713
  return o != null ? String(o) : "";
714
- }, ye = (e, t) => e[t], Ce = (e, t) => t == null ? !1 : !!e[t], an = ({
714
+ }, ye = (e, t) => e[t], we = (e, t) => t == null ? !1 : !!e[t], an = ({
715
715
  value: e,
716
716
  onChange: t,
717
717
  options: n,
718
718
  optionLabel: o = "label",
719
- optionValue: i = "value",
719
+ optionValue: s = "value",
720
720
  optionDisabled: a,
721
- multiple: s = !1,
721
+ multiple: i = !1,
722
722
  itemTemplate: b,
723
723
  disabled: l = !1,
724
- invalid: f = !1,
725
- className: N = "",
726
- "data-testid": $
724
+ invalid: p = !1,
725
+ className: k = "",
726
+ "data-testid": P
727
727
  }) => {
728
- const S = (h) => {
729
- const y = ye(h, i);
730
- return s && Array.isArray(e) ? e.includes(y) : e === y;
731
- }, A = (h, y) => {
732
- if (l || Ce(h, a)) return;
733
- const B = ye(h, i);
734
- if (B === void 0) return;
728
+ const I = (h) => {
729
+ const y = ye(h, s);
730
+ return i && Array.isArray(e) ? e.includes(y) : e === y;
731
+ }, L = (h, y) => {
732
+ if (l || we(h, a)) return;
733
+ const C = ye(h, s);
734
+ if (C === void 0) return;
735
735
  let g;
736
- if (s) {
737
- const k = Array.isArray(e) ? e : [];
738
- g = k.includes(B) ? k.filter((c) => c !== B) : [...k, B];
736
+ if (i) {
737
+ const x = Array.isArray(e) ? e : [];
738
+ g = x.includes(C) ? x.filter((c) => c !== C) : [...x, C];
739
739
  } else
740
- g = e === B ? null : B;
740
+ g = e === C ? null : C;
741
741
  t == null || t({
742
742
  value: g,
743
743
  originalEvent: y
@@ -745,8 +745,8 @@ const Qt = "_selectButton_1u3fo_1", Gt = "_selectButtonDisabled_1u3fo_9", Ut = "
745
745
  }, H = [
746
746
  Z.selectButton,
747
747
  l ? Z.selectButtonDisabled : "",
748
- f ? Z.selectButtonInvalid : "",
749
- N
748
+ p ? Z.selectButtonInvalid : "",
749
+ k
750
750
  ].filter(Boolean).join(" ");
751
751
  return /* @__PURE__ */ u(
752
752
  "div",
@@ -754,29 +754,29 @@ const Qt = "_selectButton_1u3fo_1", Gt = "_selectButtonDisabled_1u3fo_9", Ut = "
754
754
  className: H,
755
755
  role: "group",
756
756
  "aria-disabled": l,
757
- "data-testid": $,
757
+ "data-testid": P,
758
758
  children: n.map((h, y) => {
759
- const B = ye(h, i), g = B != null ? String(B) : `option-${y}`, k = Ce(h, a), w = S(h);
759
+ const C = ye(h, s), g = C != null ? String(C) : `option-${y}`, x = we(h, a), N = I(h);
760
760
  return /* @__PURE__ */ u(
761
761
  "button",
762
762
  {
763
763
  type: "button",
764
- "aria-pressed": w,
765
- "aria-disabled": k || l,
766
- "aria-label": Be(h, o),
767
- disabled: l || k,
764
+ "aria-pressed": N,
765
+ "aria-disabled": x || l,
766
+ "aria-label": Ce(h, o),
767
+ disabled: l || x,
768
768
  className: [
769
769
  Z.button,
770
- w ? Z.buttonSelected : "",
770
+ N ? Z.buttonSelected : "",
771
771
  y === 0 ? Z.buttonFirst : "",
772
772
  y === n.length - 1 ? Z.buttonLast : ""
773
773
  ].filter(Boolean).join(" "),
774
- onClick: (c) => A(h, c),
774
+ onClick: (c) => L(h, c),
775
775
  onKeyDown: (c) => {
776
- (c.key === " " || c.key === "Enter") && (c.preventDefault(), A(h, c));
776
+ (c.key === " " || c.key === "Enter") && (c.preventDefault(), L(h, c));
777
777
  },
778
- "data-testid": $ ? `${$}-option-${y}` : void 0,
779
- children: b ? b(h) : Be(h, o)
778
+ "data-testid": P ? `${P}-option-${y}` : void 0,
779
+ children: b ? b(h) : Ce(h, o)
780
780
  },
781
781
  g
782
782
  );
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- (function(k,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):(k=typeof globalThis<"u"?globalThis:k||self,s(k.EmporixComponentLibrary={},k.React,k.React))})(this,(function(k,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),we=["attr","size","title"];function Ne(e,t){if(e==null)return{};var n,o,i=ke(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)&&(i[n]=e[n])}return i}function ke(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(i){return Object.getOwnPropertyDescriptor(e,i).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){je(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 je(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:i,title:u}=e,l=Ne(e,we),B=i||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,l,{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:i="","data-testid":u,...l})=>{const B=[ce.primaryButton,t?ce.primaryButtonDisabled:"",i].filter(Boolean).join(" ");return s.jsxs("button",{type:"button",className:B,disabled:t||n,onClick:o,"data-testid":u,...l,children:[n&&s.jsx(Oe,{className:ce.spinner,size:12}),e]})},ge={secondaryButton:"_secondaryButton_1s7ft_1",secondaryButtonDisabled:"_secondaryButtonDisabled_1s7ft_33"},$e=({children:e,disabled:t=!1,onClick:n,className:o="","data-testid":i,...u})=>{const l=[ge.secondaryButton,t?ge.secondaryButtonDisabled:"",o].filter(Boolean).join(" ");return s.jsx("button",{type:"button",className:l,disabled:t,onClick:n,"data-testid":i,...u,children:e})},q={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":i,...u})=>{var B;const l=[q.tabsContainer,o].filter(Boolean).join(" ");return s.jsxs("div",{className:l,"data-testid":i,...u,children:[s.jsx("div",{className:q.tabsHeader,children:e.map(a=>{const _=a.id===t,j=[q.tabItem,_?q.active:q.inactive].filter(Boolean).join(" ");return s.jsxs("button",{type:"button",className:j,onClick:()=>n(a.id),"data-testid":`${i}-tab-${a.id}`,children:[s.jsx("div",{className:q.tabContent,children:s.jsx("span",{className:q.tabLabel,children:a.label})}),s.jsx("div",{className:q.tabLine})]},a.id)})}),s.jsx("div",{className:q.tabPanels,children:(B=e.find(a=>a.id===t))==null?void 0:B.content})]})};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:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},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:"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 Ee(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 me(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 m={dropdown:"_dropdown_1xupi_1",label:"_label_1xupi_9",required:"_required_1xupi_18",trigger:"_trigger_1xupi_23",triggerDisabled:"_triggerDisabled_1xupi_47",triggerInput:"_triggerInput_1xupi_56",value:"_value_1xupi_74",placeholder:"_placeholder_1xupi_82",chevron:"_chevron_1xupi_86",open:"_open_1xupi_93",panel:"_panel_1xupi_117",panelClosing:"_panelClosing_1xupi_134",filterWrapper:"_filterWrapper_1xupi_138",filterInput:"_filterInput_1xupi_145",filterIcon:"_filterIcon_1xupi_164",list:"_list_1xupi_175",option:"_option_1xupi_184",optionSelected:"_optionSelected_1xupi_196",optionHighlighted:"_optionHighlighted_1xupi_200",optionDisabled:"_optionDisabled_1xupi_204",empty:"_empty_1xupi_213",disabled:"_disabled_1xupi_220"},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],ze=({value:e,onChange:t,onEditEnd:n,options:o,optionLabel:i="label",optionValue:u="value",optionDisabled:l,placeholder:B="Select",filter:a=!1,editable:_=!1,disabled:j=!1,required:A=!1,label:$,inputId:E,className:Q="",panelClassName:g="",valueTemplate:h,itemTemplate:C,"data-testid":b})=>{const D=o.find(r=>G(r,u)===e),N=D?M(D,i):"",[d,z]=c.useState(!1),[S,ie]=c.useState(!1),[R,le]=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,i).toLowerCase().includes(R.toLowerCase())):o,[a,_,o,i,R]);c.useEffect(()=>{_&&w(N)},[_,e,N]),c.useEffect(()=>{d&&a&&!_&&(le(""),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(x=>G(x,u)===e),f=I.findIndex(x=>!P(x,l)),v=r>=0&&!P(I[r],l);p(v?r:f>=0?f:0)},[d,e,I,u,l]),c.useEffect(()=>{const r=X.current;r!=null&&r.scrollIntoView&&typeof r.scrollIntoView=="function"&&r.scrollIntoView({block:"nearest"})},[y]);const te=()=>{ee.current=!0,ie(!0)},pe=r=>{var f;(ee.current||(f=r.animationName)!=null&&f.includes("menuOut"))&&(ee.current=!1,z(!1),ie(!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=()=>{j||z(r=>!r)},re=(r,f)=>{if(P(r,l))return;const v=G(r,u);_&&w(M(r,i)),t==null||t({value:v??null,originalEvent:f}),te()},Ce=r=>{if(!d){if(r.key==="Enter"&&_&&U.trim()){r.preventDefault();const f=U.trim(),v=f.toLowerCase(),x=o.find(Y=>{const V=M(Y,i).toLowerCase();return V===v||V.startsWith(v)}),H=x&&!P(x,l)?G(x,u):null;x&&!P(x,l)&&(w(M(x,i)),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(),z(!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],l))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],l))return v;return f});return}if(r.key==="Enter"){if(r.preventDefault(),_){const f=U.trim();if(f){const v=f.toLowerCase(),x=o.find(Y=>{const V=M(Y,i).toLowerCase();return V===v||V.startsWith(v)}),H=x&&!P(x,l)?G(x,u):null;x&&!P(x,l)&&re(x,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,l)||re(f,r)}}},Me=[m.dropdown,j?m.disabled:"",d?m.open:"",Q].filter(Boolean).join(" "),Ke=[m.trigger,j?m.triggerDisabled:""].filter(Boolean).join(" "),Ze=[m.panel,S?m.panelClosing:"",g].filter(Boolean).join(" "),Qe=c.useId(),ae=E??`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:m.label,children:[$,A&&s.jsx("span",{className:m.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":j,"aria-label":typeof $=="string"?$:void 0,tabIndex:_||j?-1:0,className:Ke,onClick:_?void 0:ne,onKeyDown:_?void 0:Ce,"data-testid":b&&!_?`${b}-trigger`:void 0,children:[_?s.jsx("input",{ref:J,id:ae,type:"text",className:m.triggerInput,value:U,onChange:r=>{w(r.target.value),!d&&!S&&z(!0),p(0)},onFocus:()=>{!j&&!d&&!S&&z(!0)},onKeyDown:Ce,placeholder:B,disabled:j,"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:m.value,children:h?h(D??null):N||s.jsx("span",{className:m.placeholder,children:B})}),s.jsx(me,{className:m.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:m.filterWrapper,children:[s.jsx("input",{ref:W,type:"text",className:m.filterInput,value:R,onChange:r=>{le(r.target.value),p(0)},onKeyDown:r=>{r.key==="Escape"&&z(!1),r.stopPropagation()},placeholder:"Search...","aria-label":"Filter options",title:"Filter options","data-testid":b?`${b}-filter`:void 0}),s.jsx(Ae,{className:m.filterIcon,"aria-hidden":!0})]}),s.jsx("ul",{className:m.list,role:"listbox","aria-label":"Options",children:I.length===0?s.jsx("li",{className:m.empty,children:"No results"}):I.map((r,f)=>{const v=G(r,u),x=M(r,i),H=P(r,l),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:[m.option,Y?m.optionSelected:"",V?m.optionHighlighted:"",H?m.optionDisabled:""].filter(Boolean).join(" "),onMouseEnter:()=>!H&&p(f),onClick:Ue=>re(r,Ue),"data-testid":b?`${b}-option-${f}`:void 0,children:C?C(r):x},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:i=!1,rows:u,className:l="","data-testid":B,disabled:a=!1,..._})=>{const{type:j="text",...A}=_,$=c.useId(),E=o||`input-text-${$.replace(/[^a-zA-Z0-9_-]/g,"")}`,Q=[K.inputText,a?K.inputTextDisabled:"",l].filter(Boolean).join(" "),g=A["aria-invalid"];let h;g===void 0?h=void 0:g===!0?h="true":g===!1?h="false":h=g;const C=n?{"aria-required":"true"}:{"aria-required":"false"},b=h===void 0?{}:{"aria-invalid":h},D=[K.input,i?K.inputTextarea:""].filter(Boolean).join(" "),N={id:E,className:D,disabled:a,...C,...b,"data-testid":B?`${B}-input`:void 0};return s.jsxs("div",{className:Q,"data-testid":B,children:[e!=null&&s.jsxs("label",{htmlFor:E,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(qe,{"aria-hidden":!0})})]}),i?s.jsx("textarea",{...A,...N,rows:u??3}):s.jsx("input",{...A,...N,type:j})]})},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:i,onTabOpen:u,onTabClose:l,className:B="",transitionOptions:a,pt:_,ptOptions:j,unstyled:A,children:$,...E})=>{const Q=c.useId(),g=He(Q),h=c.useMemo(()=>c.Children.toArray($).filter(y=>c.isValidElement(y)&&y.type===ue),[$]),C=e!==void 0,b=c.useMemo(()=>We(e,t),[e,t]),[D,N]=c.useState([]),d=C?b:D,z=typeof a=="object"&&a!=null&&typeof a.timeout=="number"?a.timeout:void 0,S=s.jsx(Ee,{"aria-hidden":!0}),ie=s.jsx(me,{"aria-hidden":!0}),R=n??S,le=o??ie,U=(w,y)=>{const p=d.includes(w);if(t){const W=p?d.filter(J=>J!==w):[...d,w];C||N(W),i==null||i({index:W,originalEvent:y}),p?l==null||l({index:w,originalEvent:y}):u==null||u({index:w,originalEvent:y});return}const O=d.length?d[0]:null,F=p?[]:[w];if(C||N(F),i==null||i({index:F,originalEvent:y}),p){l==null||l({index:w,originalEvent:y});return}O!=null&&(l==null||l({index:O,originalEvent:y})),u==null||u({index:w,originalEvent:y})};return s.jsx("div",{className:[L.accordion,B].filter(Boolean).join(" "),...E,children:h.map((w,y)=>{var ne;const p=w.props,O=d.includes(y),F=!!p.disabled,W=`${g}-header-${y}`,J=`${g}-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?le: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:z?`${z}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],xe=(e,t)=>t==null?!1:!!e[t],Ve=({value:e,onChange:t,options:n,optionLabel:o="label",optionValue:i="value",optionDisabled:u,multiple:l=!1,itemTemplate:B,disabled:a=!1,invalid:_=!1,className:j="","data-testid":A})=>{const $=g=>{const h=de(g,i);return l&&Array.isArray(e)?e.includes(h):e===h},E=(g,h)=>{if(a||xe(g,u))return;const C=de(g,i);if(C===void 0)return;let b;if(l){const D=Array.isArray(e)?e:[];b=D.includes(C)?D.filter(d=>d!==C):[...D,C]}else b=e===C?null:C;t==null||t({value:b,originalEvent:h})},Q=[Z.selectButton,a?Z.selectButtonDisabled:"",_?Z.selectButtonInvalid:"",j].filter(Boolean).join(" ");return s.jsx("div",{className:Q,role:"group","aria-disabled":a,"data-testid":A,children:n.map((g,h)=>{const C=de(g,i),b=C!=null?String(C):`option-${h}`,D=xe(g,u),N=$(g);return s.jsx("button",{type:"button","aria-pressed":N,"aria-disabled":D||a,"aria-label":Be(g,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=>E(g,d),onKeyDown:d=>{(d.key===" "||d.key==="Enter")&&(d.preventDefault(),E(g,d))},"data-testid":A?`${A}-option-${h}`:void 0,children:B?B(g):Be(g,o)},b)})})};k.Accordion=be,k.AccordionTab=ue,k.Dropdown=ze,k.InputText=Fe,k.PrimaryButton=Pe,k.SecondaryButton=$e,k.SelectButton=Ve,k.Tabs=Le,Object.defineProperty(k,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_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"})}));
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_1xupi_1{position:relative;display:block;min-width:200px;width:100%;box-sizing:border-box}._label_1xupi_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_1xupi_18{color:var(--color-text-secondary);margin-left:2px}._trigger_1xupi_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_1xupi_23:hover:not(:focus){border-color:var(--color-primary)}._trigger_1xupi_23:focus{outline:0;border-color:var(--color-input-focus);box-shadow:var(--focus-ring-box-shadow)}._triggerDisabled_1xupi_47{cursor:not-allowed;opacity:.7;background:var(--color-bg-secondary)}._triggerDisabled_1xupi_47:hover{border-color:var(--color-input-border)}._triggerInput_1xupi_56{flex:1;min-width:0;border:none;background:transparent;font-size:inherit;font-family:inherit;color:inherit;padding:0;outline:none}._triggerInput_1xupi_56::placeholder{color:var(--color-text-secondary)}._triggerInput_1xupi_56:disabled{cursor:not-allowed}._value_1xupi_74{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._placeholder_1xupi_82{color:var(--color-text-secondary)}._chevron_1xupi_86{flex-shrink:0;color:var(--color-text-secondary);width:1.25rem;height:1.25rem}._open_1xupi_93 ._chevron_1xupi_86{transform:rotate(180deg)}@keyframes _menuIn_1xupi_1{0%{transform:translateY(-10px);opacity:.2}to{transform:translateY(0);opacity:1}}@keyframes _menuOut_1xupi_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-10px);opacity:.2}}._panel_1xupi_117{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_1xupi_1 .25s ease-out forwards}._panelClosing_1xupi_134{animation:_menuOut_1xupi_1 .15s ease-in forwards}._filterWrapper_1xupi_138{position:relative;padding:4px 8px;border-bottom:1px solid var(--color-border-light);box-sizing:border-box}._filterInput_1xupi_145{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_1xupi_145:focus{outline:0;border-color:var(--color-primary);box-shadow:var(--focus-ring-box-shadow)}._filterInput_1xupi_145::placeholder{color:var(--color-text-secondary)}._filterIcon_1xupi_164{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:var(--color-text-secondary);width:1rem;height:1rem;pointer-events:none}._list_1xupi_175{line-height:1rem;list-style:none;margin:0;padding:.25rem 0;max-height:240px;overflow-y:auto}._option_1xupi_184{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_1xupi_184:hover,._option_1xupi_184:focus-visible{background:var(--color-bg-secondary)}._optionSelected_1xupi_196{background:var(--color-dropdown-option-highlight)}._optionHighlighted_1xupi_200{background:var(--color-bg-secondary)}._optionDisabled_1xupi_204{cursor:not-allowed;opacity:.6;color:var(--color-text-secondary)}._optionDisabled_1xupi_204:hover{background:transparent}._empty_1xupi_213{padding:.75rem 1rem;color:var(--color-text-secondary);font-size:var(--font-size-sm);cursor:default}._disabled_1xupi_220 ._trigger_1xupi_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_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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emporix/component-library",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "A React component library for Emporix projects",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",