@firedesktop/react-base 1.47.0 → 1.49.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 (41) hide show
  1. package/dist/utils/CurrencyUtiles.d.ts +1 -1
  2. package/dist/utils/CurrencyUtiles.js.map +1 -1
  3. package/dist/utils/labels/LanguageLoader.js +3 -12
  4. package/dist/utils/labels/LanguageLoader.js.map +1 -1
  5. package/package.json +14 -13
  6. package/.babelrc +0 -21
  7. package/.eslintcache +0 -1
  8. package/debug.log +0 -1
  9. package/src/App.test.tsx +0 -9
  10. package/src/App.tsx +0 -170
  11. package/src/TestLabelFunction.tsx +0 -17
  12. package/src/index.tsx +0 -27
  13. package/src/lib/components/AppIcon.tsx +0 -784
  14. package/src/lib/components/AppInput.tsx +0 -66
  15. package/src/lib/components/AppPagination.tsx +0 -124
  16. package/src/lib/components/Spin.tsx +0 -31
  17. package/src/lib/components/Toaster/Toaster.tsx +0 -50
  18. package/src/lib/components/Toaster/Types.ts +0 -11
  19. package/src/lib/components/index.ts +0 -8
  20. package/src/lib/index.ts +0 -15
  21. package/src/lib/styles/base.css +0 -392
  22. package/src/lib/styles/syncfusion_bootstrap4.css +0 -10
  23. package/src/lib/styles/toaster.css +0 -50
  24. package/src/lib/utils/CurrencyUtiles.ts +0 -28
  25. package/src/lib/utils/DateUtils.ts +0 -135
  26. package/src/lib/utils/FileUtil.ts +0 -27
  27. package/src/lib/utils/configuration/ConfigurationLoader.tsx +0 -43
  28. package/src/lib/utils/configuration/ConfigurationManager.ts +0 -29
  29. package/src/lib/utils/configuration/ConfigurationReturner.tsx +0 -39
  30. package/src/lib/utils/configuration/index.ts +0 -9
  31. package/src/lib/utils/fetch/Types.ts +0 -11
  32. package/src/lib/utils/fetch/fetchWrapper.ts +0 -144
  33. package/src/lib/utils/fetch/index.ts +0 -4
  34. package/src/lib/utils/index.ts +0 -8
  35. package/src/lib/utils/labels/LanguageLoader.tsx +0 -65
  36. package/src/lib/utils/labels/LanguageManager.ts +0 -53
  37. package/src/lib/utils/labels/LanguageReturner.tsx +0 -41
  38. package/src/lib/utils/labels/index.ts +0 -9
  39. package/src/react-app-env.d.ts +0 -1
  40. package/src/reportWebVitals.ts +0 -15
  41. package/src/setupTests.ts +0 -5
@@ -1,41 +0,0 @@
1
- import React, { useEffect } from 'react';
2
-
3
- import LanguageManager from './LanguageManager';
4
-
5
- export type Labels_Type = {
6
- language: string
7
- }
8
- export type languageLoaderParamsType = {
9
- labels?: Labels_Type
10
- language: string
11
- onLanguageLoad: (language?: Labels_Type) => void
12
- path: string
13
- }
14
-
15
- export default function LanguageReturner({ labels, language, onLanguageLoad, path }: languageLoaderParamsType) {
16
- const { loadLabels } = LanguageManager();
17
-
18
- const fullPath = `${path}/${language}.json`;
19
-
20
- // Do it on change language
21
- useEffect(() => {
22
- async function justAsync() {
23
- if (!labels || !labels.language || labels.language !== language) {
24
- console.log(`Loading Language Labels for this Path: ${path} in this fullpath: ${fullPath}`);
25
- await loadLabels(fullPath).then((response: any) => {
26
- console.log(`Loaded Language Labels for this Path: ${path} in this fullpath: ${fullPath}`, response);
27
- onLanguageLoad(response);
28
- }).catch((err: any) => {
29
- console.error(`Problem loading the Path: ${path} Language Labels in this fullpath: ${fullPath}`);
30
- });
31
- }
32
- }
33
- justAsync();
34
- // eslint-disable-next-line react-hooks/exhaustive-deps
35
- }, [language]);
36
-
37
- return (
38
- <React.Fragment>
39
- </React.Fragment>
40
- );
41
- }
@@ -1,9 +0,0 @@
1
- import LanguageLoader from './LanguageLoader';
2
- import LanguageManager from './LanguageManager';
3
- import LanguageReturner from './LanguageReturner';
4
-
5
- export {
6
- LanguageLoader,
7
- LanguageManager,
8
- LanguageReturner
9
- };
@@ -1 +0,0 @@
1
- /// <reference types="react-scripts" />
@@ -1,15 +0,0 @@
1
- import { ReportHandler } from 'web-vitals';
2
-
3
- const reportWebVitals = (onPerfEntry?: ReportHandler) => {
4
- if (onPerfEntry && onPerfEntry instanceof Function) {
5
- import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
6
- getCLS(onPerfEntry);
7
- getFID(onPerfEntry);
8
- getFCP(onPerfEntry);
9
- getLCP(onPerfEntry);
10
- getTTFB(onPerfEntry);
11
- });
12
- }
13
- };
14
-
15
- export default reportWebVitals;
package/src/setupTests.ts DELETED
@@ -1,5 +0,0 @@
1
- // jest-dom adds custom jest matchers for asserting on DOM nodes.
2
- // allows you to do things like:
3
- // expect(element).toHaveTextContent(/react/i)
4
- // learn more: https://github.com/testing-library/jest-dom
5
- import '@testing-library/jest-dom';