@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
@@ -1,10 +1,10 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import "../../i18n-DIprVS_u.js";
3
- import { p as t } from "../../LoadingSpinner-BxqY1o89.js";
4
- import { I as o } from "../../InternationalizationWrapper-BtWuzVFG.js";
5
- import { u as a } from "../../useTranslation-Bh0VR1ML.js";
2
+ import "../../i18nInstance-l1IFPZ5d.js";
3
+ import { p as t } from "../../LoadingSpinner-BCdWKiWZ.js";
4
+ import { InternationalizationWrapper as o } from "../InternationalizationWrapper/InternationalizationWrapper.js";
5
+ import { u as i } from "../../useTranslation-B6E1rHIA.js";
6
6
  const f = ({ ...e }) => {
7
- const { t: n } = a();
7
+ const { t: n } = i();
8
8
  return /* @__PURE__ */ r(o, { children: /* @__PURE__ */ r(t, { ...e, text: n("loadingSpinner.baseMessage"), impatienceMessage: null }) });
9
9
  };
10
10
  export {
@@ -0,0 +1,12 @@
1
+ import { TableLayoutProps } from '@hortiview/shared-components';
2
+
3
+ /**
4
+ * Automatically creates a table layout based on the given data.
5
+ * If the screen is too small, it will switch to a card layout.
6
+ *
7
+ * @description The component based on the `GenericTable` from `@hortiview/shared-components`.
8
+ * It is a wrapper around the `GenericTable` component that provides default translations for pagination messages.
9
+ * @see {@link TableLayoutProps} for even more information on the props
10
+ * @param props
11
+ */
12
+ export declare const GenericTable: <T>(props: Omit<TableLayoutProps<T>, "pageTranslation" | "pageOfTranslation" | "rowsPerPageTranslation">) => import("react/jsx-runtime").JSX.Element;