@availity/mui-button 0.4.0 → 0.4.1

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.4.1](https://github.com/Availity/element/compare/@availity/mui-button@0.4.0...@availity/mui-button@0.4.1) (2023-10-03)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **mui-button:** fix styling for pure icon button ([9d4a524](https://github.com/Availity/element/commit/9d4a524388d512ecc27e8e803b536036f6fedbc6))
11
+
5
12
  ## [0.4.0](https://github.com/Availity/element/compare/@availity/mui-button@0.3.1...@availity/mui-button@0.4.0) (2023-09-26)
6
13
 
7
14
 
package/dist/index.js CHANGED
@@ -53,17 +53,15 @@ var Button = (0, import_react.forwardRef)((props, ref) => {
53
53
  var import_react2 = require("react");
54
54
  var import_material2 = require("@mui/material");
55
55
  var import_jsx_runtime = require("react/jsx-runtime");
56
- var textStyles = {
57
- border: "none"
58
- };
59
56
  var outlinedStyles = {
60
- borderRadius: ".25rem"
57
+ borderRadius: ".25rem",
58
+ border: 1
61
59
  };
62
60
  var IconButton = (0, import_react2.forwardRef)((props, ref) => {
63
61
  const { title, variant = "text", sx, ...rest } = props;
64
62
  const styles = {
65
63
  ...sx,
66
- ...variant === "text" ? textStyles : outlinedStyles
64
+ ...variant === "outlined" && outlinedStyles
67
65
  };
68
66
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material2.Tooltip, {
69
67
  title,
package/dist/index.mjs CHANGED
@@ -19,17 +19,15 @@ var Button = forwardRef((props, ref) => {
19
19
  import { forwardRef as forwardRef2 } from "react";
20
20
  import { IconButton as MuiIconButton, Tooltip } from "@mui/material";
21
21
  import { jsx as jsx2 } from "react/jsx-runtime";
22
- var textStyles = {
23
- border: "none"
24
- };
25
22
  var outlinedStyles = {
26
- borderRadius: ".25rem"
23
+ borderRadius: ".25rem",
24
+ border: 1
27
25
  };
28
26
  var IconButton = forwardRef2((props, ref) => {
29
27
  const { title, variant = "text", sx, ...rest } = props;
30
28
  const styles = {
31
29
  ...sx,
32
- ...variant === "text" ? textStyles : outlinedStyles
30
+ ...variant === "outlined" && outlinedStyles
33
31
  };
34
32
  return /* @__PURE__ */ jsx2(Tooltip, {
35
33
  title,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-button",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Availity MUI Button Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -32,19 +32,16 @@ export type IconButtonProps = {
32
32
  >;
33
33
 
34
34
  // IconButtonVariants not planned until v6 :(
35
- const textStyles = {
36
- border: 'none',
37
- };
38
-
39
35
  const outlinedStyles = {
40
36
  borderRadius: '.25rem',
37
+ border: 1,
41
38
  };
42
39
 
43
40
  export const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>((props, ref) => {
44
41
  const { title, variant = 'text', sx, ...rest } = props;
45
42
  const styles = {
46
43
  ...sx,
47
- ...(variant === 'text' ? textStyles : outlinedStyles),
44
+ ...(variant === 'outlined' && outlinedStyles),
48
45
  };
49
46
  return (
50
47
  <Tooltip title={title}>