mimir-ui-kit 1.10.0 → 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +62 -62
- package/dist/DatePickerModal-DUUCHAWF.js +204 -0
- package/dist/{NavigationButtons-B8tMfqrg.js → NavigationButtons-DuOoqaPo.js} +20 -20
- package/dist/assets/Button.css +1 -1
- package/dist/assets/DatePickerModal.css +1 -0
- package/dist/assets/Drawer.css +1 -0
- package/dist/assets/Input.css +1 -1
- package/dist/assets/MergedButton.css +1 -1
- package/dist/assets/OtpInput.css +1 -1
- package/dist/assets/RadioGroup.css +1 -1
- package/dist/assets/SelectSearch.css +1 -0
- package/dist/assets/Slider.css +1 -1
- package/dist/assets/Switch.css +1 -0
- package/dist/assets/Tag.css +1 -0
- package/dist/assets/Timer.css +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/Button/Button.d.ts +0 -1
- package/dist/components/Button/Button.js +25 -25
- package/dist/components/DatePicker/DatePicker.d.ts +44 -0
- package/dist/components/DatePicker/DatePicker.js +69 -0
- package/dist/components/DatePicker/DatePickerModal.d.ts +8 -0
- package/dist/components/DatePicker/DatePickerModal.js +9 -0
- package/dist/components/DatePicker/constants.d.ts +6 -0
- package/dist/components/DatePicker/constants.js +11 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +4 -0
- package/dist/components/Drawer/Drawer.d.ts +38 -0
- package/dist/components/Drawer/Drawer.js +144 -0
- package/dist/components/Drawer/constants.d.ts +5 -0
- package/dist/components/Drawer/constants.js +9 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Drawer/index.js +6 -0
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/Input/Input.js +17 -16
- package/dist/components/InputPassword/InputPassword.js +2 -2
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/MergedButton/MergedButton.d.ts +1 -1
- package/dist/components/MergedButton/MergedButton.js +17 -19
- package/dist/components/OtpInput/OtpInput.js +6 -6
- package/dist/components/Portal/Portal.d.ts +7 -0
- package/dist/components/Portal/Portal.js +10 -0
- package/dist/components/Portal/index.d.ts +1 -0
- package/dist/components/Portal/index.js +4 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +18 -2
- package/dist/components/RadioGroup/RadioGroup.js +127 -1061
- package/dist/components/RadioGroup/index.d.ts +1 -1
- package/dist/components/SelectSearch/SelectSearch.d.ts +15 -0
- package/dist/components/SelectSearch/SelectSearch.js +3961 -0
- package/dist/components/SelectSearch/constants.d.ts +4 -0
- package/dist/components/SelectSearch/constants.js +8 -0
- package/dist/components/SelectSearch/index.d.ts +2 -0
- package/dist/components/SelectSearch/index.js +6 -0
- package/dist/components/Slider/NavigationButtons/NavigationButtons.js +1 -1
- package/dist/components/Slider/NavigationButtons/index.js +1 -1
- package/dist/components/Slider/Slider.js +10 -10
- package/dist/components/Switch/Switch.d.ts +294 -0
- package/dist/components/Switch/Switch.js +57 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +4 -0
- package/dist/components/Tag/Tag.d.ts +19 -57
- package/dist/components/Tag/Tag.js +39 -84
- package/dist/components/Tag/constants.d.ts +5 -37
- package/dist/components/Tag/constants.js +13 -53
- package/dist/components/Tag/index.d.ts +2 -3
- package/dist/components/Tag/index.js +5 -6
- package/dist/components/Tag/types.d.ts +0 -6
- package/dist/components/Timer/Timer.d.ts +24 -0
- package/dist/components/Timer/Timer.js +29 -0
- package/dist/components/Timer/index.d.ts +1 -0
- package/dist/components/Timer/index.js +4 -0
- package/dist/components/index.d.ts +11 -1
- package/dist/components/index.js +19 -0
- package/dist/focus-management-CFDo6ZSc.js +91 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +7 -1
- package/dist/hooks/useClickOutside/index.d.ts +1 -0
- package/dist/hooks/useClickOutside/index.js +4 -0
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +7 -0
- package/dist/hooks/useClickOutside/useClickOutside.js +25 -0
- package/dist/hooks/useInterval/index.d.ts +1 -0
- package/dist/hooks/useInterval/index.js +4 -0
- package/dist/hooks/useInterval/useInterval.d.ts +1 -0
- package/dist/hooks/useInterval/useInterval.js +17 -0
- package/dist/hooks/useLockBodyScroll/index.d.ts +1 -0
- package/dist/hooks/useLockBodyScroll/index.js +4 -0
- package/dist/hooks/useLockBodyScroll/useLockBodyScroll.d.ts +6 -0
- package/dist/hooks/useLockBodyScroll/useLockBodyScroll.js +20 -0
- package/dist/hooks/useTimer/index.d.ts +18 -0
- package/dist/hooks/useTimer/index.js +83 -0
- package/dist/hooks/useTimer/useTimer.d.ts +18 -0
- package/dist/hooks/useTimer/useTimer.js +87 -0
- package/dist/hooks/useTimer/utils.d.ts +24 -0
- package/dist/hooks/useTimer/utils.js +88 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +28 -1
- package/dist/label-BXAcSLy0.js +913 -0
- package/dist/use-active-press-9MCrfRZk.js +31 -0
- package/dist/utils/formating/Date.d.ts +1 -0
- package/dist/utils/formating/Date.js +26 -0
- package/dist/utils/formating/Month.d.ts +8 -0
- package/dist/utils/formating/Month.js +80 -0
- package/dist/utils/formating/Numbers.d.ts +6 -0
- package/dist/utils/formating/Numbers.js +8 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.js +11 -0
- package/package.json +128 -128
@@ -1,40 +1,38 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { memo } from "react";
|
3
2
|
import { c as classNames } from "../../index-CweZ_OcN.js";
|
4
|
-
import {
|
3
|
+
import { memo } from "react";
|
5
4
|
import { EMergedButtonVariantRound } from "./constants.js";
|
6
|
-
import
|
7
|
-
const
|
8
|
-
const gray = "
|
9
|
-
const white = "
|
10
|
-
const transparent = "
|
5
|
+
import { Button } from "../Button/Button.js";
|
6
|
+
import '../../assets/MergedButton.css';const buttons = "_buttons_cnsdp_2";
|
7
|
+
const gray = "_gray_cnsdp_28";
|
8
|
+
const white = "_white_cnsdp_36";
|
9
|
+
const transparent = "_transparent_cnsdp_43";
|
11
10
|
const cls = {
|
12
11
|
buttons,
|
13
|
-
button,
|
12
|
+
"merged-button": "_merged-button_cnsdp_6",
|
14
13
|
gray,
|
15
14
|
white,
|
16
15
|
transparent,
|
17
|
-
"is-icon": "_is-
|
16
|
+
"is-icon": "_is-icon_cnsdp_52"
|
18
17
|
};
|
19
18
|
const MergedButton = memo(({ buttons: buttons2 }) => {
|
20
19
|
return /* @__PURE__ */ jsx("div", { className: cls.buttons, children: buttons2.map(
|
21
|
-
({ variant = EMergedButtonVariantRound.White, disabled, ...
|
20
|
+
({ variant = EMergedButtonVariantRound.White, disabled, ...button }, index) => {
|
22
21
|
const buttonProps = {
|
23
|
-
...
|
24
|
-
isIconButton:
|
25
|
-
iconName:
|
26
|
-
leftIcon:
|
27
|
-
rightIcon:
|
22
|
+
...button,
|
23
|
+
isIconButton: button.isIconButton ?? false,
|
24
|
+
iconName: button.isIconButton ? button.iconName : void 0,
|
25
|
+
leftIcon: button.isIconButton ? void 0 : button.leftIcon,
|
26
|
+
rightIcon: button.isIconButton ? void 0 : button.rightIcon
|
28
27
|
};
|
29
28
|
const className = classNames(
|
30
|
-
cls
|
31
|
-
cls.clear,
|
29
|
+
cls["merged-button"],
|
32
30
|
{
|
33
31
|
[cls[variant]]: !disabled,
|
34
32
|
[cls.disabled]: disabled,
|
35
|
-
[cls["is-icon"]]:
|
33
|
+
[cls["is-icon"]]: button.isIconButton
|
36
34
|
},
|
37
|
-
|
35
|
+
button.className
|
38
36
|
);
|
39
37
|
return /* @__PURE__ */ jsx(
|
40
38
|
Button,
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
-
import { forwardRef, useImperativeHandle, Fragment } from "react";
|
3
2
|
import { c as classNames } from "../../index-CweZ_OcN.js";
|
4
|
-
import {
|
3
|
+
import { forwardRef, useImperativeHandle, Fragment } from "react";
|
5
4
|
import { ITEMS_PER_SEPARATOR, DEFAULT_VALUE_LENGTH } from "./constants.js";
|
6
5
|
import { useOTPInput } from "./hooks.js";
|
7
|
-
import
|
8
|
-
const
|
9
|
-
const
|
6
|
+
import { Input } from "../Input/Input.js";
|
7
|
+
import '../../assets/OtpInput.css';const otp = "_otp_1005h_3";
|
8
|
+
const input = "_input_1005h_15";
|
9
|
+
const separator = "_separator_1005h_29";
|
10
10
|
const cls = {
|
11
11
|
otp,
|
12
|
-
"input-wrapper": "_input-
|
12
|
+
"input-wrapper": "_input-wrapper_1005h_15",
|
13
13
|
input,
|
14
14
|
separator
|
15
15
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Portal } from './Portal';
|
@@ -7,7 +7,7 @@ export interface TRadioOption {
|
|
7
7
|
/**
|
8
8
|
* Свойства компонента RadioGroup.
|
9
9
|
*/
|
10
|
-
export type
|
10
|
+
export type TRadioGroupProps = Omit<RadioGroupProps, 'value'> & {
|
11
11
|
/**
|
12
12
|
* Массив опций для радиогруппы.
|
13
13
|
* Каждая опция должна содержать значение и метку.
|
@@ -27,4 +27,20 @@ export type TProps = Omit<RadioGroupProps, 'value'> & {
|
|
27
27
|
/**
|
28
28
|
* Компонент RadioGroup для выбора одной опции из нескольких.
|
29
29
|
*/
|
30
|
-
export declare
|
30
|
+
export declare const RadioGroup: import('react').ForwardRefExoticComponent<Omit<RadioGroupProps, "value"> & {
|
31
|
+
/**
|
32
|
+
* Массив опций для радиогруппы.
|
33
|
+
* Каждая опция должна содержать значение и метку.
|
34
|
+
*/
|
35
|
+
options: TRadioOption[];
|
36
|
+
/**
|
37
|
+
* Выбранное значение опции.
|
38
|
+
* Может быть необязательным, если нет выбранного значения.
|
39
|
+
*/
|
40
|
+
value?: TRadioOption["value"];
|
41
|
+
/**
|
42
|
+
* Текст метки, отображаемой над радиогруппой.
|
43
|
+
* Может быть необязательным.
|
44
|
+
*/
|
45
|
+
label?: string;
|
46
|
+
} & import('react').RefAttributes<HTMLElement>>;
|