react-crud-mobile 1.0.550 → 1.0.552
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 +7 -5
|
@@ -157,21 +157,23 @@ export default function UIElement(props: ElementType) {
|
|
|
157
157
|
const getStyle = (part?: string) => {
|
|
158
158
|
let type = Utils.nvl(original.type, 'none');
|
|
159
159
|
let key = Utils.nvl(part, 'root');
|
|
160
|
-
let def = { ...styles[key]
|
|
160
|
+
let def = { ...styles[key] };
|
|
161
161
|
let hasChild = hasChildren();
|
|
162
162
|
|
|
163
163
|
if (!part && !hasChild) {
|
|
164
164
|
def = { ...def };
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
if (hasChild && part) {
|
|
168
|
-
def = { ...def, ...withChildStyles[part] };
|
|
169
|
-
}
|
|
170
|
-
|
|
171
167
|
if (scope.isInput()) {
|
|
172
168
|
def = { ...def, ...elementStyle.input[key] };
|
|
173
169
|
}
|
|
174
170
|
|
|
171
|
+
def = { ...def, ...elementStyle?.[type]?.[key] };
|
|
172
|
+
|
|
173
|
+
if (hasChild && part) {
|
|
174
|
+
def = { ...def, ...withChildStyles[part] };
|
|
175
|
+
}
|
|
176
|
+
|
|
175
177
|
return { ...def, ...scope.getStyle(part, def) };
|
|
176
178
|
};
|
|
177
179
|
|