mimir-ui-kit 1.43.11 → 1.43.13
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-BU_6U1CW.js +227 -0
- package/dist/assets/Accordion.css +1 -1
- package/dist/assets/AccordionItem.css +1 -1
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/CheckboxMimir.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/ClearButton.css +1 -0
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/GosZnak.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputPassword.css +1 -1
- package/dist/assets/InputRangeSlider.css +1 -1
- package/dist/assets/Link.css +1 -1
- package/dist/assets/ListFiles.css +1 -1
- package/dist/assets/ListPhotos.css +1 -1
- package/dist/assets/MessageShortReply.css +1 -1
- package/dist/assets/MultiSelectSearch.css +1 -1
- package/dist/assets/NotificationBadge.css +1 -1
- package/dist/assets/OtpInput.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/SelectSearch.css +1 -1
- package/dist/assets/hooks.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/components/Accordion/Accordion.d.ts +3 -10
- package/dist/components/Accordion/Accordion.js +212 -286
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
- package/dist/components/Accordion/constants.d.ts +4 -0
- package/dist/components/Accordion/constants.js +5 -4
- package/dist/components/AnchorLink/Link.js +20 -21
- package/dist/components/Avatar/Avatar.js +26 -26
- package/dist/components/Button/Button.js +87 -110
- package/dist/components/Button/constants.d.ts +2 -8
- package/dist/components/Button/constants.js +5 -6
- package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +0 -2
- package/dist/components/CheckboxMimir/CheckboxMimir.js +35 -37
- package/dist/components/Chip/Chip.js +17 -17
- package/dist/components/DatePicker/DatePicker.d.ts +0 -8
- package/dist/components/DatePicker/DatePicker.js +169 -182
- package/dist/components/DatePicker/DatePickerModal.js +98 -134
- package/dist/components/DatePicker/MonthPickerModal.js +95 -115
- package/dist/components/DatePicker/YearPickerModal.js +89 -109
- package/dist/components/DatePicker/constants.d.ts +1 -1
- package/dist/components/DatePicker/constants.js +7 -6
- package/dist/components/DatePicker/hooks.d.ts +1 -2
- package/dist/components/DatePicker/hooks.js +13 -13
- package/dist/components/Drawer/Drawer.js +138 -172
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/hooks.js +1 -1
- package/dist/components/GosZnak/GosZnak.js +38 -47
- package/dist/components/Input/Input.d.ts +0 -4
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/index.js +1 -1
- package/dist/components/{MiniButton/MiniButton.d.ts → InputClearButton/ClearButton.d.ts} +8 -17
- package/dist/components/InputClearButton/ClearButton.js +41 -0
- package/dist/components/InputClearButton/constants.d.ts +8 -0
- package/dist/components/InputClearButton/constants.js +5 -0
- package/dist/components/InputClearButton/index.d.ts +4 -0
- package/dist/components/InputClearButton/index.js +6 -0
- package/dist/components/InputPassword/InputPassword.js +42 -38
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/InputRangeSlider/InputRangeSlider.js +139 -159
- package/dist/components/InputRangeSlider/constants.d.ts +0 -5
- package/dist/components/InputRangeSlider/constants.js +6 -11
- package/dist/components/ListFiles/ListFiles.js +39 -41
- package/dist/components/ListPhotos/ListPhotos.js +18 -17
- package/dist/components/MessageShortReply/MessageShortReply.js +34 -34
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +152 -153
- package/dist/components/MultiSelectSearch/constants.d.ts +0 -1
- package/dist/components/MultiSelectSearch/constants.js +7 -7
- package/dist/components/MultiSelectSearch/utils.d.ts +1 -1
- package/dist/components/MultiSelectSearch/utils.js +16 -18
- package/dist/components/NotificationBadge/NotificationBadge.js +33 -49
- package/dist/components/NotificationBadge/constants.d.ts +2 -9
- package/dist/components/NotificationBadge/constants.js +2 -3
- package/dist/components/NotificationBadge/types.d.ts +1 -11
- package/dist/components/OtpInput/OtpInput.js +40 -44
- package/dist/components/OtpInput/constants.d.ts +0 -4
- package/dist/components/OtpInput/constants.js +4 -6
- package/dist/components/OtpInput/index.d.ts +0 -1
- package/dist/components/OtpInput/index.js +0 -2
- package/dist/components/Pagination/Pagination.js +23 -23
- package/dist/components/SelectSearch/SelectSearch.js +241 -241
- package/dist/components/SelectSearch/utils.d.ts +1 -1
- package/dist/components/SelectSearch/utils.js +1 -1
- package/dist/components/Slider/Slider.d.ts +5 -1
- package/dist/components/Slider/Slider.js +36 -34
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/index.d.ts +1 -3
- package/dist/components/index.js +51 -55
- package/dist/hooks-HgN6Yauq.js +117 -0
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/64px/AdvancePaymentDiscount64px.js +59 -0
- package/dist/icons/components/64px/AtsVendors64px.js +37 -0
- package/dist/icons/components/64px/ButtonOn64px.js +31 -0
- package/dist/icons/components/64px/BuyoutAuto64px.js +45 -0
- package/dist/icons/components/64px/CarAssistance64px.js +44 -0
- package/dist/icons/components/64px/CarDelivery64px.js +37 -0
- package/dist/icons/components/64px/CarSearchReturn64px.js +45 -0
- package/dist/icons/components/64px/CarService64px.js +37 -0
- package/dist/icons/components/64px/Case64px.js +33 -0
- package/dist/icons/components/64px/CoatOfArms64px.js +149 -0
- package/dist/icons/components/64px/CoffeeCup64px.js +44 -0
- package/dist/icons/components/64px/Cup64px.js +38 -0
- package/dist/icons/components/64px/ExpertAdvice64px.js +40 -0
- package/dist/icons/components/64px/Fines64px.js +88 -0
- package/dist/icons/components/64px/Fuel64px.js +38 -0
- package/dist/icons/components/64px/GazprombankIcon24px.js +21 -0
- package/dist/icons/components/64px/Kasko64px.js +44 -0
- package/dist/icons/components/64px/LegalSupport64px.js +58 -0
- package/dist/icons/components/64px/Microphone64px.js +37 -0
- package/dist/icons/components/64px/Money64px.js +60 -0
- package/dist/icons/components/64px/PaymentSchedule64px.js +39 -0
- package/dist/icons/components/64px/PersonalManager64px.js +100 -0
- package/dist/icons/components/64px/PreApproval64px.js +44 -0
- package/dist/icons/components/64px/Questions64px.js +37 -0
- package/dist/icons/components/64px/SupportGeography64px.js +51 -0
- package/dist/icons/components/64px/Timer64px.js +45 -0
- package/dist/icons/components/64px/Twogis64px.js +51 -0
- package/dist/icons/components/64px/Vehicles64px.js +45 -0
- package/dist/icons/components/64px/Workplace64px.js +38 -0
- package/dist/icons/components/index.js +591 -564
- package/dist/{index-DrVFMaBi.js → index-C2dQUuc9.js} +1346 -1184
- package/dist/index.js +69 -73
- package/dist/styles.module-Cuqm31CO.js +28 -0
- package/package.json +1 -1
- package/dist/Input-CGZoshMl.js +0 -224
- package/dist/assets/CarBodyButton.css +0 -1
- package/dist/assets/MiniButton.css +0 -1
- package/dist/assets/RoundButton.css +0 -1
- package/dist/assets/ScrollWrapper.css +0 -1
- package/dist/components/CarBodyButton/CarBodyButton.d.ts +0 -26
- package/dist/components/CarBodyButton/CarBodyButton.js +0 -40
- package/dist/components/CarBodyButton/index.d.ts +0 -1
- package/dist/components/CarBodyButton/index.js +0 -4
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.d.ts +0 -11
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.js +0 -27
- package/dist/components/GosZnak/utils.d.ts +0 -6
- package/dist/components/GosZnak/utils.js +0 -15
- package/dist/components/MiniButton/MiniButton.js +0 -44
- package/dist/components/MiniButton/constants.d.ts +0 -9
- package/dist/components/MiniButton/constants.js +0 -5
- package/dist/components/MiniButton/index.d.ts +0 -4
- package/dist/components/MiniButton/index.js +0 -6
- package/dist/components/NotificationBadge/utils.d.ts +0 -8
- package/dist/components/NotificationBadge/utils.js +0 -4
- package/dist/components/RoundButton/RoundButton.d.ts +0 -82
- package/dist/components/RoundButton/RoundButton.js +0 -69
- package/dist/components/RoundButton/constants.d.ts +0 -11
- package/dist/components/RoundButton/constants.js +0 -5
- package/dist/components/RoundButton/index.d.ts +0 -2
- package/dist/components/RoundButton/index.js +0 -7
- package/dist/components/RoundButton/types.d.ts +0 -20
- package/dist/hooks-Cd4Ez6_j.js +0 -117
- package/dist/icons/components/16px/DropdownArrowDown16px.js +0 -23
- package/dist/icons/components/24px/EyeClosed24px.js +0 -65
- package/dist/styles.module-BfkM1-KJ.js +0 -32
@@ -1,41 +1,38 @@
|
|
1
|
-
import { jsxs as
|
1
|
+
import { jsxs as f, Fragment as I, jsx as t } from "react/jsx-runtime";
|
2
2
|
import { c as n } from "../../index-DIxK0V-G.js";
|
3
|
-
import { forwardRef as
|
4
|
-
import { EDrawerPosition as
|
5
|
-
import { useContainer as
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
import {
|
14
|
-
import
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
"
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
button:
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
overlay: ze,
|
37
|
-
unmount: Ie
|
38
|
-
}, Oe = 300, Le = (d) => d ? {
|
3
|
+
import { forwardRef as q, useState as M, useRef as J, useCallback as h, useEffect as U } from "react";
|
4
|
+
import { EDrawerPosition as O } from "./constants.js";
|
5
|
+
import { useContainer as Z } from "./hooks.js";
|
6
|
+
import { useMediaQuery as $ } from "../../hooks/useMediaQuery/useMediaQuery.js";
|
7
|
+
import { EMediaQuery as ee } from "../../hooks/useMediaQuery/constants.js";
|
8
|
+
import { useLockBodyScroll as te } from "../../hooks/useLockBodyScroll/useLockBodyScroll.js";
|
9
|
+
import { useResizeObserver as oe } from "../../hooks/useResizeObserver/useResizeObserver.js";
|
10
|
+
import { Button as S } from "../Button/Button.js";
|
11
|
+
import { EButtonVariantDefault as ne, EButtonSize as r } from "../Button/constants.js";
|
12
|
+
import { Loader as se } from "../Loader/Loader.js";
|
13
|
+
import { Portal as re } from "../Portal/Portal.js";
|
14
|
+
import '../../assets/Drawer.css';const ae = "_drawer_13ua6_2", ie = "_content_13ua6_26", le = "_header_13ua6_44", ce = "_title_13ua6_58", ue = "_space_13ua6_72", de = "_inner_13ua6_83", me = "_button_13ua6_86", _e = "_footer_13ua6_91", fe = "_left_13ua6_104", he = "_right_13ua6_108", pe = "_full_13ua6_112", ye = "_bottom_13ua6_122", ge = "_opened_13ua6_139", Ce = "_overlay_13ua6_195", ve = "_unmount_13ua6_211", e = {
|
15
|
+
drawer: ae,
|
16
|
+
content: ie,
|
17
|
+
"is-loading": "_is-loading_13ua6_40",
|
18
|
+
header: le,
|
19
|
+
"sticky-header": "_sticky-header_13ua6_52",
|
20
|
+
title: ce,
|
21
|
+
space: ue,
|
22
|
+
inner: de,
|
23
|
+
button: me,
|
24
|
+
footer: _e,
|
25
|
+
"footer-button": "_footer-button_13ua6_100",
|
26
|
+
left: fe,
|
27
|
+
right: he,
|
28
|
+
full: pe,
|
29
|
+
bottom: ye,
|
30
|
+
"full-bottom-height": "_full-bottom-height_13ua6_133",
|
31
|
+
opened: ge,
|
32
|
+
"is-closing": "_is-closing_13ua6_158",
|
33
|
+
overlay: Ce,
|
34
|
+
unmount: ve
|
35
|
+
}, Ne = 300, be = (a) => a ? {
|
39
36
|
drawer: {
|
40
37
|
position: "absolute",
|
41
38
|
zIndex: 100
|
@@ -44,151 +41,120 @@ import '../../assets/Drawer.css';const he = "_drawer_1btea_2", be = "_content_1b
|
|
44
41
|
position: "absolute",
|
45
42
|
zIndex: 90
|
46
43
|
}
|
47
|
-
} : {},
|
48
|
-
(
|
44
|
+
} : {}, Ae = q(
|
45
|
+
(a, L) => {
|
49
46
|
const {
|
50
|
-
as:
|
51
|
-
isOpen:
|
52
|
-
onClose:
|
53
|
-
title:
|
54
|
-
className:
|
55
|
-
unmount:
|
56
|
-
isLoading:
|
57
|
-
stickyHeader:
|
58
|
-
fullBottomHeight:
|
59
|
-
position:
|
60
|
-
paddingRight:
|
61
|
-
footer:
|
62
|
-
children:
|
63
|
-
classNameTitle:
|
64
|
-
classNameHeader:
|
65
|
-
classNameInner:
|
66
|
-
classNameContent:
|
67
|
-
classNameFooter:
|
68
|
-
closeOnClickOutside:
|
69
|
-
showCloseButton:
|
70
|
-
getContainer:
|
71
|
-
...
|
72
|
-
} =
|
73
|
-
enabled:
|
74
|
-
}),
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
const { scrollHeight: te, clientHeight: oe } = s.current;
|
79
|
-
$(te > oe);
|
80
|
-
}
|
81
|
-
};
|
82
|
-
i();
|
83
|
-
const O = new ResizeObserver(i);
|
84
|
-
return s.current && O.observe(s.current), () => {
|
85
|
-
O.disconnect();
|
86
|
-
};
|
87
|
-
}, [r, a]), le({
|
88
|
-
on: r && !w,
|
89
|
-
paddingRight: F
|
47
|
+
as: R = "div",
|
48
|
+
isOpen: s,
|
49
|
+
onClose: i,
|
50
|
+
title: T,
|
51
|
+
className: x,
|
52
|
+
unmount: p = !0,
|
53
|
+
isLoading: l = !1,
|
54
|
+
stickyHeader: z,
|
55
|
+
fullBottomHeight: D = !1,
|
56
|
+
position: c = O.RIGHT,
|
57
|
+
paddingRight: A = 8,
|
58
|
+
footer: u,
|
59
|
+
children: H,
|
60
|
+
classNameTitle: P,
|
61
|
+
classNameHeader: X,
|
62
|
+
classNameInner: j,
|
63
|
+
classNameContent: F,
|
64
|
+
classNameFooter: Q,
|
65
|
+
closeOnClickOutside: y = !0,
|
66
|
+
showCloseButton: g = !0,
|
67
|
+
getContainer: d,
|
68
|
+
...G
|
69
|
+
} = a, [C, v] = M(!1), [K, N] = M(!1), b = J(), m = $(ee.XS1), { ref: V } = oe({
|
70
|
+
enabled: c === O.BOTTOM
|
71
|
+
}), w = Z(d);
|
72
|
+
te({
|
73
|
+
on: s && !C,
|
74
|
+
paddingRight: A
|
90
75
|
});
|
91
|
-
const o =
|
92
|
-
|
93
|
-
|
94
|
-
},
|
95
|
-
}, [
|
96
|
-
|
97
|
-
}, [
|
98
|
-
(
|
99
|
-
|
76
|
+
const o = h(() => {
|
77
|
+
i && (v(!0), b.current = setTimeout(() => {
|
78
|
+
i(), v(!1);
|
79
|
+
}, Ne));
|
80
|
+
}, [i]), W = h(() => {
|
81
|
+
y && o();
|
82
|
+
}, [y, o]), _ = h(
|
83
|
+
(Y) => {
|
84
|
+
Y.key === "Escape" && o();
|
100
85
|
},
|
101
86
|
[o]
|
102
87
|
);
|
103
|
-
|
104
|
-
|
105
|
-
}), [
|
106
|
-
const
|
107
|
-
[e.opened]:
|
108
|
-
[e["is-closing"]]:
|
109
|
-
[e["full-bottom-height"]]:
|
110
|
-
[e["is-loading"]]:
|
88
|
+
U(() => (s && (N(!0), window.addEventListener("keydown", _)), () => {
|
89
|
+
N(!1), clearTimeout(b.current), window.removeEventListener("keydown", _);
|
90
|
+
}), [s, _]);
|
91
|
+
const k = {
|
92
|
+
[e.opened]: K,
|
93
|
+
[e["is-closing"]]: C,
|
94
|
+
[e["full-bottom-height"]]: D,
|
95
|
+
[e["is-loading"]]: l
|
111
96
|
};
|
112
|
-
if (!
|
97
|
+
if (!s && p)
|
113
98
|
return null;
|
114
|
-
const
|
115
|
-
/* @__PURE__ */
|
116
|
-
|
99
|
+
const B = be(d !== void 0 && d !== !1), E = /* @__PURE__ */ f(I, { children: [
|
100
|
+
/* @__PURE__ */ t(
|
101
|
+
R,
|
117
102
|
{
|
118
|
-
ref:
|
119
|
-
"aria-hidden": !
|
103
|
+
ref: L,
|
104
|
+
"aria-hidden": !s,
|
120
105
|
role: "dialog",
|
121
|
-
style:
|
122
|
-
className: n(e.drawer, e[
|
123
|
-
...
|
124
|
-
children:
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
106
|
+
style: B.drawer,
|
107
|
+
className: n(e.drawer, e[c], k, x),
|
108
|
+
...G,
|
109
|
+
children: /* @__PURE__ */ t(
|
110
|
+
"section",
|
111
|
+
{
|
112
|
+
ref: V,
|
113
|
+
className: n(
|
114
|
+
e.content,
|
115
|
+
F,
|
116
|
+
e[c],
|
117
|
+
{
|
118
|
+
[e["is-loading"]]: !!l
|
119
|
+
}
|
120
|
+
),
|
121
|
+
children: l ? /* @__PURE__ */ t(se, {}) : /* @__PURE__ */ f(I, { children: [
|
122
|
+
/* @__PURE__ */ f(
|
123
|
+
"header",
|
133
124
|
{
|
134
|
-
|
125
|
+
className: n(e.header, X, {
|
126
|
+
[e["sticky-header"]]: z
|
127
|
+
}),
|
128
|
+
children: [
|
129
|
+
/* @__PURE__ */ t("h2", { className: n(e.title, P), children: T }),
|
130
|
+
/* @__PURE__ */ t("div", { className: e.space, children: g && /* @__PURE__ */ t(
|
131
|
+
S,
|
132
|
+
{
|
133
|
+
variant: ne.SecondaryWhite,
|
134
|
+
isIconButton: !0,
|
135
|
+
size: m ? r.S : r.M,
|
136
|
+
iconName: "Close16px",
|
137
|
+
onClick: o,
|
138
|
+
className: e.button
|
139
|
+
}
|
140
|
+
) })
|
141
|
+
]
|
135
142
|
}
|
136
143
|
),
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
{
|
141
|
-
className: n(e.header, V, {
|
142
|
-
[e["sticky-header"]]: X
|
143
|
-
}),
|
144
|
-
children: [
|
145
|
-
/* @__PURE__ */ t("h2", { className: n(e.title, Q), children: A }),
|
146
|
-
/* @__PURE__ */ t("div", { className: e.space, children: C && /* @__PURE__ */ t(
|
147
|
-
T,
|
148
|
-
{
|
149
|
-
variant: de.SecondaryWhite,
|
150
|
-
isIconButton: !0,
|
151
|
-
size: h ? c.S : c.M,
|
152
|
-
iconName: "Close16px",
|
153
|
-
onClick: o,
|
154
|
-
className: e.button
|
155
|
-
}
|
156
|
-
) })
|
157
|
-
]
|
158
|
-
}
|
159
|
-
),
|
160
|
-
/* @__PURE__ */ t(
|
161
|
-
se,
|
162
|
-
{
|
163
|
-
ref: s,
|
164
|
-
className: n(e.inner, W),
|
165
|
-
variant: fe.LIGHT,
|
166
|
-
size: _e.M,
|
167
|
-
children: G
|
168
|
-
}
|
169
|
-
)
|
170
|
-
] })
|
171
|
-
}
|
172
|
-
),
|
173
|
-
/* @__PURE__ */ t(
|
174
|
-
"footer",
|
175
|
-
{
|
176
|
-
className: n(e.footer, Y, {
|
177
|
-
[e["has-scroll"]]: Z
|
178
|
-
}),
|
179
|
-
children: typeof f == "function" ? f({ handleClose: o }) : f || C && /* @__PURE__ */ t(
|
180
|
-
T,
|
144
|
+
/* @__PURE__ */ t("div", { className: n(e.inner, j), children: H }),
|
145
|
+
/* @__PURE__ */ t("footer", { className: n(e.footer, Q), children: typeof u == "function" ? u({ handleClose: o }) : u || g && /* @__PURE__ */ t(
|
146
|
+
S,
|
181
147
|
{
|
182
|
-
size:
|
183
|
-
full:
|
148
|
+
size: m ? r.M : r.XXL,
|
149
|
+
full: m,
|
184
150
|
onClick: o,
|
185
151
|
className: e["footer-button"],
|
186
152
|
children: "Закрыть"
|
187
153
|
}
|
188
|
-
)
|
189
|
-
}
|
190
|
-
|
191
|
-
|
154
|
+
) })
|
155
|
+
] })
|
156
|
+
}
|
157
|
+
)
|
192
158
|
}
|
193
159
|
),
|
194
160
|
/* @__PURE__ */ t(
|
@@ -197,20 +163,20 @@ import '../../assets/Drawer.css';const he = "_drawer_1btea_2", be = "_content_1b
|
|
197
163
|
className: n(
|
198
164
|
e.overlay,
|
199
165
|
{
|
200
|
-
[e.unmount]: !
|
166
|
+
[e.unmount]: !p
|
201
167
|
},
|
202
|
-
|
168
|
+
k
|
203
169
|
),
|
204
|
-
style:
|
170
|
+
style: B.overlay,
|
205
171
|
"data-testid": "drawer-overlay",
|
206
|
-
onClick:
|
172
|
+
onClick: W
|
207
173
|
}
|
208
174
|
)
|
209
175
|
] });
|
210
|
-
return
|
176
|
+
return w === !1 ? E : /* @__PURE__ */ t(re, { element: w, children: E });
|
211
177
|
}
|
212
178
|
);
|
213
179
|
export {
|
214
|
-
|
215
|
-
|
180
|
+
Ne as ANIMATION_DELAY,
|
181
|
+
Ae as Drawer
|
216
182
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as re, jsxs as De, Fragment as nt } from "react/jsx-runtime";
|
2
2
|
import { c as pe } from "../../index-DIxK0V-G.js";
|
3
3
|
import E, { createContext as ue, useState as X, useContext as te, useRef as R, useEffect as ce, useMemo as Z, Fragment as fe, useReducer as rt, createRef as Fe, useId as be, memo as ot, useCallback as me } from "react";
|
4
|
-
import { u as lt, c as G } from "../../hooks-
|
4
|
+
import { u as lt, c as G } from "../../hooks-HgN6Yauq.js";
|
5
5
|
import { Button as at } from "../Button/Button.js";
|
6
6
|
import { o as S, u as He, M as ve, W as Y, y as ee, O as le, n as ie, m as ut, t as st, H as se, s as Ce, p as it, a as V, T as ct, $ as dt, b as pt, D as ke, I as ft, c as oe } from "../../keyboard-wis2TUql.js";
|
7
7
|
import { w as vt } from "../../use-active-press-CnDeVvQq.js";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import "../../index-DIxK0V-G.js";
|
2
2
|
import "react";
|
3
3
|
import "./constants.js";
|
4
|
-
import { a as r, A, D as N, P as O, u as i } from "../../hooks-
|
4
|
+
import { a as r, A, D as N, P as O, u as i } from "../../hooks-HgN6Yauq.js";
|
5
5
|
export {
|
6
6
|
r as ALIGNMENT_THRESHOLD,
|
7
7
|
A as ANIMATION_DELAY,
|
@@ -1,66 +1,57 @@
|
|
1
|
-
import { jsxs as
|
1
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
2
2
|
import { c as n } from "../../index-DIxK0V-G.js";
|
3
|
-
import { EGosZnakSize as
|
4
|
-
import
|
5
|
-
|
6
|
-
|
7
|
-
"number-container": "_number-
|
8
|
-
|
9
|
-
|
10
|
-
region: z,
|
11
|
-
"region-container": "_region-container_6vy0s_49",
|
3
|
+
import { EGosZnakSize as g, EGosZnakType as f } from "./constants.js";
|
4
|
+
import '../../assets/GosZnak.css';const y = "_number_dr109_13", N = "_region_dr109_32", b = "_country_dr109_46", h = "_l_dr109_53", k = "_s_dr109_62", z = "_normal_dr109_71", v = "_traffic_dr109_78", x = "_military_dr109_85", G = "_police_dr109_92", Z = "_diplomatic_dr109_99", r = {
|
5
|
+
"gos-znak": "_gos-znak_dr109_2",
|
6
|
+
number: y,
|
7
|
+
"number-container": "_number-container_dr109_22",
|
8
|
+
region: N,
|
9
|
+
"region-container": "_region-container_dr109_38",
|
12
10
|
country: b,
|
13
|
-
l:
|
14
|
-
s:
|
15
|
-
normal:
|
16
|
-
traffic:
|
17
|
-
military:
|
18
|
-
police:
|
19
|
-
diplomatic:
|
20
|
-
},
|
21
|
-
number:
|
22
|
-
region:
|
23
|
-
country:
|
24
|
-
size:
|
25
|
-
type: _ =
|
26
|
-
className:
|
27
|
-
numberClassName:
|
28
|
-
regionClassName:
|
29
|
-
countryClassName:
|
30
|
-
numberContainerClassName:
|
31
|
-
regionContainerClassName:
|
32
|
-
}) => /* @__PURE__ */
|
11
|
+
l: h,
|
12
|
+
s: k,
|
13
|
+
normal: z,
|
14
|
+
traffic: v,
|
15
|
+
military: x,
|
16
|
+
police: G,
|
17
|
+
diplomatic: Z
|
18
|
+
}, S = ({
|
19
|
+
number: i,
|
20
|
+
region: s,
|
21
|
+
country: a,
|
22
|
+
size: e = g.L,
|
23
|
+
type: _ = f.Normal,
|
24
|
+
className: t,
|
25
|
+
numberClassName: l,
|
26
|
+
regionClassName: m,
|
27
|
+
countryClassName: d,
|
28
|
+
numberContainerClassName: p,
|
29
|
+
regionContainerClassName: u
|
30
|
+
}) => /* @__PURE__ */ c(
|
33
31
|
"div",
|
34
32
|
{
|
35
|
-
className: n(
|
33
|
+
className: n(r["gos-znak"], r[e], r[_], t),
|
36
34
|
children: [
|
37
35
|
/* @__PURE__ */ o(
|
38
36
|
"div",
|
39
37
|
{
|
40
38
|
className: n(
|
41
|
-
|
42
|
-
|
39
|
+
r["number-container"],
|
40
|
+
p
|
43
41
|
),
|
44
|
-
children:
|
45
|
-
"span",
|
46
|
-
{
|
47
|
-
className: n(s[i.type], m),
|
48
|
-
children: i.value
|
49
|
-
},
|
50
|
-
g
|
51
|
-
))
|
42
|
+
children: /* @__PURE__ */ o("span", { className: n(r.number, l), children: i })
|
52
43
|
}
|
53
44
|
),
|
54
|
-
/* @__PURE__ */
|
45
|
+
/* @__PURE__ */ c(
|
55
46
|
"div",
|
56
47
|
{
|
57
48
|
className: n(
|
58
|
-
|
59
|
-
|
49
|
+
r["region-container"],
|
50
|
+
u
|
60
51
|
),
|
61
52
|
children: [
|
62
|
-
/* @__PURE__ */ o("span", { className: n(
|
63
|
-
/* @__PURE__ */ o("span", { className: n(
|
53
|
+
/* @__PURE__ */ o("span", { className: n(r.region, m), children: s }),
|
54
|
+
/* @__PURE__ */ o("span", { className: n(r.country, d), children: a })
|
64
55
|
]
|
65
56
|
}
|
66
57
|
)
|
@@ -68,5 +59,5 @@ import '../../assets/GosZnak.css';const h = "_letters_6vy0s_23", k = "_digits_6v
|
|
68
59
|
}
|
69
60
|
);
|
70
61
|
export {
|
71
|
-
|
62
|
+
S as GosZnak
|
72
63
|
};
|
@@ -57,10 +57,6 @@ export type TAdditionalProps = {
|
|
57
57
|
/**
|
58
58
|
* Разрешить только числовой ввод
|
59
59
|
*/
|
60
|
-
onClearButtonClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
61
|
-
/**
|
62
|
-
* Функция вызывающаяся при клике на clearButton
|
63
|
-
*/
|
64
60
|
numbersOnly?: boolean;
|
65
61
|
/**
|
66
62
|
* Максимальная длина ввода
|
@@ -2,10 +2,10 @@ 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-BU_6U1CW.js";
|
6
6
|
import "../../hooks/useMergeRefs/useMergeRefs.js";
|
7
7
|
import "../../icons/Icon.js";
|
8
|
-
import "../
|
8
|
+
import "../Button/Button.js";
|
9
9
|
export {
|
10
10
|
f as Input
|
11
11
|
};
|
@@ -1,19 +1,18 @@
|
|
1
1
|
import { default as React } from 'react';
|
2
|
-
import { TIcon } from '../../icons';
|
3
2
|
|
4
|
-
export type
|
3
|
+
export type TClearButton = {
|
5
4
|
/**
|
6
5
|
* Класс, применяемый к корневому элементу кнопки.
|
7
6
|
*/
|
8
7
|
className?: string;
|
9
8
|
/**
|
10
|
-
* Выключен ли
|
9
|
+
* Выключен ли clearButton или нет
|
11
10
|
*/
|
12
11
|
disabled?: boolean;
|
13
12
|
/**
|
14
13
|
* Вариант кнопки загрузки файла
|
15
14
|
*/
|
16
|
-
variant?: 'gray' | 'white'
|
15
|
+
variant?: 'gray' | 'white';
|
17
16
|
/**
|
18
17
|
* Размер кнопки загрузки файла
|
19
18
|
*/
|
@@ -21,25 +20,21 @@ export type TMiniButton = {
|
|
21
20
|
/**
|
22
21
|
* Класс для кнопки
|
23
22
|
*/
|
24
|
-
|
25
|
-
/**
|
26
|
-
* Название иконки
|
27
|
-
*/
|
28
|
-
iconName: TIcon;
|
23
|
+
clearButtonClassName?: string;
|
29
24
|
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
30
|
-
export declare const
|
25
|
+
export declare const ClearButton: React.ForwardRefExoticComponent<{
|
31
26
|
/**
|
32
27
|
* Класс, применяемый к корневому элементу кнопки.
|
33
28
|
*/
|
34
29
|
className?: string;
|
35
30
|
/**
|
36
|
-
* Выключен ли
|
31
|
+
* Выключен ли clearButton или нет
|
37
32
|
*/
|
38
33
|
disabled?: boolean;
|
39
34
|
/**
|
40
35
|
* Вариант кнопки загрузки файла
|
41
36
|
*/
|
42
|
-
variant?: "gray" | "white"
|
37
|
+
variant?: "gray" | "white";
|
43
38
|
/**
|
44
39
|
* Размер кнопки загрузки файла
|
45
40
|
*/
|
@@ -47,9 +42,5 @@ export declare const MiniButton: React.ForwardRefExoticComponent<{
|
|
47
42
|
/**
|
48
43
|
* Класс для кнопки
|
49
44
|
*/
|
50
|
-
|
51
|
-
/**
|
52
|
-
* Название иконки
|
53
|
-
*/
|
54
|
-
iconName: TIcon;
|
45
|
+
clearButtonClassName?: string;
|
55
46
|
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
2
|
+
import { c as _ } from "../../index-DIxK0V-G.js";
|
3
|
+
import { forwardRef as p } from "react";
|
4
|
+
import { EClearButtonSize as a, EClearButtonVariant as f } from "./constants.js";
|
5
|
+
import { Icon as u } from "../../icons/Icon.js";
|
6
|
+
import '../../assets/ClearButton.css';const C = "_clear_n3to9_2", y = "_gray_n3to9_18", N = "_l_n3to9_32", o = {
|
7
|
+
clear: C,
|
8
|
+
gray: y,
|
9
|
+
l: N,
|
10
|
+
"m-s": "_m-s_n3to9_36"
|
11
|
+
}, d = p(
|
12
|
+
(s, e) => {
|
13
|
+
const {
|
14
|
+
disabled: l = !1,
|
15
|
+
size: t = a.MS,
|
16
|
+
variant: n = f.Gray,
|
17
|
+
className: c,
|
18
|
+
...m
|
19
|
+
} = s, i = _(
|
20
|
+
o.clear,
|
21
|
+
t === a.L ? o.l : o["m-s"],
|
22
|
+
o[n],
|
23
|
+
c
|
24
|
+
);
|
25
|
+
return /* @__PURE__ */ r(
|
26
|
+
"button",
|
27
|
+
{
|
28
|
+
type: "button",
|
29
|
+
ref: e,
|
30
|
+
...m,
|
31
|
+
disabled: l,
|
32
|
+
className: i,
|
33
|
+
children: /* @__PURE__ */ r(u, { iconName: t === "l" ? "Close16px" : "Close12px" })
|
34
|
+
}
|
35
|
+
);
|
36
|
+
}
|
37
|
+
);
|
38
|
+
d.displayName = "ClearButton";
|
39
|
+
export {
|
40
|
+
d as ClearButton
|
41
|
+
};
|