Skip to content

Commit

Permalink
chore(release): 1.1.2 [skip ci]
Browse files Browse the repository at this point in the history
## [1.1.2](v1.1.1...v1.1.2) (2023-03-16)

### Bug Fixes

* theme colors ([fc86953](fc86953))
  • Loading branch information
semantic-release-bot committed Mar 16, 2023
1 parent fc86953 commit 1253b0c
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 23 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [1.1.2](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v1.1.1...v1.1.2) (2023-03-16)


### Bug Fixes

* theme colors ([fc86953](https://github.com/ocadotechnology/codeforlife-package-javascript/commit/fc86953f74449959ab1ceb425a673bd08aa1b743))

## [1.1.1](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v1.1.0...v1.1.1) (2023-03-16)


Expand Down
16 changes: 15 additions & 1 deletion lib/cjs/theme.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
declare const theme: import("@mui/material/styles").Theme;
import { PaletteColor } from '@mui/material';
declare module '@mui/material/styles' {
interface Palette {
tertiary: PaletteColor;
}
interface PaletteOptions {
tertiary: PaletteColor;
}
}
declare module '@mui/material/Button' {
interface ButtonPropsColorOverrides {
tertiary: true;
}
}
declare const theme: import("@mui/material").Theme;
export default theme;
22 changes: 12 additions & 10 deletions lib/cjs/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,37 @@
Object.defineProperty(exports, "__esModule", { value: true });
var styles_1 = require("@mui/material/styles");
var colors_1 = require("@mui/material/colors");
var palette = (0, styles_1.createTheme)().palette;
var theme = (0, styles_1.responsiveFontSizes)((0, styles_1.createTheme)({
palette: {
primary: {
main: colors_1.common.black
main: '#e0004d'
},
secondary: {
main: colors_1.blue.A400
main: '#00a3e0'
},
tertiary: palette.augmentColor({
color: {
main: '#ffd23b'
}
}),
error: {
main: colors_1.red.A400
main: colors_1.red.A700
}
},
components: {
MuiButton: {
defaultProps: {
disableRipple: true
},
styleOverrides: {
root: {
fontSize: '0.8rem',
border: '1px solid black'
whiteSpace: 'nowrap',
minWidth: 'max-content'
}
}
},
MuiTextField: {
styleOverrides: {
root: {
width: '100%',
height: '100%'
width: '100%'
}
}
}
Expand Down
16 changes: 15 additions & 1 deletion lib/esm/theme.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
declare const theme: import("@mui/material/styles").Theme;
import { PaletteColor } from '@mui/material';
declare module '@mui/material/styles' {
interface Palette {
tertiary: PaletteColor;
}
interface PaletteOptions {
tertiary: PaletteColor;
}
}
declare module '@mui/material/Button' {
interface ButtonPropsColorOverrides {
tertiary: true;
}
}
declare const theme: import("@mui/material").Theme;
export default theme;
24 changes: 13 additions & 11 deletions lib/esm/theme.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
import { createTheme, responsiveFontSizes } from '@mui/material/styles';
import { common, red, blue } from '@mui/material/colors';
import { red } from '@mui/material/colors';
var palette = createTheme().palette;
var theme = responsiveFontSizes(createTheme({
palette: {
primary: {
main: common.black
main: '#e0004d'
},
secondary: {
main: blue.A400
main: '#00a3e0'
},
tertiary: palette.augmentColor({
color: {
main: '#ffd23b'
}
}),
error: {
main: red.A400
main: red.A700
}
},
components: {
MuiButton: {
defaultProps: {
disableRipple: true
},
styleOverrides: {
root: {
fontSize: '0.8rem',
border: '1px solid black'
whiteSpace: 'nowrap',
minWidth: 'max-content'
}
}
},
MuiTextField: {
styleOverrides: {
root: {
width: '100%',
height: '100%'
width: '100%'
}
}
}
Expand Down

0 comments on commit 1253b0c

Please sign in to comment.