sander-ui 0.1.17 → 0.1.18
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/Accordion-_Ot21_IX.js +74 -0
- package/dist/Alert-Cbx2Hx3u.js +57 -0
- package/dist/Avatar-7zC49FAM.js +101 -0
- package/dist/Badge-D1SsfPgP.js +54 -0
- package/dist/Breadcrumbs-u6K5JP-p.js +55 -0
- package/dist/Button-CZyNozz2.js +35 -0
- package/dist/{index59.js → Button.module-Dm8IT-50.js} +4 -16
- package/dist/Card-sDTrEkr0.js +52 -0
- package/dist/Checkbox-D-5XA5nS.js +46 -0
- package/dist/ConfirmModal-CVz_ziw_.js +112 -0
- package/dist/Container-ahtH8Cdw.js +29 -0
- package/dist/Drawer-DQlmckRl.js +105 -0
- package/dist/{index14.js → Dropdown-GLV9Ia6O.js} +48 -42
- package/dist/Heading-Ch7JpxBQ.js +63 -0
- package/dist/IconButton-CwyqSRAA.js +49 -0
- package/dist/Input-DZz1lKfC.js +30 -0
- package/dist/LinkButton-DjDpX08N.js +22 -0
- package/dist/Pagination-C3F8WZwF.js +71 -0
- package/dist/Progress-DkSwmZPr.js +53 -0
- package/dist/Radio-0ZIweAXI.js +44 -0
- package/dist/Select-DDvtRanl.js +283 -0
- package/dist/Skeleton-8HbsCzY1.js +26 -0
- package/dist/Spinner-BBsu1HN3.js +49 -0
- package/dist/Switch-D7LlrXzk.js +58 -0
- package/dist/Table-BUCUALeG.js +27 -0
- package/dist/Tabs-CEWSRAh7.js +140 -0
- package/dist/Text-EMaNgj_L.js +61 -0
- package/dist/Textarea-Btoxtbz0.js +30 -0
- package/dist/ToastContainer-hY5tgI2e.js +103 -0
- package/dist/Tooltip-DENWDJQ8.js +62 -0
- package/dist/accordion.js +5 -0
- package/dist/alert.js +4 -0
- package/dist/avatar.js +5 -0
- package/dist/badge.js +4 -0
- package/dist/breadcrumbs.js +4 -0
- package/dist/button.js +6 -0
- package/dist/card.js +7 -0
- package/dist/checkbox.js +4 -0
- package/dist/chevron-right-DvXGOiS_.js +5 -0
- package/dist/container.js +4 -0
- package/dist/createLucideIcon-CP-mMPfa.js +75 -0
- package/dist/drawer.js +7 -0
- package/dist/dropdown.js +8 -0
- package/dist/heading.js +4 -0
- package/dist/icon-button.js +4 -0
- package/dist/index-p1eeF8LQ.js +42 -0
- package/dist/index.js +77 -80
- package/dist/input.js +4 -0
- package/dist/modal.js +8 -0
- package/dist/pagination.js +4 -0
- package/dist/progress.js +4 -0
- package/dist/radio.js +4 -0
- package/dist/sander-ui.css +1 -0
- package/dist/select.js +4 -0
- package/dist/skeleton.js +4 -0
- package/dist/spinner.js +4 -0
- package/dist/switch.js +4 -0
- package/dist/table.js +9 -0
- package/dist/tabs.js +5 -0
- package/dist/text.js +4 -0
- package/dist/textarea.js +4 -0
- package/dist/toast.js +5 -0
- package/dist/tooltip.js +4 -0
- package/dist/triangle-alert-CvNSSzY6.js +32 -0
- package/dist/{index48.js → useScrollLock-CCzIYwoC.js} +1 -1
- package/dist/{index50.js → x-B9bYxG31.js} +4 -5
- package/package.json +114 -2
- package/dist/index.css +0 -1
- package/dist/index10.js +0 -39
- package/dist/index11.js +0 -24
- package/dist/index12.js +0 -24
- package/dist/index13.js +0 -80
- package/dist/index15.js +0 -40
- package/dist/index16.js +0 -45
- package/dist/index17.js +0 -25
- package/dist/index18.js +0 -22
- package/dist/index19.js +0 -78
- package/dist/index20.js +0 -64
- package/dist/index21.js +0 -43
- package/dist/index22.js +0 -34
- package/dist/index23.js +0 -262
- package/dist/index24.js +0 -21
- package/dist/index25.js +0 -42
- package/dist/index26.js +0 -49
- package/dist/index27.js +0 -134
- package/dist/index28.js +0 -20
- package/dist/index29.js +0 -32
- package/dist/index3.js +0 -67
- package/dist/index30.js +0 -25
- package/dist/index31.js +0 -57
- package/dist/index32.js +0 -30
- package/dist/index33.js +0 -48
- package/dist/index34.js +0 -7
- package/dist/index35.js +0 -19
- package/dist/index36.js +0 -25
- package/dist/index37.js +0 -17
- package/dist/index38.js +0 -36
- package/dist/index39.js +0 -11
- package/dist/index4.js +0 -50
- package/dist/index40.js +0 -19
- package/dist/index41.js +0 -10
- package/dist/index42.js +0 -6
- package/dist/index43.js +0 -45
- package/dist/index44.js +0 -6
- package/dist/index45.js +0 -6
- package/dist/index46.js +0 -19
- package/dist/index47.js +0 -25
- package/dist/index49.js +0 -42
- package/dist/index5.js +0 -62
- package/dist/index51.js +0 -17
- package/dist/index52.js +0 -19
- package/dist/index53.js +0 -29
- package/dist/index54.js +0 -28
- package/dist/index55.js +0 -15
- package/dist/index56.js +0 -28
- package/dist/index57.js +0 -15
- package/dist/index58.js +0 -28
- package/dist/index6.js +0 -42
- package/dist/index60.js +0 -19
- package/dist/index61.js +0 -17
- package/dist/index62.js +0 -6
- package/dist/index63.js +0 -23
- package/dist/index64.js +0 -13
- package/dist/index65.js +0 -33
- package/dist/index66.js +0 -25
- package/dist/index67.js +0 -10
- package/dist/index68.js +0 -16
- package/dist/index69.js +0 -10
- package/dist/index7.js +0 -44
- package/dist/index70.js +0 -9
- package/dist/index71.js +0 -44
- package/dist/index72.js +0 -6
- package/dist/index73.js +0 -47
- package/dist/index74.js +0 -23
- package/dist/index75.js +0 -15
- package/dist/index76.js +0 -37
- package/dist/index77.js +0 -4
- package/dist/index78.js +0 -6
- package/dist/index79.js +0 -23
- package/dist/index8.js +0 -35
- package/dist/index80.js +0 -4
- package/dist/index81.js +0 -4
- package/dist/index82.js +0 -8
- package/dist/index83.js +0 -36
- package/dist/index84.js +0 -14
- package/dist/index85.js +0 -9
- package/dist/index86.js +0 -7
- package/dist/index9.js +0 -41
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsx as t, jsxs as O } from "react/jsx-runtime";
|
|
2
|
+
import { c as _ } from "./index-p1eeF8LQ.js";
|
|
3
|
+
import { useState as p, useCallback as h, useId as C, useContext as N, useRef as A, createContext as k } from "react";
|
|
4
|
+
const y = "_accordion_7j7b7_1", R = "_item_7j7b7_6", D = "_disabled_7j7b7_14", P = "_trigger_7j7b7_19", S = "_content_7j7b7_64", T = "_contentOpen_7j7b7_70", U = "_contentInner_7j7b7_74", n = {
|
|
5
|
+
accordion: y,
|
|
6
|
+
item: R,
|
|
7
|
+
disabled: D,
|
|
8
|
+
trigger: P,
|
|
9
|
+
content: S,
|
|
10
|
+
contentOpen: T,
|
|
11
|
+
contentInner: U
|
|
12
|
+
}, g = k({
|
|
13
|
+
openId: null,
|
|
14
|
+
toggle: () => {
|
|
15
|
+
},
|
|
16
|
+
exclusive: !1
|
|
17
|
+
}), B = ({
|
|
18
|
+
exclusive: s = !1,
|
|
19
|
+
children: r,
|
|
20
|
+
className: l,
|
|
21
|
+
...e
|
|
22
|
+
}) => {
|
|
23
|
+
const [i, a] = p(null), o = h(
|
|
24
|
+
(c) => {
|
|
25
|
+
a((d) => d === c ? null : c);
|
|
26
|
+
},
|
|
27
|
+
[]
|
|
28
|
+
);
|
|
29
|
+
return /* @__PURE__ */ t(g.Provider, { value: { openId: i, toggle: o, exclusive: s }, children: /* @__PURE__ */ t("div", { className: _(n.accordion, l), ...e, children: r }) });
|
|
30
|
+
}, E = ({
|
|
31
|
+
title: s,
|
|
32
|
+
children: r,
|
|
33
|
+
defaultOpen: l,
|
|
34
|
+
disabled: e,
|
|
35
|
+
className: i,
|
|
36
|
+
...a
|
|
37
|
+
}) => {
|
|
38
|
+
const o = C(), { openId: c, toggle: d, exclusive: m } = N(g), f = A(null), [b, I] = p(
|
|
39
|
+
l ?? !1
|
|
40
|
+
), u = m ? c === o : b, j = (v) => {
|
|
41
|
+
v.preventDefault(), !e && (m ? d(o) : I((x) => !x));
|
|
42
|
+
};
|
|
43
|
+
return /* @__PURE__ */ O(
|
|
44
|
+
"details",
|
|
45
|
+
{
|
|
46
|
+
open: u,
|
|
47
|
+
className: _(n.item, { [n.disabled]: e }, i),
|
|
48
|
+
...a,
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ t(
|
|
51
|
+
"summary",
|
|
52
|
+
{
|
|
53
|
+
className: n.trigger,
|
|
54
|
+
onClick: j,
|
|
55
|
+
"aria-disabled": e || void 0,
|
|
56
|
+
children: s
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ t(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
ref: f,
|
|
63
|
+
className: _(n.content, { [n.contentOpen]: u }),
|
|
64
|
+
children: /* @__PURE__ */ t("div", { className: n.contentInner, children: r })
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
B as A,
|
|
73
|
+
E as a
|
|
74
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsxs as t, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "./index-p1eeF8LQ.js";
|
|
3
|
+
import { I as m, T as u, C as d, a as f } from "./triangle-alert-CvNSSzY6.js";
|
|
4
|
+
import { X as p } from "./x-B9bYxG31.js";
|
|
5
|
+
const g = "_alert_16i4u_1", N = "_icon_16i4u_11", w = "_content_16i4u_18", C = "_title_16i4u_23", h = "_description_16i4u_27", A = "_dismiss_16i4u_35", x = "_success_16i4u_62", I = "_error_16i4u_68", b = "_warning_16i4u_74", j = "_info_16i4u_80", s = {
|
|
6
|
+
alert: g,
|
|
7
|
+
icon: N,
|
|
8
|
+
content: w,
|
|
9
|
+
title: C,
|
|
10
|
+
description: h,
|
|
11
|
+
dismiss: A,
|
|
12
|
+
success: x,
|
|
13
|
+
error: I,
|
|
14
|
+
warning: b,
|
|
15
|
+
info: j
|
|
16
|
+
}, k = {
|
|
17
|
+
success: f,
|
|
18
|
+
error: d,
|
|
19
|
+
warning: u,
|
|
20
|
+
info: m
|
|
21
|
+
}, B = ({
|
|
22
|
+
variant: r = "info",
|
|
23
|
+
title: n,
|
|
24
|
+
children: o,
|
|
25
|
+
onDismiss: c,
|
|
26
|
+
className: e,
|
|
27
|
+
..._
|
|
28
|
+
}) => {
|
|
29
|
+
const a = k[r];
|
|
30
|
+
return /* @__PURE__ */ t(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
role: r === "error" || r === "warning" ? "alert" : "status",
|
|
34
|
+
className: l(s.alert, s[r], e),
|
|
35
|
+
..._,
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ i(a, { className: s.icon }),
|
|
38
|
+
/* @__PURE__ */ t("div", { className: s.content, children: [
|
|
39
|
+
n && /* @__PURE__ */ i("div", { className: s.title, children: n }),
|
|
40
|
+
o && /* @__PURE__ */ i("div", { className: s.description, children: o })
|
|
41
|
+
] }),
|
|
42
|
+
c && /* @__PURE__ */ i(
|
|
43
|
+
"button",
|
|
44
|
+
{
|
|
45
|
+
onClick: c,
|
|
46
|
+
"aria-label": "Dismiss",
|
|
47
|
+
className: s.dismiss,
|
|
48
|
+
children: /* @__PURE__ */ i(p, { size: 16 })
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
B as A
|
|
57
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "./index-p1eeF8LQ.js";
|
|
3
|
+
import { useState as m, Children as d } from "react";
|
|
4
|
+
const f = /* @__PURE__ */ new Set([
|
|
5
|
+
"van",
|
|
6
|
+
"von",
|
|
7
|
+
"de",
|
|
8
|
+
"del",
|
|
9
|
+
"den",
|
|
10
|
+
"der",
|
|
11
|
+
"di",
|
|
12
|
+
"du",
|
|
13
|
+
"el",
|
|
14
|
+
"la",
|
|
15
|
+
"le",
|
|
16
|
+
"los",
|
|
17
|
+
"het",
|
|
18
|
+
"ten",
|
|
19
|
+
"ter",
|
|
20
|
+
"op"
|
|
21
|
+
]);
|
|
22
|
+
function g(t, a = "?") {
|
|
23
|
+
if (!t?.trim()) return a;
|
|
24
|
+
const r = t.trim().split(/\s+/), s = r.filter((c) => !f.has(c.toLowerCase()));
|
|
25
|
+
if (s.length === 0) return r[0][0].toUpperCase();
|
|
26
|
+
if (s.length === 1) return s[0][0].toUpperCase();
|
|
27
|
+
const l = s[0][0], n = s[s.length - 1][0];
|
|
28
|
+
return (l + n).toUpperCase();
|
|
29
|
+
}
|
|
30
|
+
const h = "_wrapper_1p6ce_1", v = "_sm_1p6ce_8", w = "_md_1p6ce_14", b = "_lg_1p6ce_20", x = "_xl_1p6ce_26", N = "_image_1p6ce_38", y = "_fallback_1p6ce_45", A = "_status_1p6ce_59", E = "_group_1p6ce_88", e = {
|
|
31
|
+
wrapper: h,
|
|
32
|
+
sm: v,
|
|
33
|
+
md: w,
|
|
34
|
+
lg: b,
|
|
35
|
+
xl: x,
|
|
36
|
+
"2xl": "_2xl_1p6ce_32",
|
|
37
|
+
image: N,
|
|
38
|
+
fallback: y,
|
|
39
|
+
status: A,
|
|
40
|
+
"status-online": "_status-online_1p6ce_71",
|
|
41
|
+
"status-offline": "_status-offline_1p6ce_75",
|
|
42
|
+
"status-busy": "_status-busy_1p6ce_79",
|
|
43
|
+
"status-away": "_status-away_1p6ce_83",
|
|
44
|
+
group: E
|
|
45
|
+
}, k = { sm: 24, md: 32, lg: 40, xl: 56, "2xl": 80 }, U = ({
|
|
46
|
+
src: t,
|
|
47
|
+
name: a,
|
|
48
|
+
size: r = "md",
|
|
49
|
+
status: s,
|
|
50
|
+
className: l,
|
|
51
|
+
...n
|
|
52
|
+
}) => {
|
|
53
|
+
const [c, u] = m(!1), _ = k[r];
|
|
54
|
+
return /* @__PURE__ */ p(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
className: i(e.wrapper, e[r], l),
|
|
58
|
+
role: "img",
|
|
59
|
+
"aria-label": a || "Avatar",
|
|
60
|
+
...n,
|
|
61
|
+
children: [
|
|
62
|
+
t && !c ? /* @__PURE__ */ o(
|
|
63
|
+
"img",
|
|
64
|
+
{
|
|
65
|
+
src: t,
|
|
66
|
+
alt: a || "Avatar",
|
|
67
|
+
width: _,
|
|
68
|
+
height: _,
|
|
69
|
+
className: e.image,
|
|
70
|
+
onError: () => u(!0)
|
|
71
|
+
}
|
|
72
|
+
) : /* @__PURE__ */ o("div", { className: e.fallback, children: g(a) }),
|
|
73
|
+
s ? /* @__PURE__ */ o(
|
|
74
|
+
"span",
|
|
75
|
+
{
|
|
76
|
+
className: i(e.status, e[`status-${s}`]),
|
|
77
|
+
"aria-label": s
|
|
78
|
+
}
|
|
79
|
+
) : null
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}, j = ({
|
|
84
|
+
max: t,
|
|
85
|
+
children: a,
|
|
86
|
+
className: r,
|
|
87
|
+
...s
|
|
88
|
+
}) => {
|
|
89
|
+
const l = d.toArray(a), n = t ? l.slice(0, t) : l, c = t ? l.length - t : 0;
|
|
90
|
+
return /* @__PURE__ */ p("div", { className: i(e.group, r), ...s, children: [
|
|
91
|
+
n,
|
|
92
|
+
c > 0 ? /* @__PURE__ */ o("div", { className: i(e.wrapper, e.md), children: /* @__PURE__ */ p("div", { className: e.fallback, children: [
|
|
93
|
+
"+",
|
|
94
|
+
c
|
|
95
|
+
] }) }) : null
|
|
96
|
+
] });
|
|
97
|
+
};
|
|
98
|
+
export {
|
|
99
|
+
U as A,
|
|
100
|
+
j as a
|
|
101
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as m } from "./index-p1eeF8LQ.js";
|
|
3
|
+
import { X as i } from "./x-B9bYxG31.js";
|
|
4
|
+
const f = "_badge_19d90_1", u = "_sm_19d90_10", g = "_md_19d90_15", b = "_dot_19d90_21", p = "_remove_19d90_30", v = "_filled_19d90_56", w = "_success_19d90_61", x = "_warning_19d90_66", N = "_error_19d90_71", h = "_info_19d90_76", j = "_outline_19d90_82", s = {
|
|
5
|
+
badge: f,
|
|
6
|
+
sm: u,
|
|
7
|
+
md: g,
|
|
8
|
+
dot: b,
|
|
9
|
+
remove: p,
|
|
10
|
+
filled: v,
|
|
11
|
+
default: "_default_19d90_56",
|
|
12
|
+
success: w,
|
|
13
|
+
warning: x,
|
|
14
|
+
error: N,
|
|
15
|
+
info: h,
|
|
16
|
+
outline: j
|
|
17
|
+
}, C = ({
|
|
18
|
+
children: d,
|
|
19
|
+
variant: n = "default",
|
|
20
|
+
appearance: t = "filled",
|
|
21
|
+
size: o = "sm",
|
|
22
|
+
dot: r,
|
|
23
|
+
onRemove: _,
|
|
24
|
+
className: c,
|
|
25
|
+
...a
|
|
26
|
+
}) => /* @__PURE__ */ l(
|
|
27
|
+
"span",
|
|
28
|
+
{
|
|
29
|
+
className: m(
|
|
30
|
+
s.badge,
|
|
31
|
+
s[n],
|
|
32
|
+
s[t],
|
|
33
|
+
s[o],
|
|
34
|
+
c
|
|
35
|
+
),
|
|
36
|
+
...a,
|
|
37
|
+
children: [
|
|
38
|
+
r && /* @__PURE__ */ e("span", { className: s.dot }),
|
|
39
|
+
d,
|
|
40
|
+
_ && /* @__PURE__ */ e(
|
|
41
|
+
"button",
|
|
42
|
+
{
|
|
43
|
+
onClick: _,
|
|
44
|
+
"aria-label": "Remove",
|
|
45
|
+
className: s.remove,
|
|
46
|
+
children: /* @__PURE__ */ e(i, { size: o === "sm" ? 10 : 12 })
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
export {
|
|
53
|
+
C as B
|
|
54
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as s, jsxs as d, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { c as v } from "./index-p1eeF8LQ.js";
|
|
3
|
+
import { useState as x } from "react";
|
|
4
|
+
import { c as z } from "./createLucideIcon-CP-mMPfa.js";
|
|
5
|
+
import { C as N } from "./chevron-right-DvXGOiS_.js";
|
|
6
|
+
const k = [
|
|
7
|
+
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
8
|
+
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
9
|
+
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
10
|
+
], y = z("ellipsis", k), g = "_list_2tzve_1", C = "_item_2tzve_9", S = "_separator_2tzve_15", j = "_link_2tzve_22", B = "_current_2tzve_37", w = "_text_2tzve_42", E = "_ellipsis_2tzve_46", l = {
|
|
11
|
+
list: g,
|
|
12
|
+
item: C,
|
|
13
|
+
separator: S,
|
|
14
|
+
link: j,
|
|
15
|
+
current: B,
|
|
16
|
+
text: w,
|
|
17
|
+
ellipsis: E
|
|
18
|
+
}, L = () => /* @__PURE__ */ s(N, { className: l.separator }), A = ({
|
|
19
|
+
items: r,
|
|
20
|
+
separator: i,
|
|
21
|
+
maxItems: c,
|
|
22
|
+
className: h,
|
|
23
|
+
...u
|
|
24
|
+
}) => {
|
|
25
|
+
const [m, b] = x(!1), a = c && c > 1 && r.length > c && !m, o = a ? [r[0], ...r.slice(-(c - 1))] : r, p = (e) => i ? /* @__PURE__ */ s("span", { className: l.separator, children: i }, e) : /* @__PURE__ */ s(L, {}, e);
|
|
26
|
+
return /* @__PURE__ */ s("nav", { "aria-label": "Breadcrumb", className: v(h), ...u, children: /* @__PURE__ */ s("ol", { className: l.list, children: o.map((e, t) => {
|
|
27
|
+
const n = a ? t === o.length - 1 : t === r.length - 1, _ = typeof e.label == "string" ? e.label : `crumb-${t}`;
|
|
28
|
+
return /* @__PURE__ */ d("li", { className: l.item, children: [
|
|
29
|
+
t > 0 && p(`sep-${_}`),
|
|
30
|
+
a && t === 1 && /* @__PURE__ */ d(f, { children: [
|
|
31
|
+
/* @__PURE__ */ s(
|
|
32
|
+
"button",
|
|
33
|
+
{
|
|
34
|
+
className: l.ellipsis,
|
|
35
|
+
onClick: () => b(!0),
|
|
36
|
+
"aria-label": "Show full breadcrumb trail",
|
|
37
|
+
children: /* @__PURE__ */ s(y, { size: 14 })
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
p("sep-ellipsis")
|
|
41
|
+
] }),
|
|
42
|
+
e.href && !n ? /* @__PURE__ */ s("a", { href: e.href, className: l.link, children: e.label }) : /* @__PURE__ */ s(
|
|
43
|
+
"span",
|
|
44
|
+
{
|
|
45
|
+
className: n ? l.current : l.text,
|
|
46
|
+
...n && { "aria-current": "page" },
|
|
47
|
+
children: e.label
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
] }, _);
|
|
51
|
+
}) }) });
|
|
52
|
+
};
|
|
53
|
+
export {
|
|
54
|
+
A as B
|
|
55
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsxs as b, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "./index-p1eeF8LQ.js";
|
|
3
|
+
import { forwardRef as f } from "react";
|
|
4
|
+
import { S as d } from "./Spinner-BBsu1HN3.js";
|
|
5
|
+
import { b as t } from "./Button.module-Dm8IT-50.js";
|
|
6
|
+
const l = f(
|
|
7
|
+
({
|
|
8
|
+
variant: m = "primary",
|
|
9
|
+
size: n = "md",
|
|
10
|
+
type: a = "button",
|
|
11
|
+
loading: r,
|
|
12
|
+
disabled: e,
|
|
13
|
+
children: i,
|
|
14
|
+
className: p,
|
|
15
|
+
...u
|
|
16
|
+
}, c) => /* @__PURE__ */ b(
|
|
17
|
+
"button",
|
|
18
|
+
{
|
|
19
|
+
ref: c,
|
|
20
|
+
type: a,
|
|
21
|
+
disabled: r || e,
|
|
22
|
+
"aria-busy": r || void 0,
|
|
23
|
+
className: o(t.button, t[m], t[n], p),
|
|
24
|
+
...u,
|
|
25
|
+
children: [
|
|
26
|
+
r ? /* @__PURE__ */ s(d, { className: t.spinner }) : null,
|
|
27
|
+
/* @__PURE__ */ s("span", { className: o(t.content, { [t.hidden]: r }), children: i })
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
l.displayName = "Button";
|
|
33
|
+
export {
|
|
34
|
+
l as B
|
|
35
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const n = "_button_dajne_1",
|
|
1
|
+
const n = "_button_dajne_1", _ = "_primary_dajne_28", t = "_secondary_dajne_37", e = "_outline_dajne_46", o = "_ghost_dajne_56", d = "_danger_dajne_65", s = "_sm_dajne_75", a = "_md_dajne_80", c = "_lg_dajne_85", r = "_content_dajne_91", i = "_hidden_dajne_97", j = "_spinner_dajne_101", g = {
|
|
2
2
|
button: n,
|
|
3
|
-
primary:
|
|
4
|
-
secondary:
|
|
3
|
+
primary: _,
|
|
4
|
+
secondary: t,
|
|
5
5
|
outline: e,
|
|
6
6
|
ghost: o,
|
|
7
7
|
danger: d,
|
|
@@ -13,17 +13,5 @@ const n = "_button_dajne_1", t = "_primary_dajne_28", _ = "_secondary_dajne_37",
|
|
|
13
13
|
spinner: j
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
|
-
|
|
17
|
-
r as content,
|
|
18
|
-
d as danger,
|
|
19
|
-
g as default,
|
|
20
|
-
o as ghost,
|
|
21
|
-
i as hidden,
|
|
22
|
-
c as lg,
|
|
23
|
-
a as md,
|
|
24
|
-
e as outline,
|
|
25
|
-
t as primary,
|
|
26
|
-
_ as secondary,
|
|
27
|
-
s as sm,
|
|
28
|
-
j as spinner
|
|
16
|
+
g as b
|
|
29
17
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as n } from "./index-p1eeF8LQ.js";
|
|
3
|
+
const c = "_card_2a53z_1", i = "_elevated_2a53z_7", l = "_outlined_2a53z_12", m = "_flat_2a53z_16", p = "_header_2a53z_38", g = "_body_2a53z_44", z = "_footer_2a53z_48", o = {
|
|
4
|
+
card: c,
|
|
5
|
+
elevated: i,
|
|
6
|
+
outlined: l,
|
|
7
|
+
flat: m,
|
|
8
|
+
"padding-none": "_padding-none_2a53z_21",
|
|
9
|
+
"padding-sm": "_padding-sm_2a53z_25",
|
|
10
|
+
"padding-md": "_padding-md_2a53z_29",
|
|
11
|
+
"padding-lg": "_padding-lg_2a53z_33",
|
|
12
|
+
header: p,
|
|
13
|
+
body: g,
|
|
14
|
+
footer: z
|
|
15
|
+
}, u = ({
|
|
16
|
+
as: a = "div",
|
|
17
|
+
variant: d = "elevated",
|
|
18
|
+
padding: e = "md",
|
|
19
|
+
children: _,
|
|
20
|
+
className: r,
|
|
21
|
+
...s
|
|
22
|
+
}) => /* @__PURE__ */ t(
|
|
23
|
+
a,
|
|
24
|
+
{
|
|
25
|
+
className: n(
|
|
26
|
+
o.card,
|
|
27
|
+
o[d],
|
|
28
|
+
o[`padding-${e}`],
|
|
29
|
+
r
|
|
30
|
+
),
|
|
31
|
+
...s,
|
|
32
|
+
children: _
|
|
33
|
+
}
|
|
34
|
+
), y = ({
|
|
35
|
+
children: a,
|
|
36
|
+
className: d,
|
|
37
|
+
...e
|
|
38
|
+
}) => /* @__PURE__ */ t("div", { className: n(o.header, d), ...e, children: a }), b = ({
|
|
39
|
+
children: a,
|
|
40
|
+
className: d,
|
|
41
|
+
...e
|
|
42
|
+
}) => /* @__PURE__ */ t("div", { className: n(o.body, d), ...e, children: a }), C = ({
|
|
43
|
+
children: a,
|
|
44
|
+
className: d,
|
|
45
|
+
...e
|
|
46
|
+
}) => /* @__PURE__ */ t("div", { className: n(o.footer, d), ...e, children: a });
|
|
47
|
+
export {
|
|
48
|
+
u as C,
|
|
49
|
+
b as a,
|
|
50
|
+
C as b,
|
|
51
|
+
y as c
|
|
52
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as _ } from "./index-p1eeF8LQ.js";
|
|
3
|
+
import { forwardRef as u, useId as k, useRef as j, useEffect as v } from "react";
|
|
4
|
+
const N = "_wrapper_tjwht_1", y = "_row_tjwht_6", E = "_checkbox_tjwht_12", I = "_checkboxError_tjwht_54", C = "_label_tjwht_58", R = "_description_tjwht_65", B = "_error_tjwht_72", r = {
|
|
5
|
+
wrapper: N,
|
|
6
|
+
row: y,
|
|
7
|
+
checkbox: E,
|
|
8
|
+
checkboxError: I,
|
|
9
|
+
label: C,
|
|
10
|
+
description: R,
|
|
11
|
+
error: B
|
|
12
|
+
}, $ = u(
|
|
13
|
+
({ label: n, description: i, error: c, indeterminate: a, id: b, className: w, ...m }, o) => {
|
|
14
|
+
const x = k(), t = b ?? x, l = j(null);
|
|
15
|
+
v(() => {
|
|
16
|
+
const e = l.current;
|
|
17
|
+
e && (e.indeterminate = !!a);
|
|
18
|
+
}, [a]);
|
|
19
|
+
const d = c ? `${t}-error` : void 0, h = i ? `${t}-description` : void 0, f = [h, d].filter(Boolean).join(" ") || void 0;
|
|
20
|
+
return /* @__PURE__ */ p("div", { className: _(r.wrapper, w), children: [
|
|
21
|
+
/* @__PURE__ */ p("div", { className: r.row, children: [
|
|
22
|
+
/* @__PURE__ */ s(
|
|
23
|
+
"input",
|
|
24
|
+
{
|
|
25
|
+
id: t,
|
|
26
|
+
ref: (e) => {
|
|
27
|
+
l.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
|
|
28
|
+
},
|
|
29
|
+
type: "checkbox",
|
|
30
|
+
"aria-invalid": c ? !0 : void 0,
|
|
31
|
+
"aria-describedby": f,
|
|
32
|
+
className: _(r.checkbox, c && r.checkboxError),
|
|
33
|
+
...m
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
n && /* @__PURE__ */ s("label", { htmlFor: t, className: r.label, children: n })
|
|
37
|
+
] }),
|
|
38
|
+
i && /* @__PURE__ */ s("p", { id: h, className: r.description, children: i }),
|
|
39
|
+
c && /* @__PURE__ */ s("p", { id: d, className: r.error, role: "alert", children: c })
|
|
40
|
+
] });
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
$.displayName = "Checkbox";
|
|
44
|
+
export {
|
|
45
|
+
$ as C
|
|
46
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { jsx as t, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { B as x } from "./Button-CZyNozz2.js";
|
|
3
|
+
import { c as _ } from "./index-p1eeF8LQ.js";
|
|
4
|
+
import { useRef as g, useState as h, useEffect as j } from "react";
|
|
5
|
+
import { createPortal as b } from "react-dom";
|
|
6
|
+
import { u as p } from "./useScrollLock-CCzIYwoC.js";
|
|
7
|
+
import { X as z } from "./x-B9bYxG31.js";
|
|
8
|
+
const B = "_dialog_1yxjo_33", C = "_closing_1yxjo_55", M = "_content_1yxjo_77", N = "_header_1yxjo_84", v = "_title_1yxjo_91", k = "_closeButton_1yxjo_97", A = "_body_1yxjo_118", E = "_footer_1yxjo_126", n = {
|
|
9
|
+
dialog: B,
|
|
10
|
+
"modal-scale-in": "_modal-scale-in_1yxjo_1",
|
|
11
|
+
"modal-fade-in": "_modal-fade-in_1yxjo_1",
|
|
12
|
+
"modal-scale-out": "_modal-scale-out_1yxjo_1",
|
|
13
|
+
"modal-fade-out": "_modal-fade-out_1yxjo_1",
|
|
14
|
+
closing: C,
|
|
15
|
+
"size-sm": "_size-sm_1yxjo_65",
|
|
16
|
+
"size-md": "_size-md_1yxjo_69",
|
|
17
|
+
"size-lg": "_size-lg_1yxjo_73",
|
|
18
|
+
content: M,
|
|
19
|
+
header: N,
|
|
20
|
+
title: v,
|
|
21
|
+
closeButton: k,
|
|
22
|
+
body: A,
|
|
23
|
+
footer: E
|
|
24
|
+
}, R = ({
|
|
25
|
+
open: s,
|
|
26
|
+
onClose: o,
|
|
27
|
+
children: l,
|
|
28
|
+
size: r = "sm",
|
|
29
|
+
className: m,
|
|
30
|
+
...f
|
|
31
|
+
}) => {
|
|
32
|
+
const a = g(null), [c, i] = h(!1), [d, u] = h(!1);
|
|
33
|
+
return p(c && !d), j(() => {
|
|
34
|
+
s ? (i(!0), u(!1)) : i((e) => (e && u(!0), e));
|
|
35
|
+
}, [s]), j(() => {
|
|
36
|
+
const e = a.current;
|
|
37
|
+
c && !d && e && !e.open && (e.showModal(), e.focus());
|
|
38
|
+
}, [c, d]), c ? b(
|
|
39
|
+
/* @__PURE__ */ t(
|
|
40
|
+
"dialog",
|
|
41
|
+
{
|
|
42
|
+
ref: a,
|
|
43
|
+
className: _(
|
|
44
|
+
n.dialog,
|
|
45
|
+
n[`size-${r}`],
|
|
46
|
+
d && n.closing,
|
|
47
|
+
m
|
|
48
|
+
),
|
|
49
|
+
onAnimationEnd: () => {
|
|
50
|
+
d && (a.current?.close(), i(!1), u(!1));
|
|
51
|
+
},
|
|
52
|
+
onCancel: (e) => {
|
|
53
|
+
e.preventDefault(), o();
|
|
54
|
+
},
|
|
55
|
+
onClick: (e) => {
|
|
56
|
+
e.target === a.current && o();
|
|
57
|
+
},
|
|
58
|
+
...f,
|
|
59
|
+
children: /* @__PURE__ */ t("div", { className: n.content, children: l })
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
document.body
|
|
63
|
+
) : null;
|
|
64
|
+
}, S = ({
|
|
65
|
+
children: s,
|
|
66
|
+
onClose: o,
|
|
67
|
+
className: l,
|
|
68
|
+
...r
|
|
69
|
+
}) => /* @__PURE__ */ y("div", { className: _(n.header, l), ...r, children: [
|
|
70
|
+
/* @__PURE__ */ t("h2", { className: n.title, children: s }),
|
|
71
|
+
o && /* @__PURE__ */ t(
|
|
72
|
+
"button",
|
|
73
|
+
{
|
|
74
|
+
onClick: o,
|
|
75
|
+
"aria-label": "Close",
|
|
76
|
+
className: n.closeButton,
|
|
77
|
+
children: /* @__PURE__ */ t(z, { size: 20 })
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
] }), w = ({
|
|
81
|
+
children: s,
|
|
82
|
+
className: o,
|
|
83
|
+
...l
|
|
84
|
+
}) => /* @__PURE__ */ t("div", { className: _(n.body, o), ...l, children: s }), D = ({
|
|
85
|
+
children: s,
|
|
86
|
+
className: o,
|
|
87
|
+
...l
|
|
88
|
+
}) => /* @__PURE__ */ t("div", { className: _(n.footer, o), ...l, children: s }), $ = ({
|
|
89
|
+
open: s,
|
|
90
|
+
onClose: o,
|
|
91
|
+
onConfirm: l,
|
|
92
|
+
title: r = "Are you sure?",
|
|
93
|
+
description: m = "This action cannot be undone.",
|
|
94
|
+
confirmLabel: f = "Confirm",
|
|
95
|
+
cancelLabel: a = "Cancel",
|
|
96
|
+
variant: c = "danger",
|
|
97
|
+
loading: i = !1
|
|
98
|
+
}) => /* @__PURE__ */ y(R, { open: s, onClose: o, children: [
|
|
99
|
+
/* @__PURE__ */ t(S, { onClose: o, children: r }),
|
|
100
|
+
/* @__PURE__ */ t(w, { children: m }),
|
|
101
|
+
/* @__PURE__ */ y(D, { children: [
|
|
102
|
+
/* @__PURE__ */ t(x, { variant: "ghost", onClick: o, disabled: i, children: a }),
|
|
103
|
+
/* @__PURE__ */ t(x, { variant: c, onClick: l, loading: i, children: f })
|
|
104
|
+
] })
|
|
105
|
+
] });
|
|
106
|
+
export {
|
|
107
|
+
$ as C,
|
|
108
|
+
R as M,
|
|
109
|
+
w as a,
|
|
110
|
+
D as b,
|
|
111
|
+
S as c
|
|
112
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as _ } from "./index-p1eeF8LQ.js";
|
|
3
|
+
const s = "_container_t6c9t_1", n = {
|
|
4
|
+
container: s,
|
|
5
|
+
"padding-none": "_padding-none_t6c9t_32",
|
|
6
|
+
"padding-sm": "_padding-sm_t6c9t_37",
|
|
7
|
+
"padding-md": "_padding-md_t6c9t_42",
|
|
8
|
+
"padding-lg": "_padding-lg_t6c9t_47"
|
|
9
|
+
}, e = ({
|
|
10
|
+
children: t,
|
|
11
|
+
as: d = "div",
|
|
12
|
+
padding: a = "md",
|
|
13
|
+
className: i,
|
|
14
|
+
...c
|
|
15
|
+
}) => /* @__PURE__ */ o(
|
|
16
|
+
d,
|
|
17
|
+
{
|
|
18
|
+
className: _(
|
|
19
|
+
n.container,
|
|
20
|
+
n[`padding-${a}`],
|
|
21
|
+
i
|
|
22
|
+
),
|
|
23
|
+
...c,
|
|
24
|
+
children: t
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
export {
|
|
28
|
+
e as C
|
|
29
|
+
};
|