sander-ui 0.1.4 → 0.1.6
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 +53 -51
- package/dist/index10.js +2 -2
- package/dist/index11.js +1 -1
- package/dist/index12.js +44 -43
- package/dist/index13.js +2 -2
- package/dist/index14.js +41 -21
- package/dist/index15.js +22 -19
- package/dist/index16.js +20 -75
- package/dist/index17.js +72 -58
- package/dist/index18.js +56 -35
- package/dist/index19.js +40 -31
- package/dist/index20.js +30 -25
- package/dist/index21.js +26 -18
- package/dist/index22.js +15 -36
- package/dist/index23.js +39 -46
- package/dist/index24.js +39 -124
- package/dist/index25.js +132 -18
- package/dist/index26.js +18 -23
- package/dist/index27.js +23 -55
- package/dist/index28.js +55 -19
- package/dist/index29.js +19 -46
- package/dist/index3.js +2 -2
- package/dist/index30.js +46 -5
- package/dist/index31.js +5 -17
- package/dist/index32.js +17 -8
- package/dist/index33.js +27 -4
- package/dist/index34.js +26 -27
- package/dist/index35.js +24 -23
- package/dist/index36.js +22 -18
- package/dist/index37.js +8 -23
- package/dist/index38.js +14 -8
- package/dist/index39.js +8 -14
- package/dist/index4.js +7 -7
- package/dist/index40.js +7 -8
- package/dist/index41.js +7 -7
- package/dist/index42.js +15 -7
- package/dist/index43.js +4 -26
- package/dist/index44.js +4 -13
- package/dist/index45.js +10 -39
- package/dist/index46.js +20 -22
- package/dist/index47.js +40 -25
- package/dist/index48.js +4 -13
- package/dist/index49.js +18 -20
- package/dist/index5.js +3 -3
- package/dist/index50.js +12 -14
- package/dist/index51.js +17 -4
- package/dist/index52.js +16 -16
- package/dist/index53.js +11 -26
- package/dist/index54.js +25 -14
- package/dist/index55.js +16 -12
- package/dist/index56.js +30 -41
- package/dist/index57.js +15 -4
- package/dist/index58.js +12 -16
- package/dist/index59.js +20 -16
- package/dist/index6.js +3 -3
- package/dist/index60.js +25 -22
- package/dist/index61.js +22 -20
- package/dist/index62.js +16 -16
- package/dist/index63.js +8 -13
- package/dist/index64.js +39 -30
- package/dist/index65.js +23 -35
- package/dist/index66.js +13 -2
- package/dist/index67.js +13 -4
- package/dist/index68.js +35 -21
- package/dist/index69.js +2 -2
- package/dist/index7.js +4 -4
- package/dist/index70.js +4 -2
- package/dist/index71.js +20 -5
- package/dist/index72.js +2 -34
- package/dist/index73.js +2 -12
- package/dist/index74.js +5 -6
- package/dist/index75.js +33 -4
- package/dist/index76.js +14 -0
- package/dist/index77.js +9 -0
- package/dist/index78.js +7 -0
- package/dist/index8.js +12 -12
- package/dist/index9.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,78 +1,80 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { Accordion as t, AccordionItem as a } from "./index3.js";
|
|
3
3
|
import { Alert as m } from "./index4.js";
|
|
4
|
-
import { Avatar as
|
|
4
|
+
import { Avatar as f, AvatarGroup as d } from "./index5.js";
|
|
5
5
|
import { Badge as l } from "./index6.js";
|
|
6
6
|
import { Breadcrumbs as T } from "./index7.js";
|
|
7
7
|
import { Button as b } from "./index8.js";
|
|
8
|
-
import { Card as
|
|
8
|
+
import { Card as B, CardBody as C, CardFooter as D, CardHeader as u } from "./index9.js";
|
|
9
9
|
import { Checkbox as g } from "./index10.js";
|
|
10
10
|
import { ConfirmModal as H } from "./index11.js";
|
|
11
|
-
import { Drawer as S, DrawerBody as y, DrawerFooter as
|
|
11
|
+
import { Drawer as S, DrawerBody as y, DrawerFooter as I, DrawerHeader as k } from "./index12.js";
|
|
12
12
|
import { Dropdown as P, DropdownContent as h, DropdownItem as v, DropdownSeparator as G, DropdownTrigger as R } from "./index13.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
13
|
+
import { IconButton as j } from "./index14.js";
|
|
14
|
+
import { Input as z } from "./index15.js";
|
|
15
|
+
import { LinkButton as J } from "./index16.js";
|
|
16
|
+
import { Modal as N, ModalBody as O, ModalFooter as Q, ModalHeader as U } from "./index17.js";
|
|
17
|
+
import { Pagination as W } from "./index18.js";
|
|
18
|
+
import { Progress as Y } from "./index19.js";
|
|
19
|
+
import { RadioGroup as _ } from "./index20.js";
|
|
20
|
+
import { Select as oo } from "./index21.js";
|
|
21
|
+
import { Skeleton as eo } from "./index22.js";
|
|
22
|
+
import { Spinner as ao } from "./index23.js";
|
|
23
|
+
import { Switch as mo } from "./index24.js";
|
|
24
|
+
import { TabPanel as fo, Tabs as no } from "./index25.js";
|
|
25
|
+
import { Table as io, TableBody as To, TableCell as wo, TableHead as bo, TableHeader as co, TableRow as Bo } from "./index26.js";
|
|
26
|
+
import { Textarea as Do } from "./index27.js";
|
|
27
|
+
import { Toast as so } from "./index28.js";
|
|
28
|
+
import { ToastContainer as Ao } from "./index29.js";
|
|
29
|
+
import { Tooltip as Mo } from "./index30.js";
|
|
29
30
|
export {
|
|
30
31
|
t as Accordion,
|
|
31
32
|
a as AccordionItem,
|
|
32
33
|
m as Alert,
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
f as Avatar,
|
|
35
|
+
d as AvatarGroup,
|
|
35
36
|
l as Badge,
|
|
36
37
|
T as Breadcrumbs,
|
|
37
38
|
b as Button,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
B as Card,
|
|
40
|
+
C as CardBody,
|
|
41
|
+
D as CardFooter,
|
|
42
|
+
u as CardHeader,
|
|
42
43
|
g as Checkbox,
|
|
43
44
|
H as ConfirmModal,
|
|
44
45
|
S as Drawer,
|
|
45
46
|
y as DrawerBody,
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
I as DrawerFooter,
|
|
48
|
+
k as DrawerHeader,
|
|
48
49
|
P as Dropdown,
|
|
49
50
|
h as DropdownContent,
|
|
50
51
|
v as DropdownItem,
|
|
51
52
|
G as DropdownSeparator,
|
|
52
53
|
R as DropdownTrigger,
|
|
53
|
-
j as
|
|
54
|
-
z as
|
|
55
|
-
J as
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
U as
|
|
60
|
-
W as
|
|
61
|
-
Y as
|
|
62
|
-
_ as
|
|
63
|
-
oo as
|
|
64
|
-
eo as
|
|
65
|
-
ao as
|
|
66
|
-
mo as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
54
|
+
j as IconButton,
|
|
55
|
+
z as Input,
|
|
56
|
+
J as LinkButton,
|
|
57
|
+
N as Modal,
|
|
58
|
+
O as ModalBody,
|
|
59
|
+
Q as ModalFooter,
|
|
60
|
+
U as ModalHeader,
|
|
61
|
+
W as Pagination,
|
|
62
|
+
Y as Progress,
|
|
63
|
+
_ as RadioGroup,
|
|
64
|
+
oo as Select,
|
|
65
|
+
eo as Skeleton,
|
|
66
|
+
ao as Spinner,
|
|
67
|
+
mo as Switch,
|
|
68
|
+
fo as TabPanel,
|
|
69
|
+
io as Table,
|
|
70
|
+
To as TableBody,
|
|
71
|
+
wo as TableCell,
|
|
72
|
+
bo as TableHead,
|
|
73
|
+
co as TableHeader,
|
|
74
|
+
Bo as TableRow,
|
|
75
|
+
no as Tabs,
|
|
74
76
|
Do as Textarea,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
so as Toast,
|
|
78
|
+
Ao as ToastContainer,
|
|
79
|
+
Mo as Tooltip
|
|
78
80
|
};
|
package/dist/index10.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as f, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import p from "./
|
|
2
|
+
import p from "./index31.js";
|
|
3
3
|
import { forwardRef as x, useRef as v, useEffect as N } from "react";
|
|
4
|
-
import e from "./
|
|
4
|
+
import e from "./index55.js";
|
|
5
5
|
const y = x(
|
|
6
6
|
({ label: l, description: t, error: c, indeterminate: a, id: o, className: h, ...u }, i) => {
|
|
7
7
|
const n = v(null);
|
package/dist/index11.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Modal as s, ModalHeader as f, ModalBody as u, ModalFooter as M } from "./
|
|
2
|
+
import { Modal as s, ModalHeader as f, ModalBody as u, ModalFooter as M } from "./index17.js";
|
|
3
3
|
import { Button as d } from "./index8.js";
|
|
4
4
|
const b = ({
|
|
5
5
|
open: i,
|
package/dist/index12.js
CHANGED
|
@@ -1,79 +1,80 @@
|
|
|
1
1
|
import { jsx as l, jsxs as b } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import c from "./index31.js";
|
|
3
3
|
import { useRef as v, useState as d, useEffect as g } from "react";
|
|
4
4
|
import { createPortal as w } from "react-dom";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import { useScrollLock as D } from "./index53.js";
|
|
6
|
+
import r from "./index64.js";
|
|
7
|
+
import y from "./index41.js";
|
|
8
|
+
const R = ({
|
|
9
|
+
open: o,
|
|
9
10
|
onClose: t,
|
|
10
|
-
children:
|
|
11
|
-
side:
|
|
12
|
-
size:
|
|
13
|
-
className:
|
|
11
|
+
children: s,
|
|
12
|
+
side: f = "right",
|
|
13
|
+
size: p = "md",
|
|
14
|
+
className: h,
|
|
14
15
|
...N
|
|
15
16
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
return g(() => {
|
|
18
|
-
|
|
19
|
-
}, [
|
|
20
|
-
const e =
|
|
21
|
-
|
|
22
|
-
}, [
|
|
17
|
+
const i = v(null), [n, m] = d(!1), [a, u] = d(!1);
|
|
18
|
+
return D(n && !a), g(() => {
|
|
19
|
+
o ? (m(!0), u(!1)) : m((e) => (e && u(!0), e));
|
|
20
|
+
}, [o]), g(() => {
|
|
21
|
+
const e = i.current;
|
|
22
|
+
n && !a && e && !e.open && (e.showModal(), e.focus());
|
|
23
|
+
}, [n, a]), n ? w(
|
|
23
24
|
/* @__PURE__ */ l(
|
|
24
25
|
"dialog",
|
|
25
26
|
{
|
|
26
|
-
ref:
|
|
27
|
-
className:
|
|
27
|
+
ref: i,
|
|
28
|
+
className: c(
|
|
28
29
|
r.dialog,
|
|
29
|
-
r[
|
|
30
|
-
r[`size-${
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
r[f],
|
|
31
|
+
r[`size-${p}`],
|
|
32
|
+
a && r.closing,
|
|
33
|
+
h
|
|
33
34
|
),
|
|
34
35
|
onAnimationEnd: () => {
|
|
35
|
-
|
|
36
|
+
a && (i.current?.close(), m(!1), u(!1));
|
|
36
37
|
},
|
|
37
38
|
onCancel: (e) => {
|
|
38
39
|
e.preventDefault(), t();
|
|
39
40
|
},
|
|
40
41
|
onClick: (e) => {
|
|
41
|
-
e.target ===
|
|
42
|
+
e.target === i.current && t();
|
|
42
43
|
},
|
|
43
44
|
...N,
|
|
44
|
-
children: /* @__PURE__ */ l("div", { className: r.content, children:
|
|
45
|
+
children: /* @__PURE__ */ l("div", { className: r.content, children: s })
|
|
45
46
|
}
|
|
46
47
|
),
|
|
47
48
|
document.body
|
|
48
49
|
) : null;
|
|
49
|
-
},
|
|
50
|
-
children:
|
|
50
|
+
}, S = ({
|
|
51
|
+
children: o,
|
|
51
52
|
onClose: t,
|
|
52
|
-
className:
|
|
53
|
-
...
|
|
54
|
-
}) => /* @__PURE__ */ b("div", { className:
|
|
55
|
-
/* @__PURE__ */ l("h2", { className: r.title, children:
|
|
53
|
+
className: s,
|
|
54
|
+
...f
|
|
55
|
+
}) => /* @__PURE__ */ b("div", { className: c(r.header, s), ...f, children: [
|
|
56
|
+
/* @__PURE__ */ l("h2", { className: r.title, children: o }),
|
|
56
57
|
t && /* @__PURE__ */ l(
|
|
57
58
|
"button",
|
|
58
59
|
{
|
|
59
60
|
onClick: t,
|
|
60
61
|
"aria-label": "Close",
|
|
61
62
|
className: r.closeButton,
|
|
62
|
-
children: /* @__PURE__ */ l(
|
|
63
|
+
children: /* @__PURE__ */ l(y, { size: 20 })
|
|
63
64
|
}
|
|
64
65
|
)
|
|
65
|
-
] }),
|
|
66
|
-
children:
|
|
66
|
+
] }), A = ({
|
|
67
|
+
children: o,
|
|
67
68
|
className: t,
|
|
68
|
-
...
|
|
69
|
-
}) => /* @__PURE__ */ l("div", { className:
|
|
70
|
-
children:
|
|
69
|
+
...s
|
|
70
|
+
}) => /* @__PURE__ */ l("div", { className: c(r.body, t), ...s, children: o }), F = ({
|
|
71
|
+
children: o,
|
|
71
72
|
className: t,
|
|
72
|
-
...
|
|
73
|
-
}) => /* @__PURE__ */ l("div", { className:
|
|
73
|
+
...s
|
|
74
|
+
}) => /* @__PURE__ */ l("div", { className: c(r.footer, t), ...s, children: o });
|
|
74
75
|
export {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
R as Drawer,
|
|
77
|
+
A as DrawerBody,
|
|
78
|
+
F as DrawerFooter,
|
|
79
|
+
S as DrawerHeader
|
|
79
80
|
};
|
package/dist/index13.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as w } from "react/jsx-runtime";
|
|
2
|
-
import b from "./
|
|
2
|
+
import b from "./index31.js";
|
|
3
3
|
import { useState as h, useRef as v, useId as R, useEffect as k, cloneElement as E, createContext as I, useContext as y } from "react";
|
|
4
|
-
import m from "./
|
|
4
|
+
import m from "./index49.js";
|
|
5
5
|
const C = I(null);
|
|
6
6
|
function x() {
|
|
7
7
|
const t = y(C);
|
package/dist/index14.js
CHANGED
|
@@ -1,25 +1,45 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import r from "./index31.js";
|
|
3
|
+
import t from "./index35.js";
|
|
4
|
+
import s from "./index45.js";
|
|
5
|
+
import { Spinner as b } from "./index23.js";
|
|
6
|
+
const N = ({
|
|
7
|
+
icon: e,
|
|
8
|
+
variant: m = "ghost",
|
|
9
|
+
size: i = "md",
|
|
10
|
+
type: c = "button",
|
|
11
|
+
loading: o,
|
|
12
|
+
disabled: p,
|
|
13
|
+
className: u,
|
|
14
|
+
...a
|
|
15
|
+
}) => /* @__PURE__ */ l(
|
|
16
|
+
"button",
|
|
17
|
+
{
|
|
18
|
+
type: c,
|
|
19
|
+
disabled: o || p,
|
|
20
|
+
"aria-busy": o || void 0,
|
|
21
|
+
className: r(
|
|
22
|
+
t.button,
|
|
23
|
+
t[m],
|
|
24
|
+
s.iconButton,
|
|
25
|
+
s[i],
|
|
26
|
+
u
|
|
18
27
|
),
|
|
19
|
-
|
|
20
|
-
|
|
28
|
+
...a,
|
|
29
|
+
children: [
|
|
30
|
+
o ? /* @__PURE__ */ n(b, { className: t.spinner }) : null,
|
|
31
|
+
/* @__PURE__ */ n(
|
|
32
|
+
"span",
|
|
33
|
+
{
|
|
34
|
+
className: r(t.content, {
|
|
35
|
+
[t.hidden]: o
|
|
36
|
+
}),
|
|
37
|
+
children: e
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
]
|
|
41
|
+
}
|
|
21
42
|
);
|
|
22
|
-
c.displayName = "Input";
|
|
23
43
|
export {
|
|
24
|
-
|
|
44
|
+
N as IconButton
|
|
25
45
|
};
|
package/dist/index15.js
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { jsxs as m, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import p from "./index31.js";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import a from "./index58.js";
|
|
5
|
+
const c = n(
|
|
6
|
+
({ label: s, error: r, id: e, className: t, ...l }, o) => /* @__PURE__ */ m("div", { className: a.wrapper, children: [
|
|
7
|
+
s && /* @__PURE__ */ i("label", { htmlFor: e, className: a.label, children: s }),
|
|
8
|
+
/* @__PURE__ */ i(
|
|
9
|
+
"input",
|
|
10
|
+
{
|
|
11
|
+
id: e,
|
|
12
|
+
ref: o,
|
|
13
|
+
"aria-invalid": r ? !0 : void 0,
|
|
14
|
+
"aria-describedby": r ? `${e}-error` : void 0,
|
|
15
|
+
className: p(a.input, r && a.inputError, t),
|
|
16
|
+
...l
|
|
17
|
+
}
|
|
18
|
+
),
|
|
19
|
+
r && /* @__PURE__ */ i("p", { id: `${e}-error`, role: "alert", className: a.error, children: r })
|
|
20
|
+
] })
|
|
19
21
|
);
|
|
22
|
+
c.displayName = "Input";
|
|
20
23
|
export {
|
|
21
|
-
|
|
24
|
+
c as Input
|
|
22
25
|
};
|
package/dist/index16.js
CHANGED
|
@@ -1,77 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
f && !n && e && !e.open && e.showModal();
|
|
21
|
-
}, [f, n]), f ? v(
|
|
22
|
-
/* @__PURE__ */ l(
|
|
23
|
-
"dialog",
|
|
24
|
-
{
|
|
25
|
-
ref: a,
|
|
26
|
-
className: i(
|
|
27
|
-
o.dialog,
|
|
28
|
-
o[`size-${c}`],
|
|
29
|
-
n && o.closing,
|
|
30
|
-
p
|
|
31
|
-
),
|
|
32
|
-
onAnimationEnd: () => {
|
|
33
|
-
n && (a.current?.close(), d(!1), m(!1));
|
|
34
|
-
},
|
|
35
|
-
onCancel: (e) => {
|
|
36
|
-
e.preventDefault(), t();
|
|
37
|
-
},
|
|
38
|
-
onClick: (e) => {
|
|
39
|
-
e.target === a.current && t();
|
|
40
|
-
},
|
|
41
|
-
...N,
|
|
42
|
-
children: /* @__PURE__ */ l("div", { className: o.content, children: r })
|
|
43
|
-
}
|
|
44
|
-
),
|
|
45
|
-
document.body
|
|
46
|
-
) : null;
|
|
47
|
-
}, E = ({
|
|
48
|
-
children: s,
|
|
49
|
-
onClose: t,
|
|
50
|
-
className: r,
|
|
51
|
-
...c
|
|
52
|
-
}) => /* @__PURE__ */ b("div", { className: i(o.header, r), ...c, children: [
|
|
53
|
-
/* @__PURE__ */ l("h2", { className: o.title, children: s }),
|
|
54
|
-
t && /* @__PURE__ */ l(
|
|
55
|
-
"button",
|
|
56
|
-
{
|
|
57
|
-
onClick: t,
|
|
58
|
-
"aria-label": "Close",
|
|
59
|
-
className: o.closeButton,
|
|
60
|
-
children: /* @__PURE__ */ l(M, { size: 20 })
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
] }), R = ({
|
|
64
|
-
children: s,
|
|
65
|
-
className: t,
|
|
66
|
-
...r
|
|
67
|
-
}) => /* @__PURE__ */ l("div", { className: i(o.body, t), ...r, children: s }), w = ({
|
|
68
|
-
children: s,
|
|
69
|
-
className: t,
|
|
70
|
-
...r
|
|
71
|
-
}) => /* @__PURE__ */ l("div", { className: i(o.footer, t), ...r, children: s });
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import a from "./index31.js";
|
|
3
|
+
import t from "./index35.js";
|
|
4
|
+
const f = ({
|
|
5
|
+
variant: o = "primary",
|
|
6
|
+
size: r = "md",
|
|
7
|
+
children: m,
|
|
8
|
+
className: n,
|
|
9
|
+
href: i,
|
|
10
|
+
...p
|
|
11
|
+
}) => /* @__PURE__ */ s(
|
|
12
|
+
"a",
|
|
13
|
+
{
|
|
14
|
+
href: i,
|
|
15
|
+
className: a(t.button, t[o], t[r], n),
|
|
16
|
+
...p,
|
|
17
|
+
children: m
|
|
18
|
+
}
|
|
19
|
+
);
|
|
72
20
|
export {
|
|
73
|
-
|
|
74
|
-
R as ModalBody,
|
|
75
|
-
w as ModalFooter,
|
|
76
|
-
E as ModalHeader
|
|
21
|
+
f as LinkButton
|
|
77
22
|
};
|
package/dist/index17.js
CHANGED
|
@@ -1,64 +1,78 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
totalPages: r,
|
|
16
|
-
onChange: a,
|
|
17
|
-
siblings: s = 1,
|
|
18
|
-
className: c,
|
|
19
|
-
...t
|
|
1
|
+
import { jsx as l, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import c from "./index31.js";
|
|
3
|
+
import { useRef as h, useState as u, useEffect as p } from "react";
|
|
4
|
+
import { createPortal as v } from "react-dom";
|
|
5
|
+
import { useScrollLock as M } from "./index53.js";
|
|
6
|
+
import t from "./index54.js";
|
|
7
|
+
import y from "./index41.js";
|
|
8
|
+
const R = ({
|
|
9
|
+
open: s,
|
|
10
|
+
onClose: o,
|
|
11
|
+
children: r,
|
|
12
|
+
size: f = "sm",
|
|
13
|
+
className: g,
|
|
14
|
+
...N
|
|
20
15
|
}) => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
const i = h(null), [n, m] = u(!1), [a, d] = u(!1);
|
|
17
|
+
return M(n && !a), p(() => {
|
|
18
|
+
s ? (m(!0), d(!1)) : m((e) => (e && d(!0), e));
|
|
19
|
+
}, [s]), p(() => {
|
|
20
|
+
const e = i.current;
|
|
21
|
+
n && !a && e && !e.open && (e.showModal(), e.focus());
|
|
22
|
+
}, [n, a]), n ? v(
|
|
23
|
+
/* @__PURE__ */ l(
|
|
24
|
+
"dialog",
|
|
26
25
|
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return /* @__PURE__ */ e("span", { className: n.ellipsis, children: "..." }, `ellipsis-${m}`);
|
|
37
|
-
const p = l === i;
|
|
38
|
-
return /* @__PURE__ */ e(
|
|
39
|
-
"button",
|
|
40
|
-
{
|
|
41
|
-
"aria-label": `Page ${l}`,
|
|
42
|
-
"aria-current": p ? "page" : void 0,
|
|
43
|
-
onClick: () => a(l),
|
|
44
|
-
className: u(n.page, p && n.active),
|
|
45
|
-
children: l
|
|
26
|
+
ref: i,
|
|
27
|
+
className: c(
|
|
28
|
+
t.dialog,
|
|
29
|
+
t[`size-${f}`],
|
|
30
|
+
a && t.closing,
|
|
31
|
+
g
|
|
32
|
+
),
|
|
33
|
+
onAnimationEnd: () => {
|
|
34
|
+
a && (i.current?.close(), m(!1), d(!1));
|
|
46
35
|
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
onClick: () => a(i + 1),
|
|
56
|
-
className: n.arrow,
|
|
57
|
-
children: /* @__PURE__ */ e(d, { className: n.icon })
|
|
36
|
+
onCancel: (e) => {
|
|
37
|
+
e.preventDefault(), o();
|
|
38
|
+
},
|
|
39
|
+
onClick: (e) => {
|
|
40
|
+
e.target === i.current && o();
|
|
41
|
+
},
|
|
42
|
+
...N,
|
|
43
|
+
children: /* @__PURE__ */ l("div", { className: t.content, children: r })
|
|
58
44
|
}
|
|
59
|
-
)
|
|
60
|
-
|
|
61
|
-
|
|
45
|
+
),
|
|
46
|
+
document.body
|
|
47
|
+
) : null;
|
|
48
|
+
}, S = ({
|
|
49
|
+
children: s,
|
|
50
|
+
onClose: o,
|
|
51
|
+
className: r,
|
|
52
|
+
...f
|
|
53
|
+
}) => /* @__PURE__ */ b("div", { className: c(t.header, r), ...f, children: [
|
|
54
|
+
/* @__PURE__ */ l("h2", { className: t.title, children: s }),
|
|
55
|
+
o && /* @__PURE__ */ l(
|
|
56
|
+
"button",
|
|
57
|
+
{
|
|
58
|
+
onClick: o,
|
|
59
|
+
"aria-label": "Close",
|
|
60
|
+
className: t.closeButton,
|
|
61
|
+
children: /* @__PURE__ */ l(y, { size: 20 })
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
] }), w = ({
|
|
65
|
+
children: s,
|
|
66
|
+
className: o,
|
|
67
|
+
...r
|
|
68
|
+
}) => /* @__PURE__ */ l("div", { className: c(t.body, o), ...r, children: s }), A = ({
|
|
69
|
+
children: s,
|
|
70
|
+
className: o,
|
|
71
|
+
...r
|
|
72
|
+
}) => /* @__PURE__ */ l("div", { className: c(t.footer, o), ...r, children: s });
|
|
62
73
|
export {
|
|
63
|
-
|
|
74
|
+
R as Modal,
|
|
75
|
+
w as ModalBody,
|
|
76
|
+
A as ModalFooter,
|
|
77
|
+
S as ModalHeader
|
|
64
78
|
};
|