mimir-ui-kit 1.43.9 → 1.43.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Input-CGZoshMl.js +224 -0
- package/dist/assets/Accordion.css +1 -1
- package/dist/assets/AccordionItem.css +1 -1
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/CarBodyButton.css +1 -0
- package/dist/assets/CheckboxMimir.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/GosZnak.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputPassword.css +1 -1
- package/dist/assets/InputRangeSlider.css +1 -1
- package/dist/assets/Link.css +1 -1
- package/dist/assets/ListFiles.css +1 -1
- package/dist/assets/ListPhotos.css +1 -1
- package/dist/assets/MessageShortReply.css +1 -1
- package/dist/assets/MiniButton.css +1 -0
- package/dist/assets/MultiSelectSearch.css +1 -1
- package/dist/assets/NotificationBadge.css +1 -1
- package/dist/assets/OtpInput.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/RoundButton.css +1 -0
- package/dist/assets/ScrollWrapper.css +1 -0
- package/dist/assets/SelectSearch.css +1 -1
- package/dist/assets/hooks.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/components/Accordion/Accordion.d.ts +10 -3
- package/dist/components/Accordion/Accordion.js +286 -212
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
- package/dist/components/Accordion/constants.d.ts +0 -4
- package/dist/components/Accordion/constants.js +4 -5
- package/dist/components/AnchorLink/Link.js +21 -20
- package/dist/components/Avatar/Avatar.js +26 -26
- package/dist/components/Button/Button.js +110 -87
- package/dist/components/Button/constants.d.ts +8 -2
- package/dist/components/Button/constants.js +6 -5
- package/dist/components/CarBodyButton/CarBodyButton.d.ts +26 -0
- package/dist/components/CarBodyButton/CarBodyButton.js +40 -0
- package/dist/components/CarBodyButton/index.d.ts +1 -0
- package/dist/components/CarBodyButton/index.js +4 -0
- package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +2 -0
- package/dist/components/CheckboxMimir/CheckboxMimir.js +37 -35
- package/dist/components/Chip/Chip.js +17 -17
- package/dist/components/DatePicker/DatePicker.d.ts +8 -0
- package/dist/components/DatePicker/DatePicker.js +182 -169
- package/dist/components/DatePicker/DatePickerModal.js +134 -98
- package/dist/components/DatePicker/MonthPickerModal.js +115 -95
- package/dist/components/DatePicker/YearPickerModal.js +109 -89
- package/dist/components/DatePicker/constants.d.ts +1 -0
- package/dist/components/DatePicker/constants.js +1 -1
- package/dist/components/DatePicker/hooks.d.ts +2 -1
- package/dist/components/DatePicker/hooks.js +12 -12
- package/dist/components/Drawer/Drawer.js +172 -138
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.d.ts +11 -0
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.js +27 -0
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/hooks.js +1 -1
- package/dist/components/GosZnak/GosZnak.js +47 -38
- package/dist/components/GosZnak/utils.d.ts +6 -0
- package/dist/components/GosZnak/utils.js +15 -0
- package/dist/components/Input/Input.d.ts +4 -0
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputPassword/InputPassword.js +38 -42
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/InputRangeSlider/InputRangeSlider.js +159 -139
- package/dist/components/InputRangeSlider/constants.d.ts +5 -0
- package/dist/components/InputRangeSlider/constants.js +11 -6
- package/dist/components/ListFiles/ListFiles.js +41 -39
- package/dist/components/ListPhotos/ListPhotos.js +17 -18
- package/dist/components/MessageShortReply/MessageShortReply.js +34 -34
- package/dist/components/{InputClearButton/ClearButton.d.ts → MiniButton/MiniButton.d.ts} +17 -8
- package/dist/components/MiniButton/MiniButton.js +44 -0
- package/dist/components/MiniButton/constants.d.ts +9 -0
- package/dist/components/MiniButton/constants.js +5 -0
- package/dist/components/MiniButton/index.d.ts +4 -0
- package/dist/components/MiniButton/index.js +6 -0
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +153 -152
- package/dist/components/MultiSelectSearch/constants.d.ts +1 -0
- package/dist/components/MultiSelectSearch/constants.js +7 -7
- package/dist/components/MultiSelectSearch/utils.d.ts +1 -1
- package/dist/components/MultiSelectSearch/utils.js +18 -16
- package/dist/components/NotificationBadge/NotificationBadge.js +49 -33
- package/dist/components/NotificationBadge/constants.d.ts +9 -2
- package/dist/components/NotificationBadge/constants.js +3 -2
- package/dist/components/NotificationBadge/types.d.ts +11 -1
- package/dist/components/NotificationBadge/utils.d.ts +8 -0
- package/dist/components/NotificationBadge/utils.js +4 -0
- package/dist/components/OtpInput/OtpInput.js +44 -40
- package/dist/components/OtpInput/constants.d.ts +4 -0
- package/dist/components/OtpInput/constants.js +6 -4
- package/dist/components/OtpInput/index.d.ts +1 -0
- package/dist/components/OtpInput/index.js +2 -0
- package/dist/components/Pagination/Pagination.js +23 -23
- package/dist/components/RoundButton/RoundButton.d.ts +82 -0
- package/dist/components/RoundButton/RoundButton.js +69 -0
- package/dist/components/RoundButton/constants.d.ts +11 -0
- package/dist/components/RoundButton/constants.js +5 -0
- package/dist/components/RoundButton/index.d.ts +2 -0
- package/dist/components/RoundButton/index.js +7 -0
- package/dist/components/RoundButton/types.d.ts +20 -0
- package/dist/components/SelectSearch/SelectSearch.d.ts +2 -0
- package/dist/components/SelectSearch/SelectSearch.js +273 -236
- package/dist/components/SelectSearch/types.d.ts +9 -1
- package/dist/components/SelectSearch/utils.d.ts +1 -1
- package/dist/components/SelectSearch/utils.js +1 -1
- package/dist/components/Slider/Slider.d.ts +1 -5
- package/dist/components/Slider/Slider.js +34 -36
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +55 -51
- package/dist/hooks-Cd4Ez6_j.js +117 -0
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/16px/DropdownArrowDown16px.js +23 -0
- package/dist/icons/components/24px/EyeClosed24px.js +65 -0
- package/dist/icons/components/Avito.js +36 -13
- package/dist/icons/components/Site.js +13 -36
- package/dist/icons/components/index.js +564 -591
- package/dist/{index-C2dQUuc9.js → index-DrVFMaBi.js} +1184 -1346
- package/dist/index.js +73 -69
- package/dist/styles.module-BfkM1-KJ.js +32 -0
- package/package.json +1 -1
- package/dist/Input-BU_6U1CW.js +0 -227
- package/dist/assets/ClearButton.css +0 -1
- package/dist/components/InputClearButton/ClearButton.js +0 -41
- package/dist/components/InputClearButton/constants.d.ts +0 -8
- package/dist/components/InputClearButton/constants.js +0 -5
- package/dist/components/InputClearButton/index.d.ts +0 -4
- package/dist/components/InputClearButton/index.js +0 -6
- package/dist/hooks-HgN6Yauq.js +0 -117
- package/dist/icons/components/64px/AdvancePaymentDiscount64px.js +0 -59
- package/dist/icons/components/64px/AtsVendors64px.js +0 -37
- package/dist/icons/components/64px/ButtonOn64px.js +0 -31
- package/dist/icons/components/64px/BuyoutAuto64px.js +0 -45
- package/dist/icons/components/64px/CarAssistance64px.js +0 -44
- package/dist/icons/components/64px/CarDelivery64px.js +0 -37
- package/dist/icons/components/64px/CarSearchReturn64px.js +0 -45
- package/dist/icons/components/64px/CarService64px.js +0 -37
- package/dist/icons/components/64px/Case64px.js +0 -33
- package/dist/icons/components/64px/CoatOfArms64px.js +0 -149
- package/dist/icons/components/64px/CoffeeCup64px.js +0 -44
- package/dist/icons/components/64px/Cup64px.js +0 -38
- package/dist/icons/components/64px/ExpertAdvice64px.js +0 -40
- package/dist/icons/components/64px/Fines64px.js +0 -88
- package/dist/icons/components/64px/Fuel64px.js +0 -38
- package/dist/icons/components/64px/GazprombankIcon24px.js +0 -21
- package/dist/icons/components/64px/Kasko64px.js +0 -44
- package/dist/icons/components/64px/LegalSupport64px.js +0 -58
- package/dist/icons/components/64px/Microphone64px.js +0 -37
- package/dist/icons/components/64px/Money64px.js +0 -60
- package/dist/icons/components/64px/PaymentSchedule64px.js +0 -39
- package/dist/icons/components/64px/PersonalManager64px.js +0 -100
- package/dist/icons/components/64px/PreApproval64px.js +0 -44
- package/dist/icons/components/64px/Questions64px.js +0 -37
- package/dist/icons/components/64px/SupportGeography64px.js +0 -51
- package/dist/icons/components/64px/Timer64px.js +0 -45
- package/dist/icons/components/64px/Twogis64px.js +0 -51
- package/dist/icons/components/64px/Vehicles64px.js +0 -45
- package/dist/icons/components/64px/Workplace64px.js +0 -38
- package/dist/styles.module-Cuqm31CO.js +0 -28
@@ -3,12 +3,13 @@ import { ELoadingIndicatorPlacement, ESelectSearchSize } from './constants';
|
|
3
3
|
import { TInputProps } from '../Input';
|
4
4
|
|
5
5
|
export type TSelectOption = {
|
6
|
-
name: string;
|
6
|
+
name: string | ReactNode;
|
7
7
|
id: number | string;
|
8
8
|
bottom?: ReactNode;
|
9
9
|
[index: string]: unknown;
|
10
10
|
};
|
11
11
|
export type TMenuPlacement = 'top' | 'bottom';
|
12
|
+
export type TOptionLayout = 'name-bottom' | 'bottom-name';
|
12
13
|
export type TSelectSearchProps = Pick<TInputProps, 'withClearButton' | 'variant'> & {
|
13
14
|
/**
|
14
15
|
* Текущее выбранное значение.
|
@@ -44,6 +45,8 @@ export type TSelectSearchProps = Pick<TInputProps, 'withClearButton' | 'variant'
|
|
44
45
|
items: TSelectOption[];
|
45
46
|
/** Класснейм для значения */
|
46
47
|
classNameOption?: string;
|
48
|
+
/** Класснейм для внутреннего контейнера опции */
|
49
|
+
classNameOptionInner?: string;
|
47
50
|
/** Варианты отображения выпадающего меню */
|
48
51
|
menuPlacement?: TMenuPlacement;
|
49
52
|
/** Отключает компонент SelectSearch */
|
@@ -87,4 +90,9 @@ export type TSelectSearchProps = Pick<TInputProps, 'withClearButton' | 'variant'
|
|
87
90
|
* @returns Строка для отображения в заголовке группы
|
88
91
|
*/
|
89
92
|
getGroupTitle?: (groupValue: string) => string;
|
93
|
+
/**
|
94
|
+
* Порядок отображения элементов в опции
|
95
|
+
* @default 'name-bottom'
|
96
|
+
*/
|
97
|
+
optionLayout?: TOptionLayout;
|
90
98
|
};
|
@@ -3,5 +3,5 @@ import { TSelectOption } from './types';
|
|
3
3
|
import { EInputSize } from '../Input';
|
4
4
|
|
5
5
|
export declare const mapSizeToInputSize: (size: ESelectSearchSize) => EInputSize;
|
6
|
-
export declare const getDropdownArrowIcon: (isOpen: boolean, size: ESelectSearchSize) => "DropdownArrowBottom16px" | "
|
6
|
+
export declare const getDropdownArrowIcon: (isOpen: boolean, size: ESelectSearchSize) => "DropdownArrowBottom16px" | "DropdownArrowUp24px" | "DropdownArrowUp16px" | "DropdownArrowDown24px";
|
7
7
|
export declare const prepareGroupedItems: (items: TSelectOption[], groupBy: string, getGroupTitle: (value: string) => string) => TSelectOption[];
|
@@ -27,10 +27,6 @@ type TProps = SwiperProps & {
|
|
27
27
|
* Показывать стрелки навигации и количество слайдов.
|
28
28
|
*/
|
29
29
|
needNavigation?: boolean;
|
30
|
-
/**
|
31
|
-
* Приостанавливать автопрокрутку при наведении на слайдер.
|
32
|
-
*/
|
33
|
-
pauseOnMouseEnter?: boolean;
|
34
30
|
/**
|
35
31
|
* Функция, которая будет вызвана при клике на слайд.
|
36
32
|
*/
|
@@ -92,5 +88,5 @@ type TProps = SwiperProps & {
|
|
92
88
|
*/
|
93
89
|
images?: TSlideImage[];
|
94
90
|
};
|
95
|
-
export default function Slider({ images, children, gap, onSlideClick, swiperClassName, slideClassName, imageClassName, navigationClassName, navigationContent, sliderBottomPanelClassName, descriptionsClassName, navigationContentClassName, buttonsVariant, progressBarPosition, isFullPaginationWidth, needNavigation, leftDescription, rightDescription, delay,
|
91
|
+
export default function Slider({ images, children, gap, onSlideClick, swiperClassName, slideClassName, imageClassName, navigationClassName, navigationContent, sliderBottomPanelClassName, descriptionsClassName, navigationContentClassName, buttonsVariant, progressBarPosition, isFullPaginationWidth, needNavigation, leftDescription, rightDescription, delay, ...props }: TProps): import("react/jsx-runtime").JSX.Element;
|
96
92
|
export {};
|
@@ -1,35 +1,35 @@
|
|
1
1
|
import { jsx as s, jsxs as o, Fragment as N } from "react/jsx-runtime";
|
2
2
|
import { c as a } from "../../index-DIxK0V-G.js";
|
3
|
-
import { memo as F, useCallback as u, useMemo as
|
4
|
-
import { u as
|
3
|
+
import { memo as F, useCallback as u, useMemo as X, forwardRef as Z, useRef as B, useState as V, Children as I } from "react";
|
4
|
+
import { u as W, S as ee, A as se, a as T } from "../../swiper-react-BvAw14a4.js";
|
5
5
|
import { EProgressBarPosition as S } from "./constants.js";
|
6
6
|
import { formatSlideNumber as O } from "./utils.js";
|
7
7
|
import { AppImage as P } from "../Image/Image.js";
|
8
|
-
import { MergedButton as
|
9
|
-
import '../../assets/Slider.css';const
|
10
|
-
swiper:
|
11
|
-
slide:
|
12
|
-
link:
|
13
|
-
image:
|
14
|
-
navigation:
|
8
|
+
import { MergedButton as re } from "../MergedButton/MergedButton.js";
|
9
|
+
import '../../assets/Slider.css';const te = "_swiper_zqjj3_2", ne = "_slide_zqjj3_8", ae = "_link_zqjj3_15", oe = "_image_zqjj3_21", ie = "_navigation_zqjj3_28", le = "_pagination_zqjj3_46", ce = "_slides_zqjj3_65", de = "_separator_zqjj3_71", pe = "_progress_zqjj3_78", ue = "_descriptions_zqjj3_95", e = {
|
10
|
+
swiper: te,
|
11
|
+
slide: ne,
|
12
|
+
link: ae,
|
13
|
+
image: oe,
|
14
|
+
navigation: ie,
|
15
15
|
"navigation-content": "_navigation-content_zqjj3_37",
|
16
|
-
pagination:
|
16
|
+
pagination: le,
|
17
17
|
"is-full": "_is-full_zqjj3_60",
|
18
|
-
slides:
|
19
|
-
separator:
|
20
|
-
progress:
|
18
|
+
slides: ce,
|
19
|
+
separator: de,
|
20
|
+
progress: pe,
|
21
21
|
"progress-bar-bottom": "_progress-bar-bottom_zqjj3_85",
|
22
22
|
"progress-bar": "_progress-bar_zqjj3_85",
|
23
|
-
descriptions:
|
24
|
-
},
|
23
|
+
descriptions: ue
|
24
|
+
}, me = 15e3, E = F(
|
25
25
|
({
|
26
26
|
variant: t = "white"
|
27
27
|
}) => {
|
28
|
-
const n =
|
28
|
+
const n = W(), p = u(() => {
|
29
29
|
n.slideNext();
|
30
30
|
}, [n]), c = u(() => {
|
31
31
|
n.slidePrev();
|
32
|
-
}, [n]), m =
|
32
|
+
}, [n]), m = X(
|
33
33
|
() => [
|
34
34
|
{
|
35
35
|
isIconButton: !0,
|
@@ -46,10 +46,10 @@ import '../../assets/Slider.css';const ne = "_swiper_zqjj3_2", ae = "_slide_zqjj
|
|
46
46
|
],
|
47
47
|
[c, t, p]
|
48
48
|
);
|
49
|
-
return /* @__PURE__ */ s(
|
49
|
+
return /* @__PURE__ */ s(re, { buttons: m });
|
50
50
|
}
|
51
51
|
), b = F(
|
52
|
-
|
52
|
+
Z((t, n) => /* @__PURE__ */ s(
|
53
53
|
"div",
|
54
54
|
{
|
55
55
|
"data-testid": "progress-bar-wrapper",
|
@@ -65,7 +65,7 @@ import '../../assets/Slider.css';const ne = "_swiper_zqjj3_2", ae = "_slide_zqjj
|
|
65
65
|
}
|
66
66
|
))
|
67
67
|
);
|
68
|
-
function
|
68
|
+
function qe({
|
69
69
|
images: t,
|
70
70
|
children: n,
|
71
71
|
gap: p,
|
@@ -84,18 +84,17 @@ function ze({
|
|
84
84
|
needNavigation: i = !0,
|
85
85
|
leftDescription: C,
|
86
86
|
rightDescription: y,
|
87
|
-
delay: D =
|
88
|
-
|
89
|
-
...Y
|
87
|
+
delay: D = me,
|
88
|
+
...U
|
90
89
|
}) {
|
91
|
-
const d = B(null), h = B(null), [
|
92
|
-
j ?
|
93
|
-
),
|
90
|
+
const d = B(null), h = B(null), [Y, G] = V(1), j = !(typeof n == "function") && !!n, H = j ? I.count(n) : 0, J = (t == null ? void 0 : t.length) ?? 0, A = O(Y), x = O(
|
91
|
+
j ? H : J
|
92
|
+
), K = u(() => {
|
94
93
|
if (h.current && i) {
|
95
94
|
const r = h.current.swiper;
|
96
|
-
|
95
|
+
G(r.realIndex + 1);
|
97
96
|
}
|
98
|
-
}, [i]),
|
97
|
+
}, [i]), Q = u(
|
99
98
|
(r, l) => {
|
100
99
|
if (d.current && i) {
|
101
100
|
const g = r.params.autoplay.delay, w = l / g * 100;
|
@@ -105,24 +104,23 @@ function ze({
|
|
105
104
|
[i]
|
106
105
|
);
|
107
106
|
return /* @__PURE__ */ o(
|
108
|
-
|
107
|
+
ee,
|
109
108
|
{
|
110
|
-
...
|
109
|
+
...U,
|
111
110
|
ref: h,
|
112
111
|
className: a(e.swiper, m),
|
113
112
|
loop: !0,
|
114
113
|
spaceBetween: p,
|
115
114
|
autoplay: {
|
116
115
|
delay: D,
|
117
|
-
disableOnInteraction: !1
|
118
|
-
pauseOnMouseEnter: U
|
116
|
+
disableOnInteraction: !1
|
119
117
|
},
|
120
118
|
fadeEffect: {
|
121
119
|
crossFade: !0
|
122
120
|
},
|
123
|
-
modules: [
|
124
|
-
onAutoplayTimeLeft:
|
125
|
-
onSlideChange:
|
121
|
+
modules: [se],
|
122
|
+
onAutoplayTimeLeft: Q,
|
123
|
+
onSlideChange: K,
|
126
124
|
children: [
|
127
125
|
/* @__PURE__ */ s(
|
128
126
|
"div",
|
@@ -248,5 +246,5 @@ function ze({
|
|
248
246
|
);
|
249
247
|
}
|
250
248
|
export {
|
251
|
-
|
249
|
+
qe as default
|
252
250
|
};
|
@@ -5,7 +5,7 @@ import { useAutoResizeTextArea as Z } from "./hooks.js";
|
|
5
5
|
import { useMergeRefs as $ } from "../../hooks/useMergeRefs/useMergeRefs.js";
|
6
6
|
import { Icon as ee } from "../../icons/Icon.js";
|
7
7
|
import { Button as te } from "../Button/Button.js";
|
8
|
-
import { c as e } from "../../Input-
|
8
|
+
import { c as e } from "../../Input-CGZoshMl.js";
|
9
9
|
import { EInputVariant as ae } from "../Input/constants.js";
|
10
10
|
import '../../assets/TextArea.css';const re = "_textarea_rk5xe_2", se = "_clear_rk5xe_11", le = "_label_rk5xe_26", ne = "_s_rk5xe_71", oe = "_m_rk5xe_84", ce = "_l_rk5xe_26", t = {
|
11
11
|
"textarea-wrapper": "_textarea-wrapper_rk5xe_2",
|
@@ -73,4 +73,6 @@ export { Table } from './Table';
|
|
73
73
|
export { ESortDirection, ETableVariant, ETableDisplayMode, ETableScrollButtonVariant, ETableScrollIconName } from './Table';
|
74
74
|
export { PromoSlider } from './PromoSlider';
|
75
75
|
export { CardTrail } from './CardTrail';
|
76
|
-
export {
|
76
|
+
export { MiniButton } from './MiniButton';
|
77
|
+
export { CarBodyButton } from './CarBodyButton';
|
78
|
+
export { RoundButton } from './RoundButton';
|
package/dist/components/index.js
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
import { Button as e } from "./Button/Button.js";
|
2
2
|
import { EButtonForm as p, EButtonSize as a, EButtonVariantBorderless as i, EButtonVariantDefault as m, EButtonVariantOutline as n, EButtonVariantRound as f } from "./Button/constants.js";
|
3
|
-
import { I as l } from "../Input-
|
4
|
-
import { EInputSize as S, EInputStatus as
|
3
|
+
import { I as l } from "../Input-CGZoshMl.js";
|
4
|
+
import { EInputSize as S, EInputStatus as d, EInputVariant as s } from "./Input/constants.js";
|
5
5
|
import { TextArea as c } from "./TextArea/TextArea.js";
|
6
6
|
import { ETextAreaInputSize as g } from "./TextArea/constants.js";
|
7
|
-
import { InputPassword as
|
8
|
-
import { InputPhoneNumber as
|
7
|
+
import { InputPassword as B } from "./InputPassword/InputPassword.js";
|
8
|
+
import { InputPhoneNumber as V } from "./InputPhoneNumber/InputPhoneNumber.js";
|
9
9
|
import { getMaskedInputPhoneValue as h, getUnmaskedInputValue as k } from "./InputPhoneNumber/utils.js";
|
10
10
|
import { OtpInput as b } from "./OtpInput/OtpInput.js";
|
11
|
-
import { RadioGroup as
|
12
|
-
import { DatePicker as
|
13
|
-
import { MergedButton as
|
14
|
-
import { EMergedButtonVariantRound as
|
11
|
+
import { RadioGroup as w } from "./RadioGroup/RadioGroup.js";
|
12
|
+
import { DatePicker as D } from "./DatePicker/DatePicker.js";
|
13
|
+
import { MergedButton as y } from "./MergedButton/MergedButton.js";
|
14
|
+
import { EMergedButtonVariantRound as U } from "./MergedButton/constants.js";
|
15
15
|
import { AppImage as v } from "./Image/Image.js";
|
16
16
|
import { Loader as N } from "./Loader/Loader.js";
|
17
17
|
import { ELoaderSize as O } from "./Loader/constants.js";
|
@@ -28,14 +28,14 @@ import { SelectSearch as xo } from "./SelectSearch/SelectSearch.js";
|
|
28
28
|
import { ELoadingIndicatorPlacement as Eo, ESelectSearchSize as So } from "./SelectSearch/constants.js";
|
29
29
|
import { CheckboxMimir as uo } from "./CheckboxMimir/CheckboxMimir.js";
|
30
30
|
import { Tag as To } from "./Tag/Tag.js";
|
31
|
-
import { ETagSize as Io, ETagType as
|
32
|
-
import { Timer as
|
31
|
+
import { ETagSize as Io, ETagType as Bo } from "./Tag/constants.js";
|
32
|
+
import { Timer as Vo } from "./Timer/Timer.js";
|
33
33
|
import { Accordion as ho } from "./Accordion/Accordion.js";
|
34
34
|
import { EAccordionSize as Lo } from "./Accordion/constants.js";
|
35
|
-
import { AccordionItem as
|
36
|
-
import { TabTrail as
|
37
|
-
import { ETabTrailSize as
|
38
|
-
import { Pagination as
|
35
|
+
import { AccordionItem as Mo } from "./Accordion/AccordionItem/AccordionItem.js";
|
36
|
+
import { TabTrail as Ao } from "./TabTrail/TabTrail.js";
|
37
|
+
import { ETabTrailSize as Ro } from "./TabTrail/constants.js";
|
38
|
+
import { Pagination as Co } from "./Pagination/Pagination.js";
|
39
39
|
import { ToastProvider as Fo } from "./Toasts/ToastsProvider.js";
|
40
40
|
import { useToast as Go } from "./Toasts/hooks.js";
|
41
41
|
import { EToastPosition as Zo, EToastVariant as Oo } from "./Toasts/constants.js";
|
@@ -50,17 +50,17 @@ import { ENotificationBadgeSize as ar } from "./NotificationBadge/constants.js";
|
|
50
50
|
import { Chip as mr } from "./Chip/Chip.js";
|
51
51
|
import { EChipSize as fr, EChipVariant as xr } from "./Chip/constants.js";
|
52
52
|
import { UniversalUploader as Er } from "./UniversalUploader/UniversalUploader.js";
|
53
|
-
import { EUploaderType as
|
53
|
+
import { EUploaderType as dr } from "./UniversalUploader/constants.js";
|
54
54
|
import { InputRangeSlider as ur } from "./InputRangeSlider/InputRangeSlider.js";
|
55
55
|
import { EInputRangeSliderBorderState as Tr, EInputRangeSliderPositions as gr } from "./InputRangeSlider/constants.js";
|
56
|
-
import { GosZnak as
|
57
|
-
import { EGosZnakSize as
|
56
|
+
import { GosZnak as Br } from "./GosZnak/GosZnak.js";
|
57
|
+
import { EGosZnakSize as Vr, EGosZnakType as zr } from "./GosZnak/constants.js";
|
58
58
|
import { Switcher as kr } from "./Switcher/Switcher.js";
|
59
59
|
import { ELabelPositions as br } from "./Switcher/constants.js";
|
60
|
-
import { TwinSwitcher as
|
61
|
-
import { SkeletonBrick as
|
62
|
-
import { SkeletonText as
|
63
|
-
import { SkeletonCircle as
|
60
|
+
import { TwinSwitcher as wr } from "./TwinSwitcher/TwinSwitcher.js";
|
61
|
+
import { SkeletonBrick as Dr } from "./Skeleton/SkeletonBrick/SkeletonBrick.js";
|
62
|
+
import { SkeletonText as yr } from "./Skeleton/SkeletonText/SkeletonText.js";
|
63
|
+
import { SkeletonCircle as Ur } from "./Skeleton/SkeletonCircle/SkeletonCircle.js";
|
64
64
|
import { ESkeletonVariant as vr } from "./Skeleton/constants.js";
|
65
65
|
import { Avatar as Nr } from "./Avatar/Avatar.js";
|
66
66
|
import { EAvatarSize as Or } from "./Avatar/constants.js";
|
@@ -74,20 +74,22 @@ import { EMessageShortReplyVariant as te } from "./MessageShortReply/constants.j
|
|
74
74
|
import { Table as ae } from "./Table/Table.js";
|
75
75
|
import { ESortDirection as me, ETableDisplayMode as ne, ETableScrollButtonVariant as fe, ETableScrollIconName as xe, ETableVariant as le } from "./Table/constants.js";
|
76
76
|
import { PromoSlider as Se } from "./PromoSlider/PromoSlider.js";
|
77
|
-
import { CardTrail as
|
78
|
-
import {
|
79
|
-
import {
|
80
|
-
import {
|
77
|
+
import { CardTrail as se } from "./CardTrail/CardTrail.js";
|
78
|
+
import { MiniButton as ce } from "./MiniButton/MiniButton.js";
|
79
|
+
import { CarBodyButton as ge } from "./CarBodyButton/CarBodyButton.js";
|
80
|
+
import { RoundButton as Be } from "./RoundButton/RoundButton.js";
|
81
|
+
import { default as Ve } from "./Slider/Slider.js";
|
82
|
+
import { EProgressBarPosition as he } from "./Slider/constants.js";
|
81
83
|
export {
|
82
84
|
ho as Accordion,
|
83
|
-
|
85
|
+
Mo as AccordionItem,
|
84
86
|
Nr as Avatar,
|
85
87
|
e as Button,
|
86
|
-
|
88
|
+
ge as CarBodyButton,
|
89
|
+
se as CardTrail,
|
87
90
|
uo as CheckboxMimir,
|
88
91
|
mr as Chip,
|
89
|
-
|
90
|
-
M as DatePicker,
|
92
|
+
D as DatePicker,
|
91
93
|
J as Drawer,
|
92
94
|
X as Dropdown,
|
93
95
|
Lo as EAccordionSize,
|
@@ -104,75 +106,77 @@ export {
|
|
104
106
|
_ as EDropdownAlign,
|
105
107
|
$ as EDropdownPlacement,
|
106
108
|
Yr as EFileItemVariant,
|
107
|
-
|
108
|
-
|
109
|
+
Vr as EGosZnakSize,
|
110
|
+
zr as EGosZnakType,
|
109
111
|
Tr as EInputRangeSliderBorderState,
|
110
112
|
gr as EInputRangeSliderPositions,
|
111
113
|
S as EInputSize,
|
112
|
-
|
113
|
-
|
114
|
+
d as EInputStatus,
|
115
|
+
s as EInputVariant,
|
114
116
|
br as ELabelPositions,
|
115
117
|
or as ELinkSize,
|
116
118
|
rr as ELinkVariant,
|
117
119
|
O as ELoaderSize,
|
118
120
|
Jr as ELoadingIndicatorPlacement,
|
119
|
-
|
121
|
+
U as EMergedButtonVariantRound,
|
120
122
|
te as EMessageShortReplyVariant,
|
121
123
|
Kr as EMultiSelectSearchSize,
|
122
124
|
ar as ENotificationBadgeSize,
|
123
|
-
|
125
|
+
he as EProgressBarPosition,
|
124
126
|
Eo as ESSLoadingPlacement,
|
125
127
|
So as ESelectSearchSize,
|
126
128
|
vr as ESkeletonVariant,
|
127
129
|
me as ESortDirection,
|
128
130
|
to as EStepColor,
|
129
131
|
po as EStepsSize,
|
130
|
-
|
132
|
+
Ro as ETabTrailSize,
|
131
133
|
ne as ETableDisplayMode,
|
132
134
|
fe as ETableScrollButtonVariant,
|
133
135
|
xe as ETableScrollIconName,
|
134
136
|
le as ETableVariant,
|
135
137
|
Io as ETagSize,
|
136
|
-
|
138
|
+
Bo as ETagType,
|
137
139
|
g as ETextAreaInputSize,
|
138
140
|
Zo as EToastPosition,
|
139
141
|
Oo as EToastVariant,
|
140
142
|
Qo as EUploaderFilesVariant,
|
141
|
-
|
143
|
+
dr as EUploaderType,
|
142
144
|
no as EVoteSize,
|
143
|
-
|
145
|
+
Br as GosZnak,
|
144
146
|
v as Image,
|
145
147
|
l as Input,
|
146
|
-
|
147
|
-
|
148
|
+
B as InputPassword,
|
149
|
+
V as InputPhoneNumber,
|
148
150
|
ur as InputRangeSlider,
|
149
151
|
_o as Link,
|
150
152
|
Wr as ListFiles,
|
151
153
|
$r as ListPhotos,
|
152
154
|
N as Loader,
|
153
|
-
|
155
|
+
y as MergedButton,
|
154
156
|
re as MessageShortReply,
|
157
|
+
ce as MiniButton,
|
155
158
|
qr as MultiSelectSearch,
|
156
159
|
tr as NotificationBadge,
|
157
160
|
b as OtpInput,
|
158
|
-
|
161
|
+
Co as Pagination,
|
159
162
|
Se as PromoSlider,
|
160
|
-
|
163
|
+
w as RadioGroup,
|
164
|
+
Be as RoundButton,
|
161
165
|
xo as SelectSearch,
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
+
Dr as SkeletonBrick,
|
167
|
+
Ur as SkeletonCircle,
|
168
|
+
yr as SkeletonText,
|
169
|
+
Ve as Slider,
|
166
170
|
q as SliderLazy,
|
167
171
|
ro as Steps,
|
168
172
|
kr as Switcher,
|
169
|
-
|
173
|
+
Ao as TabTrail,
|
170
174
|
ae as Table,
|
171
175
|
To as Tag,
|
172
176
|
c as TextArea,
|
173
|
-
|
177
|
+
Vo as Timer,
|
174
178
|
Fo as ToastProvider,
|
175
|
-
|
179
|
+
wr as TwinSwitcher,
|
176
180
|
Er as UniversalUploader,
|
177
181
|
Xo as Uploader,
|
178
182
|
Jo as UploaderFiles,
|
@@ -0,0 +1,117 @@
|
|
1
|
+
import { c as L } from "./index-DIxK0V-G.js";
|
2
|
+
import { useState as N, useRef as C, useCallback as p, useEffect as O } from "react";
|
3
|
+
import { EDropdownPlacement as i, EDropdownAlign as n } from "./components/Dropdown/constants.js";
|
4
|
+
import './assets/hooks.css';const P = "_menu_1k7hr_2", S = "_arrow_1k7hr_53", $ = "_enter_1k7hr_200", M = "_leave_1k7hr_214", l = {
|
5
|
+
menu: P,
|
6
|
+
"menu-button": "_menu-button_1k7hr_5",
|
7
|
+
"menu-items": "_menu-items_1k7hr_10",
|
8
|
+
"menu-items--black": "_menu-items--black_1k7hr_20",
|
9
|
+
"menu-items-with-arrow": "_menu-items-with-arrow_1k7hr_24",
|
10
|
+
"position-bottom": "_position-bottom_1k7hr_29",
|
11
|
+
"position-bottom-start": "_position-bottom-start_1k7hr_30",
|
12
|
+
"position-bottom-end": "_position-bottom-end_1k7hr_31",
|
13
|
+
"position-top": "_position-top_1k7hr_35",
|
14
|
+
"position-top-start": "_position-top-start_1k7hr_36",
|
15
|
+
"position-top-end": "_position-top-end_1k7hr_37",
|
16
|
+
"position-left": "_position-left_1k7hr_41",
|
17
|
+
"position-left-start": "_position-left-start_1k7hr_42",
|
18
|
+
"position-left-end": "_position-left-end_1k7hr_43",
|
19
|
+
"position-right": "_position-right_1k7hr_47",
|
20
|
+
"position-right-start": "_position-right-start_1k7hr_48",
|
21
|
+
"position-right-end": "_position-right-end_1k7hr_49",
|
22
|
+
"arrow-position-bottom": "_arrow-position-bottom_1k7hr_53",
|
23
|
+
"arrow-position-bottom-start": "_arrow-position-bottom-start_1k7hr_54",
|
24
|
+
"arrow-position-bottom-end": "_arrow-position-bottom-end_1k7hr_55",
|
25
|
+
"arrow-position-top": "_arrow-position-top_1k7hr_59",
|
26
|
+
"arrow-position-top-start": "_arrow-position-top-start_1k7hr_60",
|
27
|
+
"arrow-position-top-end": "_arrow-position-top-end_1k7hr_61",
|
28
|
+
"arrow-position-left": "_arrow-position-left_1k7hr_65",
|
29
|
+
"arrow-position-left-start": "_arrow-position-left-start_1k7hr_66",
|
30
|
+
"arrow-position-left-end": "_arrow-position-left-end_1k7hr_67",
|
31
|
+
"arrow-position-right": "_arrow-position-right_1k7hr_71",
|
32
|
+
"arrow-position-right-start": "_arrow-position-right-start_1k7hr_72",
|
33
|
+
"arrow-position-right-end": "_arrow-position-right-end_1k7hr_73",
|
34
|
+
arrow: S,
|
35
|
+
"arrow-bottom": "_arrow-bottom_1k7hr_83",
|
36
|
+
"arrow-bottom-start": "_arrow-bottom-start_1k7hr_91",
|
37
|
+
"arrow-bottom-end": "_arrow-bottom-end_1k7hr_98",
|
38
|
+
"arrow-top": "_arrow-top_1k7hr_106",
|
39
|
+
"arrow-top-start": "_arrow-top-start_1k7hr_114",
|
40
|
+
"arrow-top-end": "_arrow-top-end_1k7hr_121",
|
41
|
+
"arrow-left": "_arrow-left_1k7hr_129",
|
42
|
+
"arrow-left-start": "_arrow-left-start_1k7hr_137",
|
43
|
+
"arrow-left-end": "_arrow-left-end_1k7hr_144",
|
44
|
+
"arrow-right": "_arrow-right_1k7hr_152",
|
45
|
+
"arrow-right-start": "_arrow-right-start_1k7hr_160",
|
46
|
+
"arrow-right-end": "_arrow-right-end_1k7hr_167",
|
47
|
+
"arrow-black": "_arrow-black_1k7hr_175",
|
48
|
+
"menu-items-container": "_menu-items-container_1k7hr_188",
|
49
|
+
"close-button": "_close-button_1k7hr_194",
|
50
|
+
enter: $,
|
51
|
+
"enter-from": "_enter-from_1k7hr_204",
|
52
|
+
"enter-to": "_enter-to_1k7hr_209",
|
53
|
+
leave: M,
|
54
|
+
"leave-from": "_leave-from_1k7hr_218",
|
55
|
+
"leave-to": "_leave-to_1k7hr_223"
|
56
|
+
}, R = 300, u = 5, k = 10, y = 10, x = ({
|
57
|
+
buttonRef: h,
|
58
|
+
panelRef: a,
|
59
|
+
initialPosition: g,
|
60
|
+
isOpen: E,
|
61
|
+
arrow: c = !1,
|
62
|
+
variant: b = "default"
|
63
|
+
}) => {
|
64
|
+
const [e, A] = N(
|
65
|
+
typeof g == "string" ? g : `${i.BOTTOM} ${n.END}`
|
66
|
+
), w = C(null), m = p(() => {
|
67
|
+
w.current && (clearTimeout(w.current), w.current = null);
|
68
|
+
}, []), T = p(() => {
|
69
|
+
if (!a.current || !h.current) return null;
|
70
|
+
const t = h.current.getBoundingClientRect(), o = a.current.getBoundingClientRect();
|
71
|
+
let r = null;
|
72
|
+
if (o.bottom <= t.top + u ? r = i.TOP : o.top >= t.bottom - u ? r = i.BOTTOM : o.right <= t.left + u ? r = i.LEFT : o.left >= t.right - u && (r = i.RIGHT), !r) return null;
|
73
|
+
let _;
|
74
|
+
if (r === i.LEFT || r === i.RIGHT) {
|
75
|
+
const d = Math.abs(o.top - t.top) < k, f = Math.abs(o.bottom - t.bottom) < k;
|
76
|
+
_ = d ? n.START : f ? n.END : n.CENTER;
|
77
|
+
} else {
|
78
|
+
const d = Math.abs(o.left - t.left) < k, f = Math.abs(o.right - t.right) < k;
|
79
|
+
_ = d ? n.START : f ? n.END : n.CENTER;
|
80
|
+
}
|
81
|
+
return _ ? `${r} ${_}`.trim() : r;
|
82
|
+
}, [h, a]), s = p(() => {
|
83
|
+
m(), w.current = setTimeout(() => {
|
84
|
+
const t = T();
|
85
|
+
t && t !== e && A(t);
|
86
|
+
}, y);
|
87
|
+
}, [T, e, m]);
|
88
|
+
O(() => {
|
89
|
+
if (!a.current || !h.current || window.getComputedStyle(a.current).display === "none") return;
|
90
|
+
const o = setTimeout(s, R);
|
91
|
+
return window.addEventListener("scroll", s, !0), window.addEventListener("resize", s), () => {
|
92
|
+
clearTimeout(o), m(), window.removeEventListener("scroll", s, !0), window.removeEventListener("resize", s);
|
93
|
+
};
|
94
|
+
}, [E, s, m]);
|
95
|
+
const D = p(() => {
|
96
|
+
if (!c) return "";
|
97
|
+
const t = typeof e == "string" ? e : "", [o, r] = t.split(" "), _ = r ? l[`arrow-${o}-${r}`] : l[`arrow-${o}`];
|
98
|
+
return L(l.arrow, _, {
|
99
|
+
[l["arrow-black"]]: b === "black"
|
100
|
+
});
|
101
|
+
}, [c, e, b]), v = p(() => {
|
102
|
+
const t = typeof e == "string" ? e : "";
|
103
|
+
return t ? l[`${c ? "arrow-position-" : "position-"}${t.replace(" ", "-")}`] : "";
|
104
|
+
}, [e, c]);
|
105
|
+
return {
|
106
|
+
getArrowClasses: D,
|
107
|
+
getPositionClass: v
|
108
|
+
};
|
109
|
+
};
|
110
|
+
export {
|
111
|
+
R as A,
|
112
|
+
y as D,
|
113
|
+
u as P,
|
114
|
+
k as a,
|
115
|
+
l as c,
|
116
|
+
x as u
|
117
|
+
};
|
package/dist/icons/Icon.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
2
2
|
import { Suspense as s } from "react";
|
3
|
-
import { i as e } from "../index-
|
3
|
+
import { i as e } from "../index-DrVFMaBi.js";
|
4
4
|
const p = ({ iconName: o, ...n }) => {
|
5
5
|
const r = e[o];
|
6
6
|
return r ? /* @__PURE__ */ t(s, { fallback: null, children: /* @__PURE__ */ t(r, { ...n, "data-testid": o }) }) : null;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
2
|
+
const w = (t) => /* @__PURE__ */ o(
|
3
|
+
"svg",
|
4
|
+
{
|
5
|
+
width: "16",
|
6
|
+
height: "16",
|
7
|
+
viewBox: "0 0 16 16",
|
8
|
+
fill: "none",
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
10
|
+
...t,
|
11
|
+
children: /* @__PURE__ */ o(
|
12
|
+
"path",
|
13
|
+
{
|
14
|
+
d: "M5.375 6.5L8 8.75L10.625 6.5",
|
15
|
+
stroke: "#333333",
|
16
|
+
"stroke-width": "1.5"
|
17
|
+
}
|
18
|
+
)
|
19
|
+
}
|
20
|
+
);
|
21
|
+
export {
|
22
|
+
w as default
|
23
|
+
};
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
2
|
+
const i = (t) => /* @__PURE__ */ e(
|
3
|
+
"svg",
|
4
|
+
{
|
5
|
+
width: "24",
|
6
|
+
height: "24",
|
7
|
+
viewBox: "0 0 24 24",
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
9
|
+
...t,
|
10
|
+
children: [
|
11
|
+
/* @__PURE__ */ r(
|
12
|
+
"path",
|
13
|
+
{
|
14
|
+
d: "M2 9C2 9 6.47715 16 12 16C17.5228 16 22 9 22 9H20.1619C20.1189 9.05699 20.0737 9.11633 20.0263 9.1778C19.5516 9.79337 18.8675 10.6102 18.0283 11.4217C16.2904 13.1024 14.1563 14.5 12 14.5C9.84366 14.5 7.70962 13.1024 5.97167 11.4217C5.13246 10.6102 4.44838 9.79337 3.97372 9.1778C3.92632 9.11633 3.88111 9.05699 3.83813 9H2Z",
|
15
|
+
fill: "currentColor"
|
16
|
+
}
|
17
|
+
),
|
18
|
+
/* @__PURE__ */ r(
|
19
|
+
"rect",
|
20
|
+
{
|
21
|
+
x: "16.8945",
|
22
|
+
y: "13.0569",
|
23
|
+
width: "1.49471",
|
24
|
+
height: "4.30879",
|
25
|
+
transform: "rotate(-45 16.8945 13.0569)",
|
26
|
+
fill: "currentColor"
|
27
|
+
}
|
28
|
+
),
|
29
|
+
/* @__PURE__ */ r(
|
30
|
+
"rect",
|
31
|
+
{
|
32
|
+
width: "1.49471",
|
33
|
+
height: "4.30879",
|
34
|
+
transform: "matrix(-0.707107 -0.707107 -0.707107 0.707107 7.10547 13.0572)",
|
35
|
+
fill: "currentColor"
|
36
|
+
}
|
37
|
+
),
|
38
|
+
/* @__PURE__ */ r(
|
39
|
+
"rect",
|
40
|
+
{
|
41
|
+
x: "13.625",
|
42
|
+
y: "14.7266",
|
43
|
+
width: "1.5",
|
44
|
+
height: "4.37082",
|
45
|
+
transform: "rotate(-15 13.625 14.7266)",
|
46
|
+
fill: "currentColor"
|
47
|
+
}
|
48
|
+
),
|
49
|
+
/* @__PURE__ */ r(
|
50
|
+
"rect",
|
51
|
+
{
|
52
|
+
x: "8.92969",
|
53
|
+
y: "14.3384",
|
54
|
+
width: "1.5",
|
55
|
+
height: "4.37082",
|
56
|
+
transform: "rotate(15 8.92969 14.3384)",
|
57
|
+
fill: "currentColor"
|
58
|
+
}
|
59
|
+
)
|
60
|
+
]
|
61
|
+
}
|
62
|
+
);
|
63
|
+
export {
|
64
|
+
i as default
|
65
|
+
};
|