@hortiview/default-components 0.0.11202
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/README.md +50 -0
- package/dist/assets/App.css +1 -0
- package/dist/assets/Button.css +1 -0
- package/dist/components/App/App.test.js +32948 -0
- package/dist/components/Button/Button.js +11 -0
- package/dist/components/Label/Label.js +7 -0
- package/dist/main.js +6 -0
- package/package.json +67 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/Button.css';const u = "_button_lslui_1", r = {
|
|
3
|
+
button: u
|
|
4
|
+
};
|
|
5
|
+
function e(t) {
|
|
6
|
+
const { className: o, ...s } = t;
|
|
7
|
+
return /* @__PURE__ */ n("button", { className: `${o} ${r.button}`, ...s });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
e as Button
|
|
11
|
+
};
|
package/dist/main.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hortiview/default-components",
|
|
3
|
+
"description": "This is a component library that should be used in the HortiView platform and its modules. The components provided here have default translation strings.",
|
|
4
|
+
"version": "0.0.11202",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/main.js",
|
|
7
|
+
"types": "dist/main.d.ts",
|
|
8
|
+
"license": "GPL-3.0",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"**/*.css"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"registry": "https://registry.npmjs.org/"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dev": "vite",
|
|
20
|
+
"build": "tsc --p ./tsconfig-build.json && vite build",
|
|
21
|
+
"lint": "eslint .",
|
|
22
|
+
"preview": "vite preview",
|
|
23
|
+
"test": "vitest",
|
|
24
|
+
"test:ci": "vitest run --coverage",
|
|
25
|
+
"test:ui": "vitest --ui"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"react": "^18.3.1",
|
|
29
|
+
"react-dom": "^18.3.1",
|
|
30
|
+
"react-router-dom": "6.22.3"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@element/react-components": "^5.46.0",
|
|
34
|
+
"@element/themes": "^5.46.0",
|
|
35
|
+
"@eslint/js": "^9.17.0",
|
|
36
|
+
"@testing-library/dom": "^10.4.0",
|
|
37
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
38
|
+
"@testing-library/react": "^16.2.0",
|
|
39
|
+
"@testing-library/user-event": "^14.6.1",
|
|
40
|
+
"@types/node": "^22.13.1",
|
|
41
|
+
"@types/react": "^18.3.18",
|
|
42
|
+
"@types/react-dom": "^18.3.5",
|
|
43
|
+
"@types/testing-library__jest-dom": "^6.0.0",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^8.7.0",
|
|
45
|
+
"@typescript-eslint/parser": "^8.7.0",
|
|
46
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
47
|
+
"@vitest/coverage-v8": "3.0.5",
|
|
48
|
+
"@vitest/ui": "^3.0.5",
|
|
49
|
+
"eslint": "^8.57.0",
|
|
50
|
+
"eslint-plugin-react": "^7.37.0",
|
|
51
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
52
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
53
|
+
"glob": "^10.3.10",
|
|
54
|
+
"globals": "^15.14.0",
|
|
55
|
+
"jsdom": "^26.0.0",
|
|
56
|
+
"react": "^18.3.1",
|
|
57
|
+
"react-dom": "^18.3.1",
|
|
58
|
+
"react-router-dom": "6.22.3",
|
|
59
|
+
"typescript": "~5.6.2",
|
|
60
|
+
"typescript-eslint": "^8.18.2",
|
|
61
|
+
"vite": "^6.0.5",
|
|
62
|
+
"vite-plugin-dts": "^4.5.0",
|
|
63
|
+
"vite-plugin-lib-inject-css": "^2.2.1",
|
|
64
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
65
|
+
"vitest": "^3.0.5"
|
|
66
|
+
}
|
|
67
|
+
}
|