mimir-ui-kit 1.38.14 → 1.38.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/DatePicker/DatePicker.d.ts +8 -0
- package/dist/components/DatePicker/DatePicker.js +113 -105
- package/dist/components/Slider/Slider.js +4 -4
- package/dist/components/Slider/index.d.ts +2 -1
- package/dist/components/Slider/index.js +7 -5
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +41 -39
- package/dist/index.js +60 -58
- package/package.json +1 -1
@@ -45,6 +45,10 @@ export type TProps = {
|
|
45
45
|
* Флаг открытия модального окна календаря при вводе
|
46
46
|
*/
|
47
47
|
openOnInput?: boolean;
|
48
|
+
/**
|
49
|
+
* Флаг отправки промежуточных значений в родительский компонент
|
50
|
+
*/
|
51
|
+
sendIntermediateValues?: boolean;
|
48
52
|
} & TInputProps;
|
49
53
|
export type TDatePickerValue = {
|
50
54
|
value?: string;
|
@@ -99,4 +103,8 @@ export declare const DatePicker: import('react').MemoExoticComponent<import('rea
|
|
99
103
|
* Флаг открытия модального окна календаря при вводе
|
100
104
|
*/
|
101
105
|
openOnInput?: boolean;
|
106
|
+
/**
|
107
|
+
* Флаг отправки промежуточных значений в родительский компонент
|
108
|
+
*/
|
109
|
+
sendIntermediateValues?: boolean;
|
102
110
|
} & import('../Input/types').TInputProps & import('../Input').TAdditionalProps & import('react').RefAttributes<HTMLInputElement>>>;
|
@@ -1,158 +1,166 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { c as
|
3
|
-
import { memo as
|
4
|
-
import { MAX_DAY as
|
5
|
-
import { DatePickerModal as
|
6
|
-
import { MonthPickerModal as
|
1
|
+
import { jsxs as R, jsx as a } from "react/jsx-runtime";
|
2
|
+
import { c as h } from "../../index-DIxK0V-G.js";
|
3
|
+
import { memo as tt, forwardRef as st, useState as D, useEffect as M } from "react";
|
4
|
+
import { MAX_DAY as et, MAX_MONTH as it, DATE_LENGTH as rt } from "./constants.js";
|
5
|
+
import { DatePickerModal as ot } from "./DatePickerModal.js";
|
6
|
+
import { MonthPickerModal as ct } from "./MonthPickerModal.js";
|
7
7
|
import { c as e } from "../../styles.module-BlOA4RBL.js";
|
8
|
-
import { formatDatePart as
|
8
|
+
import { formatDatePart as U } from "./utils.js";
|
9
9
|
import { YearPickerModal as at } from "./YearPickerModal.js";
|
10
|
-
import { useClickOutside as
|
11
|
-
import { Icon as
|
12
|
-
import { formating as
|
13
|
-
import { I as
|
14
|
-
import { EInputStatus as
|
15
|
-
const
|
16
|
-
days:
|
17
|
-
months:
|
10
|
+
import { useClickOutside as mt } from "../../hooks/useClickOutside/useClickOutside.js";
|
11
|
+
import { Icon as X } from "../../icons/Icon.js";
|
12
|
+
import { formating as l } from "../../utils/index.js";
|
13
|
+
import { I as pt } from "../../Input-BYrIS5GU.js";
|
14
|
+
import { EInputStatus as dt, EInputSize as E } from "../Input/constants.js";
|
15
|
+
const ft = {
|
16
|
+
days: ot,
|
17
|
+
months: ct,
|
18
18
|
years: at
|
19
|
-
},
|
20
|
-
|
19
|
+
}, yt = tt(
|
20
|
+
st(
|
21
21
|
({
|
22
|
-
size:
|
22
|
+
size: x,
|
23
23
|
value: i,
|
24
|
-
onChangeValue:
|
25
|
-
name:
|
26
|
-
before:
|
24
|
+
onChangeValue: t,
|
25
|
+
name: o,
|
26
|
+
before: S,
|
27
27
|
type: p = "days",
|
28
|
-
error:
|
28
|
+
error: $,
|
29
29
|
onError: d,
|
30
30
|
onBlur: r,
|
31
|
-
validateImmediately:
|
32
|
-
variant:
|
33
|
-
disabled:
|
34
|
-
editable:
|
35
|
-
openOnInput:
|
36
|
-
|
37
|
-
|
38
|
-
|
31
|
+
validateImmediately: O,
|
32
|
+
variant: F,
|
33
|
+
disabled: _ = !1,
|
34
|
+
editable: k = !1,
|
35
|
+
openOnInput: Y = !0,
|
36
|
+
sendIntermediateValues: G = !1,
|
37
|
+
...K
|
38
|
+
}, W) => {
|
39
|
+
const [A, m] = D(!1), [g, f] = D(p), [c, I] = D(
|
39
40
|
() => i && !isNaN(new Date(i).getTime()) ? new Date(i) : void 0
|
40
|
-
), [
|
41
|
-
|
42
|
-
|
43
|
-
}, [
|
44
|
-
|
41
|
+
), [y, j] = D($), [q, P] = D("");
|
42
|
+
M(() => {
|
43
|
+
j($);
|
44
|
+
}, [$]), M(() => {
|
45
|
+
I(
|
45
46
|
i && !isNaN(new Date(i).getTime()) ? new Date(i) : void 0
|
46
47
|
);
|
47
|
-
}, [i]),
|
48
|
-
|
49
|
-
}, [
|
50
|
-
const
|
51
|
-
|
52
|
-
|
53
|
-
}, [
|
54
|
-
isActive:
|
55
|
-
setActive: (
|
56
|
-
m(
|
48
|
+
}, [i]), M(() => {
|
49
|
+
c && typeof c != "string" && !isNaN(c == null ? void 0 : c.getTime()) ? P(l.Date(c, "dd/mm/yyyy")) : P("");
|
50
|
+
}, [c]);
|
51
|
+
const H = i && new Date(i).getTime;
|
52
|
+
M(() => {
|
53
|
+
O && (H ? (j(!1), d == null || d({ name: o, active: !1 })) : (j(!0), d == null || d({ name: o, active: !0 })));
|
54
|
+
}, [O, o, H]), mt({
|
55
|
+
isActive: A,
|
56
|
+
setActive: (s) => {
|
57
|
+
m(s), f(p);
|
57
58
|
},
|
58
59
|
className: e["calendar-block"]
|
59
60
|
});
|
60
|
-
const
|
61
|
-
!
|
62
|
-
},
|
63
|
-
isNaN(
|
64
|
-
value:
|
65
|
-
name:
|
66
|
-
})), g === "years" && (p === "years" ? (m(!1), f(p)) : f("months")), g === "months" && (p === "months" ? (m(!1), f(p)) : f("days")),
|
67
|
-
value:
|
68
|
-
name:
|
69
|
-
}), r == null || r(
|
70
|
-
},
|
71
|
-
if (
|
72
|
-
const
|
73
|
-
if (
|
74
|
-
|
61
|
+
const u = () => {
|
62
|
+
!_ && (Y || !k) && m(!0);
|
63
|
+
}, J = (s) => {
|
64
|
+
isNaN(s.getTime()) || (I(s), t == null || t({
|
65
|
+
value: l.Date(s, "yyyy-mm-dd"),
|
66
|
+
name: o
|
67
|
+
})), g === "years" && (p === "years" ? (m(!1), f(p)) : f("months")), g === "months" && (p === "months" ? (m(!1), f(p)) : f("days")), I(s), t == null || t({
|
68
|
+
value: l.Date(s, "yyyy-mm-dd"),
|
69
|
+
name: o
|
70
|
+
}), r == null || r(l.Date(s, "yyyy-mm-dd"));
|
71
|
+
}, Q = (s) => {
|
72
|
+
if (k) {
|
73
|
+
const N = s.target.value.replace(/[^\d]/g, "");
|
74
|
+
if (N.length === 0)
|
75
|
+
P(""), t == null || t({ value: "", name: o }), r == null || r("");
|
75
76
|
else {
|
76
|
-
const [
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
],
|
81
|
-
if (
|
82
|
-
const
|
83
|
-
|
77
|
+
const [n, T, w] = [
|
78
|
+
U(N.substring(0, 2), et),
|
79
|
+
U(N.substring(2, 4), it),
|
80
|
+
N.substring(4, 8)
|
81
|
+
], L = [n, T, w].filter(Boolean).join("/");
|
82
|
+
if (P(L), G) {
|
83
|
+
const b = w ? `${w}-${T || "00"}-${n || "00"}` : [n, T, w].filter(Boolean).join("-");
|
84
|
+
t == null || t({
|
85
|
+
value: b,
|
86
|
+
name: o
|
87
|
+
});
|
88
|
+
}
|
89
|
+
if (L.length === rt) {
|
90
|
+
const b = parseInt(w), v = /* @__PURE__ */ new Date(
|
91
|
+
`${b}-${T.padStart(2, "0")}-${n.padStart(2, "0")}`
|
84
92
|
);
|
85
|
-
isNaN(
|
86
|
-
value:
|
87
|
-
name:
|
88
|
-
}), r == null || r(
|
93
|
+
isNaN(v.getTime()) || (I(v), t == null || t({
|
94
|
+
value: l.Date(v, "yyyy-mm-dd"),
|
95
|
+
name: o
|
96
|
+
}), r == null || r(l.Date(v, "yyyy-mm-dd")));
|
89
97
|
}
|
90
98
|
}
|
91
99
|
}
|
92
|
-
},
|
93
|
-
onChangeValue:
|
94
|
-
date:
|
95
|
-
before: typeof
|
100
|
+
}, Z = h(e.wrapper, A && e.active), z = h(e.input, e.inputBorderControl), C = {
|
101
|
+
onChangeValue: J,
|
102
|
+
date: c || /* @__PURE__ */ new Date(),
|
103
|
+
before: typeof S == "string" ? new Date(S) : S,
|
96
104
|
onChangeType: f,
|
97
105
|
setIsActive: m
|
98
|
-
},
|
99
|
-
|
100
|
-
}, className: e["icon-button"], children:
|
101
|
-
|
106
|
+
}, B = ft[g], V = ({ isActive: s }) => /* @__PURE__ */ a("button", { onClick: (n) => {
|
107
|
+
n.stopPropagation(), _ || m(!s);
|
108
|
+
}, className: e["icon-button"], children: s ? /* @__PURE__ */ a(
|
109
|
+
X,
|
102
110
|
{
|
103
|
-
iconName:
|
111
|
+
iconName: x === E.S ? "DropdownArrowUp16px" : "DropdownArrowUp24px"
|
104
112
|
}
|
105
113
|
) : /* @__PURE__ */ a(
|
106
|
-
|
114
|
+
X,
|
107
115
|
{
|
108
|
-
iconName:
|
116
|
+
iconName: x === E.S ? "DropdownArrowBottom16px" : "DropdownArrowDown24px"
|
109
117
|
}
|
110
118
|
) });
|
111
|
-
return /* @__PURE__ */
|
112
|
-
/* @__PURE__ */
|
119
|
+
return /* @__PURE__ */ R("div", { className: e["input-field-group-datePicker"], children: [
|
120
|
+
/* @__PURE__ */ R("div", { className: Z, "data-disabled": _, children: [
|
113
121
|
/* @__PURE__ */ a(
|
114
122
|
"div",
|
115
123
|
{
|
116
124
|
role: "button",
|
117
|
-
"data-error": !!
|
118
|
-
className:
|
119
|
-
[e.editable]:
|
125
|
+
"data-error": !!y,
|
126
|
+
className: h(e["date-wrapper"], {
|
127
|
+
[e.editable]: k
|
120
128
|
}),
|
121
|
-
onClick:
|
129
|
+
onClick: u,
|
122
130
|
children: /* @__PURE__ */ a(
|
123
|
-
|
131
|
+
pt,
|
124
132
|
{
|
125
|
-
ref:
|
126
|
-
className:
|
133
|
+
ref: W,
|
134
|
+
className: z,
|
127
135
|
wrapperClassName: e["input-wrapper"],
|
128
|
-
size:
|
136
|
+
size: x,
|
129
137
|
type: "text",
|
130
|
-
variant:
|
131
|
-
status:
|
132
|
-
value:
|
133
|
-
onChange:
|
138
|
+
variant: F,
|
139
|
+
status: y ? dt.Error : void 0,
|
140
|
+
value: q,
|
141
|
+
onChange: Q,
|
134
142
|
rightAddon: {
|
135
143
|
addonType: "react-node",
|
136
|
-
addonContent: /* @__PURE__ */ a(
|
144
|
+
addonContent: /* @__PURE__ */ a(V, { isActive: A })
|
137
145
|
},
|
138
146
|
rightSlotClassName: e["right-slot"],
|
139
147
|
onFocus: () => {
|
140
|
-
|
148
|
+
Y && !k && m(!0);
|
141
149
|
},
|
142
|
-
"data-error": !!
|
143
|
-
...
|
150
|
+
"data-error": !!y,
|
151
|
+
...K
|
144
152
|
}
|
145
153
|
)
|
146
154
|
}
|
147
155
|
),
|
148
|
-
|
156
|
+
A && /* @__PURE__ */ a(B, { ...C })
|
149
157
|
] }),
|
150
|
-
|
158
|
+
y && typeof y == "string" && /* @__PURE__ */ a("div", { className: e.textError, children: y })
|
151
159
|
] });
|
152
160
|
}
|
153
161
|
)
|
154
162
|
);
|
155
|
-
|
163
|
+
yt.displayName = "DatePicker";
|
156
164
|
export {
|
157
|
-
|
165
|
+
yt as DatePicker
|
158
166
|
};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { jsx as V, jsxs as U, Fragment as Je } from "react/jsx-runtime";
|
2
2
|
import { c as W } from "../../index-DIxK0V-G.js";
|
3
|
-
import G, { forwardRef as Te, useState as K, useRef as R, useEffect as he, useLayoutEffect as
|
3
|
+
import G, { useContext as Qe, forwardRef as Te, useState as K, useRef as R, useEffect as he, useLayoutEffect as et, createContext as De, memo as Ge, useCallback as re, useMemo as tt } from "react";
|
4
4
|
import { EProgressBarPosition as xe } from "./constants.js";
|
5
5
|
import { AppImage as Ee } from "../Image/Image.js";
|
6
6
|
import { MergedButton as it } from "../MergedButton/MergedButton.js";
|
@@ -2714,9 +2714,9 @@ function Oi(t, e, i) {
|
|
2714
2714
|
}));
|
2715
2715
|
}
|
2716
2716
|
function Q(t, e) {
|
2717
|
-
return typeof window > "u" ? he(t, e) :
|
2717
|
+
return typeof window > "u" ? he(t, e) : et(t, e);
|
2718
2718
|
}
|
2719
|
-
const ze = /* @__PURE__ */ De(null), Ue = /* @__PURE__ */ De(null), _i = () =>
|
2719
|
+
const ze = /* @__PURE__ */ De(null), Ue = /* @__PURE__ */ De(null), _i = () => Qe(Ue), Ke = /* @__PURE__ */ Te(function(t, e) {
|
2720
2720
|
let {
|
2721
2721
|
className: i,
|
2722
2722
|
tag: s = "div",
|
@@ -1,2 +1,3 @@
|
|
1
|
-
export declare const
|
1
|
+
export declare const SliderLazy: import('react').LazyExoticComponent<typeof import('./Slider').default>;
|
2
|
+
export { default as Slider } from './Slider';
|
2
3
|
export { EProgressBarPosition } from './constants';
|
@@ -1,7 +1,9 @@
|
|
1
|
-
import { lazy as
|
2
|
-
import {
|
3
|
-
|
1
|
+
import { lazy as r } from "react";
|
2
|
+
import { default as a } from "./Slider.js";
|
3
|
+
import { EProgressBarPosition as p } from "./constants.js";
|
4
|
+
const t = r(() => import("./Slider.js"));
|
4
5
|
export {
|
5
|
-
|
6
|
-
|
6
|
+
p as EProgressBarPosition,
|
7
|
+
a as Slider,
|
8
|
+
t as SliderLazy
|
7
9
|
};
|
@@ -16,7 +16,7 @@ export { EMergedButtonVariantRound } from './MergedButton';
|
|
16
16
|
export type { TButtonPropsWithoutStyles } from './MergedButton';
|
17
17
|
export { Image } from './Image';
|
18
18
|
export { Loader } from './Loader';
|
19
|
-
export { Slider, EProgressBarPosition } from './Slider';
|
19
|
+
export { Slider, SliderLazy, EProgressBarPosition } from './Slider';
|
20
20
|
export { Drawer } from './Drawer';
|
21
21
|
export { EDrawerPosition } from './Drawer';
|
22
22
|
export { Dropdown } from './Dropdown';
|
package/dist/components/index.js
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
import { Button as e } from "./Button/Button.js";
|
2
|
-
import { EButtonForm as p, EButtonSize as a, EButtonVariantBorderless as i, EButtonVariantDefault as m, EButtonVariantOutline as
|
2
|
+
import { EButtonForm as p, EButtonSize as a, EButtonVariantBorderless as i, EButtonVariantDefault as m, EButtonVariantOutline as f, EButtonVariantRound as x } from "./Button/constants.js";
|
3
3
|
import { I as S } from "../Input-BYrIS5GU.js";
|
4
4
|
import { EInputSize as E, EInputStatus as l, EInputVariant as u } 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
7
|
import { InputPassword as h } from "./InputPassword/InputPassword.js";
|
8
|
-
import { InputPhoneNumber as
|
8
|
+
import { InputPhoneNumber as V } from "./InputPhoneNumber/InputPhoneNumber.js";
|
9
9
|
import { getMaskedInputPhoneValue as B, getUnmaskedInputValue as P } from "./InputPhoneNumber/utils.js";
|
10
|
-
import { OtpInput as
|
11
|
-
import { RadioGroup as
|
10
|
+
import { OtpInput as L } from "./OtpInput/OtpInput.js";
|
11
|
+
import { RadioGroup as R } from "./RadioGroup/RadioGroup.js";
|
12
12
|
import { DatePicker as U } from "./DatePicker/DatePicker.js";
|
13
|
-
import { MergedButton as
|
13
|
+
import { MergedButton as C } from "./MergedButton/MergedButton.js";
|
14
14
|
import { EMergedButtonVariantRound as D } from "./MergedButton/constants.js";
|
15
15
|
import { AppImage as F } from "./Image/Image.js";
|
16
16
|
import { Loader as N } from "./Loader/Loader.js";
|
17
|
-
import {
|
17
|
+
import { SliderLazy as O } from "./Slider/index.js";
|
18
18
|
import { Drawer as q } from "./Drawer/Drawer.js";
|
19
19
|
import { EDrawerPosition as J } from "./Drawer/constants.js";
|
20
20
|
import { Dropdown as Q } from "./Dropdown/Dropdown.js";
|
@@ -24,19 +24,19 @@ import { Vote as ro } from "./Vote/Vote.js";
|
|
24
24
|
import { EVoteSize as to } from "./Vote/constants.js";
|
25
25
|
import { SelectSearch as ao } from "./SelectSearch/SelectSearch.js";
|
26
26
|
import { ESelectSearchSize as mo } from "./SelectSearch/constants.js";
|
27
|
-
import { CheckboxMimir as
|
27
|
+
import { CheckboxMimir as xo } from "./CheckboxMimir/CheckboxMimir.js";
|
28
28
|
import { Tag as So } from "./Tag/Tag.js";
|
29
29
|
import { ETagSize as Eo, ETagType as lo } from "./Tag/constants.js";
|
30
30
|
import { Timer as co } from "./Timer/Timer.js";
|
31
31
|
import { Accordion as go } from "./Accordion/Accordion.js";
|
32
32
|
import { EAccordionSize as ho } from "./Accordion/constants.js";
|
33
|
-
import { AccordionItem as
|
33
|
+
import { AccordionItem as Vo } from "./Accordion/AccordionItem/AccordionItem.js";
|
34
34
|
import { TabTrail as Bo } from "./TabTrail/TabTrail.js";
|
35
35
|
import { ETabTrailSize as Ao } from "./TabTrail/constants.js";
|
36
|
-
import { Pagination as
|
37
|
-
import { ToastProvider as
|
38
|
-
import { useToast as
|
39
|
-
import { EToastPosition as
|
36
|
+
import { Pagination as Mo } from "./Pagination/Pagination.js";
|
37
|
+
import { ToastProvider as wo } from "./Toasts/ToastsProvider.js";
|
38
|
+
import { useToast as yo } from "./Toasts/hooks.js";
|
39
|
+
import { EToastPosition as bo, EToastVariant as Do } from "./Toasts/constants.js";
|
40
40
|
import { UploaderPhotos as Fo } from "./UploaderPhotos/UploaderPhotos.js";
|
41
41
|
import { UploaderFiles as No } from "./UploaderFiles/UploaderFiles.js";
|
42
42
|
import { Uploader as Oo } from "./Uploader/Uploader.js";
|
@@ -48,19 +48,19 @@ import { Chip as $o } from "./Chip/Chip.js";
|
|
48
48
|
import { EChipSize as rr, EChipVariant as er } from "./Chip/constants.js";
|
49
49
|
import { UniversalUploader as pr } from "./UniversalUploader/UniversalUploader.js";
|
50
50
|
import { EUploaderType as ir } from "./UniversalUploader/constants.js";
|
51
|
-
import { InputRangeSlider as
|
51
|
+
import { InputRangeSlider as fr } from "./InputRangeSlider/InputRangeSlider.js";
|
52
52
|
import { EInputRangeSliderBorderState as nr, EInputRangeSliderPositions as Sr } from "./InputRangeSlider/constants.js";
|
53
53
|
import { GosZnak as Er } from "./GosZnak/GosZnak.js";
|
54
54
|
import { EGosZnakSize as ur, EGosZnakType as dr } from "./GosZnak/constants.js";
|
55
55
|
import { Switcher as Tr } from "./Switcher/Switcher.js";
|
56
56
|
import { ELabelPositions as Ir } from "./Switcher/constants.js";
|
57
|
-
import { TwinSwitcher as
|
58
|
-
import { SkeletonBrick as
|
57
|
+
import { TwinSwitcher as zr } from "./TwinSwitcher/TwinSwitcher.js";
|
58
|
+
import { SkeletonBrick as kr } from "./Skeleton/SkeletonBrick/SkeletonBrick.js";
|
59
59
|
import { SkeletonText as Pr } from "./Skeleton/SkeletonText/SkeletonText.js";
|
60
|
-
import { SkeletonCircle as
|
61
|
-
import { ESkeletonVariant as
|
60
|
+
import { SkeletonCircle as Lr } from "./Skeleton/SkeletonCircle/SkeletonCircle.js";
|
61
|
+
import { ESkeletonVariant as Rr } from "./Skeleton/constants.js";
|
62
62
|
import { Avatar as Ur } from "./Avatar/Avatar.js";
|
63
|
-
import { EAvatarSize as
|
63
|
+
import { EAvatarSize as Cr } from "./Avatar/constants.js";
|
64
64
|
import { MultiSelectSearch as Dr } from "./MultiSelectSearch/MultiSelectSearch.js";
|
65
65
|
import { EMultiSelectSearchSize as Fr } from "./MultiSelectSearch/constants.js";
|
66
66
|
import { ListFiles as Nr } from "./ListFiles/ListFiles.js";
|
@@ -68,25 +68,26 @@ import { EFileItemVariant as Or } from "./ListFiles/constants.js";
|
|
68
68
|
import { ListPhotos as qr } from "./ListPhotos/ListPhotos.js";
|
69
69
|
import { MessageShortReply as Jr } from "./MessageShortReply/MessageShortReply.js";
|
70
70
|
import { EMessageShortReplyVariant as Qr } from "./MessageShortReply/constants.js";
|
71
|
-
import {
|
71
|
+
import { default as Xr } from "./Slider/Slider.js";
|
72
|
+
import { EProgressBarPosition as _r } from "./Slider/constants.js";
|
72
73
|
export {
|
73
74
|
go as Accordion,
|
74
|
-
|
75
|
+
Vo as AccordionItem,
|
75
76
|
Ur as Avatar,
|
76
77
|
e as Button,
|
77
|
-
|
78
|
+
xo as CheckboxMimir,
|
78
79
|
$o as Chip,
|
79
80
|
U as DatePicker,
|
80
81
|
q as Drawer,
|
81
82
|
Q as Dropdown,
|
82
83
|
ho as EAccordionSize,
|
83
|
-
|
84
|
+
Cr as EAvatarSize,
|
84
85
|
p as EButtonForm,
|
85
86
|
a as EButtonSize,
|
86
87
|
i as EButtonVariantBorderless,
|
87
88
|
m as EButtonVariantDefault,
|
88
|
-
|
89
|
-
|
89
|
+
f as EButtonVariantOutline,
|
90
|
+
x as EButtonVariantRound,
|
90
91
|
rr as EChipSize,
|
91
92
|
er as EChipVariant,
|
92
93
|
J as EDrawerPosition,
|
@@ -105,16 +106,16 @@ export {
|
|
105
106
|
Qr as EMessageShortReplyVariant,
|
106
107
|
Fr as EMultiSelectSearchSize,
|
107
108
|
Yo as ENotificationBadgeSize,
|
108
|
-
|
109
|
+
_r as EProgressBarPosition,
|
109
110
|
mo as ESelectSearchSize,
|
110
|
-
|
111
|
+
Rr as ESkeletonVariant,
|
111
112
|
_ as EStepColor,
|
112
113
|
$ as EStepsSize,
|
113
114
|
Ao as ETabTrailSize,
|
114
115
|
Eo as ETagSize,
|
115
116
|
lo as ETagType,
|
116
117
|
g as ETextAreaInputSize,
|
117
|
-
|
118
|
+
bo as EToastPosition,
|
118
119
|
Do as EToastVariant,
|
119
120
|
ir as EUploaderType,
|
120
121
|
to as EVoteSize,
|
@@ -122,32 +123,33 @@ export {
|
|
122
123
|
F as Image,
|
123
124
|
S as Input,
|
124
125
|
h as InputPassword,
|
125
|
-
|
126
|
-
|
126
|
+
V as InputPhoneNumber,
|
127
|
+
fr as InputRangeSlider,
|
127
128
|
qo as Link,
|
128
129
|
Nr as ListFiles,
|
129
130
|
qr as ListPhotos,
|
130
131
|
N as Loader,
|
131
|
-
|
132
|
+
C as MergedButton,
|
132
133
|
Jr as MessageShortReply,
|
133
134
|
Dr as MultiSelectSearch,
|
134
135
|
Wo as NotificationBadge,
|
135
|
-
|
136
|
-
|
137
|
-
|
136
|
+
L as OtpInput,
|
137
|
+
Mo as Pagination,
|
138
|
+
R as RadioGroup,
|
138
139
|
ao as SelectSearch,
|
139
|
-
|
140
|
-
|
140
|
+
kr as SkeletonBrick,
|
141
|
+
Lr as SkeletonCircle,
|
141
142
|
Pr as SkeletonText,
|
142
|
-
|
143
|
+
Xr as Slider,
|
144
|
+
O as SliderLazy,
|
143
145
|
X as Steps,
|
144
146
|
Tr as Switcher,
|
145
147
|
Bo as TabTrail,
|
146
148
|
So as Tag,
|
147
149
|
c as TextArea,
|
148
150
|
co as Timer,
|
149
|
-
|
150
|
-
|
151
|
+
wo as ToastProvider,
|
152
|
+
zr as TwinSwitcher,
|
151
153
|
pr as UniversalUploader,
|
152
154
|
Oo as Uploader,
|
153
155
|
No as UploaderFiles,
|
@@ -155,5 +157,5 @@ export {
|
|
155
157
|
ro as Vote,
|
156
158
|
B as getMaskedInputPhoneValue,
|
157
159
|
P as getUnmaskedInputValue,
|
158
|
-
|
160
|
+
yo as useToast
|
159
161
|
};
|
package/dist/index.js
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
import { Button as e } from "./components/Button/Button.js";
|
2
|
-
import { EButtonForm as p, EButtonSize as
|
2
|
+
import { EButtonForm as p, EButtonSize as a, EButtonVariantBorderless as m, EButtonVariantDefault as f, EButtonVariantOutline as i, EButtonVariantRound as x } from "./components/Button/constants.js";
|
3
3
|
import { I as s } from "./Input-BYrIS5GU.js";
|
4
|
-
import { EInputSize as
|
4
|
+
import { EInputSize as S, EInputStatus as l, EInputVariant as E } from "./components/Input/constants.js";
|
5
5
|
import { TextArea as c } from "./components/TextArea/TextArea.js";
|
6
6
|
import { ETextAreaInputSize as g } from "./components/TextArea/constants.js";
|
7
|
-
import { InputPassword as
|
8
|
-
import { InputPhoneNumber as
|
7
|
+
import { InputPassword as z } from "./components/InputPassword/InputPassword.js";
|
8
|
+
import { InputPhoneNumber as k } from "./components/InputPhoneNumber/InputPhoneNumber.js";
|
9
9
|
import { getMaskedInputPhoneValue as V, getUnmaskedInputValue as P } from "./components/InputPhoneNumber/utils.js";
|
10
10
|
import { OtpInput as y } from "./components/OtpInput/OtpInput.js";
|
11
|
-
import { RadioGroup as
|
12
|
-
import { DatePicker as
|
11
|
+
import { RadioGroup as L } from "./components/RadioGroup/RadioGroup.js";
|
12
|
+
import { DatePicker as C } from "./components/DatePicker/DatePicker.js";
|
13
13
|
import { MergedButton as w } from "./components/MergedButton/MergedButton.js";
|
14
14
|
import { EMergedButtonVariantRound as v } from "./components/MergedButton/constants.js";
|
15
15
|
import { AppImage as F } from "./components/Image/Image.js";
|
16
16
|
import { Loader as N } from "./components/Loader/Loader.js";
|
17
|
-
import {
|
17
|
+
import { SliderLazy as Q } from "./components/Slider/index.js";
|
18
18
|
import { Drawer as j } from "./components/Drawer/Drawer.js";
|
19
19
|
import { EDrawerPosition as H } from "./components/Drawer/constants.js";
|
20
20
|
import { Dropdown as K } from "./components/Dropdown/Dropdown.js";
|
@@ -22,19 +22,19 @@ import { Steps as X } from "./components/Steps/Steps.js";
|
|
22
22
|
import { EStepColor as _, EStepsSize as $ } from "./components/Steps/constants.js";
|
23
23
|
import { Vote as ro } from "./components/Vote/Vote.js";
|
24
24
|
import { EVoteSize as to } from "./components/Vote/constants.js";
|
25
|
-
import { SelectSearch as
|
26
|
-
import { ESelectSearchSize as
|
25
|
+
import { SelectSearch as ao } from "./components/SelectSearch/SelectSearch.js";
|
26
|
+
import { ESelectSearchSize as fo } from "./components/SelectSearch/constants.js";
|
27
27
|
import { CheckboxMimir as xo } from "./components/CheckboxMimir/CheckboxMimir.js";
|
28
28
|
import { Tag as so } from "./components/Tag/Tag.js";
|
29
|
-
import { ETagSize as
|
29
|
+
import { ETagSize as So, ETagType as lo } from "./components/Tag/constants.js";
|
30
30
|
import { Timer as co } from "./components/Timer/Timer.js";
|
31
31
|
import { Accordion as go } from "./components/Accordion/Accordion.js";
|
32
|
-
import { EAccordionSize as
|
33
|
-
import { AccordionItem as
|
32
|
+
import { EAccordionSize as zo } from "./components/Accordion/constants.js";
|
33
|
+
import { AccordionItem as ko } from "./components/Accordion/AccordionItem/AccordionItem.js";
|
34
34
|
import { TabTrail as Vo } from "./components/TabTrail/TabTrail.js";
|
35
35
|
import { ETabTrailSize as Mo } from "./components/TabTrail/constants.js";
|
36
36
|
import { Pagination as Ro } from "./components/Pagination/Pagination.js";
|
37
|
-
import { ToastProvider as
|
37
|
+
import { ToastProvider as Ao } from "./components/Toasts/ToastsProvider.js";
|
38
38
|
import { useToast as bo } from "./components/Toasts/hooks.js";
|
39
39
|
import { EToastPosition as Uo, EToastVariant as vo } from "./components/Toasts/constants.js";
|
40
40
|
import { UploaderPhotos as Fo } from "./components/UploaderPhotos/UploaderPhotos.js";
|
@@ -47,19 +47,19 @@ import { ENotificationBadgeSize as Yo } from "./components/NotificationBadge/con
|
|
47
47
|
import { Chip as $o } from "./components/Chip/Chip.js";
|
48
48
|
import { EChipSize as rr, EChipVariant as er } from "./components/Chip/constants.js";
|
49
49
|
import { UniversalUploader as pr } from "./components/UniversalUploader/UniversalUploader.js";
|
50
|
-
import { EUploaderType as
|
51
|
-
import { InputRangeSlider as
|
50
|
+
import { EUploaderType as mr } from "./components/UniversalUploader/constants.js";
|
51
|
+
import { InputRangeSlider as ir } from "./components/InputRangeSlider/InputRangeSlider.js";
|
52
52
|
import { EInputRangeSliderBorderState as nr, EInputRangeSliderPositions as sr } from "./components/InputRangeSlider/constants.js";
|
53
|
-
import { GosZnak as
|
54
|
-
import { EGosZnakSize as
|
53
|
+
import { GosZnak as Sr } from "./components/GosZnak/GosZnak.js";
|
54
|
+
import { EGosZnakSize as Er, EGosZnakType as dr } from "./components/GosZnak/constants.js";
|
55
55
|
import { Switcher as Tr } from "./components/Switcher/Switcher.js";
|
56
56
|
import { ELabelPositions as Ir } from "./components/Switcher/constants.js";
|
57
|
-
import { TwinSwitcher as
|
57
|
+
import { TwinSwitcher as hr } from "./components/TwinSwitcher/TwinSwitcher.js";
|
58
58
|
import { SkeletonBrick as Br } from "./components/Skeleton/SkeletonBrick/SkeletonBrick.js";
|
59
59
|
import { SkeletonText as Pr } from "./components/Skeleton/SkeletonText/SkeletonText.js";
|
60
60
|
import { SkeletonCircle as yr } from "./components/Skeleton/SkeletonCircle/SkeletonCircle.js";
|
61
|
-
import { ESkeletonVariant as
|
62
|
-
import { Avatar as
|
61
|
+
import { ESkeletonVariant as Lr } from "./components/Skeleton/constants.js";
|
62
|
+
import { Avatar as Cr } from "./components/Avatar/Avatar.js";
|
63
63
|
import { EAvatarSize as wr } from "./components/Avatar/constants.js";
|
64
64
|
import { MultiSelectSearch as vr } from "./components/MultiSelectSearch/MultiSelectSearch.js";
|
65
65
|
import { EMultiSelectSearchSize as Fr } from "./components/MultiSelectSearch/constants.js";
|
@@ -72,43 +72,44 @@ import { useMediaQuery as Xr } from "./hooks/useMediaQuery/useMediaQuery.js";
|
|
72
72
|
import { EMediaQuery as _r, EMinMediaQuery as $r } from "./hooks/useMediaQuery/constants.js";
|
73
73
|
import { useLockBodyScroll as re } from "./hooks/useLockBodyScroll/useLockBodyScroll.js";
|
74
74
|
import { useInterval as te } from "./hooks/useInterval/useInterval.js";
|
75
|
-
import { useTimer as
|
76
|
-
import { useCopyToClipboard as
|
75
|
+
import { useTimer as ae } from "./hooks/useTimer/index.js";
|
76
|
+
import { useCopyToClipboard as fe } from "./hooks/useCopyToClipboard/useCopyToClipboard.js";
|
77
77
|
import { useMergeRefs as xe } from "./hooks/useMergeRefs/useMergeRefs.js";
|
78
78
|
import { useResizeObserver as se } from "./hooks/useResizeObserver/useResizeObserver.js";
|
79
|
-
import { Icon as
|
80
|
-
import { formating as
|
81
|
-
import {
|
82
|
-
import {
|
79
|
+
import { Icon as Se } from "./icons/Icon.js";
|
80
|
+
import { formating as Ee } from "./utils/index.js";
|
81
|
+
import { default as ce } from "./components/Slider/Slider.js";
|
82
|
+
import { EProgressBarPosition as ge } from "./components/Slider/constants.js";
|
83
|
+
import { parseDate as ze } from "./utils/formating/Date.js";
|
83
84
|
import './assets/index.css';export {
|
84
85
|
go as Accordion,
|
85
|
-
|
86
|
-
|
86
|
+
ko as AccordionItem,
|
87
|
+
Cr as Avatar,
|
87
88
|
e as Button,
|
88
89
|
xo as CheckboxMimir,
|
89
90
|
$o as Chip,
|
90
|
-
|
91
|
+
C as DatePicker,
|
91
92
|
j as Drawer,
|
92
93
|
K as Dropdown,
|
93
|
-
|
94
|
+
zo as EAccordionSize,
|
94
95
|
wr as EAvatarSize,
|
95
96
|
p as EButtonForm,
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
97
|
+
a as EButtonSize,
|
98
|
+
m as EButtonVariantBorderless,
|
99
|
+
f as EButtonVariantDefault,
|
100
|
+
i as EButtonVariantOutline,
|
100
101
|
x as EButtonVariantRound,
|
101
102
|
rr as EChipSize,
|
102
103
|
er as EChipVariant,
|
103
104
|
H as EDrawerPosition,
|
104
105
|
Qr as EFileItemVariant,
|
105
|
-
|
106
|
+
Er as EGosZnakSize,
|
106
107
|
dr as EGosZnakType,
|
107
108
|
nr as EInputRangeSliderBorderState,
|
108
109
|
sr as EInputRangeSliderPositions,
|
109
|
-
|
110
|
-
|
111
|
-
|
110
|
+
S as EInputSize,
|
111
|
+
l as EInputStatus,
|
112
|
+
E as EInputVariant,
|
112
113
|
Ir as ELabelPositions,
|
113
114
|
Ho as ELinkSize,
|
114
115
|
Jo as ELinkVariant,
|
@@ -118,26 +119,26 @@ import './assets/index.css';export {
|
|
118
119
|
$r as EMinMediaQuery,
|
119
120
|
Fr as EMultiSelectSearchSize,
|
120
121
|
Yo as ENotificationBadgeSize,
|
121
|
-
|
122
|
-
|
123
|
-
|
122
|
+
ge as EProgressBarPosition,
|
123
|
+
fo as ESelectSearchSize,
|
124
|
+
Lr as ESkeletonVariant,
|
124
125
|
_ as EStepColor,
|
125
126
|
$ as EStepsSize,
|
126
127
|
Mo as ETabTrailSize,
|
127
|
-
|
128
|
-
|
128
|
+
So as ETagSize,
|
129
|
+
lo as ETagType,
|
129
130
|
g as ETextAreaInputSize,
|
130
131
|
Uo as EToastPosition,
|
131
132
|
vo as EToastVariant,
|
132
|
-
|
133
|
+
mr as EUploaderType,
|
133
134
|
to as EVoteSize,
|
134
|
-
|
135
|
-
|
135
|
+
Sr as GosZnak,
|
136
|
+
Se as Icon,
|
136
137
|
F as Image,
|
137
138
|
s as Input,
|
138
|
-
|
139
|
-
|
140
|
-
|
139
|
+
z as InputPassword,
|
140
|
+
k as InputPhoneNumber,
|
141
|
+
ir as InputRangeSlider,
|
141
142
|
jo as Link,
|
142
143
|
Nr as ListFiles,
|
143
144
|
jr as ListPhotos,
|
@@ -148,35 +149,36 @@ import './assets/index.css';export {
|
|
148
149
|
Wo as NotificationBadge,
|
149
150
|
y as OtpInput,
|
150
151
|
Ro as Pagination,
|
151
|
-
|
152
|
-
|
152
|
+
L as RadioGroup,
|
153
|
+
ao as SelectSearch,
|
153
154
|
Br as SkeletonBrick,
|
154
155
|
yr as SkeletonCircle,
|
155
156
|
Pr as SkeletonText,
|
156
|
-
|
157
|
+
ce as Slider,
|
158
|
+
Q as SliderLazy,
|
157
159
|
X as Steps,
|
158
160
|
Tr as Switcher,
|
159
161
|
Vo as TabTrail,
|
160
162
|
so as Tag,
|
161
163
|
c as TextArea,
|
162
164
|
co as Timer,
|
163
|
-
|
164
|
-
|
165
|
+
Ao as ToastProvider,
|
166
|
+
hr as TwinSwitcher,
|
165
167
|
pr as UniversalUploader,
|
166
168
|
Qo as Uploader,
|
167
169
|
No as UploaderFiles,
|
168
170
|
Fo as UploaderPhotos,
|
169
171
|
ro as Vote,
|
170
|
-
|
172
|
+
Ee as formating,
|
171
173
|
V as getMaskedInputPhoneValue,
|
172
174
|
P as getUnmaskedInputValue,
|
173
|
-
|
174
|
-
|
175
|
+
ze as parseDate,
|
176
|
+
fe as useCopyToClipboard,
|
175
177
|
te as useInterval,
|
176
178
|
re as useLockBodyScroll,
|
177
179
|
Xr as useMediaQuery,
|
178
180
|
xe as useMergeRefs,
|
179
181
|
se as useResizeObserver,
|
180
|
-
|
182
|
+
ae as useTimer,
|
181
183
|
bo as useToast
|
182
184
|
};
|