@konstructio/ui 0.1.2-alpha.5 → 0.1.2-alpha.51
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,207 +1,274 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
1
|
+
import { jsxs as h, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import p, { forwardRef as y, useId as I, useRef as L, useState as W } from "react";
|
|
3
|
+
import { cn as i } from "../../utils/index.js";
|
|
4
4
|
import { inputVariants as $ } from "./Input.variants.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
import { Typography as u } from "../Typography/Typography.js";
|
|
6
|
+
import { SearchIcon as T } from "../../assets/icons/components/Search.js";
|
|
7
|
+
import { Warning as S } from "../../assets/icons/components/Warning.js";
|
|
8
|
+
import { P as l } from "../../index-BOE_3f_Z.js";
|
|
9
|
+
function g() {
|
|
10
|
+
return g = Object.assign || function(t) {
|
|
11
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
12
|
+
var n = arguments[r];
|
|
13
|
+
for (var e in n)
|
|
14
|
+
Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
|
|
14
15
|
}
|
|
15
16
|
return t;
|
|
16
|
-
},
|
|
17
|
+
}, g.apply(this, arguments);
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
+
function C(t, r) {
|
|
19
20
|
if (t == null) return {};
|
|
20
|
-
var
|
|
21
|
+
var n = M(t, r), e, o;
|
|
21
22
|
if (Object.getOwnPropertySymbols) {
|
|
22
|
-
var
|
|
23
|
-
for (
|
|
24
|
-
e = o
|
|
23
|
+
var a = Object.getOwnPropertySymbols(t);
|
|
24
|
+
for (o = 0; o < a.length; o++)
|
|
25
|
+
e = a[o], !(r.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (n[e] = t[e]);
|
|
25
26
|
}
|
|
26
|
-
return
|
|
27
|
+
return n;
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function M(t, r) {
|
|
29
30
|
if (t == null) return {};
|
|
30
|
-
var
|
|
31
|
-
for (
|
|
32
|
-
|
|
33
|
-
return
|
|
31
|
+
var n = {}, e = Object.keys(t), o, a;
|
|
32
|
+
for (a = 0; a < e.length; a++)
|
|
33
|
+
o = e[a], !(r.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
34
|
+
return n;
|
|
34
35
|
}
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
ref:
|
|
36
|
+
var x = y(function(t, r) {
|
|
37
|
+
var n = t.color, e = n === void 0 ? "currentColor" : n, o = t.size, a = o === void 0 ? 24 : o, c = C(t, ["color", "size"]);
|
|
38
|
+
return /* @__PURE__ */ p.createElement("svg", g({
|
|
39
|
+
ref: r,
|
|
39
40
|
xmlns: "http://www.w3.org/2000/svg",
|
|
40
|
-
width:
|
|
41
|
-
height:
|
|
41
|
+
width: a,
|
|
42
|
+
height: a,
|
|
42
43
|
viewBox: "0 0 24 24",
|
|
43
44
|
fill: "none",
|
|
44
45
|
stroke: e,
|
|
45
46
|
strokeWidth: "2",
|
|
46
47
|
strokeLinecap: "round",
|
|
47
48
|
strokeLinejoin: "round"
|
|
48
|
-
}, c), /* @__PURE__ */
|
|
49
|
+
}, c), /* @__PURE__ */ p.createElement("path", {
|
|
49
50
|
d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"
|
|
50
|
-
}), /* @__PURE__ */
|
|
51
|
+
}), /* @__PURE__ */ p.createElement("line", {
|
|
51
52
|
x1: "1",
|
|
52
53
|
y1: "1",
|
|
53
54
|
x2: "23",
|
|
54
55
|
y2: "23"
|
|
55
56
|
}));
|
|
56
57
|
});
|
|
57
|
-
|
|
58
|
-
color:
|
|
59
|
-
size:
|
|
58
|
+
x.propTypes = {
|
|
59
|
+
color: l.string,
|
|
60
|
+
size: l.oneOfType([l.string, l.number])
|
|
60
61
|
};
|
|
61
|
-
|
|
62
|
-
function
|
|
63
|
-
return
|
|
64
|
-
for (var
|
|
65
|
-
var
|
|
66
|
-
for (var e in
|
|
67
|
-
Object.prototype.hasOwnProperty.call(
|
|
62
|
+
x.displayName = "EyeOff";
|
|
63
|
+
function v() {
|
|
64
|
+
return v = Object.assign || function(t) {
|
|
65
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
66
|
+
var n = arguments[r];
|
|
67
|
+
for (var e in n)
|
|
68
|
+
Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
|
|
68
69
|
}
|
|
69
70
|
return t;
|
|
70
|
-
},
|
|
71
|
+
}, v.apply(this, arguments);
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
+
function R(t, r) {
|
|
73
74
|
if (t == null) return {};
|
|
74
|
-
var
|
|
75
|
+
var n = A(t, r), e, o;
|
|
75
76
|
if (Object.getOwnPropertySymbols) {
|
|
76
|
-
var
|
|
77
|
-
for (
|
|
78
|
-
e = o
|
|
77
|
+
var a = Object.getOwnPropertySymbols(t);
|
|
78
|
+
for (o = 0; o < a.length; o++)
|
|
79
|
+
e = a[o], !(r.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (n[e] = t[e]);
|
|
79
80
|
}
|
|
80
|
-
return
|
|
81
|
+
return n;
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function A(t, r) {
|
|
83
84
|
if (t == null) return {};
|
|
84
|
-
var
|
|
85
|
-
for (
|
|
86
|
-
|
|
87
|
-
return
|
|
85
|
+
var n = {}, e = Object.keys(t), o, a;
|
|
86
|
+
for (a = 0; a < e.length; a++)
|
|
87
|
+
o = e[a], !(r.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
88
|
+
return n;
|
|
88
89
|
}
|
|
89
|
-
var
|
|
90
|
-
var
|
|
91
|
-
return /* @__PURE__ */
|
|
92
|
-
ref:
|
|
90
|
+
var w = y(function(t, r) {
|
|
91
|
+
var n = t.color, e = n === void 0 ? "currentColor" : n, o = t.size, a = o === void 0 ? 24 : o, c = R(t, ["color", "size"]);
|
|
92
|
+
return /* @__PURE__ */ p.createElement("svg", v({
|
|
93
|
+
ref: r,
|
|
93
94
|
xmlns: "http://www.w3.org/2000/svg",
|
|
94
|
-
width:
|
|
95
|
-
height:
|
|
95
|
+
width: a,
|
|
96
|
+
height: a,
|
|
96
97
|
viewBox: "0 0 24 24",
|
|
97
98
|
fill: "none",
|
|
98
99
|
stroke: e,
|
|
99
100
|
strokeWidth: "2",
|
|
100
101
|
strokeLinecap: "round",
|
|
101
102
|
strokeLinejoin: "round"
|
|
102
|
-
}, c), /* @__PURE__ */
|
|
103
|
+
}, c), /* @__PURE__ */ p.createElement("path", {
|
|
103
104
|
d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"
|
|
104
|
-
}), /* @__PURE__ */
|
|
105
|
+
}), /* @__PURE__ */ p.createElement("circle", {
|
|
105
106
|
cx: "12",
|
|
106
107
|
cy: "12",
|
|
107
108
|
r: "3"
|
|
108
109
|
}));
|
|
109
110
|
});
|
|
110
|
-
|
|
111
|
-
color:
|
|
112
|
-
size:
|
|
111
|
+
w.propTypes = {
|
|
112
|
+
color: l.string,
|
|
113
|
+
size: l.oneOfType([l.string, l.number])
|
|
113
114
|
};
|
|
114
|
-
|
|
115
|
-
const
|
|
115
|
+
w.displayName = "Eye";
|
|
116
|
+
const B = y(
|
|
116
117
|
({
|
|
117
118
|
className: t,
|
|
118
|
-
error:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
119
|
+
error: r,
|
|
120
|
+
helperText: n,
|
|
121
|
+
helperTextClassName: e,
|
|
122
|
+
isRequired: o = !1,
|
|
123
|
+
isSearch: a = !1,
|
|
124
|
+
label: c,
|
|
125
|
+
labelClassName: O,
|
|
126
|
+
name: j,
|
|
127
|
+
theme: k,
|
|
125
128
|
type: f = "text",
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
r ? /* @__PURE__ */ m(
|
|
133
|
-
"label",
|
|
129
|
+
...N
|
|
130
|
+
}, P) => {
|
|
131
|
+
const b = I(), E = L(f === "password"), [d, z] = W(() => f !== "password"), m = typeof r == "string" && r.length >= 0, _ = d ? w : x;
|
|
132
|
+
return /* @__PURE__ */ h("div", { className: "flex flex-col gap-2 w-full relative", "data-theme": k, children: [
|
|
133
|
+
c ? /* @__PURE__ */ h(
|
|
134
|
+
u,
|
|
134
135
|
{
|
|
136
|
+
component: "label",
|
|
137
|
+
variant: "labelLarge",
|
|
135
138
|
htmlFor: b,
|
|
136
|
-
className:
|
|
137
|
-
"cursor-pointer
|
|
138
|
-
|
|
139
|
+
className: i(
|
|
140
|
+
"cursor-pointer",
|
|
141
|
+
"flex",
|
|
142
|
+
"gap-1",
|
|
143
|
+
"text-sm",
|
|
144
|
+
"font-medium",
|
|
145
|
+
O
|
|
139
146
|
),
|
|
140
147
|
children: [
|
|
141
|
-
|
|
148
|
+
c,
|
|
142
149
|
" ",
|
|
143
|
-
|
|
150
|
+
o && /* @__PURE__ */ s(
|
|
151
|
+
u,
|
|
152
|
+
{
|
|
153
|
+
component: "span",
|
|
154
|
+
className: i(
|
|
155
|
+
"text-red-600",
|
|
156
|
+
"dark:text-red-500",
|
|
157
|
+
"text-xs",
|
|
158
|
+
"mt-0.5"
|
|
159
|
+
),
|
|
160
|
+
children: "*"
|
|
161
|
+
}
|
|
162
|
+
)
|
|
144
163
|
]
|
|
145
164
|
}
|
|
146
165
|
) : null,
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
-
|
|
166
|
+
/* @__PURE__ */ h("div", { className: "relative", children: [
|
|
167
|
+
a ? /* @__PURE__ */ s(
|
|
149
168
|
"i",
|
|
150
169
|
{
|
|
151
|
-
className:
|
|
152
|
-
"absolute
|
|
170
|
+
className: i(
|
|
171
|
+
"absolute",
|
|
172
|
+
"left-2.5",
|
|
173
|
+
"top-1/2",
|
|
174
|
+
"-translate-y-[50%]",
|
|
175
|
+
"text-slate-400",
|
|
176
|
+
"dark:text-metal-400",
|
|
153
177
|
{
|
|
154
|
-
"text-red-700":
|
|
178
|
+
"text-red-700": m
|
|
155
179
|
}
|
|
156
180
|
),
|
|
157
|
-
children: /* @__PURE__ */ s(
|
|
181
|
+
children: /* @__PURE__ */ s(T, { className: "w-5 h-5" })
|
|
158
182
|
}
|
|
159
183
|
) : null,
|
|
160
184
|
/* @__PURE__ */ s(
|
|
161
185
|
"input",
|
|
162
186
|
{
|
|
163
|
-
id:
|
|
164
|
-
ref:
|
|
165
|
-
name:
|
|
166
|
-
type: d ?
|
|
167
|
-
"data-error":
|
|
168
|
-
className:
|
|
187
|
+
id: c ? b : void 0,
|
|
188
|
+
ref: P,
|
|
189
|
+
name: j,
|
|
190
|
+
type: d ? E.current ? "text" : f : "password",
|
|
191
|
+
"data-error": m,
|
|
192
|
+
className: i(
|
|
169
193
|
$({
|
|
170
194
|
className: t,
|
|
171
|
-
variant:
|
|
195
|
+
variant: m ? "error" : "default"
|
|
172
196
|
}),
|
|
173
197
|
{
|
|
174
|
-
"pr-10": f === "password" ||
|
|
175
|
-
"pl-8":
|
|
198
|
+
"pr-10": f === "password" || m,
|
|
199
|
+
"pl-8": a
|
|
176
200
|
}
|
|
177
201
|
),
|
|
178
|
-
...
|
|
202
|
+
...N
|
|
179
203
|
}
|
|
180
204
|
),
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
z,
|
|
205
|
+
m ? /* @__PURE__ */ s(
|
|
206
|
+
"i",
|
|
184
207
|
{
|
|
185
|
-
className:
|
|
186
|
-
|
|
208
|
+
className: i(
|
|
209
|
+
"-translate-y-[50%]",
|
|
210
|
+
"absolute",
|
|
211
|
+
"right-3",
|
|
212
|
+
"text-red-700",
|
|
213
|
+
"top-1/2",
|
|
214
|
+
"dark:text-red-500"
|
|
215
|
+
),
|
|
216
|
+
children: /* @__PURE__ */ s(S, { className: "w-5 h-5" })
|
|
187
217
|
}
|
|
188
|
-
)
|
|
218
|
+
) : null,
|
|
219
|
+
f === "password" && !r ? /* @__PURE__ */ s(
|
|
220
|
+
"i",
|
|
221
|
+
{
|
|
222
|
+
className: i(
|
|
223
|
+
"-translate-y-[50%]",
|
|
224
|
+
"absolute",
|
|
225
|
+
"right-3",
|
|
226
|
+
"text-slate-400",
|
|
227
|
+
"top-1/2"
|
|
228
|
+
),
|
|
229
|
+
children: /* @__PURE__ */ s(
|
|
230
|
+
_,
|
|
231
|
+
{
|
|
232
|
+
className: "w-5 h-5 cursor-pointer",
|
|
233
|
+
onClick: () => z(!d)
|
|
234
|
+
}
|
|
235
|
+
)
|
|
236
|
+
}
|
|
237
|
+
) : null
|
|
189
238
|
] }),
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
239
|
+
r ? /* @__PURE__ */ s(
|
|
240
|
+
u,
|
|
241
|
+
{
|
|
242
|
+
component: "span",
|
|
243
|
+
className: i(
|
|
244
|
+
"text-xs",
|
|
245
|
+
"tracking-normal",
|
|
246
|
+
"text-red-700",
|
|
247
|
+
"dark:text-red-400"
|
|
248
|
+
),
|
|
249
|
+
children: r
|
|
250
|
+
}
|
|
251
|
+
) : null,
|
|
252
|
+
!r && n ? /* @__PURE__ */ s(
|
|
253
|
+
u,
|
|
193
254
|
{
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
255
|
+
component: "span",
|
|
256
|
+
variant: "body1",
|
|
257
|
+
className: i(
|
|
258
|
+
"text-xs",
|
|
259
|
+
"text-slate-600",
|
|
260
|
+
"dark:text-slate-200",
|
|
261
|
+
"select-none",
|
|
262
|
+
"tracking-normal",
|
|
263
|
+
e
|
|
197
264
|
),
|
|
198
|
-
children:
|
|
265
|
+
children: n
|
|
199
266
|
}
|
|
200
267
|
) : null
|
|
201
268
|
] });
|
|
202
269
|
}
|
|
203
270
|
);
|
|
204
|
-
|
|
271
|
+
B.displayName = "KonstructInput";
|
|
205
272
|
export {
|
|
206
|
-
|
|
273
|
+
B as Input
|
|
207
274
|
};
|
|
@@ -1,45 +1,50 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
1
|
+
import { c as e } from "../../index-D29mdTf5.js";
|
|
2
|
+
const r = e(
|
|
3
3
|
[
|
|
4
4
|
"bg-white",
|
|
5
|
-
"border-gray-300",
|
|
6
5
|
"border",
|
|
7
|
-
"
|
|
6
|
+
"border-gray-300",
|
|
7
|
+
"caret-text-slate-800",
|
|
8
8
|
"disabled:cursor-not-allowed",
|
|
9
9
|
"disabled:text-slate-500",
|
|
10
10
|
"flex",
|
|
11
|
+
"focus-visible:border-transparent",
|
|
11
12
|
"focus-visible:outline-none",
|
|
12
13
|
"focus-visible:ring-1",
|
|
13
14
|
"h-10",
|
|
14
|
-
"placeholder:text-slate-400",
|
|
15
15
|
"px-2.5",
|
|
16
16
|
"py-2",
|
|
17
17
|
"rounded",
|
|
18
18
|
"text-slate-800",
|
|
19
19
|
"text-sm",
|
|
20
|
-
"w-full",
|
|
21
20
|
"transition-all",
|
|
21
|
+
"w-full",
|
|
22
|
+
"disabled:bg-gray-50",
|
|
23
|
+
"placeholder:text-slate-400",
|
|
22
24
|
"data-[error=false]:dark:focus:ring-aurora-500",
|
|
23
25
|
"data-[error=false]:focus:ring-aurora-500",
|
|
24
|
-
"
|
|
25
|
-
"dark:
|
|
26
|
-
"dark:
|
|
27
|
-
"dark:disabled:bg-
|
|
26
|
+
"dark:bg-metal-800",
|
|
27
|
+
"dark:border-metal-700",
|
|
28
|
+
"dark:caret-text-metal-50",
|
|
29
|
+
"dark:disabled:bg-metal-900",
|
|
30
|
+
"dark:disabled:placeholder:text-metal-400",
|
|
31
|
+
"dark:disabled:text-metal-400",
|
|
28
32
|
"dark:disabled:text-slate-400",
|
|
33
|
+
"dark:placeholder:text-metal-300",
|
|
29
34
|
"dark:text-slate-50",
|
|
30
|
-
"dark:text-white"
|
|
31
|
-
"kubefirst-dark:bg-slate-800",
|
|
32
|
-
"kubefirst-dark:border-slate-600",
|
|
33
|
-
"kubefirst-dark:disabled:bg-slate-900",
|
|
34
|
-
"kubefirst-dark:disabled:text-slate-400",
|
|
35
|
-
"kubefirst-dark:text-slate-50",
|
|
36
|
-
"kubefirst-dark:text-white"
|
|
35
|
+
"dark:text-white"
|
|
37
36
|
],
|
|
38
37
|
{
|
|
39
38
|
variants: {
|
|
40
39
|
variant: {
|
|
41
40
|
default: "",
|
|
42
|
-
error:
|
|
41
|
+
error: [
|
|
42
|
+
"pr-8",
|
|
43
|
+
"border-red-600",
|
|
44
|
+
"focus-visible:border-red-600",
|
|
45
|
+
"focus-visible:ring-transparent",
|
|
46
|
+
"dark:border-red-500"
|
|
47
|
+
]
|
|
43
48
|
}
|
|
44
49
|
},
|
|
45
50
|
defaultVariants: {
|
|
@@ -48,5 +53,5 @@ const a = r(
|
|
|
48
53
|
}
|
|
49
54
|
);
|
|
50
55
|
export {
|
|
51
|
-
|
|
56
|
+
r as inputVariants
|
|
52
57
|
};
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { cn as c } from "../../utils/index.js";
|
|
3
3
|
import { loadingVariants as i } from "./Loading.variants.js";
|
|
4
|
-
import { c as t } from "../../createLucideIcon-
|
|
5
|
-
/**
|
|
6
|
-
* @license lucide-react v0.545.0 - ISC
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the ISC license.
|
|
9
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
4
|
+
import { c as t } from "../../createLucideIcon-D4r5Phnh.js";
|
|
11
5
|
const d = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], m = t("loader-circle", d), n = ({ className: o, theme: a, ...r }) => /* @__PURE__ */ e(
|
|
12
6
|
m,
|
|
13
7
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "
|
|
4
|
-
import { M as d } from "../../Modal-
|
|
3
|
+
import "react-dom";
|
|
4
|
+
import { M as d } from "../../Modal-CjC-CIJ8.js";
|
|
5
5
|
import "./components/Header/Header.js";
|
|
6
6
|
import "./components/Body/Body.js";
|
|
7
7
|
import "./components/Footer/Footer.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { S as n } from "../../../../index-
|
|
2
|
+
import { S as n } from "../../../../index-BvoZGpli.js";
|
|
3
3
|
import { cn as e } from "../../../../utils/index.js";
|
|
4
4
|
const i = ({ children: o, asChild: t, className: m }) => /* @__PURE__ */ r(t ? n : "div", { className: e("flex-1", m), children: o });
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { S as n } from "../../../../index-
|
|
2
|
+
import { S as n } from "../../../../index-BvoZGpli.js";
|
|
3
3
|
import { cn as e } from "../../../../utils/index.js";
|
|
4
4
|
const a = ({ children: o, asChild: r, className: t }) => /* @__PURE__ */ m(r ? n : "div", { className: e("border-zinc-200", t), children: o });
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { S as n } from "../../../../index-
|
|
2
|
+
import { S as n } from "../../../../index-BvoZGpli.js";
|
|
3
3
|
import { cn as e } from "../../../../utils/index.js";
|
|
4
4
|
const a = ({ children: o, asChild: r, className: t }) => /* @__PURE__ */ m(r ? n : "div", { className: e("border-zinc-200", t), children: o });
|
|
5
5
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../../../index-
|
|
2
|
+
import "../../../../index-BKjcReYh.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../../../../Combination-
|
|
5
|
-
import { W as f } from "../../../../Modal-
|
|
4
|
+
import "../../../../Combination-BtmnusWq.js";
|
|
5
|
+
import { W as f } from "../../../../Modal-CjC-CIJ8.js";
|
|
6
6
|
import "../../../../utils/index.js";
|
|
7
7
|
import "./Wrapper.variants.js";
|
|
8
|
-
import "../../../../x-
|
|
8
|
+
import "../../../../x-Eoa9FJjA.js";
|
|
9
9
|
export {
|
|
10
10
|
f as Wrapper
|
|
11
11
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Body as e } from "./Body/Body.js";
|
|
2
2
|
import { Footer as t } from "./Footer/Footer.js";
|
|
3
3
|
import { Header as m } from "./Header/Header.js";
|
|
4
|
-
import { W as a } from "../../../Modal-
|
|
4
|
+
import { W as a } from "../../../Modal-CjC-CIJ8.js";
|
|
5
5
|
export {
|
|
6
6
|
e as Body,
|
|
7
7
|
t as Footer,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import { MultiSelectDropdownProvider as s } from "./contexts/MultiSelectDropdown.provider.js";
|
|
4
|
+
import { Wrapper as u } from "./components/Wrapper/Wrapper.js";
|
|
5
|
+
const a = n(
|
|
6
|
+
({
|
|
7
|
+
isLoading: t,
|
|
8
|
+
multiselect: e,
|
|
9
|
+
name: o,
|
|
10
|
+
noOptionsText: p,
|
|
11
|
+
options: i,
|
|
12
|
+
value: l,
|
|
13
|
+
onChange: d,
|
|
14
|
+
onBlur: m,
|
|
15
|
+
...f
|
|
16
|
+
}, c) => /* @__PURE__ */ r(
|
|
17
|
+
s,
|
|
18
|
+
{
|
|
19
|
+
defaultOptions: i,
|
|
20
|
+
multiselect: e,
|
|
21
|
+
value: l,
|
|
22
|
+
onChange: d,
|
|
23
|
+
onBlur: m,
|
|
24
|
+
name: o,
|
|
25
|
+
isLoading: t,
|
|
26
|
+
noOptionsText: p,
|
|
27
|
+
children: /* @__PURE__ */ r(u, { ref: c, name: o, ...f })
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
a.displayName = "KonstructMultiSelectDropdown";
|
|
32
|
+
export {
|
|
33
|
+
a as MultiSelectDropdown
|
|
34
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { c as r } from "../../index-D29mdTf5.js";
|
|
2
|
+
const t = r([
|
|
3
|
+
"flex",
|
|
4
|
+
"flex-col",
|
|
5
|
+
"w-full",
|
|
6
|
+
"relative",
|
|
7
|
+
"cursor-pointer"
|
|
8
|
+
]), o = r(["cursor-pointer", "mb-1", "select-none"]), a = r([
|
|
9
|
+
"min-h-9",
|
|
10
|
+
"border",
|
|
11
|
+
"cursor-pointer",
|
|
12
|
+
"duration-250",
|
|
13
|
+
"ease-in-out",
|
|
14
|
+
"flex",
|
|
15
|
+
"items-center",
|
|
16
|
+
"justify-between",
|
|
17
|
+
"px-2",
|
|
18
|
+
"py-1",
|
|
19
|
+
"rounded-md",
|
|
20
|
+
"transition-all",
|
|
21
|
+
"w-full",
|
|
22
|
+
"border-gray-200",
|
|
23
|
+
"dark:border-metal-700",
|
|
24
|
+
"dark:bg-metal-800"
|
|
25
|
+
]);
|
|
26
|
+
export {
|
|
27
|
+
o as labelVariants,
|
|
28
|
+
a as multiSelectDropdownVariants,
|
|
29
|
+
t as wrapperVariants
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Badge as l } from "../../../Badge/Badge.js";
|
|
3
|
+
import { Typography as n } from "../../../Typography/Typography.js";
|
|
4
|
+
import { cn as c } from "../../../../utils/index.js";
|
|
5
|
+
import { itemVariants as p } from "./Item.variants.js";
|
|
6
|
+
import { useMultiSelectDropdown as s } from "../../contexts/MultiSelectDropdown.hook.js";
|
|
7
|
+
const x = ({
|
|
8
|
+
option: r,
|
|
9
|
+
theme: o,
|
|
10
|
+
isSelected: t,
|
|
11
|
+
className: m
|
|
12
|
+
}) => {
|
|
13
|
+
const { onSelectOption: a } = s();
|
|
14
|
+
return /* @__PURE__ */ i(
|
|
15
|
+
"li",
|
|
16
|
+
{
|
|
17
|
+
role: "option",
|
|
18
|
+
"data-theme": o,
|
|
19
|
+
className: c(p({ isSelected: t }), m),
|
|
20
|
+
onClick: () => a(r),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ e(n, { variant: "body2", children: r.label }),
|
|
23
|
+
r.badge && /* @__PURE__ */ e(l, { label: r.badge })
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
x as Item
|
|
30
|
+
};
|