@hortiview/default-components 1.0.1 → 1.2.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 (38) hide show
  1. package/README.md +22 -0
  2. package/dist/HealthCheckFailed-BfzG8Esl.js +46 -0
  3. package/dist/Iconify-DQUxnnUE.js +81 -0
  4. package/dist/{LoadingSpinner-BxqY1o89.js → LoadingSpinner-BCdWKiWZ.js} +8 -7
  5. package/dist/assets/GenericTable.css +1 -0
  6. package/dist/{component-DsB0poTj-B4NF-JCy.js → component-DsB0poTj-CmUZ4Kqw.js} +113 -73
  7. package/dist/components/DefaultFormNumber/DefaultFormNumber.js +527 -3443
  8. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +5 -5
  9. package/dist/components/GenericTable/GenericTable.d.ts +12 -0
  10. package/dist/components/GenericTable/GenericTable.js +29900 -0
  11. package/dist/components/HealthChecks/DataBaseHealthCheck.js +4 -4
  12. package/dist/components/HealthChecks/DefaultHealthCheck.js +6 -6
  13. package/dist/components/HealthChecks/HealthCheck.test.js +5960 -7065
  14. package/dist/components/HealthChecks/IotServiceHealthCheck.js +4 -4
  15. package/dist/components/HealthChecks/PlatformHealthCheck.js +4 -4
  16. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +6 -6
  17. package/dist/components/InternationalizationWrapper/InternationalizationWrapper.js +24 -6
  18. package/dist/context-f4Bcf4Hs.js +19 -0
  19. package/dist/{i18n-DIprVS_u.js → i18n-BhmFdUcK.js} +208 -250
  20. package/dist/i18n.js +3 -2
  21. package/dist/i18nInstance-l1IFPZ5d.js +48 -0
  22. package/dist/index.es-25EARqhH-By1Ap282.js +2944 -0
  23. package/dist/{HealthCheckFailed-j1XFU5px.js → index.es-6TJ1S8Jr-BFJPMGBn.js} +224 -257
  24. package/dist/index.es-D-CKRzIB-C6Z-ohcV.js +959 -0
  25. package/dist/locales/en-US.js +10 -8
  26. package/dist/locales/en-US.json.d.ts +15 -10
  27. package/dist/locales/es-MX.js +8 -6
  28. package/dist/locales/es-MX.json.d.ts +5 -2
  29. package/dist/locales/tr-TR.js +9 -7
  30. package/dist/locales/tr-TR.json.d.ts +5 -2
  31. package/dist/main.d.ts +1 -0
  32. package/dist/main.js +14 -12
  33. package/dist/{useTranslation-Bh0VR1ML.js → useTranslation-B6E1rHIA.js} +1259 -1106
  34. package/package.json +12 -12
  35. package/dist/InternationalizationWrapper-BtWuzVFG.js +0 -41
  36. package/dist/index.es-D-CKRzIB-Cv9zF1oG.js +0 -1029
  37. /package/dist/assets/{index.css → Iconify.css} +0 -0
  38. /package/dist/assets/{i18n.css → i18nInstance.css} +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hortiview/default-components",
3
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": "1.0.1",
4
+ "version": "1.2.0",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -85,20 +85,20 @@
85
85
  "@element-public/react-components": "2.0.0-alpha.1",
86
86
  "@element-public/themes": "^2.0.0",
87
87
  "@eslint/js": "^9.17.0",
88
- "@hortiview/shared-components": "^0.0.11881",
88
+ "@hortiview/shared-components": "^1.2.0",
89
89
  "@rollup/plugin-json": "^6.1.0",
90
90
  "@rollup/plugin-node-resolve": "^16.0.0",
91
91
  "@semantic-release/changelog": "^6.0.3",
92
92
  "@semantic-release/exec": "^7.0.3",
93
93
  "@semantic-release/git": "^10.0.1",
94
- "@storybook/addon-essentials": "8.5.3",
95
- "@storybook/addon-interactions": "8.5.3",
96
- "@storybook/addon-links": "8.5.3",
97
- "@storybook/addon-onboarding": "8.5.3",
98
- "@storybook/blocks": "8.5.3",
99
- "@storybook/react": "8.5.3",
100
- "@storybook/react-vite": "8.5.3",
101
- "@storybook/test": "8.5.3",
94
+ "@storybook/addon-essentials": "^8.6.12",
95
+ "@storybook/addon-interactions": "^8.6.12",
96
+ "@storybook/addon-links": "^8.6.12",
97
+ "@storybook/addon-onboarding": "^8.6.12",
98
+ "@storybook/blocks": "^8.6.12",
99
+ "@storybook/react": "^8.6.12",
100
+ "@storybook/react-vite": "^8.6.12",
101
+ "@storybook/test": "^8.6.12",
102
102
  "@testing-library/dom": "^10.4.0",
103
103
  "@testing-library/jest-dom": "^6.6.3",
104
104
  "@testing-library/react": "^16.2.0",
@@ -115,7 +115,7 @@
115
115
  "eslint": "^8.57.0",
116
116
  "eslint-plugin-react": "^7.37.0",
117
117
  "eslint-plugin-react-hooks": "^5.0.0",
118
- "eslint-plugin-storybook": "^0.11.2",
118
+ "eslint-plugin-storybook": "^0.12.0",
119
119
  "glob": "^10.3.10",
120
120
  "globals": "^15.14.0",
121
121
  "husky": "^9.1.7",
@@ -132,7 +132,7 @@
132
132
  "react-router-dom": "^6.22.3",
133
133
  "rollup-plugin-copy": "^3.5.0",
134
134
  "semantic-release-ado": "^1.4.0",
135
- "storybook": "8.5.3",
135
+ "storybook": "^8.6.12",
136
136
  "typescript": "~5.6.2",
137
137
  "typescript-eslint": "^8.18.2",
138
138
  "vite": "6.1.0",
@@ -1,41 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { createContext as n, useMemo as c, createElement as m, useEffect as i } from "react";
3
- import { i as t } from "./i18n-DIprVS_u.js";
4
- const p = n();
5
- class N {
6
- constructor() {
7
- this.usedNamespaces = {};
8
- }
9
- addUsedNamespaces(s) {
10
- s.forEach((a) => {
11
- this.usedNamespaces[a] || (this.usedNamespaces[a] = !0);
12
- });
13
- }
14
- getUsedNamespaces() {
15
- return Object.keys(this.usedNamespaces);
16
- }
17
- }
18
- function u({
19
- i18n: e,
20
- defaultNS: s,
21
- children: a
22
- }) {
23
- const o = c(() => ({
24
- i18n: e,
25
- defaultNS: s
26
- }), [e, s]);
27
- return m(p.Provider, {
28
- value: o
29
- }, a);
30
- }
31
- const g = ({ children: e }) => /* @__PURE__ */ r(u, { i18n: t, children: e }), x = (e) => {
32
- i(() => {
33
- t.changeLanguage(e);
34
- }, [e]);
35
- };
36
- export {
37
- g as I,
38
- N as R,
39
- p as a,
40
- x as u
41
- };