mimir-ui-kit 1.41.6 → 1.42.1
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/ClearButton.css +1 -0
- package/dist/assets/ListFiles.css +1 -1
- package/dist/components/CardTrail/CardTrail.d.ts +4 -0
- package/dist/components/CardTrail/CardTrail.js +104 -84
- package/dist/components/CardTrail/utils.d.ts +1 -0
- package/dist/components/CardTrail/utils.js +8 -7
- package/dist/components/InputClearButton/ClearButton.d.ts +46 -0
- 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/ListFiles/ListFiles.js +37 -40
- package/dist/components/PromoSlider/PromoSlider.d.ts +5 -1
- package/dist/components/PromoSlider/PromoSlider.js +139 -138
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +26 -24
- package/dist/icons/components/12px/Close12px.js +13 -6
- package/dist/index.js +48 -46
- package/package.json +1 -1
@@ -1,80 +1,80 @@
|
|
1
|
-
import { jsxs as Y, jsx as L, Fragment as
|
2
|
-
import { c as
|
1
|
+
import { jsxs as Y, jsx as L, Fragment as F } from "react/jsx-runtime";
|
2
|
+
import { c as C } from "../../index-DIxK0V-G.js";
|
3
3
|
import { useState as j } from "react";
|
4
|
-
import { g as R, b as G, e as U, c as $, n as B, d as
|
4
|
+
import { g as R, b as G, e as U, c as $, n as B, d as A, S as q, A as Z, a as J } from "../../swiper-react-BvAw14a4.js";
|
5
5
|
import { Chip as Q } from "../Chip/Chip.js";
|
6
6
|
import { AppImage as ee } from "../Image/Image.js";
|
7
7
|
import '../../assets/PromoSlider.css';function te(P) {
|
8
8
|
let {
|
9
9
|
swiper: e,
|
10
|
-
extendParams:
|
11
|
-
on:
|
12
|
-
emit:
|
10
|
+
extendParams: k,
|
11
|
+
on: T,
|
12
|
+
emit: x
|
13
13
|
} = P;
|
14
|
-
const
|
14
|
+
const p = R(), v = G();
|
15
15
|
e.keyboard = {
|
16
16
|
enabled: !1
|
17
|
-
},
|
17
|
+
}, k({
|
18
18
|
keyboard: {
|
19
19
|
enabled: !1,
|
20
20
|
onlyInViewport: !0,
|
21
21
|
pageUpDown: !0
|
22
22
|
}
|
23
23
|
});
|
24
|
-
function I(
|
24
|
+
function I(n) {
|
25
25
|
if (!e.enabled) return;
|
26
26
|
const {
|
27
|
-
rtlTranslate:
|
27
|
+
rtlTranslate: u
|
28
28
|
} = e;
|
29
|
-
let
|
30
|
-
|
31
|
-
const
|
32
|
-
if (!e.allowSlideNext && (e.isHorizontal() && M || e.isVertical() && s ||
|
29
|
+
let o = n;
|
30
|
+
o.originalEvent && (o = o.originalEvent);
|
31
|
+
const g = o.keyCode || o.charCode, H = e.params.keyboard.pageUpDown, b = H && g === 33, _ = H && g === 34, y = g === 37, M = g === 39, t = g === 38, s = g === 40;
|
32
|
+
if (!e.allowSlideNext && (e.isHorizontal() && M || e.isVertical() && s || _) || !e.allowSlidePrev && (e.isHorizontal() && y || e.isVertical() && t || b))
|
33
33
|
return !1;
|
34
|
-
if (!(
|
35
|
-
if (e.params.keyboard.onlyInViewport && (
|
34
|
+
if (!(o.shiftKey || o.altKey || o.ctrlKey || o.metaKey) && !(p.activeElement && p.activeElement.nodeName && (p.activeElement.nodeName.toLowerCase() === "input" || p.activeElement.nodeName.toLowerCase() === "textarea"))) {
|
35
|
+
if (e.params.keyboard.onlyInViewport && (b || _ || y || M || t || s)) {
|
36
36
|
let N = !1;
|
37
37
|
if (U(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && U(e.el, `.${e.params.slideActiveClass}`).length === 0)
|
38
38
|
return;
|
39
|
-
const
|
40
|
-
|
41
|
-
const D = [[
|
39
|
+
const w = e.el, m = w.clientWidth, d = w.clientHeight, a = v.innerWidth, f = v.innerHeight, l = $(w);
|
40
|
+
u && (l.left -= w.scrollLeft);
|
41
|
+
const D = [[l.left, l.top], [l.left + m, l.top], [l.left, l.top + d], [l.left + m, l.top + d]];
|
42
42
|
for (let r = 0; r < D.length; r += 1) {
|
43
|
-
const
|
44
|
-
if (
|
45
|
-
if (
|
43
|
+
const c = D[r];
|
44
|
+
if (c[0] >= 0 && c[0] <= a && c[1] >= 0 && c[1] <= f) {
|
45
|
+
if (c[0] === 0 && c[1] === 0) continue;
|
46
46
|
N = !0;
|
47
47
|
}
|
48
48
|
}
|
49
49
|
if (!N) return;
|
50
50
|
}
|
51
|
-
e.isHorizontal() ? ((
|
51
|
+
e.isHorizontal() ? ((b || _ || y || M) && (o.preventDefault ? o.preventDefault() : o.returnValue = !1), ((_ || M) && !u || (b || y) && u) && e.slideNext(), ((b || y) && !u || (_ || M) && u) && e.slidePrev()) : ((b || _ || t || s) && (o.preventDefault ? o.preventDefault() : o.returnValue = !1), (_ || s) && e.slideNext(), (b || t) && e.slidePrev()), x("keyPress", g);
|
52
52
|
}
|
53
53
|
}
|
54
|
-
function
|
55
|
-
e.keyboard.enabled || (
|
54
|
+
function h() {
|
55
|
+
e.keyboard.enabled || (p.addEventListener("keydown", I), e.keyboard.enabled = !0);
|
56
56
|
}
|
57
|
-
function
|
58
|
-
e.keyboard.enabled && (
|
57
|
+
function i() {
|
58
|
+
e.keyboard.enabled && (p.removeEventListener("keydown", I), e.keyboard.enabled = !1);
|
59
59
|
}
|
60
|
-
|
61
|
-
e.params.keyboard.enabled &&
|
62
|
-
}),
|
63
|
-
e.keyboard.enabled &&
|
60
|
+
T("init", () => {
|
61
|
+
e.params.keyboard.enabled && h();
|
62
|
+
}), T("destroy", () => {
|
63
|
+
e.keyboard.enabled && i();
|
64
64
|
}), Object.assign(e.keyboard, {
|
65
|
-
enable:
|
66
|
-
disable:
|
65
|
+
enable: h,
|
66
|
+
disable: i
|
67
67
|
});
|
68
68
|
}
|
69
69
|
function ne(P) {
|
70
70
|
let {
|
71
71
|
swiper: e,
|
72
|
-
extendParams:
|
73
|
-
on:
|
74
|
-
emit:
|
72
|
+
extendParams: k,
|
73
|
+
on: T,
|
74
|
+
emit: x
|
75
75
|
} = P;
|
76
|
-
const
|
77
|
-
|
76
|
+
const p = G();
|
77
|
+
k({
|
78
78
|
mousewheel: {
|
79
79
|
enabled: !1,
|
80
80
|
releaseOnEdges: !1,
|
@@ -89,123 +89,123 @@ function ne(P) {
|
|
89
89
|
}), e.mousewheel = {
|
90
90
|
enabled: !1
|
91
91
|
};
|
92
|
-
let
|
93
|
-
const
|
94
|
-
function
|
95
|
-
let
|
96
|
-
return "detail" in
|
97
|
-
spinX:
|
98
|
-
spinY:
|
92
|
+
let v, I = A(), h;
|
93
|
+
const i = [];
|
94
|
+
function n(t) {
|
95
|
+
let m = 0, d = 0, a = 0, f = 0;
|
96
|
+
return "detail" in t && (d = t.detail), "wheelDelta" in t && (d = -t.wheelDelta / 120), "wheelDeltaY" in t && (d = -t.wheelDeltaY / 120), "wheelDeltaX" in t && (m = -t.wheelDeltaX / 120), "axis" in t && t.axis === t.HORIZONTAL_AXIS && (m = d, d = 0), a = m * 10, f = d * 10, "deltaY" in t && (f = t.deltaY), "deltaX" in t && (a = t.deltaX), t.shiftKey && !a && (a = f, f = 0), (a || f) && t.deltaMode && (t.deltaMode === 1 ? (a *= 40, f *= 40) : (a *= 800, f *= 800)), a && !m && (m = a < 1 ? -1 : 1), f && !d && (d = f < 1 ? -1 : 1), {
|
97
|
+
spinX: m,
|
98
|
+
spinY: d,
|
99
99
|
pixelX: a,
|
100
|
-
pixelY:
|
100
|
+
pixelY: f
|
101
101
|
};
|
102
102
|
}
|
103
|
-
function
|
103
|
+
function u() {
|
104
104
|
e.enabled && (e.mouseEntered = !0);
|
105
105
|
}
|
106
|
-
function
|
106
|
+
function o() {
|
107
107
|
e.enabled && (e.mouseEntered = !1);
|
108
108
|
}
|
109
|
-
function
|
110
|
-
return e.params.mousewheel.thresholdDelta &&
|
109
|
+
function g(t) {
|
110
|
+
return e.params.mousewheel.thresholdDelta && t.delta < e.params.mousewheel.thresholdDelta || e.params.mousewheel.thresholdTime && A() - I < e.params.mousewheel.thresholdTime ? !1 : t.delta >= 6 && A() - I < 60 ? !0 : (t.direction < 0 ? (!e.isEnd || e.params.loop) && !e.animating && (e.slideNext(), x("scroll", t.raw)) : (!e.isBeginning || e.params.loop) && !e.animating && (e.slidePrev(), x("scroll", t.raw)), I = new p.Date().getTime(), !1);
|
111
111
|
}
|
112
|
-
function H(
|
112
|
+
function H(t) {
|
113
113
|
const s = e.params.mousewheel;
|
114
|
-
if (
|
114
|
+
if (t.direction < 0) {
|
115
115
|
if (e.isEnd && !e.params.loop && s.releaseOnEdges)
|
116
116
|
return !0;
|
117
117
|
} else if (e.isBeginning && !e.params.loop && s.releaseOnEdges)
|
118
118
|
return !0;
|
119
119
|
return !1;
|
120
120
|
}
|
121
|
-
function
|
122
|
-
let s =
|
123
|
-
if (!e.enabled ||
|
124
|
-
const
|
121
|
+
function b(t) {
|
122
|
+
let s = t, N = !0;
|
123
|
+
if (!e.enabled || t.target.closest(`.${e.params.mousewheel.noMousewheelClass}`)) return;
|
124
|
+
const w = e.params.mousewheel;
|
125
125
|
e.params.cssMode && s.preventDefault();
|
126
|
-
let
|
127
|
-
e.params.mousewheel.eventsTarget !== "container" && (
|
128
|
-
const
|
129
|
-
if (!e.mouseEntered && !
|
126
|
+
let m = e.el;
|
127
|
+
e.params.mousewheel.eventsTarget !== "container" && (m = document.querySelector(e.params.mousewheel.eventsTarget));
|
128
|
+
const d = m && m.contains(s.target);
|
129
|
+
if (!e.mouseEntered && !d && !w.releaseOnEdges) return !0;
|
130
130
|
s.originalEvent && (s = s.originalEvent);
|
131
131
|
let a = 0;
|
132
|
-
const
|
133
|
-
if (
|
132
|
+
const f = e.rtlTranslate ? -1 : 1, l = n(s);
|
133
|
+
if (w.forceToAxis)
|
134
134
|
if (e.isHorizontal())
|
135
|
-
if (Math.abs(
|
135
|
+
if (Math.abs(l.pixelX) > Math.abs(l.pixelY)) a = -l.pixelX * f;
|
136
136
|
else return !0;
|
137
|
-
else if (Math.abs(
|
137
|
+
else if (Math.abs(l.pixelY) > Math.abs(l.pixelX)) a = -l.pixelY;
|
138
138
|
else return !0;
|
139
139
|
else
|
140
|
-
a = Math.abs(
|
140
|
+
a = Math.abs(l.pixelX) > Math.abs(l.pixelY) ? -l.pixelX * f : -l.pixelY;
|
141
141
|
if (a === 0) return !0;
|
142
|
-
|
143
|
-
let D = e.getTranslate() + a *
|
142
|
+
w.invert && (a = -a);
|
143
|
+
let D = e.getTranslate() + a * w.sensitivity;
|
144
144
|
if (D >= e.minTranslate() && (D = e.minTranslate()), D <= e.maxTranslate() && (D = e.maxTranslate()), N = e.params.loop ? !0 : !(D === e.minTranslate() || D === e.maxTranslate()), N && e.params.nested && s.stopPropagation(), !e.params.freeMode || !e.params.freeMode.enabled) {
|
145
145
|
const r = {
|
146
|
-
time:
|
146
|
+
time: A(),
|
147
147
|
delta: Math.abs(a),
|
148
148
|
direction: Math.sign(a),
|
149
|
-
raw:
|
149
|
+
raw: t
|
150
150
|
};
|
151
|
-
|
152
|
-
const
|
153
|
-
if (
|
151
|
+
i.length >= 2 && i.shift();
|
152
|
+
const c = i.length ? i[i.length - 1] : void 0;
|
153
|
+
if (i.push(r), c ? (r.direction !== c.direction || r.delta > c.delta || r.time > c.time + 150) && g(r) : g(r), H(r))
|
154
154
|
return !0;
|
155
155
|
} else {
|
156
156
|
const r = {
|
157
|
-
time:
|
157
|
+
time: A(),
|
158
158
|
delta: Math.abs(a),
|
159
159
|
direction: Math.sign(a)
|
160
|
-
},
|
161
|
-
if (!
|
162
|
-
|
163
|
-
let
|
164
|
-
const W = e.isBeginning,
|
165
|
-
if (
|
160
|
+
}, c = h && r.time < h.time + 500 && r.delta <= h.delta && r.direction === h.direction;
|
161
|
+
if (!c) {
|
162
|
+
h = void 0;
|
163
|
+
let S = e.getTranslate() + a * w.sensitivity;
|
164
|
+
const W = e.isBeginning, K = e.isEnd;
|
165
|
+
if (S >= e.minTranslate() && (S = e.minTranslate()), S <= e.maxTranslate() && (S = e.maxTranslate()), e.setTransition(0), e.setTranslate(S), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses(), (!W && e.isBeginning || !K && e.isEnd) && e.updateSlidesClasses(), e.params.loop && e.loopFix({
|
166
166
|
direction: r.direction < 0 ? "next" : "prev",
|
167
167
|
byMousewheel: !0
|
168
168
|
}), e.params.freeMode.sticky) {
|
169
|
-
clearTimeout(
|
170
|
-
const X =
|
171
|
-
if (
|
172
|
-
|
173
|
-
else if (
|
169
|
+
clearTimeout(v), v = void 0, i.length >= 15 && i.shift();
|
170
|
+
const X = i.length ? i[i.length - 1] : void 0, z = i[0];
|
171
|
+
if (i.push(r), X && (r.delta > X.delta || r.direction !== X.direction))
|
172
|
+
i.splice(0);
|
173
|
+
else if (i.length >= 15 && r.time - z.time < 500 && z.delta - r.delta >= 1 && r.delta <= 6) {
|
174
174
|
const O = a > 0 ? 0.8 : 0.2;
|
175
|
-
|
175
|
+
h = r, i.splice(0), v = B(() => {
|
176
176
|
e.slideToClosest(e.params.speed, !0, void 0, O);
|
177
177
|
}, 0);
|
178
178
|
}
|
179
|
-
|
180
|
-
|
179
|
+
v || (v = B(() => {
|
180
|
+
h = r, i.splice(0), e.slideToClosest(e.params.speed, !0, void 0, 0.5);
|
181
181
|
}, 500));
|
182
182
|
}
|
183
|
-
if (
|
183
|
+
if (c || x("scroll", s), e.params.autoplay && e.params.autoplayDisableOnInteraction && e.autoplay.stop(), w.releaseOnEdges && (S === e.minTranslate() || S === e.maxTranslate()))
|
184
184
|
return !0;
|
185
185
|
}
|
186
186
|
}
|
187
187
|
return s.preventDefault ? s.preventDefault() : s.returnValue = !1, !1;
|
188
188
|
}
|
189
|
-
function
|
189
|
+
function _(t) {
|
190
190
|
let s = e.el;
|
191
|
-
e.params.mousewheel.eventsTarget !== "container" && (s = document.querySelector(e.params.mousewheel.eventsTarget)), s[
|
191
|
+
e.params.mousewheel.eventsTarget !== "container" && (s = document.querySelector(e.params.mousewheel.eventsTarget)), s[t]("mouseenter", u), s[t]("mouseleave", o), s[t]("wheel", b);
|
192
192
|
}
|
193
193
|
function y() {
|
194
|
-
return e.params.cssMode ? (e.wrapperEl.removeEventListener("wheel",
|
194
|
+
return e.params.cssMode ? (e.wrapperEl.removeEventListener("wheel", b), !0) : e.mousewheel.enabled ? !1 : (_("addEventListener"), e.mousewheel.enabled = !0, !0);
|
195
195
|
}
|
196
196
|
function M() {
|
197
|
-
return e.params.cssMode ? (e.wrapperEl.addEventListener(event,
|
197
|
+
return e.params.cssMode ? (e.wrapperEl.addEventListener(event, b), !0) : e.mousewheel.enabled ? (_("removeEventListener"), e.mousewheel.enabled = !1, !0) : !1;
|
198
198
|
}
|
199
|
-
|
199
|
+
T("init", () => {
|
200
200
|
!e.params.mousewheel.enabled && e.params.cssMode && M(), e.params.mousewheel.enabled && y();
|
201
|
-
}),
|
201
|
+
}), T("destroy", () => {
|
202
202
|
e.params.cssMode && y(), e.mousewheel.enabled && M();
|
203
203
|
}), Object.assign(e.mousewheel, {
|
204
204
|
enable: y,
|
205
205
|
disable: M
|
206
206
|
});
|
207
207
|
}
|
208
|
-
const ae = "_swiper_f3z07_2", se = "_slide_f3z07_7", re = "_image_f3z07_14", ie = "_chip_f3z07_21", le = "_content_f3z07_27", oe = "_bullet_f3z07_46",
|
208
|
+
const ae = "_swiper_f3z07_2", se = "_slide_f3z07_7", re = "_image_f3z07_14", ie = "_chip_f3z07_21", le = "_content_f3z07_27", oe = "_bullet_f3z07_46", E = {
|
209
209
|
swiper: ae,
|
210
210
|
slide: se,
|
211
211
|
image: re,
|
@@ -216,90 +216,91 @@ const ae = "_swiper_f3z07_2", se = "_slide_f3z07_7", re = "_image_f3z07_14", ie
|
|
216
216
|
"bullet-active": "_bullet-active_f3z07_47",
|
217
217
|
"bullet-s": "_bullet-s_f3z07_48",
|
218
218
|
"bullet-xs": "_bullet-xs_f3z07_49"
|
219
|
-
}, V = 5,
|
220
|
-
const
|
221
|
-
return
|
219
|
+
}, V = 5, fe = 5e3, ue = 8, de = (P, e) => {
|
220
|
+
const k = e % V, T = Math.abs(P - k), x = 0, p = 1;
|
221
|
+
return T === x ? E["bullet-active"] : T === p ? E["bullet-s"] : E["bullet-xs"];
|
222
222
|
}, be = ({
|
223
223
|
slides: P,
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
224
|
+
onSlideClick: e,
|
225
|
+
delay: k = fe,
|
226
|
+
spaceBetween: T = ue,
|
227
|
+
imageClassName: x,
|
228
|
+
slideClassName: p,
|
229
|
+
swiperClassName: v,
|
230
|
+
contentClassName: I
|
230
231
|
}) => {
|
231
|
-
const [
|
232
|
+
const [h, i] = j(0);
|
232
233
|
return /* @__PURE__ */ Y(
|
233
234
|
q,
|
234
235
|
{
|
235
236
|
direction: "horizontal",
|
236
|
-
spaceBetween:
|
237
|
+
spaceBetween: T,
|
237
238
|
modules: [Z, te, ne],
|
238
|
-
onSlideChange: (
|
239
|
+
onSlideChange: (n) => i(n.realIndex),
|
239
240
|
loop: !0,
|
240
241
|
mousewheel: !0,
|
241
242
|
keyboard: {
|
242
|
-
enabled: !0
|
243
|
-
onlyInViewport: !0
|
243
|
+
enabled: !0
|
244
244
|
},
|
245
245
|
autoplay: {
|
246
|
-
delay:
|
246
|
+
delay: k,
|
247
247
|
disableOnInteraction: !1,
|
248
248
|
pauseOnMouseEnter: !0
|
249
249
|
},
|
250
|
-
className:
|
250
|
+
className: C(E.swiper, v),
|
251
251
|
children: [
|
252
|
-
P.map((
|
253
|
-
if (!
|
254
|
-
const
|
252
|
+
P.map((n) => {
|
253
|
+
if (!n) return null;
|
254
|
+
const u = n != null && n.imageUrl ? /* @__PURE__ */ L(
|
255
255
|
ee,
|
256
256
|
{
|
257
|
-
className:
|
258
|
-
src:
|
259
|
-
desktopImage:
|
260
|
-
mobileImage:
|
261
|
-
alt:
|
257
|
+
className: C(E.image, x),
|
258
|
+
src: n.imageUrl,
|
259
|
+
desktopImage: n.imageDesktop,
|
260
|
+
mobileImage: n.imageMobile,
|
261
|
+
alt: n.title
|
262
262
|
}
|
263
|
-
) : null,
|
263
|
+
) : null, o = /* @__PURE__ */ L(
|
264
264
|
"a",
|
265
265
|
{
|
266
|
-
className:
|
267
|
-
href:
|
266
|
+
className: E.link,
|
267
|
+
href: n.url,
|
268
268
|
rel: "noopener noreferrer",
|
269
269
|
target: "_blank",
|
270
|
-
children:
|
270
|
+
children: u
|
271
271
|
}
|
272
|
-
),
|
272
|
+
), g = () => n.url ? o : u;
|
273
273
|
return /* @__PURE__ */ L(
|
274
274
|
J,
|
275
275
|
{
|
276
|
-
|
277
|
-
|
278
|
-
|
276
|
+
onClick: e,
|
277
|
+
className: C(E.slide, p),
|
278
|
+
children: /* @__PURE__ */ Y(F, { children: [
|
279
|
+
n.isPromotion && /* @__PURE__ */ L(
|
279
280
|
Q,
|
280
281
|
{
|
281
|
-
...
|
282
|
-
className:
|
283
|
-
|
284
|
-
|
282
|
+
...n.promotionProps,
|
283
|
+
className: C(
|
284
|
+
n.promotionProps.className,
|
285
|
+
E.chip
|
285
286
|
)
|
286
287
|
}
|
287
288
|
),
|
288
|
-
|
289
|
-
(
|
289
|
+
g(),
|
290
|
+
(n == null ? void 0 : n.content) && /* @__PURE__ */ L("div", { className: C(E.content, I), children: n == null ? void 0 : n.content })
|
290
291
|
] })
|
291
292
|
},
|
292
|
-
|
293
|
+
n.id
|
293
294
|
);
|
294
295
|
}),
|
295
|
-
/* @__PURE__ */ L("div", { className:
|
296
|
+
/* @__PURE__ */ L("div", { className: E["custom-pagination"], children: Array.from({ length: V }).map((n, u) => /* @__PURE__ */ L(
|
296
297
|
"button",
|
297
298
|
{
|
299
|
+
tabIndex: u,
|
298
300
|
type: "button",
|
299
|
-
|
300
|
-
className: A(g.bullet, de(E, I))
|
301
|
+
className: C(E.bullet, de(u, h))
|
301
302
|
},
|
302
|
-
|
303
|
+
u
|
303
304
|
)) })
|
304
305
|
]
|
305
306
|
}
|
@@ -72,3 +72,4 @@ export { Table } from './Table';
|
|
72
72
|
export { ESortDirection, ETableVariant, ETableDisplayMode, ETableScrollButtonVariant, ETableScrollIconName } from './Table';
|
73
73
|
export { PromoSlider } from './PromoSlider';
|
74
74
|
export { CardTrail } from './CardTrail';
|
75
|
+
export { ClearButton } from './InputClearButton';
|
package/dist/components/index.js
CHANGED
@@ -5,12 +5,12 @@ import { EInputSize as S, EInputStatus as s, EInputVariant as u } from "./Input/
|
|
5
5
|
import { TextArea as c } from "./TextArea/TextArea.js";
|
6
6
|
import { ETextAreaInputSize as I } from "./TextArea/constants.js";
|
7
7
|
import { InputPassword as g } from "./InputPassword/InputPassword.js";
|
8
|
-
import { InputPhoneNumber as
|
8
|
+
import { InputPhoneNumber as B } from "./InputPhoneNumber/InputPhoneNumber.js";
|
9
9
|
import { getMaskedInputPhoneValue as k, getUnmaskedInputValue as P } from "./InputPhoneNumber/utils.js";
|
10
10
|
import { OtpInput as L } from "./OtpInput/OtpInput.js";
|
11
11
|
import { RadioGroup as A } from "./RadioGroup/RadioGroup.js";
|
12
|
-
import { DatePicker as
|
13
|
-
import { MergedButton as
|
12
|
+
import { DatePicker as R } from "./DatePicker/DatePicker.js";
|
13
|
+
import { MergedButton as w } from "./MergedButton/MergedButton.js";
|
14
14
|
import { EMergedButtonVariantRound as D } from "./MergedButton/constants.js";
|
15
15
|
import { AppImage as v } from "./Image/Image.js";
|
16
16
|
import { Loader as N } from "./Loader/Loader.js";
|
@@ -30,13 +30,13 @@ import { Tag as So } from "./Tag/Tag.js";
|
|
30
30
|
import { ETagSize as uo, ETagType as co } from "./Tag/constants.js";
|
31
31
|
import { Timer as Io } from "./Timer/Timer.js";
|
32
32
|
import { Accordion as go } from "./Accordion/Accordion.js";
|
33
|
-
import { EAccordionSize as
|
33
|
+
import { EAccordionSize as Bo } from "./Accordion/constants.js";
|
34
34
|
import { AccordionItem as ko } from "./Accordion/AccordionItem/AccordionItem.js";
|
35
35
|
import { TabTrail as bo } from "./TabTrail/TabTrail.js";
|
36
36
|
import { ETabTrailSize as Mo } from "./TabTrail/constants.js";
|
37
|
-
import { Pagination as
|
38
|
-
import { ToastProvider as
|
39
|
-
import { useToast as
|
37
|
+
import { Pagination as Co } from "./Pagination/Pagination.js";
|
38
|
+
import { ToastProvider as Uo } from "./Toasts/ToastsProvider.js";
|
39
|
+
import { useToast as yo } from "./Toasts/hooks.js";
|
40
40
|
import { EToastPosition as Fo, EToastVariant as vo } from "./Toasts/constants.js";
|
41
41
|
import { UploaderPhotos as No } from "./UploaderPhotos/UploaderPhotos.js";
|
42
42
|
import { UploaderFiles as Oo } from "./UploaderFiles/UploaderFiles.js";
|
@@ -55,12 +55,12 @@ import { EInputRangeSliderBorderState as sr, EInputRangeSliderPositions as ur }
|
|
55
55
|
import { GosZnak as cr } from "./GosZnak/GosZnak.js";
|
56
56
|
import { EGosZnakSize as Ir, EGosZnakType as Vr } from "./GosZnak/constants.js";
|
57
57
|
import { Switcher as zr } from "./Switcher/Switcher.js";
|
58
|
-
import { ELabelPositions as
|
58
|
+
import { ELabelPositions as hr } from "./Switcher/constants.js";
|
59
59
|
import { TwinSwitcher as Pr } from "./TwinSwitcher/TwinSwitcher.js";
|
60
60
|
import { SkeletonBrick as Lr } from "./Skeleton/SkeletonBrick/SkeletonBrick.js";
|
61
61
|
import { SkeletonText as Ar } from "./Skeleton/SkeletonText/SkeletonText.js";
|
62
|
-
import { SkeletonCircle as
|
63
|
-
import { ESkeletonVariant as
|
62
|
+
import { SkeletonCircle as Rr } from "./Skeleton/SkeletonCircle/SkeletonCircle.js";
|
63
|
+
import { ESkeletonVariant as wr } from "./Skeleton/constants.js";
|
64
64
|
import { Avatar as Dr } from "./Avatar/Avatar.js";
|
65
65
|
import { EAvatarSize as vr } from "./Avatar/constants.js";
|
66
66
|
import { MultiSelectSearch as Nr } from "./MultiSelectSearch/MultiSelectSearch.js";
|
@@ -74,8 +74,9 @@ 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
75
|
import { PromoSlider as fe } from "./PromoSlider/PromoSlider.js";
|
76
76
|
import { CardTrail as ne } from "./CardTrail/CardTrail.js";
|
77
|
-
import {
|
78
|
-
import {
|
77
|
+
import { ClearButton as Ee } from "./InputClearButton/ClearButton.js";
|
78
|
+
import { default as se } from "./Slider/Slider.js";
|
79
|
+
import { EProgressBarPosition as de } from "./Slider/constants.js";
|
79
80
|
export {
|
80
81
|
go as Accordion,
|
81
82
|
ko as AccordionItem,
|
@@ -84,10 +85,11 @@ export {
|
|
84
85
|
ne as CardTrail,
|
85
86
|
lo as CheckboxMimir,
|
86
87
|
tr as Chip,
|
87
|
-
|
88
|
+
Ee as ClearButton,
|
89
|
+
R as DatePicker,
|
88
90
|
J as Drawer,
|
89
91
|
X as Dropdown,
|
90
|
-
|
92
|
+
Bo as EAccordionSize,
|
91
93
|
vr as EAvatarSize,
|
92
94
|
p as EButtonForm,
|
93
95
|
a as EButtonSize,
|
@@ -106,7 +108,7 @@ export {
|
|
106
108
|
S as EInputSize,
|
107
109
|
s as EInputStatus,
|
108
110
|
u as EInputVariant,
|
109
|
-
|
111
|
+
hr as ELabelPositions,
|
110
112
|
Xo as ELinkSize,
|
111
113
|
Yo as ELinkVariant,
|
112
114
|
O as ELoaderSize,
|
@@ -114,9 +116,9 @@ export {
|
|
114
116
|
_r as EMessageShortReplyVariant,
|
115
117
|
Or as EMultiSelectSearchSize,
|
116
118
|
rr as ENotificationBadgeSize,
|
117
|
-
|
119
|
+
de as EProgressBarPosition,
|
118
120
|
xo as ESelectSearchSize,
|
119
|
-
|
121
|
+
wr as ESkeletonVariant,
|
120
122
|
ee as ESortDirection,
|
121
123
|
oo as EStepColor,
|
122
124
|
ro as EStepsSize,
|
@@ -137,25 +139,25 @@ export {
|
|
137
139
|
v as Image,
|
138
140
|
l as Input,
|
139
141
|
g as InputPassword,
|
140
|
-
|
142
|
+
B as InputPhoneNumber,
|
141
143
|
Er as InputRangeSlider,
|
142
144
|
Qo as Link,
|
143
145
|
qr as ListFiles,
|
144
146
|
Qr as ListPhotos,
|
145
147
|
N as Loader,
|
146
|
-
|
148
|
+
w as MergedButton,
|
147
149
|
Xr as MessageShortReply,
|
148
150
|
Nr as MultiSelectSearch,
|
149
151
|
$o as NotificationBadge,
|
150
152
|
L as OtpInput,
|
151
|
-
|
153
|
+
Co as Pagination,
|
152
154
|
fe as PromoSlider,
|
153
155
|
A as RadioGroup,
|
154
156
|
mo as SelectSearch,
|
155
157
|
Lr as SkeletonBrick,
|
156
|
-
|
158
|
+
Rr as SkeletonCircle,
|
157
159
|
Ar as SkeletonText,
|
158
|
-
|
160
|
+
se as Slider,
|
159
161
|
q as SliderLazy,
|
160
162
|
_ as Steps,
|
161
163
|
zr as Switcher,
|
@@ -164,7 +166,7 @@ export {
|
|
164
166
|
So as Tag,
|
165
167
|
c as TextArea,
|
166
168
|
Io as Timer,
|
167
|
-
|
169
|
+
Uo as ToastProvider,
|
168
170
|
Pr as TwinSwitcher,
|
169
171
|
fr as UniversalUploader,
|
170
172
|
Jo as Uploader,
|
@@ -173,5 +175,5 @@ export {
|
|
173
175
|
to as Vote,
|
174
176
|
k as getMaskedInputPhoneValue,
|
175
177
|
P as getUnmaskedInputValue,
|
176
|
-
|
178
|
+
yo as useToast
|
177
179
|
};
|
@@ -1,16 +1,23 @@
|
|
1
|
-
import { jsx as
|
2
|
-
const
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
2
|
+
const o = (e) => /* @__PURE__ */ l(
|
3
3
|
"svg",
|
4
4
|
{
|
5
5
|
width: "12",
|
6
6
|
height: "12",
|
7
|
-
viewBox: "0 0
|
8
|
-
fill: "none",
|
7
|
+
viewBox: "0 0 16 16",
|
9
8
|
xmlns: "http://www.w3.org/2000/svg",
|
10
9
|
...e,
|
11
|
-
children: /* @__PURE__ */
|
10
|
+
children: /* @__PURE__ */ l(
|
11
|
+
"path",
|
12
|
+
{
|
13
|
+
fillRule: "evenodd",
|
14
|
+
clipRule: "evenodd",
|
15
|
+
d: "M9.06 8l3.47 3.47-1.06 1.06L8 9.06l-3.47 3.47-1.06-1.06L6.94 8 3.47 4.53l1.06-1.06L8 6.94l3.47-3.47 1.06 1.06L9.06 8z",
|
16
|
+
fill: "#000"
|
17
|
+
}
|
18
|
+
)
|
12
19
|
}
|
13
20
|
);
|
14
21
|
export {
|
15
|
-
|
22
|
+
o as default
|
16
23
|
};
|