@availity/mui-button 0.6.0 → 0.6.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,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.6.2](https://github.com/Availity/element/compare/@availity/mui-button@0.6.1...@availity/mui-button@0.6.2) (2024-02-20)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-layout` updated to version `0.1.4`
10
+ * `mui-icon` updated to version `0.7.4`
11
+ ## [0.6.1](https://github.com/Availity/element/compare/@availity/mui-button@0.6.0...@availity/mui-button@0.6.1) (2024-01-12)
12
+
5
13
  ## [0.6.0](https://github.com/Availity/element/compare/@availity/mui-button@0.5.1...@availity/mui-button@0.6.0) (2023-12-04)
6
14
 
7
15
 
package/dist/index.js CHANGED
@@ -58,7 +58,7 @@ var outlinedStyles = {
58
58
  border: 1
59
59
  };
60
60
  var IconButton = (0, import_react2.forwardRef)((props, ref) => {
61
- const { title, variant = "text", sx, ...rest } = props;
61
+ const { title, variant = "text", sx, size = "medium", ...rest } = props;
62
62
  const styles = {
63
63
  ...sx,
64
64
  ...variant === "outlined" && outlinedStyles
@@ -69,7 +69,8 @@ var IconButton = (0, import_react2.forwardRef)((props, ref) => {
69
69
  "aria-label": title,
70
70
  sx: { ...styles },
71
71
  ...rest,
72
- ref
72
+ ref,
73
+ size
73
74
  })
74
75
  });
75
76
  });
package/dist/index.mjs CHANGED
@@ -24,7 +24,7 @@ var outlinedStyles = {
24
24
  border: 1
25
25
  };
26
26
  var IconButton = forwardRef2((props, ref) => {
27
- const { title, variant = "text", sx, ...rest } = props;
27
+ const { title, variant = "text", sx, size = "medium", ...rest } = props;
28
28
  const styles = {
29
29
  ...sx,
30
30
  ...variant === "outlined" && outlinedStyles
@@ -35,7 +35,8 @@ var IconButton = forwardRef2((props, ref) => {
35
35
  "aria-label": title,
36
36
  sx: { ...styles },
37
37
  ...rest,
38
- ref
38
+ ref,
39
+ size
39
40
  })
40
41
  });
41
42
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-button",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "Availity MUI Button Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -38,14 +38,14 @@ const outlinedStyles = {
38
38
  };
39
39
 
40
40
  export const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>((props, ref) => {
41
- const { title, variant = 'text', sx, ...rest } = props;
41
+ const { title, variant = 'text', sx, size = 'medium', ...rest } = props;
42
42
  const styles = {
43
43
  ...sx,
44
44
  ...(variant === 'outlined' && outlinedStyles),
45
45
  };
46
46
  return (
47
47
  <Tooltip title={title}>
48
- <MuiIconButton aria-label={title} sx={{ ...styles }} {...rest} ref={ref} />
48
+ <MuiIconButton aria-label={title} sx={{ ...styles }} {...rest} ref={ref} size={size} />
49
49
  </Tooltip>
50
50
  );
51
51
  });
File without changes