react-crud-mobile 1.3.234 → 1.3.235
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 +7 -0
- 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 +7 -0
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +9 -0
@@ -2193,6 +2193,13 @@ function UIElement(props) {
|
|
2193
2193
|
};
|
2194
2194
|
var Card = function Card(props) {
|
2195
2195
|
var isCard = scope.is('type|layout', 'card');
|
2196
|
+
if (scope.isType('list')) {
|
2197
|
+
var empty = scope.getPart('empty', null, undefined);
|
2198
|
+
var items = scope.getItems();
|
2199
|
+
if (empty === false && Utils.isEmpty(items)) {
|
2200
|
+
isCard = false;
|
2201
|
+
}
|
2202
|
+
}
|
2196
2203
|
if (isCard) {
|
2197
2204
|
var _box = _extends({}, getStyle('box', _extends({}, boxStyle.box, {
|
2198
2205
|
alignSelf: 'stretch'
|