mimir-ui-kit 1.36.4 → 1.36.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/dist/Input-WnjLXNpw.js +224 -0
  2. package/dist/assets/Input.css +1 -1
  3. package/dist/{combobox-CDU06zJj.js → combobox-BpYucpxz.js} +1121 -1080
  4. package/dist/components/Accordion/Accordion.js +15 -15
  5. package/dist/components/CheckboxMimir/CheckboxMimir.js +4 -4
  6. package/dist/components/DatePicker/DatePicker.js +1 -1
  7. package/dist/components/Input/Input.js +1 -1
  8. package/dist/components/Input/index.js +1 -1
  9. package/dist/components/InputPassword/InputPassword.js +1 -1
  10. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  11. package/dist/components/MultiSelectSearch/MultiSelectSearch.js +22 -22
  12. package/dist/components/MultiSelectSearch/utils.js +1 -1
  13. package/dist/components/OtpInput/OtpInput.js +1 -1
  14. package/dist/components/RadioGroup/RadioGroup.js +3 -3
  15. package/dist/components/SelectSearch/SelectSearch.js +27 -27
  16. package/dist/components/SelectSearch/utils.js +1 -1
  17. package/dist/components/Switcher/Switcher.js +4 -4
  18. package/dist/components/TabTrail/TabTrail.js +4 -4
  19. package/dist/components/TextArea/TextArea.js +1 -1
  20. package/dist/components/index.js +1 -1
  21. package/dist/{field-FJ34aSs4.js → field-C1kt7aNM.js} +2 -2
  22. package/dist/{focus-management-XwV-9qkO.js → focus-management-DOYCPyGg.js} +1 -1
  23. package/dist/{hidden-DbgtYPOH.js → hidden-PvGXrYUY.js} +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/{keyboard-B0lm_zyn.js → keyboard-mgWkd2Vh.js} +114 -111
  26. package/dist/{label-y3ANLTNC.js → label-D4GFpe5F.js} +2 -2
  27. package/dist/open-closed-D2VjDhAN.js +86 -0
  28. package/dist/{use-active-press-86hajhdd.js → use-active-press-CqLGIFz7.js} +1 -1
  29. package/package.json +1 -3
  30. package/dist/Input-DlGNMuUD.js +0 -222
  31. package/dist/open-closed-CdldUPoq.js +0 -86
@@ -1,16 +1,16 @@
1
1
  import { jsxs as x, Fragment as X, jsx as v } from "react/jsx-runtime";
2
2
  import { c as D } from "../../index-DIxK0V-G.js";
3
- import S, { createContext as F, useRef as oe, Fragment as ne, useReducer as de, useMemo as R, useId as re, useEffect as le, useState as se, useContext as L, forwardRef as pe } from "react";
3
+ import S, { createContext as F, useRef as oe, Fragment as ne, useReducer as de, useMemo as R, useId as re, useEffect as le, useState as se, useContext as H, forwardRef as pe } from "react";
4
4
  import { AccordionItem as me } from "./AccordionItem/AccordionItem.js";
5
5
  import { EAccordionButtonType as w, EAccordionSize as O, EAccordionLinkIconSize as G, EAccordionButtonStyle as fe, EAccordionIconType as J, EAccordionButtonIconSize as Y } from "./constants.js";
6
6
  import { useMediaQuery as _e } from "../../hooks/useMediaQuery/useMediaQuery.js";
7
7
  import { EMediaQuery as Ee } from "../../hooks/useMediaQuery/constants.js";
8
8
  import { Icon as ke } from "../../icons/Icon.js";
9
9
  import { Link as Se } from "../AnchorLink/Link.js";
10
- import { M as Z, W as K, y as U, T as Ie, o as $, a as q, H as j, I as ae, $ as be, b as ve, D as ee, u as he, c as N } from "../../keyboard-B0lm_zyn.js";
11
- import { w as ye } from "../../use-active-press-86hajhdd.js";
10
+ import { M as Z, W as K, y as U, T as Ie, o as $, a as q, H as j, I as ae, $ as be, b as ve, D as ee, u as he, c as N } from "../../keyboard-mgWkd2Vh.js";
11
+ import { w as ye } from "../../use-active-press-CqLGIFz7.js";
12
12
  import { e as De } from "../../use-resolve-button-type-DhFdPxnv.js";
13
- import { c as $e, i as M, u as Pe, R as ge, H as Te, s as we } from "../../open-closed-CdldUPoq.js";
13
+ import { c as $e, i as M, u as Pe, x as ge, R as Te, s as we } from "../../open-closed-D2VjDhAN.js";
14
14
  import { r as Ne } from "../../bugs-diTMAGNw.js";
15
15
  import '../../assets/Accordion.css';let Ce = F(() => {
16
16
  });
@@ -33,7 +33,7 @@ let Re = { 0: (e) => ({ ...e, disclosureState: q(e.disclosureState, { 0: 1, 1: 0
33
33
  } }, W = F(null);
34
34
  W.displayName = "DisclosureContext";
35
35
  function Q(e) {
36
- let t = L(W);
36
+ let t = H(W);
37
37
  if (t === null) {
38
38
  let a = new Error(`<${e} /> is missing a parent <Disclosure /> component.`);
39
39
  throw Error.captureStackTrace && Error.captureStackTrace(a, Q), a;
@@ -43,7 +43,7 @@ function Q(e) {
43
43
  let V = F(null);
44
44
  V.displayName = "DisclosureAPIContext";
45
45
  function ce(e) {
46
- let t = L(V);
46
+ let t = H(V);
47
47
  if (t === null) {
48
48
  let a = new Error(`<${e} /> is missing a parent <Disclosure /> component.`);
49
49
  throw Error.captureStackTrace && Error.captureStackTrace(a, ce), a;
@@ -53,13 +53,13 @@ function ce(e) {
53
53
  let z = F(null);
54
54
  z.displayName = "DisclosurePanelContext";
55
55
  function Me() {
56
- return L(z);
56
+ return H(z);
57
57
  }
58
58
  function Fe(e, t) {
59
59
  return q(t.type, Re, e, t);
60
60
  }
61
- let He = ne;
62
- function Le(e, t) {
61
+ let Le = ne;
62
+ function He(e, t) {
63
63
  let { defaultOpen: a = !1, ...d } = e, n = oe(null), p = U(t, Ie((c) => {
64
64
  n.current = c;
65
65
  }, e.as === void 0 || e.as === ne)), m = de(Fe, { disclosureState: a ? 0 : 1, buttonElement: null, panelElement: null, buttonId: null, panelId: null }), [{ disclosureState: o, buttonId: r }, k] = m, l = $((c) => {
@@ -69,7 +69,7 @@ function Le(e, t) {
69
69
  let u = c ? c instanceof HTMLElement ? c : c.current instanceof HTMLElement ? c.current : E.getElementById(r) : E.getElementById(r);
70
70
  u == null || u.focus();
71
71
  }), I = R(() => ({ close: l }), [l]), f = R(() => ({ open: o === 0, close: l }), [o, l]), _ = { ref: p };
72
- return S.createElement(W.Provider, { value: m }, S.createElement(V.Provider, { value: I }, S.createElement(Be, { value: l }, S.createElement($e, { value: q(o, { 0: M.Open, 1: M.Closed }) }, j({ ourProps: _, theirProps: d, slot: f, defaultTag: He, name: "Disclosure" })))));
72
+ return S.createElement(W.Provider, { value: m }, S.createElement(V.Provider, { value: I }, S.createElement(Be, { value: l }, S.createElement($e, { value: q(o, { 0: M.Open, 1: M.Closed }) }, j({ ourProps: _, theirProps: d, slot: f, defaultTag: Le, name: "Disclosure" })))));
73
73
  }
74
74
  let Ke = "button";
75
75
  function Ue(e, t) {
@@ -106,8 +106,8 @@ function Ue(e, t) {
106
106
  }), u = $((s) => {
107
107
  var T;
108
108
  Ne(s.currentTarget) || n || (l ? (r({ type: 0 }), (T = o.buttonElement) == null || T.focus()) : r({ type: 0 }));
109
- }), { isFocusVisible: h, focusProps: y } = be({ autoFocus: p }), { isHovered: b, hoverProps: P } = ve({ isDisabled: n }), { pressed: C, pressProps: B } = ye({ disabled: n }), H = R(() => ({ open: o.disclosureState === 0, hover: b, active: C, disabled: n, focus: h, autofocus: p }), [o, b, C, h, n, p]), A = De(e, o.buttonElement), g = l ? ee({ ref: f, type: A, disabled: n || void 0, autoFocus: p, onKeyDown: c, onClick: u }, y, P, B) : ee({ ref: f, id: d, type: A, "aria-expanded": o.disclosureState === 0, "aria-controls": o.panelElement ? o.panelId : void 0, disabled: n || void 0, autoFocus: p, onKeyDown: c, onKeyUp: E, onClick: u }, y, P, B);
110
- return j({ mergeRefs: _, ourProps: g, theirProps: m, slot: H, defaultTag: Ke, name: "Disclosure.Button" });
109
+ }), { isFocusVisible: h, focusProps: y } = be({ autoFocus: p }), { isHovered: b, hoverProps: P } = ve({ isDisabled: n }), { pressed: C, pressProps: B } = ye({ disabled: n }), L = R(() => ({ open: o.disclosureState === 0, hover: b, active: C, disabled: n, focus: h, autofocus: p }), [o, b, C, h, n, p]), A = De(e, o.buttonElement), g = l ? ee({ ref: f, type: A, disabled: n || void 0, autoFocus: p, onKeyDown: c, onClick: u }, y, P, B) : ee({ ref: f, id: d, type: A, "aria-expanded": o.disclosureState === 0, "aria-controls": o.panelElement ? o.panelId : void 0, disabled: n || void 0, autoFocus: p, onKeyDown: c, onKeyUp: E, onClick: u }, y, P, B);
110
+ return j({ mergeRefs: _, ourProps: g, theirProps: m, slot: L, defaultTag: Ke, name: "Disclosure.Button" });
111
111
  }
112
112
  let qe = "div", je = Z.RenderStrategy | Z.Static;
113
113
  function We(e, t) {
@@ -120,7 +120,7 @@ function We(e, t) {
120
120
  let _ = Pe(), [c, E] = ge(n, l, _ !== null ? (_ & M.Open) === M.Open : m.disclosureState === 0), u = R(() => ({ open: m.disclosureState === 0, close: r }), [m.disclosureState, r]), h = { ref: f, id: d, ...Te(E) };
121
121
  return S.createElement(we, null, S.createElement(z.Provider, { value: m.panelId }, j({ mergeRefs: k, ourProps: h, theirProps: p, slot: u, defaultTag: qe, features: je, visible: c, name: "Disclosure.Panel" })));
122
122
  }
123
- let Qe = K(Le), ie = K(Ue), ue = K(We), Ve = Object.assign(Qe, { Button: ie, Panel: ue });
123
+ let Qe = K(He), ie = K(Ue), ue = K(We), Ve = Object.assign(Qe, { Button: ie, Panel: ue });
124
124
  const ze = "_accordion_1k9to_2", Xe = "_header_1k9to_13", Ge = "_disabled_1k9to_25", Je = "_title_1k9to_29", Ye = "_icon_1k9to_36", Ze = "_circle_1k9to_46", et = "_square_1k9to_53", tt = "_panel_1k9to_73", ot = "_open_1k9to_80", nt = "_m_1k9to_106", rt = "_s_1k9to_53", i = {
125
125
  accordion: ze,
126
126
  "is-link": "_is-link_1k9to_9",
@@ -160,7 +160,7 @@ const ze = "_accordion_1k9to_2", Xe = "_header_1k9to_13", Ge = "_disabled_1k9to_
160
160
  [i["is-link"]]: b
161
161
  }, C = () => {
162
162
  t || h((g) => !g);
163
- }, B = n === O.S ? G.S : G.M, H = {
163
+ }, B = n === O.S ? G.S : G.M, L = {
164
164
  variant: "anchor",
165
165
  size: y ? "s" : "l",
166
166
  rightIcon: {
@@ -234,7 +234,7 @@ const ze = "_accordion_1k9to_2", Xe = "_header_1k9to_13", Ge = "_disabled_1k9to_
234
234
  [i.header]: !b,
235
235
  [i.disabled]: t
236
236
  }),
237
- ...b ? H : {},
237
+ ...b ? L : {},
238
238
  children: A(u)
239
239
  }
240
240
  ),
@@ -1,10 +1,10 @@
1
1
  import { jsxs as O, jsx as x } from "react/jsx-runtime";
2
- import { W as V, p as W, o as m, $ as X, b as q, D as z, H as J, c as y } from "../../keyboard-B0lm_zyn.js";
2
+ import { W as V, p as W, o as m, $ as X, b as q, D as z, H as J, c as y } from "../../keyboard-mgWkd2Vh.js";
3
3
  import $, { useId as Q, useState as F, useMemo as Y, useCallback as Z, forwardRef as ee, useEffect as ae } from "react";
4
- import { w as re } from "../../use-active-press-86hajhdd.js";
5
- import { u as oe, a as te, b as ce, T as se, I as ne, G as ie, j as de, p as le, K as be } from "../../label-y3ANLTNC.js";
4
+ import { w as re } from "../../use-active-press-CqLGIFz7.js";
5
+ import { u as oe, a as te, b as ce, T as se, I as ne, G as ie, j as de, p as le, K as be } from "../../label-D4GFpe5F.js";
6
6
  import { r as ue } from "../../bugs-diTMAGNw.js";
7
- import { H as fe } from "../../field-FJ34aSs4.js";
7
+ import { H as fe } from "../../field-C1kt7aNM.js";
8
8
  import { c as me } from "../../index-DIxK0V-G.js";
9
9
  import { Icon as pe } from "../../icons/Icon.js";
10
10
  import '../../assets/CheckboxMimir.css';let he = "span";
@@ -9,7 +9,7 @@ import { formatDatePart as Y } from "./utils.js";
9
9
  import { YearPickerModal as et } from "./YearPickerModal.js";
10
10
  import { useClickOutside as it } from "../../hooks/useClickOutside/useClickOutside.js";
11
11
  import { formating as d } from "../../utils/index.js";
12
- import { I as at } from "../../Input-DlGNMuUD.js";
12
+ import { I as at } from "../../Input-WnjLXNpw.js";
13
13
  import { EInputStatus as rt } from "../Input/constants.js";
14
14
  const mt = {
15
15
  days: tt,
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "../../index-DIxK0V-G.js";
3
3
  import "react";
4
4
  import "./constants.js";
5
- import { I as f } from "../../Input-DlGNMuUD.js";
5
+ import { I as f } from "../../Input-WnjLXNpw.js";
6
6
  import "../../hooks/useMergeRefs/useMergeRefs.js";
7
7
  import "../../icons/Icon.js";
8
8
  import "../Button/Button.js";
@@ -1,4 +1,4 @@
1
- import { I as n } from "../../Input-DlGNMuUD.js";
1
+ import { I as n } from "../../Input-WnjLXNpw.js";
2
2
  import { EInputSize as u, EInputStatus as I, EInputVariant as a } from "./constants.js";
3
3
  export {
4
4
  u as EInputSize,
@@ -3,7 +3,7 @@ import { c } from "../../index-DIxK0V-G.js";
3
3
  import { memo as w, forwardRef as u, useState as m } from "react";
4
4
  import { Icon as d } from "../../icons/Icon.js";
5
5
  import { Button as _ } from "../Button/Button.js";
6
- import { I as l } from "../../Input-DlGNMuUD.js";
6
+ import { I as l } from "../../Input-WnjLXNpw.js";
7
7
  import '../../assets/InputPassword.css';const b = "_input_7b9x2_2", x = "_wrapper_7b9x2_6", h = "_button_7b9x2_17", f = "_icon_7b9x2_33", N = "_show_7b9x2_38", t = {
8
8
  input: b,
9
9
  wrapper: x,
@@ -1,7 +1,7 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
2
  import { memo as I, forwardRef as i, useState as c, useCallback as f, useImperativeHandle as P } from "react";
3
3
  import { getMaskedInputPhoneValue as m, getUnmaskedInputValue as o } from "./utils.js";
4
- import { I as b } from "../../Input-DlGNMuUD.js";
4
+ import { I as b } from "../../Input-WnjLXNpw.js";
5
5
  const h = I(
6
6
  i(
7
7
  ({ value: s = "", onChange: e, ...p }, a) => {
@@ -2,14 +2,14 @@ import { jsxs as g, jsx as o, Fragment as V } from "react/jsx-runtime";
2
2
  import { c as l } from "../../index-DIxK0V-G.js";
3
3
  import { forwardRef as se, useRef as B, useState as S, useEffect as R, useMemo as ie } from "react";
4
4
  import { EMultiSelectSearchSize as M } from "./constants.js";
5
- import { getInitialInputValue as E, mapSizeToInputSize as F, getDropdownArrowIcon as le, joinSelectedItems as P } from "./utils.js";
5
+ import { getInitialInputValue as j, mapSizeToInputSize as E, getDropdownArrowIcon as le, joinSelectedItems as F } from "./utils.js";
6
6
  import { Icon as re } from "../../icons/Icon.js";
7
7
  import { Button as ce } from "../Button/Button.js";
8
8
  import { CheckboxMimir as ae } from "../CheckboxMimir/CheckboxMimir.js";
9
9
  import { Chip as ue } from "../Chip/Chip.js";
10
- import { I as j } from "../../Input-DlGNMuUD.js";
10
+ import { I as P } from "../../Input-WnjLXNpw.js";
11
11
  import { EInputVariant as de } from "../Input/constants.js";
12
- import { H as pe, U as G, G as W, K as me, W as _e } from "../../combobox-CDU06zJj.js";
12
+ import { H as pe, U as G, G as H, K as me, j as _e } from "../../combobox-BpYucpxz.js";
13
13
  import '../../assets/MultiSelectSearch.css';const he = "_disabled_17kql_5", fe = "_container_17kql_9", ke = "_full_17kql_27", qe = "_button_17kql_39", ge = "_options_17kql_53", be = "_top_17kql_64", ve = "_bottom_17kql_69", Ne = "_m_17kql_2", Ie = "_l_17kql_111", we = "_focused_17kql_129", Ce = "_option_17kql_53", Se = "_chip_17kql_158", Me = "_clear_17kql_183", e = {
14
14
  "multi-select-search": "_multi-select-search_17kql_2",
15
15
  disabled: he,
@@ -40,15 +40,15 @@ import '../../assets/MultiSelectSearch.css';const he = "_disabled_17kql_5", fe =
40
40
  "required-mark": "_required-mark_17kql_178",
41
41
  clear: Me,
42
42
  "icon-button": "_icon-button_17kql_192"
43
- }, Fe = se(
44
- (H, J) => {
43
+ }, Ee = se(
44
+ (J, K) => {
45
45
  const {
46
46
  placeholder: x,
47
47
  size: i = M.L,
48
48
  value: a,
49
49
  onChange: s,
50
- full: K,
51
- showArrow: U = !0,
50
+ full: U,
51
+ showArrow: W = !0,
52
52
  items: m = [],
53
53
  classNameOption: Q,
54
54
  displayValue: d = "name",
@@ -62,13 +62,13 @@ import '../../assets/MultiSelectSearch.css';const he = "_disabled_17kql_5", fe =
62
62
  withChip: X = !1,
63
63
  chipVariant: Y = "sapphire",
64
64
  disableInput: _ = !1
65
- } = H, w = B(null), p = B(null), [b, h] = S(!1), [f, k] = S(
66
- () => E(a, d)
65
+ } = J, w = B(null), p = B(null), [b, h] = S(!1), [f, k] = S(
66
+ () => j(a, d)
67
67
  ), [u, q] = S(
68
68
  a || []
69
69
  );
70
70
  R(() => {
71
- a && (q(a), JSON.stringify(a) !== JSON.stringify(u) && k(E(a, d)));
71
+ a && (q(a), JSON.stringify(a) !== JSON.stringify(u) && k(j(a, d)));
72
72
  }, [a, d, u]);
73
73
  const O = ie(() => {
74
74
  var n;
@@ -79,7 +79,7 @@ import '../../assets/MultiSelectSearch.css';const he = "_disabled_17kql_5", fe =
79
79
  );
80
80
  }, [y, m, f]), Z = (t) => {
81
81
  q(t), s == null || s(t);
82
- const n = P(t, d);
82
+ const n = F(t, d);
83
83
  k(n), h(!0), setTimeout(() => {
84
84
  if (p.current) {
85
85
  p.current.focus(), p.current.scrollLeft = p.current.scrollWidth;
@@ -99,7 +99,7 @@ import '../../assets/MultiSelectSearch.css';const he = "_disabled_17kql_5", fe =
99
99
  const n = u.filter(
100
100
  (c) => c.id !== t.id
101
101
  );
102
- q(n), s == null || s(n), k(P(n, d));
102
+ q(n), s == null || s(n), k(F(n, d));
103
103
  }, L = () => h((t) => !t), ee = (t) => {
104
104
  t.preventDefault(), t.currentTarget.focus();
105
105
  const n = t.currentTarget.value.length;
@@ -126,11 +126,11 @@ import '../../assets/MultiSelectSearch.css';const he = "_disabled_17kql_5", fe =
126
126
  as: "div",
127
127
  value: u,
128
128
  className: l(e["multi-select-search"], {
129
- [e.full]: K,
129
+ [e.full]: U,
130
130
  [e.disabled]: r
131
131
  }),
132
132
  onChange: Z,
133
- ref: J,
133
+ ref: K,
134
134
  disabled: r,
135
135
  virtual: { options: O },
136
136
  children: /* @__PURE__ */ g(
@@ -148,11 +148,11 @@ import '../../assets/MultiSelectSearch.css';const he = "_disabled_17kql_5", fe =
148
148
  style: { width: "100%" },
149
149
  onClick: L,
150
150
  children: /* @__PURE__ */ o(
151
- W,
151
+ H,
152
152
  {
153
- as: j,
153
+ as: P,
154
154
  label: x,
155
- size: F(i),
155
+ size: E(i),
156
156
  className: l(e["multi-select-input"], {
157
157
  [e["multi-select-input-disabled"]]: _ && I
158
158
  }),
@@ -193,11 +193,11 @@ import '../../assets/MultiSelectSearch.css';const he = "_disabled_17kql_5", fe =
193
193
  )
194
194
  ] }),
195
195
  !_ && /* @__PURE__ */ o(
196
- W,
196
+ H,
197
197
  {
198
- as: j,
198
+ as: P,
199
199
  label: x,
200
- size: F(i),
200
+ size: E(i),
201
201
  className: e["multi-select-input"],
202
202
  rightSlotClassName: e["right-slot"],
203
203
  requiredMarkClassName: e["required-mark"],
@@ -211,7 +211,7 @@ import '../../assets/MultiSelectSearch.css';const he = "_disabled_17kql_5", fe =
211
211
  ref: p,
212
212
  rightAddon: {
213
213
  addonType: "react-node",
214
- addonContent: U && /* @__PURE__ */ o(
214
+ addonContent: W && /* @__PURE__ */ o(
215
215
  G,
216
216
  {
217
217
  className: l(e.button, {
@@ -320,5 +320,5 @@ import '../../assets/MultiSelectSearch.css';const he = "_disabled_17kql_5", fe =
320
320
  }
321
321
  );
322
322
  export {
323
- Fe as MultiSelectSearch
323
+ Ee as MultiSelectSearch
324
324
  };
@@ -1,5 +1,5 @@
1
1
  import { EMultiSelectSearchSize as t } from "./constants.js";
2
- import "../../Input-DlGNMuUD.js";
2
+ import "../../Input-WnjLXNpw.js";
3
3
  import { EInputSize as e } from "../Input/constants.js";
4
4
  const w = (r) => {
5
5
  switch (r) {
@@ -3,7 +3,7 @@ import { c as u } from "../../index-DIxK0V-G.js";
3
3
  import { forwardRef as P, useImperativeHandle as R, Fragment as T } from "react";
4
4
  import { ITEMS_PER_SEPARATOR as q, DEFAULT_VALUE_LENGTH as v } from "./constants.js";
5
5
  import { useOTPInput as y } from "./hooks.js";
6
- import { I as A } from "../../Input-DlGNMuUD.js";
6
+ import { I as A } from "../../Input-WnjLXNpw.js";
7
7
  import '../../assets/OtpInput.css';const C = "_otp_1shq3_3", F = "_input_1shq3_14", L = "_separator_1shq3_28", r = {
8
8
  otp: C,
9
9
  "input-wrapper": "_input-wrapper_1shq3_14",
@@ -1,10 +1,10 @@
1
1
  import { jsxs as ee, jsx as L, Fragment as _e } from "react/jsx-runtime";
2
- import { K as V, w as ye, a as oe, z as te, U as ie, b as ke, T as Oe, j as we, u as Pe, I as Ee, G as Te, p as De } from "../../label-y3ANLTNC.js";
3
- import { W, y as z, o as U, H as K, s as se, n as ne, $ as le, b as de, D as ue, a as Ce, u as Ge, c as N } from "../../keyboard-B0lm_zyn.js";
2
+ import { K as V, w as ye, a as oe, z as te, U as ie, b as ke, T as Oe, j as we, u as Pe, I as Ee, G as Te, p as De } from "../../label-D4GFpe5F.js";
3
+ import { W, y as z, o as U, H as K, s as se, n as ne, $ as le, b as de, D as ue, a as Ce, u as Ge, c as N } from "../../keyboard-mgWkd2Vh.js";
4
4
  import E, { createContext as ce, useId as q, useReducer as xe, useRef as B, useMemo as T, useCallback as Fe, useContext as pe, forwardRef as Ne } from "react";
5
5
  import { u as Ae } from "../../use-by-comparator-CVuf9KBq.js";
6
6
  import { r as fe } from "../../bugs-diTMAGNw.js";
7
- import { P as re, F as H, T as ae, _ as Ie } from "../../focus-management-XwV-9qkO.js";
7
+ import { P as re, F as H, T as ae, _ as Ie } from "../../focus-management-DOYCPyGg.js";
8
8
  import { c as M } from "../../index-DIxK0V-G.js";
9
9
  import '../../assets/RadioGroup.css';var Se = ((e) => (e[e.RegisterOption = 0] = "RegisterOption", e[e.UnregisterOption = 1] = "UnregisterOption", e))(Se || {});
10
10
  let Le = { 0(e, r) {
@@ -1,13 +1,13 @@
1
1
  import { jsx as n, jsxs as u, Fragment as y } from "react/jsx-runtime";
2
2
  import { c as i } from "../../index-DIxK0V-G.js";
3
- import { forwardRef as H, useState as z, useMemo as K, useCallback as U, useEffect as W } from "react";
3
+ import { forwardRef as H, useState as z, useMemo as K, useCallback as U, useEffect as R } from "react";
4
4
  import { ESelectSearchSize as v } from "./constants.js";
5
- import { mapSizeToInputSize as D, getDropdownArrowIcon as R } from "./utils.js";
5
+ import { mapSizeToInputSize as D, getDropdownArrowIcon as $ } from "./utils.js";
6
6
  import { Icon as q } from "../../icons/Icon.js";
7
- import { Button as $ } from "../Button/Button.js";
8
- import { I as A } from "../../Input-DlGNMuUD.js";
9
- import { EInputVariant as J } from "../Input/constants.js";
10
- import { H as Q, U as B, G as M, K as X, W as Y } from "../../combobox-CDU06zJj.js";
7
+ import { Button as J } from "../Button/Button.js";
8
+ import { I as A } from "../../Input-WnjLXNpw.js";
9
+ import { EInputVariant as Q } from "../Input/constants.js";
10
+ import { H as W, U as B, G as M, K as X, j as Y } from "../../combobox-BpYucpxz.js";
11
11
  import '../../assets/SelectSearch.css';const Z = "_disabled_rphak_5", ee = "_container_rphak_9", te = "_full_rphak_22", oe = "_button_rphak_34", ae = "_options_rphak_48", ne = "_top_rphak_59", se = "_bottom_rphak_64", re = "_m_rphak_91", ie = "_l_rphak_106", le = "_option_rphak_48", ce = "_clear_rphak_160", e = {
12
12
  "select-search": "_select-search_rphak_2",
13
13
  disabled: Z,
@@ -34,28 +34,28 @@ import '../../assets/SelectSearch.css';const Z = "_disabled_rphak_5", ee = "_con
34
34
  clear: ce,
35
35
  "icon-button": "_icon-button_rphak_169"
36
36
  }, ve = H(
37
- (O, L) => {
37
+ (O, j) => {
38
38
  const {
39
39
  placeholder: g,
40
40
  size: s = v.L,
41
41
  value: r,
42
42
  onChange: o,
43
- full: E,
44
- showArrow: F = !0,
43
+ full: L,
44
+ showArrow: E = !0,
45
45
  items: d = [],
46
- classNameOption: G,
47
- displayValue: P = "name",
46
+ classNameOption: F,
47
+ displayValue: G = "name",
48
48
  filterOnSearch: w = !0,
49
49
  onSearch: m,
50
- variant: C = J.DefaultGray,
50
+ variant: C = Q.DefaultGray,
51
51
  menuPlacement: h = "bottom",
52
52
  disabled: l = !1,
53
53
  searchProps: I,
54
54
  withClearButton: f = !1,
55
55
  disableInput: c = !1
56
- } = O, k = String((r == null ? void 0 : r[P]) || ""), [p, _] = z(k), [b, N] = z(r), S = K(() => !w || r && (r.id || r.name) ? d : p.trim().toLowerCase() ? d.filter(
56
+ } = O, k = String((r == null ? void 0 : r[G]) || ""), [p, _] = z(k), [b, N] = z(r), S = K(() => !w || r && (r.id || r.name) ? d : p.trim().toLowerCase() ? d.filter(
57
57
  (a) => a.name.toLowerCase().includes(p.toLowerCase())
58
- ) : d, [p, d, r, w]), T = (a) => {
58
+ ) : d, [p, d, r, w]), P = (a) => {
59
59
  a ? (_(a.name), N(a), o == null || o(a)) : (_(""), N(null), o == null || o({ id: "", name: "" }));
60
60
  }, x = U(
61
61
  (a) => {
@@ -64,22 +64,22 @@ import '../../assets/SelectSearch.css';const Z = "_disabled_rphak_5", ee = "_con
64
64
  _(t), m == null || m(t), !t && r && (o == null || o({ id: "", name: "" }));
65
65
  },
66
66
  [c, o, m, r]
67
- ), V = () => {
67
+ ), T = () => {
68
68
  _(""), N(null), o == null || o({ id: "", name: "" });
69
69
  };
70
- return W(() => {
70
+ return R(() => {
71
71
  _(k);
72
72
  }, [k]), /* @__PURE__ */ n(
73
- Q,
73
+ W,
74
74
  {
75
75
  as: "div",
76
76
  value: b,
77
77
  className: i(e["select-search"], {
78
- [e.full]: E,
78
+ [e.full]: L,
79
79
  [e.disabled]: l
80
80
  }),
81
- onChange: T,
82
- ref: L,
81
+ onChange: P,
82
+ ref: j,
83
83
  disabled: l,
84
84
  virtual: { options: S },
85
85
  children: ({ open: a }) => /* @__PURE__ */ u(y, { children: [
@@ -112,13 +112,13 @@ import '../../assets/SelectSearch.css';const Z = "_disabled_rphak_5", ee = "_con
112
112
  },
113
113
  rightAddon: {
114
114
  addonType: "icon",
115
- addonContent: R(a, s)
115
+ addonContent: $(a, s)
116
116
  },
117
117
  ...I
118
118
  }
119
119
  ) }),
120
120
  f && p && /* @__PURE__ */ n(
121
- $,
121
+ J,
122
122
  {
123
123
  tabIndex: -1,
124
124
  className: i(e.clear, {
@@ -132,7 +132,7 @@ import '../../assets/SelectSearch.css';const Z = "_disabled_rphak_5", ee = "_con
132
132
  disabled: l,
133
133
  variant: "secondary-gray",
134
134
  onClick: (t) => {
135
- t.stopPropagation(), V();
135
+ t.stopPropagation(), T();
136
136
  },
137
137
  "data-testid": "clear-button"
138
138
  }
@@ -155,7 +155,7 @@ import '../../assets/SelectSearch.css';const Z = "_disabled_rphak_5", ee = "_con
155
155
  "data-testid": "select-search-input",
156
156
  rightAddon: {
157
157
  addonType: "react-node",
158
- addonContent: F && /* @__PURE__ */ n(
158
+ addonContent: E && /* @__PURE__ */ n(
159
159
  B,
160
160
  {
161
161
  className: i(e.button, {
@@ -196,12 +196,12 @@ import '../../assets/SelectSearch.css';const Z = "_disabled_rphak_5", ee = "_con
196
196
  Y,
197
197
  {
198
198
  value: t,
199
- className: ({ focus: j }) => i(
199
+ className: ({ focus: V }) => i(
200
200
  e.option,
201
- G,
201
+ F,
202
202
  s && e[s],
203
203
  {
204
- [e["option-active"]]: j
204
+ [e["option-active"]]: V
205
205
  }
206
206
  ),
207
207
  "data-testid": `select-search-option-${t.id}`,
@@ -1,5 +1,5 @@
1
1
  import { ESelectSearchSize as r } from "./constants.js";
2
- import "../../Input-DlGNMuUD.js";
2
+ import "../../Input-WnjLXNpw.js";
3
3
  import { EInputSize as t } from "../Input/constants.js";
4
4
  const c = (o) => {
5
5
  switch (o) {
@@ -1,9 +1,9 @@
1
1
  import { jsxs as L, jsx as N } from "react/jsx-runtime";
2
- import { H as te } from "../../field-FJ34aSs4.js";
3
- import { K as I, w as re, z as se, U as ae, u as ce, a as le, b as oe, T as ie, I as ne, G as ue, j as he, p as me } from "../../label-y3ANLTNC.js";
4
- import { W as de, H as j, y as pe, p as fe, o as $, $ as be, b as we, D as _e, c as H } from "../../keyboard-B0lm_zyn.js";
2
+ import { H as te } from "../../field-C1kt7aNM.js";
3
+ import { K as I, w as re, z as se, U as ae, u as ce, a as le, b as oe, T as ie, I as ne, G as ue, j as he, p as me } from "../../label-D4GFpe5F.js";
4
+ import { W as de, H as j, y as pe, p as fe, o as $, $ as be, b as we, D as _e, c as H } from "../../keyboard-mgWkd2Vh.js";
5
5
  import u, { createContext as $e, useState as x, useMemo as G, useId as ge, useContext as ve, useRef as ke, useCallback as xe, Fragment as ye, forwardRef as Pe } from "react";
6
- import { w as Ce } from "../../use-active-press-86hajhdd.js";
6
+ import { w as Ce } from "../../use-active-press-CqLGIFz7.js";
7
7
  import { e as De } from "../../use-resolve-button-type-DhFdPxnv.js";
8
8
  import { r as Fe } from "../../bugs-diTMAGNw.js";
9
9
  import { c as g } from "../../index-DIxK0V-G.js";
@@ -5,11 +5,11 @@ import N, { useRef as U, useState as Q, createContext as oe, useReducer as ke, u
5
5
  import { ETabTrailSize as Ae } from "./constants.js";
6
6
  import { TabButtons as Se } from "./TabButtons/TabButtons.js";
7
7
  import { NotificationBadge as Fe } from "../NotificationBadge/NotificationBadge.js";
8
- import { n as W, M as se, W as q, s as H, y as z, o as E, H as V, $ as ce, b as De, D as de, a as B, u as Ne, c as h, t as Re } from "../../keyboard-B0lm_zyn.js";
9
- import { w as Me } from "../../use-active-press-86hajhdd.js";
8
+ import { n as W, M as se, W as q, s as H, y as z, o as E, H as V, $ as ce, b as De, D as de, a as B, u as Ne, c as h, t as Re } from "../../keyboard-mgWkd2Vh.js";
9
+ import { w as Me } from "../../use-active-press-CqLGIFz7.js";
10
10
  import { e as Ce } from "../../use-resolve-button-type-DhFdPxnv.js";
11
- import { T as pe, s as Le } from "../../hidden-DbgtYPOH.js";
12
- import { _ as G, T as J, P as D, F as T } from "../../focus-management-XwV-9qkO.js";
11
+ import { T as pe, s as Le } from "../../hidden-PvGXrYUY.js";
12
+ import { _ as G, T as J, P as D, F as T } from "../../focus-management-DOYCPyGg.js";
13
13
  import '../../assets/TabTrail.css';function Oe() {
14
14
  let e = U(!1);
15
15
  return W(() => (e.current = !0, () => {
@@ -5,7 +5,7 @@ import { useAutoResizeTextArea as Y } from "./hooks.js";
5
5
  import { useMergeRefs as Z } from "../../hooks/useMergeRefs/useMergeRefs.js";
6
6
  import { Icon as $ } from "../../icons/Icon.js";
7
7
  import { Button as ee } from "../Button/Button.js";
8
- import { c as e } from "../../Input-DlGNMuUD.js";
8
+ import { c as e } from "../../Input-WnjLXNpw.js";
9
9
  import { EInputVariant as ae } from "../Input/constants.js";
10
10
  import '../../assets/TextArea.css';const te = "_textarea_1n8kz_2", se = "_label_1n8kz_22", re = "_s_1n8kz_54", le = "_m_1n8kz_62", ne = "_l_1n8kz_22", a = {
11
11
  "textarea-wrapper": "_textarea-wrapper_1n8kz_2",
@@ -1,6 +1,6 @@
1
1
  import { Button as e } from "./Button/Button.js";
2
2
  import { EButtonForm as p, EButtonSize as a, EButtonVariantBorderless as i, EButtonVariantDefault as m, EButtonVariantOutline as f, EButtonVariantRound as x } from "./Button/constants.js";
3
- import { I as S } from "../Input-DlGNMuUD.js";
3
+ import { I as S } from "../Input-WnjLXNpw.js";
4
4
  import { EInputSize as u, EInputStatus as l, EInputVariant as s } from "./Input/constants.js";
5
5
  import { TextArea as c } from "./TextArea/TextArea.js";
6
6
  import { InputPassword as I } from "./InputPassword/InputPassword.js";
@@ -1,6 +1,6 @@
1
1
  import l, { useId as u, useMemo as f } from "react";
2
- import { z as p, U as h, a as v, l as E, f as b, W as $ } from "./label-y3ANLTNC.js";
3
- import { W as H, H as W } from "./keyboard-B0lm_zyn.js";
2
+ import { z as p, U as h, a as v, l as E, f as b, W as $ } from "./label-D4GFpe5F.js";
3
+ import { W as H, H as W } from "./keyboard-mgWkd2Vh.js";
4
4
  let P = "div";
5
5
  function _(a, i) {
6
6
  let d = `headlessui-control-${u()}`, [o, n] = p(), [m, s] = h(), c = v(), { disabled: e = c || !1, ...t } = a, r = f(() => ({ disabled: e }), [e]);
@@ -1,4 +1,4 @@
1
- import { u as N, a as v } from "./keyboard-B0lm_zyn.js";
1
+ import { u as N, a as v } from "./keyboard-mgWkd2Vh.js";
2
2
  let m = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), F = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
3
3
  var h = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(h || {}), x = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(x || {}), A = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(A || {});
4
4
  function y(e = document.body) {
@@ -1,4 +1,4 @@
1
- import { W as t, H as a } from "./keyboard-B0lm_zyn.js";
1
+ import { W as t, H as a } from "./keyboard-mgWkd2Vh.js";
2
2
  let l = "span";
3
3
  var p = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(p || {});
4
4
  function s(e, n) {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Button as e } from "./components/Button/Button.js";
2
2
  import { EButtonForm as p, EButtonSize as a, EButtonVariantBorderless as m, EButtonVariantDefault as f, EButtonVariantOutline as i, EButtonVariantRound as x } from "./components/Button/constants.js";
3
- import { I as u } from "./Input-DlGNMuUD.js";
3
+ import { I as u } from "./Input-WnjLXNpw.js";
4
4
  import { EInputSize as S, EInputStatus as E, EInputVariant as l } from "./components/Input/constants.js";
5
5
  import { TextArea as c } from "./components/TextArea/TextArea.js";
6
6
  import { InputPassword as I } from "./components/InputPassword/InputPassword.js";