mimir-ui-kit 1.38.29 → 1.38.31
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/TabTrail/TabTrail.d.ts +16 -0
- package/dist/components/TabTrail/TabTrail.js +160 -142
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/12px/MessageRead12px.js +2 -2
- package/dist/icons/components/index.js +570 -569
- package/dist/index-BuVUKy18.js +2658 -0
- package/package.json +1 -1
- package/dist/index-DzVMAmli.js +0 -1431
@@ -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
|
2
|
-
import { c as
|
3
|
-
import * as
|
4
|
-
import
|
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
|
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
|
13
|
-
import { _ as
|
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 =
|
16
|
-
return
|
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] =
|
22
|
-
return t ?
|
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
|
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 =
|
58
|
-
return
|
57
|
+
let t = C.useRef(Ge());
|
58
|
+
return C.createElement(be.Provider, { value: t }, e);
|
59
59
|
}
|
60
|
-
function
|
61
|
-
let t =
|
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 =
|
64
|
-
return
|
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 =
|
70
|
-
var
|
71
|
-
return !((
|
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 =
|
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
|
77
|
-
return { ...o, selectedIndex:
|
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),
|
80
|
-
if (!
|
81
|
-
let
|
82
|
-
return
|
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 =
|
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:
|
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
|
-
} },
|
94
|
-
|
95
|
-
function
|
96
|
-
let t =
|
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,
|
99
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n, B), n;
|
100
100
|
}
|
101
101
|
return t;
|
102
102
|
}
|
103
|
-
let
|
104
|
-
|
105
|
-
function
|
106
|
-
let t =
|
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,
|
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
|
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
|
120
|
-
let d = o !== null,
|
121
|
-
})),
|
122
|
-
|
123
|
-
}),
|
124
|
-
|
125
|
-
|
126
|
-
}, [o]),
|
127
|
-
if (
|
128
|
-
let p =
|
129
|
-
p.some((
|
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
|
132
|
-
return
|
133
|
-
var p,
|
134
|
-
for (let
|
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
|
-
} }),
|
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 } =
|
141
|
-
return
|
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 =
|
147
|
-
|
148
|
-
let
|
149
|
-
|
150
|
-
let
|
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
|
153
|
-
if (
|
154
|
-
let _e = ($ = Re(
|
155
|
-
|
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
|
158
|
-
}),
|
159
|
-
let $ =
|
160
|
-
if (
|
161
|
-
|
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 (
|
165
|
-
case
|
166
|
-
case
|
167
|
-
return
|
168
|
-
case
|
169
|
-
case
|
170
|
-
return
|
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 (
|
173
|
-
return
|
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
|
176
|
-
} })) ===
|
177
|
-
}), p =
|
178
|
-
var
|
179
|
-
p.current || (p.current = !0, (
|
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
|
-
}),
|
183
|
-
|
184
|
-
}), { isFocusVisible:
|
185
|
-
return
|
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 } =
|
190
|
-
return
|
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 =
|
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 =
|
196
|
-
|
197
|
-
let
|
198
|
-
|
199
|
-
let
|
200
|
-
return !
|
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 =
|
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
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
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
|
229
|
-
|
230
|
-
},
|
232
|
+
const f = (a) => {
|
233
|
+
c(a), l == null || l(a);
|
234
|
+
}, E = () => {
|
231
235
|
const a = (i + 1) % e.length;
|
232
|
-
|
233
|
-
},
|
236
|
+
f(a);
|
237
|
+
}, F = () => {
|
234
238
|
const a = (i - 1 + e.length) % e.length;
|
235
|
-
|
239
|
+
f(a);
|
236
240
|
};
|
237
|
-
|
241
|
+
Z(() => {
|
238
242
|
var m;
|
239
|
-
const a = (m =
|
240
|
-
`.${
|
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]),
|
251
|
+
}, [i]), Z(() => {
|
248
252
|
const a = () => {
|
249
|
-
if (
|
250
|
-
const { scrollWidth: m, clientWidth:
|
251
|
-
|
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
|
257
|
-
return /* @__PURE__ */
|
258
|
-
|
260
|
+
const g = b ? S : n;
|
261
|
+
return /* @__PURE__ */ X(
|
262
|
+
ve,
|
259
263
|
{
|
260
|
-
ref:
|
261
|
-
className:
|
264
|
+
ref: _,
|
265
|
+
className: J(w.group, w[t], r),
|
262
266
|
selectedIndex: i,
|
263
|
-
onChange:
|
267
|
+
onChange: f,
|
264
268
|
children: [
|
265
|
-
/* @__PURE__ */
|
266
|
-
/* @__PURE__ */
|
267
|
-
|
269
|
+
/* @__PURE__ */ X("div", { className: w["group-inner"], children: [
|
270
|
+
/* @__PURE__ */ D(
|
271
|
+
xe,
|
268
272
|
{
|
269
|
-
|
270
|
-
|
271
|
-
children:
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
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:
|
282
|
-
handleNextTab:
|
292
|
+
handlePrevTab: F,
|
293
|
+
handleNextTab: E,
|
283
294
|
buttonsVariant: o
|
284
295
|
}
|
285
296
|
) })
|
286
297
|
] }),
|
287
|
-
/* @__PURE__ */
|
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
|
);
|
package/dist/icons/Icon.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
2
2
|
import { Suspense as s } from "react";
|
3
|
-
import { i as e } from "../index-
|
3
|
+
import { i as e } from "../index-BuVUKy18.js";
|
4
4
|
const p = ({ iconName: o, ...n }) => {
|
5
5
|
const r = e[o];
|
6
6
|
return r ? /* @__PURE__ */ t(s, { fallback: null, children: /* @__PURE__ */ t(r, { ...n, "data-testid": o }) }) : null;
|
@@ -12,7 +12,7 @@ const t = (l) => /* @__PURE__ */ d(
|
|
12
12
|
/* @__PURE__ */ e(
|
13
13
|
"path",
|
14
14
|
{
|
15
|
-
|
15
|
+
fillRule: "evenodd",
|
16
16
|
clipRule: "evenodd",
|
17
17
|
d: "M8.14103 4.3077L2.76402 10.1635L0.131592 7.29443L0.868431 6.61836L2.76431 8.68466L7.40445 3.63135L8.14103 4.3077Z",
|
18
18
|
fill: "white"
|
@@ -21,7 +21,7 @@ const t = (l) => /* @__PURE__ */ d(
|
|
21
21
|
/* @__PURE__ */ e(
|
22
22
|
"path",
|
23
23
|
{
|
24
|
-
|
24
|
+
fillRule: "evenodd",
|
25
25
|
clipRule: "evenodd",
|
26
26
|
d: "M11.8682 4.3077L6.50505 10.1484L5.2356 8.86685L5.94605 8.16311L6.47762 8.69975L11.1316 3.63135L11.8682 4.3077Z",
|
27
27
|
fill: "white"
|