@availity/mui-button 0.6.5 → 0.6.6
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 +2 -0
- package/package.json +1 -1
- package/src/lib/bs4migration.stories.mdx +55 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.6.6](https://github.com/Availity/element/compare/@availity/mui-button@0.6.5...@availity/mui-button@0.6.6) (2024-04-15)
|
|
6
|
+
|
|
5
7
|
## [0.6.5](https://github.com/Availity/element/compare/@availity/mui-button@0.6.4...@availity/mui-button@0.6.5) (2024-04-04)
|
|
6
8
|
|
|
7
9
|
### Dependency Updates
|
package/package.json
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Meta, Source } from '@storybook/blocks';
|
|
2
|
+
|
|
3
|
+
<Meta title="BS4 Migration/Button" />
|
|
4
|
+
|
|
5
|
+
# Component Migration
|
|
6
|
+
|
|
7
|
+
This migration guide is just an overview. For more in depth component information, visit:
|
|
8
|
+
- [Availity Usage Guide](https://zeroheight.com/2e36e50c7/p/54f663-button)
|
|
9
|
+
- [MUI Documentation](https://mui.com/material-ui/react-button/)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Key Differences (not exhaustive list)
|
|
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 zeroheight docs for more information.
|
|
20
|
+
|
|
21
|
+
## Code Examples
|
|
22
|
+
|
|
23
|
+
`reactstrap`/`availity-react` Example:
|
|
24
|
+
|
|
25
|
+
<Source
|
|
26
|
+
code={`
|
|
27
|
+
import { Button } from 'reactstrap';\n
|
|
28
|
+
const ReactstrapButton = () => (
|
|
29
|
+
<Button
|
|
30
|
+
color="primary"
|
|
31
|
+
size="lg"
|
|
32
|
+
outline
|
|
33
|
+
block
|
|
34
|
+
>
|
|
35
|
+
I'm a Button
|
|
36
|
+
</Button>
|
|
37
|
+
);
|
|
38
|
+
`}/>
|
|
39
|
+
|
|
40
|
+
`@availity/element` Example:
|
|
41
|
+
|
|
42
|
+
<Source
|
|
43
|
+
code={`
|
|
44
|
+
import { Button } from '@availity/element';\n
|
|
45
|
+
const MUIButton = () => (
|
|
46
|
+
<Button
|
|
47
|
+
color="primary"
|
|
48
|
+
size="large"
|
|
49
|
+
variant="outlined"
|
|
50
|
+
fullWidth
|
|
51
|
+
>
|
|
52
|
+
I'm a Button
|
|
53
|
+
</Button>
|
|
54
|
+
);
|
|
55
|
+
`}/>
|