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
@@ -0,0 +1 @@
|
|
1
|
+
._clear_n3to9_2{display:flex;flex-shrink:0;align-items:center;justify-content:center;color:var(--asphalt-normal);border-radius:var(--mimir-control-radius-xs)}._clear_n3to9_2 svg{color:currentcolor;fill:currentcolor}._clear_n3to9_2 svg path{color:currentcolor;fill:currentcolor}._clear_n3to9_2._gray_n3to9_18{background:var(--gray-normal)}._clear_n3to9_2:hover{color:var(--counter-text);box-shadow:none}._clear_n3to9_2:active{color:var(--asphalt-active);box-shadow:none}._clear_n3to9_2:disabled{color:var(--disabled)}._clear_n3to9_2._l_n3to9_32{width:var(--button-height-xs);height:var(--button-height-xs)}._clear_n3to9_2._m-s_n3to9_36{width:var(--button-height-ms);height:var(--button-height-ms)}
|
@@ -1 +1 @@
|
|
1
|
-
._file-
|
1
|
+
._file-info_hpqrc_2{display:flex;flex-direction:column;gap:var(--mimir-space-xs);overflow:hidden}._file-info_hpqrc_2 ._file-info-size_hpqrc_8{display:flex;align-items:center;height:var(--mimir-space-2m);color:var(--disabled-color);font-weight:var(--mimir-font-weight-text-regular);font-size:var(--mimir-size-text-m);font-family:var(--mimir-font-inter),sans-serif;line-height:var(--mimir-line-height-text-xxs);text-align:left}._file-info_hpqrc_2 ._file-info-name-wrapper_hpqrc_19{display:table;width:100%;table-layout:fixed}._file-info_hpqrc_2 ._file-info-name-wrapper_hpqrc_19 ._file-info-name_hpqrc_19{display:table-cell;overflow:hidden;color:var(--black-100);font-weight:var(--mimir-font-weight-text-regular);font-size:var(--mimir-size-text-l2);font-family:var(--mimir-font-inter),sans-serif;line-height:var(--mimir-line-height-text-xl);white-space:nowrap;text-align:left;text-overflow:ellipsis}._file-upload-container_hpqrc_37{display:flex;flex-direction:column;gap:var(--mimir-space-xs);width:100%;margin-bottom:0;padding-left:0}._file-upload-container_hpqrc_37 ._file-upload-container-item_hpqrc_45{position:relative;display:flex;align-items:center;justify-content:space-between;padding:var(--mimir-space-xs) var(--mimir-space-m);background:var(--file-upload-container-background);border-radius:var(--mimir-control-radius)}._file-upload-container_hpqrc_37 ._file-upload-container-item_hpqrc_45 ._delete-button_hpqrc_54{position:absolute;top:var(--mimir-space-2xs);right:var(--mimir-space-2xs);background:var(--delete-button-background)}._white_hpqrc_61{--file-upload-container-background: var(--white);--delete-button-background: var(--black-5)}._gray_hpqrc_66{--file-upload-container-background: var(--black-5);--delete-button-background: var(--white)}
|
@@ -25,6 +25,10 @@ export type TProps = {
|
|
25
25
|
* Флаг, определяющий, нужно ли при клике на карточку скроллиться до нее.
|
26
26
|
*/
|
27
27
|
scrollToCard?: boolean;
|
28
|
+
/**
|
29
|
+
* Значение, которое раздвигает отрицательными и положительным отступами.
|
30
|
+
*/
|
31
|
+
padding?: number;
|
28
32
|
/**
|
29
33
|
* Флаг, определяющий, нужны ли кнопки для перелистывания.
|
30
34
|
*/
|
@@ -1,118 +1,134 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { c as
|
3
|
-
import { forwardRef as
|
4
|
-
import { DEFAULT_SPACE_BETWEEN as
|
5
|
-
import { hasHorizontalScroll as
|
6
|
-
import { useMergeRefs as
|
7
|
-
import { useThrottledCallback as
|
8
|
-
import { MergedButton as
|
9
|
-
import '../../assets/CardTrail.css';const
|
1
|
+
import { jsxs as S, jsx as u } from "react/jsx-runtime";
|
2
|
+
import { c as n } from "../../index-DIxK0V-G.js";
|
3
|
+
import { forwardRef as q, useRef as f, useState as _, useEffect as P, Children as X } from "react";
|
4
|
+
import { DEFAULT_SPACE_BETWEEN as Y, DEFAULT_SCROLL_STEP as G, DEFAULT_DIVIDED as J, DEFAULT_CARD_INDEX as K } from "./constants.js";
|
5
|
+
import { hasHorizontalScroll as g, isScrollAtEdge as T } from "./utils.js";
|
6
|
+
import { useMergeRefs as Q } from "../../hooks/useMergeRefs/useMergeRefs.js";
|
7
|
+
import { useThrottledCallback as Z } from "../../hooks/useThrottledCallback/index.js";
|
8
|
+
import { MergedButton as rr } from "../MergedButton/MergedButton.js";
|
9
|
+
import '../../assets/CardTrail.css';const tr = "_pointer_c21mz_49", c = {
|
10
10
|
"card-trail": "_card-trail_c21mz_3",
|
11
11
|
"card-trail-header": "_card-trail-header_c21mz_7",
|
12
12
|
"card-trail-header-title": "_card-trail-header-title_c21mz_15",
|
13
13
|
"card-trail-header-merged-button": "_card-trail-header-merged-button_c21mz_29",
|
14
14
|
"card-trail-list": "_card-trail-list_c21mz_32",
|
15
15
|
"card-trail-list-item": "_card-trail-list-item_c21mz_45",
|
16
|
-
pointer:
|
17
|
-
}
|
16
|
+
pointer: tr
|
17
|
+
};
|
18
|
+
let v = {};
|
19
|
+
const dr = q((D, L) => {
|
18
20
|
const {
|
19
|
-
cardClassName:
|
20
|
-
cardTrailClassName:
|
21
|
-
cardTrailHeaderClassName:
|
22
|
-
cardTrailListClassName:
|
23
|
-
cardTrailMergedButtonClassName:
|
24
|
-
children:
|
25
|
-
title:
|
26
|
-
spaceBetween:
|
27
|
-
scrollStep:
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
21
|
+
cardClassName: z,
|
22
|
+
cardTrailClassName: W,
|
23
|
+
cardTrailHeaderClassName: A,
|
24
|
+
cardTrailListClassName: R,
|
25
|
+
cardTrailMergedButtonClassName: k,
|
26
|
+
children: p,
|
27
|
+
title: C,
|
28
|
+
spaceBetween: o = Y,
|
29
|
+
scrollStep: B = G,
|
30
|
+
dividedCardWidth: I = J,
|
31
|
+
currentCardIndex: h = K,
|
32
|
+
mergedButtonProps: i,
|
33
|
+
scrollToCard: b = !1,
|
34
|
+
needButtons: w = !0,
|
35
|
+
padding: l = 0
|
36
|
+
} = D, r = f(null), N = f(!0), s = f(null), [d, y] = _({
|
34
37
|
leftButton: !0,
|
35
38
|
rightButton: !1
|
36
|
-
}), [
|
37
|
-
() =>
|
38
|
-
),
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
}), [M, x] = _(0), [U, E] = _(
|
40
|
+
() => g(r == null ? void 0 : r.current)
|
41
|
+
), F = Q(r, L), H = Z(() => {
|
42
|
+
var a;
|
43
|
+
if (N.current) {
|
44
|
+
N.current = !1;
|
45
|
+
const m = r.current, V = ((a = m == null ? void 0 : m.children[h]) == null ? void 0 : a.clientWidth) ?? 0;
|
46
|
+
x(
|
47
|
+
V / I + l + o
|
48
|
+
), v = {
|
49
|
+
paddingLeft: l,
|
50
|
+
paddingRight: l,
|
51
|
+
marginLeft: -l,
|
52
|
+
marginRight: -l
|
53
|
+
};
|
54
|
+
}
|
55
|
+
const t = !T(r.current, "left"), e = !T(r.current, "right");
|
56
|
+
y({
|
57
|
+
leftButton: !t,
|
58
|
+
rightButton: !e
|
43
59
|
});
|
44
|
-
}, 300),
|
60
|
+
}, 300), O = (t) => () => {
|
45
61
|
var a;
|
46
|
-
if (!
|
62
|
+
if (!b)
|
47
63
|
return;
|
48
|
-
const
|
49
|
-
`[data-active-card='${
|
64
|
+
const e = (a = r == null ? void 0 : r.current) == null ? void 0 : a.querySelector(
|
65
|
+
`[data-active-card='${t}']`
|
50
66
|
);
|
51
|
-
|
67
|
+
e && (e == null || e.scrollIntoView({
|
52
68
|
behavior: "smooth",
|
53
69
|
block: "nearest",
|
54
70
|
inline: "center"
|
55
71
|
}));
|
56
|
-
},
|
72
|
+
}, $ = () => {
|
57
73
|
var a;
|
58
|
-
if (!r.current ||
|
59
|
-
const
|
60
|
-
|
61
|
-
left: -(
|
74
|
+
if (!r.current || d.leftButton) return;
|
75
|
+
const t = r.current, e = ((a = t.children[h]) == null ? void 0 : a.clientWidth) ?? 0;
|
76
|
+
t.scrollBy({
|
77
|
+
left: -(e + o) * B,
|
62
78
|
behavior: "smooth"
|
63
79
|
});
|
64
|
-
},
|
80
|
+
}, j = () => {
|
65
81
|
var a;
|
66
|
-
if (!r.current ||
|
67
|
-
const
|
68
|
-
|
69
|
-
left: (
|
82
|
+
if (!r.current || d.rightButton) return;
|
83
|
+
const t = r.current, e = ((a = t.children[h]) == null ? void 0 : a.clientWidth) ?? 0;
|
84
|
+
t.scrollBy({
|
85
|
+
left: (e + o) * B,
|
70
86
|
behavior: "smooth"
|
71
87
|
});
|
72
88
|
};
|
73
|
-
return
|
74
|
-
const
|
75
|
-
if (
|
76
|
-
return
|
77
|
-
|
78
|
-
}),
|
79
|
-
|
89
|
+
return P(() => {
|
90
|
+
const t = r.current;
|
91
|
+
if (t)
|
92
|
+
return s.current = new ResizeObserver(() => {
|
93
|
+
E(g(r == null ? void 0 : r.current));
|
94
|
+
}), s.current.observe(t), E(g(r == null ? void 0 : r.current)), () => {
|
95
|
+
s.current && s.current.disconnect();
|
80
96
|
};
|
81
|
-
}, [
|
82
|
-
/* @__PURE__ */
|
97
|
+
}, [p]), /* @__PURE__ */ S("section", { className: n(c["card-trail"], W), children: [
|
98
|
+
/* @__PURE__ */ S(
|
83
99
|
"header",
|
84
100
|
{
|
85
|
-
className:
|
101
|
+
className: n(
|
86
102
|
c["card-trail-header"],
|
87
|
-
|
103
|
+
A
|
88
104
|
),
|
89
105
|
children: [
|
90
|
-
|
91
|
-
|
92
|
-
|
106
|
+
C && /* @__PURE__ */ u("h3", { className: c["card-trail-header-title"], children: C }),
|
107
|
+
U && w && /* @__PURE__ */ u(
|
108
|
+
rr,
|
93
109
|
{
|
94
|
-
buttonsWrapperClassName:
|
110
|
+
buttonsWrapperClassName: n(
|
95
111
|
c["card-trail-header-merged-button"],
|
96
|
-
|
112
|
+
k
|
97
113
|
),
|
98
114
|
buttons: [
|
99
115
|
{
|
100
116
|
isIconButton: !0,
|
101
117
|
iconName: "ArrowLeft16px",
|
102
118
|
variant: "gray",
|
103
|
-
onClick:
|
104
|
-
disabled:
|
119
|
+
onClick: $,
|
120
|
+
disabled: d.leftButton,
|
105
121
|
size: "s",
|
106
|
-
...
|
122
|
+
...i == null ? void 0 : i.leftButton
|
107
123
|
},
|
108
124
|
{
|
109
125
|
isIconButton: !0,
|
110
126
|
iconName: "ArrowRight16px",
|
111
127
|
variant: "gray",
|
112
|
-
onClick:
|
128
|
+
onClick: j,
|
113
129
|
size: "s",
|
114
|
-
disabled:
|
115
|
-
...
|
130
|
+
disabled: d.rightButton,
|
131
|
+
...i == null ? void 0 : i.rightButton
|
116
132
|
}
|
117
133
|
]
|
118
134
|
}
|
@@ -120,25 +136,29 @@ import '../../assets/CardTrail.css';const P = "_pointer_c21mz_49", c = {
|
|
120
136
|
]
|
121
137
|
}
|
122
138
|
),
|
123
|
-
/* @__PURE__ */
|
139
|
+
/* @__PURE__ */ u(
|
124
140
|
"ul",
|
125
141
|
{
|
126
|
-
onScroll:
|
127
|
-
style: {
|
128
|
-
|
129
|
-
|
130
|
-
|
142
|
+
onScroll: H,
|
143
|
+
style: {
|
144
|
+
gap: o,
|
145
|
+
scrollPadding: `0 ${M}px`,
|
146
|
+
...v
|
147
|
+
},
|
148
|
+
className: n(c["card-trail-list"], R),
|
149
|
+
ref: F,
|
150
|
+
children: X.map(p, (t, e) => /* @__PURE__ */ u(
|
131
151
|
"li",
|
132
152
|
{
|
133
|
-
onClick:
|
134
|
-
"data-active-card":
|
135
|
-
"data-testid": `card-trail-item-${
|
136
|
-
className:
|
153
|
+
onClick: O(e),
|
154
|
+
"data-active-card": e,
|
155
|
+
"data-testid": `card-trail-item-${e}`,
|
156
|
+
className: n(
|
137
157
|
c["card-trail-list-item"],
|
138
|
-
{ [c.pointer]:
|
139
|
-
|
158
|
+
{ [c.pointer]: b },
|
159
|
+
z
|
140
160
|
),
|
141
|
-
children:
|
161
|
+
children: t
|
142
162
|
}
|
143
163
|
))
|
144
164
|
}
|
@@ -146,5 +166,5 @@ import '../../assets/CardTrail.css';const P = "_pointer_c21mz_49", c = {
|
|
146
166
|
] });
|
147
167
|
});
|
148
168
|
export {
|
149
|
-
|
169
|
+
dr as CardTrail
|
150
170
|
};
|
@@ -7,3 +7,4 @@
|
|
7
7
|
*/
|
8
8
|
export declare const isScrollAtEdge: (container: HTMLElement | null, direction: "left" | "right", tolerance?: number) => boolean;
|
9
9
|
export declare const hasHorizontalScroll: (element: HTMLElement | null) => boolean;
|
10
|
+
export declare const getCardWidth: <E extends Element>(element?: E) => number;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
const
|
2
|
-
if (!
|
3
|
-
const { scrollLeft:
|
4
|
-
return
|
5
|
-
},
|
1
|
+
const o = (t, l, r = 1) => {
|
2
|
+
if (!t) return !0;
|
3
|
+
const { scrollLeft: i, scrollWidth: s, clientWidth: c } = t;
|
4
|
+
return l === "left" ? i <= r : i >= s - c - r;
|
5
|
+
}, n = (t) => t ? t.scrollWidth > t.clientWidth : !1, d = (t) => t ? t.clientWidth : 0;
|
6
6
|
export {
|
7
|
-
|
8
|
-
|
7
|
+
d as getCardWidth,
|
8
|
+
n as hasHorizontalScroll,
|
9
|
+
o as isScrollAtEdge
|
9
10
|
};
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { default as React } from 'react';
|
2
|
+
|
3
|
+
export type TClearButton = {
|
4
|
+
/**
|
5
|
+
* Класс, применяемый к корневому элементу кнопки.
|
6
|
+
*/
|
7
|
+
className?: string;
|
8
|
+
/**
|
9
|
+
* Выключен ли clearButton или нет
|
10
|
+
*/
|
11
|
+
disabled?: boolean;
|
12
|
+
/**
|
13
|
+
* Вариант кнопки загрузки файла
|
14
|
+
*/
|
15
|
+
variant?: 'gray' | 'white';
|
16
|
+
/**
|
17
|
+
* Размер кнопки загрузки файла
|
18
|
+
*/
|
19
|
+
size?: 'l' | 'm-s';
|
20
|
+
/**
|
21
|
+
* Класс для кнопки
|
22
|
+
*/
|
23
|
+
clearButtonClassName?: string;
|
24
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
25
|
+
export declare const ClearButton: React.ForwardRefExoticComponent<{
|
26
|
+
/**
|
27
|
+
* Класс, применяемый к корневому элементу кнопки.
|
28
|
+
*/
|
29
|
+
className?: string;
|
30
|
+
/**
|
31
|
+
* Выключен ли clearButton или нет
|
32
|
+
*/
|
33
|
+
disabled?: boolean;
|
34
|
+
/**
|
35
|
+
* Вариант кнопки загрузки файла
|
36
|
+
*/
|
37
|
+
variant?: "gray" | "white";
|
38
|
+
/**
|
39
|
+
* Размер кнопки загрузки файла
|
40
|
+
*/
|
41
|
+
size?: "l" | "m-s";
|
42
|
+
/**
|
43
|
+
* Класс для кнопки
|
44
|
+
*/
|
45
|
+
clearButtonClassName?: string;
|
46
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
2
|
+
import { c as _ } from "../../index-DIxK0V-G.js";
|
3
|
+
import { forwardRef as p } from "react";
|
4
|
+
import { EClearButtonSize as a, EClearButtonVariant as f } from "./constants.js";
|
5
|
+
import { Icon as u } from "../../icons/Icon.js";
|
6
|
+
import '../../assets/ClearButton.css';const C = "_clear_n3to9_2", y = "_gray_n3to9_18", N = "_l_n3to9_32", o = {
|
7
|
+
clear: C,
|
8
|
+
gray: y,
|
9
|
+
l: N,
|
10
|
+
"m-s": "_m-s_n3to9_36"
|
11
|
+
}, d = p(
|
12
|
+
(s, e) => {
|
13
|
+
const {
|
14
|
+
disabled: l = !1,
|
15
|
+
size: t = a.MS,
|
16
|
+
variant: n = f.Gray,
|
17
|
+
className: c,
|
18
|
+
...m
|
19
|
+
} = s, i = _(
|
20
|
+
o.clear,
|
21
|
+
t === a.L ? o.l : o["m-s"],
|
22
|
+
o[n],
|
23
|
+
c
|
24
|
+
);
|
25
|
+
return /* @__PURE__ */ r(
|
26
|
+
"button",
|
27
|
+
{
|
28
|
+
type: "button",
|
29
|
+
ref: e,
|
30
|
+
...m,
|
31
|
+
disabled: l,
|
32
|
+
className: i,
|
33
|
+
children: /* @__PURE__ */ r(u, { iconName: t === "l" ? "Close16px" : "Close12px" })
|
34
|
+
}
|
35
|
+
);
|
36
|
+
}
|
37
|
+
);
|
38
|
+
d.displayName = "ClearButton";
|
39
|
+
export {
|
40
|
+
d as ClearButton
|
41
|
+
};
|
@@ -1,66 +1,63 @@
|
|
1
|
-
import { jsx as
|
1
|
+
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
2
2
|
import { c as d } from "../../index-DIxK0V-G.js";
|
3
|
-
import { useState as
|
4
|
-
import { EFileItemVariant as
|
5
|
-
import { formating as
|
6
|
-
import {
|
7
|
-
import '../../assets/ListFiles.css';const
|
8
|
-
"file-info": "_file-
|
9
|
-
"file-info-size": "_file-info-
|
10
|
-
"file-info-name-wrapper": "_file-info-name-
|
11
|
-
"file-info-name": "_file-info-
|
12
|
-
"file-upload-container": "_file-upload-
|
13
|
-
"file-upload-container-item": "_file-upload-container-
|
14
|
-
"delete-button": "_delete-
|
15
|
-
white:
|
3
|
+
import { useState as h, useEffect as u } from "react";
|
4
|
+
import { EFileItemVariant as q } from "./constants.js";
|
5
|
+
import { formating as w } from "../../utils/index.js";
|
6
|
+
import { ClearButton as z } from "../InputClearButton/ClearButton.js";
|
7
|
+
import '../../assets/ListFiles.css';const N = "_white_hpqrc_61", y = "_gray_hpqrc_66", e = {
|
8
|
+
"file-info": "_file-info_hpqrc_2",
|
9
|
+
"file-info-size": "_file-info-size_hpqrc_8",
|
10
|
+
"file-info-name-wrapper": "_file-info-name-wrapper_hpqrc_19",
|
11
|
+
"file-info-name": "_file-info-name_hpqrc_19",
|
12
|
+
"file-upload-container": "_file-upload-container_hpqrc_37",
|
13
|
+
"file-upload-container-item": "_file-upload-container-item_hpqrc_45",
|
14
|
+
"delete-button": "_delete-button_hpqrc_54",
|
15
|
+
white: N,
|
16
16
|
gray: y
|
17
17
|
};
|
18
|
-
function
|
19
|
-
value:
|
20
|
-
onChange:
|
21
|
-
classNameWrapper:
|
22
|
-
variant: c =
|
18
|
+
function E({
|
19
|
+
value: n,
|
20
|
+
onChange: o,
|
21
|
+
classNameWrapper: l,
|
22
|
+
variant: c = q.white,
|
23
23
|
disabled: m
|
24
24
|
}) {
|
25
|
-
const [a,
|
26
|
-
|
27
|
-
|
28
|
-
}, [
|
25
|
+
const [a, f] = h(n);
|
26
|
+
u(() => {
|
27
|
+
f(n);
|
28
|
+
}, [n]);
|
29
29
|
const p = async (i) => {
|
30
|
-
const
|
31
|
-
|
30
|
+
const t = [...a.filter((_) => _.id !== i)];
|
31
|
+
f(t), o == null || o({ deleteId: i, list: t });
|
32
32
|
};
|
33
|
-
return a.length ? /* @__PURE__ */
|
33
|
+
return a.length ? /* @__PURE__ */ r(
|
34
34
|
"ul",
|
35
35
|
{
|
36
36
|
className: d(
|
37
37
|
e["file-upload-container"],
|
38
|
-
|
38
|
+
l,
|
39
39
|
e[c]
|
40
40
|
),
|
41
|
-
children: a.map((i,
|
42
|
-
/* @__PURE__ */
|
43
|
-
(i == null ? void 0 : i.size) && /* @__PURE__ */
|
41
|
+
children: a.map((i, t) => /* @__PURE__ */ s("li", { className: e["file-upload-container-item"], children: [
|
42
|
+
/* @__PURE__ */ s("div", { className: e["file-info"], children: [
|
43
|
+
(i == null ? void 0 : i.size) && /* @__PURE__ */ s("span", { className: e["file-info-size"], children: [
|
44
44
|
" ",
|
45
|
-
|
45
|
+
w.Size(i == null ? void 0 : i.size)
|
46
46
|
] }),
|
47
|
-
/* @__PURE__ */
|
47
|
+
/* @__PURE__ */ r("div", { className: e["file-info-name-wrapper"], children: /* @__PURE__ */ r("div", { className: e["file-info-name"], children: i.name }) })
|
48
48
|
] }),
|
49
|
-
!m && /* @__PURE__ */
|
50
|
-
|
49
|
+
!m && /* @__PURE__ */ r(
|
50
|
+
z,
|
51
51
|
{
|
52
|
-
isIconButton: !0,
|
53
|
-
iconName: "Close12px",
|
54
52
|
size: "m-s",
|
55
|
-
variant: "
|
56
|
-
className: e["delete-button"],
|
53
|
+
variant: "gray",
|
57
54
|
onClick: () => p(i.id)
|
58
55
|
}
|
59
56
|
)
|
60
|
-
] },
|
57
|
+
] }, t))
|
61
58
|
}
|
62
59
|
) : null;
|
63
60
|
}
|
64
61
|
export {
|
65
|
-
|
62
|
+
E as ListFiles
|
66
63
|
};
|
@@ -50,6 +50,10 @@ type TProps = {
|
|
50
50
|
* Расстояние между слайдами.
|
51
51
|
*/
|
52
52
|
spaceBetween?: number;
|
53
|
+
/**
|
54
|
+
* Функция, которая будет вызвана при клике на слайд.
|
55
|
+
*/
|
56
|
+
onSlideClick?: VoidFunction;
|
53
57
|
};
|
54
|
-
export declare const PromoSlider: ({ slides, delay, spaceBetween, imageClassName, slideClassName, swiperClassName, contentClassName }: TProps) => import("react/jsx-runtime").JSX.Element;
|
58
|
+
export declare const PromoSlider: ({ slides, onSlideClick, delay, spaceBetween, imageClassName, slideClassName, swiperClassName, contentClassName }: TProps) => import("react/jsx-runtime").JSX.Element;
|
55
59
|
export {};
|