zabi-components 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +460 -79
- package/dist/Tabs-DOvhDdUK.js +1106 -0
- package/dist/{Toast-DXZ9gllw.js → Toast-1EMgTOM4.js} +80 -80
- package/dist/{ToastManager-Q990X_Ag.js → ToastManager-ZcovxilX.js} +119 -117
- package/dist/Toggle-CTlSe4Ym.js +2488 -0
- package/dist/Tooltip-gkAHhbjD.js +1152 -0
- package/dist/atoms/index.js +15 -15
- package/dist/index/index.js +314 -34
- package/dist/molecules/index.js +12 -8
- package/dist/organisms/index.js +1 -1
- package/dist/{x-DpVwziig.js → x-Dsi-CPO3.js} +11 -11
- package/package.json +1 -1
- package/dist/Tabs-Tv_48hdh.js +0 -859
- package/dist/Toggle-BidBFl7X.js +0 -2276
- package/dist/Tooltip-BA4NYwx_.js +0 -1214
package/dist/atoms/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { B as s,
|
|
2
|
-
import { B as
|
|
3
|
-
import { T as f, a as k } from "../Toast-
|
|
1
|
+
import { B as s, P as o, H as t, O as r, a as g, S as T, b as l, T as m } from "../Tooltip-gkAHhbjD.js";
|
|
2
|
+
import { B as i, C as p, a as x, b as c, I as d, S, c as b, T as B, d as C } from "../Toggle-CTlSe4Ym.js";
|
|
3
|
+
import { T as f, a as k } from "../Toast-1EMgTOM4.js";
|
|
4
4
|
export {
|
|
5
5
|
s as Badge,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
i as Button,
|
|
7
|
+
p as Card,
|
|
8
8
|
x as Checkbox,
|
|
9
9
|
c as ColorPicker,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
o as DebugPanel,
|
|
11
|
+
t as Heading,
|
|
12
|
+
d as Input,
|
|
13
|
+
r as OptimizedImage,
|
|
14
|
+
g as Progress,
|
|
15
|
+
T as ScaleDemo,
|
|
16
16
|
S as Select,
|
|
17
|
-
|
|
17
|
+
l as Skeleton,
|
|
18
18
|
b as TextAlignment,
|
|
19
|
-
|
|
19
|
+
B as Textarea,
|
|
20
20
|
f as ThemeToggle,
|
|
21
21
|
k as Toast,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
C as Toggle,
|
|
23
|
+
m as Tooltip
|
|
24
24
|
};
|
package/dist/index/index.js
CHANGED
|
@@ -1,36 +1,316 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { B as
|
|
3
|
-
import { T as
|
|
4
|
-
import { A, K as
|
|
5
|
-
import { N as
|
|
1
|
+
import { B as H, P as N, H as S, O as z, a as K, S as M, b as B, T as $ } from "../Tooltip-gkAHhbjD.js";
|
|
2
|
+
import { B as R, C as U, a as q, b as V, D as G, I as J, S as Q, e as W, c as X, T as Y, d as Z, m as _, k as ee, j as se, f as ae, l as ne, i as te, o as re, q as oe, p as ie, n as ce, g as ue, u as le, h as fe } from "../Toggle-CTlSe4Ym.js";
|
|
3
|
+
import { T as be, a as pe } from "../Toast-1EMgTOM4.js";
|
|
4
|
+
import { A as me, C as ve, a as Ie, K as ye, I as he, H as Te, M as ke, S as Ce, T as xe, h as De, f as Ee, c as Oe, i as we, d as Ae, m as Fe, e as Le, l as Pe, g as He, j as Ne, k as Se, t as ze, b as Ke, u as Me } from "../Tabs-DOvhDdUK.js";
|
|
5
|
+
import { N as $e, a as je, T as Re } from "../ToastManager-ZcovxilX.js";
|
|
6
|
+
const b = (e, s) => {
|
|
7
|
+
const { shouldFocus: a = !1, delay: n = 0 } = s || {};
|
|
8
|
+
function r() {
|
|
9
|
+
a && (n > 0 ? setTimeout(() => e.focus(), n) : e.focus());
|
|
10
|
+
}
|
|
11
|
+
return a && r(), {
|
|
12
|
+
update(t) {
|
|
13
|
+
const { shouldFocus: o = !1, delay: i = 0 } = t || {};
|
|
14
|
+
o && (i > 0 ? setTimeout(() => e.focus(), i) : e.focus());
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}, p = (e, s) => {
|
|
18
|
+
function a(n) {
|
|
19
|
+
e.contains(n.target) || s(n);
|
|
20
|
+
}
|
|
21
|
+
return document.addEventListener("click", a, !0), {
|
|
22
|
+
destroy() {
|
|
23
|
+
document.removeEventListener("click", a, !0);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}, g = (e, s) => {
|
|
27
|
+
function a(n) {
|
|
28
|
+
n.key === "Escape" && s(n);
|
|
29
|
+
}
|
|
30
|
+
return e.addEventListener("keydown", a), {
|
|
31
|
+
destroy() {
|
|
32
|
+
e.removeEventListener("keydown", a);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}, m = (e, s) => {
|
|
36
|
+
const a = new ResizeObserver(s);
|
|
37
|
+
return a.observe(e), {
|
|
38
|
+
destroy() {
|
|
39
|
+
a.disconnect();
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}, v = (e, { callback: s, options: a = {} }) => {
|
|
43
|
+
const n = new IntersectionObserver(s, a);
|
|
44
|
+
return n.observe(e), {
|
|
45
|
+
destroy() {
|
|
46
|
+
n.disconnect();
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}, I = (e) => {
|
|
50
|
+
function s() {
|
|
51
|
+
e.style.height = "auto", e.style.height = `${e.scrollHeight}px`;
|
|
52
|
+
}
|
|
53
|
+
return s(), e.addEventListener("input", s), {
|
|
54
|
+
destroy() {
|
|
55
|
+
e.removeEventListener("input", s);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}, y = (e, { src: s, onLoad: a, onError: n }) => {
|
|
59
|
+
const r = new IntersectionObserver((t) => {
|
|
60
|
+
t.forEach((o) => {
|
|
61
|
+
o.isIntersecting && (e instanceof HTMLImageElement && (e.src = s, e.onload = a, e.onerror = n), r.unobserve(e));
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
return r.observe(e), {
|
|
65
|
+
update(t) {
|
|
66
|
+
t != null && t.src && e instanceof HTMLImageElement && (e.src = t.src);
|
|
67
|
+
},
|
|
68
|
+
destroy() {
|
|
69
|
+
r.disconnect();
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
function h(e = "") {
|
|
74
|
+
return {
|
|
75
|
+
isOpen: !1,
|
|
76
|
+
activeItem: e,
|
|
77
|
+
currentFocusIndex: -1,
|
|
78
|
+
isKeyboardNavigation: !1
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function T(e, s) {
|
|
82
|
+
return { ...e, ...s };
|
|
83
|
+
}
|
|
84
|
+
const c = {
|
|
85
|
+
density: {
|
|
86
|
+
compact: "density-compact",
|
|
87
|
+
comfortable: "density-comfortable"
|
|
88
|
+
},
|
|
89
|
+
variant: {
|
|
90
|
+
header: "nav-header",
|
|
91
|
+
sidebar: "nav-sidebar",
|
|
92
|
+
breadcrumb: "nav-breadcrumb",
|
|
93
|
+
tabs: "nav-tabs",
|
|
94
|
+
pagination: "nav-pagination"
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
function k(e, s, a = "") {
|
|
98
|
+
return [
|
|
99
|
+
"modern-navigation",
|
|
100
|
+
c.variant[e.variant],
|
|
101
|
+
`nav-${e.orientation}`,
|
|
102
|
+
c.density[e.density],
|
|
103
|
+
e.responsive ? "responsive" : "",
|
|
104
|
+
e.collapsible ? "collapsible" : "",
|
|
105
|
+
s.isOpen ? "open" : "",
|
|
106
|
+
a
|
|
107
|
+
].filter(Boolean).join(" ");
|
|
108
|
+
}
|
|
109
|
+
function C(e, s, a, n) {
|
|
110
|
+
return function(t) {
|
|
111
|
+
if (!(!e.isOpen && t.key !== "Enter" && t.key !== " "))
|
|
112
|
+
switch (s({ isKeyboardNavigation: !0 }), t.key) {
|
|
113
|
+
case "Enter":
|
|
114
|
+
case " ":
|
|
115
|
+
t.preventDefault();
|
|
116
|
+
const o = document.activeElement;
|
|
117
|
+
(o == null ? void 0 : o.getAttribute("role")) === "menuitem" && o.click();
|
|
118
|
+
break;
|
|
119
|
+
case "Escape":
|
|
120
|
+
e.isOpen && s({ isOpen: !1 });
|
|
121
|
+
break;
|
|
122
|
+
case "ArrowDown":
|
|
123
|
+
t.preventDefault(), u(e, s, a);
|
|
124
|
+
break;
|
|
125
|
+
case "ArrowUp":
|
|
126
|
+
t.preventDefault(), l(e, s, a);
|
|
127
|
+
break;
|
|
128
|
+
case "ArrowRight":
|
|
129
|
+
t.preventDefault(), e.isOpen && u(e, s, a);
|
|
130
|
+
break;
|
|
131
|
+
case "ArrowLeft":
|
|
132
|
+
t.preventDefault(), l(e, s, a);
|
|
133
|
+
break;
|
|
134
|
+
case "Home":
|
|
135
|
+
t.preventDefault(), f(e, s, a);
|
|
136
|
+
break;
|
|
137
|
+
case "End":
|
|
138
|
+
t.preventDefault(), d(e, s, a);
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function u(e, s, a) {
|
|
144
|
+
var t;
|
|
145
|
+
const n = a();
|
|
146
|
+
if (n.length === 0) return;
|
|
147
|
+
const r = (e.currentFocusIndex + 1) % n.length;
|
|
148
|
+
s({ currentFocusIndex: r }), (t = n[r]) == null || t.focus();
|
|
149
|
+
}
|
|
150
|
+
function l(e, s, a) {
|
|
151
|
+
var t;
|
|
152
|
+
const n = a();
|
|
153
|
+
if (n.length === 0) return;
|
|
154
|
+
const r = e.currentFocusIndex <= 0 ? n.length - 1 : e.currentFocusIndex - 1;
|
|
155
|
+
s({ currentFocusIndex: r }), (t = n[r]) == null || t.focus();
|
|
156
|
+
}
|
|
157
|
+
function f(e, s, a) {
|
|
158
|
+
var r;
|
|
159
|
+
const n = a();
|
|
160
|
+
n.length !== 0 && (s({ currentFocusIndex: 0 }), (r = n[0]) == null || r.focus());
|
|
161
|
+
}
|
|
162
|
+
function d(e, s, a) {
|
|
163
|
+
var t;
|
|
164
|
+
const n = a();
|
|
165
|
+
if (n.length === 0) return;
|
|
166
|
+
const r = n.length - 1;
|
|
167
|
+
s({ currentFocusIndex: r }), (t = n[r]) == null || t.focus();
|
|
168
|
+
}
|
|
169
|
+
function x(e) {
|
|
170
|
+
return Array.from(
|
|
171
|
+
e.querySelectorAll(
|
|
172
|
+
'a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
173
|
+
)
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
function D(e, s, a) {
|
|
177
|
+
return {
|
|
178
|
+
toggle: () => {
|
|
179
|
+
const n = !e.isOpen;
|
|
180
|
+
s({ isOpen: n }), n && setTimeout(() => {
|
|
181
|
+
var t;
|
|
182
|
+
const r = a();
|
|
183
|
+
r.length > 0 && (s({ currentFocusIndex: 0 }), (t = r[0]) == null || t.focus());
|
|
184
|
+
}, 100);
|
|
185
|
+
},
|
|
186
|
+
open: () => {
|
|
187
|
+
s({ isOpen: !0 }), setTimeout(() => {
|
|
188
|
+
var r;
|
|
189
|
+
const n = a();
|
|
190
|
+
n.length > 0 && (s({ currentFocusIndex: 0 }), (r = n[0]) == null || r.focus());
|
|
191
|
+
}, 100);
|
|
192
|
+
},
|
|
193
|
+
close: () => {
|
|
194
|
+
s({ isOpen: !1 });
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
function E(e, s, a) {
|
|
199
|
+
return function(r, t) {
|
|
200
|
+
if (r.disabled) {
|
|
201
|
+
t.preventDefault();
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
e({ activeItem: r.id }), a("item-click", { item: r, event: t }), s.collapsible && s.variant !== "tabs" && e({ isOpen: !1 });
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
const O = {
|
|
208
|
+
mobile: 768,
|
|
209
|
+
tablet: 1024,
|
|
210
|
+
desktop: 1280
|
|
211
|
+
};
|
|
212
|
+
function w(e, s, a, n = "navigation") {
|
|
213
|
+
return {
|
|
214
|
+
"aria-label": s || `${e} navigation`,
|
|
215
|
+
"aria-describedby": a || void 0,
|
|
216
|
+
role: n,
|
|
217
|
+
"data-variant": e
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
function A(e) {
|
|
221
|
+
return {
|
|
222
|
+
"aria-expanded": e,
|
|
223
|
+
"aria-controls": "navigation-menu",
|
|
224
|
+
"aria-haspopup": "menu",
|
|
225
|
+
"aria-label": "Toggle navigation menu"
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
function F(e, s) {
|
|
229
|
+
return {
|
|
230
|
+
id: "navigation-menu",
|
|
231
|
+
role: e === "horizontal" ? "menubar" : "menu",
|
|
232
|
+
"aria-orientation": e,
|
|
233
|
+
"aria-label": `${s} menu`
|
|
234
|
+
};
|
|
235
|
+
}
|
|
6
236
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
237
|
+
me as Alert,
|
|
238
|
+
H as Badge,
|
|
239
|
+
R as Button,
|
|
240
|
+
U as Card,
|
|
241
|
+
ve as CardsGrid,
|
|
242
|
+
q as Checkbox,
|
|
243
|
+
V as ColorPicker,
|
|
244
|
+
Ie as ContactForm,
|
|
245
|
+
N as DebugPanel,
|
|
246
|
+
G as Dropdown,
|
|
247
|
+
ye as DynamicForm,
|
|
248
|
+
he as FileUpload,
|
|
249
|
+
S as Heading,
|
|
250
|
+
Te as Hero,
|
|
251
|
+
J as Input,
|
|
252
|
+
ke as Modal,
|
|
253
|
+
$e as Navbar,
|
|
254
|
+
z as OptimizedImage,
|
|
255
|
+
K as Progress,
|
|
256
|
+
M as ScaleDemo,
|
|
257
|
+
Q as Select,
|
|
258
|
+
Ce as SelectedCardInfo,
|
|
259
|
+
B as Skeleton,
|
|
260
|
+
W as SlideUp,
|
|
261
|
+
xe as Tabs,
|
|
262
|
+
X as TextAlignment,
|
|
263
|
+
Y as Textarea,
|
|
264
|
+
be as ThemeToggle,
|
|
265
|
+
pe as Toast,
|
|
266
|
+
je as ToastContainer,
|
|
267
|
+
Re as ToastManager,
|
|
268
|
+
Z as Toggle,
|
|
269
|
+
$ as Tooltip,
|
|
270
|
+
I as autoResize,
|
|
271
|
+
_ as baseInputClasses,
|
|
272
|
+
O as breakpoints,
|
|
273
|
+
p as clickOutside,
|
|
274
|
+
ee as createChangeEventDetail,
|
|
275
|
+
se as createInputEventDetail,
|
|
276
|
+
ae as createInputState,
|
|
277
|
+
E as createItemClickHandler,
|
|
278
|
+
C as createKeyboardNavigation,
|
|
279
|
+
D as createMenuState,
|
|
280
|
+
h as createNavigationState,
|
|
281
|
+
De as createTabClickHandler,
|
|
282
|
+
Ee as createTabsKeyboardNavigation,
|
|
283
|
+
Oe as createTabsState,
|
|
284
|
+
g as escapeKey,
|
|
285
|
+
b as focus,
|
|
286
|
+
we as focusTab,
|
|
287
|
+
ne as formSizeClasses,
|
|
288
|
+
te as generateInputId,
|
|
289
|
+
w as getAccessibilityProps,
|
|
290
|
+
Ae as getContainerClasses,
|
|
291
|
+
re as getDisabledClasses,
|
|
292
|
+
x as getFocusableItems,
|
|
293
|
+
oe as getHelperTextClasses,
|
|
294
|
+
ie as getLabelClasses,
|
|
295
|
+
A as getMenuButtonProps,
|
|
296
|
+
F as getMenuListProps,
|
|
297
|
+
k as getNavigationClasses,
|
|
298
|
+
Fe as getPanelAccessibilityProps,
|
|
299
|
+
Le as getPanelClasses,
|
|
300
|
+
ce as getStateClasses,
|
|
301
|
+
Pe as getTabAccessibilityProps,
|
|
302
|
+
He as getTabClasses,
|
|
303
|
+
Ne as getTabContent,
|
|
304
|
+
v as intersectionObserver,
|
|
305
|
+
Se as isTabActive,
|
|
306
|
+
y as lazyLoad,
|
|
307
|
+
c as navigationClasses,
|
|
308
|
+
m as resizeObserver,
|
|
309
|
+
ze as tabsSizeClasses,
|
|
310
|
+
Ke as tabsVariantClasses,
|
|
311
|
+
ue as updateFocusState,
|
|
312
|
+
le as updateInputState,
|
|
313
|
+
T as updateNavigationState,
|
|
314
|
+
Me as updateTabsState,
|
|
315
|
+
fe as updateValidationState
|
|
36
316
|
};
|
package/dist/molecules/index.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { A as s,
|
|
2
|
-
import { D as
|
|
1
|
+
import { A as s, C as r, a as e, K as d, I as l, H as t, M as m, S as p, T as i } from "../Tabs-DOvhDdUK.js";
|
|
2
|
+
import { D as C, e as c } from "../Toggle-CTlSe4Ym.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Alert,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
r as CardsGrid,
|
|
6
|
+
e as ContactForm,
|
|
7
|
+
C as Dropdown,
|
|
8
|
+
d as DynamicForm,
|
|
9
|
+
l as FileUpload,
|
|
10
|
+
t as Hero,
|
|
11
|
+
m as Modal,
|
|
12
|
+
p as SelectedCardInfo,
|
|
13
|
+
c as SlideUp,
|
|
14
|
+
i as Tabs
|
|
11
15
|
};
|
package/dist/organisms/index.js
CHANGED
|
@@ -3008,7 +3008,7 @@ function Wf(t, e) {
|
|
|
3008
3008
|
)), Se();
|
|
3009
3009
|
}
|
|
3010
3010
|
export {
|
|
3011
|
-
|
|
3011
|
+
Cr as $,
|
|
3012
3012
|
jf as A,
|
|
3013
3013
|
Cf as B,
|
|
3014
3014
|
Ef as C,
|
|
@@ -3025,17 +3025,17 @@ export {
|
|
|
3025
3025
|
Vf as N,
|
|
3026
3026
|
Bf as O,
|
|
3027
3027
|
nf as P,
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3028
|
+
Nf as Q,
|
|
3029
|
+
yf as R,
|
|
3030
|
+
Yi as S,
|
|
3031
|
+
T,
|
|
3032
|
+
$i as U,
|
|
3033
|
+
dn as V,
|
|
3034
|
+
Lt as W,
|
|
3035
3035
|
Wf as X,
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3036
|
+
xt as Y,
|
|
3037
|
+
Pf as Z,
|
|
3038
|
+
Je as _,
|
|
3039
3039
|
Rf as a,
|
|
3040
3040
|
mf as a0,
|
|
3041
3041
|
er as a1,
|