@webpros/mui-theme 0.1.6 → 0.3.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 (242) hide show
  1. package/dist/package.json +21 -11
  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 +61 -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/Dialog/Dialog.theme.d.ts +5 -0
  35. package/dist/src/components/feedback/Dialog/Dialog.theme.js +43 -14
  36. package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.d.ts +6 -1
  37. package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.js +91 -9
  38. package/dist/src/components/feedback/Snackbar/Snackbar.theme.d.ts +4 -4
  39. package/dist/src/components/feedback/Snackbar/Snackbar.theme.js +11 -3
  40. package/dist/src/components/index.d.ts +10 -1
  41. package/dist/src/components/index.js +10 -1
  42. package/dist/src/components/inputs/Autocomplete/Autocomplete.theme.d.ts +1 -1
  43. package/dist/src/components/inputs/Autocomplete/Autocomplete.theme.js +23 -51
  44. package/dist/src/components/inputs/Autocomplete/components/AutocompleteCaretDownIcon.d.ts +1 -0
  45. package/dist/src/components/inputs/Autocomplete/components/{AutocompletePopupIcon.js → AutocompleteCaretDownIcon.js} +1 -1
  46. package/dist/src/components/inputs/Autocomplete/components/AutocompleteXIcon.d.ts +1 -0
  47. package/dist/src/components/inputs/Autocomplete/components/AutocompleteXIcon.js +4 -0
  48. package/dist/src/components/inputs/Button/Button.theme.d.ts +4 -0
  49. package/dist/src/components/inputs/Button/Button.theme.js +93 -226
  50. package/dist/src/components/inputs/Button/get-button-colors-map.d.ts +24 -0
  51. package/dist/src/components/inputs/Button/get-button-colors-map.js +211 -0
  52. package/dist/src/components/inputs/Checkbox/Checkbox.theme.d.ts +7 -2
  53. package/dist/src/components/inputs/Checkbox/Checkbox.theme.js +57 -7
  54. package/dist/src/components/inputs/Fab/Fab.theme.d.ts +5 -9
  55. package/dist/src/components/inputs/Fab/Fab.theme.js +27 -98
  56. package/dist/src/components/inputs/FormHelperText/FormHelperText.d.ts +2 -0
  57. package/dist/src/components/inputs/FormHelperText/FormHelperText.js +3 -0
  58. package/dist/src/components/inputs/FormHelperText/FormHelperText.theme.d.ts +7 -0
  59. package/dist/src/components/inputs/FormHelperText/FormHelperText.theme.js +8 -0
  60. package/dist/src/components/inputs/FormHelperText/index.d.ts +1 -0
  61. package/dist/src/components/inputs/FormHelperText/index.js +2 -0
  62. package/dist/src/components/inputs/FormLabel/FormLabel.d.ts +2 -0
  63. package/dist/src/components/inputs/FormLabel/FormLabel.js +3 -0
  64. package/dist/src/components/inputs/FormLabel/FormLabel.theme.d.ts +7 -0
  65. package/dist/src/components/inputs/FormLabel/FormLabel.theme.js +8 -0
  66. package/dist/src/components/inputs/FormLabel/index.d.ts +1 -0
  67. package/dist/src/components/inputs/FormLabel/index.js +2 -0
  68. package/dist/src/components/inputs/IconButton/IconButton.theme.d.ts +3 -2
  69. package/dist/src/components/inputs/IconButton/IconButton.theme.js +90 -95
  70. package/dist/src/components/inputs/InputBase/InputBase.theme.d.ts +9 -26
  71. package/dist/src/components/inputs/InputBase/InputBase.theme.js +2 -64
  72. package/dist/src/components/inputs/InputLabel/InputLabel.theme.d.ts +7 -4
  73. package/dist/src/components/inputs/InputLabel/InputLabel.theme.js +26 -12
  74. package/dist/src/components/inputs/OutlinedInput/OutlinedInput.theme.d.ts +8 -0
  75. package/dist/src/components/inputs/OutlinedInput/OutlinedInput.theme.js +67 -0
  76. package/dist/src/components/inputs/OutlinedInput/index.d.ts +1 -0
  77. package/dist/src/components/inputs/OutlinedInput/index.js +2 -0
  78. package/dist/src/components/inputs/Radio/Radio.d.ts +4 -0
  79. package/dist/src/components/inputs/Radio/Radio.js +4 -0
  80. package/dist/src/components/inputs/Radio/Radio.theme.d.ts +11 -0
  81. package/dist/src/components/inputs/Radio/Radio.theme.js +35 -0
  82. package/dist/src/components/inputs/Radio/index.d.ts +1 -0
  83. package/dist/src/components/{navigation/TabList → inputs/Radio}/index.js +1 -1
  84. package/dist/src/components/inputs/Select/Select.theme.d.ts +2 -3
  85. package/dist/src/components/inputs/Select/Select.theme.js +6 -33
  86. package/dist/src/components/inputs/Switch/Switch.theme.js +125 -49
  87. package/dist/src/components/inputs/TextField/TextField.theme.d.ts +2 -3
  88. package/dist/src/components/inputs/TextField/TextField.theme.js +2 -26
  89. package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.d.ts +4 -0
  90. package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.js +5 -0
  91. package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.theme.d.ts +11 -0
  92. package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.theme.js +23 -0
  93. package/dist/src/components/navigation/Breadcrumbs/Crumb.d.ts +10 -0
  94. package/dist/src/components/navigation/Breadcrumbs/Crumb.js +10 -0
  95. package/dist/src/components/navigation/Breadcrumbs/index.d.ts +1 -0
  96. package/dist/src/components/navigation/Breadcrumbs/index.js +2 -0
  97. package/dist/src/components/navigation/Drawer/Drawer.theme.d.ts +1 -1
  98. package/dist/src/components/navigation/Drawer/Drawer.theme.js +50 -6
  99. package/dist/src/components/navigation/Link/Link.theme.d.ts +11 -2
  100. package/dist/src/components/navigation/Link/Link.theme.js +66 -9
  101. package/dist/src/components/navigation/Menu/Menu.theme.d.ts +2 -3
  102. package/dist/src/components/navigation/Menu/Menu.theme.js +6 -11
  103. package/dist/src/components/navigation/MenuItem/MenuItem.theme.d.ts +2 -4
  104. package/dist/src/components/navigation/MenuItem/MenuItem.theme.js +8 -8
  105. package/dist/src/components/navigation/Pagination/Pagination.theme.d.ts +1 -1
  106. package/dist/src/components/navigation/Pagination/Pagination.theme.js +11 -3
  107. package/dist/src/components/navigation/PaginationItem/PaginationItem.theme.js +65 -10
  108. package/dist/src/components/navigation/PaginationItem/components/PaginationIcons.d.ts +4 -0
  109. package/dist/src/components/navigation/PaginationItem/components/PaginationIcons.js +8 -0
  110. package/dist/src/components/navigation/PaginationItem/components/index.d.ts +1 -0
  111. package/dist/src/components/navigation/PaginationItem/components/index.js +2 -0
  112. package/dist/src/components/navigation/Tab/Tab.theme.d.ts +7 -1
  113. package/dist/src/components/navigation/Tab/Tab.theme.js +52 -13
  114. package/dist/src/components/navigation/Tabs/Tabs.d.ts +3 -0
  115. package/dist/src/components/navigation/Tabs/Tabs.js +4 -0
  116. package/dist/src/components/navigation/Tabs/Tabs.theme.d.ts +16 -0
  117. package/dist/src/components/navigation/Tabs/Tabs.theme.js +55 -0
  118. package/dist/src/components/navigation/Tabs/index.d.ts +1 -0
  119. package/dist/src/components/navigation/Tabs/index.js +2 -0
  120. package/dist/src/components/surfaces/Accordion/Accordion.theme.js +54 -22
  121. package/dist/src/components/surfaces/Accordion/AccordionDetails.theme.d.ts +10 -0
  122. package/dist/src/components/surfaces/Accordion/AccordionDetails.theme.js +19 -0
  123. package/dist/src/components/surfaces/Accordion/AccordionSummary.theme.d.ts +10 -0
  124. package/dist/src/components/surfaces/Accordion/AccordionSummary.theme.js +37 -0
  125. package/dist/src/components/surfaces/Accordion/index.d.ts +2 -0
  126. package/dist/src/components/surfaces/Accordion/index.js +2 -0
  127. package/dist/src/components/surfaces/Card/Card.theme.js +1 -1
  128. package/dist/src/components/surfaces/Paper/Paper.theme.d.ts +16 -1
  129. package/dist/src/components/surfaces/Paper/Paper.theme.js +21 -7
  130. package/dist/src/components/surfaces/Paper/Paper.tokens.d.ts +8 -0
  131. package/dist/src/components/surfaces/Paper/Paper.tokens.js +50 -0
  132. package/dist/src/components/surfaces/Paper/Paper.variants.d.ts +4 -0
  133. package/dist/src/components/surfaces/Paper/Paper.variants.js +3 -0
  134. package/dist/src/components/surfaces/Popover/Popover.d.ts +4 -0
  135. package/dist/src/components/surfaces/Popover/Popover.js +4 -0
  136. package/dist/src/components/surfaces/Popover/Popover.theme.d.ts +9 -0
  137. package/dist/src/components/surfaces/Popover/Popover.theme.js +14 -0
  138. package/dist/src/components/surfaces/Popover/index.d.ts +1 -0
  139. package/dist/src/components/surfaces/Popover/index.js +2 -0
  140. package/dist/src/components/utils/Backdrop/Backdrop.d.ts +3 -0
  141. package/dist/src/components/utils/Backdrop/Backdrop.js +4 -0
  142. package/dist/src/components/utils/Backdrop/Backdrop.theme.d.ts +11 -0
  143. package/dist/src/components/utils/Backdrop/Backdrop.theme.js +17 -0
  144. package/dist/src/components/utils/Backdrop/index.d.ts +1 -0
  145. package/dist/src/components/utils/Backdrop/index.js +2 -0
  146. package/dist/src/icons/index.d.ts +4 -0
  147. package/dist/src/icons/index.js +12 -0
  148. package/dist/src/providers/ThemeModeProvider.d.ts +1 -2
  149. package/dist/src/providers/ThemeModeProvider.js +2 -2
  150. package/dist/src/providers/WebProsMuiThemeProvider.js +1 -1
  151. package/dist/src/providers/WebProsTheme.d.ts +1 -0
  152. package/dist/src/providers/WebProsTheme.js +11 -5
  153. package/dist/src/shared/rippleEnterKeyframe.d.ts +6 -0
  154. package/dist/src/shared/rippleEnterKeyframe.js +12 -0
  155. package/dist/src/shared/viewContext/index.d.ts +1 -0
  156. package/dist/src/shared/viewContext/index.js +2 -0
  157. package/dist/src/shared/viewContext/viewContext.d.ts +4 -0
  158. package/dist/src/shared/viewContext/viewContext.js +2 -0
  159. package/dist/src/style/additional-color-palette.d.ts +1 -3
  160. package/dist/src/style/additional-color-palette.js +4 -7
  161. package/dist/src/style/custom-color-palette.js +51 -53
  162. package/dist/src/tokens/ThemeColorTokens.d.ts +11 -93
  163. package/dist/src/tokens/ThemeColorTokens.js +4 -168
  164. package/dist/src/tokens/ThemeScheme.d.ts +0 -3
  165. package/dist/src/tokens/ThemeScheme.js +0 -2
  166. package/dist/src/tokens/colors/Dark.d.ts +16 -0
  167. package/dist/src/tokens/colors/Dark.js +1422 -0
  168. package/dist/src/tokens/colors/Light.d.ts +16 -0
  169. package/dist/src/tokens/colors/Light.js +1392 -0
  170. package/dist/src/tokens/colors/index.d.ts +7 -0
  171. package/dist/src/tokens/colors/index.js +4 -0
  172. package/dist/src/tokens/colors/inverseSchemas.d.ts +40 -0
  173. package/dist/src/tokens/colors/inverseSchemas.js +3 -0
  174. package/dist/src/tokens/colors/inverseSchemes.d.ts +53 -0
  175. package/dist/src/tokens/colors/inverseSchemes.js +3 -0
  176. package/dist/src/tokens/colors/inverseStateLayers.d.ts +188 -0
  177. package/dist/src/tokens/colors/inverseStateLayers.js +3 -0
  178. package/dist/src/tokens/colors/schemas.d.ts +111 -0
  179. package/dist/src/tokens/colors/schemas.js +3 -0
  180. package/dist/src/tokens/colors/schemes.d.ts +111 -0
  181. package/dist/src/tokens/colors/schemes.js +3 -0
  182. package/dist/src/tokens/colors/stateLayers.d.ts +456 -0
  183. package/dist/src/tokens/colors/stateLayers.js +3 -0
  184. package/dist/src/tokens/colors/types.d.ts +9 -0
  185. package/dist/src/tokens/colors/types.js +2 -0
  186. package/dist/src/tokens/index.d.ts +6 -2
  187. package/dist/src/tokens/index.js +2 -1
  188. package/dist/src/tokens/legacyColors/LegacyDark.d.ts +2 -0
  189. package/dist/src/tokens/legacyColors/LegacyDark.js +88 -0
  190. package/dist/src/tokens/legacyColors/LegacyLight.d.ts +2 -0
  191. package/dist/src/tokens/legacyColors/LegacyLight.js +86 -0
  192. package/dist/src/tokens/legacyColors/ThemeColorTokensLegacy.d.ts +74 -0
  193. package/dist/src/tokens/legacyColors/ThemeColorTokensLegacy.js +2 -0
  194. package/dist/src/tokens/legacyColors/additionalColors/additionalColors.d.ts +21 -0
  195. package/dist/src/tokens/legacyColors/additionalColors/additionalColors.js +2 -0
  196. package/dist/src/tokens/{additionalColors → legacyColors/additionalColors}/index.d.ts +1 -0
  197. package/dist/src/tokens/{additionalColors → legacyColors/additionalColors}/index.js +1 -0
  198. package/dist/src/tokens/legacyColors/index.d.ts +2 -0
  199. package/dist/src/tokens/legacyColors/index.js +3 -0
  200. package/dist/src/tokens/shadows/index.d.ts +12 -0
  201. package/dist/src/tokens/shadows/index.js +112 -0
  202. package/dist/src/tokens/typography/index.d.ts +2 -0
  203. package/dist/src/tokens/typography/index.js +4 -0
  204. package/dist/src/tokens/typography/typescale.d.ts +28 -0
  205. package/dist/src/tokens/typography/typescale.js +26 -0
  206. package/dist/src/tokens/typography/typography.d.ts +2 -0
  207. package/dist/src/tokens/typography/typography.js +156 -0
  208. package/dist/src/utils/createIcon.d.ts +12 -0
  209. package/dist/src/utils/createIcon.js +94 -0
  210. package/dist/src/utils/flatten.d.ts +1 -0
  211. package/dist/src/utils/flatten.js +12 -0
  212. package/dist/src/utils/getMUIComponents.js +2 -2
  213. package/dist/src/utils/getMUIPalette.d.ts +6 -11
  214. package/dist/src/utils/getMUIPalette.js +49 -25
  215. package/dist/src/utils/getMUIThemeCustoimzationType.d.ts +31 -0
  216. package/dist/src/utils/getMUIThemeCustoimzationType.js +2 -0
  217. package/dist/src/utils/getMUITypography.d.ts +2 -0
  218. package/dist/src/utils/getMUITypography.js +5 -0
  219. package/dist/src/utils/getStateLayerColor.d.ts +37 -0
  220. package/dist/src/utils/getStateLayerColor.js +43 -1
  221. package/dist/src/utils/index.d.ts +1 -1
  222. package/dist/src/utils/index.js +1 -1
  223. package/dist/src/utils/patchMUIShadows.js +4 -3
  224. package/package.json +21 -11
  225. package/dist/src/components/inputs/Autocomplete/components/AutocompletePopupIcon.d.ts +0 -1
  226. package/dist/src/components/navigation/PaginationItem/PaginationItem.d.ts +0 -3
  227. package/dist/src/components/navigation/PaginationItem/PaginationItem.js +0 -4
  228. package/dist/src/components/navigation/TabList/TabList.d.ts +0 -3
  229. package/dist/src/components/navigation/TabList/TabList.js +0 -4
  230. package/dist/src/components/navigation/TabList/TabList.theme.d.ts +0 -10
  231. package/dist/src/components/navigation/TabList/TabList.theme.js +0 -17
  232. package/dist/src/components/navigation/TabList/index.d.ts +0 -1
  233. package/dist/src/hooks/useTonalPalette.d.ts +0 -3
  234. package/dist/src/hooks/useTonalPalette.js +0 -32
  235. package/dist/src/providers/ThemeSchemeProvider.d.ts +0 -12
  236. package/dist/src/providers/ThemeSchemeProvider.js +0 -29
  237. package/dist/src/tokens/TonalPalette.d.ts +0 -10
  238. package/dist/src/tokens/TonalPalette.js +0 -10
  239. package/dist/src/utils/generateTokens.d.ts +0 -4
  240. package/dist/src/utils/generateTokens.js +0 -107
  241. /package/dist/src/tokens/{Tone.d.ts → legacyColors/Tone.d.ts} +0 -0
  242. /package/dist/src/tokens/{Tone.js → legacyColors/Tone.js} +0 -0
@@ -1,7 +1,16 @@
1
- import { Theme, ComponentsOverrides, ComponentsVariants } from '@mui/material';
2
- declare module '@mui/material/Link' { }
1
+ import { Theme, ComponentsOverrides, ComponentsVariants, ComponentsProps } from '@mui/material';
2
+ import { TypescaleTypographyVariantsBooleans } from '../../../tokens/typography';
3
+ declare module '@mui/material/Link' {
4
+ interface LinkPropsVariantOverrides extends TypescaleTypographyVariantsBooleans {
5
+ }
6
+ interface LinkOwnProps {
7
+ underlineInversed?: boolean;
8
+ visited?: boolean;
9
+ }
10
+ }
3
11
  interface M3Link {
4
12
  MuiLink: {
13
+ defaultProps?: ComponentsProps['MuiLink'];
5
14
  styleOverrides?: ComponentsOverrides<Theme>['MuiLink'];
6
15
  variants?: ComponentsVariants<Theme>['MuiLink'];
7
16
  };
@@ -1,40 +1,97 @@
1
1
  // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ import { typographyVariants, TypographyVariantsNames, } from '../../../tokens/typography';
2
3
  export const getLink = (theme) => {
3
- const { palette } = theme;
4
+ const { colors } = theme;
4
5
  return {
5
6
  MuiLink: {
7
+ defaultProps: {
8
+ variant: 'BodyMedium',
9
+ color: 'textPrimary',
10
+ underlineInversed: false,
11
+ underline: 'hover',
12
+ },
6
13
  styleOverrides: {
7
14
  root: {
8
- color: palette.primary.main,
9
15
  cursor: 'pointer',
10
- textUnderlineOffset: '4px',
16
+ textUnderlineOffset: '25%',
17
+ textDecorationThickness: '0.5px',
11
18
  },
12
19
  },
13
20
  variants: [
21
+ ...TypographyVariantsNames.map((variantName) => ({
22
+ props: { variant: variantName },
23
+ style: Object.assign({}, typographyVariants[variantName]),
24
+ })),
25
+ {
26
+ props: { underlineInversed: false, underline: 'hover' },
27
+ style: {
28
+ textDecoration: 'underline',
29
+ textDecorationThickness: '0.5px',
30
+ textDecorationColor: 'currentColor',
31
+ '&:hover': {
32
+ textDecoration: 'none',
33
+ },
34
+ },
35
+ },
36
+ {
37
+ props: { visited: true },
38
+ style: {
39
+ '&:hover': {
40
+ textDecoration: 'none',
41
+ },
42
+ },
43
+ },
14
44
  {
15
45
  props: { color: 'primary' },
16
46
  style: {
17
- color: palette.primary.main,
47
+ color: colors.schemes.typography.primary,
18
48
  },
19
49
  },
20
50
  {
21
- props: { color: 'supportive' },
51
+ props: { color: 'textPrimary' },
22
52
  style: {
23
- color: palette.supportive.main,
53
+ color: colors.schemes.typography.onSurface,
24
54
  },
25
55
  },
26
56
  {
27
- props: { color: 'onSurface' },
57
+ props: { visited: true, color: 'primary' },
28
58
  style: {
29
- color: palette.onSurface.main,
59
+ '&:visited': {
60
+ color: colors.schemes.typography.onSurfaceVisited,
61
+ },
62
+ },
63
+ },
64
+ {
65
+ props: { visited: true, color: 'textPrimary' },
66
+ style: {
67
+ '&:visited': {
68
+ color: colors.schemes.typography.onSurfaceVisited,
69
+ },
30
70
  },
31
71
  },
32
72
  {
33
73
  props: { color: 'error' },
34
74
  style: {
35
- color: palette.error.main,
75
+ color: colors.schemes.typography.error,
76
+ },
77
+ },
78
+ {
79
+ props: { visited: true, color: 'error' },
80
+ style: {
81
+ '&:visited': {
82
+ color: colors.schemes.typography.errorVisited,
83
+ },
84
+ },
85
+ },
86
+ {
87
+ props: { visited: true, color: 'primary' },
88
+ style: {
89
+ '&:visited': {
90
+ color: colors.schemes.typography.primaryVisited,
91
+ },
36
92
  },
37
93
  },
94
+ // Underline variants
38
95
  ],
39
96
  },
40
97
  };
@@ -5,6 +5,5 @@ interface M3Menu {
5
5
  styleOverrides?: ComponentsOverrides<Theme>['MuiMenu'];
6
6
  };
7
7
  }
8
- export declare const getMenu: (theme: Theme) => M3Menu;
9
- declare const _default: {};
10
- export default _default;
8
+ export declare const getMenu: (_theme: Theme) => M3Menu;
9
+ export {};
@@ -1,19 +1,14 @@
1
1
  // Copyright 2025 WebPros International GmbH. All rights reserved.
2
- export const getMenu = (theme) => {
3
- const { palette } = theme;
2
+ export const getMenu = (_theme) => {
4
3
  return {
5
4
  MuiMenu: {
6
- defaultProps: { color: 'default' },
7
- styleOverrides: {
8
- root: {},
9
- paper: {
10
- borderRadius: 16,
11
- backgroundColor: palette.surfaceContainerHigh.light,
12
- boxShadow: theme.shadows[2],
13
- color: palette.onSurface.main,
5
+ defaultProps: {
6
+ slotProps: {
7
+ paper: {
8
+ elevation: 3,
9
+ },
14
10
  },
15
11
  },
16
12
  },
17
13
  };
18
14
  };
19
- export default {};
@@ -1,10 +1,8 @@
1
- import { Theme, ComponentsProps, ComponentsOverrides } from '@mui/material';
1
+ import { Theme, ComponentsOverrides } from '@mui/material';
2
2
  interface M3MenuItem {
3
3
  MuiMenuItem: {
4
- defaultProps?: ComponentsProps['MuiMenuItem'];
5
4
  styleOverrides?: ComponentsOverrides<Theme>['MuiMenuItem'];
6
5
  };
7
6
  }
8
7
  export declare const getMenuItem: (theme: Theme) => M3MenuItem;
9
- declare const _default: {};
10
- export default _default;
8
+ export {};
@@ -1,22 +1,22 @@
1
1
  // Copyright 2025 WebPros International GmbH. All rights reserved.
2
- import { menuItemClasses } from '@mui/material';
3
- import { getStateLayerColor, StateLayer } from '../../../utils/getStateLayerColor';
2
+ import { listItemButtonClasses } from '@mui/material';
4
3
  export const getMenuItem = (theme) => {
5
- const { palette } = theme;
4
+ const { colors } = theme;
6
5
  return {
7
6
  MuiMenuItem: {
8
7
  styleOverrides: {
9
8
  root: {
10
- padding: '8px 12px',
11
9
  '&:hover': {
12
- backgroundColor: getStateLayerColor(StateLayer.Hover, palette.secondary.main),
10
+ backgroundColor: colors.stateLayers.base.secondary.opacity08,
13
11
  },
14
- [`&.${menuItemClasses.selected}`]: {
15
- backgroundColor: getStateLayerColor(StateLayer.Active, palette.secondary.main),
12
+ [`&.${listItemButtonClasses.selected}`]: {
13
+ backgroundColor: colors.schemes.base.secondaryContainer,
14
+ },
15
+ [`&.${listItemButtonClasses.focusVisible}`]: {
16
+ backgroundColor: colors.stateLayers.base.secondary.opacity12,
16
17
  },
17
18
  },
18
19
  },
19
20
  },
20
21
  };
21
22
  };
22
- export default {};
@@ -6,6 +6,6 @@ export interface M3Pagination {
6
6
  styleOverrides?: ComponentsOverrides<Theme>['MuiPagination'];
7
7
  };
8
8
  }
9
- export declare const getPagination: (theme: Theme) => M3Pagination;
9
+ export declare const getPagination: (_theme: Theme) => M3Pagination;
10
10
  declare const _default: {};
11
11
  export default _default;
@@ -1,8 +1,16 @@
1
1
  // Copyright 2025 WebPros International GmbH. All rights reserved.
2
- export const getPagination = (theme) => {
3
- const { palette: _ } = theme;
2
+ export const getPagination = (_theme) => {
4
3
  return {
5
- MuiPagination: {},
4
+ MuiPagination: {
5
+ defaultProps: {
6
+ shape: 'rounded',
7
+ },
8
+ styleOverrides: {
9
+ ul: {
10
+ gap: 0,
11
+ },
12
+ },
13
+ },
6
14
  };
7
15
  };
8
16
  export default {};
@@ -1,25 +1,80 @@
1
1
  // Copyright 2025 WebPros International GmbH. All rights reserved.
2
- import { alpha } from '@mui/material';
2
+ import { PaginationFirstIcon, PaginationLastIcon, PaginationPreviousIcon, PaginationNextIcon, } from './components';
3
+ // Figma tokens
4
+ const ITEM_SIZE = 34;
5
+ const BORDER_RADIUS = 17;
3
6
  export const getPaginationItem = (theme) => {
4
- const { palette } = theme;
7
+ const { colors } = theme;
8
+ // Reusable state styles
9
+ const hoverState = {
10
+ backgroundColor: colors.stateLayers.surfaces.onSurface.opacity08,
11
+ };
12
+ const focusActiveState = {
13
+ backgroundColor: colors.stateLayers.surfaces.onSurface.opacity12,
14
+ };
15
+ const disabledState = {
16
+ opacity: 0.38,
17
+ color: colors.schemes.surfaces.onSurfaceVariant,
18
+ };
19
+ // Navigation button styles (prev, next, first, last)
20
+ const navigationButtonStyles = {
21
+ color: colors.schemes.surfaces.onSurface,
22
+ '&:hover': hoverState,
23
+ '&.Mui-focusVisible': focusActiveState,
24
+ '&:active': focusActiveState,
25
+ '&.Mui-disabled': disabledState,
26
+ };
5
27
  return {
6
28
  MuiPaginationItem: {
7
- styleOverrides: {
8
- rounded: {
9
- borderRadius: 10,
29
+ defaultProps: {
30
+ slots: {
31
+ first: PaginationFirstIcon,
32
+ last: PaginationLastIcon,
33
+ previous: PaginationPreviousIcon,
34
+ next: PaginationNextIcon,
10
35
  },
11
- page: {
12
- fontWeight: 500,
36
+ },
37
+ styleOverrides: {
38
+ root: {
39
+ minWidth: ITEM_SIZE,
40
+ height: ITEM_SIZE,
41
+ margin: '0 2px',
42
+ padding: '7px 6px',
43
+ borderRadius: BORDER_RADIUS,
44
+ fontSize: 14,
45
+ fontWeight: 400,
46
+ lineHeight: '20px',
47
+ letterSpacing: 0.5,
48
+ color: colors.schemes.surfaces.onSurfaceVariant,
49
+ '&:hover': hoverState,
50
+ '&.Mui-focusVisible': focusActiveState,
51
+ '&:active': focusActiveState,
13
52
  '&.Mui-selected': {
14
- backgroundColor: alpha(palette.primary.main, 0.08),
53
+ backgroundColor: colors.schemes.base.primaryContainer,
54
+ color: colors.schemes.base.onPrimaryContainer,
15
55
  '&:hover': {
16
- backgroundColor: alpha(palette.primary.main, 0.12),
56
+ backgroundColor: colors.blendSchemaWithStateLayer('schemes.base.primaryContainer', 'stateLayers.base.onPrimaryContainer.opacity08'),
57
+ },
58
+ '&.Mui-focusVisible, &:active': {
59
+ backgroundColor: colors.blendSchemaWithStateLayer('schemes.base.primaryContainer', 'stateLayers.base.onPrimaryContainer.opacity12'),
17
60
  },
18
61
  },
62
+ '&.Mui-disabled': disabledState,
63
+ },
64
+ ellipsis: {
65
+ minWidth: ITEM_SIZE,
66
+ height: ITEM_SIZE,
67
+ display: 'flex',
68
+ alignItems: 'center',
69
+ justifyContent: 'center',
70
+ color: colors.schemes.surfaces.onSurfaceVariant,
71
+ cursor: 'default',
19
72
  '&:hover': {
20
- backgroundColor: alpha(palette.primary.main, 0.08),
73
+ backgroundColor: 'transparent',
21
74
  },
22
75
  },
76
+ previousNext: navigationButtonStyles,
77
+ firstLast: navigationButtonStyles,
23
78
  },
24
79
  },
25
80
  };
@@ -0,0 +1,4 @@
1
+ export declare const PaginationFirstIcon: () => import("react/jsx-runtime").JSX.Element;
2
+ export declare const PaginationLastIcon: () => import("react/jsx-runtime").JSX.Element;
3
+ export declare const PaginationPreviousIcon: () => import("react/jsx-runtime").JSX.Element;
4
+ export declare const PaginationNextIcon: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
3
+ import { CaretLeftIcon, CaretRightIcon, SkipBackIcon, SkipForwardIcon, } from '@phosphor-icons/react';
4
+ // Navigation icons for PaginationItem
5
+ export const PaginationFirstIcon = () => _jsx(SkipBackIcon, { size: 20 });
6
+ export const PaginationLastIcon = () => _jsx(SkipForwardIcon, { size: 20 });
7
+ export const PaginationPreviousIcon = () => _jsx(CaretLeftIcon, { size: 20 });
8
+ export const PaginationNextIcon = () => _jsx(CaretRightIcon, { size: 20 });
@@ -0,0 +1 @@
1
+ export * from './PaginationIcons';
@@ -0,0 +1,2 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ export * from './PaginationIcons';
@@ -1,8 +1,14 @@
1
- import { Theme, ComponentsOverrides, ComponentsProps } from '@mui/material';
1
+ import { Theme, ComponentsOverrides, ComponentsProps, ComponentsVariants } from '@mui/material';
2
+ import { ComponentWithViewContextOwnProps } from '../../../shared/viewContext';
3
+ declare module '@mui/material/Tab' {
4
+ interface TabOwnProps extends ComponentWithViewContextOwnProps {
5
+ }
6
+ }
2
7
  interface M3Tab {
3
8
  MuiTab: {
4
9
  defaultProps?: ComponentsProps['MuiTab'];
5
10
  styleOverrides?: ComponentsOverrides<Theme>['MuiTab'];
11
+ variants?: ComponentsVariants['MuiTab'];
6
12
  };
7
13
  }
8
14
  export declare const getTab: (theme: Theme) => M3Tab;
@@ -1,18 +1,57 @@
1
- export const getTab = (theme) => {
2
- const { palette } = theme;
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ import { touchRippleClasses, tabClasses, } from '@mui/material';
3
+ import { rippleEnterKeyframe } from '../../../shared/rippleEnterKeyframe';
4
+ const getStylesByContext = (theme, viewContext) => {
5
+ const { colors, typography } = theme;
6
+ const isInverseView = viewContext === 'inverse';
7
+ const schemesPath = isInverseView ? 'inverseSchemes' : 'schemes';
8
+ const stateLayersPath = isInverseView ? 'inverseStateLayers' : 'stateLayers';
3
9
  return {
4
- MuiTab: {
5
- styleOverrides: {
6
- root: {
7
- textTransform: 'capitalize',
8
- fontSize: '0.875rem',
9
- fontWeight: 500,
10
- lineHeight: '1.25rem',
11
- letterSpacing: '0.006rem',
12
- color: palette.onSurfaceVariant.main,
10
+ props: { viewContext },
11
+ style: Object.assign(Object.assign({}, typography.LabelMedium), { textTransform: 'none', color: colors[schemesPath].surfaces.onSurfaceVariant, opacity: 1, padding: '18px 12px', minHeight: 'auto', minWidth: 'auto', borderRadius: 10, '&:hover': {
12
+ backgroundColor: colors[stateLayersPath].surfaces.onSurface.opacity08,
13
+ color: colors[schemesPath].surfaces.onSurface,
14
+ }, '&:focus': {
15
+ backgroundColor: colors[stateLayersPath].surfaces.onSurface.opacity12,
16
+ color: colors[schemesPath].surfaces.onSurface,
17
+ }, '&:active': {
18
+ backgroundColor: colors[stateLayersPath].surfaces.onSurface.opacity12,
19
+ color: colors[schemesPath].surfaces.onSurface,
20
+ }, [`&.${tabClasses.selected}`]: {
21
+ color: colors[schemesPath].base.primary,
22
+ '&:hover': {
23
+ backgroundColor: colors[stateLayersPath].base.primary.opacity08,
13
24
  },
14
- },
15
- },
25
+ '&:focus': {
26
+ backgroundColor: colors[stateLayersPath].base.primary.opacity12,
27
+ },
28
+ '&:active': {
29
+ backgroundColor: colors[stateLayersPath].base.primary.opacity12,
30
+ },
31
+ [`& .${touchRippleClasses.ripple}.${touchRippleClasses.rippleVisible}`]: {
32
+ color: colors[stateLayersPath].base.primary.opacity12,
33
+ },
34
+ }, [`&.${tabClasses.disabled}`]: {
35
+ color: colors[stateLayersPath].surfaces.onSurface.opacity38,
36
+ opacity: 1,
37
+ }, [`& .${touchRippleClasses.ripple}.${touchRippleClasses.rippleVisible}`]: {
38
+ color: colors[stateLayersPath].surfaces.onSurface.opacity12,
39
+ opacity: 1,
40
+ animationName: rippleEnterKeyframe,
41
+ } }),
16
42
  };
17
43
  };
44
+ export const getTab = (theme) => ({
45
+ MuiTab: {
46
+ styleOverrides: {
47
+ root: {},
48
+ icon: {
49
+ width: 20,
50
+ height: 20,
51
+ marginBottom: 4,
52
+ },
53
+ },
54
+ variants: [getStylesByContext(theme), getStylesByContext(theme, 'inverse')],
55
+ },
56
+ });
18
57
  export default {};
@@ -0,0 +1,3 @@
1
+ import './Tabs.theme';
2
+ export declare const Tabs: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TabsTypeMap<{}, "div">>;
3
+ export type TabsComponentType = typeof Tabs;
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ import { Tabs as MuiTabs } from '@mui/material';
3
+ import './Tabs.theme';
4
+ export const Tabs = MuiTabs;
@@ -0,0 +1,16 @@
1
+ import { Theme, ComponentsOverrides, ComponentsProps, ComponentsVariants } from '@mui/material';
2
+ import { ComponentWithViewContextOwnProps } from '../../../shared/viewContext';
3
+ declare module '@mui/material/Tabs' {
4
+ interface TabsOwnProps extends ComponentWithViewContextOwnProps {
5
+ }
6
+ }
7
+ interface M3Tabs {
8
+ MuiTabs: {
9
+ defaultProps?: ComponentsProps['MuiTabs'];
10
+ styleOverrides?: ComponentsOverrides<Theme>['MuiTabs'];
11
+ variants?: ComponentsVariants['MuiTabs'];
12
+ };
13
+ }
14
+ export declare const getTabs: (theme: Theme) => M3Tabs;
15
+ declare const _default: {};
16
+ export default _default;
@@ -0,0 +1,55 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
3
+ import { tabsClasses, tabClasses, } from '@mui/material';
4
+ const getStylesByContext = (theme, viewContext) => {
5
+ const { colors } = theme;
6
+ const isInverseView = viewContext === 'inverse';
7
+ const schemesPath = isInverseView ? 'inverseSchemes' : 'schemes';
8
+ return {
9
+ props: { viewContext },
10
+ style: {
11
+ [`& .${tabsClasses.indicator}Span`]: {
12
+ width: '100%',
13
+ backgroundColor: colors[schemesPath].base.primary,
14
+ },
15
+ },
16
+ };
17
+ };
18
+ export const getTabs = (theme) => ({
19
+ MuiTabs: {
20
+ defaultProps: {
21
+ slotProps: {
22
+ indicator: {
23
+ children: _jsx("span", { className: `${tabsClasses.indicator}Span` }),
24
+ },
25
+ },
26
+ },
27
+ styleOverrides: {
28
+ root: {
29
+ [`&.${tabsClasses.vertical}`]: {
30
+ [`& .${tabClasses.root}`]: {
31
+ padding: '10px 52px 10px 10px',
32
+ flexDirection: 'row',
33
+ justifyContent: 'flex-start',
34
+ textAlign: 'left',
35
+ [`& .${tabClasses.icon}`]: {
36
+ marginBottom: 0,
37
+ },
38
+ },
39
+ [`& .${tabsClasses.indicator}`]: {
40
+ width: 3,
41
+ padding: '10px 0',
42
+ },
43
+ },
44
+ },
45
+ indicator: {
46
+ display: 'flex',
47
+ height: 3,
48
+ padding: '0 12px',
49
+ backgroundColor: 'transparent',
50
+ },
51
+ },
52
+ variants: [getStylesByContext(theme), getStylesByContext(theme, 'inverse')],
53
+ },
54
+ });
55
+ export default {};
@@ -0,0 +1 @@
1
+ export * from './Tabs.theme';
@@ -0,0 +1,2 @@
1
+ // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ export * from './Tabs.theme';
@@ -1,39 +1,71 @@
1
1
  // Copyright 2025 WebPros International GmbH. All rights reserved.
2
+ const BORDER_RADIUS = 6;
3
+ const GAP = 8;
2
4
  export const getAccordion = (theme) => {
3
- const { palette } = theme;
5
+ const { colors } = theme;
4
6
  return {
5
7
  MuiAccordion: {
8
+ defaultProps: {
9
+ disableGutters: true,
10
+ square: false,
11
+ },
6
12
  styleOverrides: {
7
13
  root: {
8
14
  boxShadow: 'none',
9
- borderTop: `1px solid ${palette.outlineVariant.main}`,
10
- borderBottom: `1px solid ${palette.outlineVariant.main}`,
11
- borderRadius: 0,
12
- color: palette.onBackground.main,
13
- backgroundColor: 'none',
15
+ backgroundColor: 'transparent',
16
+ color: colors.schemes.surfaces.onSurfaceVariant,
17
+ '&:before': {
18
+ display: 'none',
19
+ },
20
+ borderRadius: BORDER_RADIUS,
21
+ '&:not(:last-of-type)': {
22
+ borderBottom: `1px solid ${colors.schemes.surfaces.surfaceContainerLowest}`,
23
+ },
14
24
  '&:first-of-type': {
15
- borderRadius: 0,
25
+ borderTopLeftRadius: BORDER_RADIUS,
26
+ borderTopRightRadius: BORDER_RADIUS,
16
27
  },
17
28
  '&:last-of-type': {
29
+ borderBottomLeftRadius: BORDER_RADIUS,
30
+ borderBottomRightRadius: BORDER_RADIUS,
31
+ },
32
+ '&:not(:first-of-type):not(:last-of-type)': {
18
33
  borderRadius: 0,
19
34
  },
20
- '&:before': {
21
- backgroundColor: palette.surfaceBright.main,
22
- display: 'none',
35
+ '&.Mui-expanded': {
36
+ marginTop: GAP,
37
+ marginBottom: GAP,
38
+ borderBottom: 'none',
39
+ '&:first-of-type': {
40
+ marginTop: 0,
41
+ },
42
+ '&:last-of-type': {
43
+ marginBottom: 0,
44
+ },
45
+ },
46
+ '&.Mui-expanded + &': {
47
+ borderTop: 'none',
23
48
  },
24
49
  '&.Mui-disabled': {
25
- backgroundColor: palette.inverseOnSurface.main,
26
- color: palette.inverseSurface.main,
27
- border: `0px solid ${palette.outlineVariant.main}`,
28
- },
29
- '& .MuiAccordionSummary-root': {
30
- fontSize: theme.typography.fontSize,
31
- fontWeight: 700,
32
- paddingLeft: 2,
33
- paddingRight: 2,
34
- },
35
- '& .MuiAccordionSummary-root > .MuiAccordionSummary-expandIconWrapper ': {
36
- color: palette.onBackground.main,
50
+ backgroundColor: colors.schemes.surfaces.surfaceContainerLow,
51
+ },
52
+ '&:not(:first-of-type):not(:last-of-type) .MuiAccordionSummary-root': {
53
+ borderRadius: 0,
54
+ },
55
+ '&:first-of-type .MuiAccordionSummary-root': {
56
+ borderBottomLeftRadius: 0,
57
+ borderBottomRightRadius: 0,
58
+ },
59
+ '&:last-of-type:not(.Mui-expanded) .MuiAccordionSummary-root': {
60
+ borderTopLeftRadius: 0,
61
+ borderTopRightRadius: 0,
62
+ },
63
+ '&:last-of-type.Mui-expanded .MuiAccordionSummary-root': {
64
+ borderRadius: 0,
65
+ },
66
+ '&:not(:last-of-type) .MuiAccordionDetails-root': {
67
+ borderBottomLeftRadius: 0,
68
+ borderBottomRightRadius: 0,
37
69
  },
38
70
  },
39
71
  },
@@ -0,0 +1,10 @@
1
+ import { Theme, ComponentsProps, ComponentsOverrides } from '@mui/material';
2
+ interface M3AccordionDetails {
3
+ MuiAccordionDetails: {
4
+ defaultProps?: ComponentsProps['MuiAccordionDetails'];
5
+ styleOverrides?: ComponentsOverrides<Theme>['MuiAccordionDetails'];
6
+ };
7
+ }
8
+ export declare const getAccordionDetails: (theme: Theme) => M3AccordionDetails;
9
+ declare const _default: {};
10
+ export default _default;