@fixefy/fixefy-ui-components 0.2.99 → 0.3.0

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,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare const FxModalWithComponent: ({ btnType, btnValue, modalData, onClick, disabled, icon, sx, }: {
2
+ export declare const FxModalWithComponent: ({ btnType, btnValue, modalData, onClick, disabled, icon, sx, iconSize, }: {
3
3
  btnType?: 'text' | 'icon';
4
4
  btnValue?: string;
5
5
  modalData: any;
@@ -7,4 +7,5 @@ export declare const FxModalWithComponent: ({ btnType, btnValue, modalData, onCl
7
7
  disabled?: boolean;
8
8
  icon?: string;
9
9
  sx?: any;
10
+ iconSize?: number;
10
11
  }) => React.JSX.Element;
@@ -53,7 +53,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
53
53
  }
54
54
  return newObj;
55
55
  }
56
- const FxModalWithComponent = ({ btnType = 'text', btnValue, modalData, onClick, disabled, icon, sx })=>{
56
+ const FxModalWithComponent = ({ btnType = 'text', btnValue, modalData, onClick, disabled, icon, sx, iconSize })=>{
57
57
  const [isOpen, setIsOpen] = (0, _react.useState)(false);
58
58
  const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
59
59
  const handleClick = (e)=>{
@@ -83,8 +83,8 @@ const FxModalWithComponent = ({ btnType = 'text', btnValue, modalData, onClick,
83
83
  btnValue: btnValue,
84
84
  onClick: handleClick,
85
85
  startIcon: icon,
86
- iconSize: 20,
87
- disabled: disabled
86
+ disabled: disabled,
87
+ iconSize: iconSize || 20
88
88
  }),
89
89
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Menu, {
90
90
  id: "fade-menu",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare const FxModalWithMenu: ({ btnType, btnValue, modalData, onClick, disabled, icon, shouldShowModal, sx, }: {
2
+ export declare const FxModalWithMenu: ({ btnType, btnValue, modalData, onClick, disabled, icon, shouldShowModal, sx, iconSize, }: {
3
3
  btnType?: 'text' | 'icon';
4
4
  btnValue?: string;
5
5
  modalData: any;
@@ -8,4 +8,5 @@ export declare const FxModalWithMenu: ({ btnType, btnValue, modalData, onClick,
8
8
  icon?: string;
9
9
  shouldShowModal?: boolean;
10
10
  sx?: any;
11
+ iconSize?: number;
11
12
  }) => React.JSX.Element;
@@ -54,7 +54,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
54
54
  }
55
55
  return newObj;
56
56
  }
57
- const FxModalWithMenu = ({ btnType = 'text', btnValue, modalData, onClick, disabled, icon, shouldShowModal = true, sx })=>{
57
+ const FxModalWithMenu = ({ btnType = 'text', btnValue, modalData, onClick, disabled, icon, shouldShowModal = true, sx, iconSize })=>{
58
58
  const [isOpen, setIsOpen] = (0, _react.useState)(false);
59
59
  const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
60
60
  const handleClick = (e)=>{
@@ -84,7 +84,7 @@ const FxModalWithMenu = ({ btnType = 'text', btnValue, modalData, onClick, disab
84
84
  btnValue: btnValue,
85
85
  onClick: handleClick,
86
86
  startIcon: icon,
87
- iconSize: 20,
87
+ iconSize: iconSize || 20,
88
88
  disabled: disabled
89
89
  }),
90
90
  shouldShowModal && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Menu, {
package/package.json CHANGED
@@ -65,5 +65,5 @@
65
65
  "require": "./dist/index.js"
66
66
  }
67
67
  },
68
- "version": "0.2.99"
68
+ "version": "0.3.0"
69
69
  }