@konstructio/ui 0.1.0-alpha.2 → 0.1.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Combination-b348x__d.js → Combination-Cvr3uETz.js} +102 -102
- package/dist/DatePicker.css +1 -0
- package/dist/{Modal-i7eolhYH.js → Modal-DXYBiafI.js} +3 -3
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.js +55 -41
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +14 -14
- package/dist/components/Badge/Badge.variants.js +18 -17
- package/dist/components/Breadcrumb/Breadcrumb.js +43 -52
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +10 -41
- package/dist/components/Breadcrumb/components/Item/Item.js +22 -23
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +43 -56
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +30 -26
- package/dist/components/Button/Button.variants.js +115 -28
- package/dist/components/Checkbox/Checkbox.js +297 -187
- package/dist/components/Checkbox/Checkbox.variants.js +12 -15
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +2711 -0
- package/dist/components/Datepicker/DatePicker.variants.js +5 -0
- package/dist/components/Dropdown/components/List/List.js +49 -17
- package/dist/components/Dropdown/components/ListItem/ListItem.js +21 -17
- package/dist/components/Dropdown/components/Wrapper.js +64 -59
- package/dist/components/Dropdown/contexts/dropdown.hook.js +5 -3
- package/dist/components/Input/Input.js +106 -137
- package/dist/components/Input/Input.variants.js +15 -13
- package/dist/components/Loading/Loading.js +2 -2
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +1 -1
- package/dist/components/Radio/Radio.variants.js +14 -12
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +141 -126
- package/dist/components/Tabs/Tabs.js +24 -0
- package/dist/components/Tabs/Tabs.variants.js +58 -0
- package/dist/components/Tabs/components/Content.js +19 -0
- package/dist/components/Tabs/components/List.js +20 -0
- package/dist/components/Tabs/components/Trigger.js +26 -0
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TimePicker/TimePicker.js +8 -0
- package/dist/components/TimePicker/TimePicker.variants.js +62 -0
- package/dist/components/TimePicker/components/HoursList/HoursList.js +93 -0
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +68 -0
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +60 -0
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +102 -0
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +51 -0
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +16 -0
- package/dist/components/TimePicker/components/index.js +4 -0
- package/dist/components/TimePicker/contexts/index.js +8 -0
- package/dist/components/TimePicker/contexts/time-picker.context.js +22 -0
- package/dist/components/TimePicker/contexts/time-picker.hook.js +13 -0
- package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -0
- package/dist/components/TimePicker/utils/index.js +6 -0
- package/dist/components/Toast/Toast.js +37 -35
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.js +14 -16
- package/dist/components/index.js +72 -66
- package/dist/createLucideIcon-vyksFS6P.js +94 -0
- package/dist/index--EmNlyHx.js +31 -0
- package/dist/{index-DvFiic6N.js → index-1RDo-S_f.js} +96 -102
- package/dist/{index-Bk324h27.js → index-B5MIi2tR.js} +6 -5
- package/dist/{index-g-TFwd6Y.js → index-BCGvACM9.js} +2 -1
- package/dist/{index-Bry5AFQ2.js → index-Bc1LNrRD.js} +1 -1
- package/dist/index-BdMNhZnh.js +9 -0
- package/dist/{index-AM3avohj.js → index-BuxebbOg.js} +3 -3
- package/dist/index-BvCZBMfr.js +432 -0
- package/dist/index-Cq1I1cG9.js +129 -0
- package/dist/index-Cs8Lv8Wj.js +13 -0
- package/dist/index-CvfCCTEO.js +323 -0
- package/dist/{index-dRxIWVBr.js → index-Cz09twLl.js} +6 -5
- package/dist/{index-YaQrdkGE.js → index-DNRcvRTB.js} +31 -30
- package/dist/{index-G_6jG4Qc.js → index-Dm-ooN_M.js} +18 -18
- package/dist/index-DwYXX2sM.js +13 -0
- package/dist/{index-D9BbbgUq.js → index-rUBNhTeF.js} +2 -2
- package/dist/index.d.ts +75 -13
- package/dist/index.js +78 -72
- package/dist/package.json +37 -34
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +263 -0
- package/dist/ui/kubefirst-theme.css +1 -1
- package/dist/ui/theme.css +11 -0
- package/dist/useBreadcrumb-DMERrNkJ.js +1280 -0
- package/dist/utils/index.js +3 -3
- package/package.json +37 -34
- package/dist/createLucideIcon-CoF3ywd5.js +0 -89
- package/dist/index-BOx5P4tS.js +0 -423
- package/dist/index-CWKdynYu.js +0 -32
- package/dist/index-bYyfdsls.js +0 -118
- package/dist/useBreadcrumb-BsIeMoR1.js +0 -1279
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as v, useState as w, useCallback as x, useEffect as y } from "react";
|
|
3
|
-
import { cn as
|
|
3
|
+
import { cn as u } from "../../utils/index.js";
|
|
4
4
|
import { buttonDismissVariants as M, badgeVariants as Z } from "./Badge.variants.js";
|
|
5
|
-
import { c as N } from "../../createLucideIcon-
|
|
5
|
+
import { c as N } from "../../createLucideIcon-vyksFS6P.js";
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-react v0.
|
|
7
|
+
* @license lucide-react v0.511.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -13,12 +13,12 @@ const V = [
|
|
|
13
13
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
14
14
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
15
15
|
], I = N("x", V), L = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cpath%20d='M7.05002%201.45002C7.05002%201.17155%206.9394%200.904476%206.74249%200.707562C6.54557%200.510649%206.2785%200.400024%206.00002%200.400024C5.72155%200.400024%205.45448%200.510649%205.25756%200.707562C5.06065%200.904476%204.95002%201.17155%204.95002%201.45002C4.95002%201.7285%205.06065%201.99557%205.25756%202.19249C5.45448%202.3894%205.72155%202.50002%206.00002%202.50002C6.2785%202.50002%206.54557%202.3894%206.74249%202.19249C6.9394%201.99557%207.05002%201.7285%207.05002%201.45002ZM7.05002%2010.55C7.05002%2010.2715%206.9394%2010.0045%206.74249%209.80756C6.54557%209.61065%206.2785%209.50002%206.00002%209.50002C5.72155%209.50002%205.45448%209.61065%205.25756%209.80756C5.06065%2010.0045%204.95002%2010.2715%204.95002%2010.55C4.95002%2010.8285%205.06065%2011.0956%205.25756%2011.2925C5.45448%2011.4894%205.72155%2011.6%206.00002%2011.6C6.2785%2011.6%206.54557%2011.4894%206.74249%2011.2925C6.9394%2011.0956%207.05002%2010.8285%207.05002%2010.55ZM1.45002%207.05002C1.7285%207.05002%201.99557%206.9394%202.19249%206.74249C2.3894%206.54557%202.50002%206.2785%202.50002%206.00002C2.50002%205.72155%202.3894%205.45448%202.19249%205.25756C1.99557%205.06065%201.7285%204.95002%201.45002%204.95002C1.17155%204.95002%200.904476%205.06065%200.707562%205.25756C0.510649%205.45448%200.400024%205.72155%200.400024%206.00002C0.400024%206.2785%200.510649%206.54557%200.707562%206.74249C0.904476%206.9394%201.17155%207.05002%201.45002%207.05002ZM11.6%206.00002C11.6%205.72155%2011.4894%205.45448%2011.2925%205.25756C11.0956%205.06065%2010.8285%204.95002%2010.55%204.95002C10.2715%204.95002%2010.0045%205.06065%209.80756%205.25756C9.61065%205.45448%209.50002%205.72155%209.50002%206.00002C9.50002%206.2785%209.61065%206.54557%209.80756%206.74249C10.0045%206.9394%2010.2715%207.05002%2010.55%207.05002C10.8285%207.05002%2011.0956%206.9394%2011.2925%206.74249C11.4894%206.54557%2011.6%206.2785%2011.6%206.00002ZM3.52596%209.9594C3.62349%209.86187%203.70085%209.74609%203.75363%209.61867C3.80641%209.49124%203.83358%209.35467%203.83358%209.21674C3.83358%209.07882%203.80641%208.94225%203.75363%208.81482C3.70085%208.6874%203.62349%208.57161%203.52596%208.47409C3.42844%208.37656%203.31265%208.2992%203.18523%208.24642C3.0578%208.19364%202.92123%208.16647%202.78331%208.16647C2.50476%208.16647%202.23761%208.27712%202.04065%208.47409C1.84368%208.67105%201.73303%208.93819%201.73303%209.21674C1.73303%209.49529%201.84368%209.76243%202.04065%209.9594C2.23761%2010.1564%202.50476%2010.267%202.78331%2010.267C3.06186%2010.267%203.329%2010.1564%203.52596%209.9594ZM3.52596%203.52377C3.62833%203.42738%203.7103%203.31141%203.76701%203.18274C3.82371%203.05407%203.85399%202.91532%203.85605%202.77472C3.85812%202.63413%203.83192%202.49455%203.77902%202.36427C3.72611%202.23399%203.64758%202.11566%203.54808%202.01631C3.44858%201.91695%203.33014%201.8386%203.19978%201.78589C3.06942%201.73318%202.92981%201.70718%202.78921%201.70945C2.64862%201.71172%202.50992%201.74221%202.38133%201.7991C2.25274%201.85599%202.13689%201.93814%202.04065%202.04065C1.84368%202.23761%201.73303%202.50476%201.73303%202.78331C1.73303%203.06186%201.84368%203.329%202.04065%203.52596C2.23761%203.72293%202.50476%203.83358%202.78331%203.83358C3.06186%203.83358%203.329%203.72293%203.52596%203.52596V3.52377ZM8.47409%209.9594C8.57161%2010.0569%208.6874%2010.1343%208.81482%2010.1871C8.94225%2010.2399%209.07882%2010.267%209.21674%2010.267C9.35467%2010.267%209.49124%2010.2399%209.61867%2010.1871C9.74609%2010.1343%209.86187%2010.0569%209.9594%209.9594C10.0569%209.86187%2010.1343%209.74609%2010.1871%209.61867C10.2399%209.49124%2010.267%209.35467%2010.267%209.21674C10.267%209.07882%2010.2399%208.94225%2010.1871%208.81482C10.1343%208.6874%2010.0569%208.57161%209.9594%208.47409C9.86187%208.37656%209.74609%208.2992%209.61867%208.24642C9.49124%208.19364%209.35467%208.16647%209.21674%208.16647C9.07882%208.16647%208.94225%208.19364%208.81482%208.24642C8.6874%208.2992%208.57161%208.37656%208.47409%208.47409C8.37656%208.57161%208.2992%208.6874%208.24642%208.81482C8.19364%208.94225%208.16647%209.07882%208.16647%209.21674C8.16647%209.35467%208.19364%209.49124%208.24642%209.61867C8.2992%209.74609%208.37656%209.86187%208.47409%209.9594Z'%20fill='currentColor'%20/%3e%3c/svg%3e", _ = ({
|
|
16
|
-
className:
|
|
17
|
-
dismissible:
|
|
16
|
+
className: p,
|
|
17
|
+
dismissible: b = !1,
|
|
18
18
|
label: s,
|
|
19
19
|
loading: o = !1,
|
|
20
20
|
size: n,
|
|
21
|
-
variant:
|
|
21
|
+
variant: l,
|
|
22
22
|
onClick: e,
|
|
23
23
|
onDismiss: C
|
|
24
24
|
}) => {
|
|
@@ -34,17 +34,17 @@ const V = [
|
|
|
34
34
|
return (i = t.current) == null || i.addEventListener(
|
|
35
35
|
"animationend",
|
|
36
36
|
() => {
|
|
37
|
-
var
|
|
38
|
-
(
|
|
37
|
+
var c, d;
|
|
38
|
+
(c = t.current) == null || c.style.setProperty("display", "none"), (d = t.current) == null || d.remove();
|
|
39
39
|
},
|
|
40
40
|
{ signal: a.signal }
|
|
41
41
|
), () => a.abort();
|
|
42
|
-
}, []), /* @__PURE__ */
|
|
42
|
+
}, []), /* @__PURE__ */ m(
|
|
43
43
|
"span",
|
|
44
44
|
{
|
|
45
45
|
ref: t,
|
|
46
|
-
className:
|
|
47
|
-
Z({ variant:
|
|
46
|
+
className: u(
|
|
47
|
+
Z({ variant: l, size: n, className: p }),
|
|
48
48
|
e && "cursor-pointer"
|
|
49
49
|
),
|
|
50
50
|
role: e ? "button" : void 0,
|
|
@@ -57,11 +57,11 @@ const V = [
|
|
|
57
57
|
children: [
|
|
58
58
|
o && /* @__PURE__ */ r(L, { className: "h-3 w-3 animate-spin animate-duration-time-2" }),
|
|
59
59
|
s,
|
|
60
|
-
|
|
60
|
+
b && /* @__PURE__ */ m(
|
|
61
61
|
"button",
|
|
62
62
|
{
|
|
63
63
|
type: "button",
|
|
64
|
-
className:
|
|
64
|
+
className: u(M({ size: n, variant: l })),
|
|
65
65
|
onClick: g,
|
|
66
66
|
"aria-label": "Dismiss",
|
|
67
67
|
children: [
|
|
@@ -4,8 +4,8 @@ const a = e(
|
|
|
4
4
|
"flex",
|
|
5
5
|
"items-center",
|
|
6
6
|
"justify-center",
|
|
7
|
-
"gap-
|
|
8
|
-
"rounded
|
|
7
|
+
"gap-2",
|
|
8
|
+
"rounded",
|
|
9
9
|
"px-2",
|
|
10
10
|
"py-1",
|
|
11
11
|
"w-max",
|
|
@@ -24,19 +24,15 @@ const a = e(
|
|
|
24
24
|
warning: ["bg-yellow-100", "text-yellow-800"]
|
|
25
25
|
},
|
|
26
26
|
size: {
|
|
27
|
-
|
|
28
|
-
medium: "text-base",
|
|
29
|
-
large: "text-lg",
|
|
30
|
-
xlarge: "text-xl",
|
|
31
|
-
xxlarge: "text-2xl"
|
|
27
|
+
default: "text-sm leading-[16px]"
|
|
32
28
|
}
|
|
33
29
|
},
|
|
34
30
|
defaultVariants: {
|
|
35
31
|
variant: "default",
|
|
36
|
-
size: "
|
|
32
|
+
size: "default"
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
|
-
),
|
|
35
|
+
), n = e(
|
|
40
36
|
[
|
|
41
37
|
"rounded-full",
|
|
42
38
|
"inline-flex",
|
|
@@ -44,24 +40,29 @@ const a = e(
|
|
|
44
40
|
"justify-center",
|
|
45
41
|
"focus:outline-none",
|
|
46
42
|
"text-inherit",
|
|
47
|
-
"cursor-pointer"
|
|
43
|
+
"cursor-pointer",
|
|
44
|
+
"text-gray-700"
|
|
48
45
|
],
|
|
49
46
|
{
|
|
50
47
|
variants: {
|
|
48
|
+
variant: {
|
|
49
|
+
default: ["text-gray-700"],
|
|
50
|
+
danger: ["text-red-700"],
|
|
51
|
+
info: ["text-blue-700"],
|
|
52
|
+
success: ["text-green-700"],
|
|
53
|
+
warning: ["text-yellow-700"]
|
|
54
|
+
},
|
|
51
55
|
size: {
|
|
52
|
-
|
|
53
|
-
medium: ["h-3.5", "w-3.5"],
|
|
54
|
-
large: ["h-4", "w-4"],
|
|
55
|
-
xlarge: ["h-5", "w-5"],
|
|
56
|
-
xxlarge: ["h-6", "w-6"]
|
|
56
|
+
default: ["h-3.5", "w-3.5"]
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
defaultVariants: {
|
|
60
|
-
|
|
60
|
+
variant: "default",
|
|
61
|
+
size: "default"
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
);
|
|
64
65
|
export {
|
|
65
66
|
a as badgeVariants,
|
|
66
|
-
|
|
67
|
+
n as buttonDismissVariants
|
|
67
68
|
};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
4
|
-
import {
|
|
5
|
-
import { Item as
|
|
1
|
+
import { jsx as a, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import u, { forwardRef as b, useId as v, Fragment as y } from "react";
|
|
3
|
+
import { cn as h } from "../../utils/index.js";
|
|
4
|
+
import { breadcrumbVariants as O, breadcrumbWrapperVariants as j } from "./Breadcrumb.variants.js";
|
|
5
|
+
import { Item as w } from "./components/Item/Item.js";
|
|
6
6
|
import { P as l } from "../../index-C5psggHV.js";
|
|
7
7
|
function m() {
|
|
8
8
|
return m = Object.assign || function(r) {
|
|
9
|
-
for (var
|
|
10
|
-
var e = arguments[
|
|
9
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
10
|
+
var e = arguments[o];
|
|
11
11
|
for (var t in e)
|
|
12
12
|
Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]);
|
|
13
13
|
}
|
|
14
14
|
return r;
|
|
15
15
|
}, m.apply(this, arguments);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function x(r, o) {
|
|
18
18
|
if (r == null) return {};
|
|
19
|
-
var e =
|
|
19
|
+
var e = P(r, o), t, n;
|
|
20
20
|
if (Object.getOwnPropertySymbols) {
|
|
21
21
|
var i = Object.getOwnPropertySymbols(r);
|
|
22
|
-
for (
|
|
23
|
-
t = i[
|
|
22
|
+
for (n = 0; n < i.length; n++)
|
|
23
|
+
t = i[n], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(r, t) && (e[t] = r[t]);
|
|
24
24
|
}
|
|
25
25
|
return e;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function P(r, o) {
|
|
28
28
|
if (r == null) return {};
|
|
29
|
-
var e = {}, t = Object.keys(r),
|
|
29
|
+
var e = {}, t = Object.keys(r), n, i;
|
|
30
30
|
for (i = 0; i < t.length; i++)
|
|
31
|
-
|
|
31
|
+
n = t[i], !(o.indexOf(n) >= 0) && (e[n] = r[n]);
|
|
32
32
|
return e;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
35
|
-
var e = r.color, t = e === void 0 ? "currentColor" : e,
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
ref:
|
|
34
|
+
var c = b(function(r, o) {
|
|
35
|
+
var e = r.color, t = e === void 0 ? "currentColor" : e, n = r.size, i = n === void 0 ? 24 : n, s = x(r, ["color", "size"]);
|
|
36
|
+
return /* @__PURE__ */ u.createElement("svg", m({
|
|
37
|
+
ref: o,
|
|
38
38
|
xmlns: "http://www.w3.org/2000/svg",
|
|
39
39
|
width: i,
|
|
40
40
|
height: i,
|
|
@@ -44,57 +44,48 @@ var p = b(function(r, n) {
|
|
|
44
44
|
strokeWidth: "2",
|
|
45
45
|
strokeLinecap: "round",
|
|
46
46
|
strokeLinejoin: "round"
|
|
47
|
-
}, s), /* @__PURE__ */
|
|
47
|
+
}, s), /* @__PURE__ */ u.createElement("polyline", {
|
|
48
48
|
points: "9 18 15 12 9 6"
|
|
49
49
|
}));
|
|
50
50
|
});
|
|
51
|
-
|
|
51
|
+
c.propTypes = {
|
|
52
52
|
color: l.string,
|
|
53
53
|
size: l.oneOfType([l.string, l.number])
|
|
54
54
|
};
|
|
55
|
-
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
c.displayName = "ChevronRight";
|
|
56
|
+
const W = ({
|
|
57
|
+
"aria-label": r = "breadcrumb",
|
|
58
|
+
className: o,
|
|
59
59
|
steps: e,
|
|
60
60
|
theme: t,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
...s
|
|
61
|
+
wrapperClassName: n,
|
|
62
|
+
...i
|
|
64
63
|
}) => {
|
|
65
|
-
const
|
|
64
|
+
const s = v();
|
|
66
65
|
return /* @__PURE__ */ a(
|
|
67
66
|
"nav",
|
|
68
67
|
{
|
|
69
|
-
"aria-label":
|
|
68
|
+
"aria-label": r,
|
|
70
69
|
"data-theme": t,
|
|
71
|
-
className:
|
|
72
|
-
|
|
73
|
-
className:
|
|
70
|
+
className: h(
|
|
71
|
+
j({
|
|
72
|
+
className: n
|
|
74
73
|
})
|
|
75
74
|
),
|
|
76
|
-
children: /* @__PURE__ */ a(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
isLast: u === e.length - 1,
|
|
88
|
-
size: n
|
|
89
|
-
}
|
|
90
|
-
),
|
|
91
|
-
u !== e.length - 1 && /* @__PURE__ */ a("li", { "aria-hidden": "true", children: /* @__PURE__ */ a(p, { className: c(j({ size: n })) }) })
|
|
92
|
-
] }, `${d}-${f}`))
|
|
93
|
-
}
|
|
94
|
-
)
|
|
75
|
+
children: /* @__PURE__ */ a("ol", { className: h(O({ className: o })), ...i, children: e.map(({ label: p, ...d }, f) => /* @__PURE__ */ g(y, { children: [
|
|
76
|
+
/* @__PURE__ */ a(
|
|
77
|
+
w,
|
|
78
|
+
{
|
|
79
|
+
...d,
|
|
80
|
+
label: p,
|
|
81
|
+
isLast: f === e.length - 1
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
f !== e.length - 1 && /* @__PURE__ */ a("li", { "aria-hidden": "true", children: /* @__PURE__ */ a(c, { className: "text-gray-400 w-5 h-5 mt-0.5" }) })
|
|
85
|
+
] }, `${s}-${p}`)) })
|
|
95
86
|
}
|
|
96
87
|
);
|
|
97
88
|
};
|
|
98
89
|
export {
|
|
99
|
-
|
|
90
|
+
W as Breadcrumb
|
|
100
91
|
};
|
|
@@ -1,43 +1,12 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
lg: "",
|
|
10
|
-
xl: ""
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
), t = a(["flex", "gap-1", "items-center"], {
|
|
15
|
-
variants: {
|
|
16
|
-
size: {
|
|
17
|
-
sm: "",
|
|
18
|
-
base: "",
|
|
19
|
-
lg: "",
|
|
20
|
-
xl: ""
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
size: "base"
|
|
25
|
-
}
|
|
26
|
-
}), r = a("text-[#abadc6]", {
|
|
27
|
-
variants: {
|
|
28
|
-
size: {
|
|
29
|
-
sm: ["w-3", "h-3"],
|
|
30
|
-
base: ["w-4", "h-4"],
|
|
31
|
-
lg: ["w-5", "h-5"],
|
|
32
|
-
xl: ["w-6", "h-6"]
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
defaultVariants: {
|
|
36
|
-
size: "base"
|
|
37
|
-
}
|
|
38
|
-
});
|
|
1
|
+
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const r = e([
|
|
3
|
+
"text-slate-500",
|
|
4
|
+
"text-md",
|
|
5
|
+
"flex",
|
|
6
|
+
"gap-2",
|
|
7
|
+
"items-center"
|
|
8
|
+
]), a = e(["flex", "gap-1", "items-center"]);
|
|
39
9
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
r as chevronVariants
|
|
10
|
+
a as breadcrumbVariants,
|
|
11
|
+
r as breadcrumbWrapperVariants
|
|
43
12
|
};
|
|
@@ -1,49 +1,48 @@
|
|
|
1
|
-
import { jsx as a, Fragment as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { u as
|
|
4
|
-
import { breadcrumbLinkVariants as
|
|
5
|
-
const
|
|
1
|
+
import { jsx as a, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
import { cn as i } from "../../../../utils/index.js";
|
|
3
|
+
import { u as f, L as h } from "../../../../useBreadcrumb-DMERrNkJ.js";
|
|
4
|
+
import { breadcrumbLinkVariants as d, breadcrumbLabelVariants as p } from "./Item.variants.js";
|
|
5
|
+
const x = ({
|
|
6
6
|
isActive: r,
|
|
7
|
-
isLast:
|
|
8
|
-
label:
|
|
9
|
-
size: l,
|
|
7
|
+
isLast: c,
|
|
8
|
+
label: n,
|
|
10
9
|
target: m,
|
|
11
|
-
theme:
|
|
10
|
+
theme: l,
|
|
12
11
|
to: e
|
|
13
12
|
}) => {
|
|
14
|
-
const { isInsideRouter:
|
|
15
|
-
e === "#" &&
|
|
13
|
+
const { isInsideRouter: t } = f(), s = (o) => {
|
|
14
|
+
e === "#" && o.preventDefault();
|
|
16
15
|
};
|
|
17
16
|
return /* @__PURE__ */ a(
|
|
18
17
|
"li",
|
|
19
18
|
{
|
|
20
|
-
"aria-current":
|
|
21
|
-
className:
|
|
22
|
-
"data-theme":
|
|
23
|
-
children: e ? /* @__PURE__ */ a(
|
|
19
|
+
"aria-current": c ? "page" : void 0,
|
|
20
|
+
className: "group font-medium text-inherit",
|
|
21
|
+
"data-theme": l,
|
|
22
|
+
children: e ? /* @__PURE__ */ a(u, { children: t ? /* @__PURE__ */ a(
|
|
24
23
|
h,
|
|
25
24
|
{
|
|
26
25
|
to: e,
|
|
27
26
|
target: m,
|
|
28
|
-
className:
|
|
27
|
+
className: i(d({ isActive: r })),
|
|
29
28
|
"aria-disabled": r ? "true" : "false",
|
|
30
|
-
onClick:
|
|
31
|
-
children:
|
|
29
|
+
onClick: s,
|
|
30
|
+
children: n
|
|
32
31
|
}
|
|
33
32
|
) : /* @__PURE__ */ a(
|
|
34
33
|
"a",
|
|
35
34
|
{
|
|
36
35
|
href: e,
|
|
37
36
|
target: m,
|
|
38
|
-
className:
|
|
37
|
+
className: i(d({ isActive: r })),
|
|
39
38
|
"aria-disabled": r ? "true" : "false",
|
|
40
|
-
onClick:
|
|
41
|
-
children:
|
|
39
|
+
onClick: s,
|
|
40
|
+
children: n
|
|
42
41
|
}
|
|
43
|
-
) }) : /* @__PURE__ */ a("span", { className:
|
|
42
|
+
) }) : /* @__PURE__ */ a("span", { className: i(p({ isActive: r })), children: n })
|
|
44
43
|
}
|
|
45
44
|
);
|
|
46
45
|
};
|
|
47
46
|
export {
|
|
48
|
-
|
|
47
|
+
x as Item
|
|
49
48
|
};
|
|
@@ -1,64 +1,52 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
3
|
-
["
|
|
1
|
+
import { c as e } from "../../../../index-BNmRGtA6.js";
|
|
2
|
+
const r = e(
|
|
3
|
+
["text-sm", "leading-5", "text-gray-400"],
|
|
4
4
|
{
|
|
5
5
|
variants: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
lg: "text-base",
|
|
10
|
-
xl: "text-lg"
|
|
6
|
+
isActive: {
|
|
7
|
+
true: "",
|
|
8
|
+
false: "cursor-auto"
|
|
11
9
|
}
|
|
12
10
|
},
|
|
13
11
|
defaultVariants: {
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
), o = t(["text-inherit"], {
|
|
18
|
-
variants: {
|
|
19
|
-
isActive: {
|
|
20
|
-
true: "",
|
|
21
|
-
false: ["text-slate-400", "cursor-auto"]
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
defaultVariants: {
|
|
25
|
-
isActive: !0
|
|
26
|
-
},
|
|
27
|
-
compoundVariants: [
|
|
28
|
-
{
|
|
29
|
-
isActive: !0,
|
|
30
|
-
class: [
|
|
31
|
-
"group-focus-within:no-underline",
|
|
32
|
-
"group-focus-within:outline",
|
|
33
|
-
"group-focus-within:outline-2",
|
|
34
|
-
"group-focus-within:outline-offset-4",
|
|
35
|
-
"group-focus-within:outline-slate-500",
|
|
36
|
-
"group-focus-within:rounded-sm",
|
|
37
|
-
"group-hover:rounded-sm",
|
|
38
|
-
"hover:no-underline",
|
|
39
|
-
"hover:text-slate-500"
|
|
40
|
-
]
|
|
12
|
+
isActive: !0
|
|
41
13
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
14
|
+
compoundVariants: [
|
|
15
|
+
{
|
|
16
|
+
isActive: !0,
|
|
17
|
+
class: [
|
|
18
|
+
"group-[&:has(:focus-visible)]:no-underline",
|
|
19
|
+
"group-[&:has(:focus-visible)]:outline-2",
|
|
20
|
+
"group-[&:has(:focus-visible)]:outline-offset-6",
|
|
21
|
+
"group-[&:has(:focus-visible)]:outline-gray-500",
|
|
22
|
+
"group-[&:has(:focus-visible)]:text-gray-500",
|
|
23
|
+
"group-[&:has(:focus-visible)]:rounded-xs",
|
|
24
|
+
"group-hover:rounded-xs",
|
|
25
|
+
"hover:no-underline",
|
|
26
|
+
"hover:text-gray-500"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
isActive: void 0,
|
|
31
|
+
class: [
|
|
32
|
+
"group-[&:has(:focus-visible)]:no-underline",
|
|
33
|
+
"group-[&:has(:focus-visible)]:outline-2",
|
|
34
|
+
"group-[&:has(:focus-visible)]:outline-offset-6",
|
|
35
|
+
"group-[&:has(:focus-visible)]:outline-gray-500",
|
|
36
|
+
"group-[&:has(:focus-visible)]:text-gray-500",
|
|
37
|
+
"group-[&:has(:focus-visible)]:rounded-xs",
|
|
38
|
+
"group-hover:rounded-xs",
|
|
39
|
+
"hover:no-underline",
|
|
40
|
+
"hover:text-gray-500"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
), o = e(["text-sm", "leading-5"], {
|
|
58
46
|
variants: {
|
|
59
47
|
isActive: {
|
|
60
|
-
true: "",
|
|
61
|
-
false: ["text-
|
|
48
|
+
true: "text-gray-500",
|
|
49
|
+
false: ["text-gray-400", "cursor-default"]
|
|
62
50
|
}
|
|
63
51
|
},
|
|
64
52
|
defaultVariants: {
|
|
@@ -66,7 +54,6 @@ const i = t(
|
|
|
66
54
|
}
|
|
67
55
|
});
|
|
68
56
|
export {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
o as breadcrumbLinkVariants
|
|
57
|
+
o as breadcrumbLabelVariants,
|
|
58
|
+
r as breadcrumbLinkVariants
|
|
72
59
|
};
|
|
@@ -1,38 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { S as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { buttonVariants as
|
|
6
|
-
const
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
|
+
import { S as l } from "../../index-B5MIi2tR.js";
|
|
4
|
+
import { cn as x } from "../../utils/index.js";
|
|
5
|
+
import { buttonVariants as B } from "./Button.variants.js";
|
|
6
|
+
const C = c(
|
|
7
7
|
({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
size: a,
|
|
12
|
-
version: f,
|
|
8
|
+
appearance: t,
|
|
9
|
+
asChild: r = !1,
|
|
10
|
+
className: m,
|
|
13
11
|
disabled: o = !1,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
shape: a,
|
|
13
|
+
size: f,
|
|
14
|
+
theme: n,
|
|
15
|
+
variant: p,
|
|
16
|
+
version: s,
|
|
17
|
+
...e
|
|
18
|
+
}, i) => /* @__PURE__ */ u(
|
|
19
|
+
r ? l : "button",
|
|
18
20
|
{
|
|
19
|
-
ref:
|
|
20
|
-
"data-theme":
|
|
21
|
-
className:
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
ref: i,
|
|
22
|
+
"data-theme": n,
|
|
23
|
+
className: x(
|
|
24
|
+
B({
|
|
25
|
+
appearance: t,
|
|
26
|
+
className: m,
|
|
24
27
|
disabled: o,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
shape: a,
|
|
29
|
+
size: f,
|
|
30
|
+
variant: p,
|
|
31
|
+
version: s
|
|
28
32
|
})
|
|
29
33
|
),
|
|
30
34
|
disabled: o,
|
|
31
|
-
...
|
|
35
|
+
...e
|
|
32
36
|
}
|
|
33
37
|
)
|
|
34
38
|
);
|
|
35
|
-
|
|
39
|
+
C.displayName = "Button";
|
|
36
40
|
export {
|
|
37
|
-
|
|
41
|
+
C as Button
|
|
38
42
|
};
|