@konstructio/ui 0.1.2-alpha.5 → 0.1.2-alpha.50
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-VYaRRJBZ.js → Combination-BtmnusWq.js} +141 -138
- package/dist/DatePicker.css +1 -1
- package/dist/Modal-CjC-CIJ8.js +99 -0
- package/dist/assets/icons/index.js +7 -0
- package/dist/chevron-down-DgT-uSF9.js +5 -0
- package/dist/chevron-right-DYvXLeql.js +7 -0
- package/dist/chevron-up-DEfvgPCw.js +54 -0
- package/dist/chevron-up-DrQr2Fwd.js +5 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +81 -53
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -2
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +41 -44
- package/dist/components/Badge/Badge.variants.js +52 -13
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +3 -3
- package/dist/components/Breadcrumb/components/Item/Item.js +22 -22
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +25 -14
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.variants.js +108 -98
- package/dist/components/Card/Card.variants.js +7 -12
- package/dist/components/Checkbox/Checkbox.js +108 -105
- package/dist/components/Checkbox/Checkbox.variants.js +34 -7
- 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 +2 -2
- 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 +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Counter/Counter.js +210 -0
- package/dist/components/Counter/Counter.variants.js +70 -0
- package/dist/components/Datepicker/DatePicker.js +1587 -1353
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/Filter.variants.js +8 -7
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +71 -45
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +2 -2
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +76 -43
- package/dist/components/Filter/components/ResetButton/ResetButton.js +15 -12
- package/dist/components/Filter/events/index.js +3 -3
- package/dist/components/ImageUpload/ImageUpload.js +221 -0
- package/dist/components/ImageUpload/ImageUpload.variants.js +109 -0
- package/dist/components/Input/Input.js +185 -118
- package/dist/components/Input/Input.variants.js +24 -19
- package/dist/components/Loading/Loading.js +1 -7
- 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 +4 -4
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +34 -0
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +30 -0
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +30 -0
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +38 -0
- package/dist/components/MultiSelectDropdown/components/List/List.js +30 -0
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +25 -0
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +119 -0
- package/dist/components/MultiSelectDropdown/components/index.js +8 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +21 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +13 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +138 -0
- package/dist/components/MultiSelectDropdown/contexts/index.js +6 -0
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +32 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +46 -0
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +36 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +690 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +60 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
- package/dist/components/PhoneNumberInput/components/Wrapper.js +651 -0
- package/dist/components/PhoneNumberInput/components/index.js +6 -0
- package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +13 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +6144 -0
- package/dist/components/PhoneNumberInput/utils/index.js +11 -0
- package/dist/components/PieChart/PieChart.js +463 -482
- package/dist/components/Radio/Radio.js +47 -44
- package/dist/components/Radio/Radio.variants.js +12 -8
- package/dist/components/RadioCard/RadioCard.variants.js +1 -6
- package/dist/components/RadioGroup/RadioGroup.js +10 -10
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/Select.js +48 -0
- package/dist/components/{Dropdown/Dropdown.variants.js → Select/Select.variants.js} +17 -11
- package/dist/components/Select/components/List/List.js +172 -0
- package/dist/components/{Dropdown → Select}/components/List/List.variants.js +11 -8
- package/dist/components/Select/components/ListItem/ListItem.js +117 -0
- package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.variants.js +5 -4
- package/dist/components/Select/components/Wrapper.js +226 -0
- package/dist/components/Select/constants/index.js +4 -0
- package/dist/components/Select/constants/pagination.js +4 -0
- package/dist/components/Select/contexts/index.js +6 -0
- package/dist/components/Select/contexts/select.context.js +36 -0
- package/dist/components/Select/contexts/select.hook.js +11 -0
- package/dist/components/Select/contexts/select.provider.js +58 -0
- package/dist/components/Select/hooks/useNavigationList.js +50 -0
- package/dist/components/Select/hooks/useSelect.js +103 -0
- package/dist/components/Sidebar/Sidebar.variants.js +2 -2
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +156 -129
- package/dist/components/Switch/Switch.variants.js +19 -10
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +4 -3
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.variants.js +1 -0
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +49 -98
- package/dist/components/TimePicker/TimePicker.js +1 -1
- package/dist/components/TimePicker/TimePicker.variants.js +26 -14
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +30 -20
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +57 -35
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +53 -45
- package/dist/components/Toast/Toast.js +283 -256
- package/dist/components/Toast/Toast.variants.js +37 -24
- package/dist/components/Tooltip/Tooltip.js +15 -14
- package/dist/components/Tooltip/Tooltip.variants.js +5 -4
- package/dist/components/Typography/Typography.js +23 -25
- package/dist/components/Typography/Typography.variants.js +55 -52
- package/dist/components/VirtualizedTable/VirtualizedTable.js +97 -71
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +95 -33
- package/dist/components/VirtualizedTable/components/Body/Body.js +73 -21
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +94 -91
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +20 -20
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +61 -44
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +33 -21
- package/dist/components/VirtualizedTable/components/Header/Header.js +61 -41
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +43 -22
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +106 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +22 -1858
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +27 -0
- package/dist/components/VirtualizedTable/components/index.js +8 -6
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +68 -761
- package/dist/components/index.js +94 -86
- package/dist/contexts/theme.provider.js +0 -1
- package/dist/{createLucideIcon-D2CN7Ma9.js → createLucideIcon-D4r5Phnh.js} +0 -24
- package/dist/ellipsis-vertical-BVPtjl5f.js +9 -0
- package/dist/{index-C1g_chDT.js → index-AV6ZtGhy.js} +2 -2
- package/dist/index-BG8O18ZY.js +93 -0
- package/dist/index-BKjcReYh.js +55 -0
- package/dist/{index-N2OStZoU.js → index-BOE_3f_Z.js} +4 -25
- package/dist/{index-Cd2vhaop.js → index-BlSRBdPy.js} +5 -6
- package/dist/index-BmVmDQGH.js +662 -0
- package/dist/index-BvoZGpli.js +60 -0
- package/dist/index-Byr10W8m.js +1873 -0
- package/dist/{index-Dx2grAuN.js → index-CSWGJT-v.js} +0 -20
- package/dist/index-CeZcoQDw.js +479 -0
- package/dist/index-D6KzX_ef.js +135 -0
- package/dist/{index-B7t8D14s.js → index-D9SSJ6om.js} +4 -4
- package/dist/index-DKfEnhKr.js +200 -0
- package/dist/index-DLcqcWxM.js +29 -0
- package/dist/{index-ti1b9kqV.js → index-DMb4KD0b.js} +4 -4
- package/dist/{index-BAEWsOG1.js → index-DtEcCIrM.js} +1 -1
- package/dist/{index-bwWKd82e.js → index-Dy59FQl5.js} +1 -1
- package/dist/{index-C84F4YyO.js → index-gSPwC-1I.js} +10 -11
- package/dist/{index-Bnb0ezr3.js → index-vcSp8YRZ.js} +11 -12
- package/dist/index.d.ts +2142 -99
- package/dist/index.js +116 -106
- package/dist/libphonenumber-FTwQ9nyV.js +11549 -0
- package/dist/loader-juvMSJ9L.js +5 -0
- package/dist/package.json +43 -33
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +194 -168
- package/dist/ui/theme.css +27 -0
- package/dist/{useBreadcrumb-B8DnuqkR.js → useBreadcrumb-BAHbGQ_O.js} +0 -10
- package/dist/utils/index.js +534 -501
- package/dist/x-BXShoIAM.js +8 -0
- package/dist/{x-4F_5p77m.js → x-Eoa9FJjA.js} +1 -1
- package/package.json +43 -33
- package/dist/Modal-D-NOEWMX.js +0 -98
- package/dist/chevron-down-MZvQoT2F.js +0 -11
- package/dist/chevron-right-VYBOBhRt.js +0 -19
- package/dist/components/Dropdown/Dropdown.js +0 -42
- package/dist/components/Dropdown/components/List/List.js +0 -79
- package/dist/components/Dropdown/components/ListItem/ListItem.js +0 -67
- package/dist/components/Dropdown/components/Wrapper.js +0 -205
- package/dist/components/Dropdown/contexts/dropdown.context.js +0 -19
- package/dist/components/Dropdown/contexts/dropdown.hook.js +0 -13
- package/dist/components/Dropdown/contexts/dropdown.provider.js +0 -30
- package/dist/components/Dropdown/contexts/index.js +0 -6
- package/dist/components/Dropdown/hooks/useDropdown.js +0 -58
- package/dist/components/Dropdown/hooks/useNavigationList.js +0 -62
- package/dist/components/NumberInput/NumberInput.js +0 -179
- package/dist/components/NumberInput/NumberInput.variants.js +0 -50
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +0 -16
- package/dist/index-BITvcJAz.js +0 -423
- package/dist/index-BfXxHr_2.js +0 -125
- package/dist/index-Cvx4lqTq.js +0 -47
- package/dist/index-DBbEcSUG.js +0 -31
- package/dist/index-DQH6odE9.js +0 -82
- package/dist/index-DzIBBMjs.js +0 -436
- package/dist/index-os7vysFS.js +0 -131
- /package/dist/components/{Dropdown → Select}/components/EmptyList.js +0 -0
- /package/dist/components/{Dropdown → Select}/components/index.js +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { S as a } from "../../loader-juvMSJ9L.js";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
const L = (t) => /* @__PURE__ */ e.createElement("svg", { width: 9, height: 9, viewBox: "0 0 9 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M8.16667 0.8225L7.34417 0L4.08333 3.26083L0.8225 0L0 0.8225L3.26083 4.08333L0 7.34417L0.8225 8.16667L4.08333 4.90583L7.34417 8.16667L8.16667 7.34417L4.90583 4.08333L8.16667 0.8225Z", fill: "#364153" }));
|
|
4
|
+
export {
|
|
5
|
+
a as Loader,
|
|
6
|
+
L as X
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { c as o } from "./createLucideIcon-D4r5Phnh.js";
|
|
2
|
+
const e = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], n = o("chevron-left", e);
|
|
3
|
+
const t = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], h = o("chevron-right", t);
|
|
4
|
+
export {
|
|
5
|
+
n as C,
|
|
6
|
+
h as a
|
|
7
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import l, { forwardRef as c } from "react";
|
|
2
|
+
import { P as a } from "./index-BOE_3f_Z.js";
|
|
3
|
+
function p() {
|
|
4
|
+
return p = Object.assign || function(e) {
|
|
5
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
6
|
+
var t = arguments[o];
|
|
7
|
+
for (var r in t)
|
|
8
|
+
Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
|
|
9
|
+
}
|
|
10
|
+
return e;
|
|
11
|
+
}, p.apply(this, arguments);
|
|
12
|
+
}
|
|
13
|
+
function u(e, o) {
|
|
14
|
+
if (e == null) return {};
|
|
15
|
+
var t = v(e, o), r, n;
|
|
16
|
+
if (Object.getOwnPropertySymbols) {
|
|
17
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
18
|
+
for (n = 0; n < i.length; n++)
|
|
19
|
+
r = i[n], !(o.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (t[r] = e[r]);
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
}
|
|
23
|
+
function v(e, o) {
|
|
24
|
+
if (e == null) return {};
|
|
25
|
+
var t = {}, r = Object.keys(e), n, i;
|
|
26
|
+
for (i = 0; i < r.length; i++)
|
|
27
|
+
n = r[i], !(o.indexOf(n) >= 0) && (t[n] = e[n]);
|
|
28
|
+
return t;
|
|
29
|
+
}
|
|
30
|
+
var s = c(function(e, o) {
|
|
31
|
+
var t = e.color, r = t === void 0 ? "currentColor" : t, n = e.size, i = n === void 0 ? 24 : n, f = u(e, ["color", "size"]);
|
|
32
|
+
return /* @__PURE__ */ l.createElement("svg", p({
|
|
33
|
+
ref: o,
|
|
34
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
+
width: i,
|
|
36
|
+
height: i,
|
|
37
|
+
viewBox: "0 0 24 24",
|
|
38
|
+
fill: "none",
|
|
39
|
+
stroke: r,
|
|
40
|
+
strokeWidth: "2",
|
|
41
|
+
strokeLinecap: "round",
|
|
42
|
+
strokeLinejoin: "round"
|
|
43
|
+
}, f), /* @__PURE__ */ l.createElement("polyline", {
|
|
44
|
+
points: "18 15 12 9 6 15"
|
|
45
|
+
}));
|
|
46
|
+
});
|
|
47
|
+
s.propTypes = {
|
|
48
|
+
color: a.string,
|
|
49
|
+
size: a.oneOfType([a.string, a.number])
|
|
50
|
+
};
|
|
51
|
+
s.displayName = "ChevronUp";
|
|
52
|
+
export {
|
|
53
|
+
s as C
|
|
54
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as l, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as f, useState as h, useMemo as b, isValidElement as C, useCallback as V, useEffect as v } from "react";
|
|
3
|
-
import { V as k } from "../../index-
|
|
3
|
+
import { V as k } from "../../index-BKjcReYh.js";
|
|
4
4
|
import { cn as a } from "../../utils/index.js";
|
|
5
5
|
import { closeButtonVariants as w, alertVariants as x } from "./Alert.variants.js";
|
|
6
|
-
import { X as y } from "../../x-
|
|
6
|
+
import { X as y } from "../../x-Eoa9FJjA.js";
|
|
7
7
|
const R = ({
|
|
8
8
|
theme: i,
|
|
9
9
|
type: o,
|
|
@@ -1,76 +1,103 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { R as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { R as j, A as T, P as w, O as K, C as P, T as z, D as B, a as E, b as S } from "../../index-D6KzX_ef.js";
|
|
3
|
+
import { useRef as q, useState as F, useEffect as G } from "react";
|
|
4
|
+
import { Button as s } from "../Button/Button.js";
|
|
5
|
+
import { cn as n } from "../../utils/index.js";
|
|
6
|
+
import { useAlertDialog as H } from "./hooks/useAlertDialog.js";
|
|
7
|
+
const I = ({
|
|
7
8
|
buttonCancel: {
|
|
8
|
-
className:
|
|
9
|
-
text:
|
|
10
|
-
...
|
|
9
|
+
className: i,
|
|
10
|
+
text: o = "Cancel",
|
|
11
|
+
...c
|
|
11
12
|
} = {},
|
|
12
13
|
buttonConfirm: {
|
|
13
|
-
className:
|
|
14
|
-
text:
|
|
15
|
-
...
|
|
14
|
+
className: d,
|
|
15
|
+
text: m = "OK",
|
|
16
|
+
...f
|
|
16
17
|
} = {},
|
|
17
|
-
buttonTriggerClassName:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
buttonTriggerClassName: p,
|
|
19
|
+
buttonTriggerVariant: u,
|
|
20
|
+
buttonTriggerText: h,
|
|
21
|
+
description: x,
|
|
22
|
+
showCancelButton: b = !0,
|
|
23
|
+
theme: a,
|
|
24
|
+
title: g,
|
|
25
|
+
wrapperClassName: C,
|
|
26
|
+
onConfirm: N,
|
|
27
|
+
...y
|
|
26
28
|
}) => {
|
|
27
|
-
const { isOpen:
|
|
28
|
-
onConfirm:
|
|
29
|
+
const r = q(null), [k, A] = F(null), { isOpen: D, handleCancel: O, handleConfirm: v, handleOpen: R } = H({
|
|
30
|
+
onConfirm: N
|
|
29
31
|
});
|
|
30
|
-
return
|
|
32
|
+
return G(() => {
|
|
33
|
+
if (!r.current || a)
|
|
34
|
+
return;
|
|
35
|
+
const l = r.current.closest("[data-theme]");
|
|
36
|
+
l && A(l);
|
|
37
|
+
}, []), /* @__PURE__ */ t(j, { open: D, ...y, children: [
|
|
31
38
|
/* @__PURE__ */ e(
|
|
32
|
-
|
|
39
|
+
T,
|
|
33
40
|
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
ref: r,
|
|
42
|
+
className: p,
|
|
43
|
+
variant: u,
|
|
44
|
+
text: h,
|
|
45
|
+
"data-theme": a,
|
|
46
|
+
onOpen: R
|
|
38
47
|
}
|
|
39
48
|
),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */ e(
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
|
|
49
|
+
/* @__PURE__ */ t(w, { container: k, children: [
|
|
50
|
+
/* @__PURE__ */ e(K, { className: "bg-black opacity-70 dark:opacity-85 inset-0 fixed animate-in fade-in-0" }),
|
|
51
|
+
/* @__PURE__ */ t(
|
|
52
|
+
P,
|
|
44
53
|
{
|
|
45
|
-
"data-theme":
|
|
46
|
-
className:
|
|
47
|
-
"bg-white
|
|
48
|
-
|
|
54
|
+
"data-theme": a,
|
|
55
|
+
className: n(
|
|
56
|
+
"bg-white",
|
|
57
|
+
"rounded-md",
|
|
58
|
+
"fixed",
|
|
59
|
+
"top-1/2",
|
|
60
|
+
"left-1/2",
|
|
61
|
+
"-translate-y-2/4",
|
|
62
|
+
"-translate-x-2/4",
|
|
63
|
+
"flex",
|
|
64
|
+
"flex-col",
|
|
65
|
+
"gap-6",
|
|
66
|
+
"p-8",
|
|
67
|
+
"animate-in",
|
|
68
|
+
"fade-in-0",
|
|
69
|
+
"zoom-in-85",
|
|
70
|
+
"border",
|
|
71
|
+
"border-transparent",
|
|
72
|
+
"dark:bg-metal-800",
|
|
73
|
+
"dark:border-metal-700",
|
|
74
|
+
"dark:border-slate-700",
|
|
75
|
+
C
|
|
49
76
|
),
|
|
50
77
|
children: [
|
|
51
|
-
/* @__PURE__ */ e(
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
|
|
55
|
-
|
|
78
|
+
/* @__PURE__ */ e(z, { className: "text-base text-slate-700 font-semibold", children: g }),
|
|
79
|
+
/* @__PURE__ */ e(B, { className: "text-sm text-slate-800", children: x }),
|
|
80
|
+
/* @__PURE__ */ t("div", { className: "flex flex-row gap-2 justify-end", children: [
|
|
81
|
+
b && /* @__PURE__ */ e(E, { asChild: !0, children: /* @__PURE__ */ e(
|
|
82
|
+
s,
|
|
56
83
|
{
|
|
57
84
|
type: "button",
|
|
58
85
|
variant: "secondary",
|
|
59
|
-
className:
|
|
60
|
-
onClick:
|
|
61
|
-
...
|
|
62
|
-
children:
|
|
86
|
+
className: n(i),
|
|
87
|
+
onClick: O,
|
|
88
|
+
...c,
|
|
89
|
+
children: o
|
|
63
90
|
}
|
|
64
91
|
) }),
|
|
65
|
-
/* @__PURE__ */ e(
|
|
66
|
-
|
|
92
|
+
/* @__PURE__ */ e(S, { asChild: !0, children: /* @__PURE__ */ e(
|
|
93
|
+
s,
|
|
67
94
|
{
|
|
68
95
|
type: "button",
|
|
69
96
|
variant: "primary",
|
|
70
|
-
className:
|
|
71
|
-
onClick:
|
|
72
|
-
...
|
|
73
|
-
children:
|
|
97
|
+
className: n(d),
|
|
98
|
+
onClick: v,
|
|
99
|
+
...f,
|
|
100
|
+
children: m
|
|
74
101
|
}
|
|
75
102
|
) })
|
|
76
103
|
] })
|
|
@@ -80,6 +107,7 @@ const G = ({
|
|
|
80
107
|
] })
|
|
81
108
|
] });
|
|
82
109
|
};
|
|
110
|
+
I.displayName = "KonstructAlertDialog";
|
|
83
111
|
export {
|
|
84
|
-
|
|
112
|
+
I as AlertDialog
|
|
85
113
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as e } from "../../../index-D6KzX_ef.js";
|
|
3
|
+
import "react";
|
|
3
4
|
import "../../Button/Button.js";
|
|
4
5
|
import "../../../utils/index.js";
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
+
e as AlertDialogTrigger
|
|
7
8
|
};
|
|
@@ -1,77 +1,74 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { jsxs as u, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as y, useState as w, useCallback as S, useEffect as x } from "react";
|
|
3
|
+
import { S as V } from "../../loader-juvMSJ9L.js";
|
|
3
4
|
import { cn as c } from "../../utils/index.js";
|
|
4
|
-
import { buttonDismissVariants as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
dismissible: m = !1,
|
|
18
|
-
label: a,
|
|
19
|
-
loading: r = !1,
|
|
20
|
-
size: o,
|
|
21
|
-
variant: i,
|
|
5
|
+
import { buttonDismissVariants as D, badgeVariants as j } from "./Badge.variants.js";
|
|
6
|
+
import { S as p } from "../../index-BvoZGpli.js";
|
|
7
|
+
import { X as E } from "../../x-BXShoIAM.js";
|
|
8
|
+
const q = ({
|
|
9
|
+
className: b,
|
|
10
|
+
dismissible: f = !1,
|
|
11
|
+
isSelectable: h = !0,
|
|
12
|
+
label: r,
|
|
13
|
+
leftIcon: i,
|
|
14
|
+
loading: n = !1,
|
|
15
|
+
rightIcon: o,
|
|
16
|
+
size: l,
|
|
17
|
+
variant: m,
|
|
22
18
|
onClick: e,
|
|
23
|
-
onDismiss:
|
|
19
|
+
onDismiss: d
|
|
24
20
|
}) => {
|
|
25
|
-
const
|
|
21
|
+
const a = y(null), [v, N] = w("visible"), g = S(
|
|
26
22
|
(t) => {
|
|
27
|
-
t.stopPropagation(),
|
|
23
|
+
t.stopPropagation(), d?.(), N("hidden");
|
|
28
24
|
},
|
|
29
|
-
[
|
|
25
|
+
[d]
|
|
30
26
|
);
|
|
31
|
-
return
|
|
27
|
+
return x(() => {
|
|
32
28
|
const t = new AbortController();
|
|
33
|
-
return
|
|
29
|
+
return a.current?.addEventListener(
|
|
34
30
|
"animationend",
|
|
35
31
|
() => {
|
|
36
|
-
|
|
32
|
+
a.current?.style.setProperty("display", "none"), a.current?.remove();
|
|
37
33
|
},
|
|
38
34
|
{ signal: t.signal }
|
|
39
35
|
), () => t.abort();
|
|
40
|
-
}, []), /* @__PURE__ */
|
|
36
|
+
}, []), /* @__PURE__ */ u(
|
|
41
37
|
"span",
|
|
42
38
|
{
|
|
43
|
-
ref:
|
|
44
|
-
className: c(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
),
|
|
39
|
+
ref: a,
|
|
40
|
+
className: c(j({ variant: m, size: l, className: b }), {
|
|
41
|
+
"select-none": !h,
|
|
42
|
+
"cursor-pointer": e
|
|
43
|
+
}),
|
|
48
44
|
role: e ? "button" : void 0,
|
|
49
45
|
onClick: e,
|
|
50
46
|
tabIndex: e ? 0 : void 0,
|
|
51
|
-
"aria-label": e ? `${
|
|
52
|
-
"aria-busy":
|
|
47
|
+
"aria-label": e ? `${r} badge` : void 0,
|
|
48
|
+
"aria-busy": n,
|
|
53
49
|
"aria-live": "polite",
|
|
54
|
-
"data-state":
|
|
50
|
+
"data-state": v,
|
|
55
51
|
children: [
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
n && /* @__PURE__ */ s(V, { className: "h-3 w-3 animate-spin animate-duration-time-2" }),
|
|
53
|
+
i ? /* @__PURE__ */ s(p, { className: "h-3 w-3", children: i }) : null,
|
|
54
|
+
r,
|
|
55
|
+
f ? /* @__PURE__ */ u(
|
|
59
56
|
"button",
|
|
60
57
|
{
|
|
61
58
|
type: "button",
|
|
62
|
-
className: c(
|
|
63
|
-
onClick:
|
|
59
|
+
className: c(D({ size: l, variant: m })),
|
|
60
|
+
onClick: g,
|
|
64
61
|
"aria-label": "Dismiss",
|
|
65
62
|
children: [
|
|
66
|
-
/* @__PURE__ */ s(
|
|
63
|
+
/* @__PURE__ */ s(E, { className: "h-full w-full" }),
|
|
67
64
|
/* @__PURE__ */ s("span", { className: "sr-only", children: "Dismiss" })
|
|
68
65
|
]
|
|
69
66
|
}
|
|
70
|
-
)
|
|
67
|
+
) : o ? /* @__PURE__ */ s(p, { className: "h-3 w-3", children: o }) : null
|
|
71
68
|
]
|
|
72
69
|
}
|
|
73
70
|
);
|
|
74
71
|
};
|
|
75
72
|
export {
|
|
76
|
-
|
|
73
|
+
q as Badge
|
|
77
74
|
};
|
|
@@ -17,14 +17,51 @@ const a = e(
|
|
|
17
17
|
{
|
|
18
18
|
variants: {
|
|
19
19
|
variant: {
|
|
20
|
-
default: [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
default: [
|
|
21
|
+
"bg-gray-100",
|
|
22
|
+
"text-gray-800",
|
|
23
|
+
"dark:text-gray-300",
|
|
24
|
+
"dark:bg-gray-300/15"
|
|
25
|
+
],
|
|
26
|
+
danger: [
|
|
27
|
+
"bg-red-100",
|
|
28
|
+
"text-red-800",
|
|
29
|
+
"dark:text-red-400",
|
|
30
|
+
"dark:bg-red-400/10"
|
|
31
|
+
],
|
|
32
|
+
info: [
|
|
33
|
+
"bg-blue-100",
|
|
34
|
+
"text-blue-800",
|
|
35
|
+
"dark:text-sky-400",
|
|
36
|
+
"dark:bg-sky-400/10"
|
|
37
|
+
],
|
|
38
|
+
success: [
|
|
39
|
+
"bg-green-100",
|
|
40
|
+
"text-green-800",
|
|
41
|
+
"dark:text-green-400",
|
|
42
|
+
"dark:bg-green-400/10"
|
|
43
|
+
],
|
|
44
|
+
warning: [
|
|
45
|
+
"bg-yellow-100",
|
|
46
|
+
"text-yellow-800",
|
|
47
|
+
"dark:text-amber-300",
|
|
48
|
+
"dark:bg-amber-300/10"
|
|
49
|
+
],
|
|
50
|
+
violet: [
|
|
51
|
+
"bg-violet-50",
|
|
52
|
+
"text-violet-800",
|
|
53
|
+
"dark:text-purple-400",
|
|
54
|
+
"dark:bg-purple-400/8"
|
|
55
|
+
],
|
|
56
|
+
orange: [
|
|
57
|
+
"bg-orange-50",
|
|
58
|
+
"text-orange-800",
|
|
59
|
+
"dark:text-orange-400",
|
|
60
|
+
"dark:bg-orange-400/10"
|
|
61
|
+
]
|
|
25
62
|
},
|
|
26
63
|
size: {
|
|
27
|
-
default: "text-
|
|
64
|
+
default: "text-xs leading-4"
|
|
28
65
|
}
|
|
29
66
|
},
|
|
30
67
|
defaultVariants: {
|
|
@@ -32,7 +69,7 @@ const a = e(
|
|
|
32
69
|
size: "default"
|
|
33
70
|
}
|
|
34
71
|
}
|
|
35
|
-
),
|
|
72
|
+
), r = e(
|
|
36
73
|
[
|
|
37
74
|
"rounded-full",
|
|
38
75
|
"inline-flex",
|
|
@@ -46,11 +83,13 @@ const a = e(
|
|
|
46
83
|
{
|
|
47
84
|
variants: {
|
|
48
85
|
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"]
|
|
86
|
+
default: ["text-gray-700", "dark:text-gray-300"],
|
|
87
|
+
danger: ["text-red-700", "dark:text-red-400"],
|
|
88
|
+
info: ["text-blue-700", "dark:text-sky-400"],
|
|
89
|
+
success: ["text-green-700", "dark:text-green-400"],
|
|
90
|
+
warning: ["text-yellow-700", "dark:text-amber-300"],
|
|
91
|
+
violet: ["text-violet-700", "dark:text-purple-400"],
|
|
92
|
+
orange: ["text-orange-800", "dark:text-orange-400"]
|
|
54
93
|
},
|
|
55
94
|
size: {
|
|
56
95
|
default: ["h-3.5", "w-3.5"]
|
|
@@ -64,5 +103,5 @@ const a = e(
|
|
|
64
103
|
);
|
|
65
104
|
export {
|
|
66
105
|
a as badgeVariants,
|
|
67
|
-
|
|
106
|
+
r as buttonDismissVariants
|
|
68
107
|
};
|
|
@@ -3,7 +3,7 @@ import u, { forwardRef as b, useId as v, Fragment as y } from "react";
|
|
|
3
3
|
import { cn as h } from "../../utils/index.js";
|
|
4
4
|
import { breadcrumbVariants as O, breadcrumbWrapperVariants as j } from "./Breadcrumb.variants.js";
|
|
5
5
|
import { Item as w } from "./components/Item/Item.js";
|
|
6
|
-
import { P as l } from "../../index-
|
|
6
|
+
import { P as l } from "../../index-BOE_3f_Z.js";
|
|
7
7
|
function m() {
|
|
8
8
|
return m = Object.assign || function(r) {
|
|
9
9
|
for (var o = 1; o < arguments.length; o++) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e } from "../../index-D29mdTf5.js";
|
|
2
|
-
const
|
|
3
|
-
"text-
|
|
2
|
+
const t = e([
|
|
3
|
+
"text-gray-600",
|
|
4
4
|
"text-md",
|
|
5
5
|
"flex",
|
|
6
6
|
"gap-2",
|
|
@@ -8,5 +8,5 @@ const r = e([
|
|
|
8
8
|
]), a = e(["flex", "gap-1", "items-center"]);
|
|
9
9
|
export {
|
|
10
10
|
a as breadcrumbVariants,
|
|
11
|
-
|
|
11
|
+
t as breadcrumbWrapperVariants
|
|
12
12
|
};
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, Fragment as p } from "react/jsx-runtime";
|
|
2
2
|
import { cn as m } from "../../../../utils/index.js";
|
|
3
|
-
import { u as h, L as b } from "../../../../useBreadcrumb-
|
|
4
|
-
import { breadcrumbLinkVariants as
|
|
5
|
-
const
|
|
3
|
+
import { u as h, L as b } from "../../../../useBreadcrumb-BAHbGQ_O.js";
|
|
4
|
+
import { breadcrumbLinkVariants as d, breadcrumbLabelVariants as k } from "./Item.variants.js";
|
|
5
|
+
const g = ({
|
|
6
6
|
isActive: r,
|
|
7
7
|
isLast: t,
|
|
8
8
|
label: n,
|
|
9
9
|
target: s,
|
|
10
10
|
theme: c,
|
|
11
|
-
to:
|
|
12
|
-
component:
|
|
13
|
-
isReactRouterDom: l = !1
|
|
11
|
+
to: a,
|
|
12
|
+
component: l = "a"
|
|
14
13
|
}) => {
|
|
15
|
-
const { isInsideRouter: u } = h(),
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
return /* @__PURE__ */
|
|
14
|
+
const { isInsideRouter: u } = h(), o = (f) => {
|
|
15
|
+
a === "#" && f.preventDefault();
|
|
16
|
+
}, i = l;
|
|
17
|
+
return /* @__PURE__ */ e(
|
|
19
18
|
"li",
|
|
20
19
|
{
|
|
21
20
|
"aria-current": t ? "page" : void 0,
|
|
22
21
|
className: "group font-medium text-inherit",
|
|
23
22
|
"data-theme": c,
|
|
24
|
-
children:
|
|
23
|
+
children: a ? /* @__PURE__ */ e(p, { children: u ? /* @__PURE__ */ e(
|
|
25
24
|
b,
|
|
26
25
|
{
|
|
27
|
-
to:
|
|
26
|
+
to: a,
|
|
28
27
|
target: s,
|
|
29
|
-
className: m(
|
|
28
|
+
className: m(d({ isActive: r })),
|
|
30
29
|
"aria-disabled": r ? "true" : "false",
|
|
31
|
-
onClick:
|
|
30
|
+
onClick: o,
|
|
32
31
|
children: n
|
|
33
32
|
}
|
|
34
|
-
) : /* @__PURE__ */
|
|
35
|
-
|
|
33
|
+
) : /* @__PURE__ */ e(
|
|
34
|
+
i,
|
|
36
35
|
{
|
|
37
|
-
href:
|
|
36
|
+
href: i === "a" ? a : void 0,
|
|
37
|
+
to: i !== "a" ? a : void 0,
|
|
38
38
|
target: s,
|
|
39
|
-
className: m(
|
|
39
|
+
className: m(d({ isActive: r })),
|
|
40
40
|
"aria-disabled": r ? "true" : "false",
|
|
41
|
-
onClick:
|
|
41
|
+
onClick: o,
|
|
42
42
|
children: n
|
|
43
43
|
}
|
|
44
|
-
) }) : /* @__PURE__ */
|
|
44
|
+
) }) : /* @__PURE__ */ e("span", { className: m(k({ isActive: r })), children: n })
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
47
|
};
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
g as Item
|
|
50
50
|
};
|