mimir-ui-kit 1.43.11 → 1.43.13
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-BU_6U1CW.js +227 -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/CheckboxMimir.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/ClearButton.css +1 -0
- 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/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/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 +3 -10
- package/dist/components/Accordion/Accordion.js +212 -286
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
- package/dist/components/Accordion/constants.d.ts +4 -0
- package/dist/components/Accordion/constants.js +5 -4
- package/dist/components/AnchorLink/Link.js +20 -21
- package/dist/components/Avatar/Avatar.js +26 -26
- package/dist/components/Button/Button.js +87 -110
- package/dist/components/Button/constants.d.ts +2 -8
- package/dist/components/Button/constants.js +5 -6
- package/dist/components/CheckboxMimir/CheckboxMimir.d.ts +0 -2
- package/dist/components/CheckboxMimir/CheckboxMimir.js +35 -37
- package/dist/components/Chip/Chip.js +17 -17
- package/dist/components/DatePicker/DatePicker.d.ts +0 -8
- package/dist/components/DatePicker/DatePicker.js +169 -182
- package/dist/components/DatePicker/DatePickerModal.js +98 -134
- package/dist/components/DatePicker/MonthPickerModal.js +95 -115
- package/dist/components/DatePicker/YearPickerModal.js +89 -109
- package/dist/components/DatePicker/constants.d.ts +1 -1
- package/dist/components/DatePicker/constants.js +7 -6
- package/dist/components/DatePicker/hooks.d.ts +1 -2
- package/dist/components/DatePicker/hooks.js +13 -13
- package/dist/components/Drawer/Drawer.js +138 -172
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/hooks.js +1 -1
- package/dist/components/GosZnak/GosZnak.js +38 -47
- package/dist/components/Input/Input.d.ts +0 -4
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/index.js +1 -1
- package/dist/components/{MiniButton/MiniButton.d.ts → InputClearButton/ClearButton.d.ts} +8 -17
- 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/InputPassword/InputPassword.js +42 -38
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/InputRangeSlider/InputRangeSlider.js +139 -159
- package/dist/components/InputRangeSlider/constants.d.ts +0 -5
- package/dist/components/InputRangeSlider/constants.js +6 -11
- package/dist/components/ListFiles/ListFiles.js +39 -41
- package/dist/components/ListPhotos/ListPhotos.js +18 -17
- package/dist/components/MessageShortReply/MessageShortReply.js +34 -34
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +152 -153
- package/dist/components/MultiSelectSearch/constants.d.ts +0 -1
- package/dist/components/MultiSelectSearch/constants.js +7 -7
- package/dist/components/MultiSelectSearch/utils.d.ts +1 -1
- package/dist/components/MultiSelectSearch/utils.js +16 -18
- package/dist/components/NotificationBadge/NotificationBadge.js +33 -49
- package/dist/components/NotificationBadge/constants.d.ts +2 -9
- package/dist/components/NotificationBadge/constants.js +2 -3
- package/dist/components/NotificationBadge/types.d.ts +1 -11
- package/dist/components/OtpInput/OtpInput.js +40 -44
- package/dist/components/OtpInput/constants.d.ts +0 -4
- package/dist/components/OtpInput/constants.js +4 -6
- package/dist/components/OtpInput/index.d.ts +0 -1
- package/dist/components/OtpInput/index.js +0 -2
- package/dist/components/Pagination/Pagination.js +23 -23
- 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 +5 -1
- package/dist/components/Slider/Slider.js +36 -34
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/index.d.ts +1 -3
- package/dist/components/index.js +51 -55
- package/dist/hooks-HgN6Yauq.js +117 -0
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/64px/AdvancePaymentDiscount64px.js +59 -0
- package/dist/icons/components/64px/AtsVendors64px.js +37 -0
- package/dist/icons/components/64px/ButtonOn64px.js +31 -0
- package/dist/icons/components/64px/BuyoutAuto64px.js +45 -0
- package/dist/icons/components/64px/CarAssistance64px.js +44 -0
- package/dist/icons/components/64px/CarDelivery64px.js +37 -0
- package/dist/icons/components/64px/CarSearchReturn64px.js +45 -0
- package/dist/icons/components/64px/CarService64px.js +37 -0
- package/dist/icons/components/64px/Case64px.js +33 -0
- package/dist/icons/components/64px/CoatOfArms64px.js +149 -0
- package/dist/icons/components/64px/CoffeeCup64px.js +44 -0
- package/dist/icons/components/64px/Cup64px.js +38 -0
- package/dist/icons/components/64px/ExpertAdvice64px.js +40 -0
- package/dist/icons/components/64px/Fines64px.js +88 -0
- package/dist/icons/components/64px/Fuel64px.js +38 -0
- package/dist/icons/components/64px/GazprombankIcon24px.js +21 -0
- package/dist/icons/components/64px/Kasko64px.js +44 -0
- package/dist/icons/components/64px/LegalSupport64px.js +58 -0
- package/dist/icons/components/64px/Microphone64px.js +37 -0
- package/dist/icons/components/64px/Money64px.js +60 -0
- package/dist/icons/components/64px/PaymentSchedule64px.js +39 -0
- package/dist/icons/components/64px/PersonalManager64px.js +100 -0
- package/dist/icons/components/64px/PreApproval64px.js +44 -0
- package/dist/icons/components/64px/Questions64px.js +37 -0
- package/dist/icons/components/64px/SupportGeography64px.js +51 -0
- package/dist/icons/components/64px/Timer64px.js +45 -0
- package/dist/icons/components/64px/Twogis64px.js +51 -0
- package/dist/icons/components/64px/Vehicles64px.js +45 -0
- package/dist/icons/components/64px/Workplace64px.js +38 -0
- package/dist/icons/components/index.js +591 -564
- package/dist/{index-DrVFMaBi.js → index-C2dQUuc9.js} +1346 -1184
- package/dist/index.js +69 -73
- package/dist/styles.module-Cuqm31CO.js +28 -0
- package/package.json +1 -1
- package/dist/Input-CGZoshMl.js +0 -224
- package/dist/assets/CarBodyButton.css +0 -1
- package/dist/assets/MiniButton.css +0 -1
- package/dist/assets/RoundButton.css +0 -1
- package/dist/assets/ScrollWrapper.css +0 -1
- package/dist/components/CarBodyButton/CarBodyButton.d.ts +0 -26
- package/dist/components/CarBodyButton/CarBodyButton.js +0 -40
- package/dist/components/CarBodyButton/index.d.ts +0 -1
- package/dist/components/CarBodyButton/index.js +0 -4
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.d.ts +0 -11
- package/dist/components/Drawer/ScrollWrapper/ScrollWrapper.js +0 -27
- package/dist/components/GosZnak/utils.d.ts +0 -6
- package/dist/components/GosZnak/utils.js +0 -15
- package/dist/components/MiniButton/MiniButton.js +0 -44
- package/dist/components/MiniButton/constants.d.ts +0 -9
- package/dist/components/MiniButton/constants.js +0 -5
- package/dist/components/MiniButton/index.d.ts +0 -4
- package/dist/components/MiniButton/index.js +0 -6
- package/dist/components/NotificationBadge/utils.d.ts +0 -8
- package/dist/components/NotificationBadge/utils.js +0 -4
- package/dist/components/RoundButton/RoundButton.d.ts +0 -82
- package/dist/components/RoundButton/RoundButton.js +0 -69
- package/dist/components/RoundButton/constants.d.ts +0 -11
- package/dist/components/RoundButton/constants.js +0 -5
- package/dist/components/RoundButton/index.d.ts +0 -2
- package/dist/components/RoundButton/index.js +0 -7
- package/dist/components/RoundButton/types.d.ts +0 -20
- package/dist/hooks-Cd4Ez6_j.js +0 -117
- package/dist/icons/components/16px/DropdownArrowDown16px.js +0 -23
- package/dist/icons/components/24px/EyeClosed24px.js +0 -65
- package/dist/styles.module-BfkM1-KJ.js +0 -32
@@ -1,56 +1,60 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
"
|
11
|
-
button:
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
t
|
1
|
+
import { jsxs as _, jsx as o } from "react/jsx-runtime";
|
2
|
+
import { c as l } from "../../index-DIxK0V-G.js";
|
3
|
+
import { memo as d, forwardRef as b, useState as f, useCallback as r } from "react";
|
4
|
+
import { Icon as x } from "../../icons/Icon.js";
|
5
|
+
import { Button as N } from "../Button/Button.js";
|
6
|
+
import { I as h } from "../../Input-BU_6U1CW.js";
|
7
|
+
import '../../assets/InputPassword.css';const M = "_input_7b9x2_2", y = "_wrapper_7b9x2_6", I = "_button_7b9x2_17", v = "_icon_7b9x2_33", C = "_show_7b9x2_38", e = {
|
8
|
+
input: M,
|
9
|
+
wrapper: y,
|
10
|
+
"input-wrapper": "_input-wrapper_7b9x2_13",
|
11
|
+
"button-wrapper": "_button-wrapper_7b9x2_17",
|
12
|
+
button: I,
|
13
|
+
icon: v,
|
14
|
+
show: C
|
15
|
+
}, P = d(
|
16
|
+
b(
|
17
|
+
({ size: p, showOnHold: t = !1, ...n }, i) => {
|
18
|
+
const [s, a] = f(!1), c = r(() => {
|
19
|
+
t || a(!s);
|
20
|
+
}, [t, s]), u = r(() => {
|
21
|
+
t && a(!0);
|
20
22
|
}, [t]), m = r(() => {
|
21
|
-
t &&
|
22
|
-
}, [t]),
|
23
|
-
t &&
|
23
|
+
t && a(!1);
|
24
|
+
}, [t]), w = r(() => {
|
25
|
+
t && a(!1);
|
24
26
|
}, [t]);
|
25
|
-
return /* @__PURE__ */
|
26
|
-
/* @__PURE__ */
|
27
|
-
|
27
|
+
return /* @__PURE__ */ _("div", { className: e.wrapper, "data-testid": "input-password-wrapper", children: [
|
28
|
+
/* @__PURE__ */ o(
|
29
|
+
h,
|
28
30
|
{
|
29
31
|
ref: i,
|
30
32
|
className: e.input,
|
31
33
|
wrapperClassName: e["input-wrapper"],
|
32
|
-
size:
|
33
|
-
type:
|
34
|
+
size: p,
|
35
|
+
type: s ? "text" : "password",
|
34
36
|
"data-testid": "password-input",
|
35
37
|
...n
|
36
38
|
}
|
37
39
|
),
|
38
|
-
/* @__PURE__ */
|
39
|
-
|
40
|
+
/* @__PURE__ */ o("div", { className: e["button-wrapper"], children: /* @__PURE__ */ o(
|
41
|
+
N,
|
40
42
|
{
|
41
43
|
clear: !0,
|
42
44
|
type: "button",
|
43
45
|
className: e.button,
|
44
|
-
onClick:
|
45
|
-
onMouseDown:
|
46
|
+
onClick: c,
|
47
|
+
onMouseDown: u,
|
46
48
|
onMouseUp: m,
|
47
|
-
onMouseLeave:
|
49
|
+
onMouseLeave: w,
|
48
50
|
"data-testid": "eye-icon",
|
49
|
-
children: /* @__PURE__ */
|
50
|
-
|
51
|
+
children: /* @__PURE__ */ o(
|
52
|
+
x,
|
51
53
|
{
|
52
|
-
className: e.icon,
|
53
|
-
|
54
|
+
className: l(e.icon, {
|
55
|
+
[e.show]: s
|
56
|
+
}),
|
57
|
+
iconName: "Eye24px"
|
54
58
|
}
|
55
59
|
)
|
56
60
|
}
|
@@ -59,7 +63,7 @@ import '../../assets/InputPassword.css';const N = "_input_qgg1v_2", q = "_wrappe
|
|
59
63
|
}
|
60
64
|
)
|
61
65
|
);
|
62
|
-
|
66
|
+
P.displayName = "InputPassword";
|
63
67
|
export {
|
64
|
-
|
68
|
+
P as InputPassword
|
65
69
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
2
2
|
import { memo as I, forwardRef as i, useState as c, useCallback as f, useImperativeHandle as P } from "react";
|
3
3
|
import { getMaskedInputPhoneValue as m, getUnmaskedInputValue as o } from "./utils.js";
|
4
|
-
import { I as b } from "../../Input-
|
4
|
+
import { I as b } from "../../Input-BU_6U1CW.js";
|
5
5
|
const h = I(
|
6
6
|
i(
|
7
7
|
({ value: s = "", onChange: e, ...p }, a) => {
|
@@ -1,191 +1,171 @@
|
|
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
|
-
|
1
|
+
import { jsxs as o, jsx as i, Fragment as k } from "react/jsx-runtime";
|
2
|
+
import { c as p } from "../../index-DIxK0V-G.js";
|
3
|
+
import { memo as K, useState as T, useEffect as Q } from "react";
|
4
|
+
import { EInputRangeSliderPositions as y, EInputRangeSliderBorderState as L, DEFAULT_STEP as X, DEFAULT_WIDTH as w } from "./constants.js";
|
5
|
+
import '../../assets/InputRangeSlider.css';const Y = "_wrapper_1kfjr_8", Z = "_input_1kfjr_18", V = "_rail_1kfjr_115", C = "_off_1kfjr_124", S = "_right_1kfjr_124", rr = "_left_1kfjr_145", tr = "_control_1kfjr_36", nr = "_disabled_1kfjr_170", r = {
|
6
|
+
"main-wrapper": "_main-wrapper_1kfjr_2",
|
7
|
+
wrapper: Y,
|
8
|
+
"input-wrapper": "_input-wrapper_1kfjr_18",
|
9
|
+
"info-wrapper": "_info-wrapper_1kfjr_26",
|
10
|
+
"control-wrapper": "_control-wrapper_1kfjr_36",
|
11
|
+
input: Z,
|
12
|
+
"equal-value": "_equal-value_1kfjr_108",
|
13
|
+
"is-double-range": "_is-double-range_1kfjr_111",
|
14
|
+
rail: V,
|
15
|
+
off: C,
|
16
|
+
right: S,
|
17
|
+
"double-range": "_double-range_1kfjr_124",
|
18
|
+
"inner-rail": "_inner-rail_1kfjr_134",
|
19
|
+
left: rr,
|
20
|
+
control: tr,
|
21
|
+
disabled: nr
|
22
|
+
}, er = K(
|
21
23
|
({
|
22
|
-
min:
|
23
|
-
max:
|
24
|
-
value:
|
25
|
-
disabled:
|
26
|
-
isMinEqualMax:
|
27
|
-
isSingleSlider:
|
28
|
-
onChange:
|
29
|
-
step:
|
30
|
-
borderState:
|
31
|
-
positions:
|
32
|
-
minMaxDescriptions:
|
33
|
-
onChangeValue:
|
34
|
-
wrapperClassName:
|
35
|
-
...
|
24
|
+
min: l,
|
25
|
+
max: j,
|
26
|
+
value: t,
|
27
|
+
disabled: N,
|
28
|
+
isMinEqualMax: $ = !1,
|
29
|
+
isSingleSlider: a = !0,
|
30
|
+
onChange: f,
|
31
|
+
step: x = X,
|
32
|
+
borderState: h = L.ON,
|
33
|
+
positions: b = y.LEFT,
|
34
|
+
minMaxDescriptions: q,
|
35
|
+
onChangeValue: _,
|
36
|
+
wrapperClassName: O,
|
37
|
+
...W
|
36
38
|
}) => {
|
37
|
-
const [
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
(
|
60
|
-
|
61
|
-
|
62
|
-
|
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,
|
39
|
+
const [m, D] = T(() => (t == null ? void 0 : t.min) ?? l), [d, F] = T(() => (t == null ? void 0 : t.max) ?? j), {
|
40
|
+
max: I,
|
41
|
+
min: R,
|
42
|
+
maxClassName: A,
|
43
|
+
minClassName: U
|
44
|
+
} = q ?? {};
|
45
|
+
Q(() => {
|
46
|
+
t && (t.min && D(t.min), t.max && F(t.max));
|
47
|
+
}, [t]);
|
48
|
+
const g = (n) => {
|
49
|
+
n.preventDefault();
|
50
|
+
const s = Math.min(
|
51
|
+
+n.target.value,
|
52
|
+
a || $ ? d : d - x
|
53
|
+
);
|
54
|
+
t || D(s), _ == null || _({ min: s, max: d }), f == null || f(n);
|
55
|
+
}, B = (n) => {
|
56
|
+
n.preventDefault();
|
57
|
+
const s = Math.max(
|
58
|
+
+n.target.value,
|
59
|
+
$ ? m : m + x
|
60
|
+
);
|
61
|
+
t || F(s), _ == null || _({ min: m, max: s }), f == null || f(n);
|
62
|
+
}, E = (m - l) / (j - l) * w, c = (d - l) / (j - l) * w, e = b === y.LEFT, H = m === d && c !== 0, M = h === L.OFF, v = () => {
|
63
|
+
const n = {
|
64
|
+
...W,
|
72
65
|
type: "range",
|
73
|
-
min:
|
74
|
-
max:
|
75
|
-
step:
|
76
|
-
|
77
|
-
onMouseLeave: Q
|
78
|
-
}, e = /* @__PURE__ */ c(
|
66
|
+
min: l,
|
67
|
+
max: j,
|
68
|
+
step: x
|
69
|
+
}, s = /* @__PURE__ */ i(
|
79
70
|
"input",
|
80
71
|
{
|
81
|
-
...
|
82
|
-
className:
|
83
|
-
[r["equal-value"]]:
|
84
|
-
[r["is-double-range"]]: !
|
72
|
+
...n,
|
73
|
+
className: p(r.input, {
|
74
|
+
[r["equal-value"]]: H,
|
75
|
+
[r["is-double-range"]]: !a
|
85
76
|
}),
|
86
|
-
disabled:
|
87
|
-
value:
|
88
|
-
onChange:
|
89
|
-
onMouseDown: () => F("min"),
|
90
|
-
onMouseEnter: () => $("min")
|
77
|
+
disabled: N,
|
78
|
+
value: m,
|
79
|
+
onChange: g
|
91
80
|
}
|
92
|
-
),
|
81
|
+
), u = /* @__PURE__ */ i(
|
93
82
|
"input",
|
94
83
|
{
|
95
|
-
...
|
96
|
-
className:
|
97
|
-
[r["is-double-range"]]: !
|
84
|
+
...n,
|
85
|
+
className: p(r.input, {
|
86
|
+
[r["is-double-range"]]: !a
|
98
87
|
}),
|
99
|
-
disabled:
|
100
|
-
value:
|
101
|
-
onChange:
|
102
|
-
onMouseDown: () => F("max"),
|
103
|
-
onMouseEnter: () => $("max")
|
88
|
+
disabled: N,
|
89
|
+
value: d,
|
90
|
+
onChange: B
|
104
91
|
}
|
105
92
|
);
|
106
|
-
return
|
107
|
-
|
108
|
-
|
93
|
+
return a ? e ? s : u : /* @__PURE__ */ o(k, { children: [
|
94
|
+
s,
|
95
|
+
u
|
109
96
|
] });
|
110
|
-
},
|
111
|
-
|
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(
|
97
|
+
}, z = () => {
|
98
|
+
const n = /* @__PURE__ */ i(
|
119
99
|
"div",
|
120
100
|
{
|
121
|
-
className:
|
101
|
+
className: p(r.control, {
|
102
|
+
[r.disabled]: N
|
103
|
+
}),
|
122
104
|
style: {
|
123
|
-
left:
|
124
|
-
zIndex: x === "min" ? f.ACTIVE : I ? f.PRIORITY : f.BACKGROUND
|
105
|
+
left: `${E}%`
|
125
106
|
}
|
126
107
|
}
|
127
|
-
),
|
108
|
+
), s = /* @__PURE__ */ i(
|
128
109
|
"div",
|
129
110
|
{
|
130
|
-
className:
|
111
|
+
className: p(r.control, {
|
112
|
+
[r.disabled]: N
|
113
|
+
}),
|
131
114
|
style: {
|
132
|
-
left:
|
133
|
-
zIndex: x === "max" ? f.ACTIVE : I ? f.BACKGROUND : f.PRIORITY
|
115
|
+
left: `${c}%`
|
134
116
|
}
|
135
117
|
}
|
136
|
-
),
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
}
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
);
|
166
|
-
return
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
t,
|
174
|
-
e
|
118
|
+
), u = () => M ? e ? `${E}%` : `${w - c}%` : e ? void 0 : `${w - c}%`, G = a && !e ? "0%" : `${w - c}%`, J = a && !e ? u() : `${c - E}%`, P = /* @__PURE__ */ o(k, { children: [
|
119
|
+
/* @__PURE__ */ i(
|
120
|
+
"div",
|
121
|
+
{
|
122
|
+
style: {
|
123
|
+
width: !M && !e ? `${c}%` : u()
|
124
|
+
},
|
125
|
+
className: p(r.rail, r[h], r[b], {
|
126
|
+
[r["double-range"]]: !a
|
127
|
+
})
|
128
|
+
}
|
129
|
+
),
|
130
|
+
/* @__PURE__ */ i(
|
131
|
+
"div",
|
132
|
+
{
|
133
|
+
style: {
|
134
|
+
right: G,
|
135
|
+
width: J
|
136
|
+
},
|
137
|
+
className: p(
|
138
|
+
r["inner-rail"],
|
139
|
+
r[h],
|
140
|
+
r[b],
|
141
|
+
{
|
142
|
+
[r["double-range"]]: !a
|
143
|
+
}
|
144
|
+
)
|
145
|
+
}
|
146
|
+
)
|
147
|
+
] });
|
148
|
+
return a ? /* @__PURE__ */ o(k, { children: [
|
149
|
+
e ? n : s,
|
150
|
+
P
|
151
|
+
] }) : /* @__PURE__ */ o(k, { children: [
|
152
|
+
n,
|
153
|
+
P,
|
154
|
+
s
|
175
155
|
] });
|
176
156
|
};
|
177
|
-
return /* @__PURE__ */
|
178
|
-
/* @__PURE__ */
|
179
|
-
!!
|
180
|
-
!!
|
157
|
+
return /* @__PURE__ */ o("div", { className: p(r["main-wrapper"], O), children: [
|
158
|
+
/* @__PURE__ */ o("div", { className: r["info-wrapper"], children: [
|
159
|
+
!!R && /* @__PURE__ */ i("div", { className: U, children: R }),
|
160
|
+
!!I && /* @__PURE__ */ i("div", { className: A, children: I })
|
181
161
|
] }),
|
182
|
-
/* @__PURE__ */
|
183
|
-
/* @__PURE__ */
|
184
|
-
/* @__PURE__ */
|
162
|
+
/* @__PURE__ */ o("div", { className: r.wrapper, children: [
|
163
|
+
/* @__PURE__ */ i("div", { className: r["control-wrapper"], children: z() }),
|
164
|
+
/* @__PURE__ */ i("div", { className: r["input-wrapper"], children: v() })
|
185
165
|
] })
|
186
166
|
] });
|
187
167
|
}
|
188
168
|
);
|
189
169
|
export {
|
190
|
-
|
170
|
+
er as InputRangeSlider
|
191
171
|
};
|
@@ -1,13 +1,8 @@
|
|
1
|
-
var
|
2
|
-
const
|
3
|
-
ACTIVE: 10,
|
4
|
-
PRIORITY: 5,
|
5
|
-
BACKGROUND: 4
|
6
|
-
};
|
1
|
+
var F = /* @__PURE__ */ ((T) => (T.LEFT = "left", T.RIGHT = "right", T))(F || {}), r = /* @__PURE__ */ ((T) => (T.ON = "on", T.OFF = "off", T))(r || {});
|
2
|
+
const f = 1, D = 100;
|
7
3
|
export {
|
8
|
-
|
9
|
-
|
10
|
-
r as
|
11
|
-
|
12
|
-
O as EInputRangeSliderPositions
|
4
|
+
f as DEFAULT_STEP,
|
5
|
+
D as DEFAULT_WIDTH,
|
6
|
+
r as EInputRangeSliderBorderState,
|
7
|
+
F as EInputRangeSliderPositions
|
13
8
|
};
|
@@ -1,59 +1,57 @@
|
|
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:
|
16
|
-
gray:
|
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
|
+
gray: y
|
17
17
|
};
|
18
|
-
function
|
19
|
-
value:
|
20
|
-
onChange:
|
21
|
-
classNameWrapper:
|
22
|
-
variant:
|
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,
|
25
|
+
const [a, f] = h(n);
|
26
26
|
u(() => {
|
27
|
-
|
28
|
-
}, [
|
29
|
-
const
|
30
|
-
const t = [...a.filter((
|
31
|
-
|
27
|
+
f(n);
|
28
|
+
}, [n]);
|
29
|
+
const p = async (i) => {
|
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
|
-
|
39
|
-
e[
|
38
|
+
l,
|
39
|
+
e[c]
|
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__ */ 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
|
-
iconName: "Close12px",
|
53
52
|
size: "m-s",
|
54
|
-
variant: "
|
55
|
-
|
56
|
-
onClick: () => _(i.id)
|
53
|
+
variant: "gray",
|
54
|
+
onClick: () => p(i.id)
|
57
55
|
}
|
58
56
|
)
|
59
57
|
] }, t))
|
@@ -61,5 +59,5 @@ function F({
|
|
61
59
|
) : null;
|
62
60
|
}
|
63
61
|
export {
|
64
|
-
|
62
|
+
E as ListFiles
|
65
63
|
};
|
@@ -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 u } from "../../index-DIxK0V-G.js";
|
3
|
+
import { useState as _, useEffect as f } from "react";
|
4
|
+
import { Button as d } from "../Button/Button.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_1tpc1_2",
|
7
|
+
"list-photos-item": "_list-photos-item_1tpc1_11",
|
8
|
+
"list-photos-image": "_list-photos-image_1tpc1_20",
|
9
|
+
"delete-button": "_delete-button_1tpc1_25"
|
10
10
|
};
|
11
11
|
function x({ value: o, onChange: s, classNameWrapper: r }) {
|
12
|
-
const [e,
|
13
|
-
|
14
|
-
|
12
|
+
const [e, c] = _(o);
|
13
|
+
f(() => {
|
14
|
+
c(o);
|
15
15
|
}, [o]);
|
16
|
-
const
|
17
|
-
const
|
18
|
-
m
|
16
|
+
const p = async (t) => {
|
17
|
+
const m = [...e.filter((a) => a.id !== t)];
|
18
|
+
c(m), s == null || s({ deleteId: t, list: m });
|
19
19
|
};
|
20
|
-
return e.length ? /* @__PURE__ */ l("ul", { className:
|
20
|
+
return e.length ? /* @__PURE__ */ l("ul", { className: u(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,11 +29,12 @@ function x({ value: o, onChange: s, classNameWrapper: r }) {
|
|
29
29
|
s && /* @__PURE__ */ l(
|
30
30
|
d,
|
31
31
|
{
|
32
|
-
|
33
|
-
variant: "gray",
|
32
|
+
isIconButton: !0,
|
34
33
|
iconName: "Close12px",
|
34
|
+
size: "m-s",
|
35
|
+
variant: "secondary-gray",
|
35
36
|
className: i["delete-button"],
|
36
|
-
onClick: () =>
|
37
|
+
onClick: () => p(t.id)
|
37
38
|
}
|
38
39
|
)
|
39
40
|
] }, t.id)) }) : null;
|