@deix/rossini-core 0.1.0 → 0.2.1

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 (122) hide show
  1. package/README.md +13 -0
  2. package/lib/package.json +4 -8
  3. package/lib/src/components/buttons/Avatar/Avatar.d.ts +1 -1
  4. package/lib/src/components/buttons/Avatar/Avatar.d.ts.map +1 -1
  5. package/lib/src/components/buttons/Avatar/Avatar.js +1 -1
  6. package/lib/src/components/buttons/LanguageSelect/LanguageSelect.d.ts +0 -1
  7. package/lib/src/components/buttons/LanguageSelect/LanguageSelect.d.ts.map +1 -1
  8. package/lib/src/components/buttons/LanguageSelect/LanguageSelect.js +2 -2
  9. package/lib/src/components/buttons/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  10. package/lib/src/components/buttons/ToggleButtonGroup/ToggleButtonGroup.d.ts.map +1 -1
  11. package/lib/src/components/buttons/index.d.ts +3 -0
  12. package/lib/src/components/buttons/index.d.ts.map +1 -1
  13. package/lib/src/components/index.d.ts +7 -0
  14. package/lib/src/components/index.d.ts.map +1 -0
  15. package/lib/src/components/index.js +3 -0
  16. package/lib/src/components/layout/MinimalLayout/MinimalLayout.js +2 -1
  17. package/lib/src/components/layout/StandardLayout/StandardLayout.d.ts +6 -4
  18. package/lib/src/components/layout/StandardLayout/StandardLayout.d.ts.map +1 -1
  19. package/lib/src/components/layout/StandardLayout/StandardLayout.js +19 -7
  20. package/lib/src/components/layout/assets/deix_logo_symbol_minimal.svg +15 -0
  21. package/lib/src/components/layout/assets/undraw_server_down.svg +1 -0
  22. package/lib/src/components/layout/components/AppLogo/AppLogo.d.ts +5 -3
  23. package/lib/src/components/layout/components/AppLogo/AppLogo.d.ts.map +1 -1
  24. package/lib/src/components/layout/components/Footer/Footer.d.ts.map +1 -1
  25. package/lib/src/components/layout/components/Footer/Footer.js +3 -2
  26. package/lib/src/components/layout/components/Sidebar/Sidebar.d.ts +1 -1
  27. package/lib/src/components/layout/components/Sidebar/Sidebar.d.ts.map +1 -1
  28. package/lib/src/components/layout/components/Sidebar/Sidebar.js +1 -1
  29. package/lib/src/components/layout/components/Topbar/Topbar.d.ts +4 -4
  30. package/lib/src/components/layout/components/Topbar/Topbar.d.ts.map +1 -1
  31. package/lib/src/components/layout/components/Topbar/Topbar.js +3 -3
  32. package/lib/src/components/layout/components/Topbar/Topbar.styles.d.ts +3 -3
  33. package/lib/src/components/layout/index.d.ts +4 -1
  34. package/lib/src/components/layout/index.d.ts.map +1 -1
  35. package/lib/src/components/layout/index.js +1 -1
  36. package/lib/src/components/progress/CircularLoading/CircularLoading.d.ts +2 -5
  37. package/lib/src/components/progress/CircularLoading/CircularLoading.d.ts.map +1 -1
  38. package/lib/src/components/progress/DotWaveLoading/DotWaveLoading.d.ts +2 -5
  39. package/lib/src/components/progress/DotWaveLoading/DotWaveLoading.d.ts.map +1 -1
  40. package/lib/src/components/progress/index.d.ts +1 -0
  41. package/lib/src/components/progress/index.d.ts.map +1 -1
  42. package/lib/src/components/progress/types.d.ts +5 -0
  43. package/lib/src/components/progress/types.d.ts.map +1 -0
  44. package/lib/src/components/progress/types.js +1 -0
  45. package/lib/src/index.d.ts +7 -0
  46. package/lib/src/index.d.ts.map +1 -0
  47. package/lib/src/index.js +3 -0
  48. package/lib/src/types/index.d.ts +4 -0
  49. package/lib/src/types/index.d.ts.map +1 -0
  50. package/lib/src/types/index.js +1 -0
  51. package/lib/src/types/languages.d.ts +5 -1
  52. package/lib/src/types/languages.d.ts.map +1 -1
  53. package/lib/src/types/languages.js +6 -0
  54. package/lib/src/utils/helpers/colorHelpers.d.ts +5 -0
  55. package/lib/src/utils/helpers/colorHelpers.d.ts.map +1 -0
  56. package/lib/src/utils/helpers/colorHelpers.js +173 -0
  57. package/lib/src/utils/helpers/dateHelpers.d.ts +9 -0
  58. package/lib/src/utils/helpers/dateHelpers.d.ts.map +1 -0
  59. package/lib/src/utils/helpers/dateHelpers.js +29 -0
  60. package/lib/src/utils/helpers/index.d.ts +4 -0
  61. package/lib/src/utils/helpers/index.d.ts.map +1 -0
  62. package/lib/src/utils/helpers/index.js +3 -0
  63. package/lib/src/utils/helpers/stringHelpers.d.ts +6 -0
  64. package/lib/src/utils/helpers/stringHelpers.d.ts.map +1 -0
  65. package/lib/src/utils/helpers/stringHelpers.js +40 -0
  66. package/lib/src/utils/hooks/index.d.ts +6 -0
  67. package/lib/src/utils/hooks/index.d.ts.map +1 -0
  68. package/lib/src/utils/hooks/index.js +4 -0
  69. package/lib/src/utils/hooks/useAPI.d.ts +2 -1
  70. package/lib/src/utils/hooks/useAPI.d.ts.map +1 -1
  71. package/lib/src/utils/hooks/useAPI.js +2 -1
  72. package/lib/src/utils/hooks/usePersistedState.d.ts +2 -1
  73. package/lib/src/utils/hooks/usePersistedState.d.ts.map +1 -1
  74. package/lib/src/utils/hooks/usePersistedState.js +2 -1
  75. package/lib/src/utils/index.d.ts +5 -0
  76. package/lib/src/utils/index.d.ts.map +1 -0
  77. package/lib/src/utils/index.js +3 -0
  78. package/lib/src/utils/provider/PageProvider.d.ts +12 -0
  79. package/lib/src/utils/provider/PageProvider.d.ts.map +1 -0
  80. package/lib/src/utils/provider/PageProvider.js +17 -0
  81. package/lib/src/utils/provider/ThemeProvider.d.ts +9 -0
  82. package/lib/src/utils/provider/ThemeProvider.d.ts.map +1 -0
  83. package/lib/src/utils/provider/ThemeProvider.js +23 -0
  84. package/lib/src/utils/theme/components/MuiAccordion.d.ts +22 -0
  85. package/lib/src/utils/theme/components/MuiAccordion.d.ts.map +1 -0
  86. package/lib/src/utils/theme/components/MuiAccordion.js +20 -0
  87. package/lib/src/utils/theme/components/MuiCard.d.ts +12 -0
  88. package/lib/src/utils/theme/components/MuiCard.d.ts.map +1 -0
  89. package/lib/src/utils/theme/components/MuiCard.js +10 -0
  90. package/lib/src/utils/theme/components/MuiCardHeader.d.ts +17 -0
  91. package/lib/src/utils/theme/components/MuiCardHeader.d.ts.map +1 -0
  92. package/lib/src/utils/theme/components/MuiCardHeader.js +15 -0
  93. package/lib/src/utils/theme/components/MuiFormControl.d.ts +8 -0
  94. package/lib/src/utils/theme/components/MuiFormControl.d.ts.map +1 -0
  95. package/lib/src/utils/theme/components/MuiFormControl.js +6 -0
  96. package/lib/src/utils/theme/components/MuiGrid.d.ts +7 -0
  97. package/lib/src/utils/theme/components/MuiGrid.d.ts.map +1 -0
  98. package/lib/src/utils/theme/components/MuiGrid.js +5 -0
  99. package/lib/src/utils/theme/components/MuiPaper.d.ts +16 -0
  100. package/lib/src/utils/theme/components/MuiPaper.d.ts.map +1 -0
  101. package/lib/src/utils/theme/components/MuiPaper.js +14 -0
  102. package/lib/src/utils/theme/components/MuiTypography.d.ts +7 -0
  103. package/lib/src/utils/theme/components/MuiTypography.d.ts.map +1 -0
  104. package/lib/src/utils/theme/components/MuiTypography.js +5 -0
  105. package/lib/src/utils/theme/components/index.d.ts +79 -0
  106. package/lib/src/utils/theme/components/index.d.ts.map +1 -0
  107. package/lib/src/utils/theme/components/index.js +16 -0
  108. package/lib/src/utils/theme/createEmotionCache.d.ts +2 -0
  109. package/lib/src/utils/theme/createEmotionCache.d.ts.map +1 -0
  110. package/lib/src/utils/theme/createEmotionCache.js +5 -0
  111. package/lib/src/utils/theme/index.d.ts +6 -0
  112. package/lib/src/utils/theme/index.d.ts.map +1 -0
  113. package/lib/src/utils/theme/index.js +29 -0
  114. package/lib/src/utils/theme/palette/defaultColors.json +68 -0
  115. package/lib/src/utils/theme/palette/index.d.ts +7 -0
  116. package/lib/src/utils/theme/palette/index.d.ts.map +1 -0
  117. package/lib/src/utils/theme/palette/index.js +88 -0
  118. package/lib/src/utils/theme/typography.d.ts +67 -0
  119. package/lib/src/utils/theme/typography.d.ts.map +1 -0
  120. package/lib/src/utils/theme/typography.js +65 -0
  121. package/lib/tsconfig-lib.tsbuildinfo +1 -1
  122. package/package.json +4 -8
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ defaultProps: {
3
+ margin: "none";
4
+ width: string;
5
+ };
6
+ };
7
+ export default _default;
8
+ //# sourceMappingURL=MuiFormControl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MuiFormControl.d.ts","sourceRoot":"","sources":["../../../../../src/utils/theme/components/MuiFormControl.ts"],"names":[],"mappings":";;;;;;AAAA,wBAKE"}
@@ -0,0 +1,6 @@
1
+ export default {
2
+ defaultProps: {
3
+ margin: 'none',
4
+ width: '100%',
5
+ },
6
+ };
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ defaultProps: {
3
+ spacing: number;
4
+ };
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=MuiGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MuiGrid.d.ts","sourceRoot":"","sources":["../../../../../src/utils/theme/components/MuiGrid.ts"],"names":[],"mappings":";;;;;AAAA,wBAIE"}
@@ -0,0 +1,5 @@
1
+ export default {
2
+ defaultProps: {
3
+ spacing: 2,
4
+ },
5
+ };
@@ -0,0 +1,16 @@
1
+ declare const _default: {
2
+ styleOverrides: {
3
+ rounded: {
4
+ borderRadius: string;
5
+ padding: string;
6
+ };
7
+ elevation1: {
8
+ boxShadow: string;
9
+ };
10
+ elevation2: {
11
+ boxShadow: string;
12
+ };
13
+ };
14
+ };
15
+ export default _default;
16
+ //# sourceMappingURL=MuiPaper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MuiPaper.d.ts","sourceRoot":"","sources":["../../../../../src/utils/theme/components/MuiPaper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wBAeE"}
@@ -0,0 +1,14 @@
1
+ export default {
2
+ styleOverrides: {
3
+ rounded: {
4
+ borderRadius: '16px',
5
+ padding: '16px',
6
+ },
7
+ elevation1: {
8
+ boxShadow: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',
9
+ },
10
+ elevation2: {
11
+ boxShadow: '0px 3px 1px -2px rgba(0, 0, 0, 0), 0px 2px 2px 0px rgba(0, 0, 0, 0), 220px 1px 5px 0px rgba(0, 0, 0, 0.1)',
12
+ },
13
+ },
14
+ };
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ defaultProps: {
3
+ color: string;
4
+ };
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=MuiTypography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MuiTypography.d.ts","sourceRoot":"","sources":["../../../../../src/utils/theme/components/MuiTypography.ts"],"names":[],"mappings":";;;;;AAAA,wBAIE"}
@@ -0,0 +1,5 @@
1
+ export default {
2
+ defaultProps: {
3
+ color: 'textPrimary',
4
+ },
5
+ };
@@ -0,0 +1,79 @@
1
+ declare const _default: {
2
+ MuiAccordion: {
3
+ styleOverrides: {
4
+ rounded: {
5
+ borderRadius: string;
6
+ '&:first-of-type': {
7
+ borderTopLeftRadius: string;
8
+ borderTopRightRadius: string;
9
+ };
10
+ '&:last-of-type': {
11
+ borderBottomLeftRadius: string;
12
+ borderBottomRightRadius: string;
13
+ };
14
+ '&:before': {
15
+ opacity: number;
16
+ left: string;
17
+ right: string;
18
+ };
19
+ };
20
+ };
21
+ };
22
+ MuiCard: {
23
+ styleOverrides: {
24
+ root: {
25
+ padding: string;
26
+ '&:last-child': {
27
+ paddingBottom: string;
28
+ };
29
+ };
30
+ };
31
+ };
32
+ MuiCardHeader: {
33
+ defaultProps: {
34
+ titleTypographyProps: {
35
+ variant: "h4";
36
+ };
37
+ subheaderTypographyProps: {
38
+ variant: "subtitle1";
39
+ };
40
+ };
41
+ styleOverrides: {
42
+ root: {
43
+ padding: string;
44
+ };
45
+ };
46
+ };
47
+ MuiFormControl: {
48
+ defaultProps: {
49
+ margin: "none";
50
+ width: string;
51
+ };
52
+ };
53
+ MuiGrid: {
54
+ defaultProps: {
55
+ spacing: number;
56
+ };
57
+ };
58
+ MuiPaper: {
59
+ styleOverrides: {
60
+ rounded: {
61
+ borderRadius: string;
62
+ padding: string;
63
+ };
64
+ elevation1: {
65
+ boxShadow: string;
66
+ };
67
+ elevation2: {
68
+ boxShadow: string;
69
+ };
70
+ };
71
+ };
72
+ MuiTypography: {
73
+ defaultProps: {
74
+ color: string;
75
+ };
76
+ };
77
+ };
78
+ export default _default;
79
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utils/theme/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAQE"}
@@ -0,0 +1,16 @@
1
+ import MuiAccordion from './MuiAccordion';
2
+ import MuiCard from './MuiCard';
3
+ import MuiCardHeader from './MuiCardHeader';
4
+ import MuiFormControl from './MuiFormControl';
5
+ import MuiGrid from './MuiGrid';
6
+ import MuiPaper from './MuiPaper';
7
+ import MuiTypography from './MuiTypography';
8
+ export default {
9
+ MuiAccordion: MuiAccordion,
10
+ MuiCard: MuiCard,
11
+ MuiCardHeader: MuiCardHeader,
12
+ MuiFormControl: MuiFormControl,
13
+ MuiGrid: MuiGrid,
14
+ MuiPaper: MuiPaper,
15
+ MuiTypography: MuiTypography,
16
+ };
@@ -0,0 +1,2 @@
1
+ export default function createEmotionCache(): import("@emotion/utils").EmotionCache;
2
+ //# sourceMappingURL=createEmotionCache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createEmotionCache.d.ts","sourceRoot":"","sources":["../../../../src/utils/theme/createEmotionCache.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,kBAAkB,0CAEzC"}
@@ -0,0 +1,5 @@
1
+ import createCache from '@emotion/cache';
2
+ // prepend: true moves MUI styles to the top of the <head> so they're loaded first.
3
+ export default function createEmotionCache() {
4
+ return createCache({ key: 'css', prepend: true });
5
+ }
@@ -0,0 +1,6 @@
1
+ import { PaletteOptions, Theme } from '@mui/material/styles';
2
+ import { Locale } from '../../types/languages';
3
+ import { AllowedTheme } from './palette';
4
+ export declare const adaptiveTheme: (mode: AllowedTheme, locale: Locale, lightPalette?: PaletteOptions, darkPalette?: PaletteOptions) => Theme;
5
+ export declare const globalStyles: import("@emotion/utils").SerializedStyles;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/theme/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,cAAc,EACd,KAAK,EAEN,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,OAAO,EAAmB,YAAY,EAAE,MAAM,WAAW,CAAC;AAc1D,eAAO,MAAM,aAAa,SAClB,YAAY,UACV,MAAM,iBACC,cAAc,gBACf,cAAc,KAC3B,KAWF,CAAC;AAEF,eAAO,MAAM,YAAY,2CA8BxB,CAAC"}
@@ -0,0 +1,29 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import * as locales from '@mui/material/locale';
6
+ import { createTheme, css, } from '@mui/material/styles';
7
+ import components from './components';
8
+ import { adaptivePalette } from './palette';
9
+ import typography from './typography';
10
+ var localeMapping = {
11
+ en: 'enUS',
12
+ fr: 'frFR',
13
+ de: 'deDE',
14
+ it: 'itIT',
15
+ };
16
+ export var adaptiveTheme = function (mode, locale, lightPalette, darkPalette) {
17
+ var theme = {
18
+ palette: adaptivePalette(mode, lightPalette, darkPalette),
19
+ typography: typography,
20
+ components: components,
21
+ zIndex: {
22
+ appBar: 1200,
23
+ drawer: 1100,
24
+ },
25
+ };
26
+ return createTheme(theme, locales[localeMapping[locale]]);
27
+ };
28
+ export var globalStyles = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n :root {\n display: flex;\n }\n body {\n width: 100%;\n }\n a {\n text-decoration: none;\n }\n html {\n height: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n #__next {\n width: 100%;\n height: 100%;\n margin: 0px;\n padding: 0px;\n box-sizing: border-box;\n display: flex;\n overflow-y: auto;\n // /* hide scrollbar for IE, Edge and Firefox */\n // -ms-overflow-style: none;\n // scrollbar-width: none;\n }\n // ::-webkit-scrollbar {\n // display: none;\n // }\n"], ["\n :root {\n display: flex;\n }\n body {\n width: 100%;\n }\n a {\n text-decoration: none;\n }\n html {\n height: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n #__next {\n width: 100%;\n height: 100%;\n margin: 0px;\n padding: 0px;\n box-sizing: border-box;\n display: flex;\n overflow-y: auto;\n // /* hide scrollbar for IE, Edge and Firefox */\n // -ms-overflow-style: none;\n // scrollbar-width: none;\n }\n // ::-webkit-scrollbar {\n // display: none;\n // }\n"])));
29
+ var templateObject_1;
@@ -0,0 +1,68 @@
1
+ {
2
+ "primary": {
3
+ "100": "#C6F8E7",
4
+ "200": "#91F2D9",
5
+ "300": "#56D8C2",
6
+ "400": "#2CB2A7",
7
+ "500": "#008080",
8
+ "600": "#00646E",
9
+ "700": "#004C5C",
10
+ "800": "#00364A",
11
+ "900": "#00283D"
12
+ },
13
+ "secondary": {
14
+ "100": "#FDEBDC",
15
+ "200": "#FCD2BA",
16
+ "300": "#F6B295",
17
+ "400": "#ED9278",
18
+ "500": "#E2634E",
19
+ "600": "#C24139",
20
+ "700": "#A22729",
21
+ "800": "#831822",
22
+ "900": "#6C0E1E"
23
+ },
24
+ "success": {
25
+ "100": "#DBFBD3",
26
+ "200": "#B1F7A9",
27
+ "300": "#7BE87A",
28
+ "400": "#55D260",
29
+ "500": "#26B540",
30
+ "600": "#1B9B3F",
31
+ "700": "#13823C",
32
+ "800": "#0C6837",
33
+ "900": "#075633"
34
+ },
35
+ "info": {
36
+ "100": "#D3E6FE",
37
+ "200": "#A7CBFD",
38
+ "300": "#7AACFB",
39
+ "400": "#5991F8",
40
+ "500": "#2466F4",
41
+ "600": "#1A4ED1",
42
+ "700": "#1239AF",
43
+ "800": "#0B288D",
44
+ "900": "#061B75"
45
+ },
46
+ "warning": {
47
+ "100": "#FDF1CC",
48
+ "200": "#FCE099",
49
+ "300": "#F8C766",
50
+ "400": "#F2AF3F",
51
+ "500": "#EA8A04",
52
+ "600": "#C96E02",
53
+ "700": "#A85402",
54
+ "800": "#873E01",
55
+ "900": "#702E00"
56
+ },
57
+ "error": {
58
+ "100": "#FCE1D6",
59
+ "200": "#FABEAF",
60
+ "300": "#F19084",
61
+ "400": "#E46663",
62
+ "500": "#D3343F",
63
+ "600": "#B5263C",
64
+ "700": "#971A39",
65
+ "800": "#7A1034",
66
+ "900": "#650931"
67
+ }
68
+ }
@@ -0,0 +1,7 @@
1
+ import { PaletteOptions } from '@mui/material/styles';
2
+ export type AllowedTheme = NonNullable<PaletteOptions['mode']>;
3
+ export declare const DEFAULT_THEME: AllowedTheme;
4
+ export declare const defaultLightPalette: PaletteOptions;
5
+ export declare const defaultDarkPalette: PaletteOptions;
6
+ export declare const adaptivePalette: (mode: AllowedTheme, lightPalette?: PaletteOptions, darkPalette?: PaletteOptions) => PaletteOptions;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utils/theme/palette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;AAE/D,eAAO,MAAM,aAAa,EAAE,YAAsB,CAAC;AAInD,eAAO,MAAM,mBAAmB,EAAE,cAsCjC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,cAoChC,CAAC;AAEF,eAAO,MAAM,eAAe,SACpB,YAAY,iBACH,cAAc,gBACf,cAAc,KAC3B,cAQF,CAAC"}
@@ -0,0 +1,88 @@
1
+ import colors from './defaultColors.json';
2
+ export var DEFAULT_THEME = 'light';
3
+ var primary = colors.primary, secondary = colors.secondary, success = colors.success, info = colors.info, warning = colors.warning, error = colors.error;
4
+ export var defaultLightPalette = {
5
+ mode: 'light',
6
+ gradient: {
7
+ main: "linear-gradient(90deg, ".concat(primary[500], ", ").concat(primary[900], ")"),
8
+ },
9
+ primary: {
10
+ main: primary[500],
11
+ },
12
+ secondary: {
13
+ main: secondary[500],
14
+ },
15
+ success: {
16
+ main: success[500],
17
+ },
18
+ info: {
19
+ main: info[500],
20
+ },
21
+ warning: {
22
+ main: warning[500],
23
+ },
24
+ error: {
25
+ main: error[500],
26
+ },
27
+ background: {
28
+ default: '#fafafa',
29
+ paper: '#ffffff',
30
+ },
31
+ text: {
32
+ secondary: 'rgba(0,0,0,0.54)',
33
+ primary: 'rgba(0,0,0,0.87)',
34
+ disabled: 'rgba(0,0,0,0.38)',
35
+ },
36
+ divider: 'rgba(0,0,0,0.12)',
37
+ linkNotActive: {
38
+ main: '#afafaf',
39
+ },
40
+ sidebar: { main: '#fafafa' },
41
+ topbar: { main: '#fafafa' },
42
+ };
43
+ export var defaultDarkPalette = {
44
+ mode: 'dark',
45
+ gradient: {
46
+ main: "linear-gradient(90deg, ".concat(primary[500], ", ").concat(primary[100], ")"),
47
+ },
48
+ primary: {
49
+ main: primary[400],
50
+ },
51
+ secondary: {
52
+ main: secondary[500],
53
+ },
54
+ success: {
55
+ main: success[500],
56
+ },
57
+ info: {
58
+ main: info[500],
59
+ },
60
+ warning: {
61
+ main: warning[500],
62
+ },
63
+ error: {
64
+ main: error[300],
65
+ },
66
+ background: {
67
+ default: '#303030',
68
+ paper: '#424242',
69
+ },
70
+ text: {
71
+ primary: '#ffffff',
72
+ secondary: 'rgba(255,255,255,0.7)',
73
+ disabled: 'rgba(255,255,255,0.5)',
74
+ },
75
+ divider: 'rgba(255,255,255,0.12)',
76
+ linkNotActive: { main: '#afafaf' },
77
+ sidebar: { main: '#303030' },
78
+ topbar: { main: '#303030' },
79
+ };
80
+ export var adaptivePalette = function (mode, lightPalette, darkPalette) {
81
+ var light = defaultLightPalette;
82
+ var dark = defaultDarkPalette;
83
+ if (lightPalette !== undefined && darkPalette !== undefined) {
84
+ light = lightPalette;
85
+ dark = darkPalette;
86
+ }
87
+ return mode === 'light' ? light : dark;
88
+ };
@@ -0,0 +1,67 @@
1
+ declare const _default: {
2
+ fontFamily: string;
3
+ body1: {
4
+ fontSize: string;
5
+ fontWeight: number;
6
+ lineHeight: number;
7
+ };
8
+ body2: {
9
+ fontSize: string;
10
+ fontWeight: number;
11
+ lineHeight: number;
12
+ };
13
+ subtitle1: {
14
+ fontSize: string;
15
+ fontWeight: number;
16
+ lineHeight: number;
17
+ };
18
+ subtitle2: {
19
+ fontSize: string;
20
+ fontWeight: number;
21
+ lineHeight: number;
22
+ };
23
+ overline: {
24
+ fontSize: string;
25
+ fontWeight: number;
26
+ letterSpacing: string;
27
+ lineHeight: number;
28
+ textTransform: "uppercase";
29
+ };
30
+ caption: {
31
+ fontSize: string;
32
+ fontWeight: number;
33
+ lineHeight: number;
34
+ };
35
+ h1: {
36
+ fontWeight: number;
37
+ fontSize: string;
38
+ lineHeight: number;
39
+ };
40
+ h2: {
41
+ fontWeight: number;
42
+ fontSize: string;
43
+ lineHeight: number;
44
+ };
45
+ h3: {
46
+ fontWeight: number;
47
+ fontSize: string;
48
+ lineHeight: number;
49
+ };
50
+ h4: {
51
+ fontWeight: number;
52
+ fontSize: string;
53
+ lineHeight: number;
54
+ };
55
+ h5: {
56
+ fontWeight: number;
57
+ fontSize: string;
58
+ lineHeight: number;
59
+ };
60
+ h6: {
61
+ fontWeight: number;
62
+ fontSize: string;
63
+ lineHeight: number;
64
+ };
65
+ };
66
+ export default _default;
67
+ //# sourceMappingURL=typography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../src/utils/theme/typography.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAgEE"}
@@ -0,0 +1,65 @@
1
+ export default {
2
+ fontFamily: 'Raleway, Arial',
3
+ body1: {
4
+ fontSize: '1rem',
5
+ fontWeight: 400,
6
+ lineHeight: 1.5,
7
+ },
8
+ body2: {
9
+ fontSize: '0.875rem',
10
+ fontWeight: 400,
11
+ lineHeight: 1.57,
12
+ },
13
+ subtitle1: {
14
+ fontSize: '1rem',
15
+ fontWeight: 500,
16
+ lineHeight: 1.75,
17
+ },
18
+ subtitle2: {
19
+ fontSize: '0.875rem',
20
+ fontWeight: 500,
21
+ lineHeight: 1.57,
22
+ },
23
+ overline: {
24
+ fontSize: '0.75rem',
25
+ fontWeight: 600,
26
+ letterSpacing: '0.5px',
27
+ lineHeight: 2.5,
28
+ textTransform: 'uppercase',
29
+ },
30
+ caption: {
31
+ fontSize: '0.875rem',
32
+ fontWeight: 400,
33
+ lineHeight: 1.66,
34
+ },
35
+ h1: {
36
+ fontWeight: 700,
37
+ fontSize: '3.5rem',
38
+ lineHeight: 1.375,
39
+ },
40
+ h2: {
41
+ fontWeight: 700,
42
+ fontSize: '3rem',
43
+ lineHeight: 1.375,
44
+ },
45
+ h3: {
46
+ fontWeight: 700,
47
+ fontSize: '2.25rem',
48
+ lineHeight: 1.375,
49
+ },
50
+ h4: {
51
+ fontWeight: 700,
52
+ fontSize: '2rem',
53
+ lineHeight: 1.375,
54
+ },
55
+ h5: {
56
+ fontWeight: 600,
57
+ fontSize: '1.5rem',
58
+ lineHeight: 1.375,
59
+ },
60
+ h6: {
61
+ fontWeight: 600,
62
+ fontSize: '1.125rem',
63
+ lineHeight: 1.375,
64
+ },
65
+ };