@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.
- package/dist/{AlertDialogTrigger-BIbxXexQ.js → AlertDialogTrigger-lenvKoGF.js} +4 -4
- package/dist/Modal-Bg9UG35z.js +909 -0
- package/dist/{chevron-up-Cmu1oXfj.js → chevron-up-CvquEaNg.js} +1 -1
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.variants.d.ts +1 -1
- package/dist/components/AlertDialog/AlertDialog.variants.js +4 -5
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.variants.d.ts +2 -2
- package/dist/components/Autocomplete/Autocomplete.variants.js +8 -8
- package/dist/components/Autocomplete/components/List.types.d.ts +3 -3
- package/dist/components/Autocomplete/components/List.variants.d.ts +4 -4
- package/dist/components/Autocomplete/components/List.variants.js +13 -13
- package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +4 -4
- package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +4 -4
- package/dist/components/Breadcrumb/Breadcrumb.js +57 -412
- package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +3 -3
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +12 -12
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +23 -21
- package/dist/components/Button/Button.variants.d.ts +2 -1
- package/dist/components/Button/Button.variants.js +122 -23
- package/dist/components/Checkbox/Checkbox.js +4 -4
- package/dist/components/Checkbox/Checkbox.variants.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.variants.js +7 -16
- package/dist/components/Dropdown/Dropdown.js +5 -5
- package/dist/components/Dropdown/Dropdown.types.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.variants.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.variants.js +5 -9
- package/dist/components/Dropdown/components/List/List.d.ts +2 -2
- package/dist/components/Dropdown/components/List/List.types.d.ts +3 -3
- package/dist/components/Dropdown/components/List/List.variants.d.ts +1 -1
- package/dist/components/Dropdown/components/List/List.variants.js +3 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +1 -1
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +3 -3
- package/dist/components/Dropdown/components/Wrapper.d.ts +2 -2
- package/dist/components/Dropdown/components/Wrapper.js +1 -1
- package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +4 -1
- package/dist/components/Dropdown/contexts/dropdown.provider.js +19 -8
- package/dist/components/Dropdown/hooks/useDropdown.d.ts +4 -4
- package/dist/components/Dropdown/hooks/useNavigationList.d.ts +4 -4
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.variants.d.ts +1 -1
- package/dist/components/Input/Input.variants.js +3 -3
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +2 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +10 -10
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/hooks/useModal.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.js +96 -87
- package/dist/components/NumberInput/NumberInput.variants.d.ts +3 -3
- package/dist/components/NumberInput/NumberInput.variants.js +14 -21
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.variants.js +7 -12
- package/dist/components/Radio/Radio.variants.d.ts +1 -1
- package/dist/components/Radio/Radio.variants.js +4 -7
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Range/Range.variants.d.ts +4 -4
- package/dist/components/Range/Range.variants.js +18 -18
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider.variants.d.ts +3 -3
- package/dist/components/Slider/Slider.variants.js +12 -12
- package/dist/components/Switch/Switch.js +2 -2
- package/dist/components/Switch/Switch.variants.d.ts +2 -2
- package/dist/components/Switch/Switch.variants.js +6 -6
- package/dist/components/Tag/Tag.variants.js +1 -1
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/TagSelect.variants.d.ts +3 -3
- package/dist/components/TagSelect/TagSelect.variants.js +11 -14
- package/dist/components/TagSelect/hooks/useTagSelect.d.ts +1 -1
- package/dist/components/TextArea/TextArea.variants.d.ts +1 -1
- package/dist/components/TextArea/TextArea.variants.js +5 -5
- package/dist/components/Toast/Toast.js +104 -101
- package/dist/components/Toast/Toast.variants.d.ts +3 -3
- package/dist/components/Toast/Toast.variants.js +12 -12
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.variants.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.variants.js +9 -9
- package/dist/components/Tooltip/hooks/useTooltip.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/contexts/theme.context.d.ts +1 -1
- package/dist/contexts/theme.hook.js +3 -6
- package/dist/contexts/theme.provider.d.ts +2 -3
- package/dist/contexts/theme.provider.js +4 -1
- package/dist/index-BBjak_0p.js +47 -0
- package/dist/index-BNmRGtA6.js +34 -0
- package/dist/{index-DFbnnPzA.js → index-Ci9Yg4G1.js} +5 -5
- package/dist/{index-B_GWswUP.js → index-D4Q2rMby.js} +1 -1
- package/dist/{index-DQMInta3.js → index-D68N8v8R.js} +214 -209
- package/dist/index-DoOsnuB6.js +72 -0
- package/dist/{index-2K8qjK4R.js → index-O3j1K921.js} +36 -37
- package/dist/index-OOfdXoxx.js +423 -0
- package/dist/index-ffjBR8Av.js +32 -0
- package/dist/index.js +1 -1
- package/dist/package.json +38 -38
- package/dist/plugins/konstruct.js +61 -50
- package/dist/plugins/utils/colors.d.ts +127 -10
- package/dist/plugins/utils/colors.js +210 -510
- package/dist/styles.css +1 -1
- package/dist/useBreadcrumb-tyxjV-a1.js +1398 -0
- package/dist/utils/index.js +150 -162
- package/dist/x-CRBgmX1Q.js +62 -0
- package/package.json +38 -38
- package/dist/Modal-CO0_SnXD.js +0 -909
- package/dist/index-2hJuj4UN.js +0 -19069
- package/dist/index-4qm4jAkj.js +0 -92
- package/dist/index-BJ7FQg17.js +0 -35
- package/dist/index-BqM_XclQ.js +0 -94
- package/dist/index-BwYCDOHZ.js +0 -44
- package/dist/index-CCavb-1K.js +0 -57
- package/dist/useBreadcrumb-BSMnc4Fu.js +0 -341
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import l, { forwardRef as c } from "react";
|
|
2
|
+
import { P as a } from "./index-D68N8v8R.js";
|
|
3
|
+
function f() {
|
|
4
|
+
return f = Object.assign || function(e) {
|
|
5
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
6
|
+
var r = arguments[o];
|
|
7
|
+
for (var t in r)
|
|
8
|
+
Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
9
|
+
}
|
|
10
|
+
return e;
|
|
11
|
+
}, f.apply(this, arguments);
|
|
12
|
+
}
|
|
13
|
+
function u(e, o) {
|
|
14
|
+
if (e == null) return {};
|
|
15
|
+
var r = y(e, o), t, n;
|
|
16
|
+
if (Object.getOwnPropertySymbols) {
|
|
17
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
18
|
+
for (n = 0; n < i.length; n++)
|
|
19
|
+
t = i[n], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
|
|
20
|
+
}
|
|
21
|
+
return r;
|
|
22
|
+
}
|
|
23
|
+
function y(e, o) {
|
|
24
|
+
if (e == null) return {};
|
|
25
|
+
var r = {}, t = Object.keys(e), n, i;
|
|
26
|
+
for (i = 0; i < t.length; i++)
|
|
27
|
+
n = t[i], !(o.indexOf(n) >= 0) && (r[n] = e[n]);
|
|
28
|
+
return r;
|
|
29
|
+
}
|
|
30
|
+
var s = c(function(e, o) {
|
|
31
|
+
var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, i = n === void 0 ? 24 : n, p = u(e, ["color", "size"]);
|
|
32
|
+
return /* @__PURE__ */ l.createElement("svg", f({
|
|
33
|
+
ref: o,
|
|
34
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
+
width: i,
|
|
36
|
+
height: i,
|
|
37
|
+
viewBox: "0 0 24 24",
|
|
38
|
+
fill: "none",
|
|
39
|
+
stroke: t,
|
|
40
|
+
strokeWidth: "2",
|
|
41
|
+
strokeLinecap: "round",
|
|
42
|
+
strokeLinejoin: "round"
|
|
43
|
+
}, p), /* @__PURE__ */ l.createElement("line", {
|
|
44
|
+
x1: "18",
|
|
45
|
+
y1: "6",
|
|
46
|
+
x2: "6",
|
|
47
|
+
y2: "18"
|
|
48
|
+
}), /* @__PURE__ */ l.createElement("line", {
|
|
49
|
+
x1: "6",
|
|
50
|
+
y1: "6",
|
|
51
|
+
x2: "18",
|
|
52
|
+
y2: "18"
|
|
53
|
+
}));
|
|
54
|
+
});
|
|
55
|
+
s.propTypes = {
|
|
56
|
+
color: a.string,
|
|
57
|
+
size: a.oneOfType([a.string, a.number])
|
|
58
|
+
};
|
|
59
|
+
s.displayName = "X";
|
|
60
|
+
export {
|
|
61
|
+
s as X
|
|
62
|
+
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@konstructio/ui",
|
|
3
3
|
"description": "A set of reusable and customizable React components built for konstruct.io",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.3",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -49,49 +49,49 @@
|
|
|
49
49
|
"preview": "vite preview",
|
|
50
50
|
"storybook": "storybook dev -p 6006",
|
|
51
51
|
"test": "vitest run --coverage",
|
|
52
|
-
"test:watch": "vitest
|
|
52
|
+
"test:watch": "vitest dev"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@radix-ui/react-alert-dialog": "^1.1.
|
|
56
|
-
"@radix-ui/react-checkbox": "^1.1.
|
|
57
|
-
"@radix-ui/react-slider": "^1.2.
|
|
58
|
-
"@radix-ui/react-slot": "^1.1.
|
|
59
|
-
"@radix-ui/react-switch": "^1.1.
|
|
60
|
-
"@radix-ui/react-toast": "^1.2.
|
|
61
|
-
"@radix-ui/react-visually-hidden": "^1.1.
|
|
62
|
-
"class-variance-authority": "^0.7.
|
|
55
|
+
"@radix-ui/react-alert-dialog": "^1.1.4",
|
|
56
|
+
"@radix-ui/react-checkbox": "^1.1.3",
|
|
57
|
+
"@radix-ui/react-slider": "^1.2.2",
|
|
58
|
+
"@radix-ui/react-slot": "^1.1.1",
|
|
59
|
+
"@radix-ui/react-switch": "^1.1.2",
|
|
60
|
+
"@radix-ui/react-toast": "^1.2.4",
|
|
61
|
+
"@radix-ui/react-visually-hidden": "^1.1.1",
|
|
62
|
+
"class-variance-authority": "^0.7.1",
|
|
63
63
|
"clsx": "^2.1.1",
|
|
64
64
|
"js-cookie": "^3.0.5",
|
|
65
65
|
"react-feather": "^2.0.10",
|
|
66
|
-
"react-focus-lock": "^2.13.
|
|
67
|
-
"react-remove-scroll": "^2.6.
|
|
68
|
-
"react-router-dom": "^
|
|
69
|
-
"tailwind-merge": "^2.5.
|
|
66
|
+
"react-focus-lock": "^2.13.5",
|
|
67
|
+
"react-remove-scroll": "^2.6.2",
|
|
68
|
+
"react-router-dom": "^7.0.2",
|
|
69
|
+
"tailwind-merge": "^2.5.5"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"react": "^18",
|
|
73
73
|
"react-dom": "^18"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@arethetypeswrong/cli": "^0.17.
|
|
77
|
-
"@storybook/addon-essentials": "^8.4.
|
|
78
|
-
"@storybook/addon-interactions": "^8.4.
|
|
79
|
-
"@storybook/addon-links": "^8.4.
|
|
76
|
+
"@arethetypeswrong/cli": "^0.17.1",
|
|
77
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
78
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
79
|
+
"@storybook/addon-links": "^8.4.7",
|
|
80
80
|
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
81
|
-
"@storybook/blocks": "^8.4.
|
|
82
|
-
"@storybook/react": "^8.4.
|
|
83
|
-
"@storybook/react-vite": "^8.4.
|
|
84
|
-
"@storybook/test": "^8.4.
|
|
81
|
+
"@storybook/blocks": "^8.4.7",
|
|
82
|
+
"@storybook/react": "^8.4.7",
|
|
83
|
+
"@storybook/react-vite": "^8.4.7",
|
|
84
|
+
"@storybook/test": "^8.4.7",
|
|
85
85
|
"@testing-library/jest-dom": "^6.6.3",
|
|
86
|
-
"@testing-library/react": "^16.0
|
|
86
|
+
"@testing-library/react": "^16.1.0",
|
|
87
87
|
"@testing-library/user-event": "^14.5.2",
|
|
88
88
|
"@types/js-cookie": "^3.0.6",
|
|
89
|
-
"@types/react": "^
|
|
90
|
-
"@types/react-dom": "^
|
|
91
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
92
|
-
"@typescript-eslint/parser": "^8.
|
|
93
|
-
"@vitejs/plugin-react": "^4.3.
|
|
94
|
-
"@vitest/coverage-v8": "^2.1.
|
|
89
|
+
"@types/react": "^19.0.1",
|
|
90
|
+
"@types/react-dom": "^19.0.2",
|
|
91
|
+
"@typescript-eslint/eslint-plugin": "^8.18.1",
|
|
92
|
+
"@typescript-eslint/parser": "^8.18.1",
|
|
93
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
94
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
95
95
|
"ajv": "^8.17.1",
|
|
96
96
|
"autoprefixer": "^10.4.20",
|
|
97
97
|
"eslint": "^8.57.0",
|
|
@@ -99,20 +99,20 @@
|
|
|
99
99
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
100
100
|
"eslint-plugin-storybook": "^0.9.0",
|
|
101
101
|
"glob": "^11.0.0",
|
|
102
|
-
"husky": "^9.1.
|
|
102
|
+
"husky": "^9.1.7",
|
|
103
103
|
"jsdom": "^25.0.1",
|
|
104
104
|
"postcss": "^8.4.49",
|
|
105
|
-
"prettier": "^3.
|
|
106
|
-
"react": "^
|
|
107
|
-
"react-dom": "^
|
|
105
|
+
"prettier": "^3.4.2",
|
|
106
|
+
"react": "^19.0.0",
|
|
107
|
+
"react-dom": "^19.0.0",
|
|
108
108
|
"rimraf": "^6.0.1",
|
|
109
|
-
"storybook": "^8.4.
|
|
110
|
-
"tailwindcss": "^3.4.
|
|
109
|
+
"storybook": "^8.4.7",
|
|
110
|
+
"tailwindcss": "^3.4.16",
|
|
111
111
|
"ts-node": "^10.9.2",
|
|
112
|
-
"typescript": "^5.
|
|
113
|
-
"vite": "^
|
|
112
|
+
"typescript": "^5.7.2",
|
|
113
|
+
"vite": "^6.0.3",
|
|
114
114
|
"vite-plugin-dts": "^4.3.0",
|
|
115
115
|
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
116
|
-
"vitest": "^2.1.
|
|
116
|
+
"vitest": "^2.1.8"
|
|
117
117
|
}
|
|
118
118
|
}
|