@simple-builder/react 1.4.2 → 1.5.1

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.
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import './chunk-X5MZZBYC.mjs';
3
- import { buttonVariants, Button, useBuilder } from './chunk-ZJYB6LEV.mjs';
4
- import { cn, tv, DesignWrapper, builder, Image } from './chunk-QSAIF4GO.mjs';
2
+ import './chunk-5X4LY7OW.mjs';
3
+ import { buttonVariants, Button, useBuilder } from './chunk-5C63BZJZ.mjs';
4
+ import { cn, tv, DesignWrapper, builder, Image } from './chunk-TWEX2YSZ.mjs';
5
5
  import * as React25 from 'react';
6
6
  import { useCallback } from 'react';
7
7
  import { ChevronRight, Check, Circle, X, ChevronDown, ChevronUp, PlusIcon, ArrowUp, ArrowDown, Edit2Icon, Trash2Icon, ImageIcon, XIcon, PlusCircleIcon, CalendarIcon, MonitorIcon, SmartphoneIcon, ChevronLeftIcon, ChevronRightIcon, PaintbrushIcon, Loader2Icon, AlignHorizontalSpaceAroundIcon, AlignHorizontalJustifyStartIcon, ScanIcon } from 'lucide-react';
@@ -2265,7 +2265,7 @@ var build_container_client_default = BuildContainerInner;
2265
2265
  var AddContentButton = (props) => {
2266
2266
  const components = builder.getComponents();
2267
2267
  const { addContent } = useBuilder();
2268
- return /* @__PURE__ */ React25.createElement(Popover, null, /* @__PURE__ */ React25.createElement(PopoverTrigger, { asChild: true }, props.children), /* @__PURE__ */ React25.createElement(PopoverContent, { className: "sb:p-1" }, /* @__PURE__ */ React25.createElement("div", { className: "sb:grid sb:grid-cols-2 sb:gap-2" }, components.map((component) => {
2268
+ return /* @__PURE__ */ React25.createElement(Popover, null, /* @__PURE__ */ React25.createElement(PopoverTrigger, { asChild: true }, props.children), /* @__PURE__ */ React25.createElement(PopoverContent, { className: "sb:p-1 sb:w-screen sb:max-w-lg" }, /* @__PURE__ */ React25.createElement("div", { className: "sb:grid sb:grid-cols-2 sb:gap-2" }, components.map((component) => {
2269
2269
  const Icon2 = component.icon ?? ImageIcon;
2270
2270
  return /* @__PURE__ */ React25.createElement(PopoverClose, { key: component.name, asChild: true }, /* @__PURE__ */ React25.createElement(
2271
2271
  Button,
@@ -2282,7 +2282,7 @@ var AddContentButton = (props) => {
2282
2282
  }
2283
2283
  },
2284
2284
  /* @__PURE__ */ React25.createElement(Icon2, { className: "sb:mr-2 sb:h-4 sb:w-4 sb:shrink-0" }),
2285
- component.friendlyName ?? component.name
2285
+ /* @__PURE__ */ React25.createElement("span", { className: "sb:truncate" }, component.friendlyName ?? component.name)
2286
2286
  ));
2287
2287
  }))));
2288
2288
  };