@deix/rossini-core 1.0.9 → 2.0.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/lib/components/buttons/Avatar/Avatar.d.ts.map +1 -0
- package/lib/components/buttons/Avatar/Avatar.js +49 -0
- package/lib/components/buttons/LanguageSelect/LanguageSelect.d.ts.map +1 -0
- package/lib/components/buttons/LanguageSelect/LanguageSelect.js +57 -0
- package/lib/components/buttons/ToggleButtonGroup/ToggleButtonGroup.d.ts.map +1 -0
- package/lib/components/buttons/ToggleButtonGroup/ToggleButtonGroup.js +18 -0
- package/lib/components/buttons/index.d.ts.map +1 -0
- package/lib/components/buttons/index.js +3 -0
- package/lib/components/display/Accordion/Accordion.d.ts.map +1 -0
- package/lib/components/display/Accordion/Accordion.js +22 -0
- package/lib/components/display/StyledValue/ImprovementChip.d.ts.map +1 -0
- package/lib/components/display/StyledValue/ImprovementChip.js +62 -0
- package/lib/components/display/StyledValue/StyledValue.d.ts.map +1 -0
- package/lib/components/display/StyledValue/StyledValue.js +84 -0
- package/lib/components/display/StyledValue/hooks.d.ts +6 -0
- package/lib/components/display/StyledValue/hooks.d.ts.map +1 -0
- package/lib/{src/components → components}/display/StyledValue/hooks.js +4 -7
- package/lib/components/display/index.d.ts.map +1 -0
- package/lib/components/display/index.js +3 -0
- package/lib/components/i18n/Link.d.ts +9 -0
- package/lib/components/i18n/Link.d.ts.map +1 -0
- package/lib/components/i18n/Link.js +20 -0
- package/lib/components/i18n/index.d.ts +3 -0
- package/lib/components/i18n/index.d.ts.map +1 -0
- package/lib/components/i18n/index.js +1 -0
- package/lib/{src/components → components}/index.d.ts +4 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +6 -0
- package/lib/components/layout/MinimalLayout/MinimalLayout.d.ts.map +1 -0
- package/lib/components/layout/MinimalLayout/MinimalLayout.js +59 -0
- package/lib/{src/components/layout/StandardLayout → components/layout/MinimalLayout}/translations.json +1 -0
- package/lib/components/layout/StandardLayout/StandardLayout.d.ts.map +1 -0
- package/lib/components/layout/StandardLayout/StandardLayout.js +72 -0
- package/lib/{src/components/layout/MinimalLayout → components/layout/StandardLayout}/translations.json +1 -0
- package/lib/components/layout/assets/DeixLogo.d.ts.map +1 -0
- package/lib/components/layout/assets/DeixLogo.js +15 -0
- package/lib/components/layout/assets/ServerDown.d.ts.map +1 -0
- package/lib/components/layout/assets/ServerDown.js +55 -0
- package/lib/components/layout/components/AppLogo/AppLogo.d.ts.map +1 -0
- package/lib/components/layout/components/AppLogo/AppLogo.js +25 -0
- package/lib/components/layout/components/Footer/Footer.d.ts.map +1 -0
- package/lib/components/layout/components/Footer/Footer.js +59 -0
- package/lib/components/layout/components/Sidebar/Sidebar.d.ts.map +1 -0
- package/lib/components/layout/components/Sidebar/Sidebar.js +237 -0
- package/lib/components/layout/components/Topbar/ElevationScroll.d.ts.map +1 -0
- package/lib/components/layout/components/Topbar/ElevationScroll.js +13 -0
- package/lib/components/layout/components/Topbar/Topbar.d.ts.map +1 -0
- package/lib/components/layout/components/Topbar/Topbar.js +38 -0
- package/lib/{src/components → components}/layout/components/Topbar/translations.json +4 -0
- package/lib/components/layout/components/Topline/TopLine.d.ts.map +1 -0
- package/lib/components/layout/components/Topline/TopLine.js +14 -0
- package/lib/components/layout/index.d.ts.map +1 -0
- package/lib/components/layout/index.js +2 -0
- package/lib/components/progress/CircularLoading/CircularLoading.d.ts.map +1 -0
- package/lib/components/progress/CircularLoading/CircularLoading.js +19 -0
- package/lib/components/progress/index.d.ts.map +1 -0
- package/lib/components/progress/index.js +1 -0
- package/lib/{src/utils → components}/provider/PageProvider.d.ts +1 -3
- package/lib/components/provider/PageProvider.d.ts.map +1 -0
- package/lib/components/provider/PageProvider.js +9 -0
- package/lib/components/provider/ThemeProvider.d.ts +15 -0
- package/lib/components/provider/ThemeProvider.d.ts.map +1 -0
- package/lib/components/provider/ThemeProvider.js +36 -0
- package/lib/components/provider/index.d.ts +3 -0
- package/lib/components/provider/index.d.ts.map +1 -0
- package/lib/components/provider/index.js +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +3 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/{src/types → types}/api.d.ts +1 -1
- package/lib/types/api.d.ts.map +1 -0
- package/lib/types/api.js +1 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +1 -0
- package/lib/{src/types → types}/languages.d.ts +2 -1
- package/lib/types/languages.d.ts.map +1 -0
- package/lib/types/languages.js +15 -0
- package/lib/{src/types → types}/palette.d.ts +2 -1
- package/lib/types/palette.d.ts.map +1 -0
- package/lib/types/palette.js +1 -0
- package/lib/utils/helpers/colorHelpers.d.ts.map +1 -0
- package/lib/{src/utils → utils}/helpers/colorHelpers.js +6 -13
- package/lib/utils/helpers/dateHelpers.d.ts.map +1 -0
- package/lib/{src/utils → utils}/helpers/dateHelpers.js +5 -12
- package/lib/utils/helpers/index.d.ts +4 -0
- package/lib/utils/helpers/index.d.ts.map +1 -0
- package/lib/{src/utils/helpers/index.d.ts → utils/helpers/index.js} +1 -2
- package/lib/{src/utils → utils}/helpers/stringHelpers.d.ts +1 -0
- package/lib/utils/helpers/stringHelpers.d.ts.map +1 -0
- package/lib/utils/helpers/stringHelpers.js +40 -0
- package/lib/{src/utils → utils}/hooks/index.d.ts +1 -0
- package/lib/utils/hooks/index.d.ts.map +1 -0
- package/lib/utils/hooks/index.js +5 -0
- package/lib/utils/hooks/useAPI.d.ts.map +1 -0
- package/lib/utils/hooks/useAPI.js +18 -0
- package/lib/utils/hooks/useLocale.d.ts.map +1 -0
- package/lib/utils/hooks/useLocale.js +9 -0
- package/lib/utils/hooks/usePathname.d.ts +2 -0
- package/lib/utils/hooks/usePathname.d.ts.map +1 -0
- package/lib/utils/hooks/usePathname.js +7 -0
- package/lib/{src/utils → utils}/hooks/usePersistedState.d.ts +2 -1
- package/lib/utils/hooks/usePersistedState.d.ts.map +1 -0
- package/lib/{src/utils → utils}/hooks/usePersistedState.js +18 -20
- package/lib/{src/utils → utils}/hooks/useUserInfo.d.ts +2 -1
- package/lib/utils/hooks/useUserInfo.d.ts.map +1 -0
- package/lib/utils/hooks/useUserInfo.js +25 -0
- package/lib/utils/index.d.ts +5 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +3 -0
- package/lib/utils/middleware/createI18nMiddleware.d.ts +8 -0
- package/lib/utils/middleware/createI18nMiddleware.d.ts.map +1 -0
- package/lib/utils/middleware/createI18nMiddleware.js +35 -0
- package/lib/utils/theme/components/MuiAccordion.d.ts.map +1 -0
- package/lib/{src/utils → utils}/theme/components/MuiAccordion.js +1 -3
- package/lib/utils/theme/components/MuiCard.d.ts.map +1 -0
- package/lib/{src/utils → utils}/theme/components/MuiCard.js +1 -3
- package/lib/utils/theme/components/MuiCardHeader.d.ts.map +1 -0
- package/lib/{src/utils → utils}/theme/components/MuiCardHeader.js +1 -3
- package/lib/utils/theme/components/MuiFormControl.d.ts.map +1 -0
- package/lib/utils/theme/components/MuiFormControl.js +6 -0
- package/lib/utils/theme/components/MuiGrid.d.ts.map +1 -0
- package/lib/utils/theme/components/MuiGrid.js +5 -0
- package/lib/utils/theme/components/MuiPaper.d.ts.map +1 -0
- package/lib/{src/utils → utils}/theme/components/MuiPaper.js +1 -3
- package/lib/utils/theme/components/MuiTypography.d.ts.map +1 -0
- package/lib/utils/theme/components/MuiTypography.js +5 -0
- package/lib/utils/theme/components/index.d.ts.map +1 -0
- package/lib/utils/theme/components/index.js +17 -0
- package/lib/utils/theme/index.d.ts.map +1 -0
- package/lib/utils/theme/index.js +56 -0
- package/lib/{src/utils → utils}/theme/palette/index.d.ts +2 -2
- package/lib/utils/theme/palette/index.d.ts.map +1 -0
- package/lib/utils/theme/palette/index.js +96 -0
- package/lib/utils/theme/typography.d.ts.map +1 -0
- package/lib/{src/utils → utils}/theme/typography.js +1 -3
- package/package.json +50 -42
- package/lib/package.json +0 -85
- package/lib/src/components/buttons/Avatar/Avatar.d.ts.map +0 -1
- package/lib/src/components/buttons/Avatar/Avatar.js +0 -78
- package/lib/src/components/buttons/LanguageSelect/LanguageSelect.d.ts.map +0 -1
- package/lib/src/components/buttons/LanguageSelect/LanguageSelect.js +0 -58
- package/lib/src/components/buttons/ToggleButtonGroup/ToggleButtonGroup.d.ts.map +0 -1
- package/lib/src/components/buttons/ToggleButtonGroup/ToggleButtonGroup.js +0 -44
- package/lib/src/components/buttons/index.d.ts.map +0 -1
- package/lib/src/components/buttons/index.js +0 -9
- package/lib/src/components/display/Accordion/Accordion.d.ts.map +0 -1
- package/lib/src/components/display/Accordion/Accordion.js +0 -26
- package/lib/src/components/display/StyledValue/ImprovementChip.d.ts.map +0 -1
- package/lib/src/components/display/StyledValue/ImprovementChip.js +0 -66
- package/lib/src/components/display/StyledValue/StyledValue.d.ts.map +0 -1
- package/lib/src/components/display/StyledValue/StyledValue.js +0 -86
- package/lib/src/components/display/StyledValue/hooks.d.ts +0 -4
- package/lib/src/components/display/StyledValue/hooks.d.ts.map +0 -1
- package/lib/src/components/display/index.d.ts.map +0 -1
- package/lib/src/components/display/index.js +0 -12
- package/lib/src/components/index.d.ts.map +0 -1
- package/lib/src/components/index.js +0 -16
- package/lib/src/components/layout/MinimalLayout/MinimalLayout.d.ts.map +0 -1
- package/lib/src/components/layout/MinimalLayout/MinimalLayout.js +0 -64
- package/lib/src/components/layout/StandardLayout/StandardLayout.d.ts.map +0 -1
- package/lib/src/components/layout/StandardLayout/StandardLayout.js +0 -74
- package/lib/src/components/layout/assets/DeixLogo.d.ts.map +0 -1
- package/lib/src/components/layout/assets/DeixLogo.js +0 -20
- package/lib/src/components/layout/assets/ServerDown.d.ts.map +0 -1
- package/lib/src/components/layout/assets/ServerDown.js +0 -60
- package/lib/src/components/layout/components/AppLogo/AppLogo.d.ts.map +0 -1
- package/lib/src/components/layout/components/AppLogo/AppLogo.js +0 -30
- package/lib/src/components/layout/components/Footer/Footer.d.ts.map +0 -1
- package/lib/src/components/layout/components/Footer/Footer.js +0 -64
- package/lib/src/components/layout/components/Sidebar/Sidebar.d.ts.map +0 -1
- package/lib/src/components/layout/components/Sidebar/Sidebar.js +0 -237
- package/lib/src/components/layout/components/Topbar/ElevationScroll.d.ts.map +0 -1
- package/lib/src/components/layout/components/Topbar/ElevationScroll.js +0 -17
- package/lib/src/components/layout/components/Topbar/Topbar.d.ts.map +0 -1
- package/lib/src/components/layout/components/Topbar/Topbar.js +0 -61
- package/lib/src/components/layout/components/Topbar/Topbar.styles.d.ts +0 -18
- package/lib/src/components/layout/components/Topbar/Topbar.styles.d.ts.map +0 -1
- package/lib/src/components/layout/components/Topbar/Topbar.styles.js +0 -16
- package/lib/src/components/layout/components/Topline/TopLine.d.ts.map +0 -1
- package/lib/src/components/layout/components/Topline/TopLine.js +0 -18
- package/lib/src/components/layout/index.d.ts.map +0 -1
- package/lib/src/components/layout/index.js +0 -10
- package/lib/src/components/progress/CircularLoading/CircularLoading.d.ts.map +0 -1
- package/lib/src/components/progress/CircularLoading/CircularLoading.js +0 -22
- package/lib/src/components/progress/index.d.ts.map +0 -1
- package/lib/src/components/progress/index.js +0 -8
- package/lib/src/index.d.ts +0 -7
- package/lib/src/index.d.ts.map +0 -1
- package/lib/src/index.js +0 -32
- package/lib/src/types/api.d.ts.map +0 -1
- package/lib/src/types/api.js +0 -2
- package/lib/src/types/index.d.ts.map +0 -1
- package/lib/src/types/index.js +0 -5
- package/lib/src/types/languages.d.ts.map +0 -1
- package/lib/src/types/languages.js +0 -18
- package/lib/src/types/palette.d.ts.map +0 -1
- package/lib/src/types/palette.js +0 -2
- package/lib/src/utils/helpers/colorHelpers.d.ts.map +0 -1
- package/lib/src/utils/helpers/dateHelpers.d.ts.map +0 -1
- package/lib/src/utils/helpers/index.d.ts.map +0 -1
- package/lib/src/utils/helpers/index.js +0 -17
- package/lib/src/utils/helpers/stringHelpers.d.ts.map +0 -1
- package/lib/src/utils/helpers/stringHelpers.js +0 -39
- package/lib/src/utils/hooks/index.d.ts.map +0 -1
- package/lib/src/utils/hooks/index.js +0 -14
- package/lib/src/utils/hooks/useAPI.d.ts.map +0 -1
- package/lib/src/utils/hooks/useAPI.js +0 -23
- package/lib/src/utils/hooks/useLocale.d.ts.map +0 -1
- package/lib/src/utils/hooks/useLocale.js +0 -13
- package/lib/src/utils/hooks/usePersistedState.d.ts.map +0 -1
- package/lib/src/utils/hooks/useUserInfo.d.ts.map +0 -1
- package/lib/src/utils/hooks/useUserInfo.js +0 -32
- package/lib/src/utils/index.d.ts +0 -5
- package/lib/src/utils/index.d.ts.map +0 -1
- package/lib/src/utils/index.js +0 -25
- package/lib/src/utils/provider/PageProvider.d.ts.map +0 -1
- package/lib/src/utils/provider/PageProvider.js +0 -19
- package/lib/src/utils/provider/ThemeProvider.d.ts +0 -9
- package/lib/src/utils/provider/ThemeProvider.d.ts.map +0 -1
- package/lib/src/utils/provider/ThemeProvider.js +0 -47
- package/lib/src/utils/theme/components/MuiAccordion.d.ts.map +0 -1
- package/lib/src/utils/theme/components/MuiCard.d.ts.map +0 -1
- package/lib/src/utils/theme/components/MuiCardHeader.d.ts.map +0 -1
- package/lib/src/utils/theme/components/MuiFormControl.d.ts.map +0 -1
- package/lib/src/utils/theme/components/MuiFormControl.js +0 -8
- package/lib/src/utils/theme/components/MuiGrid.d.ts.map +0 -1
- package/lib/src/utils/theme/components/MuiGrid.js +0 -7
- package/lib/src/utils/theme/components/MuiPaper.d.ts.map +0 -1
- package/lib/src/utils/theme/components/MuiTypography.d.ts.map +0 -1
- package/lib/src/utils/theme/components/MuiTypography.js +0 -7
- package/lib/src/utils/theme/components/index.d.ts.map +0 -1
- package/lib/src/utils/theme/components/index.js +0 -22
- package/lib/src/utils/theme/createEmotionCache.d.ts +0 -2
- package/lib/src/utils/theme/createEmotionCache.d.ts.map +0 -1
- package/lib/src/utils/theme/createEmotionCache.js +0 -11
- package/lib/src/utils/theme/index.d.ts.map +0 -1
- package/lib/src/utils/theme/index.js +0 -85
- package/lib/src/utils/theme/palette/index.d.ts.map +0 -1
- package/lib/src/utils/theme/palette/index.js +0 -100
- package/lib/src/utils/theme/typography.d.ts.map +0 -1
- /package/lib/{src/components → components}/buttons/Avatar/Avatar.d.ts +0 -0
- /package/lib/{src/components → components}/buttons/LanguageSelect/LanguageSelect.d.ts +0 -0
- /package/lib/{src/components → components}/buttons/LanguageSelect/translations.json +0 -0
- /package/lib/{src/components → components}/buttons/ToggleButtonGroup/ToggleButtonGroup.d.ts +0 -0
- /package/lib/{src/components → components}/buttons/index.d.ts +0 -0
- /package/lib/{src/components → components}/display/Accordion/Accordion.d.ts +0 -0
- /package/lib/{src/components → components}/display/StyledValue/ImprovementChip.d.ts +0 -0
- /package/lib/{src/components → components}/display/StyledValue/StyledValue.d.ts +0 -0
- /package/lib/{src/components → components}/display/StyledValue/translations.json +0 -0
- /package/lib/{src/components → components}/display/index.d.ts +0 -0
- /package/lib/{src/components → components}/layout/MinimalLayout/MinimalLayout.d.ts +0 -0
- /package/lib/{src/components → components}/layout/StandardLayout/StandardLayout.d.ts +0 -0
- /package/lib/{src/components → components}/layout/assets/DeixLogo.d.ts +0 -0
- /package/lib/{src/components → components}/layout/assets/DeixLogo.tsx +0 -0
- /package/lib/{src/components → components}/layout/assets/ServerDown.d.ts +0 -0
- /package/lib/{src/components → components}/layout/assets/ServerDown.tsx +0 -0
- /package/lib/{src/components → components}/layout/assets/deix_logo_symbol_minimal.svg +0 -0
- /package/lib/{src/components → components}/layout/assets/undraw_server_down.svg +0 -0
- /package/lib/{src/components → components}/layout/components/AppLogo/AppLogo.d.ts +0 -0
- /package/lib/{src/components → components}/layout/components/Footer/Footer.d.ts +0 -0
- /package/lib/{src/components → components}/layout/components/Sidebar/Sidebar.d.ts +0 -0
- /package/lib/{src/components → components}/layout/components/Topbar/ElevationScroll.d.ts +0 -0
- /package/lib/{src/components → components}/layout/components/Topbar/Topbar.d.ts +0 -0
- /package/lib/{src/components → components}/layout/components/Topline/TopLine.d.ts +0 -0
- /package/lib/{src/components → components}/layout/index.d.ts +0 -0
- /package/lib/{src/components → components}/progress/CircularLoading/CircularLoading.d.ts +0 -0
- /package/lib/{src/components → components}/progress/CircularLoading/translations.json +0 -0
- /package/lib/{src/components → components}/progress/index.d.ts +0 -0
- /package/lib/{src/types → types}/index.d.ts +0 -0
- /package/lib/{src/utils → utils}/helpers/colorHelpers.d.ts +0 -0
- /package/lib/{src/utils → utils}/helpers/dateHelpers.d.ts +0 -0
- /package/lib/{src/utils → utils}/hooks/useAPI.d.ts +0 -0
- /package/lib/{src/utils → utils}/hooks/useLocale.d.ts +0 -0
- /package/lib/{src/utils → utils}/theme/components/MuiAccordion.d.ts +0 -0
- /package/lib/{src/utils → utils}/theme/components/MuiCard.d.ts +0 -0
- /package/lib/{src/utils → utils}/theme/components/MuiCardHeader.d.ts +0 -0
- /package/lib/{src/utils → utils}/theme/components/MuiFormControl.d.ts +0 -0
- /package/lib/{src/utils → utils}/theme/components/MuiGrid.d.ts +0 -0
- /package/lib/{src/utils → utils}/theme/components/MuiPaper.d.ts +0 -0
- /package/lib/{src/utils → utils}/theme/components/MuiTypography.d.ts +0 -0
- /package/lib/{src/utils → utils}/theme/components/index.d.ts +0 -0
- /package/lib/{src/utils → utils}/theme/index.d.ts +0 -0
- /package/lib/{src/utils → utils}/theme/typography.d.ts +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
const DeixLogo = ({ width = 14, height = 14 }) => {
|
|
3
|
+
return (React.createElement("svg", { width: width, height: height, version: '1.1', viewBox: '0 0 65.057 65.039' },
|
|
4
|
+
React.createElement("g", { transform: 'translate(-20.345 -128.17)' },
|
|
5
|
+
React.createElement("g", { transform: 'translate(149.84 124)', fill: '#c13302', fillRule: 'evenodd' },
|
|
6
|
+
React.createElement("circle", { cx: '-114.55', cy: '19.115', r: '2.451' }),
|
|
7
|
+
React.createElement("path", { d: 'm-114.55 4.1682a14.947 14.947 0 0 0-14.947 14.947 14.947 14.947 0 0 0 14.947 14.947 14.947 14.947 0 0 0 8.2698-2.5063l-5.5201-5.5201a7.4498 7.4498 0 0 1-2.7497 0.52917 7.4498 7.4498 0 0 1-7.4502-7.4497 7.4498 7.4498 0 0 1 7.4502-7.4502 7.4498 7.4498 0 0 1 7.4497 7.4502 7.4498 7.4498 0 0 1-0.52916 2.7492l5.5206 5.5206a14.947 14.947 0 0 0 2.5063-8.2698 14.947 14.947 0 0 0-14.947-14.947z' }),
|
|
8
|
+
React.createElement("circle", { transform: 'scale(-1,1)', cx: '79.388', cy: '19.115', r: '2.451' }),
|
|
9
|
+
React.createElement("path", { d: 'm-79.388 4.1682a14.947 14.947 0 0 1 14.947 14.947 14.947 14.947 0 0 1-14.947 14.947 14.947 14.947 0 0 1-8.2698-2.5063l5.5201-5.5201a7.4498 7.4498 0 0 0 2.7497 0.52917 7.4498 7.4498 0 0 0 7.4502-7.4497 7.4498 7.4498 0 0 0-7.4502-7.4502 7.4498 7.4498 0 0 0-7.4497 7.4502 7.4498 7.4498 0 0 0 0.52917 2.7492l-5.5206 5.5206a14.947 14.947 0 0 1-2.5063-8.2698 14.947 14.947 0 0 1 14.947-14.947z' }),
|
|
10
|
+
React.createElement("circle", { transform: 'scale(1,-1)', cx: '-114.55', cy: '-54.26', r: '2.451' }),
|
|
11
|
+
React.createElement("path", { d: 'm-114.55 69.207a14.947 14.947 0 0 1-14.947-14.947 14.947 14.947 0 0 1 14.947-14.947 14.947 14.947 0 0 1 8.2698 2.5063l-5.5201 5.5201a7.4498 7.4498 0 0 0-2.7497-0.52917 7.4498 7.4498 0 0 0-7.4502 7.4497 7.4498 7.4498 0 0 0 7.4502 7.4502 7.4498 7.4498 0 0 0 7.4497-7.4502 7.4498 7.4498 0 0 0-0.52917-2.7492l5.5206-5.5206a14.947 14.947 0 0 1 2.5063 8.2698 14.947 14.947 0 0 1-14.947 14.947z' }),
|
|
12
|
+
React.createElement("path", { transform: 'scale(-1)', d: 'm81.839-54.26a2.451 2.451 0 0 1-2.451 2.451 2.451 2.451 0 0 1-2.451-2.451 2.451 2.451 0 0 1 2.451-2.451 2.451 2.451 0 0 1 2.451 2.451z', strokeWidth: '.098039' }),
|
|
13
|
+
React.createElement("path", { d: 'm-79.388 69.207a14.947 14.947 0 0 0 14.947-14.947 14.947 14.947 0 0 0-14.947-14.947 14.947 14.947 0 0 0-8.2698 2.5063l5.5201 5.5201a7.4498 7.4498 0 0 1 2.7497-0.52917 7.4498 7.4498 0 0 1 7.4502 7.4497 7.4498 7.4498 0 0 1-7.4502 7.4502 7.4498 7.4498 0 0 1-7.4497-7.4502 7.4498 7.4498 0 0 1 0.52917-2.7492l-5.5206-5.5206a14.947 14.947 0 0 0-2.5063 8.2698 14.947 14.947 0 0 0 14.947 14.947z' })))));
|
|
14
|
+
};
|
|
15
|
+
export default DeixLogo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerDown.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/assets/ServerDown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,SAAS;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA6NnC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
const ServerDown = ({ width = 1120, height = 700 }) => {
|
|
3
|
+
return (React.createElement("svg", { width: width, height: height, viewBox: '0 0 1119.60911 699' },
|
|
4
|
+
React.createElement("circle", { cx: '292.60911', cy: '213', r: '213', fill: '#f2f2f2' }),
|
|
5
|
+
React.createElement("path", { d: 'M31.39089,151.64237c0,77.49789,48.6181,140.20819,108.70073,140.20819', transform: 'translate(-31.39089 -100.5)', fill: '#2f2e41' }),
|
|
6
|
+
React.createElement("path", { d: 'M140.09162,291.85056c0-78.36865,54.255-141.78356,121.30372-141.78356', transform: 'translate(-31.39089 -100.5)', fill: '#c13302' }),
|
|
7
|
+
React.createElement("path", { d: 'M70.77521,158.66768c0,73.61476,31.00285,133.18288,69.31641,133.18288', transform: 'translate(-31.39089 -100.5)', fill: '#c13302' }),
|
|
8
|
+
React.createElement("path", { d: 'M140.09162,291.85056c0-100.13772,62.7103-181.16788,140.20819-181.16788', transform: 'translate(-31.39089 -100.5)', fill: '#2f2e41' }),
|
|
9
|
+
React.createElement("path", { d: 'M117.22379,292.83905s15.41555-.47479,20.06141-3.783,23.713-7.2585,24.86553-1.95278,23.16671,26.38821,5.76263,26.5286-40.43935-2.711-45.07627-5.53549S117.22379,292.83905,117.22379,292.83905Z', transform: 'translate(-31.39089 -100.5)', fill: '#a8a8a8' }),
|
|
10
|
+
React.createElement("path", { d: 'M168.224,311.78489c-17.40408.14042-40.43933-2.71094-45.07626-5.53548-3.53126-2.151-4.93843-9.86945-5.40926-13.43043-.32607.014-.51463.02-.51463.02s.97638,12.43276,5.61331,15.2573,27.67217,5.67589,45.07626,5.53547c5.02386-.04052,6.7592-1.82793,6.66391-4.47526C173.87935,310.756,171.96329,311.75474,168.224,311.78489Z', transform: 'translate(-31.39089 -100.5)', opacity: '0.2' }),
|
|
11
|
+
React.createElement("ellipse", { cx: '198.60911', cy: '424.5', rx: '187', ry: '25.43993', fill: '#3f3d56' }),
|
|
12
|
+
React.createElement("ellipse", { cx: '198.60911', cy: '424.5', rx: '157', ry: '21.35866', opacity: '0.1' }),
|
|
13
|
+
React.createElement("ellipse", { cx: '836.60911', cy: '660.5', rx: '283', ry: '38.5', fill: '#3f3d56' }),
|
|
14
|
+
React.createElement("ellipse", { cx: '310.60911', cy: '645.5', rx: '170', ry: '23.12721', fill: '#3f3d56' }),
|
|
15
|
+
React.createElement("path", { d: 'M494,726.5c90,23,263-30,282-90', transform: 'translate(-31.39089 -100.5)', fill: 'none', stroke: '#2f2e41', strokeMiterlimit: '10', strokeWidth: '2' }),
|
|
16
|
+
React.createElement("path", { d: 'M341,359.5s130-36,138,80-107,149-17,172', transform: 'translate(-31.39089 -100.5)', fill: 'none', stroke: '#2f2e41', strokeMiterlimit: '10', strokeWidth: '2' }),
|
|
17
|
+
React.createElement("path", { d: 'M215.40233,637.78332s39.0723-10.82,41.47675,24.04449-32.15951,44.78287-5.10946,51.69566', transform: 'translate(-31.39089 -100.5)', fill: 'none', stroke: '#2f2e41', strokeMiterlimit: '10', strokeWidth: '2' }),
|
|
18
|
+
React.createElement("path", { d: 'M810.09554,663.73988,802.218,714.03505s-38.78182,20.60284-11.51335,21.20881,155.73324,0,155.73324,0,24.84461,0-14.54318-21.81478l-7.87756-52.719Z', transform: 'translate(-31.39089 -100.5)', fill: '#2f2e41' }),
|
|
19
|
+
React.createElement("path", { d: 'M785.21906,734.69812c6.193-5.51039,16.9989-11.252,16.9989-11.252l7.87756-50.2952,113.9216.10717,7.87756,49.582c9.185,5.08711,14.8749,8.987,18.20362,11.97818,5.05882-1.15422,10.58716-5.44353-18.20362-21.38921l-7.87756-52.719-113.9216,3.02983L802.218,714.03506S769.62985,731.34968,785.21906,734.69812Z', transform: 'translate(-31.39089 -100.5)', opacity: '0.1' }),
|
|
20
|
+
React.createElement("rect", { x: '578.43291', y: '212.68859', width: '513.25314', height: '357.51989', rx: '18.04568', fill: '#2f2e41' }),
|
|
21
|
+
React.createElement("rect", { x: '595.70294', y: '231.77652', width: '478.71308', height: '267.83694', fill: '#3f3d56' }),
|
|
22
|
+
React.createElement("circle", { cx: '835.05948', cy: '223.29299', r: '3.02983', fill: '#f2f2f2' }),
|
|
23
|
+
React.createElement("path", { d: 'M1123.07694,621.32226V652.6628a18.04341,18.04341,0,0,1-18.04568,18.04568H627.86949A18.04341,18.04341,0,0,1,609.8238,652.6628V621.32226Z', transform: 'translate(-31.39089 -100.5)', fill: '#2f2e41' }),
|
|
24
|
+
React.createElement("polygon", { points: '968.978 667.466 968.978 673.526 642.968 673.526 642.968 668.678 643.417 667.466 651.452 645.651 962.312 645.651 968.978 667.466', fill: '#2f2e41' }),
|
|
25
|
+
React.createElement("path", { d: 'M1125.828,762.03359c-.59383,2.539-2.83591,5.21743-7.90178,7.75032-18.179,9.08949-55.1429-2.42386-55.1429-2.42386s-28.4804-4.84773-28.4804-17.573a22.72457,22.72457,0,0,1,2.49658-1.48459c7.64294-4.04351,32.98449-14.02122,77.9177.42248a18.73921,18.73921,0,0,1,8.54106,5.59715C1125.07908,756.45353,1126.50669,759.15715,1125.828,762.03359Z', transform: 'translate(-31.39089 -100.5)', fill: '#2f2e41' }),
|
|
26
|
+
React.createElement("path", { d: 'M1125.828,762.03359c-22.251,8.526-42.0843,9.1622-62.43871-4.975-10.26507-7.12617-19.59089-8.88955-26.58979-8.75618,7.64294-4.04351,32.98449-14.02122,77.9177.42248a18.73921,18.73921,0,0,1,8.54106,5.59715C1125.07908,756.45353,1126.50669,759.15715,1125.828,762.03359Z', transform: 'translate(-31.39089 -100.5)', opacity: '0.1' }),
|
|
27
|
+
React.createElement("ellipse", { cx: '1066.53846', cy: '654.13477', rx: '7.87756', ry: '2.42386', fill: '#f2f2f2' }),
|
|
28
|
+
React.createElement("circle", { cx: '835.05948', cy: '545.66686', r: '11.51335', fill: '#f2f2f2' }),
|
|
29
|
+
React.createElement("polygon", { points: '968.978 667.466 968.978 673.526 642.968 673.526 642.968 668.678 643.417 667.466 968.978 667.466', opacity: '0.1' }),
|
|
30
|
+
React.createElement("rect", { x: '108.60911', y: '159', width: '208', height: '242', fill: '#2f2e41' }),
|
|
31
|
+
React.createElement("rect", { x: '87.60911', y: '135', width: '250', height: '86', fill: '#3f3d56' }),
|
|
32
|
+
React.createElement("rect", { x: '87.60911', y: '237', width: '250', height: '86', fill: '#3f3d56' }),
|
|
33
|
+
React.createElement("rect", { x: '87.60911', y: '339', width: '250', height: '86', fill: '#3f3d56' }),
|
|
34
|
+
React.createElement("rect", { x: '271.60911', y: '150', width: '16', height: '16', fill: '#c13302', opacity: '0.4' }),
|
|
35
|
+
React.createElement("rect", { x: '294.60911', y: '150', width: '16', height: '16', fill: '#c13302', opacity: '0.8' }),
|
|
36
|
+
React.createElement("rect", { x: '317.60911', y: '150', width: '16', height: '16', fill: '#c13302' }),
|
|
37
|
+
React.createElement("rect", { x: '271.60911', y: '251', width: '16', height: '16', fill: '#c13302', opacity: '0.4' }),
|
|
38
|
+
React.createElement("rect", { x: '294.60911', y: '251', width: '16', height: '16', fill: '#c13302', opacity: '0.8' }),
|
|
39
|
+
React.createElement("rect", { x: '317.60911', y: '251', width: '16', height: '16', fill: '#c13302' }),
|
|
40
|
+
React.createElement("rect", { x: '271.60911', y: '352', width: '16', height: '16', fill: '#c13302', opacity: '0.4' }),
|
|
41
|
+
React.createElement("rect", { x: '294.60911', y: '352', width: '16', height: '16', fill: '#c13302', opacity: '0.8' }),
|
|
42
|
+
React.createElement("rect", { x: '317.60911', y: '352', width: '16', height: '16', fill: '#c13302' }),
|
|
43
|
+
React.createElement("circle", { cx: '316.60911', cy: '538', r: '79', fill: '#2f2e41' }),
|
|
44
|
+
React.createElement("rect", { x: '280.60911', y: '600', width: '24', height: '43', fill: '#2f2e41' }),
|
|
45
|
+
React.createElement("rect", { x: '328.60911', y: '600', width: '24', height: '43', fill: '#2f2e41' }),
|
|
46
|
+
React.createElement("ellipse", { cx: '300.60911', cy: '643.5', rx: '20', ry: '7.5', fill: '#2f2e41' }),
|
|
47
|
+
React.createElement("ellipse", { cx: '348.60911', cy: '642.5', rx: '20', ry: '7.5', fill: '#2f2e41' }),
|
|
48
|
+
React.createElement("circle", { cx: '318.60911', cy: '518', r: '27', fill: '#fff' }),
|
|
49
|
+
React.createElement("circle", { cx: '318.60911', cy: '518', r: '9', fill: '#3f3d56' }),
|
|
50
|
+
React.createElement("path", { d: 'M271.36733,565.03228c-6.37889-28.56758,14.01185-57.43392,45.544-64.47477s62.2651,10.41,68.644,38.9776-14.51861,39.10379-46.05075,46.14464S277.74622,593.59986,271.36733,565.03228Z', transform: 'translate(-31.39089 -100.5)', fill: '#c13302' }),
|
|
51
|
+
React.createElement("ellipse", { cx: '417.21511', cy: '611.34365', rx: '39.5', ry: '12.40027', transform: 'translate(-238.28665 112.98044) rotate(-23.17116)', fill: '#2f2e41' }),
|
|
52
|
+
React.createElement("ellipse", { cx: '269.21511', cy: '664.34365', rx: '39.5', ry: '12.40027', transform: 'translate(-271.07969 59.02084) rotate(-23.17116)', fill: '#2f2e41' }),
|
|
53
|
+
React.createElement("path", { d: 'M394,661.5c0,7.732-19.90861,23-42,23s-43-14.268-43-22,20.90861-6,43-6S394,653.768,394,661.5Z', transform: 'translate(-31.39089 -100.5)', fill: '#fff' })));
|
|
54
|
+
};
|
|
55
|
+
export default ServerDown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppLogo.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/AppLogo/AppLogo.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAK/C,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;CAChC;AACD,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAkCnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import { Typography } from '@mui/material';
|
|
5
|
+
import { useTheme } from '@mui/material';
|
|
6
|
+
const AppLogo = ({ name = '', open, logoSource }) => {
|
|
7
|
+
const muiTheme = useTheme();
|
|
8
|
+
return (React.createElement("div", { style: {
|
|
9
|
+
display: 'flex',
|
|
10
|
+
flexWrap: 'wrap',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
justifyContent: 'center',
|
|
13
|
+
marginBottom: 4,
|
|
14
|
+
} },
|
|
15
|
+
logoSource && (React.createElement(Image, { src: logoSource, alt: 'logo', width: 36, height: 36 })),
|
|
16
|
+
open && (React.createElement(React.Fragment, null,
|
|
17
|
+
React.createElement(Typography, { variant: 'h4', sx: {
|
|
18
|
+
background: muiTheme.palette.gradient.main,
|
|
19
|
+
backgroundClip: 'text',
|
|
20
|
+
WebkitBackgroundClip: 'text',
|
|
21
|
+
WebkitTextFillColor: 'transparent',
|
|
22
|
+
marginLeft: '8px',
|
|
23
|
+
} }, name)))));
|
|
24
|
+
};
|
|
25
|
+
export default AppLogo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/Footer/Footer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQzC,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6EjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Box, Typography, useTheme } from '@mui/material';
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { useAPI } from '../../../../utils/index';
|
|
6
|
+
import DeixLogo from '../../assets/DeixLogo';
|
|
7
|
+
const Footer = ({ logo = React.createElement(DeixLogo, null), text = 'Deix Srl', textURL = 'https://deixsrl.com', uiInfo = { name: '', version: '' }, apiURL, children, }) => {
|
|
8
|
+
const muiTheme = useTheme();
|
|
9
|
+
// Get App Info (name and version)
|
|
10
|
+
// Get API info (name and version) from backend
|
|
11
|
+
const apiClient = useAPI(apiURL);
|
|
12
|
+
const getAPIInfo = async () => {
|
|
13
|
+
if (apiClient) {
|
|
14
|
+
const { data } = await apiClient.get('info');
|
|
15
|
+
return data;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const { data: apiInfo } = useQuery({
|
|
19
|
+
queryKey: ['api-info'],
|
|
20
|
+
queryFn: getAPIInfo,
|
|
21
|
+
staleTime: Infinity,
|
|
22
|
+
});
|
|
23
|
+
return (React.createElement("footer", { style: { marginTop: 'auto' } },
|
|
24
|
+
React.createElement(Box, { sx: {
|
|
25
|
+
display: 'flex',
|
|
26
|
+
flexDirection: 'column',
|
|
27
|
+
background: muiTheme.palette.background.default,
|
|
28
|
+
width: '100%',
|
|
29
|
+
} },
|
|
30
|
+
React.createElement(React.Fragment, null,
|
|
31
|
+
React.createElement("div", { style: {
|
|
32
|
+
display: 'flex',
|
|
33
|
+
flexWrap: 'wrap',
|
|
34
|
+
justifyContent: 'center',
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
width: '100%',
|
|
37
|
+
textAlign: 'center',
|
|
38
|
+
paddingBottom: 1,
|
|
39
|
+
} },
|
|
40
|
+
logo && logo,
|
|
41
|
+
React.createElement(Typography, { variant: 'caption', style: {
|
|
42
|
+
alignSelf: 'center',
|
|
43
|
+
color: muiTheme.palette.text.secondary,
|
|
44
|
+
marginLeft: '5px',
|
|
45
|
+
} },
|
|
46
|
+
React.createElement("a", { href: textURL, target: '_blank', rel: 'noreferrer', style: {
|
|
47
|
+
textDecoration: 'none',
|
|
48
|
+
color: muiTheme.palette.text.secondary,
|
|
49
|
+
} }, text),
|
|
50
|
+
' ',
|
|
51
|
+
"| ",
|
|
52
|
+
uiInfo.name,
|
|
53
|
+
" ",
|
|
54
|
+
uiInfo.version,
|
|
55
|
+
' ',
|
|
56
|
+
apiInfo ? `(${apiInfo.name} ${apiInfo.version})` : '')),
|
|
57
|
+
children))));
|
|
58
|
+
};
|
|
59
|
+
export default Footer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAY,MAAM,OAAO,CAAC;AAsBtD,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAEL,MAAM,EACN,iBAAiB,EAClB,MAAM,6BAA6B,CAAC;AAGrC,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,iBAAiB,GAAG,MAAM,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,YAAY,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;CAC1B;AACD,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAiYnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import ArrowRightOutlinedIcon from '@mui/icons-material/ArrowRightOutlined';
|
|
4
|
+
import ExpandLessIcon from '@mui/icons-material/ExpandLess';
|
|
5
|
+
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
6
|
+
import { Box, Collapse, Drawer, IconButton, List, ListItemButton, ListItemIcon, ListItemText, Menu, MenuItem, Tooltip, Typography, alpha, } from '@mui/material';
|
|
7
|
+
import { useTheme as useMUITheme } from '@mui/material';
|
|
8
|
+
import { Link } from '../../../i18n';
|
|
9
|
+
import { isStringTranslation, } from '../../../../types/languages';
|
|
10
|
+
import { useLocale, usePathname, usePersistedState } from '../../../../utils';
|
|
11
|
+
const Sidebar = ({ links, open, isMobile, logo, onClose, }) => {
|
|
12
|
+
const muiTheme = useMUITheme();
|
|
13
|
+
const pathname = usePathname();
|
|
14
|
+
const locale = useLocale();
|
|
15
|
+
const selectedTextColor = muiTheme.palette.sidebar.contrastText;
|
|
16
|
+
const unselectedTextColor = alpha(selectedTextColor, 0.9);
|
|
17
|
+
const borderRadius = '8px';
|
|
18
|
+
// Handle default item icon and change color according to selection
|
|
19
|
+
const linkIcon = (link, selected) => {
|
|
20
|
+
const color = selected ? selectedTextColor : unselectedTextColor;
|
|
21
|
+
return (React.createElement(ListItemIcon, { color: color }, link.sidebarIcon ? (link.sidebarIcon(color)) : (React.createElement(ArrowRightOutlinedIcon, { htmlColor: color }))));
|
|
22
|
+
};
|
|
23
|
+
// Persist which items of the sidebar are open to avoid resetting on page change
|
|
24
|
+
const [sidebarItemOpen, setSidebarItemOpen] = usePersistedState('sidebarItemOpen', {});
|
|
25
|
+
const handleOpenSidebarItem = (item) => {
|
|
26
|
+
const oldOpenState = { ...sidebarItemOpen };
|
|
27
|
+
oldOpenState[item] =
|
|
28
|
+
oldOpenState[item] === undefined ? true : !oldOpenState[item];
|
|
29
|
+
setSidebarItemOpen(oldOpenState);
|
|
30
|
+
};
|
|
31
|
+
const [subPagesMenuAnchorEl, setSubPagesMenuAnchorEl] = useState({});
|
|
32
|
+
const handleOpenSidebarMenu = (sidebarItemId, event) => {
|
|
33
|
+
setSubPagesMenuAnchorEl({
|
|
34
|
+
...subPagesMenuAnchorEl,
|
|
35
|
+
[sidebarItemId]: event.currentTarget,
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
const handleCloseSidebarMenu = (sidebarItemId) => {
|
|
39
|
+
setSubPagesMenuAnchorEl({
|
|
40
|
+
...subPagesMenuAnchorEl,
|
|
41
|
+
[sidebarItemId]: null,
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
// Don't show anything until localStorage has been read
|
|
45
|
+
if (sidebarItemOpen == undefined) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
// Function to generate sidebar items. To be called recursively
|
|
49
|
+
const handler = (links, options) => {
|
|
50
|
+
if (open) {
|
|
51
|
+
// Render all items with their labels
|
|
52
|
+
return links
|
|
53
|
+
.sort((a, b) => {
|
|
54
|
+
if (a.sidebarOrder === undefined || b.sidebarOrder === undefined) {
|
|
55
|
+
return 1;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
return a.sidebarOrder > b.sidebarOrder ? 1 : -1;
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
.map((link) => {
|
|
62
|
+
const selected = pathname.startsWith(`${link.path}`);
|
|
63
|
+
if (!link.subPages) {
|
|
64
|
+
// Open menu, no subPages
|
|
65
|
+
return (React.createElement(Link, { key: link.id, href: { pathname: link.path } },
|
|
66
|
+
React.createElement(ListItemButton, { selected: selected, onClick: () => {
|
|
67
|
+
if (isMobile) {
|
|
68
|
+
onClose();
|
|
69
|
+
}
|
|
70
|
+
}, sx: {
|
|
71
|
+
paddingLeft: options.level === 1 ? 4 : 3,
|
|
72
|
+
paddingTop: options.level === 1 ? 0 : 1,
|
|
73
|
+
paddingBottom: options.level === 1 ? 0 : 1,
|
|
74
|
+
borderTopRightRadius: borderRadius,
|
|
75
|
+
borderBottomRightRadius: borderRadius,
|
|
76
|
+
marginRight: 1,
|
|
77
|
+
borderLeft: `5px solid ${selected ? muiTheme.palette.primary.main : 'transparent'}`,
|
|
78
|
+
} },
|
|
79
|
+
linkIcon(link, selected),
|
|
80
|
+
React.createElement(ListItemText, { sx: {
|
|
81
|
+
color: selected
|
|
82
|
+
? `${selectedTextColor} !important`
|
|
83
|
+
: `${unselectedTextColor} !important`,
|
|
84
|
+
marginLeft: -3,
|
|
85
|
+
visibility: 'visible',
|
|
86
|
+
}, disableTypography: true, primary: React.createElement(Typography, { variant: link.labelVariant || 'body1', sx: {
|
|
87
|
+
fontWeight: 'bold',
|
|
88
|
+
lineHeight: 1,
|
|
89
|
+
color: selected
|
|
90
|
+
? selectedTextColor
|
|
91
|
+
: unselectedTextColor,
|
|
92
|
+
} }, isStringTranslation(link.label)
|
|
93
|
+
? link.label[locale]
|
|
94
|
+
: link.label) }))));
|
|
95
|
+
}
|
|
96
|
+
// open menu, with subPages
|
|
97
|
+
return (React.createElement("div", { key: link.id },
|
|
98
|
+
React.createElement(Link, { href: { pathname: link.path } },
|
|
99
|
+
React.createElement(ListItemButton, { key: link.id, selected: selected, sx: {
|
|
100
|
+
paddingLeft: 3,
|
|
101
|
+
paddingTop: 1,
|
|
102
|
+
paddingBottom: 1,
|
|
103
|
+
borderTopRightRadius: borderRadius,
|
|
104
|
+
borderBottomRightRadius: borderRadius,
|
|
105
|
+
marginRight: 1,
|
|
106
|
+
borderLeft: `5px solid ${selected ? muiTheme.palette.primary.main : 'transparent'}`,
|
|
107
|
+
}, onClick: (_evt) => {
|
|
108
|
+
if (!sidebarItemOpen[link.id]) {
|
|
109
|
+
handleOpenSidebarItem(link.id);
|
|
110
|
+
}
|
|
111
|
+
} },
|
|
112
|
+
linkIcon(link, selected),
|
|
113
|
+
React.createElement(ListItemText, { sx: {
|
|
114
|
+
color: selected
|
|
115
|
+
? `${selectedTextColor} !important`
|
|
116
|
+
: `${unselectedTextColor} !important`,
|
|
117
|
+
marginLeft: -3,
|
|
118
|
+
visibility: 'visible',
|
|
119
|
+
}, disableTypography: true, primary: React.createElement(Typography, { variant: link.labelVariant || 'body1', sx: {
|
|
120
|
+
fontWeight: 'bold',
|
|
121
|
+
lineHeight: 1,
|
|
122
|
+
color: selected
|
|
123
|
+
? selectedTextColor
|
|
124
|
+
: unselectedTextColor,
|
|
125
|
+
} }, isStringTranslation(link.label)
|
|
126
|
+
? link.label[locale]
|
|
127
|
+
: link.label) }),
|
|
128
|
+
sidebarItemOpen[link.id] ? (React.createElement(IconButton, { sx: { padding: 0 }, onClick: (e) => {
|
|
129
|
+
e.stopPropagation();
|
|
130
|
+
handleOpenSidebarItem(link.id);
|
|
131
|
+
} },
|
|
132
|
+
React.createElement(ExpandLessIcon, null))) : (React.createElement(IconButton, { sx: { padding: 0 }, onClick: (e) => {
|
|
133
|
+
e.stopPropagation();
|
|
134
|
+
handleOpenSidebarItem(link.id);
|
|
135
|
+
} },
|
|
136
|
+
React.createElement(ExpandMoreIcon, { htmlColor: selected ? selectedTextColor : unselectedTextColor }))))),
|
|
137
|
+
React.createElement(Collapse, { in: sidebarItemOpen[link.id], timeout: 'auto', unmountOnExit: true }, handler(link.subPages, { level: 1 }))));
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
// Return only level 0 items and show level 1 items in a menu
|
|
142
|
+
return links
|
|
143
|
+
.sort((a, b) => {
|
|
144
|
+
if (a.sidebarOrder === undefined || b.sidebarOrder === undefined) {
|
|
145
|
+
return 1;
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
return a.sidebarOrder > b.sidebarOrder ? 1 : -1;
|
|
149
|
+
}
|
|
150
|
+
})
|
|
151
|
+
.map((link) => {
|
|
152
|
+
const selected = pathname.startsWith(link.path);
|
|
153
|
+
if (link.subPages) {
|
|
154
|
+
// Closed menu, with subPages
|
|
155
|
+
return (React.createElement("div", { key: link.id },
|
|
156
|
+
React.createElement(ListItemButton, { selected: selected, sx: {
|
|
157
|
+
paddingLeft: 3,
|
|
158
|
+
paddingTop: 1,
|
|
159
|
+
paddingBottom: 1,
|
|
160
|
+
borderTopRightRadius: borderRadius,
|
|
161
|
+
borderBottomRightRadius: borderRadius,
|
|
162
|
+
marginRight: 1,
|
|
163
|
+
borderLeft: `5px solid ${selected ? muiTheme.palette.primary.main : 'transparent'}`,
|
|
164
|
+
}, onClick: (evt) => handleOpenSidebarMenu(link.id, evt) },
|
|
165
|
+
React.createElement(Tooltip, { title: isStringTranslation(link.label)
|
|
166
|
+
? link.label[locale]
|
|
167
|
+
: link.label, placement: 'right', enterDelay: 600, enterNextDelay: 600, arrow: true }, linkIcon(link, selected))),
|
|
168
|
+
React.createElement(Menu, { id: `${link.id}-subpages-menu`, anchorEl: subPagesMenuAnchorEl[link.id], open: Boolean(subPagesMenuAnchorEl[link.id]), onClose: (_evt) => handleCloseSidebarMenu(link.id), anchorOrigin: {
|
|
169
|
+
vertical: 'top',
|
|
170
|
+
horizontal: 'right',
|
|
171
|
+
}, transformOrigin: {
|
|
172
|
+
vertical: 'top',
|
|
173
|
+
horizontal: 'left',
|
|
174
|
+
}, slotProps: {
|
|
175
|
+
paper: {
|
|
176
|
+
sx: {
|
|
177
|
+
borderRadius: '2px',
|
|
178
|
+
padding: '2px',
|
|
179
|
+
overflow: 'visible',
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
} }, link.subPages.map((subPage) => (React.createElement(Link, { key: subPage.id, href: { pathname: subPage.path } },
|
|
183
|
+
React.createElement(MenuItem, { onClick: (_evt) => handleCloseSidebarMenu(link.id) },
|
|
184
|
+
linkIcon(subPage, selected),
|
|
185
|
+
React.createElement(ListItemText, { sx: {
|
|
186
|
+
color: selected
|
|
187
|
+
? `${selectedTextColor} !important`
|
|
188
|
+
: `${unselectedTextColor} !important`,
|
|
189
|
+
} }, isStringTranslation(subPage.label)
|
|
190
|
+
? subPage.label[locale]
|
|
191
|
+
: subPage.label))))))));
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
// Closed menu, no subPages
|
|
195
|
+
return (React.createElement(Link, { key: link.id, href: { pathname: link.path } },
|
|
196
|
+
React.createElement(ListItemButton, { selected: selected, sx: {
|
|
197
|
+
paddingLeft: 3,
|
|
198
|
+
paddingTop: 1,
|
|
199
|
+
paddingBottom: 1,
|
|
200
|
+
borderTopRightRadius: borderRadius,
|
|
201
|
+
borderBottomRightRadius: borderRadius,
|
|
202
|
+
marginRight: 1,
|
|
203
|
+
borderLeft: `5px solid ${selected ? muiTheme.palette.primary.main : 'transparent'}`,
|
|
204
|
+
} },
|
|
205
|
+
React.createElement(Tooltip, { title: isStringTranslation(link.label)
|
|
206
|
+
? link.label[locale]
|
|
207
|
+
: link.label, placement: 'right', enterDelay: 600, enterNextDelay: 600, arrow: true }, linkIcon(link, selected)))));
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
return (React.createElement(Drawer, { anchor: 'left', onClose: onClose, open: open, variant: isMobile ? 'temporary' : 'permanent', sx: {
|
|
213
|
+
flexShrink: 0,
|
|
214
|
+
whiteSpace: 'nowrap',
|
|
215
|
+
width: {
|
|
216
|
+
xs: open ? '65%' : `${parseInt(muiTheme.spacing(10), 10)}px`,
|
|
217
|
+
sm: open ? '50%' : `${parseInt(muiTheme.spacing(10), 10)}px`,
|
|
218
|
+
md: open ? '300px' : `${parseInt(muiTheme.spacing(10), 10)}px`,
|
|
219
|
+
},
|
|
220
|
+
transition: 'width 1s',
|
|
221
|
+
}, PaperProps: {
|
|
222
|
+
sx: {
|
|
223
|
+
width: {
|
|
224
|
+
xs: open ? '65%' : `${parseInt(muiTheme.spacing(10), 10)}px`,
|
|
225
|
+
sm: open ? '50%' : `${parseInt(muiTheme.spacing(10), 10)}px`,
|
|
226
|
+
md: open ? '300px' : `${parseInt(muiTheme.spacing(10), 10)}px`,
|
|
227
|
+
},
|
|
228
|
+
overflow: 'hidden',
|
|
229
|
+
background: muiTheme.palette.sidebar.main,
|
|
230
|
+
transition: 'width 1s',
|
|
231
|
+
},
|
|
232
|
+
} },
|
|
233
|
+
React.createElement(List, { sx: { marginTop: '19px' } }, handler(links, { level: 0 })),
|
|
234
|
+
React.createElement(Box, { sx: { flexGrow: 1 } }),
|
|
235
|
+
logo));
|
|
236
|
+
};
|
|
237
|
+
export default Sidebar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ElevationScroll.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/Topbar/ElevationScroll.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgB,YAAY,EAAE,MAAM,OAAO,CAAC;AAInD,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,QAAA,MAAM,eAAe,iBAAkB,oBAAoB,2EAS1D,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { cloneElement } from 'react';
|
|
3
|
+
import useScrollTrigger from '@mui/material/useScrollTrigger';
|
|
4
|
+
const ElevationScroll = ({ children }) => {
|
|
5
|
+
const trigger = useScrollTrigger({
|
|
6
|
+
disableHysteresis: true,
|
|
7
|
+
threshold: 0,
|
|
8
|
+
});
|
|
9
|
+
return cloneElement(children, {
|
|
10
|
+
elevation: trigger ? 2 : 0,
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
export default ElevationScroll;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Topbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/Topbar/Topbar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAc1C,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAU,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAIrE,UAAU,WAAW;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB;;OAEG;IACH,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B;;OAEG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6EjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { useContext } from 'react';
|
|
3
|
+
import MenuOpenTwoToneIcon from '@mui/icons-material/MenuOpenTwoTone';
|
|
4
|
+
import MenuTwoToneIcon from '@mui/icons-material/MenuTwoTone';
|
|
5
|
+
import ModeNightIcon from '@mui/icons-material/ModeNight';
|
|
6
|
+
import { AppBar, Box, IconButton, Toolbar, Tooltip, useTheme as useMUITheme, } from '@mui/material';
|
|
7
|
+
import { LanguageSelect } from '../../../buttons/index';
|
|
8
|
+
import { Avatar } from '../../../buttons/Avatar/Avatar';
|
|
9
|
+
import ElevationScroll from './ElevationScroll';
|
|
10
|
+
import t from './translations.json';
|
|
11
|
+
import { ThemeModeContext } from '../../../provider/ThemeProvider';
|
|
12
|
+
const Topbar = (props) => {
|
|
13
|
+
const { hasSidebar = false, onSidebarClose, onSidebarOpen, open, locale, languages, avatar, } = props;
|
|
14
|
+
const { themeMode, setThemeMode } = useContext(ThemeModeContext);
|
|
15
|
+
const muiTheme = useMUITheme();
|
|
16
|
+
const SidebarIcon = open ? (React.createElement(MenuOpenTwoToneIcon, { htmlColor: muiTheme.palette.topbar.contrastText })) : (React.createElement(MenuTwoToneIcon, { htmlColor: muiTheme.palette.topbar.contrastText }));
|
|
17
|
+
const menuMessage = open ? t['menuClose'][locale] : t['menuOpen'][locale];
|
|
18
|
+
return (React.createElement(Box, { sx: { display: 'flex', flexDirection: 'row', width: '100%' } },
|
|
19
|
+
React.createElement(Box, { sx: { width: '100%' } },
|
|
20
|
+
React.createElement(ElevationScroll, { ...props },
|
|
21
|
+
React.createElement(AppBar, { position: 'sticky', sx: {
|
|
22
|
+
boxSizing: 'border-box',
|
|
23
|
+
background: muiTheme.palette.topbar.main,
|
|
24
|
+
color: muiTheme.palette.topbar.contrastText,
|
|
25
|
+
}, enableColorOnDark: true },
|
|
26
|
+
React.createElement(Toolbar, null,
|
|
27
|
+
hasSidebar && (React.createElement(Tooltip, { title: menuMessage, arrow: true },
|
|
28
|
+
React.createElement(IconButton, { color: 'inherit', "aria-label": 'open drawer', onClick: () => (open ? onSidebarClose() : onSidebarOpen()), edge: 'start' }, SidebarIcon))),
|
|
29
|
+
React.createElement("div", { style: { flexGrow: 1 } }),
|
|
30
|
+
React.createElement(LanguageSelect, { locale: locale, languages: languages }),
|
|
31
|
+
React.createElement(Avatar, { ...avatar }),
|
|
32
|
+
React.createElement(Tooltip, { title: themeMode === 'light'
|
|
33
|
+
? t['enableDark'][locale]
|
|
34
|
+
: t['disableDark'][locale] },
|
|
35
|
+
React.createElement(IconButton, { component: 'span', "aria-label": 'toggle dark mode', onClick: () => setThemeMode(themeMode === 'light' ? 'dark' : 'light') },
|
|
36
|
+
React.createElement(ModeNightIcon, { htmlColor: muiTheme.palette.topbar.contrastText })))))))));
|
|
37
|
+
};
|
|
38
|
+
export default Topbar;
|
|
@@ -2,24 +2,28 @@
|
|
|
2
2
|
"menuOpen": {
|
|
3
3
|
"de": "Menü öffnen",
|
|
4
4
|
"en": "Open menu",
|
|
5
|
+
"es": "Abre el menu",
|
|
5
6
|
"fr": "Ouvrir le menu",
|
|
6
7
|
"it": "Apri menu"
|
|
7
8
|
},
|
|
8
9
|
"menuClose": {
|
|
9
10
|
"de": "Menü schließen",
|
|
10
11
|
"en": "Close menu",
|
|
12
|
+
"es": "Cierra el menu",
|
|
11
13
|
"fr": "Fermer le menu",
|
|
12
14
|
"it": "Chiudi menu"
|
|
13
15
|
},
|
|
14
16
|
"enableDark": {
|
|
15
17
|
"de": "Dark-Mode aktivieren",
|
|
16
18
|
"en": "Enable dark mode",
|
|
19
|
+
"es": "Activa el modo oscuro",
|
|
17
20
|
"fr": "Activer le mode sombre",
|
|
18
21
|
"it": "Attiva modalità scura"
|
|
19
22
|
},
|
|
20
23
|
"disableDark": {
|
|
21
24
|
"de": "Dark-Mode deaktivieren",
|
|
22
25
|
"en": "Disable dark mode",
|
|
26
|
+
"es": "Desactiva el modo oscuro",
|
|
23
27
|
"fr": "Désactiver le mode sombre",
|
|
24
28
|
"it": "Disattiva modalità scura"
|
|
25
29
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopLine.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/Topline/TopLine.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAa5C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useTheme } from '@mui/material';
|
|
4
|
+
const TopLine = () => {
|
|
5
|
+
const theme = useTheme();
|
|
6
|
+
return (React.createElement("div", { style: {
|
|
7
|
+
height: '3px',
|
|
8
|
+
width: '100%',
|
|
9
|
+
zIndex: 9999,
|
|
10
|
+
position: 'fixed',
|
|
11
|
+
background: theme.palette.gradient.main,
|
|
12
|
+
} }));
|
|
13
|
+
};
|
|
14
|
+
export default TopLine;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/layout/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircularLoading.d.ts","sourceRoot":"","sources":["../../../../src/components/progress/CircularLoading/CircularLoading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAuB,MAAM,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEhF,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAC;CACpC;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAqBnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box, CircularProgress, Typography } from '@mui/material';
|
|
3
|
+
import t from './translations.json';
|
|
4
|
+
import { isStringTranslation } from '../../../types';
|
|
5
|
+
const CircularLoading = ({ locale = 'en', label = t['loading'], }) => {
|
|
6
|
+
const labelString = isStringTranslation(label)
|
|
7
|
+
? label[locale]
|
|
8
|
+
: label;
|
|
9
|
+
return (React.createElement(Box, { sx: {
|
|
10
|
+
display: 'flex',
|
|
11
|
+
flexDirection: 'column',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
justifyContent: 'center',
|
|
14
|
+
height: '100%',
|
|
15
|
+
} },
|
|
16
|
+
React.createElement(CircularProgress, null),
|
|
17
|
+
React.createElement(Typography, { variant: 'body1' }, labelString)));
|
|
18
|
+
};
|
|
19
|
+
export default CircularLoading;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAC/E,YAAY,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CircularLoading } from './CircularLoading/CircularLoading';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { EmotionCache } from '@emotion/react';
|
|
3
2
|
import { PaletteOptions } from '@mui/material';
|
|
4
|
-
interface PageProviderProps {
|
|
5
|
-
emotionCache?: EmotionCache;
|
|
3
|
+
export interface PageProviderProps {
|
|
6
4
|
children: React.ReactNode;
|
|
7
5
|
lightPalette?: PaletteOptions;
|
|
8
6
|
darkPalette?: PaletteOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageProvider.d.ts","sourceRoot":"","sources":["../../../src/components/provider/PageProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAI/C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,WAAW,CAAC,EAAE,cAAc,CAAC;CAC9B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAU7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import ThemeProvider from './ThemeProvider';
|
|
4
|
+
import { SnackbarProvider } from 'notistack';
|
|
5
|
+
const PageProvider = ({ children, lightPalette, darkPalette, }) => {
|
|
6
|
+
return (React.createElement(ThemeProvider, { lightPalette: lightPalette, darkPalette: darkPalette },
|
|
7
|
+
React.createElement(SnackbarProvider, { maxSnack: 3 }, children)));
|
|
8
|
+
};
|
|
9
|
+
export default PageProvider;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PaletteOptions } from '@mui/material/styles';
|
|
3
|
+
import { AllowedTheme } from '../../utils/theme/palette';
|
|
4
|
+
export declare const ThemeModeContext: React.Context<{
|
|
5
|
+
themeMode: AllowedTheme;
|
|
6
|
+
setThemeMode: (_: AllowedTheme) => void;
|
|
7
|
+
}>;
|
|
8
|
+
interface ThemeProviderProps {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
lightPalette?: PaletteOptions;
|
|
11
|
+
darkPalette?: PaletteOptions;
|
|
12
|
+
}
|
|
13
|
+
declare const ThemeProvider: ({ children, lightPalette, darkPalette, }: ThemeProviderProps) => React.JSX.Element;
|
|
14
|
+
export default ThemeProvider;
|
|
15
|
+
//# sourceMappingURL=ThemeProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/components/provider/ThemeProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAGlE,OAAO,EACL,cAAc,EAEf,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,YAAY,EAAiB,MAAM,2BAA2B,CAAC;AAKxE,eAAO,MAAM,gBAAgB;;sBAET,YAAY;EAC9B,CAAC;AAEH,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,WAAW,CAAC,EAAE,cAAc,CAAC;CAC9B;AAED,QAAA,MAAM,aAAa,6CAIhB,kBAAkB,sBAyCpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|