mimir-ui-kit 1.39.3 → 1.40.0
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/assets/PromoSlider.css +1 -0
- package/dist/assets/SelectSearch.css +1 -1
- package/dist/assets/Tag.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/components/Chip/Chip.d.ts +5 -1
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/PromoSlider/PromoSlider.d.ts +59 -0
- package/dist/components/PromoSlider/PromoSlider.js +320 -0
- package/dist/components/PromoSlider/index.d.ts +1 -0
- package/dist/components/PromoSlider/index.js +4 -0
- package/dist/components/SelectSearch/SelectSearch.js +74 -73
- package/dist/components/SelectSearch/constants.d.ts +1 -0
- package/dist/components/SelectSearch/constants.js +1 -1
- package/dist/components/SelectSearch/utils.js +10 -8
- package/dist/components/Slider/Slider.js +113 -2993
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.js +29 -28
- package/dist/components/Tag/constants.d.ts +1 -0
- package/dist/components/Tag/constants.js +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +6 -4
- package/dist/index.js +43 -41
- package/dist/swiper-react-BvAw14a4.js +2901 -0
- package/package.json +1 -1
@@ -1,46 +1,47 @@
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
2
2
|
import { c as a } from "../../index-DIxK0V-G.js";
|
3
|
-
import { forwardRef as
|
4
|
-
import { ETagSize as
|
5
|
-
import '../../assets/Tag.css';const
|
6
|
-
container:
|
7
|
-
disabled:
|
8
|
-
inner:
|
9
|
-
M:
|
10
|
-
S:
|
11
|
-
XS:
|
12
|
-
|
3
|
+
import { forwardRef as z } from "react";
|
4
|
+
import { ETagSize as f, ETagType as o } from "./constants.js";
|
5
|
+
import '../../assets/Tag.css';const N = "_container_zmbqd_2", q = "_disabled_zmbqd_25", X = "_inner_zmbqd_30", g = "_M_zmbqd_38", C = "_S_zmbqd_42", u = "_XS_zmbqd_50", M = "_XSS_zmbqd_58", e = {
|
6
|
+
container: N,
|
7
|
+
disabled: q,
|
8
|
+
inner: X,
|
9
|
+
M: g,
|
10
|
+
S: C,
|
11
|
+
XS: u,
|
12
|
+
XSS: M
|
13
|
+
}, O = z(
|
13
14
|
(t, c) => {
|
14
15
|
const {
|
15
16
|
rootClassName: l,
|
16
|
-
innerClassName:
|
17
|
-
children:
|
18
|
-
size:
|
19
|
-
disabled:
|
20
|
-
elementType:
|
21
|
-
backgroundColor:
|
22
|
-
color:
|
17
|
+
innerClassName: d,
|
18
|
+
children: i,
|
19
|
+
size: m = f.M,
|
20
|
+
disabled: _ = !1,
|
21
|
+
elementType: b = o.BUTTON,
|
22
|
+
backgroundColor: n = "",
|
23
|
+
color: S = "",
|
23
24
|
outline: r = !1,
|
24
|
-
...
|
25
|
-
} = t,
|
25
|
+
...T
|
26
|
+
} = t, p = b === o.BUTTON ? o.BUTTON : o.DIV;
|
26
27
|
return /* @__PURE__ */ s(
|
27
|
-
|
28
|
+
p,
|
28
29
|
{
|
29
|
-
className: a(
|
30
|
-
[
|
30
|
+
className: a(e.container, e[m], l, {
|
31
|
+
[e.disabled]: _
|
31
32
|
}),
|
32
33
|
ref: c,
|
33
34
|
style: {
|
34
|
-
backgroundColor: r ? "transparent" :
|
35
|
-
borderColor:
|
36
|
-
color: r ?
|
35
|
+
backgroundColor: r ? "transparent" : n,
|
36
|
+
borderColor: n,
|
37
|
+
color: r ? n : S
|
37
38
|
},
|
38
|
-
...
|
39
|
-
children: /* @__PURE__ */ s("span", { className: a(
|
39
|
+
...T,
|
40
|
+
children: /* @__PURE__ */ s("span", { className: a(e.inner, d), children: i })
|
40
41
|
}
|
41
42
|
);
|
42
43
|
}
|
43
44
|
);
|
44
45
|
export {
|
45
|
-
|
46
|
+
O as Tag
|
46
47
|
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
var t = /* @__PURE__ */ ((r) => (r.XS = "XS", r.S = "S", r.M = "M", r))(t || {}),
|
1
|
+
var t = /* @__PURE__ */ ((r) => (r.XSS = "XSS", r.XS = "XS", r.S = "S", r.M = "M", r))(t || {}), S = /* @__PURE__ */ ((r) => (r.DIV = "div", r.BUTTON = "button", r))(S || {});
|
2
2
|
export {
|
3
3
|
t as ETagSize,
|
4
|
-
|
4
|
+
S as ETagType
|
5
5
|
};
|
@@ -70,3 +70,4 @@ export { MessageShortReply } from './MessageShortReply';
|
|
70
70
|
export { EMessageShortReplyVariant, type TMessageShortReplyProps } from './MessageShortReply';
|
71
71
|
export { Table } from './Table';
|
72
72
|
export { ESortDirection, ETableVariant, ETableDisplayMode, ETableScrollButtonVariant, ETableScrollIconName } from './Table';
|
73
|
+
export { PromoSlider } from './PromoSlider';
|
package/dist/components/index.js
CHANGED
@@ -72,8 +72,9 @@ import { MessageShortReply as Xr } from "./MessageShortReply/MessageShortReply.j
|
|
72
72
|
import { EMessageShortReplyVariant as _r } from "./MessageShortReply/constants.js";
|
73
73
|
import { Table as oe } from "./Table/Table.js";
|
74
74
|
import { ESortDirection as ee, ETableDisplayMode as te, ETableScrollButtonVariant as pe, ETableScrollIconName as ae, ETableVariant as ie } from "./Table/constants.js";
|
75
|
-
import {
|
76
|
-
import {
|
75
|
+
import { PromoSlider as fe } from "./PromoSlider/PromoSlider.js";
|
76
|
+
import { default as ne } from "./Slider/Slider.js";
|
77
|
+
import { EProgressBarPosition as Ee } from "./Slider/constants.js";
|
77
78
|
export {
|
78
79
|
go as Accordion,
|
79
80
|
ko as AccordionItem,
|
@@ -111,7 +112,7 @@ export {
|
|
111
112
|
_r as EMessageShortReplyVariant,
|
112
113
|
Or as EMultiSelectSearchSize,
|
113
114
|
rr as ENotificationBadgeSize,
|
114
|
-
|
115
|
+
Ee as EProgressBarPosition,
|
115
116
|
xo as ESelectSearchSize,
|
116
117
|
yr as ESkeletonVariant,
|
117
118
|
ee as ESortDirection,
|
@@ -146,12 +147,13 @@ export {
|
|
146
147
|
$o as NotificationBadge,
|
147
148
|
L as OtpInput,
|
148
149
|
Ro as Pagination,
|
150
|
+
fe as PromoSlider,
|
149
151
|
A as RadioGroup,
|
150
152
|
mo as SelectSearch,
|
151
153
|
Lr as SkeletonBrick,
|
152
154
|
Ur as SkeletonCircle,
|
153
155
|
Ar as SkeletonText,
|
154
|
-
|
156
|
+
ne as Slider,
|
155
157
|
q as SliderLazy,
|
156
158
|
_ as Steps,
|
157
159
|
zr as Switcher,
|
package/dist/index.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { Button as e } from "./components/Button/Button.js";
|
2
2
|
import { EButtonForm as p, EButtonSize as a, EButtonVariantBorderless as m, EButtonVariantDefault as i, EButtonVariantOutline as f, EButtonVariantRound as x } from "./components/Button/constants.js";
|
3
3
|
import { I as l } from "./Input-DAmc_HxO.js";
|
4
|
-
import { EInputSize as E, EInputStatus as
|
4
|
+
import { EInputSize as E, EInputStatus as S, EInputVariant as u } from "./components/Input/constants.js";
|
5
5
|
import { TextArea as c } from "./components/TextArea/TextArea.js";
|
6
6
|
import { ETextAreaInputSize as I } from "./components/TextArea/constants.js";
|
7
7
|
import { InputPassword as V } from "./components/InputPassword/InputPassword.js";
|
8
8
|
import { InputPhoneNumber as B } from "./components/InputPhoneNumber/InputPhoneNumber.js";
|
9
|
-
import { getMaskedInputPhoneValue as k, getUnmaskedInputValue as
|
9
|
+
import { getMaskedInputPhoneValue as k, getUnmaskedInputValue as P } from "./components/InputPhoneNumber/utils.js";
|
10
10
|
import { OtpInput as b } from "./components/OtpInput/OtpInput.js";
|
11
11
|
import { RadioGroup as L } from "./components/RadioGroup/RadioGroup.js";
|
12
12
|
import { DatePicker as A } from "./components/DatePicker/DatePicker.js";
|
@@ -27,12 +27,12 @@ import { SelectSearch as io } from "./components/SelectSearch/SelectSearch.js";
|
|
27
27
|
import { ESelectSearchSize as xo } from "./components/SelectSearch/constants.js";
|
28
28
|
import { CheckboxMimir as lo } from "./components/CheckboxMimir/CheckboxMimir.js";
|
29
29
|
import { Tag as Eo } from "./components/Tag/Tag.js";
|
30
|
-
import { ETagSize as
|
30
|
+
import { ETagSize as uo, ETagType as co } from "./components/Tag/constants.js";
|
31
31
|
import { Timer as Io } from "./components/Timer/Timer.js";
|
32
32
|
import { Accordion as Vo } from "./components/Accordion/Accordion.js";
|
33
33
|
import { EAccordionSize as Bo } from "./components/Accordion/constants.js";
|
34
34
|
import { AccordionItem as ko } from "./components/Accordion/AccordionItem/AccordionItem.js";
|
35
|
-
import { TabTrail as
|
35
|
+
import { TabTrail as Mo } from "./components/TabTrail/TabTrail.js";
|
36
36
|
import { ETabTrailSize as yo } from "./components/TabTrail/constants.js";
|
37
37
|
import { Pagination as Ro } from "./components/Pagination/Pagination.js";
|
38
38
|
import { ToastProvider as Co } from "./components/Toasts/ToastsProvider.js";
|
@@ -51,12 +51,12 @@ import { EChipSize as ar, EChipVariant as mr } from "./components/Chip/constants
|
|
51
51
|
import { UniversalUploader as fr } from "./components/UniversalUploader/UniversalUploader.js";
|
52
52
|
import { EUploaderType as nr } from "./components/UniversalUploader/constants.js";
|
53
53
|
import { InputRangeSlider as sr } from "./components/InputRangeSlider/InputRangeSlider.js";
|
54
|
-
import { EInputRangeSliderBorderState as
|
54
|
+
import { EInputRangeSliderBorderState as Sr, EInputRangeSliderPositions as ur } from "./components/InputRangeSlider/constants.js";
|
55
55
|
import { GosZnak as cr } from "./components/GosZnak/GosZnak.js";
|
56
56
|
import { EGosZnakSize as Ir, EGosZnakType as gr } from "./components/GosZnak/constants.js";
|
57
57
|
import { Switcher as zr } from "./components/Switcher/Switcher.js";
|
58
58
|
import { ELabelPositions as hr } from "./components/Switcher/constants.js";
|
59
|
-
import { TwinSwitcher as
|
59
|
+
import { TwinSwitcher as Pr } from "./components/TwinSwitcher/TwinSwitcher.js";
|
60
60
|
import { SkeletonBrick as br } from "./components/Skeleton/SkeletonBrick/SkeletonBrick.js";
|
61
61
|
import { SkeletonText as Lr } from "./components/Skeleton/SkeletonText/SkeletonText.js";
|
62
62
|
import { SkeletonCircle as Ar } from "./components/Skeleton/SkeletonCircle/SkeletonCircle.js";
|
@@ -72,19 +72,20 @@ import { MessageShortReply as Xr } from "./components/MessageShortReply/MessageS
|
|
72
72
|
import { EMessageShortReplyVariant as _r } from "./components/MessageShortReply/constants.js";
|
73
73
|
import { Table as oe } from "./components/Table/Table.js";
|
74
74
|
import { ESortDirection as ee, ETableDisplayMode as te, ETableScrollButtonVariant as pe, ETableScrollIconName as ae, ETableVariant as me } from "./components/Table/constants.js";
|
75
|
-
import {
|
76
|
-
import {
|
77
|
-
import {
|
78
|
-
import {
|
79
|
-
import {
|
80
|
-
import {
|
81
|
-
import {
|
82
|
-
import {
|
83
|
-
import {
|
84
|
-
import {
|
85
|
-
import {
|
86
|
-
import {
|
87
|
-
import {
|
75
|
+
import { PromoSlider as fe } from "./components/PromoSlider/PromoSlider.js";
|
76
|
+
import { useMediaQuery as ne } from "./hooks/useMediaQuery/useMediaQuery.js";
|
77
|
+
import { EMediaQuery as se, EMinMediaQuery as Ee } from "./hooks/useMediaQuery/constants.js";
|
78
|
+
import { useLockBodyScroll as ue } from "./hooks/useLockBodyScroll/useLockBodyScroll.js";
|
79
|
+
import { useInterval as ce } from "./hooks/useInterval/useInterval.js";
|
80
|
+
import { useTimer as Ie } from "./hooks/useTimer/index.js";
|
81
|
+
import { useCopyToClipboard as Ve } from "./hooks/useCopyToClipboard/useCopyToClipboard.js";
|
82
|
+
import { useMergeRefs as Be } from "./hooks/useMergeRefs/useMergeRefs.js";
|
83
|
+
import { useResizeObserver as ke } from "./hooks/useResizeObserver/useResizeObserver.js";
|
84
|
+
import { Icon as Me } from "./icons/Icon.js";
|
85
|
+
import { formating as ye } from "./utils/index.js";
|
86
|
+
import { default as Re } from "./components/Slider/Slider.js";
|
87
|
+
import { EProgressBarPosition as Ce } from "./components/Slider/constants.js";
|
88
|
+
import { parseDate as Ue } from "./utils/formating/Date.js";
|
88
89
|
import './assets/index.css';export {
|
89
90
|
Vo as Accordion,
|
90
91
|
ko as AccordionItem,
|
@@ -109,22 +110,22 @@ import './assets/index.css';export {
|
|
109
110
|
Hr as EFileItemVariant,
|
110
111
|
Ir as EGosZnakSize,
|
111
112
|
gr as EGosZnakType,
|
112
|
-
|
113
|
-
|
113
|
+
Sr as EInputRangeSliderBorderState,
|
114
|
+
ur as EInputRangeSliderPositions,
|
114
115
|
E as EInputSize,
|
115
|
-
|
116
|
-
|
116
|
+
S as EInputStatus,
|
117
|
+
u as EInputVariant,
|
117
118
|
hr as ELabelPositions,
|
118
119
|
Xo as ELinkSize,
|
119
120
|
Yo as ELinkVariant,
|
120
121
|
Q as ELoaderSize,
|
121
|
-
|
122
|
+
se as EMediaQuery,
|
122
123
|
w as EMergedButtonVariantRound,
|
123
124
|
_r as EMessageShortReplyVariant,
|
124
|
-
|
125
|
+
Ee as EMinMediaQuery,
|
125
126
|
Qr as EMultiSelectSearchSize,
|
126
127
|
rr as ENotificationBadgeSize,
|
127
|
-
|
128
|
+
Ce as EProgressBarPosition,
|
128
129
|
xo as ESelectSearchSize,
|
129
130
|
Dr as ESkeletonVariant,
|
130
131
|
ee as ESortDirection,
|
@@ -135,7 +136,7 @@ import './assets/index.css';export {
|
|
135
136
|
pe as ETableScrollButtonVariant,
|
136
137
|
ae as ETableScrollIconName,
|
137
138
|
me as ETableVariant,
|
138
|
-
|
139
|
+
uo as ETagSize,
|
139
140
|
co as ETagType,
|
140
141
|
I as ETextAreaInputSize,
|
141
142
|
vo as EToastPosition,
|
@@ -144,7 +145,7 @@ import './assets/index.css';export {
|
|
144
145
|
nr as EUploaderType,
|
145
146
|
ao as EVoteSize,
|
146
147
|
cr as GosZnak,
|
147
|
-
|
148
|
+
Me as Icon,
|
148
149
|
F as Image,
|
149
150
|
l as Input,
|
150
151
|
V as InputPassword,
|
@@ -160,37 +161,38 @@ import './assets/index.css';export {
|
|
160
161
|
$o as NotificationBadge,
|
161
162
|
b as OtpInput,
|
162
163
|
Ro as Pagination,
|
164
|
+
fe as PromoSlider,
|
163
165
|
L as RadioGroup,
|
164
166
|
io as SelectSearch,
|
165
167
|
br as SkeletonBrick,
|
166
168
|
Ar as SkeletonCircle,
|
167
169
|
Lr as SkeletonText,
|
168
|
-
|
170
|
+
Re as Slider,
|
169
171
|
j as SliderLazy,
|
170
172
|
_ as Steps,
|
171
173
|
zr as Switcher,
|
172
|
-
|
174
|
+
Mo as TabTrail,
|
173
175
|
oe as Table,
|
174
176
|
Eo as Tag,
|
175
177
|
c as TextArea,
|
176
178
|
Io as Timer,
|
177
179
|
Co as ToastProvider,
|
178
|
-
|
180
|
+
Pr as TwinSwitcher,
|
179
181
|
fr as UniversalUploader,
|
180
182
|
Ho as Uploader,
|
181
183
|
Qo as UploaderFiles,
|
182
184
|
No as UploaderPhotos,
|
183
185
|
to as Vote,
|
184
|
-
|
186
|
+
ye as formating,
|
185
187
|
k as getMaskedInputPhoneValue,
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
188
|
+
P as getUnmaskedInputValue,
|
189
|
+
Ue as parseDate,
|
190
|
+
Ve as useCopyToClipboard,
|
191
|
+
ce as useInterval,
|
192
|
+
ue as useLockBodyScroll,
|
193
|
+
ne as useMediaQuery,
|
194
|
+
Be as useMergeRefs,
|
195
|
+
ke as useResizeObserver,
|
196
|
+
Ie as useTimer,
|
195
197
|
Uo as useToast
|
196
198
|
};
|