sander-ui 0.1.2 → 0.1.4
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/dist/index.css +1 -1
- package/dist/index.js +75 -1611
- package/dist/index10.js +39 -0
- package/dist/index11.js +24 -0
- package/dist/index12.js +79 -0
- package/dist/index13.js +172 -0
- package/dist/index14.js +25 -0
- package/dist/index15.js +22 -0
- package/dist/index16.js +77 -0
- package/dist/index17.js +64 -0
- package/dist/index18.js +43 -0
- package/dist/index19.js +34 -0
- package/dist/index20.js +29 -0
- package/dist/index21.js +21 -0
- package/dist/index22.js +42 -0
- package/dist/index23.js +49 -0
- package/dist/index24.js +134 -0
- package/dist/index25.js +20 -0
- package/dist/index26.js +25 -0
- package/dist/index27.js +57 -0
- package/dist/index28.js +21 -0
- package/dist/index29.js +48 -0
- package/dist/index3.js +67 -0
- package/dist/index30.js +7 -0
- package/dist/index31.js +19 -0
- package/dist/index32.js +10 -0
- package/dist/index33.js +6 -0
- package/dist/index34.js +29 -0
- package/dist/index35.js +28 -0
- package/dist/index36.js +21 -0
- package/dist/index37.js +25 -0
- package/dist/index38.js +10 -0
- package/dist/index39.js +16 -0
- package/dist/index4.js +50 -0
- package/dist/index40.js +10 -0
- package/dist/index41.js +9 -0
- package/dist/index42.js +9 -0
- package/dist/index43.js +28 -0
- package/dist/index44.js +15 -0
- package/dist/index45.js +42 -0
- package/dist/index46.js +25 -0
- package/dist/index47.js +29 -0
- package/dist/index48.js +15 -0
- package/dist/index49.js +23 -0
- package/dist/index5.js +62 -0
- package/dist/index50.js +17 -0
- package/dist/index51.js +6 -0
- package/dist/index52.js +19 -0
- package/dist/index53.js +28 -0
- package/dist/index54.js +17 -0
- package/dist/index55.js +15 -0
- package/dist/index56.js +44 -0
- package/dist/index57.js +6 -0
- package/dist/index58.js +19 -0
- package/dist/index59.js +19 -0
- package/dist/index6.js +42 -0
- package/dist/index60.js +25 -0
- package/dist/index61.js +23 -0
- package/dist/index62.js +19 -0
- package/dist/index63.js +15 -0
- package/dist/index64.js +33 -0
- package/dist/index65.js +37 -0
- package/dist/index66.js +4 -0
- package/dist/index67.js +6 -0
- package/dist/index68.js +23 -0
- package/dist/index69.js +4 -0
- package/dist/index7.js +44 -0
- package/dist/index70.js +4 -0
- package/dist/index71.js +8 -0
- package/dist/index72.js +36 -0
- package/dist/index73.js +14 -0
- package/dist/index74.js +9 -0
- package/dist/index75.js +7 -0
- package/dist/index8.js +30 -0
- package/dist/index9.js +41 -0
- package/package.json +1 -1
package/dist/index23.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import l from "./index30.js";
|
|
3
|
+
import r from "./index61.js";
|
|
4
|
+
const u = ({
|
|
5
|
+
id: t,
|
|
6
|
+
checked: s,
|
|
7
|
+
onChange: n,
|
|
8
|
+
label: c,
|
|
9
|
+
description: a,
|
|
10
|
+
disabled: i = !1,
|
|
11
|
+
className: p,
|
|
12
|
+
...h
|
|
13
|
+
}) => {
|
|
14
|
+
const m = a && t ? `${t}-description` : void 0;
|
|
15
|
+
return /* @__PURE__ */ o(
|
|
16
|
+
"label",
|
|
17
|
+
{
|
|
18
|
+
className: l(
|
|
19
|
+
r.wrapper,
|
|
20
|
+
i && r.wrapperDisabled,
|
|
21
|
+
p
|
|
22
|
+
),
|
|
23
|
+
...h,
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ e(
|
|
26
|
+
"button",
|
|
27
|
+
{
|
|
28
|
+
id: t,
|
|
29
|
+
type: "button",
|
|
30
|
+
role: "switch",
|
|
31
|
+
"aria-checked": s,
|
|
32
|
+
"aria-describedby": m,
|
|
33
|
+
disabled: i,
|
|
34
|
+
onClick: () => n(!s),
|
|
35
|
+
className: l(r.track, s && r.trackChecked),
|
|
36
|
+
children: /* @__PURE__ */ e("span", { className: l(r.thumb, s && r.thumbChecked) })
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
(c || a) && /* @__PURE__ */ o("div", { className: r.labels, children: [
|
|
40
|
+
c && /* @__PURE__ */ e("p", { className: r.label, children: c }),
|
|
41
|
+
a && /* @__PURE__ */ e("p", { id: m, className: r.description, children: a })
|
|
42
|
+
] })
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
u as Switch
|
|
49
|
+
};
|
package/dist/index24.js
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { jsx as b, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import f from "./index30.js";
|
|
3
|
+
import { useRef as w, useState as I, useCallback as E, useEffect as g } from "react";
|
|
4
|
+
import a from "./index54.js";
|
|
5
|
+
const j = ({
|
|
6
|
+
tabs: l,
|
|
7
|
+
value: i,
|
|
8
|
+
onChange: s,
|
|
9
|
+
className: o,
|
|
10
|
+
...u
|
|
11
|
+
}) => {
|
|
12
|
+
const m = w(null), d = w(/* @__PURE__ */ new Map()), [v, R] = I({
|
|
13
|
+
left: 0,
|
|
14
|
+
width: 0
|
|
15
|
+
}), [k, A] = I(!1), x = E(() => {
|
|
16
|
+
const e = d.current.get(i), n = m.current;
|
|
17
|
+
if (e && n) {
|
|
18
|
+
const t = n.getBoundingClientRect(), r = e.getBoundingClientRect();
|
|
19
|
+
R({
|
|
20
|
+
left: r.left - t.left + n.scrollLeft,
|
|
21
|
+
width: r.width
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}, [i]);
|
|
25
|
+
g(() => {
|
|
26
|
+
x();
|
|
27
|
+
}, [x]), g(() => {
|
|
28
|
+
const e = requestAnimationFrame(() => A(!0));
|
|
29
|
+
return () => cancelAnimationFrame(e);
|
|
30
|
+
}, []);
|
|
31
|
+
const h = (e, n) => {
|
|
32
|
+
const t = l.length;
|
|
33
|
+
let r = (e + n + t) % t;
|
|
34
|
+
for (; l[r].disabled && r !== e; )
|
|
35
|
+
r = (r + n + t) % t;
|
|
36
|
+
return r;
|
|
37
|
+
}, y = (e) => {
|
|
38
|
+
const n = l.findIndex((c) => c.value === i);
|
|
39
|
+
let t = null;
|
|
40
|
+
switch (e.key) {
|
|
41
|
+
case "ArrowRight":
|
|
42
|
+
t = h(n, 1);
|
|
43
|
+
break;
|
|
44
|
+
case "ArrowLeft":
|
|
45
|
+
t = h(n, -1);
|
|
46
|
+
break;
|
|
47
|
+
case "Home":
|
|
48
|
+
t = l.findIndex((c) => !c.disabled);
|
|
49
|
+
break;
|
|
50
|
+
case "End": {
|
|
51
|
+
const p = [...l].reverse().findIndex((T) => !T.disabled);
|
|
52
|
+
t = p !== -1 ? l.length - 1 - p : null;
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
default:
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (t === null || t === -1) return;
|
|
59
|
+
e.preventDefault();
|
|
60
|
+
const r = l[t];
|
|
61
|
+
s(r.value), d.current.get(r.value)?.focus();
|
|
62
|
+
};
|
|
63
|
+
return /* @__PURE__ */ D(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
ref: m,
|
|
67
|
+
className: f(a.tabList, o),
|
|
68
|
+
role: "tablist",
|
|
69
|
+
onKeyDown: y,
|
|
70
|
+
...u,
|
|
71
|
+
children: [
|
|
72
|
+
l.map((e) => {
|
|
73
|
+
const n = i === e.value;
|
|
74
|
+
return /* @__PURE__ */ b(
|
|
75
|
+
"button",
|
|
76
|
+
{
|
|
77
|
+
ref: (t) => {
|
|
78
|
+
t ? d.current.set(e.value, t) : d.current.delete(e.value);
|
|
79
|
+
},
|
|
80
|
+
id: `tab-${e.value}`,
|
|
81
|
+
role: "tab",
|
|
82
|
+
"aria-selected": n,
|
|
83
|
+
"aria-controls": `tabpanel-${e.value}`,
|
|
84
|
+
"aria-disabled": e.disabled || void 0,
|
|
85
|
+
tabIndex: n ? 0 : -1,
|
|
86
|
+
onClick: () => {
|
|
87
|
+
e.disabled || s(e.value);
|
|
88
|
+
},
|
|
89
|
+
className: f(
|
|
90
|
+
a.tab,
|
|
91
|
+
n && a.tabActive,
|
|
92
|
+
e.disabled && a.tabDisabled
|
|
93
|
+
),
|
|
94
|
+
children: e.label
|
|
95
|
+
},
|
|
96
|
+
e.value
|
|
97
|
+
);
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ b(
|
|
100
|
+
"span",
|
|
101
|
+
{
|
|
102
|
+
className: f(
|
|
103
|
+
a.indicator,
|
|
104
|
+
k && a.indicatorAnimated
|
|
105
|
+
),
|
|
106
|
+
style: { left: v.left, width: v.width },
|
|
107
|
+
"aria-hidden": "true"
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}, B = ({
|
|
114
|
+
value: l,
|
|
115
|
+
activeValue: i,
|
|
116
|
+
children: s,
|
|
117
|
+
className: o,
|
|
118
|
+
...u
|
|
119
|
+
}) => l !== i ? null : /* @__PURE__ */ b(
|
|
120
|
+
"div",
|
|
121
|
+
{
|
|
122
|
+
id: `tabpanel-${l}`,
|
|
123
|
+
role: "tabpanel",
|
|
124
|
+
"aria-labelledby": `tab-${l}`,
|
|
125
|
+
tabIndex: 0,
|
|
126
|
+
className: o,
|
|
127
|
+
...u,
|
|
128
|
+
children: s
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
export {
|
|
132
|
+
B as TabPanel,
|
|
133
|
+
j as Tabs
|
|
134
|
+
};
|
package/dist/index25.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import l from "./index30.js";
|
|
3
|
+
import s from "./index58.js";
|
|
4
|
+
const m = ({ children: e, className: a, ...r }) => /* @__PURE__ */ t("div", { className: l(s.wrapper, a), children: /* @__PURE__ */ t("table", { className: s.table, ...r, children: e }) }), d = ({ children: e, className: a, ...r }) => /* @__PURE__ */ t("thead", { className: l(s.header, a), ...r, children: e }), b = ({ children: e, className: a, ...r }) => /* @__PURE__ */ t("tbody", { className: l(s.body, a), ...r, children: e }), N = ({ children: e, className: a, ...r }) => /* @__PURE__ */ t("tr", { className: l(s.row, a), ...r, children: e }), p = ({
|
|
5
|
+
children: e,
|
|
6
|
+
className: a,
|
|
7
|
+
...r
|
|
8
|
+
}) => /* @__PURE__ */ t("th", { className: l(s.head, a), ...r, children: e }), u = ({
|
|
9
|
+
children: e,
|
|
10
|
+
className: a,
|
|
11
|
+
...r
|
|
12
|
+
}) => /* @__PURE__ */ t("td", { className: l(s.cell, a), ...r, children: e });
|
|
13
|
+
export {
|
|
14
|
+
m as Table,
|
|
15
|
+
b as TableBody,
|
|
16
|
+
u as TableCell,
|
|
17
|
+
p as TableHead,
|
|
18
|
+
d as TableHeader,
|
|
19
|
+
N as TableRow
|
|
20
|
+
};
|
package/dist/index26.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import c from "./index30.js";
|
|
3
|
+
import { forwardRef as d } from "react";
|
|
4
|
+
import a from "./index48.js";
|
|
5
|
+
const p = d(
|
|
6
|
+
({ label: s, error: r, id: e, className: l, ...o }, i) => /* @__PURE__ */ m("div", { className: a.wrapper, children: [
|
|
7
|
+
s && /* @__PURE__ */ t("label", { htmlFor: e, className: a.label, children: s }),
|
|
8
|
+
/* @__PURE__ */ t(
|
|
9
|
+
"textarea",
|
|
10
|
+
{
|
|
11
|
+
id: e,
|
|
12
|
+
ref: i,
|
|
13
|
+
"aria-invalid": r ? !0 : void 0,
|
|
14
|
+
"aria-describedby": r ? `${e}-error` : void 0,
|
|
15
|
+
className: c(a.textarea, r && a.textareaError, l),
|
|
16
|
+
...o
|
|
17
|
+
}
|
|
18
|
+
),
|
|
19
|
+
r && /* @__PURE__ */ t("p", { id: `${e}-error`, role: "alert", className: a.error, children: r })
|
|
20
|
+
] })
|
|
21
|
+
);
|
|
22
|
+
p.displayName = "Textarea";
|
|
23
|
+
export {
|
|
24
|
+
p as Textarea
|
|
25
|
+
};
|
package/dist/index27.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import n from "./index30.js";
|
|
3
|
+
import r from "./index56.js";
|
|
4
|
+
import t from "./index57.js";
|
|
5
|
+
import o from "./index38.js";
|
|
6
|
+
import d from "./index39.js";
|
|
7
|
+
import f from "./index40.js";
|
|
8
|
+
import p from "./index41.js";
|
|
9
|
+
import g from "./index42.js";
|
|
10
|
+
const u = {
|
|
11
|
+
default: o,
|
|
12
|
+
success: p,
|
|
13
|
+
error: f,
|
|
14
|
+
warning: d,
|
|
15
|
+
info: o,
|
|
16
|
+
loading: t
|
|
17
|
+
}, z = ({ toast: i, onDismiss: e, onRemove: m }) => {
|
|
18
|
+
const a = i.variant === "error", c = u[i.variant];
|
|
19
|
+
return /* @__PURE__ */ l(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
role: a ? "alert" : "status",
|
|
23
|
+
"aria-atomic": "true",
|
|
24
|
+
className: n(
|
|
25
|
+
r.toast,
|
|
26
|
+
r[i.variant],
|
|
27
|
+
i.dismissing && r.dismissing
|
|
28
|
+
),
|
|
29
|
+
onAnimationEnd: () => {
|
|
30
|
+
i.dismissing && m(i.id);
|
|
31
|
+
},
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ s(
|
|
34
|
+
c,
|
|
35
|
+
{
|
|
36
|
+
size: 18,
|
|
37
|
+
className: n(r.icon, i.variant === "loading" && r.iconSpin),
|
|
38
|
+
"aria-hidden": "true"
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ s("p", { className: r.message, children: i.message }),
|
|
42
|
+
/* @__PURE__ */ s(
|
|
43
|
+
"button",
|
|
44
|
+
{
|
|
45
|
+
onClick: () => e(i.id),
|
|
46
|
+
"aria-label": "Dismiss notification",
|
|
47
|
+
className: r.dismiss,
|
|
48
|
+
children: /* @__PURE__ */ s(g, { size: 16 })
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
z as Toast
|
|
57
|
+
};
|
package/dist/index28.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import m from "./index30.js";
|
|
3
|
+
import { Toast as l } from "./index27.js";
|
|
4
|
+
import t from "./index56.js";
|
|
5
|
+
const f = ({
|
|
6
|
+
toasts: r,
|
|
7
|
+
position: e = "top-right",
|
|
8
|
+
onDismiss: n,
|
|
9
|
+
onRemove: a
|
|
10
|
+
}) => r.length === 0 ? null : /* @__PURE__ */ o(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
className: m(t.container, t[e]),
|
|
14
|
+
"aria-live": "polite",
|
|
15
|
+
"aria-relevant": "additions",
|
|
16
|
+
children: r.map((i) => /* @__PURE__ */ o(l, { toast: i, onDismiss: n, onRemove: a }, i.id))
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
f as ToastContainer
|
|
21
|
+
};
|
package/dist/index29.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs as t, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import r from "./index30.js";
|
|
3
|
+
import { useId as y, useState as g, cloneElement as x } from "react";
|
|
4
|
+
import s from "./index64.js";
|
|
5
|
+
const h = ({
|
|
6
|
+
content: i,
|
|
7
|
+
placement: a = "top",
|
|
8
|
+
variant: n = "dark",
|
|
9
|
+
children: l,
|
|
10
|
+
id: d,
|
|
11
|
+
className: m
|
|
12
|
+
}) => {
|
|
13
|
+
const p = y(), o = d ?? `tooltip-${p}`, [c, e] = g(!1);
|
|
14
|
+
return /* @__PURE__ */ t(
|
|
15
|
+
"span",
|
|
16
|
+
{
|
|
17
|
+
className: r(s.trigger, m),
|
|
18
|
+
onKeyDown: (f) => {
|
|
19
|
+
f.key === "Escape" && e(!0);
|
|
20
|
+
},
|
|
21
|
+
onMouseEnter: () => e(!1),
|
|
22
|
+
onFocus: () => e(!1),
|
|
23
|
+
children: [
|
|
24
|
+
x(l, { "aria-describedby": o }),
|
|
25
|
+
/* @__PURE__ */ t(
|
|
26
|
+
"span",
|
|
27
|
+
{
|
|
28
|
+
id: o,
|
|
29
|
+
role: "tooltip",
|
|
30
|
+
className: r(
|
|
31
|
+
s.tooltip,
|
|
32
|
+
s[n],
|
|
33
|
+
s[a],
|
|
34
|
+
c && s.dismissed
|
|
35
|
+
),
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ u("span", { className: s.arrow }),
|
|
38
|
+
i
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
h as Tooltip
|
|
48
|
+
};
|
package/dist/index3.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsx as o, jsxs as O } from "react/jsx-runtime";
|
|
2
|
+
import u from "./index30.js";
|
|
3
|
+
import { useState as f, useCallback as A, useId as j, useContext as k, useRef as y, createContext as R } from "react";
|
|
4
|
+
import e from "./index52.js";
|
|
5
|
+
const g = R({
|
|
6
|
+
openId: null,
|
|
7
|
+
toggle: () => {
|
|
8
|
+
},
|
|
9
|
+
exclusive: !1
|
|
10
|
+
}), T = ({
|
|
11
|
+
exclusive: c = !1,
|
|
12
|
+
children: l,
|
|
13
|
+
className: r,
|
|
14
|
+
...n
|
|
15
|
+
}) => {
|
|
16
|
+
const [i, a] = f(null), t = A(
|
|
17
|
+
(s) => {
|
|
18
|
+
a((d) => d === s ? null : s);
|
|
19
|
+
},
|
|
20
|
+
[]
|
|
21
|
+
);
|
|
22
|
+
return /* @__PURE__ */ o(g.Provider, { value: { openId: i, toggle: t, exclusive: c }, children: /* @__PURE__ */ o("div", { className: u(e.accordion, r), ...n, children: l }) });
|
|
23
|
+
}, U = ({
|
|
24
|
+
title: c,
|
|
25
|
+
children: l,
|
|
26
|
+
defaultOpen: r,
|
|
27
|
+
disabled: n,
|
|
28
|
+
className: i,
|
|
29
|
+
...a
|
|
30
|
+
}) => {
|
|
31
|
+
const t = j(), { openId: s, toggle: d, exclusive: m } = k(g), v = y(null), [x, I] = f(
|
|
32
|
+
r ?? !1
|
|
33
|
+
), p = m ? s === t : x, h = (C) => {
|
|
34
|
+
C.preventDefault(), !n && (m ? d(t) : I((N) => !N));
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ O(
|
|
37
|
+
"details",
|
|
38
|
+
{
|
|
39
|
+
open: p,
|
|
40
|
+
className: u(e.item, { [e.disabled]: n }, i),
|
|
41
|
+
...a,
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ o(
|
|
44
|
+
"summary",
|
|
45
|
+
{
|
|
46
|
+
className: e.trigger,
|
|
47
|
+
onClick: h,
|
|
48
|
+
"aria-disabled": n || void 0,
|
|
49
|
+
children: c
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ o(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
ref: v,
|
|
56
|
+
className: u(e.content, { [e.contentOpen]: p }),
|
|
57
|
+
children: /* @__PURE__ */ o("div", { className: e.contentInner, children: l })
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
T as Accordion,
|
|
66
|
+
U as AccordionItem
|
|
67
|
+
};
|
package/dist/index30.js
ADDED
package/dist/index31.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const t = "_list_2tzve_1", e = "_item_2tzve_9", s = "_separator_2tzve_15", _ = "_link_2tzve_22", i = "_current_2tzve_37", l = "_text_2tzve_42", n = "_ellipsis_2tzve_46", r = {
|
|
2
|
+
list: t,
|
|
3
|
+
item: e,
|
|
4
|
+
separator: s,
|
|
5
|
+
link: _,
|
|
6
|
+
current: i,
|
|
7
|
+
text: l,
|
|
8
|
+
ellipsis: n
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
i as current,
|
|
12
|
+
r as default,
|
|
13
|
+
n as ellipsis,
|
|
14
|
+
e as item,
|
|
15
|
+
_ as link,
|
|
16
|
+
t as list,
|
|
17
|
+
s as separator,
|
|
18
|
+
l as text
|
|
19
|
+
};
|
package/dist/index32.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import c from "./index68.js";
|
|
2
|
+
const e = [
|
|
3
|
+
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
4
|
+
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
5
|
+
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
6
|
+
], l = c("ellipsis", e);
|
|
7
|
+
export {
|
|
8
|
+
e as __iconNode,
|
|
9
|
+
l as default
|
|
10
|
+
};
|
package/dist/index33.js
ADDED
package/dist/index34.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const l = /* @__PURE__ */ new Set([
|
|
2
|
+
"van",
|
|
3
|
+
"von",
|
|
4
|
+
"de",
|
|
5
|
+
"del",
|
|
6
|
+
"den",
|
|
7
|
+
"der",
|
|
8
|
+
"di",
|
|
9
|
+
"du",
|
|
10
|
+
"el",
|
|
11
|
+
"la",
|
|
12
|
+
"le",
|
|
13
|
+
"los",
|
|
14
|
+
"het",
|
|
15
|
+
"ten",
|
|
16
|
+
"ter",
|
|
17
|
+
"op"
|
|
18
|
+
]);
|
|
19
|
+
function a(e, r = "?") {
|
|
20
|
+
if (!e?.trim()) return r;
|
|
21
|
+
const n = e.trim().split(/\s+/), t = n.filter((o) => !l.has(o.toLowerCase()));
|
|
22
|
+
if (t.length === 0) return n[0][0].toUpperCase();
|
|
23
|
+
if (t.length === 1) return t[0][0].toUpperCase();
|
|
24
|
+
const s = t[0][0], i = t[t.length - 1][0];
|
|
25
|
+
return (s + i).toUpperCase();
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
a as getInitials
|
|
29
|
+
};
|
package/dist/index35.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const _ = "_wrapper_1p6ce_1", s = "_sm_1p6ce_8", t = "_md_1p6ce_14", a = "_lg_1p6ce_20", c = "_xl_1p6ce_26", e = "_image_1p6ce_38", p = "_fallback_1p6ce_45", l = "_status_1p6ce_59", o = "_group_1p6ce_88", u = {
|
|
2
|
+
wrapper: _,
|
|
3
|
+
sm: s,
|
|
4
|
+
md: t,
|
|
5
|
+
lg: a,
|
|
6
|
+
xl: c,
|
|
7
|
+
"2xl": "_2xl_1p6ce_32",
|
|
8
|
+
image: e,
|
|
9
|
+
fallback: p,
|
|
10
|
+
status: l,
|
|
11
|
+
"status-online": "_status-online_1p6ce_71",
|
|
12
|
+
"status-offline": "_status-offline_1p6ce_75",
|
|
13
|
+
"status-busy": "_status-busy_1p6ce_79",
|
|
14
|
+
"status-away": "_status-away_1p6ce_83",
|
|
15
|
+
group: o
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
u as default,
|
|
19
|
+
p as fallback,
|
|
20
|
+
o as group,
|
|
21
|
+
e as image,
|
|
22
|
+
a as lg,
|
|
23
|
+
t as md,
|
|
24
|
+
s as sm,
|
|
25
|
+
l as status,
|
|
26
|
+
_ as wrapper,
|
|
27
|
+
c as xl
|
|
28
|
+
};
|
package/dist/index36.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const i = "_wrapper_1s9du_1", t = "_trigger_1s9du_5", _ = "_menu_1s9du_37", s = "_closing_1s9du_52", e = "_alignRight_1s9du_56", n = "_alignLeft_1s9du_60", g = "_item_1s9du_64", r = "_divider_1s9du_85", d = {
|
|
2
|
+
wrapper: i,
|
|
3
|
+
trigger: t,
|
|
4
|
+
menu: _,
|
|
5
|
+
closing: s,
|
|
6
|
+
alignRight: e,
|
|
7
|
+
alignLeft: n,
|
|
8
|
+
item: g,
|
|
9
|
+
divider: r
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
n as alignLeft,
|
|
13
|
+
e as alignRight,
|
|
14
|
+
s as closing,
|
|
15
|
+
d as default,
|
|
16
|
+
r as divider,
|
|
17
|
+
g as item,
|
|
18
|
+
_ as menu,
|
|
19
|
+
t as trigger,
|
|
20
|
+
i as wrapper
|
|
21
|
+
};
|
package/dist/index37.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const s = "_alert_16i4u_1", i = "_icon_16i4u_11", n = "_content_16i4u_18", t = "_title_16i4u_23", _ = "_description_16i4u_27", o = "_dismiss_16i4u_35", c = "_success_16i4u_62", e = "_error_16i4u_68", r = "_warning_16i4u_74", u = "_info_16i4u_80", a = {
|
|
2
|
+
alert: s,
|
|
3
|
+
icon: i,
|
|
4
|
+
content: n,
|
|
5
|
+
title: t,
|
|
6
|
+
description: _,
|
|
7
|
+
dismiss: o,
|
|
8
|
+
success: c,
|
|
9
|
+
error: e,
|
|
10
|
+
warning: r,
|
|
11
|
+
info: u
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
s as alert,
|
|
15
|
+
n as content,
|
|
16
|
+
a as default,
|
|
17
|
+
_ as description,
|
|
18
|
+
o as dismiss,
|
|
19
|
+
e as error,
|
|
20
|
+
i as icon,
|
|
21
|
+
u as info,
|
|
22
|
+
c as success,
|
|
23
|
+
t as title,
|
|
24
|
+
r as warning
|
|
25
|
+
};
|
package/dist/index38.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "./index68.js";
|
|
2
|
+
const o = [
|
|
3
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
4
|
+
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
5
|
+
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
6
|
+
], t = e("info", o);
|
|
7
|
+
export {
|
|
8
|
+
o as __iconNode,
|
|
9
|
+
t as default
|
|
10
|
+
};
|
package/dist/index39.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import e from "./index68.js";
|
|
2
|
+
const t = [
|
|
3
|
+
[
|
|
4
|
+
"path",
|
|
5
|
+
{
|
|
6
|
+
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
7
|
+
key: "wmoenq"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
11
|
+
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
12
|
+
], o = e("triangle-alert", t);
|
|
13
|
+
export {
|
|
14
|
+
t as __iconNode,
|
|
15
|
+
o as default
|
|
16
|
+
};
|
package/dist/index4.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import a from "./index30.js";
|
|
3
|
+
import r from "./index37.js";
|
|
4
|
+
import f from "./index38.js";
|
|
5
|
+
import p from "./index39.js";
|
|
6
|
+
import d from "./index40.js";
|
|
7
|
+
import N from "./index41.js";
|
|
8
|
+
import g from "./index42.js";
|
|
9
|
+
const h = {
|
|
10
|
+
success: N,
|
|
11
|
+
error: d,
|
|
12
|
+
warning: p,
|
|
13
|
+
info: f
|
|
14
|
+
}, I = ({
|
|
15
|
+
variant: s = "info",
|
|
16
|
+
title: i,
|
|
17
|
+
children: e,
|
|
18
|
+
onDismiss: c,
|
|
19
|
+
className: m,
|
|
20
|
+
...l
|
|
21
|
+
}) => {
|
|
22
|
+
const n = h[s];
|
|
23
|
+
return /* @__PURE__ */ t(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
role: s === "error" || s === "warning" ? "alert" : "status",
|
|
27
|
+
className: a(r.alert, r[s], m),
|
|
28
|
+
...l,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ o(n, { className: r.icon }),
|
|
31
|
+
/* @__PURE__ */ t("div", { className: r.content, children: [
|
|
32
|
+
i && /* @__PURE__ */ o("div", { className: r.title, children: i }),
|
|
33
|
+
e && /* @__PURE__ */ o("div", { className: r.description, children: e })
|
|
34
|
+
] }),
|
|
35
|
+
c && /* @__PURE__ */ o(
|
|
36
|
+
"button",
|
|
37
|
+
{
|
|
38
|
+
onClick: c,
|
|
39
|
+
"aria-label": "Dismiss",
|
|
40
|
+
className: r.dismiss,
|
|
41
|
+
children: /* @__PURE__ */ o(g, { size: 16 })
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
I as Alert
|
|
50
|
+
};
|
package/dist/index40.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "./index68.js";
|
|
2
|
+
const c = [
|
|
3
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
4
|
+
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
5
|
+
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
6
|
+
], l = e("circle-alert", c);
|
|
7
|
+
export {
|
|
8
|
+
c as __iconNode,
|
|
9
|
+
l as default
|
|
10
|
+
};
|
package/dist/index41.js
ADDED