@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.
- package/dist/{build-container-client-6S55GQVT.mjs → build-container-client-6TC2IEII.mjs} +5 -5
- package/dist/{build-container-client-JAITVVDD.js → build-container-client-EJNKMHTC.js} +101 -101
- package/dist/{build-container-client-D2ZD6IEH.css → build-container-client-YWNDWXO2.css} +3 -0
- package/dist/{builder-content-H75SR7I7.mjs → builder-content-FTTWEFTK.mjs} +2 -2
- package/dist/{builder-content-7ZRYWXPN.js → builder-content-QH2VX65W.js} +7 -7
- package/dist/{builder-content-NFFJ4NAB.css → builder-content-V2MDRHJI.css} +3 -0
- package/dist/{chunk-63LNKQZD.js → chunk-37KLYH3L.js} +48 -36
- package/dist/{chunk-ZJYB6LEV.mjs → chunk-5C63BZJZ.mjs} +1 -1
- package/dist/{chunk-X5MZZBYC.mjs → chunk-5X4LY7OW.mjs} +2 -2
- package/dist/{chunk-7FWFM2TR.js → chunk-6TXJMYOX.js} +5 -5
- package/dist/{chunk-JFWIO2AR.js → chunk-LPP77IMH.js} +3 -3
- package/dist/{chunk-QSAIF4GO.mjs → chunk-TWEX2YSZ.mjs} +48 -36
- package/dist/index.css +3 -0
- package/dist/index.d.mts +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +6 -6
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import './chunk-
|
|
3
|
-
import { buttonVariants, Button, useBuilder } from './chunk-
|
|
4
|
-
import { cn, tv, DesignWrapper, builder, Image } from './chunk-
|
|
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
|
};
|