@hortiview/default-components 1.5.0 → 1.5.1

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 (43) hide show
  1. package/dist/components/DefaultAllowedComponent/DefaultAllowedComponent.js +8 -48
  2. package/dist/components/DefaultFormNumber/DefaultFormNumber.js +12 -1514
  3. package/dist/components/DefaultFormSelect/DefaultFormSelect.js +9 -178
  4. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +6 -6
  5. package/dist/components/GenericTable/GenericTable.js +12 -18746
  6. package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
  7. package/dist/components/HealthChecks/DefaultHealthCheck.js +4 -4
  8. package/dist/components/HealthChecks/IotServiceHealthCheck.js +5 -5
  9. package/dist/components/HealthChecks/PlatformHealthCheck.js +4 -4
  10. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +9 -9
  11. package/dist/components/InternationalizationWrapper/InternationalizationWrapper.js +4 -4
  12. package/dist/components/OfflineView/OfflineView.js +9 -9
  13. package/dist/i18n.js +1696 -5
  14. package/dist/{i18nInstance-D_96ADqd.js → i18nInstance-CYqpK5II.js} +2 -2
  15. package/dist/useTranslation-DGtUf8nl.js +101 -0
  16. package/package.json +2 -2
  17. package/dist/Iconify-D3gVmKx3.js +0 -84
  18. package/dist/InfoCard-Ba-VFnki.js +0 -58
  19. package/dist/LoadingSpinner-CmwCv7BO.js +0 -503
  20. package/dist/OfflineView-CIwV08EQ-BClnJRzV.js +0 -46
  21. package/dist/assets/DefaultAllowedComponent.css +0 -1
  22. package/dist/assets/DefaultFormNumber.css +0 -1
  23. package/dist/assets/DefaultFormSelect.css +0 -1
  24. package/dist/assets/GenericTable.css +0 -1
  25. package/dist/assets/Iconify.css +0 -1
  26. package/dist/assets/InfoCard.css +0 -1
  27. package/dist/assets/LoadingSpinner.css +0 -1
  28. package/dist/assets/OfflineView-CIwV08EQ.css +0 -1
  29. package/dist/component-Bz_dtX1r-DqCAj-DR.js +0 -304
  30. package/dist/component-DEJuY56h-CYiwt7Ga.js +0 -571
  31. package/dist/correct-is-regexp-logic-Y0ToWEjF-pByZFQLo.js +0 -494
  32. package/dist/i18n-CCQpJsQK.js +0 -1707
  33. package/dist/index.es--C-VLspF-B3Cy1zrT.js +0 -845
  34. package/dist/index.es-B74L_Dje-mYAvKwSb.js +0 -2005
  35. package/dist/index.es-B8p8KCdj--cmqwwUJ.js +0 -360
  36. package/dist/index.es-BPv5dCFQ-BmH1Hq7_.js +0 -1044
  37. package/dist/index.es-BanVdXEd-BYOBCuJj.js +0 -79
  38. package/dist/index.es-SjZ_-d7U-HvaOH_Z0.js +0 -860
  39. package/dist/index.es-nwjKmW7--CUlbl1RR.js +0 -14375
  40. package/dist/isTypedArray-DziahYkI-Cw9ssvDH.js +0 -210
  41. package/dist/slicedToArray-ByMQIs5x-BsvSjTDl.js +0 -432
  42. package/dist/useHelperText-Cqx6ggnc.js +0 -392
  43. package/dist/useTranslation-BQQybhSd.js +0 -5042
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { G as r } from "../../InfoCard-Ba-VFnki.js";
2
+ import { InfoCard as r } from "@hortiview/shared-components";
3
3
  import { InternationalizationWrapper as o } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
- import { u as i } from "../../useTranslation-BQQybhSd.js";
4
+ import { u as i } from "../../useTranslation-DGtUf8nl.js";
5
5
  const m = ({ ...e }) => {
6
6
  const { t } = i();
7
7
  return /* @__PURE__ */ a(o, { children: /* @__PURE__ */ a(
@@ -1,8 +1,8 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { G as o } from "../../InfoCard-Ba-VFnki.js";
2
+ import { InfoCard as o } from "@hortiview/shared-components";
3
3
  import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
- import { u as i } from "../../useTranslation-BQQybhSd.js";
5
- const p = ({ ...r }) => {
4
+ import { u as i } from "../../useTranslation-DGtUf8nl.js";
5
+ const m = ({ ...r }) => {
6
6
  const { t } = i();
7
7
  return /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(
8
8
  o,
@@ -15,5 +15,5 @@ const p = ({ ...r }) => {
15
15
  ) });
16
16
  };
17
17
  export {
18
- p as DefaultHealthCheck
18
+ m as DefaultHealthCheck
19
19
  };
@@ -1,11 +1,11 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { G as i } from "../../InfoCard-Ba-VFnki.js";
3
- import { InternationalizationWrapper as o } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
- import { u as a } from "../../useTranslation-BQQybhSd.js";
2
+ import { InfoCard as o } from "@hortiview/shared-components";
3
+ import { InternationalizationWrapper as i } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
+ import { u as a } from "../../useTranslation-DGtUf8nl.js";
5
5
  const m = ({ ...r }) => {
6
6
  const { t } = a();
7
- return /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
8
- i,
7
+ return /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
8
+ o,
9
9
  {
10
10
  ...r,
11
11
  title: t("healthCheck.iotService"),
@@ -1,8 +1,8 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { G as e } from "../../InfoCard-Ba-VFnki.js";
2
+ import { InfoCard as e } from "@hortiview/shared-components";
3
3
  import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
- import { u as l } from "../../useTranslation-BQQybhSd.js";
5
- const h = ({ isOutlined: o }) => {
4
+ import { u as l } from "../../useTranslation-DGtUf8nl.js";
5
+ const f = ({ isOutlined: o }) => {
6
6
  const { t } = l();
7
7
  return /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(
8
8
  e,
@@ -15,5 +15,5 @@ const h = ({ isOutlined: o }) => {
15
15
  ) });
16
16
  };
17
17
  export {
18
- h as PlatformHealthCheck
18
+ f as PlatformHealthCheck
19
19
  };
@@ -1,18 +1,18 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { N as r } from "../../LoadingSpinner-CmwCv7BO.js";
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { LoadingSpinner as r } from "@hortiview/shared-components";
3
3
  import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
- import { u as t } from "../../useTranslation-BQQybhSd.js";
5
- const c = ({ ...i }) => {
6
- const { t: e } = t();
7
- return /* @__PURE__ */ n(a, { children: /* @__PURE__ */ n(
4
+ import { u as o } from "../../useTranslation-DGtUf8nl.js";
5
+ const g = ({ ...i }) => {
6
+ const { t: n } = o();
7
+ return /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(
8
8
  r,
9
9
  {
10
10
  ...i,
11
- text: e("loadingSpinner.baseMessage"),
12
- impatienceMessage: e("loadingSpinner.impatienceMessage")
11
+ text: n("loadingSpinner.baseMessage"),
12
+ impatienceMessage: n("loadingSpinner.impatienceMessage")
13
13
  }
14
14
  ) });
15
15
  };
16
16
  export {
17
- c as ImpatienceLoadingSpinner
17
+ g as ImpatienceLoadingSpinner
18
18
  };
@@ -1,17 +1,17 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { useMemo as i, createElement as m, useEffect as s } from "react";
3
- import { i as t } from "../../i18n-CCQpJsQK.js";
2
+ import { useMemo as m, createElement as i, useEffect as s } from "react";
3
+ import t from "../../i18n.js";
4
4
  import { I as p } from "../../context-f4Bcf4Hs.js";
5
5
  function f({
6
6
  i18n: e,
7
7
  defaultNS: o,
8
8
  children: n
9
9
  }) {
10
- const r = i(() => ({
10
+ const r = m(() => ({
11
11
  i18n: e,
12
12
  defaultNS: o
13
13
  }), [e, o]);
14
- return m(p.Provider, {
14
+ return i(p.Provider, {
15
15
  value: r
16
16
  }, n);
17
17
  }
@@ -1,18 +1,18 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { j as o } from "../../OfflineView-CIwV08EQ-BClnJRzV.js";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { OfflineView as o } from "@hortiview/shared-components";
3
3
  import { InternationalizationWrapper as r } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
- import { u as n } from "../../useTranslation-BQQybhSd.js";
5
- const a = ({ ...e }) => {
6
- const { t } = n();
7
- return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ i(
4
+ import { u as n } from "../../useTranslation-DGtUf8nl.js";
5
+ const m = ({ ...e }) => {
6
+ const { t: i } = n();
7
+ return /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
8
8
  o,
9
9
  {
10
10
  ...e,
11
- title: t("offlineView.title"),
12
- subtitle: t("offlineView.subtitle")
11
+ title: i("offlineView.title"),
12
+ subtitle: i("offlineView.subtitle")
13
13
  }
14
14
  ) });
15
15
  };
16
16
  export {
17
- a as OfflineView
17
+ m as OfflineView
18
18
  };