@availity/mui-button 1.0.1 → 1.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.1.1](https://github.com/Availity/element/compare/@availity/mui-button@1.1.0...@availity/mui-button@1.1.1) (2025-04-11)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-layout` updated to version `1.1.0`
10
+ * `mui-icon` updated to version `1.1.0`
11
+ ## [1.1.0](https://github.com/Availity/element/compare/@availity/mui-button@1.0.1...@availity/mui-button@1.1.0) (2025-04-08)
12
+
13
+
14
+ ### Features
15
+
16
+ * **mui-button:** add MUI's ButtonGroup ([3e66a5f](https://github.com/Availity/element/commit/3e66a5f521ba6fbc9546446054a6e45199fa9e8b))
17
+
5
18
  ## [1.0.1](https://github.com/Availity/element/compare/@availity/mui-button@1.0.0...@availity/mui-button@1.0.1) (2025-03-07)
6
19
 
7
20
  ### Dependency Updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-button",
3
- "version": "1.0.1",
3
+ "version": "1.1.1",
4
4
  "description": "Availity MUI Button Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -47,7 +47,7 @@
47
47
  "@mui/material": "^6.4.5",
48
48
  "react": "18.2.0",
49
49
  "react-dom": "18.2.0",
50
- "tsup": "^8.3.6",
50
+ "tsup": "^8.4.0",
51
51
  "typescript": "^5.4.5"
52
52
  },
53
53
  "peerDependencies": {
@@ -0,0 +1,23 @@
1
+ import { default as MUIButtonGroup, ButtonGroupProps as MUIButtonGroupProps } from '@mui/material/ButtonGroup';
2
+
3
+ declare module '@mui/material/ButtonGroup' {
4
+ interface ButtonGroupPropsColorOverrides {
5
+ tertiary: true;
6
+ }
7
+ }
8
+
9
+ export type ButtonGroupProps = {
10
+ /** The color of the component.
11
+ * @default secondary */
12
+ color?: 'primary' | 'secondary' | 'tertiary';
13
+ } & Omit<MUIButtonGroupProps, 'color' | 'disableElevation' | 'disableFocusRipple' | 'disableRipple' | 'variant'>;
14
+
15
+ const overrideProps = {
16
+ disableElevation: true,
17
+ disableFocusRipple: true,
18
+ disableRipple: true,
19
+ };
20
+
21
+ export const ButtonGroup = (props: ButtonGroupProps) => {
22
+ return <MUIButtonGroup {...props} {...overrideProps} variant="contained" />;
23
+ };
@@ -11,12 +11,19 @@ This migration guide is just an overview. For more in depth component informatio
11
11
 
12
12
  ## Key Differences (not exhaustive list)
13
13
 
14
- - Changed
15
- - Per UX, the available colors for a button have changed, notably the removal of success and error colors.
16
- - Removed
17
- - `outline` while mui moves this option into the `variant` prop, per UX this variant has also been removed going forward.
18
- - Other
19
- - UX has updated the guidelines for when to use which color. Refer to design docs for more information.
14
+ ### Props
15
+
16
+ #### ⚠️ Changed
17
+
18
+ - `color` Per UX, the available colors for a button have changed, notably the removal of success and error colors.
19
+
20
+ #### 🚫 Removed
21
+
22
+ - `outline` while mui moves this option into the `variant` prop, per UX this variant has also been removed going forward.
23
+
24
+ ### Other
25
+
26
+ - UX has updated the guidelines for when to use which color. Refer to design docs for more information.
20
27
 
21
28
  ## Code Examples
22
29