mimir-ui-kit 1.9.1 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +62 -54
- package/dist/{NavigationButtons-cTsXB7GS.js → NavigationButtons-B8tMfqrg.js} +18 -18
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Input.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 -25
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/Input/Input.js +15 -15
- 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 +2 -2
- package/dist/components/OtpInput/OtpInput.js +6 -6
- package/dist/components/RadioGroup/RadioGroup.d.ts +2 -18
- package/dist/components/RadioGroup/RadioGroup.js +1061 -127
- 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 +79 -0
- package/dist/components/Tag/Tag.js +99 -0
- package/dist/components/Tag/constants.d.ts +41 -0
- package/dist/components/Tag/constants.js +55 -0
- package/dist/components/Tag/index.d.ts +3 -0
- package/dist/components/Tag/index.js +8 -0
- package/dist/components/Tag/types.d.ts +6 -0
- package/dist/components/Tag/types.js +1 -0
- package/dist/components/index.d.ts +1 -10
- package/dist/components/index.js +0 -14
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/index.js +1 -7
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -23
- package/package.json +128 -127
- package/dist/DatePickerModal-DUUCHAWF.js +0 -204
- package/dist/assets/DatePickerModal.css +0 -1
- package/dist/assets/Drawer.css +0 -1
- package/dist/assets/SelectSearch.css +0 -1
- package/dist/assets/Switch.css +0 -1
- package/dist/assets/Timer.css +0 -1
- 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/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 -3961
- 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 -57
- package/dist/components/Switch/index.d.ts +0 -2
- package/dist/components/Switch/index.js +0 -4
- 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/focus-management-CFDo6ZSc.js +0 -91
- 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/label-BXAcSLy0.js +0 -913
- package/dist/use-active-press-9MCrfRZk.js +0 -31
- 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 -9
- package/dist/utils/index.js +0 -11
@@ -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,
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import { EStepsPrimaryColor, EStepsSecondaryColor } from './constants';
|
2
|
+
import { TCommonStepsProps } from './types';
|
3
|
+
|
4
|
+
export type TProps = TCommonStepsProps & {
|
5
|
+
/**
|
6
|
+
* Класс, применяемый к корневому элементу
|
7
|
+
*/
|
8
|
+
rootClassName?: string;
|
9
|
+
/**
|
10
|
+
* Класс, применяемый к шагам
|
11
|
+
*/
|
12
|
+
stepClassName?: string;
|
13
|
+
/**
|
14
|
+
* Количество шагов.
|
15
|
+
*/
|
16
|
+
quantity: number;
|
17
|
+
/**
|
18
|
+
* Текущий шаг
|
19
|
+
*/
|
20
|
+
current?: number;
|
21
|
+
/**
|
22
|
+
* Есть ли возможность переключать шаги по клику
|
23
|
+
*/
|
24
|
+
editable?: boolean;
|
25
|
+
/**
|
26
|
+
* Обработчик клика на шаг
|
27
|
+
*/
|
28
|
+
onClick?: (step: number) => void;
|
29
|
+
/**
|
30
|
+
* Отключено / включено взаимодействие с шагами
|
31
|
+
*/
|
32
|
+
disabled?: boolean;
|
33
|
+
/**
|
34
|
+
* Цвет пройденных шагов
|
35
|
+
*/
|
36
|
+
primaryColor?: EStepsPrimaryColor;
|
37
|
+
/**
|
38
|
+
* Цвет оставшихся шагов
|
39
|
+
*/
|
40
|
+
secondaryColor?: EStepsSecondaryColor;
|
41
|
+
};
|
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>>;
|
@@ -0,0 +1,99 @@
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { c as classNames } from "../../index-CweZ_OcN.js";
|
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";
|
18
|
+
const cls = {
|
19
|
+
container,
|
20
|
+
step,
|
21
|
+
editable,
|
22
|
+
PRIMARY,
|
23
|
+
GRAY,
|
24
|
+
CITRINE,
|
25
|
+
SAPPHIRE,
|
26
|
+
SECONDARY,
|
27
|
+
WHITE,
|
28
|
+
LIGHT_SAPPHIRE,
|
29
|
+
LIGHT_GRAY,
|
30
|
+
disabled
|
31
|
+
};
|
32
|
+
const Steps = forwardRef(
|
33
|
+
(props, ref) => {
|
34
|
+
const {
|
35
|
+
rootClassName,
|
36
|
+
stepClassName,
|
37
|
+
quantity,
|
38
|
+
current = ZERO_STEP,
|
39
|
+
editable: editable2 = false,
|
40
|
+
size = EStepsSize.M,
|
41
|
+
onClick,
|
42
|
+
disabled: disabled2 = false,
|
43
|
+
primaryColor = EStepsPrimaryColor.CITRINE,
|
44
|
+
secondaryColor = EStepsPrimaryColor.GRAY
|
45
|
+
} = props;
|
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;
|
62
|
+
}
|
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 });
|
95
|
+
}
|
96
|
+
);
|
97
|
+
export {
|
98
|
+
Steps
|
99
|
+
};
|
@@ -0,0 +1,41 @@
|
|
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 {
|
5
|
+
XS = "XS",
|
6
|
+
S = "S",
|
7
|
+
M = "M",
|
8
|
+
L = "L"
|
9
|
+
}
|
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"
|
41
|
+
}
|
@@ -0,0 +1,55 @@
|
|
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 || {});
|
46
|
+
export {
|
47
|
+
DIFF_BETWEEN_STEP_AND_INDEX,
|
48
|
+
EStepsColorType,
|
49
|
+
EStepsPrimaryColor,
|
50
|
+
EStepsSecondaryColor,
|
51
|
+
EStepsSize,
|
52
|
+
ID_SEPARATOR,
|
53
|
+
StepSize,
|
54
|
+
ZERO_STEP
|
55
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -6,21 +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 { Timer } from './Timer';
|
package/dist/components/index.js
CHANGED
@@ -7,35 +7,24 @@ 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 { Timer } from "./Timer/Timer.js";
|
26
19
|
export {
|
27
20
|
Button,
|
28
|
-
DatePicker,
|
29
|
-
Drawer,
|
30
21
|
EButtonForm,
|
31
22
|
EButtonSize,
|
32
23
|
EButtonVariantDefault,
|
33
24
|
EButtonVariantRound,
|
34
|
-
EDrawerPosition,
|
35
25
|
EInputSize,
|
36
26
|
EInputVariant,
|
37
27
|
EMergedButtonVariantRound,
|
38
|
-
ESelectSearchSize,
|
39
28
|
EStepsPrimaryColor,
|
40
29
|
EStepsSecondaryColor,
|
41
30
|
EStepsSize,
|
@@ -48,11 +37,8 @@ export {
|
|
48
37
|
MergedButton,
|
49
38
|
OtpInput,
|
50
39
|
RadioGroup,
|
51
|
-
SelectSearch,
|
52
40
|
Slider,
|
53
41
|
Steps,
|
54
|
-
Switch,
|
55
|
-
Timer,
|
56
42
|
Vote,
|
57
43
|
getMaskedInputPhoneValue,
|
58
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/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -7,43 +7,28 @@ import { InputPhoneNumber } from "./components/InputPhoneNumber/InputPhoneNumber
|
|
7
7
|
import { getMaskedInputPhoneValue, getUnmaskedInputValue } from "./components/InputPhoneNumber/utils.js";
|
8
8
|
import { OtpInput } from "./components/OtpInput/OtpInput.js";
|
9
9
|
import { RadioGroup } from "./components/RadioGroup/RadioGroup.js";
|
10
|
-
import { DatePicker } from "./components/DatePicker/DatePicker.js";
|
11
10
|
import { MergedButton } from "./components/MergedButton/MergedButton.js";
|
12
11
|
import { EMergedButtonVariantRound } from "./components/MergedButton/constants.js";
|
13
12
|
import { AppImage } from "./components/Image/Image.js";
|
14
13
|
import { Loader } from "./components/Loader/Loader.js";
|
15
14
|
import { Slider } from "./components/Slider/Slider.js";
|
16
|
-
import { Drawer } from "./components/Drawer/Drawer.js";
|
17
|
-
import { EDrawerPosition } from "./components/Drawer/constants.js";
|
18
15
|
import { Steps } from "./components/Steps/Steps.js";
|
19
16
|
import { EStepsPrimaryColor, EStepsSecondaryColor, EStepsSize } from "./components/Steps/constants.js";
|
20
17
|
import { Vote } from "./components/Vote/Vote.js";
|
21
18
|
import { EVoteSize } from "./components/Vote/constants.js";
|
22
|
-
import { SelectSearch } from "./components/SelectSearch/SelectSearch.js";
|
23
|
-
import { ESelectSearchSize } from "./components/SelectSearch/constants.js";
|
24
|
-
import { Switch } from "./components/Switch/Switch.js";
|
25
|
-
import { Timer } from "./components/Timer/Timer.js";
|
26
19
|
import { useMediaQuery } from "./hooks/useMediaQuery/useMediaQuery.js";
|
27
20
|
import { EMediaQuery } from "./hooks/useMediaQuery/constants.js";
|
28
|
-
import { useLockBodyScroll } from "./hooks/useLockBodyScroll/useLockBodyScroll.js";
|
29
|
-
import { useInterval } from "./hooks/useInterval/useInterval.js";
|
30
|
-
import { useTimer } from "./hooks/useTimer/index.js";
|
31
21
|
import { Icon } from "./icons/Icon.js";
|
32
|
-
import { formating } from "./utils/index.js";
|
33
22
|
import './assets/index.css';export {
|
34
23
|
Button,
|
35
|
-
DatePicker,
|
36
|
-
Drawer,
|
37
24
|
EButtonForm,
|
38
25
|
EButtonSize,
|
39
26
|
EButtonVariantDefault,
|
40
27
|
EButtonVariantRound,
|
41
|
-
EDrawerPosition,
|
42
28
|
EInputSize,
|
43
29
|
EInputVariant,
|
44
30
|
EMediaQuery,
|
45
31
|
EMergedButtonVariantRound,
|
46
|
-
ESelectSearchSize,
|
47
32
|
EStepsPrimaryColor,
|
48
33
|
EStepsSecondaryColor,
|
49
34
|
EStepsSize,
|
@@ -57,17 +42,10 @@ import './assets/index.css';export {
|
|
57
42
|
MergedButton,
|
58
43
|
OtpInput,
|
59
44
|
RadioGroup,
|
60
|
-
SelectSearch,
|
61
45
|
Slider,
|
62
46
|
Steps,
|
63
|
-
Switch,
|
64
|
-
Timer,
|
65
47
|
Vote,
|
66
|
-
formating,
|
67
48
|
getMaskedInputPhoneValue,
|
68
49
|
getUnmaskedInputValue,
|
69
|
-
|
70
|
-
useLockBodyScroll,
|
71
|
-
useMediaQuery,
|
72
|
-
useTimer
|
50
|
+
useMediaQuery
|
73
51
|
};
|