mimir-ui-kit 1.44.2 → 1.44.3
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/assets/Drawer.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._drawerContainer_zs4pc_2{position:fixed;z-index:1000000}._drawer_zs4pc_2{--drawer-width: 808px;--drawer-z-index: 10000;position:fixed;z-index:10000;z-index:var(--drawer-z-index);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:808px;width:var(--drawer-width);height:100%;overflow:auto;background-color:var(--black-5);-webkit-transition:all .3s ease;transition:all .3s ease;pointer-events:none}._drawer_zs4pc_2::-webkit-scrollbar{width:3px}._drawer_zs4pc_2::-webkit-scrollbar-thumb{background-color:var(--black-80);border-radius:2px}._drawer_zs4pc_2::-webkit-scrollbar-track{background-color:var(--white)}._drawer_zs4pc_2 ._content_zs4pc_31{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:var(--mimir-space-m) var(--mimir-space-xs) var(--mimir-space-3xs) var(--mimir-space-4xl);overflow:hidden;-webkit-transition:all .3s ease;transition:all .3s ease}@media (max-width: 600px){._drawer_zs4pc_2 ._content_zs4pc_31{--drawer-width: 100%;padding:var(--mimir-space-m)}}._drawer_zs4pc_2 ._header_zs4pc_46{display:-webkit-box;display:-ms-flexbox;display:flex;gap:var(--mimir-space-xs);min-height:68px}._drawer_zs4pc_2 ._header_zs4pc_46:not(:last-child){margin-bottom:var(--mimir-space-2xl)}._drawer_zs4pc_2 ._header_zs4pc_46._sticky-header_zs4pc_54{position:-webkit-sticky;position:sticky;top:0;left:0;background-color:var(--black-5)}._drawer_zs4pc_2 ._header_zs4pc_46 ._title_zs4pc_60{-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-item-align:end;align-self:flex-end;font-weight:var(--mimir-font-weight-text-medium);font-size:var(--mimir-size-text-xl3);line-height:var(--mimir-space-2xxl);letter-spacing:.7px}@media (max-width: 600px){._drawer_zs4pc_2 ._header_zs4pc_46 ._title_zs4pc_60{font-size:var(--mimir-size-text-xl2);line-height:var(--mimir-line-height-text-xs)}}._drawer_zs4pc_2 ._header_zs4pc_46 ._space_zs4pc_74{-webkit-box-flex:0;-ms-flex:0 0 var(--button-height-m);flex:0 0 var(--button-height-m)}@media (max-width: 600px){._drawer_zs4pc_2 ._header_zs4pc_46{min-height:55px}._drawer_zs4pc_2 ._header_zs4pc_46:not(:last-child){margin-bottom:var(--mimir-space-m)}}._drawer_zs4pc_2 ._inner_zs4pc_85{-webkit-box-flex:1;-ms-flex:1;flex:1;padding-right:var(--mimir-space-xxl);overflow-y:auto}._drawer_zs4pc_2 ._inner_zs4pc_85._is-loading_zs4pc_90{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media (max-width: 600px){._drawer_zs4pc_2 ._inner_zs4pc_85{padding-right:0}}._drawer_zs4pc_2 ._button_zs4pc_101{position:absolute;top:var(--mimir-space-m);right:var(--mimir-space-m)}._drawer_zs4pc_2 ._footer_zs4pc_106{display:block;padding:var(--mimir-space-2xl) var(--mimir-space-xxl) var(--mimir-space-4xl) var(--mimir-space-xxl)}@media (max-width: 600px){._drawer_zs4pc_2 ._footer_zs4pc_106{padding:var(--mimir-space-m)}}._drawer_zs4pc_2 ._footer_zs4pc_106._has-scroll_zs4pc_115{-webkit-box-shadow:var(--mimir-modal-window-bottom-panel-shadow);box-shadow:var(--mimir-modal-window-bottom-panel-shadow)}._drawer_zs4pc_2 ._footer-button_zs4pc_118{display:block;margin-left:auto}._drawer_zs4pc_2._left_zs4pc_122{top:0;left:-100%}._drawer_zs4pc_2._right_zs4pc_126{top:0;right:-100%}._drawer_zs4pc_2._full_zs4pc_130{top:0;right:0;bottom:0;left:0;width:100%;height:100%;max-height:100vh;border-radius:0;-webkit-transform:scale(.95);transform:scale(.95);opacity:0;-webkit-transition:opacity .3s ease-in-out,-webkit-transform .3s ease-in-out;transition:opacity .3s ease-in-out,-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out,opacity .3s ease-in-out;transition:transform .3s ease-in-out,opacity .3s ease-in-out,-webkit-transform .3s ease-in-out}._drawer_zs4pc_2._bottom_zs4pc_140{--drawer-width: calc(100% - var(--mimir-space-m));right:50%;bottom:-100%;left:50%;height:auto;max-height:calc(100% - var(--mimir-space-xs));border-top-left-radius:var(--mimir-control-radius);border-top-right-radius:var(--mimir-control-radius);-webkit-transform:translate(-50%,0);transform:translate(-50%)}._drawer_zs4pc_2._bottom_zs4pc_140._full-bottom-height_zs4pc_151{height:calc(100% - var(--mimir-space-xs))}._drawer_zs4pc_2._bottom_zs4pc_140._is-loading_zs4pc_90{height:50vh}._drawer_zs4pc_2._opened_zs4pc_157{-webkit-transition:all .3s ease;transition:all .3s ease;pointer-events:auto}._drawer_zs4pc_2._opened_zs4pc_157._left_zs4pc_122{left:0%;-webkit-transition:left .3s ease;transition:left .3s ease}._drawer_zs4pc_2._opened_zs4pc_157._right_zs4pc_126{right:0%;-webkit-transition:right .3s ease;transition:right .3s ease}._drawer_zs4pc_2._opened_zs4pc_157._bottom_zs4pc_140{bottom:0%}._drawer_zs4pc_2._opened_zs4pc_157._full_zs4pc_130{-webkit-transform:scale(1);transform:scale(1);opacity:1}._drawer_zs4pc_2._is-closing_zs4pc_176._left_zs4pc_122{left:-100%}._drawer_zs4pc_2._is-closing_zs4pc_176._right_zs4pc_126{right:-100%}._drawer_zs4pc_2._is-closing_zs4pc_176._bottom_zs4pc_140{bottom:-100%}._drawer_zs4pc_2._is-closing_zs4pc_176._full_zs4pc_130{-webkit-transform:scale(.95);transform:scale(.95);opacity:0}@media (max-width: 1440px){._drawer_zs4pc_2{--drawer-width: 608px}}@media (max-width: 1280px){._drawer_zs4pc_2{--drawer-width: 648px}}@media (max-width: 768px){._drawer_zs4pc_2{--drawer-width: 584px}}@media (max-width: 600px){._drawer_zs4pc_2{--drawer-width: 100%}._drawer_zs4pc_2._bottom_zs4pc_140{--drawer-width: calc(100% - var(--mimir-space-m))}}._overlay_zs4pc_213{--overlay-z-index: 9990;position:fixed;top:0;left:0;z-index:9990;z-index:var(--overlay-z-index);width:100%;height:100%;background-color:#0009;opacity:0;-webkit-transition:all .3s ease;transition:all .3s ease;pointer-events:none}._overlay_zs4pc_213._opened_zs4pc_157{opacity:1;-webkit-transition:all .3s ease;transition:all .3s ease;pointer-events:auto}._overlay_zs4pc_213._opened_zs4pc_157._unmount_zs4pc_231{z-index:var(--overlay-z-index);-webkit-appearance:none;-moz-appearance:none;appearance:none}._overlay_zs4pc_213._is-closing_zs4pc_176{opacity:0;-webkit-transition:all .3s ease;transition:all .3s ease}._overlay_zs4pc_213._unmount_zs4pc_231{z-index:-1;-webkit-appearance:none;-moz-appearance:none;appearance:none}
|
@@ -1,39 +1,39 @@
|
|
1
|
-
import { jsxs as
|
1
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
2
2
|
import { c as t } from "../../index-DIxK0V-G.js";
|
3
|
-
import { forwardRef as
|
3
|
+
import { forwardRef as se, useState as z, useRef as L, useEffect as M, useCallback as C } from "react";
|
4
4
|
import { EDrawerPosition as R } from "./constants.js";
|
5
5
|
import { useContainer as ne } from "./hooks.js";
|
6
|
-
import { ScrollWrapper as
|
6
|
+
import { ScrollWrapper as re } from "./ScrollWrapper/index.js";
|
7
7
|
import { useMediaQuery as ie } from "../../hooks/useMediaQuery/useMediaQuery.js";
|
8
8
|
import { EMediaQuery as ae } from "../../hooks/useMediaQuery/constants.js";
|
9
|
-
import { useLockBodyScroll as
|
10
|
-
import { useResizeObserver as
|
9
|
+
import { useLockBodyScroll as ce } from "../../hooks/useLockBodyScroll/useLockBodyScroll.js";
|
10
|
+
import { useResizeObserver as le } from "../../hooks/useResizeObserver/useResizeObserver.js";
|
11
11
|
import { Button as H } from "../Button/Button.js";
|
12
|
-
import { EButtonVariantDefault as de, EButtonSize as
|
12
|
+
import { EButtonVariantDefault as de, EButtonSize as l } from "../Button/constants.js";
|
13
13
|
import { Loader as ue } from "../Loader/Loader.js";
|
14
14
|
import { Portal as me } from "../Portal/Portal.js";
|
15
15
|
import { EScrollBarVariant as fe, EScrollBarSize as _e } from "../ScrollBar/constants.js";
|
16
|
-
import '../../assets/Drawer.css';const
|
17
|
-
drawerContainer:
|
16
|
+
import '../../assets/Drawer.css';const pe = "_drawerContainer_zs4pc_2", he = "_drawer_zs4pc_2", ze = "_content_zs4pc_31", Ce = "_header_zs4pc_46", ge = "_title_zs4pc_60", we = "_space_zs4pc_74", ye = "_inner_zs4pc_85", ve = "_button_zs4pc_101", be = "_footer_zs4pc_106", Ne = "_left_zs4pc_122", ke = "_right_zs4pc_126", Se = "_full_zs4pc_130", Be = "_bottom_zs4pc_140", Ee = "_opened_zs4pc_157", Ie = "_overlay_zs4pc_213", Oe = "_unmount_zs4pc_231", e = {
|
17
|
+
drawerContainer: pe,
|
18
18
|
drawer: he,
|
19
|
-
content:
|
20
|
-
header:
|
21
|
-
"sticky-header": "_sticky-
|
22
|
-
title:
|
23
|
-
space:
|
24
|
-
inner:
|
25
|
-
"is-loading": "_is-
|
26
|
-
button:
|
19
|
+
content: ze,
|
20
|
+
header: Ce,
|
21
|
+
"sticky-header": "_sticky-header_zs4pc_54",
|
22
|
+
title: ge,
|
23
|
+
space: we,
|
24
|
+
inner: ye,
|
25
|
+
"is-loading": "_is-loading_zs4pc_90",
|
26
|
+
button: ve,
|
27
27
|
footer: be,
|
28
|
-
"has-scroll": "_has-
|
29
|
-
"footer-button": "_footer-
|
28
|
+
"has-scroll": "_has-scroll_zs4pc_115",
|
29
|
+
"footer-button": "_footer-button_zs4pc_118",
|
30
30
|
left: Ne,
|
31
31
|
right: ke,
|
32
32
|
full: Se,
|
33
33
|
bottom: Be,
|
34
|
-
"full-bottom-height": "_full-bottom-
|
34
|
+
"full-bottom-height": "_full-bottom-height_zs4pc_151",
|
35
35
|
opened: Ee,
|
36
|
-
"is-closing": "_is-
|
36
|
+
"is-closing": "_is-closing_zs4pc_176",
|
37
37
|
overlay: Ie,
|
38
38
|
unmount: Oe
|
39
39
|
}, Le = 300, Me = (d) => d ? {
|
@@ -45,7 +45,7 @@ import '../../assets/Drawer.css';const ve = "_drawerContainer_1rv8z_2", he = "_d
|
|
45
45
|
position: "absolute",
|
46
46
|
zIndex: 90
|
47
47
|
}
|
48
|
-
} : {}, qe =
|
48
|
+
} : {}, qe = se(
|
49
49
|
(d, T) => {
|
50
50
|
const {
|
51
51
|
as: x = "div",
|
@@ -53,8 +53,8 @@ import '../../assets/Drawer.css';const ve = "_drawerContainer_1rv8z_2", he = "_d
|
|
53
53
|
onClose: u,
|
54
54
|
title: D,
|
55
55
|
className: A,
|
56
|
-
unmount:
|
57
|
-
isLoading:
|
56
|
+
unmount: g = !0,
|
57
|
+
isLoading: r = !1,
|
58
58
|
stickyHeader: P,
|
59
59
|
fullBottomHeight: X = !1,
|
60
60
|
position: m = R.RIGHT,
|
@@ -67,13 +67,13 @@ import '../../assets/Drawer.css';const ve = "_drawerContainer_1rv8z_2", he = "_d
|
|
67
67
|
classNameDrawerContainer: F,
|
68
68
|
classNameContent: K,
|
69
69
|
classNameFooter: Y,
|
70
|
-
closeOnClickOutside:
|
71
|
-
showCloseButton:
|
70
|
+
closeOnClickOutside: w = !0,
|
71
|
+
showCloseButton: y = !0,
|
72
72
|
getContainer: _,
|
73
73
|
...q
|
74
|
-
} = d, [
|
74
|
+
} = d, [v, b] = z(!1), [J, N] = z(!1), k = L(), p = ie(ae.XS1), { ref: U } = le({
|
75
75
|
enabled: m === R.BOTTOM
|
76
|
-
}), S = ne(_), i = L(null), [Z, $] =
|
76
|
+
}), S = ne(_), i = L(null), [Z, $] = z(!1);
|
77
77
|
M(() => {
|
78
78
|
const a = () => {
|
79
79
|
if (i.current) {
|
@@ -86,39 +86,39 @@ import '../../assets/Drawer.css';const ve = "_drawerContainer_1rv8z_2", he = "_d
|
|
86
86
|
return i.current && O.observe(i.current), () => {
|
87
87
|
O.disconnect();
|
88
88
|
};
|
89
|
-
}, [n,
|
90
|
-
on: n && !
|
89
|
+
}, [n, r]), ce({
|
90
|
+
on: n && !v,
|
91
91
|
paddingRight: j
|
92
92
|
});
|
93
|
-
const
|
93
|
+
const s = C(() => {
|
94
94
|
u && (b(!0), k.current = setTimeout(() => {
|
95
95
|
u(), b(!1);
|
96
96
|
}, Le));
|
97
|
-
}, [u]), ee =
|
98
|
-
|
99
|
-
}, [
|
97
|
+
}, [u]), ee = C(() => {
|
98
|
+
w && s();
|
99
|
+
}, [w, s]), h = C(
|
100
100
|
(a) => {
|
101
|
-
a.key === "Escape" &&
|
101
|
+
a.key === "Escape" && s();
|
102
102
|
},
|
103
|
-
[
|
103
|
+
[s]
|
104
104
|
);
|
105
105
|
M(() => (n && (N(!0), window.addEventListener("keydown", h)), () => {
|
106
106
|
N(!1), clearTimeout(k.current), window.removeEventListener("keydown", h);
|
107
107
|
}), [n, h]);
|
108
108
|
const B = {
|
109
109
|
[e.opened]: J,
|
110
|
-
[e["is-closing"]]:
|
110
|
+
[e["is-closing"]]: v,
|
111
111
|
[e["full-bottom-height"]]: X,
|
112
|
-
[e["is-loading"]]:
|
112
|
+
[e["is-loading"]]: r
|
113
113
|
};
|
114
|
-
if (!n &&
|
114
|
+
if (!n && g)
|
115
115
|
return null;
|
116
|
-
const E = Me(_ !== void 0 && _ !== !1), I = /* @__PURE__ */
|
116
|
+
const E = Me(_ !== void 0 && _ !== !1), I = /* @__PURE__ */ c(
|
117
117
|
"div",
|
118
118
|
{
|
119
119
|
className: t(e.drawerContainer, F),
|
120
120
|
children: [
|
121
|
-
/* @__PURE__ */
|
121
|
+
/* @__PURE__ */ c(
|
122
122
|
x,
|
123
123
|
{
|
124
124
|
ref: T,
|
@@ -128,7 +128,7 @@ import '../../assets/Drawer.css';const ve = "_drawerContainer_1rv8z_2", he = "_d
|
|
128
128
|
className: t(e.drawer, e[m], B, A),
|
129
129
|
...q,
|
130
130
|
children: [
|
131
|
-
/* @__PURE__ */
|
131
|
+
/* @__PURE__ */ c(
|
132
132
|
"section",
|
133
133
|
{
|
134
134
|
ref: U,
|
@@ -137,11 +137,11 @@ import '../../assets/Drawer.css';const ve = "_drawerContainer_1rv8z_2", he = "_d
|
|
137
137
|
K,
|
138
138
|
e[m],
|
139
139
|
{
|
140
|
-
[e["is-loading"]]: !!
|
140
|
+
[e["is-loading"]]: !!r
|
141
141
|
}
|
142
142
|
),
|
143
143
|
children: [
|
144
|
-
/* @__PURE__ */
|
144
|
+
/* @__PURE__ */ c(
|
145
145
|
"header",
|
146
146
|
{
|
147
147
|
className: t(e.header, V, {
|
@@ -149,14 +149,14 @@ import '../../assets/Drawer.css';const ve = "_drawerContainer_1rv8z_2", he = "_d
|
|
149
149
|
}),
|
150
150
|
children: [
|
151
151
|
/* @__PURE__ */ o("h2", { className: t(e.title, Q), children: D }),
|
152
|
-
/* @__PURE__ */ o("div", { className: e.space, children:
|
152
|
+
/* @__PURE__ */ o("div", { className: e.space, children: y && /* @__PURE__ */ o(
|
153
153
|
H,
|
154
154
|
{
|
155
155
|
variant: de.SecondaryWhite,
|
156
156
|
isIconButton: !0,
|
157
|
-
size:
|
157
|
+
size: p ? l.S : l.M,
|
158
158
|
iconName: "Close16px",
|
159
|
-
onClick:
|
159
|
+
onClick: s,
|
160
160
|
className: e.button
|
161
161
|
}
|
162
162
|
) })
|
@@ -164,19 +164,19 @@ import '../../assets/Drawer.css';const ve = "_drawerContainer_1rv8z_2", he = "_d
|
|
164
164
|
}
|
165
165
|
),
|
166
166
|
/* @__PURE__ */ o(
|
167
|
-
|
167
|
+
re,
|
168
168
|
{
|
169
169
|
ref: i,
|
170
170
|
className: t(
|
171
171
|
e.inner,
|
172
172
|
{
|
173
|
-
[e["is-loading"]]: !!
|
173
|
+
[e["is-loading"]]: !!r
|
174
174
|
},
|
175
175
|
W
|
176
176
|
),
|
177
177
|
variant: fe.LIGHT,
|
178
178
|
size: _e.M,
|
179
|
-
children:
|
179
|
+
children: r ? /* @__PURE__ */ o(ue, {}) : G
|
180
180
|
}
|
181
181
|
)
|
182
182
|
]
|
@@ -188,12 +188,12 @@ import '../../assets/Drawer.css';const ve = "_drawerContainer_1rv8z_2", he = "_d
|
|
188
188
|
className: t(e.footer, Y, {
|
189
189
|
[e["has-scroll"]]: Z
|
190
190
|
}),
|
191
|
-
children: typeof f == "function" ? f({ handleClose:
|
191
|
+
children: typeof f == "function" ? f({ handleClose: s }) : f || y && /* @__PURE__ */ o(
|
192
192
|
H,
|
193
193
|
{
|
194
|
-
size:
|
195
|
-
full:
|
196
|
-
onClick:
|
194
|
+
size: p ? l.L : l.XXL,
|
195
|
+
full: p,
|
196
|
+
onClick: s,
|
197
197
|
className: e["footer-button"],
|
198
198
|
children: "Закрыть"
|
199
199
|
}
|
@@ -209,7 +209,7 @@ import '../../assets/Drawer.css';const ve = "_drawerContainer_1rv8z_2", he = "_d
|
|
209
209
|
className: t(
|
210
210
|
e.overlay,
|
211
211
|
{
|
212
|
-
[e.unmount]: !
|
212
|
+
[e.unmount]: !g
|
213
213
|
},
|
214
214
|
B
|
215
215
|
),
|
@@ -1,58 +1,67 @@
|
|
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 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-IzZ6B9kw.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,
|
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
|
-
t ||
|
20
|
-
}, [t,
|
21
|
-
t &&
|
22
|
-
}, [t]), m =
|
23
|
-
t &&
|
24
|
-
}, [t]),
|
25
|
-
t &&
|
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);
|
26
32
|
}, [t]);
|
27
|
-
return /* @__PURE__ */
|
28
|
-
/* @__PURE__ */
|
29
|
-
|
33
|
+
return /* @__PURE__ */ d("div", { className: s.wrapper, "data-testid": "input-password-wrapper", children: [
|
34
|
+
/* @__PURE__ */ n(
|
35
|
+
T,
|
30
36
|
{
|
31
|
-
ref:
|
32
|
-
className:
|
33
|
-
wrapperClassName:
|
34
|
-
size:
|
35
|
-
type:
|
37
|
+
ref: c,
|
38
|
+
className: s.input,
|
39
|
+
wrapperClassName: s["input-wrapper"],
|
40
|
+
size: o,
|
41
|
+
type: r ? "text" : "password",
|
36
42
|
"data-testid": "password-input",
|
37
|
-
...
|
43
|
+
...p
|
38
44
|
}
|
39
45
|
),
|
40
|
-
/* @__PURE__ */
|
41
|
-
|
46
|
+
/* @__PURE__ */ n("div", { className: s["button-wrapper"], children: /* @__PURE__ */ n(
|
47
|
+
M,
|
42
48
|
{
|
43
49
|
clear: !0,
|
44
50
|
type: "button",
|
45
|
-
className:
|
46
|
-
onClick:
|
51
|
+
className: s.button,
|
52
|
+
onClick: i,
|
47
53
|
onMouseDown: u,
|
48
54
|
onMouseUp: m,
|
49
|
-
onMouseLeave:
|
55
|
+
onMouseLeave: f,
|
56
|
+
onTouchStart: _,
|
57
|
+
onTouchEnd: l,
|
58
|
+
onTouchCancel: b,
|
50
59
|
"data-testid": "eye-icon",
|
51
|
-
children: /* @__PURE__ */
|
52
|
-
|
60
|
+
children: /* @__PURE__ */ n(
|
61
|
+
C,
|
53
62
|
{
|
54
|
-
className:
|
55
|
-
[
|
63
|
+
className: w(s.icon, {
|
64
|
+
[s.show]: r
|
56
65
|
}),
|
57
66
|
iconName: "Eye24px"
|
58
67
|
}
|
@@ -63,7 +72,7 @@ import '../../assets/InputPassword.css';const M = "_input_7b9x2_2", y = "_wrappe
|
|
63
72
|
}
|
64
73
|
)
|
65
74
|
);
|
66
|
-
|
75
|
+
k.displayName = "InputPassword";
|
67
76
|
export {
|
68
|
-
|
77
|
+
k as InputPassword
|
69
78
|
};
|