@availity/mui-empty-state 0.3.1 → 0.3.2
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,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.3.2](https://github.com/Availity/element/compare/@availity/mui-empty-state@0.3.1...@availity/mui-empty-state@0.3.2) (2025-01-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **mui-empty-state:** update stories ([65b5d9e](https://github.com/Availity/element/commit/65b5d9e0b23cc3e9489cb6480512a2989370a445))
|
|
11
|
+
|
|
5
12
|
## [0.3.1](https://github.com/Availity/element/compare/@availity/mui-empty-state@0.3.0...@availity/mui-empty-state@0.3.1) (2025-01-23)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -30,7 +30,23 @@ const HeadingLevelDecorator: Decorator = (Story, context) => (
|
|
|
30
30
|
);
|
|
31
31
|
|
|
32
32
|
const StoryBox = ({ children }: { children: React.ReactNode }) => (
|
|
33
|
-
<Box
|
|
33
|
+
<Box
|
|
34
|
+
sx={{
|
|
35
|
+
backgroundColor: 'background.paper',
|
|
36
|
+
width: {
|
|
37
|
+
xs: '100%',
|
|
38
|
+
md: '25%',
|
|
39
|
+
},
|
|
40
|
+
mx: 'auto',
|
|
41
|
+
display: 'flex',
|
|
42
|
+
flexDirection: 'column',
|
|
43
|
+
alignItems: 'center',
|
|
44
|
+
justifyContent: 'center',
|
|
45
|
+
textAlign: 'center',
|
|
46
|
+
}}
|
|
47
|
+
>
|
|
48
|
+
{children}
|
|
49
|
+
</Box>
|
|
34
50
|
);
|
|
35
51
|
|
|
36
52
|
/** Built on top of the `Stack` component, `EmptyState` will add the desired spacing to every direct descendant.
|
|
@@ -26,7 +26,22 @@ export default {
|
|
|
26
26
|
|
|
27
27
|
export const _EmptyStateImage: StoryObj<typeof EmptyStateImage> = {
|
|
28
28
|
render: (args: EmptyStateImageProps) => (
|
|
29
|
-
<Box
|
|
29
|
+
<Box
|
|
30
|
+
sx={{
|
|
31
|
+
backgroundColor: 'background.paper',
|
|
32
|
+
padding: '2rem',
|
|
33
|
+
width: {
|
|
34
|
+
xs: '100%',
|
|
35
|
+
md: '25%',
|
|
36
|
+
},
|
|
37
|
+
mx: 'auto',
|
|
38
|
+
display: 'flex',
|
|
39
|
+
flexDirection: 'column',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
justifyContent: 'center',
|
|
42
|
+
textAlign: 'center',
|
|
43
|
+
}}
|
|
44
|
+
>
|
|
30
45
|
<EmptyStateImage {...args} />
|
|
31
46
|
</Box>
|
|
32
47
|
),
|