@hortiview/default-components 0.0.11919 → 0.0.11924
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/dist/components/DefaultFormNumber/DefaultFormNumber.d.ts +5 -0
- package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.d.ts +5 -0
- package/dist/components/HealthChecks/DataBaseHealthCheck.d.ts +5 -0
- package/dist/components/HealthChecks/DefaultHealthCheck.d.ts +5 -0
- package/dist/components/HealthChecks/IotServiceHealthCheck.d.ts +5 -0
- package/dist/components/HealthChecks/PlatformHealthCheck.d.ts +5 -0
- package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.d.ts +5 -0
- package/dist/components/InternationalizationWrapper/InternationalizationWrapper.d.ts +15 -0
- package/dist/i18n.d.ts +2 -0
- package/dist/locales/en-US.json.d.ts +22 -0
- package/dist/locales/es-MX.json.d.ts +22 -0
- package/dist/locales/tr-TR.json.d.ts +22 -0
- package/dist/main.d.ts +14 -0
- package/package.json +12 -12
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FormNumberProps } from '@hortiview/shared-components/dist/components/FormComponents/FormNumber/FormNumber';
|
|
2
|
+
import { FieldValues } from 'react-hook-form';
|
|
3
|
+
|
|
4
|
+
export type DefaultFormNumberProps<T extends FieldValues> = Omit<FormNumberProps<T>, 'languageCode' | 'helperText'>;
|
|
5
|
+
export declare const DefaultFormNumber: <T extends FieldValues>({ ...props }: DefaultFormNumberProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LoadingSpinnerProps } from '@hortiview/shared-components';
|
|
2
|
+
|
|
3
|
+
type DefaultLoadingSpinnerProps = Omit<LoadingSpinnerProps, 'text'>;
|
|
4
|
+
export declare const DefaultLoadingSpinner: ({ ...props }: DefaultLoadingSpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HealthCheckFailedProps } from '@hortiview/shared-components';
|
|
2
|
+
|
|
3
|
+
type DataBaseHealthCheckProps = Omit<HealthCheckFailedProps, 'title' | 'subtitle' | 'type'>;
|
|
4
|
+
export declare const DataBaseHealthCheck: ({ ...props }: DataBaseHealthCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HealthCheckFailedProps } from '@hortiview/shared-components';
|
|
2
|
+
|
|
3
|
+
type DefaultHealthCheckProps = Omit<HealthCheckFailedProps, 'title' | 'subtitle' | 'type'>;
|
|
4
|
+
export declare const DefaultHealthCheck: ({ ...props }: DefaultHealthCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HealthCheckFailedProps } from '@hortiview/shared-components';
|
|
2
|
+
|
|
3
|
+
type IotServiceHealthCheckProps = Omit<HealthCheckFailedProps, 'title' | 'subtitle' | 'type'>;
|
|
4
|
+
export declare const IotServiceHealthCheck: ({ ...props }: IotServiceHealthCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HealthCheckFailedProps } from '@hortiview/shared-components';
|
|
2
|
+
|
|
3
|
+
type PlatformHealthCheckProps = Omit<HealthCheckFailedProps, 'title' | 'subtitle' | 'type'>;
|
|
4
|
+
export declare const PlatformHealthCheck: ({ ...props }: PlatformHealthCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LoadingSpinnerProps } from '@hortiview/shared-components';
|
|
2
|
+
|
|
3
|
+
type ImpatienceLoadingSpinnerProps = Omit<LoadingSpinnerProps, 'impatienceMessage' | 'text'>;
|
|
4
|
+
export declare const ImpatienceLoadingSpinner: ({ ...props }: ImpatienceLoadingSpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { AVAILABLE_LOCALES } from '@hortiview/shared-components';
|
|
3
|
+
|
|
4
|
+
export type InternationalizationWrapperProps = PropsWithChildren;
|
|
5
|
+
/**
|
|
6
|
+
* Warpper to provide i18n context to children
|
|
7
|
+
* @param children
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare const InternationalizationWrapper: ({ children }: InternationalizationWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* a hook to handle the language change of this i18next instance
|
|
13
|
+
* @param currentLanguage
|
|
14
|
+
*/
|
|
15
|
+
export declare const useChangeDefaultComponentsLanguage: (currentLanguage: (typeof AVAILABLE_LOCALES)[number]) => void;
|
package/dist/i18n.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"loadingSpinner": {
|
|
3
|
+
"baseMessage": "Loading...",
|
|
4
|
+
"impatienceMessage": "This is taking longer than expected. Please be patient."
|
|
5
|
+
},
|
|
6
|
+
"healthCheck": {
|
|
7
|
+
"default": "Sorry, something went wrong!",
|
|
8
|
+
"defaultSubtitle": "The problem is being addressed by our technical team. Please come back later.",
|
|
9
|
+
"dataBase": "The data for this module is loading!",
|
|
10
|
+
"dataBaseSubtitle": "Please wait or come back later.",
|
|
11
|
+
"platform": "The platform data used by this module cannot be retrieved currently.",
|
|
12
|
+
"platformSubtitle": "Please wait or come back later.",
|
|
13
|
+
"iotService": "The data of your devices cannot be retrieved currently.",
|
|
14
|
+
"iotServiceSubtitle": "The problem is being addressed by our technical team. Please come back later."
|
|
15
|
+
},
|
|
16
|
+
"formNumber": {
|
|
17
|
+
"separator": "Please use a period as a decimal separator, e.g. 12,345.67"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
;
|
|
21
|
+
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"formNumber": {
|
|
3
|
+
"separator": "Utilice un período como separador decimal, p. 12,345.67"
|
|
4
|
+
},
|
|
5
|
+
"healthCheck": {
|
|
6
|
+
"basic": "Lo siento, algo salió mal!",
|
|
7
|
+
"basicSubtitle": "El problema está siendo abordado por nuestro equipo técnico. Vuelve más tarde.",
|
|
8
|
+
"dataBase": "¡Los datos para este módulo se están cargando!",
|
|
9
|
+
"dataBaseSubtitle": "Espere o vuelva más tarde.",
|
|
10
|
+
"iotService": "Los datos de sus dispositivos no se pueden recuperar actualmente.",
|
|
11
|
+
"iotServiceSubtitle": "El problema está siendo abordado por nuestro equipo técnico. Vuelve más tarde.",
|
|
12
|
+
"platform": "Los datos de la plataforma utilizados por este módulo no se pueden recuperar actualmente.",
|
|
13
|
+
"platformSubtitle": "Espere o vuelva más tarde."
|
|
14
|
+
},
|
|
15
|
+
"loadingSpinner": {
|
|
16
|
+
"baseMessage": "Cargando...",
|
|
17
|
+
"impatienceMessage": "Esto está tardando más de lo esperado. Por favor, sea paciente."
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
;
|
|
21
|
+
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"formNumber": {
|
|
3
|
+
"separator": "Lütfen ondalık ayırıcı olarak virgül kullanın, ör. 12.345,67"
|
|
4
|
+
},
|
|
5
|
+
"healthCheck": {
|
|
6
|
+
"basic": "Üzgünüm, bir şeyler ters gitti!",
|
|
7
|
+
"basicSubtitle": "Sorun teknik ekibimiz tarafından ele alınmaktadır. Lütfen daha sonra tekrar gelin.",
|
|
8
|
+
"dataBase": "Bu modül için veriler yükleniyor!",
|
|
9
|
+
"dataBaseSubtitle": "Lütfen bekleyin veya daha sonra geri dönün.",
|
|
10
|
+
"iotService": "Cihazlarınızın verileri şu anda alınamaz.",
|
|
11
|
+
"iotServiceSubtitle": "Sorun teknik ekibimiz tarafından ele alınmaktadır. Lütfen daha sonra tekrar gelin.",
|
|
12
|
+
"platform": "Bu modül tarafından kullanılan platform verileri şu anda alınamaz.",
|
|
13
|
+
"platformSubtitle": "Lütfen bekleyin veya daha sonra geri dönün."
|
|
14
|
+
},
|
|
15
|
+
"loadingSpinner": {
|
|
16
|
+
"baseMessage": "Yükleme ...",
|
|
17
|
+
"impatienceMessage": "Bu beklenenden daha uzun sürüyor. Lütfen sabırlı olun."
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
;
|
|
21
|
+
|
|
22
|
+
export default _default;
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { DefaultFormNumber } from './components/DefaultFormNumber/DefaultFormNumber';
|
|
2
|
+
export { DefaultLoadingSpinner } from './components/DefaultLoadingSpinner/DefaultLoadingSpinner';
|
|
3
|
+
export { ImpatienceLoadingSpinner } from './components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner';
|
|
4
|
+
/** default health checks */
|
|
5
|
+
export { DataBaseHealthCheck } from './components/HealthChecks/DataBaseHealthCheck';
|
|
6
|
+
export { DefaultHealthCheck } from './components/HealthChecks/DefaultHealthCheck';
|
|
7
|
+
export { IotServiceHealthCheck } from './components/HealthChecks/IotServiceHealthCheck';
|
|
8
|
+
export { PlatformHealthCheck } from './components/HealthChecks/PlatformHealthCheck';
|
|
9
|
+
/**
|
|
10
|
+
* the following hook is called in the HV main frame to
|
|
11
|
+
* set the language from the default components accordingly
|
|
12
|
+
* to the main i18next instance
|
|
13
|
+
*/
|
|
14
|
+
export { useChangeDefaultComponentsLanguage } from './components/InternationalizationWrapper/InternationalizationWrapper';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hortiview/default-components",
|
|
3
3
|
"description": "This is a component library that should be used in the HortiView platform and its modules. The components provided here have default translation strings.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.11924",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@hortiview/shared-components": "^0.0.11881",
|
|
40
40
|
"@rollup/plugin-json": "^6.1.0",
|
|
41
41
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
42
|
-
"@storybook/addon-essentials": "
|
|
43
|
-
"@storybook/addon-interactions": "
|
|
44
|
-
"@storybook/addon-links": "
|
|
45
|
-
"@storybook/addon-onboarding": "
|
|
46
|
-
"@storybook/blocks": "
|
|
47
|
-
"@storybook/react": "
|
|
48
|
-
"@storybook/react-vite": "
|
|
49
|
-
"@storybook/test": "
|
|
42
|
+
"@storybook/addon-essentials": "8.5.3",
|
|
43
|
+
"@storybook/addon-interactions": "8.5.3",
|
|
44
|
+
"@storybook/addon-links": "8.5.3",
|
|
45
|
+
"@storybook/addon-onboarding": "8.5.3",
|
|
46
|
+
"@storybook/blocks": "8.5.3",
|
|
47
|
+
"@storybook/react": "8.5.3",
|
|
48
|
+
"@storybook/react-vite": "8.5.3",
|
|
49
|
+
"@storybook/test": "8.5.3",
|
|
50
50
|
"@testing-library/dom": "^10.4.0",
|
|
51
51
|
"@testing-library/jest-dom": "^6.6.3",
|
|
52
52
|
"@testing-library/react": "^16.2.0",
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
"react-number-format": "^5.4.3",
|
|
79
79
|
"react-router-dom": "^6.22.3",
|
|
80
80
|
"rollup-plugin-copy": "^3.5.0",
|
|
81
|
-
"storybook": "
|
|
81
|
+
"storybook": "8.5.3",
|
|
82
82
|
"typescript": "~5.6.2",
|
|
83
83
|
"typescript-eslint": "^8.18.2",
|
|
84
|
-
"vite": "
|
|
85
|
-
"vite-plugin-dts": "
|
|
84
|
+
"vite": "6.1.0",
|
|
85
|
+
"vite-plugin-dts": "3.9.1",
|
|
86
86
|
"vite-plugin-lib-inject-css": "^2.2.1",
|
|
87
87
|
"vite-plugin-svgr": "^4.3.0",
|
|
88
88
|
"vitest": "^3.0.5"
|