@webpros/mui-theme 0.1.6 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/dist/package.json +6 -4
  2. package/dist/src/components/data-display/Avatar/Avatar.theme.js +11 -8
  3. package/dist/src/components/data-display/Badge/Badge.theme.d.ts +4 -1
  4. package/dist/src/components/data-display/Badge/Badge.theme.js +216 -55
  5. package/dist/src/components/data-display/Chip/Chip.theme.d.ts +17 -3
  6. package/dist/src/components/data-display/Chip/Chip.theme.js +133 -477
  7. package/dist/src/components/data-display/Chip/get-chip-colors-map.d.ts +42 -0
  8. package/dist/src/components/data-display/Chip/get-chip-colors-map.js +253 -0
  9. package/dist/src/components/data-display/Divider/Divider.theme.d.ts +6 -1
  10. package/dist/src/components/data-display/Divider/Divider.theme.js +60 -3
  11. package/dist/src/components/data-display/List/List.theme.d.ts +1 -1
  12. package/dist/src/components/data-display/List/List.theme.js +1 -1
  13. package/dist/src/components/data-display/ListItem/ListItem.theme.d.ts +1 -1
  14. package/dist/src/components/data-display/ListItem/ListItem.theme.js +16 -8
  15. package/dist/src/components/data-display/ListItemAvatar/ListItemAvatar.theme.js +1 -2
  16. package/dist/src/components/data-display/ListItemButton/ListItemButton.theme.d.ts +0 -5
  17. package/dist/src/components/data-display/ListItemButton/ListItemButton.theme.js +14 -48
  18. package/dist/src/components/data-display/ListItemIcon/ListItemIcon.theme.js +4 -4
  19. package/dist/src/components/data-display/ListSubheader/ListSubheader.theme.d.ts +1 -1
  20. package/dist/src/components/data-display/ListSubheader/ListSubheader.theme.js +2 -5
  21. package/dist/src/components/data-display/Skeleton/Skeleton.d.ts +3 -0
  22. package/dist/src/components/data-display/Skeleton/Skeleton.js +4 -0
  23. package/dist/src/components/data-display/Skeleton/Skeleton.theme.d.ts +15 -0
  24. package/dist/src/components/data-display/Skeleton/Skeleton.theme.js +31 -0
  25. package/dist/src/components/data-display/Skeleton/index.d.ts +1 -0
  26. package/dist/src/components/data-display/Skeleton/index.js +2 -0
  27. package/dist/src/components/data-display/Tooltip/Tooltip.theme.js +7 -9
  28. package/dist/src/components/data-display/Typography/Typography.theme.d.ts +19 -26
  29. package/dist/src/components/data-display/Typography/Typography.theme.js +7 -163
  30. package/dist/src/components/feedback/Alert/Alert.theme.d.ts +12 -0
  31. package/dist/src/components/feedback/Alert/Alert.theme.js +60 -45
  32. package/dist/src/components/feedback/CircularProgress/CircularProgress.theme.d.ts +6 -1
  33. package/dist/src/components/feedback/CircularProgress/CircularProgress.theme.js +49 -8
  34. package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.d.ts +6 -1
  35. package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.js +83 -9
  36. package/dist/src/components/feedback/Snackbar/Snackbar.theme.d.ts +4 -4
  37. package/dist/src/components/feedback/Snackbar/Snackbar.theme.js +7 -3
  38. package/dist/src/components/index.d.ts +10 -1
  39. package/dist/src/components/index.js +10 -1
  40. package/dist/src/components/inputs/Autocomplete/Autocomplete.theme.d.ts +1 -1
  41. package/dist/src/components/inputs/Autocomplete/Autocomplete.theme.js +23 -51
  42. package/dist/src/components/inputs/Autocomplete/components/AutocompleteCaretDownIcon.d.ts +1 -0
  43. package/dist/src/components/inputs/Autocomplete/components/{AutocompletePopupIcon.js → AutocompleteCaretDownIcon.js} +1 -1
  44. package/dist/src/components/inputs/Autocomplete/components/AutocompleteXIcon.d.ts +1 -0
  45. package/dist/src/components/inputs/Autocomplete/components/AutocompleteXIcon.js +4 -0
  46. package/dist/src/components/inputs/Button/Button.theme.d.ts +4 -0
  47. package/dist/src/components/inputs/Button/Button.theme.js +93 -226
  48. package/dist/src/components/inputs/Button/get-button-colors-map.d.ts +24 -0
  49. package/dist/src/components/inputs/Button/get-button-colors-map.js +211 -0
  50. package/dist/src/components/inputs/Checkbox/Checkbox.theme.d.ts +7 -2
  51. package/dist/src/components/inputs/Checkbox/Checkbox.theme.js +57 -7
  52. package/dist/src/components/inputs/Fab/Fab.theme.d.ts +5 -9
  53. package/dist/src/components/inputs/Fab/Fab.theme.js +27 -98
  54. package/dist/src/components/inputs/FormHelperText/FormHelperText.d.ts +2 -0
  55. package/dist/src/components/inputs/FormHelperText/FormHelperText.js +3 -0
  56. package/dist/src/components/inputs/FormHelperText/FormHelperText.theme.d.ts +7 -0
  57. package/dist/src/components/inputs/FormHelperText/FormHelperText.theme.js +8 -0
  58. package/dist/src/components/inputs/FormHelperText/index.d.ts +1 -0
  59. package/dist/src/components/inputs/FormHelperText/index.js +2 -0
  60. package/dist/src/components/inputs/FormLabel/FormLabel.d.ts +2 -0
  61. package/dist/src/components/inputs/FormLabel/FormLabel.js +3 -0
  62. package/dist/src/components/inputs/FormLabel/FormLabel.theme.d.ts +7 -0
  63. package/dist/src/components/inputs/FormLabel/FormLabel.theme.js +8 -0
  64. package/dist/src/components/inputs/FormLabel/index.d.ts +1 -0
  65. package/dist/src/components/inputs/FormLabel/index.js +2 -0
  66. package/dist/src/components/inputs/IconButton/IconButton.theme.d.ts +3 -2
  67. package/dist/src/components/inputs/IconButton/IconButton.theme.js +90 -95
  68. package/dist/src/components/inputs/InputBase/InputBase.theme.d.ts +9 -26
  69. package/dist/src/components/inputs/InputBase/InputBase.theme.js +2 -64
  70. package/dist/src/components/inputs/InputLabel/InputLabel.theme.d.ts +7 -4
  71. package/dist/src/components/inputs/InputLabel/InputLabel.theme.js +26 -12
  72. package/dist/src/components/inputs/OutlinedInput/OutlinedInput.theme.d.ts +8 -0
  73. package/dist/src/components/inputs/OutlinedInput/OutlinedInput.theme.js +67 -0
  74. package/dist/src/components/inputs/OutlinedInput/index.d.ts +1 -0
  75. package/dist/src/components/inputs/OutlinedInput/index.js +2 -0
  76. package/dist/src/components/inputs/Radio/Radio.d.ts +4 -0
  77. package/dist/src/components/inputs/Radio/Radio.js +4 -0
  78. package/dist/src/components/inputs/Radio/Radio.theme.d.ts +11 -0
  79. package/dist/src/components/inputs/Radio/Radio.theme.js +35 -0
  80. package/dist/src/components/inputs/Radio/index.d.ts +1 -0
  81. package/dist/src/components/{navigation/TabList → inputs/Radio}/index.js +1 -1
  82. package/dist/src/components/inputs/Select/Select.theme.d.ts +2 -3
  83. package/dist/src/components/inputs/Select/Select.theme.js +6 -33
  84. package/dist/src/components/inputs/Switch/Switch.theme.js +125 -49
  85. package/dist/src/components/inputs/TextField/TextField.theme.d.ts +2 -3
  86. package/dist/src/components/inputs/TextField/TextField.theme.js +2 -26
  87. package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.d.ts +4 -0
  88. package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.js +5 -0
  89. package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.theme.d.ts +11 -0
  90. package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.theme.js +23 -0
  91. package/dist/src/components/navigation/Breadcrumbs/Crumb.d.ts +10 -0
  92. package/dist/src/components/navigation/Breadcrumbs/Crumb.js +10 -0
  93. package/dist/src/components/navigation/Breadcrumbs/index.d.ts +1 -0
  94. package/dist/src/components/navigation/Breadcrumbs/index.js +2 -0
  95. package/dist/src/components/navigation/Drawer/Drawer.theme.d.ts +1 -1
  96. package/dist/src/components/navigation/Drawer/Drawer.theme.js +50 -6
  97. package/dist/src/components/navigation/Link/Link.theme.d.ts +11 -2
  98. package/dist/src/components/navigation/Link/Link.theme.js +66 -9
  99. package/dist/src/components/navigation/Menu/Menu.theme.d.ts +2 -3
  100. package/dist/src/components/navigation/Menu/Menu.theme.js +6 -11
  101. package/dist/src/components/navigation/MenuItem/MenuItem.theme.d.ts +2 -4
  102. package/dist/src/components/navigation/MenuItem/MenuItem.theme.js +8 -8
  103. package/dist/src/components/navigation/Pagination/Pagination.theme.d.ts +1 -1
  104. package/dist/src/components/navigation/Pagination/Pagination.theme.js +11 -3
  105. package/dist/src/components/navigation/PaginationItem/PaginationItem.theme.js +65 -10
  106. package/dist/src/components/navigation/PaginationItem/components/PaginationIcons.d.ts +4 -0
  107. package/dist/src/components/navigation/PaginationItem/components/PaginationIcons.js +8 -0
  108. package/dist/src/components/navigation/PaginationItem/components/index.d.ts +1 -0
  109. package/dist/src/components/navigation/PaginationItem/components/index.js +2 -0
  110. package/dist/src/components/navigation/Tab/Tab.theme.d.ts +7 -1
  111. package/dist/src/components/navigation/Tab/Tab.theme.js +52 -13
  112. package/dist/src/components/navigation/Tabs/Tabs.d.ts +3 -0
  113. package/dist/src/components/navigation/Tabs/Tabs.js +4 -0
  114. package/dist/src/components/navigation/Tabs/Tabs.theme.d.ts +16 -0
  115. package/dist/src/components/navigation/Tabs/Tabs.theme.js +55 -0
  116. package/dist/src/components/navigation/Tabs/index.d.ts +1 -0
  117. package/dist/src/components/navigation/Tabs/index.js +2 -0
  118. package/dist/src/components/surfaces/Accordion/Accordion.theme.js +54 -22
  119. package/dist/src/components/surfaces/Accordion/AccordionDetails.theme.d.ts +10 -0
  120. package/dist/src/components/surfaces/Accordion/AccordionDetails.theme.js +19 -0
  121. package/dist/src/components/surfaces/Accordion/AccordionSummary.theme.d.ts +10 -0
  122. package/dist/src/components/surfaces/Accordion/AccordionSummary.theme.js +37 -0
  123. package/dist/src/components/surfaces/Accordion/index.d.ts +2 -0
  124. package/dist/src/components/surfaces/Accordion/index.js +2 -0
  125. package/dist/src/components/surfaces/Card/Card.theme.js +1 -1
  126. package/dist/src/components/surfaces/Paper/Paper.theme.d.ts +16 -1
  127. package/dist/src/components/surfaces/Paper/Paper.theme.js +21 -7
  128. package/dist/src/components/surfaces/Paper/Paper.tokens.d.ts +8 -0
  129. package/dist/src/components/surfaces/Paper/Paper.tokens.js +50 -0
  130. package/dist/src/components/surfaces/Paper/Paper.variants.d.ts +4 -0
  131. package/dist/src/components/surfaces/Paper/Paper.variants.js +3 -0
  132. package/dist/src/components/surfaces/Popover/Popover.d.ts +4 -0
  133. package/dist/src/components/surfaces/Popover/Popover.js +4 -0
  134. package/dist/src/components/surfaces/Popover/Popover.theme.d.ts +9 -0
  135. package/dist/src/components/surfaces/Popover/Popover.theme.js +14 -0
  136. package/dist/src/components/surfaces/Popover/index.d.ts +1 -0
  137. package/dist/src/components/surfaces/Popover/index.js +2 -0
  138. package/dist/src/components/utils/Backdrop/Backdrop.d.ts +3 -0
  139. package/dist/src/components/utils/Backdrop/Backdrop.js +4 -0
  140. package/dist/src/components/utils/Backdrop/Backdrop.theme.d.ts +11 -0
  141. package/dist/src/components/utils/Backdrop/Backdrop.theme.js +17 -0
  142. package/dist/src/components/utils/Backdrop/index.d.ts +1 -0
  143. package/dist/src/components/utils/Backdrop/index.js +2 -0
  144. package/dist/src/providers/ThemeModeProvider.d.ts +1 -2
  145. package/dist/src/providers/ThemeModeProvider.js +2 -2
  146. package/dist/src/providers/WebProsMuiThemeProvider.js +1 -1
  147. package/dist/src/providers/WebProsTheme.d.ts +1 -0
  148. package/dist/src/providers/WebProsTheme.js +11 -5
  149. package/dist/src/shared/rippleEnterKeyframe.d.ts +6 -0
  150. package/dist/src/shared/rippleEnterKeyframe.js +12 -0
  151. package/dist/src/shared/viewContext/index.d.ts +1 -0
  152. package/dist/src/shared/viewContext/index.js +2 -0
  153. package/dist/src/shared/viewContext/viewContext.d.ts +4 -0
  154. package/dist/src/shared/viewContext/viewContext.js +2 -0
  155. package/dist/src/style/additional-color-palette.d.ts +1 -3
  156. package/dist/src/style/additional-color-palette.js +3 -6
  157. package/dist/src/style/custom-color-palette.js +50 -52
  158. package/dist/src/tokens/ThemeColorTokens.d.ts +11 -93
  159. package/dist/src/tokens/ThemeColorTokens.js +4 -168
  160. package/dist/src/tokens/ThemeScheme.d.ts +0 -3
  161. package/dist/src/tokens/ThemeScheme.js +0 -2
  162. package/dist/src/tokens/colors/Dark.d.ts +16 -0
  163. package/dist/src/tokens/colors/Dark.js +1398 -0
  164. package/dist/src/tokens/colors/Light.d.ts +16 -0
  165. package/dist/src/tokens/colors/Light.js +1398 -0
  166. package/dist/src/tokens/colors/index.d.ts +7 -0
  167. package/dist/src/tokens/colors/index.js +4 -0
  168. package/dist/src/tokens/colors/inverseSchemas.d.ts +40 -0
  169. package/dist/src/tokens/colors/inverseSchemas.js +3 -0
  170. package/dist/src/tokens/colors/inverseSchemes.d.ts +53 -0
  171. package/dist/src/tokens/colors/inverseSchemes.js +3 -0
  172. package/dist/src/tokens/colors/inverseStateLayers.d.ts +174 -0
  173. package/dist/src/tokens/colors/inverseStateLayers.js +3 -0
  174. package/dist/src/tokens/colors/schemas.d.ts +111 -0
  175. package/dist/src/tokens/colors/schemas.js +3 -0
  176. package/dist/src/tokens/colors/schemes.d.ts +111 -0
  177. package/dist/src/tokens/colors/schemes.js +3 -0
  178. package/dist/src/tokens/colors/stateLayers.d.ts +456 -0
  179. package/dist/src/tokens/colors/stateLayers.js +3 -0
  180. package/dist/src/tokens/colors/types.d.ts +9 -0
  181. package/dist/src/tokens/colors/types.js +2 -0
  182. package/dist/src/tokens/index.d.ts +6 -2
  183. package/dist/src/tokens/index.js +2 -1
  184. package/dist/src/tokens/legacyColors/LegacyDark.d.ts +2 -0
  185. package/dist/src/tokens/legacyColors/LegacyDark.js +88 -0
  186. package/dist/src/tokens/legacyColors/LegacyLight.d.ts +2 -0
  187. package/dist/src/tokens/legacyColors/LegacyLight.js +86 -0
  188. package/dist/src/tokens/legacyColors/ThemeColorTokensLegacy.d.ts +74 -0
  189. package/dist/src/tokens/legacyColors/ThemeColorTokensLegacy.js +2 -0
  190. package/dist/src/tokens/legacyColors/additionalColors/additionalColors.d.ts +21 -0
  191. package/dist/src/tokens/legacyColors/additionalColors/additionalColors.js +2 -0
  192. package/dist/src/tokens/{additionalColors → legacyColors/additionalColors}/index.d.ts +1 -0
  193. package/dist/src/tokens/{additionalColors → legacyColors/additionalColors}/index.js +1 -0
  194. package/dist/src/tokens/legacyColors/index.d.ts +2 -0
  195. package/dist/src/tokens/legacyColors/index.js +3 -0
  196. package/dist/src/tokens/shadows/index.d.ts +12 -0
  197. package/dist/src/tokens/shadows/index.js +112 -0
  198. package/dist/src/tokens/typography/index.d.ts +2 -0
  199. package/dist/src/tokens/typography/index.js +4 -0
  200. package/dist/src/tokens/typography/typescale.d.ts +28 -0
  201. package/dist/src/tokens/typography/typescale.js +26 -0
  202. package/dist/src/tokens/typography/typography.d.ts +2 -0
  203. package/dist/src/tokens/typography/typography.js +156 -0
  204. package/dist/src/utils/flatten.d.ts +1 -0
  205. package/dist/src/utils/flatten.js +12 -0
  206. package/dist/src/utils/getMUIComponents.js +2 -2
  207. package/dist/src/utils/getMUIPalette.d.ts +4 -9
  208. package/dist/src/utils/getMUIPalette.js +49 -25
  209. package/dist/src/utils/getMUIThemeCustoimzationType.d.ts +31 -0
  210. package/dist/src/utils/getMUIThemeCustoimzationType.js +2 -0
  211. package/dist/src/utils/getMUITypography.d.ts +2 -0
  212. package/dist/src/utils/getMUITypography.js +5 -0
  213. package/dist/src/utils/getStateLayerColor.d.ts +37 -0
  214. package/dist/src/utils/getStateLayerColor.js +43 -1
  215. package/dist/src/utils/index.d.ts +1 -1
  216. package/dist/src/utils/index.js +1 -1
  217. package/dist/src/utils/patchMUIShadows.js +4 -3
  218. package/package.json +6 -4
  219. package/dist/src/components/inputs/Autocomplete/components/AutocompletePopupIcon.d.ts +0 -1
  220. package/dist/src/components/navigation/PaginationItem/PaginationItem.d.ts +0 -3
  221. package/dist/src/components/navigation/PaginationItem/PaginationItem.js +0 -4
  222. package/dist/src/components/navigation/TabList/TabList.d.ts +0 -3
  223. package/dist/src/components/navigation/TabList/TabList.js +0 -4
  224. package/dist/src/components/navigation/TabList/TabList.theme.d.ts +0 -10
  225. package/dist/src/components/navigation/TabList/TabList.theme.js +0 -17
  226. package/dist/src/components/navigation/TabList/index.d.ts +0 -1
  227. package/dist/src/hooks/useTonalPalette.d.ts +0 -3
  228. package/dist/src/hooks/useTonalPalette.js +0 -32
  229. package/dist/src/providers/ThemeSchemeProvider.d.ts +0 -12
  230. package/dist/src/providers/ThemeSchemeProvider.js +0 -29
  231. package/dist/src/tokens/TonalPalette.d.ts +0 -10
  232. package/dist/src/tokens/TonalPalette.js +0 -10
  233. package/dist/src/utils/generateTokens.d.ts +0 -4
  234. package/dist/src/utils/generateTokens.js +0 -107
  235. /package/dist/src/tokens/{Tone.d.ts → legacyColors/Tone.d.ts} +0 -0
  236. /package/dist/src/tokens/{Tone.js → legacyColors/Tone.js} +0 -0
@@ -0,0 +1,74 @@
1
+ import { AdditionalColors } from '../../tokens/legacyColors/additionalColors/additionalColors';
2
+ export type ThemeColorTokensLegacy = {
3
+ primary: string;
4
+ onPrimary: string;
5
+ primaryContainer: string;
6
+ onPrimaryContainer: string;
7
+ secondary: string;
8
+ onSecondary: string;
9
+ secondaryContainer: string;
10
+ onSecondaryContainer: string;
11
+ tertiary: string;
12
+ onTertiary: string;
13
+ tertiaryContainer: string;
14
+ onTertiaryContainer: string;
15
+ error: string;
16
+ onError: string;
17
+ errorContainer: string;
18
+ onErrorContainer: string;
19
+ errorFixedDim: string;
20
+ primaryFixed: string;
21
+ primaryFixedDim: string;
22
+ onPrimaryFixed: string;
23
+ onPrimaryFixedVariant: string;
24
+ secondaryFixed: string;
25
+ secondaryFixedDim: string;
26
+ onSecondaryFixed: string;
27
+ onSecondaryFixedVariant: string;
28
+ tertiaryFixed: string;
29
+ tertiaryFixedDim: string;
30
+ onTertiaryFixed: string;
31
+ onTertiaryFixedVariant: string;
32
+ surface: string;
33
+ onSurface: string;
34
+ surfaceDim: string;
35
+ surfaceBright: string;
36
+ surfaceContainerLowest: string;
37
+ surfaceContainerLow: string;
38
+ surfaceContainer: string;
39
+ surfaceContainerHigh: string;
40
+ surfaceContainerHighest: string;
41
+ surfaceVariant: string;
42
+ onSurfaceVariant: string;
43
+ outline: string;
44
+ outlineVariant: string;
45
+ inverseSurface: string;
46
+ inverseOnSurface: string;
47
+ inversePrimary: string;
48
+ shadow: string;
49
+ scrim: string;
50
+ surfaceTint: string;
51
+ background: string;
52
+ onBackground: string;
53
+ info: string;
54
+ onInfo: string;
55
+ infoContainer: string;
56
+ onInfoContainer: string;
57
+ infoFixedDim: string;
58
+ success: string;
59
+ onSuccess: string;
60
+ successContainer: string;
61
+ onSuccessContainer: string;
62
+ successFixedDim: string;
63
+ warning: string;
64
+ onWarning: string;
65
+ warningContainer: string;
66
+ onWarningContainer: string;
67
+ warningFixedDim: string;
68
+ undefined: string;
69
+ onUndefined: string;
70
+ undefinedContainer: string;
71
+ onUndefinedContainer: string;
72
+ supportive: string;
73
+ additionalColors: AdditionalColors;
74
+ };
@@ -0,0 +1,2 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ export {};
@@ -0,0 +1,21 @@
1
+ import { AdditionalColorTone } from '../../../tokens/legacyColors/Tone';
2
+ export type AdditionalColors = {
3
+ red: AdditionalColorTone;
4
+ pink: AdditionalColorTone;
5
+ purple: AdditionalColorTone;
6
+ deepPurple: AdditionalColorTone;
7
+ indigo: AdditionalColorTone;
8
+ blue: AdditionalColorTone;
9
+ lightBlue: AdditionalColorTone;
10
+ cyan: AdditionalColorTone;
11
+ teal: AdditionalColorTone;
12
+ green: AdditionalColorTone;
13
+ lightGreen: AdditionalColorTone;
14
+ lime: AdditionalColorTone;
15
+ yellow: AdditionalColorTone;
16
+ amber: AdditionalColorTone;
17
+ orange: AdditionalColorTone;
18
+ deepOrange: AdditionalColorTone;
19
+ brown: AdditionalColorTone;
20
+ };
21
+ export type AdditionalColorKey = keyof AdditionalColors;
@@ -0,0 +1,2 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ export {};
@@ -1 +1,2 @@
1
1
  export * as additionalColors from '@mui/material/colors';
2
+ export * from './additionalColors';
@@ -3,3 +3,4 @@
3
3
  // For now we just re-export it into the theme
4
4
  // In case of customization these colors we will create new CustomColorTone and export it here
5
5
  export * as additionalColors from '@mui/material/colors';
6
+ export * from './additionalColors';
@@ -0,0 +1,2 @@
1
+ export * from './LegacyLight';
2
+ export * from './LegacyDark';
@@ -0,0 +1,3 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ export * from './LegacyLight';
3
+ export * from './LegacyDark';
@@ -0,0 +1,12 @@
1
+ export type M3ShadowLayer = {
2
+ offsetX: string;
3
+ offsetY: string;
4
+ blur: string;
5
+ spread: string;
6
+ color: string;
7
+ };
8
+ export type M3ShadowTokenName = 'Shadows-1' | 'Shadows-2' | 'Shadows-3' | 'Shadows-4';
9
+ export type M3ShadowTokens = Record<M3ShadowTokenName, M3ShadowLayer[]>;
10
+ export declare const shadowTokens: M3ShadowTokens;
11
+ export declare const shadowCssValues: Record<M3ShadowTokenName, string>;
12
+ export declare const muiShadows: string[];
@@ -0,0 +1,112 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ // Auto-generated file - do not edit manually
3
+ export const shadowTokens = {
4
+ 'Shadows-1': [
5
+ {
6
+ offsetX: '0px',
7
+ offsetY: '4px',
8
+ blur: '3px',
9
+ spread: '0px',
10
+ color: 'rgba(0, 0, 0, 0.03)',
11
+ },
12
+ {
13
+ offsetX: '0px',
14
+ offsetY: '2px',
15
+ blur: '2px',
16
+ spread: '0px',
17
+ color: 'rgba(0, 0, 0, 0.04)',
18
+ },
19
+ {
20
+ offsetX: '0px',
21
+ offsetY: '0px',
22
+ blur: '1px',
23
+ spread: '0px',
24
+ color: 'rgba(0, 0, 0, 0.05)',
25
+ },
26
+ ],
27
+ 'Shadows-2': [
28
+ {
29
+ offsetX: '0px',
30
+ offsetY: '5px',
31
+ blur: '3px',
32
+ spread: '0px',
33
+ color: 'rgba(0, 0, 0, 0.05)',
34
+ },
35
+ {
36
+ offsetX: '0px',
37
+ offsetY: '2px',
38
+ blur: '2px',
39
+ spread: '0px',
40
+ color: 'rgba(0, 0, 0, 0.08)',
41
+ },
42
+ { offsetX: '0px', offsetY: '1px', blur: '1px', spread: '0px', color: 'rgba(0, 0, 0, 0.1)' },
43
+ ],
44
+ 'Shadows-3': [
45
+ {
46
+ offsetX: '0px',
47
+ offsetY: '10px',
48
+ blur: '6px',
49
+ spread: '0px',
50
+ color: 'rgba(0, 0, 0, 0.05)',
51
+ },
52
+ {
53
+ offsetX: '0px',
54
+ offsetY: '4px',
55
+ blur: '4px',
56
+ spread: '0px',
57
+ color: 'rgba(0, 0, 0, 0.08)',
58
+ },
59
+ { offsetX: '0px', offsetY: '1px', blur: '2px', spread: '0px', color: 'rgba(0, 0, 0, 0.1)' },
60
+ ],
61
+ 'Shadows-4': [
62
+ {
63
+ offsetX: '0px',
64
+ offsetY: '17px',
65
+ blur: '14px',
66
+ spread: '0px',
67
+ color: 'rgba(0, 0, 0, 0.05)',
68
+ },
69
+ {
70
+ offsetX: '0px',
71
+ offsetY: '11px',
72
+ blur: '11px',
73
+ spread: '0px',
74
+ color: 'rgba(0, 0, 0, 0.08)',
75
+ },
76
+ { offsetX: '0px', offsetY: '0px', blur: '6px', spread: '0px', color: 'rgba(0, 0, 0, 0.1)' },
77
+ ],
78
+ };
79
+ export const shadowCssValues = {
80
+ 'Shadows-1': '0px 4px 3px 0px rgba(0, 0, 0, 0.03), 0px 2px 2px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.05)',
81
+ 'Shadows-2': '0px 5px 3px 0px rgba(0, 0, 0, 0.05), 0px 2px 2px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.1)',
82
+ 'Shadows-3': '0px 10px 6px 0px rgba(0, 0, 0, 0.05), 0px 4px 4px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(0, 0, 0, 0.1)',
83
+ 'Shadows-4': '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
84
+ };
85
+ // Preserve the array structure so we can extend shadow slots without refactoring downstream overrides.
86
+ export const muiShadows = [
87
+ '0px 4px 3px 0px rgba(0, 0, 0, 0.03), 0px 2px 2px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.05)',
88
+ '0px 4px 3px 0px rgba(0, 0, 0, 0.03), 0px 2px 2px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.05)',
89
+ '0px 5px 3px 0px rgba(0, 0, 0, 0.05), 0px 2px 2px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.1)',
90
+ '0px 10px 6px 0px rgba(0, 0, 0, 0.05), 0px 4px 4px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(0, 0, 0, 0.1)',
91
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
92
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
93
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
94
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
95
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
96
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
97
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
98
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
99
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
100
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
101
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
102
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
103
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
104
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
105
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
106
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
107
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
108
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
109
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
110
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
111
+ '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
112
+ ];
@@ -0,0 +1,2 @@
1
+ export * from './typescale';
2
+ export * from './typography';
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ // Auto-generated file - do not edit manually
3
+ export * from './typescale';
4
+ export * from './typography';
@@ -0,0 +1,28 @@
1
+ export interface TypescaleTypographyVariants {
2
+ BodyLarge: React.CSSProperties;
3
+ BodyLargeProminent: React.CSSProperties;
4
+ BodyMedium: React.CSSProperties;
5
+ BodyMediumProminent: React.CSSProperties;
6
+ BodySmall: React.CSSProperties;
7
+ BodySmallProminent: React.CSSProperties;
8
+ DisplayLarge: React.CSSProperties;
9
+ DisplayMedium: React.CSSProperties;
10
+ DisplaySmall: React.CSSProperties;
11
+ DisplayXLarge: React.CSSProperties;
12
+ HeadlineLarge: React.CSSProperties;
13
+ HeadlineMedium: React.CSSProperties;
14
+ HeadlineSmall: React.CSSProperties;
15
+ LabelLarge: React.CSSProperties;
16
+ LabelLargeProminent: React.CSSProperties;
17
+ LabelMedium: React.CSSProperties;
18
+ LabelMediumProminent: React.CSSProperties;
19
+ LabelSmall: React.CSSProperties;
20
+ LabelSmallProminent: React.CSSProperties;
21
+ TitleLarge: React.CSSProperties;
22
+ TitleMedium: React.CSSProperties;
23
+ TitleSmall: React.CSSProperties;
24
+ }
25
+ export type TypescaleTypographyVariantsBooleans = {
26
+ [K in keyof TypescaleTypographyVariants]: boolean;
27
+ };
28
+ export declare const TypographyVariantsNames: (keyof TypescaleTypographyVariants)[];
@@ -0,0 +1,26 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ // Auto-generated file - do not edit manually
3
+ export const TypographyVariantsNames = [
4
+ 'BodyLarge',
5
+ 'BodyLargeProminent',
6
+ 'BodyMedium',
7
+ 'BodyMediumProminent',
8
+ 'BodySmall',
9
+ 'BodySmallProminent',
10
+ 'DisplayLarge',
11
+ 'DisplayMedium',
12
+ 'DisplaySmall',
13
+ 'DisplayXLarge',
14
+ 'HeadlineLarge',
15
+ 'HeadlineMedium',
16
+ 'HeadlineSmall',
17
+ 'LabelLarge',
18
+ 'LabelLargeProminent',
19
+ 'LabelMedium',
20
+ 'LabelMediumProminent',
21
+ 'LabelSmall',
22
+ 'LabelSmallProminent',
23
+ 'TitleLarge',
24
+ 'TitleMedium',
25
+ 'TitleSmall',
26
+ ];
@@ -0,0 +1,2 @@
1
+ import { TypescaleTypographyVariants } from '../../tokens/typography/typescale';
2
+ export declare const typographyVariants: TypescaleTypographyVariants;
@@ -0,0 +1,156 @@
1
+ export const typographyVariants = {
2
+ BodyLarge: {
3
+ fontFamily: 'Roboto',
4
+ fontSize: '16px',
5
+ lineHeight: '24px',
6
+ letterSpacing: '0.5px',
7
+ fontWeight: 400,
8
+ },
9
+ BodyLargeProminent: {
10
+ fontFamily: 'Roboto',
11
+ fontSize: '16px',
12
+ lineHeight: '24px',
13
+ letterSpacing: '0.5px',
14
+ fontWeight: 600,
15
+ },
16
+ BodyMedium: {
17
+ fontFamily: 'Roboto',
18
+ fontWeight: 400,
19
+ fontSize: '14px',
20
+ lineHeight: '20px',
21
+ letterSpacing: '0.25px',
22
+ },
23
+ BodyMediumProminent: {
24
+ fontFamily: 'Roboto',
25
+ fontWeight: 600,
26
+ fontSize: '14px',
27
+ lineHeight: '20px',
28
+ letterSpacing: '0.25px',
29
+ },
30
+ BodySmall: {
31
+ fontFamily: 'Roboto',
32
+ fontSize: '12px',
33
+ lineHeight: '16px',
34
+ letterSpacing: '0.4px',
35
+ fontWeight: 400,
36
+ },
37
+ BodySmallProminent: {
38
+ fontFamily: 'Roboto',
39
+ fontSize: '12px',
40
+ lineHeight: '16px',
41
+ letterSpacing: '0.4px',
42
+ fontWeight: 600,
43
+ },
44
+ DisplayLarge: {
45
+ fontFamily: 'Roboto',
46
+ fontSize: '45px',
47
+ lineHeight: '52px',
48
+ letterSpacing: '-0.25px',
49
+ fontWeight: 400,
50
+ },
51
+ DisplayMedium: {
52
+ fontFamily: 'Roboto',
53
+ fontSize: '32px',
54
+ lineHeight: '44px',
55
+ letterSpacing: '0px',
56
+ fontWeight: 400,
57
+ },
58
+ DisplaySmall: {
59
+ fontFamily: 'Roboto',
60
+ fontSize: '24px',
61
+ lineHeight: '32px',
62
+ letterSpacing: '0px',
63
+ fontWeight: 400,
64
+ },
65
+ DisplayXLarge: {
66
+ fontFamily: 'Roboto',
67
+ fontSize: '52px',
68
+ lineHeight: '86px',
69
+ letterSpacing: '-0.25px',
70
+ fontWeight: 400,
71
+ },
72
+ HeadlineLarge: {
73
+ fontFamily: 'Roboto',
74
+ fontSize: '20px',
75
+ lineHeight: '28px',
76
+ letterSpacing: '0px',
77
+ fontWeight: 400,
78
+ },
79
+ HeadlineMedium: {
80
+ fontFamily: 'Roboto',
81
+ fontSize: '18px',
82
+ lineHeight: '28px',
83
+ letterSpacing: '0px',
84
+ fontWeight: 400,
85
+ },
86
+ HeadlineSmall: {
87
+ fontFamily: 'Roboto',
88
+ fontSize: '16px',
89
+ lineHeight: '28px',
90
+ letterSpacing: '0px',
91
+ fontWeight: 700,
92
+ },
93
+ LabelLarge: {
94
+ fontFamily: 'Roboto',
95
+ fontSize: '17px',
96
+ lineHeight: '24px',
97
+ letterSpacing: '0.1px',
98
+ fontWeight: 400,
99
+ },
100
+ LabelLargeProminent: {
101
+ fontFamily: 'Roboto',
102
+ fontSize: '17px',
103
+ lineHeight: '24px',
104
+ letterSpacing: '0.1px',
105
+ fontWeight: 500,
106
+ },
107
+ LabelMedium: {
108
+ fontFamily: 'Roboto',
109
+ fontSize: '14px',
110
+ lineHeight: '20px',
111
+ letterSpacing: '0.5px',
112
+ fontWeight: 400,
113
+ },
114
+ LabelMediumProminent: {
115
+ fontFamily: 'Roboto',
116
+ fontSize: '14px',
117
+ lineHeight: '20px',
118
+ letterSpacing: '0.5px',
119
+ fontWeight: 500,
120
+ },
121
+ LabelSmall: {
122
+ fontFamily: 'Roboto',
123
+ fontSize: '13px',
124
+ lineHeight: '16px',
125
+ letterSpacing: '0.5px',
126
+ fontWeight: 400,
127
+ },
128
+ LabelSmallProminent: {
129
+ fontFamily: 'Roboto',
130
+ fontSize: '13px',
131
+ lineHeight: '16px',
132
+ letterSpacing: '0.5px',
133
+ fontWeight: 500,
134
+ },
135
+ TitleLarge: {
136
+ fontFamily: 'Roboto',
137
+ fontSize: '20px',
138
+ lineHeight: '24px',
139
+ letterSpacing: '0px',
140
+ fontWeight: 400,
141
+ },
142
+ TitleMedium: {
143
+ fontFamily: 'Roboto',
144
+ fontSize: '15px',
145
+ lineHeight: '20px',
146
+ letterSpacing: '0.15px',
147
+ fontWeight: 400,
148
+ },
149
+ TitleSmall: {
150
+ fontFamily: 'Roboto',
151
+ fontSize: '14px',
152
+ lineHeight: '20px',
153
+ letterSpacing: '0.1px',
154
+ fontWeight: 500,
155
+ },
156
+ };
@@ -0,0 +1 @@
1
+ export declare const flatten: <T>(array: (T | T[])[]) => T[];
@@ -0,0 +1,12 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ export const flatten = (array) => {
3
+ return array.reduce((acc, el) => {
4
+ if (Array.isArray(el)) {
5
+ acc.push(...el);
6
+ }
7
+ else {
8
+ acc.push(el);
9
+ }
10
+ return acc;
11
+ }, []);
12
+ };
@@ -1,4 +1,4 @@
1
- import { getAccordion, getAlert, getAppBar, getBadge, getButton, getCard, getCheckbox, getChip, getCssBaseline, getDivider, getDrawer, getFab, getIconButton, getLink, getListItem, getListItemButton, getListItemIcon, getListItemAvatar, getListSubheader, getMenu, getMenuItem, getPaginationItem, getPaper, getSwitch, getTab, getTabList, getTextField, getToggleButton, getToggleButtonGroup, getTooltip, getTypography, getAvatar, getSelect, getInputLabel, getTimePicker, getSnackbar, getCircularProgress, getLinearProgress, getDialog, getDataGrid, getTable, getAutocomplete, getInputBase, } from '../components';
1
+ import { getAccordion, getAccordionSummary, getAccordionDetails, getAlert, getAppBar, getBackdrop, getBadge, getBreadcrumbs, getButton, getCard, getCheckbox, getChip, getCssBaseline, getDivider, getDrawer, getFab, getIconButton, getLink, getList, getListItem, getListItemButton, getListItemIcon, getListItemAvatar, getListSubheader, getMenu, getMenuItem, getPaginationItem, getPaper, getPopover, getSwitch, getTab, getTabs, getTextField, getToggleButton, getToggleButtonGroup, getTooltip, getTypography, getAvatar, getSelect, getInputLabel, getTimePicker, getSnackbar, getCircularProgress, getLinearProgress, getDialog, getDataGrid, getTable, getAutocomplete, getInputBase, getSkeleton, getFormLabel, getOutlinedInput, getFormHelperText, getRadio, } from '../components';
2
2
  export const getMUIComponents = (theme, _mode) => ({
3
- components: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, getCssBaseline(theme)), getAccordion(theme)), getAlert(theme)), getAppBar(theme)), getAvatar(theme)), getBadge(theme)), getSelect(theme)), getTimePicker(theme)), getInputLabel(theme)), getButton(theme)), getCard(theme)), getCheckbox(theme)), getChip(theme)), getDivider(theme)), getDrawer(theme)), getFab(theme)), getIconButton(theme)), getLink(theme)), getListItem(theme)), getListItemButton(theme)), getListItemIcon(theme)), getListItemAvatar(theme)), getListSubheader(theme)), getMenu(theme)), getMenuItem(theme)), getPaginationItem(theme)), getPaper(theme)), getSwitch(theme)), getTab(theme)), getTabList(theme)), getTextField(theme)), getToggleButton(theme)), getToggleButtonGroup(theme)), getTooltip(theme)), getTypography(theme)), getSnackbar(theme)), getCircularProgress(theme)), getLinearProgress(theme)), getDialog(theme)), getDataGrid(theme)), getTable(theme)), getAutocomplete(theme)), getInputBase(theme)),
3
+ components: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, getCssBaseline(theme)), getBackdrop(theme)), getAccordion(theme)), getAccordionSummary(theme)), getAccordionDetails(theme)), getAlert(theme)), getAppBar(theme)), getAvatar(theme)), getBadge(theme)), getBreadcrumbs(theme)), getSelect()), getTimePicker(theme)), getInputLabel()), getButton(theme)), getCard(theme)), getCheckbox(theme)), getChip(theme)), getDivider(theme)), getDrawer(theme)), getFab(theme)), getIconButton(theme)), getLink(theme)), getList(theme)), getListItem(theme)), getListItemButton(theme)), getListItemIcon(theme)), getListItemAvatar(theme)), getListSubheader(theme)), getMenu(theme)), getMenuItem(theme)), getPaginationItem(theme)), getPaper(theme)), getPopover(theme)), getSwitch(theme)), getTab(theme)), getTabs(theme)), getTextField(theme)), getToggleButton(theme)), getToggleButtonGroup(theme)), getTooltip(theme)), getTypography(theme)), getSnackbar(theme)), getCircularProgress(theme)), getLinearProgress(theme)), getDialog(theme)), getDataGrid(theme)), getTable(theme)), getAutocomplete()), getInputBase()), getSkeleton(theme)), getFormLabel()), getOutlinedInput()), getFormHelperText()), getRadio(theme)),
4
4
  });
@@ -1,13 +1,8 @@
1
1
  import { ThemeOptions } from '@mui/material';
2
- import { TonalPalette } from '../tokens/TonalPalette';
3
2
  import { ThemeMode } from '../tokens/ThemeMode';
4
3
  import { ThemeScheme } from '../tokens/ThemeScheme';
5
- import { AdditionalColorTone } from '../tokens/Tone';
6
- declare module '@mui/material/styles/createTheme' {
7
- interface ThemeOptions {
8
- tones?: TonalPalette;
9
- }
10
- }
4
+ import { Schemes, StateLayers } from '../tokens/colors';
5
+ import { AdditionalColorTone } from '../tokens/legacyColors/Tone';
11
6
  declare module '@mui/material/styles/createPalette' {
12
7
  interface M3Palette {
13
8
  onPrimary: PaletteColor;
@@ -88,7 +83,7 @@ declare module '@mui/material/styles/createPalette' {
88
83
  deepOrange: AdditionalColorTone;
89
84
  brown: AdditionalColorTone;
90
85
  }
91
- interface M3PaletteOptions extends Record<keyof M3Palette, PaletteColorOptions> {
86
+ interface M3PaletteOptions extends Record<keyof M3Palette, PaletteColorOptions | StateLayers | Schemes> {
92
87
  themeMode: string;
93
88
  additional: M3AdditionalColors;
94
89
  }
@@ -98,4 +93,4 @@ declare module '@mui/material/styles/createPalette' {
98
93
  interface PaletteOptions extends M3PaletteOptions {
99
94
  }
100
95
  }
101
- export declare const getMUIPalette: (themeMode: ThemeMode, themescheme: ThemeScheme) => ThemeOptions;
96
+ export declare const getMUIPalette: (themeMode: ThemeMode, themeScheme: ThemeScheme) => ThemeOptions;
@@ -1,12 +1,35 @@
1
- export const getMUIPalette = (themeMode, themescheme) => {
2
- const scheme = themescheme[themeMode];
1
+ import { getBlendSchemaWithStateLayer, getInverseBlendSchemaWithStateLayer, } from '../index';
2
+ export const getMUIPalette = (themeMode, themeScheme) => {
3
+ const scheme = themeScheme[themeMode];
3
4
  return {
4
5
  palette: {
6
+ /** Basic MUI overrides */
5
7
  themeMode,
6
8
  primary: {
7
9
  main: scheme.primary,
8
10
  contrastText: scheme.onPrimary,
9
11
  },
12
+ error: {
13
+ main: scheme.schemes.status.error,
14
+ contrastText: scheme.schemes.status.onError,
15
+ },
16
+ text: {
17
+ primary: scheme.schemes.surfaces.onSurface,
18
+ secondary: scheme.schemes.surfaces.onSurfaceVariant,
19
+ disabled: scheme.stateLayers.surfaces.onSurface.opacity38,
20
+ },
21
+ info: {
22
+ main: scheme.schemes.status.info,
23
+ contrastText: scheme.schemes.status.onInfo,
24
+ },
25
+ success: {
26
+ main: scheme.schemes.status.success,
27
+ contrastText: scheme.schemes.status.onSuccess,
28
+ },
29
+ warning: {
30
+ main: scheme.schemes.status.warning,
31
+ contrastText: scheme.schemes.status.onWarning,
32
+ },
10
33
  onPrimary: {
11
34
  main: scheme.onPrimary,
12
35
  contrastText: scheme.primary,
@@ -51,10 +74,6 @@ export const getMUIPalette = (themeMode, themescheme) => {
51
74
  main: scheme.onTertiaryContainer,
52
75
  contrastText: scheme.tertiaryContainer,
53
76
  },
54
- error: {
55
- main: scheme.error,
56
- contrastText: scheme.onError,
57
- },
58
77
  onError: {
59
78
  main: scheme.onError,
60
79
  contrastText: scheme.error,
@@ -162,9 +181,23 @@ export const getMUIPalette = (themeMode, themescheme) => {
162
181
  main: scheme.inverseOnSurface,
163
182
  contrastText: scheme.inverseSurface,
164
183
  },
165
- action: {},
184
+ action: {
185
+ // active
186
+ hover: scheme.stateLayers.surfaces.onSurface.opacity08,
187
+ hoverOpacity: scheme.generatedStateLayers['stateLayers.surfaces.onSurface.opacity08'].a,
188
+ selected: scheme.schemes.base.secondaryContainer, // TODO verify
189
+ // TODO verify
190
+ selectedOpacity: scheme.generatedStateLayers['stateLayers.surfaces.onSurface.opacity12'].a,
191
+ disabled: scheme.stateLayers.surfaces.onSurface.opacity38,
192
+ // disabledBackground:
193
+ disabledOpacity: scheme.generatedStateLayers['stateLayers.surfaces.onSurface.opacity38'].a,
194
+ // TODO verify
195
+ // focus
196
+ // focusOpacity
197
+ // activatedOpacity
198
+ },
166
199
  shadow: {
167
- main: scheme.shadow,
200
+ main: scheme.shadow, // TODO: verify if it is needed
168
201
  },
169
202
  scrim: {
170
203
  main: scheme.scrim,
@@ -184,14 +217,6 @@ export const getMUIPalette = (themeMode, themescheme) => {
184
217
  white: scheme.background,
185
218
  black: scheme.onBackground,
186
219
  },
187
- text: {
188
- primary: scheme.onSurface,
189
- secondary: scheme.onSecondaryContainer,
190
- },
191
- info: {
192
- main: scheme.info,
193
- contrastText: scheme.onInfo,
194
- },
195
220
  onInfo: {
196
221
  main: scheme.onInfo,
197
222
  contrastText: scheme.info,
@@ -204,10 +229,6 @@ export const getMUIPalette = (themeMode, themescheme) => {
204
229
  main: scheme.onInfoContainer,
205
230
  contrastText: scheme.infoContainer,
206
231
  },
207
- success: {
208
- main: scheme.success,
209
- contrastText: scheme.onSuccess,
210
- },
211
232
  onSuccess: {
212
233
  main: scheme.onSuccess,
213
234
  contrastText: scheme.success,
@@ -220,10 +241,6 @@ export const getMUIPalette = (themeMode, themescheme) => {
220
241
  main: scheme.onSuccessContainer,
221
242
  contrastText: scheme.successContainer,
222
243
  },
223
- warning: {
224
- main: scheme.warning,
225
- contrastText: scheme.onWarning,
226
- },
227
244
  onWarning: {
228
245
  main: scheme.onWarning,
229
246
  contrastText: scheme.warning,
@@ -258,6 +275,13 @@ export const getMUIPalette = (themeMode, themescheme) => {
258
275
  divider: scheme.outlineVariant,
259
276
  additional: scheme.additionalColors,
260
277
  },
261
- tones: themescheme.tones,
278
+ colors: {
279
+ schemes: scheme.schemes,
280
+ stateLayers: scheme.stateLayers,
281
+ inverseSchemes: scheme.inverseSchemes,
282
+ inverseStateLayers: scheme.inverseStateLayers,
283
+ blendSchemaWithStateLayer: getBlendSchemaWithStateLayer(scheme.generatedSchemes, scheme.generatedStateLayers),
284
+ blendInverseSchemaWithStateLayer: getInverseBlendSchemaWithStateLayer(scheme.generatedInverseSchemes, scheme.generatedInverseStateLayers),
285
+ },
262
286
  };
263
287
  };