utopia-ui 3.0.0-alpha.221 → 3.0.0-alpha.223
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -3470,7 +3470,7 @@ var ItemViewPopup = React.forwardRef(function (props, ref) {
|
|
3470
3470
|
function ItemFormPopup(props) {
|
3471
3471
|
var _this = this;
|
3472
3472
|
var _a = useState(false), spinner = _a[0], setSpinner = _a[1];
|
3473
|
-
var _b = useState("")
|
3473
|
+
var _b = useState(""); _b[0]; var setPopupTitle = _b[1];
|
3474
3474
|
var formRef = useRef(null);
|
3475
3475
|
var map = useMap();
|
3476
3476
|
var addItem = useAddItem();
|
@@ -3583,7 +3583,7 @@ function ItemFormPopup(props) {
|
|
3583
3583
|
}
|
3584
3584
|
}, position: props.position }, { children: jsxs("form", __assign({ ref: formRef, onReset: resetPopup, autoComplete: 'off', onSubmit: function (e) { return handleSubmit(e); } }, { children: [props.item ? jsx("div", { className: 'tw-h-3' })
|
3585
3585
|
:
|
3586
|
-
jsx("div", __assign({ className: 'tw-flex tw-justify-center' }, { children: jsx("b", __assign({ className: "tw-text-xl tw-font-bold" }, { children:
|
3586
|
+
jsx("div", __assign({ className: 'tw-flex tw-justify-center' }, { children: jsx("b", __assign({ className: "tw-text-xl tw-font-bold" }, { children: props.layer.menuText })) })), props.children ?
|
3587
3587
|
React.Children.toArray(props.children).map(function (child) {
|
3588
3588
|
return React.isValidElement(child) ?
|
3589
3589
|
React.cloneElement(child, { item: props.item, key: props.position.toString(), setPopupTitle: setPopupTitle }) : "";
|