@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.
Files changed (256) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +19 -0
  3. package/dist/AlertDialogTrigger-BIbxXexQ.js +553 -0
  4. package/dist/Combination-Cmu9JRkv.js +479 -0
  5. package/dist/Modal-CO0_SnXD.js +909 -0
  6. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  7. package/dist/chevron-up-Cmu1oXfj.js +54 -0
  8. package/dist/components/AlertDialog/AlertDialog.d.ts +3 -0
  9. package/dist/components/AlertDialog/AlertDialog.js +54 -0
  10. package/dist/components/AlertDialog/AlertDialog.types.d.ts +13 -0
  11. package/dist/components/AlertDialog/AlertDialog.types.js +1 -0
  12. package/dist/components/AlertDialog/AlertDialog.variants.d.ts +3 -0
  13. package/dist/components/AlertDialog/AlertDialog.variants.js +16 -0
  14. package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +3 -0
  15. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +10 -0
  16. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +6 -0
  17. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.js +1 -0
  18. package/dist/components/AlertDialog/components/index.d.ts +1 -0
  19. package/dist/components/AlertDialog/components/index.js +4 -0
  20. package/dist/components/AlertDialog/hooks/index.d.ts +1 -0
  21. package/dist/components/AlertDialog/hooks/index.js +4 -0
  22. package/dist/components/AlertDialog/hooks/useAlertDialog.d.ts +7 -0
  23. package/dist/components/AlertDialog/hooks/useAlertDialog.js +10 -0
  24. package/dist/components/Autocomplete/Autocomplete.d.ts +3 -0
  25. package/dist/components/Autocomplete/Autocomplete.js +84 -0
  26. package/dist/components/Autocomplete/Autocomplete.types.d.ts +18 -0
  27. package/dist/components/Autocomplete/Autocomplete.types.js +1 -0
  28. package/dist/components/Autocomplete/Autocomplete.variants.d.ts +8 -0
  29. package/dist/components/Autocomplete/Autocomplete.variants.js +61 -0
  30. package/dist/components/Autocomplete/components/List.d.ts +3 -0
  31. package/dist/components/Autocomplete/components/List.js +57 -0
  32. package/dist/components/Autocomplete/components/List.types.d.ts +13 -0
  33. package/dist/components/Autocomplete/components/List.types.js +1 -0
  34. package/dist/components/Autocomplete/components/List.variants.d.ts +16 -0
  35. package/dist/components/Autocomplete/components/List.variants.js +81 -0
  36. package/dist/components/Autocomplete/hooks/index.d.ts +2 -0
  37. package/dist/components/Autocomplete/hooks/index.js +6 -0
  38. package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +17 -0
  39. package/dist/components/Autocomplete/hooks/useAutocomplete.js +81 -0
  40. package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +10 -0
  41. package/dist/components/Autocomplete/hooks/useNavigationList.js +78 -0
  42. package/dist/components/Breadcrumb/Breadcrumb.d.ts +3 -0
  43. package/dist/components/Breadcrumb/Breadcrumb.js +460 -0
  44. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +11 -0
  45. package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
  46. package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +12 -0
  47. package/dist/components/Breadcrumb/Breadcrumb.variants.js +61 -0
  48. package/dist/components/Breadcrumb/hooks/useBreadcrumb.d.ts +3 -0
  49. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +5 -0
  50. package/dist/components/Button/Button.d.ts +4 -0
  51. package/dist/components/Button/Button.js +42 -0
  52. package/dist/components/Button/Button.types.d.ts +7 -0
  53. package/dist/components/Button/Button.types.js +1 -0
  54. package/dist/components/Button/Button.variants.d.ts +6 -0
  55. package/dist/components/Button/Button.variants.js +102 -0
  56. package/dist/components/Checkbox/Checkbox.d.ts +3 -0
  57. package/dist/components/Checkbox/Checkbox.js +233 -0
  58. package/dist/components/Checkbox/Checkbox.types.d.ts +12 -0
  59. package/dist/components/Checkbox/Checkbox.types.js +1 -0
  60. package/dist/components/Checkbox/Checkbox.variants.d.ts +9 -0
  61. package/dist/components/Checkbox/Checkbox.variants.js +82 -0
  62. package/dist/components/Dropdown/Dropdown.d.ts +3 -0
  63. package/dist/components/Dropdown/Dropdown.js +10 -0
  64. package/dist/components/Dropdown/Dropdown.types.d.ts +15 -0
  65. package/dist/components/Dropdown/Dropdown.types.js +1 -0
  66. package/dist/components/Dropdown/Dropdown.variants.d.ts +3 -0
  67. package/dist/components/Dropdown/Dropdown.variants.js +45 -0
  68. package/dist/components/Dropdown/components/EmptyList.d.ts +2 -0
  69. package/dist/components/Dropdown/components/EmptyList.js +5 -0
  70. package/dist/components/Dropdown/components/List/List.d.ts +3 -0
  71. package/dist/components/Dropdown/components/List/List.js +25 -0
  72. package/dist/components/Dropdown/components/List/List.types.d.ts +8 -0
  73. package/dist/components/Dropdown/components/List/List.types.js +1 -0
  74. package/dist/components/Dropdown/components/List/List.variants.d.ts +3 -0
  75. package/dist/components/Dropdown/components/List/List.variants.js +34 -0
  76. package/dist/components/Dropdown/components/ListItem/ListItem.d.ts +3 -0
  77. package/dist/components/Dropdown/components/ListItem/ListItem.js +29 -0
  78. package/dist/components/Dropdown/components/ListItem/ListItem.types.d.ts +4 -0
  79. package/dist/components/Dropdown/components/ListItem/ListItem.types.js +1 -0
  80. package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +3 -0
  81. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +19 -0
  82. package/dist/components/Dropdown/components/Wrapper.d.ts +3 -0
  83. package/dist/components/Dropdown/components/Wrapper.js +90 -0
  84. package/dist/components/Dropdown/components/index.d.ts +3 -0
  85. package/dist/components/Dropdown/components/index.js +8 -0
  86. package/dist/components/Dropdown/contexts/dropdown.context.d.ts +8 -0
  87. package/dist/components/Dropdown/contexts/dropdown.context.js +14 -0
  88. package/dist/components/Dropdown/contexts/dropdown.hook.d.ts +2 -0
  89. package/dist/components/Dropdown/contexts/dropdown.hook.js +11 -0
  90. package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +2 -0
  91. package/dist/components/Dropdown/contexts/dropdown.provider.js +11 -0
  92. package/dist/components/Dropdown/contexts/index.d.ts +2 -0
  93. package/dist/components/Dropdown/contexts/index.js +6 -0
  94. package/dist/components/Dropdown/hooks/useDropdown.d.ts +11 -0
  95. package/dist/components/Dropdown/hooks/useDropdown.js +65 -0
  96. package/dist/components/Dropdown/hooks/useNavigationList.d.ts +8 -0
  97. package/dist/components/Dropdown/hooks/useNavigationList.js +66 -0
  98. package/dist/components/Input/Input.d.ts +3 -0
  99. package/dist/components/Input/Input.js +178 -0
  100. package/dist/components/Input/Input.types.d.ts +9 -0
  101. package/dist/components/Input/Input.types.js +1 -0
  102. package/dist/components/Input/Input.variants.d.ts +4 -0
  103. package/dist/components/Input/Input.variants.js +43 -0
  104. package/dist/components/Modal/Modal.d.ts +8 -0
  105. package/dist/components/Modal/Modal.js +10 -0
  106. package/dist/components/Modal/Modal.types.d.ts +12 -0
  107. package/dist/components/Modal/Modal.types.js +1 -0
  108. package/dist/components/Modal/components/Body/Body.d.ts +3 -0
  109. package/dist/components/Modal/components/Body/Body.js +7 -0
  110. package/dist/components/Modal/components/Body/Body.types.d.ts +5 -0
  111. package/dist/components/Modal/components/Body/Body.types.js +1 -0
  112. package/dist/components/Modal/components/Footer/Footer.d.ts +3 -0
  113. package/dist/components/Modal/components/Footer/Footer.js +6 -0
  114. package/dist/components/Modal/components/Footer/Footer.types.d.ts +5 -0
  115. package/dist/components/Modal/components/Footer/Footer.types.js +1 -0
  116. package/dist/components/Modal/components/Header/Header.d.ts +3 -0
  117. package/dist/components/Modal/components/Header/Header.js +6 -0
  118. package/dist/components/Modal/components/Header/Header.types.d.ts +5 -0
  119. package/dist/components/Modal/components/Header/Header.types.js +1 -0
  120. package/dist/components/Modal/components/Wrapper/Wrapper.d.ts +3 -0
  121. package/dist/components/Modal/components/Wrapper/Wrapper.js +13 -0
  122. package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +7 -0
  123. package/dist/components/Modal/components/Wrapper/Wrapper.types.js +1 -0
  124. package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +6 -0
  125. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +48 -0
  126. package/dist/components/Modal/components/index.d.ts +4 -0
  127. package/dist/components/Modal/components/index.js +10 -0
  128. package/dist/components/Modal/contexts/Modal.context.d.ts +2 -0
  129. package/dist/components/Modal/contexts/Modal.context.js +20 -0
  130. package/dist/components/Modal/contexts/Modal.provider.d.ts +4 -0
  131. package/dist/components/Modal/contexts/Modal.provider.js +26 -0
  132. package/dist/components/Modal/contexts/Modal.types.d.ts +9 -0
  133. package/dist/components/Modal/contexts/Modal.types.js +1 -0
  134. package/dist/components/Modal/contexts/index.d.ts +1 -0
  135. package/dist/components/Modal/contexts/index.js +4 -0
  136. package/dist/components/Modal/hooks/index.d.ts +1 -0
  137. package/dist/components/Modal/hooks/index.js +4 -0
  138. package/dist/components/Modal/hooks/useModal.d.ts +9 -0
  139. package/dist/components/Modal/hooks/useModal.js +27 -0
  140. package/dist/components/NumberInput/NumberInput.d.ts +3 -0
  141. package/dist/components/NumberInput/NumberInput.js +181 -0
  142. package/dist/components/NumberInput/NumberInput.types.d.ts +11 -0
  143. package/dist/components/NumberInput/NumberInput.types.js +1 -0
  144. package/dist/components/NumberInput/NumberInput.variants.d.ts +11 -0
  145. package/dist/components/NumberInput/NumberInput.variants.js +78 -0
  146. package/dist/components/ProgressBar/ProgressBar.d.ts +3 -0
  147. package/dist/components/ProgressBar/ProgressBar.js +37 -0
  148. package/dist/components/ProgressBar/ProgressBar.types.d.ts +8 -0
  149. package/dist/components/ProgressBar/ProgressBar.types.js +1 -0
  150. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +7 -0
  151. package/dist/components/ProgressBar/ProgressBar.variants.js +62 -0
  152. package/dist/components/Radio/Radio.d.ts +3 -0
  153. package/dist/components/Radio/Radio.js +58 -0
  154. package/dist/components/Radio/Radio.types.d.ts +12 -0
  155. package/dist/components/Radio/Radio.types.js +1 -0
  156. package/dist/components/Radio/Radio.variants.d.ts +3 -0
  157. package/dist/components/Radio/Radio.variants.js +49 -0
  158. package/dist/components/RadioGroup/RadioGroup.d.ts +3 -0
  159. package/dist/components/RadioGroup/RadioGroup.js +37 -0
  160. package/dist/components/RadioGroup/RadioGroup.types.d.ts +11 -0
  161. package/dist/components/RadioGroup/RadioGroup.types.js +1 -0
  162. package/dist/components/Range/Range.d.ts +3 -0
  163. package/dist/components/Range/Range.js +70 -0
  164. package/dist/components/Range/Range.types.d.ts +13 -0
  165. package/dist/components/Range/Range.types.js +1 -0
  166. package/dist/components/Range/Range.variants.d.ts +14 -0
  167. package/dist/components/Range/Range.variants.js +93 -0
  168. package/dist/components/Slider/Slider.d.ts +3 -0
  169. package/dist/components/Slider/Slider.js +52 -0
  170. package/dist/components/Slider/Slider.types.d.ts +13 -0
  171. package/dist/components/Slider/Slider.types.js +1 -0
  172. package/dist/components/Slider/Slider.variants.d.ts +11 -0
  173. package/dist/components/Slider/Slider.variants.js +69 -0
  174. package/dist/components/Switch/Switch.d.ts +3 -0
  175. package/dist/components/Switch/Switch.js +176 -0
  176. package/dist/components/Switch/Switch.types.d.ts +10 -0
  177. package/dist/components/Switch/Switch.types.js +1 -0
  178. package/dist/components/Switch/Switch.variants.d.ts +6 -0
  179. package/dist/components/Switch/Switch.variants.js +58 -0
  180. package/dist/components/Tag/Tag.d.ts +3 -0
  181. package/dist/components/Tag/Tag.js +6 -0
  182. package/dist/components/Tag/Tag.types.d.ts +4 -0
  183. package/dist/components/Tag/Tag.types.js +1 -0
  184. package/dist/components/Tag/Tag.variants.d.ts +3 -0
  185. package/dist/components/Tag/Tag.variants.js +31 -0
  186. package/dist/components/TagSelect/TagSelect.d.ts +3 -0
  187. package/dist/components/TagSelect/TagSelect.js +75 -0
  188. package/dist/components/TagSelect/TagSelect.types.d.ts +9 -0
  189. package/dist/components/TagSelect/TagSelect.types.js +1 -0
  190. package/dist/components/TagSelect/TagSelect.variants.d.ts +9 -0
  191. package/dist/components/TagSelect/TagSelect.variants.js +83 -0
  192. package/dist/components/TagSelect/hooks/useTagSelect.d.ts +9 -0
  193. package/dist/components/TagSelect/hooks/useTagSelect.js +39 -0
  194. package/dist/components/TextArea/TextArea.d.ts +3 -0
  195. package/dist/components/TextArea/TextArea.js +34 -0
  196. package/dist/components/TextArea/TextArea.types.d.ts +10 -0
  197. package/dist/components/TextArea/TextArea.types.js +1 -0
  198. package/dist/components/TextArea/TextArea.variants.d.ts +3 -0
  199. package/dist/components/TextArea/TextArea.variants.js +34 -0
  200. package/dist/components/Toast/Toast.d.ts +3 -0
  201. package/dist/components/Toast/Toast.js +471 -0
  202. package/dist/components/Toast/Toast.types.d.ts +12 -0
  203. package/dist/components/Toast/Toast.types.js +1 -0
  204. package/dist/components/Toast/Toast.variants.d.ts +9 -0
  205. package/dist/components/Toast/Toast.variants.js +74 -0
  206. package/dist/components/Tooltip/Tooltip.d.ts +3 -0
  207. package/dist/components/Tooltip/Tooltip.js +42 -0
  208. package/dist/components/Tooltip/Tooltip.types.d.ts +8 -0
  209. package/dist/components/Tooltip/Tooltip.types.js +1 -0
  210. package/dist/components/Tooltip/Tooltip.variants.d.ts +8 -0
  211. package/dist/components/Tooltip/Tooltip.variants.js +93 -0
  212. package/dist/components/Tooltip/hooks/useTooltip.d.ts +4 -0
  213. package/dist/components/Tooltip/hooks/useTooltip.js +25 -0
  214. package/dist/components/index.d.ts +19 -0
  215. package/dist/components/index.js +40 -0
  216. package/dist/contexts/index.d.ts +3 -0
  217. package/dist/contexts/index.js +8 -0
  218. package/dist/contexts/theme.context.d.ts +6 -0
  219. package/dist/contexts/theme.context.js +10 -0
  220. package/dist/contexts/theme.hook.d.ts +7 -0
  221. package/dist/contexts/theme.hook.js +9 -0
  222. package/dist/contexts/theme.provider.d.ts +7 -0
  223. package/dist/contexts/theme.provider.js +17 -0
  224. package/dist/hooks/index.d.ts +1 -0
  225. package/dist/hooks/index.js +4 -0
  226. package/dist/hooks/useToggle.d.ts +1 -0
  227. package/dist/hooks/useToggle.js +11 -0
  228. package/dist/index-2K8qjK4R.js +145 -0
  229. package/dist/index-2hJuj4UN.js +19069 -0
  230. package/dist/index-4qm4jAkj.js +92 -0
  231. package/dist/index-8vgf-x5i.js +118 -0
  232. package/dist/index-BJ7FQg17.js +35 -0
  233. package/dist/index-B_GWswUP.js +71 -0
  234. package/dist/index-BqM_XclQ.js +94 -0
  235. package/dist/index-BwYCDOHZ.js +44 -0
  236. package/dist/index-BxeV34ij.js +32 -0
  237. package/dist/index-CCavb-1K.js +57 -0
  238. package/dist/index-DFbnnPzA.js +423 -0
  239. package/dist/index-DQMInta3.js +663 -0
  240. package/dist/index.d.ts +4 -0
  241. package/dist/index.js +50 -0
  242. package/dist/js.cookie-OLEfuq_g.js +74 -0
  243. package/dist/package.json +118 -0
  244. package/dist/plugins/index.d.ts +1 -0
  245. package/dist/plugins/index.js +4 -0
  246. package/dist/plugins/konstruct.d.ts +4 -0
  247. package/dist/plugins/konstruct.js +104 -0
  248. package/dist/plugins/utils/colors.d.ts +206 -0
  249. package/dist/plugins/utils/colors.js +626 -0
  250. package/dist/styles.css +1 -0
  251. package/dist/styles.d.ts +0 -0
  252. package/dist/styles.js +1 -0
  253. package/dist/useBreadcrumb-BSMnc4Fu.js +341 -0
  254. package/dist/utils/index.d.ts +4 -0
  255. package/dist/utils/index.js +2278 -0
  256. 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,4 @@
1
+ import { konstructPlugin as t } from "./konstruct.js";
2
+ export {
3
+ t as konstructPlugin
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare const konstructPlugin: {
2
+ handler: import('tailwindcss/types/config').PluginCreator;
3
+ config?: Partial<import('tailwindcss/types/config').Config>;
4
+ };
@@ -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
+ };