@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
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { a as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import { cn as
|
|
10
|
-
import { thumbVariants as
|
|
11
|
-
var
|
|
12
|
-
(
|
|
1
|
+
import { jsxs as y, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { forwardRef as M, useRef as $, useId as j, useImperativeHandle as z, useEffect as A } from "react";
|
|
4
|
+
import { a as U, c as q, P as N, b as F } from "../../index-DKfEnhKr.js";
|
|
5
|
+
import { u as P } from "../../index-DLcqcWxM.js";
|
|
6
|
+
import { u as L } from "../../index-BZPx6jYI.js";
|
|
7
|
+
import { u as O } from "../../index-DtEcCIrM.js";
|
|
8
|
+
import { Typography as R } from "../Typography/Typography.js";
|
|
9
|
+
import { cn as C } from "../../utils/index.js";
|
|
10
|
+
import { thumbVariants as V, switchVariants as D } from "./Switch.variants.js";
|
|
11
|
+
var k = "Switch", [W, ne] = q(k), [X, G] = W(k), g = p.forwardRef(
|
|
12
|
+
(o, d) => {
|
|
13
13
|
const {
|
|
14
|
-
__scopeSwitch:
|
|
15
|
-
name:
|
|
16
|
-
checked:
|
|
17
|
-
defaultChecked:
|
|
18
|
-
required:
|
|
19
|
-
disabled:
|
|
20
|
-
value:
|
|
21
|
-
onCheckedChange:
|
|
22
|
-
form:
|
|
23
|
-
...
|
|
24
|
-
} =
|
|
25
|
-
prop:
|
|
26
|
-
defaultProp:
|
|
27
|
-
onChange:
|
|
28
|
-
caller:
|
|
14
|
+
__scopeSwitch: e,
|
|
15
|
+
name: c,
|
|
16
|
+
checked: t,
|
|
17
|
+
defaultChecked: S,
|
|
18
|
+
required: r,
|
|
19
|
+
disabled: n,
|
|
20
|
+
value: a = "on",
|
|
21
|
+
onCheckedChange: v,
|
|
22
|
+
form: i,
|
|
23
|
+
...u
|
|
24
|
+
} = o, [f, m] = p.useState(null), s = P(d, (x) => m(x)), h = p.useRef(!1), b = f ? i || !!f.closest("form") : !0, [w, T] = U({
|
|
25
|
+
prop: t,
|
|
26
|
+
defaultProp: S ?? !1,
|
|
27
|
+
onChange: v,
|
|
28
|
+
caller: k
|
|
29
29
|
});
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
30
|
+
return /* @__PURE__ */ y(X, { scope: e, checked: w, disabled: n, children: [
|
|
31
|
+
/* @__PURE__ */ l(
|
|
32
|
+
N.button,
|
|
33
33
|
{
|
|
34
34
|
type: "button",
|
|
35
35
|
role: "switch",
|
|
36
|
-
"aria-checked":
|
|
37
|
-
"aria-required":
|
|
38
|
-
"data-state":
|
|
39
|
-
"data-disabled":
|
|
40
|
-
disabled:
|
|
41
|
-
value:
|
|
42
|
-
...
|
|
43
|
-
ref:
|
|
44
|
-
onClick:
|
|
45
|
-
|
|
36
|
+
"aria-checked": w,
|
|
37
|
+
"aria-required": r,
|
|
38
|
+
"data-state": B(w),
|
|
39
|
+
"data-disabled": n ? "" : void 0,
|
|
40
|
+
disabled: n,
|
|
41
|
+
value: a,
|
|
42
|
+
...u,
|
|
43
|
+
ref: s,
|
|
44
|
+
onClick: F(o.onClick, (x) => {
|
|
45
|
+
T((H) => !H), b && (h.current = x.isPropagationStopped(), h.current || x.stopPropagation());
|
|
46
46
|
})
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
b && /* @__PURE__ */ l(
|
|
50
|
+
I,
|
|
51
51
|
{
|
|
52
|
-
control:
|
|
53
|
-
bubbles: !
|
|
54
|
-
name:
|
|
55
|
-
value:
|
|
56
|
-
checked:
|
|
57
|
-
required:
|
|
58
|
-
disabled:
|
|
59
|
-
form:
|
|
52
|
+
control: f,
|
|
53
|
+
bubbles: !h.current,
|
|
54
|
+
name: c,
|
|
55
|
+
value: a,
|
|
56
|
+
checked: w,
|
|
57
|
+
required: r,
|
|
58
|
+
disabled: n,
|
|
59
|
+
form: i,
|
|
60
60
|
style: { transform: "translateX(-100%)" }
|
|
61
61
|
}
|
|
62
62
|
)
|
|
63
63
|
] });
|
|
64
64
|
}
|
|
65
65
|
);
|
|
66
|
-
|
|
67
|
-
var
|
|
68
|
-
(
|
|
69
|
-
const { __scopeSwitch:
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
|
|
66
|
+
g.displayName = k;
|
|
67
|
+
var E = "SwitchThumb", _ = p.forwardRef(
|
|
68
|
+
(o, d) => {
|
|
69
|
+
const { __scopeSwitch: e, ...c } = o, t = G(E, e);
|
|
70
|
+
return /* @__PURE__ */ l(
|
|
71
|
+
N.span,
|
|
72
72
|
{
|
|
73
|
-
"data-state":
|
|
74
|
-
"data-disabled":
|
|
75
|
-
...
|
|
76
|
-
ref:
|
|
73
|
+
"data-state": B(t.checked),
|
|
74
|
+
"data-disabled": t.disabled ? "" : void 0,
|
|
75
|
+
...c,
|
|
76
|
+
ref: d
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
|
-
|
|
82
|
-
var
|
|
81
|
+
_.displayName = E;
|
|
82
|
+
var J = "SwitchBubbleInput", I = p.forwardRef(
|
|
83
83
|
({
|
|
84
|
-
__scopeSwitch:
|
|
85
|
-
control:
|
|
86
|
-
checked:
|
|
87
|
-
bubbles:
|
|
88
|
-
...
|
|
89
|
-
},
|
|
90
|
-
const
|
|
91
|
-
return
|
|
92
|
-
const
|
|
93
|
-
if (!
|
|
94
|
-
const
|
|
95
|
-
|
|
84
|
+
__scopeSwitch: o,
|
|
85
|
+
control: d,
|
|
86
|
+
checked: e,
|
|
87
|
+
bubbles: c = !0,
|
|
88
|
+
...t
|
|
89
|
+
}, S) => {
|
|
90
|
+
const r = p.useRef(null), n = P(r, S), a = L(e), v = O(d);
|
|
91
|
+
return p.useEffect(() => {
|
|
92
|
+
const i = r.current;
|
|
93
|
+
if (!i) return;
|
|
94
|
+
const u = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(
|
|
95
|
+
u,
|
|
96
96
|
"checked"
|
|
97
97
|
).set;
|
|
98
|
-
if (
|
|
99
|
-
const
|
|
100
|
-
|
|
98
|
+
if (a !== e && m) {
|
|
99
|
+
const s = new Event("click", { bubbles: c });
|
|
100
|
+
m.call(i, e), i.dispatchEvent(s);
|
|
101
101
|
}
|
|
102
|
-
}, [
|
|
102
|
+
}, [a, e, c]), /* @__PURE__ */ l(
|
|
103
103
|
"input",
|
|
104
104
|
{
|
|
105
105
|
type: "checkbox",
|
|
106
106
|
"aria-hidden": !0,
|
|
107
|
-
defaultChecked:
|
|
108
|
-
...
|
|
107
|
+
defaultChecked: e,
|
|
108
|
+
...t,
|
|
109
109
|
tabIndex: -1,
|
|
110
|
-
ref:
|
|
110
|
+
ref: n,
|
|
111
111
|
style: {
|
|
112
|
-
...
|
|
113
|
-
...
|
|
112
|
+
...t.style,
|
|
113
|
+
...v,
|
|
114
114
|
position: "absolute",
|
|
115
115
|
pointerEvents: "none",
|
|
116
116
|
opacity: 0,
|
|
@@ -120,72 +120,99 @@ var G = "SwitchBubbleInput", _ = h.forwardRef(
|
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
122
|
);
|
|
123
|
-
|
|
124
|
-
function
|
|
125
|
-
return
|
|
123
|
+
I.displayName = J;
|
|
124
|
+
function B(o) {
|
|
125
|
+
return o ? "checked" : "unchecked";
|
|
126
126
|
}
|
|
127
|
-
var
|
|
128
|
-
const
|
|
127
|
+
var K = g, Q = _;
|
|
128
|
+
const ie = M(
|
|
129
129
|
({
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
130
|
+
alignment: o = "horizontal",
|
|
131
|
+
className: d,
|
|
132
|
+
defaultChecked: e,
|
|
133
|
+
disabled: c = !1,
|
|
134
|
+
helperText: t,
|
|
135
|
+
helperTextClassName: S,
|
|
136
|
+
label: r,
|
|
137
|
+
labelClassName: n,
|
|
138
|
+
name: a,
|
|
139
|
+
theme: v,
|
|
140
|
+
thumbClassName: i,
|
|
141
|
+
value: u,
|
|
142
|
+
onChange: f
|
|
143
|
+
}, m) => {
|
|
144
|
+
const s = $(null), h = j(), b = a ? `${h}-${a}` : h;
|
|
145
|
+
return z(m, () => s.current, [s]), A(() => {
|
|
146
|
+
s.current && (s.current.value = `${u}`);
|
|
147
|
+
}, [u]), /* @__PURE__ */ y(
|
|
145
148
|
"div",
|
|
146
149
|
{
|
|
147
|
-
className:
|
|
148
|
-
"w-full
|
|
149
|
-
|
|
150
|
+
className: C(
|
|
151
|
+
"w-full",
|
|
152
|
+
"flex",
|
|
153
|
+
"gap-3",
|
|
154
|
+
o === "vertical" ? "flex-col" : "flex-row"
|
|
150
155
|
),
|
|
151
|
-
"data-theme":
|
|
156
|
+
"data-theme": v,
|
|
152
157
|
children: [
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
|
|
158
|
+
/* @__PURE__ */ l(
|
|
159
|
+
K,
|
|
155
160
|
{
|
|
156
|
-
id:
|
|
157
|
-
defaultChecked:
|
|
158
|
-
checked:
|
|
159
|
-
onCheckedChange: (w) =>
|
|
160
|
-
className:
|
|
161
|
-
"aria-label":
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
id: b,
|
|
162
|
+
defaultChecked: e,
|
|
163
|
+
checked: u,
|
|
164
|
+
onCheckedChange: (w) => f?.(w),
|
|
165
|
+
className: C(D({ className: d })),
|
|
166
|
+
"aria-label": r,
|
|
167
|
+
disabled: c,
|
|
168
|
+
children: /* @__PURE__ */ l(
|
|
169
|
+
Q,
|
|
164
170
|
{
|
|
165
|
-
className:
|
|
166
|
-
className:
|
|
171
|
+
className: V({
|
|
172
|
+
className: i
|
|
167
173
|
})
|
|
168
174
|
}
|
|
169
175
|
)
|
|
170
176
|
}
|
|
171
177
|
),
|
|
172
|
-
|
|
173
|
-
|
|
178
|
+
r ? /* @__PURE__ */ y(
|
|
179
|
+
R,
|
|
174
180
|
{
|
|
175
|
-
|
|
176
|
-
|
|
181
|
+
component: "label",
|
|
182
|
+
className: C(
|
|
183
|
+
"flex",
|
|
184
|
+
"flex-col",
|
|
185
|
+
"text-sm",
|
|
186
|
+
"dark:text-white",
|
|
187
|
+
"select-none",
|
|
188
|
+
n
|
|
189
|
+
),
|
|
190
|
+
htmlFor: b,
|
|
177
191
|
style: { paddingRight: 15 },
|
|
178
192
|
children: [
|
|
179
|
-
|
|
180
|
-
|
|
193
|
+
r,
|
|
194
|
+
t ? /* @__PURE__ */ l(
|
|
195
|
+
R,
|
|
196
|
+
{
|
|
197
|
+
component: "span",
|
|
198
|
+
className: C(
|
|
199
|
+
"text-xs",
|
|
200
|
+
"select-none",
|
|
201
|
+
"text-slate-600",
|
|
202
|
+
"dark:text-metal-400",
|
|
203
|
+
S
|
|
204
|
+
),
|
|
205
|
+
children: t
|
|
206
|
+
}
|
|
207
|
+
) : null
|
|
181
208
|
]
|
|
182
209
|
}
|
|
183
210
|
) : null,
|
|
184
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ l(
|
|
185
212
|
"input",
|
|
186
213
|
{
|
|
187
|
-
ref:
|
|
188
|
-
name:
|
|
214
|
+
ref: s,
|
|
215
|
+
name: a,
|
|
189
216
|
type: "text",
|
|
190
217
|
className: "hidden",
|
|
191
218
|
"aria-hidden": "true"
|
|
@@ -197,5 +224,5 @@ const ne = H(
|
|
|
197
224
|
}
|
|
198
225
|
);
|
|
199
226
|
export {
|
|
200
|
-
|
|
227
|
+
ie as Switch
|
|
201
228
|
};
|
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
import { c as a } from "../../index-D29mdTf5.js";
|
|
2
|
-
const
|
|
3
|
-
"w-
|
|
4
|
-
"h-
|
|
2
|
+
const t = a([
|
|
3
|
+
"w-10",
|
|
4
|
+
"h-5",
|
|
5
5
|
"flex",
|
|
6
6
|
"items-center",
|
|
7
7
|
"rounded-full",
|
|
8
8
|
"shadow",
|
|
9
9
|
"focus:shadow-md",
|
|
10
10
|
"data-[state=unchecked]:bg-gray-300",
|
|
11
|
-
"dark:data-[state=unchecked]:bg-
|
|
11
|
+
"dark:data-[state=unchecked]:bg-metal-600",
|
|
12
12
|
"transition-all",
|
|
13
13
|
"delay-10",
|
|
14
14
|
"duration-250",
|
|
15
15
|
"cursor-pointer",
|
|
16
16
|
"bg-aurora-500",
|
|
17
|
-
"kubefirst:bg-kubefirst-primary"
|
|
18
|
-
]
|
|
17
|
+
"kubefirst:bg-kubefirst-primary",
|
|
18
|
+
"[&+label,&+span]:cursor-pointer",
|
|
19
|
+
"disabled:[&+label,&+span,&]:cursor-not-allowed",
|
|
20
|
+
"disabled:bg-gray-200",
|
|
21
|
+
"disabled:data-[state=unchecked]:[&>span]:bg-white",
|
|
22
|
+
"disabled:data-[state=unchecked]:bg-gray-200",
|
|
23
|
+
"dark:disabled:bg-metal-700",
|
|
24
|
+
"dark:disabled:data-[state=unchecked]:[&>span]:bg-metal-600",
|
|
25
|
+
"dark:disabled:data-[state=unchecked]:bg-metal-700",
|
|
26
|
+
"dark:disabled:[&>span]:bg-metal-600"
|
|
27
|
+
]), d = a([
|
|
19
28
|
"block",
|
|
20
|
-
"w-
|
|
21
|
-
"h-
|
|
29
|
+
"w-4",
|
|
30
|
+
"h-4",
|
|
22
31
|
"bg-white",
|
|
23
32
|
"dark:bg-gray-400",
|
|
24
33
|
"dark:data-[state=checked]:bg-white",
|
|
@@ -31,6 +40,6 @@ const r = a([
|
|
|
31
40
|
"duration-300"
|
|
32
41
|
]);
|
|
33
42
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
43
|
+
t as switchVariants,
|
|
44
|
+
d as thumbVariants
|
|
36
45
|
};
|
|
@@ -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-vcSp8YRZ.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";
|
|
@@ -40,7 +40,7 @@ const r = t([""], {
|
|
|
40
40
|
"after:bottom-0",
|
|
41
41
|
"after:left-0",
|
|
42
42
|
"after:right-0",
|
|
43
|
-
"after:h-
|
|
43
|
+
"after:h-0.5",
|
|
44
44
|
"after:bg-aurora-500",
|
|
45
45
|
"after:origin-bottom",
|
|
46
46
|
'after:content-[""]',
|
|
@@ -59,9 +59,10 @@ const r = t([""], {
|
|
|
59
59
|
"text-zinc-700",
|
|
60
60
|
"font-semibold",
|
|
61
61
|
"after:scale-y-100",
|
|
62
|
-
"hover:after:scale-y-140"
|
|
62
|
+
"hover:after:scale-y-140",
|
|
63
|
+
"dark:text-metal-100"
|
|
63
64
|
],
|
|
64
|
-
inactive: "text-slate-500 font-
|
|
65
|
+
inactive: ["text-slate-500", "font-semibold", "dark:text-metal-400"]
|
|
65
66
|
}
|
|
66
67
|
},
|
|
67
68
|
defaultVariants: {
|
|
@@ -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-vcSp8YRZ.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-vcSp8YRZ.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-vcSp8YRZ.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-BvoZGpli.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]"],
|