mimir-ui-kit 1.62.0 → 1.64.0

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.
Files changed (55) hide show
  1. package/dist/Input-CqNPT8os.js +243 -0
  2. package/dist/components/Accordion/Accordion.d.ts +5 -0
  3. package/dist/components/Accordion/Accordion.js +242 -220
  4. package/dist/components/Accordion/AccordionItem/AccordionItem.d.ts +6 -1
  5. package/dist/components/Accordion/AccordionItem/AccordionItem.js +19 -8
  6. package/dist/components/Button/Button.d.ts +37 -0
  7. package/dist/components/Button/Button.js +77 -61
  8. package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +9 -0
  9. package/dist/components/CheckboxMimir/CheckboxMimir.js +90 -59
  10. package/dist/components/DatePicker/DatePicker.js +1 -1
  11. package/dist/components/Drawer/Drawer.d.ts +5 -0
  12. package/dist/components/Drawer/Drawer.js +141 -135
  13. package/dist/components/GosZnak/GosZnak.d.ts +1 -1
  14. package/dist/components/GosZnak/GosZnak.js +88 -67
  15. package/dist/components/GosZnak/types.d.ts +5 -0
  16. package/dist/components/Image/Image.d.ts +5 -0
  17. package/dist/components/Image/Image.js +55 -50
  18. package/dist/components/Input/Input.d.ts +5 -0
  19. package/dist/components/Input/Input.js +1 -1
  20. package/dist/components/Input/index.js +1 -1
  21. package/dist/components/InputPassword/InputPassword.d.ts +5 -0
  22. package/dist/components/InputPassword/InputPassword.js +80 -69
  23. package/dist/components/InputPhoneNumber/InputPhoneNumber.d.ts +5 -1
  24. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +39 -32
  25. package/dist/components/Loader/Loader.d.ts +6 -1
  26. package/dist/components/Loader/Loader.js +37 -14
  27. package/dist/components/MultiSelectSearch/MultiSelectSearch.js +1 -1
  28. package/dist/components/MultiSelectSearch/utils.js +1 -1
  29. package/dist/components/OtpInput/OtpInput.js +1 -1
  30. package/dist/components/RadioGroup/RadioGroup.d.ts +9 -0
  31. package/dist/components/RadioGroup/RadioGroup.js +142 -129
  32. package/dist/components/SelectSearch/SelectSearch.d.ts +1 -0
  33. package/dist/components/SelectSearch/SelectSearch.js +299 -277
  34. package/dist/components/SelectSearch/types.d.ts +5 -0
  35. package/dist/components/SelectSearch/utils.js +1 -1
  36. package/dist/components/TextArea/TextArea.d.ts +1 -1
  37. package/dist/components/TextArea/TextArea.js +1 -1
  38. package/dist/components/TextAreaV2/TextArea.js +155 -142
  39. package/dist/components/TextAreaV2/types.d.ts +5 -0
  40. package/dist/components/UniversalUploader/UniversalUploader.d.ts +1 -0
  41. package/dist/components/UniversalUploader/UniversalUploader.js +92 -88
  42. package/dist/components/UniversalUploader/types.d.ts +5 -0
  43. package/dist/components/Uploader/Uploader.d.ts +7 -2
  44. package/dist/components/Uploader/Uploader.js +121 -90
  45. package/dist/components/UploaderFiles/UploaderFiles.js +88 -79
  46. package/dist/components/UploaderFiles/types.d.ts +5 -0
  47. package/dist/components/UploaderPhotos/UploaderPhotos.d.ts +5 -0
  48. package/dist/components/UploaderPhotos/UploaderPhotos.js +60 -57
  49. package/dist/components/index.js +1 -1
  50. package/dist/index.js +1 -1
  51. package/dist/types/dataTestId.d.ts +1 -0
  52. package/dist/types/dataTestId.js +1 -0
  53. package/dist/types/index.d.ts +1 -0
  54. package/package.json +1 -1
  55. package/dist/Input-DPnH8pKc.js +0 -227
@@ -1,187 +1,200 @@
1
- import { jsxs as ee, jsx as S, Fragment as _e } from "react/jsx-runtime";
2
- import { K as M, w as ke, a as oe, z as te, U as ie, b as Oe, T as we, j as ye, u as Pe, I as Ee, G as Te, p as De } from "../../label-BmphTIGY.js";
3
- import { W as V, y as W, o as L, H as K, s as ne, n as se, $ as le, b as de, D as ue, a as Ce, u as Ge, c as F } from "../../keyboard-wis2TUql.js";
4
- import E, { createContext as ce, useId as q, useReducer as xe, useRef as B, useMemo as T, useCallback as ze, useContext as pe, forwardRef as Fe } from "react";
5
- import { u as Ne } from "../../use-by-comparator-CVuf9KBq.js";
1
+ import { jsxs as ee, jsx as U, Fragment as ke } from "react/jsx-runtime";
2
+ import { K, w as Oe, a as ie, z as ne, U as ae, b as we, T as ye, j as Pe, u as Ee, I as De, G as Re, p as Ce } from "../../label-BmphTIGY.js";
3
+ import { W as q, y as B, o as j, H as J, s as te, n as le, $ as se, b as ue, D as de, a as Ge, u as xe, c as N } from "../../keyboard-wis2TUql.js";
4
+ import D, { createContext as ce, useId as X, useReducer as ze, useRef as Q, useMemo as R, useCallback as Fe, useContext as pe, forwardRef as Ne } from "react";
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 j, T as ae, _ as Ae } from "../../focus-management-BAl0GmRk.js";
8
- import { c as H } from "../../index-DIxK0V-G.js";
9
- import '../../assets/RadioGroup.css';var Ie = ((e) => (e[e.RegisterOption = 0] = "RegisterOption", e[e.UnregisterOption = 1] = "UnregisterOption", e))(Ie || {});
10
- let Se = { 0(e, r) {
11
- let o = [...e.options, { id: r.id, element: r.element, propsRef: r.propsRef }];
12
- return { ...e, options: Ae(o, (a) => a.element.current) };
13
- }, 1(e, r) {
14
- let o = e.options.slice(), a = e.options.findIndex((u) => u.id === r.id);
15
- return a === -1 ? e : (o.splice(a, 1), { ...e, options: o });
16
- } }, J = ce(null);
17
- J.displayName = "RadioGroupDataContext";
18
- function X(e) {
19
- let r = pe(J);
20
- if (r === null) {
21
- let o = new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);
22
- throw Error.captureStackTrace && Error.captureStackTrace(o, X), o;
7
+ import { P as re, F as W, T as oe, _ as Se } from "../../focus-management-BAl0GmRk.js";
8
+ import { c as V } from "../../index-DIxK0V-G.js";
9
+ import '../../assets/RadioGroup.css';var Le = ((e) => (e[e.RegisterOption = 0] = "RegisterOption", e[e.UnregisterOption = 1] = "UnregisterOption", e))(Le || {});
10
+ let Ue = { 0(e, o) {
11
+ let n = [...e.options, { id: o.id, element: o.element, propsRef: o.propsRef }];
12
+ return { ...e, options: Se(n, (i) => i.element.current) };
13
+ }, 1(e, o) {
14
+ let n = e.options.slice(), i = e.options.findIndex((d) => d.id === o.id);
15
+ return i === -1 ? e : (n.splice(i, 1), { ...e, options: n });
16
+ } }, Y = ce(null);
17
+ Y.displayName = "RadioGroupDataContext";
18
+ function Z(e) {
19
+ let o = pe(Y);
20
+ if (o === null) {
21
+ let n = new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);
22
+ throw Error.captureStackTrace && Error.captureStackTrace(n, Z), n;
23
23
  }
24
- return r;
24
+ return o;
25
25
  }
26
- let Q = ce(null);
27
- Q.displayName = "RadioGroupActionsContext";
28
- function Y(e) {
29
- let r = pe(Q);
30
- if (r === null) {
31
- let o = new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);
32
- throw Error.captureStackTrace && Error.captureStackTrace(o, Y), o;
26
+ let T = ce(null);
27
+ T.displayName = "RadioGroupActionsContext";
28
+ function I(e) {
29
+ let o = pe(T);
30
+ if (o === null) {
31
+ let n = new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);
32
+ throw Error.captureStackTrace && Error.captureStackTrace(n, I), n;
33
33
  }
34
- return r;
34
+ return o;
35
35
  }
36
- function Le(e, r) {
37
- return Ce(r.type, Se, e, r);
36
+ function je(e, o) {
37
+ return Ge(o.type, Ue, e, o);
38
38
  }
39
- let Ue = "div";
40
- function je(e, r) {
41
- let o = q(), a = oe(), { id: u = `headlessui-radiogroup-${o}`, value: _, form: v, name: c, onChange: s, by: m, disabled: l = a || !1, defaultValue: n, ...k } = e, d = Ne(m), [O, D] = xe(Le, { options: [] }), p = O.options, [w, N] = te(), [C, y] = ie(), P = B(null), G = W(P, r), $ = Oe(n), [t, x] = we(_, s, $), z = T(() => p.find((i) => !i.propsRef.current.disabled), [p]), g = T(() => p.some((i) => d(i.propsRef.current.value, t)), [p, t]), f = L((i) => {
42
- var A;
43
- if (l || d(i, t)) return !1;
44
- let R = (A = p.find((U) => d(U.propsRef.current.value, i))) == null ? void 0 : A.propsRef.current;
45
- return R != null && R.disabled ? !1 : (x == null || x(i), !0);
46
- }), be = L((i) => {
47
- let A = P.current;
48
- if (!A) return;
49
- let R = Ge(A), U = p.filter((b) => b.propsRef.current.disabled === !1).map((b) => b.element.current);
50
- switch (i.key) {
51
- case F.Enter:
52
- De(i.currentTarget);
39
+ let He = "div";
40
+ function We(e, o) {
41
+ let n = X(), i = ie(), { id: d = `headlessui-radiogroup-${n}`, value: w, form: h, name: r, onChange: a, by: m, disabled: s = i || !1, defaultValue: c, ...v } = e, u = Ae(m), [g, C] = ze(je, { options: [] }), p = g.options, [y, A] = ne(), [G, P] = ae(), E = Q(null), x = B(E, o), k = we(c), [t, z] = ye(w, a, k), F = R(() => p.find((l) => !l.propsRef.current.disabled), [p]), O = R(() => p.some((l) => u(l.propsRef.current.value, t)), [p, t]), f = j((l) => {
42
+ var S;
43
+ if (s || u(l, t)) return !1;
44
+ let _ = (S = p.find((H) => u(H.propsRef.current.value, l))) == null ? void 0 : S.propsRef.current;
45
+ return _ != null && _.disabled ? !1 : (z == null || z(l), !0);
46
+ }), be = j((l) => {
47
+ let S = E.current;
48
+ if (!S) return;
49
+ let _ = xe(S), H = p.filter((b) => b.propsRef.current.disabled === !1).map((b) => b.element.current);
50
+ switch (l.key) {
51
+ case N.Enter:
52
+ Ce(l.currentTarget);
53
53
  break;
54
- case F.ArrowLeft:
55
- case F.ArrowUp:
56
- if (i.preventDefault(), i.stopPropagation(), re(U, j.Previous | j.WrapAround) === ae.Success) {
57
- let b = p.find((I) => I.element.current === (R == null ? void 0 : R.activeElement));
54
+ case N.ArrowLeft:
55
+ case N.ArrowUp:
56
+ if (l.preventDefault(), l.stopPropagation(), re(H, W.Previous | W.WrapAround) === oe.Success) {
57
+ let b = p.find((L) => L.element.current === (_ == null ? void 0 : _.activeElement));
58
58
  b && f(b.propsRef.current.value);
59
59
  }
60
60
  break;
61
- case F.ArrowRight:
62
- case F.ArrowDown:
63
- if (i.preventDefault(), i.stopPropagation(), re(U, j.Next | j.WrapAround) === ae.Success) {
64
- let b = p.find((I) => I.element.current === (R == null ? void 0 : R.activeElement));
61
+ case N.ArrowRight:
62
+ case N.ArrowDown:
63
+ if (l.preventDefault(), l.stopPropagation(), re(H, W.Next | W.WrapAround) === oe.Success) {
64
+ let b = p.find((L) => L.element.current === (_ == null ? void 0 : _.activeElement));
65
65
  b && f(b.propsRef.current.value);
66
66
  }
67
67
  break;
68
- case F.Space:
68
+ case N.Space:
69
69
  {
70
- i.preventDefault(), i.stopPropagation();
71
- let b = p.find((I) => I.element.current === (R == null ? void 0 : R.activeElement));
70
+ l.preventDefault(), l.stopPropagation();
71
+ let b = p.find((L) => L.element.current === (_ == null ? void 0 : _.activeElement));
72
72
  b && f(b.propsRef.current.value);
73
73
  }
74
74
  break;
75
75
  }
76
- }), Z = L((i) => (D({ type: 0, ...i }), () => D({ type: 1, id: i.id }))), ve = T(() => ({ value: t, firstOption: z, containsCheckedOption: g, disabled: l, compare: d, ...O }), [t, z, g, l, d, O]), he = T(() => ({ registerOption: Z, change: f }), [Z, f]), Re = { ref: G, id: u, role: "radiogroup", "aria-labelledby": w, "aria-describedby": C, onKeyDown: be }, $e = T(() => ({ value: t }), [t]), ge = ze(() => {
77
- if ($ !== void 0) return f($);
78
- }, [f, $]);
79
- return E.createElement(y, { name: "RadioGroup.Description" }, E.createElement(N, { name: "RadioGroup.Label" }, E.createElement(Q.Provider, { value: he }, E.createElement(J.Provider, { value: ve }, c != null && E.createElement(ye, { disabled: l, data: { [c]: t || "on" }, overrides: { type: "radio", checked: t != null }, form: v, onReset: ge }), K({ ourProps: Re, theirProps: k, slot: $e, defaultTag: Ue, name: "RadioGroup" })))));
76
+ }), M = j((l) => (C({ type: 0, ...l }), () => C({ type: 1, id: l.id }))), ve = R(() => ({ value: t, firstOption: F, containsCheckedOption: O, disabled: s, compare: u, ...g }), [t, F, O, s, u, g]), he = R(() => ({ registerOption: M, change: f }), [M, f]), $e = { ref: x, id: d, role: "radiogroup", "aria-labelledby": y, "aria-describedby": G, onKeyDown: be }, ge = R(() => ({ value: t }), [t]), _e = Fe(() => {
77
+ if (k !== void 0) return f(k);
78
+ }, [f, k]);
79
+ return D.createElement(P, { name: "RadioGroup.Description" }, D.createElement(A, { name: "RadioGroup.Label" }, D.createElement(T.Provider, { value: he }, D.createElement(Y.Provider, { value: ve }, r != null && D.createElement(Pe, { disabled: s, data: { [r]: t || "on" }, overrides: { type: "radio", checked: t != null }, form: h, onReset: _e }), J({ ourProps: $e, theirProps: v, slot: ge, defaultTag: He, name: "RadioGroup" })))));
80
80
  }
81
- let He = "div";
82
- function Me(e, r) {
83
- var o;
84
- let a = X("RadioGroup.Option"), u = Y("RadioGroup.Option"), _ = q(), { id: v = `headlessui-radiogroup-option-${_}`, value: c, disabled: s = a.disabled || !1, autoFocus: m = !1, ...l } = e, n = B(null), k = W(n, r), [d, O] = te(), [D, p] = ie(), w = ne({ value: c, disabled: s });
85
- se(() => u.registerOption({ id: v, element: n, propsRef: w }), [v, u, n, w]);
86
- let N = L((g) => {
81
+ let Ve = "div";
82
+ function Ke(e, o) {
83
+ var n;
84
+ let i = Z("RadioGroup.Option"), d = I("RadioGroup.Option"), w = X(), { id: h = `headlessui-radiogroup-option-${w}`, value: r, disabled: a = i.disabled || !1, autoFocus: m = !1, ...s } = e, c = Q(null), v = B(c, o), [u, g] = ne(), [C, p] = ae(), y = te({ value: r, disabled: a });
85
+ le(() => d.registerOption({ id: h, element: c, propsRef: y }), [h, d, c, y]);
86
+ let A = j((O) => {
87
87
  var f;
88
- if (fe(g.currentTarget)) return g.preventDefault();
89
- u.change(c) && ((f = n.current) == null || f.focus());
90
- }), C = ((o = a.firstOption) == null ? void 0 : o.id) === v, { isFocusVisible: y, focusProps: P } = le({ autoFocus: m }), { isHovered: G, hoverProps: $ } = de({ isDisabled: s }), t = a.compare(a.value, c), x = ue({ ref: k, id: v, role: "radio", "aria-checked": t ? "true" : "false", "aria-labelledby": d, "aria-describedby": D, "aria-disabled": s ? !0 : void 0, tabIndex: s ? -1 : t || !a.containsCheckedOption && C ? 0 : -1, onClick: s ? void 0 : N, autoFocus: m }, P, $), z = T(() => ({ checked: t, disabled: s, active: y, hover: G, focus: y, autofocus: m }), [t, s, G, y, m]);
91
- return E.createElement(p, { name: "RadioGroup.Description" }, E.createElement(O, { name: "RadioGroup.Label" }, K({ ourProps: x, theirProps: l, slot: z, defaultTag: He, name: "RadioGroup.Option" })));
88
+ if (fe(O.currentTarget)) return O.preventDefault();
89
+ d.change(r) && ((f = c.current) == null || f.focus());
90
+ }), G = ((n = i.firstOption) == null ? void 0 : n.id) === h, { isFocusVisible: P, focusProps: E } = se({ autoFocus: m }), { isHovered: x, hoverProps: k } = ue({ isDisabled: a }), t = i.compare(i.value, r), z = de({ ref: v, id: h, role: "radio", "aria-checked": t ? "true" : "false", "aria-labelledby": u, "aria-describedby": C, "aria-disabled": a ? !0 : void 0, tabIndex: a ? -1 : t || !i.containsCheckedOption && G ? 0 : -1, onClick: a ? void 0 : A, autoFocus: m }, E, k), F = R(() => ({ checked: t, disabled: a, active: P, hover: x, focus: P, autofocus: m }), [t, a, x, P, m]);
91
+ return D.createElement(p, { name: "RadioGroup.Description" }, D.createElement(g, { name: "RadioGroup.Label" }, J({ ourProps: z, theirProps: s, slot: F, defaultTag: Ve, name: "RadioGroup.Option" })));
92
92
  }
93
- let Ve = "span";
94
- function We(e, r) {
95
- var o;
96
- let a = X("Radio"), u = Y("Radio"), _ = q(), v = Pe(), c = oe(), { id: s = v || `headlessui-radio-${_}`, value: m, disabled: l = a.disabled || c || !1, autoFocus: n = !1, ...k } = e, d = B(null), O = W(d, r), D = Ee(), p = Te(), w = ne({ value: m, disabled: l });
97
- se(() => u.registerOption({ id: s, element: d, propsRef: w }), [s, u, d, w]);
98
- let N = L((g) => {
93
+ let qe = "span";
94
+ function Be(e, o) {
95
+ var n;
96
+ let i = Z("Radio"), d = I("Radio"), w = X(), h = Ee(), r = ie(), { id: a = h || `headlessui-radio-${w}`, value: m, disabled: s = i.disabled || r || !1, autoFocus: c = !1, ...v } = e, u = Q(null), g = B(u, o), C = De(), p = Re(), y = te({ value: m, disabled: s });
97
+ le(() => d.registerOption({ id: a, element: u, propsRef: y }), [a, d, u, y]);
98
+ let A = j((O) => {
99
99
  var f;
100
- if (fe(g.currentTarget)) return g.preventDefault();
101
- u.change(m) && ((f = d.current) == null || f.focus());
102
- }), { isFocusVisible: C, focusProps: y } = le({ autoFocus: n }), { isHovered: P, hoverProps: G } = de({ isDisabled: l }), $ = ((o = a.firstOption) == null ? void 0 : o.id) === s, t = a.compare(a.value, m), x = ue({ ref: O, id: s, role: "radio", "aria-checked": t ? "true" : "false", "aria-labelledby": D, "aria-describedby": p, "aria-disabled": l ? !0 : void 0, tabIndex: l ? -1 : t || !a.containsCheckedOption && $ ? 0 : -1, autoFocus: n, onClick: l ? void 0 : N }, y, G), z = T(() => ({ checked: t, disabled: l, hover: P, focus: C, autofocus: n }), [t, l, P, C, n]);
103
- return K({ ourProps: x, theirProps: k, slot: z, defaultTag: Ve, name: "Radio" });
100
+ if (fe(O.currentTarget)) return O.preventDefault();
101
+ d.change(m) && ((f = u.current) == null || f.focus());
102
+ }), { isFocusVisible: G, focusProps: P } = se({ autoFocus: c }), { isHovered: E, hoverProps: x } = ue({ isDisabled: s }), k = ((n = i.firstOption) == null ? void 0 : n.id) === a, t = i.compare(i.value, m), z = de({ ref: g, id: a, role: "radio", "aria-checked": t ? "true" : "false", "aria-labelledby": C, "aria-describedby": p, "aria-disabled": s ? !0 : void 0, tabIndex: s ? -1 : t || !i.containsCheckedOption && k ? 0 : -1, autoFocus: c, onClick: s ? void 0 : A }, P, x), F = R(() => ({ checked: t, disabled: s, hover: E, focus: G, autofocus: c }), [t, s, E, G, c]);
103
+ return J({ ourProps: z, theirProps: v, slot: F, defaultTag: qe, name: "Radio" });
104
104
  }
105
- let Ke = V(je), qe = V(Me), me = V(We), Be = M, Je = ke, Xe = Object.assign(Ke, { Option: qe, Radio: me, Label: Be, Description: Je });
106
- const Qe = "_group_po2hz_2", Ye = "_radio_po2hz_17", Ze = "_disabled_po2hz_39", er = "_label_po2hz_50", rr = "_frame_po2hz_63", ar = "_checked_po2hz_72", h = {
107
- group: Qe,
105
+ let Je = q(We), Xe = q(Ke), me = q(Be), Qe = K, Ye = Oe, Ze = Object.assign(Je, { Option: Xe, Radio: me, Label: Qe, Description: Ye });
106
+ const Te = "_group_po2hz_2", Ie = "_radio_po2hz_17", Me = "_disabled_po2hz_39", er = "_label_po2hz_50", rr = "_frame_po2hz_63", or = "_checked_po2hz_72", $ = {
107
+ group: Te,
108
108
  "content-wrapper": "_content-wrapper_po2hz_7",
109
109
  "radio-wrapper": "_radio-wrapper_po2hz_17",
110
- radio: Ye,
111
- disabled: Ze,
110
+ radio: Ie,
111
+ disabled: Me,
112
112
  label: er,
113
113
  frame: rr,
114
- checked: ar
115
- }, cr = Fe(
114
+ checked: or
115
+ }, cr = Ne(
116
116
  ({
117
117
  options: e,
118
- value: r,
119
- onChange: o,
120
- label: a,
121
- classNameRadioWrapper: u,
122
- classNameRadioSpan: _,
123
- classNameContentWrapper: v,
124
- ...c
125
- }, s) => {
126
- const m = H(
127
- h["radio-wrapper"],
128
- u,
118
+ value: o,
119
+ onChange: n,
120
+ label: i,
121
+ classNameRadioWrapper: d,
122
+ classNameRadioSpan: w,
123
+ classNameContentWrapper: h,
124
+ dataTestIdReactMap: r,
125
+ ...a
126
+ }, m) => {
127
+ const s = V(
128
+ $["radio-wrapper"],
129
+ d,
129
130
  {
130
- [h.disabled]: c.disabled
131
+ [$.disabled]: a.disabled
131
132
  }
132
133
  );
133
134
  return /* @__PURE__ */ ee(
134
- Xe,
135
+ Ze,
135
136
  {
136
- ref: s,
137
- value: r,
138
- className: h.group,
139
- onChange: o,
140
- ...c,
137
+ "data-testid-react": r == null ? void 0 : r.group,
138
+ ref: m,
139
+ value: o,
140
+ className: $.group,
141
+ onChange: n,
142
+ ...a,
141
143
  children: [
142
- a && /* @__PURE__ */ S(M, { as: "p", className: h.label, children: a }),
143
- /* @__PURE__ */ S(
144
+ i && /* @__PURE__ */ U(
145
+ K,
146
+ {
147
+ "data-testid-react": r == null ? void 0 : r.label,
148
+ as: "p",
149
+ className: $.label,
150
+ children: i
151
+ }
152
+ ),
153
+ /* @__PURE__ */ U(
144
154
  "div",
145
155
  {
146
- className: H(
147
- h["content-wrapper"],
148
- v
156
+ "data-testid-react": r == null ? void 0 : r.contentWrapper,
157
+ className: V(
158
+ $["content-wrapper"],
159
+ h
149
160
  ),
150
- children: e.map(({ label: l, value: n }) => /* @__PURE__ */ S(
161
+ children: e.map(({ label: c, value: v }) => /* @__PURE__ */ U(
151
162
  me,
152
163
  {
164
+ "data-testid-react": r == null ? void 0 : r.radio,
153
165
  as: "span",
154
- value: n,
155
- disabled: c.disabled,
156
- className: m,
157
- "data-testid": `radio-option-${n}`,
158
- children: ({ checked: k, disabled: d }) => /* @__PURE__ */ ee(_e, { children: [
159
- /* @__PURE__ */ S(
160
- M,
166
+ value: v,
167
+ disabled: a.disabled,
168
+ className: s,
169
+ "data-testid": `radio-option-${v}`,
170
+ children: ({ checked: u, disabled: g }) => /* @__PURE__ */ ee(ke, { children: [
171
+ /* @__PURE__ */ U(
172
+ K,
161
173
  {
162
174
  as: "span",
163
- className: H(
164
- h.radio,
175
+ className: V(
176
+ $.radio,
165
177
  {
166
- [h.disabled]: c.disabled
178
+ [$.disabled]: a.disabled
167
179
  },
168
- _
180
+ w
169
181
  ),
170
- children: /* @__PURE__ */ S(
182
+ children: /* @__PURE__ */ U(
171
183
  "span",
172
184
  {
173
- className: H(h.frame, {
174
- [h.checked]: k,
175
- [h.disabled]: d
185
+ "data-testid-react": r == null ? void 0 : r.frame,
186
+ className: V($.frame, {
187
+ [$.checked]: u,
188
+ [$.disabled]: g
176
189
  })
177
190
  }
178
191
  )
179
192
  }
180
193
  ),
181
- l
194
+ c
182
195
  ] })
183
196
  },
184
- typeof n == "string" ? n : String(n)
197
+ typeof v == "string" ? v : String(v)
185
198
  ))
186
199
  }
187
200
  )
@@ -34,4 +34,5 @@ export declare const SelectSearch: import('react').ForwardRefExoticComponent<Pic
34
34
  highlightMatches?: boolean;
35
35
  searchInHeaderGroupItems?: boolean;
36
36
  isModal?: boolean;
37
+ dataTestIdReactMap?: import('../..').TDataTestIdReactMap<"selectSearch" | "container" | "input" | "options" | "option" | "groupHeader" | "clearButton" | "loadingIndicator">;
37
38
  } & import('react').RefAttributes<HTMLElement>>;