@konstructio/ui 0.0.2 → 0.0.4

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 (118) hide show
  1. package/README.md +53 -4
  2. package/dist/{AlertDialogTrigger-BIbxXexQ.js → AlertDialogTrigger-lenvKoGF.js} +4 -4
  3. package/dist/Modal-Bg9UG35z.js +909 -0
  4. package/dist/{chevron-up-Cmu1oXfj.js → chevron-up-CvquEaNg.js} +1 -1
  5. package/dist/clsx-OuTLNxxd.js +16 -0
  6. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  7. package/dist/components/AlertDialog/AlertDialog.variants.d.ts +1 -1
  8. package/dist/components/AlertDialog/AlertDialog.variants.js +4 -5
  9. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  10. package/dist/components/AlertDialog/components/index.js +1 -1
  11. package/dist/components/Autocomplete/Autocomplete.variants.d.ts +2 -2
  12. package/dist/components/Autocomplete/Autocomplete.variants.js +8 -8
  13. package/dist/components/Autocomplete/components/List.types.d.ts +3 -3
  14. package/dist/components/Autocomplete/components/List.variants.d.ts +4 -4
  15. package/dist/components/Autocomplete/components/List.variants.js +13 -13
  16. package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +4 -4
  17. package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +4 -4
  18. package/dist/components/Breadcrumb/Breadcrumb.js +57 -412
  19. package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +3 -3
  20. package/dist/components/Breadcrumb/Breadcrumb.variants.js +12 -12
  21. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  22. package/dist/components/Button/Button.js +23 -21
  23. package/dist/components/Button/Button.variants.d.ts +2 -1
  24. package/dist/components/Button/Button.variants.js +122 -23
  25. package/dist/components/Checkbox/Checkbox.js +4 -4
  26. package/dist/components/Checkbox/Checkbox.variants.d.ts +2 -2
  27. package/dist/components/Checkbox/Checkbox.variants.js +7 -16
  28. package/dist/components/Dropdown/Dropdown.js +5 -5
  29. package/dist/components/Dropdown/Dropdown.types.d.ts +1 -0
  30. package/dist/components/Dropdown/Dropdown.variants.d.ts +1 -1
  31. package/dist/components/Dropdown/Dropdown.variants.js +5 -9
  32. package/dist/components/Dropdown/components/List/List.d.ts +2 -2
  33. package/dist/components/Dropdown/components/List/List.types.d.ts +3 -3
  34. package/dist/components/Dropdown/components/List/List.variants.d.ts +1 -1
  35. package/dist/components/Dropdown/components/List/List.variants.js +3 -3
  36. package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +1 -1
  37. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +3 -3
  38. package/dist/components/Dropdown/components/Wrapper.d.ts +2 -2
  39. package/dist/components/Dropdown/components/Wrapper.js +1 -1
  40. package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +4 -1
  41. package/dist/components/Dropdown/contexts/dropdown.provider.js +19 -8
  42. package/dist/components/Dropdown/hooks/useDropdown.d.ts +4 -4
  43. package/dist/components/Dropdown/hooks/useNavigationList.d.ts +4 -4
  44. package/dist/components/Input/Input.js +1 -1
  45. package/dist/components/Input/Input.variants.d.ts +1 -1
  46. package/dist/components/Input/Input.variants.js +3 -3
  47. package/dist/components/Modal/Modal.js +2 -2
  48. package/dist/components/Modal/components/Body/Body.js +1 -1
  49. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  50. package/dist/components/Modal/components/Header/Header.js +1 -1
  51. package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -3
  52. package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +2 -2
  53. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +10 -10
  54. package/dist/components/Modal/components/index.js +1 -1
  55. package/dist/components/Modal/hooks/useModal.d.ts +1 -1
  56. package/dist/components/NumberInput/NumberInput.js +96 -87
  57. package/dist/components/NumberInput/NumberInput.variants.d.ts +3 -3
  58. package/dist/components/NumberInput/NumberInput.variants.js +14 -21
  59. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +2 -2
  60. package/dist/components/ProgressBar/ProgressBar.variants.js +7 -12
  61. package/dist/components/Radio/Radio.variants.d.ts +1 -1
  62. package/dist/components/Radio/Radio.variants.js +4 -7
  63. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  64. package/dist/components/Range/Range.js +1 -1
  65. package/dist/components/Range/Range.variants.d.ts +4 -4
  66. package/dist/components/Range/Range.variants.js +18 -18
  67. package/dist/components/Slider/Slider.js +1 -1
  68. package/dist/components/Slider/Slider.variants.d.ts +3 -3
  69. package/dist/components/Slider/Slider.variants.js +12 -12
  70. package/dist/components/Switch/Switch.js +2 -2
  71. package/dist/components/Switch/Switch.variants.d.ts +2 -2
  72. package/dist/components/Switch/Switch.variants.js +6 -6
  73. package/dist/components/Tag/Tag.variants.js +1 -1
  74. package/dist/components/TagSelect/TagSelect.js +1 -1
  75. package/dist/components/TagSelect/TagSelect.variants.d.ts +3 -3
  76. package/dist/components/TagSelect/TagSelect.variants.js +11 -14
  77. package/dist/components/TagSelect/hooks/useTagSelect.d.ts +1 -1
  78. package/dist/components/TextArea/TextArea.variants.d.ts +1 -1
  79. package/dist/components/TextArea/TextArea.variants.js +5 -5
  80. package/dist/components/Toast/Toast.js +104 -101
  81. package/dist/components/Toast/Toast.variants.d.ts +3 -3
  82. package/dist/components/Toast/Toast.variants.js +12 -12
  83. package/dist/components/Tooltip/Tooltip.js +1 -1
  84. package/dist/components/Tooltip/Tooltip.variants.d.ts +2 -2
  85. package/dist/components/Tooltip/Tooltip.variants.js +9 -9
  86. package/dist/components/Tooltip/hooks/useTooltip.d.ts +1 -1
  87. package/dist/components/index.js +1 -1
  88. package/dist/contexts/theme.context.d.ts +1 -1
  89. package/dist/contexts/theme.hook.js +3 -6
  90. package/dist/contexts/theme.provider.d.ts +2 -3
  91. package/dist/contexts/theme.provider.js +4 -1
  92. package/dist/index-BBjak_0p.js +47 -0
  93. package/dist/index-BNmRGtA6.js +34 -0
  94. package/dist/{index-DFbnnPzA.js → index-Ci9Yg4G1.js} +5 -5
  95. package/dist/{index-B_GWswUP.js → index-D4Q2rMby.js} +1 -1
  96. package/dist/{index-DQMInta3.js → index-D68N8v8R.js} +214 -209
  97. package/dist/index-DoOsnuB6.js +72 -0
  98. package/dist/{index-2K8qjK4R.js → index-O3j1K921.js} +36 -37
  99. package/dist/index-OOfdXoxx.js +423 -0
  100. package/dist/index-ffjBR8Av.js +32 -0
  101. package/dist/index.js +1 -1
  102. package/dist/package.json +42 -38
  103. package/dist/plugins/konstruct.js +61 -50
  104. package/dist/plugins/utils/colors.d.ts +127 -10
  105. package/dist/plugins/utils/colors.js +210 -510
  106. package/dist/styles.css +1 -1
  107. package/dist/useBreadcrumb-tyxjV-a1.js +1398 -0
  108. package/dist/utils/index.js +150 -162
  109. package/dist/x-CRBgmX1Q.js +62 -0
  110. package/package.json +42 -38
  111. package/dist/Modal-CO0_SnXD.js +0 -909
  112. package/dist/index-2hJuj4UN.js +0 -19069
  113. package/dist/index-4qm4jAkj.js +0 -92
  114. package/dist/index-BJ7FQg17.js +0 -35
  115. package/dist/index-BqM_XclQ.js +0 -94
  116. package/dist/index-BwYCDOHZ.js +0 -44
  117. package/dist/index-CCavb-1K.js +0 -57
  118. package/dist/useBreadcrumb-BSMnc4Fu.js +0 -341
package/dist/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.0.1",
5
+ "version": "0.0.3",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
@@ -34,6 +34,9 @@
34
34
  "sideEffects": [
35
35
  "**/*.css"
36
36
  ],
37
+ "publishConfig": {
38
+ "registry": "https://registry.npmjs.org/"
39
+ },
37
40
  "homepage": "https://konstructio.github.io/konstruct-ui",
38
41
  "scripts": {
39
42
  "build": "rimraf ./dist & tsc --p ./tsconfig.build.json && vite build && cp ./package.json ./dist/package.json",
@@ -49,49 +52,50 @@
49
52
  "preview": "vite preview",
50
53
  "storybook": "storybook dev -p 6006",
51
54
  "test": "vitest run --coverage",
52
- "test:watch": "vitest run -w"
55
+ "test:watch": "vitest dev"
53
56
  },
54
57
  "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",
58
+ "@radix-ui/react-alert-dialog": "^1.1.4",
59
+ "@radix-ui/react-checkbox": "^1.1.3",
60
+ "@radix-ui/react-slider": "^1.2.2",
61
+ "@radix-ui/react-slot": "^1.1.1",
62
+ "@radix-ui/react-switch": "^1.1.2",
63
+ "@radix-ui/react-toast": "^1.2.4",
64
+ "@radix-ui/react-visually-hidden": "^1.1.1",
65
+ "class-variance-authority": "^0.7.1",
63
66
  "clsx": "^2.1.1",
64
67
  "js-cookie": "^3.0.5",
65
68
  "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"
69
+ "react-focus-lock": "^2.13.5",
70
+ "react-remove-scroll": "^2.6.2",
71
+ "react-router-dom": "^7.0.2",
72
+ "tailwind-merge": "^2.5.5"
70
73
  },
71
74
  "peerDependencies": {
72
75
  "react": "^18",
73
76
  "react-dom": "^18"
74
77
  },
75
78
  "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",
79
+ "@arethetypeswrong/cli": "^0.17.1",
80
+ "@storybook/addon-docs": "^8.4.7",
81
+ "@storybook/addon-essentials": "^8.4.7",
82
+ "@storybook/addon-interactions": "^8.4.7",
83
+ "@storybook/addon-links": "^8.4.7",
80
84
  "@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
+ "@storybook/blocks": "^8.4.7",
86
+ "@storybook/react": "^8.4.7",
87
+ "@storybook/react-vite": "^8.4.7",
88
+ "@storybook/test": "^8.4.7",
85
89
  "@testing-library/jest-dom": "^6.6.3",
86
- "@testing-library/react": "^16.0.1",
90
+ "@testing-library/react": "^16.1.0",
87
91
  "@testing-library/user-event": "^14.5.2",
88
92
  "@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",
93
+ "@types/react": "^19.0.1",
94
+ "@types/react-dom": "^19.0.2",
95
+ "@typescript-eslint/eslint-plugin": "^8.18.1",
96
+ "@typescript-eslint/parser": "^8.18.1",
97
+ "@vitejs/plugin-react": "^4.3.4",
98
+ "@vitest/coverage-v8": "^2.1.8",
95
99
  "ajv": "^8.17.1",
96
100
  "autoprefixer": "^10.4.20",
97
101
  "eslint": "^8.57.0",
@@ -99,20 +103,20 @@
99
103
  "eslint-plugin-react-refresh": "^0.4.7",
100
104
  "eslint-plugin-storybook": "^0.9.0",
101
105
  "glob": "^11.0.0",
102
- "husky": "^9.1.6",
106
+ "husky": "^9.1.7",
103
107
  "jsdom": "^25.0.1",
104
108
  "postcss": "^8.4.49",
105
- "prettier": "^3.3.3",
106
- "react": "^18.3.1",
107
- "react-dom": "^18.3.1",
109
+ "prettier": "^3.4.2",
110
+ "react": "^19.0.0",
111
+ "react-dom": "^19.0.0",
108
112
  "rimraf": "^6.0.1",
109
- "storybook": "^8.4.4",
110
- "tailwindcss": "^3.4.14",
113
+ "storybook": "^8.4.7",
114
+ "tailwindcss": "^3.4.16",
111
115
  "ts-node": "^10.9.2",
112
- "typescript": "^5.6.3",
113
- "vite": "^5.4.11",
116
+ "typescript": "^5.7.2",
117
+ "vite": "^6.0.3",
114
118
  "vite-plugin-dts": "^4.3.0",
115
119
  "vite-plugin-lib-inject-css": "^2.1.1",
116
- "vitest": "^2.1.5"
120
+ "vitest": "^2.1.8"
117
121
  }
118
122
  }
@@ -1,55 +1,66 @@
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) {
1
+ import { g } from "../_commonjsHelpers-C6fGbg64.js";
2
+ import { konstructColors as p } from "./utils/colors.js";
3
+ var a = {}, l = {}, d;
4
+ function m() {
5
+ return d || (d = 1, function(e) {
6
+ Object.defineProperty(e, "__esModule", {
7
+ value: !0
8
+ }), Object.defineProperty(e, "default", {
9
+ enumerable: !0,
10
+ get: function() {
11
+ return u;
12
+ }
13
+ });
14
+ function n(r, t) {
21
15
  return {
22
- __options: a,
23
- handler: n(a),
24
- config: e(a)
16
+ handler: r,
17
+ config: t
25
18
  };
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
19
  }
39
- });
40
- const r = /* @__PURE__ */ o(d);
41
- function o(e) {
42
- return e && e.__esModule ? e : {
43
- default: e
20
+ n.withOptions = function(r, t = () => ({})) {
21
+ const i = function(o) {
22
+ return {
23
+ __options: o,
24
+ handler: r(o),
25
+ config: t(o)
26
+ };
27
+ };
28
+ return i.__isOptionsFunction = !0, i.__pluginFunction = r, i.__configFunction = t, i;
44
29
  };
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({
30
+ const u = n;
31
+ }(l)), l;
32
+ }
33
+ var s;
34
+ function _() {
35
+ return s || (s = 1, function(e) {
36
+ Object.defineProperty(e, "__esModule", {
37
+ value: !0
38
+ }), Object.defineProperty(e, "default", {
39
+ enumerable: !0,
40
+ get: function() {
41
+ return r;
42
+ }
43
+ });
44
+ const n = /* @__PURE__ */ u(m());
45
+ function u(t) {
46
+ return t && t.__esModule ? t : {
47
+ default: t
48
+ };
49
+ }
50
+ const r = n.default;
51
+ }(a)), a;
52
+ }
53
+ var c, f;
54
+ function P() {
55
+ if (f) return c;
56
+ f = 1;
57
+ let e = _();
58
+ return c = (e.__esModule ? e : { default: e }).default, c;
59
+ }
60
+ var v = P();
61
+ const b = /* @__PURE__ */ g(v), w = b(
62
+ function({ addBase: e }) {
63
+ e({
53
64
  ":root": {
54
65
  "--viewport-padding": "25px"
55
66
  }
@@ -58,7 +69,7 @@ const g = /* @__PURE__ */ l(f), _ = g(
58
69
  {
59
70
  theme: {
60
71
  extend: {
61
- colors: { ...s },
72
+ colors: { ...p },
62
73
  viewportPadding: "",
63
74
  backgroundImage: {
64
75
  "kubefirst-gradient": "linear-gradient(90deg, #81E2B4, #8851C8)"
@@ -100,5 +111,5 @@ const g = /* @__PURE__ */ l(f), _ = g(
100
111
  }
101
112
  );
102
113
  export {
103
- _ as konstructPlugin
114
+ w as konstructPlugin
104
115
  };
@@ -1,6 +1,18 @@
1
1
  export declare const konstructColors: {
2
- black: "#000";
3
- white: "#fff";
2
+ black: string;
3
+ white: string;
4
+ amber: {
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
+ };
4
16
  blue: {
5
17
  50: string;
6
18
  100: string;
@@ -13,6 +25,42 @@ export declare const konstructColors: {
13
25
  800: string;
14
26
  900: string;
15
27
  };
28
+ cyan: {
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
+ emerald: {
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
+ fuchsia: {
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
+ };
16
64
  gray: {
17
65
  50: string;
18
66
  100: string;
@@ -49,6 +97,18 @@ export declare const konstructColors: {
49
97
  800: string;
50
98
  900: string;
51
99
  };
100
+ lime: {
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
+ };
52
112
  metal: {
53
113
  50: string;
54
114
  100: string;
@@ -60,6 +120,8 @@ export declare const konstructColors: {
60
120
  700: string;
61
121
  800: string;
62
122
  900: string;
123
+ 1000: string;
124
+ 1100: string;
63
125
  };
64
126
  neutral: {
65
127
  50: string;
@@ -133,6 +195,42 @@ export declare const konstructColors: {
133
195
  800: string;
134
196
  900: string;
135
197
  };
198
+ rose: {
199
+ 50: string;
200
+ 100: string;
201
+ 200: string;
202
+ 300: string;
203
+ 400: string;
204
+ 500: string;
205
+ 600: string;
206
+ 700: string;
207
+ 800: string;
208
+ 900: string;
209
+ };
210
+ sage: {
211
+ 50: string;
212
+ 100: string;
213
+ 200: string;
214
+ 300: string;
215
+ 400: string;
216
+ 500: string;
217
+ 600: string;
218
+ 700: string;
219
+ 800: string;
220
+ 900: string;
221
+ };
222
+ sky: {
223
+ 50: string;
224
+ 100: string;
225
+ 200: string;
226
+ 300: string;
227
+ 400: string;
228
+ 500: string;
229
+ 600: string;
230
+ 700: string;
231
+ 800: string;
232
+ 900: string;
233
+ };
136
234
  slate: {
137
235
  50: string;
138
236
  100: string;
@@ -169,6 +267,18 @@ export declare const konstructColors: {
169
267
  800: string;
170
268
  900: string;
171
269
  };
270
+ violet: {
271
+ 50: string;
272
+ 100: string;
273
+ 200: string;
274
+ 300: string;
275
+ 400: string;
276
+ 500: string;
277
+ 600: string;
278
+ 700: string;
279
+ 800: string;
280
+ 900: string;
281
+ };
172
282
  yellow: {
173
283
  50: string;
174
284
  100: string;
@@ -193,14 +303,21 @@ export declare const konstructColors: {
193
303
  800: string;
194
304
  900: string;
195
305
  };
196
- facebook: string;
197
- twitter: string;
198
- github: string;
199
- linkedin: string;
200
- youtube: string;
201
- slack: string;
202
306
  kubefirst: {
203
- 'purple-light': string;
204
- 'purple-dark': string;
307
+ primary: string;
308
+ secondary: string;
309
+ };
310
+ 'kubefirst-pro': {
311
+ primary: string;
312
+ secondary: string;
313
+ };
314
+ colony: {
315
+ primary: string;
316
+ secondary: string;
317
+ tertiary: string;
318
+ };
319
+ civo: {
320
+ primary: string;
321
+ secondary: string;
205
322
  };
206
323
  };