react-crud-mobile 1.3.351 → 1.3.353
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/react-crud-mobile.cjs.development.js +5 -4
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +5 -4
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +11 -9
@@ -2088,6 +2088,7 @@ function UIElement(props) {
|
|
2088
2088
|
return false;
|
2089
2089
|
};
|
2090
2090
|
var isShowInner = function isShowInner() {
|
2091
|
+
if (scope.isType('icon')) return false;
|
2091
2092
|
if (hasChildren()) {
|
2092
2093
|
return false;
|
2093
2094
|
}
|
@@ -2129,10 +2130,6 @@ function UIElement(props) {
|
|
2129
2130
|
style: scope.getPart('label', 'button'),
|
2130
2131
|
children: scope.getLabel()
|
2131
2132
|
})]
|
2132
|
-
})), scope.is('type', 'icon') && /*#__PURE__*/jsxRuntime.jsx(UIIcon, _extends({}, defaultsUI, {
|
2133
|
-
onClick: onClick,
|
2134
|
-
variant: scope.attr('variant', 'outlined'),
|
2135
|
-
children: scope.getDisplayValue()
|
2136
2133
|
})), scope.is('type', 'link') && /*#__PURE__*/jsxRuntime.jsxs(UILink, _extends({}, defaultsUI, {
|
2137
2134
|
onClick: onClick,
|
2138
2135
|
variant: scope.attr('variant', 'outlined'),
|
@@ -2247,6 +2244,10 @@ function UIElement(props) {
|
|
2247
2244
|
})), scope.isType('view') && /*#__PURE__*/jsxRuntime.jsx(UIView, _extends({}, props, {
|
2248
2245
|
scope: scope,
|
2249
2246
|
crud: crud
|
2247
|
+
})), scope.is('type', 'icon') && /*#__PURE__*/jsxRuntime.jsx(UIIcon, _extends({}, defaultsUI, {
|
2248
|
+
onClick: onClick,
|
2249
|
+
variant: scope.attr('variant', 'outlined'),
|
2250
|
+
children: scope.getDisplayValue()
|
2250
2251
|
})), isShowChild() && /*#__PURE__*/jsxRuntime.jsx(UIChildren, _extends({}, props, {
|
2251
2252
|
scope: scope,
|
2252
2253
|
crud: crud,
|