@hortiview/default-components 1.2.1 → 1.3.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 +12 -0
  2. package/dist/{HealthCheckFailed-xzjSWKc-.js → HealthCheckFailed-BA_vyKwG.js} +6 -6
  3. package/dist/Iconify-B42tJF6q.js +979 -0
  4. package/dist/{LoadingSpinner-AfsNRWJD.js → LoadingSpinner-5JYKhDod.js} +5 -5
  5. package/dist/OfflineView-BW19N4Cu-CpgiY6nC.js +45 -0
  6. package/dist/assets/GenericTable.css +1 -1
  7. package/dist/assets/OfflineView-BW19N4Cu.css +1 -0
  8. package/dist/{component-DsB0poTj-QmhaJp70.js → component-DsB0poTj-uxpi4oSj.js} +1 -1
  9. package/dist/components/DefaultFormNumber/DefaultFormNumber.js +2 -2
  10. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +2 -2
  11. package/dist/components/GenericTable/GenericTable.js +4153 -4138
  12. package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
  13. package/dist/components/HealthChecks/DefaultHealthCheck.js +2 -2
  14. package/dist/components/HealthChecks/IotServiceHealthCheck.js +2 -2
  15. package/dist/components/HealthChecks/PlatformHealthCheck.js +2 -2
  16. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +2 -2
  17. package/dist/components/OfflineView/OfflineView.d.ts +4 -0
  18. package/dist/components/OfflineView/OfflineView.js +18 -0
  19. package/dist/{index.es-25EARqhH-LGdAiMHi.js → index.es-25EARqhH-CciUgLci.js} +2 -2
  20. package/dist/{index.es-6TJ1S8Jr-CxeupS6f.js → index.es-6TJ1S8Jr-C4X_iaSC.js} +493 -831
  21. package/dist/index.es-CiqbARoC-D-muiSwa.js +344 -0
  22. package/dist/index.es-D-CKRzIB-DPq2PQz-.js +63 -0
  23. package/dist/locales/en-US.js +6 -4
  24. package/dist/locales/en-US.json.d.ts +4 -0
  25. package/dist/locales/es-MX.js +6 -4
  26. package/dist/locales/es-MX.json.d.ts +4 -0
  27. package/dist/locales/tr-TR.js +6 -4
  28. package/dist/locales/tr-TR.json.d.ts +4 -0
  29. package/dist/main.d.ts +1 -0
  30. package/dist/main.js +12 -10
  31. package/dist/{useTranslation-DaMPyebp.js → useTranslation-v0qSkb40.js} +17 -17
  32. package/package.json +3 -3
  33. package/dist/Iconify-B64-1COA.js +0 -83
  34. package/dist/index.es-D-CKRzIB-DgKmS30c.js +0 -959
package/README.md CHANGED
@@ -67,6 +67,7 @@ This library provides form components using [react-hook-form](https://react-hook
67
67
  1. [IotServiceHealthCheck](#iotservicehealthcheck)
68
68
  1. [PlatformHealthCheck](#platformhealthcheck)
69
69
  1. [ImpatienceLoadingSpinner](#impatienceloadingspinner)
70
+ 1. [OfflineView](#offlineview)
70
71
 
71
72
  ## Available Components
72
73
 
@@ -209,3 +210,14 @@ import { GenericTable } from '@hortiview/default-components';
209
210
  pagination={true}
210
211
  />;
211
212
  ```
213
+
214
+ ### OfflineView
215
+
216
+ Shows an offline state with icon, title, and subtitle. Use `size` 'small' inline and 'large' for full pages.
217
+ If a custom text for `title` or `subtitle` should be displayed please use the shared component `<OfflineView />` and pass your own values.
218
+
219
+ ```tsx
220
+ import { OfflineView } from '@hortiview/default-components';
221
+
222
+ <OfflineView />;
223
+ ```
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
- import { B as s, w as c, x as d } from "./index.es-6TJ1S8Jr-CxeupS6f.js";
3
- import { n as _, a as p, f as r } from "./index.es-D-CKRzIB-DgKmS30c.js";
4
- import { n as h } from "./Iconify-B64-1COA.js";
2
+ import { B as s, w as c, x as d } from "./index.es-6TJ1S8Jr-C4X_iaSC.js";
3
+ import { n as _, f as r, a as p } from "./Iconify-B42tJF6q.js";
4
+ import { n as h } from "./index.es-D-CKRzIB-DPq2PQz-.js";
5
5
  import './assets/HealthCheckFailed.css';const m = "_database_11ki8_1", f = "_spin_11ki8_1", u = "_iot_11ki8_16", g = "_platform_11ki8_17", k = "_other_11ki8_18", y = "_crossedOut_11ki8_22", a = {
6
6
  database: m,
7
7
  spin: f,
@@ -19,8 +19,8 @@ import './assets/HealthCheckFailed.css';const m = "_database_11ki8_1", f = "_spi
19
19
  {
20
20
  variant: o ? "outlined" : "flat",
21
21
  "data-testid": `${i}-health-check-failed-card`,
22
- children: /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(_, { variant: "airy", children: /* @__PURE__ */ e(d, { children: /* @__PURE__ */ l(
23
- p,
22
+ children: /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(h, { variant: "airy", children: /* @__PURE__ */ e(d, { children: /* @__PURE__ */ l(
23
+ _,
24
24
  {
25
25
  gap: "none",
26
26
  primaryAlign: "center",
@@ -40,7 +40,7 @@ import './assets/HealthCheckFailed.css';const m = "_database_11ki8_1", f = "_spi
40
40
  iot: "settings_input_antenna",
41
41
  platform: "engineering",
42
42
  other: "error"
43
- }, x = ({ type: t }) => /* @__PURE__ */ e("span", { className: t === "iot" ? a.crossedOut : "", children: /* @__PURE__ */ e(h, { icon: b[t], className: a[t], iconSize: "xlarge" }) });
43
+ }, x = ({ type: t }) => /* @__PURE__ */ e("span", { className: t === "iot" ? a.crossedOut : "", children: /* @__PURE__ */ e(p, { icon: b[t], className: a[t], iconSize: "xlarge" }) });
44
44
  export {
45
45
  j as N
46
46
  };