mimir-ui-kit 1.26.0 → 1.26.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/AccordionItem.css +1 -1
- package/dist/assets/InputPassword.css +1 -1
- package/dist/assets/OtpInput.css +1 -1
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Accordion/AccordionItem/AccordionItem.d.ts +1 -1
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +4 -4
- package/dist/components/Drawer/Drawer.d.ts +5 -1
- package/dist/components/Drawer/Drawer.js +3 -2
- package/dist/components/InputPassword/InputPassword.js +20 -7
- package/dist/components/OtpInput/OtpInput.js +4 -4
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._item_fo923_2{display:flex;flex-direction:column;gap:var(--accordion-item-space);font-size:var(--accordion-item-font-size);border:none}._m_fo923_10{--accordion-item-space: var(--space-xs);--accordion-item-font-size: var(--size-text-l)}._s_fo923_15{--accordion-item-space: var(--space-2xs);--accordion-item-font-size: var(--size-text-m)}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._input_34v9n_2{padding-right:var(--space-3xl)}._wrapper_34v9n_6{position:relative;display:flex;align-items:center;border-radius:8px}._input-wrapper_34v9n_13{flex:1}._button-wrapper_34v9n_17{position:absolute;top:0;right:0;z-index:2;display:flex;width:44px;height:100%;max-height:var(--button-height-xxl)}._button_34v9n_17{align-self:center;background-color:transparent;border-radius:8px}._button_34v9n_17 ._icon_34v9n_33{color:var(--black-60);transition:all .15s ease;fill:var(--black-60)}._button_34v9n_17 ._icon_34v9n_33._show_34v9n_38{color:var(--sapphire-normal);fill:var(--sapphire-normal)}
|
package/dist/assets/OtpInput.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._otp_19unm_3{display:flex;align-items:center;width:100%;-moz-column-gap:var(--space-xs);column-gap:var(--space-xs)}@media (max-width: 768px){._otp_19unm_3{-moz-column-gap:4.65px;column-gap:4.65px}}._otp_19unm_3 ._input-wrapper_19unm_14{flex:0 0 64px;padding:0}@media (max-width: 767.9px){._otp_19unm_3 ._input-wrapper_19unm_14{flex:0 0 48px}}._input_19unm_14{text-align:center}._separator_19unm_28{display:block;flex:0 0 54px;align-self:center;height:1px;margin:0 var(--space-xs);background-color:var(--black-100)}
|
@@ -7,7 +7,7 @@ export type TAccordionProps = {
|
|
7
7
|
/** Содержимое аккордеона */
|
8
8
|
children: ReactNode;
|
9
9
|
/** Размер аккордеона */
|
10
|
-
size?: EAccordionSize
|
10
|
+
size?: EAccordionSize | `${EAccordionSize}`;
|
11
11
|
/** Преобразование заголовка в верхний регистр */
|
12
12
|
titleUppercase?: boolean;
|
13
13
|
/** Тип кнопки аккордеона */
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
2
|
import { c as classNames } from "../../../index-CweZ_OcN.js";
|
3
|
-
import '../../../assets/AccordionItem.css';const item = "
|
4
|
-
const m = "
|
5
|
-
const
|
3
|
+
import '../../../assets/AccordionItem.css';const item = "_item_fo923_2";
|
4
|
+
const m = "_m_fo923_10";
|
5
|
+
const s = "_s_fo923_15";
|
6
6
|
const cls = {
|
7
7
|
item,
|
8
8
|
m,
|
9
|
-
|
9
|
+
s
|
10
10
|
};
|
11
11
|
const AccordionItem = ({ children, size }) => {
|
12
12
|
return /* @__PURE__ */ jsx("div", { className: classNames(cls.item, cls[size]), children });
|
@@ -52,9 +52,13 @@ type TProps = {
|
|
52
52
|
* Дополнительный класс для inner.
|
53
53
|
*/
|
54
54
|
classNameInner?: string;
|
55
|
+
/**
|
56
|
+
* Дополнительный класс для footer.
|
57
|
+
*/
|
58
|
+
classNameFooter?: string;
|
55
59
|
};
|
56
60
|
/**
|
57
61
|
* Компонент шторки, который может выезжать слева, справа или внизу.
|
58
62
|
*/
|
59
|
-
export declare const Drawer: ({ isOpen, onClose, title, className, unmount, isLoading, stickyHeader, fullBottomHeight, position, paddingRight, footer, children, classNameInner }: PropsWithChildren<TProps>) => import("react/jsx-runtime").JSX.Element | null;
|
63
|
+
export declare const Drawer: ({ isOpen, onClose, title, className, unmount, isLoading, stickyHeader, fullBottomHeight, position, paddingRight, footer, children, classNameInner, classNameFooter }: PropsWithChildren<TProps>) => import("react/jsx-runtime").JSX.Element | null;
|
60
64
|
export {};
|
@@ -61,7 +61,8 @@ const Drawer = ({
|
|
61
61
|
paddingRight = 8,
|
62
62
|
footer: footer2,
|
63
63
|
children,
|
64
|
-
classNameInner
|
64
|
+
classNameInner,
|
65
|
+
classNameFooter
|
65
66
|
}) => {
|
66
67
|
const [isClosing, setIsClosing] = useState(false);
|
67
68
|
const [isMounted, setIsMounted] = useState(false);
|
@@ -152,7 +153,7 @@ const Drawer = ({
|
|
152
153
|
}
|
153
154
|
),
|
154
155
|
/* @__PURE__ */ jsx("div", { className: classNames(cls.inner, classNameInner), children }),
|
155
|
-
/* @__PURE__ */ jsx("footer", { className: cls.footer, children: typeof footer2 === "function" ? footer2({ handleClose }) : footer2 || /* @__PURE__ */ jsx(
|
156
|
+
/* @__PURE__ */ jsx("footer", { className: classNames(cls.footer, classNameFooter), children: typeof footer2 === "function" ? footer2({ handleClose }) : footer2 || /* @__PURE__ */ jsx(
|
156
157
|
Button,
|
157
158
|
{
|
158
159
|
size: isMobile ? EButtonSize.M : EButtonSize.XXL,
|
@@ -1,17 +1,22 @@
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
2
|
+
import { c as classNames } from "../../index-CweZ_OcN.js";
|
2
3
|
import { memo, forwardRef, useState } from "react";
|
3
4
|
import { Icon } from "../../icons/Icon.js";
|
4
5
|
import { Button } from "../Button/Button.js";
|
5
6
|
import { I as Input } from "../../Input-6mudFqTb.js";
|
6
|
-
import '../../assets/InputPassword.css';const input = "
|
7
|
-
const wrapper = "
|
8
|
-
const button = "
|
7
|
+
import '../../assets/InputPassword.css';const input = "_input_34v9n_2";
|
8
|
+
const wrapper = "_wrapper_34v9n_6";
|
9
|
+
const button = "_button_34v9n_17";
|
10
|
+
const icon = "_icon_34v9n_33";
|
11
|
+
const show = "_show_34v9n_38";
|
9
12
|
const cls = {
|
10
13
|
input,
|
11
14
|
wrapper,
|
12
|
-
"input-wrapper": "_input-
|
13
|
-
"button-wrapper": "_button-
|
14
|
-
button
|
15
|
+
"input-wrapper": "_input-wrapper_34v9n_13",
|
16
|
+
"button-wrapper": "_button-wrapper_34v9n_17",
|
17
|
+
button,
|
18
|
+
icon,
|
19
|
+
show
|
15
20
|
};
|
16
21
|
const InputPassword = memo(
|
17
22
|
forwardRef(
|
@@ -37,7 +42,15 @@ const InputPassword = memo(
|
|
37
42
|
type: "button",
|
38
43
|
className: cls.button,
|
39
44
|
onClick: handleClick,
|
40
|
-
children: /* @__PURE__ */ jsx(
|
45
|
+
children: /* @__PURE__ */ jsx(
|
46
|
+
Icon,
|
47
|
+
{
|
48
|
+
className: classNames(cls.icon, {
|
49
|
+
[cls.show]: showPassword
|
50
|
+
}),
|
51
|
+
iconName: "Eye24px"
|
52
|
+
}
|
53
|
+
)
|
41
54
|
}
|
42
55
|
) })
|
43
56
|
] });
|
@@ -4,12 +4,12 @@ import { forwardRef, useImperativeHandle, Fragment } from "react";
|
|
4
4
|
import { ITEMS_PER_SEPARATOR, DEFAULT_VALUE_LENGTH } from "./constants.js";
|
5
5
|
import { useOTPInput } from "./hooks.js";
|
6
6
|
import { I as Input } from "../../Input-6mudFqTb.js";
|
7
|
-
import '../../assets/OtpInput.css';const otp = "
|
8
|
-
const input = "
|
9
|
-
const separator = "
|
7
|
+
import '../../assets/OtpInput.css';const otp = "_otp_19unm_3";
|
8
|
+
const input = "_input_19unm_14";
|
9
|
+
const separator = "_separator_19unm_28";
|
10
10
|
const cls = {
|
11
11
|
otp,
|
12
|
-
"input-wrapper": "_input-
|
12
|
+
"input-wrapper": "_input-wrapper_19unm_14",
|
13
13
|
input,
|
14
14
|
separator
|
15
15
|
};
|