mimir-ui-kit 1.41.3 → 1.41.5
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-DAmc_HxO.js → Input-BU_6U1CW.js} +63 -63
- package/dist/assets/CardTrail.css +1 -1
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/Dropdown.css +1 -1
- package/dist/assets/Image.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/MergedButton.css +1 -1
- package/dist/assets/OtpInput.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/PromoSlider.css +1 -1
- package/dist/assets/RadioGroup.css +1 -1
- package/dist/assets/ScrollBar.css +1 -0
- package/dist/assets/Slider.css +1 -1
- package/dist/assets/Timer.css +1 -1
- package/dist/assets/stories.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/components/CardTrail/CardTrail.d.ts +4 -0
- package/dist/components/CardTrail/CardTrail.js +75 -66
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/Drawer/Drawer.js +74 -74
- package/dist/components/Dropdown/Dropdown.js +121 -121
- package/dist/components/Image/Image.js +28 -33
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputPassword/InputPassword.js +1 -1
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/MergedButton/MergedButton.d.ts +4 -4
- package/dist/components/MergedButton/MergedButton.js +35 -27
- package/dist/components/MultiSelectSearch/MultiSelectSearch.js +1 -1
- package/dist/components/MultiSelectSearch/utils.js +1 -1
- package/dist/components/OtpInput/OtpInput.js +28 -28
- package/dist/components/Pagination/Pagination.js +28 -28
- package/dist/components/PromoSlider/PromoSlider.d.ts +1 -5
- package/dist/components/PromoSlider/PromoSlider.js +190 -200
- package/dist/components/RadioGroup/RadioGroup.js +79 -79
- package/dist/components/ScrollBar/ScrollBar.d.ts +17 -0
- package/dist/components/ScrollBar/ScrollBar.js +22 -0
- package/dist/components/ScrollBar/constants.d.ts +8 -0
- package/dist/components/ScrollBar/constants.js +5 -0
- package/dist/components/SelectSearch/SelectSearch.js +1 -1
- package/dist/components/SelectSearch/utils.js +1 -1
- package/dist/components/Slider/Slider.js +40 -40
- package/dist/components/Table/ColumnOrderSettings.js +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/TableBody.js +1 -1
- package/dist/components/Table/TableCard.js +1 -1
- package/dist/components/Table/TableCardsView.js +1 -1
- package/dist/components/Table/TableFilters.js +1 -1
- package/dist/components/Table/TableHeader.js +1 -1
- package/dist/components/Table/TableRow.js +1 -1
- package/dist/components/Table/TableScrollButtons.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/Timer/Timer.js +6 -6
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/stories.module-DBGkpJ-O.js +29 -0
- package/dist/styles.module-9m98aUhp.js +36 -0
- package/package.json +6 -2
- package/src/assets/styles/mixins/animations.scss +3 -0
- package/src/assets/styles/mixins/index.scss +3 -0
- package/src/assets/styles/mixins/media.scss +21 -0
- package/src/assets/styles/mixins/scrollbar.scss +43 -0
- package/dist/stories.module-fud786VB.js +0 -29
- package/dist/styles.module--QBQYoA9.js +0 -36
@@ -1,15 +1,15 @@
|
|
1
|
-
import { jsxs as ee, jsx as
|
2
|
-
import { K as
|
3
|
-
import { W, y as
|
4
|
-
import E, { createContext as ce, useId as q, useReducer as xe, useRef as B, useMemo as T, useCallback as
|
5
|
-
import { u as
|
1
|
+
import { jsxs as ee, jsx as S, Fragment as _e } from "react/jsx-runtime";
|
2
|
+
import { K as M, w as ke, a as oe, z as te, U as ie, b as Oe, T as we, j as ye, u as Pe, I as Ee, G as Te, p as De } from "../../label-DOlEWXBl.js";
|
3
|
+
import { W as V, y as W, o as L, H as K, s as ne, n as se, $ as le, b as de, D as ue, a as Ce, u as Ge, c as F } from "../../keyboard-CUMsrFX1.js";
|
4
|
+
import E, { createContext as ce, useId as q, useReducer as xe, useRef as B, useMemo as T, useCallback as ze, useContext as pe, forwardRef as Fe } from "react";
|
5
|
+
import { u as Ne } from "../../use-by-comparator-CVuf9KBq.js";
|
6
6
|
import { r as fe } from "../../bugs-diTMAGNw.js";
|
7
|
-
import { P as re, F as
|
8
|
-
import { c as
|
9
|
-
import '../../assets/RadioGroup.css';var
|
10
|
-
let
|
7
|
+
import { P as re, F as j, T as ae, _ as Ae } from "../../focus-management-Dp2_vbQ3.js";
|
8
|
+
import { c as H } from "../../index-DIxK0V-G.js";
|
9
|
+
import '../../assets/RadioGroup.css';var Ie = ((e) => (e[e.RegisterOption = 0] = "RegisterOption", e[e.UnregisterOption = 1] = "UnregisterOption", e))(Ie || {});
|
10
|
+
let Se = { 0(e, r) {
|
11
11
|
let o = [...e.options, { id: r.id, element: r.element, propsRef: r.propsRef }];
|
12
|
-
return { ...e, options:
|
12
|
+
return { ...e, options: Ae(o, (a) => a.element.current) };
|
13
13
|
}, 1(e, r) {
|
14
14
|
let o = e.options.slice(), a = e.options.findIndex((u) => u.id === r.id);
|
15
15
|
return a === -1 ? e : (o.splice(a, 1), { ...e, options: o });
|
@@ -33,86 +33,86 @@ function Y(e) {
|
|
33
33
|
}
|
34
34
|
return r;
|
35
35
|
}
|
36
|
-
function
|
37
|
-
return Ce(r.type,
|
36
|
+
function Le(e, r) {
|
37
|
+
return Ce(r.type, Se, e, r);
|
38
38
|
}
|
39
|
-
let
|
40
|
-
function
|
41
|
-
let o = q(), a = oe(), { id: u = `headlessui-radiogroup-${o}`, value: _, form: v, name: c, onChange:
|
42
|
-
var
|
39
|
+
let Ue = "div";
|
40
|
+
function je(e, r) {
|
41
|
+
let o = q(), a = oe(), { id: u = `headlessui-radiogroup-${o}`, value: _, form: v, name: c, onChange: s, by: m, disabled: l = a || !1, defaultValue: n, ...k } = e, d = Ne(m), [O, D] = xe(Le, { options: [] }), p = O.options, [w, N] = te(), [C, y] = ie(), P = B(null), G = W(P, r), $ = Oe(n), [t, x] = we(_, s, $), z = T(() => p.find((i) => !i.propsRef.current.disabled), [p]), g = T(() => p.some((i) => d(i.propsRef.current.value, t)), [p, t]), f = L((i) => {
|
42
|
+
var A;
|
43
43
|
if (l || d(i, t)) return !1;
|
44
|
-
let
|
45
|
-
return
|
46
|
-
}), be =
|
47
|
-
let
|
48
|
-
if (!
|
49
|
-
let
|
44
|
+
let R = (A = p.find((U) => d(U.propsRef.current.value, i))) == null ? void 0 : A.propsRef.current;
|
45
|
+
return R != null && R.disabled ? !1 : (x == null || x(i), !0);
|
46
|
+
}), be = L((i) => {
|
47
|
+
let A = P.current;
|
48
|
+
if (!A) return;
|
49
|
+
let R = Ge(A), U = p.filter((b) => b.propsRef.current.disabled === !1).map((b) => b.element.current);
|
50
50
|
switch (i.key) {
|
51
|
-
case
|
51
|
+
case F.Enter:
|
52
52
|
De(i.currentTarget);
|
53
53
|
break;
|
54
|
-
case
|
55
|
-
case
|
56
|
-
if (i.preventDefault(), i.stopPropagation(), re(
|
57
|
-
let b = p.find((
|
54
|
+
case F.ArrowLeft:
|
55
|
+
case F.ArrowUp:
|
56
|
+
if (i.preventDefault(), i.stopPropagation(), re(U, j.Previous | j.WrapAround) === ae.Success) {
|
57
|
+
let b = p.find((I) => I.element.current === (R == null ? void 0 : R.activeElement));
|
58
58
|
b && f(b.propsRef.current.value);
|
59
59
|
}
|
60
60
|
break;
|
61
|
-
case
|
62
|
-
case
|
63
|
-
if (i.preventDefault(), i.stopPropagation(), re(
|
64
|
-
let b = p.find((
|
61
|
+
case F.ArrowRight:
|
62
|
+
case F.ArrowDown:
|
63
|
+
if (i.preventDefault(), i.stopPropagation(), re(U, j.Next | j.WrapAround) === ae.Success) {
|
64
|
+
let b = p.find((I) => I.element.current === (R == null ? void 0 : R.activeElement));
|
65
65
|
b && f(b.propsRef.current.value);
|
66
66
|
}
|
67
67
|
break;
|
68
|
-
case
|
68
|
+
case F.Space:
|
69
69
|
{
|
70
70
|
i.preventDefault(), i.stopPropagation();
|
71
|
-
let b = p.find((
|
71
|
+
let b = p.find((I) => I.element.current === (R == null ? void 0 : R.activeElement));
|
72
72
|
b && f(b.propsRef.current.value);
|
73
73
|
}
|
74
74
|
break;
|
75
75
|
}
|
76
|
-
}), Z =
|
76
|
+
}), Z = L((i) => (D({ type: 0, ...i }), () => D({ type: 1, id: i.id }))), ve = T(() => ({ value: t, firstOption: z, containsCheckedOption: g, disabled: l, compare: d, ...O }), [t, z, g, l, d, O]), he = T(() => ({ registerOption: Z, change: f }), [Z, f]), Re = { ref: G, id: u, role: "radiogroup", "aria-labelledby": w, "aria-describedby": C, onKeyDown: be }, $e = T(() => ({ value: t }), [t]), ge = ze(() => {
|
77
77
|
if ($ !== void 0) return f($);
|
78
78
|
}, [f, $]);
|
79
|
-
return E.createElement(
|
79
|
+
return E.createElement(y, { name: "RadioGroup.Description" }, E.createElement(N, { name: "RadioGroup.Label" }, E.createElement(Q.Provider, { value: he }, E.createElement(J.Provider, { value: ve }, c != null && E.createElement(ye, { disabled: l, data: { [c]: t || "on" }, overrides: { type: "radio", checked: t != null }, form: v, onReset: ge }), K({ ourProps: Re, theirProps: k, slot: $e, defaultTag: Ue, name: "RadioGroup" })))));
|
80
80
|
}
|
81
|
-
let
|
82
|
-
function
|
81
|
+
let He = "div";
|
82
|
+
function Me(e, r) {
|
83
83
|
var o;
|
84
|
-
let a = X("RadioGroup.Option"), u = Y("RadioGroup.Option"), _ = q(), { id: v = `headlessui-radiogroup-option-${_}`, value: c, disabled:
|
85
|
-
|
86
|
-
let
|
84
|
+
let a = X("RadioGroup.Option"), u = Y("RadioGroup.Option"), _ = q(), { id: v = `headlessui-radiogroup-option-${_}`, value: c, disabled: s = a.disabled || !1, autoFocus: m = !1, ...l } = e, n = B(null), k = W(n, r), [d, O] = te(), [D, p] = ie(), w = ne({ value: c, disabled: s });
|
85
|
+
se(() => u.registerOption({ id: v, element: n, propsRef: w }), [v, u, n, w]);
|
86
|
+
let N = L((g) => {
|
87
87
|
var f;
|
88
88
|
if (fe(g.currentTarget)) return g.preventDefault();
|
89
|
-
u.change(c) && ((f =
|
90
|
-
}), C = ((o = a.firstOption) == null ? void 0 : o.id) === v, { isFocusVisible:
|
91
|
-
return E.createElement(p, { name: "RadioGroup.Description" }, E.createElement(
|
89
|
+
u.change(c) && ((f = n.current) == null || f.focus());
|
90
|
+
}), C = ((o = a.firstOption) == null ? void 0 : o.id) === v, { isFocusVisible: y, focusProps: P } = le({ autoFocus: m }), { isHovered: G, hoverProps: $ } = de({ isDisabled: s }), t = a.compare(a.value, c), x = ue({ ref: k, id: v, role: "radio", "aria-checked": t ? "true" : "false", "aria-labelledby": d, "aria-describedby": D, "aria-disabled": s ? !0 : void 0, tabIndex: s ? -1 : t || !a.containsCheckedOption && C ? 0 : -1, onClick: s ? void 0 : N, autoFocus: m }, P, $), z = T(() => ({ checked: t, disabled: s, active: y, hover: G, focus: y, autofocus: m }), [t, s, G, y, m]);
|
91
|
+
return E.createElement(p, { name: "RadioGroup.Description" }, E.createElement(O, { name: "RadioGroup.Label" }, K({ ourProps: x, theirProps: l, slot: z, defaultTag: He, name: "RadioGroup.Option" })));
|
92
92
|
}
|
93
|
-
let
|
94
|
-
function
|
93
|
+
let Ve = "span";
|
94
|
+
function We(e, r) {
|
95
95
|
var o;
|
96
|
-
let a = X("Radio"), u = Y("Radio"), _ = q(), v = Pe(), c = oe(), { id:
|
97
|
-
|
98
|
-
let
|
96
|
+
let a = X("Radio"), u = Y("Radio"), _ = q(), v = Pe(), c = oe(), { id: s = v || `headlessui-radio-${_}`, value: m, disabled: l = a.disabled || c || !1, autoFocus: n = !1, ...k } = e, d = B(null), O = W(d, r), D = Ee(), p = Te(), w = ne({ value: m, disabled: l });
|
97
|
+
se(() => u.registerOption({ id: s, element: d, propsRef: w }), [s, u, d, w]);
|
98
|
+
let N = L((g) => {
|
99
99
|
var f;
|
100
100
|
if (fe(g.currentTarget)) return g.preventDefault();
|
101
101
|
u.change(m) && ((f = d.current) == null || f.focus());
|
102
|
-
}), { isFocusVisible: C, focusProps:
|
103
|
-
return K({ ourProps: x, theirProps:
|
102
|
+
}), { isFocusVisible: C, focusProps: y } = le({ autoFocus: n }), { isHovered: P, hoverProps: G } = de({ isDisabled: l }), $ = ((o = a.firstOption) == null ? void 0 : o.id) === s, t = a.compare(a.value, m), x = ue({ ref: O, id: s, role: "radio", "aria-checked": t ? "true" : "false", "aria-labelledby": D, "aria-describedby": p, "aria-disabled": l ? !0 : void 0, tabIndex: l ? -1 : t || !a.containsCheckedOption && $ ? 0 : -1, autoFocus: n, onClick: l ? void 0 : N }, y, G), z = T(() => ({ checked: t, disabled: l, hover: P, focus: C, autofocus: n }), [t, l, P, C, n]);
|
103
|
+
return K({ ourProps: x, theirProps: k, slot: z, defaultTag: Ve, name: "Radio" });
|
104
104
|
}
|
105
|
-
let Ke =
|
106
|
-
const Qe = "
|
105
|
+
let Ke = V(je), qe = V(Me), me = V(We), Be = M, Je = ke, Xe = Object.assign(Ke, { Option: qe, Radio: me, Label: Be, Description: Je });
|
106
|
+
const Qe = "_group_po2hz_2", Ye = "_radio_po2hz_17", Ze = "_disabled_po2hz_39", er = "_label_po2hz_50", rr = "_frame_po2hz_63", ar = "_checked_po2hz_72", h = {
|
107
107
|
group: Qe,
|
108
|
-
"content-wrapper": "_content-
|
109
|
-
"radio-wrapper": "_radio-
|
108
|
+
"content-wrapper": "_content-wrapper_po2hz_7",
|
109
|
+
"radio-wrapper": "_radio-wrapper_po2hz_17",
|
110
110
|
radio: Ye,
|
111
111
|
disabled: Ze,
|
112
112
|
label: er,
|
113
113
|
frame: rr,
|
114
114
|
checked: ar
|
115
|
-
}, cr =
|
115
|
+
}, cr = Fe(
|
116
116
|
({
|
117
117
|
options: e,
|
118
118
|
value: r,
|
@@ -122,57 +122,57 @@ const Qe = "_group_yses6_3", Ye = "_radio_yses6_18", Ze = "_disabled_yses6_40",
|
|
122
122
|
classNameRadioSpan: _,
|
123
123
|
classNameContentWrapper: v,
|
124
124
|
...c
|
125
|
-
},
|
126
|
-
const m =
|
127
|
-
|
125
|
+
}, s) => {
|
126
|
+
const m = H(
|
127
|
+
h["radio-wrapper"],
|
128
128
|
u,
|
129
129
|
{
|
130
|
-
[
|
130
|
+
[h.disabled]: c.disabled
|
131
131
|
}
|
132
132
|
);
|
133
133
|
return /* @__PURE__ */ ee(
|
134
134
|
Xe,
|
135
135
|
{
|
136
|
-
ref:
|
136
|
+
ref: s,
|
137
137
|
value: r,
|
138
|
-
className:
|
138
|
+
className: h.group,
|
139
139
|
onChange: o,
|
140
140
|
...c,
|
141
141
|
children: [
|
142
|
-
a && /* @__PURE__ */
|
143
|
-
/* @__PURE__ */
|
142
|
+
a && /* @__PURE__ */ S(M, { as: "p", className: h.label, children: a }),
|
143
|
+
/* @__PURE__ */ S(
|
144
144
|
"div",
|
145
145
|
{
|
146
|
-
className:
|
147
|
-
|
146
|
+
className: H(
|
147
|
+
h["content-wrapper"],
|
148
148
|
v
|
149
149
|
),
|
150
|
-
children: e.map(({ label: l, value:
|
150
|
+
children: e.map(({ label: l, value: n }) => /* @__PURE__ */ S(
|
151
151
|
me,
|
152
152
|
{
|
153
153
|
as: "span",
|
154
|
-
value:
|
154
|
+
value: n,
|
155
155
|
disabled: c.disabled,
|
156
156
|
className: m,
|
157
|
-
"data-testid": `radio-option-${
|
158
|
-
children: ({ checked:
|
159
|
-
/* @__PURE__ */
|
160
|
-
|
157
|
+
"data-testid": `radio-option-${n}`,
|
158
|
+
children: ({ checked: k, disabled: d }) => /* @__PURE__ */ ee(_e, { children: [
|
159
|
+
/* @__PURE__ */ S(
|
160
|
+
M,
|
161
161
|
{
|
162
162
|
as: "span",
|
163
|
-
className:
|
164
|
-
|
163
|
+
className: H(
|
164
|
+
h.radio,
|
165
165
|
{
|
166
|
-
[
|
166
|
+
[h.disabled]: c.disabled
|
167
167
|
},
|
168
168
|
_
|
169
169
|
),
|
170
|
-
children: /* @__PURE__ */
|
170
|
+
children: /* @__PURE__ */ S(
|
171
171
|
"span",
|
172
172
|
{
|
173
|
-
className:
|
174
|
-
[
|
175
|
-
[
|
173
|
+
className: H(h.frame, {
|
174
|
+
[h.checked]: k,
|
175
|
+
[h.disabled]: d
|
176
176
|
})
|
177
177
|
}
|
178
178
|
)
|
@@ -181,7 +181,7 @@ const Qe = "_group_yses6_3", Ye = "_radio_yses6_18", Ze = "_disabled_yses6_40",
|
|
181
181
|
l
|
182
182
|
] })
|
183
183
|
},
|
184
|
-
typeof
|
184
|
+
typeof n == "string" ? n : String(n)
|
185
185
|
))
|
186
186
|
}
|
187
187
|
)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { EScrollBarVariant, EScrollBarSize } from './constants';
|
3
|
+
|
4
|
+
export type TProps = {
|
5
|
+
/**
|
6
|
+
* Вариант скроллбара. Возможные значения 'light', 'dark'.
|
7
|
+
* Первый параметр в миксине scroll-bar. `EScrollBarVariant`
|
8
|
+
*/
|
9
|
+
variant?: `${EScrollBarVariant}` | EScrollBarVariant;
|
10
|
+
/**
|
11
|
+
* Размер скроллбара. Возможные значения определены в перечислении 's', 'm'.
|
12
|
+
* Второй параметр в миксине scroll-bar. `EScrollBarSize`
|
13
|
+
*/
|
14
|
+
size?: `${EScrollBarSize}` | EScrollBarSize;
|
15
|
+
};
|
16
|
+
declare const ScrollBar: React.FC<TProps>;
|
17
|
+
export default ScrollBar;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
2
|
+
import { EScrollBarVariant as o, EScrollBarSize as e } from "./constants.js";
|
3
|
+
import '../../assets/ScrollBar.css';const t = "_scrollBarWrap_il71w_2", i = "_scrollBar_il71w_2", m = "_elem_il71w_91", l = {
|
4
|
+
scrollBarWrap: t,
|
5
|
+
scrollBar: i,
|
6
|
+
elem: m
|
7
|
+
}, _ = ({
|
8
|
+
variant: a = o.LIGHT,
|
9
|
+
size: s = e.M
|
10
|
+
}) => /* @__PURE__ */ r("div", { className: l.scrollBarWrap, children: /* @__PURE__ */ r(
|
11
|
+
"div",
|
12
|
+
{
|
13
|
+
"data-testid": "scrollbar",
|
14
|
+
"data-variant": a,
|
15
|
+
"data-size": s,
|
16
|
+
className: l.scrollBar,
|
17
|
+
children: [...Array(34)].map((B, c) => /* @__PURE__ */ r("div", { className: l.elem }, c))
|
18
|
+
}
|
19
|
+
) });
|
20
|
+
export {
|
21
|
+
_ as default
|
22
|
+
};
|
@@ -5,7 +5,7 @@ import { ESelectSearchSize as b } from "./constants.js";
|
|
5
5
|
import { mapSizeToInputSize as A, getDropdownArrowIcon as J } from "./utils.js";
|
6
6
|
import { Icon as O } from "../../icons/Icon.js";
|
7
7
|
import { Button as Q } from "../Button/Button.js";
|
8
|
-
import { I as B } from "../../Input-
|
8
|
+
import { I as B } from "../../Input-BU_6U1CW.js";
|
9
9
|
import { EInputVariant as X } from "../Input/constants.js";
|
10
10
|
import { H as Y, U as M, G as j, K as Z, W as ee } from "../../combobox-Dv6-ANkb.js";
|
11
11
|
import '../../assets/SelectSearch.css';const te = "_disabled_lhab4_6", oe = "_container_lhab4_13", ae = "_full_lhab4_26", se = "_button_lhab4_38", ne = "_options_lhab4_52", le = "_top_lhab4_63", ie = "_bottom_lhab4_69", re = "_s_lhab4_2", ce = "_m_lhab4_110", de = "_l_lhab4_123", pe = "_option_lhab4_52", ue = "_clear_lhab4_175", e = {
|
@@ -1,30 +1,30 @@
|
|
1
|
-
import { jsx as s, jsxs as n, Fragment as
|
1
|
+
import { jsx as s, jsxs as n, Fragment as $ } from "react/jsx-runtime";
|
2
2
|
import { c as a } from "../../index-DIxK0V-G.js";
|
3
|
-
import { memo as
|
4
|
-
import { u as
|
3
|
+
import { memo as k, useCallback as d, useMemo as F, forwardRef as j, useRef as S, useState as D } from "react";
|
4
|
+
import { u as U, S as Y, A as z, a as G } from "../../swiper-react-BvAw14a4.js";
|
5
5
|
import { EProgressBarPosition as N } from "./constants.js";
|
6
|
-
import { AppImage as
|
6
|
+
import { AppImage as q } from "../Image/Image.js";
|
7
7
|
import { MergedButton as H } from "../MergedButton/MergedButton.js";
|
8
|
-
import '../../assets/Slider.css';const J = "
|
8
|
+
import '../../assets/Slider.css';const J = "_swiper_qafre_2", K = "_slide_qafre_8", Q = "_link_qafre_15", V = "_image_qafre_21", W = "_navigation_qafre_28", X = "_pagination_qafre_38", Z = "_slides_qafre_57", ee = "_separator_qafre_63", re = "_progress_qafre_70", se = "_descriptions_qafre_87", r = {
|
9
9
|
swiper: J,
|
10
10
|
slide: K,
|
11
11
|
link: Q,
|
12
12
|
image: V,
|
13
13
|
navigation: W,
|
14
14
|
pagination: X,
|
15
|
-
"is-full": "_is-
|
15
|
+
"is-full": "_is-full_qafre_52",
|
16
16
|
slides: Z,
|
17
17
|
separator: ee,
|
18
18
|
progress: re,
|
19
|
-
"progress-bar-bottom": "_progress-bar-
|
20
|
-
"progress-bar": "_progress-
|
19
|
+
"progress-bar-bottom": "_progress-bar-bottom_qafre_77",
|
20
|
+
"progress-bar": "_progress-bar_qafre_77",
|
21
21
|
descriptions: se
|
22
|
-
}, te = 15e3, ae =
|
23
|
-
const e =
|
22
|
+
}, te = 15e3, ae = k(() => {
|
23
|
+
const e = U(), o = d(() => {
|
24
24
|
e.slideNext();
|
25
25
|
}, [e]), l = d(() => {
|
26
26
|
e.slidePrev();
|
27
|
-
}, [e]), p =
|
27
|
+
}, [e]), p = F(
|
28
28
|
() => [
|
29
29
|
{
|
30
30
|
isIconButton: !0,
|
@@ -42,8 +42,8 @@ import '../../assets/Slider.css';const J = "_swiper_1f4c7_3", K = "_slide_1f4c7_
|
|
42
42
|
[l, o]
|
43
43
|
);
|
44
44
|
return /* @__PURE__ */ s(H, { buttons: p });
|
45
|
-
}),
|
46
|
-
|
45
|
+
}), v = k(
|
46
|
+
j((e, o) => /* @__PURE__ */ s(
|
47
47
|
"div",
|
48
48
|
{
|
49
49
|
"data-testid": "progress-bar-wrapper",
|
@@ -64,25 +64,25 @@ function fe({
|
|
64
64
|
children: o,
|
65
65
|
onSlideClick: l,
|
66
66
|
swiperClassName: p,
|
67
|
-
slideClassName:
|
67
|
+
slideClassName: x,
|
68
68
|
imageClassName: g,
|
69
|
-
navigationClassName:
|
70
|
-
sliderBottomPanelClassName:
|
71
|
-
descriptionsClassName:
|
69
|
+
navigationClassName: A,
|
70
|
+
sliderBottomPanelClassName: y,
|
71
|
+
descriptionsClassName: B,
|
72
72
|
progressBarPosition: h = "top",
|
73
|
-
isFullPaginationWidth:
|
73
|
+
isFullPaginationWidth: C = !1,
|
74
74
|
needNavigation: i = !0,
|
75
75
|
leftDescription: w,
|
76
76
|
rightDescription: b,
|
77
|
-
delay:
|
78
|
-
...
|
77
|
+
delay: I = te,
|
78
|
+
...P
|
79
79
|
}) {
|
80
|
-
const c = S(null), f = S(null), [
|
80
|
+
const c = S(null), f = S(null), [T, E] = D(1), L = `0${T}`, M = `0${(e == null ? void 0 : e.length) ?? 0}`, O = d(() => {
|
81
81
|
if (f.current && i) {
|
82
82
|
const t = f.current.swiper;
|
83
|
-
|
83
|
+
E(t.realIndex + 1);
|
84
84
|
}
|
85
|
-
}, [i]),
|
85
|
+
}, [i]), R = d(
|
86
86
|
(t, u) => {
|
87
87
|
if (c.current && i) {
|
88
88
|
const _ = t.params.autoplay.delay, m = u / _ * 100;
|
@@ -92,47 +92,47 @@ function fe({
|
|
92
92
|
[i]
|
93
93
|
);
|
94
94
|
return /* @__PURE__ */ n(
|
95
|
-
|
95
|
+
Y,
|
96
96
|
{
|
97
|
-
...
|
97
|
+
...P,
|
98
98
|
ref: f,
|
99
99
|
className: a(r.swiper, p),
|
100
100
|
loop: !0,
|
101
101
|
autoplay: {
|
102
|
-
delay:
|
102
|
+
delay: I,
|
103
103
|
disableOnInteraction: !1
|
104
104
|
},
|
105
105
|
fadeEffect: {
|
106
106
|
crossFade: !0
|
107
107
|
},
|
108
108
|
modules: [z],
|
109
|
-
onAutoplayTimeLeft:
|
110
|
-
onSlideChange:
|
109
|
+
onAutoplayTimeLeft: R,
|
110
|
+
onSlideChange: O,
|
111
111
|
children: [
|
112
112
|
/* @__PURE__ */ s(
|
113
113
|
"div",
|
114
114
|
{
|
115
|
-
className: a(r.navigation,
|
115
|
+
className: a(r.navigation, A),
|
116
116
|
slot: "container-start",
|
117
|
-
children: i && /* @__PURE__ */ n(
|
117
|
+
children: i && /* @__PURE__ */ n($, { children: [
|
118
118
|
/* @__PURE__ */ n(
|
119
119
|
"div",
|
120
120
|
{
|
121
121
|
"data-testid": "pagination",
|
122
122
|
className: a(r.pagination, {
|
123
|
-
[r["is-full"]]:
|
123
|
+
[r["is-full"]]: C
|
124
124
|
}),
|
125
125
|
children: [
|
126
126
|
/* @__PURE__ */ n("h2", { className: r.slides, children: [
|
127
|
-
|
127
|
+
L,
|
128
128
|
/* @__PURE__ */ s("span", { className: r.separator }),
|
129
|
-
|
129
|
+
M
|
130
130
|
] }),
|
131
131
|
/* @__PURE__ */ s(ae, {})
|
132
132
|
]
|
133
133
|
}
|
134
134
|
),
|
135
|
-
h === N.TOP && /* @__PURE__ */ s(
|
135
|
+
h === N.TOP && /* @__PURE__ */ s(v, { ref: c })
|
136
136
|
] })
|
137
137
|
}
|
138
138
|
),
|
@@ -146,7 +146,7 @@ function fe({
|
|
146
146
|
rel: "noopener noreferrer",
|
147
147
|
target: "_blank",
|
148
148
|
children: /* @__PURE__ */ s(
|
149
|
-
|
149
|
+
q,
|
150
150
|
{
|
151
151
|
className: a(r.image, g),
|
152
152
|
src: t.image
|
@@ -154,7 +154,7 @@ function fe({
|
|
154
154
|
)
|
155
155
|
}
|
156
156
|
), m = () => typeof o == "function" ? o(t) : t.url ? _ : /* @__PURE__ */ s(
|
157
|
-
|
157
|
+
q,
|
158
158
|
{
|
159
159
|
className: a(r.image, g),
|
160
160
|
src: t.image,
|
@@ -167,21 +167,21 @@ function fe({
|
|
167
167
|
{
|
168
168
|
"data-testid": `slide-${u}`,
|
169
169
|
onClick: l,
|
170
|
-
className: a(r.slide,
|
170
|
+
className: a(r.slide, x),
|
171
171
|
children: m()
|
172
172
|
},
|
173
173
|
t.id
|
174
174
|
);
|
175
175
|
}),
|
176
|
-
h === N.BOTTOM && /* @__PURE__ */ n("div", { className:
|
176
|
+
h === N.BOTTOM && /* @__PURE__ */ n("div", { className: y, children: [
|
177
177
|
/* @__PURE__ */ s(
|
178
|
-
|
178
|
+
v,
|
179
179
|
{
|
180
180
|
ref: c,
|
181
181
|
className: r["progress-bar-bottom"]
|
182
182
|
}
|
183
183
|
),
|
184
|
-
/* @__PURE__ */ n("div", { className: a(r.descriptions,
|
184
|
+
/* @__PURE__ */ n("div", { className: a(r.descriptions, B), children: [
|
185
185
|
w && /* @__PURE__ */ s("div", { "data-testid": "slider-left-description", children: w }),
|
186
186
|
b && /* @__PURE__ */ s("div", { "data-testid": "slider-right-description", children: b })
|
187
187
|
] })
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs as g, jsx as s } from "react/jsx-runtime";
|
2
2
|
import { c as x } from "../../index-DIxK0V-G.js";
|
3
3
|
import { useState as p, useEffect as J, useCallback as l } from "react";
|
4
|
-
import { c as r } from "../../stories.module-
|
4
|
+
import { c as r } from "../../stories.module-DBGkpJ-O.js";
|
5
5
|
import { Icon as K } from "../../icons/Icon.js";
|
6
6
|
import { Button as O } from "../Button/Button.js";
|
7
7
|
import { EButtonVariantBorderless as M, EButtonForm as k, EButtonVariantOutline as Q, EButtonVariantDefault as U } from "../Button/constants.js";
|
@@ -5,7 +5,7 @@ import { ETableDisplayMode as b, TABLE_OPTIONS as R, ETableVariant as Se, ETable
|
|
5
5
|
import { useTableInstance as Be } from "./hooks/useTableInstance.js";
|
6
6
|
import { useTableScroll as Le } from "./hooks/useTableScroll.js";
|
7
7
|
import { useTableState as Ne } from "./hooks/useTableState.js";
|
8
|
-
import { c as l } from "../../styles.module
|
8
|
+
import { c as l } from "../../styles.module-9m98aUhp.js";
|
9
9
|
import { TableBody as Oe } from "./TableBody.js";
|
10
10
|
import { TableCardsView as Ae } from "./TableCardsView.js";
|
11
11
|
import { TableHeader as He } from "./TableHeader.js";
|
@@ -3,7 +3,7 @@ import { c as m } from "../../index-DIxK0V-G.js";
|
|
3
3
|
import { memo as E, useRef as G, useState as x, useEffect as $ } from "react";
|
4
4
|
import { ETableVariant as B } from "./constants.js";
|
5
5
|
import { useTableVirtualization as H } from "./hooks/useTableVirtualization.js";
|
6
|
-
import { c as t } from "../../styles.module
|
6
|
+
import { c as t } from "../../styles.module-9m98aUhp.js";
|
7
7
|
import { TableRow as k } from "./TableRow.js";
|
8
8
|
function R({
|
9
9
|
table: r,
|
@@ -2,7 +2,7 @@ import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { f as b } from "../../index-CVk4sixt.js";
|
3
3
|
import { c as o } from "../../index-DIxK0V-G.js";
|
4
4
|
import { memo as v } from "react";
|
5
|
-
import { c as a } from "../../styles.module
|
5
|
+
import { c as a } from "../../styles.module-9m98aUhp.js";
|
6
6
|
import { Icon as l } from "../../icons/Icon.js";
|
7
7
|
import { CheckboxMimir as k } from "../CheckboxMimir/CheckboxMimir.js";
|
8
8
|
function A({
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
2
2
|
import { memo as V, useRef as b } from "react";
|
3
3
|
import { useTableVirtualization as v } from "./hooks/useTableVirtualization.js";
|
4
|
-
import { c as u } from "../../styles.module
|
4
|
+
import { c as u } from "../../styles.module-9m98aUhp.js";
|
5
5
|
import { TableCard as g } from "./TableCard.js";
|
6
6
|
function y({
|
7
7
|
table: r,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
2
2
|
import { useState as z, useEffect as A, useCallback as I } from "react";
|
3
3
|
import { EFilterType as E } from "./constants.js";
|
4
|
-
import { c as e } from "../../stories.module-
|
4
|
+
import { c as e } from "../../stories.module-DBGkpJ-O.js";
|
5
5
|
import { Button as d } from "../Button/Button.js";
|
6
6
|
import { EButtonVariantBorderless as L, EButtonForm as b, EButtonVariantOutline as O, EButtonVariantDefault as j } from "../Button/constants.js";
|
7
7
|
import { DatePicker as S } from "../DatePicker/DatePicker.js";
|
@@ -2,7 +2,7 @@ import { jsx as o, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { f as H } from "../../index-CVk4sixt.js";
|
3
3
|
import { c as n } from "../../index-DIxK0V-G.js";
|
4
4
|
import { ETableVariant as s, ESortDirection as m } from "./constants.js";
|
5
|
-
import { c as t } from "../../styles.module
|
5
|
+
import { c as t } from "../../styles.module-9m98aUhp.js";
|
6
6
|
import { Icon as c } from "../../icons/Icon.js";
|
7
7
|
const E = ({
|
8
8
|
table: i,
|
@@ -3,7 +3,7 @@ import { f as I } from "../../index-CVk4sixt.js";
|
|
3
3
|
import { c as n } from "../../index-DIxK0V-G.js";
|
4
4
|
import { memo as R, useState as B, useEffect as D, useCallback as N } from "react";
|
5
5
|
import { ETableVariant as u } from "./constants.js";
|
6
|
-
import { c as l } from "../../styles.module
|
6
|
+
import { c as l } from "../../styles.module-9m98aUhp.js";
|
7
7
|
import { CheckboxMimir as V } from "../CheckboxMimir/CheckboxMimir.js";
|
8
8
|
function E({
|
9
9
|
row: e,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
2
2
|
import { memo as i, useMemo as s } from "react";
|
3
3
|
import { ETableScrollIconName as c, ETableScrollButtonVariant as l } from "./constants.js";
|
4
|
-
import { c as a } from "../../styles.module
|
4
|
+
import { c as a } from "../../styles.module-9m98aUhp.js";
|
5
5
|
import { MergedButton as u } from "../MergedButton/MergedButton.js";
|
6
6
|
const E = i(
|
7
7
|
({
|
@@ -5,7 +5,7 @@ import { useAutoResizeTextArea as Z } from "./hooks.js";
|
|
5
5
|
import { useMergeRefs as $ } from "../../hooks/useMergeRefs/useMergeRefs.js";
|
6
6
|
import { Icon as ee } from "../../icons/Icon.js";
|
7
7
|
import { Button as te } from "../Button/Button.js";
|
8
|
-
import { c as e } from "../../Input-
|
8
|
+
import { c as e } from "../../Input-BU_6U1CW.js";
|
9
9
|
import { EInputVariant as ae } from "../Input/constants.js";
|
10
10
|
import '../../assets/TextArea.css';const re = "_textarea_rk5xe_2", se = "_clear_rk5xe_11", le = "_label_rk5xe_26", ne = "_s_rk5xe_71", oe = "_m_rk5xe_84", ce = "_l_rk5xe_26", t = {
|
11
11
|
"textarea-wrapper": "_textarea-wrapper_rk5xe_2",
|