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.
Files changed (166) hide show
  1. package/README.md +62 -62
  2. package/dist/{NavigationButtons-DuOoqaPo.js → NavigationButtons-B8tMfqrg.js} +20 -20
  3. package/dist/assets/Button.css +1 -1
  4. package/dist/assets/Input.css +1 -1
  5. package/dist/assets/MergedButton.css +1 -1
  6. package/dist/assets/OtpInput.css +1 -1
  7. package/dist/assets/RadioGroup.css +1 -1
  8. package/dist/assets/Slider.css +1 -1
  9. package/dist/assets/index.css +1 -1
  10. package/dist/components/Button/Button.d.ts +1 -0
  11. package/dist/components/Button/Button.js +25 -26
  12. package/dist/components/Button/constants.d.ts +1 -2
  13. package/dist/components/Button/constants.js +0 -1
  14. package/dist/components/Input/Input.d.ts +2 -2
  15. package/dist/components/Input/Input.js +16 -17
  16. package/dist/components/InputPassword/InputPassword.js +2 -2
  17. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  18. package/dist/components/MergedButton/MergedButton.d.ts +1 -1
  19. package/dist/components/MergedButton/MergedButton.js +19 -17
  20. package/dist/components/OtpInput/OtpInput.js +6 -6
  21. package/dist/components/RadioGroup/RadioGroup.d.ts +2 -18
  22. package/dist/components/RadioGroup/RadioGroup.js +1061 -130
  23. package/dist/components/RadioGroup/index.d.ts +1 -1
  24. package/dist/components/Slider/NavigationButtons/NavigationButtons.js +1 -1
  25. package/dist/components/Slider/NavigationButtons/index.js +1 -1
  26. package/dist/components/Slider/Slider.js +10 -10
  27. package/dist/components/Tag/Tag.d.ts +57 -19
  28. package/dist/components/Tag/Tag.js +84 -39
  29. package/dist/components/Tag/constants.d.ts +37 -5
  30. package/dist/components/Tag/constants.js +53 -13
  31. package/dist/components/Tag/index.d.ts +3 -2
  32. package/dist/components/Tag/index.js +6 -5
  33. package/dist/components/Tag/types.d.ts +6 -0
  34. package/dist/components/index.d.ts +1 -15
  35. package/dist/components/index.js +0 -29
  36. package/dist/hooks/index.d.ts +0 -3
  37. package/dist/hooks/index.js +1 -7
  38. package/dist/icons/Icon.js +1 -1
  39. package/dist/icons/components/index.d.ts +0 -1
  40. package/dist/icons/components/index.js +559 -560
  41. package/dist/{index-Cxiikb7g.js → index-_ACzPKPw.js} +558 -561
  42. package/dist/index.d.ts +0 -1
  43. package/dist/index.js +1 -38
  44. package/package.json +128 -128
  45. package/dist/DatePickerModal-BM0BgzTb.js +0 -204
  46. package/dist/assets/Accordion.css +0 -1
  47. package/dist/assets/AccordionItem.css +0 -1
  48. package/dist/assets/DatePickerModal.css +0 -1
  49. package/dist/assets/Drawer.css +0 -1
  50. package/dist/assets/ListPhotos.css +0 -1
  51. package/dist/assets/SelectSearch.css +0 -1
  52. package/dist/assets/Switch.css +0 -1
  53. package/dist/assets/TabTrail.css +0 -1
  54. package/dist/assets/Tag.css +0 -1
  55. package/dist/assets/Timer.css +0 -1
  56. package/dist/assets/Uploader.css +0 -1
  57. package/dist/assets/UploaderPhotos.css +0 -1
  58. package/dist/bugs-CSBdWk0R.js +0 -18
  59. package/dist/components/Accordion/Accordion.d.ts +0 -10
  60. package/dist/components/Accordion/Accordion.js +0 -176
  61. package/dist/components/Accordion/AccordionItem/AccordionItem.d.ts +0 -8
  62. package/dist/components/Accordion/AccordionItem/AccordionItem.js +0 -16
  63. package/dist/components/Accordion/AccordionItem/index.d.ts +0 -1
  64. package/dist/components/Accordion/AccordionItem/index.js +0 -4
  65. package/dist/components/Accordion/constants.d.ts +0 -8
  66. package/dist/components/Accordion/constants.js +0 -14
  67. package/dist/components/Accordion/index.d.ts +0 -3
  68. package/dist/components/Accordion/index.js +0 -8
  69. package/dist/components/DatePicker/DatePicker.d.ts +0 -44
  70. package/dist/components/DatePicker/DatePicker.js +0 -69
  71. package/dist/components/DatePicker/DatePickerModal.d.ts +0 -8
  72. package/dist/components/DatePicker/DatePickerModal.js +0 -9
  73. package/dist/components/DatePicker/constants.d.ts +0 -6
  74. package/dist/components/DatePicker/constants.js +0 -11
  75. package/dist/components/DatePicker/index.d.ts +0 -2
  76. package/dist/components/DatePicker/index.js +0 -4
  77. package/dist/components/Drawer/Drawer.d.ts +0 -38
  78. package/dist/components/Drawer/Drawer.js +0 -144
  79. package/dist/components/Drawer/constants.d.ts +0 -5
  80. package/dist/components/Drawer/constants.js +0 -9
  81. package/dist/components/Drawer/index.d.ts +0 -2
  82. package/dist/components/Drawer/index.js +0 -6
  83. package/dist/components/ListPhotos/ListPhotos.d.ts +0 -23
  84. package/dist/components/ListPhotos/ListPhotos.js +0 -33
  85. package/dist/components/ListPhotos/constants.d.ts +0 -3
  86. package/dist/components/ListPhotos/constants.js +0 -21
  87. package/dist/components/ListPhotos/index.d.ts +0 -2
  88. package/dist/components/ListPhotos/index.js +0 -4
  89. package/dist/components/Portal/Portal.d.ts +0 -7
  90. package/dist/components/Portal/Portal.js +0 -10
  91. package/dist/components/Portal/index.d.ts +0 -1
  92. package/dist/components/Portal/index.js +0 -4
  93. package/dist/components/SelectSearch/SelectSearch.d.ts +0 -15
  94. package/dist/components/SelectSearch/SelectSearch.js +0 -3876
  95. package/dist/components/SelectSearch/constants.d.ts +0 -4
  96. package/dist/components/SelectSearch/constants.js +0 -8
  97. package/dist/components/SelectSearch/index.d.ts +0 -2
  98. package/dist/components/SelectSearch/index.js +0 -6
  99. package/dist/components/Switch/Switch.d.ts +0 -294
  100. package/dist/components/Switch/Switch.js +0 -59
  101. package/dist/components/Switch/index.d.ts +0 -2
  102. package/dist/components/Switch/index.js +0 -4
  103. package/dist/components/TabTrail/TabButtons/TabButtons.d.ts +0 -8
  104. package/dist/components/TabTrail/TabButtons/TabButtons.js +0 -29
  105. package/dist/components/TabTrail/TabButtons/constants.d.ts +0 -8
  106. package/dist/components/TabTrail/TabButtons/constants.js +0 -14
  107. package/dist/components/TabTrail/TabButtons/index.d.ts +0 -1
  108. package/dist/components/TabTrail/TabButtons/index.js +0 -4
  109. package/dist/components/TabTrail/TabTrail.d.ts +0 -11
  110. package/dist/components/TabTrail/TabTrail.js +0 -282
  111. package/dist/components/TabTrail/constants.d.ts +0 -4
  112. package/dist/components/TabTrail/constants.js +0 -8
  113. package/dist/components/TabTrail/index.d.ts +0 -2
  114. package/dist/components/TabTrail/index.js +0 -6
  115. package/dist/components/Timer/Timer.d.ts +0 -24
  116. package/dist/components/Timer/Timer.js +0 -29
  117. package/dist/components/Timer/index.d.ts +0 -1
  118. package/dist/components/Timer/index.js +0 -4
  119. package/dist/components/Uploader/Uploader.d.ts +0 -30
  120. package/dist/components/Uploader/Uploader.js +0 -90
  121. package/dist/components/Uploader/constants.d.ts +0 -5
  122. package/dist/components/Uploader/constants.js +0 -16
  123. package/dist/components/Uploader/index.d.ts +0 -2
  124. package/dist/components/Uploader/index.js +0 -4
  125. package/dist/components/UploaderPhotos/UploaderPhotos.d.ts +0 -29
  126. package/dist/components/UploaderPhotos/UploaderPhotos.js +0 -46
  127. package/dist/components/UploaderPhotos/index.d.ts +0 -2
  128. package/dist/components/UploaderPhotos/index.js +0 -4
  129. package/dist/focus-management-1rQPII7Z.js +0 -77
  130. package/dist/hidden-BuVoeHNy.js +0 -13
  131. package/dist/hooks/useClickOutside/index.d.ts +0 -1
  132. package/dist/hooks/useClickOutside/index.js +0 -4
  133. package/dist/hooks/useClickOutside/useClickOutside.d.ts +0 -7
  134. package/dist/hooks/useClickOutside/useClickOutside.js +0 -25
  135. package/dist/hooks/useInterval/index.d.ts +0 -1
  136. package/dist/hooks/useInterval/index.js +0 -4
  137. package/dist/hooks/useInterval/useInterval.d.ts +0 -1
  138. package/dist/hooks/useInterval/useInterval.js +0 -17
  139. package/dist/hooks/useLockBodyScroll/index.d.ts +0 -1
  140. package/dist/hooks/useLockBodyScroll/index.js +0 -4
  141. package/dist/hooks/useLockBodyScroll/useLockBodyScroll.d.ts +0 -6
  142. package/dist/hooks/useLockBodyScroll/useLockBodyScroll.js +0 -20
  143. package/dist/hooks/useTimer/index.d.ts +0 -18
  144. package/dist/hooks/useTimer/index.js +0 -83
  145. package/dist/hooks/useTimer/useTimer.d.ts +0 -18
  146. package/dist/hooks/useTimer/useTimer.js +0 -87
  147. package/dist/hooks/useTimer/utils.d.ts +0 -24
  148. package/dist/hooks/useTimer/utils.js +0 -88
  149. package/dist/icons/components/12px/Close12px.d.ts +0 -4
  150. package/dist/icons/components/12px/Close12px.js +0 -18
  151. package/dist/keyboard-B256ZoM-.js +0 -745
  152. package/dist/label-C_5Syaoj.js +0 -159
  153. package/dist/open-closed-CbXq00et.js +0 -93
  154. package/dist/use-active-press-B6yeSopF.js +0 -31
  155. package/dist/use-by-comparator-BUO78DGe.js +0 -16
  156. package/dist/use-resolve-button-type-B6LE6gU3.js +0 -19
  157. package/dist/utils/UUID4.d.ts +0 -1
  158. package/dist/utils/UUID4.js +0 -9
  159. package/dist/utils/formating/Date.d.ts +0 -1
  160. package/dist/utils/formating/Date.js +0 -26
  161. package/dist/utils/formating/Month.d.ts +0 -8
  162. package/dist/utils/formating/Month.js +0 -80
  163. package/dist/utils/formating/Numbers.d.ts +0 -6
  164. package/dist/utils/formating/Numbers.js +0 -8
  165. package/dist/utils/index.d.ts +0 -11
  166. package/dist/utils/index.js +0 -13
@@ -1,2 +1,2 @@
1
1
  export { RadioGroup } from './RadioGroup';
2
- export type { TRadioOption, TRadioGroupProps } from './RadioGroup';
2
+ export type { TRadioOption } from './RadioGroup';
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { N } from "../../../NavigationButtons-DuOoqaPo.js";
3
+ import { N } from "../../../NavigationButtons-B8tMfqrg.js";
4
4
  import "../../MergedButton/MergedButton.js";
5
5
  export {
6
6
  N as NavigationButtons
@@ -1,4 +1,4 @@
1
- import { N } from "../../../NavigationButtons-DuOoqaPo.js";
1
+ import { N } from "../../../NavigationButtons-B8tMfqrg.js";
2
2
  export {
3
3
  N as NavigationButtons
4
4
  };
@@ -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 { g as getDocument, S as Swiper, N as NavigationButtons, a as SwiperSlide } from "../../NavigationButtons-DuOoqaPo.js";
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 = "_swiper_n7qq2_3";
304
- const slide = "_slide_n7qq2_9";
305
- const link = "_link_n7qq2_16";
306
- const image = "_image_n7qq2_22";
307
- const navigation = "_navigation_n7qq2_29";
308
- const pagination = "_pagination_n7qq2_39";
309
- const slides = "_slides_n7qq2_54";
310
- const separator = "_separator_n7qq2_60";
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 { ReactNode } from 'react';
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
- innerClassName?: string;
12
+ stepClassName?: string;
12
13
  /**
13
- * Класс, применяемый к контентному элементу
14
+ * Количество шагов.
14
15
  */
15
- size?: string;
16
+ quantity: number;
16
17
  /**
17
- * Класс, применяемый к корневому элемент
18
+ * Текущий шаг
18
19
  */
19
- children?: ReactNode;
20
+ current?: number;
20
21
  /**
21
- * Класс, применяемый к корневому элемент
22
+ * Есть ли возможность переключать шаги по клику
22
23
  */
23
- disabled?: boolean;
24
+ editable?: boolean;
24
25
  /**
25
- * Определяет какой тип элемента будет создан, по умолчанию - button
26
+ * Обработчик клика на шаг
26
27
  */
27
- elementType?: 'button' | 'div';
28
+ onClick?: (step: number) => void;
28
29
  /**
29
- * Цвет фона, при outline и текста
30
+ * Отключено / включено взаимодействие с шагами
30
31
  */
31
- backgroundColor?: string;
32
+ disabled?: boolean;
32
33
  /**
33
- * Цвет текста (если не outline)
34
+ * Цвет пройденных шагов
34
35
  */
35
- color?: string;
36
+ primaryColor?: EStepsPrimaryColor;
36
37
  /**
37
- * Определяет должен быть тег в стилистике outline или нет
38
+ * Цвет оставшихся шагов
38
39
  */
39
- outline?: boolean;
40
+ secondaryColor?: EStepsSecondaryColor;
40
41
  };
41
- export declare const Tag: import('react').ForwardRefExoticComponent<TProps & import('react').RefAttributes<HTMLButtonElement | HTMLDivElement>>;
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 { ETagSize, ETagType } from "./constants.js";
5
- import '../../assets/Tag.css';const container = "_container_1f2sk_2";
6
- const disabled = "_disabled_1f2sk_24";
7
- const inner = "_inner_1f2sk_29";
8
- const M = "_M_1f2sk_37";
9
- const S = "_S_1f2sk_41";
10
- const XS = "_XS_1f2sk_49";
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
- disabled,
14
- inner,
15
- M,
16
- S,
17
- XS
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 Tag = forwardRef(
32
+ const Steps = forwardRef(
20
33
  (props, ref) => {
21
34
  const {
22
35
  rootClassName,
23
- innerClassName,
24
- children,
25
- size = ETagSize.M,
36
+ stepClassName,
37
+ quantity,
38
+ current = ZERO_STEP,
39
+ editable: editable2 = false,
40
+ size = EStepsSize.M,
41
+ onClick,
26
42
  disabled: disabled2 = false,
27
- elementType = ETagType.BUTTON,
28
- backgroundColor = "",
29
- color = "",
30
- outline = false,
31
- ...otherProps
43
+ primaryColor = EStepsPrimaryColor.CITRINE,
44
+ secondaryColor = EStepsPrimaryColor.GRAY
32
45
  } = props;
33
- const Element = elementType === ETagType.BUTTON ? ETagType.BUTTON : ETagType.DIV;
34
- return /* @__PURE__ */ jsx(
35
- Element,
36
- {
37
- className: classNames(cls.container, cls[size], rootClassName, {
38
- [cls.disabled]: disabled2
39
- }),
40
- ref,
41
- style: {
42
- backgroundColor: outline ? "transparent" : backgroundColor,
43
- borderColor: backgroundColor,
44
- color: outline ? backgroundColor : color
45
- },
46
- ...otherProps,
47
- children: /* @__PURE__ */ jsx("span", { className: classNames(cls.inner, innerClassName), children })
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
- Tag
98
+ Steps
54
99
  };
@@ -1,9 +1,41 @@
1
- export declare enum ETagSize {
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 enum ETagType {
7
- DIV = "div",
8
- BUTTON = "button"
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
- var ETagSize = /* @__PURE__ */ ((ETagSize2) => {
2
- ETagSize2["XS"] = "XS";
3
- ETagSize2["S"] = "S";
4
- ETagSize2["M"] = "M";
5
- return ETagSize2;
6
- })(ETagSize || {});
7
- var ETagType = /* @__PURE__ */ ((ETagType2) => {
8
- ETagType2["DIV"] = "div";
9
- ETagType2["BUTTON"] = "button";
10
- return ETagType2;
11
- })(ETagType || {});
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
- ETagSize,
14
- ETagType
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 { Tag } from './Tag';
2
- export { ETagSize, ETagType } from './constants';
1
+ export { Steps } from './Tag';
2
+ export { EStepsPrimaryColor, EStepsSecondaryColor, EStepsSize } from './constants';
3
+ export type { TCommonStepsProps } from './types';
@@ -1,7 +1,8 @@
1
- import { Tag } from "./Tag.js";
2
- import { ETagSize, ETagType } from "./constants.js";
1
+ import { Steps } from "./Tag.js";
2
+ import { EStepsPrimaryColor, EStepsSecondaryColor, EStepsSize } from "./constants.js";
3
3
  export {
4
- ETagSize,
5
- ETagType,
6
- Tag
4
+ EStepsPrimaryColor,
5
+ EStepsSecondaryColor,
6
+ EStepsSize,
7
+ Steps
7
8
  };
@@ -0,0 +1,6 @@
1
+ import { EStepsSize } from './constants';
2
+
3
+ export type TSize = `${EStepsSize}` | EStepsSize;
4
+ export type TCommonStepsProps = {
5
+ size?: TSize;
6
+ };
@@ -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, TRadioGroupProps } from './RadioGroup';
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';
@@ -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
@@ -1,4 +1 @@
1
1
  export { useMediaQuery, EMediaQuery } from './useMediaQuery';
2
- export { useLockBodyScroll } from './useLockBodyScroll';
3
- export { useInterval } from './useInterval';
4
- export { useTimer } from './useTimer';
@@ -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
- useInterval,
9
- useLockBodyScroll,
10
- useMediaQuery,
11
- useTimer
5
+ useMediaQuery
12
6
  };
@@ -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-Cxiikb7g.js";
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>;