@konstructio/ui 0.0.2
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/LICENSE.md +21 -0
- package/README.md +19 -0
- package/dist/AlertDialogTrigger-BIbxXexQ.js +553 -0
- package/dist/Combination-Cmu9JRkv.js +479 -0
- package/dist/Modal-CO0_SnXD.js +909 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/chevron-up-Cmu1oXfj.js +54 -0
- package/dist/components/AlertDialog/AlertDialog.d.ts +3 -0
- package/dist/components/AlertDialog/AlertDialog.js +54 -0
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +13 -0
- package/dist/components/AlertDialog/AlertDialog.types.js +1 -0
- package/dist/components/AlertDialog/AlertDialog.variants.d.ts +3 -0
- package/dist/components/AlertDialog/AlertDialog.variants.js +16 -0
- package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +3 -0
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +10 -0
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +6 -0
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.js +1 -0
- package/dist/components/AlertDialog/components/index.d.ts +1 -0
- package/dist/components/AlertDialog/components/index.js +4 -0
- package/dist/components/AlertDialog/hooks/index.d.ts +1 -0
- package/dist/components/AlertDialog/hooks/index.js +4 -0
- package/dist/components/AlertDialog/hooks/useAlertDialog.d.ts +7 -0
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +10 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +3 -0
- package/dist/components/Autocomplete/Autocomplete.js +84 -0
- package/dist/components/Autocomplete/Autocomplete.types.d.ts +18 -0
- package/dist/components/Autocomplete/Autocomplete.types.js +1 -0
- package/dist/components/Autocomplete/Autocomplete.variants.d.ts +8 -0
- package/dist/components/Autocomplete/Autocomplete.variants.js +61 -0
- package/dist/components/Autocomplete/components/List.d.ts +3 -0
- package/dist/components/Autocomplete/components/List.js +57 -0
- package/dist/components/Autocomplete/components/List.types.d.ts +13 -0
- package/dist/components/Autocomplete/components/List.types.js +1 -0
- package/dist/components/Autocomplete/components/List.variants.d.ts +16 -0
- package/dist/components/Autocomplete/components/List.variants.js +81 -0
- package/dist/components/Autocomplete/hooks/index.d.ts +2 -0
- package/dist/components/Autocomplete/hooks/index.js +6 -0
- package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +17 -0
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +81 -0
- package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +10 -0
- package/dist/components/Autocomplete/hooks/useNavigationList.js +78 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +3 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +460 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +11 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +12 -0
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +61 -0
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.d.ts +3 -0
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +5 -0
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/components/Button/Button.js +42 -0
- package/dist/components/Button/Button.types.d.ts +7 -0
- package/dist/components/Button/Button.types.js +1 -0
- package/dist/components/Button/Button.variants.d.ts +6 -0
- package/dist/components/Button/Button.variants.js +102 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.js +233 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +12 -0
- package/dist/components/Checkbox/Checkbox.types.js +1 -0
- package/dist/components/Checkbox/Checkbox.variants.d.ts +9 -0
- package/dist/components/Checkbox/Checkbox.variants.js +82 -0
- package/dist/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.js +10 -0
- package/dist/components/Dropdown/Dropdown.types.d.ts +15 -0
- package/dist/components/Dropdown/Dropdown.types.js +1 -0
- package/dist/components/Dropdown/Dropdown.variants.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.variants.js +45 -0
- package/dist/components/Dropdown/components/EmptyList.d.ts +2 -0
- package/dist/components/Dropdown/components/EmptyList.js +5 -0
- package/dist/components/Dropdown/components/List/List.d.ts +3 -0
- package/dist/components/Dropdown/components/List/List.js +25 -0
- package/dist/components/Dropdown/components/List/List.types.d.ts +8 -0
- package/dist/components/Dropdown/components/List/List.types.js +1 -0
- package/dist/components/Dropdown/components/List/List.variants.d.ts +3 -0
- package/dist/components/Dropdown/components/List/List.variants.js +34 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.d.ts +3 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.js +29 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.types.d.ts +4 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.types.js +1 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +3 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +19 -0
- package/dist/components/Dropdown/components/Wrapper.d.ts +3 -0
- package/dist/components/Dropdown/components/Wrapper.js +90 -0
- package/dist/components/Dropdown/components/index.d.ts +3 -0
- package/dist/components/Dropdown/components/index.js +8 -0
- package/dist/components/Dropdown/contexts/dropdown.context.d.ts +8 -0
- package/dist/components/Dropdown/contexts/dropdown.context.js +14 -0
- package/dist/components/Dropdown/contexts/dropdown.hook.d.ts +2 -0
- package/dist/components/Dropdown/contexts/dropdown.hook.js +11 -0
- package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +2 -0
- package/dist/components/Dropdown/contexts/dropdown.provider.js +11 -0
- package/dist/components/Dropdown/contexts/index.d.ts +2 -0
- package/dist/components/Dropdown/contexts/index.js +6 -0
- package/dist/components/Dropdown/hooks/useDropdown.d.ts +11 -0
- package/dist/components/Dropdown/hooks/useDropdown.js +65 -0
- package/dist/components/Dropdown/hooks/useNavigationList.d.ts +8 -0
- package/dist/components/Dropdown/hooks/useNavigationList.js +66 -0
- package/dist/components/Input/Input.d.ts +3 -0
- package/dist/components/Input/Input.js +178 -0
- package/dist/components/Input/Input.types.d.ts +9 -0
- package/dist/components/Input/Input.types.js +1 -0
- package/dist/components/Input/Input.variants.d.ts +4 -0
- package/dist/components/Input/Input.variants.js +43 -0
- package/dist/components/Modal/Modal.d.ts +8 -0
- package/dist/components/Modal/Modal.js +10 -0
- package/dist/components/Modal/Modal.types.d.ts +12 -0
- package/dist/components/Modal/Modal.types.js +1 -0
- package/dist/components/Modal/components/Body/Body.d.ts +3 -0
- package/dist/components/Modal/components/Body/Body.js +7 -0
- package/dist/components/Modal/components/Body/Body.types.d.ts +5 -0
- package/dist/components/Modal/components/Body/Body.types.js +1 -0
- package/dist/components/Modal/components/Footer/Footer.d.ts +3 -0
- package/dist/components/Modal/components/Footer/Footer.js +6 -0
- package/dist/components/Modal/components/Footer/Footer.types.d.ts +5 -0
- package/dist/components/Modal/components/Footer/Footer.types.js +1 -0
- package/dist/components/Modal/components/Header/Header.d.ts +3 -0
- package/dist/components/Modal/components/Header/Header.js +6 -0
- package/dist/components/Modal/components/Header/Header.types.d.ts +5 -0
- package/dist/components/Modal/components/Header/Header.types.js +1 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.d.ts +3 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.js +13 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +7 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.types.js +1 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +6 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +48 -0
- package/dist/components/Modal/components/index.d.ts +4 -0
- package/dist/components/Modal/components/index.js +10 -0
- package/dist/components/Modal/contexts/Modal.context.d.ts +2 -0
- package/dist/components/Modal/contexts/Modal.context.js +20 -0
- package/dist/components/Modal/contexts/Modal.provider.d.ts +4 -0
- package/dist/components/Modal/contexts/Modal.provider.js +26 -0
- package/dist/components/Modal/contexts/Modal.types.d.ts +9 -0
- package/dist/components/Modal/contexts/Modal.types.js +1 -0
- package/dist/components/Modal/contexts/index.d.ts +1 -0
- package/dist/components/Modal/contexts/index.js +4 -0
- package/dist/components/Modal/hooks/index.d.ts +1 -0
- package/dist/components/Modal/hooks/index.js +4 -0
- package/dist/components/Modal/hooks/useModal.d.ts +9 -0
- package/dist/components/Modal/hooks/useModal.js +27 -0
- package/dist/components/NumberInput/NumberInput.d.ts +3 -0
- package/dist/components/NumberInput/NumberInput.js +181 -0
- package/dist/components/NumberInput/NumberInput.types.d.ts +11 -0
- package/dist/components/NumberInput/NumberInput.types.js +1 -0
- package/dist/components/NumberInput/NumberInput.variants.d.ts +11 -0
- package/dist/components/NumberInput/NumberInput.variants.js +78 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/components/ProgressBar/ProgressBar.js +37 -0
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +8 -0
- package/dist/components/ProgressBar/ProgressBar.types.js +1 -0
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +7 -0
- package/dist/components/ProgressBar/ProgressBar.variants.js +62 -0
- package/dist/components/Radio/Radio.d.ts +3 -0
- package/dist/components/Radio/Radio.js +58 -0
- package/dist/components/Radio/Radio.types.d.ts +12 -0
- package/dist/components/Radio/Radio.types.js +1 -0
- package/dist/components/Radio/Radio.variants.d.ts +3 -0
- package/dist/components/Radio/Radio.variants.js +49 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -0
- package/dist/components/RadioGroup/RadioGroup.js +37 -0
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +11 -0
- package/dist/components/RadioGroup/RadioGroup.types.js +1 -0
- package/dist/components/Range/Range.d.ts +3 -0
- package/dist/components/Range/Range.js +70 -0
- package/dist/components/Range/Range.types.d.ts +13 -0
- package/dist/components/Range/Range.types.js +1 -0
- package/dist/components/Range/Range.variants.d.ts +14 -0
- package/dist/components/Range/Range.variants.js +93 -0
- package/dist/components/Slider/Slider.d.ts +3 -0
- package/dist/components/Slider/Slider.js +52 -0
- package/dist/components/Slider/Slider.types.d.ts +13 -0
- package/dist/components/Slider/Slider.types.js +1 -0
- package/dist/components/Slider/Slider.variants.d.ts +11 -0
- package/dist/components/Slider/Slider.variants.js +69 -0
- package/dist/components/Switch/Switch.d.ts +3 -0
- package/dist/components/Switch/Switch.js +176 -0
- package/dist/components/Switch/Switch.types.d.ts +10 -0
- package/dist/components/Switch/Switch.types.js +1 -0
- package/dist/components/Switch/Switch.variants.d.ts +6 -0
- package/dist/components/Switch/Switch.variants.js +58 -0
- package/dist/components/Tag/Tag.d.ts +3 -0
- package/dist/components/Tag/Tag.js +6 -0
- package/dist/components/Tag/Tag.types.d.ts +4 -0
- package/dist/components/Tag/Tag.types.js +1 -0
- package/dist/components/Tag/Tag.variants.d.ts +3 -0
- package/dist/components/Tag/Tag.variants.js +31 -0
- package/dist/components/TagSelect/TagSelect.d.ts +3 -0
- package/dist/components/TagSelect/TagSelect.js +75 -0
- package/dist/components/TagSelect/TagSelect.types.d.ts +9 -0
- package/dist/components/TagSelect/TagSelect.types.js +1 -0
- package/dist/components/TagSelect/TagSelect.variants.d.ts +9 -0
- package/dist/components/TagSelect/TagSelect.variants.js +83 -0
- package/dist/components/TagSelect/hooks/useTagSelect.d.ts +9 -0
- package/dist/components/TagSelect/hooks/useTagSelect.js +39 -0
- package/dist/components/TextArea/TextArea.d.ts +3 -0
- package/dist/components/TextArea/TextArea.js +34 -0
- package/dist/components/TextArea/TextArea.types.d.ts +10 -0
- package/dist/components/TextArea/TextArea.types.js +1 -0
- package/dist/components/TextArea/TextArea.variants.d.ts +3 -0
- package/dist/components/TextArea/TextArea.variants.js +34 -0
- package/dist/components/Toast/Toast.d.ts +3 -0
- package/dist/components/Toast/Toast.js +471 -0
- package/dist/components/Toast/Toast.types.d.ts +12 -0
- package/dist/components/Toast/Toast.types.js +1 -0
- package/dist/components/Toast/Toast.variants.d.ts +9 -0
- package/dist/components/Toast/Toast.variants.js +74 -0
- package/dist/components/Tooltip/Tooltip.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.js +42 -0
- package/dist/components/Tooltip/Tooltip.types.d.ts +8 -0
- package/dist/components/Tooltip/Tooltip.types.js +1 -0
- package/dist/components/Tooltip/Tooltip.variants.d.ts +8 -0
- package/dist/components/Tooltip/Tooltip.variants.js +93 -0
- package/dist/components/Tooltip/hooks/useTooltip.d.ts +4 -0
- package/dist/components/Tooltip/hooks/useTooltip.js +25 -0
- package/dist/components/index.d.ts +19 -0
- package/dist/components/index.js +40 -0
- package/dist/contexts/index.d.ts +3 -0
- package/dist/contexts/index.js +8 -0
- package/dist/contexts/theme.context.d.ts +6 -0
- package/dist/contexts/theme.context.js +10 -0
- package/dist/contexts/theme.hook.d.ts +7 -0
- package/dist/contexts/theme.hook.js +9 -0
- package/dist/contexts/theme.provider.d.ts +7 -0
- package/dist/contexts/theme.provider.js +17 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/useToggle.d.ts +1 -0
- package/dist/hooks/useToggle.js +11 -0
- package/dist/index-2K8qjK4R.js +145 -0
- package/dist/index-2hJuj4UN.js +19069 -0
- package/dist/index-4qm4jAkj.js +92 -0
- package/dist/index-8vgf-x5i.js +118 -0
- package/dist/index-BJ7FQg17.js +35 -0
- package/dist/index-B_GWswUP.js +71 -0
- package/dist/index-BqM_XclQ.js +94 -0
- package/dist/index-BwYCDOHZ.js +44 -0
- package/dist/index-BxeV34ij.js +32 -0
- package/dist/index-CCavb-1K.js +57 -0
- package/dist/index-DFbnnPzA.js +423 -0
- package/dist/index-DQMInta3.js +663 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +50 -0
- package/dist/js.cookie-OLEfuq_g.js +74 -0
- package/dist/package.json +118 -0
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.js +4 -0
- package/dist/plugins/konstruct.d.ts +4 -0
- package/dist/plugins/konstruct.js +104 -0
- package/dist/plugins/utils/colors.d.ts +206 -0
- package/dist/plugins/utils/colors.js +626 -0
- package/dist/styles.css +1 -0
- package/dist/styles.d.ts +0 -0
- package/dist/styles.js +1 -0
- package/dist/useBreadcrumb-BSMnc4Fu.js +341 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +2278 -0
- package/package.json +118 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AlertDialog as e } from "./components/AlertDialog/AlertDialog.js";
|
|
2
|
+
import { Autocomplete as m } from "./components/Autocomplete/Autocomplete.js";
|
|
3
|
+
import { Breadcrumb as x } from "./components/Breadcrumb/Breadcrumb.js";
|
|
4
|
+
import { Button as a } from "./components/Button/Button.js";
|
|
5
|
+
import { Checkbox as l } from "./components/Checkbox/Checkbox.js";
|
|
6
|
+
import { Dropdown as g } from "./components/Dropdown/Dropdown.js";
|
|
7
|
+
import { Input as i } from "./components/Input/Input.js";
|
|
8
|
+
import { M as c } from "./Modal-CO0_SnXD.js";
|
|
9
|
+
import { NumberInput as h } from "./components/NumberInput/NumberInput.js";
|
|
10
|
+
import { ProgressBar as A } from "./components/ProgressBar/ProgressBar.js";
|
|
11
|
+
import { Radio as P } from "./components/Radio/Radio.js";
|
|
12
|
+
import { Range as k } from "./components/Range/Range.js";
|
|
13
|
+
import { Slider as C } from "./components/Slider/Slider.js";
|
|
14
|
+
import { Switch as I } from "./components/Switch/Switch.js";
|
|
15
|
+
import { Tag as R } from "./components/Tag/Tag.js";
|
|
16
|
+
import { TagSelect as N } from "./components/TagSelect/TagSelect.js";
|
|
17
|
+
import { TextArea as q } from "./components/TextArea/TextArea.js";
|
|
18
|
+
import { Toast as z } from "./components/Toast/Toast.js";
|
|
19
|
+
import { Tooltip as F } from "./components/Tooltip/Tooltip.js";
|
|
20
|
+
import { ThemeContext as H } from "./contexts/theme.context.js";
|
|
21
|
+
import { useTheme as K } from "./contexts/theme.hook.js";
|
|
22
|
+
import { ThemeProvider as O } from "./contexts/theme.provider.js";
|
|
23
|
+
import { useToggle as U } from "./hooks/useToggle.js";
|
|
24
|
+
import { konstructPlugin as W } from "./plugins/konstruct.js";
|
|
25
|
+
export {
|
|
26
|
+
e as AlertDialog,
|
|
27
|
+
m as Autocomplete,
|
|
28
|
+
x as Breadcrumb,
|
|
29
|
+
a as Button,
|
|
30
|
+
l as Checkbox,
|
|
31
|
+
g as Dropdown,
|
|
32
|
+
i as Input,
|
|
33
|
+
c as Modal,
|
|
34
|
+
h as NumberInput,
|
|
35
|
+
A as ProgressBar,
|
|
36
|
+
P as Radio,
|
|
37
|
+
k as Range,
|
|
38
|
+
C as Slider,
|
|
39
|
+
I as Switch,
|
|
40
|
+
R as Tag,
|
|
41
|
+
N as TagSelect,
|
|
42
|
+
q as TextArea,
|
|
43
|
+
H as ThemeContext,
|
|
44
|
+
O as ThemeProvider,
|
|
45
|
+
z as Toast,
|
|
46
|
+
F as Tooltip,
|
|
47
|
+
W as konstructPlugin,
|
|
48
|
+
K as useTheme,
|
|
49
|
+
U as useToggle
|
|
50
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
2
|
+
function d(r) {
|
|
3
|
+
for (var c = 1; c < arguments.length; c++) {
|
|
4
|
+
var f = arguments[c];
|
|
5
|
+
for (var p in f)
|
|
6
|
+
r[p] = f[p];
|
|
7
|
+
}
|
|
8
|
+
return r;
|
|
9
|
+
}
|
|
10
|
+
var g = {
|
|
11
|
+
read: function(r) {
|
|
12
|
+
return r[0] === '"' && (r = r.slice(1, -1)), r.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
13
|
+
},
|
|
14
|
+
write: function(r) {
|
|
15
|
+
return encodeURIComponent(r).replace(
|
|
16
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
17
|
+
decodeURIComponent
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
function s(r, c) {
|
|
22
|
+
function f(n, t, e) {
|
|
23
|
+
if (!(typeof document > "u")) {
|
|
24
|
+
e = d({}, c, e), typeof e.expires == "number" && (e.expires = new Date(Date.now() + e.expires * 864e5)), e.expires && (e.expires = e.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
25
|
+
var o = "";
|
|
26
|
+
for (var i in e)
|
|
27
|
+
e[i] && (o += "; " + i, e[i] !== !0 && (o += "=" + e[i].split(";")[0]));
|
|
28
|
+
return document.cookie = n + "=" + r.write(t, n) + o;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function p(n) {
|
|
32
|
+
if (!(typeof document > "u" || arguments.length && !n)) {
|
|
33
|
+
for (var t = document.cookie ? document.cookie.split("; ") : [], e = {}, o = 0; o < t.length; o++) {
|
|
34
|
+
var i = t[o].split("="), v = i.slice(1).join("=");
|
|
35
|
+
try {
|
|
36
|
+
var u = decodeURIComponent(i[0]);
|
|
37
|
+
if (e[u] = r.read(v, u), n === u)
|
|
38
|
+
break;
|
|
39
|
+
} catch {
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return n ? e[n] : e;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return Object.create(
|
|
46
|
+
{
|
|
47
|
+
set: f,
|
|
48
|
+
get: p,
|
|
49
|
+
remove: function(n, t) {
|
|
50
|
+
f(
|
|
51
|
+
n,
|
|
52
|
+
"",
|
|
53
|
+
d({}, t, {
|
|
54
|
+
expires: -1
|
|
55
|
+
})
|
|
56
|
+
);
|
|
57
|
+
},
|
|
58
|
+
withAttributes: function(n) {
|
|
59
|
+
return s(this.converter, d({}, this.attributes, n));
|
|
60
|
+
},
|
|
61
|
+
withConverter: function(n) {
|
|
62
|
+
return s(d({}, this.converter, n), this.attributes);
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
attributes: { value: Object.freeze(c) },
|
|
67
|
+
converter: { value: Object.freeze(r) }
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
var a = s(g, { path: "/" });
|
|
72
|
+
export {
|
|
73
|
+
a
|
|
74
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@konstructio/ui",
|
|
3
|
+
"description": "A set of reusable and customizable React components built for konstruct.io",
|
|
4
|
+
"private": false,
|
|
5
|
+
"version": "0.0.1",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "Jesús Manuel Fuentes Trejo",
|
|
14
|
+
"email": "me@futjesus.dev",
|
|
15
|
+
"url": "https://futjesus.dev"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"konstruct",
|
|
19
|
+
"colony",
|
|
20
|
+
"kubefirst",
|
|
21
|
+
"react",
|
|
22
|
+
"tailwind",
|
|
23
|
+
"vite",
|
|
24
|
+
"vitest",
|
|
25
|
+
"radix"
|
|
26
|
+
],
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/konstructio/konstruct-ui.git"
|
|
30
|
+
},
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/konstructio/konstruct-ui/issues"
|
|
33
|
+
},
|
|
34
|
+
"sideEffects": [
|
|
35
|
+
"**/*.css"
|
|
36
|
+
],
|
|
37
|
+
"homepage": "https://konstructio.github.io/konstruct-ui",
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "rimraf ./dist & tsc --p ./tsconfig.build.json && vite build && cp ./package.json ./dist/package.json",
|
|
40
|
+
"build:storybook": "storybook build -o storybook-static && cp -r public/* storybook-static",
|
|
41
|
+
"check:prettier": "prettier lib --check --config ./.prettierrc",
|
|
42
|
+
"check:types": "tsc -p tsconfig.json",
|
|
43
|
+
"ci": "npm run build && npm run check:prettier && vitest run",
|
|
44
|
+
"deps:update": "npx npm-check-updates --interactive --format group",
|
|
45
|
+
"dev": "vite",
|
|
46
|
+
"format:prettier": "prettier lib --write './**/*.{js,jsx,ts,tsx}' --config ./.prettierrc",
|
|
47
|
+
"lint": "eslint lib --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
48
|
+
"prepare": "husky",
|
|
49
|
+
"preview": "vite preview",
|
|
50
|
+
"storybook": "storybook dev -p 6006",
|
|
51
|
+
"test": "vitest run --coverage",
|
|
52
|
+
"test:watch": "vitest run -w"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@radix-ui/react-alert-dialog": "^1.1.2",
|
|
56
|
+
"@radix-ui/react-checkbox": "^1.1.2",
|
|
57
|
+
"@radix-ui/react-slider": "^1.2.1",
|
|
58
|
+
"@radix-ui/react-slot": "^1.1.0",
|
|
59
|
+
"@radix-ui/react-switch": "^1.1.1",
|
|
60
|
+
"@radix-ui/react-toast": "^1.2.2",
|
|
61
|
+
"@radix-ui/react-visually-hidden": "^1.1.0",
|
|
62
|
+
"class-variance-authority": "^0.7.0",
|
|
63
|
+
"clsx": "^2.1.1",
|
|
64
|
+
"js-cookie": "^3.0.5",
|
|
65
|
+
"react-feather": "^2.0.10",
|
|
66
|
+
"react-focus-lock": "^2.13.2",
|
|
67
|
+
"react-remove-scroll": "^2.6.0",
|
|
68
|
+
"react-router-dom": "^6.28.0",
|
|
69
|
+
"tailwind-merge": "^2.5.4"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"react": "^18",
|
|
73
|
+
"react-dom": "^18"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@arethetypeswrong/cli": "^0.17.0",
|
|
77
|
+
"@storybook/addon-essentials": "^8.4.4",
|
|
78
|
+
"@storybook/addon-interactions": "^8.4.4",
|
|
79
|
+
"@storybook/addon-links": "^8.4.4",
|
|
80
|
+
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
81
|
+
"@storybook/blocks": "^8.4.4",
|
|
82
|
+
"@storybook/react": "^8.4.4",
|
|
83
|
+
"@storybook/react-vite": "^8.4.4",
|
|
84
|
+
"@storybook/test": "^8.4.4",
|
|
85
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
86
|
+
"@testing-library/react": "^16.0.1",
|
|
87
|
+
"@testing-library/user-event": "^14.5.2",
|
|
88
|
+
"@types/js-cookie": "^3.0.6",
|
|
89
|
+
"@types/react": "^18.3.12",
|
|
90
|
+
"@types/react-dom": "^18.3.1",
|
|
91
|
+
"@typescript-eslint/eslint-plugin": "^8.14.0",
|
|
92
|
+
"@typescript-eslint/parser": "^8.14.0",
|
|
93
|
+
"@vitejs/plugin-react": "^4.3.3",
|
|
94
|
+
"@vitest/coverage-v8": "^2.1.5",
|
|
95
|
+
"ajv": "^8.17.1",
|
|
96
|
+
"autoprefixer": "^10.4.20",
|
|
97
|
+
"eslint": "^8.57.0",
|
|
98
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
99
|
+
"eslint-plugin-react-refresh": "^0.4.7",
|
|
100
|
+
"eslint-plugin-storybook": "^0.9.0",
|
|
101
|
+
"glob": "^11.0.0",
|
|
102
|
+
"husky": "^9.1.6",
|
|
103
|
+
"jsdom": "^25.0.1",
|
|
104
|
+
"postcss": "^8.4.49",
|
|
105
|
+
"prettier": "^3.3.3",
|
|
106
|
+
"react": "^18.3.1",
|
|
107
|
+
"react-dom": "^18.3.1",
|
|
108
|
+
"rimraf": "^6.0.1",
|
|
109
|
+
"storybook": "^8.4.4",
|
|
110
|
+
"tailwindcss": "^3.4.14",
|
|
111
|
+
"ts-node": "^10.9.2",
|
|
112
|
+
"typescript": "^5.6.3",
|
|
113
|
+
"vite": "^5.4.11",
|
|
114
|
+
"vite-plugin-dts": "^4.3.0",
|
|
115
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
116
|
+
"vitest": "^2.1.5"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './konstruct';
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { g as l } from "../_commonjsHelpers-C6fGbg64.js";
|
|
2
|
+
import { konstructColors as s } from "./utils/colors.js";
|
|
3
|
+
var c = {}, d = {};
|
|
4
|
+
(function(t) {
|
|
5
|
+
Object.defineProperty(t, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
}), Object.defineProperty(t, "default", {
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
get: function() {
|
|
10
|
+
return o;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
function r(n, e) {
|
|
14
|
+
return {
|
|
15
|
+
handler: n,
|
|
16
|
+
config: e
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
r.withOptions = function(n, e = () => ({})) {
|
|
20
|
+
const i = function(a) {
|
|
21
|
+
return {
|
|
22
|
+
__options: a,
|
|
23
|
+
handler: n(a),
|
|
24
|
+
config: e(a)
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
return i.__isOptionsFunction = !0, i.__pluginFunction = n, i.__configFunction = e, i;
|
|
28
|
+
};
|
|
29
|
+
const o = r;
|
|
30
|
+
})(d);
|
|
31
|
+
(function(t) {
|
|
32
|
+
Object.defineProperty(t, "__esModule", {
|
|
33
|
+
value: !0
|
|
34
|
+
}), Object.defineProperty(t, "default", {
|
|
35
|
+
enumerable: !0,
|
|
36
|
+
get: function() {
|
|
37
|
+
return n;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
const r = /* @__PURE__ */ o(d);
|
|
41
|
+
function o(e) {
|
|
42
|
+
return e && e.__esModule ? e : {
|
|
43
|
+
default: e
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
const n = r.default;
|
|
47
|
+
})(c);
|
|
48
|
+
let u = c;
|
|
49
|
+
var f = (u.__esModule ? u : { default: u }).default;
|
|
50
|
+
const g = /* @__PURE__ */ l(f), _ = g(
|
|
51
|
+
function({ addBase: t }) {
|
|
52
|
+
t({
|
|
53
|
+
":root": {
|
|
54
|
+
"--viewport-padding": "25px"
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
theme: {
|
|
60
|
+
extend: {
|
|
61
|
+
colors: { ...s },
|
|
62
|
+
viewportPadding: "",
|
|
63
|
+
backgroundImage: {
|
|
64
|
+
"kubefirst-gradient": "linear-gradient(90deg, #81E2B4, #8851C8)"
|
|
65
|
+
},
|
|
66
|
+
animation: {
|
|
67
|
+
"gradient-move": "moveGradient 6s linear infinite",
|
|
68
|
+
"slide-in": "slideIn 150ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
69
|
+
"swipe-out": "swipeOut 150ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
70
|
+
},
|
|
71
|
+
keyframes: {
|
|
72
|
+
moveGradient: {
|
|
73
|
+
"0%": { backgroundPosition: "0% 50%" },
|
|
74
|
+
"50%": { backgroundPosition: "100% 50%" },
|
|
75
|
+
"100%": { backgroundPosition: "0% 50%" }
|
|
76
|
+
},
|
|
77
|
+
hide: {
|
|
78
|
+
from: { opacity: "1" },
|
|
79
|
+
to: { opacity: "0" }
|
|
80
|
+
},
|
|
81
|
+
slideIn: {
|
|
82
|
+
from: {
|
|
83
|
+
transform: "translateX(calc(100% + var(--viewport-padding)))"
|
|
84
|
+
},
|
|
85
|
+
to: {
|
|
86
|
+
transform: "translateX(0)"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
swipeOut: {
|
|
90
|
+
from: {
|
|
91
|
+
transform: "translateX(0)"
|
|
92
|
+
},
|
|
93
|
+
to: {
|
|
94
|
+
transform: "translateX(calc(100% + var(--viewport-padding)))"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
export {
|
|
103
|
+
_ as konstructPlugin
|
|
104
|
+
};
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
export declare const konstructColors: {
|
|
2
|
+
black: "#000";
|
|
3
|
+
white: "#fff";
|
|
4
|
+
blue: {
|
|
5
|
+
50: string;
|
|
6
|
+
100: string;
|
|
7
|
+
200: string;
|
|
8
|
+
300: string;
|
|
9
|
+
400: string;
|
|
10
|
+
500: string;
|
|
11
|
+
600: string;
|
|
12
|
+
700: string;
|
|
13
|
+
800: string;
|
|
14
|
+
900: string;
|
|
15
|
+
};
|
|
16
|
+
gray: {
|
|
17
|
+
50: string;
|
|
18
|
+
100: string;
|
|
19
|
+
200: string;
|
|
20
|
+
300: string;
|
|
21
|
+
400: string;
|
|
22
|
+
500: string;
|
|
23
|
+
600: string;
|
|
24
|
+
700: string;
|
|
25
|
+
800: string;
|
|
26
|
+
900: string;
|
|
27
|
+
};
|
|
28
|
+
green: {
|
|
29
|
+
50: string;
|
|
30
|
+
100: string;
|
|
31
|
+
200: string;
|
|
32
|
+
300: string;
|
|
33
|
+
400: string;
|
|
34
|
+
500: string;
|
|
35
|
+
600: string;
|
|
36
|
+
700: string;
|
|
37
|
+
800: string;
|
|
38
|
+
900: string;
|
|
39
|
+
};
|
|
40
|
+
indigo: {
|
|
41
|
+
50: string;
|
|
42
|
+
100: string;
|
|
43
|
+
200: string;
|
|
44
|
+
300: string;
|
|
45
|
+
400: string;
|
|
46
|
+
500: string;
|
|
47
|
+
600: string;
|
|
48
|
+
700: string;
|
|
49
|
+
800: string;
|
|
50
|
+
900: string;
|
|
51
|
+
};
|
|
52
|
+
metal: {
|
|
53
|
+
50: string;
|
|
54
|
+
100: string;
|
|
55
|
+
200: string;
|
|
56
|
+
300: string;
|
|
57
|
+
400: string;
|
|
58
|
+
500: string;
|
|
59
|
+
600: string;
|
|
60
|
+
700: string;
|
|
61
|
+
800: string;
|
|
62
|
+
900: string;
|
|
63
|
+
};
|
|
64
|
+
neutral: {
|
|
65
|
+
50: string;
|
|
66
|
+
100: string;
|
|
67
|
+
200: string;
|
|
68
|
+
300: string;
|
|
69
|
+
400: string;
|
|
70
|
+
500: string;
|
|
71
|
+
600: string;
|
|
72
|
+
700: string;
|
|
73
|
+
800: string;
|
|
74
|
+
900: string;
|
|
75
|
+
};
|
|
76
|
+
orange: {
|
|
77
|
+
50: string;
|
|
78
|
+
100: string;
|
|
79
|
+
200: string;
|
|
80
|
+
300: string;
|
|
81
|
+
400: string;
|
|
82
|
+
500: string;
|
|
83
|
+
600: string;
|
|
84
|
+
700: string;
|
|
85
|
+
800: string;
|
|
86
|
+
900: string;
|
|
87
|
+
};
|
|
88
|
+
pink: {
|
|
89
|
+
50: string;
|
|
90
|
+
100: string;
|
|
91
|
+
200: string;
|
|
92
|
+
300: string;
|
|
93
|
+
400: string;
|
|
94
|
+
500: string;
|
|
95
|
+
600: string;
|
|
96
|
+
700: string;
|
|
97
|
+
800: string;
|
|
98
|
+
900: string;
|
|
99
|
+
};
|
|
100
|
+
powder: {
|
|
101
|
+
50: string;
|
|
102
|
+
100: string;
|
|
103
|
+
200: string;
|
|
104
|
+
300: string;
|
|
105
|
+
400: string;
|
|
106
|
+
500: string;
|
|
107
|
+
600: string;
|
|
108
|
+
700: string;
|
|
109
|
+
800: string;
|
|
110
|
+
900: string;
|
|
111
|
+
};
|
|
112
|
+
purple: {
|
|
113
|
+
50: string;
|
|
114
|
+
100: string;
|
|
115
|
+
200: string;
|
|
116
|
+
300: string;
|
|
117
|
+
400: string;
|
|
118
|
+
500: string;
|
|
119
|
+
600: string;
|
|
120
|
+
700: string;
|
|
121
|
+
800: string;
|
|
122
|
+
900: string;
|
|
123
|
+
};
|
|
124
|
+
red: {
|
|
125
|
+
50: string;
|
|
126
|
+
100: string;
|
|
127
|
+
200: string;
|
|
128
|
+
300: string;
|
|
129
|
+
400: string;
|
|
130
|
+
500: string;
|
|
131
|
+
600: string;
|
|
132
|
+
700: string;
|
|
133
|
+
800: string;
|
|
134
|
+
900: string;
|
|
135
|
+
};
|
|
136
|
+
slate: {
|
|
137
|
+
50: string;
|
|
138
|
+
100: string;
|
|
139
|
+
200: string;
|
|
140
|
+
300: string;
|
|
141
|
+
400: string;
|
|
142
|
+
500: string;
|
|
143
|
+
600: string;
|
|
144
|
+
700: string;
|
|
145
|
+
800: string;
|
|
146
|
+
900: string;
|
|
147
|
+
};
|
|
148
|
+
stone: {
|
|
149
|
+
50: string;
|
|
150
|
+
100: string;
|
|
151
|
+
200: string;
|
|
152
|
+
300: string;
|
|
153
|
+
400: string;
|
|
154
|
+
500: string;
|
|
155
|
+
600: string;
|
|
156
|
+
700: string;
|
|
157
|
+
800: string;
|
|
158
|
+
900: string;
|
|
159
|
+
};
|
|
160
|
+
teal: {
|
|
161
|
+
50: string;
|
|
162
|
+
100: string;
|
|
163
|
+
200: string;
|
|
164
|
+
300: string;
|
|
165
|
+
400: string;
|
|
166
|
+
500: string;
|
|
167
|
+
600: string;
|
|
168
|
+
700: string;
|
|
169
|
+
800: string;
|
|
170
|
+
900: string;
|
|
171
|
+
};
|
|
172
|
+
yellow: {
|
|
173
|
+
50: string;
|
|
174
|
+
100: string;
|
|
175
|
+
200: string;
|
|
176
|
+
300: string;
|
|
177
|
+
400: string;
|
|
178
|
+
500: string;
|
|
179
|
+
600: string;
|
|
180
|
+
700: string;
|
|
181
|
+
800: string;
|
|
182
|
+
900: string;
|
|
183
|
+
};
|
|
184
|
+
zinc: {
|
|
185
|
+
50: string;
|
|
186
|
+
100: string;
|
|
187
|
+
200: string;
|
|
188
|
+
300: string;
|
|
189
|
+
400: string;
|
|
190
|
+
500: string;
|
|
191
|
+
600: string;
|
|
192
|
+
700: string;
|
|
193
|
+
800: string;
|
|
194
|
+
900: string;
|
|
195
|
+
};
|
|
196
|
+
facebook: string;
|
|
197
|
+
twitter: string;
|
|
198
|
+
github: string;
|
|
199
|
+
linkedin: string;
|
|
200
|
+
youtube: string;
|
|
201
|
+
slack: string;
|
|
202
|
+
kubefirst: {
|
|
203
|
+
'purple-light': string;
|
|
204
|
+
'purple-dark': string;
|
|
205
|
+
};
|
|
206
|
+
};
|