mimir-ui-kit 1.34.2 → 1.34.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. package/dist/{Input-ChCIy5oY.js → Input-DspsU5F4.js} +27 -23
  2. package/dist/{ProgressBar-CwLwhaeM.js → ProgressBar-DWKyrXzd.js} +23 -23
  3. package/dist/assets/Accordion.css +1 -1
  4. package/dist/assets/AccordionItem.css +1 -1
  5. package/dist/assets/Avatar.css +1 -0
  6. package/dist/assets/Button.css +1 -1
  7. package/dist/assets/CheckboxMimir.css +1 -1
  8. package/dist/assets/Chip.css +1 -1
  9. package/dist/assets/Drawer.css +1 -1
  10. package/dist/assets/GosZnak.css +1 -0
  11. package/dist/assets/Input.css +1 -1
  12. package/dist/assets/InputPassword.css +1 -1
  13. package/dist/assets/InputRangeSlider.css +1 -0
  14. package/dist/assets/Link.css +1 -1
  15. package/dist/assets/ListFiles.css +1 -1
  16. package/dist/assets/ListPhotos.css +1 -1
  17. package/dist/assets/MergedButton.css +1 -1
  18. package/dist/assets/NotificationBadge.css +1 -1
  19. package/dist/assets/OtpInput.css +1 -1
  20. package/dist/assets/Pagination.css +1 -1
  21. package/dist/assets/ProgressBar2.css +1 -1
  22. package/dist/assets/RadioGroup.css +1 -1
  23. package/dist/assets/SelectSearch.css +1 -1
  24. package/dist/assets/SkeletonCircle.css +1 -0
  25. package/dist/assets/SkeletonText.css +1 -0
  26. package/dist/assets/Slider.css +1 -1
  27. package/dist/assets/Switcher.css +1 -0
  28. package/dist/assets/TabTrail.css +1 -1
  29. package/dist/assets/Tag.css +1 -1
  30. package/dist/assets/TextArea.css +1 -1
  31. package/dist/assets/Timer.css +1 -1
  32. package/dist/assets/TwinSwitcher.css +1 -0
  33. package/dist/assets/Uploader.css +1 -1
  34. package/dist/assets/UploaderPhotos.css +1 -1
  35. package/dist/assets/Vote.css +1 -1
  36. package/dist/assets/index.css +1 -1
  37. package/dist/assets/styles.css +1 -1
  38. package/dist/assets/variant.css +1 -0
  39. package/dist/components/Accordion/Accordion.js +24 -16
  40. package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
  41. package/dist/components/AnchorLink/Link.js +9 -9
  42. package/dist/components/Avatar/Avatar.d.ts +3 -0
  43. package/dist/components/Avatar/Avatar.js +62 -0
  44. package/dist/components/Avatar/constants.d.ts +5 -0
  45. package/dist/components/Avatar/constants.js +9 -0
  46. package/dist/components/Avatar/index.d.ts +3 -0
  47. package/dist/components/Avatar/index.js +6 -0
  48. package/dist/components/Avatar/types.d.ts +10 -0
  49. package/dist/components/Button/Button.js +33 -33
  50. package/dist/components/CheckboxMimir/CheckboxMimir.js +16 -19
  51. package/dist/components/Chip/Chip.js +12 -12
  52. package/dist/components/DatePicker/DatePicker.d.ts +36 -18
  53. package/dist/components/DatePicker/DatePicker.js +46 -6
  54. package/dist/components/DatePicker/DatePickerModal.js +78 -62
  55. package/dist/components/DatePicker/MonthPickerModal.js +14 -6
  56. package/dist/components/DatePicker/YearPickerModal.js +2 -2
  57. package/dist/components/DatePicker/utils.d.ts +2 -0
  58. package/dist/components/DatePicker/utils.js +16 -0
  59. package/dist/components/Drawer/Drawer.d.ts +1 -1
  60. package/dist/components/Drawer/Drawer.js +20 -20
  61. package/dist/components/GosZnak/GosZnak.d.ts +4 -0
  62. package/dist/components/GosZnak/GosZnak.js +76 -0
  63. package/dist/components/GosZnak/constants.d.ts +11 -0
  64. package/dist/components/GosZnak/constants.js +17 -0
  65. package/dist/components/GosZnak/index.d.ts +3 -0
  66. package/dist/components/GosZnak/index.js +7 -0
  67. package/dist/components/GosZnak/types.d.ts +26 -0
  68. package/dist/components/Input/Input.d.ts +5 -1
  69. package/dist/components/Input/Input.js +1 -1
  70. package/dist/components/Input/constants.d.ts +5 -3
  71. package/dist/components/Input/constants.js +7 -3
  72. package/dist/components/Input/index.d.ts +2 -2
  73. package/dist/components/Input/index.js +3 -2
  74. package/dist/components/Input/types.d.ts +2 -6
  75. package/dist/components/InputPassword/InputPassword.js +8 -8
  76. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  77. package/dist/components/InputRangeSlider/InputRangeSlider.d.ts +3 -0
  78. package/dist/components/InputRangeSlider/InputRangeSlider.js +219 -0
  79. package/dist/components/InputRangeSlider/constants.d.ts +10 -0
  80. package/dist/components/InputRangeSlider/constants.js +18 -0
  81. package/dist/components/InputRangeSlider/index.d.ts +3 -0
  82. package/dist/components/InputRangeSlider/index.js +7 -0
  83. package/dist/components/InputRangeSlider/types.d.ts +33 -0
  84. package/dist/components/ListFiles/ListFiles.js +7 -7
  85. package/dist/components/ListPhotos/ListPhotos.js +4 -4
  86. package/dist/components/MergedButton/MergedButton.js +6 -6
  87. package/dist/components/NotificationBadge/NotificationBadge.js +4 -4
  88. package/dist/components/OtpInput/OtpInput.js +5 -5
  89. package/dist/components/Pagination/Pagination.d.ts +1 -3
  90. package/dist/components/Pagination/Pagination.js +7 -11
  91. package/dist/components/RadioGroup/RadioGroup.js +9 -9
  92. package/dist/components/SelectSearch/SelectSearch.d.ts +18 -2
  93. package/dist/components/SelectSearch/SelectSearch.js +47 -31
  94. package/dist/components/SelectSearch/types.d.ts +2 -4
  95. package/dist/components/Skeleton/SkeletonBrick/SkeletonBrick.d.ts +12 -0
  96. package/dist/components/Skeleton/SkeletonBrick/SkeletonBrick.js +34 -0
  97. package/dist/components/Skeleton/SkeletonCircle/SkeletonCircle.d.ts +9 -0
  98. package/dist/components/Skeleton/SkeletonCircle/SkeletonCircle.js +31 -0
  99. package/dist/components/Skeleton/SkeletonText/SkeletonText.d.ts +10 -0
  100. package/dist/components/Skeleton/SkeletonText/SkeletonText.js +49 -0
  101. package/dist/components/Skeleton/constants.d.ts +5 -0
  102. package/dist/components/Skeleton/constants.js +9 -0
  103. package/dist/components/Skeleton/index.d.ts +4 -0
  104. package/dist/components/Skeleton/index.js +10 -0
  105. package/dist/components/Slider/Slider.d.ts +3 -2
  106. package/dist/components/Slider/Slider.js +12 -10
  107. package/dist/components/Steps/Steps.d.ts +4 -0
  108. package/dist/components/Steps/Steps.js +5 -1
  109. package/dist/components/Switcher/Switcher.d.ts +3 -0
  110. package/dist/components/Switcher/Switcher.js +118 -0
  111. package/dist/components/Switcher/constants.d.ts +4 -0
  112. package/dist/components/Switcher/constants.js +8 -0
  113. package/dist/components/Switcher/index.d.ts +3 -0
  114. package/dist/components/Switcher/index.js +6 -0
  115. package/dist/components/Switcher/types.d.ts +30 -0
  116. package/dist/components/TabTrail/TabTrail.d.ts +8 -0
  117. package/dist/components/TabTrail/TabTrail.js +33 -17
  118. package/dist/components/Tag/Tag.js +6 -6
  119. package/dist/components/TextArea/TextArea.js +14 -12
  120. package/dist/components/TextArea/hooks.js +4 -0
  121. package/dist/components/Timer/Timer.js +1 -1
  122. package/dist/components/Toasts/ProgressBar.js +1 -1
  123. package/dist/components/Toasts/Toast.js +1 -1
  124. package/dist/components/Toasts/ToastList.js +1 -1
  125. package/dist/components/Toasts/ToastsProvider.js +1 -1
  126. package/dist/components/TwinSwitcher/TwinSwitcher.d.ts +10 -0
  127. package/dist/components/TwinSwitcher/TwinSwitcher.js +65 -0
  128. package/dist/components/TwinSwitcher/index.d.ts +1 -0
  129. package/dist/components/TwinSwitcher/index.js +4 -0
  130. package/dist/components/UniversalUploader/UniversalUploader.js +21 -35
  131. package/dist/components/Uploader/Uploader.js +3 -3
  132. package/dist/components/UploaderFiles/UploaderFiles.js +1 -1
  133. package/dist/components/UploaderPhotos/UploaderPhotos.js +1 -1
  134. package/dist/components/Vote/Vote.d.ts +8 -0
  135. package/dist/components/Vote/Vote.js +6 -4
  136. package/dist/components/index.d.ts +14 -2
  137. package/dist/components/index.js +31 -2
  138. package/dist/field-bS4z9Sdl.js +12 -0
  139. package/dist/icons/Icon.js +1 -1
  140. package/dist/index.js +31 -2
  141. package/dist/{label-BTEGh6O_.js → label-P7Xsi5N7.js} +2 -2
  142. package/dist/styles.module-B9L4B63y.js +40 -0
  143. package/dist/variant.module-BinTBzAV.js +15 -0
  144. package/package.json +1 -1
  145. package/dist/components/Button/types.js +0 -1
  146. package/dist/components/Input/types.js +0 -1
  147. package/dist/components/NotificationBadge/types.js +0 -1
  148. package/dist/components/Pagination/types.js +0 -1
  149. package/dist/components/SelectSearch/types.js +0 -1
  150. package/dist/components/Steps/types.js +0 -1
  151. package/dist/components/Tag/types.js +0 -1
  152. package/dist/components/TextArea/types.js +0 -1
  153. package/dist/components/Toasts/types.js +0 -1
  154. package/dist/components/UniversalUploader/types.js +0 -1
  155. package/dist/components/Vote/types.js +0 -1
  156. package/dist/icons/components/types.js +0 -1
  157. package/dist/styles.module-Ugsf0AOb.js +0 -38
@@ -1,7 +1,8 @@
1
- import { I } from "../../Input-ChCIy5oY.js";
2
- import { EInputSize, EInputVariant } from "./constants.js";
1
+ import { I } from "../../Input-DspsU5F4.js";
2
+ import { EInputSize, EInputStatus, EInputVariant } from "./constants.js";
3
3
  export {
4
4
  EInputSize,
5
+ EInputStatus,
5
6
  EInputVariant,
6
7
  I as Input
7
8
  };
@@ -1,14 +1,10 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
- import { EInputSize, EInputVariant } from './constants';
2
+ import { EInputSize, EInputVariant, EInputStatus } from './constants';
3
3
  import { TIcon } from '../../icons';
4
4
 
5
5
  export type TSize = `${EInputSize}` | EInputSize;
6
6
  export type TVariant = `${EInputVariant}` | EInputVariant;
7
- export type TCommonCompoundInputProps = {
8
- size?: TSize;
9
- variant?: TVariant;
10
- className?: string;
11
- };
7
+ export type TStatus = `${EInputStatus}` | EInputStatus;
12
8
  type TTextAddon = {
13
9
  addonType?: 'text';
14
10
  addonContent?: string;
@@ -3,17 +3,17 @@ import { c as classNames } from "../../index-CweZ_OcN.js";
3
3
  import { memo, forwardRef, useState } from "react";
4
4
  import { Icon } from "../../icons/Icon.js";
5
5
  import { Button } from "../Button/Button.js";
6
- import { I as Input } from "../../Input-ChCIy5oY.js";
7
- import '../../assets/InputPassword.css';const input = "_input_34v9n_2";
8
- const wrapper = "_wrapper_34v9n_6";
9
- const button = "_button_34v9n_17";
10
- const icon = "_icon_34v9n_33";
11
- const show = "_show_34v9n_38";
6
+ import { I as Input } from "../../Input-DspsU5F4.js";
7
+ import '../../assets/InputPassword.css';const input = "_input_7b9x2_2";
8
+ const wrapper = "_wrapper_7b9x2_6";
9
+ const button = "_button_7b9x2_17";
10
+ const icon = "_icon_7b9x2_33";
11
+ const show = "_show_7b9x2_38";
12
12
  const cls = {
13
13
  input,
14
14
  wrapper,
15
- "input-wrapper": "_input-wrapper_34v9n_13",
16
- "button-wrapper": "_button-wrapper_34v9n_17",
15
+ "input-wrapper": "_input-wrapper_7b9x2_13",
16
+ "button-wrapper": "_button-wrapper_7b9x2_17",
17
17
  button,
18
18
  icon,
19
19
  show
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { memo, forwardRef, useState, useCallback, useImperativeHandle } from "react";
3
3
  import { getMaskedInputPhoneValue, getUnmaskedInputValue } from "./utils.js";
4
- import { I as Input } from "../../Input-ChCIy5oY.js";
4
+ import { I as Input } from "../../Input-DspsU5F4.js";
5
5
  const InputPhoneNumber = memo(
6
6
  forwardRef(
7
7
  ({ value = "", onChange, ...props }, ref) => {
@@ -0,0 +1,3 @@
1
+ import { TProps } from './types';
2
+
3
+ export declare const InputRangeSlider: import('react').MemoExoticComponent<({ min, max, value, disabled, isMinEqualMax, isSingleSlider, onChange, step, borderState, positions, minMaxDescriptions, onChangeValue, wrapperClassName, ...props }: TProps) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,219 @@
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
+ import { c as classNames } from "../../index-CweZ_OcN.js";
3
+ import { memo, useState, useEffect } from "react";
4
+ import { EInputRangeSliderPositions, EInputRangeSliderBorderState, DEFAULT_STEP, DEFAULT_WIDTH } from "./constants.js";
5
+ import '../../assets/InputRangeSlider.css';const wrapper = "_wrapper_1kfjr_8";
6
+ const input = "_input_1kfjr_18";
7
+ const rail = "_rail_1kfjr_115";
8
+ const off = "_off_1kfjr_124";
9
+ const right = "_right_1kfjr_124";
10
+ const left = "_left_1kfjr_145";
11
+ const control = "_control_1kfjr_36";
12
+ const disabled = "_disabled_1kfjr_170";
13
+ const cls = {
14
+ "main-wrapper": "_main-wrapper_1kfjr_2",
15
+ wrapper,
16
+ "input-wrapper": "_input-wrapper_1kfjr_18",
17
+ "info-wrapper": "_info-wrapper_1kfjr_26",
18
+ "control-wrapper": "_control-wrapper_1kfjr_36",
19
+ input,
20
+ "equal-value": "_equal-value_1kfjr_108",
21
+ "is-double-range": "_is-double-range_1kfjr_111",
22
+ rail,
23
+ off,
24
+ right,
25
+ "double-range": "_double-range_1kfjr_124",
26
+ "inner-rail": "_inner-rail_1kfjr_134",
27
+ left,
28
+ control,
29
+ disabled
30
+ };
31
+ const InputRangeSlider = memo(
32
+ ({
33
+ min,
34
+ max,
35
+ value,
36
+ disabled: disabled2,
37
+ isMinEqualMax = false,
38
+ isSingleSlider = true,
39
+ onChange,
40
+ step = DEFAULT_STEP,
41
+ borderState = EInputRangeSliderBorderState.ON,
42
+ positions = EInputRangeSliderPositions.LEFT,
43
+ minMaxDescriptions,
44
+ onChangeValue,
45
+ wrapperClassName,
46
+ ...props
47
+ }) => {
48
+ const [minValue, setMinValue] = useState(() => (value == null ? void 0 : value.min) ?? min);
49
+ const [maxValue, setMaxValue] = useState(() => (value == null ? void 0 : value.max) ?? max);
50
+ const {
51
+ max: maxDescription,
52
+ min: minDescription,
53
+ maxClassName,
54
+ minClassName
55
+ } = minMaxDescriptions ?? {};
56
+ useEffect(() => {
57
+ if (value) {
58
+ value.min && setMinValue(value.min);
59
+ value.max && setMaxValue(value.max);
60
+ }
61
+ }, [value]);
62
+ const handleMinChange = (event) => {
63
+ event.preventDefault();
64
+ const newMinVal = Math.min(
65
+ +event.target.value,
66
+ isSingleSlider || isMinEqualMax ? maxValue : maxValue - step
67
+ );
68
+ if (!value) {
69
+ setMinValue(newMinVal);
70
+ }
71
+ onChangeValue == null ? void 0 : onChangeValue({ min: newMinVal, max: maxValue });
72
+ onChange == null ? void 0 : onChange(event);
73
+ };
74
+ const handleMaxChange = (event) => {
75
+ event.preventDefault();
76
+ const newMaxVal = Math.max(
77
+ +event.target.value,
78
+ isMinEqualMax ? minValue : minValue + step
79
+ );
80
+ if (!value) {
81
+ setMaxValue(newMaxVal);
82
+ }
83
+ onChangeValue == null ? void 0 : onChangeValue({ min: minValue, max: newMaxVal });
84
+ onChange == null ? void 0 : onChange(event);
85
+ };
86
+ const minPos = (minValue - min) / (max - min) * DEFAULT_WIDTH;
87
+ const maxPos = (maxValue - min) / (max - min) * DEFAULT_WIDTH;
88
+ const isLeftPosition = positions === EInputRangeSliderPositions.LEFT;
89
+ const isEqualValue = minValue === maxValue && maxPos !== 0;
90
+ const isOff = borderState === EInputRangeSliderBorderState.OFF;
91
+ const renderInputs = () => {
92
+ const inputProps = {
93
+ ...props,
94
+ type: "range",
95
+ min,
96
+ max,
97
+ step
98
+ };
99
+ const leftInput = /* @__PURE__ */ jsx(
100
+ "input",
101
+ {
102
+ ...inputProps,
103
+ className: classNames(cls.input, {
104
+ [cls["equal-value"]]: isEqualValue,
105
+ [cls["is-double-range"]]: !isSingleSlider
106
+ }),
107
+ disabled: disabled2,
108
+ value: minValue,
109
+ onChange: handleMinChange
110
+ }
111
+ );
112
+ const rightInput = /* @__PURE__ */ jsx(
113
+ "input",
114
+ {
115
+ ...inputProps,
116
+ className: classNames(cls.input, {
117
+ [cls["is-double-range"]]: !isSingleSlider
118
+ }),
119
+ disabled: disabled2,
120
+ value: maxValue,
121
+ onChange: handleMaxChange
122
+ }
123
+ );
124
+ if (isSingleSlider) {
125
+ return isLeftPosition ? leftInput : rightInput;
126
+ }
127
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
128
+ leftInput,
129
+ rightInput
130
+ ] });
131
+ };
132
+ const renderControls = () => {
133
+ const leftControl = /* @__PURE__ */ jsx(
134
+ "div",
135
+ {
136
+ className: classNames(cls.control, {
137
+ [cls.disabled]: disabled2
138
+ }),
139
+ style: {
140
+ left: `${minPos}%`
141
+ }
142
+ }
143
+ );
144
+ const rightControl = /* @__PURE__ */ jsx(
145
+ "div",
146
+ {
147
+ className: classNames(cls.control, {
148
+ [cls.disabled]: disabled2
149
+ }),
150
+ style: {
151
+ left: `${maxPos}%`
152
+ }
153
+ }
154
+ );
155
+ const getRailWidth = () => {
156
+ if (isOff) {
157
+ return isLeftPosition ? `${minPos}%` : `${DEFAULT_WIDTH - maxPos}%`;
158
+ }
159
+ return !isLeftPosition ? `${DEFAULT_WIDTH - maxPos}%` : void 0;
160
+ };
161
+ const innerRailRight = isSingleSlider && !isLeftPosition ? "0%" : `${DEFAULT_WIDTH - maxPos}%`;
162
+ const innerRailWidth = isSingleSlider && !isLeftPosition ? getRailWidth() : `${maxPos - minPos}%`;
163
+ const rail2 = /* @__PURE__ */ jsxs(Fragment, { children: [
164
+ /* @__PURE__ */ jsx(
165
+ "div",
166
+ {
167
+ style: {
168
+ width: !isOff && !isLeftPosition ? `${maxPos}%` : getRailWidth()
169
+ },
170
+ className: classNames(cls.rail, cls[borderState], cls[positions], {
171
+ [cls["double-range"]]: !isSingleSlider
172
+ })
173
+ }
174
+ ),
175
+ /* @__PURE__ */ jsx(
176
+ "div",
177
+ {
178
+ style: {
179
+ right: innerRailRight,
180
+ width: innerRailWidth
181
+ },
182
+ className: classNames(
183
+ cls["inner-rail"],
184
+ cls[borderState],
185
+ cls[positions],
186
+ {
187
+ [cls["double-range"]]: !isSingleSlider
188
+ }
189
+ )
190
+ }
191
+ )
192
+ ] });
193
+ if (isSingleSlider) {
194
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
195
+ isLeftPosition ? leftControl : rightControl,
196
+ rail2
197
+ ] });
198
+ }
199
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
200
+ leftControl,
201
+ rail2,
202
+ rightControl
203
+ ] });
204
+ };
205
+ return /* @__PURE__ */ jsxs("div", { className: classNames(cls["main-wrapper"], wrapperClassName), children: [
206
+ /* @__PURE__ */ jsxs("div", { className: cls["info-wrapper"], children: [
207
+ !!minDescription && /* @__PURE__ */ jsx("div", { className: minClassName, children: minDescription }),
208
+ !!maxDescription && /* @__PURE__ */ jsx("div", { className: maxClassName, children: maxDescription })
209
+ ] }),
210
+ /* @__PURE__ */ jsxs("div", { className: cls.wrapper, children: [
211
+ /* @__PURE__ */ jsx("div", { className: cls["control-wrapper"], children: renderControls() }),
212
+ /* @__PURE__ */ jsx("div", { className: cls["input-wrapper"], children: renderInputs() })
213
+ ] })
214
+ ] });
215
+ }
216
+ );
217
+ export {
218
+ InputRangeSlider
219
+ };
@@ -0,0 +1,10 @@
1
+ export declare enum EInputRangeSliderPositions {
2
+ LEFT = "left",
3
+ RIGHT = "right"
4
+ }
5
+ export declare enum EInputRangeSliderBorderState {
6
+ ON = "on",
7
+ OFF = "off"
8
+ }
9
+ export declare const DEFAULT_STEP = 1;
10
+ export declare const DEFAULT_WIDTH = 100;
@@ -0,0 +1,18 @@
1
+ var EInputRangeSliderPositions = /* @__PURE__ */ ((EInputRangeSliderPositions2) => {
2
+ EInputRangeSliderPositions2["LEFT"] = "left";
3
+ EInputRangeSliderPositions2["RIGHT"] = "right";
4
+ return EInputRangeSliderPositions2;
5
+ })(EInputRangeSliderPositions || {});
6
+ var EInputRangeSliderBorderState = /* @__PURE__ */ ((EInputRangeSliderBorderState2) => {
7
+ EInputRangeSliderBorderState2["ON"] = "on";
8
+ EInputRangeSliderBorderState2["OFF"] = "off";
9
+ return EInputRangeSliderBorderState2;
10
+ })(EInputRangeSliderBorderState || {});
11
+ const DEFAULT_STEP = 1;
12
+ const DEFAULT_WIDTH = 100;
13
+ export {
14
+ DEFAULT_STEP,
15
+ DEFAULT_WIDTH,
16
+ EInputRangeSliderBorderState,
17
+ EInputRangeSliderPositions
18
+ };
@@ -0,0 +1,3 @@
1
+ export { InputRangeSlider } from './InputRangeSlider';
2
+ export { EInputRangeSliderBorderState, EInputRangeSliderPositions } from './constants';
3
+ export type { TProps as TInputRangeSliderProps } from './types';
@@ -0,0 +1,7 @@
1
+ import { InputRangeSlider } from "./InputRangeSlider.js";
2
+ import { EInputRangeSliderBorderState, EInputRangeSliderPositions } from "./constants.js";
3
+ export {
4
+ EInputRangeSliderBorderState,
5
+ EInputRangeSliderPositions,
6
+ InputRangeSlider
7
+ };
@@ -0,0 +1,33 @@
1
+ import { ComponentProps, ReactNode } from 'react';
2
+ import { EInputRangeSliderBorderState, EInputRangeSliderPositions } from './constants';
3
+
4
+ type TInputRangeSliderDoubleRangeProps = {
5
+ isSingleSlider: true;
6
+ positions?: EInputRangeSliderPositions | `${EInputRangeSliderPositions}`;
7
+ } | {
8
+ isSingleSlider?: false;
9
+ positions?: never;
10
+ };
11
+ export type TProps = TInputRangeSliderDoubleRangeProps & ({
12
+ min: number;
13
+ max: number;
14
+ step?: number;
15
+ wrapperClassName?: string;
16
+ isMinEqualMax?: boolean;
17
+ value?: {
18
+ min: number;
19
+ max: number;
20
+ };
21
+ onChangeValue?: (value: {
22
+ min: number;
23
+ max: number;
24
+ }) => void;
25
+ borderState?: EInputRangeSliderBorderState | `${EInputRangeSliderBorderState}`;
26
+ minMaxDescriptions?: {
27
+ min: ReactNode;
28
+ max: ReactNode;
29
+ minClassName?: string;
30
+ maxClassName?: string;
31
+ };
32
+ } & Omit<ComponentProps<'input'>, 'value'>);
33
+ export {};
@@ -3,13 +3,13 @@ import { useState, useEffect } from "react";
3
3
  import { formating } from "../../utils/index.js";
4
4
  import { Button } from "../Button/Button.js";
5
5
  import '../../assets/ListFiles.css';const cls = {
6
- "file-info": "_file-info_exvu6_2",
7
- "file-info-size": "_file-info-size_exvu6_8",
8
- "file-info-name-wrapper": "_file-info-name-wrapper_exvu6_16",
9
- "file-info-name": "_file-info-name_exvu6_16",
10
- "file-upload-container": "_file-upload-container_exvu6_34",
11
- "file-upload-container-item": "_file-upload-container-item_exvu6_42",
12
- "delete-button": "_delete-button_exvu6_51"
6
+ "file-info": "_file-info_12h1y_2",
7
+ "file-info-size": "_file-info-size_12h1y_8",
8
+ "file-info-name-wrapper": "_file-info-name-wrapper_12h1y_16",
9
+ "file-info-name": "_file-info-name_12h1y_16",
10
+ "file-upload-container": "_file-upload-container_12h1y_34",
11
+ "file-upload-container-item": "_file-upload-container-item_12h1y_42",
12
+ "delete-button": "_delete-button_12h1y_51"
13
13
  };
14
14
  function ListFiles({ value, onChange }) {
15
15
  const [list, setList] = useState(value);
@@ -2,10 +2,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { Button } from "../Button/Button.js";
4
4
  import '../../assets/ListPhotos.css';const cls = {
5
- "list-photos": "_list-photos_1m1u4_2",
6
- "list-photos-item": "_list-photos-item_1m1u4_10",
7
- "list-photos-image": "_list-photos-image_1m1u4_19",
8
- "delete-button": "_delete-button_1m1u4_24"
5
+ "list-photos": "_list-photos_if5ro_2",
6
+ "list-photos-item": "_list-photos-item_if5ro_10",
7
+ "list-photos-image": "_list-photos-image_if5ro_19",
8
+ "delete-button": "_delete-button_if5ro_24"
9
9
  };
10
10
  function ListPhotos({ value, onChange }) {
11
11
  const [list, setList] = useState(value);
@@ -3,17 +3,17 @@ import { c as classNames } from "../../index-CweZ_OcN.js";
3
3
  import { memo } from "react";
4
4
  import { EMergedButtonVariantRound } from "./constants.js";
5
5
  import { Button } from "../Button/Button.js";
6
- import '../../assets/MergedButton.css';const buttons = "_buttons_1s9fa_2";
7
- const gray = "_gray_1s9fa_28";
8
- const white = "_white_1s9fa_36";
9
- const transparent = "_transparent_1s9fa_44";
6
+ import '../../assets/MergedButton.css';const buttons = "_buttons_p8gim_2";
7
+ const gray = "_gray_p8gim_28";
8
+ const white = "_white_p8gim_36";
9
+ const transparent = "_transparent_p8gim_44";
10
10
  const cls = {
11
11
  buttons,
12
- "merged-button": "_merged-button_1s9fa_6",
12
+ "merged-button": "_merged-button_p8gim_6",
13
13
  gray,
14
14
  white,
15
15
  transparent,
16
- "is-icon": "_is-icon_1s9fa_53"
16
+ "is-icon": "_is-icon_p8gim_53"
17
17
  };
18
18
  const MergedButton = memo(({ buttons: buttons2 }) => {
19
19
  return /* @__PURE__ */ jsx("div", { className: cls.buttons, children: buttons2.map(
@@ -1,11 +1,11 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { c as classNames } from "../../index-CweZ_OcN.js";
3
3
  import { ENotificationBadgeSize } from "./constants.js";
4
- import '../../assets/NotificationBadge.css';const m = "_m_1rrs6_18";
5
- const s = "_s_1rrs6_24";
4
+ import '../../assets/NotificationBadge.css';const m = "_m_ugqfj_18";
5
+ const s = "_s_ugqfj_24";
6
6
  const cls = {
7
- "notification-badge": "_notification-badge_1rrs6_2",
8
- "notification-badge-absolute": "_notification-badge-absolute_1rrs6_14",
7
+ "notification-badge": "_notification-badge_ugqfj_2",
8
+ "notification-badge-absolute": "_notification-badge-absolute_ugqfj_14",
9
9
  m,
10
10
  s
11
11
  };
@@ -3,13 +3,13 @@ import { c as classNames } from "../../index-CweZ_OcN.js";
3
3
  import { forwardRef, useImperativeHandle, Fragment } from "react";
4
4
  import { ITEMS_PER_SEPARATOR, DEFAULT_VALUE_LENGTH } from "./constants.js";
5
5
  import { useOTPInput } from "./hooks.js";
6
- import { I as Input } from "../../Input-ChCIy5oY.js";
7
- import '../../assets/OtpInput.css';const otp = "_otp_19unm_3";
8
- const input = "_input_19unm_14";
9
- const separator = "_separator_19unm_28";
6
+ import { I as Input } from "../../Input-DspsU5F4.js";
7
+ import '../../assets/OtpInput.css';const otp = "_otp_1shq3_3";
8
+ const input = "_input_1shq3_14";
9
+ const separator = "_separator_1shq3_28";
10
10
  const cls = {
11
11
  otp,
12
- "input-wrapper": "_input-wrapper_19unm_14",
12
+ "input-wrapper": "_input-wrapper_1shq3_14",
13
13
  input,
14
14
  separator
15
15
  };
@@ -1,5 +1,3 @@
1
- import { default as React } from 'react';
2
-
3
1
  export type TBackProps = {
4
2
  currentPageNumber: number;
5
3
  onClick: (nextPage: number) => void;
@@ -39,4 +37,4 @@ export type TProps = {
39
37
  */
40
38
  currentPageNumber?: number;
41
39
  };
42
- export declare const Pagination: React.ForwardRefExoticComponent<TProps & React.RefAttributes<HTMLElement>>;
40
+ export declare const Pagination: import('react').ForwardRefExoticComponent<TProps & import('react').RefAttributes<HTMLElement>>;
@@ -4,23 +4,19 @@ import { forwardRef, useState, useEffect } from "react";
4
4
  import { FIRST_PAGE_NUMBER, DEFAULT_PER_PAGE } from "./constants.js";
5
5
  import { useWindowSize } from "../../hooks/useWindowSize/index.js";
6
6
  import { Icon } from "../../icons/Icon.js";
7
- import '../../assets/Pagination.css';const container = "_container_1s8aj_2";
8
- const link = "_link_1s8aj_11";
9
- const item = "_item_1s8aj_46";
10
- const isActive = "_isActive_1s8aj_52";
11
- const disabled = "_disabled_1s8aj_58";
7
+ import '../../assets/Pagination.css';const container = "_container_18kj0_2";
8
+ const item = "_item_18kj0_11";
9
+ const link = "_link_18kj0_18";
10
+ const isActive = "_isActive_18kj0_53";
11
+ const disabled = "_disabled_18kj0_56";
12
12
  const cls = {
13
13
  container,
14
- link,
15
14
  item,
15
+ link,
16
16
  isActive,
17
17
  disabled
18
18
  };
19
- const Back = ({
20
- currentPageNumber,
21
- onClick,
22
- setCurrentPage
23
- }) => {
19
+ const Back = ({ currentPageNumber, onClick, setCurrentPage }) => {
24
20
  const handleClick = (event) => {
25
21
  event.preventDefault();
26
22
  if (currentPageNumber === FIRST_PAGE_NUMBER) return;
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { K, w, a, z as z$1, U, l, T, j as j$1, u as u$1, I, G, p } from "../../label-BTEGh6O_.js";
2
+ import { K, w, a, z as z$1, U, b as l, T, j as j$1, u as u$1, I, G, p } from "../../label-P7Xsi5N7.js";
3
3
  import { W, y, o, H, s, n, $ as $f7dceffc5ad7768b$export$4e328f61c538687f, b as $6179b936705e76d3$export$ae780daf29e6d456, D, a as u$2, u as u$3, c as o$1 } from "../../keyboard-B256ZoM-.js";
4
4
  import React__default, { createContext, useId, useReducer, useRef, useMemo, useCallback, useContext, forwardRef } from "react";
5
5
  import { u } from "../../use-by-comparator-BUO78DGe.js";
@@ -103,16 +103,16 @@ function we(o$12, t) {
103
103
  return H({ ourProps: s$1, theirProps: I$1, slot: _2, defaultTag: He, name: "Radio" });
104
104
  }
105
105
  let Ne = W(Ue), We = W(Se), Be = W(we), Ve = K, Ke = w, Tt = Object.assign(Ne, { Option: We, Radio: Be, Label: Ve, Description: Ke });
106
- const group = "_group_17dic_3";
107
- const radio = "_radio_17dic_18";
108
- const disabled = "_disabled_17dic_40";
109
- const label = "_label_17dic_51";
110
- const frame = "_frame_17dic_64";
111
- const checked = "_checked_17dic_73";
106
+ const group = "_group_yses6_3";
107
+ const radio = "_radio_yses6_18";
108
+ const disabled = "_disabled_yses6_40";
109
+ const label = "_label_yses6_51";
110
+ const frame = "_frame_yses6_64";
111
+ const checked = "_checked_yses6_73";
112
112
  const cls = {
113
113
  group,
114
- "content-wrapper": "_content-wrapper_17dic_8",
115
- "radio-wrapper": "_radio-wrapper_17dic_18",
114
+ "content-wrapper": "_content-wrapper_yses6_8",
115
+ "radio-wrapper": "_radio-wrapper_yses6_18",
116
116
  radio,
117
117
  disabled,
118
118
  label,
@@ -1,3 +1,19 @@
1
- import { TSelectSearchProps } from './types';
1
+ import { ESelectSearchSize } from './constants';
2
+ import { TSelectOption } from './types';
2
3
 
3
- export declare const SelectSearch: import('react').ForwardRefExoticComponent<TSelectSearchProps & import('react').RefAttributes<HTMLElement>>;
4
+ export declare const SelectSearch: import('react').ForwardRefExoticComponent<Pick<import('../Input').TInputProps, "variant" | "withClearButton"> & {
5
+ value?: TSelectOption | null;
6
+ onChange?: (value: TSelectOption) => void;
7
+ placeholder?: string;
8
+ size?: ESelectSearchSize;
9
+ full?: boolean;
10
+ displayValue?: string;
11
+ showArrow?: boolean;
12
+ onSearch?: (value: string) => void;
13
+ filterOnSearch?: boolean;
14
+ items: TSelectOption[];
15
+ classNameOption?: string;
16
+ menuPlacement?: import('./types').TMenuPlacement;
17
+ disabled?: boolean;
18
+ searchProps?: Pick<import('../Input').TInputProps, "numbersOnly" | "maxLength">;
19
+ } & import('react').RefAttributes<HTMLElement>>;