@pdg/react-form 1.0.108 → 1.0.110

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 CHANGED
@@ -10614,7 +10614,7 @@ SearchGroup.defaultProps = SearchGroupDefaultProps;var SearchButtonDefaultProps
10614
10614
  * Memo
10615
10615
  * ******************************************************************************************************************/
10616
10616
  var children = _a.children, className = _a.className, initSx = _a.sx, startIcon = _a.startIcon, endIcon = _a.endIcon, icon = _a.icon, props = __rest(_a, ["children", "className", "sx", "startIcon", "endIcon", "icon"]);
10617
- var sx = useMemo(function () { return (__assign({ minWidth: 0, px: "".concat(!startIcon && !endIcon && !icon ? 9 : 13, "px !important") }, initSx)); }, [endIcon, icon, initSx, startIcon]);
10617
+ var sx = useMemo(function () { return (__assign({ minWidth: 0, px: "".concat(!children ? 9 : 13, "px !important") }, initSx)); }, [children, initSx]);
10618
10618
  /********************************************************************************************************************
10619
10619
  * Render
10620
10620
  * ******************************************************************************************************************/
@@ -10647,7 +10647,7 @@ SearchButton.defaultProps = SearchButtonDefaultProps;var SearchMenuButtonDefault
10647
10647
  * Memo
10648
10648
  * ******************************************************************************************************************/
10649
10649
  var open = useMemo(function () { return !!anchorEl; }, [anchorEl]);
10650
- var sx = useMemo(function () { return (__assign({ minWidth: 0, px: "".concat(!startIcon && !endIcon && !icon ? 9 : 13, "px !important") }, initSx)); }, [endIcon, icon, initSx, startIcon]);
10650
+ var sx = useMemo(function () { return (__assign({ minWidth: 0, px: "".concat(!children ? 9 : 13, "px !important") }, initSx)); }, [children, initSx]);
10651
10651
  var anchorOrigin = useMemo(function () {
10652
10652
  switch (placement || 'bottom') {
10653
10653
  case 'bottom':
package/dist/index.js CHANGED
@@ -10614,7 +10614,7 @@ SearchGroup.defaultProps = SearchGroupDefaultProps;var SearchButtonDefaultProps
10614
10614
  * Memo
10615
10615
  * ******************************************************************************************************************/
10616
10616
  var children = _a.children, className = _a.className, initSx = _a.sx, startIcon = _a.startIcon, endIcon = _a.endIcon, icon = _a.icon, props = __rest(_a, ["children", "className", "sx", "startIcon", "endIcon", "icon"]);
10617
- var sx = React.useMemo(function () { return (__assign({ minWidth: 0, px: "".concat(!startIcon && !endIcon && !icon ? 9 : 13, "px !important") }, initSx)); }, [endIcon, icon, initSx, startIcon]);
10617
+ var sx = React.useMemo(function () { return (__assign({ minWidth: 0, px: "".concat(!children ? 9 : 13, "px !important") }, initSx)); }, [children, initSx]);
10618
10618
  /********************************************************************************************************************
10619
10619
  * Render
10620
10620
  * ******************************************************************************************************************/
@@ -10647,7 +10647,7 @@ SearchButton.defaultProps = SearchButtonDefaultProps;var SearchMenuButtonDefault
10647
10647
  * Memo
10648
10648
  * ******************************************************************************************************************/
10649
10649
  var open = React.useMemo(function () { return !!anchorEl; }, [anchorEl]);
10650
- var sx = React.useMemo(function () { return (__assign({ minWidth: 0, px: "".concat(!startIcon && !endIcon && !icon ? 9 : 13, "px !important") }, initSx)); }, [endIcon, icon, initSx, startIcon]);
10650
+ var sx = React.useMemo(function () { return (__assign({ minWidth: 0, px: "".concat(!children ? 9 : 13, "px !important") }, initSx)); }, [children, initSx]);
10651
10651
  var anchorOrigin = React.useMemo(function () {
10652
10652
  switch (placement || 'bottom') {
10653
10653
  case 'bottom':
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pdg/react-form",
3
3
  "title": "React Form",
4
- "version": "1.0.108",
4
+ "version": "1.0.110",
5
5
  "description": "React Form",
6
6
  "type": "module",
7
7
  "types": "dist/index.d.ts",
@@ -45,7 +45,7 @@
45
45
  "@mui/icons-material": "^5.15.13",
46
46
  "@mui/material": "^5.15.13",
47
47
  "@mui/x-date-pickers": "^6.19.7",
48
- "@pdg/react-component": "^1.0.15",
48
+ "@pdg/react-component": "^1.0.16",
49
49
  "@pdg/react-hook": "^1.0.16",
50
50
  "@pdg/util": "^1.0.20",
51
51
  "@tinymce/tinymce-react": "^4.3.2",