@konstructio/ui 0.1.0-alpha.8 → 0.1.1-alpha.1
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/DatePicker.css +1 -1
- package/dist/{Modal-CrG0m703.js → Modal-0oht63vU.js} +32 -32
- package/dist/assets/icons/components/Search.js +26 -0
- package/dist/assets/icons/components/Warning.js +22 -0
- package/dist/assets/icons/components/index.js +6 -0
- package/dist/{chevron-down-UW8ts6wI.js → chevron-down-CVce9Mvh.js} +2 -2
- package/dist/components/Alert/Alert.js +23 -25
- package/dist/components/Alert/Alert.variants.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +7 -7
- package/dist/components/Autocomplete/Autocomplete.variants.js +3 -4
- package/dist/components/Autocomplete/components/List/List.variants.js +3 -7
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +38 -43
- package/dist/components/Autocomplete/hooks/useNavigationList.js +29 -37
- package/dist/components/Badge/Badge.js +40 -42
- package/dist/components/Badge/Badge.variants.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +22 -21
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +1 -1
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +15 -15
- package/dist/components/Button/Button.variants.js +10 -77
- package/dist/components/Card/Card.variants.js +3 -5
- package/dist/components/Checkbox/Checkbox.js +48 -47
- package/dist/components/Checkbox/Checkbox.variants.js +3 -4
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/Command.variants.js +1 -1
- 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 +13 -13
- 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 +1496 -1577
- package/dist/components/Datepicker/DatePicker.variants.js +1 -1
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +28 -6
- package/dist/components/Dropdown/Dropdown.variants.js +43 -26
- package/dist/components/Dropdown/components/List/List.variants.js +1 -1
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +5 -5
- package/dist/components/Dropdown/components/Wrapper.js +96 -86
- package/dist/components/Dropdown/contexts/dropdown.provider.js +12 -12
- package/dist/components/Dropdown/hooks/useDropdown.js +26 -30
- package/dist/components/Dropdown/hooks/useNavigationList.js +25 -31
- package/dist/components/DropdownButton/DropdownButton.js +135 -0
- package/dist/components/Filter/Filter.variants.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +47 -49
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +70 -57
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +41 -42
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +68 -55
- package/dist/components/Filter/components/ResetButton/ResetButton.js +22 -16
- package/dist/components/Input/Input.js +116 -109
- package/dist/components/Input/Input.variants.js +18 -5
- package/dist/components/Loading/Loading.js +2 -2
- package/dist/components/Loading/Loading.variants.js +1 -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 +2 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +7 -9
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/hooks/useModal.js +16 -17
- package/dist/components/NumberInput/NumberInput.js +91 -91
- package/dist/components/NumberInput/NumberInput.variants.js +1 -1
- package/dist/components/PieChart/PieChart.js +5138 -0
- package/dist/components/ProgressBar/ProgressBar.js +58 -26
- package/dist/components/ProgressBar/ProgressBar.variants.js +1 -1
- package/dist/components/Radio/Radio.js +64 -48
- package/dist/components/Radio/Radio.variants.js +3 -3
- package/dist/components/RadioCard/RadioCard.js +26 -23
- package/dist/components/RadioCard/RadioCard.variants.js +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.js +28 -28
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +37 -37
- package/dist/components/RadioGroup/RadioGroup.variants.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Range/Range.variants.js +2 -3
- package/dist/components/Sidebar/Sidebar.js +4 -3
- package/dist/components/Sidebar/Sidebar.variants.js +1 -1
- package/dist/components/Sidebar/components/Footer/Footer.js +5 -4
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +6 -5
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +1 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.js +5 -4
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +14 -13
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +13 -12
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +5 -6
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -8
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +15 -14
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider.variants.js +2 -8
- package/dist/components/Switch/Switch.js +54 -54
- package/dist/components/Switch/Switch.variants.js +2 -3
- package/dist/components/Table/Table.variants.js +1 -1
- package/dist/components/Tabs/Tabs.js +20 -16
- package/dist/components/Tabs/Tabs.variants.js +3 -5
- package/dist/components/Tabs/components/Content.js +10 -13
- package/dist/components/Tabs/components/List.js +9 -8
- package/dist/components/Tabs/components/Trigger.js +12 -16
- package/dist/components/Tabs/components/index.js +8 -0
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.variants.js +1 -1
- package/dist/components/TagSelect/TagSelect.variants.js +1 -1
- package/dist/components/TagSelect/components/Item/Item.variants.js +1 -1
- package/dist/components/TagSelect/components/List/List.variants.js +1 -1
- package/dist/components/TagSelect/hooks/useTagSelect.js +14 -16
- package/dist/components/TextArea/TextArea.variants.js +4 -5
- package/dist/components/TimePicker/TimePicker.variants.js +6 -7
- package/dist/components/TimePicker/components/HoursList/HoursList.js +21 -26
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +19 -20
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +24 -25
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +33 -34
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +1 -1
- package/dist/components/Toast/Toast.js +223 -232
- package/dist/components/Toast/Toast.variants.js +8 -11
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.variants.js +7 -14
- package/dist/components/Tooltip/hooks/useTooltip.js +8 -9
- package/dist/components/Typography/Typography.js +26 -31
- package/dist/components/Typography/Typography.variants.js +1 -1
- package/dist/components/index.js +78 -66
- package/dist/contexts/theme.provider.js +28 -29
- package/dist/{createLucideIcon-ByJ0JZvK.js → createLucideIcon-BpsAkT97.js} +4 -4
- package/dist/index-0ioNhtNM.js +10 -0
- package/dist/{index-CvfCCTEO.js → index-BAraV3ai.js} +7 -7
- package/dist/index-BXuxPoz7.js +435 -0
- package/dist/index-BfXxHr_2.js +125 -0
- package/dist/index-C1g_chDT.js +70 -0
- package/dist/{index-BCGvACM9.js → index-C9T9HQaa.js} +1 -1
- package/dist/{index-Bc1LNrRD.js → index-CZnD2QxM.js} +1 -1
- package/dist/index-CrBonFvu.js +144 -0
- package/dist/{index-rUBNhTeF.js → index-Cvx4lqTq.js} +2 -2
- package/dist/{index-BNmRGtA6.js → index-D29mdTf5.js} +3 -3
- package/dist/{index-Dkt8F6CZ.js → index-D3xzCzcO.js} +12 -12
- package/dist/index-DB2XhXHn.js +431 -0
- package/dist/{index-B5MIi2tR.js → index-DQH6odE9.js} +2 -3
- package/dist/index-Oq5GlCHP.js +131 -0
- package/dist/{index-Cs8Lv8Wj.js → index-bwWKd82e.js} +1 -1
- package/dist/{index--EmNlyHx.js → index-iXyXtdgP.js} +1 -1
- package/dist/index.d.ts +159 -9
- package/dist/index.js +88 -76
- package/dist/package.json +41 -37
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +261 -241
- package/dist/ui/kubefirst-theme.css +4 -4
- package/dist/ui/theme.css +0 -2
- package/dist/{useBreadcrumb-DMERrNkJ.js → useBreadcrumb-B8DnuqkR.js} +254 -261
- package/dist/utils/index.js +25 -26
- package/package.json +41 -37
- package/dist/index-BNU3RH-3.js +0 -133
- package/dist/index-BvCZBMfr.js +0 -432
- package/dist/index-Cq1I1cG9.js +0 -129
- package/dist/index-DLYwlPRZ.js +0 -440
- package/dist/index-DNRcvRTB.js +0 -145
- package/dist/index-Dm-ooN_M.js +0 -71
- package/dist/index-DwYXX2sM.js +0 -13
|
@@ -1,72 +1,70 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { buttonDismissVariants as
|
|
5
|
-
import { c as
|
|
1
|
+
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as f, useState as h, useCallback as g, useEffect as v } from "react";
|
|
3
|
+
import { cn as c } from "../../utils/index.js";
|
|
4
|
+
import { buttonDismissVariants as w, badgeVariants as x } from "./Badge.variants.js";
|
|
5
|
+
import { c as y } from "../../createLucideIcon-BpsAkT97.js";
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-react v0.
|
|
7
|
+
* @license lucide-react v0.542.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.
|
|
11
11
|
*/
|
|
12
|
-
const
|
|
12
|
+
const M = [
|
|
13
13
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
14
14
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
15
|
-
],
|
|
16
|
-
className:
|
|
17
|
-
dismissible:
|
|
18
|
-
label:
|
|
19
|
-
loading:
|
|
20
|
-
size:
|
|
21
|
-
variant:
|
|
15
|
+
], Z = y("x", M), N = "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", B = ({
|
|
16
|
+
className: d,
|
|
17
|
+
dismissible: m = !1,
|
|
18
|
+
label: a,
|
|
19
|
+
loading: r = !1,
|
|
20
|
+
size: o,
|
|
21
|
+
variant: i,
|
|
22
22
|
onClick: e,
|
|
23
|
-
onDismiss:
|
|
23
|
+
onDismiss: n
|
|
24
24
|
}) => {
|
|
25
|
-
const
|
|
26
|
-
(
|
|
27
|
-
|
|
25
|
+
const C = f(null), [u, p] = h("visible"), b = g(
|
|
26
|
+
(t) => {
|
|
27
|
+
t.stopPropagation(), n?.(), p("hidden");
|
|
28
28
|
},
|
|
29
|
-
[
|
|
29
|
+
[n]
|
|
30
30
|
);
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return (i = t.current) == null || i.addEventListener(
|
|
31
|
+
return v(() => {
|
|
32
|
+
const t = new AbortController();
|
|
33
|
+
return C.current?.addEventListener(
|
|
35
34
|
"animationend",
|
|
36
35
|
() => {
|
|
37
|
-
|
|
38
|
-
(c = t.current) == null || c.style.setProperty("display", "none"), (d = t.current) == null || d.remove();
|
|
36
|
+
C.current?.style.setProperty("display", "none"), C.current?.remove();
|
|
39
37
|
},
|
|
40
|
-
{ signal:
|
|
41
|
-
), () =>
|
|
42
|
-
}, []), /* @__PURE__ */
|
|
38
|
+
{ signal: t.signal }
|
|
39
|
+
), () => t.abort();
|
|
40
|
+
}, []), /* @__PURE__ */ l(
|
|
43
41
|
"span",
|
|
44
42
|
{
|
|
45
|
-
ref:
|
|
46
|
-
className:
|
|
47
|
-
|
|
43
|
+
ref: C,
|
|
44
|
+
className: c(
|
|
45
|
+
x({ variant: i, size: o, className: d }),
|
|
48
46
|
e && "cursor-pointer"
|
|
49
47
|
),
|
|
50
48
|
role: e ? "button" : void 0,
|
|
51
49
|
onClick: e,
|
|
52
50
|
tabIndex: e ? 0 : void 0,
|
|
53
|
-
"aria-label": e ? `${
|
|
54
|
-
"aria-busy":
|
|
51
|
+
"aria-label": e ? `${a} badge` : void 0,
|
|
52
|
+
"aria-busy": r,
|
|
55
53
|
"aria-live": "polite",
|
|
56
|
-
"data-state":
|
|
54
|
+
"data-state": u,
|
|
57
55
|
children: [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
r && /* @__PURE__ */ s(N, { className: "h-3 w-3 animate-spin animate-duration-time-2" }),
|
|
57
|
+
a,
|
|
58
|
+
m && /* @__PURE__ */ l(
|
|
61
59
|
"button",
|
|
62
60
|
{
|
|
63
61
|
type: "button",
|
|
64
|
-
className:
|
|
65
|
-
onClick:
|
|
62
|
+
className: c(w({ size: o, variant: i })),
|
|
63
|
+
onClick: b,
|
|
66
64
|
"aria-label": "Dismiss",
|
|
67
65
|
children: [
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ s(Z, { className: "h-full w-full" }),
|
|
67
|
+
/* @__PURE__ */ s("span", { className: "sr-only", children: "Dismiss" })
|
|
70
68
|
]
|
|
71
69
|
}
|
|
72
70
|
)
|
|
@@ -75,5 +73,5 @@ const V = [
|
|
|
75
73
|
);
|
|
76
74
|
};
|
|
77
75
|
export {
|
|
78
|
-
|
|
76
|
+
B as Badge
|
|
79
77
|
};
|
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
import { jsx as a, Fragment as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { u as f, L as h } from "../../../../useBreadcrumb-
|
|
4
|
-
import { breadcrumbLinkVariants as
|
|
5
|
-
const
|
|
1
|
+
import { jsx as a, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { cn as m } from "../../../../utils/index.js";
|
|
3
|
+
import { u as f, L as h } from "../../../../useBreadcrumb-B8DnuqkR.js";
|
|
4
|
+
import { breadcrumbLinkVariants as o, breadcrumbLabelVariants as b } from "./Item.variants.js";
|
|
5
|
+
const g = ({
|
|
6
6
|
isActive: r,
|
|
7
|
-
isLast:
|
|
7
|
+
isLast: t,
|
|
8
8
|
label: n,
|
|
9
|
-
target:
|
|
10
|
-
theme:
|
|
11
|
-
to: e
|
|
9
|
+
target: i,
|
|
10
|
+
theme: c,
|
|
11
|
+
to: e,
|
|
12
|
+
component: d = "a"
|
|
12
13
|
}) => {
|
|
13
|
-
const { isInsideRouter:
|
|
14
|
-
e === "#" &&
|
|
14
|
+
const { isInsideRouter: l } = f(), s = (u) => {
|
|
15
|
+
e === "#" && u.preventDefault();
|
|
15
16
|
};
|
|
16
17
|
return /* @__PURE__ */ a(
|
|
17
18
|
"li",
|
|
18
19
|
{
|
|
19
|
-
"aria-current":
|
|
20
|
+
"aria-current": t ? "page" : void 0,
|
|
20
21
|
className: "group font-medium text-inherit",
|
|
21
|
-
"data-theme":
|
|
22
|
-
children: e ? /* @__PURE__ */ a(
|
|
22
|
+
"data-theme": c,
|
|
23
|
+
children: e ? /* @__PURE__ */ a(p, { children: l ? /* @__PURE__ */ a(
|
|
23
24
|
h,
|
|
24
25
|
{
|
|
25
26
|
to: e,
|
|
26
|
-
target:
|
|
27
|
-
className:
|
|
27
|
+
target: i,
|
|
28
|
+
className: m(o({ isActive: r })),
|
|
28
29
|
"aria-disabled": r ? "true" : "false",
|
|
29
30
|
onClick: s,
|
|
30
31
|
children: n
|
|
31
32
|
}
|
|
32
33
|
) : /* @__PURE__ */ a(
|
|
33
|
-
|
|
34
|
+
d,
|
|
34
35
|
{
|
|
35
36
|
href: e,
|
|
36
|
-
target:
|
|
37
|
-
className:
|
|
37
|
+
target: i,
|
|
38
|
+
className: m(o({ isActive: r })),
|
|
38
39
|
"aria-disabled": r ? "true" : "false",
|
|
39
40
|
onClick: s,
|
|
40
41
|
children: n
|
|
41
42
|
}
|
|
42
|
-
) }) : /* @__PURE__ */ a("span", { className:
|
|
43
|
+
) }) : /* @__PURE__ */ a("span", { className: m(b({ isActive: r })), children: n })
|
|
43
44
|
}
|
|
44
45
|
);
|
|
45
46
|
};
|
|
46
47
|
export {
|
|
47
|
-
|
|
48
|
+
g as Item
|
|
48
49
|
};
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as c } from "react";
|
|
3
|
-
import { S as l } from "../../index-
|
|
3
|
+
import { S as l } from "../../index-DQH6odE9.js";
|
|
4
4
|
import { cn as x } from "../../utils/index.js";
|
|
5
5
|
import { buttonVariants as B } from "./Button.variants.js";
|
|
6
6
|
const C = c(
|
|
7
7
|
({
|
|
8
|
-
appearance:
|
|
8
|
+
appearance: o,
|
|
9
9
|
asChild: r = !1,
|
|
10
10
|
className: m,
|
|
11
|
-
disabled:
|
|
11
|
+
disabled: t = !1,
|
|
12
12
|
shape: a,
|
|
13
|
-
size:
|
|
14
|
-
theme:
|
|
15
|
-
variant:
|
|
16
|
-
version:
|
|
13
|
+
size: n,
|
|
14
|
+
theme: s,
|
|
15
|
+
variant: f,
|
|
16
|
+
version: p,
|
|
17
17
|
...e
|
|
18
18
|
}, i) => /* @__PURE__ */ u(
|
|
19
19
|
r ? l : "button",
|
|
20
20
|
{
|
|
21
21
|
ref: i,
|
|
22
|
-
"data-theme":
|
|
22
|
+
"data-theme": s,
|
|
23
23
|
className: x(
|
|
24
24
|
B({
|
|
25
|
-
appearance:
|
|
25
|
+
appearance: o,
|
|
26
26
|
className: m,
|
|
27
|
-
disabled:
|
|
27
|
+
disabled: t,
|
|
28
28
|
shape: a,
|
|
29
|
-
size:
|
|
30
|
-
variant:
|
|
31
|
-
version:
|
|
29
|
+
size: n,
|
|
30
|
+
variant: f,
|
|
31
|
+
version: p
|
|
32
32
|
})
|
|
33
33
|
),
|
|
34
|
-
disabled:
|
|
34
|
+
disabled: t,
|
|
35
35
|
...e
|
|
36
36
|
}
|
|
37
37
|
)
|
|
38
38
|
);
|
|
39
|
-
C.displayName = "
|
|
39
|
+
C.displayName = "KonstructButton";
|
|
40
40
|
export {
|
|
41
41
|
C as Button
|
|
42
42
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
1
|
+
import { c as e } from "../../index-D29mdTf5.js";
|
|
2
|
+
const t = e(
|
|
3
3
|
[
|
|
4
4
|
"border",
|
|
5
5
|
"cursor-pointer",
|
|
@@ -24,14 +24,11 @@ const o = r(
|
|
|
24
24
|
"bg-kubefirst-primary",
|
|
25
25
|
"hover:bg-kubefirst-secondary",
|
|
26
26
|
"hover:border-kubefirst-secondary",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"civo:
|
|
32
|
-
"civo:border-civo-primary",
|
|
33
|
-
"civo:hover:bg-civo-secondary",
|
|
34
|
-
"civo:hover:border-civo-secondary"
|
|
27
|
+
"civo:bg-aurora-500",
|
|
28
|
+
"civo:border-aurora-500",
|
|
29
|
+
"civo:text-slate-700",
|
|
30
|
+
"civo:hover:bg-aurora-400",
|
|
31
|
+
"civo:hover:border-aurora-400"
|
|
35
32
|
],
|
|
36
33
|
{
|
|
37
34
|
variants: {
|
|
@@ -44,11 +41,6 @@ const o = r(
|
|
|
44
41
|
"text-white",
|
|
45
42
|
"hover:bg-red-800",
|
|
46
43
|
"hover:border-red-800",
|
|
47
|
-
"colony:border-red-700",
|
|
48
|
-
"colony:bg-red-700",
|
|
49
|
-
"colony:text-white",
|
|
50
|
-
"colony:hover:bg-red-800",
|
|
51
|
-
"colony:hover:border-red-800",
|
|
52
44
|
"civo:border-red-700",
|
|
53
45
|
"civo:bg-red-700",
|
|
54
46
|
"civo:text-white",
|
|
@@ -93,12 +85,6 @@ const o = r(
|
|
|
93
85
|
"hover:text-kubefirst-secondary",
|
|
94
86
|
"hover:border-kubefirst-secondary",
|
|
95
87
|
"hover:bg-purple-50",
|
|
96
|
-
"colony:text-colony-primary",
|
|
97
|
-
"colony:bg-white",
|
|
98
|
-
"colony:border-colony-primary",
|
|
99
|
-
"colony:hover:text-colony-secondary",
|
|
100
|
-
"colony:hover:border-colony-secondary",
|
|
101
|
-
"colony:hover:bg-pink-50",
|
|
102
88
|
"civo:bg-white",
|
|
103
89
|
"civo:hover:bg-white",
|
|
104
90
|
"civo:text-slate-700",
|
|
@@ -115,12 +101,8 @@ const o = r(
|
|
|
115
101
|
"bg-zinc-200",
|
|
116
102
|
"border-zinc-200",
|
|
117
103
|
"text-zinc-500",
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"colony:text-zinc-500",
|
|
121
|
-
"civo:bg-civo-primary/45",
|
|
122
|
-
"civo:border-civo-primary/5",
|
|
123
|
-
"civo:text-white"
|
|
104
|
+
"civo:text-gray-700",
|
|
105
|
+
"civo:opacity-45"
|
|
124
106
|
]
|
|
125
107
|
},
|
|
126
108
|
{
|
|
@@ -143,10 +125,6 @@ const o = r(
|
|
|
143
125
|
"text-red-700",
|
|
144
126
|
"bg-white",
|
|
145
127
|
"hover:bg-red-50",
|
|
146
|
-
"colony:border-red-700",
|
|
147
|
-
"colony:text-red-700",
|
|
148
|
-
"colony:bg-white",
|
|
149
|
-
"colony:hover:bg-red-50",
|
|
150
128
|
"civo:border-red-700",
|
|
151
129
|
"civo:text-red-700",
|
|
152
130
|
"civo:bg-white",
|
|
@@ -170,11 +148,6 @@ const o = r(
|
|
|
170
148
|
"hover:border-transparent",
|
|
171
149
|
"hover:text-kubefirst-primary",
|
|
172
150
|
"hover:bg-purple-50",
|
|
173
|
-
"colony:bg-white",
|
|
174
|
-
"colony:border-transparent",
|
|
175
|
-
"colony:hover:border-transparent",
|
|
176
|
-
"colony:hover:text-colony-primary",
|
|
177
|
-
"colony:hover:bg-pink-50",
|
|
178
151
|
"civo:bg-white",
|
|
179
152
|
"civo:border-transparent",
|
|
180
153
|
"civo:hover:border-transparent",
|
|
@@ -191,12 +164,6 @@ const o = r(
|
|
|
191
164
|
"text-kubefirst-primary",
|
|
192
165
|
"hover:text-kubefirst-primary",
|
|
193
166
|
"hover:bg-purple-50",
|
|
194
|
-
"colony:bg-white",
|
|
195
|
-
"colony:border-transparent",
|
|
196
|
-
"colony:hover:border-transparent",
|
|
197
|
-
"colony:text-colony-primary",
|
|
198
|
-
"colony:hover:text-colony-primary",
|
|
199
|
-
"colony:hover:bg-pink-50",
|
|
200
167
|
"civo:bg-white",
|
|
201
168
|
"civo:border-transparent",
|
|
202
169
|
"civo:hover:border-transparent",
|
|
@@ -213,9 +180,6 @@ const o = r(
|
|
|
213
180
|
"bg-white",
|
|
214
181
|
"border-white",
|
|
215
182
|
"text-zinc-400",
|
|
216
|
-
"colony:bg-white",
|
|
217
|
-
"colony:border-white",
|
|
218
|
-
"colony:text-zinc-400",
|
|
219
183
|
"civo:bg-white",
|
|
220
184
|
"civo:border-white",
|
|
221
185
|
"civo:text-civo-primary/45"
|
|
@@ -234,14 +198,6 @@ const o = r(
|
|
|
234
198
|
"hover:text-kubefirst-primary",
|
|
235
199
|
"w-8",
|
|
236
200
|
"h-8",
|
|
237
|
-
"colony:text-slate-400",
|
|
238
|
-
"colony:bg-transparent",
|
|
239
|
-
"colony:border-transparent",
|
|
240
|
-
"colony:hover:border-transparent",
|
|
241
|
-
"colony:hover:bg-colony-primary/5",
|
|
242
|
-
"colony:hover:text-colony-primary",
|
|
243
|
-
"colony:[&>svg]:w-5",
|
|
244
|
-
"colony:[&>svg]:h-5",
|
|
245
201
|
"civo:text-slate-400",
|
|
246
202
|
"civo:bg-transparent",
|
|
247
203
|
"civo:border-transparent",
|
|
@@ -267,16 +223,6 @@ const o = r(
|
|
|
267
223
|
"h-11",
|
|
268
224
|
"[&>svg]:w-6",
|
|
269
225
|
"[&>svg]:h-6",
|
|
270
|
-
"colony:text-slate-400",
|
|
271
|
-
"colony:bg-transparent",
|
|
272
|
-
"colony:border-transparent",
|
|
273
|
-
"colony:hover:border-transparent",
|
|
274
|
-
"colony:hover:bg-colony-primary/5",
|
|
275
|
-
"colony:hover:text-colony-primary",
|
|
276
|
-
"colony:w-11",
|
|
277
|
-
"colony:h-11",
|
|
278
|
-
"colony:[&>svg]:w-6",
|
|
279
|
-
"colony:[&>svg]:h-6",
|
|
280
226
|
"civo:text-slate-400",
|
|
281
227
|
"civo:bg-transparent",
|
|
282
228
|
"civo:border-transparent",
|
|
@@ -298,9 +244,6 @@ const o = r(
|
|
|
298
244
|
"text-red-700",
|
|
299
245
|
"hover:text-red-700",
|
|
300
246
|
"hover:bg-red-50",
|
|
301
|
-
"colony:text-red-700",
|
|
302
|
-
"colony:hover:text-red-700",
|
|
303
|
-
"colony:hover:bg-red-50",
|
|
304
247
|
"civo:text-red-700",
|
|
305
248
|
"civo:hover:text-red-700",
|
|
306
249
|
"civo:hover:bg-red-50"
|
|
@@ -315,9 +258,6 @@ const o = r(
|
|
|
315
258
|
"text-red-700",
|
|
316
259
|
"hover:text-red-700",
|
|
317
260
|
"hover:bg-red-50",
|
|
318
|
-
"colony:text-red-700",
|
|
319
|
-
"colony:hover:text-red-700",
|
|
320
|
-
"colony:hover:bg-red-50",
|
|
321
261
|
"civo:text-red-700",
|
|
322
262
|
"civo:hover:text-red-700",
|
|
323
263
|
"civo:hover:bg-red-50"
|
|
@@ -335,13 +275,6 @@ const o = r(
|
|
|
335
275
|
"h-8",
|
|
336
276
|
"[&>svg]:w-5",
|
|
337
277
|
"[&>svg]:h-5",
|
|
338
|
-
"colony:text-slate-300",
|
|
339
|
-
"colony:bg-transparent",
|
|
340
|
-
"colony:border-transparent",
|
|
341
|
-
"colony:w-8",
|
|
342
|
-
"colony:h-8",
|
|
343
|
-
"colony:[&>svg]:w-5",
|
|
344
|
-
"colony:[&>svg]:h-5",
|
|
345
278
|
"civo:text-slate-300",
|
|
346
279
|
"civo:bg-transparent",
|
|
347
280
|
"civo:border-transparent",
|
|
@@ -361,5 +294,5 @@ const o = r(
|
|
|
361
294
|
}
|
|
362
295
|
);
|
|
363
296
|
export {
|
|
364
|
-
|
|
297
|
+
t as buttonVariants
|
|
365
298
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as r } from "../../index-
|
|
2
|
-
const
|
|
1
|
+
import { c as r } from "../../index-D29mdTf5.js";
|
|
2
|
+
const o = r(
|
|
3
3
|
["border", "border-slate-200", "rounded-xl"],
|
|
4
4
|
{
|
|
5
5
|
variants: {
|
|
@@ -21,7 +21,6 @@ const e = r(
|
|
|
21
21
|
true: [
|
|
22
22
|
"border-kubefirst-primary",
|
|
23
23
|
"shadow",
|
|
24
|
-
"colony:border-colony-primary",
|
|
25
24
|
"civo:border-civo-primary"
|
|
26
25
|
],
|
|
27
26
|
false: "border-transparent"
|
|
@@ -31,7 +30,6 @@ const e = r(
|
|
|
31
30
|
"cursor-pointer",
|
|
32
31
|
"border-transparent",
|
|
33
32
|
"group-hover:border-kubefirst-primary",
|
|
34
|
-
"colony:group-hover:border-colony-primary",
|
|
35
33
|
"civo:group-hover:border-civo-primary"
|
|
36
34
|
],
|
|
37
35
|
false: ""
|
|
@@ -47,6 +45,6 @@ const e = r(
|
|
|
47
45
|
}
|
|
48
46
|
);
|
|
49
47
|
export {
|
|
50
|
-
|
|
48
|
+
o as cardBaseVariants,
|
|
51
49
|
a as cardVariants
|
|
52
50
|
};
|