@fixefy/fixefy-ui-components 0.3.83 → 0.3.84

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.
@@ -1,4 +1,4 @@
1
- export declare const FxStyledButton: ({ btnValue, btnType, disabled, onClick, startIcon, endIcon, iconSize, sx, variant, }: {
1
+ export declare const FxStyledButton: ({ btnValue, btnType, disabled, onClick, startIcon, endIcon, iconSize, sx, variant, assetUrl, }: {
2
2
  btnValue?: string;
3
3
  btnType?: "text" | "icon";
4
4
  disabled?: boolean;
@@ -8,4 +8,5 @@ export declare const FxStyledButton: ({ btnValue, btnType, disabled, onClick, st
8
8
  iconSize?: number;
9
9
  sx?: any;
10
10
  variant?: "contained" | "outlined" | "text" | "contained:rounded";
11
+ assetUrl?: string;
11
12
  }) => any;
@@ -19,7 +19,7 @@ function _interop_require_default(obj) {
19
19
  default: obj
20
20
  };
21
21
  }
22
- const FxStyledButton = ({ btnValue, btnType = 'text', disabled, onClick, startIcon, endIcon, iconSize, sx, variant })=>{
22
+ const FxStyledButton = ({ btnValue, btnType = 'text', disabled, onClick, startIcon, endIcon, iconSize, sx, variant, assetUrl })=>{
23
23
  return btnType == 'text' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_Button.default, {
24
24
  disabled: disabled,
25
25
  sx: sx,
@@ -30,12 +30,14 @@ const FxStyledButton = ({ btnValue, btnType = 'text', disabled, onClick, startIc
30
30
  startIcon: startIcon && iconSize ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
31
31
  width: iconSize,
32
32
  height: iconSize,
33
- icon: startIcon
33
+ icon: startIcon,
34
+ assetUrl: assetUrl
34
35
  }) : null,
35
36
  endIcon: endIcon && iconSize ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
36
37
  width: iconSize,
37
38
  height: iconSize,
38
- icon: endIcon
39
+ icon: endIcon,
40
+ assetUrl: assetUrl
39
41
  }) : null,
40
42
  children: (0, _fixefyuiutils.titleCase)(btnValue)
41
43
  }) : btnType == 'icon' && startIcon && iconSize && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_IconButton.default, {
@@ -46,7 +48,8 @@ const FxStyledButton = ({ btnValue, btnType = 'text', disabled, onClick, startIc
46
48
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
47
49
  icon: startIcon,
48
50
  width: iconSize,
49
- height: iconSize
51
+ height: iconSize,
52
+ assetUrl: assetUrl
50
53
  }),
51
54
  ' '
52
55
  ]
package/package.json CHANGED
@@ -71,5 +71,5 @@
71
71
  "require": "./dist/index.js"
72
72
  }
73
73
  },
74
- "version": "0.3.83"
74
+ "version": "0.3.84"
75
75
  }