mimir-ui-kit 1.38.28 → 1.38.30

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- ._loader_eco13_2{position:relative;display:flex;align-items:center;justify-content:center;width:64px;height:64px;font-size:5px}._loader_eco13_2 ._circle_eco13_11{position:absolute;border-style:solid;border-radius:50%;animation:_animate_eco13_1 1s linear infinite}._loader_eco13_2 ._circle_eco13_11:nth-child(1){width:100%;height:100%;color:var(--sapphire-100);border-color:currentcolor transparent transparent currentcolor;border-width:.3em .3em 0 0;animation-direction:normal;--deg: -45deg}._loader_eco13_2 ._circle_eco13_11:nth-child(2){width:70%;height:70%;color:var(--citrine-100);border-color:currentcolor currentcolor transparent transparent;border-width:.3em 0 0 .3em;animation-direction:reverse;--deg: -135deg}@keyframes _animate_eco13_1{to{transform:rotate(1turn)}}
1
+ ._loader_1qwwg_2{position:relative;display:flex;align-items:center;justify-content:center;font-size:5px}._loader_1qwwg_2 ._circle_1qwwg_9{position:absolute;border-style:solid;border-radius:50%;animation:_animate_1qwwg_1 1s linear infinite}._loader_1qwwg_2 ._circle_1qwwg_9:nth-child(1){width:100%;height:100%;color:var(--sapphire-100);border-color:currentcolor transparent transparent currentcolor;border-width:.3em .3em 0 0;animation-direction:normal;--deg: -45deg}._loader_1qwwg_2 ._circle_1qwwg_9:nth-child(2){width:70%;height:70%;color:var(--citrine-100);border-color:currentcolor currentcolor transparent transparent;border-width:.3em 0 0 .3em;animation-direction:reverse;--deg: -135deg}._loader_1qwwg_2._s_1qwwg_33{width:24px;height:24px}._loader_1qwwg_2._m_1qwwg_37{width:64px;height:64px}@keyframes _animate_1qwwg_1{to{transform:rotate(1turn)}}
@@ -1 +1,7 @@
1
- export declare const Loader: () => import("react/jsx-runtime").JSX.Element;
1
+ import { ELoaderSize } from './constants';
2
+
3
+ type TProps = {
4
+ size?: ELoaderSize | `${ELoaderSize}`;
5
+ };
6
+ export declare const Loader: ({ size }: TProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -1,12 +1,16 @@
1
- import { jsxs as a, jsx as c } from "react/jsx-runtime";
2
- import '../../assets/Loader.css';const s = "_loader_eco13_2", o = "_circle_eco13_11", r = "_animate_eco13_1", e = {
3
- loader: s,
4
- circle: o,
5
- animate: r
6
- }, t = () => /* @__PURE__ */ a("div", { className: e.loader, "data-testid": "loader", children: [
7
- /* @__PURE__ */ c("span", { className: e.circle }),
8
- /* @__PURE__ */ c("span", { className: e.circle })
1
+ import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
+ import { c as r } from "../../index-DIxK0V-G.js";
3
+ import { ELoaderSize as o } from "./constants.js";
4
+ import '../../assets/Loader.css';const t = "_loader_1qwwg_2", l = "_circle_1qwwg_9", m = "_animate_1qwwg_1", i = "_s_1qwwg_33", _ = "_m_1qwwg_37", s = {
5
+ loader: t,
6
+ circle: l,
7
+ animate: m,
8
+ s: i,
9
+ m: _
10
+ }, p = ({ size: c = o.M }) => /* @__PURE__ */ e("div", { className: r(s.loader, s[c]), "data-testid": "loader", children: [
11
+ /* @__PURE__ */ a("span", { className: s.circle }),
12
+ /* @__PURE__ */ a("span", { className: s.circle })
9
13
  ] });
10
14
  export {
11
- t as Loader
15
+ p as Loader
12
16
  };
@@ -0,0 +1,4 @@
1
+ export declare enum ELoaderSize {
2
+ S = "s",
3
+ M = "m"
4
+ }
@@ -0,0 +1,4 @@
1
+ var t = /* @__PURE__ */ ((r) => (r.S = "s", r.M = "m", r))(t || {});
2
+ export {
3
+ t as ELoaderSize
4
+ };
@@ -1 +1,2 @@
1
1
  export { Loader } from './Loader';
2
+ export { ELoaderSize } from './constants';
@@ -1,4 +1,6 @@
1
1
  import { Loader as e } from "./Loader.js";
2
+ import { ELoaderSize as d } from "./constants.js";
2
3
  export {
4
+ d as ELoaderSize,
3
5
  e as Loader
4
6
  };
@@ -48,5 +48,21 @@ export type TTabTrailProps = {
48
48
  * Автоматически показывать кнопки навигации при переполнении
49
49
  */
50
50
  autoShowButtons?: boolean;
51
+ /**
52
+ * Дополнительный класс для каждой вкладки.
53
+ */
54
+ tabClassName?: string;
55
+ /**
56
+ * Дополнительный класс для списка вкладок.
57
+ */
58
+ listClassName?: string;
59
+ /**
60
+ * Дополнительный класс для панели контента таба.
61
+ */
62
+ panelClassName?: string;
63
+ /**
64
+ * Дополнительный класс для контейнера кнопок навигации.
65
+ */
66
+ buttonsClassName?: string;
51
67
  };
52
68
  export declare const TabTrail: import('react').ForwardRefExoticComponent<TTabTrailProps & import('react').RefAttributes<HTMLElement>>;
@@ -1,25 +1,25 @@
1
- import { jsxs as Q, jsx as A } from "react/jsx-runtime";
2
- import { c as Ee } from "../../index-DIxK0V-G.js";
3
- import * as O from "react";
4
- import L, { useRef as G, useState as K, createContext as oe, useReducer as ke, useMemo as D, useId as ie, useContext as ue, forwardRef as ye, useEffect as X } from "react";
1
+ import { jsxs as X, jsx as D } from "react/jsx-runtime";
2
+ import { c as J } from "../../index-DIxK0V-G.js";
3
+ import * as C from "react";
4
+ import M, { useRef as z, useState as Q, createContext as ie, useReducer as ke, useMemo as R, useId as ue, useContext as ce, forwardRef as ye, useEffect as Z } from "react";
5
5
  import { ETabTrailSize as Se } from "./constants.js";
6
6
  import { TabButtons as Ae } from "./TabButtons/TabButtons.js";
7
7
  import { ETabTrailButtonVariant as Fe } from "./TabButtons/constants.js";
8
8
  import { NotificationBadge as De } from "../NotificationBadge/NotificationBadge.js";
9
- import { n as z, M as le, W as U, s as j, y as V, o as F, H as q, $ as ce, b as Ne, D as de, a as W, u as Re, c as P, t as Le } from "../../keyboard-B0lm_zyn.js";
9
+ import { n as U, M as oe, W as V, s as K, y as q, o as N, H, $ as de, b as Ne, D as fe, a as G, u as Re, c as I, t as Le } from "../../keyboard-B0lm_zyn.js";
10
10
  import { w as Oe } from "../../use-active-press-86hajhdd.js";
11
11
  import { e as Me } from "../../use-resolve-button-type-DhFdPxnv.js";
12
- import { T as fe, s as Ce } from "../../hidden-DbgtYPOH.js";
13
- import { _ as B, T as J, P as R, F as w } from "../../focus-management-DE4t_lW3.js";
12
+ import { T as pe, s as Ce } from "../../hidden-DbgtYPOH.js";
13
+ import { _ as W, T as Y, P as O, F as P } from "../../focus-management-DE4t_lW3.js";
14
14
  import '../../assets/TabTrail.css';function Be() {
15
- let e = G(!1);
16
- return z(() => (e.current = !0, () => {
15
+ let e = z(!1);
16
+ return U(() => (e.current = !0, () => {
17
17
  e.current = !1;
18
18
  }), []), e;
19
19
  }
20
20
  function We({ onFocus: e }) {
21
- let [t, n] = K(!0), r = Be();
22
- return t ? L.createElement(fe, { as: "button", type: "button", features: Ce.Focusable, onFocus: (s) => {
21
+ let [t, n] = Q(!0), r = Be();
22
+ return t ? M.createElement(pe, { as: "button", type: "button", features: Ce.Focusable, onFocus: (s) => {
23
23
  s.preventDefault();
24
24
  let l, o = 50;
25
25
  function b() {
@@ -37,7 +37,7 @@ function We({ onFocus: e }) {
37
37
  l = requestAnimationFrame(b);
38
38
  } }) : null;
39
39
  }
40
- const pe = O.createContext(null);
40
+ const be = C.createContext(null);
41
41
  function Ge() {
42
42
  return { groups: /* @__PURE__ */ new Map(), get(e, t) {
43
43
  var n;
@@ -54,153 +54,153 @@ function Ge() {
54
54
  } };
55
55
  }
56
56
  function ze({ children: e }) {
57
- let t = O.useRef(Ge());
58
- return O.createElement(pe.Provider, { value: t }, e);
57
+ let t = C.useRef(Ge());
58
+ return C.createElement(be.Provider, { value: t }, e);
59
59
  }
60
- function be(e) {
61
- let t = O.useContext(pe);
60
+ function me(e) {
61
+ let t = C.useContext(be);
62
62
  if (!t) throw new Error("You must wrap your component in a <StableCollection>");
63
- let n = O.useId(), [r, s] = t.current.get(e, n);
64
- return O.useEffect(() => s, []), r;
63
+ let n = C.useId(), [r, s] = t.current.get(e, n);
64
+ return C.useEffect(() => s, []), r;
65
65
  }
66
66
  var Ue = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(Ue || {}), Ve = ((e) => (e[e.Less = -1] = "Less", e[e.Equal = 0] = "Equal", e[e.Greater = 1] = "Greater", e))(Ve || {}), qe = ((e) => (e[e.SetSelectedIndex = 0] = "SetSelectedIndex", e[e.RegisterTab = 1] = "RegisterTab", e[e.UnregisterTab = 2] = "UnregisterTab", e[e.RegisterPanel = 3] = "RegisterPanel", e[e.UnregisterPanel = 4] = "UnregisterPanel", e))(qe || {});
67
67
  let He = { 0(e, t) {
68
68
  var n;
69
- let r = B(e.tabs, (d) => d.current), s = B(e.panels, (d) => d.current), l = r.filter((d) => {
70
- var v;
71
- return !((v = d.current) != null && v.hasAttribute("disabled"));
69
+ let r = W(e.tabs, (d) => d.current), s = W(e.panels, (d) => d.current), l = r.filter((d) => {
70
+ var x;
71
+ return !((x = d.current) != null && x.hasAttribute("disabled"));
72
72
  }), o = { ...e, tabs: r, panels: s };
73
73
  if (t.index < 0 || t.index > r.length - 1) {
74
- let d = W(Math.sign(t.index - e.selectedIndex), { [-1]: () => 1, 0: () => W(Math.sign(t.index), { [-1]: () => 0, 0: () => 0, 1: () => 1 }), 1: () => 0 });
74
+ let d = G(Math.sign(t.index - e.selectedIndex), { [-1]: () => 1, 0: () => G(Math.sign(t.index), { [-1]: () => 0, 0: () => 0, 1: () => 1 }), 1: () => 0 });
75
75
  if (l.length === 0) return o;
76
- let v = W(d, { 0: () => r.indexOf(l[0]), 1: () => r.indexOf(l[l.length - 1]) });
77
- return { ...o, selectedIndex: v === -1 ? e.selectedIndex : v };
76
+ let x = G(d, { 0: () => r.indexOf(l[0]), 1: () => r.indexOf(l[l.length - 1]) });
77
+ return { ...o, selectedIndex: x === -1 ? e.selectedIndex : x };
78
78
  }
79
- let b = r.slice(0, t.index), x = [...r.slice(t.index), ...b].find((d) => l.includes(d));
80
- if (!x) return o;
81
- let i = (n = r.indexOf(x)) != null ? n : e.selectedIndex;
82
- return i === -1 && (i = e.selectedIndex), { ...o, selectedIndex: i };
79
+ let b = r.slice(0, t.index), T = [...r.slice(t.index), ...b].find((d) => l.includes(d));
80
+ if (!T) return o;
81
+ let v = (n = r.indexOf(T)) != null ? n : e.selectedIndex;
82
+ return v === -1 && (v = e.selectedIndex), { ...o, selectedIndex: v };
83
83
  }, 1(e, t) {
84
84
  if (e.tabs.includes(t.tab)) return e;
85
- let n = e.tabs[e.selectedIndex], r = B([...e.tabs, t.tab], (l) => l.current), s = e.selectedIndex;
85
+ let n = e.tabs[e.selectedIndex], r = W([...e.tabs, t.tab], (l) => l.current), s = e.selectedIndex;
86
86
  return e.info.current.isControlled || (s = r.indexOf(n), s === -1 && (s = e.selectedIndex)), { ...e, tabs: r, selectedIndex: s };
87
87
  }, 2(e, t) {
88
88
  return { ...e, tabs: e.tabs.filter((n) => n !== t.tab) };
89
89
  }, 3(e, t) {
90
- return e.panels.includes(t.panel) ? e : { ...e, panels: B([...e.panels, t.panel], (n) => n.current) };
90
+ return e.panels.includes(t.panel) ? e : { ...e, panels: W([...e.panels, t.panel], (n) => n.current) };
91
91
  }, 4(e, t) {
92
92
  return { ...e, panels: e.panels.filter((n) => n !== t.panel) };
93
- } }, Z = oe(null);
94
- Z.displayName = "TabsDataContext";
95
- function M(e) {
96
- let t = ue(Z);
93
+ } }, ee = ie(null);
94
+ ee.displayName = "TabsDataContext";
95
+ function B(e) {
96
+ let t = ce(ee);
97
97
  if (t === null) {
98
98
  let n = new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);
99
- throw Error.captureStackTrace && Error.captureStackTrace(n, M), n;
99
+ throw Error.captureStackTrace && Error.captureStackTrace(n, B), n;
100
100
  }
101
101
  return t;
102
102
  }
103
- let ee = oe(null);
104
- ee.displayName = "TabsActionsContext";
105
- function te(e) {
106
- let t = ue(ee);
103
+ let te = ie(null);
104
+ te.displayName = "TabsActionsContext";
105
+ function re(e) {
106
+ let t = ce(te);
107
107
  if (t === null) {
108
108
  let n = new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);
109
- throw Error.captureStackTrace && Error.captureStackTrace(n, te), n;
109
+ throw Error.captureStackTrace && Error.captureStackTrace(n, re), n;
110
110
  }
111
111
  return t;
112
112
  }
113
113
  function je(e, t) {
114
- return W(t.type, He, e, t);
114
+ return G(t.type, He, e, t);
115
115
  }
116
116
  let Je = "div";
117
117
  function Ke(e, t) {
118
118
  let { defaultIndex: n = 0, vertical: r = !1, manual: s = !1, onChange: l, selectedIndex: o = null, ...b } = e;
119
- const x = r ? "vertical" : "horizontal", i = s ? "manual" : "auto";
120
- let d = o !== null, v = j({ isControlled: d }), E = V(t), [f, u] = ke(je, { info: v, selectedIndex: o ?? n, tabs: [], panels: [] }), y = D(() => ({ selectedIndex: f.selectedIndex }), [f.selectedIndex]), S = j(l || (() => {
121
- })), T = j(f.tabs), a = D(() => ({ orientation: x, activation: i, ...f }), [x, i, f]), m = F((p) => (u({ type: 1, tab: p }), () => u({ type: 2, tab: p }))), I = F((p) => (u({ type: 3, panel: p }), () => u({ type: 4, panel: p }))), h = F((p) => {
122
- g.current !== p && S.current(p), d || u({ type: 0, index: p });
123
- }), g = j(d ? e.selectedIndex : f.selectedIndex), C = D(() => ({ registerTab: m, registerPanel: I, change: h }), []);
124
- z(() => {
125
- u({ type: 0, index: o ?? n });
126
- }, [o]), z(() => {
127
- if (g.current === void 0 || f.tabs.length <= 0) return;
128
- let p = B(f.tabs, (k) => k.current);
129
- p.some((k, N) => f.tabs[N] !== k) && h(p.indexOf(f.tabs[g.current]));
119
+ const T = r ? "vertical" : "horizontal", v = s ? "manual" : "auto";
120
+ let d = o !== null, x = K({ isControlled: d }), _ = q(t), [i, c] = ke(je, { info: x, selectedIndex: o ?? n, tabs: [], panels: [] }), S = R(() => ({ selectedIndex: i.selectedIndex }), [i.selectedIndex]), A = K(l || (() => {
121
+ })), h = K(i.tabs), f = R(() => ({ orientation: T, activation: v, ...i }), [T, v, i]), E = N((p) => (c({ type: 1, tab: p }), () => c({ type: 2, tab: p }))), F = N((p) => (c({ type: 3, panel: p }), () => c({ type: 4, panel: p }))), g = N((p) => {
122
+ a.current !== p && A.current(p), d || c({ type: 0, index: p });
123
+ }), a = K(d ? e.selectedIndex : i.selectedIndex), m = R(() => ({ registerTab: E, registerPanel: F, change: g }), []);
124
+ U(() => {
125
+ c({ type: 0, index: o ?? n });
126
+ }, [o]), U(() => {
127
+ if (a.current === void 0 || i.tabs.length <= 0) return;
128
+ let p = W(i.tabs, (y) => y.current);
129
+ p.some((y, L) => i.tabs[L] !== y) && g(p.indexOf(i.tabs[a.current]));
130
130
  });
131
- let Y = { ref: E };
132
- return L.createElement(ze, null, L.createElement(ee.Provider, { value: C }, L.createElement(Z.Provider, { value: a }, a.tabs.length <= 0 && L.createElement(We, { onFocus: () => {
133
- var p, k;
134
- for (let N of T.current) if (((p = N.current) == null ? void 0 : p.tabIndex) === 0) return (k = N.current) == null || k.focus(), !0;
131
+ let k = { ref: _ };
132
+ return M.createElement(ze, null, M.createElement(te.Provider, { value: m }, M.createElement(ee.Provider, { value: f }, f.tabs.length <= 0 && M.createElement(We, { onFocus: () => {
133
+ var p, y;
134
+ for (let L of h.current) if (((p = L.current) == null ? void 0 : p.tabIndex) === 0) return (y = L.current) == null || y.focus(), !0;
135
135
  return !1;
136
- } }), q({ ourProps: Y, theirProps: b, slot: y, defaultTag: Je, name: "Tabs" }))));
136
+ } }), H({ ourProps: k, theirProps: b, slot: S, defaultTag: Je, name: "Tabs" }))));
137
137
  }
138
138
  let Ye = "div";
139
139
  function Qe(e, t) {
140
- let { orientation: n, selectedIndex: r } = M("Tab.List"), s = V(t), l = D(() => ({ selectedIndex: r }), [r]);
141
- return q({ ourProps: { ref: s, role: "tablist", "aria-orientation": n }, theirProps: e, slot: l, defaultTag: Ye, name: "Tabs.List" });
140
+ let { orientation: n, selectedIndex: r } = B("Tab.List"), s = q(t), l = R(() => ({ selectedIndex: r }), [r]);
141
+ return H({ ourProps: { ref: s, role: "tablist", "aria-orientation": n }, theirProps: e, slot: l, defaultTag: Ye, name: "Tabs.List" });
142
142
  }
143
143
  let Xe = "button";
144
144
  function Ze(e, t) {
145
145
  var n, r;
146
- let s = ie(), { id: l = `headlessui-tabs-tab-${s}`, disabled: o = !1, autoFocus: b = !1, ...x } = e, { orientation: i, activation: d, selectedIndex: v, tabs: E, panels: f } = M("Tab"), u = te("Tab"), y = M("Tab"), [S, T] = K(null), a = G(null), m = V(a, t, T);
147
- z(() => u.registerTab(a), [u, a]);
148
- let I = be("tabs"), h = E.indexOf(a);
149
- h === -1 && (h = I);
150
- let g = h === v, C = F((c) => {
146
+ let s = ue(), { id: l = `headlessui-tabs-tab-${s}`, disabled: o = !1, autoFocus: b = !1, ...T } = e, { orientation: v, activation: d, selectedIndex: x, tabs: _, panels: i } = B("Tab"), c = re("Tab"), S = B("Tab"), [A, h] = Q(null), f = z(null), E = q(f, t, h);
147
+ U(() => c.registerTab(f), [c, f]);
148
+ let F = me("tabs"), g = _.indexOf(f);
149
+ g === -1 && (g = F);
150
+ let a = g === x, m = N((u) => {
151
151
  var $;
152
- let H = c();
153
- if (H === J.Success && d === "auto") {
154
- let _e = ($ = Re(a)) == null ? void 0 : $.activeElement, se = y.tabs.findIndex(($e) => $e.current === _e);
155
- se !== -1 && u.change(se);
152
+ let j = u();
153
+ if (j === Y.Success && d === "auto") {
154
+ let _e = ($ = Re(f)) == null ? void 0 : $.activeElement, le = S.tabs.findIndex((Ee) => Ee.current === _e);
155
+ le !== -1 && c.change(le);
156
156
  }
157
- return H;
158
- }), Y = F((c) => {
159
- let $ = E.map((H) => H.current).filter(Boolean);
160
- if (c.key === P.Space || c.key === P.Enter) {
161
- c.preventDefault(), c.stopPropagation(), u.change(h);
157
+ return j;
158
+ }), k = N((u) => {
159
+ let $ = _.map((j) => j.current).filter(Boolean);
160
+ if (u.key === I.Space || u.key === I.Enter) {
161
+ u.preventDefault(), u.stopPropagation(), c.change(g);
162
162
  return;
163
163
  }
164
- switch (c.key) {
165
- case P.Home:
166
- case P.PageUp:
167
- return c.preventDefault(), c.stopPropagation(), C(() => R($, w.First));
168
- case P.End:
169
- case P.PageDown:
170
- return c.preventDefault(), c.stopPropagation(), C(() => R($, w.Last));
164
+ switch (u.key) {
165
+ case I.Home:
166
+ case I.PageUp:
167
+ return u.preventDefault(), u.stopPropagation(), m(() => O($, P.First));
168
+ case I.End:
169
+ case I.PageDown:
170
+ return u.preventDefault(), u.stopPropagation(), m(() => O($, P.Last));
171
171
  }
172
- if (C(() => W(i, { vertical() {
173
- return c.key === P.ArrowUp ? R($, w.Previous | w.WrapAround) : c.key === P.ArrowDown ? R($, w.Next | w.WrapAround) : J.Error;
172
+ if (m(() => G(v, { vertical() {
173
+ return u.key === I.ArrowUp ? O($, P.Previous | P.WrapAround) : u.key === I.ArrowDown ? O($, P.Next | P.WrapAround) : Y.Error;
174
174
  }, horizontal() {
175
- return c.key === P.ArrowLeft ? R($, w.Previous | w.WrapAround) : c.key === P.ArrowRight ? R($, w.Next | w.WrapAround) : J.Error;
176
- } })) === J.Success) return c.preventDefault();
177
- }), p = G(!1), k = F(() => {
178
- var c;
179
- p.current || (p.current = !0, (c = a.current) == null || c.focus({ preventScroll: !0 }), u.change(h), Le(() => {
175
+ return u.key === I.ArrowLeft ? O($, P.Previous | P.WrapAround) : u.key === I.ArrowRight ? O($, P.Next | P.WrapAround) : Y.Error;
176
+ } })) === Y.Success) return u.preventDefault();
177
+ }), p = z(!1), y = N(() => {
178
+ var u;
179
+ p.current || (p.current = !0, (u = f.current) == null || u.focus({ preventScroll: !0 }), c.change(g), Le(() => {
180
180
  p.current = !1;
181
181
  }));
182
- }), N = F((c) => {
183
- c.preventDefault();
184
- }), { isFocusVisible: re, focusProps: ge } = ce({ autoFocus: b }), { isHovered: ne, hoverProps: Te } = Ne({ isDisabled: o }), { pressed: ae, pressProps: Ie } = Oe({ disabled: o }), Pe = D(() => ({ selected: g, hover: ne, active: ae, focus: re, autofocus: b, disabled: o }), [g, ne, re, ae, b, o]), we = de({ ref: m, onKeyDown: Y, onMouseDown: N, onClick: k, id: l, role: "tab", type: Me(e, S), "aria-controls": (r = (n = f[h]) == null ? void 0 : n.current) == null ? void 0 : r.id, "aria-selected": g, tabIndex: g ? 0 : -1, disabled: o || void 0, autoFocus: b }, ge, Te, Ie);
185
- return q({ ourProps: we, theirProps: x, slot: Pe, defaultTag: Xe, name: "Tabs.Tab" });
182
+ }), L = N((u) => {
183
+ u.preventDefault();
184
+ }), { isFocusVisible: ne, focusProps: Te } = de({ autoFocus: b }), { isHovered: ae, hoverProps: Ie } = Ne({ isDisabled: o }), { pressed: se, pressProps: Pe } = Oe({ disabled: o }), we = R(() => ({ selected: a, hover: ae, active: se, focus: ne, autofocus: b, disabled: o }), [a, ae, ne, se, b, o]), $e = fe({ ref: E, onKeyDown: k, onMouseDown: L, onClick: y, id: l, role: "tab", type: Me(e, A), "aria-controls": (r = (n = i[g]) == null ? void 0 : n.current) == null ? void 0 : r.id, "aria-selected": a, tabIndex: a ? 0 : -1, disabled: o || void 0, autoFocus: b }, Te, Ie, Pe);
185
+ return H({ ourProps: $e, theirProps: T, slot: we, defaultTag: Xe, name: "Tabs.Tab" });
186
186
  }
187
187
  let et = "div";
188
188
  function tt(e, t) {
189
- let { selectedIndex: n } = M("Tab.Panels"), r = V(t), s = D(() => ({ selectedIndex: n }), [n]);
190
- return q({ ourProps: { ref: r }, theirProps: e, slot: s, defaultTag: et, name: "Tabs.Panels" });
189
+ let { selectedIndex: n } = B("Tab.Panels"), r = q(t), s = R(() => ({ selectedIndex: n }), [n]);
190
+ return H({ ourProps: { ref: r }, theirProps: e, slot: s, defaultTag: et, name: "Tabs.Panels" });
191
191
  }
192
- let rt = "div", nt = le.RenderStrategy | le.Static;
192
+ let rt = "div", nt = oe.RenderStrategy | oe.Static;
193
193
  function at(e, t) {
194
194
  var n, r, s, l;
195
- let o = ie(), { id: b = `headlessui-tabs-panel-${o}`, tabIndex: x = 0, ...i } = e, { selectedIndex: d, tabs: v, panels: E } = M("Tab.Panel"), f = te("Tab.Panel"), u = G(null), y = V(u, t);
196
- z(() => f.registerPanel(u), [f, u]);
197
- let S = be("panels"), T = E.indexOf(u);
198
- T === -1 && (T = S);
199
- let a = T === d, { isFocusVisible: m, focusProps: I } = ce(), h = D(() => ({ selected: a, focus: m }), [a, m]), g = de({ ref: y, id: b, role: "tabpanel", "aria-labelledby": (r = (n = v[T]) == null ? void 0 : n.current) == null ? void 0 : r.id, tabIndex: a ? x : -1 }, I);
200
- return !a && ((s = i.unmount) == null || s) && !((l = i.static) != null && l) ? L.createElement(fe, { "aria-hidden": "true", ...g }) : q({ ourProps: g, theirProps: i, slot: h, defaultTag: rt, features: nt, visible: a, name: "Tabs.Panel" });
195
+ let o = ue(), { id: b = `headlessui-tabs-panel-${o}`, tabIndex: T = 0, ...v } = e, { selectedIndex: d, tabs: x, panels: _ } = B("Tab.Panel"), i = re("Tab.Panel"), c = z(null), S = q(c, t);
196
+ U(() => i.registerPanel(c), [i, c]);
197
+ let A = me("panels"), h = _.indexOf(c);
198
+ h === -1 && (h = A);
199
+ let f = h === d, { isFocusVisible: E, focusProps: F } = de(), g = R(() => ({ selected: f, focus: E }), [f, E]), a = fe({ ref: S, id: b, role: "tabpanel", "aria-labelledby": (r = (n = x[h]) == null ? void 0 : n.current) == null ? void 0 : r.id, tabIndex: f ? T : -1 }, F);
200
+ return !f && ((s = v.unmount) == null || s) && !((l = v.static) != null && l) ? M.createElement(pe, { "aria-hidden": "true", ...a }) : H({ ourProps: a, theirProps: v, slot: g, defaultTag: rt, features: nt, visible: f, name: "Tabs.Panel" });
201
201
  }
202
- let st = U(Ze), me = U(Ke), ve = U(Qe), xe = U(tt), he = U(at), lt = Object.assign(st, { Group: me, List: ve, Panels: xe, Panel: he });
203
- const ot = "_container_rlke5_2", it = "_group_rlke5_6", ut = "_tab_rlke5_16", ct = "_list_rlke5_51", dt = "_tabs_rlke5_62", ft = "_buttons_rlke5_68", pt = "_m_rlke5_75", bt = "_s_rlke5_83", _ = {
202
+ let st = V(Ze), ve = V(Ke), xe = V(Qe), he = V(tt), ge = V(at), lt = Object.assign(st, { Group: ve, List: xe, Panels: he, Panel: ge });
203
+ const ot = "_container_rlke5_2", it = "_group_rlke5_6", ut = "_tab_rlke5_16", ct = "_list_rlke5_51", dt = "_tabs_rlke5_62", ft = "_buttons_rlke5_68", pt = "_m_rlke5_75", bt = "_s_rlke5_83", w = {
204
204
  container: ot,
205
205
  group: it,
206
206
  "group-inner": "_group-inner_rlke5_9",
@@ -219,72 +219,90 @@ const ot = "_container_rlke5_2", it = "_group_rlke5_6", ut = "_tab_rlke5_16", ct
219
219
  selectedTabIndex: s,
220
220
  onTabChange: l,
221
221
  buttonsVariant: o = Fe.WHITE,
222
- autoShowButtons: b = !1
223
- }, x) => {
224
- const [i, d] = K(s || 0), [v, E] = K(!1), f = G(null);
225
- X(() => {
226
- s !== void 0 && s !== i && d(s);
222
+ autoShowButtons: b = !1,
223
+ tabClassName: T,
224
+ listClassName: v,
225
+ panelClassName: d,
226
+ buttonsClassName: x
227
+ }, _) => {
228
+ const [i, c] = Q(s || 0), [S, A] = Q(!1), h = z(null);
229
+ Z(() => {
230
+ s !== void 0 && s !== i && c(s);
227
231
  }, [i, s]);
228
- const u = (a) => {
229
- d(a), l == null || l(a);
230
- }, y = () => {
232
+ const f = (a) => {
233
+ c(a), l == null || l(a);
234
+ }, E = () => {
231
235
  const a = (i + 1) % e.length;
232
- u(a);
233
- }, S = () => {
236
+ f(a);
237
+ }, F = () => {
234
238
  const a = (i - 1 + e.length) % e.length;
235
- u(a);
239
+ f(a);
236
240
  };
237
- X(() => {
241
+ Z(() => {
238
242
  var m;
239
- const a = (m = f.current) == null ? void 0 : m.querySelector(
240
- `.${_.tab}[data-active="true"]`
243
+ const a = (m = h.current) == null ? void 0 : m.querySelector(
244
+ `.${w.tab}[data-active="true"]`
241
245
  );
242
246
  a && typeof a.scrollIntoView == "function" && a.scrollIntoView({
243
247
  behavior: "smooth",
244
248
  block: "nearest",
245
249
  inline: "center"
246
250
  });
247
- }, [i]), X(() => {
251
+ }, [i]), Z(() => {
248
252
  const a = () => {
249
- if (f.current) {
250
- const { scrollWidth: m, clientWidth: I } = f.current;
251
- E(m > I);
253
+ if (h.current) {
254
+ const { scrollWidth: m, clientWidth: k } = h.current;
255
+ A(m > k);
252
256
  }
253
257
  };
254
258
  return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
255
259
  }, [e]);
256
- const T = b ? v : n;
257
- return /* @__PURE__ */ Q(
258
- me,
260
+ const g = b ? S : n;
261
+ return /* @__PURE__ */ X(
262
+ ve,
259
263
  {
260
- ref: x,
261
- className: Ee(_.group, _[t], r),
264
+ ref: _,
265
+ className: J(w.group, w[t], r),
262
266
  selectedIndex: i,
263
- onChange: u,
267
+ onChange: f,
264
268
  children: [
265
- /* @__PURE__ */ Q("div", { className: _["group-inner"], children: [
266
- /* @__PURE__ */ A(ve, { ref: f, className: _.list, children: /* @__PURE__ */ A("div", { className: _.tabs, children: e.map(({ name: a, notificationCount: m }, I) => /* @__PURE__ */ Q(
267
- lt,
269
+ /* @__PURE__ */ X("div", { className: w["group-inner"], children: [
270
+ /* @__PURE__ */ D(
271
+ xe,
268
272
  {
269
- className: `${_.tab} ${i === I ? 'data-active="true"' : ""}`,
270
- "data-active": i === I,
271
- children: [
272
- a,
273
- m && /* @__PURE__ */ A(De, { count: m, size: "m" })
274
- ]
275
- },
276
- a
277
- )) }) }),
278
- T && /* @__PURE__ */ A("div", { className: _.buttons, children: /* @__PURE__ */ A(
273
+ ref: h,
274
+ className: J(w.list, v),
275
+ children: /* @__PURE__ */ D("div", { className: w.tabs, children: e.map(({ name: a, notificationCount: m }, k) => /* @__PURE__ */ X(
276
+ lt,
277
+ {
278
+ className: `${w.tab} ${i === k ? 'data-active="true"' : ""} ${T || ""}`,
279
+ "data-active": i === k,
280
+ children: [
281
+ a,
282
+ m && /* @__PURE__ */ D(De, { count: m, size: "m" })
283
+ ]
284
+ },
285
+ a
286
+ )) })
287
+ }
288
+ ),
289
+ g && /* @__PURE__ */ D("div", { className: J(w.buttons, x), children: /* @__PURE__ */ D(
279
290
  Ae,
280
291
  {
281
- handlePrevTab: S,
282
- handleNextTab: y,
292
+ handlePrevTab: F,
293
+ handleNextTab: E,
283
294
  buttonsVariant: o
284
295
  }
285
296
  ) })
286
297
  ] }),
287
- /* @__PURE__ */ A(xe, { className: _.panels, children: e.map(({ name: a, content: m }) => /* @__PURE__ */ A(he, { className: _.panel, children: m }, a)) })
298
+ /* @__PURE__ */ D(he, { className: w.panels, children: e.map(({ name: a, content: m }) => /* @__PURE__ */ D(
299
+ ge,
300
+ {
301
+ className: J(w.panel, d),
302
+ children: m
303
+ },
304
+ a
305
+ )) })
288
306
  ]
289
307
  }
290
308
  );
@@ -15,7 +15,7 @@ export { MergedButton } from './MergedButton';
15
15
  export { EMergedButtonVariantRound } from './MergedButton';
16
16
  export type { TButtonPropsWithoutStyles } from './MergedButton';
17
17
  export { Image } from './Image';
18
- export { Loader } from './Loader';
18
+ export { Loader, ELoaderSize } from './Loader';
19
19
  export { Slider, SliderLazy, EProgressBarPosition } from './Slider';
20
20
  export { Drawer } from './Drawer';
21
21
  export { EDrawerPosition } from './Drawer';
@@ -1,163 +1,165 @@
1
1
  import { Button as e } from "./Button/Button.js";
2
2
  import { EButtonForm as p, EButtonSize as a, EButtonVariantBorderless as i, EButtonVariantDefault as m, EButtonVariantOutline as f, EButtonVariantRound as x } from "./Button/constants.js";
3
- import { I as s } from "../Input-DAmc_HxO.js";
3
+ import { I as S } from "../Input-DAmc_HxO.js";
4
4
  import { EInputSize as E, EInputStatus as l, EInputVariant as u } from "./Input/constants.js";
5
5
  import { TextArea as c } from "./TextArea/TextArea.js";
6
6
  import { ETextAreaInputSize as g } from "./TextArea/constants.js";
7
- import { InputPassword as V } from "./InputPassword/InputPassword.js";
8
- import { InputPhoneNumber as z } from "./InputPhoneNumber/InputPhoneNumber.js";
7
+ import { InputPassword as z } from "./InputPassword/InputPassword.js";
8
+ import { InputPhoneNumber as h } from "./InputPhoneNumber/InputPhoneNumber.js";
9
9
  import { getMaskedInputPhoneValue as B, getUnmaskedInputValue as P } from "./InputPhoneNumber/utils.js";
10
- import { OtpInput as L } from "./OtpInput/OtpInput.js";
10
+ import { OtpInput as A } from "./OtpInput/OtpInput.js";
11
11
  import { RadioGroup as R } from "./RadioGroup/RadioGroup.js";
12
12
  import { DatePicker as w } from "./DatePicker/DatePicker.js";
13
13
  import { MergedButton as C } from "./MergedButton/MergedButton.js";
14
14
  import { EMergedButtonVariantRound as D } from "./MergedButton/constants.js";
15
15
  import { AppImage as v } from "./Image/Image.js";
16
16
  import { Loader as N } from "./Loader/Loader.js";
17
- import { SliderLazy as O } from "./Slider/index.js";
18
- import { Drawer as q } from "./Drawer/Drawer.js";
19
- import { EDrawerPosition as J } from "./Drawer/constants.js";
20
- import { Dropdown as Q } from "./Dropdown/Dropdown.js";
21
- import { Steps as X } from "./Steps/Steps.js";
22
- import { EStepColor as _, EStepsSize as $ } from "./Steps/constants.js";
23
- import { Vote as ro } from "./Vote/Vote.js";
24
- import { EVoteSize as to } from "./Vote/constants.js";
25
- import { SelectSearch as ao } from "./SelectSearch/SelectSearch.js";
26
- import { ESelectSearchSize as mo } from "./SelectSearch/constants.js";
27
- import { CheckboxMimir as xo } from "./CheckboxMimir/CheckboxMimir.js";
28
- import { Tag as so } from "./Tag/Tag.js";
29
- import { ETagSize as Eo, ETagType as lo } from "./Tag/constants.js";
30
- import { Timer as co } from "./Timer/Timer.js";
31
- import { Accordion as go } from "./Accordion/Accordion.js";
32
- import { EAccordionSize as Vo } from "./Accordion/constants.js";
33
- import { AccordionItem as zo } from "./Accordion/AccordionItem/AccordionItem.js";
34
- import { TabTrail as Bo } from "./TabTrail/TabTrail.js";
35
- import { ETabTrailSize as Ao } from "./TabTrail/constants.js";
36
- import { Pagination as Mo } from "./Pagination/Pagination.js";
37
- import { ToastProvider as Uo } from "./Toasts/ToastsProvider.js";
38
- import { useToast as yo } from "./Toasts/hooks.js";
39
- import { EToastPosition as bo, EToastVariant as Do } from "./Toasts/constants.js";
40
- import { UploaderPhotos as vo } from "./UploaderPhotos/UploaderPhotos.js";
41
- import { UploaderFiles as No } from "./UploaderFiles/UploaderFiles.js";
42
- import { EUploaderFilesVariant as Oo } from "./UploaderFiles/constants.js";
43
- import { Uploader as qo } from "./Uploader/Uploader.js";
44
- import { Link as Jo } from "./AnchorLink/Link.js";
45
- import { ELinkSize as Qo, ELinkVariant as Wo } from "./AnchorLink/constants.js";
46
- import { NotificationBadge as Yo } from "./NotificationBadge/NotificationBadge.js";
47
- import { ENotificationBadgeSize as $o } from "./NotificationBadge/constants.js";
48
- import { Chip as rr } from "./Chip/Chip.js";
49
- import { EChipSize as tr, EChipVariant as pr } from "./Chip/constants.js";
50
- import { UniversalUploader as ir } from "./UniversalUploader/UniversalUploader.js";
51
- import { EUploaderType as fr } from "./UniversalUploader/constants.js";
52
- import { InputRangeSlider as nr } from "./InputRangeSlider/InputRangeSlider.js";
53
- import { EInputRangeSliderBorderState as Sr, EInputRangeSliderPositions as Er } from "./InputRangeSlider/constants.js";
54
- import { GosZnak as ur } from "./GosZnak/GosZnak.js";
55
- import { EGosZnakSize as cr, EGosZnakType as Tr } from "./GosZnak/constants.js";
56
- import { Switcher as Ir } from "./Switcher/Switcher.js";
57
- import { ELabelPositions as hr } from "./Switcher/constants.js";
58
- import { TwinSwitcher as kr } from "./TwinSwitcher/TwinSwitcher.js";
59
- import { SkeletonBrick as Pr } from "./Skeleton/SkeletonBrick/SkeletonBrick.js";
60
- import { SkeletonText as Lr } from "./Skeleton/SkeletonText/SkeletonText.js";
61
- import { SkeletonCircle as Rr } from "./Skeleton/SkeletonCircle/SkeletonCircle.js";
62
- import { ESkeletonVariant as wr } from "./Skeleton/constants.js";
63
- import { Avatar as Cr } from "./Avatar/Avatar.js";
64
- import { EAvatarSize as Dr } from "./Avatar/constants.js";
65
- import { MultiSelectSearch as vr } from "./MultiSelectSearch/MultiSelectSearch.js";
66
- import { EMultiSelectSearchSize as Nr } from "./MultiSelectSearch/constants.js";
67
- import { ListFiles as Or } from "./ListFiles/ListFiles.js";
68
- import { EFileItemVariant as qr } from "./ListFiles/constants.js";
69
- import { ListPhotos as Jr } from "./ListPhotos/ListPhotos.js";
70
- import { MessageShortReply as Qr } from "./MessageShortReply/MessageShortReply.js";
71
- import { EMessageShortReplyVariant as Xr } from "./MessageShortReply/constants.js";
72
- import { default as _r } from "./Slider/Slider.js";
73
- import { EProgressBarPosition as oe } from "./Slider/constants.js";
17
+ import { ELoaderSize as O } from "./Loader/constants.js";
18
+ import { SliderLazy as q } from "./Slider/index.js";
19
+ import { Drawer as J } from "./Drawer/Drawer.js";
20
+ import { EDrawerPosition as Q } from "./Drawer/constants.js";
21
+ import { Dropdown as X } from "./Dropdown/Dropdown.js";
22
+ import { Steps as _ } from "./Steps/Steps.js";
23
+ import { EStepColor as oo, EStepsSize as ro } from "./Steps/constants.js";
24
+ import { Vote as to } from "./Vote/Vote.js";
25
+ import { EVoteSize as ao } from "./Vote/constants.js";
26
+ import { SelectSearch as mo } from "./SelectSearch/SelectSearch.js";
27
+ import { ESelectSearchSize as xo } from "./SelectSearch/constants.js";
28
+ import { CheckboxMimir as So } from "./CheckboxMimir/CheckboxMimir.js";
29
+ import { Tag as Eo } from "./Tag/Tag.js";
30
+ import { ETagSize as uo, ETagType as co } from "./Tag/constants.js";
31
+ import { Timer as go } from "./Timer/Timer.js";
32
+ import { Accordion as zo } from "./Accordion/Accordion.js";
33
+ import { EAccordionSize as ho } from "./Accordion/constants.js";
34
+ import { AccordionItem as Bo } from "./Accordion/AccordionItem/AccordionItem.js";
35
+ import { TabTrail as Lo } from "./TabTrail/TabTrail.js";
36
+ import { ETabTrailSize as Mo } from "./TabTrail/constants.js";
37
+ import { Pagination as Uo } from "./Pagination/Pagination.js";
38
+ import { ToastProvider as yo } from "./Toasts/ToastsProvider.js";
39
+ import { useToast as bo } from "./Toasts/hooks.js";
40
+ import { EToastPosition as Fo, EToastVariant as vo } from "./Toasts/constants.js";
41
+ import { UploaderPhotos as No } from "./UploaderPhotos/UploaderPhotos.js";
42
+ import { UploaderFiles as Oo } from "./UploaderFiles/UploaderFiles.js";
43
+ import { EUploaderFilesVariant as qo } from "./UploaderFiles/constants.js";
44
+ import { Uploader as Jo } from "./Uploader/Uploader.js";
45
+ import { Link as Qo } from "./AnchorLink/Link.js";
46
+ import { ELinkSize as Xo, ELinkVariant as Yo } from "./AnchorLink/constants.js";
47
+ import { NotificationBadge as $o } from "./NotificationBadge/NotificationBadge.js";
48
+ import { ENotificationBadgeSize as rr } from "./NotificationBadge/constants.js";
49
+ import { Chip as tr } from "./Chip/Chip.js";
50
+ import { EChipSize as ar, EChipVariant as ir } from "./Chip/constants.js";
51
+ import { UniversalUploader as fr } from "./UniversalUploader/UniversalUploader.js";
52
+ import { EUploaderType as nr } from "./UniversalUploader/constants.js";
53
+ import { InputRangeSlider as sr } from "./InputRangeSlider/InputRangeSlider.js";
54
+ import { EInputRangeSliderBorderState as lr, EInputRangeSliderPositions as ur } from "./InputRangeSlider/constants.js";
55
+ import { GosZnak as cr } from "./GosZnak/GosZnak.js";
56
+ import { EGosZnakSize as gr, EGosZnakType as Ir } from "./GosZnak/constants.js";
57
+ import { Switcher as Vr } from "./Switcher/Switcher.js";
58
+ import { ELabelPositions as kr } from "./Switcher/constants.js";
59
+ import { TwinSwitcher as Pr } from "./TwinSwitcher/TwinSwitcher.js";
60
+ import { SkeletonBrick as Ar } from "./Skeleton/SkeletonBrick/SkeletonBrick.js";
61
+ import { SkeletonText as Rr } from "./Skeleton/SkeletonText/SkeletonText.js";
62
+ import { SkeletonCircle as wr } from "./Skeleton/SkeletonCircle/SkeletonCircle.js";
63
+ import { ESkeletonVariant as Cr } from "./Skeleton/constants.js";
64
+ import { Avatar as Dr } from "./Avatar/Avatar.js";
65
+ import { EAvatarSize as vr } from "./Avatar/constants.js";
66
+ import { MultiSelectSearch as Nr } from "./MultiSelectSearch/MultiSelectSearch.js";
67
+ import { EMultiSelectSearchSize as Or } from "./MultiSelectSearch/constants.js";
68
+ import { ListFiles as qr } from "./ListFiles/ListFiles.js";
69
+ import { EFileItemVariant as Jr } from "./ListFiles/constants.js";
70
+ import { ListPhotos as Qr } from "./ListPhotos/ListPhotos.js";
71
+ import { MessageShortReply as Xr } from "./MessageShortReply/MessageShortReply.js";
72
+ import { EMessageShortReplyVariant as _r } from "./MessageShortReply/constants.js";
73
+ import { default as oe } from "./Slider/Slider.js";
74
+ import { EProgressBarPosition as ee } from "./Slider/constants.js";
74
75
  export {
75
- go as Accordion,
76
- zo as AccordionItem,
77
- Cr as Avatar,
76
+ zo as Accordion,
77
+ Bo as AccordionItem,
78
+ Dr as Avatar,
78
79
  e as Button,
79
- xo as CheckboxMimir,
80
- rr as Chip,
80
+ So as CheckboxMimir,
81
+ tr as Chip,
81
82
  w as DatePicker,
82
- q as Drawer,
83
- Q as Dropdown,
84
- Vo as EAccordionSize,
85
- Dr as EAvatarSize,
83
+ J as Drawer,
84
+ X as Dropdown,
85
+ ho as EAccordionSize,
86
+ vr as EAvatarSize,
86
87
  p as EButtonForm,
87
88
  a as EButtonSize,
88
89
  i as EButtonVariantBorderless,
89
90
  m as EButtonVariantDefault,
90
91
  f as EButtonVariantOutline,
91
92
  x as EButtonVariantRound,
92
- tr as EChipSize,
93
- pr as EChipVariant,
94
- J as EDrawerPosition,
95
- qr as EFileItemVariant,
96
- cr as EGosZnakSize,
97
- Tr as EGosZnakType,
98
- Sr as EInputRangeSliderBorderState,
99
- Er as EInputRangeSliderPositions,
93
+ ar as EChipSize,
94
+ ir as EChipVariant,
95
+ Q as EDrawerPosition,
96
+ Jr as EFileItemVariant,
97
+ gr as EGosZnakSize,
98
+ Ir as EGosZnakType,
99
+ lr as EInputRangeSliderBorderState,
100
+ ur as EInputRangeSliderPositions,
100
101
  E as EInputSize,
101
102
  l as EInputStatus,
102
103
  u as EInputVariant,
103
- hr as ELabelPositions,
104
- Qo as ELinkSize,
105
- Wo as ELinkVariant,
104
+ kr as ELabelPositions,
105
+ Xo as ELinkSize,
106
+ Yo as ELinkVariant,
107
+ O as ELoaderSize,
106
108
  D as EMergedButtonVariantRound,
107
- Xr as EMessageShortReplyVariant,
108
- Nr as EMultiSelectSearchSize,
109
- $o as ENotificationBadgeSize,
110
- oe as EProgressBarPosition,
111
- mo as ESelectSearchSize,
112
- wr as ESkeletonVariant,
113
- _ as EStepColor,
114
- $ as EStepsSize,
115
- Ao as ETabTrailSize,
116
- Eo as ETagSize,
117
- lo as ETagType,
109
+ _r as EMessageShortReplyVariant,
110
+ Or as EMultiSelectSearchSize,
111
+ rr as ENotificationBadgeSize,
112
+ ee as EProgressBarPosition,
113
+ xo as ESelectSearchSize,
114
+ Cr as ESkeletonVariant,
115
+ oo as EStepColor,
116
+ ro as EStepsSize,
117
+ Mo as ETabTrailSize,
118
+ uo as ETagSize,
119
+ co as ETagType,
118
120
  g as ETextAreaInputSize,
119
- bo as EToastPosition,
120
- Do as EToastVariant,
121
- Oo as EUploaderFilesVariant,
122
- fr as EUploaderType,
123
- to as EVoteSize,
124
- ur as GosZnak,
121
+ Fo as EToastPosition,
122
+ vo as EToastVariant,
123
+ qo as EUploaderFilesVariant,
124
+ nr as EUploaderType,
125
+ ao as EVoteSize,
126
+ cr as GosZnak,
125
127
  v as Image,
126
- s as Input,
127
- V as InputPassword,
128
- z as InputPhoneNumber,
129
- nr as InputRangeSlider,
130
- Jo as Link,
131
- Or as ListFiles,
132
- Jr as ListPhotos,
128
+ S as Input,
129
+ z as InputPassword,
130
+ h as InputPhoneNumber,
131
+ sr as InputRangeSlider,
132
+ Qo as Link,
133
+ qr as ListFiles,
134
+ Qr as ListPhotos,
133
135
  N as Loader,
134
136
  C as MergedButton,
135
- Qr as MessageShortReply,
136
- vr as MultiSelectSearch,
137
- Yo as NotificationBadge,
138
- L as OtpInput,
139
- Mo as Pagination,
137
+ Xr as MessageShortReply,
138
+ Nr as MultiSelectSearch,
139
+ $o as NotificationBadge,
140
+ A as OtpInput,
141
+ Uo as Pagination,
140
142
  R as RadioGroup,
141
- ao as SelectSearch,
142
- Pr as SkeletonBrick,
143
- Rr as SkeletonCircle,
144
- Lr as SkeletonText,
145
- _r as Slider,
146
- O as SliderLazy,
147
- X as Steps,
148
- Ir as Switcher,
149
- Bo as TabTrail,
150
- so as Tag,
143
+ mo as SelectSearch,
144
+ Ar as SkeletonBrick,
145
+ wr as SkeletonCircle,
146
+ Rr as SkeletonText,
147
+ oe as Slider,
148
+ q as SliderLazy,
149
+ _ as Steps,
150
+ Vr as Switcher,
151
+ Lo as TabTrail,
152
+ Eo as Tag,
151
153
  c as TextArea,
152
- co as Timer,
153
- Uo as ToastProvider,
154
- kr as TwinSwitcher,
155
- ir as UniversalUploader,
156
- qo as Uploader,
157
- No as UploaderFiles,
158
- vo as UploaderPhotos,
159
- ro as Vote,
154
+ go as Timer,
155
+ yo as ToastProvider,
156
+ Pr as TwinSwitcher,
157
+ fr as UniversalUploader,
158
+ Jo as Uploader,
159
+ Oo as UploaderFiles,
160
+ No as UploaderPhotos,
161
+ to as Vote,
160
162
  B as getMaskedInputPhoneValue,
161
163
  P as getUnmaskedInputValue,
162
- yo as useToast
164
+ bo as useToast
163
165
  };
package/dist/index.js CHANGED
@@ -8,179 +8,181 @@ import { InputPassword as z } from "./components/InputPassword/InputPassword.js"
8
8
  import { InputPhoneNumber as h } from "./components/InputPhoneNumber/InputPhoneNumber.js";
9
9
  import { getMaskedInputPhoneValue as B, getUnmaskedInputValue as P } from "./components/InputPhoneNumber/utils.js";
10
10
  import { OtpInput as y } from "./components/OtpInput/OtpInput.js";
11
- import { RadioGroup as L } from "./components/RadioGroup/RadioGroup.js";
11
+ import { RadioGroup as R } from "./components/RadioGroup/RadioGroup.js";
12
12
  import { DatePicker as C } from "./components/DatePicker/DatePicker.js";
13
13
  import { MergedButton as b } from "./components/MergedButton/MergedButton.js";
14
14
  import { EMergedButtonVariantRound as v } from "./components/MergedButton/constants.js";
15
15
  import { AppImage as F } from "./components/Image/Image.js";
16
16
  import { Loader as N } from "./components/Loader/Loader.js";
17
- import { SliderLazy as Q } from "./components/Slider/index.js";
18
- import { Drawer as j } from "./components/Drawer/Drawer.js";
19
- import { EDrawerPosition as H } from "./components/Drawer/constants.js";
20
- import { Dropdown as K } from "./components/Dropdown/Dropdown.js";
21
- import { Steps as X } from "./components/Steps/Steps.js";
22
- import { EStepColor as _, EStepsSize as $ } from "./components/Steps/constants.js";
23
- import { Vote as ro } from "./components/Vote/Vote.js";
24
- import { EVoteSize as to } from "./components/Vote/constants.js";
25
- import { SelectSearch as ao } from "./components/SelectSearch/SelectSearch.js";
26
- import { ESelectSearchSize as io } from "./components/SelectSearch/constants.js";
27
- import { CheckboxMimir as xo } from "./components/CheckboxMimir/CheckboxMimir.js";
28
- import { Tag as so } from "./components/Tag/Tag.js";
29
- import { ETagSize as lo, ETagType as Eo } from "./components/Tag/constants.js";
30
- import { Timer as co } from "./components/Timer/Timer.js";
31
- import { Accordion as go } from "./components/Accordion/Accordion.js";
32
- import { EAccordionSize as zo } from "./components/Accordion/constants.js";
33
- import { AccordionItem as ho } from "./components/Accordion/AccordionItem/AccordionItem.js";
34
- import { TabTrail as Bo } from "./components/TabTrail/TabTrail.js";
35
- import { ETabTrailSize as Mo } from "./components/TabTrail/constants.js";
36
- import { Pagination as Ro } from "./components/Pagination/Pagination.js";
37
- import { ToastProvider as Ao } from "./components/Toasts/ToastsProvider.js";
38
- import { useToast as Uo } from "./components/Toasts/hooks.js";
39
- import { EToastPosition as wo, EToastVariant as vo } from "./components/Toasts/constants.js";
40
- import { UploaderPhotos as Fo } from "./components/UploaderPhotos/UploaderPhotos.js";
41
- import { UploaderFiles as No } from "./components/UploaderFiles/UploaderFiles.js";
42
- import { EUploaderFilesVariant as Qo } from "./components/UploaderFiles/constants.js";
43
- import { Uploader as jo } from "./components/Uploader/Uploader.js";
44
- import { Link as Ho } from "./components/AnchorLink/Link.js";
45
- import { ELinkSize as Ko, ELinkVariant as Wo } from "./components/AnchorLink/constants.js";
46
- import { NotificationBadge as Yo } from "./components/NotificationBadge/NotificationBadge.js";
47
- import { ENotificationBadgeSize as $o } from "./components/NotificationBadge/constants.js";
48
- import { Chip as rr } from "./components/Chip/Chip.js";
49
- import { EChipSize as tr, EChipVariant as pr } from "./components/Chip/constants.js";
50
- import { UniversalUploader as mr } from "./components/UniversalUploader/UniversalUploader.js";
51
- import { EUploaderType as fr } from "./components/UniversalUploader/constants.js";
52
- import { InputRangeSlider as nr } from "./components/InputRangeSlider/InputRangeSlider.js";
53
- import { EInputRangeSliderBorderState as ur, EInputRangeSliderPositions as lr } from "./components/InputRangeSlider/constants.js";
54
- import { GosZnak as Sr } from "./components/GosZnak/GosZnak.js";
55
- import { EGosZnakSize as cr, EGosZnakType as Tr } from "./components/GosZnak/constants.js";
56
- import { Switcher as Ir } from "./components/Switcher/Switcher.js";
57
- import { ELabelPositions as Vr } from "./components/Switcher/constants.js";
58
- import { TwinSwitcher as kr } from "./components/TwinSwitcher/TwinSwitcher.js";
59
- import { SkeletonBrick as Pr } from "./components/Skeleton/SkeletonBrick/SkeletonBrick.js";
60
- import { SkeletonText as yr } from "./components/Skeleton/SkeletonText/SkeletonText.js";
61
- import { SkeletonCircle as Lr } from "./components/Skeleton/SkeletonCircle/SkeletonCircle.js";
62
- import { ESkeletonVariant as Cr } from "./components/Skeleton/constants.js";
63
- import { Avatar as br } from "./components/Avatar/Avatar.js";
64
- import { EAvatarSize as vr } from "./components/Avatar/constants.js";
65
- import { MultiSelectSearch as Fr } from "./components/MultiSelectSearch/MultiSelectSearch.js";
66
- import { EMultiSelectSearchSize as Nr } from "./components/MultiSelectSearch/constants.js";
67
- import { ListFiles as Qr } from "./components/ListFiles/ListFiles.js";
68
- import { EFileItemVariant as jr } from "./components/ListFiles/constants.js";
69
- import { ListPhotos as Hr } from "./components/ListPhotos/ListPhotos.js";
70
- import { MessageShortReply as Kr } from "./components/MessageShortReply/MessageShortReply.js";
71
- import { EMessageShortReplyVariant as Xr } from "./components/MessageShortReply/constants.js";
72
- import { useMediaQuery as _r } from "./hooks/useMediaQuery/useMediaQuery.js";
73
- import { EMediaQuery as oe, EMinMediaQuery as re } from "./hooks/useMediaQuery/constants.js";
74
- import { useLockBodyScroll as te } from "./hooks/useLockBodyScroll/useLockBodyScroll.js";
75
- import { useInterval as ae } from "./hooks/useInterval/useInterval.js";
76
- import { useTimer as ie } from "./hooks/useTimer/index.js";
77
- import { useCopyToClipboard as xe } from "./hooks/useCopyToClipboard/useCopyToClipboard.js";
78
- import { useMergeRefs as se } from "./hooks/useMergeRefs/useMergeRefs.js";
79
- import { useResizeObserver as le } from "./hooks/useResizeObserver/useResizeObserver.js";
80
- import { Icon as Se } from "./icons/Icon.js";
81
- import { formating as ce } from "./utils/index.js";
82
- import { default as ge } from "./components/Slider/Slider.js";
83
- import { EProgressBarPosition as ze } from "./components/Slider/constants.js";
84
- import { parseDate as he } from "./utils/formating/Date.js";
17
+ import { ELoaderSize as Q } from "./components/Loader/constants.js";
18
+ import { SliderLazy as j } from "./components/Slider/index.js";
19
+ import { Drawer as H } from "./components/Drawer/Drawer.js";
20
+ import { EDrawerPosition as K } from "./components/Drawer/constants.js";
21
+ import { Dropdown as X } from "./components/Dropdown/Dropdown.js";
22
+ import { Steps as _ } from "./components/Steps/Steps.js";
23
+ import { EStepColor as oo, EStepsSize as ro } from "./components/Steps/constants.js";
24
+ import { Vote as to } from "./components/Vote/Vote.js";
25
+ import { EVoteSize as ao } from "./components/Vote/constants.js";
26
+ import { SelectSearch as io } from "./components/SelectSearch/SelectSearch.js";
27
+ import { ESelectSearchSize as xo } from "./components/SelectSearch/constants.js";
28
+ import { CheckboxMimir as so } from "./components/CheckboxMimir/CheckboxMimir.js";
29
+ import { Tag as lo } from "./components/Tag/Tag.js";
30
+ import { ETagSize as So, ETagType as co } from "./components/Tag/constants.js";
31
+ import { Timer as go } from "./components/Timer/Timer.js";
32
+ import { Accordion as zo } from "./components/Accordion/Accordion.js";
33
+ import { EAccordionSize as ho } from "./components/Accordion/constants.js";
34
+ import { AccordionItem as Bo } from "./components/Accordion/AccordionItem/AccordionItem.js";
35
+ import { TabTrail as Mo } from "./components/TabTrail/TabTrail.js";
36
+ import { ETabTrailSize as Lo } from "./components/TabTrail/constants.js";
37
+ import { Pagination as Ao } from "./components/Pagination/Pagination.js";
38
+ import { ToastProvider as Uo } from "./components/Toasts/ToastsProvider.js";
39
+ import { useToast as wo } from "./components/Toasts/hooks.js";
40
+ import { EToastPosition as Do, EToastVariant as Fo } from "./components/Toasts/constants.js";
41
+ import { UploaderPhotos as No } from "./components/UploaderPhotos/UploaderPhotos.js";
42
+ import { UploaderFiles as Qo } from "./components/UploaderFiles/UploaderFiles.js";
43
+ import { EUploaderFilesVariant as jo } from "./components/UploaderFiles/constants.js";
44
+ import { Uploader as Ho } from "./components/Uploader/Uploader.js";
45
+ import { Link as Ko } from "./components/AnchorLink/Link.js";
46
+ import { ELinkSize as Xo, ELinkVariant as Yo } from "./components/AnchorLink/constants.js";
47
+ import { NotificationBadge as $o } from "./components/NotificationBadge/NotificationBadge.js";
48
+ import { ENotificationBadgeSize as rr } from "./components/NotificationBadge/constants.js";
49
+ import { Chip as tr } from "./components/Chip/Chip.js";
50
+ import { EChipSize as ar, EChipVariant as mr } from "./components/Chip/constants.js";
51
+ import { UniversalUploader as fr } from "./components/UniversalUploader/UniversalUploader.js";
52
+ import { EUploaderType as nr } from "./components/UniversalUploader/constants.js";
53
+ import { InputRangeSlider as ur } from "./components/InputRangeSlider/InputRangeSlider.js";
54
+ import { EInputRangeSliderBorderState as Er, EInputRangeSliderPositions as Sr } from "./components/InputRangeSlider/constants.js";
55
+ import { GosZnak as cr } from "./components/GosZnak/GosZnak.js";
56
+ import { EGosZnakSize as gr, EGosZnakType as Ir } from "./components/GosZnak/constants.js";
57
+ import { Switcher as Vr } from "./components/Switcher/Switcher.js";
58
+ import { ELabelPositions as kr } from "./components/Switcher/constants.js";
59
+ import { TwinSwitcher as Pr } from "./components/TwinSwitcher/TwinSwitcher.js";
60
+ import { SkeletonBrick as yr } from "./components/Skeleton/SkeletonBrick/SkeletonBrick.js";
61
+ import { SkeletonText as Rr } from "./components/Skeleton/SkeletonText/SkeletonText.js";
62
+ import { SkeletonCircle as Cr } from "./components/Skeleton/SkeletonCircle/SkeletonCircle.js";
63
+ import { ESkeletonVariant as br } from "./components/Skeleton/constants.js";
64
+ import { Avatar as vr } from "./components/Avatar/Avatar.js";
65
+ import { EAvatarSize as Fr } from "./components/Avatar/constants.js";
66
+ import { MultiSelectSearch as Nr } from "./components/MultiSelectSearch/MultiSelectSearch.js";
67
+ import { EMultiSelectSearchSize as Qr } from "./components/MultiSelectSearch/constants.js";
68
+ import { ListFiles as jr } from "./components/ListFiles/ListFiles.js";
69
+ import { EFileItemVariant as Hr } from "./components/ListFiles/constants.js";
70
+ import { ListPhotos as Kr } from "./components/ListPhotos/ListPhotos.js";
71
+ import { MessageShortReply as Xr } from "./components/MessageShortReply/MessageShortReply.js";
72
+ import { EMessageShortReplyVariant as _r } from "./components/MessageShortReply/constants.js";
73
+ import { useMediaQuery as oe } from "./hooks/useMediaQuery/useMediaQuery.js";
74
+ import { EMediaQuery as ee, EMinMediaQuery as te } from "./hooks/useMediaQuery/constants.js";
75
+ import { useLockBodyScroll as ae } from "./hooks/useLockBodyScroll/useLockBodyScroll.js";
76
+ import { useInterval as ie } from "./hooks/useInterval/useInterval.js";
77
+ import { useTimer as xe } from "./hooks/useTimer/index.js";
78
+ import { useCopyToClipboard as se } from "./hooks/useCopyToClipboard/useCopyToClipboard.js";
79
+ import { useMergeRefs as le } from "./hooks/useMergeRefs/useMergeRefs.js";
80
+ import { useResizeObserver as Se } from "./hooks/useResizeObserver/useResizeObserver.js";
81
+ import { Icon as ce } from "./icons/Icon.js";
82
+ import { formating as ge } from "./utils/index.js";
83
+ import { default as ze } from "./components/Slider/Slider.js";
84
+ import { EProgressBarPosition as he } from "./components/Slider/constants.js";
85
+ import { parseDate as Be } from "./utils/formating/Date.js";
85
86
  import './assets/index.css';export {
86
- go as Accordion,
87
- ho as AccordionItem,
88
- br as Avatar,
87
+ zo as Accordion,
88
+ Bo as AccordionItem,
89
+ vr as Avatar,
89
90
  e as Button,
90
- xo as CheckboxMimir,
91
- rr as Chip,
91
+ so as CheckboxMimir,
92
+ tr as Chip,
92
93
  C as DatePicker,
93
- j as Drawer,
94
- K as Dropdown,
95
- zo as EAccordionSize,
96
- vr as EAvatarSize,
94
+ H as Drawer,
95
+ X as Dropdown,
96
+ ho as EAccordionSize,
97
+ Fr as EAvatarSize,
97
98
  p as EButtonForm,
98
99
  a as EButtonSize,
99
100
  m as EButtonVariantBorderless,
100
101
  i as EButtonVariantDefault,
101
102
  f as EButtonVariantOutline,
102
103
  x as EButtonVariantRound,
103
- tr as EChipSize,
104
- pr as EChipVariant,
105
- H as EDrawerPosition,
106
- jr as EFileItemVariant,
107
- cr as EGosZnakSize,
108
- Tr as EGosZnakType,
109
- ur as EInputRangeSliderBorderState,
110
- lr as EInputRangeSliderPositions,
104
+ ar as EChipSize,
105
+ mr as EChipVariant,
106
+ K as EDrawerPosition,
107
+ Hr as EFileItemVariant,
108
+ gr as EGosZnakSize,
109
+ Ir as EGosZnakType,
110
+ Er as EInputRangeSliderBorderState,
111
+ Sr as EInputRangeSliderPositions,
111
112
  l as EInputSize,
112
113
  E as EInputStatus,
113
114
  S as EInputVariant,
114
- Vr as ELabelPositions,
115
- Ko as ELinkSize,
116
- Wo as ELinkVariant,
117
- oe as EMediaQuery,
115
+ kr as ELabelPositions,
116
+ Xo as ELinkSize,
117
+ Yo as ELinkVariant,
118
+ Q as ELoaderSize,
119
+ ee as EMediaQuery,
118
120
  v as EMergedButtonVariantRound,
119
- Xr as EMessageShortReplyVariant,
120
- re as EMinMediaQuery,
121
- Nr as EMultiSelectSearchSize,
122
- $o as ENotificationBadgeSize,
123
- ze as EProgressBarPosition,
124
- io as ESelectSearchSize,
125
- Cr as ESkeletonVariant,
126
- _ as EStepColor,
127
- $ as EStepsSize,
128
- Mo as ETabTrailSize,
129
- lo as ETagSize,
130
- Eo as ETagType,
121
+ _r as EMessageShortReplyVariant,
122
+ te as EMinMediaQuery,
123
+ Qr as EMultiSelectSearchSize,
124
+ rr as ENotificationBadgeSize,
125
+ he as EProgressBarPosition,
126
+ xo as ESelectSearchSize,
127
+ br as ESkeletonVariant,
128
+ oo as EStepColor,
129
+ ro as EStepsSize,
130
+ Lo as ETabTrailSize,
131
+ So as ETagSize,
132
+ co as ETagType,
131
133
  g as ETextAreaInputSize,
132
- wo as EToastPosition,
133
- vo as EToastVariant,
134
- Qo as EUploaderFilesVariant,
135
- fr as EUploaderType,
136
- to as EVoteSize,
137
- Sr as GosZnak,
138
- Se as Icon,
134
+ Do as EToastPosition,
135
+ Fo as EToastVariant,
136
+ jo as EUploaderFilesVariant,
137
+ nr as EUploaderType,
138
+ ao as EVoteSize,
139
+ cr as GosZnak,
140
+ ce as Icon,
139
141
  F as Image,
140
142
  s as Input,
141
143
  z as InputPassword,
142
144
  h as InputPhoneNumber,
143
- nr as InputRangeSlider,
144
- Ho as Link,
145
- Qr as ListFiles,
146
- Hr as ListPhotos,
145
+ ur as InputRangeSlider,
146
+ Ko as Link,
147
+ jr as ListFiles,
148
+ Kr as ListPhotos,
147
149
  N as Loader,
148
150
  b as MergedButton,
149
- Kr as MessageShortReply,
150
- Fr as MultiSelectSearch,
151
- Yo as NotificationBadge,
151
+ Xr as MessageShortReply,
152
+ Nr as MultiSelectSearch,
153
+ $o as NotificationBadge,
152
154
  y as OtpInput,
153
- Ro as Pagination,
154
- L as RadioGroup,
155
- ao as SelectSearch,
156
- Pr as SkeletonBrick,
157
- Lr as SkeletonCircle,
158
- yr as SkeletonText,
159
- ge as Slider,
160
- Q as SliderLazy,
161
- X as Steps,
162
- Ir as Switcher,
163
- Bo as TabTrail,
164
- so as Tag,
155
+ Ao as Pagination,
156
+ R as RadioGroup,
157
+ io as SelectSearch,
158
+ yr as SkeletonBrick,
159
+ Cr as SkeletonCircle,
160
+ Rr as SkeletonText,
161
+ ze as Slider,
162
+ j as SliderLazy,
163
+ _ as Steps,
164
+ Vr as Switcher,
165
+ Mo as TabTrail,
166
+ lo as Tag,
165
167
  c as TextArea,
166
- co as Timer,
167
- Ao as ToastProvider,
168
- kr as TwinSwitcher,
169
- mr as UniversalUploader,
170
- jo as Uploader,
171
- No as UploaderFiles,
172
- Fo as UploaderPhotos,
173
- ro as Vote,
174
- ce as formating,
168
+ go as Timer,
169
+ Uo as ToastProvider,
170
+ Pr as TwinSwitcher,
171
+ fr as UniversalUploader,
172
+ Ho as Uploader,
173
+ Qo as UploaderFiles,
174
+ No as UploaderPhotos,
175
+ to as Vote,
176
+ ge as formating,
175
177
  B as getMaskedInputPhoneValue,
176
178
  P as getUnmaskedInputValue,
177
- he as parseDate,
178
- xe as useCopyToClipboard,
179
- ae as useInterval,
180
- te as useLockBodyScroll,
181
- _r as useMediaQuery,
182
- se as useMergeRefs,
183
- le as useResizeObserver,
184
- ie as useTimer,
185
- Uo as useToast
179
+ Be as parseDate,
180
+ se as useCopyToClipboard,
181
+ ie as useInterval,
182
+ ae as useLockBodyScroll,
183
+ oe as useMediaQuery,
184
+ le as useMergeRefs,
185
+ Se as useResizeObserver,
186
+ xe as useTimer,
187
+ wo as useToast
186
188
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.38.28",
4
+ "version": "1.38.30",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {