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,2 +1,2 @@
|
|
1
1
|
export { RadioGroup } from './RadioGroup';
|
2
|
-
export type { TRadioOption
|
2
|
+
export type { TRadioOption } from './RadioGroup';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
2
|
-
import { c as classNames } from "../../index-CweZ_OcN.js";
|
3
2
|
import { useRef, useState, useCallback } from "react";
|
4
|
-
import {
|
3
|
+
import { c as classNames } from "../../index-CweZ_OcN.js";
|
4
|
+
import { g as getDocument, S as Swiper, N as NavigationButtons, a as SwiperSlide } from "../../NavigationButtons-B8tMfqrg.js";
|
5
5
|
import { ProgressBar } from "./ProgressBar/ProgressBar.js";
|
6
6
|
import { AppImage } from "../Image/Image.js";
|
7
7
|
import '../../assets/Slider.css';function Autoplay(_ref) {
|
@@ -300,14 +300,14 @@ import '../../assets/Slider.css';function Autoplay(_ref) {
|
|
300
300
|
resume
|
301
301
|
});
|
302
302
|
}
|
303
|
-
const swiper = "
|
304
|
-
const slide = "
|
305
|
-
const link = "
|
306
|
-
const image = "
|
307
|
-
const navigation = "
|
308
|
-
const pagination = "
|
309
|
-
const slides = "
|
310
|
-
const separator = "
|
303
|
+
const swiper = "_swiper_1jb8j_3";
|
304
|
+
const slide = "_slide_1jb8j_9";
|
305
|
+
const link = "_link_1jb8j_16";
|
306
|
+
const image = "_image_1jb8j_22";
|
307
|
+
const navigation = "_navigation_1jb8j_29";
|
308
|
+
const pagination = "_pagination_1jb8j_39";
|
309
|
+
const slides = "_slides_1jb8j_54";
|
310
|
+
const separator = "_separator_1jb8j_60";
|
311
311
|
const cls = {
|
312
312
|
swiper,
|
313
313
|
slide,
|
@@ -1,41 +1,79 @@
|
|
1
|
-
import {
|
1
|
+
import { EStepsPrimaryColor, EStepsSecondaryColor } from './constants';
|
2
|
+
import { TCommonStepsProps } from './types';
|
2
3
|
|
3
|
-
export type TProps = {
|
4
|
+
export type TProps = TCommonStepsProps & {
|
4
5
|
/**
|
5
6
|
* Класс, применяемый к корневому элементу
|
6
7
|
*/
|
7
8
|
rootClassName?: string;
|
8
9
|
/**
|
9
|
-
* Класс, применяемый к
|
10
|
+
* Класс, применяемый к шагам
|
10
11
|
*/
|
11
|
-
|
12
|
+
stepClassName?: string;
|
12
13
|
/**
|
13
|
-
*
|
14
|
+
* Количество шагов.
|
14
15
|
*/
|
15
|
-
|
16
|
+
quantity: number;
|
16
17
|
/**
|
17
|
-
*
|
18
|
+
* Текущий шаг
|
18
19
|
*/
|
19
|
-
|
20
|
+
current?: number;
|
20
21
|
/**
|
21
|
-
*
|
22
|
+
* Есть ли возможность переключать шаги по клику
|
22
23
|
*/
|
23
|
-
|
24
|
+
editable?: boolean;
|
24
25
|
/**
|
25
|
-
*
|
26
|
+
* Обработчик клика на шаг
|
26
27
|
*/
|
27
|
-
|
28
|
+
onClick?: (step: number) => void;
|
28
29
|
/**
|
29
|
-
*
|
30
|
+
* Отключено / включено взаимодействие с шагами
|
30
31
|
*/
|
31
|
-
|
32
|
+
disabled?: boolean;
|
32
33
|
/**
|
33
|
-
* Цвет
|
34
|
+
* Цвет пройденных шагов
|
34
35
|
*/
|
35
|
-
|
36
|
+
primaryColor?: EStepsPrimaryColor;
|
36
37
|
/**
|
37
|
-
*
|
38
|
+
* Цвет оставшихся шагов
|
38
39
|
*/
|
39
|
-
|
40
|
+
secondaryColor?: EStepsSecondaryColor;
|
40
41
|
};
|
41
|
-
export declare const
|
42
|
+
export declare const Steps: import('react').ForwardRefExoticComponent<TCommonStepsProps & {
|
43
|
+
/**
|
44
|
+
* Класс, применяемый к корневому элементу
|
45
|
+
*/
|
46
|
+
rootClassName?: string;
|
47
|
+
/**
|
48
|
+
* Класс, применяемый к шагам
|
49
|
+
*/
|
50
|
+
stepClassName?: string;
|
51
|
+
/**
|
52
|
+
* Количество шагов.
|
53
|
+
*/
|
54
|
+
quantity: number;
|
55
|
+
/**
|
56
|
+
* Текущий шаг
|
57
|
+
*/
|
58
|
+
current?: number;
|
59
|
+
/**
|
60
|
+
* Есть ли возможность переключать шаги по клику
|
61
|
+
*/
|
62
|
+
editable?: boolean;
|
63
|
+
/**
|
64
|
+
* Обработчик клика на шаг
|
65
|
+
*/
|
66
|
+
onClick?: (step: number) => void;
|
67
|
+
/**
|
68
|
+
* Отключено / включено взаимодействие с шагами
|
69
|
+
*/
|
70
|
+
disabled?: boolean;
|
71
|
+
/**
|
72
|
+
* Цвет пройденных шагов
|
73
|
+
*/
|
74
|
+
primaryColor?: EStepsPrimaryColor;
|
75
|
+
/**
|
76
|
+
* Цвет оставшихся шагов
|
77
|
+
*/
|
78
|
+
secondaryColor?: EStepsSecondaryColor;
|
79
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
@@ -1,54 +1,99 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
2
|
import { c as classNames } from "../../index-CweZ_OcN.js";
|
3
|
-
import { forwardRef } from "react";
|
4
|
-
import {
|
5
|
-
import
|
6
|
-
const
|
7
|
-
const
|
8
|
-
const
|
9
|
-
const
|
10
|
-
const
|
3
|
+
import { forwardRef, useId, useState, useRef, useEffect } from "react";
|
4
|
+
import { ZERO_STEP, EStepsSize, EStepsPrimaryColor, ID_SEPARATOR, EStepsColorType, StepSize, DIFF_BETWEEN_STEP_AND_INDEX } from "./constants.js";
|
5
|
+
import { Icon } from "../../icons/Icon.js";
|
6
|
+
import '../../assets/Steps.css';const container = "_container_j31xr_2";
|
7
|
+
const step = "_step_j31xr_6";
|
8
|
+
const editable = "_editable_j31xr_9";
|
9
|
+
const PRIMARY = "_PRIMARY_j31xr_12";
|
10
|
+
const GRAY = "_GRAY_j31xr_12";
|
11
|
+
const CITRINE = "_CITRINE_j31xr_15";
|
12
|
+
const SAPPHIRE = "_SAPPHIRE_j31xr_18";
|
13
|
+
const SECONDARY = "_SECONDARY_j31xr_21";
|
14
|
+
const WHITE = "_WHITE_j31xr_21";
|
15
|
+
const LIGHT_SAPPHIRE = "_LIGHT_SAPPHIRE_j31xr_24";
|
16
|
+
const LIGHT_GRAY = "_LIGHT_GRAY_j31xr_27";
|
17
|
+
const disabled = "_disabled_j31xr_27";
|
11
18
|
const cls = {
|
12
19
|
container,
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
20
|
+
step,
|
21
|
+
editable,
|
22
|
+
PRIMARY,
|
23
|
+
GRAY,
|
24
|
+
CITRINE,
|
25
|
+
SAPPHIRE,
|
26
|
+
SECONDARY,
|
27
|
+
WHITE,
|
28
|
+
LIGHT_SAPPHIRE,
|
29
|
+
LIGHT_GRAY,
|
30
|
+
disabled
|
18
31
|
};
|
19
|
-
const
|
32
|
+
const Steps = forwardRef(
|
20
33
|
(props, ref) => {
|
21
34
|
const {
|
22
35
|
rootClassName,
|
23
|
-
|
24
|
-
|
25
|
-
|
36
|
+
stepClassName,
|
37
|
+
quantity,
|
38
|
+
current = ZERO_STEP,
|
39
|
+
editable: editable2 = false,
|
40
|
+
size = EStepsSize.M,
|
41
|
+
onClick,
|
26
42
|
disabled: disabled2 = false,
|
27
|
-
|
28
|
-
|
29
|
-
color = "",
|
30
|
-
outline = false,
|
31
|
-
...otherProps
|
43
|
+
primaryColor = EStepsPrimaryColor.CITRINE,
|
44
|
+
secondaryColor = EStepsPrimaryColor.GRAY
|
32
45
|
} = props;
|
33
|
-
const
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
46
|
+
const idPrefix = useId();
|
47
|
+
const [step2, setStep] = useState(current);
|
48
|
+
const [hoveredStep, setHoveredStep] = useState(null);
|
49
|
+
const stepWasChangedRef = useRef(null);
|
50
|
+
useEffect(() => {
|
51
|
+
setStep(current);
|
52
|
+
}, [current]);
|
53
|
+
const handleClick = (idx) => {
|
54
|
+
const clickedStep = idx + DIFF_BETWEEN_STEP_AND_INDEX;
|
55
|
+
stepWasChangedRef.current = true;
|
56
|
+
setStep(clickedStep !== step2 ? clickedStep : ZERO_STEP);
|
57
|
+
};
|
58
|
+
useEffect(() => {
|
59
|
+
if (stepWasChangedRef.current === true) {
|
60
|
+
onClick && onClick(step2);
|
61
|
+
stepWasChangedRef.current = false;
|
48
62
|
}
|
49
|
-
);
|
63
|
+
}, [onClick, step2]);
|
64
|
+
const handleMouseEnter = (evt) => {
|
65
|
+
const hoveredIdx = Number(evt.currentTarget.id.split(ID_SEPARATOR)[1]);
|
66
|
+
setHoveredStep(hoveredIdx);
|
67
|
+
};
|
68
|
+
const handleMouseLeave = () => {
|
69
|
+
setHoveredStep(null);
|
70
|
+
};
|
71
|
+
const buttons = Array.from({ length: quantity }, (_, idx) => {
|
72
|
+
const isPrimary = idx + DIFF_BETWEEN_STEP_AND_INDEX <= (hoveredStep !== null ? hoveredStep + DIFF_BETWEEN_STEP_AND_INDEX : step2);
|
73
|
+
const isSecondary = idx + DIFF_BETWEEN_STEP_AND_INDEX > (hoveredStep !== null ? hoveredStep + DIFF_BETWEEN_STEP_AND_INDEX : step2);
|
74
|
+
return /* @__PURE__ */ jsx(
|
75
|
+
"button",
|
76
|
+
{
|
77
|
+
id: `${idPrefix}${ID_SEPARATOR}${idx}`,
|
78
|
+
className: classNames(cls.step, cls[size], stepClassName, {
|
79
|
+
[cls.editable]: editable2 && !disabled2,
|
80
|
+
[cls.disabled]: disabled2 || !editable2 && idx + 1 > step2,
|
81
|
+
[cls[EStepsColorType.PRIMARY]]: isPrimary,
|
82
|
+
[cls[EStepsColorType.SECONDARY]]: isSecondary,
|
83
|
+
[cls[primaryColor]]: isPrimary,
|
84
|
+
[cls[secondaryColor]]: isSecondary
|
85
|
+
}),
|
86
|
+
onClick: () => handleClick(idx),
|
87
|
+
onMouseEnter: handleMouseEnter,
|
88
|
+
onMouseLeave: handleMouseLeave,
|
89
|
+
children: /* @__PURE__ */ jsx(Icon, { iconName: "Step", ...StepSize[size] })
|
90
|
+
},
|
91
|
+
idx
|
92
|
+
);
|
93
|
+
});
|
94
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(cls.container, rootClassName), ref, children: buttons });
|
50
95
|
}
|
51
96
|
);
|
52
97
|
export {
|
53
|
-
|
98
|
+
Steps
|
54
99
|
};
|
@@ -1,9 +1,41 @@
|
|
1
|
-
export declare
|
1
|
+
export declare const ZERO_STEP = 0;
|
2
|
+
export declare const DIFF_BETWEEN_STEP_AND_INDEX = 1;
|
3
|
+
export declare const ID_SEPARATOR = "-//-";
|
4
|
+
export declare enum EStepsSize {
|
2
5
|
XS = "XS",
|
3
6
|
S = "S",
|
4
|
-
M = "M"
|
7
|
+
M = "M",
|
8
|
+
L = "L"
|
5
9
|
}
|
6
|
-
export declare
|
7
|
-
|
8
|
-
|
10
|
+
export declare const StepSize: {
|
11
|
+
XS: {
|
12
|
+
width: number;
|
13
|
+
height: number;
|
14
|
+
};
|
15
|
+
S: {
|
16
|
+
width: number;
|
17
|
+
height: number;
|
18
|
+
};
|
19
|
+
M: {
|
20
|
+
width: number;
|
21
|
+
height: number;
|
22
|
+
};
|
23
|
+
L: {
|
24
|
+
width: number;
|
25
|
+
height: number;
|
26
|
+
};
|
27
|
+
};
|
28
|
+
export declare enum EStepsColorType {
|
29
|
+
PRIMARY = "PRIMARY",
|
30
|
+
SECONDARY = "SECONDARY"
|
31
|
+
}
|
32
|
+
export declare enum EStepsPrimaryColor {
|
33
|
+
GRAY = "GRAY",
|
34
|
+
CITRINE = "CITRINE",
|
35
|
+
SAPPHIRE = "SAPPHIRE"
|
36
|
+
}
|
37
|
+
export declare enum EStepsSecondaryColor {
|
38
|
+
LIGHT_GRAY = "LIGHT_GRAY",
|
39
|
+
LIGHT_SAPPHIRE = "LIGHT_SAPPHIRE",
|
40
|
+
WHITE = "WHITE"
|
9
41
|
}
|
@@ -1,15 +1,55 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
const ZERO_STEP = 0;
|
2
|
+
const DIFF_BETWEEN_STEP_AND_INDEX = 1;
|
3
|
+
const ID_SEPARATOR = "-//-";
|
4
|
+
var EStepsSize = /* @__PURE__ */ ((EStepsSize2) => {
|
5
|
+
EStepsSize2["XS"] = "XS";
|
6
|
+
EStepsSize2["S"] = "S";
|
7
|
+
EStepsSize2["M"] = "M";
|
8
|
+
EStepsSize2["L"] = "L";
|
9
|
+
return EStepsSize2;
|
10
|
+
})(EStepsSize || {});
|
11
|
+
const StepSize = {
|
12
|
+
XS: {
|
13
|
+
width: 19,
|
14
|
+
height: 8
|
15
|
+
},
|
16
|
+
S: {
|
17
|
+
width: 36,
|
18
|
+
height: 12
|
19
|
+
},
|
20
|
+
M: {
|
21
|
+
width: 48,
|
22
|
+
height: 21
|
23
|
+
},
|
24
|
+
L: {
|
25
|
+
width: 64,
|
26
|
+
height: 28
|
27
|
+
}
|
28
|
+
};
|
29
|
+
var EStepsColorType = /* @__PURE__ */ ((EStepsColorType2) => {
|
30
|
+
EStepsColorType2["PRIMARY"] = "PRIMARY";
|
31
|
+
EStepsColorType2["SECONDARY"] = "SECONDARY";
|
32
|
+
return EStepsColorType2;
|
33
|
+
})(EStepsColorType || {});
|
34
|
+
var EStepsPrimaryColor = /* @__PURE__ */ ((EStepsPrimaryColor2) => {
|
35
|
+
EStepsPrimaryColor2["GRAY"] = "GRAY";
|
36
|
+
EStepsPrimaryColor2["CITRINE"] = "CITRINE";
|
37
|
+
EStepsPrimaryColor2["SAPPHIRE"] = "SAPPHIRE";
|
38
|
+
return EStepsPrimaryColor2;
|
39
|
+
})(EStepsPrimaryColor || {});
|
40
|
+
var EStepsSecondaryColor = /* @__PURE__ */ ((EStepsSecondaryColor2) => {
|
41
|
+
EStepsSecondaryColor2["LIGHT_GRAY"] = "LIGHT_GRAY";
|
42
|
+
EStepsSecondaryColor2["LIGHT_SAPPHIRE"] = "LIGHT_SAPPHIRE";
|
43
|
+
EStepsSecondaryColor2["WHITE"] = "WHITE";
|
44
|
+
return EStepsSecondaryColor2;
|
45
|
+
})(EStepsSecondaryColor || {});
|
12
46
|
export {
|
13
|
-
|
14
|
-
|
47
|
+
DIFF_BETWEEN_STEP_AND_INDEX,
|
48
|
+
EStepsColorType,
|
49
|
+
EStepsPrimaryColor,
|
50
|
+
EStepsSecondaryColor,
|
51
|
+
EStepsSize,
|
52
|
+
ID_SEPARATOR,
|
53
|
+
StepSize,
|
54
|
+
ZERO_STEP
|
15
55
|
};
|
@@ -1,2 +1,3 @@
|
|
1
|
-
export {
|
2
|
-
export {
|
1
|
+
export { Steps } from './Tag';
|
2
|
+
export { EStepsPrimaryColor, EStepsSecondaryColor, EStepsSize } from './constants';
|
3
|
+
export type { TCommonStepsProps } from './types';
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { Steps } from "./Tag.js";
|
2
|
+
import { EStepsPrimaryColor, EStepsSecondaryColor, EStepsSize } from "./constants.js";
|
3
3
|
export {
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
EStepsPrimaryColor,
|
5
|
+
EStepsSecondaryColor,
|
6
|
+
EStepsSize,
|
7
|
+
Steps
|
7
8
|
};
|
@@ -6,26 +6,12 @@ export type { TInputPasswordProps } from './InputPassword';
|
|
6
6
|
export { InputPhoneNumber, getMaskedInputPhoneValue, getUnmaskedInputValue } from './InputPhoneNumber';
|
7
7
|
export { OtpInput } from './OtpInput';
|
8
8
|
export { RadioGroup } from './RadioGroup';
|
9
|
-
export type { TRadioOption
|
10
|
-
export { DatePicker } from './DatePicker';
|
11
|
-
export type { TDatePickerProps, TDatePickerValue } from './DatePicker';
|
9
|
+
export type { TRadioOption } from './RadioGroup';
|
12
10
|
export { MergedButton } from './MergedButton';
|
13
11
|
export { EMergedButtonVariantRound } from './MergedButton';
|
14
12
|
export type { TButtonPropsWithoutStyles } from './MergedButton';
|
15
13
|
export { Image } from './Image';
|
16
14
|
export { Loader } from './Loader';
|
17
15
|
export { Slider } from './Slider';
|
18
|
-
export { Drawer } from './Drawer';
|
19
|
-
export { EDrawerPosition } from './Drawer';
|
20
16
|
export { Steps, EStepsPrimaryColor, EStepsSecondaryColor, EStepsSize, type TCommonStepsProps } from './Steps';
|
21
17
|
export { Vote, EVoteSize, type TCommonVoteProps } from './Vote';
|
22
|
-
export { SelectSearch, ESelectSearchSize } from './SelectSearch';
|
23
|
-
export type { TSelectSearchItem, TSelectSearchProps } from './SelectSearch';
|
24
|
-
export { Switch } from './Switch';
|
25
|
-
export type { TSwitchProps } from './Switch';
|
26
|
-
export { Tag, ETagSize, ETagType } from './Tag';
|
27
|
-
export { Timer } from './Timer';
|
28
|
-
export { Accordion, AccordionItem, EAccordionSize } from './Accordion';
|
29
|
-
export type { TAccordionProps, TAccordionItemProps } from './Accordion';
|
30
|
-
export { TabTrail, ETabTrailSize } from './TabTrail';
|
31
|
-
export type { TTabTrailProps, TCategoryTab } from './TabTrail';
|
package/dist/components/index.js
CHANGED
@@ -7,51 +7,27 @@ import { InputPhoneNumber } from "./InputPhoneNumber/InputPhoneNumber.js";
|
|
7
7
|
import { getMaskedInputPhoneValue, getUnmaskedInputValue } from "./InputPhoneNumber/utils.js";
|
8
8
|
import { OtpInput } from "./OtpInput/OtpInput.js";
|
9
9
|
import { RadioGroup } from "./RadioGroup/RadioGroup.js";
|
10
|
-
import { DatePicker } from "./DatePicker/DatePicker.js";
|
11
10
|
import { MergedButton } from "./MergedButton/MergedButton.js";
|
12
11
|
import { EMergedButtonVariantRound } from "./MergedButton/constants.js";
|
13
12
|
import { AppImage } from "./Image/Image.js";
|
14
13
|
import { Loader } from "./Loader/Loader.js";
|
15
14
|
import { Slider } from "./Slider/Slider.js";
|
16
|
-
import { Drawer } from "./Drawer/Drawer.js";
|
17
|
-
import { EDrawerPosition } from "./Drawer/constants.js";
|
18
15
|
import { Steps } from "./Steps/Steps.js";
|
19
16
|
import { EStepsPrimaryColor, EStepsSecondaryColor, EStepsSize } from "./Steps/constants.js";
|
20
17
|
import { Vote } from "./Vote/Vote.js";
|
21
18
|
import { EVoteSize } from "./Vote/constants.js";
|
22
|
-
import { SelectSearch } from "./SelectSearch/SelectSearch.js";
|
23
|
-
import { ESelectSearchSize } from "./SelectSearch/constants.js";
|
24
|
-
import { Switch } from "./Switch/Switch.js";
|
25
|
-
import { Tag } from "./Tag/Tag.js";
|
26
|
-
import { ETagSize, ETagType } from "./Tag/constants.js";
|
27
|
-
import { Timer } from "./Timer/Timer.js";
|
28
|
-
import { Accordion } from "./Accordion/Accordion.js";
|
29
|
-
import { EAccordionSize } from "./Accordion/constants.js";
|
30
|
-
import { AccordionItem } from "./Accordion/AccordionItem/AccordionItem.js";
|
31
|
-
import { TabTrail } from "./TabTrail/TabTrail.js";
|
32
|
-
import { ETabTrailSize } from "./TabTrail/constants.js";
|
33
19
|
export {
|
34
|
-
Accordion,
|
35
|
-
AccordionItem,
|
36
20
|
Button,
|
37
|
-
DatePicker,
|
38
|
-
Drawer,
|
39
|
-
EAccordionSize,
|
40
21
|
EButtonForm,
|
41
22
|
EButtonSize,
|
42
23
|
EButtonVariantDefault,
|
43
24
|
EButtonVariantRound,
|
44
|
-
EDrawerPosition,
|
45
25
|
EInputSize,
|
46
26
|
EInputVariant,
|
47
27
|
EMergedButtonVariantRound,
|
48
|
-
ESelectSearchSize,
|
49
28
|
EStepsPrimaryColor,
|
50
29
|
EStepsSecondaryColor,
|
51
30
|
EStepsSize,
|
52
|
-
ETabTrailSize,
|
53
|
-
ETagSize,
|
54
|
-
ETagType,
|
55
31
|
EVoteSize,
|
56
32
|
AppImage as Image,
|
57
33
|
Input,
|
@@ -61,13 +37,8 @@ export {
|
|
61
37
|
MergedButton,
|
62
38
|
OtpInput,
|
63
39
|
RadioGroup,
|
64
|
-
SelectSearch,
|
65
40
|
Slider,
|
66
41
|
Steps,
|
67
|
-
Switch,
|
68
|
-
TabTrail,
|
69
|
-
Tag,
|
70
|
-
Timer,
|
71
42
|
Vote,
|
72
43
|
getMaskedInputPhoneValue,
|
73
44
|
getUnmaskedInputValue
|
package/dist/hooks/index.d.ts
CHANGED
package/dist/hooks/index.js
CHANGED
@@ -1,12 +1,6 @@
|
|
1
1
|
import { useMediaQuery } from "./useMediaQuery/useMediaQuery.js";
|
2
2
|
import { EMediaQuery } from "./useMediaQuery/constants.js";
|
3
|
-
import { useLockBodyScroll } from "./useLockBodyScroll/useLockBodyScroll.js";
|
4
|
-
import { useInterval } from "./useInterval/useInterval.js";
|
5
|
-
import { useTimer } from "./useTimer/index.js";
|
6
3
|
export {
|
7
4
|
EMediaQuery,
|
8
|
-
|
9
|
-
useLockBodyScroll,
|
10
|
-
useMediaQuery,
|
11
|
-
useTimer
|
5
|
+
useMediaQuery
|
12
6
|
};
|
package/dist/icons/Icon.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
2
|
import { Suspense } from "react";
|
3
|
-
import { i as icons } from "../index-
|
3
|
+
import { i as icons } from "../index-_ACzPKPw.js";
|
4
4
|
const Icon = ({ iconName, ...props }) => {
|
5
5
|
const Component = icons[iconName];
|
6
6
|
if (!Component) {
|
@@ -1,4 +1,3 @@
|
|
1
|
-
export declare const Close12px: import('react').LazyExoticComponent<(props: import('react').SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element>;
|
2
1
|
export declare const Accept16px: import('react').LazyExoticComponent<(props: import('react').SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element>;
|
3
2
|
export declare const Acts16px: import('react').LazyExoticComponent<(props: import('react').SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element>;
|
4
3
|
export declare const Acts16pxF: import('react').LazyExoticComponent<(props: import('react').SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element>;
|