lilact 0.26.9 → 0.26.11
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/lilact.development.js +5 -1
- package/dist/lilact.development.js.map +2 -2
- package/dist/lilact.development.min.js +1 -1
- package/dist/lilact.development.min.js.map +2 -2
- package/dist/lilact.production.min.js +1 -1
- package/docs/assets/hierarchy.js +1 -1
- package/docs/classes/components.Component.html +1 -1
- package/docs/classes/components.HTMLComponent.html +1 -1
- package/docs/classes/components.RootComponent.html +1 -1
- package/docs/functions/components.cloneComponent.html +23 -1
- package/docs/functions/components.memo.html +1 -1
- package/docs/functions/components.render.html +1 -1
- package/docs/functions/timers.timeoutPromise.html +3 -3
- package/docs/hierarchy.html +1 -1
- package/docs/static/lilact.development.js +5 -1
- package/docs/static/lilact.development.js.map +2 -2
- package/docs/static/lilact.development.min.js +1 -1
- package/docs/static/lilact.development.min.js.map +2 -2
- package/docs/static/lilact.production.min.js +1 -1
- package/docs/variables/components.cloneElement.html +23 -1
- package/examples/lilact.development.js +5 -1
- package/examples/lilact.development.js.map +2 -2
- package/examples/lilact.development.min.js +1 -1
- package/examples/lilact.development.min.js.map +2 -2
- package/examples/lilact.production.min.js +1 -1
- package/package.json +1 -1
- package/src/components.jsx +58 -1
|
@@ -3121,7 +3121,11 @@ function createPortal(children, element) {
|
|
|
3121
3121
|
return createComponent2(lilact_default.Portal, { "view": element }, children);
|
|
3122
3122
|
}
|
|
3123
3123
|
function cloneComponent(component, propsPatch, ...children) {
|
|
3124
|
-
|
|
3124
|
+
const cc = { entity: component.entity, props: { ...component.props, ...propsPatch }, [CORE]: null };
|
|
3125
|
+
if (children == null ? void 0 : children.length) {
|
|
3126
|
+
cc.props.children = children;
|
|
3127
|
+
}
|
|
3128
|
+
return cc;
|
|
3125
3129
|
}
|
|
3126
3130
|
var cloneElement = cloneComponent;
|
|
3127
3131
|
function render(component, element) {
|