mimir-ui-kit 1.43.11 → 1.43.12
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-BU_6U1CW.js +227 -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/CheckboxMimir.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/ClearButton.css +1 -0
- 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/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/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 +3 -10
- package/dist/components/Accordion/Accordion.js +212 -286
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
- package/dist/components/Accordion/constants.d.ts +4 -0
- package/dist/components/Accordion/constants.js +5 -4
- package/dist/components/AnchorLink/Link.js +20 -21
- package/dist/components/Avatar/Avatar.js +26 -26
- package/dist/components/Button/Button.js +87 -110
- package/dist/components/Button/constants.d.ts +2 -8
- package/dist/components/Button/constants.js +5 -6
- package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +0 -2
- package/dist/components/CheckboxMimir/CheckboxMimir.js +35 -37
- package/dist/components/Chip/Chip.js +17 -17
- package/dist/components/DatePicker/DatePicker.d.ts +0 -8
- package/dist/components/DatePicker/DatePicker.js +169 -182
- package/dist/components/DatePicker/DatePickerModal.js +98 -134
- package/dist/components/DatePicker/MonthPickerModal.js +95 -115
- package/dist/components/DatePicker/YearPickerModal.js +89 -109
- package/dist/components/DatePicker/constants.d.ts +1 -1
- package/dist/components/DatePicker/constants.js +7 -6
- package/dist/components/DatePicker/hooks.d.ts +1 -2
- package/dist/components/DatePicker/hooks.js +13 -13
- package/dist/components/Drawer/Drawer.js +138 -172
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/hooks.js +1 -1
- package/dist/components/GosZnak/GosZnak.js +38 -47
- package/dist/components/Input/Input.d.ts +0 -4
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/index.js +1 -1
- package/dist/components/{MiniButton/MiniButton.d.ts → InputClearButton/ClearButton.d.ts} +8 -17
- package/dist/components/InputClearButton/ClearButton.js +41 -0
- package/dist/components/InputClearButton/constants.d.ts +8 -0
- package/dist/components/InputClearButton/constants.js +5 -0
- package/dist/components/InputClearButton/index.d.ts +4 -0
- package/dist/components/InputClearButton/index.js +6 -0
- package/dist/components/InputPassword/InputPassword.js +42 -38
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/InputRangeSlider/InputRangeSlider.js +139 -159
- package/dist/components/InputRangeSlider/constants.d.ts +0 -5
- package/dist/components/InputRangeSlider/constants.js +6 -11
- package/dist/components/ListFiles/ListFiles.js +39 -41
- package/dist/components/ListPhotos/ListPhotos.js +18 -17
- package/dist/components/MessageShortReply/MessageShortReply.js +34 -34
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +152 -153
- package/dist/components/MultiSelectSearch/constants.d.ts +0 -1
- package/dist/components/MultiSelectSearch/constants.js +7 -7
- package/dist/components/MultiSelectSearch/utils.d.ts +1 -1
- package/dist/components/MultiSelectSearch/utils.js +16 -18
- package/dist/components/NotificationBadge/NotificationBadge.js +33 -49
- package/dist/components/NotificationBadge/constants.d.ts +2 -9
- package/dist/components/NotificationBadge/constants.js +2 -3
- package/dist/components/NotificationBadge/types.d.ts +1 -11
- package/dist/components/OtpInput/OtpInput.js +40 -44
- package/dist/components/OtpInput/constants.d.ts +0 -4
- package/dist/components/OtpInput/constants.js +4 -6
- package/dist/components/OtpInput/index.d.ts +0 -1
- package/dist/components/OtpInput/index.js +0 -2
- package/dist/components/Pagination/Pagination.js +23 -23
- package/dist/components/SelectSearch/SelectSearch.js +241 -241
- package/dist/components/SelectSearch/utils.d.ts +1 -1
- package/dist/components/SelectSearch/utils.js +1 -1
- package/dist/components/Slider/Slider.d.ts +5 -1
- package/dist/components/Slider/Slider.js +36 -34
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/index.d.ts +1 -3
- package/dist/components/index.js +51 -55
- package/dist/hooks-HgN6Yauq.js +117 -0
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/64px/AdvancePaymentDiscount64px.js +59 -0
- package/dist/icons/components/64px/AtsVendors64px.js +37 -0
- package/dist/icons/components/64px/ButtonOn64px.js +31 -0
- package/dist/icons/components/64px/BuyoutAuto64px.js +45 -0
- package/dist/icons/components/64px/CarAssistance64px.js +44 -0
- package/dist/icons/components/64px/CarDelivery64px.js +37 -0
- package/dist/icons/components/64px/CarSearchReturn64px.js +45 -0
- package/dist/icons/components/64px/CarService64px.js +37 -0
- package/dist/icons/components/64px/Case64px.js +33 -0
- package/dist/icons/components/64px/CoatOfArms64px.js +149 -0
- package/dist/icons/components/64px/CoffeeCup64px.js +44 -0
- package/dist/icons/components/64px/Cup64px.js +38 -0
- package/dist/icons/components/64px/ExpertAdvice64px.js +40 -0
- package/dist/icons/components/64px/Fines64px.js +88 -0
- package/dist/icons/components/64px/Fuel64px.js +38 -0
- package/dist/icons/components/64px/GazprombankIcon24px.js +21 -0
- package/dist/icons/components/64px/Kasko64px.js +44 -0
- package/dist/icons/components/64px/LegalSupport64px.js +58 -0
- package/dist/icons/components/64px/Microphone64px.js +37 -0
- package/dist/icons/components/64px/Money64px.js +60 -0
- package/dist/icons/components/64px/PaymentSchedule64px.js +39 -0
- package/dist/icons/components/64px/PersonalManager64px.js +100 -0
- package/dist/icons/components/64px/PreApproval64px.js +44 -0
- package/dist/icons/components/64px/Questions64px.js +37 -0
- package/dist/icons/components/64px/SupportGeography64px.js +51 -0
- package/dist/icons/components/64px/Timer64px.js +45 -0
- package/dist/icons/components/64px/Twogis64px.js +51 -0
- package/dist/icons/components/64px/Vehicles64px.js +45 -0
- package/dist/icons/components/64px/Workplace64px.js +38 -0
- package/dist/icons/components/index.js +591 -564
- package/dist/{index-DrVFMaBi.js → index-C2dQUuc9.js} +1346 -1184
- package/dist/index.js +69 -73
- package/dist/styles.module-Cuqm31CO.js +28 -0
- package/package.json +1 -1
- package/dist/Input-CGZoshMl.js +0 -224
- package/dist/assets/CarBodyButton.css +0 -1
- package/dist/assets/MiniButton.css +0 -1
- package/dist/assets/RoundButton.css +0 -1
- package/dist/assets/ScrollWrapper.css +0 -1
- package/dist/components/CarBodyButton/CarBodyButton.d.ts +0 -26
- package/dist/components/CarBodyButton/CarBodyButton.js +0 -40
- package/dist/components/CarBodyButton/index.d.ts +0 -1
- package/dist/components/CarBodyButton/index.js +0 -4
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.d.ts +0 -11
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.js +0 -27
- package/dist/components/GosZnak/utils.d.ts +0 -6
- package/dist/components/GosZnak/utils.js +0 -15
- package/dist/components/MiniButton/MiniButton.js +0 -44
- package/dist/components/MiniButton/constants.d.ts +0 -9
- package/dist/components/MiniButton/constants.js +0 -5
- package/dist/components/MiniButton/index.d.ts +0 -4
- package/dist/components/MiniButton/index.js +0 -6
- package/dist/components/NotificationBadge/utils.d.ts +0 -8
- package/dist/components/NotificationBadge/utils.js +0 -4
- package/dist/components/RoundButton/RoundButton.d.ts +0 -82
- package/dist/components/RoundButton/RoundButton.js +0 -69
- package/dist/components/RoundButton/constants.d.ts +0 -11
- package/dist/components/RoundButton/constants.js +0 -5
- package/dist/components/RoundButton/index.d.ts +0 -2
- package/dist/components/RoundButton/index.js +0 -7
- package/dist/components/RoundButton/types.d.ts +0 -20
- package/dist/hooks-Cd4Ez6_j.js +0 -117
- package/dist/icons/components/16px/DropdownArrowDown16px.js +0 -23
- package/dist/icons/components/24px/EyeClosed24px.js +0 -65
- package/dist/styles.module-BfkM1-KJ.js +0 -32
@@ -1,15 +0,0 @@
|
|
1
|
-
function a(r) {
|
2
|
-
return (r.match(/[A-Za-zА-Яа-я\s]+|\d+/g) || []).map((e) => {
|
3
|
-
const t = e.replace(/ /g, " ");
|
4
|
-
return /[A-Za-zА-Яа-я]/.test(e) ? {
|
5
|
-
type: "letters",
|
6
|
-
value: t
|
7
|
-
} : {
|
8
|
-
type: "digits",
|
9
|
-
value: t
|
10
|
-
};
|
11
|
-
});
|
12
|
-
}
|
13
|
-
export {
|
14
|
-
a as splitAutoNumber
|
15
|
-
};
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
2
|
-
import { c as l } from "../../index-DIxK0V-G.js";
|
3
|
-
import { forwardRef as p } from "react";
|
4
|
-
import { EMiniButtonSize as o, EMiniButtonVariant as f } from "./constants.js";
|
5
|
-
import { Icon as b } from "../../icons/Icon.js";
|
6
|
-
import '../../assets/MiniButton.css';const k = "_gray_1tuk4_19", y = "_transparent_1tuk4_22", N = "_white_1tuk4_25", d = "_l_1tuk4_46", t = {
|
7
|
-
"mini-button": "_mini-button_1tuk4_2",
|
8
|
-
gray: k,
|
9
|
-
transparent: y,
|
10
|
-
white: N,
|
11
|
-
l: d,
|
12
|
-
"m-s": "_m-s_1tuk4_50"
|
13
|
-
}, h = p(
|
14
|
-
(s, i) => {
|
15
|
-
const {
|
16
|
-
disabled: r = !1,
|
17
|
-
size: a = o.MS,
|
18
|
-
variant: e = f.Gray,
|
19
|
-
className: m,
|
20
|
-
iconName: _,
|
21
|
-
...u
|
22
|
-
} = s, c = l(
|
23
|
-
t["mini-button"],
|
24
|
-
a === o.L ? t.l : t["m-s"],
|
25
|
-
t[e],
|
26
|
-
m
|
27
|
-
);
|
28
|
-
return /* @__PURE__ */ n(
|
29
|
-
"button",
|
30
|
-
{
|
31
|
-
type: "button",
|
32
|
-
ref: i,
|
33
|
-
...u,
|
34
|
-
disabled: r,
|
35
|
-
className: c,
|
36
|
-
children: /* @__PURE__ */ n(b, { iconName: _ })
|
37
|
-
}
|
38
|
-
);
|
39
|
-
}
|
40
|
-
);
|
41
|
-
h.displayName = "MiniButton";
|
42
|
-
export {
|
43
|
-
h as MiniButton
|
44
|
-
};
|
@@ -1,82 +0,0 @@
|
|
1
|
-
import { ComponentProps } from 'react';
|
2
|
-
import { TCommonButtonProps } from './types';
|
3
|
-
import { TIcon } from '../../icons';
|
4
|
-
|
5
|
-
export type TProps = TCommonButtonProps & ComponentProps<'button'> & {
|
6
|
-
/**
|
7
|
-
* Класс, применяемый к корневому элементу кнопки.
|
8
|
-
*/
|
9
|
-
className?: string;
|
10
|
-
/**
|
11
|
-
* Класс, применяемый к иконке.
|
12
|
-
*/
|
13
|
-
iconButtonClassName?: string;
|
14
|
-
/**
|
15
|
-
* Флаг, указывающий, отключена ли кнопка.
|
16
|
-
*/
|
17
|
-
disabled?: boolean;
|
18
|
-
/**
|
19
|
-
* Флаг, отключащий абсолютно все модификации кнопки (variant, size).
|
20
|
-
*/
|
21
|
-
clear?: boolean;
|
22
|
-
/**
|
23
|
-
* Идентификатор формы, к которой привязана кнопка.
|
24
|
-
*/
|
25
|
-
formId?: string;
|
26
|
-
};
|
27
|
-
/**
|
28
|
-
* Компонент кнопки, c закруглеными краями.
|
29
|
-
*/
|
30
|
-
export declare const RoundButton: import('react').ForwardRefExoticComponent<(Omit<import('./types').TButtonRoundProps & {
|
31
|
-
isIconButton: true;
|
32
|
-
iconName: TIcon;
|
33
|
-
leftIcon?: never;
|
34
|
-
rightIcon?: never;
|
35
|
-
} & import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
36
|
-
/**
|
37
|
-
* Класс, применяемый к корневому элементу кнопки.
|
38
|
-
*/
|
39
|
-
className?: string;
|
40
|
-
/**
|
41
|
-
* Класс, применяемый к иконке.
|
42
|
-
*/
|
43
|
-
iconButtonClassName?: string;
|
44
|
-
/**
|
45
|
-
* Флаг, указывающий, отключена ли кнопка.
|
46
|
-
*/
|
47
|
-
disabled?: boolean;
|
48
|
-
/**
|
49
|
-
* Флаг, отключащий абсолютно все модификации кнопки (variant, size).
|
50
|
-
*/
|
51
|
-
clear?: boolean;
|
52
|
-
/**
|
53
|
-
* Идентификатор формы, к которой привязана кнопка.
|
54
|
-
*/
|
55
|
-
formId?: string;
|
56
|
-
}, "ref"> | Omit<import('./types').TButtonRoundProps & {
|
57
|
-
isIconButton?: false;
|
58
|
-
iconName?: never;
|
59
|
-
leftIcon?: import('react').ReactNode;
|
60
|
-
rightIcon?: import('react').ReactNode;
|
61
|
-
} & import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
62
|
-
/**
|
63
|
-
* Класс, применяемый к корневому элементу кнопки.
|
64
|
-
*/
|
65
|
-
className?: string;
|
66
|
-
/**
|
67
|
-
* Класс, применяемый к иконке.
|
68
|
-
*/
|
69
|
-
iconButtonClassName?: string;
|
70
|
-
/**
|
71
|
-
* Флаг, указывающий, отключена ли кнопка.
|
72
|
-
*/
|
73
|
-
disabled?: boolean;
|
74
|
-
/**
|
75
|
-
* Флаг, отключащий абсолютно все модификации кнопки (variant, size).
|
76
|
-
*/
|
77
|
-
clear?: boolean;
|
78
|
-
/**
|
79
|
-
* Идентификатор формы, к которой привязана кнопка.
|
80
|
-
*/
|
81
|
-
formId?: string;
|
82
|
-
}, "ref">) & import('react').RefAttributes<HTMLButtonElement>>;
|
@@ -1,69 +0,0 @@
|
|
1
|
-
import { jsxs as N, jsx as s } from "react/jsx-runtime";
|
2
|
-
import { c as k } from "../../index-DIxK0V-G.js";
|
3
|
-
import { forwardRef as g } from "react";
|
4
|
-
import { ERoundButtonVariant as x } from "./constants.js";
|
5
|
-
import { Icon as B } from "../../icons/Icon.js";
|
6
|
-
import '../../assets/RoundButton.css';const y = "_button_1wqe3_2", I = "_clear_1wqe3_42", v = "_black_1wqe3_66", R = "_gray_1wqe3_76", j = "_white_1wqe3_86", C = "_xs_1wqe3_96", z = "_s_1wqe3_105", E = "_m_1wqe3_114", P = "_l_1wqe3_123", V = "_disabled_1wqe3_137", t = {
|
7
|
-
button: y,
|
8
|
-
clear: I,
|
9
|
-
"button-form": "_button-form_1wqe3_54",
|
10
|
-
black: v,
|
11
|
-
gray: R,
|
12
|
-
white: j,
|
13
|
-
xs: C,
|
14
|
-
s: z,
|
15
|
-
m: E,
|
16
|
-
l: P,
|
17
|
-
"right_block-wrap": "_right_block-wrap_1wqe3_132",
|
18
|
-
disabled: V,
|
19
|
-
"icon-button": "_icon-button_1wqe3_149"
|
20
|
-
}, A = g(
|
21
|
-
(a, r) => {
|
22
|
-
const {
|
23
|
-
size: _ = "m",
|
24
|
-
variant: n = x.Black,
|
25
|
-
clear: o,
|
26
|
-
isIconButton: c = !1,
|
27
|
-
iconName: l,
|
28
|
-
children: i,
|
29
|
-
className: m,
|
30
|
-
iconButtonClassName: b,
|
31
|
-
formId: d,
|
32
|
-
type: u = "button",
|
33
|
-
rightIcon: w,
|
34
|
-
leftIcon: f,
|
35
|
-
disabled: e,
|
36
|
-
...p
|
37
|
-
} = a, q = {
|
38
|
-
[t.disabled]: e && !o,
|
39
|
-
[t.clear]: o,
|
40
|
-
[t["icon-button"]]: c,
|
41
|
-
[t[n]]: !!n && !o
|
42
|
-
}, h = k(
|
43
|
-
m,
|
44
|
-
t.button,
|
45
|
-
q,
|
46
|
-
o ? [] : [t["button-form"], t[_]]
|
47
|
-
);
|
48
|
-
return /* @__PURE__ */ N(
|
49
|
-
"button",
|
50
|
-
{
|
51
|
-
type: u,
|
52
|
-
form: d,
|
53
|
-
...p,
|
54
|
-
disabled: e,
|
55
|
-
ref: r,
|
56
|
-
className: h,
|
57
|
-
children: [
|
58
|
-
/* @__PURE__ */ s("div", { className: t["left_block-wrap"], children: f }),
|
59
|
-
c ? /* @__PURE__ */ s(B, { iconName: l, className: b }) : i,
|
60
|
-
/* @__PURE__ */ s("div", { className: t["right_block-wrap"], children: w })
|
61
|
-
]
|
62
|
-
}
|
63
|
-
);
|
64
|
-
}
|
65
|
-
);
|
66
|
-
A.displayName = "roundButton";
|
67
|
-
export {
|
68
|
-
A as RoundButton
|
69
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { ReactNode } from 'react';
|
2
|
-
import { ERoundButtonSize, ERoundButtonVariant } from './constants';
|
3
|
-
import { TIcon } from '../../icons';
|
4
|
-
|
5
|
-
export type TButtonRoundProps = {
|
6
|
-
variant?: ERoundButtonVariant | `${ERoundButtonVariant}`;
|
7
|
-
size?: ERoundButtonSize | `${ERoundButtonSize}`;
|
8
|
-
};
|
9
|
-
export type TButtonIsIconProps = {
|
10
|
-
isIconButton: true;
|
11
|
-
iconName: TIcon;
|
12
|
-
leftIcon?: never;
|
13
|
-
rightIcon?: never;
|
14
|
-
} | {
|
15
|
-
isIconButton?: false;
|
16
|
-
iconName?: never;
|
17
|
-
leftIcon?: ReactNode;
|
18
|
-
rightIcon?: ReactNode;
|
19
|
-
};
|
20
|
-
export type TCommonButtonProps = TButtonRoundProps & TButtonIsIconProps;
|
package/dist/hooks-Cd4Ez6_j.js
DELETED
@@ -1,117 +0,0 @@
|
|
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
|
-
};
|
@@ -1,23 +0,0 @@
|
|
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
|
-
};
|
@@ -1,65 +0,0 @@
|
|
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
|
-
};
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import './assets/styles.css';const n = "_wrapper_1cgin_8", t = "_inputBorderControl_1cgin_29", _ = "_editable_1cgin_45", c = "_textError_1cgin_60", o = "_input_1cgin_3", r = "_button_1cgin_84", i = "_h_1cgin_158", e = "_b_1cgin_84", a = "_d_1cgin_16", p = "_m_1cgin_180", d = "_a_1cgin_181", g = "_prev_1cgin_182", s = "_orange_1cgin_197", l = "_current_1cgin_210", u = "_current_disabled_1cgin_219", b = "_selecte_1cgin_225", m = "_monthGrid_1cgin_234", k = {
|
2
|
-
"input-field-group-datePicker": "_input-field-group-datePicker_1cgin_3",
|
3
|
-
wrapper: n,
|
4
|
-
"date-wrapper": "_date-wrapper_1cgin_16",
|
5
|
-
"input-wrapper": "_input-wrapper_1cgin_22",
|
6
|
-
"right-slot": "_right-slot_1cgin_25",
|
7
|
-
inputBorderControl: t,
|
8
|
-
editable: _,
|
9
|
-
textError: c,
|
10
|
-
input: o,
|
11
|
-
"button-wrapper": "_button-wrapper_1cgin_84",
|
12
|
-
button: r,
|
13
|
-
"calendar-block": "_calendar-block_1cgin_108",
|
14
|
-
"calendar-block--position-top": "_calendar-block--position-top_1cgin_127",
|
15
|
-
"calendar-block--position-medium": "_calendar-block--position-medium_1cgin_140",
|
16
|
-
"calendar-block--position-bottom": "_calendar-block--position-bottom_1cgin_144",
|
17
|
-
h: i,
|
18
|
-
b: e,
|
19
|
-
d: a,
|
20
|
-
m: p,
|
21
|
-
a: d,
|
22
|
-
prev: g,
|
23
|
-
orange: s,
|
24
|
-
current: l,
|
25
|
-
current_disabled: u,
|
26
|
-
selecte: b,
|
27
|
-
monthGrid: m,
|
28
|
-
"icon-button": "_icon-button_1cgin_239"
|
29
|
-
};
|
30
|
-
export {
|
31
|
-
k as c
|
32
|
-
};
|