utopia-ui 3.0.0-alpha.231 → 3.0.0-alpha.233

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 CHANGED
@@ -3169,8 +3169,8 @@ function LayerControl() {
3169
3169
  var isLayerVisible = useIsLayerVisible();
3170
3170
  var toggleVisibleLayer = useToggleVisibleLayer();
3171
3171
  useAddVisibleLayer();
3172
- return (jsx("div", __assign({ className: "tw-card tw-bg-base-100 tw-shadow-xl tw-mt-2 tw-w-fit tw-pr-4" }, { children: open ?
3173
- jsxs("div", __assign({ className: "tw-card-body tw-p-2 tw-w-36 tw-transition-all tw-duration-300" }, { children: [jsx("label", __assign({ className: "tw-btn tw-btn-sm tw-rounded-2xl tw-btn-circle tw-btn-ghost hover:tw-bg-transparent tw-absolute tw-right-0 tw-top-0 tw-text-gray-600", onClick: function () {
3172
+ return (jsx("div", __assign({ className: "tw-card tw-bg-base-100 tw-shadow-xl tw-mt-2 tw-w-fit" }, { children: open ?
3173
+ jsxs("div", __assign({ className: "tw-card-body tw-pr-4 tw-p-2 tw-w-36 tw-transition-all tw-duration-300" }, { children: [jsx("label", __assign({ className: "tw-btn tw-btn-sm tw-rounded-2xl tw-btn-circle tw-btn-ghost hover:tw-bg-transparent tw-absolute tw-right-0 tw-top-0 tw-text-gray-600", onClick: function () {
3174
3174
  setOpen(false);
3175
3175
  } }, { children: jsx("p", __assign({ className: 'tw-text-center ' }, { children: "\u2715" })) })), jsx("ul", __assign({ className: 'tw-flex-row' }, { children: layers.map(function (layer) {
3176
3176
  return (layer.listed && jsx("li", { children: jsxs("label", __assign({ htmlFor: layer.name, className: "tw-label tw-justify-normal tw-pt-1 tw-pb-1" }, { children: [jsx("input", { id: layer.name, onChange: function () { return toggleVisibleLayer(layer); }, type: "checkbox", className: "tw-checkbox tw-checkbox-xs tw-checkbox-success", checked: isLayerVisible(layer) }), jsx("span", __assign({ className: 'tw-text-sm tw-label-text tw-mx-2 tw-cursor-pointer' }, { children: layer.name }))] })) }, layer.name));