@konstructio/ui 0.0.9 → 0.0.10
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/{Modal-Ca3bkvvt.js → Modal-L73dmnHv.js} +240 -235
- package/dist/components/AlertDialog/AlertDialog.js +37 -30
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +7 -2
- package/dist/components/Autocomplete/Autocomplete.js +42 -37
- package/dist/components/Autocomplete/components/List/List.js +60 -0
- package/dist/components/Autocomplete/components/{List.types.d.ts → List/List.types.d.ts} +3 -3
- package/dist/components/Autocomplete/components/{List.variants.js → List/List.variants.js} +1 -1
- package/dist/components/Autocomplete/components/index.d.ts +1 -0
- package/dist/components/Autocomplete/components/index.js +4 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +44 -39
- package/dist/components/Card/Card.js +30 -25
- package/dist/components/Checkbox/Checkbox.js +56 -51
- package/dist/components/Dropdown/components/ListItem/ListItem.js +18 -17
- package/dist/components/Dropdown/components/Wrapper.js +15 -15
- package/dist/components/Input/Input.js +4 -4
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +5 -4
- package/dist/components/Modal/components/Header/Header.js +4 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -3
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +78 -69
- package/dist/components/ProgressBar/ProgressBar.js +6 -6
- package/dist/components/Radio/Radio.js +21 -18
- package/dist/components/RadioGroup/RadioGroup.js +26 -22
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +4 -3
- package/dist/components/Range/Range.js +40 -40
- package/dist/components/Slider/Slider.js +25 -25
- package/dist/components/Switch/Switch.js +30 -30
- package/dist/components/Tag/Tag.js +5 -4
- package/dist/components/TagSelect/TagSelect.js +24 -24
- package/dist/components/TextArea/TextArea.js +17 -16
- package/dist/components/Toast/Toast.js +103 -97
- package/dist/components/Tooltip/Tooltip.js +12 -12
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/dist/components/Autocomplete/components/List.js +0 -57
- /package/dist/components/Autocomplete/components/{List.d.ts → List/List.d.ts} +0 -0
- /package/dist/components/Autocomplete/components/{List.types.js → List/List.types.js} +0 -0
- /package/dist/components/Autocomplete/components/{List.variants.d.ts → List/List.variants.d.ts} +0 -0
|
@@ -1,47 +1,54 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { R as
|
|
2
|
+
import { R as C, A as b, P as y, O as N, C as O, T as A, D, a as T, b as v } from "../../AlertDialogTrigger-D4Tm_9M0.js";
|
|
3
3
|
import "../../contexts/theme.context.js";
|
|
4
|
-
import { useTheme as
|
|
4
|
+
import { useTheme as j } from "../../contexts/theme.hook.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../../js.cookie-OLEfuq_g.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
import { cn as r } from "../../utils/index.js";
|
|
8
|
+
import { Button as l } from "../Button/Button.js";
|
|
9
|
+
import { useAlertDialog as k } from "./hooks/useAlertDialog.js";
|
|
10
|
+
const G = ({
|
|
11
|
+
buttonCancelClassName: o,
|
|
12
|
+
buttonCancelText: i = "Cancel",
|
|
13
|
+
buttonConfirmClassName: s,
|
|
14
|
+
buttonConfirmText: c = "OK",
|
|
15
|
+
buttonText: m,
|
|
16
|
+
description: d,
|
|
17
|
+
theme: a,
|
|
18
|
+
title: p,
|
|
19
|
+
onConfirm: h
|
|
15
20
|
}) => {
|
|
16
|
-
const { theme:
|
|
17
|
-
onConfirm:
|
|
21
|
+
const { theme: n } = j(), { isOpen: f, handleCancel: x, handleConfirm: g, handleOpen: u } = k({
|
|
22
|
+
onConfirm: h
|
|
18
23
|
});
|
|
19
|
-
return /* @__PURE__ */ t(
|
|
20
|
-
/* @__PURE__ */ e(
|
|
21
|
-
/* @__PURE__ */ t(
|
|
22
|
-
/* @__PURE__ */ e(
|
|
23
|
-
/* @__PURE__ */ t(
|
|
24
|
-
/* @__PURE__ */ e(
|
|
25
|
-
/* @__PURE__ */ e(
|
|
24
|
+
return /* @__PURE__ */ t(C, { open: f, children: [
|
|
25
|
+
/* @__PURE__ */ e(b, { text: m, theme: a, onOpen: u }),
|
|
26
|
+
/* @__PURE__ */ t(y, { children: [
|
|
27
|
+
/* @__PURE__ */ e(N, { className: "bg-black opacity-75 inset-0 fixed" }),
|
|
28
|
+
/* @__PURE__ */ t(O, { className: "bg-white rounded-md fixed top-1/2 left-1/2 -translate-y-2/4 -translate-x-2/4 flex flex-col gap-8 p-6", children: [
|
|
29
|
+
/* @__PURE__ */ e(A, { className: "font-bold text-center text-2xl", children: p }),
|
|
30
|
+
/* @__PURE__ */ e(D, { children: d }),
|
|
26
31
|
/* @__PURE__ */ t("div", { className: "flex flex-row gap-5 justify-end", children: [
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
-
|
|
32
|
+
/* @__PURE__ */ e(T, { asChild: !0, children: /* @__PURE__ */ e(
|
|
33
|
+
l,
|
|
29
34
|
{
|
|
30
35
|
type: "button",
|
|
31
|
-
theme:
|
|
36
|
+
theme: a ?? n,
|
|
32
37
|
variant: "secondary",
|
|
33
|
-
|
|
34
|
-
|
|
38
|
+
className: r(o),
|
|
39
|
+
onClick: x,
|
|
40
|
+
children: i
|
|
35
41
|
}
|
|
36
42
|
) }),
|
|
37
|
-
/* @__PURE__ */ e(
|
|
38
|
-
|
|
43
|
+
/* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(
|
|
44
|
+
l,
|
|
39
45
|
{
|
|
40
46
|
type: "button",
|
|
41
|
-
theme:
|
|
47
|
+
theme: a ?? n,
|
|
42
48
|
variant: "danger",
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
className: r(s),
|
|
50
|
+
onClick: g,
|
|
51
|
+
children: c
|
|
45
52
|
}
|
|
46
53
|
) })
|
|
47
54
|
] })
|
|
@@ -50,5 +57,5 @@ const B = ({
|
|
|
50
57
|
] });
|
|
51
58
|
};
|
|
52
59
|
export {
|
|
53
|
-
|
|
60
|
+
G as AlertDialog
|
|
54
61
|
};
|
|
@@ -2,10 +2,15 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { buttonAlertDialogVariants } from './AlertDialog.variants';
|
|
4
4
|
export interface AlertDialogProps extends PropsWithChildren, VariantProps<typeof buttonAlertDialogVariants> {
|
|
5
|
-
|
|
5
|
+
buttonCancelClassName?: string;
|
|
6
|
+
buttonCancelText?: string;
|
|
7
|
+
buttonConfirmClassName?: string;
|
|
8
|
+
buttonConfirmText?: string;
|
|
6
9
|
buttonText?: string;
|
|
7
|
-
|
|
10
|
+
className?: string;
|
|
8
11
|
description?: string;
|
|
12
|
+
o?: string;
|
|
13
|
+
title?: string;
|
|
9
14
|
onConfirm?: () => void;
|
|
10
15
|
}
|
|
11
16
|
export type UseAlertiDialogProps = {
|
|
@@ -1,44 +1,47 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as R, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as A, useRef as p, useId as O, useImperativeHandle as T } from "react";
|
|
3
3
|
import "../../contexts/theme.context.js";
|
|
4
|
-
import { useTheme as
|
|
4
|
+
import { useTheme as V } from "../../contexts/theme.hook.js";
|
|
5
5
|
import "../../js.cookie-OLEfuq_g.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
6
|
+
import { cn as c } from "../../utils/index.js";
|
|
7
|
+
import { useAutocomplete as g } from "./hooks/useAutocomplete.js";
|
|
8
|
+
import { List as j } from "./components/List/List.js";
|
|
9
|
+
import { labelVariants as y, autocompleteVariants as I } from "./Autocomplete.variants.js";
|
|
10
|
+
const k = A(
|
|
10
11
|
({
|
|
11
|
-
autoComplete:
|
|
12
|
+
autoComplete: u = "off",
|
|
12
13
|
className: a,
|
|
13
14
|
label: n,
|
|
14
|
-
labelClassName:
|
|
15
|
+
labelClassName: d,
|
|
15
16
|
name: l,
|
|
16
|
-
options:
|
|
17
|
+
options: f,
|
|
17
18
|
placeHolderEmptyValues: h = "No values...",
|
|
18
|
-
placeHolderEmptyValuesClassName:
|
|
19
|
-
placeholder:
|
|
20
|
-
theme:
|
|
19
|
+
placeHolderEmptyValuesClassName: x,
|
|
20
|
+
placeholder: w,
|
|
21
|
+
theme: N,
|
|
21
22
|
variant: r,
|
|
22
|
-
onChange:
|
|
23
|
-
},
|
|
24
|
-
const s = p(null), o = p(null), i =
|
|
25
|
-
|
|
26
|
-
const e =
|
|
27
|
-
options:
|
|
23
|
+
onChange: b
|
|
24
|
+
}, v) => {
|
|
25
|
+
const s = p(null), o = p(null), i = O(), { theme: C } = V(), m = N ?? C;
|
|
26
|
+
T(v, () => o.current, [o]);
|
|
27
|
+
const e = g({
|
|
28
|
+
options: f,
|
|
28
29
|
inputRef: o,
|
|
29
30
|
wrapperRef: s,
|
|
30
|
-
onChange:
|
|
31
|
+
onChange: b
|
|
31
32
|
});
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ R("div", { ref: s, className: "relative flex flex-col", children: [
|
|
33
34
|
n ? /* @__PURE__ */ t(
|
|
34
35
|
"label",
|
|
35
36
|
{
|
|
36
37
|
htmlFor: l ?? i,
|
|
37
|
-
className:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
className: c(
|
|
39
|
+
y({
|
|
40
|
+
theme: m,
|
|
41
|
+
variant: r,
|
|
42
|
+
className: d
|
|
43
|
+
})
|
|
44
|
+
),
|
|
42
45
|
children: n
|
|
43
46
|
}
|
|
44
47
|
) : null,
|
|
@@ -50,27 +53,29 @@ const I = R(
|
|
|
50
53
|
type: "text",
|
|
51
54
|
name: l,
|
|
52
55
|
role: "combobox",
|
|
53
|
-
autoComplete:
|
|
54
|
-
className:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
autoComplete: u,
|
|
57
|
+
className: c(
|
|
58
|
+
I({
|
|
59
|
+
theme: m,
|
|
60
|
+
variant: r,
|
|
61
|
+
className: a
|
|
62
|
+
})
|
|
63
|
+
),
|
|
59
64
|
onChange: e.handleChange,
|
|
60
65
|
value: e.value,
|
|
61
|
-
placeholder:
|
|
66
|
+
placeholder: w,
|
|
62
67
|
"aria-expanded": e.showOptions ? "true" : "false"
|
|
63
68
|
}
|
|
64
69
|
),
|
|
65
70
|
e.showOptions && /* @__PURE__ */ t("div", { className: "absolute z-10 top-full w-full rounded-md mt-1 border shadow-sm", children: /* @__PURE__ */ t(
|
|
66
|
-
|
|
71
|
+
j,
|
|
67
72
|
{
|
|
68
73
|
className: a,
|
|
69
74
|
inputRef: o,
|
|
70
75
|
wrapperRef: s,
|
|
71
76
|
options: e.newOptions,
|
|
72
77
|
placeholder: h,
|
|
73
|
-
placeholderClassName:
|
|
78
|
+
placeholderClassName: x,
|
|
74
79
|
variant: r,
|
|
75
80
|
theme: m,
|
|
76
81
|
onClick: e.handleSelectValue
|
|
@@ -79,7 +84,7 @@ const I = R(
|
|
|
79
84
|
] });
|
|
80
85
|
}
|
|
81
86
|
);
|
|
82
|
-
|
|
87
|
+
k.displayName = "Autocomplete";
|
|
83
88
|
export {
|
|
84
|
-
|
|
89
|
+
k as Autocomplete
|
|
85
90
|
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as u } from "react";
|
|
3
|
+
import { cn as l } from "../../../../utils/index.js";
|
|
4
|
+
import { useNavigationUlList as b } from "../../hooks/useNavigationList.js";
|
|
5
|
+
import { emptyListVariants as N, listVariants as d, listItemVariants as x, buttonVariants as V } from "./List.variants.js";
|
|
6
|
+
const R = ({
|
|
7
|
+
className: e,
|
|
8
|
+
inputRef: a,
|
|
9
|
+
options: o,
|
|
10
|
+
placeholder: m,
|
|
11
|
+
placeholderClassName: c,
|
|
12
|
+
variant: t,
|
|
13
|
+
theme: r,
|
|
14
|
+
wrapperRef: f,
|
|
15
|
+
onClick: p
|
|
16
|
+
}) => {
|
|
17
|
+
const n = u(null);
|
|
18
|
+
return b({ ulRef: n, inputRef: a, wrapperRef: f, options: o }), o.length === 0 ? /* @__PURE__ */ s(
|
|
19
|
+
"span",
|
|
20
|
+
{
|
|
21
|
+
className: l(
|
|
22
|
+
N({
|
|
23
|
+
theme: r,
|
|
24
|
+
variant: t,
|
|
25
|
+
className: c
|
|
26
|
+
})
|
|
27
|
+
),
|
|
28
|
+
children: m
|
|
29
|
+
}
|
|
30
|
+
) : /* @__PURE__ */ s(
|
|
31
|
+
"ul",
|
|
32
|
+
{
|
|
33
|
+
ref: n,
|
|
34
|
+
role: "listbox",
|
|
35
|
+
className: l(d({ variant: t, theme: r, className: e })),
|
|
36
|
+
children: o.map(({ value: i }) => /* @__PURE__ */ s(
|
|
37
|
+
"li",
|
|
38
|
+
{
|
|
39
|
+
role: "option",
|
|
40
|
+
tabIndex: 0,
|
|
41
|
+
className: l(x({ theme: r, variant: t })),
|
|
42
|
+
children: /* @__PURE__ */ s(
|
|
43
|
+
"button",
|
|
44
|
+
{
|
|
45
|
+
type: "button",
|
|
46
|
+
role: "button",
|
|
47
|
+
className: l(V({ theme: r, variant: t })),
|
|
48
|
+
onClick: () => p(i),
|
|
49
|
+
children: i
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
},
|
|
53
|
+
i
|
|
54
|
+
))
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
R as List
|
|
60
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentRef, ReactNode, RefObject } from 'react';
|
|
2
1
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { ComponentRef, ReactNode, RefObject } from 'react';
|
|
3
|
+
import { Option } from '../../Autocomplete.types';
|
|
4
|
+
import { autocompleteVariants } from '../../Autocomplete.variants';
|
|
5
5
|
export interface Props extends VariantProps<typeof autocompleteVariants> {
|
|
6
6
|
className?: string;
|
|
7
7
|
inputRef: RefObject<ComponentRef<'input'> | null>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './List/List';
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as a, jsxs as g, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import d, { forwardRef as y, Fragment as O } from "react";
|
|
3
3
|
import "../../contexts/theme.context.js";
|
|
4
|
-
import { useTheme as
|
|
4
|
+
import { useTheme as j } from "../../contexts/theme.hook.js";
|
|
5
5
|
import "../../js.cookie-OLEfuq_g.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import { cn as h } from "../../utils/index.js";
|
|
7
|
+
import { breadcrumbVariants as w, breadcrumbItemVariants as x, chevronVariants as P } from "./Breadcrumb.variants.js";
|
|
8
|
+
import { u as k, L as N } from "../../useBreadcrumb-DxYsZvj_.js";
|
|
9
|
+
import { P as c } from "../../index-D68N8v8R.js";
|
|
10
|
+
function f() {
|
|
11
|
+
return f = Object.assign || function(e) {
|
|
11
12
|
for (var n = 1; n < arguments.length; n++) {
|
|
12
13
|
var t = arguments[n];
|
|
13
14
|
for (var r in t)
|
|
14
15
|
Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
|
|
15
16
|
}
|
|
16
17
|
return e;
|
|
17
|
-
},
|
|
18
|
+
}, f.apply(this, arguments);
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function T(e, n) {
|
|
20
21
|
if (e == null) return {};
|
|
21
|
-
var t =
|
|
22
|
+
var t = L(e, n), r, o;
|
|
22
23
|
if (Object.getOwnPropertySymbols) {
|
|
23
24
|
var i = Object.getOwnPropertySymbols(e);
|
|
24
25
|
for (o = 0; o < i.length; o++)
|
|
@@ -26,16 +27,16 @@ function N(e, n) {
|
|
|
26
27
|
}
|
|
27
28
|
return t;
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
+
function L(e, n) {
|
|
30
31
|
if (e == null) return {};
|
|
31
32
|
var t = {}, r = Object.keys(e), o, i;
|
|
32
33
|
for (i = 0; i < r.length; i++)
|
|
33
34
|
o = r[i], !(n.indexOf(o) >= 0) && (t[o] = e[o]);
|
|
34
35
|
return t;
|
|
35
36
|
}
|
|
36
|
-
var
|
|
37
|
-
var t = e.color, r = t === void 0 ? "currentColor" : t, o = e.size, i = o === void 0 ? 24 : o, s =
|
|
38
|
-
return /* @__PURE__ */
|
|
37
|
+
var p = y(function(e, n) {
|
|
38
|
+
var t = e.color, r = t === void 0 ? "currentColor" : t, o = e.size, i = o === void 0 ? 24 : o, s = T(e, ["color", "size"]);
|
|
39
|
+
return /* @__PURE__ */ d.createElement("svg", f({
|
|
39
40
|
ref: n,
|
|
40
41
|
xmlns: "http://www.w3.org/2000/svg",
|
|
41
42
|
width: i,
|
|
@@ -46,60 +47,64 @@ var f = b(function(e, n) {
|
|
|
46
47
|
strokeWidth: "2",
|
|
47
48
|
strokeLinecap: "round",
|
|
48
49
|
strokeLinejoin: "round"
|
|
49
|
-
}, s), /* @__PURE__ */
|
|
50
|
+
}, s), /* @__PURE__ */ d.createElement("polyline", {
|
|
50
51
|
points: "9 18 15 12 9 6"
|
|
51
52
|
}));
|
|
52
53
|
});
|
|
53
|
-
|
|
54
|
-
color:
|
|
55
|
-
size:
|
|
54
|
+
p.propTypes = {
|
|
55
|
+
color: c.string,
|
|
56
|
+
size: c.oneOfType([c.string, c.number])
|
|
56
57
|
};
|
|
57
|
-
|
|
58
|
-
const
|
|
58
|
+
p.displayName = "ChevronRight";
|
|
59
|
+
const W = ({
|
|
59
60
|
className: e,
|
|
60
61
|
size: n,
|
|
61
62
|
steps: t,
|
|
62
63
|
theme: r
|
|
63
64
|
}) => {
|
|
64
|
-
const { theme: o } =
|
|
65
|
+
const { theme: o } = j(), { isInsideRouter: i } = k(), s = r ?? o;
|
|
65
66
|
return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", children: /* @__PURE__ */ a(
|
|
66
67
|
"ol",
|
|
67
68
|
{
|
|
68
|
-
className:
|
|
69
|
-
|
|
69
|
+
className: h(
|
|
70
|
+
w({ theme: s, className: e, size: n })
|
|
71
|
+
),
|
|
72
|
+
children: t.map(({ label: m, to: l, target: u }, v) => /* @__PURE__ */ g(O, { children: [
|
|
70
73
|
/* @__PURE__ */ a(
|
|
71
74
|
"li",
|
|
72
75
|
{
|
|
73
|
-
className:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
className: h(
|
|
77
|
+
x({ theme: s, size: n })
|
|
78
|
+
),
|
|
79
|
+
children: l ? /* @__PURE__ */ a(b, { children: i ? /* @__PURE__ */ a(
|
|
80
|
+
N,
|
|
76
81
|
{
|
|
77
|
-
to:
|
|
78
|
-
target:
|
|
82
|
+
to: l,
|
|
83
|
+
target: u,
|
|
79
84
|
className: "hover:underline hover:underline-offset-2",
|
|
80
|
-
children:
|
|
85
|
+
children: m
|
|
81
86
|
}
|
|
82
87
|
) : /* @__PURE__ */ a(
|
|
83
88
|
"a",
|
|
84
89
|
{
|
|
85
|
-
href:
|
|
86
|
-
target:
|
|
90
|
+
href: l,
|
|
91
|
+
target: u,
|
|
87
92
|
className: "hover:underline hover:underline-offset-2",
|
|
88
|
-
children:
|
|
93
|
+
children: m
|
|
89
94
|
}
|
|
90
|
-
) }) : /* @__PURE__ */ a("span", { "aria-current": "page", children:
|
|
95
|
+
) }) : /* @__PURE__ */ a("span", { "aria-current": "page", children: m })
|
|
91
96
|
}
|
|
92
97
|
),
|
|
93
|
-
|
|
94
|
-
|
|
98
|
+
v !== t.length - 1 && /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(
|
|
99
|
+
p,
|
|
95
100
|
{
|
|
96
|
-
className:
|
|
101
|
+
className: h(P({ size: n, theme: s }))
|
|
97
102
|
}
|
|
98
103
|
) })
|
|
99
|
-
] },
|
|
104
|
+
] }, m))
|
|
100
105
|
}
|
|
101
106
|
) });
|
|
102
107
|
};
|
|
103
108
|
export {
|
|
104
|
-
|
|
109
|
+
W as Breadcrumb
|
|
105
110
|
};
|
|
@@ -1,39 +1,44 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
3
|
import "../../contexts/theme.context.js";
|
|
4
|
-
import { useTheme as
|
|
4
|
+
import { useTheme as f } from "../../contexts/theme.hook.js";
|
|
5
5
|
import "../../js.cookie-OLEfuq_g.js";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import { cn as t } from "../../utils/index.js";
|
|
7
|
+
import { cardBaseVariants as n, cardVariants as h } from "./Card.variants.js";
|
|
8
|
+
const l = c(
|
|
9
|
+
({ className: s, theme: r, isActive: m, canHover: a, wrapperClassName: i, ...d }, p) => {
|
|
10
|
+
const { theme: e } = f();
|
|
11
|
+
return /* @__PURE__ */ o(
|
|
11
12
|
"div",
|
|
12
13
|
{
|
|
13
|
-
className:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
className: t(
|
|
15
|
+
n({
|
|
16
|
+
canHover: a,
|
|
17
|
+
className: i,
|
|
18
|
+
isActive: m,
|
|
19
|
+
theme: r ?? e
|
|
20
|
+
})
|
|
21
|
+
),
|
|
22
|
+
children: /* @__PURE__ */ o(
|
|
20
23
|
"div",
|
|
21
24
|
{
|
|
22
|
-
ref:
|
|
23
|
-
className:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
ref: p,
|
|
26
|
+
className: t(
|
|
27
|
+
h({
|
|
28
|
+
className: s,
|
|
29
|
+
theme: r ?? e,
|
|
30
|
+
isActive: m,
|
|
31
|
+
canHover: a
|
|
32
|
+
})
|
|
33
|
+
),
|
|
34
|
+
...d
|
|
30
35
|
}
|
|
31
36
|
)
|
|
32
37
|
}
|
|
33
38
|
);
|
|
34
39
|
}
|
|
35
40
|
);
|
|
36
|
-
|
|
41
|
+
l.displayName = "Card";
|
|
37
42
|
export {
|
|
38
|
-
|
|
43
|
+
l as Card
|
|
39
44
|
};
|