mimir-ui-kit 1.13.7 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +62 -62
- package/dist/{NavigationButtons-DuOoqaPo.js → NavigationButtons-B8tMfqrg.js} +20 -20
- package/dist/assets/Button.css +1 -1
- 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/Slider.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/components/Button/Button.d.ts +1 -0
- package/dist/components/Button/Button.js +25 -26
- package/dist/components/Button/constants.d.ts +1 -2
- package/dist/components/Button/constants.js +0 -1
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/Input/Input.js +16 -17
- 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 +19 -17
- package/dist/components/OtpInput/OtpInput.js +6 -6
- package/dist/components/RadioGroup/RadioGroup.d.ts +2 -18
- package/dist/components/RadioGroup/RadioGroup.js +1061 -130
- package/dist/components/RadioGroup/index.d.ts +1 -1
- 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/Tag/Tag.d.ts +57 -19
- package/dist/components/Tag/Tag.js +84 -39
- package/dist/components/Tag/constants.d.ts +37 -5
- package/dist/components/Tag/constants.js +53 -13
- package/dist/components/Tag/index.d.ts +3 -2
- package/dist/components/Tag/index.js +6 -5
- package/dist/components/Tag/types.d.ts +6 -0
- package/dist/components/index.d.ts +1 -15
- package/dist/components/index.js +0 -29
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/index.js +1 -7
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/index.d.ts +0 -1
- package/dist/icons/components/index.js +559 -560
- package/dist/{index-Cxiikb7g.js → index-_ACzPKPw.js} +558 -561
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -38
- package/package.json +128 -128
- package/dist/DatePickerModal-BM0BgzTb.js +0 -204
- package/dist/assets/Accordion.css +0 -1
- package/dist/assets/AccordionItem.css +0 -1
- package/dist/assets/DatePickerModal.css +0 -1
- package/dist/assets/Drawer.css +0 -1
- package/dist/assets/ListPhotos.css +0 -1
- package/dist/assets/SelectSearch.css +0 -1
- package/dist/assets/Switch.css +0 -1
- package/dist/assets/TabTrail.css +0 -1
- package/dist/assets/Tag.css +0 -1
- package/dist/assets/Timer.css +0 -1
- package/dist/assets/Uploader.css +0 -1
- package/dist/assets/UploaderPhotos.css +0 -1
- package/dist/bugs-CSBdWk0R.js +0 -18
- package/dist/components/Accordion/Accordion.d.ts +0 -10
- package/dist/components/Accordion/Accordion.js +0 -176
- package/dist/components/Accordion/AccordionItem/AccordionItem.d.ts +0 -8
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +0 -16
- package/dist/components/Accordion/AccordionItem/index.d.ts +0 -1
- package/dist/components/Accordion/AccordionItem/index.js +0 -4
- package/dist/components/Accordion/constants.d.ts +0 -8
- package/dist/components/Accordion/constants.js +0 -14
- package/dist/components/Accordion/index.d.ts +0 -3
- package/dist/components/Accordion/index.js +0 -8
- package/dist/components/DatePicker/DatePicker.d.ts +0 -44
- package/dist/components/DatePicker/DatePicker.js +0 -69
- package/dist/components/DatePicker/DatePickerModal.d.ts +0 -8
- package/dist/components/DatePicker/DatePickerModal.js +0 -9
- package/dist/components/DatePicker/constants.d.ts +0 -6
- package/dist/components/DatePicker/constants.js +0 -11
- package/dist/components/DatePicker/index.d.ts +0 -2
- package/dist/components/DatePicker/index.js +0 -4
- package/dist/components/Drawer/Drawer.d.ts +0 -38
- package/dist/components/Drawer/Drawer.js +0 -144
- package/dist/components/Drawer/constants.d.ts +0 -5
- package/dist/components/Drawer/constants.js +0 -9
- package/dist/components/Drawer/index.d.ts +0 -2
- package/dist/components/Drawer/index.js +0 -6
- package/dist/components/ListPhotos/ListPhotos.d.ts +0 -23
- package/dist/components/ListPhotos/ListPhotos.js +0 -33
- package/dist/components/ListPhotos/constants.d.ts +0 -3
- package/dist/components/ListPhotos/constants.js +0 -21
- package/dist/components/ListPhotos/index.d.ts +0 -2
- package/dist/components/ListPhotos/index.js +0 -4
- package/dist/components/Portal/Portal.d.ts +0 -7
- package/dist/components/Portal/Portal.js +0 -10
- package/dist/components/Portal/index.d.ts +0 -1
- package/dist/components/Portal/index.js +0 -4
- package/dist/components/SelectSearch/SelectSearch.d.ts +0 -15
- package/dist/components/SelectSearch/SelectSearch.js +0 -3876
- package/dist/components/SelectSearch/constants.d.ts +0 -4
- package/dist/components/SelectSearch/constants.js +0 -8
- package/dist/components/SelectSearch/index.d.ts +0 -2
- package/dist/components/SelectSearch/index.js +0 -6
- package/dist/components/Switch/Switch.d.ts +0 -294
- package/dist/components/Switch/Switch.js +0 -59
- package/dist/components/Switch/index.d.ts +0 -2
- package/dist/components/Switch/index.js +0 -4
- package/dist/components/TabTrail/TabButtons/TabButtons.d.ts +0 -8
- package/dist/components/TabTrail/TabButtons/TabButtons.js +0 -29
- package/dist/components/TabTrail/TabButtons/constants.d.ts +0 -8
- package/dist/components/TabTrail/TabButtons/constants.js +0 -14
- package/dist/components/TabTrail/TabButtons/index.d.ts +0 -1
- package/dist/components/TabTrail/TabButtons/index.js +0 -4
- package/dist/components/TabTrail/TabTrail.d.ts +0 -11
- package/dist/components/TabTrail/TabTrail.js +0 -282
- package/dist/components/TabTrail/constants.d.ts +0 -4
- package/dist/components/TabTrail/constants.js +0 -8
- package/dist/components/TabTrail/index.d.ts +0 -2
- package/dist/components/TabTrail/index.js +0 -6
- package/dist/components/Timer/Timer.d.ts +0 -24
- package/dist/components/Timer/Timer.js +0 -29
- package/dist/components/Timer/index.d.ts +0 -1
- package/dist/components/Timer/index.js +0 -4
- package/dist/components/Uploader/Uploader.d.ts +0 -30
- package/dist/components/Uploader/Uploader.js +0 -90
- package/dist/components/Uploader/constants.d.ts +0 -5
- package/dist/components/Uploader/constants.js +0 -16
- package/dist/components/Uploader/index.d.ts +0 -2
- package/dist/components/Uploader/index.js +0 -4
- package/dist/components/UploaderPhotos/UploaderPhotos.d.ts +0 -29
- package/dist/components/UploaderPhotos/UploaderPhotos.js +0 -46
- package/dist/components/UploaderPhotos/index.d.ts +0 -2
- package/dist/components/UploaderPhotos/index.js +0 -4
- package/dist/focus-management-1rQPII7Z.js +0 -77
- package/dist/hidden-BuVoeHNy.js +0 -13
- package/dist/hooks/useClickOutside/index.d.ts +0 -1
- package/dist/hooks/useClickOutside/index.js +0 -4
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +0 -7
- package/dist/hooks/useClickOutside/useClickOutside.js +0 -25
- package/dist/hooks/useInterval/index.d.ts +0 -1
- package/dist/hooks/useInterval/index.js +0 -4
- package/dist/hooks/useInterval/useInterval.d.ts +0 -1
- package/dist/hooks/useInterval/useInterval.js +0 -17
- package/dist/hooks/useLockBodyScroll/index.d.ts +0 -1
- package/dist/hooks/useLockBodyScroll/index.js +0 -4
- package/dist/hooks/useLockBodyScroll/useLockBodyScroll.d.ts +0 -6
- package/dist/hooks/useLockBodyScroll/useLockBodyScroll.js +0 -20
- package/dist/hooks/useTimer/index.d.ts +0 -18
- package/dist/hooks/useTimer/index.js +0 -83
- package/dist/hooks/useTimer/useTimer.d.ts +0 -18
- package/dist/hooks/useTimer/useTimer.js +0 -87
- package/dist/hooks/useTimer/utils.d.ts +0 -24
- package/dist/hooks/useTimer/utils.js +0 -88
- package/dist/icons/components/12px/Close12px.d.ts +0 -4
- package/dist/icons/components/12px/Close12px.js +0 -18
- package/dist/keyboard-B256ZoM-.js +0 -745
- package/dist/label-C_5Syaoj.js +0 -159
- package/dist/open-closed-CbXq00et.js +0 -93
- package/dist/use-active-press-B6yeSopF.js +0 -31
- package/dist/use-by-comparator-BUO78DGe.js +0 -16
- package/dist/use-resolve-button-type-B6LE6gU3.js +0 -19
- package/dist/utils/UUID4.d.ts +0 -1
- package/dist/utils/UUID4.js +0 -9
- package/dist/utils/formating/Date.d.ts +0 -1
- package/dist/utils/formating/Date.js +0 -26
- package/dist/utils/formating/Month.d.ts +0 -8
- package/dist/utils/formating/Month.js +0 -80
- package/dist/utils/formating/Numbers.d.ts +0 -6
- package/dist/utils/formating/Numbers.js +0 -8
- package/dist/utils/index.d.ts +0 -11
- package/dist/utils/index.js +0 -13
@@ -1,5 +1,5 @@
|
|
1
|
-
import { EMergedButtonVariantRound } from './constants';
|
2
1
|
import { TButtonProps } from '../Button';
|
2
|
+
import { EMergedButtonVariantRound } from './constants';
|
3
3
|
|
4
4
|
export type TButtonPropsWithoutStyles = Omit<TButtonProps, 'clear' | 'variant' | 'form'> & {
|
5
5
|
variant?: `${EMergedButtonVariantRound}` | EMergedButtonVariantRound;
|
@@ -1,38 +1,40 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { c as classNames } from "../../index-CweZ_OcN.js";
|
3
2
|
import { memo } from "react";
|
4
|
-
import {
|
3
|
+
import { c as classNames } from "../../index-CweZ_OcN.js";
|
5
4
|
import { Button } from "../Button/Button.js";
|
6
|
-
import
|
7
|
-
const
|
8
|
-
const
|
9
|
-
const
|
5
|
+
import { EMergedButtonVariantRound } from "./constants.js";
|
6
|
+
import '../../assets/MergedButton.css';const buttons = "_buttons_h653f_2";
|
7
|
+
const button = "_button_h653f_2";
|
8
|
+
const gray = "_gray_h653f_27";
|
9
|
+
const white = "_white_h653f_35";
|
10
|
+
const transparent = "_transparent_h653f_42";
|
10
11
|
const cls = {
|
11
12
|
buttons,
|
12
|
-
|
13
|
+
button,
|
13
14
|
gray,
|
14
15
|
white,
|
15
16
|
transparent,
|
16
|
-
"is-icon": "_is-
|
17
|
+
"is-icon": "_is-icon_h653f_51"
|
17
18
|
};
|
18
19
|
const MergedButton = memo(({ buttons: buttons2 }) => {
|
19
20
|
return /* @__PURE__ */ jsx("div", { className: cls.buttons, children: buttons2.map(
|
20
|
-
({ variant = EMergedButtonVariantRound.White, disabled, ...
|
21
|
+
({ variant = EMergedButtonVariantRound.White, disabled, ...button2 }, index) => {
|
21
22
|
const buttonProps = {
|
22
|
-
...
|
23
|
-
isIconButton:
|
24
|
-
iconName:
|
25
|
-
leftIcon:
|
26
|
-
rightIcon:
|
23
|
+
...button2,
|
24
|
+
isIconButton: button2.isIconButton ?? false,
|
25
|
+
iconName: button2.isIconButton ? button2.iconName : void 0,
|
26
|
+
leftIcon: button2.isIconButton ? void 0 : button2.leftIcon,
|
27
|
+
rightIcon: button2.isIconButton ? void 0 : button2.rightIcon
|
27
28
|
};
|
28
29
|
const className = classNames(
|
29
|
-
cls
|
30
|
+
cls.button,
|
31
|
+
cls.clear,
|
30
32
|
{
|
31
33
|
[cls[variant]]: !disabled,
|
32
34
|
[cls.disabled]: disabled,
|
33
|
-
[cls["is-icon"]]:
|
35
|
+
[cls["is-icon"]]: button2.isIconButton
|
34
36
|
},
|
35
|
-
|
37
|
+
button2.className
|
36
38
|
);
|
37
39
|
return /* @__PURE__ */ jsx(
|
38
40
|
Button,
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
-
import { c as classNames } from "../../index-CweZ_OcN.js";
|
3
2
|
import { forwardRef, useImperativeHandle, Fragment } from "react";
|
3
|
+
import { c as classNames } from "../../index-CweZ_OcN.js";
|
4
|
+
import { Input } from "../Input/Input.js";
|
4
5
|
import { ITEMS_PER_SEPARATOR, DEFAULT_VALUE_LENGTH } from "./constants.js";
|
5
6
|
import { useOTPInput } from "./hooks.js";
|
6
|
-
import
|
7
|
-
|
8
|
-
const
|
9
|
-
const separator = "_separator_1005h_29";
|
7
|
+
import '../../assets/OtpInput.css';const otp = "_otp_xwv60_3";
|
8
|
+
const input = "_input_xwv60_15";
|
9
|
+
const separator = "_separator_xwv60_29";
|
10
10
|
const cls = {
|
11
11
|
otp,
|
12
|
-
"input-wrapper": "_input-
|
12
|
+
"input-wrapper": "_input-wrapper_xwv60_15",
|
13
13
|
input,
|
14
14
|
separator
|
15
15
|
};
|
@@ -7,7 +7,7 @@ export interface TRadioOption {
|
|
7
7
|
/**
|
8
8
|
* Свойства компонента RadioGroup.
|
9
9
|
*/
|
10
|
-
export type
|
10
|
+
export type TProps = Omit<RadioGroupProps, 'value'> & {
|
11
11
|
/**
|
12
12
|
* Массив опций для радиогруппы.
|
13
13
|
* Каждая опция должна содержать значение и метку.
|
@@ -27,20 +27,4 @@ export type TRadioGroupProps = Omit<RadioGroupProps, 'value'> & {
|
|
27
27
|
/**
|
28
28
|
* Компонент RadioGroup для выбора одной опции из нескольких.
|
29
29
|
*/
|
30
|
-
export declare
|
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>>;
|
30
|
+
export declare function RadioGroup({ options, value, onChange, label, ...props }: TProps): import("react/jsx-runtime").JSX.Element;
|