@fixefy/fixefy-ui-components 0.3.90 → 0.3.92
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/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.d.ts +2 -1
- package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.js +2 -1
- package/dist/FxButtonModalWithMenu/FxButtonModalWithMenu.js +1 -0
- package/dist/FxGridEmptyState/FxGridEmptyState.d.ts +3 -1
- package/dist/FxGridEmptyState/FxGridEmptyState.js +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const FxButtonModalWithComponent: ({ btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize, }: {
|
|
2
|
+
export declare const FxButtonModalWithComponent: ({ assetUrl, btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize, }: {
|
|
3
|
+
assetUrl?: string;
|
|
3
4
|
btnType?: "text" | "icon";
|
|
4
5
|
btnValue?: string;
|
|
5
6
|
modalData: any;
|
|
@@ -60,7 +60,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
60
60
|
}
|
|
61
61
|
return newObj;
|
|
62
62
|
}
|
|
63
|
-
const FxButtonModalWithComponent = ({ btnType = 'text', btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize })=>{
|
|
63
|
+
const FxButtonModalWithComponent = ({ assetUrl, btnType = 'text', btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize })=>{
|
|
64
64
|
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
65
65
|
const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
|
|
66
66
|
const handleClick = (e)=>{
|
|
@@ -85,6 +85,7 @@ const FxButtonModalWithComponent = ({ btnType = 'text', btnValue, modalData, onC
|
|
|
85
85
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
86
86
|
children: [
|
|
87
87
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledButton.FxStyledButton, {
|
|
88
|
+
assetUrl: assetUrl,
|
|
88
89
|
sx: sx,
|
|
89
90
|
btnType: btnType,
|
|
90
91
|
btnValue: btnValue,
|
|
@@ -86,6 +86,7 @@ const FxButtonModalWithMenu = ({ assetUrl, btnType = 'text', btnValue, modalData
|
|
|
86
86
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
87
87
|
children: [
|
|
88
88
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledButton.FxStyledButton, {
|
|
89
|
+
assetUrl: assetUrl,
|
|
89
90
|
sx: buttonSx,
|
|
90
91
|
btnType: btnType,
|
|
91
92
|
btnValue: btnValue,
|
|
@@ -18,7 +18,7 @@ function _interop_require_default(obj) {
|
|
|
18
18
|
default: obj
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
const FxGridEmptyState = ({ assetUrl })=>{
|
|
21
|
+
const FxGridEmptyState = ({ assetUrl, mainIcon, message })=>{
|
|
22
22
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
|
|
23
23
|
sx: {
|
|
24
24
|
width: '100%',
|
|
@@ -46,7 +46,7 @@ const FxGridEmptyState = ({ assetUrl })=>{
|
|
|
46
46
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
|
|
47
47
|
width: 279,
|
|
48
48
|
height: 250,
|
|
49
|
-
icon: 'table/table_no_results.svg',
|
|
49
|
+
icon: mainIcon || 'table/table_no_results.svg',
|
|
50
50
|
assetUrl: assetUrl
|
|
51
51
|
}),
|
|
52
52
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
|
|
@@ -65,7 +65,7 @@ const FxGridEmptyState = ({ assetUrl })=>{
|
|
|
65
65
|
flexDirection: 'column',
|
|
66
66
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
|
|
67
67
|
variant: "h5",
|
|
68
|
-
children:
|
|
68
|
+
children: message || 'There is currently no data to display.'
|
|
69
69
|
})
|
|
70
70
|
})
|
|
71
71
|
})
|
package/package.json
CHANGED