sander-ui 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +80 -0
- package/dist/index13.js +172 -0
- package/dist/index14.js +25 -0
- package/dist/index15.js +22 -0
- package/dist/index16.js +78 -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 +13 -0
- package/dist/index33.js +42 -0
- package/dist/index34.js +9 -0
- package/dist/index35.js +28 -0
- package/dist/index36.js +19 -0
- package/dist/index37.js +25 -0
- package/dist/index38.js +23 -0
- package/dist/index39.js +15 -0
- package/dist/index4.js +50 -0
- package/dist/index40.js +25 -0
- package/dist/index41.js +10 -0
- package/dist/index42.js +16 -0
- package/dist/index43.js +10 -0
- package/dist/index44.js +9 -0
- package/dist/index45.js +15 -0
- package/dist/index46.js +19 -0
- package/dist/index47.js +10 -0
- package/dist/index48.js +6 -0
- package/dist/index49.js +29 -0
- package/dist/index5.js +62 -0
- package/dist/index50.js +19 -0
- package/dist/index51.js +23 -0
- package/dist/index52.js +15 -0
- package/dist/index53.js +33 -0
- package/dist/index54.js +25 -0
- package/dist/index55.js +19 -0
- package/dist/index56.js +17 -0
- package/dist/index57.js +6 -0
- package/dist/index58.js +17 -0
- package/dist/index59.js +21 -0
- package/dist/index6.js +42 -0
- package/dist/index60.js +15 -0
- package/dist/index61.js +28 -0
- package/dist/index62.js +44 -0
- package/dist/index63.js +6 -0
- package/dist/index64.js +29 -0
- package/dist/index65.js +28 -0
- package/dist/index66.js +37 -0
- package/dist/index67.js +4 -0
- package/dist/index68.js +6 -0
- package/dist/index69.js +23 -0
- package/dist/index7.js +44 -0
- package/dist/index70.js +4 -0
- package/dist/index71.js +4 -0
- package/dist/index72.js +8 -0
- package/dist/index73.js +36 -0
- package/dist/index74.js +14 -0
- package/dist/index75.js +9 -0
- package/dist/index76.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 "./index38.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 "./index58.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 "./index36.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 "./index60.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 "./index62.js";
|
|
4
|
+
import t from "./index63.js";
|
|
5
|
+
import o from "./index41.js";
|
|
6
|
+
import d from "./index42.js";
|
|
7
|
+
import f from "./index43.js";
|
|
8
|
+
import p from "./index44.js";
|
|
9
|
+
import g from "./index34.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 "./index62.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 "./index53.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 "./index31.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 n = "_accordion_7j7b7_1", t = "_item_7j7b7_6", e = "_disabled_7j7b7_14", o = "_trigger_7j7b7_19", c = "_content_7j7b7_64", _ = "_contentOpen_7j7b7_70", s = "_contentInner_7j7b7_74", r = {
|
|
2
|
+
accordion: n,
|
|
3
|
+
item: t,
|
|
4
|
+
disabled: e,
|
|
5
|
+
trigger: o,
|
|
6
|
+
content: c,
|
|
7
|
+
contentOpen: _,
|
|
8
|
+
contentInner: s
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
n as accordion,
|
|
12
|
+
c as content,
|
|
13
|
+
s as contentInner,
|
|
14
|
+
_ as contentOpen,
|
|
15
|
+
r as default,
|
|
16
|
+
e as disabled,
|
|
17
|
+
t as item,
|
|
18
|
+
o as trigger
|
|
19
|
+
};
|
package/dist/index32.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useEffect as e } from "react";
|
|
2
|
+
function l(o) {
|
|
3
|
+
e(() => {
|
|
4
|
+
if (!o) return;
|
|
5
|
+
const t = window.scrollY;
|
|
6
|
+
return document.body.style.position = "fixed", document.body.style.top = `-${t}px`, document.body.style.left = "0", document.body.style.right = "0", () => {
|
|
7
|
+
document.body.style.position = "", document.body.style.top = "", document.body.style.left = "", document.body.style.right = "", window.scrollTo(0, t);
|
|
8
|
+
};
|
|
9
|
+
}, [o]);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
l as useScrollLock
|
|
13
|
+
};
|
package/dist/index33.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const t = "_dialog_1wscl_51", _ = "_closing_1wscl_70", s = "_right_1wscl_76", o = "_left_1wscl_77", l = "_top_1wscl_98", e = "_bottom_1wscl_99", i = "_content_1wscl_145", c = "_header_1wscl_151", n = "_title_1wscl_159", d = "_closeButton_1wscl_165", w = "_body_1wscl_186", f = "_footer_1wscl_194", g = {
|
|
2
|
+
dialog: t,
|
|
3
|
+
"fade-in": "_fade-in_1wscl_1",
|
|
4
|
+
"fade-out": "_fade-out_1wscl_1",
|
|
5
|
+
closing: _,
|
|
6
|
+
right: s,
|
|
7
|
+
left: o,
|
|
8
|
+
"slide-in-right": "_slide-in-right_1wscl_1",
|
|
9
|
+
"slide-out-right": "_slide-out-right_1wscl_1",
|
|
10
|
+
"slide-in-left": "_slide-in-left_1wscl_1",
|
|
11
|
+
"slide-out-left": "_slide-out-left_1wscl_1",
|
|
12
|
+
top: l,
|
|
13
|
+
bottom: e,
|
|
14
|
+
"slide-in-top": "_slide-in-top_1wscl_1",
|
|
15
|
+
"slide-out-top": "_slide-out-top_1wscl_1",
|
|
16
|
+
"slide-in-bottom": "_slide-in-bottom_1wscl_1",
|
|
17
|
+
"slide-out-bottom": "_slide-out-bottom_1wscl_1",
|
|
18
|
+
"size-sm": "_size-sm_1wscl_120",
|
|
19
|
+
"size-md": "_size-md_1wscl_122",
|
|
20
|
+
"size-lg": "_size-lg_1wscl_124",
|
|
21
|
+
content: i,
|
|
22
|
+
header: c,
|
|
23
|
+
title: n,
|
|
24
|
+
closeButton: d,
|
|
25
|
+
body: w,
|
|
26
|
+
footer: f
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
w as body,
|
|
30
|
+
e as bottom,
|
|
31
|
+
d as closeButton,
|
|
32
|
+
_ as closing,
|
|
33
|
+
i as content,
|
|
34
|
+
g as default,
|
|
35
|
+
t as dialog,
|
|
36
|
+
f as footer,
|
|
37
|
+
c as header,
|
|
38
|
+
o as left,
|
|
39
|
+
s as right,
|
|
40
|
+
n as title,
|
|
41
|
+
l as top
|
|
42
|
+
};
|
package/dist/index34.js
ADDED
package/dist/index35.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const _ = "_badge_19d90_1", o = "_sm_19d90_10", d = "_md_19d90_15", s = "_dot_19d90_21", e = "_remove_19d90_30", n = "_filled_19d90_56", t = "_success_19d90_61", c = "_warning_19d90_66", r = "_error_19d90_71", l = "_info_19d90_76", i = "_outline_19d90_82", a = {
|
|
2
|
+
badge: _,
|
|
3
|
+
sm: o,
|
|
4
|
+
md: d,
|
|
5
|
+
dot: s,
|
|
6
|
+
remove: e,
|
|
7
|
+
filled: n,
|
|
8
|
+
default: "_default_19d90_56",
|
|
9
|
+
success: t,
|
|
10
|
+
warning: c,
|
|
11
|
+
error: r,
|
|
12
|
+
info: l,
|
|
13
|
+
outline: i
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
_ as badge,
|
|
17
|
+
a as default,
|
|
18
|
+
s as dot,
|
|
19
|
+
r as error,
|
|
20
|
+
n as filled,
|
|
21
|
+
l as info,
|
|
22
|
+
d as md,
|
|
23
|
+
i as outline,
|
|
24
|
+
e as remove,
|
|
25
|
+
o as sm,
|
|
26
|
+
t as success,
|
|
27
|
+
c as warning
|
|
28
|
+
};
|
package/dist/index36.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const w = "_wrapper_wwjw1_1", e = "_table_wwjw1_7", _ = "_header_wwjw1_13", o = "_body_wwjw1_18", a = "_row_wwjw1_22", t = "_head_wwjw1_13", r = "_cell_wwjw1_40", c = {
|
|
2
|
+
wrapper: w,
|
|
3
|
+
table: e,
|
|
4
|
+
header: _,
|
|
5
|
+
body: o,
|
|
6
|
+
row: a,
|
|
7
|
+
head: t,
|
|
8
|
+
cell: r
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
o as body,
|
|
12
|
+
r as cell,
|
|
13
|
+
c as default,
|
|
14
|
+
t as head,
|
|
15
|
+
_ as header,
|
|
16
|
+
a as row,
|
|
17
|
+
e as table,
|
|
18
|
+
w as wrapper
|
|
19
|
+
};
|
package/dist/index37.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const _ = "_wrapper_14k2c_1", e = "_header_14k2c_7", c = "_label_14k2c_13", a = "_value_14k2c_19", t = "_track_14k2c_24", r = "_sm_14k2c_31", n = "_md_14k2c_35", s = "_lg_14k2c_39", l = "_bar_14k2c_43", k = "_indeterminate_14k2c_59", o = {
|
|
2
|
+
wrapper: _,
|
|
3
|
+
header: e,
|
|
4
|
+
label: c,
|
|
5
|
+
value: a,
|
|
6
|
+
track: t,
|
|
7
|
+
sm: r,
|
|
8
|
+
md: n,
|
|
9
|
+
lg: s,
|
|
10
|
+
bar: l,
|
|
11
|
+
indeterminate: k
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
l as bar,
|
|
15
|
+
o as default,
|
|
16
|
+
e as header,
|
|
17
|
+
k as indeterminate,
|
|
18
|
+
c as label,
|
|
19
|
+
s as lg,
|
|
20
|
+
n as md,
|
|
21
|
+
r as sm,
|
|
22
|
+
t as track,
|
|
23
|
+
a as value,
|
|
24
|
+
_ as wrapper
|
|
25
|
+
};
|
package/dist/index38.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const e = "_wrapper_8eiej_1", t = "_wrapperDisabled_8eiej_8", _ = "_track_8eiej_13", c = "_trackChecked_8eiej_37", a = "_thumb_8eiej_41", r = "_thumbChecked_8eiej_52", s = "_labels_8eiej_56", i = "_label_8eiej_56", l = "_description_8eiej_66", p = {
|
|
2
|
+
wrapper: e,
|
|
3
|
+
wrapperDisabled: t,
|
|
4
|
+
track: _,
|
|
5
|
+
trackChecked: c,
|
|
6
|
+
thumb: a,
|
|
7
|
+
thumbChecked: r,
|
|
8
|
+
labels: s,
|
|
9
|
+
label: i,
|
|
10
|
+
description: l
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
p as default,
|
|
14
|
+
l as description,
|
|
15
|
+
i as label,
|
|
16
|
+
s as labels,
|
|
17
|
+
a as thumb,
|
|
18
|
+
r as thumbChecked,
|
|
19
|
+
_ as track,
|
|
20
|
+
c as trackChecked,
|
|
21
|
+
e as wrapper,
|
|
22
|
+
t as wrapperDisabled
|
|
23
|
+
};
|
package/dist/index39.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const r = "_wrapper_1rkkq_1", t = "_label_1rkkq_6", _ = "_input_1rkkq_13", o = "_inputError_1rkkq_33", p = "_error_1rkkq_42", e = {
|
|
2
|
+
wrapper: r,
|
|
3
|
+
label: t,
|
|
4
|
+
input: _,
|
|
5
|
+
inputError: o,
|
|
6
|
+
error: p
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
e as default,
|
|
10
|
+
p as error,
|
|
11
|
+
_ as input,
|
|
12
|
+
o as inputError,
|
|
13
|
+
t as label,
|
|
14
|
+
r as wrapper
|
|
15
|
+
};
|
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 "./index40.js";
|
|
4
|
+
import f from "./index41.js";
|
|
5
|
+
import p from "./index42.js";
|
|
6
|
+
import d from "./index43.js";
|
|
7
|
+
import N from "./index44.js";
|
|
8
|
+
import g from "./index34.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
|
+
};
|