@availity/mui-button 1.0.1 → 1.1.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.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/lib/ButtonGroup.tsx +23 -0
- package/src/lib/bs4migration.mdx +13 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.1.0](https://github.com/Availity/element/compare/@availity/mui-button@1.0.1...@availity/mui-button@1.1.0) (2025-04-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **mui-button:** add MUI's ButtonGroup ([3e66a5f](https://github.com/Availity/element/commit/3e66a5f521ba6fbc9546446054a6e45199fa9e8b))
|
|
11
|
+
|
|
5
12
|
## [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
13
|
|
|
7
14
|
### Dependency Updates
|
package/package.json
CHANGED
|
@@ -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
|
+
};
|
package/src/lib/bs4migration.mdx
CHANGED
|
@@ -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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
|
|
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
|
|