@tenorlab/react-dashboard 1.0.0

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 (34) hide show
  1. package/README.md +44 -0
  2. package/dist/components/DashboardGrid.d.ts +2 -0
  3. package/dist/components/DashboardWidgetBase.d.ts +4 -0
  4. package/dist/components/DynamicWidgetLoader.d.ts +23 -0
  5. package/dist/components/WidgetContainer.d.ts +4 -0
  6. package/dist/components/WidgetsCatalogFlyout.d.ts +14 -0
  7. package/dist/components/dashboard-primitives/Buttons.d.ts +2 -0
  8. package/dist/components/dashboard-primitives/DraggablePanel.d.ts +10 -0
  9. package/dist/components/dashboard-primitives/ListItem.d.ts +14 -0
  10. package/dist/components/dashboard-primitives/Stack.d.ts +9 -0
  11. package/dist/components/dashboard-primitives/TextField.d.ts +6 -0
  12. package/dist/components/dashboard-primitives/color-utils.d.ts +12 -0
  13. package/dist/components/dashboard-primitives/css-vars-utils.d.ts +6 -0
  14. package/dist/components/dashboard-primitives/icons/index.d.ts +29 -0
  15. package/dist/components/dashboard-primitives/index.d.ts +12 -0
  16. package/dist/components/dashboard-primitives/interfaces.d.ts +46 -0
  17. package/dist/components/dashboard-primitives/parse-container-title.d.ts +2 -0
  18. package/dist/components/dashboard-primitives/use-distinct-css-classes.d.ts +1 -0
  19. package/dist/components/dashboard-settings/dashboard-settings-utils.d.ts +4 -0
  20. package/dist/components/dashboard-settings/dashboard-settings.d.ts +2 -0
  21. package/dist/components/dashboard-settings/index.d.ts +2 -0
  22. package/dist/components/index.d.ts +11 -0
  23. package/dist/components/interfaces/core-react.interfaces.d.ts +20 -0
  24. package/dist/components/interfaces/core.base.d.ts +62 -0
  25. package/dist/components/interfaces/core.interfaces.d.ts +40 -0
  26. package/dist/components/interfaces/core.utils.d.ts +28 -0
  27. package/dist/components/interfaces/index.d.ts +7 -0
  28. package/dist/components/interfaces/storage-service.interfaces.d.ts +7 -0
  29. package/dist/components/use-dashboard-storage-service.d.ts +2 -0
  30. package/dist/components/use-dashboard-store.d.ts +33 -0
  31. package/dist/components/use-dashboard-undo-service.d.ts +13 -0
  32. package/dist/index.d.ts +1 -0
  33. package/dist/react-dashboard.es.js +3146 -0
  34. package/package.json +66 -0
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@tenorlab/react-dashboard",
3
+ "version": "1.0.0",
4
+ "description": "Foundation components for creating user-configurable dashboards in React",
5
+ "author": "Damiano Fusco",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/tenorlab/react-dashboard.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/tenorlab/react-dashboard/issues"
14
+ },
15
+ "homepage": "https://github.com/tenorlab/react-dashboard#readme",
16
+ "keywords": [
17
+ "dashboard, component, libraries, scripts, javascript, react"
18
+ ],
19
+ "scripts": {
20
+ "dev": "vite",
21
+ "clean": "rm -rf dist node_modules package-lock.json",
22
+ "init": "npm run clean; npm i;",
23
+ "build-types": "tsc src/index.ts --jsx react-jsx --downlevelIteration --esModuleInterop --declaration --emitDeclarationOnly --outDir dist",
24
+ "build": "npm run pretty; tsc --jsx react-jsx --esModuleInterop && vite build; npm run build-types",
25
+ "pub": "npm publish --access public",
26
+ "test": "TESTING=true vitest run",
27
+ "test-watch": "TESTING=true vitest watch",
28
+ "pretty": "prettier -w \"./src/**/*.ts*\"",
29
+ "version-patch": "npm run pretty && npm version patch -m \"Patch version\"",
30
+ "preversion": "npm run test",
31
+ "version": "npm run build",
32
+ "postversion": "git push",
33
+ "push": "npm run pretty; git add .; git commit -m \"Latest\"; git push"
34
+ },
35
+ "files": [
36
+ "dist"
37
+ ],
38
+ "exports": {
39
+ ".": {
40
+ "import": {
41
+ "types": "./dist/index.d.ts",
42
+ "default": "./dist/react-dashboard.es.js"
43
+ },
44
+ "require": {
45
+ "types": "./dist/index.d.ts",
46
+ "default": "./dist/react-dashboard.umd.js"
47
+ }
48
+ }
49
+ },
50
+ "types": "./dist/index.d.ts",
51
+ "main": "./dist/react-dashboard.umd.js",
52
+ "module": "./dist/react-dashboard.es.js",
53
+ "devDependencies": {
54
+ "@types/node": "^24.10.1",
55
+ "@types/react-dom": "^19.2.3",
56
+ "@vitejs/plugin-react": "^5.1.1",
57
+ "prettier": "^3.7.4",
58
+ "react": "^19.2.3",
59
+ "react-dom": "^19.2.3",
60
+ "react-draggable": "^4.5.0",
61
+ "typescript": "~5.9.3",
62
+ "vite": "^7.2.4",
63
+ "vitest": "^4.0.16",
64
+ "zustand": "^5.0.9"
65
+ }
66
+ }