@balena/ui-shared-components 15.1.3-build-renovate-virtua-e41c189eded12cd9f3773da3c8dc91e9c654662f-1 → 15.2.0-build-add-colors-to-icon-buttons-ac4e550df37e68910b82376fbe2b9dfa265e19aa-1
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/theme.d.ts +5 -0
- package/dist/theme.js +75 -0
- package/package.json +3 -3
package/dist/theme.d.ts
CHANGED
|
@@ -103,6 +103,11 @@ declare module '@mui/material/Button' {
|
|
|
103
103
|
light: true;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
+
declare module '@mui/material/IconButton' {
|
|
107
|
+
interface IconButtonOwnProps {
|
|
108
|
+
variant?: 'text' | 'contained';
|
|
109
|
+
}
|
|
110
|
+
}
|
|
106
111
|
declare module '@mui/material/Chip' {
|
|
107
112
|
interface ChipPropsColorOverrides {
|
|
108
113
|
green: true;
|
package/dist/theme.js
CHANGED
|
@@ -707,6 +707,66 @@ export const theme = createTheme({
|
|
|
707
707
|
},
|
|
708
708
|
},
|
|
709
709
|
MuiIconButton: {
|
|
710
|
+
defaultProps: {
|
|
711
|
+
variant: 'text',
|
|
712
|
+
},
|
|
713
|
+
variants: [
|
|
714
|
+
{
|
|
715
|
+
props: { variant: 'contained' },
|
|
716
|
+
style: {
|
|
717
|
+
color: color.icon.inverse.value,
|
|
718
|
+
backgroundColor: color.bg.strong.value,
|
|
719
|
+
'&:hover': {
|
|
720
|
+
backgroundColor: color.bg.strong.value,
|
|
721
|
+
},
|
|
722
|
+
},
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
props: { variant: 'contained', color: 'primary' },
|
|
726
|
+
style: {
|
|
727
|
+
backgroundColor: color.bg.accent.strong.value,
|
|
728
|
+
'&:hover': {
|
|
729
|
+
backgroundColor: color.bg.accent.strong.value,
|
|
730
|
+
},
|
|
731
|
+
},
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
props: { variant: 'contained', color: 'info' },
|
|
735
|
+
style: {
|
|
736
|
+
backgroundColor: color.bg.info.strong.value,
|
|
737
|
+
'&:hover': {
|
|
738
|
+
backgroundColor: color.bg.info.strong.value,
|
|
739
|
+
},
|
|
740
|
+
},
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
props: { variant: 'contained', color: 'success' },
|
|
744
|
+
style: {
|
|
745
|
+
backgroundColor: color.bg.success.strong.value,
|
|
746
|
+
'&:hover': {
|
|
747
|
+
backgroundColor: color.bg.success.strong.value,
|
|
748
|
+
},
|
|
749
|
+
},
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
props: { variant: 'contained', color: 'warning' },
|
|
753
|
+
style: {
|
|
754
|
+
backgroundColor: color.bg.warning.strong.value,
|
|
755
|
+
'&:hover': {
|
|
756
|
+
backgroundColor: color.bg.warning.strong.value,
|
|
757
|
+
},
|
|
758
|
+
},
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
props: { variant: 'contained', color: 'error' },
|
|
762
|
+
style: {
|
|
763
|
+
backgroundColor: color.bg.danger.strong.value,
|
|
764
|
+
'&:hover': {
|
|
765
|
+
backgroundColor: color.bg.danger.strong.value,
|
|
766
|
+
},
|
|
767
|
+
},
|
|
768
|
+
},
|
|
769
|
+
],
|
|
710
770
|
styleOverrides: {
|
|
711
771
|
root: {
|
|
712
772
|
color: color.icon.value,
|
|
@@ -718,6 +778,21 @@ export const theme = createTheme({
|
|
|
718
778
|
opacity: 0.4,
|
|
719
779
|
},
|
|
720
780
|
},
|
|
781
|
+
colorPrimary: {
|
|
782
|
+
color: color.icon.accent.value,
|
|
783
|
+
},
|
|
784
|
+
colorSuccess: {
|
|
785
|
+
color: color.icon.success.value,
|
|
786
|
+
},
|
|
787
|
+
colorInfo: {
|
|
788
|
+
color: color.icon.info.value,
|
|
789
|
+
},
|
|
790
|
+
colorWarning: {
|
|
791
|
+
color: color.icon.warning.value,
|
|
792
|
+
},
|
|
793
|
+
colorError: {
|
|
794
|
+
color: color.icon.danger.value,
|
|
795
|
+
},
|
|
721
796
|
sizeSmall: {
|
|
722
797
|
padding: '10px',
|
|
723
798
|
fontSize: '12px',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@balena/ui-shared-components",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.2.0-build-add-colors-to-icon-buttons-ac4e550df37e68910b82376fbe2b9dfa265e19aa-1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"rimraf": "^6.0.0",
|
|
53
53
|
"ts-jest": "^29.2.5",
|
|
54
54
|
"typescript": "^5.9.2",
|
|
55
|
-
"virtua": "^0.
|
|
55
|
+
"virtua": "^0.37.3",
|
|
56
56
|
"zxcvbn": "^4.4.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
},
|
|
135
135
|
"homepage": "https://github.com/balena-io/ui-shared-components#readme",
|
|
136
136
|
"versionist": {
|
|
137
|
-
"publishedAt": "2025-10-
|
|
137
|
+
"publishedAt": "2025-10-31T09:02:46.061Z"
|
|
138
138
|
},
|
|
139
139
|
"overrides": {
|
|
140
140
|
"storybook": "$storybook"
|