@hortiview/default-components 1.2.0 → 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.
- package/README.md +12 -0
- package/dist/{HealthCheckFailed-BfzG8Esl.js → HealthCheckFailed-BA_vyKwG.js} +6 -6
- package/dist/Iconify-B42tJF6q.js +979 -0
- package/dist/{LoadingSpinner-BCdWKiWZ.js → LoadingSpinner-5JYKhDod.js} +12 -12
- package/dist/OfflineView-BW19N4Cu-CpgiY6nC.js +45 -0
- package/dist/assets/GenericTable.css +1 -1
- package/dist/assets/OfflineView-BW19N4Cu.css +1 -0
- package/dist/{component-DsB0poTj-CmUZ4Kqw.js → component-DsB0poTj-uxpi4oSj.js} +1 -1
- package/dist/components/DefaultFormNumber/DefaultFormNumber.js +5 -6
- package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +7 -8
- package/dist/components/GenericTable/GenericTable.js +5083 -5054
- package/dist/components/HealthChecks/DataBaseHealthCheck.js +4 -5
- package/dist/components/HealthChecks/DefaultHealthCheck.js +4 -5
- package/dist/components/HealthChecks/IotServiceHealthCheck.js +4 -5
- package/dist/components/HealthChecks/PlatformHealthCheck.js +5 -6
- package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +7 -8
- package/dist/components/InternationalizationWrapper/InternationalizationWrapper.js +1 -1
- package/dist/components/OfflineView/OfflineView.d.ts +4 -0
- package/dist/components/OfflineView/OfflineView.js +18 -0
- package/dist/{i18n-BhmFdUcK.js → i18n-CCQpJsQK.js} +8 -8
- package/dist/i18n.js +2 -3
- package/dist/{i18nInstance-l1IFPZ5d.js → i18nInstance-D_96ADqd.js} +1 -1
- package/dist/{index.es-25EARqhH-By1Ap282.js → index.es-25EARqhH-CciUgLci.js} +2 -2
- package/dist/{index.es-6TJ1S8Jr-BFJPMGBn.js → index.es-6TJ1S8Jr-C4X_iaSC.js} +493 -831
- package/dist/index.es-CiqbARoC-D-muiSwa.js +344 -0
- package/dist/index.es-D-CKRzIB-DPq2PQz-.js +63 -0
- package/dist/locales/en-US.js +6 -4
- package/dist/locales/en-US.json.d.ts +4 -0
- package/dist/locales/es-MX.js +6 -4
- package/dist/locales/es-MX.json.d.ts +4 -0
- package/dist/locales/tr-TR.js +6 -4
- package/dist/locales/tr-TR.json.d.ts +4 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +12 -10
- package/dist/{useTranslation-B6E1rHIA.js → useTranslation-v0qSkb40.js} +280 -280
- package/package.json +3 -3
- package/dist/Iconify-DQUxnnUE.js +0 -81
- package/dist/assets/i18nInstance.css +0 -1
- package/dist/index.es-D-CKRzIB-C6Z-ohcV.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-
|
|
3
|
-
import { n as _,
|
|
4
|
-
import {
|
|
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(
|
|
23
|
-
|
|
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(
|
|
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
|
};
|