@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.
Files changed (39) hide show
  1. package/README.md +12 -0
  2. package/dist/{HealthCheckFailed-BfzG8Esl.js → HealthCheckFailed-BA_vyKwG.js} +6 -6
  3. package/dist/Iconify-B42tJF6q.js +979 -0
  4. package/dist/{LoadingSpinner-BCdWKiWZ.js → LoadingSpinner-5JYKhDod.js} +12 -12
  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-CmUZ4Kqw.js → component-DsB0poTj-uxpi4oSj.js} +1 -1
  9. package/dist/components/DefaultFormNumber/DefaultFormNumber.js +5 -6
  10. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +7 -8
  11. package/dist/components/GenericTable/GenericTable.js +5083 -5054
  12. package/dist/components/HealthChecks/DataBaseHealthCheck.js +4 -5
  13. package/dist/components/HealthChecks/DefaultHealthCheck.js +4 -5
  14. package/dist/components/HealthChecks/IotServiceHealthCheck.js +4 -5
  15. package/dist/components/HealthChecks/PlatformHealthCheck.js +5 -6
  16. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +7 -8
  17. package/dist/components/InternationalizationWrapper/InternationalizationWrapper.js +1 -1
  18. package/dist/components/OfflineView/OfflineView.d.ts +4 -0
  19. package/dist/components/OfflineView/OfflineView.js +18 -0
  20. package/dist/{i18n-BhmFdUcK.js → i18n-CCQpJsQK.js} +8 -8
  21. package/dist/i18n.js +2 -3
  22. package/dist/{i18nInstance-l1IFPZ5d.js → i18nInstance-D_96ADqd.js} +1 -1
  23. package/dist/{index.es-25EARqhH-By1Ap282.js → index.es-25EARqhH-CciUgLci.js} +2 -2
  24. package/dist/{index.es-6TJ1S8Jr-BFJPMGBn.js → index.es-6TJ1S8Jr-C4X_iaSC.js} +493 -831
  25. package/dist/index.es-CiqbARoC-D-muiSwa.js +344 -0
  26. package/dist/index.es-D-CKRzIB-DPq2PQz-.js +63 -0
  27. package/dist/locales/en-US.js +6 -4
  28. package/dist/locales/en-US.json.d.ts +4 -0
  29. package/dist/locales/es-MX.js +6 -4
  30. package/dist/locales/es-MX.json.d.ts +4 -0
  31. package/dist/locales/tr-TR.js +6 -4
  32. package/dist/locales/tr-TR.json.d.ts +4 -0
  33. package/dist/main.d.ts +1 -0
  34. package/dist/main.js +12 -10
  35. package/dist/{useTranslation-B6E1rHIA.js → useTranslation-v0qSkb40.js} +280 -280
  36. package/package.json +3 -3
  37. package/dist/Iconify-DQUxnnUE.js +0 -81
  38. package/dist/assets/i18nInstance.css +0 -1
  39. package/dist/index.es-D-CKRzIB-C6Z-ohcV.js +0 -959
@@ -1,9 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import "../../i18nInstance-l1IFPZ5d.js";
3
- import { N as r } from "../../HealthCheckFailed-BfzG8Esl.js";
2
+ import { N as r } from "../../HealthCheckFailed-BA_vyKwG.js";
4
3
  import { InternationalizationWrapper as o } from "../InternationalizationWrapper/InternationalizationWrapper.js";
5
- import { u as i } from "../../useTranslation-B6E1rHIA.js";
6
- const p = ({ ...e }) => {
4
+ import { u as i } from "../../useTranslation-v0qSkb40.js";
5
+ const m = ({ ...e }) => {
7
6
  const { t } = i();
8
7
  return /* @__PURE__ */ a(o, { children: /* @__PURE__ */ a(
9
8
  r,
@@ -16,5 +15,5 @@ const p = ({ ...e }) => {
16
15
  ) });
17
16
  };
18
17
  export {
19
- p as DataBaseHealthCheck
18
+ m as DataBaseHealthCheck
20
19
  };
@@ -1,9 +1,8 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import "../../i18nInstance-l1IFPZ5d.js";
3
- import { N as o } from "../../HealthCheckFailed-BfzG8Esl.js";
2
+ import { N as o } from "../../HealthCheckFailed-BA_vyKwG.js";
4
3
  import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
5
- import { u as i } from "../../useTranslation-B6E1rHIA.js";
6
- const u = ({ ...r }) => {
4
+ import { u as i } from "../../useTranslation-v0qSkb40.js";
5
+ const p = ({ ...r }) => {
7
6
  const { t } = i();
8
7
  return /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(
9
8
  o,
@@ -16,5 +15,5 @@ const u = ({ ...r }) => {
16
15
  ) });
17
16
  };
18
17
  export {
19
- u as DefaultHealthCheck
18
+ p as DefaultHealthCheck
20
19
  };
@@ -1,9 +1,8 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import "../../i18nInstance-l1IFPZ5d.js";
3
- import { N as i } from "../../HealthCheckFailed-BfzG8Esl.js";
2
+ import { N as i } from "../../HealthCheckFailed-BA_vyKwG.js";
4
3
  import { InternationalizationWrapper as o } from "../InternationalizationWrapper/InternationalizationWrapper.js";
5
- import { u as a } from "../../useTranslation-B6E1rHIA.js";
6
- const p = ({ ...r }) => {
4
+ import { u as a } from "../../useTranslation-v0qSkb40.js";
5
+ const m = ({ ...r }) => {
7
6
  const { t } = a();
8
7
  return /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
9
8
  i,
@@ -16,5 +15,5 @@ const p = ({ ...r }) => {
16
15
  ) });
17
16
  };
18
17
  export {
19
- p as IotServiceHealthCheck
18
+ m as IotServiceHealthCheck
20
19
  };
@@ -1,10 +1,9 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import "../../i18nInstance-l1IFPZ5d.js";
3
- import { N as e } from "../../HealthCheckFailed-BfzG8Esl.js";
2
+ import { N as e } from "../../HealthCheckFailed-BA_vyKwG.js";
4
3
  import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
5
- import { u as i } from "../../useTranslation-B6E1rHIA.js";
6
- const f = ({ isOutlined: o }) => {
7
- const { t } = i();
4
+ import { u as l } from "../../useTranslation-v0qSkb40.js";
5
+ const h = ({ isOutlined: o }) => {
6
+ const { t } = l();
8
7
  return /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(
9
8
  e,
10
9
  {
@@ -16,5 +15,5 @@ const f = ({ isOutlined: o }) => {
16
15
  ) });
17
16
  };
18
17
  export {
19
- f as PlatformHealthCheck
18
+ h as PlatformHealthCheck
20
19
  };
@@ -1,11 +1,10 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import "../../i18nInstance-l1IFPZ5d.js";
3
- import { p as r } from "../../LoadingSpinner-BCdWKiWZ.js";
4
- import { InternationalizationWrapper as t } from "../InternationalizationWrapper/InternationalizationWrapper.js";
5
- import { u as a } from "../../useTranslation-B6E1rHIA.js";
6
- const g = ({ ...i }) => {
7
- const { t: e } = a();
8
- return /* @__PURE__ */ n(t, { children: /* @__PURE__ */ n(
2
+ import { p as r } from "../../LoadingSpinner-5JYKhDod.js";
3
+ import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
+ import { u as t } from "../../useTranslation-v0qSkb40.js";
5
+ const c = ({ ...i }) => {
6
+ const { t: e } = t();
7
+ return /* @__PURE__ */ n(a, { children: /* @__PURE__ */ n(
9
8
  r,
10
9
  {
11
10
  ...i,
@@ -15,5 +14,5 @@ const g = ({ ...i }) => {
15
14
  ) });
16
15
  };
17
16
  export {
18
- g as ImpatienceLoadingSpinner
17
+ c as ImpatienceLoadingSpinner
19
18
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { useMemo as i, createElement as m, useEffect as s } from "react";
3
- import { i as t } from "../../i18n-BhmFdUcK.js";
3
+ import { i as t } from "../../i18n-CCQpJsQK.js";
4
4
  import { I as p } from "../../context-f4Bcf4Hs.js";
5
5
  function f({
6
6
  i18n: e,
@@ -0,0 +1,4 @@
1
+ import { OfflineViewProps } from '@hortiview/shared-components/dist/components/OfflineView/OfflineView';
2
+
3
+ export type SharedOfflineViewProps = Omit<OfflineViewProps, 'title' | 'subtitle'>;
4
+ export declare const OfflineView: ({ ...props }: SharedOfflineViewProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { z as o } from "../../OfflineView-BW19N4Cu-CpgiY6nC.js";
3
+ import { InternationalizationWrapper as r } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
+ import { u as n } from "../../useTranslation-v0qSkb40.js";
5
+ const a = ({ ...e }) => {
6
+ const { t } = n();
7
+ return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ i(
8
+ o,
9
+ {
10
+ ...e,
11
+ title: t("offlineView.title"),
12
+ subtitle: t("offlineView.subtitle")
13
+ }
14
+ ) });
15
+ };
16
+ export {
17
+ a as OfflineView
18
+ };
@@ -1,7 +1,7 @@
1
- import { s as ke, a as $e } from "./i18nInstance-l1IFPZ5d.js";
2
- import Re from "./locales/en-US.js";
3
- import Pe from "./locales/es-MX.js";
4
- import Ne from "./locales/tr-TR.js";
1
+ import ke from "./locales/en-US.js";
2
+ import $e from "./locales/es-MX.js";
3
+ import Re from "./locales/tr-TR.js";
4
+ import { s as Pe, a as Ne } from "./i18nInstance-D_96ADqd.js";
5
5
  const Ee = [
6
6
  "en",
7
7
  "es",
@@ -14,7 +14,7 @@ const Ee = [
14
14
  }, Fe = {
15
15
  type: "3rdParty",
16
16
  init(r) {
17
- ke(r.options.react), $e(r);
17
+ Pe(r.options.react), Ne(r);
18
18
  }
19
19
  }, c = (r) => typeof r == "string", H = () => {
20
20
  let r, e;
@@ -1690,9 +1690,9 @@ ft.use(Ce).use(Fe).init({
1690
1690
  fallbackLng: Ee,
1691
1691
  debug: !0,
1692
1692
  resources: {
1693
- en: { translation: Re },
1694
- es: { translation: Pe },
1695
- tr: { translation: Ne }
1693
+ en: { translation: ke },
1694
+ es: { translation: $e },
1695
+ tr: { translation: Re }
1696
1696
  },
1697
1697
  returnObjects: !0,
1698
1698
  returnNull: !1,
package/dist/i18n.js CHANGED
@@ -1,8 +1,7 @@
1
- import "./i18nInstance-l1IFPZ5d.js";
2
- import { i as a } from "./i18n-BhmFdUcK.js";
1
+ import { i as p } from "./i18n-CCQpJsQK.js";
3
2
  import "./locales/en-US.js";
4
3
  import "./locales/es-MX.js";
5
4
  import "./locales/tr-TR.js";
6
5
  export {
7
- a as default
6
+ p as default
8
7
  };
@@ -1,4 +1,4 @@
1
- import './assets/i18nInstance.css';const n = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, a = {
1
+ const n = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, a = {
2
2
  "&amp;": "&",
3
3
  "&#38;": "&",
4
4
  "&lt;": "<",
@@ -1,6 +1,6 @@
1
- import { s as tn, R as a, t as en, F as nn, v as rn, g as qt, w as on, N as S, _ as L, x as st, h as I, f as X, p as _, a as z, y as an, D as Ae, U as sn, r as $t, L as Ne, b as w, o as ln } from "./useTranslation-B6E1rHIA.js";
1
+ import { e as tn, R as a, c as en, g as qt, F as nn, i as rn, n as on, N as S, _ as L, j as st, h as I, f as X, p as _, a as z, m as an, D as Ae, U as sn, r as $t, L as Ne, b as w, I as ln } from "./useTranslation-v0qSkb40.js";
2
2
  import d, { forwardRef as M, useState as j, useRef as v, useImperativeHandle as K, useEffect as g, useMemo as Wt, useCallback as G, Fragment as ae } from "react";
3
- import { D as un, p as _t, U as se, _ as dn, O as cn } from "./component-DsB0poTj-CmUZ4Kqw.js";
3
+ import { D as un, p as _t, U as se, _ as dn, O as cn } from "./component-DsB0poTj-uxpi4oSj.js";
4
4
  import fn from "react-dom";
5
5
  const pn = {
6
6
  /**