@pdg/react-table 1.0.101 → 1.0.103
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/index.esm.js +3 -3
- package/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1761,12 +1761,12 @@ SearchTable.defaultProps = SearchTableDefaultProps;var TableButtonDefaultProps =
|
|
|
1761
1761
|
/********************************************************************************************************************
|
|
1762
1762
|
* Memo
|
|
1763
1763
|
* ******************************************************************************************************************/
|
|
1764
|
-
var children = _a.children, className = _a.className, initSx = _a.sx, color = _a.color, onClick = _a.onClick, props = __rest(_a, ["children", "className", "sx", "color", "onClick"]);
|
|
1765
|
-
var sx = useMemo(function () { return (__assign({ minWidth: 0, px: '5px !important' }, initSx)); }, [initSx]);
|
|
1764
|
+
var children = _a.children, className = _a.className, initSx = _a.sx, color = _a.color, startIcon = _a.startIcon, endIcon = _a.endIcon, onClick = _a.onClick, props = __rest(_a, ["children", "className", "sx", "color", "startIcon", "endIcon", "onClick"]);
|
|
1765
|
+
var sx = useMemo(function () { return (__assign({ minWidth: 0, px: empty(startIcon) && empty(endIcon) ? '7px !important' : empty(children) ? '5px !important' : '7px !important' }, initSx)); }, [children, endIcon, initSx, startIcon]);
|
|
1766
1766
|
/********************************************************************************************************************
|
|
1767
1767
|
* Render
|
|
1768
1768
|
* ******************************************************************************************************************/
|
|
1769
|
-
return (React.createElement(PdgButton, __assign({ ref: ref, className: classNames(className, 'TableButton'), type: 'button', size: 'small', sx: sx, color: color, onClick: onClick }, props), children));
|
|
1769
|
+
return (React.createElement(PdgButton, __assign({ ref: ref, className: classNames(className, 'TableButton'), type: 'button', size: 'small', sx: sx, color: color, startIcon: startIcon, endIcon: endIcon, onClick: onClick }, props), children));
|
|
1770
1770
|
});
|
|
1771
1771
|
TableButton.displayName = 'TableButton';
|
|
1772
1772
|
TableButton.defaultProps = TableButtonDefaultProps;var TableMenuButtonDefaultProps = {
|
package/dist/index.js
CHANGED
|
@@ -1761,12 +1761,12 @@ SearchTable.defaultProps = SearchTableDefaultProps;var TableButtonDefaultProps =
|
|
|
1761
1761
|
/********************************************************************************************************************
|
|
1762
1762
|
* Memo
|
|
1763
1763
|
* ******************************************************************************************************************/
|
|
1764
|
-
var children = _a.children, className = _a.className, initSx = _a.sx, color = _a.color, onClick = _a.onClick, props = __rest(_a, ["children", "className", "sx", "color", "onClick"]);
|
|
1765
|
-
var sx = React.useMemo(function () { return (__assign({ minWidth: 0, px: '5px !important' }, initSx)); }, [initSx]);
|
|
1764
|
+
var children = _a.children, className = _a.className, initSx = _a.sx, color = _a.color, startIcon = _a.startIcon, endIcon = _a.endIcon, onClick = _a.onClick, props = __rest(_a, ["children", "className", "sx", "color", "startIcon", "endIcon", "onClick"]);
|
|
1765
|
+
var sx = React.useMemo(function () { return (__assign({ minWidth: 0, px: util.empty(startIcon) && util.empty(endIcon) ? '7px !important' : util.empty(children) ? '5px !important' : '7px !important' }, initSx)); }, [children, endIcon, initSx, startIcon]);
|
|
1766
1766
|
/********************************************************************************************************************
|
|
1767
1767
|
* Render
|
|
1768
1768
|
* ******************************************************************************************************************/
|
|
1769
|
-
return (React.createElement(reactComponent.PdgButton, __assign({ ref: ref, className: classNames(className, 'TableButton'), type: 'button', size: 'small', sx: sx, color: color, onClick: onClick }, props), children));
|
|
1769
|
+
return (React.createElement(reactComponent.PdgButton, __assign({ ref: ref, className: classNames(className, 'TableButton'), type: 'button', size: 'small', sx: sx, color: color, startIcon: startIcon, endIcon: endIcon, onClick: onClick }, props), children));
|
|
1770
1770
|
});
|
|
1771
1771
|
TableButton.displayName = 'TableButton';
|
|
1772
1772
|
TableButton.defaultProps = TableButtonDefaultProps;var TableMenuButtonDefaultProps = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdg/react-table",
|
|
3
3
|
"title": "React Table",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.103",
|
|
5
5
|
"description": "React Table",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@mui/material": "^5.15.13",
|
|
49
49
|
"@mui/x-date-pickers": "^6.19.7",
|
|
50
50
|
"@pdg/react-component": "^1.0.21",
|
|
51
|
-
"@pdg/react-form": "^1.0.
|
|
51
|
+
"@pdg/react-form": "^1.0.120",
|
|
52
52
|
"@pdg/react-hook": "^1.0.16",
|
|
53
53
|
"@pdg/util": "^1.0.20",
|
|
54
54
|
"@tinymce/tinymce-react": "^4.3.2",
|