@balena/ui-shared-components 15.1.3-build-update-storybook-4b41379e172f7b34bd1263d292955991f23eabcc-1 → 15.2.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.
@@ -8,9 +8,9 @@ interface FilterMutation extends JSONSchema {
8
8
  }
9
9
  export declare const convertToPineClientFilter: (parentKeys: string[], filter: FilterMutation | FilterMutation[]) => PineFilterObject | undefined;
10
10
  export declare const orderbyBuilder: <T>(sortInfo: TableSortOptions<T> | null, customSort: RJSTContext<T>["customSort"]) => ({
11
- [x: string]: import("../../..").Order;
11
+ [x: string]: import("../components/Table/utils").Order;
12
12
  id?: undefined;
13
13
  } | {
14
- id: import("../../..").Order;
14
+ id: import("../components/Table/utils").Order;
15
15
  })[] | null;
16
16
  export {};
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.1.3-build-update-storybook-4b41379e172f7b34bd1263d292955991f23eabcc-1",
3
+ "version": "15.2.0",
4
4
  "main": "./dist/index.js",
5
5
  "sideEffects": false,
6
6
  "files": [
@@ -57,25 +57,25 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@balena/lint": "^9.3.8",
60
- "@storybook/addon-docs": "^10.0.1",
61
- "@storybook/addon-links": "^10.0.1",
62
- "@storybook/addon-onboarding": "^10.0.1",
63
- "@storybook/addon-webpack5-compiler-swc": "^4.0.1",
64
- "@storybook/react-webpack5": "^10.0.1",
60
+ "@storybook/addon-docs": "^9.0.0",
61
+ "@storybook/addon-links": "^9.0.0",
62
+ "@storybook/addon-onboarding": "^9.0.0",
63
+ "@storybook/addon-webpack5-compiler-swc": "^3.0.0",
64
+ "@storybook/react-webpack5": "^9.0.0",
65
65
  "@types/color": "^4.2.0",
66
66
  "@types/color-hash": "^2.0.0",
67
67
  "@types/lodash": "^4.17.14",
68
- "@types/node": "^22.18.13",
68
+ "@types/node": "^22.0.0",
69
69
  "@types/qs": "^6.9.18",
70
70
  "@types/react": "^18.0.35",
71
71
  "@types/react-dom": "^18.0.11",
72
72
  "@types/react-helmet": "^6.1.6",
73
73
  "@types/zxcvbn": "^4.4.4",
74
- "eslint-plugin-storybook": "^10.0.1",
74
+ "eslint-plugin-storybook": "^9.0.0",
75
75
  "husky": "^9.0.0",
76
76
  "lint-staged": "^16.0.0",
77
77
  "prop-types": "^15.8.1",
78
- "storybook": "^10.0.1",
78
+ "storybook": "^9.0.0",
79
79
  "ts-loader": "^9.5.1",
80
80
  "webpack": "^5.88.2"
81
81
  },
@@ -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-30T16:20:59.423Z"
137
+ "publishedAt": "2025-10-31T09:02:46.061Z"
138
138
  },
139
139
  "overrides": {
140
140
  "storybook": "$storybook"