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
@@ -2202,6 +2202,13 @@ function UIElement(props) {
|
|
2202
2202
|
};
|
2203
2203
|
var Card = function Card(props) {
|
2204
2204
|
var isCard = scope.is('type|layout', 'card');
|
2205
|
+
if (scope.isType('list')) {
|
2206
|
+
var empty = scope.getPart('empty', null, undefined);
|
2207
|
+
var items = scope.getItems();
|
2208
|
+
if (empty === false && reactCrudUtils.Utils.isEmpty(items)) {
|
2209
|
+
isCard = false;
|
2210
|
+
}
|
2211
|
+
}
|
2205
2212
|
if (isCard) {
|
2206
2213
|
var _box = _extends({}, getStyle('box', _extends({}, boxStyle.box, {
|
2207
2214
|
alignSelf: 'stretch'
|