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.
- package/dist/Input-CqNPT8os.js +243 -0
- package/dist/components/Accordion/Accordion.d.ts +5 -0
- package/dist/components/Accordion/Accordion.js +242 -220
- package/dist/components/Accordion/AccordionItem/AccordionItem.d.ts +6 -1
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +19 -8
- package/dist/components/Button/Button.d.ts +37 -0
- package/dist/components/Button/Button.js +77 -61
- package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +9 -0
- package/dist/components/CheckboxMimir/CheckboxMimir.js +90 -59
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/Drawer/Drawer.d.ts +5 -0
- package/dist/components/Drawer/Drawer.js +141 -135
- package/dist/components/GosZnak/GosZnak.d.ts +1 -1
- package/dist/components/GosZnak/GosZnak.js +88 -67
- package/dist/components/GosZnak/types.d.ts +5 -0
- package/dist/components/Image/Image.d.ts +5 -0
- package/dist/components/Image/Image.js +55 -50
- package/dist/components/Input/Input.d.ts +5 -0
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputPassword/InputPassword.d.ts +5 -0
- package/dist/components/InputPassword/InputPassword.js +80 -69
- package/dist/components/InputPhoneNumber/InputPhoneNumber.d.ts +5 -1
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +39 -32
- package/dist/components/Loader/Loader.d.ts +6 -1
- package/dist/components/Loader/Loader.js +37 -14
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +1 -1
- package/dist/components/MultiSelectSearch/utils.js +1 -1
- package/dist/components/OtpInput/OtpInput.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +9 -0
- package/dist/components/RadioGroup/RadioGroup.js +142 -129
- package/dist/components/SelectSearch/SelectSearch.d.ts +1 -0
- package/dist/components/SelectSearch/SelectSearch.js +299 -277
- package/dist/components/SelectSearch/types.d.ts +5 -0
- package/dist/components/SelectSearch/utils.js +1 -1
- package/dist/components/TextArea/TextArea.d.ts +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextAreaV2/TextArea.js +155 -142
- package/dist/components/TextAreaV2/types.d.ts +5 -0
- package/dist/components/UniversalUploader/UniversalUploader.d.ts +1 -0
- package/dist/components/UniversalUploader/UniversalUploader.js +92 -88
- package/dist/components/UniversalUploader/types.d.ts +5 -0
- package/dist/components/Uploader/Uploader.d.ts +7 -2
- package/dist/components/Uploader/Uploader.js +121 -90
- package/dist/components/UploaderFiles/UploaderFiles.js +88 -79
- package/dist/components/UploaderFiles/types.d.ts +5 -0
- package/dist/components/UploaderPhotos/UploaderPhotos.d.ts +5 -0
- package/dist/components/UploaderPhotos/UploaderPhotos.js +60 -57
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/dataTestId.d.ts +1 -0
- package/dist/types/dataTestId.js +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/Input-DPnH8pKc.js +0 -227
|
@@ -1,77 +1,82 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { memo as
|
|
4
|
-
import { EMediaQuery as
|
|
5
|
-
import '../../assets/Image.css';const
|
|
6
|
-
picture:
|
|
7
|
-
image:
|
|
8
|
-
loading:
|
|
9
|
-
},
|
|
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:
|
|
12
|
-
src:
|
|
13
|
-
alt:
|
|
14
|
-
desktopImage:
|
|
11
|
+
className: E,
|
|
12
|
+
src: t,
|
|
13
|
+
alt: N = "image",
|
|
14
|
+
desktopImage: o,
|
|
15
15
|
mobileImage: s,
|
|
16
|
-
pictureClassName:
|
|
17
|
-
errorFallback:
|
|
18
|
-
fallback:
|
|
19
|
-
desktopImage2x:
|
|
20
|
-
mobileImage2x:
|
|
16
|
+
pictureClassName: y,
|
|
17
|
+
errorFallback: n,
|
|
18
|
+
fallback: g,
|
|
19
|
+
desktopImage2x: u,
|
|
20
|
+
mobileImage2x: f,
|
|
21
21
|
desktopImage3x: d,
|
|
22
22
|
mobileImage3x: p,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
}, [
|
|
33
|
+
}, [t, o, s]), c && g)
|
|
34
|
+
return g;
|
|
35
|
+
if (j && n)
|
|
33
36
|
return n;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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__ */
|
|
41
|
+
return /* @__PURE__ */ Q(
|
|
41
42
|
"picture",
|
|
42
43
|
{
|
|
43
|
-
|
|
44
|
-
|
|
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__ */
|
|
49
|
+
s && /* @__PURE__ */ l(
|
|
48
50
|
"source",
|
|
49
51
|
{
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
57
|
+
o && /* @__PURE__ */ l(
|
|
55
58
|
"source",
|
|
56
59
|
{
|
|
57
|
-
|
|
58
|
-
|
|
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__ */
|
|
65
|
+
/* @__PURE__ */ l(
|
|
62
66
|
"img",
|
|
63
67
|
{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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:
|
|
70
|
-
|
|
71
|
-
|
|
74
|
+
srcSet: m(
|
|
75
|
+
t ?? "",
|
|
76
|
+
u ?? f,
|
|
72
77
|
d ?? p
|
|
73
78
|
),
|
|
74
|
-
alt:
|
|
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
|
-
|
|
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-
|
|
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,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
|
|
2
|
-
import { c as
|
|
3
|
-
import { memo as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { I as
|
|
7
|
-
import '../../assets/InputPassword.css';const
|
|
8
|
-
input:
|
|
9
|
-
wrapper:
|
|
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:
|
|
13
|
-
icon:
|
|
14
|
-
show:
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
({ size:
|
|
18
|
-
const [
|
|
19
|
-
|
|
20
|
-
}, [
|
|
21
|
-
|
|
22
|
-
}, [
|
|
23
|
-
|
|
24
|
-
}, [
|
|
25
|
-
|
|
26
|
-
}, [
|
|
27
|
-
|
|
28
|
-
}, [
|
|
29
|
-
|
|
30
|
-
}, [
|
|
31
|
-
|
|
32
|
-
}, [
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
86
|
+
L.displayName = "InputPassword";
|
|
76
87
|
export {
|
|
77
|
-
|
|
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 &
|
|
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
|
|
2
|
-
import { memo as
|
|
3
|
-
import { getMaskedInputPhoneValue as
|
|
4
|
-
import { I as
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
)
|
|
11
|
-
(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
target
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
() => (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
39
|
+
g.displayName = "InputPhoneNumber";
|
|
33
40
|
export {
|
|
34
|
-
|
|
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
|
|
2
|
-
import { c as
|
|
3
|
-
import { ELoaderSize as
|
|
4
|
-
import '../../assets/Loader.css';const
|
|
5
|
-
loader:
|
|
6
|
-
circle:
|
|
7
|
-
animate:
|
|
8
|
-
s:
|
|
9
|
-
m:
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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>>;
|