@webpros/mui-theme 0.1.5 → 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 (233) 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/WebProsTheme.d.ts +1 -0
  145. package/dist/src/providers/WebProsTheme.js +11 -5
  146. package/dist/src/shared/rippleEnterKeyframe.d.ts +6 -0
  147. package/dist/src/shared/rippleEnterKeyframe.js +12 -0
  148. package/dist/src/shared/viewContext/index.d.ts +1 -0
  149. package/dist/src/shared/viewContext/index.js +2 -0
  150. package/dist/src/shared/viewContext/viewContext.d.ts +4 -0
  151. package/dist/src/shared/viewContext/viewContext.js +2 -0
  152. package/dist/src/style/additional-color-palette.d.ts +1 -3
  153. package/dist/src/style/additional-color-palette.js +3 -6
  154. package/dist/src/style/custom-color-palette.js +50 -52
  155. package/dist/src/tokens/ThemeColorTokens.d.ts +11 -93
  156. package/dist/src/tokens/ThemeColorTokens.js +4 -168
  157. package/dist/src/tokens/ThemeScheme.d.ts +0 -3
  158. package/dist/src/tokens/ThemeScheme.js +0 -2
  159. package/dist/src/tokens/colors/Dark.d.ts +16 -0
  160. package/dist/src/tokens/colors/Dark.js +1398 -0
  161. package/dist/src/tokens/colors/Light.d.ts +16 -0
  162. package/dist/src/tokens/colors/Light.js +1398 -0
  163. package/dist/src/tokens/colors/index.d.ts +7 -0
  164. package/dist/src/tokens/colors/index.js +4 -0
  165. package/dist/src/tokens/colors/inverseSchemas.d.ts +40 -0
  166. package/dist/src/tokens/colors/inverseSchemas.js +3 -0
  167. package/dist/src/tokens/colors/inverseSchemes.d.ts +53 -0
  168. package/dist/src/tokens/colors/inverseSchemes.js +3 -0
  169. package/dist/src/tokens/colors/inverseStateLayers.d.ts +174 -0
  170. package/dist/src/tokens/colors/inverseStateLayers.js +3 -0
  171. package/dist/src/tokens/colors/schemas.d.ts +111 -0
  172. package/dist/src/tokens/colors/schemas.js +3 -0
  173. package/dist/src/tokens/colors/schemes.d.ts +111 -0
  174. package/dist/src/tokens/colors/schemes.js +3 -0
  175. package/dist/src/tokens/colors/stateLayers.d.ts +456 -0
  176. package/dist/src/tokens/colors/stateLayers.js +3 -0
  177. package/dist/src/tokens/colors/types.d.ts +9 -0
  178. package/dist/src/tokens/colors/types.js +2 -0
  179. package/dist/src/tokens/index.d.ts +6 -2
  180. package/dist/src/tokens/index.js +2 -1
  181. package/dist/src/tokens/legacyColors/LegacyDark.d.ts +2 -0
  182. package/dist/src/tokens/legacyColors/LegacyDark.js +88 -0
  183. package/dist/src/tokens/legacyColors/LegacyLight.d.ts +2 -0
  184. package/dist/src/tokens/legacyColors/LegacyLight.js +86 -0
  185. package/dist/src/tokens/legacyColors/ThemeColorTokensLegacy.d.ts +74 -0
  186. package/dist/src/tokens/legacyColors/ThemeColorTokensLegacy.js +2 -0
  187. package/dist/src/tokens/legacyColors/additionalColors/additionalColors.d.ts +21 -0
  188. package/dist/src/tokens/legacyColors/additionalColors/additionalColors.js +2 -0
  189. package/dist/src/tokens/{additionalColors → legacyColors/additionalColors}/index.d.ts +1 -0
  190. package/dist/src/tokens/{additionalColors → legacyColors/additionalColors}/index.js +1 -0
  191. package/dist/src/tokens/legacyColors/index.d.ts +2 -0
  192. package/dist/src/tokens/legacyColors/index.js +3 -0
  193. package/dist/src/tokens/shadows/index.d.ts +12 -0
  194. package/dist/src/tokens/shadows/index.js +112 -0
  195. package/dist/src/tokens/typography/index.d.ts +2 -0
  196. package/dist/src/tokens/typography/index.js +4 -0
  197. package/dist/src/tokens/typography/typescale.d.ts +28 -0
  198. package/dist/src/tokens/typography/typescale.js +26 -0
  199. package/dist/src/tokens/typography/typography.d.ts +2 -0
  200. package/dist/src/tokens/typography/typography.js +156 -0
  201. package/dist/src/utils/flatten.d.ts +1 -0
  202. package/dist/src/utils/flatten.js +12 -0
  203. package/dist/src/utils/getMUIComponents.js +2 -2
  204. package/dist/src/utils/getMUIPalette.d.ts +4 -9
  205. package/dist/src/utils/getMUIPalette.js +49 -25
  206. package/dist/src/utils/getMUIThemeCustoimzationType.d.ts +31 -0
  207. package/dist/src/utils/getMUIThemeCustoimzationType.js +2 -0
  208. package/dist/src/utils/getMUITypography.d.ts +2 -0
  209. package/dist/src/utils/getMUITypography.js +5 -0
  210. package/dist/src/utils/getStateLayerColor.d.ts +37 -0
  211. package/dist/src/utils/getStateLayerColor.js +43 -1
  212. package/dist/src/utils/index.d.ts +1 -1
  213. package/dist/src/utils/index.js +1 -1
  214. package/dist/src/utils/patchMUIShadows.js +4 -3
  215. package/package.json +6 -4
  216. package/dist/src/components/inputs/Autocomplete/components/AutocompletePopupIcon.d.ts +0 -1
  217. package/dist/src/components/navigation/PaginationItem/PaginationItem.d.ts +0 -3
  218. package/dist/src/components/navigation/PaginationItem/PaginationItem.js +0 -4
  219. package/dist/src/components/navigation/TabList/TabList.d.ts +0 -3
  220. package/dist/src/components/navigation/TabList/TabList.js +0 -4
  221. package/dist/src/components/navigation/TabList/TabList.theme.d.ts +0 -10
  222. package/dist/src/components/navigation/TabList/TabList.theme.js +0 -17
  223. package/dist/src/components/navigation/TabList/index.d.ts +0 -1
  224. package/dist/src/hooks/useTonalPalette.d.ts +0 -3
  225. package/dist/src/hooks/useTonalPalette.js +0 -32
  226. package/dist/src/providers/ThemeSchemeProvider.d.ts +0 -12
  227. package/dist/src/providers/ThemeSchemeProvider.js +0 -29
  228. package/dist/src/tokens/TonalPalette.d.ts +0 -10
  229. package/dist/src/tokens/TonalPalette.js +0 -10
  230. package/dist/src/utils/generateTokens.d.ts +0 -4
  231. package/dist/src/utils/generateTokens.js +0 -107
  232. /package/dist/src/tokens/{Tone.d.ts → legacyColors/Tone.d.ts} +0 -0
  233. /package/dist/src/tokens/{Tone.js → legacyColors/Tone.js} +0 -0
@@ -0,0 +1,42 @@
1
+ import { Theme } from '@mui/material';
2
+ import { ViewContext } from '../../../shared/viewContext';
3
+ type ChipColorsMap = {
4
+ baseColor: {
5
+ background: string;
6
+ icon: string;
7
+ label: string;
8
+ deleteIcon: {
9
+ base: string;
10
+ hover: string;
11
+ };
12
+ };
13
+ disabled: {
14
+ background: string;
15
+ color: string;
16
+ iconColor: string;
17
+ };
18
+ selectedColor: {
19
+ background: string;
20
+ icon: string;
21
+ label: string;
22
+ deleteIcon: {
23
+ base: string;
24
+ hover: string;
25
+ };
26
+ };
27
+ hover: string;
28
+ focus: string;
29
+ active: string;
30
+ ripple: string;
31
+ };
32
+ export declare const getChipColorsMap: (theme: Theme, viewContext?: ViewContext) => {
33
+ primary: ChipColorsMap;
34
+ secondary: ChipColorsMap;
35
+ default: ChipColorsMap;
36
+ undefined: ChipColorsMap;
37
+ success: ChipColorsMap;
38
+ error: ChipColorsMap;
39
+ warning: ChipColorsMap;
40
+ info: ChipColorsMap;
41
+ };
42
+ export {};
@@ -0,0 +1,253 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ // Here are extracted colors for `Chip` component, not applicable to other components
3
+ export const getChipColorsMap = (theme, viewContext) => {
4
+ const isInverseView = viewContext === 'inverse';
5
+ const { colors } = theme;
6
+ const schemesPath = isInverseView ? 'inverseSchemes' : 'schemes';
7
+ const stateLayersPath = isInverseView ? 'inverseStateLayers' : 'stateLayers';
8
+ const blendColors = isInverseView
9
+ ? colors.blendInverseSchemaWithStateLayer
10
+ : colors.blendSchemaWithStateLayer;
11
+ const DEFAULT_COLORS = {
12
+ baseColor: {
13
+ background: colors[schemesPath].surfaces.surfaceContainerHigh,
14
+ icon: colors[schemesPath].base.primary,
15
+ label: colors[schemesPath].surfaces.onSurface,
16
+ deleteIcon: {
17
+ base: colors[stateLayersPath].surfaces.onSurface.opacity28,
18
+ hover: colors[stateLayersPath].surfaces.onSurface.opacity38,
19
+ },
20
+ },
21
+ disabled: {
22
+ background: colors[stateLayersPath].surfaces.onSurface.opacity12,
23
+ color: colors[schemesPath].surfaces.onSurface,
24
+ iconColor: colors[stateLayersPath].surfaces.onSurface.opacity28,
25
+ },
26
+ selectedColor: {
27
+ background: colors[schemesPath].base.primaryContainer,
28
+ icon: colors[schemesPath].base.primary,
29
+ label: colors[schemesPath].base.onPrimaryContainer,
30
+ deleteIcon: {
31
+ base: colors[stateLayersPath].base.onPrimaryContainer.opacity28,
32
+ hover: colors[stateLayersPath].base.onPrimaryContainer.opacity38,
33
+ },
34
+ },
35
+ hover: blendColors(`${schemesPath}.surfaces.surfaceContainerHigh`, `${stateLayersPath}.surfaces.onSurface.opacity08`),
36
+ focus: blendColors(`${schemesPath}.surfaces.surfaceContainerHigh`, `${stateLayersPath}.surfaces.onSurface.opacity12`),
37
+ active: blendColors(`${schemesPath}.surfaces.surfaceContainerHigh`, `${stateLayersPath}.surfaces.onSurface.opacity08`),
38
+ ripple: colors[stateLayersPath].surfaces.onSurface.opacity12,
39
+ };
40
+ const PRIMARY_COLORS = {
41
+ baseColor: {
42
+ background: colors[schemesPath].base.primaryContainer,
43
+ icon: colors[schemesPath].base.onPrimaryContainer,
44
+ label: colors[schemesPath].base.onPrimaryContainer,
45
+ deleteIcon: {
46
+ base: colors[stateLayersPath].base.onPrimaryContainer.opacity28,
47
+ hover: colors[stateLayersPath].base.onPrimaryContainer.opacity38,
48
+ },
49
+ },
50
+ disabled: {
51
+ background: colors[stateLayersPath].surfaces.onSurface.opacity12,
52
+ color: colors[schemesPath].surfaces.onSurface,
53
+ iconColor: colors[stateLayersPath].surfaces.onSurface.opacity28,
54
+ },
55
+ selectedColor: {
56
+ background: colors[schemesPath].base.primary,
57
+ icon: colors[schemesPath].base.onPrimary,
58
+ label: colors[schemesPath].base.onPrimary,
59
+ deleteIcon: {
60
+ base: colors[stateLayersPath].base.onPrimary.opacity28,
61
+ hover: colors[stateLayersPath].base.onPrimary.opacity38,
62
+ },
63
+ },
64
+ hover: blendColors(`${schemesPath}.base.primaryContainer`, `${stateLayersPath}.base.onPrimaryContainer.opacity08`),
65
+ focus: blendColors(`${schemesPath}.base.primaryContainer`, `${stateLayersPath}.base.onPrimaryContainer.opacity12`),
66
+ active: blendColors(`${schemesPath}.base.primaryContainer`, `${stateLayersPath}.base.onPrimaryContainer.opacity08`),
67
+ ripple: colors[stateLayersPath].base.onPrimaryContainer.opacity12,
68
+ };
69
+ const UNDEFINED_COLORS = {
70
+ baseColor: {
71
+ background: colors[schemesPath].status.undefinedContainer,
72
+ icon: colors[schemesPath].status.onUndefinedContainer,
73
+ label: colors[schemesPath].status.onUndefinedContainer,
74
+ deleteIcon: {
75
+ base: colors[stateLayersPath].status.onUndefinedContainer.opacity28,
76
+ hover: colors[stateLayersPath].status.onUndefinedContainer.opacity38,
77
+ },
78
+ },
79
+ disabled: {
80
+ background: colors[stateLayersPath].surfaces.onSurface.opacity12,
81
+ color: colors[schemesPath].surfaces.onSurface,
82
+ iconColor: colors[stateLayersPath].surfaces.onSurface.opacity28,
83
+ },
84
+ selectedColor: {
85
+ background: colors[schemesPath].status.undefined,
86
+ icon: colors[schemesPath].status.onUndefined,
87
+ label: colors[schemesPath].status.onUndefined,
88
+ deleteIcon: {
89
+ base: colors[stateLayersPath].status.onUndefined.opacity28,
90
+ hover: colors[stateLayersPath].status.onUndefined.opacity38,
91
+ },
92
+ },
93
+ hover: blendColors(`${schemesPath}.status.undefinedContainer`, `${stateLayersPath}.status.onUndefinedContainer.opacity08`),
94
+ focus: blendColors(`${schemesPath}.status.undefinedContainer`, `${stateLayersPath}.status.onUndefinedContainer.opacity12`),
95
+ active: blendColors(`${schemesPath}.status.undefinedContainer`, `${stateLayersPath}.status.onUndefinedContainer.opacity08`),
96
+ ripple: colors[stateLayersPath].status.onUndefinedContainer.opacity12,
97
+ };
98
+ const SECONDARY_COLORS = {
99
+ baseColor: {
100
+ background: colors[schemesPath].base.secondaryContainer,
101
+ icon: colors[schemesPath].base.onSecondaryContainer,
102
+ label: colors[schemesPath].base.onSecondaryContainer,
103
+ deleteIcon: {
104
+ base: colors[stateLayersPath].base.onSecondaryContainer.opacity28,
105
+ hover: colors[stateLayersPath].base.onSecondaryContainer.opacity38,
106
+ },
107
+ },
108
+ disabled: {
109
+ background: colors[stateLayersPath].surfaces.onSurface.opacity12,
110
+ color: colors[schemesPath].surfaces.onSurface,
111
+ iconColor: colors[stateLayersPath].surfaces.onSurface.opacity28,
112
+ },
113
+ selectedColor: {
114
+ background: colors[schemesPath].base.secondary,
115
+ icon: colors[schemesPath].base.onSecondary,
116
+ label: colors[schemesPath].base.onSecondary,
117
+ deleteIcon: {
118
+ base: colors[stateLayersPath].base.onSecondary.opacity28,
119
+ hover: colors[stateLayersPath].base.onSecondary.opacity38,
120
+ },
121
+ },
122
+ hover: blendColors(`${schemesPath}.base.secondaryContainer`, `${stateLayersPath}.base.onSecondaryContainer.opacity08`),
123
+ focus: blendColors(`${schemesPath}.base.secondaryContainer`, `${stateLayersPath}.base.onSecondaryContainer.opacity12`),
124
+ active: blendColors(`${schemesPath}.base.secondaryContainer`, `${stateLayersPath}.base.onSecondaryContainer.opacity08`),
125
+ ripple: colors[stateLayersPath].base.onSecondaryContainer.opacity12,
126
+ };
127
+ const ERROR_COLORS = {
128
+ baseColor: {
129
+ background: colors[schemesPath].status.errorContainer,
130
+ icon: colors[schemesPath].status.onErrorContainer,
131
+ label: colors[schemesPath].status.onErrorContainer,
132
+ deleteIcon: {
133
+ base: colors[stateLayersPath].status.onErrorContainer.opacity28,
134
+ hover: colors[stateLayersPath].status.onErrorContainer.opacity38,
135
+ },
136
+ },
137
+ disabled: {
138
+ background: colors[stateLayersPath].surfaces.onSurface.opacity12,
139
+ color: colors[schemesPath].surfaces.onSurface,
140
+ iconColor: colors[stateLayersPath].surfaces.onSurface.opacity28,
141
+ },
142
+ selectedColor: {
143
+ background: colors[schemesPath].status.error,
144
+ icon: colors[schemesPath].status.onError,
145
+ label: colors[schemesPath].status.onError,
146
+ deleteIcon: {
147
+ base: colors[stateLayersPath].status.onError.opacity28,
148
+ hover: colors[stateLayersPath].status.onError.opacity38,
149
+ },
150
+ },
151
+ hover: blendColors(`${schemesPath}.status.errorContainer`, `${stateLayersPath}.status.onErrorContainer.opacity08`),
152
+ focus: blendColors(`${schemesPath}.status.errorContainer`, `${stateLayersPath}.status.onErrorContainer.opacity12`),
153
+ active: blendColors(`${schemesPath}.status.errorContainer`, `${stateLayersPath}.status.onErrorContainer.opacity08`),
154
+ ripple: colors[stateLayersPath].status.onErrorContainer.opacity12,
155
+ };
156
+ const WARNING_COLORS = {
157
+ baseColor: {
158
+ background: colors[schemesPath].status.warningContainer,
159
+ icon: colors[schemesPath].status.onWarningContainer,
160
+ label: colors[schemesPath].status.onWarningContainer,
161
+ deleteIcon: {
162
+ base: colors[stateLayersPath].status.onWarningContainer.opacity28,
163
+ hover: colors[stateLayersPath].status.onWarningContainer.opacity38,
164
+ },
165
+ },
166
+ disabled: {
167
+ background: colors[stateLayersPath].surfaces.onSurface.opacity12,
168
+ color: colors[schemesPath].surfaces.onSurface,
169
+ iconColor: colors[stateLayersPath].surfaces.onSurface.opacity28,
170
+ },
171
+ selectedColor: {
172
+ background: colors[schemesPath].status.warning,
173
+ icon: colors[schemesPath].status.onWarning,
174
+ label: colors[schemesPath].status.onWarning,
175
+ deleteIcon: {
176
+ base: colors[stateLayersPath].status.onWarningContainer.opacity28,
177
+ hover: colors[stateLayersPath].status.onWarningContainer.opacity38,
178
+ },
179
+ },
180
+ hover: blendColors(`${schemesPath}.status.warningContainer`, `${stateLayersPath}.status.onWarningContainer.opacity08`),
181
+ focus: blendColors(`${schemesPath}.status.warningContainer`, `${stateLayersPath}.status.onWarningContainer.opacity12`),
182
+ active: blendColors(`${schemesPath}.status.warningContainer`, `${stateLayersPath}.status.onWarningContainer.opacity08`),
183
+ ripple: colors[stateLayersPath].status.onWarningContainer.opacity12,
184
+ };
185
+ const INFO_COLORS = {
186
+ baseColor: {
187
+ background: colors[schemesPath].status.infoContainer,
188
+ icon: colors[schemesPath].status.onInfoContainer,
189
+ label: colors[schemesPath].status.onInfoContainer,
190
+ deleteIcon: {
191
+ base: colors[stateLayersPath].status.onInfoContainer.opacity28,
192
+ hover: colors[stateLayersPath].status.onInfoContainer.opacity38,
193
+ },
194
+ },
195
+ disabled: {
196
+ background: colors[stateLayersPath].surfaces.onSurface.opacity12,
197
+ color: colors[schemesPath].surfaces.onSurface,
198
+ iconColor: colors[stateLayersPath].surfaces.onSurface.opacity28,
199
+ },
200
+ selectedColor: {
201
+ background: colors[schemesPath].status.info,
202
+ icon: colors[schemesPath].status.onInfo,
203
+ label: colors[schemesPath].status.onInfo,
204
+ deleteIcon: {
205
+ base: colors[stateLayersPath].status.onInfo.opacity28,
206
+ hover: colors[stateLayersPath].status.onInfo.opacity38,
207
+ },
208
+ },
209
+ hover: blendColors(`${schemesPath}.status.infoContainer`, `${stateLayersPath}.status.onInfoContainer.opacity08`),
210
+ focus: blendColors(`${schemesPath}.status.infoContainer`, `${stateLayersPath}.status.onInfoContainer.opacity12`),
211
+ active: blendColors(`${schemesPath}.status.infoContainer`, `${stateLayersPath}.status.onInfoContainer.opacity08`),
212
+ ripple: colors[stateLayersPath].status.onInfoContainer.opacity12,
213
+ };
214
+ const SUCCESS_COLORS = {
215
+ baseColor: {
216
+ background: colors[schemesPath].status.successContainer,
217
+ icon: colors[schemesPath].status.onSuccessContainer,
218
+ label: colors[schemesPath].status.onSuccessContainer,
219
+ deleteIcon: {
220
+ base: colors[stateLayersPath].status.onSuccessContainer.opacity28,
221
+ hover: colors[stateLayersPath].status.onSuccessContainer.opacity38,
222
+ },
223
+ },
224
+ disabled: {
225
+ background: colors[stateLayersPath].surfaces.onSurface.opacity12,
226
+ color: colors[schemesPath].surfaces.onSurface,
227
+ iconColor: colors[stateLayersPath].surfaces.onSurface.opacity28,
228
+ },
229
+ selectedColor: {
230
+ background: colors[schemesPath].status.success,
231
+ icon: colors[schemesPath].status.onSuccess,
232
+ label: colors[schemesPath].status.onSuccess,
233
+ deleteIcon: {
234
+ base: colors[stateLayersPath].status.onSuccess.opacity28,
235
+ hover: colors[stateLayersPath].status.onSuccess.opacity38,
236
+ },
237
+ },
238
+ hover: blendColors(`${schemesPath}.status.successContainer`, `${stateLayersPath}.status.onSuccessContainer.opacity08`),
239
+ focus: blendColors(`${schemesPath}.status.successContainer`, `${stateLayersPath}.status.onSuccessContainer.opacity12`),
240
+ active: blendColors(`${schemesPath}.status.successContainer`, `${stateLayersPath}.status.onSuccessContainer.opacity08`),
241
+ ripple: colors[stateLayersPath].status.onSuccessContainer.opacity12,
242
+ };
243
+ return {
244
+ primary: PRIMARY_COLORS,
245
+ secondary: SECONDARY_COLORS,
246
+ default: DEFAULT_COLORS,
247
+ undefined: UNDEFINED_COLORS,
248
+ success: SUCCESS_COLORS,
249
+ error: ERROR_COLORS,
250
+ warning: WARNING_COLORS,
251
+ info: INFO_COLORS,
252
+ };
253
+ };
@@ -1,5 +1,10 @@
1
1
  import { Theme, ComponentsOverrides, ComponentsVariants } from '@mui/material';
2
- declare module '@mui/material/Divider' { }
2
+ import { ComponentWithViewContextOwnProps } from '../../../shared/viewContext';
3
+ declare module '@mui/material/Divider' {
4
+ interface DividerOwnProps extends ComponentWithViewContextOwnProps {
5
+ paddings?: boolean;
6
+ }
7
+ }
3
8
  export interface M3Divider {
4
9
  MuiDivider: {
5
10
  styleOverrides?: ComponentsOverrides<Theme>['MuiDivider'];
@@ -3,14 +3,71 @@ export const getDivider = (theme) => ({
3
3
  MuiDivider: {
4
4
  styleOverrides: {
5
5
  root: {
6
- borderColor: theme.palette.outlineVariant.main,
6
+ borderColor: theme.colors.schemes.surfaces.outlineVariant,
7
7
  },
8
8
  },
9
9
  variants: [
10
10
  {
11
- props: { variant: 'inset' },
11
+ props: { viewContext: 'inverse' },
12
12
  style: {
13
- marginLeft: '5%',
13
+ borderColor: theme.colors.inverseSchemes.surfaces.outlineVariant,
14
+ },
15
+ },
16
+ {
17
+ props: { variant: 'middle', orientation: 'horizontal' },
18
+ style: {
19
+ marginLeft: '36px',
20
+ marginRight: '36px',
21
+ },
22
+ },
23
+ {
24
+ props: { variant: 'middle', orientation: 'vertical' },
25
+ style: {
26
+ marginTop: '36px',
27
+ marginBottom: '36px',
28
+ },
29
+ },
30
+ {
31
+ props: { variant: 'inset', orientation: 'horizontal' },
32
+ style: {
33
+ marginLeft: '36px',
34
+ },
35
+ },
36
+ {
37
+ props: { variant: 'inset', orientation: 'vertical' },
38
+ style: {
39
+ marginTop: '36px',
40
+ marginLeft: 0,
41
+ },
42
+ },
43
+ {
44
+ props: { paddings: true, orientation: 'horizontal' },
45
+ style: {
46
+ marginTop: '6px',
47
+ marginBottom: '6px',
48
+ },
49
+ },
50
+ {
51
+ props: { paddings: true, orientation: 'vertical' },
52
+ style: {
53
+ marginLeft: '6px',
54
+ marginRight: '6px',
55
+ },
56
+ },
57
+ {
58
+ props: { textAlign: 'left' },
59
+ style: {
60
+ '&:before': {
61
+ width: 0,
62
+ },
63
+ },
64
+ },
65
+ {
66
+ props: { textAlign: 'right' },
67
+ style: {
68
+ '&:after': {
69
+ width: 0,
70
+ },
14
71
  },
15
72
  },
16
73
  ],
@@ -6,6 +6,6 @@ interface M3ListItem {
6
6
  variants?: ComponentsVariants['MuiList'];
7
7
  };
8
8
  }
9
- export declare const getList: (_: Theme) => M3ListItem;
9
+ export declare const getList: (_theme: Theme) => M3ListItem;
10
10
  declare const _default: {};
11
11
  export default _default;
@@ -1,5 +1,5 @@
1
1
  // Copyright 2025 WebPros International GmbH. All rights reserved.
2
- export const getList = (_) => ({
2
+ export const getList = (_theme) => ({
3
3
  MuiListItem: {},
4
4
  });
5
5
  export default {};
@@ -6,6 +6,6 @@ interface M3ListItem {
6
6
  variants?: ComponentsVariants['MuiListItem'];
7
7
  };
8
8
  }
9
- export declare const getListItem: (_: Theme) => M3ListItem;
9
+ export declare const getListItem: (_theme: Theme) => M3ListItem;
10
10
  declare const _default: {};
11
11
  export default _default;
@@ -1,13 +1,21 @@
1
- export const getListItem = (_) => ({
1
+ export const getListItem = (_theme) => ({
2
2
  MuiListItem: {
3
- styleOverrides: {
4
- root: {
5
- paddingTop: 1,
6
- paddingBottom: 1,
7
- paddingLeft: 0,
8
- paddingRight: 0,
3
+ variants: [
4
+ {
5
+ props: ({ ownerState }) => !ownerState.disablePadding,
6
+ style: {
7
+ paddingTop: 7,
8
+ paddingBottom: 7,
9
+ },
9
10
  },
10
- },
11
+ {
12
+ props: ({ ownerState }) => !ownerState.disablePadding && !ownerState.disableGutters,
13
+ style: {
14
+ paddingLeft: 12,
15
+ paddingRight: 12,
16
+ },
17
+ },
18
+ ],
11
19
  },
12
20
  });
13
21
  export default {};
@@ -2,8 +2,7 @@ export const getListItemAvatar = (_theme) => ({
2
2
  MuiListItemAvatar: {
3
3
  styleOverrides: {
4
4
  root: {
5
- color: 'inherit',
6
- minWidth: 36,
5
+ minWidth: 38,
7
6
  },
8
7
  },
9
8
  },
@@ -1,9 +1,4 @@
1
1
  import { Theme, ComponentsProps, ComponentsOverrides, ComponentsVariants } from '@mui/material';
2
- declare module '@mui/material/ListItemButton' {
3
- interface ListItemButtonOwnProps {
4
- variant?: 'list' | 'nav';
5
- }
6
- }
7
2
  interface M3ListItemButton {
8
3
  MuiListItemButton: {
9
4
  defaultProps?: ComponentsProps['MuiListItemButton'];
@@ -1,64 +1,30 @@
1
1
  // Copyright 2025 WebPros International GmbH. All rights reserved.
2
- import { alpha, } from '@mui/material';
2
+ import { listItemButtonClasses, } from '@mui/material';
3
3
  export const getListItemButton = (theme) => {
4
- const { palette } = theme;
4
+ const { colors } = theme;
5
5
  return {
6
6
  MuiListItemButton: {
7
7
  styleOverrides: {
8
8
  root: {
9
- fontSize: '0.875rem',
10
- fontWeight: 500,
11
- lineHeight: '1.25rem',
12
- letterSpacing: '0.006rem',
9
+ paddingTop: 5,
10
+ paddingBottom: 5,
13
11
  '&:hover': {
14
- backgroundColor: alpha(palette.onSurfaceVariant.main, 0.04),
12
+ backgroundColor: colors.stateLayers.base.secondary.opacity08,
13
+ },
14
+ [`&.${listItemButtonClasses.selected}`]: {
15
+ backgroundColor: colors.schemes.base.secondaryContainer,
16
+ },
17
+ [`&.${listItemButtonClasses.focusVisible}`]: {
18
+ backgroundColor: colors.stateLayers.base.secondary.opacity12,
15
19
  },
16
20
  },
17
21
  },
18
22
  variants: [
19
23
  {
20
- props: { variant: 'list' },
21
- style: {
22
- '&:hover': {
23
- backgroundColor: alpha(palette.onSurfaceVariant.main, 0.04),
24
- },
25
- '&.Mui-selected': {
26
- backgroundColor: alpha(palette.onSurfaceVariant.main, 0.04),
27
- '&:hover': {
28
- backgroundColor: alpha(palette.onSurfaceVariant.main, 0.08),
29
- },
30
- },
31
- },
32
- },
33
- {
34
- props: { variant: 'nav' },
24
+ props: ({ ownerState }) => !ownerState.disableGutters,
35
25
  style: {
36
- borderRadius: 12,
37
- color: palette.onSurfaceVariant.main,
38
- paddingTop: '13px',
39
- paddingBottom: '13px',
40
- paddingLeft: '16px',
41
- '& > .MuiListItemText-root > .MuiTypography-root': {
42
- fontWeight: 500,
43
- fontSize: '0.875rem',
44
- lineHeight: '1.25rem',
45
- letterSpacing: '0.006rem',
46
- },
47
- '&:hover': {},
48
- '&:active': {
49
- color: palette.primary,
50
- },
51
- '&.Mui-selected': {
52
- color: palette.primary.main,
53
- background: 'transparent',
54
- '& > .MuiListItemText-root > .MuiTypography-root': {},
55
- '&:hover': {
56
- backgroundColor: alpha(palette.onSurfaceVariant.main, 0.04),
57
- },
58
- '&:active': {
59
- color: palette.primary.main,
60
- },
61
- },
26
+ paddingLeft: 12,
27
+ paddingRight: 12,
62
28
  },
63
29
  },
64
30
  ],
@@ -2,10 +2,10 @@ export const getListItemIcon = (_theme) => ({
2
2
  MuiListItemIcon: {
3
3
  styleOverrides: {
4
4
  root: {
5
- color: 'inherit',
6
- minWidth: 36,
7
- '&.Mui-selected': {
8
- fontWeight: 'bold',
5
+ minWidth: 32,
6
+ svg: {
7
+ width: 20,
8
+ height: 20,
9
9
  },
10
10
  },
11
11
  },
@@ -6,6 +6,6 @@ interface M3ListSubheader {
6
6
  variants?: ComponentsVariants['MuiListSubheader'];
7
7
  };
8
8
  }
9
- export declare const getListSubheader: (theme: Theme) => M3ListSubheader;
9
+ export declare const getListSubheader: (_theme: Theme) => M3ListSubheader;
10
10
  declare const _default: {};
11
11
  export default _default;
@@ -1,12 +1,9 @@
1
- export const getListSubheader = (theme) => {
2
- const { palette } = theme;
1
+ export const getListSubheader = (_theme) => {
3
2
  return {
4
3
  MuiListSubheader: {
5
4
  styleOverrides: {
6
5
  root: {
7
- lineHeight: '2.5rem',
8
- backgroundColor: palette.surfaceContainerLowest.main,
9
- paddingLeft: 0,
6
+ lineHeight: '34px',
10
7
  },
11
8
  },
12
9
  },
@@ -0,0 +1,3 @@
1
+ import './Skeleton.theme';
2
+ export declare const Skeleton: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SkeletonTypeMap<{}, "span">>;
3
+ export type SkeletonComponentType = typeof Skeleton;
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ import { Skeleton as MuiSkeleton } from '@mui/material';
3
+ import './Skeleton.theme';
4
+ export const Skeleton = MuiSkeleton;
@@ -0,0 +1,15 @@
1
+ import { Theme, ComponentsOverrides, ComponentsVariants } from '@mui/material';
2
+ import { ComponentWithViewContextOwnProps } from '../../../shared/viewContext';
3
+ declare module '@mui/material/Skeleton' {
4
+ interface SkeletonOwnProps extends ComponentWithViewContextOwnProps {
5
+ }
6
+ }
7
+ export interface M3Skeleton {
8
+ MuiSkeleton: {
9
+ styleOverrides?: ComponentsOverrides<Theme>['MuiSkeleton'];
10
+ variants?: ComponentsVariants['MuiSkeleton'];
11
+ };
12
+ }
13
+ export declare const getSkeleton: (theme: Theme) => M3Skeleton;
14
+ declare const _default: {};
15
+ export default _default;
@@ -0,0 +1,31 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ export const getSkeleton = (theme) => ({
3
+ MuiSkeleton: {
4
+ styleOverrides: {
5
+ root: {
6
+ backgroundColor: theme.colors.stateLayers.base.secondary.opacity08,
7
+ },
8
+ },
9
+ variants: [
10
+ {
11
+ props: { variant: 'text' },
12
+ style: {
13
+ borderRadius: '17px',
14
+ },
15
+ },
16
+ {
17
+ props: { variant: 'rounded' },
18
+ style: {
19
+ borderRadius: '10px',
20
+ },
21
+ },
22
+ {
23
+ props: { viewContext: 'inverse' },
24
+ style: {
25
+ backgroundColor: theme.colors.inverseStateLayers.base.secondary.opacity08,
26
+ },
27
+ },
28
+ ],
29
+ },
30
+ });
31
+ export default {};
@@ -0,0 +1 @@
1
+ export * from './Skeleton.theme';
@@ -0,0 +1,2 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ export * from './Skeleton.theme';