mimir-ui-kit 1.41.4 → 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 (55) hide show
  1. package/dist/{Input-DAmc_HxO.js → Input-BU_6U1CW.js} +63 -63
  2. package/dist/assets/Drawer.css +1 -1
  3. package/dist/assets/Dropdown.css +1 -1
  4. package/dist/assets/Image.css +1 -1
  5. package/dist/assets/Input.css +1 -1
  6. package/dist/assets/OtpInput.css +1 -1
  7. package/dist/assets/Pagination.css +1 -1
  8. package/dist/assets/RadioGroup.css +1 -1
  9. package/dist/assets/ScrollBar.css +1 -0
  10. package/dist/assets/Slider.css +1 -1
  11. package/dist/assets/Timer.css +1 -1
  12. package/dist/assets/stories.css +1 -1
  13. package/dist/assets/styles2.css +1 -1
  14. package/dist/components/DatePicker/DatePicker.js +1 -1
  15. package/dist/components/Drawer/Drawer.js +74 -74
  16. package/dist/components/Dropdown/Dropdown.js +121 -121
  17. package/dist/components/Image/Image.js +12 -12
  18. package/dist/components/Input/Input.js +1 -1
  19. package/dist/components/Input/index.js +1 -1
  20. package/dist/components/InputPassword/InputPassword.js +1 -1
  21. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  22. package/dist/components/MultiSelectSearch/MultiSelectSearch.js +1 -1
  23. package/dist/components/MultiSelectSearch/utils.js +1 -1
  24. package/dist/components/OtpInput/OtpInput.js +28 -28
  25. package/dist/components/Pagination/Pagination.js +28 -28
  26. package/dist/components/RadioGroup/RadioGroup.js +79 -79
  27. package/dist/components/ScrollBar/ScrollBar.d.ts +17 -0
  28. package/dist/components/ScrollBar/ScrollBar.js +22 -0
  29. package/dist/components/ScrollBar/constants.d.ts +8 -0
  30. package/dist/components/ScrollBar/constants.js +5 -0
  31. package/dist/components/SelectSearch/SelectSearch.js +1 -1
  32. package/dist/components/SelectSearch/utils.js +1 -1
  33. package/dist/components/Slider/Slider.js +40 -40
  34. package/dist/components/Table/ColumnOrderSettings.js +1 -1
  35. package/dist/components/Table/Table.js +1 -1
  36. package/dist/components/Table/TableBody.js +1 -1
  37. package/dist/components/Table/TableCard.js +1 -1
  38. package/dist/components/Table/TableCardsView.js +1 -1
  39. package/dist/components/Table/TableFilters.js +1 -1
  40. package/dist/components/Table/TableHeader.js +1 -1
  41. package/dist/components/Table/TableRow.js +1 -1
  42. package/dist/components/Table/TableScrollButtons.js +1 -1
  43. package/dist/components/TextArea/TextArea.js +1 -1
  44. package/dist/components/Timer/Timer.js +6 -6
  45. package/dist/components/index.js +1 -1
  46. package/dist/index.js +1 -1
  47. package/dist/stories.module-DBGkpJ-O.js +29 -0
  48. package/dist/styles.module-9m98aUhp.js +36 -0
  49. package/package.json +6 -2
  50. package/src/assets/styles/mixins/animations.scss +3 -0
  51. package/src/assets/styles/mixins/index.scss +3 -0
  52. package/src/assets/styles/mixins/media.scss +21 -0
  53. package/src/assets/styles/mixins/scrollbar.scss +43 -0
  54. package/dist/stories.module-fud786VB.js +0 -29
  55. package/dist/styles.module--QBQYoA9.js +0 -36
@@ -1,124 +1,124 @@
1
- import { jsxs as _, jsx as o, Fragment as G } from "react/jsx-runtime";
2
- import { c as s } from "../../index-DIxK0V-G.js";
3
- import { forwardRef as K, useState as w, useRef as V, useCallback as u, useEffect as W } from "react";
4
- import { EDrawerPosition as v } from "./constants.js";
1
+ import { jsxs as m, jsx as o, Fragment as G } from "react/jsx-runtime";
2
+ import { c as n } from "../../index-DIxK0V-G.js";
3
+ import { forwardRef as K, useState as v, useRef as V, useCallback as _, useEffect as W } from "react";
4
+ import { EDrawerPosition as k } from "./constants.js";
5
5
  import { useMediaQuery as Y } from "../../hooks/useMediaQuery/useMediaQuery.js";
6
6
  import { EMediaQuery as q } from "../../hooks/useMediaQuery/constants.js";
7
7
  import { useLockBodyScroll as J } from "../../hooks/useLockBodyScroll/useLockBodyScroll.js";
8
8
  import { useResizeObserver as U } from "../../hooks/useResizeObserver/useResizeObserver.js";
9
- import { Button as k } from "../Button/Button.js";
10
- import { EButtonVariantDefault as Z, EButtonSize as r } from "../Button/constants.js";
9
+ import { Button as C } from "../Button/Button.js";
10
+ import { EButtonVariantDefault as Z, EButtonSize as a } from "../Button/constants.js";
11
11
  import { Loader as $ } from "../Loader/Loader.js";
12
12
  import { Portal as ee } from "../Portal/Portal.js";
13
- import '../../assets/Drawer.css';const oe = "_drawer_1xs4d_3", te = "_content_1xs4d_27", se = "_header_1xs4d_45", ne = "_title_1xs4d_59", re = "_space_1xs4d_73", ie = "_inner_1xs4d_84", ae = "_button_1xs4d_87", le = "_footer_1xs4d_92", ce = "_left_1xs4d_105", de = "_right_1xs4d_109", me = "_full_1xs4d_113", _e = "_bottom_1xs4d_123", ue = "_opened_1xs4d_140", fe = "_overlay_1xs4d_196", he = "_unmount_1xs4d_212", e = {
13
+ import '../../assets/Drawer.css';const oe = "_drawer_13ua6_2", te = "_content_13ua6_26", ne = "_header_13ua6_44", se = "_title_13ua6_58", ae = "_space_13ua6_72", re = "_inner_13ua6_83", ie = "_button_13ua6_86", le = "_footer_13ua6_91", ce = "_left_13ua6_104", ue = "_right_13ua6_108", de = "_full_13ua6_112", me = "_bottom_13ua6_122", _e = "_opened_13ua6_139", fe = "_overlay_13ua6_195", he = "_unmount_13ua6_211", e = {
14
14
  drawer: oe,
15
15
  content: te,
16
- "is-loading": "_is-loading_1xs4d_41",
17
- header: se,
18
- "sticky-header": "_sticky-header_1xs4d_53",
19
- title: ne,
20
- space: re,
21
- inner: ie,
22
- button: ae,
16
+ "is-loading": "_is-loading_13ua6_40",
17
+ header: ne,
18
+ "sticky-header": "_sticky-header_13ua6_52",
19
+ title: se,
20
+ space: ae,
21
+ inner: re,
22
+ button: ie,
23
23
  footer: le,
24
- "footer-button": "_footer-button_1xs4d_101",
24
+ "footer-button": "_footer-button_13ua6_100",
25
25
  left: ce,
26
- right: de,
27
- full: me,
28
- bottom: _e,
29
- "full-bottom-height": "_full-bottom-height_1xs4d_134",
30
- opened: ue,
31
- "is-closing": "_is-closing_1xs4d_159",
26
+ right: ue,
27
+ full: de,
28
+ bottom: me,
29
+ "full-bottom-height": "_full-bottom-height_13ua6_133",
30
+ opened: _e,
31
+ "is-closing": "_is-closing_13ua6_158",
32
32
  overlay: fe,
33
33
  unmount: he
34
- }, pe = 300, Oe = K(
35
- (C, B) => {
34
+ }, pe = 300, Ie = K(
35
+ (B, E) => {
36
36
  const {
37
- as: E = "div",
38
- isOpen: n,
39
- onClose: i,
40
- title: M,
41
- className: O,
37
+ as: M = "div",
38
+ isOpen: s,
39
+ onClose: r,
40
+ title: O,
41
+ className: I,
42
42
  unmount: f = !0,
43
- isLoading: a = !1,
44
- stickyHeader: I,
45
- fullBottomHeight: L = !1,
46
- position: l = v.RIGHT,
47
- paddingRight: R = 8,
43
+ isLoading: i = !1,
44
+ stickyHeader: L,
45
+ fullBottomHeight: R = !1,
46
+ position: l = k.RIGHT,
47
+ paddingRight: T = 8,
48
48
  footer: c,
49
- children: T,
50
- classNameTitle: S,
51
- classNameHeader: D,
49
+ children: S,
50
+ classNameTitle: D,
51
+ classNameHeader: x,
52
52
  classNameInner: z,
53
53
  classNameContent: H,
54
54
  classNameFooter: A,
55
55
  closeOnClickOutside: h = !0,
56
56
  showCloseButton: p = !0,
57
57
  ...P
58
- } = C, [x, g] = w(!1), [X, N] = w(!1), y = V(), d = Y(q.XS1), { ref: j } = U({
59
- enabled: l === v.BOTTOM
58
+ } = B, [g, N] = v(!1), [X, y] = v(!1), b = V(), u = Y(q.XS1), { ref: j } = U({
59
+ enabled: l === k.BOTTOM
60
60
  });
61
61
  J({
62
- on: n && !x,
63
- paddingRight: R
62
+ on: s && !g,
63
+ paddingRight: T
64
64
  });
65
- const t = u(() => {
66
- i && (g(!0), y.current = setTimeout(() => {
67
- i(), g(!1);
65
+ const t = _(() => {
66
+ r && (N(!0), b.current = setTimeout(() => {
67
+ r(), N(!1);
68
68
  }, pe));
69
- }, [i]), F = u(() => {
69
+ }, [r]), F = _(() => {
70
70
  h && t();
71
- }, [h, t]), m = u(
71
+ }, [h, t]), d = _(
72
72
  (Q) => {
73
73
  Q.key === "Escape" && t();
74
74
  },
75
75
  [t]
76
76
  );
77
- W(() => (n && (N(!0), window.addEventListener("keydown", m)), () => {
78
- N(!1), clearTimeout(y.current), window.removeEventListener("keydown", m);
79
- }), [n, m]);
80
- const b = {
77
+ W(() => (s && (y(!0), window.addEventListener("keydown", d)), () => {
78
+ y(!1), clearTimeout(b.current), window.removeEventListener("keydown", d);
79
+ }), [s, d]);
80
+ const w = {
81
81
  [e.opened]: X,
82
- [e["is-closing"]]: x,
83
- [e["full-bottom-height"]]: L,
84
- [e["is-loading"]]: a
82
+ [e["is-closing"]]: g,
83
+ [e["full-bottom-height"]]: R,
84
+ [e["is-loading"]]: i
85
85
  };
86
- return !n && f ? null : /* @__PURE__ */ _(ee, { children: [
86
+ return !s && f ? null : /* @__PURE__ */ m(ee, { children: [
87
87
  /* @__PURE__ */ o(
88
- E,
88
+ M,
89
89
  {
90
- ref: B,
91
- "aria-hidden": !n,
90
+ ref: E,
91
+ "aria-hidden": !s,
92
92
  role: "dialog",
93
- className: s(e.drawer, e[l], b, O),
93
+ className: n(e.drawer, e[l], w, I),
94
94
  ...P,
95
95
  children: /* @__PURE__ */ o(
96
96
  "section",
97
97
  {
98
98
  ref: j,
99
- className: s(
99
+ className: n(
100
100
  e.content,
101
101
  H,
102
102
  e[l],
103
103
  {
104
- [e["is-loading"]]: !!a
104
+ [e["is-loading"]]: !!i
105
105
  }
106
106
  ),
107
- children: a ? /* @__PURE__ */ o($, {}) : /* @__PURE__ */ _(G, { children: [
108
- /* @__PURE__ */ _(
107
+ children: i ? /* @__PURE__ */ o($, {}) : /* @__PURE__ */ m(G, { children: [
108
+ /* @__PURE__ */ m(
109
109
  "header",
110
110
  {
111
- className: s(e.header, D, {
112
- [e["sticky-header"]]: I
111
+ className: n(e.header, x, {
112
+ [e["sticky-header"]]: L
113
113
  }),
114
114
  children: [
115
- /* @__PURE__ */ o("h2", { className: s(e.title, S), children: M }),
115
+ /* @__PURE__ */ o("h2", { className: n(e.title, D), children: O }),
116
116
  /* @__PURE__ */ o("div", { className: e.space, children: p && /* @__PURE__ */ o(
117
- k,
117
+ C,
118
118
  {
119
119
  variant: Z.SecondaryWhite,
120
120
  isIconButton: !0,
121
- size: d ? r.S : r.M,
121
+ size: u ? a.S : a.M,
122
122
  iconName: "Close16px",
123
123
  onClick: t,
124
124
  className: e.button
@@ -127,12 +127,12 @@ import '../../assets/Drawer.css';const oe = "_drawer_1xs4d_3", te = "_content_1x
127
127
  ]
128
128
  }
129
129
  ),
130
- /* @__PURE__ */ o("div", { className: s(e.inner, z), children: T }),
131
- /* @__PURE__ */ o("footer", { className: s(e.footer, A), children: typeof c == "function" ? c({ handleClose: t }) : c || p && /* @__PURE__ */ o(
132
- k,
130
+ /* @__PURE__ */ o("div", { className: n(e.inner, z), children: S }),
131
+ /* @__PURE__ */ o("footer", { className: n(e.footer, A), children: typeof c == "function" ? c({ handleClose: t }) : c || p && /* @__PURE__ */ o(
132
+ C,
133
133
  {
134
- size: d ? r.M : r.XXL,
135
- full: d,
134
+ size: u ? a.M : a.XXL,
135
+ full: u,
136
136
  onClick: t,
137
137
  className: e["footer-button"],
138
138
  children: "Закрыть"
@@ -146,12 +146,12 @@ import '../../assets/Drawer.css';const oe = "_drawer_1xs4d_3", te = "_content_1x
146
146
  /* @__PURE__ */ o(
147
147
  "div",
148
148
  {
149
- className: s(
149
+ className: n(
150
150
  e.overlay,
151
151
  {
152
152
  [e.unmount]: !f
153
153
  },
154
- b
154
+ w
155
155
  ),
156
156
  "data-testid": "drawer-overlay",
157
157
  onClick: F
@@ -162,5 +162,5 @@ import '../../assets/Drawer.css';const oe = "_drawer_1xs4d_3", te = "_content_1x
162
162
  );
163
163
  export {
164
164
  pe as ANIMATION_DELAY,
165
- Oe as Drawer
165
+ Ie as Drawer
166
166
  };