@konstructio/ui 0.0.2 → 0.0.3

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 (117) hide show
  1. package/dist/{AlertDialogTrigger-BIbxXexQ.js → AlertDialogTrigger-lenvKoGF.js} +4 -4
  2. package/dist/Modal-Bg9UG35z.js +909 -0
  3. package/dist/{chevron-up-Cmu1oXfj.js → chevron-up-CvquEaNg.js} +1 -1
  4. package/dist/clsx-OuTLNxxd.js +16 -0
  5. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  6. package/dist/components/AlertDialog/AlertDialog.variants.d.ts +1 -1
  7. package/dist/components/AlertDialog/AlertDialog.variants.js +4 -5
  8. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  9. package/dist/components/AlertDialog/components/index.js +1 -1
  10. package/dist/components/Autocomplete/Autocomplete.variants.d.ts +2 -2
  11. package/dist/components/Autocomplete/Autocomplete.variants.js +8 -8
  12. package/dist/components/Autocomplete/components/List.types.d.ts +3 -3
  13. package/dist/components/Autocomplete/components/List.variants.d.ts +4 -4
  14. package/dist/components/Autocomplete/components/List.variants.js +13 -13
  15. package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +4 -4
  16. package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +4 -4
  17. package/dist/components/Breadcrumb/Breadcrumb.js +57 -412
  18. package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +3 -3
  19. package/dist/components/Breadcrumb/Breadcrumb.variants.js +12 -12
  20. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  21. package/dist/components/Button/Button.js +23 -21
  22. package/dist/components/Button/Button.variants.d.ts +2 -1
  23. package/dist/components/Button/Button.variants.js +122 -23
  24. package/dist/components/Checkbox/Checkbox.js +4 -4
  25. package/dist/components/Checkbox/Checkbox.variants.d.ts +2 -2
  26. package/dist/components/Checkbox/Checkbox.variants.js +7 -16
  27. package/dist/components/Dropdown/Dropdown.js +5 -5
  28. package/dist/components/Dropdown/Dropdown.types.d.ts +1 -0
  29. package/dist/components/Dropdown/Dropdown.variants.d.ts +1 -1
  30. package/dist/components/Dropdown/Dropdown.variants.js +5 -9
  31. package/dist/components/Dropdown/components/List/List.d.ts +2 -2
  32. package/dist/components/Dropdown/components/List/List.types.d.ts +3 -3
  33. package/dist/components/Dropdown/components/List/List.variants.d.ts +1 -1
  34. package/dist/components/Dropdown/components/List/List.variants.js +3 -3
  35. package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +1 -1
  36. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +3 -3
  37. package/dist/components/Dropdown/components/Wrapper.d.ts +2 -2
  38. package/dist/components/Dropdown/components/Wrapper.js +1 -1
  39. package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +4 -1
  40. package/dist/components/Dropdown/contexts/dropdown.provider.js +19 -8
  41. package/dist/components/Dropdown/hooks/useDropdown.d.ts +4 -4
  42. package/dist/components/Dropdown/hooks/useNavigationList.d.ts +4 -4
  43. package/dist/components/Input/Input.js +1 -1
  44. package/dist/components/Input/Input.variants.d.ts +1 -1
  45. package/dist/components/Input/Input.variants.js +3 -3
  46. package/dist/components/Modal/Modal.js +2 -2
  47. package/dist/components/Modal/components/Body/Body.js +1 -1
  48. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  49. package/dist/components/Modal/components/Header/Header.js +1 -1
  50. package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -3
  51. package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +2 -2
  52. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +10 -10
  53. package/dist/components/Modal/components/index.js +1 -1
  54. package/dist/components/Modal/hooks/useModal.d.ts +1 -1
  55. package/dist/components/NumberInput/NumberInput.js +96 -87
  56. package/dist/components/NumberInput/NumberInput.variants.d.ts +3 -3
  57. package/dist/components/NumberInput/NumberInput.variants.js +14 -21
  58. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +2 -2
  59. package/dist/components/ProgressBar/ProgressBar.variants.js +7 -12
  60. package/dist/components/Radio/Radio.variants.d.ts +1 -1
  61. package/dist/components/Radio/Radio.variants.js +4 -7
  62. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  63. package/dist/components/Range/Range.js +1 -1
  64. package/dist/components/Range/Range.variants.d.ts +4 -4
  65. package/dist/components/Range/Range.variants.js +18 -18
  66. package/dist/components/Slider/Slider.js +1 -1
  67. package/dist/components/Slider/Slider.variants.d.ts +3 -3
  68. package/dist/components/Slider/Slider.variants.js +12 -12
  69. package/dist/components/Switch/Switch.js +2 -2
  70. package/dist/components/Switch/Switch.variants.d.ts +2 -2
  71. package/dist/components/Switch/Switch.variants.js +6 -6
  72. package/dist/components/Tag/Tag.variants.js +1 -1
  73. package/dist/components/TagSelect/TagSelect.js +1 -1
  74. package/dist/components/TagSelect/TagSelect.variants.d.ts +3 -3
  75. package/dist/components/TagSelect/TagSelect.variants.js +11 -14
  76. package/dist/components/TagSelect/hooks/useTagSelect.d.ts +1 -1
  77. package/dist/components/TextArea/TextArea.variants.d.ts +1 -1
  78. package/dist/components/TextArea/TextArea.variants.js +5 -5
  79. package/dist/components/Toast/Toast.js +104 -101
  80. package/dist/components/Toast/Toast.variants.d.ts +3 -3
  81. package/dist/components/Toast/Toast.variants.js +12 -12
  82. package/dist/components/Tooltip/Tooltip.js +1 -1
  83. package/dist/components/Tooltip/Tooltip.variants.d.ts +2 -2
  84. package/dist/components/Tooltip/Tooltip.variants.js +9 -9
  85. package/dist/components/Tooltip/hooks/useTooltip.d.ts +1 -1
  86. package/dist/components/index.js +1 -1
  87. package/dist/contexts/theme.context.d.ts +1 -1
  88. package/dist/contexts/theme.hook.js +3 -6
  89. package/dist/contexts/theme.provider.d.ts +2 -3
  90. package/dist/contexts/theme.provider.js +4 -1
  91. package/dist/index-BBjak_0p.js +47 -0
  92. package/dist/index-BNmRGtA6.js +34 -0
  93. package/dist/{index-DFbnnPzA.js → index-Ci9Yg4G1.js} +5 -5
  94. package/dist/{index-B_GWswUP.js → index-D4Q2rMby.js} +1 -1
  95. package/dist/{index-DQMInta3.js → index-D68N8v8R.js} +214 -209
  96. package/dist/index-DoOsnuB6.js +72 -0
  97. package/dist/{index-2K8qjK4R.js → index-O3j1K921.js} +36 -37
  98. package/dist/index-OOfdXoxx.js +423 -0
  99. package/dist/index-ffjBR8Av.js +32 -0
  100. package/dist/index.js +1 -1
  101. package/dist/package.json +38 -38
  102. package/dist/plugins/konstruct.js +61 -50
  103. package/dist/plugins/utils/colors.d.ts +127 -10
  104. package/dist/plugins/utils/colors.js +210 -510
  105. package/dist/styles.css +1 -1
  106. package/dist/useBreadcrumb-tyxjV-a1.js +1398 -0
  107. package/dist/utils/index.js +150 -162
  108. package/dist/x-CRBgmX1Q.js +62 -0
  109. package/package.json +38 -38
  110. package/dist/Modal-CO0_SnXD.js +0 -909
  111. package/dist/index-2hJuj4UN.js +0 -19069
  112. package/dist/index-4qm4jAkj.js +0 -92
  113. package/dist/index-BJ7FQg17.js +0 -35
  114. package/dist/index-BqM_XclQ.js +0 -94
  115. package/dist/index-BwYCDOHZ.js +0 -44
  116. package/dist/index-CCavb-1K.js +0 -57
  117. package/dist/useBreadcrumb-BSMnc4Fu.js +0 -341
@@ -1,11 +1,11 @@
1
1
  export declare const sliderVariants: (props?: ({
2
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
3
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
4
4
  export declare const trackVariants: (props?: ({
5
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
5
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
6
6
  size?: "sm" | "lg" | "md" | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
8
  export declare const thumbVariants: (props?: ({
9
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
9
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
10
10
  size?: "sm" | "lg" | "md" | null | undefined;
11
11
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,24 +1,24 @@
1
- import { c as e } from "../../index-BwYCDOHZ.js";
1
+ import { c as e } from "../../index-BNmRGtA6.js";
2
2
  const r = e(
3
3
  ["relative", "flex", "items-center", "w-full"],
4
4
  {
5
5
  variants: {
6
6
  theme: {
7
7
  kubefirst: "",
8
- konstruct: "",
9
- colony: ""
8
+ colony: "",
9
+ civo: ""
10
10
  }
11
11
  },
12
12
  defaultVariants: {
13
13
  theme: "kubefirst"
14
14
  }
15
15
  }
16
- ), s = e(["relative", "flex-grow", "rounded-full"], {
16
+ ), i = e(["relative", "flex-grow", "rounded-full"], {
17
17
  variants: {
18
18
  theme: {
19
- kubefirst: ["bg-kubefirst-purple-dark"],
20
- konstruct: ["bg-orange-500"],
21
- colony: ["bg-red-500"]
19
+ kubefirst: ["bg-kubefirst-secondary"],
20
+ colony: ["bg-red-500"],
21
+ civo: ""
22
22
  },
23
23
  size: {
24
24
  sm: ["h-1"],
@@ -30,7 +30,7 @@ const r = e(
30
30
  theme: "kubefirst",
31
31
  size: "md"
32
32
  }
33
- }), a = e(
33
+ }), s = e(
34
34
  [
35
35
  "block",
36
36
  "w-5",
@@ -47,8 +47,8 @@ const r = e(
47
47
  variants: {
48
48
  theme: {
49
49
  kubefirst: "",
50
- konstruct: "",
51
- colony: ""
50
+ colony: "",
51
+ civo: ""
52
52
  },
53
53
  size: {
54
54
  sm: ["w-5", "h-5"],
@@ -64,6 +64,6 @@ const r = e(
64
64
  );
65
65
  export {
66
66
  r as sliderVariants,
67
- a as thumbVariants,
68
- s as trackVariants
67
+ s as thumbVariants,
68
+ i as trackVariants
69
69
  };
@@ -2,9 +2,9 @@ import { jsxs as x, jsx as l } from "react/jsx-runtime";
2
2
  import * as h from "react";
3
3
  import { forwardRef as I, useState as _, useRef as H, useId as A, useImperativeHandle as M, useEffect as $, useCallback as j } from "react";
4
4
  import { c as z, a as B, d as q } from "../../index-8vgf-x5i.js";
5
- import { u as F } from "../../index-CCavb-1K.js";
5
+ import { u as F } from "../../index-DoOsnuB6.js";
6
6
  import { u as O, a as V } from "../../index-BxeV34ij.js";
7
- import { P } from "../../index-BJ7FQg17.js";
7
+ import { P } from "../../index-OOfdXoxx.js";
8
8
  import { cn as D } from "../../utils/index.js";
9
9
  import "../../contexts/theme.context.js";
10
10
  import { useTheme as L } from "../../contexts/theme.hook.js";
@@ -1,6 +1,6 @@
1
1
  export declare const switchVariants: (props?: ({
2
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
3
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
4
4
  export declare const thumbVariants: (props?: ({
5
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
5
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,4 +1,4 @@
1
- import { c as t } from "../../index-BwYCDOHZ.js";
1
+ import { c as t } from "../../index-BNmRGtA6.js";
2
2
  const e = t(
3
3
  [
4
4
  "w-12",
@@ -16,9 +16,9 @@ const e = t(
16
16
  {
17
17
  variants: {
18
18
  theme: {
19
- konstruct: "bg-orange-600",
20
- kubefirst: "bg-kubefirst-purple-light",
21
- colony: "bg-red-600"
19
+ kubefirst: "bg-kubefirst-primary",
20
+ colony: "bg-red-600",
21
+ civo: ""
22
22
  }
23
23
  },
24
24
  defaultVariants: {
@@ -42,9 +42,9 @@ const e = t(
42
42
  {
43
43
  variants: {
44
44
  theme: {
45
- konstruct: "",
46
45
  kubefirst: "",
47
- colony: ""
46
+ colony: "",
47
+ civo: ""
48
48
  }
49
49
  },
50
50
  defaultVariants: {
@@ -1,4 +1,4 @@
1
- import { c as e } from "../../index-BwYCDOHZ.js";
1
+ import { c as e } from "../../index-BNmRGtA6.js";
2
2
  const f = e(
3
3
  ["px-2", "py-1", "rounded-md", "w-max", "text-xs"],
4
4
  {
@@ -7,7 +7,7 @@ import { cn as u } from "../../utils/index.js";
7
7
  import { Tag as d } from "../Tag/Tag.js";
8
8
  import { useTagSelect as k } from "./hooks/useTagSelect.js";
9
9
  import { tagSelectVariants as I, tagListVariants as V, tagItemVariants as j } from "./TagSelect.variants.js";
10
- import { C as y } from "../../chevron-up-Cmu1oXfj.js";
10
+ import { C as y } from "../../chevron-up-CvquEaNg.js";
11
11
  const B = g(({ label: n, name: r, options: f, placeholder: h = "Select a value...", theme: l }, x) => {
12
12
  const s = w(), { theme: o } = S(), t = C(null), {
13
13
  isOpen: a,
@@ -1,9 +1,9 @@
1
1
  export declare const tagSelectVariants: (props?: ({
2
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
3
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
4
4
  export declare const tagListVariants: (props?: ({
5
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
5
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export declare const tagItemVariants: (props?: ({
8
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
8
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,4 +1,4 @@
1
- import { c as e } from "../../index-BwYCDOHZ.js";
1
+ import { c as e } from "../../index-BNmRGtA6.js";
2
2
  const t = e(
3
3
  [
4
4
  "border",
@@ -18,14 +18,11 @@ const t = e(
18
18
  variants: {
19
19
  theme: {
20
20
  colony: ["aria-expanded:border-red-400", "aria-expanded:text-red-400"],
21
- konstruct: [
22
- "aria-expanded:border-orange-400",
23
- "aria-expanded:text-orange-400"
24
- ],
25
21
  kubefirst: [
26
- "aria-expanded:border-kubefirst-purple-light",
27
- "aria-expanded:text-kubefirst-purple-dark"
28
- ]
22
+ "aria-expanded:border-kubefirst-primary",
23
+ "aria-expanded:text-kubefirst-secondary"
24
+ ],
25
+ civo: ""
29
26
  }
30
27
  },
31
28
  defaultVariants: {
@@ -53,22 +50,22 @@ const t = e(
53
50
  variants: {
54
51
  theme: {
55
52
  colony: ["border-red-400"],
56
- konstruct: ["border-orange-400"],
57
- kubefirst: ["border-kubefirst-purple-light"]
53
+ kubefirst: ["border-kubefirst-primary"],
54
+ civo: ""
58
55
  }
59
56
  },
60
57
  defaultVariants: {
61
58
  theme: "kubefirst"
62
59
  }
63
60
  }
64
- ), o = e(
61
+ ), i = e(
65
62
  ["cursor-pointer", "py-1", "px-2", "last:mb-2", "first:mt-2", "h-full"],
66
63
  {
67
64
  variants: {
68
65
  theme: {
69
66
  colony: "hover:bg-red-100",
70
- konstruct: "hover:bg-orange-100",
71
- kubefirst: "hover:bg-purple-100"
67
+ kubefirst: "hover:bg-purple-100",
68
+ civo: ""
72
69
  }
73
70
  },
74
71
  defaultVariants: {
@@ -77,7 +74,7 @@ const t = e(
77
74
  }
78
75
  );
79
76
  export {
80
- o as tagItemVariants,
77
+ i as tagItemVariants,
81
78
  a as tagListVariants,
82
79
  t as tagSelectVariants
83
80
  };
@@ -3,7 +3,7 @@ export declare const useTagSelect: () => {
3
3
  isOpen: boolean;
4
4
  selectedTag: TagProps | null;
5
5
  value: string;
6
- wrapperRef: import('react').RefObject<HTMLDivElement>;
6
+ wrapperRef: import('react').RefObject<HTMLDivElement | null>;
7
7
  handleClickTag: (tag: TagProps) => void;
8
8
  handleOpenDropdown: () => void;
9
9
  };
@@ -1,3 +1,3 @@
1
1
  export declare const textAreaVariants: (props?: ({
2
- theme?: "kubefirst" | "konstruct" | "colony" | null | undefined;
2
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
3
3
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,5 +1,5 @@
1
- import { c as e } from "../../index-BwYCDOHZ.js";
2
- const o = e(
1
+ import { c as e } from "../../index-BNmRGtA6.js";
2
+ const i = e(
3
3
  [
4
4
  "border",
5
5
  "border-gray-200",
@@ -20,8 +20,8 @@ const o = e(
20
20
  variants: {
21
21
  theme: {
22
22
  colony: "focus:ring-red-700",
23
- kubefirst: "focus:ring-kubefirst-purple-light",
24
- konstruct: "focus:ring-orange-600"
23
+ kubefirst: "focus:ring-kubefirst-primary",
24
+ civo: ""
25
25
  }
26
26
  },
27
27
  defaultVariants: {
@@ -30,5 +30,5 @@ const o = e(
30
30
  }
31
31
  );
32
32
  export {
33
- o as textAreaVariants
33
+ i as textAreaVariants
34
34
  };