@webpros/mui-theme 0.1.2 → 0.1.3
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/src/components/data-display/Avatar/Avatar.d.ts +3 -0
- package/dist/src/components/data-display/Avatar/Avatar.js +4 -0
- package/dist/src/components/data-display/Avatar/Avatar.theme.d.ts +12 -0
- package/dist/src/components/data-display/Avatar/Avatar.theme.js +20 -0
- package/dist/src/components/data-display/Avatar/index.d.ts +1 -0
- package/dist/src/components/data-display/Avatar/index.js +2 -0
- package/dist/src/components/data-display/Badge/Badge.d.ts +3 -0
- package/dist/src/components/data-display/Badge/Badge.js +4 -0
- package/dist/src/components/data-display/Badge/Badge.theme.d.ts +24 -0
- package/dist/src/components/data-display/Badge/Badge.theme.js +131 -0
- package/dist/src/components/data-display/Badge/index.d.ts +1 -0
- package/dist/src/components/data-display/Badge/index.js +2 -0
- package/dist/src/components/data-display/Chip/Chip.d.ts +3 -0
- package/dist/src/components/data-display/Chip/Chip.js +4 -0
- package/dist/src/components/data-display/Chip/Chip.theme.d.ts +19 -0
- package/dist/src/components/data-display/Chip/Chip.theme.js +503 -0
- package/dist/src/components/data-display/Chip/components/ChipDeleteIcon.d.ts +1 -0
- package/dist/src/components/data-display/Chip/components/ChipDeleteIcon.js +4 -0
- package/dist/src/components/data-display/Chip/index.d.ts +1 -0
- package/dist/src/components/data-display/Chip/index.js +2 -0
- package/dist/src/components/data-display/DataGrid/DataGrid.d.ts +4 -0
- package/dist/src/components/data-display/DataGrid/DataGrid.js +7 -0
- package/dist/src/components/data-display/DataGrid/DataGrid.theme.d.ts +11 -0
- package/dist/src/components/data-display/DataGrid/DataGrid.theme.js +21 -0
- package/dist/src/components/data-display/DataGrid/index.d.ts +1 -0
- package/dist/src/components/data-display/DataGrid/index.js +2 -0
- package/dist/src/components/data-display/DataGrid/mock-data.d.ts +18 -0
- package/dist/src/components/data-display/DataGrid/mock-data.js +184 -0
- package/dist/src/components/data-display/Divider/Divider.d.ts +3 -0
- package/dist/src/components/data-display/Divider/Divider.js +4 -0
- package/dist/src/components/data-display/Divider/Divider.theme.d.ts +11 -0
- package/dist/src/components/data-display/Divider/Divider.theme.js +19 -0
- package/dist/src/components/data-display/Divider/index.d.ts +1 -0
- package/dist/src/components/data-display/Divider/index.js +2 -0
- package/dist/src/components/data-display/List/List.d.ts +3 -0
- package/dist/src/components/data-display/List/List.js +4 -0
- package/dist/src/components/data-display/List/List.theme.d.ts +11 -0
- package/dist/src/components/data-display/List/List.theme.js +5 -0
- package/dist/src/components/data-display/List/index.d.ts +1 -0
- package/dist/src/components/data-display/List/index.js +2 -0
- package/dist/src/components/data-display/ListItem/ListItem.d.ts +3 -0
- package/dist/src/components/data-display/ListItem/ListItem.js +4 -0
- package/dist/src/components/data-display/ListItem/ListItem.theme.d.ts +11 -0
- package/dist/src/components/data-display/ListItem/ListItem.theme.js +13 -0
- package/dist/src/components/data-display/ListItem/index.d.ts +1 -0
- package/dist/src/components/data-display/ListItem/index.js +2 -0
- package/dist/src/components/data-display/ListItemAvatar/ListItemAvatar.d.ts +4 -0
- package/dist/src/components/data-display/ListItemAvatar/ListItemAvatar.js +4 -0
- package/dist/src/components/data-display/ListItemAvatar/ListItemAvatar.theme.d.ts +11 -0
- package/dist/src/components/data-display/ListItemAvatar/ListItemAvatar.theme.js +11 -0
- package/dist/src/components/data-display/ListItemAvatar/index.d.ts +1 -0
- package/dist/src/components/data-display/ListItemAvatar/index.js +2 -0
- package/dist/src/components/data-display/ListItemButton/ListItemButton.d.ts +3 -0
- package/dist/src/components/data-display/ListItemButton/ListItemButton.js +4 -0
- package/dist/src/components/data-display/ListItemButton/ListItemButton.theme.d.ts +16 -0
- package/dist/src/components/data-display/ListItemButton/ListItemButton.theme.js +68 -0
- package/dist/src/components/data-display/ListItemButton/index.d.ts +1 -0
- package/dist/src/components/data-display/ListItemButton/index.js +2 -0
- package/dist/src/components/data-display/ListItemIcon/ListItemIcon.d.ts +4 -0
- package/dist/src/components/data-display/ListItemIcon/ListItemIcon.js +4 -0
- package/dist/src/components/data-display/ListItemIcon/ListItemIcon.theme.d.ts +11 -0
- package/dist/src/components/data-display/ListItemIcon/ListItemIcon.theme.js +14 -0
- package/dist/src/components/data-display/ListItemIcon/index.d.ts +1 -0
- package/dist/src/components/data-display/ListItemIcon/index.js +2 -0
- package/dist/src/components/data-display/ListSubheader/ListSubheader.d.ts +3 -0
- package/dist/src/components/data-display/ListSubheader/ListSubheader.js +4 -0
- package/dist/src/components/data-display/ListSubheader/ListSubheader.theme.d.ts +11 -0
- package/dist/src/components/data-display/ListSubheader/ListSubheader.theme.js +15 -0
- package/dist/src/components/data-display/ListSubheader/index.d.ts +1 -0
- package/dist/src/components/data-display/ListSubheader/index.js +2 -0
- package/dist/src/components/data-display/Table/Table.d.ts +4 -0
- package/dist/src/components/data-display/Table/Table.js +4 -0
- package/dist/src/components/data-display/Table/Table.theme.d.ts +25 -0
- package/dist/src/components/data-display/Table/Table.theme.js +41 -0
- package/dist/src/components/data-display/Table/index.d.ts +1 -0
- package/dist/src/components/data-display/Table/index.js +2 -0
- package/dist/src/components/data-display/Table/mock-data.d.ts +17 -0
- package/dist/src/components/data-display/Table/mock-data.js +198 -0
- package/dist/src/components/data-display/Tooltip/Tooltip.d.ts +4 -0
- package/dist/src/components/data-display/Tooltip/Tooltip.js +4 -0
- package/dist/src/components/data-display/Tooltip/Tooltip.theme.d.ts +11 -0
- package/dist/src/components/data-display/Tooltip/Tooltip.theme.js +21 -0
- package/dist/src/components/data-display/Tooltip/index.d.ts +1 -0
- package/dist/src/components/data-display/Tooltip/index.js +2 -0
- package/dist/src/components/data-display/Typography/Typography.d.ts +3 -0
- package/dist/src/components/data-display/Typography/Typography.js +4 -0
- package/dist/src/components/data-display/Typography/Typography.theme.d.ts +36 -0
- package/dist/src/components/data-display/Typography/Typography.theme.js +169 -0
- package/dist/src/components/data-display/Typography/index.d.ts +1 -0
- package/dist/src/components/data-display/Typography/index.js +2 -0
- package/dist/src/components/feedback/Alert/Alert.d.ts +4 -0
- package/dist/src/components/feedback/Alert/Alert.js +4 -0
- package/dist/src/components/feedback/Alert/Alert.theme.d.ts +11 -0
- package/dist/src/components/feedback/Alert/Alert.theme.js +60 -0
- package/dist/src/components/feedback/Alert/index.d.ts +1 -0
- package/dist/src/components/feedback/Alert/index.js +2 -0
- package/dist/src/components/feedback/CircularProgress/CircularProgress.d.ts +4 -0
- package/dist/src/components/feedback/CircularProgress/CircularProgress.js +4 -0
- package/dist/src/components/feedback/CircularProgress/CircularProgress.theme.d.ts +10 -0
- package/dist/src/components/feedback/CircularProgress/CircularProgress.theme.js +11 -0
- package/dist/src/components/feedback/CircularProgress/index.d.ts +1 -0
- package/dist/src/components/feedback/CircularProgress/index.js +2 -0
- package/dist/src/components/feedback/Dialog/Dialog.d.ts +4 -0
- package/dist/src/components/feedback/Dialog/Dialog.js +5 -0
- package/dist/src/components/feedback/Dialog/Dialog.theme.d.ts +30 -0
- package/dist/src/components/feedback/Dialog/Dialog.theme.js +67 -0
- package/dist/src/components/feedback/Dialog/index.d.ts +1 -0
- package/dist/src/components/feedback/Dialog/index.js +2 -0
- package/dist/src/components/feedback/LinearProgress/LinearProgress.d.ts +4 -0
- package/dist/src/components/feedback/LinearProgress/LinearProgress.js +4 -0
- package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.d.ts +10 -0
- package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.js +13 -0
- package/dist/src/components/feedback/LinearProgress/index.d.ts +1 -0
- package/dist/src/components/feedback/LinearProgress/index.js +2 -0
- package/dist/src/components/feedback/Snackbar/Snackbar.d.ts +4 -0
- package/dist/src/components/feedback/Snackbar/Snackbar.js +4 -0
- package/dist/src/components/feedback/Snackbar/Snackbar.theme.d.ts +10 -0
- package/dist/src/components/feedback/Snackbar/Snackbar.theme.js +13 -0
- package/dist/src/components/feedback/Snackbar/index.d.ts +1 -0
- package/dist/src/components/feedback/Snackbar/index.js +2 -0
- package/dist/src/components/index.d.ts +43 -0
- package/dist/src/components/index.js +44 -0
- package/dist/src/components/inputs/Autocomplete/Autocomplete.d.ts +4 -0
- package/dist/src/components/inputs/Autocomplete/Autocomplete.js +4 -0
- package/dist/src/components/inputs/Autocomplete/Autocomplete.theme.d.ts +10 -0
- package/dist/src/components/inputs/Autocomplete/Autocomplete.theme.js +67 -0
- package/dist/src/components/inputs/Autocomplete/components/AutocompletePopupIcon.d.ts +1 -0
- package/dist/src/components/inputs/Autocomplete/components/AutocompletePopupIcon.js +4 -0
- package/dist/src/components/inputs/Autocomplete/index.d.ts +1 -0
- package/dist/src/components/inputs/Autocomplete/index.js +2 -0
- package/dist/src/components/inputs/Button/Button.d.ts +3 -0
- package/dist/src/components/inputs/Button/Button.js +4 -0
- package/dist/src/components/inputs/Button/Button.theme.d.ts +26 -0
- package/dist/src/components/inputs/Button/Button.theme.js +243 -0
- package/dist/src/components/inputs/Button/index.d.ts +1 -0
- package/dist/src/components/inputs/Button/index.js +2 -0
- package/dist/src/components/inputs/Checkbox/Checkbox.d.ts +4 -0
- package/dist/src/components/inputs/Checkbox/Checkbox.js +4 -0
- package/dist/src/components/inputs/Checkbox/Checkbox.theme.d.ts +10 -0
- package/dist/src/components/inputs/Checkbox/Checkbox.theme.js +20 -0
- package/dist/src/components/inputs/Checkbox/index.d.ts +1 -0
- package/dist/src/components/inputs/Checkbox/index.js +2 -0
- package/dist/src/components/inputs/Fab/Fab.d.ts +3 -0
- package/dist/src/components/inputs/Fab/Fab.js +4 -0
- package/dist/src/components/inputs/Fab/Fab.theme.d.ts +25 -0
- package/dist/src/components/inputs/Fab/Fab.theme.js +135 -0
- package/dist/src/components/inputs/Fab/index.d.ts +1 -0
- package/dist/src/components/inputs/Fab/index.js +2 -0
- package/dist/src/components/inputs/IconButton/IconButton.d.ts +3 -0
- package/dist/src/components/inputs/IconButton/IconButton.js +4 -0
- package/dist/src/components/inputs/IconButton/IconButton.theme.d.ts +19 -0
- package/dist/src/components/inputs/IconButton/IconButton.theme.js +116 -0
- package/dist/src/components/inputs/IconButton/index.d.ts +1 -0
- package/dist/src/components/inputs/IconButton/index.js +2 -0
- package/dist/src/components/inputs/InputBase/InputBase.theme.d.ts +30 -0
- package/dist/src/components/inputs/InputBase/InputBase.theme.js +70 -0
- package/dist/src/components/inputs/InputBase/index.d.ts +1 -0
- package/dist/src/components/inputs/InputBase/index.js +2 -0
- package/dist/src/components/inputs/InputLabel/InputLabel.d.ts +2 -0
- package/dist/src/components/inputs/InputLabel/InputLabel.js +3 -0
- package/dist/src/components/inputs/InputLabel/InputLabel.theme.d.ts +9 -0
- package/dist/src/components/inputs/InputLabel/InputLabel.theme.js +20 -0
- package/dist/src/components/inputs/InputLabel/index.d.ts +1 -0
- package/dist/src/components/inputs/InputLabel/index.js +2 -0
- package/dist/src/components/inputs/Select/Select.d.ts +4 -0
- package/dist/src/components/inputs/Select/Select.js +3 -0
- package/dist/src/components/inputs/Select/Select.theme.d.ts +9 -0
- package/dist/src/components/inputs/Select/Select.theme.js +46 -0
- package/dist/src/components/inputs/Select/index.d.ts +1 -0
- package/dist/src/components/inputs/Select/index.js +2 -0
- package/dist/src/components/inputs/Switch/Switch.d.ts +4 -0
- package/dist/src/components/inputs/Switch/Switch.js +4 -0
- package/dist/src/components/inputs/Switch/Switch.theme.d.ts +11 -0
- package/dist/src/components/inputs/Switch/Switch.theme.js +97 -0
- package/dist/src/components/inputs/Switch/index.d.ts +1 -0
- package/dist/src/components/inputs/Switch/index.js +2 -0
- package/dist/src/components/inputs/TextField/TextField.d.ts +4 -0
- package/dist/src/components/inputs/TextField/TextField.js +4 -0
- package/dist/src/components/inputs/TextField/TextField.theme.d.ts +14 -0
- package/dist/src/components/inputs/TextField/TextField.theme.js +32 -0
- package/dist/src/components/inputs/TextField/index.d.ts +1 -0
- package/dist/src/components/inputs/TextField/index.js +2 -0
- package/dist/src/components/inputs/TimePicker/TimePicker.theme.d.ts +8 -0
- package/dist/src/components/inputs/TimePicker/TimePicker.theme.js +23 -0
- package/dist/src/components/inputs/TimePicker/index.d.ts +1 -0
- package/dist/src/components/inputs/TimePicker/index.js +2 -0
- package/dist/src/components/inputs/ToggleButton/ToggleButton.d.ts +3 -0
- package/dist/src/components/inputs/ToggleButton/ToggleButton.js +4 -0
- package/dist/src/components/inputs/ToggleButton/ToggleButton.theme.d.ts +11 -0
- package/dist/src/components/inputs/ToggleButton/ToggleButton.theme.js +26 -0
- package/dist/src/components/inputs/ToggleButton/index.d.ts +1 -0
- package/dist/src/components/inputs/ToggleButton/index.js +2 -0
- package/dist/src/components/inputs/ToggleButtonGroup/ToggleButtonGroup.d.ts +4 -0
- package/dist/src/components/inputs/ToggleButtonGroup/ToggleButtonGroup.js +4 -0
- package/dist/src/components/inputs/ToggleButtonGroup/ToggleButtonGroup.theme.d.ts +11 -0
- package/dist/src/components/inputs/ToggleButtonGroup/ToggleButtonGroup.theme.js +25 -0
- package/dist/src/components/inputs/ToggleButtonGroup/index.d.ts +1 -0
- package/dist/src/components/inputs/ToggleButtonGroup/index.js +2 -0
- package/dist/src/components/navigation/Drawer/Drawer.d.ts +4 -0
- package/dist/src/components/navigation/Drawer/Drawer.js +4 -0
- package/dist/src/components/navigation/Drawer/Drawer.theme.d.ts +10 -0
- package/dist/src/components/navigation/Drawer/Drawer.theme.js +15 -0
- package/dist/src/components/navigation/Drawer/index.d.ts +1 -0
- package/dist/src/components/navigation/Drawer/index.js +2 -0
- package/dist/src/components/navigation/Link/Link.d.ts +3 -0
- package/dist/src/components/navigation/Link/Link.js +4 -0
- package/dist/src/components/navigation/Link/Link.theme.d.ts +11 -0
- package/dist/src/components/navigation/Link/Link.theme.js +42 -0
- package/dist/src/components/navigation/Link/index.d.ts +1 -0
- package/dist/src/components/navigation/Link/index.js +3 -0
- package/dist/src/components/navigation/Menu/Menu.d.ts +4 -0
- package/dist/src/components/navigation/Menu/Menu.js +4 -0
- package/dist/src/components/navigation/Menu/Menu.theme.d.ts +10 -0
- package/dist/src/components/navigation/Menu/Menu.theme.js +19 -0
- package/dist/src/components/navigation/Menu/index.d.ts +1 -0
- package/dist/src/components/navigation/Menu/index.js +2 -0
- package/dist/src/components/navigation/MenuItem/MenuItem.d.ts +3 -0
- package/dist/src/components/navigation/MenuItem/MenuItem.js +4 -0
- package/dist/src/components/navigation/MenuItem/MenuItem.theme.d.ts +10 -0
- package/dist/src/components/navigation/MenuItem/MenuItem.theme.js +22 -0
- package/dist/src/components/navigation/MenuItem/index.d.ts +1 -0
- package/dist/src/components/navigation/MenuItem/index.js +2 -0
- package/dist/src/components/navigation/Pagination/Pagination.d.ts +4 -0
- package/dist/src/components/navigation/Pagination/Pagination.js +4 -0
- package/dist/src/components/navigation/Pagination/Pagination.theme.d.ts +11 -0
- package/dist/src/components/navigation/Pagination/Pagination.theme.js +8 -0
- package/dist/src/components/navigation/Pagination/index.d.ts +1 -0
- package/dist/src/components/navigation/Pagination/index.js +2 -0
- package/dist/src/components/navigation/PaginationItem/PaginationItem.d.ts +3 -0
- package/dist/src/components/navigation/PaginationItem/PaginationItem.js +4 -0
- package/dist/src/components/navigation/PaginationItem/PaginationItem.theme.d.ts +11 -0
- package/dist/src/components/navigation/PaginationItem/PaginationItem.theme.js +27 -0
- package/dist/src/components/navigation/PaginationItem/index.d.ts +1 -0
- package/dist/src/components/navigation/PaginationItem/index.js +2 -0
- package/dist/src/components/navigation/Tab/Tab.d.ts +3 -0
- package/dist/src/components/navigation/Tab/Tab.js +4 -0
- package/dist/src/components/navigation/Tab/Tab.theme.d.ts +10 -0
- package/dist/src/components/navigation/Tab/Tab.theme.js +18 -0
- package/dist/src/components/navigation/Tab/index.d.ts +1 -0
- package/dist/src/components/navigation/Tab/index.js +2 -0
- package/dist/src/components/navigation/TabList/TabList.d.ts +3 -0
- package/dist/src/components/navigation/TabList/TabList.js +4 -0
- package/dist/src/components/navigation/TabList/TabList.theme.d.ts +10 -0
- package/dist/src/components/navigation/TabList/TabList.theme.js +17 -0
- package/dist/src/components/navigation/TabList/index.d.ts +1 -0
- package/dist/src/components/navigation/TabList/index.js +2 -0
- package/dist/src/components/surfaces/Accordion/Accordion.d.ts +3 -0
- package/dist/src/components/surfaces/Accordion/Accordion.js +4 -0
- package/dist/src/components/surfaces/Accordion/Accordion.theme.d.ts +11 -0
- package/dist/src/components/surfaces/Accordion/Accordion.theme.js +43 -0
- package/dist/src/components/surfaces/Accordion/index.d.ts +1 -0
- package/dist/src/components/surfaces/Accordion/index.js +2 -0
- package/dist/src/components/surfaces/AppBar/AppBar.d.ts +3 -0
- package/dist/src/components/surfaces/AppBar/AppBar.js +4 -0
- package/dist/src/components/surfaces/AppBar/AppBar.theme.d.ts +11 -0
- package/dist/src/components/surfaces/AppBar/AppBar.theme.js +22 -0
- package/dist/src/components/surfaces/AppBar/index.d.ts +1 -0
- package/dist/src/components/surfaces/AppBar/index.js +2 -0
- package/dist/src/components/surfaces/Card/Card.d.ts +3 -0
- package/dist/src/components/surfaces/Card/Card.js +4 -0
- package/dist/src/components/surfaces/Card/Card.theme.d.ts +16 -0
- package/dist/src/components/surfaces/Card/Card.theme.js +100 -0
- package/dist/src/components/surfaces/Card/index.d.ts +1 -0
- package/dist/src/components/surfaces/Card/index.js +2 -0
- package/dist/src/components/surfaces/Paper/Paper.d.ts +3 -0
- package/dist/src/components/surfaces/Paper/Paper.js +4 -0
- package/dist/src/components/surfaces/Paper/Paper.theme.d.ts +9 -0
- package/dist/src/components/surfaces/Paper/Paper.theme.js +14 -0
- package/dist/src/components/surfaces/Paper/index.d.ts +1 -0
- package/dist/src/components/surfaces/Paper/index.js +2 -0
- package/dist/src/components/utils/CssBaseline/CssBaseline.d.ts +4 -0
- package/dist/src/components/utils/CssBaseline/CssBaseline.js +4 -0
- package/dist/src/components/utils/CssBaseline/CssBaseline.theme.d.ts +11 -0
- package/dist/src/components/utils/CssBaseline/CssBaseline.theme.js +8 -0
- package/dist/src/components/utils/CssBaseline/index.d.ts +1 -0
- package/dist/src/components/utils/CssBaseline/index.js +2 -0
- package/dist/src/hooks/useThemeMode.d.ts +3 -0
- package/dist/src/hooks/useThemeMode.js +20 -0
- package/dist/src/hooks/useTonalPalette.d.ts +3 -0
- package/dist/src/hooks/useTonalPalette.js +32 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.js +7 -0
- package/dist/src/providers/ThemeModeProvider.d.ts +13 -0
- package/dist/src/providers/ThemeModeProvider.js +16 -0
- package/dist/src/providers/ThemeSchemeProvider.d.ts +12 -0
- package/dist/src/providers/ThemeSchemeProvider.js +29 -0
- package/dist/src/providers/WebProsMuiThemeProvider.d.ts +9 -0
- package/dist/src/providers/WebProsMuiThemeProvider.js +5 -0
- package/dist/src/providers/WebProsTheme.d.ts +9 -0
- package/dist/src/providers/WebProsTheme.js +25 -0
- package/dist/src/style/additional-color-palette.d.ts +3 -0
- package/dist/src/style/additional-color-palette.js +26 -0
- package/dist/src/style/custom-color-palette.d.ts +3 -0
- package/dist/src/style/custom-color-palette.js +75 -0
- package/dist/src/tokens/ThemeColorTokens.d.ts +96 -0
- package/dist/src/tokens/ThemeColorTokens.js +172 -0
- package/dist/src/tokens/ThemeMode.d.ts +1 -0
- package/dist/src/tokens/ThemeMode.js +1 -0
- package/dist/src/tokens/ThemeScheme.d.ts +12 -0
- package/dist/src/tokens/ThemeScheme.js +8 -0
- package/dist/src/tokens/TonalPalette.d.ts +10 -0
- package/dist/src/tokens/TonalPalette.js +10 -0
- package/dist/src/tokens/Tone.d.ts +174 -0
- package/dist/src/tokens/Tone.js +157 -0
- package/dist/src/tokens/additionalColors/index.d.ts +1 -0
- package/dist/src/tokens/additionalColors/index.js +5 -0
- package/dist/src/tokens/index.d.ts +2 -0
- package/dist/src/tokens/index.js +2 -0
- package/dist/src/utils/generateTokens.d.ts +4 -0
- package/dist/src/utils/generateTokens.js +107 -0
- package/dist/src/utils/getMUIComponents.d.ts +7 -0
- package/dist/src/utils/getMUIComponents.js +4 -0
- package/dist/src/utils/getMUIPalette.d.ts +101 -0
- package/dist/src/utils/getMUIPalette.js +263 -0
- package/dist/src/utils/getMuiLocaleByCode.d.ts +11 -0
- package/dist/src/utils/getMuiLocaleByCode.js +13 -0
- package/dist/src/utils/getStateLayerColor.d.ts +25 -0
- package/dist/src/utils/getStateLayerColor.js +36 -0
- package/dist/src/utils/index.d.ts +6 -0
- package/dist/src/utils/index.js +7 -0
- package/dist/src/utils/patchMUIShadows.d.ts +2 -0
- package/dist/src/utils/patchMUIShadows.js +5 -0
- package/package.json +22 -18
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
|
+
import { alpha, } from '@mui/material';
|
|
3
|
+
import { StateLayer, getStateLayerColor } from '../../../utils/getStateLayerColor';
|
|
4
|
+
export const getCard = (theme) => {
|
|
5
|
+
const { palette } = theme;
|
|
6
|
+
return {
|
|
7
|
+
MuiCard: {
|
|
8
|
+
styleOverrides: {
|
|
9
|
+
root: {
|
|
10
|
+
borderRadius: '20px',
|
|
11
|
+
padding: '10px 6px',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
variants: [
|
|
15
|
+
{
|
|
16
|
+
props: { variant: 'elevation' },
|
|
17
|
+
style: {
|
|
18
|
+
boxShadow: theme.shadows[1],
|
|
19
|
+
backgroundColor: palette.surfaceContainerLow.main,
|
|
20
|
+
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
|
|
21
|
+
duration: theme.transitions.duration.short,
|
|
22
|
+
}),
|
|
23
|
+
'&:hover': {
|
|
24
|
+
background: getStateLayerColor(StateLayer.Hover, palette.surfaceContainerLow.main, palette.primary.main),
|
|
25
|
+
boxShadow: theme.shadows[2],
|
|
26
|
+
},
|
|
27
|
+
'&:focus': {
|
|
28
|
+
boxShadow: theme.shadows[1],
|
|
29
|
+
background: getStateLayerColor(StateLayer.Focus, palette.surfaceContainerLow.main, palette.primary.main),
|
|
30
|
+
},
|
|
31
|
+
'&:active': {
|
|
32
|
+
boxShadow: theme.shadows[1],
|
|
33
|
+
background: getStateLayerColor(StateLayer.Press, palette.surfaceContainerLow.main, palette.primary.main),
|
|
34
|
+
},
|
|
35
|
+
'&.Mui-disabled': {
|
|
36
|
+
backgroundColor: alpha(palette.surfaceContainerLow.main, 0.38),
|
|
37
|
+
// color: palette.surfaceVariant.main,
|
|
38
|
+
boxShadow: theme.shadows[0],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
props: { variant: 'filled' },
|
|
44
|
+
style: {
|
|
45
|
+
boxShadow: theme.shadows[0],
|
|
46
|
+
backgroundColor: palette.surfaceContainerHighest.main,
|
|
47
|
+
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
|
|
48
|
+
duration: theme.transitions.duration.short,
|
|
49
|
+
}),
|
|
50
|
+
'&:hover': {
|
|
51
|
+
background: getStateLayerColor(StateLayer.Hover, palette.surfaceContainerHighest.main, palette.primary.main),
|
|
52
|
+
boxShadow: theme.shadows[1],
|
|
53
|
+
},
|
|
54
|
+
'&:focus': {
|
|
55
|
+
boxShadow: theme.shadows[0],
|
|
56
|
+
background: getStateLayerColor(StateLayer.Focus, palette.surfaceContainerHighest.main, palette.primary.main),
|
|
57
|
+
},
|
|
58
|
+
'&:active': {
|
|
59
|
+
boxShadow: theme.shadows[1],
|
|
60
|
+
background: getStateLayerColor(StateLayer.Press, palette.surfaceContainerHighest.main, palette.primary.main),
|
|
61
|
+
},
|
|
62
|
+
'&.Mui-disabled': {
|
|
63
|
+
backgroundColor: alpha(palette.surfaceContainerHighest.main, 0.38),
|
|
64
|
+
// color: palette.surfaceVariant.main,
|
|
65
|
+
boxShadow: theme.shadows[1],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
props: { variant: 'outlined' },
|
|
71
|
+
style: {
|
|
72
|
+
boxShadow: theme.shadows[0],
|
|
73
|
+
backgroundColor: palette.surface.main,
|
|
74
|
+
borderColor: palette.outline.main,
|
|
75
|
+
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
|
|
76
|
+
duration: theme.transitions.duration.short,
|
|
77
|
+
}),
|
|
78
|
+
'&:hover': {
|
|
79
|
+
background: getStateLayerColor(StateLayer.Hover, palette.surface.main, palette.primary.main),
|
|
80
|
+
boxShadow: theme.shadows[1],
|
|
81
|
+
},
|
|
82
|
+
'&:focus': {
|
|
83
|
+
boxShadow: theme.shadows[0],
|
|
84
|
+
background: getStateLayerColor(StateLayer.Focus, palette.surface.main, palette.primary.main),
|
|
85
|
+
},
|
|
86
|
+
'&:active': {
|
|
87
|
+
boxShadow: theme.shadows[2],
|
|
88
|
+
background: getStateLayerColor(StateLayer.Press, palette.surfaceContainerHighest.main, palette.primary.main),
|
|
89
|
+
},
|
|
90
|
+
'&.Mui-disabled': {
|
|
91
|
+
borderColor: alpha(palette.surfaceContainerHighest.main, 0.12),
|
|
92
|
+
boxShadow: theme.shadows[0],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
export default {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Card.theme';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Theme, ComponentsOverrides } from '@mui/material';
|
|
2
|
+
interface M3Paper {
|
|
3
|
+
MuiPaper: {
|
|
4
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiPaper'];
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export declare const getPaper: (theme: Theme) => M3Paper;
|
|
8
|
+
declare const _default: {};
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Paper.theme';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Theme, ComponentsProps, ComponentsOverrides, ComponentsVariants } from '@mui/material';
|
|
2
|
+
interface M3CssBaseline {
|
|
3
|
+
MuiCssBaseline: {
|
|
4
|
+
defaultProps?: ComponentsProps['MuiCssBaseline'];
|
|
5
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiCssBaseline'];
|
|
6
|
+
variants?: ComponentsVariants['MuiCssBaseline'];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare const getCssBaseline: (_theme: Theme) => M3CssBaseline;
|
|
10
|
+
declare const _default: {};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CssBaseline.theme';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { useMediaQuery } from '@mui/material';
|
|
4
|
+
export const THEME_MODE_KEY = 'ThemeModeKey';
|
|
5
|
+
export const useThemeMode = () => {
|
|
6
|
+
const prefersDarkMode = useMediaQuery('(prefers-color-scheme: dark)');
|
|
7
|
+
const [themeMode, setThemeMode] = useState(() => {
|
|
8
|
+
const saved = localStorage.getItem(THEME_MODE_KEY);
|
|
9
|
+
if (saved) {
|
|
10
|
+
return JSON.parse(saved);
|
|
11
|
+
}
|
|
12
|
+
return prefersDarkMode ? 'dark' : 'light';
|
|
13
|
+
});
|
|
14
|
+
const toggleTheme = () => {
|
|
15
|
+
const value = themeMode === 'light' ? 'dark' : 'light';
|
|
16
|
+
setThemeMode(value);
|
|
17
|
+
localStorage.setItem(THEME_MODE_KEY, JSON.stringify(value));
|
|
18
|
+
};
|
|
19
|
+
return [themeMode, toggleTheme, setThemeMode];
|
|
20
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
|
+
import { argbFromHex, hexFromArgb, themeFromSourceColor } from '@material/material-color-utilities';
|
|
3
|
+
import { useLayoutEffect, useState } from 'react';
|
|
4
|
+
import { TonalPaletteDefault } from '../tokens/TonalPalette';
|
|
5
|
+
export const TONAL_PALETTE_KEY = 'TonalPaletteKey';
|
|
6
|
+
const LEVELS = [
|
|
7
|
+
0, 4, 6, 10, 12, 17, 20, 22, 24, 30, 40, 50, 60, 70, 80, 87, 90, 92, 94, 95, 96, 98, 99, 100,
|
|
8
|
+
];
|
|
9
|
+
export const useTonalPalette = () => {
|
|
10
|
+
const [tonalPalette, setTonalPalette] = useState(TonalPaletteDefault);
|
|
11
|
+
useLayoutEffect(() => {
|
|
12
|
+
if (localStorage.getItem(TONAL_PALETTE_KEY)) {
|
|
13
|
+
const localTonalPalette = JSON.parse(localStorage.getItem(TONAL_PALETTE_KEY) || '{}');
|
|
14
|
+
setTonalPalette(localTonalPalette);
|
|
15
|
+
}
|
|
16
|
+
}, []);
|
|
17
|
+
const generatePalette = (hexColor) => {
|
|
18
|
+
const intColor = argbFromHex(hexColor);
|
|
19
|
+
const { palettes } = themeFromSourceColor(intColor);
|
|
20
|
+
const tones = {};
|
|
21
|
+
for (const [key, palette] of Object.entries(palettes)) {
|
|
22
|
+
const tonelevel = {};
|
|
23
|
+
for (const level of LEVELS) {
|
|
24
|
+
tonelevel[level] = hexFromArgb(palette.tone(level));
|
|
25
|
+
}
|
|
26
|
+
tones[key] = tonelevel;
|
|
27
|
+
}
|
|
28
|
+
setTonalPalette(tones);
|
|
29
|
+
localStorage.setItem(TONAL_PALETTE_KEY, JSON.stringify(tones));
|
|
30
|
+
};
|
|
31
|
+
return [tonalPalette, generatePalette];
|
|
32
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
|
+
export { default as WebProsMuiThemeProvider } from './providers/WebProsMuiThemeProvider';
|
|
3
|
+
export { useThemeModeContext } from './providers/ThemeModeProvider';
|
|
4
|
+
export * from './utils';
|
|
5
|
+
export * from './tokens';
|
|
6
|
+
// Only used for exporting types.
|
|
7
|
+
export * from './components';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ThemeMode } from '../tokens/ThemeMode';
|
|
2
|
+
export type ThemeModeContextType = {
|
|
3
|
+
themeMode: ThemeMode;
|
|
4
|
+
toggleTheme: () => void;
|
|
5
|
+
setThemeMode: (mode: ThemeMode) => void;
|
|
6
|
+
};
|
|
7
|
+
export type ThemeModeProviderProps = {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const ThemeModeContext: import("react").Context<ThemeModeContextType>;
|
|
11
|
+
declare const ThemeModeProvider: ({ children }: ThemeModeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default ThemeModeProvider;
|
|
13
|
+
export declare const useThemeModeContext: () => ThemeModeContextType;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
3
|
+
import { createContext, useContext, useMemo } from 'react';
|
|
4
|
+
import { useThemeMode } from '../hooks/useThemeMode';
|
|
5
|
+
export const ThemeModeContext = createContext({
|
|
6
|
+
themeMode: 'light',
|
|
7
|
+
toggleTheme: () => { },
|
|
8
|
+
setThemeMode: () => { },
|
|
9
|
+
});
|
|
10
|
+
const ThemeModeProvider = ({ children }) => {
|
|
11
|
+
const [themeMode, toggleTheme, setThemeMode] = useThemeMode();
|
|
12
|
+
const value = useMemo(() => ({ themeMode, toggleTheme, setThemeMode }), [themeMode, toggleTheme, setThemeMode]);
|
|
13
|
+
return _jsx(ThemeModeContext.Provider, { value: value, children: children });
|
|
14
|
+
};
|
|
15
|
+
export default ThemeModeProvider;
|
|
16
|
+
export const useThemeModeContext = () => useContext(ThemeModeContext);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ThemeScheme } from '../tokens/ThemeScheme';
|
|
3
|
+
export type ThemeSchemeContextType = {
|
|
4
|
+
generateScheme: (hexColor: string) => void;
|
|
5
|
+
themeScheme: ThemeScheme;
|
|
6
|
+
};
|
|
7
|
+
export type ThemeSchemeProviderProps = {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const ThemeSchemeContext: import("react").Context<ThemeSchemeContextType>;
|
|
11
|
+
declare const ThemeSchemeProvider: FC<ThemeSchemeProviderProps>;
|
|
12
|
+
export default ThemeSchemeProvider;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
3
|
+
import { createContext, useCallback, useLayoutEffect, useMemo, useState } from 'react';
|
|
4
|
+
import { ThemeSchemeDefault } from '../tokens/ThemeScheme';
|
|
5
|
+
import { useTonalPalette } from '../hooks/useTonalPalette';
|
|
6
|
+
import { generateDesignTokens } from '../utils/generateTokens';
|
|
7
|
+
export const ThemeSchemeContext = createContext({
|
|
8
|
+
generateScheme: () => { },
|
|
9
|
+
themeScheme: ThemeSchemeDefault,
|
|
10
|
+
});
|
|
11
|
+
const ThemeSchemeProvider = ({ children }) => {
|
|
12
|
+
const [tonalPalette, generatePalette] = useTonalPalette();
|
|
13
|
+
const [themeScheme, setThemeScheme] = useState(ThemeSchemeDefault);
|
|
14
|
+
useLayoutEffect(() => {
|
|
15
|
+
const lightTokens = generateDesignTokens('light', tonalPalette);
|
|
16
|
+
const darkTokens = generateDesignTokens('dark', tonalPalette);
|
|
17
|
+
setThemeScheme({
|
|
18
|
+
light: lightTokens,
|
|
19
|
+
dark: darkTokens,
|
|
20
|
+
tones: tonalPalette,
|
|
21
|
+
});
|
|
22
|
+
}, [tonalPalette]);
|
|
23
|
+
const generateScheme = useCallback((hexColor) => {
|
|
24
|
+
generatePalette(hexColor);
|
|
25
|
+
}, [generatePalette]);
|
|
26
|
+
const value = useMemo(() => ({ generateScheme, themeScheme }), [generateScheme, themeScheme]);
|
|
27
|
+
return _jsx(ThemeSchemeContext.Provider, { value: value, children: children });
|
|
28
|
+
};
|
|
29
|
+
export default ThemeSchemeProvider;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Localization } from '@mui/material/locale';
|
|
2
|
+
import { ThemeMode } from '../tokens/ThemeMode';
|
|
3
|
+
type WebProsProps = {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
themeMode?: ThemeMode;
|
|
6
|
+
localization?: Localization;
|
|
7
|
+
};
|
|
8
|
+
declare const WebProsMuiThemeProvider: ({ children, localization, themeMode }: WebProsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default WebProsMuiThemeProvider;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import ThemeModeProvider from './ThemeModeProvider';
|
|
3
|
+
import WebProsTheme from './WebProsTheme';
|
|
4
|
+
const WebProsMuiThemeProvider = ({ children, localization, themeMode }) => (_jsx(ThemeModeProvider, { children: _jsx(WebProsTheme, { mode: themeMode, localization: localization, children: children }) }));
|
|
5
|
+
export default WebProsMuiThemeProvider;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ThemeMode } from '../tokens/ThemeMode';
|
|
2
|
+
import { Localization } from '@mui/material/locale';
|
|
3
|
+
type WebProsThemeProps = {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
mode?: ThemeMode;
|
|
6
|
+
localization?: Localization;
|
|
7
|
+
};
|
|
8
|
+
export declare const WebProsTheme: ({ children, mode, localization }: WebProsThemeProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default WebProsTheme;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
3
|
+
import { useContext, useMemo } from 'react';
|
|
4
|
+
import { CssBaseline, createTheme, ThemeProvider } from '@mui/material';
|
|
5
|
+
import { deepmerge } from '@mui/utils';
|
|
6
|
+
import { ThemeModeContext } from '../providers/ThemeModeProvider';
|
|
7
|
+
import { ThemeSchemeContext } from '../providers/ThemeSchemeProvider';
|
|
8
|
+
import { getMUIPalette } from '../utils/getMUIPalette';
|
|
9
|
+
import { getMUIComponents } from '../utils/getMUIComponents';
|
|
10
|
+
import { enUS } from '@mui/material/locale';
|
|
11
|
+
import { patchMUIShadows } from '../utils/patchMUIShadows';
|
|
12
|
+
export const WebProsTheme = ({ children, mode, localization = enUS }) => {
|
|
13
|
+
const themeModeContext = useContext(ThemeModeContext);
|
|
14
|
+
const { themeScheme } = useContext(ThemeSchemeContext);
|
|
15
|
+
const themeMode = mode !== null && mode !== void 0 ? mode : themeModeContext.themeMode;
|
|
16
|
+
const webprosTheme = useMemo(() => {
|
|
17
|
+
const muiPalette = getMUIPalette(themeMode, themeScheme);
|
|
18
|
+
let theme = createTheme(muiPalette, localization);
|
|
19
|
+
patchMUIShadows(theme);
|
|
20
|
+
theme = deepmerge(theme, getMUIComponents(theme, themeMode));
|
|
21
|
+
return theme;
|
|
22
|
+
}, [themeMode, themeScheme, localization]);
|
|
23
|
+
return (_jsxs(ThemeProvider, { theme: webprosTheme, children: [_jsx(CssBaseline, { enableColorScheme: true }), children] }));
|
|
24
|
+
};
|
|
25
|
+
export default WebProsTheme;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
import Grid from '@mui/material/Grid2/Grid2';
|
|
5
|
+
import { ThemeSchemeContext } from '../providers/ThemeSchemeProvider';
|
|
6
|
+
import { ColorItem } from '@storybook/addon-docs/blocks';
|
|
7
|
+
export const AdditionalColorPalette = ({ mode = 'light' }) => {
|
|
8
|
+
const { themeScheme } = useContext(ThemeSchemeContext);
|
|
9
|
+
const theme = themeScheme[mode];
|
|
10
|
+
return (_jsx(Grid, { container: true, rowSpacing: 2, direction: 'column', children: Object.entries(theme.additionalColors).map(([key, val]) => (_jsxs(_Fragment, { children: [_jsx("h3", { id: key, children: key }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Primary", subtitle: "", colors: {
|
|
11
|
+
[`theme.custom.${key}[50]`]: val[50],
|
|
12
|
+
[`theme.custom.${key}[100]`]: val[100],
|
|
13
|
+
[`theme.custom.${key}[200]`]: val[200],
|
|
14
|
+
[`theme.custom.${key}[300]`]: val[300],
|
|
15
|
+
[`theme.custom.${key}[400]`]: val[400],
|
|
16
|
+
[`theme.custom.${key}[500]`]: val[500],
|
|
17
|
+
[`theme.custom.${key}[600]`]: val[600],
|
|
18
|
+
[`theme.custom.${key}[700]`]: val[700],
|
|
19
|
+
[`theme.custom.${key}[800]`]: val[800],
|
|
20
|
+
[`theme.custom.${key}[900]`]: val[900],
|
|
21
|
+
[`theme.custom.${key}[A100]`]: val.A100,
|
|
22
|
+
[`theme.custom.${key}[A200]`]: val.A200,
|
|
23
|
+
[`theme.custom.${key}[A400]`]: val.A400,
|
|
24
|
+
[`theme.custom.${key}[A700]`]: val.A700,
|
|
25
|
+
} }) })] }))) }));
|
|
26
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
import Grid from '@mui/material/Grid2/Grid2';
|
|
5
|
+
import { ThemeSchemeContext } from '../providers/ThemeSchemeProvider';
|
|
6
|
+
import { ColorItem } from '@storybook/addon-docs/blocks';
|
|
7
|
+
export const CustomColorPalette = ({ mode }) => {
|
|
8
|
+
const { themeScheme } = useContext(ThemeSchemeContext);
|
|
9
|
+
const modeTitle = mode === 'light' ? 'Light Theme' : 'Dark Theme';
|
|
10
|
+
const theme = themeScheme[mode];
|
|
11
|
+
return (_jsxs(Grid, { container: true, rowSpacing: 2, direction: 'column', children: [_jsx("h3", { id: modeTitle, children: modeTitle }), _jsx("h3", { id: `${mode}-base-colors`, children: 'Base colors' }), _jsx("h3", { id: `${mode}-primary`, children: 'Primary' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Primary", subtitle: "", colors: {
|
|
12
|
+
'theme.primary': theme.primary,
|
|
13
|
+
'theme.onPrimary': theme.onPrimary,
|
|
14
|
+
'theme.primaryContainer': theme.primaryContainer,
|
|
15
|
+
'theme.onPrimaryContainer': theme.onPrimaryContainer,
|
|
16
|
+
} }) }), _jsx("h3", { id: `${mode}-secondary`, children: 'Secondary' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Secondary", subtitle: "", colors: {
|
|
17
|
+
'theme.secondary': theme.secondary,
|
|
18
|
+
'theme.onSecondary': theme.onSecondary,
|
|
19
|
+
'theme.secondaryContainer': theme.secondaryContainer,
|
|
20
|
+
'theme.onSecondaryContainer': theme.onSecondaryContainer,
|
|
21
|
+
} }) }), _jsx("h3", { id: `${mode}-tertiary`, children: 'Tertiary' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Tertiary", subtitle: "", colors: {
|
|
22
|
+
'theme.tertiary': theme.tertiary,
|
|
23
|
+
'theme.onTertiary': theme.onTertiary,
|
|
24
|
+
'theme.tertiaryContainer': theme.tertiaryContainer,
|
|
25
|
+
'theme.onTertiaryContainer': theme.onTertiaryContainer,
|
|
26
|
+
} }) }), _jsx("h3", { id: `${mode}-error`, children: 'Error' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Error", subtitle: "", colors: {
|
|
27
|
+
'theme.error': theme.error,
|
|
28
|
+
'theme.onError': theme.onError,
|
|
29
|
+
'theme.errorContainer': theme.errorContainer,
|
|
30
|
+
'theme.onErrorContainer': theme.onErrorContainer,
|
|
31
|
+
} }) }), _jsx("h3", { id: `${mode}-surface`, children: 'Surface' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Surface", subtitle: "", colors: {
|
|
32
|
+
'theme.surfaceDim': theme.surfaceDim,
|
|
33
|
+
'theme.surface': theme.surface,
|
|
34
|
+
'theme.surfaceBright': theme.surfaceBright,
|
|
35
|
+
} }) }), _jsx("h3", { id: `${mode}-surface-container`, children: 'Surface container' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Surface container", subtitle: "", colors: {
|
|
36
|
+
'theme.surfaceContainerLowest ': theme.surfaceContainerLowest,
|
|
37
|
+
'theme.surfaceContainerLow': theme.surfaceContainerLow,
|
|
38
|
+
'theme.surfaceContainer': theme.surfaceContainer,
|
|
39
|
+
'theme.surfaceContainerHigh': theme.surfaceContainerHigh,
|
|
40
|
+
'theme.surfaceContainerHighest': theme.surfaceContainerHighest,
|
|
41
|
+
} }) }), _jsx("h3", { id: `${mode}-on-surface`, children: 'On surface' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "On surface", subtitle: "", colors: {
|
|
42
|
+
'theme.onSurface ': theme.onSurface,
|
|
43
|
+
'theme.onSurfaceVariant ': theme.onSurfaceVariant,
|
|
44
|
+
'theme.outline ': theme.outline,
|
|
45
|
+
'theme.outlineVariant ': theme.outlineVariant,
|
|
46
|
+
} }) }), _jsx("h3", { id: `${mode}-inverse`, children: 'Inverse' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Inverse", subtitle: "", colors: {
|
|
47
|
+
'theme.inverseSurface ': theme.inverseSurface,
|
|
48
|
+
'theme.inversePrimary ': theme.inversePrimary,
|
|
49
|
+
'theme.inverseOnSurface ': theme.inverseOnSurface,
|
|
50
|
+
} }) }), _jsx("h3", { id: `${mode}-shadow-and-scrim`, children: 'Shadow and Scrim' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Shadow and Scrim", subtitle: "", colors: {
|
|
51
|
+
'theme.shadow ': theme.shadow,
|
|
52
|
+
'theme.scrim ': theme.scrim,
|
|
53
|
+
} }) }), _jsx("h3", { id: `${mode}-custom-colors`, children: 'Custom state colors' }), _jsx("h3", { id: `${mode}-info`, children: 'Info' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Info", subtitle: "", colors: {
|
|
54
|
+
'theme.info': theme.info,
|
|
55
|
+
'theme.onInfo': theme.onInfo,
|
|
56
|
+
'theme.infoContainer': theme.infoContainer,
|
|
57
|
+
'theme.onInfoContainer': theme.onInfoContainer,
|
|
58
|
+
} }) }), _jsx("h3", { id: `${mode}-warning`, children: 'Warning' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Warning", subtitle: "", colors: {
|
|
59
|
+
'theme.warning': theme.warning,
|
|
60
|
+
'theme.onWarning': theme.onWarning,
|
|
61
|
+
'theme.warningContainer': theme.warningContainer,
|
|
62
|
+
'theme.onWarningContainer': theme.onWarningContainer,
|
|
63
|
+
} }) }), _jsx("h3", { id: `${mode}-success`, children: 'Success' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Success", subtitle: "", colors: {
|
|
64
|
+
'theme.success': theme.success,
|
|
65
|
+
'theme.onSuccess': theme.onSuccess,
|
|
66
|
+
'theme.successContainer': theme.successContainer,
|
|
67
|
+
'theme.onSuccessContainer': theme.onSuccessContainer,
|
|
68
|
+
} }) }), _jsx("h3", { id: `${mode}-utility-colors`, children: 'Utility colors' }), _jsx("h3", { id: `${mode}-undefined`, children: 'Undefined' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Undefined", subtitle: "", colors: {
|
|
69
|
+
'theme.undefined': theme.undefined,
|
|
70
|
+
} }) }), _jsx("h3", { id: `${mode}-supportive`, children: 'Supportive' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Supportive", subtitle: "", colors: {
|
|
71
|
+
'theme.supportive': theme.supportive,
|
|
72
|
+
} }) }), _jsx("h3", { id: `${mode}-divider`, children: 'Outline' }), _jsx("div", { className: "color-item", children: _jsx(ColorItem, { title: "Outline", subtitle: "", colors: {
|
|
73
|
+
'theme.outline': theme.outline,
|
|
74
|
+
} }) })] }));
|
|
75
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { AdditionalColorTone } from './Tone';
|
|
2
|
+
export type AdditionalColors = {
|
|
3
|
+
red: AdditionalColorTone;
|
|
4
|
+
pink: AdditionalColorTone;
|
|
5
|
+
purple: AdditionalColorTone;
|
|
6
|
+
deepPurple: AdditionalColorTone;
|
|
7
|
+
indigo: AdditionalColorTone;
|
|
8
|
+
blue: AdditionalColorTone;
|
|
9
|
+
lightBlue: AdditionalColorTone;
|
|
10
|
+
cyan: AdditionalColorTone;
|
|
11
|
+
teal: AdditionalColorTone;
|
|
12
|
+
green: AdditionalColorTone;
|
|
13
|
+
lightGreen: AdditionalColorTone;
|
|
14
|
+
lime: AdditionalColorTone;
|
|
15
|
+
yellow: AdditionalColorTone;
|
|
16
|
+
amber: AdditionalColorTone;
|
|
17
|
+
orange: AdditionalColorTone;
|
|
18
|
+
deepOrange: AdditionalColorTone;
|
|
19
|
+
brown: AdditionalColorTone;
|
|
20
|
+
};
|
|
21
|
+
export type AdditionalColorKey = keyof AdditionalColors;
|
|
22
|
+
export type ThemeColorTokens = {
|
|
23
|
+
primary: string;
|
|
24
|
+
onPrimary: string;
|
|
25
|
+
primaryContainer: string;
|
|
26
|
+
onPrimaryContainer: string;
|
|
27
|
+
secondary: string;
|
|
28
|
+
onSecondary: string;
|
|
29
|
+
secondaryContainer: string;
|
|
30
|
+
onSecondaryContainer: string;
|
|
31
|
+
tertiary: string;
|
|
32
|
+
onTertiary: string;
|
|
33
|
+
tertiaryContainer: string;
|
|
34
|
+
onTertiaryContainer: string;
|
|
35
|
+
error: string;
|
|
36
|
+
onError: string;
|
|
37
|
+
errorContainer: string;
|
|
38
|
+
onErrorContainer: string;
|
|
39
|
+
errorFixedDim: string;
|
|
40
|
+
primaryFixed: string;
|
|
41
|
+
primaryFixedDim: string;
|
|
42
|
+
onPrimaryFixed: string;
|
|
43
|
+
onPrimaryFixedVariant: string;
|
|
44
|
+
secondaryFixed: string;
|
|
45
|
+
secondaryFixedDim: string;
|
|
46
|
+
onSecondaryFixed: string;
|
|
47
|
+
onSecondaryFixedVariant: string;
|
|
48
|
+
tertiaryFixed: string;
|
|
49
|
+
tertiaryFixedDim: string;
|
|
50
|
+
onTertiaryFixed: string;
|
|
51
|
+
onTertiaryFixedVariant: string;
|
|
52
|
+
surface: string;
|
|
53
|
+
onSurface: string;
|
|
54
|
+
surfaceDim: string;
|
|
55
|
+
surfaceBright: string;
|
|
56
|
+
surfaceContainerLowest: string;
|
|
57
|
+
surfaceContainerLow: string;
|
|
58
|
+
surfaceContainer: string;
|
|
59
|
+
surfaceContainerHigh: string;
|
|
60
|
+
surfaceContainerHighest: string;
|
|
61
|
+
surfaceVariant: string;
|
|
62
|
+
onSurfaceVariant: string;
|
|
63
|
+
outline: string;
|
|
64
|
+
outlineVariant: string;
|
|
65
|
+
inverseSurface: string;
|
|
66
|
+
inverseOnSurface: string;
|
|
67
|
+
inversePrimary: string;
|
|
68
|
+
shadow: string;
|
|
69
|
+
scrim: string;
|
|
70
|
+
surfaceTint: string;
|
|
71
|
+
background: string;
|
|
72
|
+
onBackground: string;
|
|
73
|
+
info: string;
|
|
74
|
+
onInfo: string;
|
|
75
|
+
infoContainer: string;
|
|
76
|
+
onInfoContainer: string;
|
|
77
|
+
infoFixedDim: string;
|
|
78
|
+
success: string;
|
|
79
|
+
onSuccess: string;
|
|
80
|
+
successContainer: string;
|
|
81
|
+
onSuccessContainer: string;
|
|
82
|
+
successFixedDim: string;
|
|
83
|
+
warning: string;
|
|
84
|
+
onWarning: string;
|
|
85
|
+
warningContainer: string;
|
|
86
|
+
onWarningContainer: string;
|
|
87
|
+
warningFixedDim: string;
|
|
88
|
+
undefined: string;
|
|
89
|
+
onUndefined: string;
|
|
90
|
+
undefinedContainer: string;
|
|
91
|
+
onUndefinedContainer: string;
|
|
92
|
+
supportive: string;
|
|
93
|
+
additionalColors: AdditionalColors;
|
|
94
|
+
};
|
|
95
|
+
export declare const LightTokensDefault: ThemeColorTokens;
|
|
96
|
+
export declare const DarkTokensDefault: ThemeColorTokens;
|