@konstructio/ui 0.1.0-alpha.8 → 0.1.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DatePicker.css +1 -1
- package/dist/{Modal-CrG0m703.js → Modal-0oht63vU.js} +32 -32
- package/dist/assets/icons/components/Search.js +26 -0
- package/dist/assets/icons/components/Warning.js +22 -0
- package/dist/assets/icons/components/index.js +6 -0
- package/dist/{chevron-down-UW8ts6wI.js → chevron-down-CVce9Mvh.js} +2 -2
- package/dist/components/Alert/Alert.js +23 -25
- package/dist/components/Alert/Alert.variants.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +7 -7
- package/dist/components/Autocomplete/Autocomplete.variants.js +3 -4
- package/dist/components/Autocomplete/components/List/List.variants.js +3 -7
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +38 -43
- package/dist/components/Autocomplete/hooks/useNavigationList.js +29 -37
- package/dist/components/Badge/Badge.js +40 -42
- package/dist/components/Badge/Badge.variants.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +22 -21
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +1 -1
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +15 -15
- package/dist/components/Button/Button.variants.js +10 -77
- package/dist/components/Card/Card.variants.js +3 -5
- package/dist/components/Checkbox/Checkbox.js +48 -47
- package/dist/components/Checkbox/Checkbox.variants.js +3 -4
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/Command.variants.js +1 -1
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +13 -13
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +1496 -1577
- package/dist/components/Datepicker/DatePicker.variants.js +1 -1
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +28 -6
- package/dist/components/Dropdown/Dropdown.variants.js +43 -26
- package/dist/components/Dropdown/components/List/List.variants.js +1 -1
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +5 -5
- package/dist/components/Dropdown/components/Wrapper.js +96 -86
- package/dist/components/Dropdown/contexts/dropdown.provider.js +12 -12
- package/dist/components/Dropdown/hooks/useDropdown.js +26 -30
- package/dist/components/Dropdown/hooks/useNavigationList.js +25 -31
- package/dist/components/DropdownButton/DropdownButton.js +135 -0
- package/dist/components/Filter/Filter.variants.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +47 -49
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +70 -57
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +41 -42
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +68 -55
- package/dist/components/Filter/components/ResetButton/ResetButton.js +22 -16
- package/dist/components/Input/Input.js +116 -109
- package/dist/components/Input/Input.variants.js +18 -5
- package/dist/components/Loading/Loading.js +2 -2
- package/dist/components/Loading/Loading.variants.js +1 -2
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +7 -9
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/hooks/useModal.js +16 -17
- package/dist/components/NumberInput/NumberInput.js +91 -91
- package/dist/components/NumberInput/NumberInput.variants.js +1 -1
- package/dist/components/PieChart/PieChart.js +5138 -0
- package/dist/components/ProgressBar/ProgressBar.js +58 -26
- package/dist/components/ProgressBar/ProgressBar.variants.js +1 -1
- package/dist/components/Radio/Radio.js +64 -48
- package/dist/components/Radio/Radio.variants.js +3 -3
- package/dist/components/RadioCard/RadioCard.js +26 -23
- package/dist/components/RadioCard/RadioCard.variants.js +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.js +28 -28
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +37 -37
- package/dist/components/RadioGroup/RadioGroup.variants.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Range/Range.variants.js +2 -3
- package/dist/components/Sidebar/Sidebar.js +4 -3
- package/dist/components/Sidebar/Sidebar.variants.js +1 -1
- package/dist/components/Sidebar/components/Footer/Footer.js +5 -4
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +6 -5
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +1 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.js +5 -4
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +14 -13
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +13 -12
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +5 -6
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -8
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +15 -14
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider.variants.js +2 -8
- package/dist/components/Switch/Switch.js +54 -54
- package/dist/components/Switch/Switch.variants.js +2 -3
- package/dist/components/Table/Table.variants.js +1 -1
- package/dist/components/Tabs/Tabs.js +20 -16
- package/dist/components/Tabs/Tabs.variants.js +3 -5
- package/dist/components/Tabs/components/Content.js +10 -13
- package/dist/components/Tabs/components/List.js +9 -8
- package/dist/components/Tabs/components/Trigger.js +12 -16
- package/dist/components/Tabs/components/index.js +8 -0
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.variants.js +1 -1
- package/dist/components/TagSelect/TagSelect.variants.js +1 -1
- package/dist/components/TagSelect/components/Item/Item.variants.js +1 -1
- package/dist/components/TagSelect/components/List/List.variants.js +1 -1
- package/dist/components/TagSelect/hooks/useTagSelect.js +14 -16
- package/dist/components/TextArea/TextArea.variants.js +4 -5
- package/dist/components/TimePicker/TimePicker.variants.js +6 -7
- package/dist/components/TimePicker/components/HoursList/HoursList.js +21 -26
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +19 -20
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +24 -25
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +33 -34
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +1 -1
- package/dist/components/Toast/Toast.js +223 -232
- package/dist/components/Toast/Toast.variants.js +8 -11
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.variants.js +7 -14
- package/dist/components/Tooltip/hooks/useTooltip.js +8 -9
- package/dist/components/Typography/Typography.js +26 -31
- package/dist/components/Typography/Typography.variants.js +1 -1
- package/dist/components/index.js +78 -66
- package/dist/contexts/theme.provider.js +28 -29
- package/dist/{createLucideIcon-ByJ0JZvK.js → createLucideIcon-BpsAkT97.js} +4 -4
- package/dist/index-0ioNhtNM.js +10 -0
- package/dist/{index-CvfCCTEO.js → index-BAraV3ai.js} +7 -7
- package/dist/index-BXuxPoz7.js +435 -0
- package/dist/index-BfXxHr_2.js +125 -0
- package/dist/index-C1g_chDT.js +70 -0
- package/dist/{index-BCGvACM9.js → index-C9T9HQaa.js} +1 -1
- package/dist/{index-Bc1LNrRD.js → index-CZnD2QxM.js} +1 -1
- package/dist/index-CrBonFvu.js +144 -0
- package/dist/{index-rUBNhTeF.js → index-Cvx4lqTq.js} +2 -2
- package/dist/{index-BNmRGtA6.js → index-D29mdTf5.js} +3 -3
- package/dist/{index-Dkt8F6CZ.js → index-D3xzCzcO.js} +12 -12
- package/dist/index-DB2XhXHn.js +431 -0
- package/dist/{index-B5MIi2tR.js → index-DQH6odE9.js} +2 -3
- package/dist/index-Oq5GlCHP.js +131 -0
- package/dist/{index-Cs8Lv8Wj.js → index-bwWKd82e.js} +1 -1
- package/dist/{index--EmNlyHx.js → index-iXyXtdgP.js} +1 -1
- package/dist/index.d.ts +159 -9
- package/dist/index.js +88 -76
- package/dist/package.json +41 -37
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +261 -241
- package/dist/ui/kubefirst-theme.css +4 -4
- package/dist/ui/theme.css +0 -2
- package/dist/{useBreadcrumb-DMERrNkJ.js → useBreadcrumb-B8DnuqkR.js} +254 -261
- package/dist/utils/index.js +25 -26
- package/package.json +41 -37
- package/dist/index-BNU3RH-3.js +0 -133
- package/dist/index-BvCZBMfr.js +0 -432
- package/dist/index-Cq1I1cG9.js +0 -129
- package/dist/index-DLYwlPRZ.js +0 -440
- package/dist/index-DNRcvRTB.js +0 -145
- package/dist/index-Dm-ooN_M.js +0 -71
- package/dist/index-DwYXX2sM.js +0 -13
package/dist/utils/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as Ie } from "../clsx-OuTLNxxd.js";
|
|
2
|
-
const ne = "-",
|
|
2
|
+
const ne = "-", Pe = (e) => {
|
|
3
3
|
const n = Ge(e), {
|
|
4
4
|
conflictingClassGroups: s,
|
|
5
5
|
conflictingClassGroupModifiers: t
|
|
@@ -7,7 +7,7 @@ const ne = "-", Re = (e) => {
|
|
|
7
7
|
return {
|
|
8
8
|
getClassGroupId: (i) => {
|
|
9
9
|
const u = i.split(ne);
|
|
10
|
-
return u[0] === "" && u.length !== 1 && u.shift(), we(u, n) ||
|
|
10
|
+
return u[0] === "" && u.length !== 1 && u.shift(), we(u, n) || Re(i);
|
|
11
11
|
},
|
|
12
12
|
getConflictingClassGroupIds: (i, u) => {
|
|
13
13
|
const p = s[i] || [];
|
|
@@ -15,7 +15,6 @@ const ne = "-", Re = (e) => {
|
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
}, we = (e, n) => {
|
|
18
|
-
var i;
|
|
19
18
|
if (e.length === 0)
|
|
20
19
|
return n.classGroupId;
|
|
21
20
|
const s = e[0], t = n.nextPart.get(s), c = t ? we(e.slice(1), t) : void 0;
|
|
@@ -24,12 +23,12 @@ const ne = "-", Re = (e) => {
|
|
|
24
23
|
if (n.validators.length === 0)
|
|
25
24
|
return;
|
|
26
25
|
const m = e.join(ne);
|
|
27
|
-
return
|
|
28
|
-
validator:
|
|
29
|
-
}) =>
|
|
30
|
-
}, fe = /^\[(.+)\]$/,
|
|
26
|
+
return n.validators.find(({
|
|
27
|
+
validator: i
|
|
28
|
+
}) => i(m))?.classGroupId;
|
|
29
|
+
}, fe = /^\[(.+)\]$/, Re = (e) => {
|
|
31
30
|
if (fe.test(e)) {
|
|
32
|
-
const n = fe.exec(e)[1], s = n
|
|
31
|
+
const n = fe.exec(e)[1], s = n?.substring(0, n.indexOf(":"));
|
|
33
32
|
if (s)
|
|
34
33
|
return "arbitrary.." + s;
|
|
35
34
|
}
|
|
@@ -161,7 +160,7 @@ const ne = "-", Re = (e) => {
|
|
|
161
160
|
cache: Ee(e.cacheSize),
|
|
162
161
|
parseClassName: Ne(e),
|
|
163
162
|
sortModifiers: je(e),
|
|
164
|
-
...
|
|
163
|
+
...Pe(e)
|
|
165
164
|
}), Fe = /\s+/, Be = (e, n) => {
|
|
166
165
|
const {
|
|
167
166
|
parseClassName: s,
|
|
@@ -241,12 +240,12 @@ function We(e, ...n) {
|
|
|
241
240
|
const f = (e) => {
|
|
242
241
|
const n = (s) => s[e] || [];
|
|
243
242
|
return n.isThemeGetter = !0, n;
|
|
244
|
-
}, ke = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, $e = /^\d+\/\d+$/, Ue = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, He = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Je = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Xe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, N = (e) => $e.test(e), d = (e) => !!e && !Number.isNaN(Number(e)), S = (e) => !!e && Number.isInteger(Number(e)), ee = (e) => e.endsWith("%") && d(e.slice(0, -1)), C = (e) => Ue.test(e), De = () => !0, Ke = (e) => (
|
|
243
|
+
}, ke = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, $e = /^\d+\/\d+$/, Ue = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, He = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Je = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Xe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, N = (e) => $e.test(e), d = (e) => !!e && !Number.isNaN(Number(e)), S = (e) => !!e && Number.isInteger(Number(e)), ee = (e) => e.endsWith("%") && d(e.slice(0, -1)), C = (e) => Ue.test(e), De = () => !0, Ke = (e) => (
|
|
245
244
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
246
245
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
247
246
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
248
247
|
qe.test(e) && !He.test(e)
|
|
249
|
-
), ve = () => !1, Qe = (e) => Je.test(e), Ye = (e) => Xe.test(e), Ze = (e) => !o(e) && !r(e), eo = (e) => V(e, Me, ve), o = (e) => ke.test(e),
|
|
248
|
+
), ve = () => !1, Qe = (e) => Je.test(e), Ye = (e) => Xe.test(e), Ze = (e) => !o(e) && !r(e), eo = (e) => V(e, Me, ve), o = (e) => ke.test(e), R = (e) => V(e, Se, Ke), oe = (e) => V(e, no, d), ge = (e) => V(e, ze, ve), oo = (e) => V(e, Ce, Ye), D = (e) => V(e, Ae, Qe), r = (e) => ye.test(e), W = (e) => j(e, Se), ro = (e) => j(e, ao), he = (e) => j(e, ze), to = (e) => j(e, Me), so = (e) => j(e, Ce), K = (e) => j(e, Ae, !0), V = (e, n, s) => {
|
|
250
249
|
const t = ke.exec(e);
|
|
251
250
|
return t ? t[1] ? n(t[1]) : s(t[2]) : !1;
|
|
252
251
|
}, j = (e, n, s = !1) => {
|
|
@@ -273,13 +272,13 @@ const f = (e) => {
|
|
|
273
272
|
"left-bottom"
|
|
274
273
|
], E = () => [...T(), r, o], I = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], l = () => [r, o, p], v = () => [N, "full", "auto", ...l()], ae = () => [S, "none", "subgrid", r, o], ie = () => ["auto", {
|
|
275
274
|
span: ["full", S, r, o]
|
|
276
|
-
}, S, r, o], U = () => [S, "auto", r, o], le = () => ["auto", "min", "max", "fr", r, o], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], L = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], z = () => ["auto", ...l()],
|
|
275
|
+
}, S, r, o], U = () => [S, "auto", r, o], le = () => ["auto", "min", "max", "fr", r, o], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], L = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], z = () => ["auto", ...l()], P = () => [N, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...l()], a = () => [e, r, o], ce = () => [...T(), he, ge, {
|
|
277
276
|
position: [r, o]
|
|
278
277
|
}], de = () => ["no-repeat", {
|
|
279
278
|
repeat: ["", "x", "y", "space", "round"]
|
|
280
279
|
}], me = () => ["auto", "cover", "contain", to, eo, {
|
|
281
280
|
size: [r, o]
|
|
282
|
-
}], Y = () => [ee, W,
|
|
281
|
+
}], Y = () => [ee, W, R], w = () => [
|
|
283
282
|
// Deprecated since Tailwind CSS v4.0.0
|
|
284
283
|
"",
|
|
285
284
|
"none",
|
|
@@ -287,7 +286,7 @@ const f = (e) => {
|
|
|
287
286
|
g,
|
|
288
287
|
r,
|
|
289
288
|
o
|
|
290
|
-
], x = () => ["", d, W,
|
|
289
|
+
], x = () => ["", d, W, R], q = () => ["solid", "dashed", "dotted", "double"], pe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], b = () => [d, ee, he, ge], ue = () => [
|
|
291
290
|
// Deprecated since Tailwind CSS v4.0.0
|
|
292
291
|
"",
|
|
293
292
|
"none",
|
|
@@ -918,14 +917,14 @@ const f = (e) => {
|
|
|
918
917
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
919
918
|
*/
|
|
920
919
|
size: [{
|
|
921
|
-
size:
|
|
920
|
+
size: P()
|
|
922
921
|
}],
|
|
923
922
|
/**
|
|
924
923
|
* Width
|
|
925
924
|
* @see https://tailwindcss.com/docs/width
|
|
926
925
|
*/
|
|
927
926
|
w: [{
|
|
928
|
-
w: [u, "screen", ...
|
|
927
|
+
w: [u, "screen", ...P()]
|
|
929
928
|
}],
|
|
930
929
|
/**
|
|
931
930
|
* Min-Width
|
|
@@ -937,7 +936,7 @@ const f = (e) => {
|
|
|
937
936
|
"screen",
|
|
938
937
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
939
938
|
"none",
|
|
940
|
-
...
|
|
939
|
+
...P()
|
|
941
940
|
]
|
|
942
941
|
}],
|
|
943
942
|
/**
|
|
@@ -955,7 +954,7 @@ const f = (e) => {
|
|
|
955
954
|
{
|
|
956
955
|
screen: [i]
|
|
957
956
|
},
|
|
958
|
-
...
|
|
957
|
+
...P()
|
|
959
958
|
]
|
|
960
959
|
}],
|
|
961
960
|
/**
|
|
@@ -963,21 +962,21 @@ const f = (e) => {
|
|
|
963
962
|
* @see https://tailwindcss.com/docs/height
|
|
964
963
|
*/
|
|
965
964
|
h: [{
|
|
966
|
-
h: ["screen", "lh", ...
|
|
965
|
+
h: ["screen", "lh", ...P()]
|
|
967
966
|
}],
|
|
968
967
|
/**
|
|
969
968
|
* Min-Height
|
|
970
969
|
* @see https://tailwindcss.com/docs/min-height
|
|
971
970
|
*/
|
|
972
971
|
"min-h": [{
|
|
973
|
-
"min-h": ["screen", "lh", "none", ...
|
|
972
|
+
"min-h": ["screen", "lh", "none", ...P()]
|
|
974
973
|
}],
|
|
975
974
|
/**
|
|
976
975
|
* Max-Height
|
|
977
976
|
* @see https://tailwindcss.com/docs/max-height
|
|
978
977
|
*/
|
|
979
978
|
"max-h": [{
|
|
980
|
-
"max-h": ["screen", "lh", ...
|
|
979
|
+
"max-h": ["screen", "lh", ...P()]
|
|
981
980
|
}],
|
|
982
981
|
// ------------------
|
|
983
982
|
// --- Typography ---
|
|
@@ -987,7 +986,7 @@ const f = (e) => {
|
|
|
987
986
|
* @see https://tailwindcss.com/docs/font-size
|
|
988
987
|
*/
|
|
989
988
|
"font-size": [{
|
|
990
|
-
text: ["base", s, W,
|
|
989
|
+
text: ["base", s, W, R]
|
|
991
990
|
}],
|
|
992
991
|
/**
|
|
993
992
|
* Font Smoothing
|
|
@@ -1135,7 +1134,7 @@ const f = (e) => {
|
|
|
1135
1134
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1136
1135
|
*/
|
|
1137
1136
|
"text-decoration-thickness": [{
|
|
1138
|
-
decoration: [d, "from-font", "auto", r,
|
|
1137
|
+
decoration: [d, "from-font", "auto", r, R]
|
|
1139
1138
|
}],
|
|
1140
1139
|
/**
|
|
1141
1140
|
* Text Decoration Color
|
|
@@ -1622,7 +1621,7 @@ const f = (e) => {
|
|
|
1622
1621
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1623
1622
|
*/
|
|
1624
1623
|
"outline-w": [{
|
|
1625
|
-
outline: ["", d, W,
|
|
1624
|
+
outline: ["", d, W, R]
|
|
1626
1625
|
}],
|
|
1627
1626
|
/**
|
|
1628
1627
|
* Outline Color
|
|
@@ -1697,7 +1696,7 @@ const f = (e) => {
|
|
|
1697
1696
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1698
1697
|
*/
|
|
1699
1698
|
"ring-offset-w": [{
|
|
1700
|
-
"ring-offset": [d,
|
|
1699
|
+
"ring-offset": [d, R]
|
|
1701
1700
|
}],
|
|
1702
1701
|
/**
|
|
1703
1702
|
* Ring Offset Color
|
|
@@ -2647,7 +2646,7 @@ const f = (e) => {
|
|
|
2647
2646
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2648
2647
|
*/
|
|
2649
2648
|
"stroke-w": [{
|
|
2650
|
-
stroke: [d, W,
|
|
2649
|
+
stroke: [d, W, R, oe]
|
|
2651
2650
|
}],
|
|
2652
2651
|
/**
|
|
2653
2652
|
* Stroke
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@konstructio/ui",
|
|
3
3
|
"description": "A set of reusable and customizable React components built for konstruct.io",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.1-alpha.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"konstruct",
|
|
19
|
-
"
|
|
19
|
+
"civo",
|
|
20
20
|
"kubefirst",
|
|
21
21
|
"react",
|
|
22
22
|
"tailwind",
|
|
@@ -55,26 +55,28 @@
|
|
|
55
55
|
"test:watch": "vitest dev"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@radix-ui/react-alert-dialog": "^1.1.
|
|
59
|
-
"@radix-ui/react-checkbox": "^1.3.
|
|
60
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
61
|
-
"@radix-ui/react-slider": "^1.3.
|
|
58
|
+
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
59
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
60
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
61
|
+
"@radix-ui/react-slider": "^1.3.6",
|
|
62
62
|
"@radix-ui/react-slot": "^1.2.3",
|
|
63
|
-
"@radix-ui/react-switch": "^1.2.
|
|
64
|
-
"@radix-ui/react-tabs": "^1.1.
|
|
65
|
-
"@radix-ui/react-toast": "^1.2.
|
|
63
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
64
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
65
|
+
"@radix-ui/react-toast": "^1.2.15",
|
|
66
66
|
"@radix-ui/react-visually-hidden": "^1.2.3",
|
|
67
|
+
"chart.js": "^4.5.0",
|
|
67
68
|
"class-variance-authority": "^0.7.1",
|
|
68
69
|
"clsx": "^2.1.1",
|
|
69
70
|
"cmdk": "^1.1.1",
|
|
70
71
|
"countries-and-timezones": "^3.8.0",
|
|
71
72
|
"js-cookie": "^3.0.5",
|
|
72
|
-
"lucide-react": "^0.
|
|
73
|
-
"react-
|
|
73
|
+
"lucide-react": "^0.542.0",
|
|
74
|
+
"react-chartjs-2": "^5.3.0",
|
|
75
|
+
"react-day-picker": "^9.9.0",
|
|
74
76
|
"react-feather": "^2.0.10",
|
|
75
77
|
"react-focus-lock": "^2.13.6",
|
|
76
78
|
"react-remove-scroll": "^2.7.1",
|
|
77
|
-
"tailwind-merge": "^3.3.
|
|
79
|
+
"tailwind-merge": "^3.3.1"
|
|
78
80
|
},
|
|
79
81
|
"peerDependencies": {
|
|
80
82
|
"@types/react": "*",
|
|
@@ -106,45 +108,47 @@
|
|
|
106
108
|
},
|
|
107
109
|
"devDependencies": {
|
|
108
110
|
"@rollup/plugin-alias": "^5.1.1",
|
|
109
|
-
"@storybook/addon-docs": "^9.1.
|
|
110
|
-
"@storybook/addon-links": "^9.1.
|
|
111
|
-
"@storybook/react-vite": "^9.1.
|
|
112
|
-
"@tailwindcss/vite": "^4.1.
|
|
113
|
-
"@testing-library/jest-dom": "^6.
|
|
111
|
+
"@storybook/addon-docs": "^9.1.4",
|
|
112
|
+
"@storybook/addon-links": "^9.1.4",
|
|
113
|
+
"@storybook/react-vite": "^9.1.4",
|
|
114
|
+
"@tailwindcss/vite": "^4.1.12",
|
|
115
|
+
"@testing-library/jest-dom": "^6.8.0",
|
|
114
116
|
"@testing-library/react": "^16.3.0",
|
|
115
117
|
"@testing-library/user-event": "^14.6.1",
|
|
116
118
|
"@types/jest-axe": "^3.5.9",
|
|
117
119
|
"@types/js-cookie": "^3.0.6",
|
|
118
|
-
"@types/lodash": "^4.17.
|
|
119
|
-
"@types/react": "^19.1.
|
|
120
|
-
"@types/react-dom": "^19.1.
|
|
121
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
122
|
-
"@typescript-eslint/parser": "^8.
|
|
123
|
-
"@vitejs/plugin-react": "^
|
|
124
|
-
"@vitest/coverage-v8": "^3.2.
|
|
120
|
+
"@types/lodash": "^4.17.20",
|
|
121
|
+
"@types/react": "^19.1.12",
|
|
122
|
+
"@types/react-dom": "^19.1.9",
|
|
123
|
+
"@typescript-eslint/eslint-plugin": "^8.42.0",
|
|
124
|
+
"@typescript-eslint/parser": "^8.42.0",
|
|
125
|
+
"@vitejs/plugin-react": "^5.0.2",
|
|
126
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
125
127
|
"autoprefixer": "^10.4.21",
|
|
126
|
-
"eslint": "^
|
|
127
|
-
"eslint-plugin-react
|
|
128
|
-
"eslint-plugin-react-
|
|
129
|
-
"eslint-plugin-
|
|
130
|
-
"
|
|
128
|
+
"eslint": "^9.34.0",
|
|
129
|
+
"eslint-plugin-react": "^7.37.5",
|
|
130
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
131
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
132
|
+
"eslint-plugin-storybook": "^9.1.4",
|
|
133
|
+
"eslint-plugin-vitest": "^0.5.4",
|
|
134
|
+
"glob": "^11.0.3",
|
|
131
135
|
"husky": "^9.1.7",
|
|
132
136
|
"jest-axe": "^10.0.0",
|
|
133
137
|
"jsdom": "^26.1.0",
|
|
134
138
|
"lodash": "^4.17.21",
|
|
135
|
-
"postcss": "^8.5.
|
|
136
|
-
"prettier": "^3.
|
|
139
|
+
"postcss": "^8.5.6",
|
|
140
|
+
"prettier": "^3.6.2",
|
|
137
141
|
"rimraf": "^6.0.1",
|
|
138
|
-
"storybook": "^9.1.
|
|
139
|
-
"tailwindcss": "^4.1.
|
|
142
|
+
"storybook": "^9.1.4",
|
|
143
|
+
"tailwindcss": "^4.1.12",
|
|
140
144
|
"ts-node": "^10.9.2",
|
|
141
|
-
"typescript": "^5.
|
|
142
|
-
"vite": "^
|
|
145
|
+
"typescript": "^5.9.2",
|
|
146
|
+
"vite": "^7.1.4",
|
|
143
147
|
"vite-plugin-dts": "^4.5.4",
|
|
144
148
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
145
|
-
"vite-plugin-svgr": "^4.
|
|
149
|
+
"vite-plugin-svgr": "^4.5.0",
|
|
146
150
|
"vite-tsconfig-paths": "^5.1.4",
|
|
147
|
-
"vitest": "^3.2.
|
|
151
|
+
"vitest": "^3.2.4"
|
|
148
152
|
},
|
|
149
153
|
"overrides": {
|
|
150
154
|
"storybook": "$storybook"
|
package/dist/index-BNU3RH-3.js
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { jsx as i, jsxs as w } from "react/jsx-runtime";
|
|
2
|
-
import * as l from "react";
|
|
3
|
-
import { c as M, b as x } from "./index-Cq1I1cG9.js";
|
|
4
|
-
import { u as A, b as I } from "./index-B5MIi2tR.js";
|
|
5
|
-
import { c as v, R as $, P as L, O as F, W as G, C as W, T as j, d as B, b as D, e as Y } from "./index-DLYwlPRZ.js";
|
|
6
|
-
import { Button as k } from "./components/Button/Button.js";
|
|
7
|
-
import { cn as q } from "./utils/index.js";
|
|
8
|
-
var f = "AlertDialog", [H, se] = M(f, [
|
|
9
|
-
v
|
|
10
|
-
]), s = v(), m = (e) => {
|
|
11
|
-
const { __scopeAlertDialog: o, ...r } = e, a = s(o);
|
|
12
|
-
return /* @__PURE__ */ i($, { ...a, ...r, modal: !0 });
|
|
13
|
-
};
|
|
14
|
-
m.displayName = f;
|
|
15
|
-
var V = "AlertDialogTrigger", y = l.forwardRef(
|
|
16
|
-
(e, o) => {
|
|
17
|
-
const { __scopeAlertDialog: r, ...a } = e, t = s(r);
|
|
18
|
-
return /* @__PURE__ */ i(Y, { ...t, ...a, ref: o });
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
y.displayName = V;
|
|
22
|
-
var z = "AlertDialogPortal", _ = (e) => {
|
|
23
|
-
const { __scopeAlertDialog: o, ...r } = e, a = s(o);
|
|
24
|
-
return /* @__PURE__ */ i(L, { ...a, ...r });
|
|
25
|
-
};
|
|
26
|
-
_.displayName = z;
|
|
27
|
-
var J = "AlertDialogOverlay", N = l.forwardRef(
|
|
28
|
-
(e, o) => {
|
|
29
|
-
const { __scopeAlertDialog: r, ...a } = e, t = s(r);
|
|
30
|
-
return /* @__PURE__ */ i(F, { ...t, ...a, ref: o });
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
N.displayName = J;
|
|
34
|
-
var n = "AlertDialogContent", [K, Q] = H(n), U = I("AlertDialogContent"), h = l.forwardRef(
|
|
35
|
-
(e, o) => {
|
|
36
|
-
const { __scopeAlertDialog: r, children: a, ...t } = e, d = s(r), p = l.useRef(null), O = A(o, p), g = l.useRef(null);
|
|
37
|
-
return /* @__PURE__ */ i(
|
|
38
|
-
G,
|
|
39
|
-
{
|
|
40
|
-
contentName: n,
|
|
41
|
-
titleName: C,
|
|
42
|
-
docsSlug: "alert-dialog",
|
|
43
|
-
children: /* @__PURE__ */ i(K, { scope: r, cancelRef: g, children: /* @__PURE__ */ w(
|
|
44
|
-
W,
|
|
45
|
-
{
|
|
46
|
-
role: "alertdialog",
|
|
47
|
-
...d,
|
|
48
|
-
...t,
|
|
49
|
-
ref: O,
|
|
50
|
-
onOpenAutoFocus: x(t.onOpenAutoFocus, (c) => {
|
|
51
|
-
var u;
|
|
52
|
-
c.preventDefault(), (u = g.current) == null || u.focus({ preventScroll: !0 });
|
|
53
|
-
}),
|
|
54
|
-
onPointerDownOutside: (c) => c.preventDefault(),
|
|
55
|
-
onInteractOutside: (c) => c.preventDefault(),
|
|
56
|
-
children: [
|
|
57
|
-
/* @__PURE__ */ i(U, { children: a }),
|
|
58
|
-
/* @__PURE__ */ i(Z, { contentRef: p })
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
) })
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
h.displayName = n;
|
|
67
|
-
var C = "AlertDialogTitle", R = l.forwardRef(
|
|
68
|
-
(e, o) => {
|
|
69
|
-
const { __scopeAlertDialog: r, ...a } = e, t = s(r);
|
|
70
|
-
return /* @__PURE__ */ i(j, { ...t, ...a, ref: o });
|
|
71
|
-
}
|
|
72
|
-
);
|
|
73
|
-
R.displayName = C;
|
|
74
|
-
var E = "AlertDialogDescription", P = l.forwardRef((e, o) => {
|
|
75
|
-
const { __scopeAlertDialog: r, ...a } = e, t = s(r);
|
|
76
|
-
return /* @__PURE__ */ i(B, { ...t, ...a, ref: o });
|
|
77
|
-
});
|
|
78
|
-
P.displayName = E;
|
|
79
|
-
var X = "AlertDialogAction", S = l.forwardRef(
|
|
80
|
-
(e, o) => {
|
|
81
|
-
const { __scopeAlertDialog: r, ...a } = e, t = s(r);
|
|
82
|
-
return /* @__PURE__ */ i(D, { ...t, ...a, ref: o });
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
S.displayName = X;
|
|
86
|
-
var T = "AlertDialogCancel", b = l.forwardRef(
|
|
87
|
-
(e, o) => {
|
|
88
|
-
const { __scopeAlertDialog: r, ...a } = e, { cancelRef: t } = Q(T, r), d = s(r), p = A(o, t);
|
|
89
|
-
return /* @__PURE__ */ i(D, { ...d, ...a, ref: p });
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
b.displayName = T;
|
|
93
|
-
var Z = ({ contentRef: e }) => {
|
|
94
|
-
const o = `\`${n}\` requires a description for the component to be accessible for screen reader users.
|
|
95
|
-
|
|
96
|
-
You can add a description to the \`${n}\` by passing a \`${E}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
97
|
-
|
|
98
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${n}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
99
|
-
|
|
100
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
101
|
-
return l.useEffect(() => {
|
|
102
|
-
var a;
|
|
103
|
-
document.getElementById(
|
|
104
|
-
(a = e.current) == null ? void 0 : a.getAttribute("aria-describedby")
|
|
105
|
-
) || console.warn(o);
|
|
106
|
-
}, [o, e]), null;
|
|
107
|
-
}, ne = m, ee = y, ce = _, pe = N, de = h, ge = S, ue = b, Ae = R, ve = P;
|
|
108
|
-
const De = ({
|
|
109
|
-
"data-theme": e,
|
|
110
|
-
className: o,
|
|
111
|
-
text: r,
|
|
112
|
-
onOpen: a
|
|
113
|
-
}) => /* @__PURE__ */ i(ee, { asChild: !0, children: /* @__PURE__ */ i(
|
|
114
|
-
k,
|
|
115
|
-
{
|
|
116
|
-
type: "button",
|
|
117
|
-
"data-theme": e,
|
|
118
|
-
className: q(o),
|
|
119
|
-
onClick: a,
|
|
120
|
-
children: r
|
|
121
|
-
}
|
|
122
|
-
) });
|
|
123
|
-
export {
|
|
124
|
-
De as A,
|
|
125
|
-
de as C,
|
|
126
|
-
ve as D,
|
|
127
|
-
pe as O,
|
|
128
|
-
ce as P,
|
|
129
|
-
ne as R,
|
|
130
|
-
Ae as T,
|
|
131
|
-
ue as a,
|
|
132
|
-
ge as b
|
|
133
|
-
};
|