@konstructio/ui 0.1.2-alpha.4 → 0.1.2-alpha.40
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-CtAG97Ts.js +99 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/chevron-down-DgT-uSF9.js +5 -0
- package/dist/chevron-left-C4LEg1fH.js +7 -0
- package/dist/chevron-up-CRyLc5Ml.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 +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +42 -44
- package/dist/components/Badge/Badge.variants.js +8 -6
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +24 -23
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.variants.js +1 -1
- package/dist/components/Card/Card.variants.js +5 -9
- package/dist/components/Checkbox/Checkbox.js +6 -6
- 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/Datepicker/DatePicker.js +1243 -1191
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +37 -31
- package/dist/components/Dropdown/Dropdown.variants.js +9 -4
- package/dist/components/Dropdown/components/List/List.js +128 -59
- package/dist/components/Dropdown/components/ListItem/ListItem.js +90 -39
- package/dist/components/Dropdown/components/Wrapper.js +141 -134
- package/dist/components/Dropdown/constants/index.js +4 -0
- package/dist/components/Dropdown/constants/pagination.js +4 -0
- package/dist/components/Dropdown/contexts/dropdown.context.js +17 -0
- package/dist/components/Dropdown/contexts/dropdown.provider.js +48 -20
- package/dist/components/Dropdown/hooks/useDropdown.js +74 -29
- package/dist/components/Dropdown/hooks/useNavigationList.js +27 -39
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.variants.js +2 -2
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.variants.js +2 -1
- 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 +34 -0
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +38 -0
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +38 -0
- package/dist/components/MultiSelectDropdown/components/List/List.js +37 -0
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +23 -0
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +105 -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/NumberInput/NumberInput.js +2 -2
- 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 +27 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +629 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +36 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
- package/dist/components/PhoneNumberInput/components/Wrapper.js +625 -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 +647 -664
- package/dist/components/RadioCard/RadioCard.variants.js +1 -6
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Sidebar/Sidebar.variants.js +2 -2
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -28
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +8 -8
- package/dist/components/Switch/Switch.variants.js +4 -4
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +1 -1
- 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.variants.js +2 -2
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Toast/Toast.js +283 -255
- 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.variants.js +18 -23
- package/dist/components/VirtualizedTable/VirtualizedTable.js +121 -0
- package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +5 -0
- package/dist/components/VirtualizedTable/assets/chevron-down.js +25 -0
- package/dist/components/VirtualizedTable/assets/chevron-up.js +25 -0
- package/dist/components/VirtualizedTable/assets/index.js +6 -0
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +72 -0
- package/dist/components/VirtualizedTable/components/Body/Body.js +51 -0
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +165 -0
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +34 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +93 -0
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +48 -0
- package/dist/components/VirtualizedTable/components/Header/Header.js +84 -0
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +53 -0
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +67 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +34 -0
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +27 -0
- package/dist/components/VirtualizedTable/components/index.js +16 -0
- package/dist/components/VirtualizedTable/constants/index.js +5 -0
- package/dist/components/VirtualizedTable/constants/pagination.js +5 -0
- package/dist/components/VirtualizedTable/contexts/index.js +8 -0
- package/dist/components/VirtualizedTable/contexts/table.context.js +32 -0
- package/dist/components/VirtualizedTable/contexts/table.hook.js +11 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +85 -0
- package/dist/components/index.js +88 -80
- package/dist/contexts/theme.provider.js +0 -1
- package/dist/{createLucideIcon-DbC6TvM5.js → createLucideIcon-D4r5Phnh.js} +0 -24
- package/dist/debounce-BFejQm9P.js +200 -0
- package/dist/ellipsis-vertical-BVPtjl5f.js +9 -0
- package/dist/{index-h-Ul0anl.js → index--V_ZsiQe.js} +1 -22
- package/dist/index-2hB40Iuc.js +1873 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/{index-bwWKd82e.js → index-BbQkJE5L.js} +1 -1
- package/dist/index-BtQfgaSF.js +60 -0
- package/dist/index-C3tHPg8y.js +662 -0
- package/dist/index-C65LtGuU.js +137 -0
- package/dist/index-CIAmiWcw.js +200 -0
- package/dist/index-CSFe9uC5.js +14 -0
- package/dist/index-CSWGJT-v.js +1722 -0
- package/dist/{index-D3xzCzcO.js → index-CdwPV0FE.js} +4 -4
- package/dist/index-CigKKiZS.js +91 -0
- package/dist/{index-BAraV3ai.js → index-DH2Fnov1.js} +11 -12
- package/dist/index-DLcqcWxM.js +29 -0
- package/dist/index-Dbt2vBmS.js +136 -0
- package/dist/{index-DB2XhXHn.js → index-DpW9ExsS.js} +7 -7
- package/dist/index-DrWQH0QF.js +55 -0
- package/dist/index-Ds6U2x4Z.js +479 -0
- package/dist/{index-C1g_chDT.js → index-mPY_8Y5v.js} +2 -2
- package/dist/index-ohdbKsws.js +27 -0
- package/dist/index.d.ts +232 -23
- package/dist/index.js +112 -102
- package/dist/libphonenumber-_7ZyKWA7.js +11549 -0
- package/dist/loader-juvMSJ9L.js +5 -0
- package/dist/package.json +48 -34
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +191 -167
- package/dist/{useBreadcrumb-B8DnuqkR.js → useBreadcrumb-BAHbGQ_O.js} +0 -10
- package/dist/utils/index.js +534 -501
- package/dist/{x-BPcqkRZd.js → x-DPU9OdYH.js} +1 -1
- package/package.json +48 -34
- package/dist/Modal-V67Uz78z.js +0 -98
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/chevron-down-BLZPftpV.js +0 -11
- package/dist/index-BXuxPoz7.js +0 -435
- package/dist/index-BfXxHr_2.js +0 -125
- package/dist/index-C9T9HQaa.js +0 -423
- package/dist/index-CZnD2QxM.js +0 -32
- package/dist/index-CrBonFvu.js +0 -144
- package/dist/index-Cvx4lqTq.js +0 -47
- package/dist/index-DQH6odE9.js +0 -82
- package/dist/index-Oq5GlCHP.js +0 -131
- package/dist/index-iXyXtdgP.js +0 -31
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { S as k } from "../../index-
|
|
2
|
+
import { S as k } from "../../index-BtQfgaSF.js";
|
|
3
3
|
import { useState as x, useCallback as C } from "react";
|
|
4
4
|
import { cn as r } from "../../utils/index.js";
|
|
5
5
|
import { Radio as G } from "../Radio/Radio.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { R as g, T as R, a as V, b as c } from "../../index-
|
|
2
|
+
import { R as g, T as R, a as V, b as c } from "../../index-DpW9ExsS.js";
|
|
3
3
|
import { forwardRef as v, useRef as b, useState as j, useImperativeHandle as k, useEffect as w, useCallback as y } from "react";
|
|
4
4
|
import { cn as a } from "../../utils/index.js";
|
|
5
5
|
import { rangeOutsideVariants as C, trackVariants as T, thumbVariants as i, rangeVariants as S } from "./Range.variants.js";
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { Footer as
|
|
2
|
-
import { Logo as
|
|
3
|
-
import { Navigation as
|
|
1
|
+
import { Footer as b } from "../Footer/Footer.js";
|
|
2
|
+
import { Logo as C } from "../Logo/Logo.js";
|
|
3
|
+
import { Navigation as D } from "../Navigation/Navigation.js";
|
|
4
4
|
import "../NavigationGroup/NavigationGroup.js";
|
|
5
5
|
import "../NavigationOption/NavigationOption.js";
|
|
6
6
|
import "../NavigationSeparator/NavigationSeparator.js";
|
|
7
7
|
import "../NavigationTitle/NavigationTitle.js";
|
|
8
|
-
import { jsxs as
|
|
8
|
+
import { jsxs as V, jsx as j } from "react/jsx-runtime";
|
|
9
9
|
import { useRef as d, useCallback as f, useMemo as s, Children as a, isValidElement as l } from "react";
|
|
10
10
|
import { cn as y } from "../../../../utils/index.js";
|
|
11
|
-
import { dragVariants as
|
|
12
|
-
const
|
|
11
|
+
import { dragVariants as x, wrapperSiderbarVariants as z } from "../../Sidebar.variants.js";
|
|
12
|
+
const S = ({
|
|
13
13
|
canResize: g = !0,
|
|
14
14
|
children: v,
|
|
15
|
+
dividerClassName: L,
|
|
15
16
|
maxWith: i = 300,
|
|
16
17
|
minWith: m = 240,
|
|
17
|
-
theme:
|
|
18
|
-
wrapperClassName:
|
|
18
|
+
theme: M,
|
|
19
|
+
wrapperClassName: N
|
|
19
20
|
}) => {
|
|
20
|
-
const r = d(null),
|
|
21
|
+
const r = d(null), c = d(null), u = d(!1), n = f(
|
|
21
22
|
(e) => {
|
|
22
|
-
if (!
|
|
23
|
+
if (!u.current) {
|
|
23
24
|
r.current && (r.current.style.opacity = "0");
|
|
24
25
|
return;
|
|
25
26
|
}
|
|
26
27
|
let o = e.clientX;
|
|
27
|
-
o < m && (o = m), o > i && (o = i),
|
|
28
|
+
o < m && (o = m), o > i && (o = i), c.current && r.current && (c.current.style.width = `${o}px`, r.current.classList.add("opacity-100"));
|
|
28
29
|
},
|
|
29
30
|
[i, m]
|
|
30
31
|
), p = f(() => {
|
|
31
|
-
|
|
32
|
+
u.current = !1, r.current && r.current.classList.remove("opacity-100"), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", p);
|
|
32
33
|
}, [n]), w = f(
|
|
33
34
|
(e) => {
|
|
34
|
-
e.preventDefault(), e.stopPropagation(),
|
|
35
|
+
e.preventDefault(), e.stopPropagation(), u.current = !0, document.addEventListener("mousemove", n), document.addEventListener("mouseup", p);
|
|
35
36
|
},
|
|
36
37
|
[n, p]
|
|
37
38
|
), t = s(
|
|
@@ -39,39 +40,39 @@ const z = ({
|
|
|
39
40
|
[v]
|
|
40
41
|
), E = s(
|
|
41
42
|
() => a.toArray(t).find(
|
|
42
|
-
(e) => l(e) && e.type ===
|
|
43
|
+
(e) => l(e) && e.type === C
|
|
43
44
|
),
|
|
44
45
|
[t]
|
|
45
|
-
),
|
|
46
|
+
), R = s(
|
|
46
47
|
() => a.toArray(t).find(
|
|
47
|
-
(e) => l(e) && e.type ===
|
|
48
|
+
(e) => l(e) && e.type === D
|
|
48
49
|
),
|
|
49
50
|
[t]
|
|
50
|
-
),
|
|
51
|
+
), A = s(
|
|
51
52
|
() => a.toArray(t).find(
|
|
52
|
-
(e) => l(e) && e.type ===
|
|
53
|
+
(e) => l(e) && e.type === b
|
|
53
54
|
),
|
|
54
55
|
[t]
|
|
55
56
|
);
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ V(
|
|
57
58
|
"aside",
|
|
58
59
|
{
|
|
59
|
-
ref:
|
|
60
|
+
ref: c,
|
|
60
61
|
className: y(
|
|
61
|
-
|
|
62
|
-
className:
|
|
62
|
+
z({
|
|
63
|
+
className: N
|
|
63
64
|
})
|
|
64
65
|
),
|
|
65
|
-
"data-theme":
|
|
66
|
+
"data-theme": M,
|
|
66
67
|
children: [
|
|
67
68
|
E,
|
|
68
|
-
N,
|
|
69
69
|
R,
|
|
70
|
-
|
|
70
|
+
A,
|
|
71
|
+
g && /* @__PURE__ */ j(
|
|
71
72
|
"div",
|
|
72
73
|
{
|
|
73
74
|
ref: r,
|
|
74
|
-
className: y(
|
|
75
|
+
className: y(x({ className: L })),
|
|
75
76
|
onMouseDown: w
|
|
76
77
|
}
|
|
77
78
|
)
|
|
@@ -79,7 +80,7 @@ const z = ({
|
|
|
79
80
|
}
|
|
80
81
|
);
|
|
81
82
|
};
|
|
82
|
-
|
|
83
|
+
S.displayName = "Sidebar.Wrapper";
|
|
83
84
|
export {
|
|
84
|
-
|
|
85
|
+
S as Wrapper
|
|
85
86
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { R as x, T as N, b as v } from "../../index-
|
|
2
|
+
import { R as x, T as N, b as v } from "../../index-DpW9ExsS.js";
|
|
3
3
|
import { forwardRef as V, useRef as b, useState as R, useImperativeHandle as g, useEffect as j, useCallback as k } from "react";
|
|
4
4
|
import { cn as r } from "../../utils/index.js";
|
|
5
5
|
import { trackVariants as w, thumbVariants as y, sliderVariants as C } from "./Slider.variants.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as C, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import * as h from "react";
|
|
3
3
|
import { forwardRef as H, useRef as M, useId as $, useImperativeHandle as j, useEffect as z } from "react";
|
|
4
|
-
import { a as A, c as U, b as q } from "../../index-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as F
|
|
7
|
-
import {
|
|
4
|
+
import { a as A, c as U, P as N, b as q } from "../../index-CIAmiWcw.js";
|
|
5
|
+
import { u as P } from "../../index-DLcqcWxM.js";
|
|
6
|
+
import { u as F } from "../../index-BZPx6jYI.js";
|
|
7
|
+
import { u as L } from "../../index-ohdbKsws.js";
|
|
8
8
|
import { cn as R } from "../../utils/index.js";
|
|
9
9
|
import { thumbVariants as O, switchVariants as V } from "./Switch.variants.js";
|
|
10
10
|
var b = "Switch", [D, se] = U(b), [W, X] = D(b), y = h.forwardRef(
|
|
@@ -20,7 +20,7 @@ var b = "Switch", [D, se] = U(b), [W, X] = D(b), y = h.forwardRef(
|
|
|
20
20
|
onCheckedChange: m,
|
|
21
21
|
form: n,
|
|
22
22
|
...a
|
|
23
|
-
} = e, [p, f] = h.useState(null), w =
|
|
23
|
+
} = e, [p, f] = h.useState(null), w = P(l, (v) => f(v)), x = h.useRef(!1), k = p ? n || !!p.closest("form") : !0, [S, B] = A({
|
|
24
24
|
prop: o,
|
|
25
25
|
defaultProp: d ?? !1,
|
|
26
26
|
onChange: m,
|
|
@@ -28,7 +28,7 @@ var b = "Switch", [D, se] = U(b), [W, X] = D(b), y = h.forwardRef(
|
|
|
28
28
|
});
|
|
29
29
|
return /* @__PURE__ */ C(W, { scope: t, checked: S, disabled: r, children: [
|
|
30
30
|
/* @__PURE__ */ i(
|
|
31
|
-
|
|
31
|
+
N.button,
|
|
32
32
|
{
|
|
33
33
|
type: "button",
|
|
34
34
|
role: "switch",
|
|
@@ -67,7 +67,7 @@ var g = "SwitchThumb", E = h.forwardRef(
|
|
|
67
67
|
(e, l) => {
|
|
68
68
|
const { __scopeSwitch: t, ...s } = e, o = X(g, t);
|
|
69
69
|
return /* @__PURE__ */ i(
|
|
70
|
-
|
|
70
|
+
N.span,
|
|
71
71
|
{
|
|
72
72
|
"data-state": I(o.checked),
|
|
73
73
|
"data-disabled": o.disabled ? "" : void 0,
|
|
@@ -86,7 +86,7 @@ var G = "SwitchBubbleInput", _ = h.forwardRef(
|
|
|
86
86
|
bubbles: s = !0,
|
|
87
87
|
...o
|
|
88
88
|
}, d) => {
|
|
89
|
-
const u = h.useRef(null), r =
|
|
89
|
+
const u = h.useRef(null), r = P(u, d), c = F(t), m = L(l);
|
|
90
90
|
return h.useEffect(() => {
|
|
91
91
|
const n = u.current;
|
|
92
92
|
if (!n) return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as a } from "../../index-D29mdTf5.js";
|
|
2
2
|
const r = a([
|
|
3
|
-
"w-
|
|
4
|
-
"h-
|
|
3
|
+
"w-10",
|
|
4
|
+
"h-5",
|
|
5
5
|
"flex",
|
|
6
6
|
"items-center",
|
|
7
7
|
"rounded-full",
|
|
@@ -17,8 +17,8 @@ const r = a([
|
|
|
17
17
|
"kubefirst:bg-kubefirst-primary"
|
|
18
18
|
]), e = a([
|
|
19
19
|
"block",
|
|
20
|
-
"w-
|
|
21
|
-
"h-
|
|
20
|
+
"w-4",
|
|
21
|
+
"h-4",
|
|
22
22
|
"bg-white",
|
|
23
23
|
"dark:bg-gray-400",
|
|
24
24
|
"dark:data-[state=checked]:bg-white",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { R as e } from "../../index-
|
|
2
|
+
import { R as e } from "../../index-DH2Fnov1.js";
|
|
3
3
|
import { cn as n } from "../../utils/index.js";
|
|
4
4
|
import { rootVariants as p } from "./Tabs.variants.js";
|
|
5
5
|
import { Content as f } from "./components/Content.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { C as a } from "../../../index-
|
|
2
|
+
import { C as a } from "../../../index-DH2Fnov1.js";
|
|
3
3
|
import { cn as m } from "../../../utils/index.js";
|
|
4
4
|
import { contentVariants as s } from "../Tabs.variants.js";
|
|
5
5
|
const e = ({ children: t, className: o, ...n }) => /* @__PURE__ */ r(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { L as n } from "../../../index-
|
|
2
|
+
import { L as n } from "../../../index-DH2Fnov1.js";
|
|
3
3
|
import { cn as a } from "../../../utils/index.js";
|
|
4
4
|
import { listVariants as s } from "../Tabs.variants.js";
|
|
5
5
|
const c = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { T as e } from "../../../index-
|
|
2
|
+
import { T as e } from "../../../index-DH2Fnov1.js";
|
|
3
3
|
import { Typography as m } from "../../Typography/Typography.js";
|
|
4
4
|
import { cn as n } from "../../../utils/index.js";
|
|
5
5
|
import { triggerVariants as p } from "../Tabs.variants.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as n, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { S as r } from "../../index-
|
|
2
|
+
import { S as r } from "../../index-BtQfgaSF.js";
|
|
3
3
|
import { cn as o } from "../../utils/index.js";
|
|
4
4
|
import { tagVariants as c } from "./Tag.variants.js";
|
|
5
5
|
const u = ({
|
|
@@ -15,6 +15,7 @@ const f = e(
|
|
|
15
15
|
variants: {
|
|
16
16
|
color: {
|
|
17
17
|
gray: ["bg-[#f4f4f5]", "text-[#71717a]"],
|
|
18
|
+
"gray-800": ["bg-gray-100", "text-gray-800"],
|
|
18
19
|
cyan: ["bg-[#ecfeff]", "text-[#0e7490]"],
|
|
19
20
|
gold: ["bg-[#fef9c3]", "text-[#a16207]"],
|
|
20
21
|
green: ["bg-[#dcfce7]", "text-[#15803d]"],
|
|
@@ -1,135 +1,86 @@
|
|
|
1
1
|
import "../Item/Item.js";
|
|
2
|
-
import { List as
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import
|
|
5
|
-
import { Tag as
|
|
6
|
-
import { cn as
|
|
7
|
-
import { useTagSelect as
|
|
8
|
-
import { labelVariants as
|
|
9
|
-
import { X as
|
|
10
|
-
import {
|
|
11
|
-
import { useTagSelect as
|
|
12
|
-
|
|
13
|
-
return u = Object.assign || function(e) {
|
|
14
|
-
for (var o = 1; o < arguments.length; o++) {
|
|
15
|
-
var t = arguments[o];
|
|
16
|
-
for (var r in t)
|
|
17
|
-
Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
|
|
18
|
-
}
|
|
19
|
-
return e;
|
|
20
|
-
}, u.apply(this, arguments);
|
|
21
|
-
}
|
|
22
|
-
function L(e, o) {
|
|
23
|
-
if (e == null) return {};
|
|
24
|
-
var t = W(e, o), r, n;
|
|
25
|
-
if (Object.getOwnPropertySymbols) {
|
|
26
|
-
var a = Object.getOwnPropertySymbols(e);
|
|
27
|
-
for (n = 0; n < a.length; n++)
|
|
28
|
-
r = a[n], !(o.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (t[r] = e[r]);
|
|
29
|
-
}
|
|
30
|
-
return t;
|
|
31
|
-
}
|
|
32
|
-
function W(e, o) {
|
|
33
|
-
if (e == null) return {};
|
|
34
|
-
var t = {}, r = Object.keys(e), n, a;
|
|
35
|
-
for (a = 0; a < r.length; a++)
|
|
36
|
-
n = r[a], !(o.indexOf(n) >= 0) && (t[n] = e[n]);
|
|
37
|
-
return t;
|
|
38
|
-
}
|
|
39
|
-
var d = w(function(e, o) {
|
|
40
|
-
var t = e.color, r = t === void 0 ? "currentColor" : t, n = e.size, a = n === void 0 ? 24 : n, c = L(e, ["color", "size"]);
|
|
41
|
-
return /* @__PURE__ */ b.createElement("svg", u({
|
|
42
|
-
ref: o,
|
|
43
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
44
|
-
width: a,
|
|
45
|
-
height: a,
|
|
46
|
-
viewBox: "0 0 24 24",
|
|
47
|
-
fill: "none",
|
|
48
|
-
stroke: r,
|
|
49
|
-
strokeWidth: "2",
|
|
50
|
-
strokeLinecap: "round",
|
|
51
|
-
strokeLinejoin: "round"
|
|
52
|
-
}, c), /* @__PURE__ */ b.createElement("polyline", {
|
|
53
|
-
points: "18 15 12 9 6 15"
|
|
54
|
-
}));
|
|
55
|
-
});
|
|
56
|
-
d.propTypes = {
|
|
57
|
-
color: p.string,
|
|
58
|
-
size: p.oneOfType([p.string, p.number])
|
|
59
|
-
};
|
|
60
|
-
d.displayName = "ChevronUp";
|
|
61
|
-
const G = w(
|
|
2
|
+
import { List as g } from "../List/List.js";
|
|
3
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
4
|
+
import { forwardRef as w, useId as T, useImperativeHandle as b } from "react";
|
|
5
|
+
import { Tag as C } from "../../../Tag/Tag.js";
|
|
6
|
+
import { cn as r } from "../../../../utils/index.js";
|
|
7
|
+
import { useTagSelect as S } from "../../hooks/useTagSelect.js";
|
|
8
|
+
import { labelVariants as k, tagSelectVariants as R, wrapperVariants as I } from "../../TagSelect.variants.js";
|
|
9
|
+
import { X as O } from "../../../../x-DPU9OdYH.js";
|
|
10
|
+
import { C as V } from "../../../../chevron-up-CRyLc5Ml.js";
|
|
11
|
+
import { useTagSelect as j } from "../../contexts/TagSelect.hook.js";
|
|
12
|
+
const B = w(
|
|
62
13
|
({
|
|
63
|
-
label:
|
|
64
|
-
labelClassName:
|
|
14
|
+
label: o,
|
|
15
|
+
labelClassName: c,
|
|
65
16
|
name: t,
|
|
66
|
-
placeholder:
|
|
67
|
-
theme:
|
|
68
|
-
wrapperClassName:
|
|
69
|
-
},
|
|
70
|
-
const
|
|
71
|
-
return
|
|
17
|
+
placeholder: p = "Select a value...",
|
|
18
|
+
theme: d,
|
|
19
|
+
wrapperClassName: f
|
|
20
|
+
}, h) => {
|
|
21
|
+
const i = T(), { selectedTags: n, isOpen: s, onOpen: u, onRemoveTag: x, inputRef: l } = j(), { wrapperRef: N, handleOpen: v } = S();
|
|
22
|
+
return b(h, () => l.current, [l]), /* @__PURE__ */ m(
|
|
72
23
|
"div",
|
|
73
24
|
{
|
|
74
|
-
ref:
|
|
75
|
-
className:
|
|
76
|
-
|
|
77
|
-
className:
|
|
25
|
+
ref: N,
|
|
26
|
+
className: r(
|
|
27
|
+
I({
|
|
28
|
+
className: f
|
|
78
29
|
})
|
|
79
30
|
),
|
|
80
|
-
"data-theme":
|
|
31
|
+
"data-theme": d,
|
|
81
32
|
children: [
|
|
82
|
-
|
|
33
|
+
o ? /* @__PURE__ */ e(
|
|
83
34
|
"label",
|
|
84
35
|
{
|
|
85
|
-
htmlFor: t ??
|
|
86
|
-
className:
|
|
87
|
-
|
|
88
|
-
className:
|
|
36
|
+
htmlFor: t ?? i,
|
|
37
|
+
className: r(
|
|
38
|
+
k({
|
|
39
|
+
className: c
|
|
89
40
|
})
|
|
90
41
|
),
|
|
91
|
-
onClick: () =>
|
|
92
|
-
children:
|
|
42
|
+
onClick: () => u(!0),
|
|
43
|
+
children: o
|
|
93
44
|
}
|
|
94
45
|
) : null,
|
|
95
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ m(
|
|
96
47
|
"div",
|
|
97
48
|
{
|
|
98
|
-
id: t ??
|
|
99
|
-
className:
|
|
49
|
+
id: t ?? i,
|
|
50
|
+
className: r(R()),
|
|
100
51
|
role: "combobox",
|
|
101
|
-
onClick:
|
|
102
|
-
"aria-expanded":
|
|
52
|
+
onClick: v,
|
|
53
|
+
"aria-expanded": s,
|
|
103
54
|
children: [
|
|
104
|
-
|
|
105
|
-
|
|
55
|
+
n.length === 0 ? /* @__PURE__ */ e("span", { className: "text-base text-inherit select-none", children: p }) : /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1.5", children: n.map((a) => /* @__PURE__ */ e(
|
|
56
|
+
C,
|
|
106
57
|
{
|
|
107
|
-
...
|
|
58
|
+
...a,
|
|
108
59
|
className: "select-none",
|
|
109
|
-
rightIcon: /* @__PURE__ */
|
|
110
|
-
"data-value":
|
|
60
|
+
rightIcon: /* @__PURE__ */ e(O, { className: "w-3 h-3", onClick: () => x(a) }),
|
|
61
|
+
"data-value": a.label
|
|
111
62
|
},
|
|
112
|
-
|
|
63
|
+
a.id
|
|
113
64
|
)) }),
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
|
|
65
|
+
/* @__PURE__ */ e(
|
|
66
|
+
V,
|
|
116
67
|
{
|
|
117
|
-
className:
|
|
68
|
+
className: r(
|
|
118
69
|
"w-4 h-4 text-inherit transition-all duration-50 shrink-0",
|
|
119
|
-
|
|
70
|
+
s ? "rotate-0" : "rotate-180"
|
|
120
71
|
)
|
|
121
72
|
}
|
|
122
73
|
)
|
|
123
74
|
]
|
|
124
75
|
}
|
|
125
76
|
),
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
|
|
77
|
+
/* @__PURE__ */ e("input", { ref: l, type: "text", name: t, className: "hidden" }),
|
|
78
|
+
s ? /* @__PURE__ */ e(g, {}) : null
|
|
128
79
|
]
|
|
129
80
|
}
|
|
130
81
|
);
|
|
131
82
|
}
|
|
132
83
|
);
|
|
133
84
|
export {
|
|
134
|
-
|
|
85
|
+
B as Wrapper
|
|
135
86
|
};
|
|
@@ -3,7 +3,7 @@ import { useId as N, useState as y, useRef as E, useCallback as O, useEffect as
|
|
|
3
3
|
import { cn as m } from "../../../../utils/index.js";
|
|
4
4
|
import { timePickerVariants as L } from "../../TimePicker.variants.js";
|
|
5
5
|
import { WrapperList as j } from "../WrapperList/WrapperList.js";
|
|
6
|
-
import { C as P } from "../../../../chevron-down-
|
|
6
|
+
import { C as P } from "../../../../chevron-down-DgT-uSF9.js";
|
|
7
7
|
import { useTimePickerContext as R } from "../../contexts/time-picker.hook.js";
|
|
8
8
|
const V = ({
|
|
9
9
|
name: d,
|
|
@@ -35,7 +35,7 @@ const V = ({
|
|
|
35
35
|
ref: l,
|
|
36
36
|
className: m(
|
|
37
37
|
"w-max text-slate-800 text-sm flex flex-col gap-2",
|
|
38
|
-
g === "12" ? "w-
|
|
38
|
+
g === "12" ? "w-52" : "w-[140px]"
|
|
39
39
|
),
|
|
40
40
|
children: [
|
|
41
41
|
i ? /* @__PURE__ */ t("label", { htmlFor: s, className: "text-slate-500 font-medium", children: [
|