@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.
- package/README.md +22 -0
- package/dist/HealthCheckFailed-BfzG8Esl.js +46 -0
- package/dist/Iconify-DQUxnnUE.js +81 -0
- package/dist/{LoadingSpinner-BxqY1o89.js → LoadingSpinner-BCdWKiWZ.js} +8 -7
- package/dist/assets/GenericTable.css +1 -0
- package/dist/{component-DsB0poTj-B4NF-JCy.js → component-DsB0poTj-CmUZ4Kqw.js} +113 -73
- package/dist/components/DefaultFormNumber/DefaultFormNumber.js +527 -3443
- package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +5 -5
- package/dist/components/GenericTable/GenericTable.d.ts +12 -0
- package/dist/components/GenericTable/GenericTable.js +29900 -0
- package/dist/components/HealthChecks/DataBaseHealthCheck.js +4 -4
- package/dist/components/HealthChecks/DefaultHealthCheck.js +6 -6
- package/dist/components/HealthChecks/HealthCheck.test.js +5960 -7065
- package/dist/components/HealthChecks/IotServiceHealthCheck.js +4 -4
- package/dist/components/HealthChecks/PlatformHealthCheck.js +4 -4
- package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +6 -6
- package/dist/components/InternationalizationWrapper/InternationalizationWrapper.js +24 -6
- package/dist/context-f4Bcf4Hs.js +19 -0
- package/dist/{i18n-DIprVS_u.js → i18n-BhmFdUcK.js} +208 -250
- package/dist/i18n.js +3 -2
- package/dist/i18nInstance-l1IFPZ5d.js +48 -0
- package/dist/index.es-25EARqhH-By1Ap282.js +2944 -0
- package/dist/{HealthCheckFailed-j1XFU5px.js → index.es-6TJ1S8Jr-BFJPMGBn.js} +224 -257
- package/dist/index.es-D-CKRzIB-C6Z-ohcV.js +959 -0
- package/dist/locales/en-US.js +10 -8
- package/dist/locales/en-US.json.d.ts +15 -10
- package/dist/locales/es-MX.js +8 -6
- package/dist/locales/es-MX.json.d.ts +5 -2
- package/dist/locales/tr-TR.js +9 -7
- package/dist/locales/tr-TR.json.d.ts +5 -2
- package/dist/main.d.ts +1 -0
- package/dist/main.js +14 -12
- package/dist/{useTranslation-Bh0VR1ML.js → useTranslation-B6E1rHIA.js} +1259 -1106
- package/package.json +12 -12
- package/dist/InternationalizationWrapper-BtWuzVFG.js +0 -41
- package/dist/index.es-D-CKRzIB-Cv9zF1oG.js +0 -1029
- /package/dist/assets/{index.css → Iconify.css} +0 -0
- /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 "../../
|
|
3
|
-
import { p as t } from "../../LoadingSpinner-
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
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 } =
|
|
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;
|