@availity/mui-button 0.1.1 → 0.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-button",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Availity MUI Button Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -33,6 +33,9 @@
33
33
  "publish": "yarn npm publish --tolerate-republish --access public",
34
34
  "publish:canary": "yarn npm publish --access public --tag canary"
35
35
  },
36
+ "dependencies": {
37
+ "@mui/lab": "^5.0.0-alpha.121"
38
+ },
36
39
  "devDependencies": {
37
40
  "@mui/material": "^5.11.9",
38
41
  "react": "18.2.0",
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Button as MUIButton } from '@mui/material';
3
- import {LoadingButton as MUILoadingButton} from '@mui/lab'
4
3
  import type { ButtonProps as MUIButtonProps } from '@mui/material';
5
- // import Icon from '@availity/mui-icon';
6
4
 
7
5
  export type ButtonProps = {
8
6
  children: React.ReactNode;
@@ -14,10 +12,4 @@ export const Button = ({ children, ...rest }: ButtonProps): JSX.Element => (
14
12
  </MUIButton>
15
13
  );
16
14
 
17
- export const LoadingButton = ({ children, ...rest }: ButtonProps): JSX.Element => (
18
- <MUILoadingButton {...rest}>
19
- {children}
20
- </MUILoadingButton>
21
- );
22
-
23
15
 
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import MUILoadingButton, { LoadingButtonProps as MuiLoadingButtonProps} from '@mui/lab/LoadingButton';
3
+
4
+ export type LoadingButtonProps = {
5
+ children: React.ReactNode;
6
+ } & MuiLoadingButtonProps;
7
+
8
+ export const LoadingButton = ({ children, ...rest }: LoadingButtonProps): JSX.Element => (
9
+ <MUILoadingButton {...rest}>
10
+ {children}
11
+ </MUILoadingButton>
12
+ );
13
+
14
+