@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.
- package/dist/package.json +21 -11
- package/dist/src/components/data-display/Avatar/Avatar.theme.js +11 -8
- package/dist/src/components/data-display/Badge/Badge.theme.d.ts +4 -1
- package/dist/src/components/data-display/Badge/Badge.theme.js +216 -55
- package/dist/src/components/data-display/Chip/Chip.theme.d.ts +17 -3
- package/dist/src/components/data-display/Chip/Chip.theme.js +133 -477
- package/dist/src/components/data-display/Chip/get-chip-colors-map.d.ts +42 -0
- package/dist/src/components/data-display/Chip/get-chip-colors-map.js +253 -0
- package/dist/src/components/data-display/Divider/Divider.theme.d.ts +6 -1
- package/dist/src/components/data-display/Divider/Divider.theme.js +60 -3
- package/dist/src/components/data-display/List/List.theme.d.ts +1 -1
- package/dist/src/components/data-display/List/List.theme.js +1 -1
- package/dist/src/components/data-display/ListItem/ListItem.theme.d.ts +1 -1
- package/dist/src/components/data-display/ListItem/ListItem.theme.js +16 -8
- package/dist/src/components/data-display/ListItemAvatar/ListItemAvatar.theme.js +1 -2
- package/dist/src/components/data-display/ListItemButton/ListItemButton.theme.d.ts +0 -5
- package/dist/src/components/data-display/ListItemButton/ListItemButton.theme.js +14 -48
- package/dist/src/components/data-display/ListItemIcon/ListItemIcon.theme.js +4 -4
- package/dist/src/components/data-display/ListSubheader/ListSubheader.theme.d.ts +1 -1
- package/dist/src/components/data-display/ListSubheader/ListSubheader.theme.js +2 -5
- package/dist/src/components/data-display/Skeleton/Skeleton.d.ts +3 -0
- package/dist/src/components/data-display/Skeleton/Skeleton.js +4 -0
- package/dist/src/components/data-display/Skeleton/Skeleton.theme.d.ts +15 -0
- package/dist/src/components/data-display/Skeleton/Skeleton.theme.js +31 -0
- package/dist/src/components/data-display/Skeleton/index.d.ts +1 -0
- package/dist/src/components/data-display/Skeleton/index.js +2 -0
- package/dist/src/components/data-display/Tooltip/Tooltip.theme.js +7 -9
- package/dist/src/components/data-display/Typography/Typography.theme.d.ts +19 -26
- package/dist/src/components/data-display/Typography/Typography.theme.js +7 -163
- package/dist/src/components/feedback/Alert/Alert.theme.d.ts +12 -0
- package/dist/src/components/feedback/Alert/Alert.theme.js +61 -45
- package/dist/src/components/feedback/CircularProgress/CircularProgress.theme.d.ts +6 -1
- package/dist/src/components/feedback/CircularProgress/CircularProgress.theme.js +49 -8
- package/dist/src/components/feedback/Dialog/Dialog.theme.d.ts +5 -0
- package/dist/src/components/feedback/Dialog/Dialog.theme.js +43 -14
- package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.d.ts +6 -1
- package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.js +91 -9
- package/dist/src/components/feedback/Snackbar/Snackbar.theme.d.ts +4 -4
- package/dist/src/components/feedback/Snackbar/Snackbar.theme.js +11 -3
- package/dist/src/components/index.d.ts +10 -1
- package/dist/src/components/index.js +10 -1
- package/dist/src/components/inputs/Autocomplete/Autocomplete.theme.d.ts +1 -1
- package/dist/src/components/inputs/Autocomplete/Autocomplete.theme.js +23 -51
- package/dist/src/components/inputs/Autocomplete/components/AutocompleteCaretDownIcon.d.ts +1 -0
- package/dist/src/components/inputs/Autocomplete/components/{AutocompletePopupIcon.js → AutocompleteCaretDownIcon.js} +1 -1
- package/dist/src/components/inputs/Autocomplete/components/AutocompleteXIcon.d.ts +1 -0
- package/dist/src/components/inputs/Autocomplete/components/AutocompleteXIcon.js +4 -0
- package/dist/src/components/inputs/Button/Button.theme.d.ts +4 -0
- package/dist/src/components/inputs/Button/Button.theme.js +93 -226
- package/dist/src/components/inputs/Button/get-button-colors-map.d.ts +24 -0
- package/dist/src/components/inputs/Button/get-button-colors-map.js +211 -0
- package/dist/src/components/inputs/Checkbox/Checkbox.theme.d.ts +7 -2
- package/dist/src/components/inputs/Checkbox/Checkbox.theme.js +57 -7
- package/dist/src/components/inputs/Fab/Fab.theme.d.ts +5 -9
- package/dist/src/components/inputs/Fab/Fab.theme.js +27 -98
- package/dist/src/components/inputs/FormHelperText/FormHelperText.d.ts +2 -0
- package/dist/src/components/inputs/FormHelperText/FormHelperText.js +3 -0
- package/dist/src/components/inputs/FormHelperText/FormHelperText.theme.d.ts +7 -0
- package/dist/src/components/inputs/FormHelperText/FormHelperText.theme.js +8 -0
- package/dist/src/components/inputs/FormHelperText/index.d.ts +1 -0
- package/dist/src/components/inputs/FormHelperText/index.js +2 -0
- package/dist/src/components/inputs/FormLabel/FormLabel.d.ts +2 -0
- package/dist/src/components/inputs/FormLabel/FormLabel.js +3 -0
- package/dist/src/components/inputs/FormLabel/FormLabel.theme.d.ts +7 -0
- package/dist/src/components/inputs/FormLabel/FormLabel.theme.js +8 -0
- package/dist/src/components/inputs/FormLabel/index.d.ts +1 -0
- package/dist/src/components/inputs/FormLabel/index.js +2 -0
- package/dist/src/components/inputs/IconButton/IconButton.theme.d.ts +3 -2
- package/dist/src/components/inputs/IconButton/IconButton.theme.js +90 -95
- package/dist/src/components/inputs/InputBase/InputBase.theme.d.ts +9 -26
- package/dist/src/components/inputs/InputBase/InputBase.theme.js +2 -64
- package/dist/src/components/inputs/InputLabel/InputLabel.theme.d.ts +7 -4
- package/dist/src/components/inputs/InputLabel/InputLabel.theme.js +26 -12
- package/dist/src/components/inputs/OutlinedInput/OutlinedInput.theme.d.ts +8 -0
- package/dist/src/components/inputs/OutlinedInput/OutlinedInput.theme.js +67 -0
- package/dist/src/components/inputs/OutlinedInput/index.d.ts +1 -0
- package/dist/src/components/inputs/OutlinedInput/index.js +2 -0
- package/dist/src/components/inputs/Radio/Radio.d.ts +4 -0
- package/dist/src/components/inputs/Radio/Radio.js +4 -0
- package/dist/src/components/inputs/Radio/Radio.theme.d.ts +11 -0
- package/dist/src/components/inputs/Radio/Radio.theme.js +35 -0
- package/dist/src/components/inputs/Radio/index.d.ts +1 -0
- package/dist/src/components/{navigation/TabList → inputs/Radio}/index.js +1 -1
- package/dist/src/components/inputs/Select/Select.theme.d.ts +2 -3
- package/dist/src/components/inputs/Select/Select.theme.js +6 -33
- package/dist/src/components/inputs/Switch/Switch.theme.js +125 -49
- package/dist/src/components/inputs/TextField/TextField.theme.d.ts +2 -3
- package/dist/src/components/inputs/TextField/TextField.theme.js +2 -26
- package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.js +5 -0
- package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.theme.d.ts +11 -0
- package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.theme.js +23 -0
- package/dist/src/components/navigation/Breadcrumbs/Crumb.d.ts +10 -0
- package/dist/src/components/navigation/Breadcrumbs/Crumb.js +10 -0
- package/dist/src/components/navigation/Breadcrumbs/index.d.ts +1 -0
- package/dist/src/components/navigation/Breadcrumbs/index.js +2 -0
- package/dist/src/components/navigation/Drawer/Drawer.theme.d.ts +1 -1
- package/dist/src/components/navigation/Drawer/Drawer.theme.js +50 -6
- package/dist/src/components/navigation/Link/Link.theme.d.ts +11 -2
- package/dist/src/components/navigation/Link/Link.theme.js +66 -9
- package/dist/src/components/navigation/Menu/Menu.theme.d.ts +2 -3
- package/dist/src/components/navigation/Menu/Menu.theme.js +6 -11
- package/dist/src/components/navigation/MenuItem/MenuItem.theme.d.ts +2 -4
- package/dist/src/components/navigation/MenuItem/MenuItem.theme.js +8 -8
- package/dist/src/components/navigation/Pagination/Pagination.theme.d.ts +1 -1
- package/dist/src/components/navigation/Pagination/Pagination.theme.js +11 -3
- package/dist/src/components/navigation/PaginationItem/PaginationItem.theme.js +65 -10
- package/dist/src/components/navigation/PaginationItem/components/PaginationIcons.d.ts +4 -0
- package/dist/src/components/navigation/PaginationItem/components/PaginationIcons.js +8 -0
- package/dist/src/components/navigation/PaginationItem/components/index.d.ts +1 -0
- package/dist/src/components/navigation/PaginationItem/components/index.js +2 -0
- package/dist/src/components/navigation/Tab/Tab.theme.d.ts +7 -1
- package/dist/src/components/navigation/Tab/Tab.theme.js +52 -13
- package/dist/src/components/navigation/Tabs/Tabs.d.ts +3 -0
- package/dist/src/components/navigation/Tabs/Tabs.js +4 -0
- package/dist/src/components/navigation/Tabs/Tabs.theme.d.ts +16 -0
- package/dist/src/components/navigation/Tabs/Tabs.theme.js +55 -0
- package/dist/src/components/navigation/Tabs/index.d.ts +1 -0
- package/dist/src/components/navigation/Tabs/index.js +2 -0
- package/dist/src/components/surfaces/Accordion/Accordion.theme.js +54 -22
- package/dist/src/components/surfaces/Accordion/AccordionDetails.theme.d.ts +10 -0
- package/dist/src/components/surfaces/Accordion/AccordionDetails.theme.js +19 -0
- package/dist/src/components/surfaces/Accordion/AccordionSummary.theme.d.ts +10 -0
- package/dist/src/components/surfaces/Accordion/AccordionSummary.theme.js +37 -0
- package/dist/src/components/surfaces/Accordion/index.d.ts +2 -0
- package/dist/src/components/surfaces/Accordion/index.js +2 -0
- package/dist/src/components/surfaces/Card/Card.theme.js +1 -1
- package/dist/src/components/surfaces/Paper/Paper.theme.d.ts +16 -1
- package/dist/src/components/surfaces/Paper/Paper.theme.js +21 -7
- package/dist/src/components/surfaces/Paper/Paper.tokens.d.ts +8 -0
- package/dist/src/components/surfaces/Paper/Paper.tokens.js +50 -0
- package/dist/src/components/surfaces/Paper/Paper.variants.d.ts +4 -0
- package/dist/src/components/surfaces/Paper/Paper.variants.js +3 -0
- package/dist/src/components/surfaces/Popover/Popover.d.ts +4 -0
- package/dist/src/components/surfaces/Popover/Popover.js +4 -0
- package/dist/src/components/surfaces/Popover/Popover.theme.d.ts +9 -0
- package/dist/src/components/surfaces/Popover/Popover.theme.js +14 -0
- package/dist/src/components/surfaces/Popover/index.d.ts +1 -0
- package/dist/src/components/surfaces/Popover/index.js +2 -0
- package/dist/src/components/utils/Backdrop/Backdrop.d.ts +3 -0
- package/dist/src/components/utils/Backdrop/Backdrop.js +4 -0
- package/dist/src/components/utils/Backdrop/Backdrop.theme.d.ts +11 -0
- package/dist/src/components/utils/Backdrop/Backdrop.theme.js +17 -0
- package/dist/src/components/utils/Backdrop/index.d.ts +1 -0
- package/dist/src/components/utils/Backdrop/index.js +2 -0
- package/dist/src/icons/index.d.ts +4 -0
- package/dist/src/icons/index.js +12 -0
- package/dist/src/providers/ThemeModeProvider.d.ts +1 -2
- package/dist/src/providers/ThemeModeProvider.js +2 -2
- package/dist/src/providers/WebProsMuiThemeProvider.js +1 -1
- package/dist/src/providers/WebProsTheme.d.ts +1 -0
- package/dist/src/providers/WebProsTheme.js +11 -5
- package/dist/src/shared/rippleEnterKeyframe.d.ts +6 -0
- package/dist/src/shared/rippleEnterKeyframe.js +12 -0
- package/dist/src/shared/viewContext/index.d.ts +1 -0
- package/dist/src/shared/viewContext/index.js +2 -0
- package/dist/src/shared/viewContext/viewContext.d.ts +4 -0
- package/dist/src/shared/viewContext/viewContext.js +2 -0
- package/dist/src/style/additional-color-palette.d.ts +1 -3
- package/dist/src/style/additional-color-palette.js +4 -7
- package/dist/src/style/custom-color-palette.js +51 -53
- package/dist/src/tokens/ThemeColorTokens.d.ts +11 -93
- package/dist/src/tokens/ThemeColorTokens.js +4 -168
- package/dist/src/tokens/ThemeScheme.d.ts +0 -3
- package/dist/src/tokens/ThemeScheme.js +0 -2
- package/dist/src/tokens/colors/Dark.d.ts +16 -0
- package/dist/src/tokens/colors/Dark.js +1422 -0
- package/dist/src/tokens/colors/Light.d.ts +16 -0
- package/dist/src/tokens/colors/Light.js +1392 -0
- package/dist/src/tokens/colors/index.d.ts +7 -0
- package/dist/src/tokens/colors/index.js +4 -0
- package/dist/src/tokens/colors/inverseSchemas.d.ts +40 -0
- package/dist/src/tokens/colors/inverseSchemas.js +3 -0
- package/dist/src/tokens/colors/inverseSchemes.d.ts +53 -0
- package/dist/src/tokens/colors/inverseSchemes.js +3 -0
- package/dist/src/tokens/colors/inverseStateLayers.d.ts +188 -0
- package/dist/src/tokens/colors/inverseStateLayers.js +3 -0
- package/dist/src/tokens/colors/schemas.d.ts +111 -0
- package/dist/src/tokens/colors/schemas.js +3 -0
- package/dist/src/tokens/colors/schemes.d.ts +111 -0
- package/dist/src/tokens/colors/schemes.js +3 -0
- package/dist/src/tokens/colors/stateLayers.d.ts +456 -0
- package/dist/src/tokens/colors/stateLayers.js +3 -0
- package/dist/src/tokens/colors/types.d.ts +9 -0
- package/dist/src/tokens/colors/types.js +2 -0
- package/dist/src/tokens/index.d.ts +6 -2
- package/dist/src/tokens/index.js +2 -1
- package/dist/src/tokens/legacyColors/LegacyDark.d.ts +2 -0
- package/dist/src/tokens/legacyColors/LegacyDark.js +88 -0
- package/dist/src/tokens/legacyColors/LegacyLight.d.ts +2 -0
- package/dist/src/tokens/legacyColors/LegacyLight.js +86 -0
- package/dist/src/tokens/legacyColors/ThemeColorTokensLegacy.d.ts +74 -0
- package/dist/src/tokens/legacyColors/ThemeColorTokensLegacy.js +2 -0
- package/dist/src/tokens/legacyColors/additionalColors/additionalColors.d.ts +21 -0
- package/dist/src/tokens/legacyColors/additionalColors/additionalColors.js +2 -0
- package/dist/src/tokens/{additionalColors → legacyColors/additionalColors}/index.d.ts +1 -0
- package/dist/src/tokens/{additionalColors → legacyColors/additionalColors}/index.js +1 -0
- package/dist/src/tokens/legacyColors/index.d.ts +2 -0
- package/dist/src/tokens/legacyColors/index.js +3 -0
- package/dist/src/tokens/shadows/index.d.ts +12 -0
- package/dist/src/tokens/shadows/index.js +112 -0
- package/dist/src/tokens/typography/index.d.ts +2 -0
- package/dist/src/tokens/typography/index.js +4 -0
- package/dist/src/tokens/typography/typescale.d.ts +28 -0
- package/dist/src/tokens/typography/typescale.js +26 -0
- package/dist/src/tokens/typography/typography.d.ts +2 -0
- package/dist/src/tokens/typography/typography.js +156 -0
- package/dist/src/utils/createIcon.d.ts +12 -0
- package/dist/src/utils/createIcon.js +94 -0
- package/dist/src/utils/flatten.d.ts +1 -0
- package/dist/src/utils/flatten.js +12 -0
- package/dist/src/utils/getMUIComponents.js +2 -2
- package/dist/src/utils/getMUIPalette.d.ts +6 -11
- package/dist/src/utils/getMUIPalette.js +49 -25
- package/dist/src/utils/getMUIThemeCustoimzationType.d.ts +31 -0
- package/dist/src/utils/getMUIThemeCustoimzationType.js +2 -0
- package/dist/src/utils/getMUITypography.d.ts +2 -0
- package/dist/src/utils/getMUITypography.js +5 -0
- package/dist/src/utils/getStateLayerColor.d.ts +37 -0
- package/dist/src/utils/getStateLayerColor.js +43 -1
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/index.js +1 -1
- package/dist/src/utils/patchMUIShadows.js +4 -3
- package/package.json +21 -11
- package/dist/src/components/inputs/Autocomplete/components/AutocompletePopupIcon.d.ts +0 -1
- package/dist/src/components/navigation/PaginationItem/PaginationItem.d.ts +0 -3
- package/dist/src/components/navigation/PaginationItem/PaginationItem.js +0 -4
- package/dist/src/components/navigation/TabList/TabList.d.ts +0 -3
- package/dist/src/components/navigation/TabList/TabList.js +0 -4
- package/dist/src/components/navigation/TabList/TabList.theme.d.ts +0 -10
- package/dist/src/components/navigation/TabList/TabList.theme.js +0 -17
- package/dist/src/components/navigation/TabList/index.d.ts +0 -1
- package/dist/src/hooks/useTonalPalette.d.ts +0 -3
- package/dist/src/hooks/useTonalPalette.js +0 -32
- package/dist/src/providers/ThemeSchemeProvider.d.ts +0 -12
- package/dist/src/providers/ThemeSchemeProvider.js +0 -29
- package/dist/src/tokens/TonalPalette.d.ts +0 -10
- package/dist/src/tokens/TonalPalette.js +0 -10
- package/dist/src/utils/generateTokens.d.ts +0 -4
- package/dist/src/utils/generateTokens.js +0 -107
- /package/dist/src/tokens/{Tone.d.ts → legacyColors/Tone.d.ts} +0 -0
- /package/dist/src/tokens/{Tone.js → legacyColors/Tone.js} +0 -0
|
@@ -1,13 +1,95 @@
|
|
|
1
|
-
export const getLinearProgress = (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export const getLinearProgress = (theme) => {
|
|
2
|
+
const getLinearProgressColors = (color, viewContext) => {
|
|
3
|
+
const isInverseView = viewContext === 'inverse';
|
|
4
|
+
const { colors } = theme;
|
|
5
|
+
const schemesPath = isInverseView ? 'inverseSchemes' : 'schemes';
|
|
6
|
+
const layersPath = isInverseView ? 'inverseStateLayers' : 'stateLayers';
|
|
7
|
+
const palette = colors[schemesPath];
|
|
8
|
+
const layers = colors[layersPath];
|
|
9
|
+
const colorMap = {
|
|
10
|
+
primary: {
|
|
11
|
+
primary: palette.base.primary,
|
|
12
|
+
secondary: layers.base.primary.opacity28,
|
|
13
|
+
},
|
|
14
|
+
secondary: {
|
|
15
|
+
primary: palette.base.secondary,
|
|
16
|
+
secondary: layers.base.secondary.opacity12,
|
|
17
|
+
},
|
|
18
|
+
error: {
|
|
19
|
+
primary: palette.status.error,
|
|
20
|
+
secondary: layers.status.error.opacity28,
|
|
21
|
+
},
|
|
22
|
+
info: {
|
|
23
|
+
primary: palette.status.info,
|
|
24
|
+
secondary: layers.status.info.opacity28,
|
|
25
|
+
},
|
|
26
|
+
success: {
|
|
27
|
+
primary: palette.status.success,
|
|
28
|
+
secondary: layers.status.success.opacity28,
|
|
29
|
+
},
|
|
30
|
+
warning: {
|
|
31
|
+
primary: palette.status.warning,
|
|
32
|
+
secondary: layers.status.warning.opacity28,
|
|
33
|
+
},
|
|
34
|
+
inherit: {
|
|
35
|
+
primary: palette.surfaces.onSurface,
|
|
36
|
+
secondary: layers.surfaces.onSurface.opacity28,
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
const simpleVariants = ['determinate', 'indeterminate', 'query'].map((variant) => ({
|
|
40
|
+
props: { color, viewContext, variant },
|
|
41
|
+
style: {
|
|
42
|
+
background: colorMap[color].secondary,
|
|
6
43
|
'.MuiLinearProgress-bar': {
|
|
7
|
-
|
|
8
|
-
|
|
44
|
+
background: colorMap[color].primary,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
}));
|
|
48
|
+
return [
|
|
49
|
+
...simpleVariants,
|
|
50
|
+
{
|
|
51
|
+
props: { color, viewContext, variant: 'buffer' },
|
|
52
|
+
style: {
|
|
53
|
+
'.MuiLinearProgress-bar1': {
|
|
54
|
+
background: colorMap[color].primary,
|
|
55
|
+
},
|
|
56
|
+
'.MuiLinearProgress-bar2': {
|
|
57
|
+
background: colorMap[color].secondary,
|
|
58
|
+
},
|
|
59
|
+
'.MuiLinearProgress-dashed': {
|
|
60
|
+
background: colorMap[color].secondary,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
];
|
|
65
|
+
};
|
|
66
|
+
return {
|
|
67
|
+
MuiLinearProgress: {
|
|
68
|
+
styleOverrides: {
|
|
69
|
+
root: {
|
|
70
|
+
borderRadius: '2px',
|
|
71
|
+
'.MuiLinearProgress-bar': {
|
|
72
|
+
strokeLinecap: 'round',
|
|
73
|
+
borderRadius: '2px',
|
|
74
|
+
},
|
|
9
75
|
},
|
|
10
76
|
},
|
|
77
|
+
variants: [
|
|
78
|
+
...getLinearProgressColors('primary'),
|
|
79
|
+
...getLinearProgressColors('secondary'),
|
|
80
|
+
...getLinearProgressColors('error'),
|
|
81
|
+
...getLinearProgressColors('info'),
|
|
82
|
+
...getLinearProgressColors('success'),
|
|
83
|
+
...getLinearProgressColors('warning'),
|
|
84
|
+
...getLinearProgressColors('inherit'),
|
|
85
|
+
...getLinearProgressColors('primary', 'inverse'),
|
|
86
|
+
...getLinearProgressColors('secondary', 'inverse'),
|
|
87
|
+
...getLinearProgressColors('error', 'inverse'),
|
|
88
|
+
...getLinearProgressColors('info', 'inverse'),
|
|
89
|
+
...getLinearProgressColors('success', 'inverse'),
|
|
90
|
+
...getLinearProgressColors('warning', 'inverse'),
|
|
91
|
+
...getLinearProgressColors('inherit', 'inverse'),
|
|
92
|
+
],
|
|
11
93
|
},
|
|
12
|
-
}
|
|
13
|
-
}
|
|
94
|
+
};
|
|
95
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Theme, ComponentsProps, ComponentsOverrides, ComponentsVariants } from '@mui/material';
|
|
2
2
|
interface M3Snackbar {
|
|
3
|
-
|
|
4
|
-
defaultProps?: ComponentsProps['
|
|
5
|
-
styleOverrides?: ComponentsOverrides<Theme>['
|
|
6
|
-
variants?: ComponentsVariants['
|
|
3
|
+
MuiSnackbar: {
|
|
4
|
+
defaultProps?: ComponentsProps['MuiSnackbar'];
|
|
5
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiSnackbar'];
|
|
6
|
+
variants?: ComponentsVariants['MuiSnackbar'];
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
export declare const getSnackbar: (theme: Theme) => M3Snackbar;
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
2
|
export const getSnackbar = (theme) => {
|
|
3
|
-
const {
|
|
3
|
+
const { colors } = theme;
|
|
4
4
|
return {
|
|
5
|
-
|
|
5
|
+
MuiSnackbar: {
|
|
6
6
|
styleOverrides: {
|
|
7
7
|
root: {
|
|
8
|
-
borderRadius:
|
|
8
|
+
borderRadius: '10px',
|
|
9
|
+
'& .MuiSnackbarContent-root': {
|
|
10
|
+
backgroundColor: colors.inverseSchemes.surfaces.elevatedContainerLowest,
|
|
11
|
+
alignItems: 'baseline',
|
|
12
|
+
paddingTop: 0,
|
|
13
|
+
},
|
|
14
|
+
'& .MuiSnackbarContent-action': {
|
|
15
|
+
marginRight: 0,
|
|
16
|
+
},
|
|
9
17
|
},
|
|
10
18
|
},
|
|
11
19
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './utils/CssBaseline';
|
|
2
|
+
export * from './utils/Backdrop';
|
|
2
3
|
export * from './feedback/Alert';
|
|
3
4
|
export * from './feedback/Snackbar';
|
|
4
5
|
export * from './feedback/CircularProgress';
|
|
@@ -20,6 +21,7 @@ export * from './navigation/Drawer';
|
|
|
20
21
|
export * from './inputs/Fab';
|
|
21
22
|
export * from './inputs/IconButton';
|
|
22
23
|
export * from './data-display/Divider';
|
|
24
|
+
export * from './data-display/List';
|
|
23
25
|
export * from './data-display/ListItem';
|
|
24
26
|
export * from './data-display/ListItemButton';
|
|
25
27
|
export * from './data-display/ListItemIcon';
|
|
@@ -30,14 +32,21 @@ export * from './data-display/Table';
|
|
|
30
32
|
export * from './navigation/Menu';
|
|
31
33
|
export * from './navigation/MenuItem';
|
|
32
34
|
export * from './surfaces/Paper';
|
|
35
|
+
export * from './surfaces/Popover';
|
|
33
36
|
export * from './inputs/Switch';
|
|
34
37
|
export * from './navigation/Link';
|
|
38
|
+
export * from './navigation/Breadcrumbs';
|
|
35
39
|
export * from './navigation/PaginationItem';
|
|
36
40
|
export * from './navigation/Tab';
|
|
37
|
-
export * from './navigation/
|
|
41
|
+
export * from './navigation/Tabs';
|
|
38
42
|
export * from './inputs/TextField';
|
|
39
43
|
export * from './inputs/ToggleButton';
|
|
40
44
|
export * from './inputs/ToggleButtonGroup';
|
|
41
45
|
export * from './data-display/Tooltip';
|
|
42
46
|
export * from './data-display/Typography';
|
|
43
47
|
export * from './inputs/InputBase';
|
|
48
|
+
export * from './data-display/Skeleton';
|
|
49
|
+
export * from './inputs/FormLabel';
|
|
50
|
+
export * from './inputs/OutlinedInput';
|
|
51
|
+
export * from './inputs/FormHelperText';
|
|
52
|
+
export * from './inputs/Radio';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
2
|
export * from './utils/CssBaseline';
|
|
3
|
+
export * from './utils/Backdrop';
|
|
3
4
|
export * from './feedback/Alert';
|
|
4
5
|
export * from './feedback/Snackbar';
|
|
5
6
|
export * from './feedback/CircularProgress';
|
|
@@ -21,6 +22,7 @@ export * from './navigation/Drawer';
|
|
|
21
22
|
export * from './inputs/Fab';
|
|
22
23
|
export * from './inputs/IconButton';
|
|
23
24
|
export * from './data-display/Divider';
|
|
25
|
+
export * from './data-display/List';
|
|
24
26
|
export * from './data-display/ListItem';
|
|
25
27
|
export * from './data-display/ListItemButton';
|
|
26
28
|
export * from './data-display/ListItemIcon';
|
|
@@ -31,14 +33,21 @@ export * from './data-display/Table';
|
|
|
31
33
|
export * from './navigation/Menu';
|
|
32
34
|
export * from './navigation/MenuItem';
|
|
33
35
|
export * from './surfaces/Paper';
|
|
36
|
+
export * from './surfaces/Popover';
|
|
34
37
|
export * from './inputs/Switch';
|
|
35
38
|
export * from './navigation/Link';
|
|
39
|
+
export * from './navigation/Breadcrumbs';
|
|
36
40
|
export * from './navigation/PaginationItem';
|
|
37
41
|
export * from './navigation/Tab';
|
|
38
|
-
export * from './navigation/
|
|
42
|
+
export * from './navigation/Tabs';
|
|
39
43
|
export * from './inputs/TextField';
|
|
40
44
|
export * from './inputs/ToggleButton';
|
|
41
45
|
export * from './inputs/ToggleButtonGroup';
|
|
42
46
|
export * from './data-display/Tooltip';
|
|
43
47
|
export * from './data-display/Typography';
|
|
44
48
|
export * from './inputs/InputBase';
|
|
49
|
+
export * from './data-display/Skeleton';
|
|
50
|
+
export * from './inputs/FormLabel';
|
|
51
|
+
export * from './inputs/OutlinedInput';
|
|
52
|
+
export * from './inputs/FormHelperText';
|
|
53
|
+
export * from './inputs/Radio';
|
|
@@ -1,64 +1,36 @@
|
|
|
1
1
|
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export const getAutocomplete = (
|
|
6
|
-
const { palette } = theme;
|
|
2
|
+
import { outlinedInputClasses, inputBaseClasses, } from '@mui/material';
|
|
3
|
+
import { AutocompleteCaretDownIcon } from '../../../components/inputs/Autocomplete/components/AutocompleteCaretDownIcon';
|
|
4
|
+
import { AutocompleteXIcon } from '../../../components/inputs/Autocomplete/components/AutocompleteXIcon';
|
|
5
|
+
export const getAutocomplete = () => {
|
|
7
6
|
return {
|
|
8
7
|
MuiAutocomplete: {
|
|
9
8
|
defaultProps: {
|
|
10
|
-
clearIcon:
|
|
11
|
-
popupIcon:
|
|
9
|
+
clearIcon: AutocompleteXIcon,
|
|
10
|
+
popupIcon: AutocompleteCaretDownIcon,
|
|
11
|
+
slotProps: {
|
|
12
|
+
paper: {
|
|
13
|
+
elevation: 3,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
12
16
|
},
|
|
13
17
|
styleOverrides: {
|
|
14
18
|
root: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
'.MuiAutocomplete-popupIndicator': {
|
|
22
|
-
width: '20px',
|
|
23
|
-
marginRight: '-4px',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
svg: {
|
|
27
|
-
width: '16px',
|
|
28
|
-
height: '16px',
|
|
29
|
-
fontSize: '16px',
|
|
30
|
-
color: palette.supportive.main,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
paper: {
|
|
34
|
-
borderRadius: 16,
|
|
35
|
-
backgroundColor: palette.surfaceContainerHigh.light,
|
|
36
|
-
boxShadow: theme.shadows[2],
|
|
37
|
-
color: palette.onSurface.main,
|
|
38
|
-
},
|
|
39
|
-
popupIndicator: {
|
|
40
|
-
fontSize: '16px',
|
|
41
|
-
':hover': {
|
|
42
|
-
background: 'none',
|
|
19
|
+
[`& .${outlinedInputClasses.root}.${inputBaseClasses.sizeSmall}`]: {
|
|
20
|
+
// Don't specify paddingRight, as it overrides the default value set when there is only
|
|
21
|
+
// one of the popup or clear icon as the specificity is equal so the latter one wins
|
|
22
|
+
paddingTop: 4.5,
|
|
23
|
+
paddingBottom: 4.5,
|
|
24
|
+
paddingLeft: 6,
|
|
43
25
|
},
|
|
44
|
-
|
|
45
|
-
|
|
26
|
+
[`& .${outlinedInputClasses.root}`]: {
|
|
27
|
+
padding: '3.5px 9px 3.5px',
|
|
46
28
|
},
|
|
47
29
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
backgroundColor: alpha(palette.onSurface.main, 0.04),
|
|
53
|
-
},
|
|
54
|
-
'&[aria-selected="true"]': {
|
|
55
|
-
backgroundColor: palette.secondaryContainer.main,
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
clearIndicator: {
|
|
60
|
-
':hover': {
|
|
61
|
-
background: 'none',
|
|
30
|
+
endAdornment: {
|
|
31
|
+
svg: {
|
|
32
|
+
width: 20,
|
|
33
|
+
height: 20,
|
|
62
34
|
},
|
|
63
35
|
},
|
|
64
36
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AutocompleteCaretDownIcon: import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
3
3
|
import { CaretDownIcon } from '@phosphor-icons/react';
|
|
4
|
-
export const
|
|
4
|
+
export const AutocompleteCaretDownIcon = _jsx(CaretDownIcon, {});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AutocompleteXIcon: import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Theme, ComponentsProps, ComponentsOverrides, ComponentsVariants } from '@mui/material';
|
|
2
|
+
import { ComponentWithViewContextOwnProps } from '../../../shared/viewContext';
|
|
2
3
|
declare module '@mui/material/Button' {
|
|
3
4
|
interface ButtonPropsVariantOverrides {
|
|
4
5
|
elevated: true;
|
|
@@ -12,6 +13,9 @@ declare module '@mui/material/Button' {
|
|
|
12
13
|
interface ButtonPropsColorOverrides {
|
|
13
14
|
tertiary: true;
|
|
14
15
|
surface: true;
|
|
16
|
+
default: true;
|
|
17
|
+
}
|
|
18
|
+
interface ButtonOwnProps extends ComponentWithViewContextOwnProps {
|
|
15
19
|
}
|
|
16
20
|
}
|
|
17
21
|
interface M3Button {
|