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.
Files changed (64) hide show
  1. package/dist/{Input-DAmc_HxO.js → Input-BU_6U1CW.js} +63 -63
  2. package/dist/assets/CardTrail.css +1 -1
  3. package/dist/assets/Drawer.css +1 -1
  4. package/dist/assets/Dropdown.css +1 -1
  5. package/dist/assets/Image.css +1 -1
  6. package/dist/assets/Input.css +1 -1
  7. package/dist/assets/MergedButton.css +1 -1
  8. package/dist/assets/OtpInput.css +1 -1
  9. package/dist/assets/Pagination.css +1 -1
  10. package/dist/assets/PromoSlider.css +1 -1
  11. package/dist/assets/RadioGroup.css +1 -1
  12. package/dist/assets/ScrollBar.css +1 -0
  13. package/dist/assets/Slider.css +1 -1
  14. package/dist/assets/Timer.css +1 -1
  15. package/dist/assets/stories.css +1 -1
  16. package/dist/assets/styles2.css +1 -1
  17. package/dist/components/CardTrail/CardTrail.d.ts +4 -0
  18. package/dist/components/CardTrail/CardTrail.js +75 -66
  19. package/dist/components/DatePicker/DatePicker.js +1 -1
  20. package/dist/components/Drawer/Drawer.js +74 -74
  21. package/dist/components/Dropdown/Dropdown.js +121 -121
  22. package/dist/components/Image/Image.js +28 -33
  23. package/dist/components/Input/Input.js +1 -1
  24. package/dist/components/Input/index.js +1 -1
  25. package/dist/components/InputPassword/InputPassword.js +1 -1
  26. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  27. package/dist/components/MergedButton/MergedButton.d.ts +4 -4
  28. package/dist/components/MergedButton/MergedButton.js +35 -27
  29. package/dist/components/MultiSelectSearch/MultiSelectSearch.js +1 -1
  30. package/dist/components/MultiSelectSearch/utils.js +1 -1
  31. package/dist/components/OtpInput/OtpInput.js +28 -28
  32. package/dist/components/Pagination/Pagination.js +28 -28
  33. package/dist/components/PromoSlider/PromoSlider.d.ts +1 -5
  34. package/dist/components/PromoSlider/PromoSlider.js +190 -200
  35. package/dist/components/RadioGroup/RadioGroup.js +79 -79
  36. package/dist/components/ScrollBar/ScrollBar.d.ts +17 -0
  37. package/dist/components/ScrollBar/ScrollBar.js +22 -0
  38. package/dist/components/ScrollBar/constants.d.ts +8 -0
  39. package/dist/components/ScrollBar/constants.js +5 -0
  40. package/dist/components/SelectSearch/SelectSearch.js +1 -1
  41. package/dist/components/SelectSearch/utils.js +1 -1
  42. package/dist/components/Slider/Slider.js +40 -40
  43. package/dist/components/Table/ColumnOrderSettings.js +1 -1
  44. package/dist/components/Table/Table.js +1 -1
  45. package/dist/components/Table/TableBody.js +1 -1
  46. package/dist/components/Table/TableCard.js +1 -1
  47. package/dist/components/Table/TableCardsView.js +1 -1
  48. package/dist/components/Table/TableFilters.js +1 -1
  49. package/dist/components/Table/TableHeader.js +1 -1
  50. package/dist/components/Table/TableRow.js +1 -1
  51. package/dist/components/Table/TableScrollButtons.js +1 -1
  52. package/dist/components/TextArea/TextArea.js +1 -1
  53. package/dist/components/Timer/Timer.js +6 -6
  54. package/dist/components/index.js +1 -1
  55. package/dist/index.js +1 -1
  56. package/dist/stories.module-DBGkpJ-O.js +29 -0
  57. package/dist/styles.module-9m98aUhp.js +36 -0
  58. package/package.json +6 -2
  59. package/src/assets/styles/mixins/animations.scss +3 -0
  60. package/src/assets/styles/mixins/index.scss +3 -0
  61. package/src/assets/styles/mixins/media.scss +21 -0
  62. package/src/assets/styles/mixins/scrollbar.scss +43 -0
  63. package/dist/stories.module-fud786VB.js +0 -29
  64. package/dist/styles.module--QBQYoA9.js +0 -36
@@ -1,15 +1,15 @@
1
- import { jsxs as ee, jsx as L, Fragment as _e } from "react/jsx-runtime";
2
- import { K as V, w as ye, a as oe, z as te, U as ie, b as ke, T as Oe, j as we, u as Pe, I as Ee, G as Te, p as De } from "../../label-DOlEWXBl.js";
3
- import { W, y as z, o as U, H as K, s as se, n as ne, $ as le, b as de, D as ue, a as Ce, u as Ge, c as N } from "../../keyboard-CUMsrFX1.js";
4
- import E, { createContext as ce, useId as q, useReducer as xe, useRef as B, useMemo as T, useCallback as Fe, useContext as pe, forwardRef as Ne } from "react";
5
- import { u as Ae } from "../../use-by-comparator-CVuf9KBq.js";
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 H, T as ae, _ as Ie } from "../../focus-management-Dp2_vbQ3.js";
8
- import { c as M } from "../../index-DIxK0V-G.js";
9
- import '../../assets/RadioGroup.css';var Se = ((e) => (e[e.RegisterOption = 0] = "RegisterOption", e[e.UnregisterOption = 1] = "UnregisterOption", e))(Se || {});
10
- let Le = { 0(e, r) {
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: Ie(o, (a) => a.element.current) };
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 Ue(e, r) {
37
- return Ce(r.type, Le, e, r);
36
+ function Le(e, r) {
37
+ return Ce(r.type, Se, e, r);
38
38
  }
39
- let je = "div";
40
- function He(e, r) {
41
- let o = q(), a = oe(), { id: u = `headlessui-radiogroup-${o}`, value: _, form: v, name: c, onChange: n, by: m, disabled: l = a || !1, defaultValue: s, ...y } = e, d = Ae(m), [k, D] = xe(Ue, { options: [] }), p = k.options, [O, A] = te(), [C, w] = ie(), P = B(null), G = z(P, r), $ = ke(s), [t, x] = Oe(_, n, $), F = T(() => p.find((i) => !i.propsRef.current.disabled), [p]), g = T(() => p.some((i) => d(i.propsRef.current.value, t)), [p, t]), f = U((i) => {
42
- var I;
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 h = (I = p.find((j) => d(j.propsRef.current.value, i))) == null ? void 0 : I.propsRef.current;
45
- return h != null && h.disabled ? !1 : (x == null || x(i), !0);
46
- }), be = U((i) => {
47
- let I = P.current;
48
- if (!I) return;
49
- let h = Ge(I), j = p.filter((b) => b.propsRef.current.disabled === !1).map((b) => b.element.current);
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 N.Enter:
51
+ case F.Enter:
52
52
  De(i.currentTarget);
53
53
  break;
54
- case N.ArrowLeft:
55
- case N.ArrowUp:
56
- if (i.preventDefault(), i.stopPropagation(), re(j, H.Previous | H.WrapAround) === ae.Success) {
57
- let b = p.find((S) => S.element.current === (h == null ? void 0 : h.activeElement));
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 N.ArrowRight:
62
- case N.ArrowDown:
63
- if (i.preventDefault(), i.stopPropagation(), re(j, H.Next | H.WrapAround) === ae.Success) {
64
- let b = p.find((S) => S.element.current === (h == null ? void 0 : h.activeElement));
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 N.Space:
68
+ case F.Space:
69
69
  {
70
70
  i.preventDefault(), i.stopPropagation();
71
- let b = p.find((S) => S.element.current === (h == null ? void 0 : h.activeElement));
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 = U((i) => (D({ type: 0, ...i }), () => D({ type: 1, id: i.id }))), ve = T(() => ({ value: t, firstOption: F, containsCheckedOption: g, disabled: l, compare: d, ...k }), [t, F, g, l, d, k]), Re = T(() => ({ registerOption: Z, change: f }), [Z, f]), he = { ref: G, id: u, role: "radiogroup", "aria-labelledby": O, "aria-describedby": C, onKeyDown: be }, $e = T(() => ({ value: t }), [t]), ge = Fe(() => {
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(w, { name: "RadioGroup.Description" }, E.createElement(A, { name: "RadioGroup.Label" }, E.createElement(Q.Provider, { value: Re }, E.createElement(J.Provider, { value: ve }, c != null && E.createElement(we, { disabled: l, data: { [c]: t || "on" }, overrides: { type: "radio", checked: t != null }, form: v, onReset: ge }), K({ ourProps: he, theirProps: y, slot: $e, defaultTag: je, name: "RadioGroup" })))));
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 Me = "div";
82
- function Ve(e, r) {
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: n = a.disabled || !1, autoFocus: m = !1, ...l } = e, s = B(null), y = z(s, r), [d, k] = te(), [D, p] = ie(), O = se({ value: c, disabled: n });
85
- ne(() => u.registerOption({ id: v, element: s, propsRef: O }), [v, u, s, O]);
86
- let A = U((g) => {
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 = s.current) == null || f.focus());
90
- }), C = ((o = a.firstOption) == null ? void 0 : o.id) === v, { isFocusVisible: w, focusProps: P } = le({ autoFocus: m }), { isHovered: G, hoverProps: $ } = de({ isDisabled: n }), t = a.compare(a.value, c), x = ue({ ref: y, id: v, role: "radio", "aria-checked": t ? "true" : "false", "aria-labelledby": d, "aria-describedby": D, "aria-disabled": n ? !0 : void 0, tabIndex: n ? -1 : t || !a.containsCheckedOption && C ? 0 : -1, onClick: n ? void 0 : A, autoFocus: m }, P, $), F = T(() => ({ checked: t, disabled: n, active: w, hover: G, focus: w, autofocus: m }), [t, n, G, w, m]);
91
- return E.createElement(p, { name: "RadioGroup.Description" }, E.createElement(k, { name: "RadioGroup.Label" }, K({ ourProps: x, theirProps: l, slot: F, defaultTag: Me, name: "RadioGroup.Option" })));
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 We = "span";
94
- function ze(e, r) {
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: n = v || `headlessui-radio-${_}`, value: m, disabled: l = a.disabled || c || !1, autoFocus: s = !1, ...y } = e, d = B(null), k = z(d, r), D = Ee(), p = Te(), O = se({ value: m, disabled: l });
97
- ne(() => u.registerOption({ id: n, element: d, propsRef: O }), [n, u, d, O]);
98
- let A = U((g) => {
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: w } = le({ autoFocus: s }), { isHovered: P, hoverProps: G } = de({ isDisabled: l }), $ = ((o = a.firstOption) == null ? void 0 : o.id) === n, t = a.compare(a.value, m), x = ue({ ref: k, id: n, 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: s, onClick: l ? void 0 : A }, w, G), F = T(() => ({ checked: t, disabled: l, hover: P, focus: C, autofocus: s }), [t, l, P, C, s]);
103
- return K({ ourProps: x, theirProps: y, slot: F, defaultTag: We, name: "Radio" });
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 = W(He), qe = W(Ve), me = W(ze), Be = V, Je = ye, Xe = Object.assign(Ke, { Option: qe, Radio: me, Label: Be, Description: Je });
106
- const Qe = "_group_yses6_3", Ye = "_radio_yses6_18", Ze = "_disabled_yses6_40", er = "_label_yses6_51", rr = "_frame_yses6_64", ar = "_checked_yses6_73", R = {
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-wrapper_yses6_8",
109
- "radio-wrapper": "_radio-wrapper_yses6_18",
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 = Ne(
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
- }, n) => {
126
- const m = M(
127
- R["radio-wrapper"],
125
+ }, s) => {
126
+ const m = H(
127
+ h["radio-wrapper"],
128
128
  u,
129
129
  {
130
- [R.disabled]: c.disabled
130
+ [h.disabled]: c.disabled
131
131
  }
132
132
  );
133
133
  return /* @__PURE__ */ ee(
134
134
  Xe,
135
135
  {
136
- ref: n,
136
+ ref: s,
137
137
  value: r,
138
- className: R.group,
138
+ className: h.group,
139
139
  onChange: o,
140
140
  ...c,
141
141
  children: [
142
- a && /* @__PURE__ */ L(V, { as: "p", className: R.label, children: a }),
143
- /* @__PURE__ */ L(
142
+ a && /* @__PURE__ */ S(M, { as: "p", className: h.label, children: a }),
143
+ /* @__PURE__ */ S(
144
144
  "div",
145
145
  {
146
- className: M(
147
- R["content-wrapper"],
146
+ className: H(
147
+ h["content-wrapper"],
148
148
  v
149
149
  ),
150
- children: e.map(({ label: l, value: s }) => /* @__PURE__ */ L(
150
+ children: e.map(({ label: l, value: n }) => /* @__PURE__ */ S(
151
151
  me,
152
152
  {
153
153
  as: "span",
154
- value: s,
154
+ value: n,
155
155
  disabled: c.disabled,
156
156
  className: m,
157
- "data-testid": `radio-option-${s}`,
158
- children: ({ checked: y, disabled: d }) => /* @__PURE__ */ ee(_e, { children: [
159
- /* @__PURE__ */ L(
160
- V,
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: M(
164
- R.radio,
163
+ className: H(
164
+ h.radio,
165
165
  {
166
- [R.disabled]: c.disabled
166
+ [h.disabled]: c.disabled
167
167
  },
168
168
  _
169
169
  ),
170
- children: /* @__PURE__ */ L(
170
+ children: /* @__PURE__ */ S(
171
171
  "span",
172
172
  {
173
- className: M(R.frame, {
174
- [R.checked]: y,
175
- [R.disabled]: d
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 s == "string" ? s : String(s)
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
+ };
@@ -0,0 +1,8 @@
1
+ export declare enum EScrollBarVariant {
2
+ LIGHT = "light",
3
+ DARK = "dark"
4
+ }
5
+ export declare enum EScrollBarSize {
6
+ S = "s",
7
+ M = "m"
8
+ }
@@ -0,0 +1,5 @@
1
+ var t = /* @__PURE__ */ ((r) => (r.LIGHT = "light", r.DARK = "dark", r))(t || {}), e = /* @__PURE__ */ ((r) => (r.S = "s", r.M = "m", r))(e || {});
2
+ export {
3
+ e as EScrollBarSize,
4
+ t as EScrollBarVariant
5
+ };
@@ -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-DAmc_HxO.js";
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,5 +1,5 @@
1
1
  import { ESelectSearchSize as r } from "./constants.js";
2
- import "../../Input-DAmc_HxO.js";
2
+ import "../../Input-BU_6U1CW.js";
3
3
  import { EInputSize as o } from "../Input/constants.js";
4
4
  const c = (t) => {
5
5
  switch (t) {
@@ -1,30 +1,30 @@
1
- import { jsx as s, jsxs as n, Fragment as F } from "react/jsx-runtime";
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 x, useCallback as d, useMemo as j, forwardRef as D, useRef as S, useState as U } from "react";
4
- import { u as Y, S as q, A as z, a as G } from "../../swiper-react-BvAw14a4.js";
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 v } from "../Image/Image.js";
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 = "_swiper_1f4c7_3", K = "_slide_1f4c7_9", Q = "_link_1f4c7_16", V = "_image_1f4c7_22", W = "_navigation_1f4c7_29", X = "_pagination_1f4c7_39", Z = "_slides_1f4c7_58", ee = "_separator_1f4c7_64", re = "_progress_1f4c7_71", se = "_descriptions_1f4c7_88", r = {
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-full_1f4c7_53",
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-bottom_1f4c7_78",
20
- "progress-bar": "_progress-bar_1f4c7_78",
19
+ "progress-bar-bottom": "_progress-bar-bottom_qafre_77",
20
+ "progress-bar": "_progress-bar_qafre_77",
21
21
  descriptions: se
22
- }, te = 15e3, ae = x(() => {
23
- const e = Y(), o = d(() => {
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 = j(
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
- }), k = x(
46
- D((e, o) => /* @__PURE__ */ s(
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: A,
67
+ slideClassName: x,
68
68
  imageClassName: g,
69
- navigationClassName: y,
70
- sliderBottomPanelClassName: B,
71
- descriptionsClassName: C,
69
+ navigationClassName: A,
70
+ sliderBottomPanelClassName: y,
71
+ descriptionsClassName: B,
72
72
  progressBarPosition: h = "top",
73
- isFullPaginationWidth: I = !1,
73
+ isFullPaginationWidth: C = !1,
74
74
  needNavigation: i = !0,
75
75
  leftDescription: w,
76
76
  rightDescription: b,
77
- delay: P = te,
78
- ...T
77
+ delay: I = te,
78
+ ...P
79
79
  }) {
80
- const c = S(null), f = S(null), [E, L] = U(1), M = `0${E}`, O = `0${(e == null ? void 0 : e.length) ?? 0}`, R = d(() => {
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
- L(t.realIndex + 1);
83
+ E(t.realIndex + 1);
84
84
  }
85
- }, [i]), $ = d(
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
- q,
95
+ Y,
96
96
  {
97
- ...T,
97
+ ...P,
98
98
  ref: f,
99
99
  className: a(r.swiper, p),
100
100
  loop: !0,
101
101
  autoplay: {
102
- delay: P,
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: R,
109
+ onAutoplayTimeLeft: R,
110
+ onSlideChange: O,
111
111
  children: [
112
112
  /* @__PURE__ */ s(
113
113
  "div",
114
114
  {
115
- className: a(r.navigation, y),
115
+ className: a(r.navigation, A),
116
116
  slot: "container-start",
117
- children: i && /* @__PURE__ */ n(F, { children: [
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"]]: I
123
+ [r["is-full"]]: C
124
124
  }),
125
125
  children: [
126
126
  /* @__PURE__ */ n("h2", { className: r.slides, children: [
127
- M,
127
+ L,
128
128
  /* @__PURE__ */ s("span", { className: r.separator }),
129
- O
129
+ M
130
130
  ] }),
131
131
  /* @__PURE__ */ s(ae, {})
132
132
  ]
133
133
  }
134
134
  ),
135
- h === N.TOP && /* @__PURE__ */ s(k, { ref: c })
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
- v,
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
- v,
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, A),
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: B, children: [
176
+ h === N.BOTTOM && /* @__PURE__ */ n("div", { className: y, children: [
177
177
  /* @__PURE__ */ s(
178
- k,
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, C), children: [
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-fud786VB.js";
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--QBQYoA9.js";
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--QBQYoA9.js";
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--QBQYoA9.js";
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--QBQYoA9.js";
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-fud786VB.js";
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--QBQYoA9.js";
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--QBQYoA9.js";
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--QBQYoA9.js";
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-DAmc_HxO.js";
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",