@balena/ui-shared-components 5.0.2 → 5.0.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.
Files changed (2) hide show
  1. package/dist/theme.js +8 -1
  2. package/package.json +2 -2
package/dist/theme.js CHANGED
@@ -370,13 +370,20 @@ export const theme = createTheme({
370
370
  },
371
371
  ],
372
372
  styleOverrides: {
373
- root: ({ theme }) => ({
373
+ root: ({ theme, ownerState }) => ({
374
374
  borderRadius: '24px',
375
375
  paddingLeft: '20px',
376
376
  paddingRight: '20px',
377
377
  fontSize: theme.typography.body1.fontSize,
378
378
  textTransform: 'none',
379
379
  }),
380
+ contained: ({ theme, ownerState }) => ({
381
+ '&.Mui-disabled': {
382
+ opacity: 0.5,
383
+ color: 'white',
384
+ backgroundColor: theme.palette[ownerState.color].main,
385
+ },
386
+ }),
380
387
  textPrimary: {
381
388
  color: color.text.accent.value,
382
389
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@balena/ui-shared-components",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "main": "./dist/index.js",
5
5
  "sideEffects": false,
6
6
  "files": [
@@ -108,6 +108,6 @@
108
108
  },
109
109
  "homepage": "https://github.com/balena-io/ui-shared-components#readme",
110
110
  "versionist": {
111
- "publishedAt": "2024-03-11T13:08:04.459Z"
111
+ "publishedAt": "2024-03-13T13:10:23.160Z"
112
112
  }
113
113
  }