mimir-ui-kit 1.61.1 → 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.
- 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/DropdownSelect/DropdownSelect.js +25 -23
- package/dist/components/DropdownSelect/types.d.ts +4 -0
- 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/hooks/useRenderVirtualizedList.d.ts +2 -1
- package/dist/components/MultiSelectSearch/hooks/useRenderVirtualizedList.js +50 -48
- 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 +2 -0
- package/dist/components/SelectSearch/SelectSearch.js +299 -275
- package/dist/components/SelectSearch/types.d.ts +9 -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 +89 -86
- package/dist/components/UniversalUploader/types.d.ts +5 -0
- package/dist/components/Uploader/Uploader.d.ts +5 -0
- package/dist/components/Uploader/Uploader.js +116 -87
- 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,42 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { forwardRef as se, useState as
|
|
4
|
-
import { EDrawerPosition as
|
|
1
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as r } from "../../index-DIxK0V-G.js";
|
|
3
|
+
import { forwardRef as se, useState as C, useRef as x, useEffect as D, useCallback as w } from "react";
|
|
4
|
+
import { EDrawerPosition as A } from "./constants.js";
|
|
5
5
|
import { useContainer as ne } from "./hooks.js";
|
|
6
|
-
import { ScrollWrapper as
|
|
7
|
-
import { useMediaQuery as
|
|
8
|
-
import { EMediaQuery as
|
|
9
|
-
import { useLockBodyScroll as
|
|
10
|
-
import { useResizeObserver as
|
|
11
|
-
import { Button as
|
|
12
|
-
import { EButtonVariantDefault as de, EButtonSize as
|
|
13
|
-
import { Loader as
|
|
14
|
-
import { Portal as
|
|
15
|
-
import { EScrollBarVariant as
|
|
16
|
-
import '../../assets/Drawer.css';const
|
|
17
|
-
drawerContainer:
|
|
18
|
-
drawer:
|
|
19
|
-
content:
|
|
20
|
-
header:
|
|
6
|
+
import { ScrollWrapper as ie } from "./ScrollWrapper/index.js";
|
|
7
|
+
import { useMediaQuery as ce } from "../../hooks/useMediaQuery/useMediaQuery.js";
|
|
8
|
+
import { EMediaQuery as le } from "../../hooks/useMediaQuery/constants.js";
|
|
9
|
+
import { useLockBodyScroll as ae } from "../../hooks/useLockBodyScroll/useLockBodyScroll.js";
|
|
10
|
+
import { useResizeObserver as ue } from "../../hooks/useResizeObserver/useResizeObserver.js";
|
|
11
|
+
import { Button as P } from "../Button/Button.js";
|
|
12
|
+
import { EButtonVariantDefault as de, EButtonSize as u } from "../Button/constants.js";
|
|
13
|
+
import { Loader as me } from "../Loader/Loader.js";
|
|
14
|
+
import { Portal as fe } from "../Portal/Portal.js";
|
|
15
|
+
import { EScrollBarVariant as _e, EScrollBarSize as pe } from "../ScrollBar/constants.js";
|
|
16
|
+
import '../../assets/Drawer.css';const he = "_drawerContainer_zs4pc_2", ze = "_drawer_zs4pc_2", Ce = "_content_zs4pc_31", we = "_header_zs4pc_46", ye = "_title_zs4pc_60", ge = "_space_zs4pc_74", ve = "_inner_zs4pc_85", be = "_button_zs4pc_101", Ne = "_footer_zs4pc_106", ke = "_left_zs4pc_122", Se = "_right_zs4pc_126", Be = "_full_zs4pc_130", Ee = "_bottom_zs4pc_140", Oe = "_opened_zs4pc_157", Le = "_overlay_zs4pc_213", He = "_unmount_zs4pc_231", e = {
|
|
17
|
+
drawerContainer: he,
|
|
18
|
+
drawer: ze,
|
|
19
|
+
content: Ce,
|
|
20
|
+
header: we,
|
|
21
21
|
"sticky-header": "_sticky-header_zs4pc_54",
|
|
22
|
-
title:
|
|
23
|
-
space:
|
|
24
|
-
inner:
|
|
22
|
+
title: ye,
|
|
23
|
+
space: ge,
|
|
24
|
+
inner: ve,
|
|
25
25
|
"is-loading": "_is-loading_zs4pc_90",
|
|
26
|
-
button:
|
|
27
|
-
footer:
|
|
26
|
+
button: be,
|
|
27
|
+
footer: Ne,
|
|
28
28
|
"has-scroll": "_has-scroll_zs4pc_115",
|
|
29
29
|
"footer-button": "_footer-button_zs4pc_118",
|
|
30
|
-
left:
|
|
31
|
-
right:
|
|
32
|
-
full:
|
|
33
|
-
bottom:
|
|
30
|
+
left: ke,
|
|
31
|
+
right: Se,
|
|
32
|
+
full: Be,
|
|
33
|
+
bottom: Ee,
|
|
34
34
|
"full-bottom-height": "_full-bottom-height_zs4pc_151",
|
|
35
|
-
opened:
|
|
35
|
+
opened: Oe,
|
|
36
36
|
"is-closing": "_is-closing_zs4pc_176",
|
|
37
|
-
overlay:
|
|
38
|
-
unmount:
|
|
39
|
-
},
|
|
37
|
+
overlay: Le,
|
|
38
|
+
unmount: He
|
|
39
|
+
}, xe = 300, De = (d) => d ? {
|
|
40
40
|
drawer: {
|
|
41
41
|
position: "absolute",
|
|
42
42
|
zIndex: 100
|
|
@@ -45,116 +45,119 @@ import '../../assets/Drawer.css';const pe = "_drawerContainer_zs4pc_2", he = "_d
|
|
|
45
45
|
position: "absolute",
|
|
46
46
|
zIndex: 90
|
|
47
47
|
}
|
|
48
|
-
} : {},
|
|
49
|
-
(d,
|
|
48
|
+
} : {}, Ue = se(
|
|
49
|
+
(d, X) => {
|
|
50
50
|
const {
|
|
51
|
-
as:
|
|
51
|
+
as: j = "div",
|
|
52
52
|
isOpen: n,
|
|
53
|
-
onClose:
|
|
54
|
-
title:
|
|
55
|
-
className:
|
|
56
|
-
unmount:
|
|
57
|
-
isLoading:
|
|
58
|
-
stickyHeader:
|
|
59
|
-
fullBottomHeight:
|
|
60
|
-
position:
|
|
61
|
-
paddingRight:
|
|
62
|
-
footer:
|
|
63
|
-
children:
|
|
64
|
-
classNameTitle:
|
|
65
|
-
classNameHeader:
|
|
66
|
-
classNameInner:
|
|
67
|
-
classNameDrawerContainer:
|
|
68
|
-
classNameContent:
|
|
69
|
-
classNameFooter:
|
|
70
|
-
closeOnClickOutside:
|
|
71
|
-
showCloseButton:
|
|
72
|
-
getContainer:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
53
|
+
onClose: m,
|
|
54
|
+
title: G,
|
|
55
|
+
className: Q,
|
|
56
|
+
unmount: y = !0,
|
|
57
|
+
isLoading: i = !1,
|
|
58
|
+
stickyHeader: V,
|
|
59
|
+
fullBottomHeight: W = !1,
|
|
60
|
+
position: f = A.RIGHT,
|
|
61
|
+
paddingRight: F = 8,
|
|
62
|
+
footer: _,
|
|
63
|
+
children: I,
|
|
64
|
+
classNameTitle: K,
|
|
65
|
+
classNameHeader: Y,
|
|
66
|
+
classNameInner: q,
|
|
67
|
+
classNameDrawerContainer: J,
|
|
68
|
+
classNameContent: M,
|
|
69
|
+
classNameFooter: R,
|
|
70
|
+
closeOnClickOutside: g = !0,
|
|
71
|
+
showCloseButton: v = !0,
|
|
72
|
+
getContainer: p,
|
|
73
|
+
dataTestIdReactMap: o,
|
|
74
|
+
...U
|
|
75
|
+
} = d, [b, N] = C(!1), [Z, k] = C(!1), S = x(), h = ce(le.XS1), { ref: $ } = ue({
|
|
76
|
+
enabled: f === A.BOTTOM
|
|
77
|
+
}), B = ne(p), c = x(null), [T, ee] = C(!1);
|
|
78
|
+
D(() => {
|
|
79
|
+
const l = () => {
|
|
80
|
+
if (c.current) {
|
|
81
|
+
const { scrollHeight: te, clientHeight: re } = c.current;
|
|
82
|
+
ee(te > re);
|
|
82
83
|
}
|
|
83
84
|
};
|
|
84
|
-
|
|
85
|
-
const
|
|
86
|
-
return
|
|
87
|
-
|
|
85
|
+
l();
|
|
86
|
+
const H = new ResizeObserver(l);
|
|
87
|
+
return c.current && H.observe(c.current), () => {
|
|
88
|
+
H.disconnect();
|
|
88
89
|
};
|
|
89
|
-
}, [n,
|
|
90
|
-
on: n && !
|
|
91
|
-
paddingRight:
|
|
90
|
+
}, [n, i]), ae({
|
|
91
|
+
on: n && !b,
|
|
92
|
+
paddingRight: F
|
|
92
93
|
});
|
|
93
|
-
const s =
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
},
|
|
97
|
-
}, [
|
|
98
|
-
|
|
99
|
-
}, [
|
|
100
|
-
(
|
|
101
|
-
|
|
94
|
+
const s = w(() => {
|
|
95
|
+
m && (N(!0), S.current = setTimeout(() => {
|
|
96
|
+
m(), N(!1);
|
|
97
|
+
}, xe));
|
|
98
|
+
}, [m]), oe = w(() => {
|
|
99
|
+
g && s();
|
|
100
|
+
}, [g, s]), z = w(
|
|
101
|
+
(l) => {
|
|
102
|
+
l.key === "Escape" && s();
|
|
102
103
|
},
|
|
103
104
|
[s]
|
|
104
105
|
);
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}), [n,
|
|
108
|
-
const
|
|
109
|
-
[e.opened]:
|
|
110
|
-
[e["is-closing"]]:
|
|
111
|
-
[e["full-bottom-height"]]:
|
|
112
|
-
[e["is-loading"]]:
|
|
106
|
+
D(() => (n && (k(!0), window.addEventListener("keydown", z)), () => {
|
|
107
|
+
k(!1), clearTimeout(S.current), window.removeEventListener("keydown", z);
|
|
108
|
+
}), [n, z]);
|
|
109
|
+
const E = {
|
|
110
|
+
[e.opened]: Z,
|
|
111
|
+
[e["is-closing"]]: b,
|
|
112
|
+
[e["full-bottom-height"]]: W,
|
|
113
|
+
[e["is-loading"]]: i
|
|
113
114
|
};
|
|
114
|
-
if (!n &&
|
|
115
|
+
if (!n && y)
|
|
115
116
|
return null;
|
|
116
|
-
const
|
|
117
|
+
const O = De(p !== void 0 && p !== !1), L = /* @__PURE__ */ a(
|
|
117
118
|
"div",
|
|
118
119
|
{
|
|
119
|
-
|
|
120
|
+
"data-testid-react": o == null ? void 0 : o.drawer,
|
|
121
|
+
className: r(e.drawerContainer, J),
|
|
120
122
|
children: [
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
|
|
123
|
+
/* @__PURE__ */ a(
|
|
124
|
+
j,
|
|
123
125
|
{
|
|
124
|
-
ref:
|
|
126
|
+
ref: X,
|
|
125
127
|
"aria-hidden": !n,
|
|
126
128
|
role: "dialog",
|
|
127
|
-
style:
|
|
128
|
-
className:
|
|
129
|
-
...
|
|
129
|
+
style: O.drawer,
|
|
130
|
+
className: r(e.drawer, e[f], E, Q),
|
|
131
|
+
...U,
|
|
130
132
|
children: [
|
|
131
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ a(
|
|
132
134
|
"section",
|
|
133
135
|
{
|
|
134
|
-
ref:
|
|
135
|
-
className:
|
|
136
|
+
ref: $,
|
|
137
|
+
className: r(
|
|
136
138
|
e.content,
|
|
137
|
-
|
|
138
|
-
e[
|
|
139
|
+
M,
|
|
140
|
+
e[f],
|
|
139
141
|
{
|
|
140
|
-
[e["is-loading"]]: !!
|
|
142
|
+
[e["is-loading"]]: !!i
|
|
141
143
|
}
|
|
142
144
|
),
|
|
143
145
|
children: [
|
|
144
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ a(
|
|
145
147
|
"header",
|
|
146
148
|
{
|
|
147
|
-
className:
|
|
148
|
-
[e["sticky-header"]]:
|
|
149
|
+
className: r(e.header, Y, {
|
|
150
|
+
[e["sticky-header"]]: V
|
|
149
151
|
}),
|
|
150
152
|
children: [
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
|
|
153
|
+
/* @__PURE__ */ t("h2", { className: r(e.title, K), children: G }),
|
|
154
|
+
/* @__PURE__ */ t("div", { className: e.space, children: v && /* @__PURE__ */ t(
|
|
155
|
+
P,
|
|
154
156
|
{
|
|
157
|
+
"data-testid-react": o == null ? void 0 : o.closeButton,
|
|
155
158
|
variant: de.SecondaryWhite,
|
|
156
159
|
isIconButton: !0,
|
|
157
|
-
size:
|
|
160
|
+
size: h ? u.S : u.M,
|
|
158
161
|
iconName: "Close16px",
|
|
159
162
|
onClick: s,
|
|
160
163
|
className: e.button
|
|
@@ -163,36 +166,38 @@ import '../../assets/Drawer.css';const pe = "_drawerContainer_zs4pc_2", he = "_d
|
|
|
163
166
|
]
|
|
164
167
|
}
|
|
165
168
|
),
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
|
|
169
|
+
/* @__PURE__ */ t(
|
|
170
|
+
ie,
|
|
168
171
|
{
|
|
169
|
-
ref:
|
|
170
|
-
className:
|
|
172
|
+
ref: c,
|
|
173
|
+
className: r(
|
|
171
174
|
e.inner,
|
|
172
175
|
{
|
|
173
|
-
[e["is-loading"]]: !!
|
|
176
|
+
[e["is-loading"]]: !!i
|
|
174
177
|
},
|
|
175
|
-
|
|
178
|
+
q
|
|
176
179
|
),
|
|
177
|
-
variant:
|
|
178
|
-
size:
|
|
179
|
-
children:
|
|
180
|
+
variant: _e.LIGHT,
|
|
181
|
+
size: pe.M,
|
|
182
|
+
children: i ? /* @__PURE__ */ t(me, {}) : I
|
|
180
183
|
}
|
|
181
184
|
)
|
|
182
185
|
]
|
|
183
186
|
}
|
|
184
187
|
),
|
|
185
|
-
/* @__PURE__ */
|
|
188
|
+
/* @__PURE__ */ t(
|
|
186
189
|
"footer",
|
|
187
190
|
{
|
|
188
|
-
|
|
189
|
-
|
|
191
|
+
"data-testid-react": o == null ? void 0 : o.footer,
|
|
192
|
+
className: r(e.footer, R, {
|
|
193
|
+
[e["has-scroll"]]: T
|
|
190
194
|
}),
|
|
191
|
-
children: typeof
|
|
192
|
-
|
|
195
|
+
children: typeof _ == "function" ? _({ handleClose: s }) : _ || v && /* @__PURE__ */ t(
|
|
196
|
+
P,
|
|
193
197
|
{
|
|
194
|
-
|
|
195
|
-
|
|
198
|
+
"data-testid-react": o == null ? void 0 : o.footerCloseButton,
|
|
199
|
+
size: h ? u.L : u.XXL,
|
|
200
|
+
full: h,
|
|
196
201
|
onClick: s,
|
|
197
202
|
className: e["footer-button"],
|
|
198
203
|
children: "Закрыть"
|
|
@@ -203,28 +208,29 @@ import '../../assets/Drawer.css';const pe = "_drawerContainer_zs4pc_2", he = "_d
|
|
|
203
208
|
]
|
|
204
209
|
}
|
|
205
210
|
),
|
|
206
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ t(
|
|
207
212
|
"div",
|
|
208
213
|
{
|
|
209
|
-
|
|
214
|
+
"data-testid-react": o == null ? void 0 : o.overlay,
|
|
215
|
+
className: r(
|
|
210
216
|
e.overlay,
|
|
211
217
|
{
|
|
212
|
-
[e.unmount]: !
|
|
218
|
+
[e.unmount]: !y
|
|
213
219
|
},
|
|
214
|
-
|
|
220
|
+
E
|
|
215
221
|
),
|
|
216
|
-
style:
|
|
222
|
+
style: O.overlay,
|
|
217
223
|
"data-testid": "drawer-overlay",
|
|
218
|
-
onClick:
|
|
224
|
+
onClick: oe
|
|
219
225
|
}
|
|
220
226
|
)
|
|
221
227
|
]
|
|
222
228
|
}
|
|
223
229
|
);
|
|
224
|
-
return
|
|
230
|
+
return B === !1 ? L : /* @__PURE__ */ t(fe, { element: B, children: L });
|
|
225
231
|
}
|
|
226
232
|
);
|
|
227
233
|
export {
|
|
228
|
-
|
|
229
|
-
|
|
234
|
+
xe as ANIMATION_DELAY,
|
|
235
|
+
Ue as Drawer
|
|
230
236
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as s, jsxs as d, Fragment as
|
|
1
|
+
import { jsx as s, jsxs as d, Fragment as b } from "react/jsx-runtime";
|
|
2
2
|
import { c as a } from "../../index-DIxK0V-G.js";
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { EDropdownSelectSize as
|
|
3
|
+
import { forwardRef as y } from "react";
|
|
4
|
+
import { EDropdownSelectSize as S } from "./constants.js";
|
|
5
5
|
import { Icon as f } from "../../icons/Icon.js";
|
|
6
|
-
import { H as
|
|
7
|
-
import '../../assets/DropdownSelect.css';const
|
|
6
|
+
import { H as C, U as k, K as U, W as V } from "../../combobox-fIVOzEhl.js";
|
|
7
|
+
import '../../assets/DropdownSelect.css';const z = "_full_ow9jf_265", A = "_disabled_ow9jf_268", H = "_trigger_ow9jf_273", K = "_options_ow9jf_313", M = "_option_ow9jf_313", W = "_focused_ow9jf_356", B = "_s_ow9jf_381", E = "_m_ow9jf_390", F = "_l_ow9jf_399", e = {
|
|
8
8
|
"dropdown-select": "_dropdown-select_ow9jf_261",
|
|
9
|
-
full:
|
|
10
|
-
disabled:
|
|
11
|
-
trigger:
|
|
9
|
+
full: z,
|
|
10
|
+
disabled: A,
|
|
11
|
+
trigger: H,
|
|
12
12
|
"trigger-text": "_trigger-text_ow9jf_302",
|
|
13
|
-
options:
|
|
14
|
-
option:
|
|
13
|
+
options: K,
|
|
14
|
+
option: M,
|
|
15
15
|
focused: W,
|
|
16
16
|
"option-content": "_option-content_ow9jf_360",
|
|
17
17
|
"option-check": "_option-check_ow9jf_372",
|
|
18
18
|
s: B,
|
|
19
19
|
m: E,
|
|
20
20
|
l: F
|
|
21
|
-
}, I =
|
|
21
|
+
}, I = y(
|
|
22
22
|
(p, _) => {
|
|
23
23
|
const {
|
|
24
24
|
value: t,
|
|
@@ -31,17 +31,18 @@ import '../../assets/DropdownSelect.css';const V = "_full_ow9jf_265", z = "_disa
|
|
|
31
31
|
optionsClassName: j,
|
|
32
32
|
optionClassName: N,
|
|
33
33
|
full: c = !1,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
isModal: h = !0,
|
|
35
|
+
size: l = S.M
|
|
36
|
+
} = p, x = (o) => {
|
|
36
37
|
n == null || n(o);
|
|
37
|
-
},
|
|
38
|
+
}, v = (o) => o ? o.displayValue ? o.displayValue : typeof o.name == "string" ? o.name : typeof o.value == "string" ? o.value : String(o.id) : "";
|
|
38
39
|
return /* @__PURE__ */ s(
|
|
39
|
-
|
|
40
|
+
C,
|
|
40
41
|
{
|
|
41
42
|
as: "div",
|
|
42
43
|
ref: _,
|
|
43
44
|
value: t,
|
|
44
|
-
onChange:
|
|
45
|
+
onChange: x,
|
|
45
46
|
disabled: i,
|
|
46
47
|
className: a(
|
|
47
48
|
e["dropdown-select"],
|
|
@@ -52,9 +53,9 @@ import '../../assets/DropdownSelect.css';const V = "_full_ow9jf_265", z = "_disa
|
|
|
52
53
|
},
|
|
53
54
|
g
|
|
54
55
|
),
|
|
55
|
-
children: ({ open: o }) => /* @__PURE__ */ d(
|
|
56
|
+
children: ({ open: o }) => /* @__PURE__ */ d(b, { children: [
|
|
56
57
|
/* @__PURE__ */ d(
|
|
57
|
-
|
|
58
|
+
k,
|
|
58
59
|
{
|
|
59
60
|
className: a(
|
|
60
61
|
e.trigger,
|
|
@@ -67,7 +68,7 @@ import '../../assets/DropdownSelect.css';const V = "_full_ow9jf_265", z = "_disa
|
|
|
67
68
|
),
|
|
68
69
|
"data-testid": "dropdown-select-trigger",
|
|
69
70
|
children: [
|
|
70
|
-
/* @__PURE__ */ s("span", { className: a(e["trigger-text"]), children: t ?
|
|
71
|
+
/* @__PURE__ */ s("span", { className: a(e["trigger-text"]), children: t ? v(t) : w }),
|
|
71
72
|
/* @__PURE__ */ s(
|
|
72
73
|
f,
|
|
73
74
|
{
|
|
@@ -78,19 +79,20 @@ import '../../assets/DropdownSelect.css';const V = "_full_ow9jf_265", z = "_disa
|
|
|
78
79
|
}
|
|
79
80
|
),
|
|
80
81
|
/* @__PURE__ */ s(
|
|
81
|
-
|
|
82
|
+
U,
|
|
82
83
|
{
|
|
84
|
+
modal: h,
|
|
83
85
|
className: a(e.options, e[l], j),
|
|
84
86
|
"data-testid": "dropdown-select-options",
|
|
85
87
|
children: m.map((r) => /* @__PURE__ */ d(
|
|
86
|
-
|
|
88
|
+
V,
|
|
87
89
|
{
|
|
88
90
|
value: r,
|
|
89
|
-
className: ({ focus:
|
|
91
|
+
className: ({ focus: D }) => a(
|
|
90
92
|
e.option,
|
|
91
93
|
e[l],
|
|
92
94
|
{
|
|
93
|
-
[e.focused]:
|
|
95
|
+
[e.focused]: D
|
|
94
96
|
},
|
|
95
97
|
N
|
|
96
98
|
),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TGosZnakProps } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const GosZnak: ({ number, region, country, size, type, className, numberClassName, regionClassName, countryClassName, numberContainerClassName, regionContainerClassName, simplified, copyable, onCopy }: TGosZnakProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const GosZnak: ({ number, region, country, size, type, className, numberClassName, regionClassName, countryClassName, numberContainerClassName, regionContainerClassName, simplified, copyable, onCopy, dataTestIdReactMap }: TGosZnakProps) => import("react/jsx-runtime").JSX.Element;
|