mimir-ui-kit 1.43.10 → 1.43.11
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-CGZoshMl.js +224 -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/CarBodyButton.css +1 -0
- package/dist/assets/CheckboxMimir.css +1 -1
- package/dist/assets/Chip.css +1 -1
- 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/MiniButton.css +1 -0
- 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/RoundButton.css +1 -0
- package/dist/assets/ScrollWrapper.css +1 -0
- 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 +10 -3
- package/dist/components/Accordion/Accordion.js +286 -212
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
- package/dist/components/Accordion/constants.d.ts +0 -4
- package/dist/components/Accordion/constants.js +4 -5
- package/dist/components/AnchorLink/Link.js +21 -20
- package/dist/components/Avatar/Avatar.js +26 -26
- package/dist/components/Button/Button.js +110 -87
- package/dist/components/Button/constants.d.ts +8 -2
- package/dist/components/Button/constants.js +6 -5
- package/dist/components/CarBodyButton/CarBodyButton.d.ts +26 -0
- package/dist/components/CarBodyButton/CarBodyButton.js +40 -0
- package/dist/components/CarBodyButton/index.d.ts +1 -0
- package/dist/components/CarBodyButton/index.js +4 -0
- package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +2 -0
- package/dist/components/CheckboxMimir/CheckboxMimir.js +37 -35
- package/dist/components/Chip/Chip.js +17 -17
- package/dist/components/DatePicker/DatePicker.d.ts +8 -0
- package/dist/components/DatePicker/DatePicker.js +182 -169
- package/dist/components/DatePicker/DatePickerModal.js +134 -98
- package/dist/components/DatePicker/MonthPickerModal.js +115 -95
- package/dist/components/DatePicker/YearPickerModal.js +109 -89
- package/dist/components/DatePicker/constants.d.ts +1 -0
- package/dist/components/DatePicker/constants.js +1 -1
- package/dist/components/DatePicker/hooks.d.ts +2 -1
- package/dist/components/DatePicker/hooks.js +12 -12
- package/dist/components/Drawer/Drawer.js +172 -138
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.d.ts +11 -0
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.js +27 -0
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/hooks.js +1 -1
- package/dist/components/GosZnak/GosZnak.js +47 -38
- package/dist/components/GosZnak/utils.d.ts +6 -0
- package/dist/components/GosZnak/utils.js +15 -0
- package/dist/components/Input/Input.d.ts +4 -0
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputPassword/InputPassword.js +38 -42
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/InputRangeSlider/InputRangeSlider.js +159 -139
- package/dist/components/InputRangeSlider/constants.d.ts +5 -0
- package/dist/components/InputRangeSlider/constants.js +11 -6
- package/dist/components/ListFiles/ListFiles.js +41 -39
- package/dist/components/ListPhotos/ListPhotos.js +17 -18
- package/dist/components/MessageShortReply/MessageShortReply.js +34 -34
- package/dist/components/{InputClearButton/ClearButton.d.ts → MiniButton/MiniButton.d.ts} +17 -8
- package/dist/components/MiniButton/MiniButton.js +44 -0
- package/dist/components/MiniButton/constants.d.ts +9 -0
- package/dist/components/MiniButton/constants.js +5 -0
- package/dist/components/MiniButton/index.d.ts +4 -0
- package/dist/components/MiniButton/index.js +6 -0
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +153 -152
- package/dist/components/MultiSelectSearch/constants.d.ts +1 -0
- package/dist/components/MultiSelectSearch/constants.js +7 -7
- package/dist/components/MultiSelectSearch/utils.d.ts +1 -1
- package/dist/components/MultiSelectSearch/utils.js +18 -16
- package/dist/components/NotificationBadge/NotificationBadge.js +49 -33
- package/dist/components/NotificationBadge/constants.d.ts +9 -2
- package/dist/components/NotificationBadge/constants.js +3 -2
- package/dist/components/NotificationBadge/types.d.ts +11 -1
- package/dist/components/NotificationBadge/utils.d.ts +8 -0
- package/dist/components/NotificationBadge/utils.js +4 -0
- package/dist/components/OtpInput/OtpInput.js +44 -40
- package/dist/components/OtpInput/constants.d.ts +4 -0
- package/dist/components/OtpInput/constants.js +6 -4
- package/dist/components/OtpInput/index.d.ts +1 -0
- package/dist/components/OtpInput/index.js +2 -0
- package/dist/components/Pagination/Pagination.js +23 -23
- package/dist/components/RoundButton/RoundButton.d.ts +82 -0
- package/dist/components/RoundButton/RoundButton.js +69 -0
- package/dist/components/RoundButton/constants.d.ts +11 -0
- package/dist/components/RoundButton/constants.js +5 -0
- package/dist/components/RoundButton/index.d.ts +2 -0
- package/dist/components/RoundButton/index.js +7 -0
- package/dist/components/RoundButton/types.d.ts +20 -0
- 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 +1 -5
- package/dist/components/Slider/Slider.js +34 -36
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +55 -51
- package/dist/hooks-Cd4Ez6_j.js +117 -0
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/16px/DropdownArrowDown16px.js +23 -0
- package/dist/icons/components/24px/EyeClosed24px.js +65 -0
- package/dist/icons/components/Avito.js +36 -13
- package/dist/icons/components/Site.js +13 -36
- package/dist/icons/components/index.js +564 -591
- package/dist/{index-C2dQUuc9.js → index-DrVFMaBi.js} +1184 -1346
- package/dist/index.js +73 -69
- package/dist/styles.module-BfkM1-KJ.js +32 -0
- package/package.json +1 -1
- package/dist/Input-BU_6U1CW.js +0 -227
- package/dist/assets/ClearButton.css +0 -1
- package/dist/components/InputClearButton/ClearButton.js +0 -41
- package/dist/components/InputClearButton/constants.d.ts +0 -8
- package/dist/components/InputClearButton/constants.js +0 -5
- package/dist/components/InputClearButton/index.d.ts +0 -4
- package/dist/components/InputClearButton/index.js +0 -6
- package/dist/hooks-HgN6Yauq.js +0 -117
- package/dist/icons/components/64px/AdvancePaymentDiscount64px.js +0 -59
- package/dist/icons/components/64px/AtsVendors64px.js +0 -37
- package/dist/icons/components/64px/ButtonOn64px.js +0 -31
- package/dist/icons/components/64px/BuyoutAuto64px.js +0 -45
- package/dist/icons/components/64px/CarAssistance64px.js +0 -44
- package/dist/icons/components/64px/CarDelivery64px.js +0 -37
- package/dist/icons/components/64px/CarSearchReturn64px.js +0 -45
- package/dist/icons/components/64px/CarService64px.js +0 -37
- package/dist/icons/components/64px/Case64px.js +0 -33
- package/dist/icons/components/64px/CoatOfArms64px.js +0 -149
- package/dist/icons/components/64px/CoffeeCup64px.js +0 -44
- package/dist/icons/components/64px/Cup64px.js +0 -38
- package/dist/icons/components/64px/ExpertAdvice64px.js +0 -40
- package/dist/icons/components/64px/Fines64px.js +0 -88
- package/dist/icons/components/64px/Fuel64px.js +0 -38
- package/dist/icons/components/64px/GazprombankIcon24px.js +0 -21
- package/dist/icons/components/64px/Kasko64px.js +0 -44
- package/dist/icons/components/64px/LegalSupport64px.js +0 -58
- package/dist/icons/components/64px/Microphone64px.js +0 -37
- package/dist/icons/components/64px/Money64px.js +0 -60
- package/dist/icons/components/64px/PaymentSchedule64px.js +0 -39
- package/dist/icons/components/64px/PersonalManager64px.js +0 -100
- package/dist/icons/components/64px/PreApproval64px.js +0 -44
- package/dist/icons/components/64px/Questions64px.js +0 -37
- package/dist/icons/components/64px/SupportGeography64px.js +0 -51
- package/dist/icons/components/64px/Timer64px.js +0 -45
- package/dist/icons/components/64px/Twogis64px.js +0 -51
- package/dist/icons/components/64px/Vehicles64px.js +0 -45
- package/dist/icons/components/64px/Workplace64px.js +0 -38
- package/dist/styles.module-Cuqm31CO.js +0 -28
@@ -1,171 +1,191 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { c as
|
3
|
-
import { memo as
|
4
|
-
import { EInputRangeSliderPositions as
|
5
|
-
import '../../assets/InputRangeSlider.css';const
|
6
|
-
"main-wrapper": "_main-
|
7
|
-
wrapper:
|
8
|
-
"input-wrapper": "_input-
|
9
|
-
"info-wrapper": "_info-
|
10
|
-
"control-wrapper": "_control-
|
11
|
-
input:
|
12
|
-
"equal-value": "_equal-
|
13
|
-
"is-double-range": "_is-double-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
disabled: nr
|
22
|
-
}, er = K(
|
1
|
+
import { jsxs as _, jsx as c, Fragment as b } from "react/jsx-runtime";
|
2
|
+
import { c as v } from "../../index-DIxK0V-G.js";
|
3
|
+
import { memo as st, useState as N, useEffect as ct, useCallback as h } from "react";
|
4
|
+
import { EInputRangeSliderPositions as j, EInputRangeSliderBorderState as z, DEFAULT_STEP as at, CONTROL_Z_INDEX as f } from "./constants.js";
|
5
|
+
import '../../assets/InputRangeSlider.css';const it = "_wrapper_16xeq_8", lt = "_input_16xeq_18", pt = "_control_16xeq_40", mt = "_disabled_16xeq_156", ut = "_active_16xeq_133", dt = "_hover_16xeq_162", r = {
|
6
|
+
"main-wrapper": "_main-wrapper_16xeq_2",
|
7
|
+
wrapper: it,
|
8
|
+
"input-wrapper": "_input-wrapper_16xeq_18",
|
9
|
+
"info-wrapper": "_info-wrapper_16xeq_28",
|
10
|
+
"control-wrapper": "_control-wrapper_16xeq_40",
|
11
|
+
input: lt,
|
12
|
+
"equal-value": "_equal-value_16xeq_115",
|
13
|
+
"is-double-range": "_is-double-range_16xeq_118",
|
14
|
+
"background-track": "_background-track_16xeq_122",
|
15
|
+
"active-track": "_active-track_16xeq_133",
|
16
|
+
control: pt,
|
17
|
+
disabled: mt,
|
18
|
+
active: ut,
|
19
|
+
hover: dt
|
20
|
+
}, ht = st(
|
23
21
|
({
|
24
|
-
min:
|
25
|
-
max:
|
26
|
-
value:
|
27
|
-
disabled:
|
28
|
-
isMinEqualMax:
|
29
|
-
isSingleSlider:
|
30
|
-
onChange:
|
31
|
-
step:
|
32
|
-
borderState:
|
33
|
-
positions:
|
34
|
-
minMaxDescriptions:
|
35
|
-
onChangeValue:
|
36
|
-
wrapperClassName:
|
37
|
-
...
|
22
|
+
min: s,
|
23
|
+
max: p,
|
24
|
+
value: n,
|
25
|
+
disabled: m,
|
26
|
+
isMinEqualMax: E = !1,
|
27
|
+
isSingleSlider: i = !0,
|
28
|
+
onChange: u,
|
29
|
+
step: q = at,
|
30
|
+
borderState: R = z.ON,
|
31
|
+
positions: D = j.LEFT,
|
32
|
+
minMaxDescriptions: G,
|
33
|
+
onChangeValue: d,
|
34
|
+
wrapperClassName: H,
|
35
|
+
...K
|
38
36
|
}) => {
|
39
|
-
const [
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
);
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
t
|
62
|
-
|
63
|
-
|
64
|
-
|
37
|
+
const [a, T] = N(() => (n == null ? void 0 : n.min) ?? s), [o, P] = N(() => (n == null ? void 0 : n.max) ?? p), [x, O] = N(
|
38
|
+
null
|
39
|
+
), [A, M] = N(
|
40
|
+
null
|
41
|
+
), {
|
42
|
+
max: C,
|
43
|
+
min: L,
|
44
|
+
maxClassName: Y,
|
45
|
+
minClassName: X
|
46
|
+
} = G ?? {};
|
47
|
+
ct(() => {
|
48
|
+
n && (n.min !== void 0 && T(n.min), n.max !== void 0 && P(n.max));
|
49
|
+
}, [n]);
|
50
|
+
const Z = (t) => {
|
51
|
+
t.preventDefault();
|
52
|
+
let e = +t.target.value;
|
53
|
+
i || (E ? e = Math.min(e, o) : e = Math.min(e, o - q)), n || T(e), d == null || d({ min: e, max: o }), u == null || u(t);
|
54
|
+
}, J = (t) => {
|
55
|
+
t.preventDefault();
|
56
|
+
let e = +t.target.value;
|
57
|
+
i || (E ? e = Math.max(e, a) : e = Math.max(e, a + q)), n || P(e), d == null || d({ min: a, max: e }), u == null || u(t);
|
58
|
+
}, $ = h(
|
59
|
+
(t) => {
|
60
|
+
m || M(t);
|
61
|
+
},
|
62
|
+
[m]
|
63
|
+
), Q = h(() => {
|
64
|
+
M(null);
|
65
|
+
}, []), F = h((t) => {
|
66
|
+
O(t), M(null);
|
67
|
+
}, []), V = h(() => {
|
68
|
+
O(null);
|
69
|
+
}, []), l = p - s, W = (a - s) / l, U = (o - s) / l, S = `calc(var(--thumb-width) / 2 + ${W} * (100% - var(--thumb-width)))`, tt = `calc(var(--thumb-width) / 2 + ${U} * (100% - var(--thumb-width)))`, k = D === j.LEFT, I = a === o && U !== 0, et = R === z.OFF, rt = () => {
|
70
|
+
const t = {
|
71
|
+
...K,
|
65
72
|
type: "range",
|
66
|
-
min:
|
67
|
-
max:
|
68
|
-
step:
|
69
|
-
|
73
|
+
min: s,
|
74
|
+
max: p,
|
75
|
+
step: q,
|
76
|
+
onMouseUp: V,
|
77
|
+
onMouseLeave: Q
|
78
|
+
}, e = /* @__PURE__ */ c(
|
70
79
|
"input",
|
71
80
|
{
|
72
|
-
...
|
73
|
-
className:
|
74
|
-
[r["equal-value"]]:
|
75
|
-
[r["is-double-range"]]: !
|
81
|
+
...t,
|
82
|
+
className: v(r.input, {
|
83
|
+
[r["equal-value"]]: I,
|
84
|
+
[r["is-double-range"]]: !i
|
76
85
|
}),
|
77
|
-
disabled:
|
78
|
-
value:
|
79
|
-
onChange:
|
86
|
+
disabled: m,
|
87
|
+
value: a,
|
88
|
+
onChange: Z,
|
89
|
+
onMouseDown: () => F("min"),
|
90
|
+
onMouseEnter: () => $("min")
|
80
91
|
}
|
81
|
-
),
|
92
|
+
), w = /* @__PURE__ */ c(
|
82
93
|
"input",
|
83
94
|
{
|
84
|
-
...
|
85
|
-
className:
|
86
|
-
[r["is-double-range"]]: !
|
95
|
+
...t,
|
96
|
+
className: v(r.input, {
|
97
|
+
[r["is-double-range"]]: !i
|
87
98
|
}),
|
88
|
-
disabled:
|
89
|
-
value:
|
90
|
-
onChange:
|
99
|
+
disabled: m,
|
100
|
+
value: o,
|
101
|
+
onChange: J,
|
102
|
+
onMouseDown: () => F("max"),
|
103
|
+
onMouseEnter: () => $("max")
|
91
104
|
}
|
92
105
|
);
|
93
|
-
return
|
94
|
-
|
95
|
-
|
106
|
+
return i ? k ? e : w : /* @__PURE__ */ _(b, { children: [
|
107
|
+
e,
|
108
|
+
w
|
96
109
|
] });
|
97
|
-
},
|
98
|
-
|
110
|
+
}, y = h(
|
111
|
+
(t) => v(r.control, {
|
112
|
+
[r.disabled]: m,
|
113
|
+
[r.active]: x === t,
|
114
|
+
[r.hover]: A === t && x !== t
|
115
|
+
}),
|
116
|
+
[m, x, A]
|
117
|
+
), nt = () => {
|
118
|
+
const t = /* @__PURE__ */ c(
|
99
119
|
"div",
|
100
120
|
{
|
101
|
-
className:
|
102
|
-
[r.disabled]: N
|
103
|
-
}),
|
121
|
+
className: y("min"),
|
104
122
|
style: {
|
105
|
-
left:
|
123
|
+
left: S,
|
124
|
+
zIndex: x === "min" ? f.ACTIVE : I ? f.PRIORITY : f.BACKGROUND
|
106
125
|
}
|
107
126
|
}
|
108
|
-
),
|
127
|
+
), e = /* @__PURE__ */ c(
|
109
128
|
"div",
|
110
129
|
{
|
111
|
-
className:
|
112
|
-
[r.disabled]: N
|
113
|
-
}),
|
130
|
+
className: y("max"),
|
114
131
|
style: {
|
115
|
-
left:
|
132
|
+
left: tt,
|
133
|
+
zIndex: x === "max" ? f.ACTIVE : I ? f.BACKGROUND : f.PRIORITY
|
116
134
|
}
|
117
135
|
}
|
118
|
-
),
|
119
|
-
|
120
|
-
|
121
|
-
{
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
}
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
return
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
136
|
+
), w = et ? null : /* @__PURE__ */ c("div", { className: r["background-track"] }), B = /* @__PURE__ */ c(
|
137
|
+
"div",
|
138
|
+
{
|
139
|
+
style: (() => {
|
140
|
+
if (i)
|
141
|
+
return k ? {
|
142
|
+
left: "0%",
|
143
|
+
width: a === s ? "0%" : `${(a - s) / l * 100}%`
|
144
|
+
} : {
|
145
|
+
left: o === p ? "100%" : `${(o - s) / l * 100}%`,
|
146
|
+
width: o === p ? "0%" : `${(p - o) / l * 100}%`
|
147
|
+
};
|
148
|
+
{
|
149
|
+
const g = (a - s) / l * 100, ot = (o - s) / l * 100;
|
150
|
+
return {
|
151
|
+
left: `${g}%`,
|
152
|
+
width: `${ot - g}%`
|
153
|
+
};
|
154
|
+
}
|
155
|
+
})(),
|
156
|
+
className: v(
|
157
|
+
r["active-track"],
|
158
|
+
r[R],
|
159
|
+
r[D],
|
160
|
+
{
|
161
|
+
[r["double-range"]]: !i
|
162
|
+
}
|
163
|
+
)
|
164
|
+
}
|
165
|
+
);
|
166
|
+
return i ? /* @__PURE__ */ _(b, { children: [
|
167
|
+
w,
|
168
|
+
B,
|
169
|
+
k ? t : e
|
170
|
+
] }) : /* @__PURE__ */ _(b, { children: [
|
171
|
+
w,
|
172
|
+
B,
|
173
|
+
t,
|
174
|
+
e
|
155
175
|
] });
|
156
176
|
};
|
157
|
-
return /* @__PURE__ */
|
158
|
-
/* @__PURE__ */
|
159
|
-
!!
|
160
|
-
!!
|
177
|
+
return /* @__PURE__ */ _("div", { className: v(r["main-wrapper"], H), children: [
|
178
|
+
/* @__PURE__ */ _("div", { className: r["info-wrapper"], children: [
|
179
|
+
!!L && /* @__PURE__ */ c("div", { className: X, children: L }),
|
180
|
+
!!C && /* @__PURE__ */ c("div", { className: Y, children: C })
|
161
181
|
] }),
|
162
|
-
/* @__PURE__ */
|
163
|
-
/* @__PURE__ */
|
164
|
-
/* @__PURE__ */
|
182
|
+
/* @__PURE__ */ _("div", { className: r.wrapper, children: [
|
183
|
+
/* @__PURE__ */ c("div", { className: r["control-wrapper"], children: nt() }),
|
184
|
+
/* @__PURE__ */ c("div", { className: r["input-wrapper"], children: rt() })
|
165
185
|
] })
|
166
186
|
] });
|
167
187
|
}
|
168
188
|
);
|
169
189
|
export {
|
170
|
-
|
190
|
+
ht as InputRangeSlider
|
171
191
|
};
|
@@ -1,8 +1,13 @@
|
|
1
|
-
var
|
2
|
-
const
|
1
|
+
var O = /* @__PURE__ */ ((T) => (T.LEFT = "left", T.RIGHT = "right", T))(O || {}), D = /* @__PURE__ */ ((T) => (T.ON = "on", T.OFF = "off", T))(D || {});
|
2
|
+
const F = 1, r = 100, A = {
|
3
|
+
ACTIVE: 10,
|
4
|
+
PRIORITY: 5,
|
5
|
+
BACKGROUND: 4
|
6
|
+
};
|
3
7
|
export {
|
4
|
-
|
5
|
-
|
6
|
-
r as
|
7
|
-
|
8
|
+
A as CONTROL_Z_INDEX,
|
9
|
+
F as DEFAULT_STEP,
|
10
|
+
r as DEFAULT_WIDTH,
|
11
|
+
D as EInputRangeSliderBorderState,
|
12
|
+
O as EInputRangeSliderPositions
|
8
13
|
};
|
@@ -1,57 +1,59 @@
|
|
1
|
-
import { jsx as
|
1
|
+
import { jsx as n, jsxs as l } 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:
|
16
|
-
gray:
|
3
|
+
import { useState as g, useEffect as u } from "react";
|
4
|
+
import { EFileItemVariant as w } from "./constants.js";
|
5
|
+
import { formating as N } from "../../utils/index.js";
|
6
|
+
import { MiniButton as h } from "../MiniButton/MiniButton.js";
|
7
|
+
import '../../assets/ListFiles.css';const z = "_white_1g4gc_62", x = "_gray_1g4gc_67", e = {
|
8
|
+
"file-info": "_file-info_1g4gc_2",
|
9
|
+
"file-info-size": "_file-info-size_1g4gc_8",
|
10
|
+
"file-info-name-wrapper": "_file-info-name-wrapper_1g4gc_19",
|
11
|
+
"file-info-name": "_file-info-name_1g4gc_19",
|
12
|
+
"file-upload-container": "_file-upload-container_1g4gc_38",
|
13
|
+
"file-upload-container-item": "_file-upload-container-item_1g4gc_46",
|
14
|
+
"delete-button": "_delete-button_1g4gc_55",
|
15
|
+
white: z,
|
16
|
+
gray: x
|
17
17
|
};
|
18
|
-
function
|
19
|
-
value:
|
20
|
-
onChange:
|
21
|
-
classNameWrapper:
|
22
|
-
variant:
|
18
|
+
function F({
|
19
|
+
value: o,
|
20
|
+
onChange: s,
|
21
|
+
classNameWrapper: f,
|
22
|
+
variant: r = w.white,
|
23
23
|
disabled: m
|
24
24
|
}) {
|
25
|
-
const [a,
|
25
|
+
const [a, c] = g(o);
|
26
26
|
u(() => {
|
27
|
-
|
28
|
-
}, [
|
29
|
-
const
|
30
|
-
const t = [...a.filter((
|
31
|
-
|
27
|
+
c(o);
|
28
|
+
}, [o]);
|
29
|
+
const _ = async (i) => {
|
30
|
+
const t = [...a.filter((p) => p.id !== i)];
|
31
|
+
c(t), s == null || s({ deleteId: i, list: t });
|
32
32
|
};
|
33
|
-
return a.length ? /* @__PURE__ */
|
33
|
+
return a.length ? /* @__PURE__ */ n(
|
34
34
|
"ul",
|
35
35
|
{
|
36
36
|
className: d(
|
37
37
|
e["file-upload-container"],
|
38
|
-
|
39
|
-
e[
|
38
|
+
f,
|
39
|
+
e[r]
|
40
40
|
),
|
41
|
-
children: a.map((i, t) => /* @__PURE__ */
|
42
|
-
/* @__PURE__ */
|
43
|
-
(i == null ? void 0 : i.size) && /* @__PURE__ */
|
41
|
+
children: a.map((i, t) => /* @__PURE__ */ l("li", { className: e["file-upload-container-item"], children: [
|
42
|
+
/* @__PURE__ */ l("div", { className: e["file-info"], children: [
|
43
|
+
(i == null ? void 0 : i.size) && /* @__PURE__ */ l("span", { className: e["file-info-size"], children: [
|
44
44
|
" ",
|
45
|
-
|
45
|
+
N.Size(i == null ? void 0 : i.size)
|
46
46
|
] }),
|
47
|
-
/* @__PURE__ */
|
47
|
+
/* @__PURE__ */ n("div", { className: e["file-info-name-wrapper"], children: /* @__PURE__ */ n("div", { className: e["file-info-name"], children: i.name }) })
|
48
48
|
] }),
|
49
|
-
!m && /* @__PURE__ */
|
50
|
-
|
49
|
+
!m && /* @__PURE__ */ n(
|
50
|
+
h,
|
51
51
|
{
|
52
|
+
iconName: "Close12px",
|
52
53
|
size: "m-s",
|
53
|
-
variant: "
|
54
|
-
|
54
|
+
variant: "white",
|
55
|
+
className: e["delete-button"],
|
56
|
+
onClick: () => _(i.id)
|
55
57
|
}
|
56
58
|
)
|
57
59
|
] }, t))
|
@@ -59,5 +61,5 @@ function E({
|
|
59
61
|
) : null;
|
60
62
|
}
|
61
63
|
export {
|
62
|
-
|
64
|
+
F as ListFiles
|
63
65
|
};
|
@@ -1,23 +1,23 @@
|
|
1
1
|
import { jsx as l, jsxs as n } from "react/jsx-runtime";
|
2
|
-
import { c as
|
3
|
-
import { useState as
|
4
|
-
import {
|
2
|
+
import { c as _ } from "../../index-DIxK0V-G.js";
|
3
|
+
import { useState as f, useEffect as u } from "react";
|
4
|
+
import { MiniButton as d } from "../MiniButton/MiniButton.js";
|
5
5
|
import '../../assets/ListPhotos.css';const i = {
|
6
|
-
"list-photos": "_list-
|
7
|
-
"list-photos-item": "_list-photos-
|
8
|
-
"list-photos-image": "_list-photos-
|
9
|
-
"delete-button": "_delete-
|
6
|
+
"list-photos": "_list-photos_14sli_2",
|
7
|
+
"list-photos-item": "_list-photos-item_14sli_12",
|
8
|
+
"list-photos-image": "_list-photos-image_14sli_21",
|
9
|
+
"delete-button": "_delete-button_14sli_26"
|
10
10
|
};
|
11
11
|
function x({ value: o, onChange: s, classNameWrapper: r }) {
|
12
|
-
const [e,
|
13
|
-
|
14
|
-
|
12
|
+
const [e, m] = f(o);
|
13
|
+
u(() => {
|
14
|
+
m(o);
|
15
15
|
}, [o]);
|
16
|
-
const
|
17
|
-
const
|
18
|
-
c
|
16
|
+
const a = async (t) => {
|
17
|
+
const c = [...e.filter((p) => p.id !== t)];
|
18
|
+
m(c), s == null || s({ deleteId: t, list: c });
|
19
19
|
};
|
20
|
-
return e.length ? /* @__PURE__ */ l("ul", { className:
|
20
|
+
return e.length ? /* @__PURE__ */ l("ul", { className: _(i["list-photos"], r), children: e.map((t) => /* @__PURE__ */ n("li", { className: i["list-photos-item"], children: [
|
21
21
|
/* @__PURE__ */ l(
|
22
22
|
"img",
|
23
23
|
{
|
@@ -29,12 +29,11 @@ function x({ value: o, onChange: s, classNameWrapper: r }) {
|
|
29
29
|
s && /* @__PURE__ */ l(
|
30
30
|
d,
|
31
31
|
{
|
32
|
-
isIconButton: !0,
|
33
|
-
iconName: "Close12px",
|
34
32
|
size: "m-s",
|
35
|
-
variant: "
|
33
|
+
variant: "gray",
|
34
|
+
iconName: "Close12px",
|
36
35
|
className: i["delete-button"],
|
37
|
-
onClick: () =>
|
36
|
+
onClick: () => a(t.id)
|
38
37
|
}
|
39
38
|
)
|
40
39
|
] }, t.id)) }) : null;
|
@@ -1,51 +1,51 @@
|
|
1
1
|
import { jsxs as d, jsx as a } from "react/jsx-runtime";
|
2
|
-
import { c as
|
3
|
-
import { forwardRef as
|
4
|
-
import { EMessageShortReplyVariant as
|
2
|
+
import { c as u } from "../../index-DIxK0V-G.js";
|
3
|
+
import { forwardRef as y } from "react";
|
4
|
+
import { EMessageShortReplyVariant as f } from "./constants.js";
|
5
5
|
import { Icon as o } from "../../icons/Icon.js";
|
6
|
-
import '../../assets/MessageShortReply.css';const
|
7
|
-
"short-reply": "_short-
|
8
|
-
sapphire:
|
9
|
-
"sapphire-filled": "_sapphire-
|
10
|
-
citrine:
|
11
|
-
asphalt:
|
6
|
+
import '../../assets/MessageShortReply.css';const v = "_sapphire_uvg5h_50", N = "_citrine_uvg5h_67", b = "_asphalt_uvg5h_76", w = "_gray_uvg5h_85", R = "_white_uvg5h_94", S = "_green_uvg5h_103", x = "_disabled_uvg5h_112", s = {
|
7
|
+
"short-reply": "_short-reply_uvg5h_2",
|
8
|
+
sapphire: v,
|
9
|
+
"sapphire-filled": "_sapphire-filled_uvg5h_59",
|
10
|
+
citrine: N,
|
11
|
+
asphalt: b,
|
12
12
|
gray: w,
|
13
13
|
white: R,
|
14
14
|
green: S,
|
15
|
-
disabled:
|
16
|
-
},
|
17
|
-
(
|
15
|
+
disabled: x
|
16
|
+
}, I = y(
|
17
|
+
(i, h) => {
|
18
18
|
const {
|
19
|
-
variant: n =
|
20
|
-
children:
|
21
|
-
className:
|
22
|
-
leftIconName:
|
23
|
-
rightIconName:
|
24
|
-
type:
|
25
|
-
disabled:
|
26
|
-
...
|
27
|
-
} =
|
28
|
-
[
|
29
|
-
[
|
30
|
-
},
|
19
|
+
variant: n = f.Sapphire,
|
20
|
+
children: p,
|
21
|
+
className: c,
|
22
|
+
leftIconName: r,
|
23
|
+
rightIconName: t,
|
24
|
+
type: l = "button",
|
25
|
+
disabled: e,
|
26
|
+
..._
|
27
|
+
} = i, m = {
|
28
|
+
[s.disabled]: e,
|
29
|
+
[s[n]]: !e
|
30
|
+
}, g = u(c, s["short-reply"], m);
|
31
31
|
return /* @__PURE__ */ d(
|
32
32
|
"button",
|
33
33
|
{
|
34
|
-
type:
|
35
|
-
disabled:
|
36
|
-
ref:
|
37
|
-
className:
|
38
|
-
...
|
34
|
+
type: l,
|
35
|
+
disabled: e,
|
36
|
+
ref: h,
|
37
|
+
className: g,
|
38
|
+
..._,
|
39
39
|
children: [
|
40
|
-
|
41
|
-
|
42
|
-
|
40
|
+
r && /* @__PURE__ */ a(o, { iconName: r }),
|
41
|
+
p,
|
42
|
+
t && /* @__PURE__ */ a(o, { iconName: t })
|
43
43
|
]
|
44
44
|
}
|
45
45
|
);
|
46
46
|
}
|
47
47
|
);
|
48
|
-
|
48
|
+
I.displayName = "MessageShortReply";
|
49
49
|
export {
|
50
|
-
|
50
|
+
I as MessageShortReply
|
51
51
|
};
|