mimir-ui-kit 1.62.0 → 1.63.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 +89 -86
  42. package/dist/components/UniversalUploader/types.d.ts +5 -0
  43. package/dist/components/Uploader/Uploader.d.ts +5 -0
  44. package/dist/components/Uploader/Uploader.js +116 -87
  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,77 +1,82 @@
1
- import { jsxs as M, jsx as m } from "react/jsx-runtime";
2
- import { c as S } from "../../index-DIxK0V-G.js";
3
- import { memo as j, useState as _, useLayoutEffect as Q } from "react";
4
- import { EMediaQuery as $, EMinMediaQuery as w } from "../../hooks/useMediaQuery/constants.js";
5
- import '../../assets/Image.css';const z = "_picture_1hx49_2", A = "_image_1hx49_3", C = "_loading_1hx49_10", a = {
6
- picture: z,
7
- image: A,
8
- loading: C
9
- }, q = j((h) => {
1
+ import { jsxs as Q, jsx as l } from "react/jsx-runtime";
2
+ import { c as b } from "../../index-DIxK0V-G.js";
3
+ import { memo as $, useState as h, useLayoutEffect as w } from "react";
4
+ import { EMediaQuery as z, EMinMediaQuery as A } from "../../hooks/useMediaQuery/constants.js";
5
+ import '../../assets/Image.css';const C = "_picture_1hx49_2", F = "_image_1hx49_3", H = "_loading_1hx49_10", i = {
6
+ picture: C,
7
+ image: F,
8
+ loading: H
9
+ }, B = $((k) => {
10
10
  const {
11
- className: b,
12
- src: o,
13
- alt: k = "image",
14
- desktopImage: r,
11
+ className: E,
12
+ src: t,
13
+ alt: N = "image",
14
+ desktopImage: o,
15
15
  mobileImage: s,
16
- pictureClassName: E,
17
- errorFallback: l,
18
- fallback: n,
19
- desktopImage2x: g,
20
- mobileImage2x: u,
16
+ pictureClassName: y,
17
+ errorFallback: n,
18
+ fallback: g,
19
+ desktopImage2x: u,
20
+ mobileImage2x: f,
21
21
  desktopImage3x: d,
22
22
  mobileImage3x: p,
23
- ...N
24
- } = h, [t, f] = _(!0), [y, L] = _(!1);
25
- if (Q(() => {
26
- const e = new Image();
27
- e.src = o ?? r ?? s ?? "", e.onload = () => {
28
- f(!1);
29
- }, e.onerror = () => {
30
- f(!1), L(!0);
23
+ dataTestIdReactMap: e,
24
+ ...L
25
+ } = k, [c, S] = h(!0), [j, I] = h(!1);
26
+ if (w(() => {
27
+ const r = new Image();
28
+ r.src = t ?? o ?? s ?? "", r.onload = () => {
29
+ S(!1);
30
+ }, r.onerror = () => {
31
+ S(!1), I(!0);
31
32
  };
32
- }, [o, r, s]), t && n)
33
+ }, [t, o, s]), c && g)
34
+ return g;
35
+ if (j && n)
33
36
  return n;
34
- if (y && l)
35
- return l;
36
- const i = (e, x, I) => {
37
- let c = e;
38
- return x && (c += `, ${x} 2x`), I && (c += `, ${I} 3x`), c;
37
+ const m = (r, x, _) => {
38
+ let a = r;
39
+ return x && (a += `, ${x} 2x`), _ && (a += `, ${_} 3x`), a;
39
40
  };
40
- return /* @__PURE__ */ M(
41
+ return /* @__PURE__ */ Q(
41
42
  "picture",
42
43
  {
43
- className: S(a.picture, E, {
44
- [a.loading]: t
44
+ "data-testid-react": e == null ? void 0 : e.picture,
45
+ className: b(i.picture, y, {
46
+ [i.loading]: c
45
47
  }),
46
48
  children: [
47
- s && /* @__PURE__ */ m(
49
+ s && /* @__PURE__ */ l(
48
50
  "source",
49
51
  {
50
- srcSet: i(s, u, p),
51
- media: $.XS1
52
+ "data-testid-react": e == null ? void 0 : e.mobileSource,
53
+ srcSet: m(s, f, p),
54
+ media: z.XS1
52
55
  }
53
56
  ),
54
- r && /* @__PURE__ */ m(
57
+ o && /* @__PURE__ */ l(
55
58
  "source",
56
59
  {
57
- srcSet: i(r, g, d),
58
- media: w.S
60
+ "data-testid-react": e == null ? void 0 : e.desktopSource,
61
+ srcSet: m(o, u, d),
62
+ media: A.S
59
63
  }
60
64
  ),
61
- /* @__PURE__ */ m(
65
+ /* @__PURE__ */ l(
62
66
  "img",
63
67
  {
64
- ...N,
65
- className: S(a.image, b, {
66
- [a.loading]: t
68
+ "data-testid-react": e == null ? void 0 : e.img,
69
+ ...L,
70
+ className: b(i.image, E, {
71
+ [i.loading]: c
67
72
  }),
68
73
  loading: "lazy",
69
- srcSet: i(
70
- o ?? "",
71
- g ?? u,
74
+ srcSet: m(
75
+ t ?? "",
76
+ u ?? f,
72
77
  d ?? p
73
78
  ),
74
- alt: k
79
+ alt: N
75
80
  }
76
81
  )
77
82
  ]
@@ -79,5 +84,5 @@ import '../../assets/Image.css';const z = "_picture_1hx49_2", A = "_image_1hx49_
79
84
  );
80
85
  });
81
86
  export {
82
- q as AppImage
87
+ B as AppImage
83
88
  };
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { EInputBorderRadius } from './constants';
3
3
  import { TInputProps, TAddon, TIconAddon, TSize, TVariant, TStatus } from './types';
4
+ import { TDataTestIdReactMap } from '../../types';
4
5
 
5
6
  export type TAdditionalProps = {
6
7
  /**
@@ -71,6 +72,10 @@ export type TAdditionalProps = {
71
72
  * Управление скруглениями углов
72
73
  */
73
74
  borderRadius?: EInputBorderRadius | `${EInputBorderRadius}`;
75
+ /**
76
+ * Объект, для передачи в компонент и его элементы data-testid-react, для автоматизированного тестирования
77
+ */
78
+ dataTestIdReactMap?: TDataTestIdReactMap<'wrapper' | 'label' | 'requiredMark' | 'leftSlot' | 'input' | 'rightSlot' | 'clearButton'>;
74
79
  };
75
80
  export type TProps = TInputProps & TAdditionalProps;
76
81
  export declare const Input: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<TInputProps & TAdditionalProps & import('react').RefAttributes<HTMLInputElement>>>;
@@ -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-DPnH8pKc.js";
5
+ import { I as f } from "../../Input-CqNPT8os.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-DPnH8pKc.js";
1
+ import { I as n } from "../../Input-CqNPT8os.js";
2
2
  import { EInputSize as u, EInputStatus as I, EInputVariant as a } from "./constants.js";
3
3
  export {
4
4
  u as EInputSize,
@@ -1,7 +1,12 @@
1
+ import { TDataTestIdReactMap } from '../../types';
1
2
  import { TInputProps } from '../Input';
2
3
 
3
4
  export interface TProps extends TInputProps {
4
5
  /** Показывать пароль при удержании кнопки */
5
6
  showOnHold?: boolean;
7
+ /**
8
+ * Объект, для передачи в компонент и его элементы data-testid-react, для автоматизированного тестирования
9
+ */
10
+ dataTestIdReactMap?: TDataTestIdReactMap<'wrapper' | 'input' | 'eyeButton' | 'eyeIcon'>;
6
11
  }
7
12
  export declare const InputPassword: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<TProps & import('react').RefAttributes<HTMLInputElement>>>;
@@ -1,78 +1,89 @@
1
- import { jsxs as d, jsx as n } from "react/jsx-runtime";
2
- import { c as w } from "../../index-DIxK0V-G.js";
3
- import { memo as x, forwardRef as h, useState as N, useCallback as a } from "react";
4
- import { Icon as C } from "../../icons/Icon.js";
5
- import { Button as M } from "../Button/Button.js";
6
- import { I as T } from "../../Input-DPnH8pKc.js";
7
- import '../../assets/InputPassword.css';const y = "_input_7b9x2_2", I = "_wrapper_7b9x2_6", v = "_button_7b9x2_17", P = "_icon_7b9x2_33", S = "_show_7b9x2_38", s = {
8
- input: y,
9
- wrapper: I,
1
+ import { jsxs as h, jsx as u } from "react/jsx-runtime";
2
+ import { c as N } from "../../index-DIxK0V-G.js";
3
+ import { memo as a, forwardRef as y, useState as C, useCallback as s } from "react";
4
+ import { Icon as v } from "../../icons/Icon.js";
5
+ import { Button as P } from "../Button/Button.js";
6
+ import { I as S } from "../../Input-CqNPT8os.js";
7
+ import '../../assets/InputPassword.css';const k = "_input_7b9x2_2", E = "_wrapper_7b9x2_6", j = "_button_7b9x2_17", B = "_icon_7b9x2_33", D = "_show_7b9x2_38", e = {
8
+ input: k,
9
+ wrapper: E,
10
10
  "input-wrapper": "_input-wrapper_7b9x2_13",
11
11
  "button-wrapper": "_button-wrapper_7b9x2_17",
12
- button: v,
13
- icon: P,
14
- show: S
15
- }, k = x(
16
- h(
17
- ({ size: o, showOnHold: t = !1, ...p }, c) => {
18
- const [r, e] = N(!1), i = a(() => {
19
- t || e(!r);
20
- }, [t, r]), u = a(() => {
21
- t && e(!0);
22
- }, [t]), m = a(() => {
23
- t && e(!1);
24
- }, [t]), f = a(() => {
25
- t && e(!1);
26
- }, [t]), _ = a(() => {
27
- t && e(!0);
28
- }, [t]), l = a(() => {
29
- t && e(!1);
30
- }, [t]), b = a(() => {
31
- t && e(!1);
32
- }, [t]);
33
- return /* @__PURE__ */ d("div", { className: s.wrapper, "data-testid": "input-password-wrapper", children: [
34
- /* @__PURE__ */ n(
35
- T,
36
- {
37
- ref: c,
38
- className: s.input,
39
- wrapperClassName: s["input-wrapper"],
40
- size: o,
41
- type: r ? "text" : "password",
42
- "data-testid": "password-input",
43
- ...p
44
- }
45
- ),
46
- /* @__PURE__ */ n("div", { className: s["button-wrapper"], children: /* @__PURE__ */ n(
47
- M,
48
- {
49
- clear: !0,
50
- type: "button",
51
- className: s.button,
52
- onClick: i,
53
- onMouseDown: u,
54
- onMouseUp: m,
55
- onMouseLeave: f,
56
- onTouchStart: _,
57
- onTouchEnd: l,
58
- onTouchCancel: b,
59
- "data-testid": "eye-icon",
60
- children: /* @__PURE__ */ n(
61
- C,
12
+ button: j,
13
+ icon: B,
14
+ show: D
15
+ }, L = a(
16
+ y(
17
+ ({ size: p, showOnHold: r = !1, dataTestIdReactMap: n, ...t }, c) => {
18
+ const [i, o] = C(!1), m = s(() => {
19
+ r || o(!i);
20
+ }, [r, i]), f = s(() => {
21
+ r && o(!0);
22
+ }, [r]), _ = s(() => {
23
+ r && o(!1);
24
+ }, [r]), l = s(() => {
25
+ r && o(!1);
26
+ }, [r]), b = s(() => {
27
+ r && o(!0);
28
+ }, [r]), w = s(() => {
29
+ r && o(!1);
30
+ }, [r]), x = s(() => {
31
+ r && o(!1);
32
+ }, [r]);
33
+ return /* @__PURE__ */ h(
34
+ "div",
35
+ {
36
+ "data-testid-react": n == null ? void 0 : n.wrapper,
37
+ className: e.wrapper,
38
+ "data-testid": "input-password-wrapper",
39
+ children: [
40
+ /* @__PURE__ */ u(
41
+ S,
62
42
  {
63
- className: w(s.icon, {
64
- [s.show]: r
65
- }),
66
- iconName: "Eye24px"
43
+ ref: c,
44
+ className: e.input,
45
+ wrapperClassName: e["input-wrapper"],
46
+ size: p,
47
+ type: i ? "text" : "password",
48
+ "data-testid": "password-input",
49
+ dataTestIdReactMap: { input: n == null ? void 0 : n.input },
50
+ ...t
67
51
  }
68
- )
69
- }
70
- ) })
71
- ] });
52
+ ),
53
+ /* @__PURE__ */ u("div", { className: e["button-wrapper"], children: /* @__PURE__ */ u(
54
+ P,
55
+ {
56
+ dataTestIdReactMap: { button: n == null ? void 0 : n.eyeButton },
57
+ clear: !0,
58
+ type: "button",
59
+ className: e.button,
60
+ onClick: m,
61
+ onMouseDown: f,
62
+ onMouseUp: _,
63
+ onMouseLeave: l,
64
+ onTouchStart: b,
65
+ onTouchEnd: w,
66
+ onTouchCancel: x,
67
+ "data-testid": "eye-icon",
68
+ children: /* @__PURE__ */ u(
69
+ v,
70
+ {
71
+ "data-testid-react": n == null ? void 0 : n.eyeIcon,
72
+ className: N(e.icon, {
73
+ [e.show]: i
74
+ }),
75
+ iconName: "Eye24px"
76
+ }
77
+ )
78
+ }
79
+ ) })
80
+ ]
81
+ }
82
+ );
72
83
  }
73
84
  )
74
85
  );
75
- k.displayName = "InputPassword";
86
+ L.displayName = "InputPassword";
76
87
  export {
77
- k as InputPassword
88
+ L as InputPassword
78
89
  };
@@ -1,4 +1,8 @@
1
+ import { TDataTestIdReactMap } from '../../types';
2
+
1
3
  export type ImperativeHandle = Partial<HTMLInputElement> & {
2
4
  getPhoneNumber: () => string;
3
5
  };
4
- export declare const InputPhoneNumber: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<import('../Input/types').TInputProps & import('../Input').TAdditionalProps & import('react').RefAttributes<HTMLInputElement>>>;
6
+ export declare const InputPhoneNumber: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<import('../Input/types').TInputProps & import('../Input').TAdditionalProps & {
7
+ dataTestIdReactMap?: TDataTestIdReactMap<"input">;
8
+ } & import('react').RefAttributes<HTMLInputElement>>>;
@@ -1,35 +1,42 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { memo as I, forwardRef as i, useState as c, useCallback as f, useImperativeHandle as P } from "react";
3
- import { getMaskedInputPhoneValue as m, getUnmaskedInputValue as o } from "./utils.js";
4
- import { I as b } from "../../Input-DPnH8pKc.js";
5
- const h = I(
6
- i(
7
- ({ value: s = "", onChange: e, ...p }, a) => {
8
- const [r, l] = c(
9
- () => m(s)
10
- ), n = f(
11
- (t) => {
12
- const u = m(t.target.value);
13
- l(u), e == null || e({
14
- ...t,
15
- target: {
16
- ...t.target,
17
- value: o(u)
18
- }
19
- });
20
- },
21
- [e]
22
- );
23
- return P(
24
- a,
25
- () => ({
26
- getPhoneNumber: () => o(r)
27
- })
28
- ), /* @__PURE__ */ d(b, { ref: a, value: r, onChange: n, ...p });
29
- }
30
- )
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { memo as P, forwardRef as b, useState as h, useCallback as k, useImperativeHandle as I } from "react";
3
+ import { getMaskedInputPhoneValue as n, getUnmaskedInputValue as p } from "./utils.js";
4
+ import { I as N } from "../../Input-CqNPT8os.js";
5
+ const g = P(
6
+ b(({ value: l = "", onChange: e, dataTestIdReactMap: u, ...s }, t) => {
7
+ const [m, i] = h(
8
+ () => n(l)
9
+ ), a = k(
10
+ (r) => {
11
+ const o = n(r.target.value);
12
+ i(o), e == null || e({
13
+ ...r,
14
+ target: {
15
+ ...r.target,
16
+ value: p(o)
17
+ }
18
+ });
19
+ },
20
+ [e]
21
+ );
22
+ return I(
23
+ t,
24
+ () => ({
25
+ getPhoneNumber: () => p(m)
26
+ })
27
+ ), /* @__PURE__ */ f(
28
+ N,
29
+ {
30
+ ref: t,
31
+ value: m,
32
+ onChange: a,
33
+ dataTestIdReactMap: { input: u == null ? void 0 : u.input },
34
+ ...s
35
+ }
36
+ );
37
+ })
31
38
  );
32
- h.displayName = "InputPhoneNumber";
39
+ g.displayName = "InputPhoneNumber";
33
40
  export {
34
- h as InputPhoneNumber
41
+ g as InputPhoneNumber
35
42
  };
@@ -1,7 +1,12 @@
1
1
  import { ELoaderSize } from './constants';
2
+ import { TDataTestIdReactMap } from '../../types';
2
3
 
3
4
  type TProps = {
4
5
  size?: ELoaderSize | `${ELoaderSize}`;
6
+ /**
7
+ * Объект, для передачи в компонент и его элементы data-testid-react, для автоматизированного тестирования
8
+ */
9
+ dataTestIdReactMap?: TDataTestIdReactMap<'loader' | 'circle'>;
5
10
  };
6
- export declare const Loader: ({ size }: TProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const Loader: ({ size, dataTestIdReactMap }: TProps) => import("react/jsx-runtime").JSX.Element;
7
12
  export {};
@@ -1,16 +1,39 @@
1
- import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
- import { c as r } from "../../index-DIxK0V-G.js";
3
- import { ELoaderSize as o } from "./constants.js";
4
- import '../../assets/Loader.css';const t = "_loader_1qwwg_2", l = "_circle_1qwwg_9", m = "_animate_1qwwg_1", i = "_s_1qwwg_33", _ = "_m_1qwwg_37", s = {
5
- loader: t,
6
- circle: l,
7
- animate: m,
8
- s: i,
9
- m: _
10
- }, p = ({ size: c = o.M }) => /* @__PURE__ */ e("div", { className: r(s.loader, s[c]), "data-testid": "loader", children: [
11
- /* @__PURE__ */ a("span", { className: s.circle }),
12
- /* @__PURE__ */ a("span", { className: s.circle })
13
- ] });
1
+ import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
+ import { c as m } from "../../index-DIxK0V-G.js";
3
+ import { ELoaderSize as s } from "./constants.js";
4
+ import '../../assets/Loader.css';const _ = "_loader_1qwwg_2", n = "_circle_1qwwg_9", w = "_animate_1qwwg_1", e = "_s_1qwwg_33", g = "_m_1qwwg_37", o = {
5
+ loader: _,
6
+ circle: n,
7
+ animate: w,
8
+ s: e,
9
+ m: g
10
+ }, x = ({
11
+ size: l = s.M,
12
+ dataTestIdReactMap: r
13
+ }) => /* @__PURE__ */ c(
14
+ "div",
15
+ {
16
+ "data-testid-react": r == null ? void 0 : r.loader,
17
+ className: m(o.loader, o[l]),
18
+ "data-testid": "loader",
19
+ children: [
20
+ /* @__PURE__ */ i(
21
+ "span",
22
+ {
23
+ "data-testid-react": r == null ? void 0 : r.circle,
24
+ className: o.circle
25
+ }
26
+ ),
27
+ /* @__PURE__ */ i(
28
+ "span",
29
+ {
30
+ "data-testid-react": r == null ? void 0 : r.circle,
31
+ className: o.circle
32
+ }
33
+ )
34
+ ]
35
+ }
36
+ );
14
37
  export {
15
- p as Loader
38
+ x as Loader
16
39
  };
@@ -14,7 +14,7 @@ import { useVirtualization as gt } from "./hooks/useVirtualization.js";
14
14
  import { normalizeDataForNestedSelection as It, flattenOptions as St, updateInputValueAfterChange as ue, getInitialInputValue as Nt, mapSizeToInputSize as me, getDropdownArrowIcon as zt, processNestedSelectionChange as pe, flattenSelectedItems as wt, dispatchMultiselectOpen as A, highlightReactNode as Ct } from "./utils.js";
15
15
  import { Icon as vt } from "../../icons/Icon.js";
16
16
  import { Button as yt } from "../Button/Button.js";
17
- import { I as fe } from "../../Input-DPnH8pKc.js";
17
+ import { I as fe } from "../../Input-CqNPT8os.js";
18
18
  import { EInputVariant as bt } from "../Input/constants.js";
19
19
  import { Loader as he } from "../Loader/Loader.js";
20
20
  import { H as Ot, U as ge, G as Ie } from "../../combobox-fIVOzEhl.js";
@@ -1,6 +1,6 @@
1
1
  import { createElement as g, Fragment as S, isValidElement as w, cloneElement as E } from "react";
2
2
  import { EMultiSelectSearchSize as a, MOBILE_MENU_HEIGHT as M, DESKTOP_MENU_HEIGHT as T } from "./constants.js";
3
- import "../../Input-DPnH8pKc.js";
3
+ import "../../Input-CqNPT8os.js";
4
4
  import { EInputSize as f } from "../Input/constants.js";
5
5
  const j = (n) => {
6
6
  switch (n) {
@@ -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 v, DEFAULT_VALUE_LENGTH as y } from "./constants.js";
5
5
  import { useOTPInput as z } from "./hooks.js";
6
- import { I as A } from "../../Input-DPnH8pKc.js";
6
+ import { I as A } from "../../Input-CqNPT8os.js";
7
7
  import '../../assets/OtpInput.css';const C = "_otp_1ncuz_2", F = "_input_1ncuz_13", L = "_separator_1ncuz_27", n = {
8
8
  otp: C,
9
9
  "input-wrapper": "_input-wrapper_1ncuz_13",
@@ -1,5 +1,6 @@
1
1
  import { RadioGroupProps } from '@headlessui/react';
2
2
  import { ReactNode } from 'react';
3
+ import { TDataTestIdReactMap } from '../../types';
3
4
 
4
5
  export interface TRadioOption {
5
6
  value: string;
@@ -36,6 +37,10 @@ export type TRadioGroupProps = Omit<RadioGroupProps, 'value'> & {
36
37
  * Дополнительный класснейм для обертки контента радиогруппы.
37
38
  */
38
39
  classNameContentWrapper?: string;
40
+ /**
41
+ * Объект, для передачи в компонент и его элементы data-testid-react, для автоматизированного тестирования
42
+ */
43
+ dataTestIdReactMap?: TDataTestIdReactMap<'group' | 'label' | 'contentWrapper' | 'radio' | 'frame'>;
39
44
  };
40
45
  /**
41
46
  * Компонент RadioGroup для выбора одной опции из нескольких.
@@ -68,4 +73,8 @@ export declare const RadioGroup: import('react').ForwardRefExoticComponent<Omit<
68
73
  * Дополнительный класснейм для обертки контента радиогруппы.
69
74
  */
70
75
  classNameContentWrapper?: string;
76
+ /**
77
+ * Объект, для передачи в компонент и его элементы data-testid-react, для автоматизированного тестирования
78
+ */
79
+ dataTestIdReactMap?: TDataTestIdReactMap<"group" | "label" | "contentWrapper" | "radio" | "frame">;
71
80
  } & import('react').RefAttributes<HTMLElement>>;