@measured/puck 0.9.0-canary.2bf48af → 0.9.0-canary.f3e5b50
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.css +46 -44
- package/dist/index.js +134 -102
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -210,28 +210,26 @@
|
|
210
210
|
}
|
211
211
|
|
212
212
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css/#css-module-data */
|
213
|
-
.
|
214
|
-
position: relative;
|
213
|
+
._DraggableComponent_nszpn_1 {
|
215
214
|
pointer-events: auto;
|
216
215
|
}
|
217
|
-
._DraggableComponent--
|
216
|
+
._DraggableComponent--isDragging_nszpn_5 {
|
218
217
|
background: #abc7e510;
|
219
218
|
outline: 2px var(--puck-color-azure-8) solid;
|
220
219
|
overflow: hidden;
|
221
220
|
}
|
222
|
-
._DraggableComponent-
|
221
|
+
._DraggableComponent-contents_nszpn_11 {
|
223
222
|
position: relative;
|
224
223
|
pointer-events: none;
|
225
224
|
}
|
226
|
-
._DraggableComponent-
|
227
|
-
._DraggableComponent-
|
225
|
+
._DraggableComponent-contents_nszpn_11::before,
|
226
|
+
._DraggableComponent-contents_nszpn_11::after {
|
228
227
|
content: " ";
|
229
228
|
display: table;
|
230
229
|
}
|
231
|
-
._DraggableComponent-
|
230
|
+
._DraggableComponent-overlay_nszpn_23 {
|
232
231
|
display: none;
|
233
232
|
background: #abc7e530;
|
234
|
-
outline: 2px var(--puck-color-azure-8) solid;
|
235
233
|
cursor: pointer;
|
236
234
|
height: 100%;
|
237
235
|
width: 100%;
|
@@ -242,28 +240,33 @@
|
|
242
240
|
pointer-events: none;
|
243
241
|
box-sizing: border-box;
|
244
242
|
}
|
245
|
-
.
|
243
|
+
._DraggableComponent_nszpn_1:hover:not(._DraggableComponent--isLocked_nszpn_37) > ._DraggableComponent-overlay_nszpn_23 {
|
246
244
|
display: block;
|
247
245
|
pointer-events: none;
|
248
246
|
}
|
249
|
-
._DraggableComponent--
|
247
|
+
._DraggableComponent--forceHover_nszpn_43 > ._DraggableComponent-overlay_nszpn_23 {
|
250
248
|
display: block;
|
251
249
|
pointer-events: none;
|
252
250
|
}
|
253
|
-
._DraggableComponent--
|
251
|
+
._DraggableComponent--indicativeHover_nszpn_48 > ._DraggableComponent-overlay_nszpn_23 {
|
254
252
|
display: block;
|
255
253
|
background: transparent;
|
256
254
|
pointer-events: none;
|
257
255
|
}
|
258
|
-
.
|
256
|
+
._DraggableComponent_nszpn_1:not(._DraggableComponent--isSelected_nszpn_55):has(._DraggableComponent_nszpn_1:hover > ._DraggableComponent-overlay_nszpn_23) > ._DraggableComponent-overlay_nszpn_23 {
|
259
257
|
display: none;
|
260
258
|
}
|
261
|
-
._DraggableComponent--
|
259
|
+
._DraggableComponent--isSelected_nszpn_55 {
|
260
|
+
outline: 2px var(--puck-color-azure-6) solid;
|
261
|
+
}
|
262
|
+
._DraggableComponent--isSelected_nszpn_55 > ._DraggableComponent-overlay_nszpn_23 {
|
262
263
|
background: none;
|
263
264
|
display: block;
|
264
|
-
|
265
|
+
position: sticky;
|
266
|
+
top: 56px;
|
267
|
+
z-index: 1;
|
265
268
|
}
|
266
|
-
._DraggableComponent-
|
269
|
+
._DraggableComponent-actions_nszpn_74 {
|
267
270
|
position: absolute;
|
268
271
|
right: 6.5px;
|
269
272
|
width: auto;
|
@@ -279,10 +282,10 @@
|
|
279
282
|
pointer-events: auto;
|
280
283
|
box-sizing: border-box;
|
281
284
|
}
|
282
|
-
._DraggableComponent--
|
285
|
+
._DraggableComponent--isSelected_nszpn_55 > ._DraggableComponent-overlay_nszpn_23 > ._DraggableComponent-actions_nszpn_74 {
|
283
286
|
display: flex;
|
284
287
|
}
|
285
|
-
._DraggableComponent-
|
288
|
+
._DraggableComponent-actionsLabel_nszpn_97 {
|
286
289
|
color: var(--puck-color-grey-7);
|
287
290
|
display: flex;
|
288
291
|
font-size: var(--puck-font-size-xxxs);
|
@@ -296,7 +299,7 @@
|
|
296
299
|
text-overflow: ellipsis;
|
297
300
|
white-space: nowrap;
|
298
301
|
}
|
299
|
-
._DraggableComponent-
|
302
|
+
._DraggableComponent-action_nszpn_74 {
|
300
303
|
background: transparent;
|
301
304
|
border: none;
|
302
305
|
color: var(--puck-color-grey-7);
|
@@ -304,14 +307,14 @@
|
|
304
307
|
border-radius: 4px;
|
305
308
|
overflow: hidden;
|
306
309
|
}
|
307
|
-
._DraggableComponent-
|
310
|
+
._DraggableComponent-action_nszpn_74:hover {
|
308
311
|
background: var(--puck-color-grey-2);
|
309
312
|
color: var(--puck-color-azure-5);
|
310
313
|
cursor: pointer;
|
311
314
|
}
|
312
315
|
|
313
316
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css/#css-module-data */
|
314
|
-
.
|
317
|
+
._DropZone_ou0z5_1 {
|
315
318
|
margin-left: auto;
|
316
319
|
margin-right: auto;
|
317
320
|
zoom: 1.33;
|
@@ -320,39 +323,37 @@
|
|
320
323
|
outline-offset: -1px;
|
321
324
|
width: 100%;
|
322
325
|
}
|
323
|
-
._DropZone-
|
326
|
+
._DropZone-content_ou0z5_11 {
|
324
327
|
min-height: 128px;
|
325
328
|
height: 100%;
|
326
329
|
}
|
327
|
-
._DropZone--
|
330
|
+
._DropZone--userIsDragging_ou0z5_16 ._DropZone-content_ou0z5_11 {
|
328
331
|
pointer-events: all;
|
329
332
|
}
|
330
|
-
._DropZone--
|
333
|
+
._DropZone--userIsDragging_ou0z5_16:not(._DropZone--draggingOverArea_ou0z5_20):not(._DropZone--draggingNewComponent_ou0z5_21) > ._DropZone-content_ou0z5_11 {
|
331
334
|
pointer-events: none;
|
332
335
|
}
|
333
|
-
._DropZone--
|
334
|
-
._DropZone--
|
335
|
-
._DropZone--
|
336
|
+
._DropZone--isAreaSelected_ou0z5_27,
|
337
|
+
._DropZone--draggingOverArea_ou0z5_20:not(:has(._DropZone--hoveringOverArea_ou0z5_28)),
|
338
|
+
._DropZone--hoveringOverArea_ou0z5_28:not(._DropZone--isDisabled_ou0z5_29):not(._DropZone--isRootZone_ou0z5_30) {
|
336
339
|
background: var(--puck-color-azure-9);
|
337
340
|
outline: 2px dashed var(--puck-color-azure-7);
|
338
341
|
}
|
339
|
-
.
|
342
|
+
._DropZone_ou0z5_1:not(._DropZone--hasChildren_ou0z5_36) {
|
340
343
|
background: var(--puck-color-azure-9);
|
341
344
|
outline: 2px dashed var(--puck-color-azure-7);
|
342
345
|
}
|
343
|
-
._DropZone--
|
346
|
+
._DropZone--isDestination_ou0z5_41 {
|
344
347
|
outline: 2px dashed var(--puck-color-azure-3) !important;
|
345
348
|
}
|
346
|
-
._DropZone--
|
349
|
+
._DropZone--isDestination_ou0z5_41:not(._DropZone--isRootZone_ou0z5_30) {
|
347
350
|
background: var(--puck-color-azure-85) !important;
|
348
351
|
}
|
349
|
-
._DropZone-
|
352
|
+
._DropZone-item_ou0z5_49 {
|
350
353
|
position: relative;
|
354
|
+
z-index: 0;
|
351
355
|
}
|
352
|
-
._DropZone-
|
353
|
-
z-index: 1;
|
354
|
-
}
|
355
|
-
._DropZone-hitbox_1980k_57 {
|
356
|
+
._DropZone-hitbox_ou0z5_54 {
|
356
357
|
position: absolute;
|
357
358
|
bottom: -12px;
|
358
359
|
height: 24px;
|
@@ -744,39 +745,40 @@
|
|
744
745
|
}
|
745
746
|
|
746
747
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css/#css-module-data */
|
747
|
-
.
|
748
|
+
._Heading_1bvy5_1 {
|
748
749
|
display: block;
|
750
|
+
color: var(--puck-color-black);
|
749
751
|
font-family: var(--puck-font-stack);
|
750
752
|
font-weight: 700;
|
751
753
|
margin: 0;
|
752
754
|
}
|
753
|
-
.
|
755
|
+
._Heading_1bvy5_1 b {
|
754
756
|
font-weight: 700;
|
755
757
|
}
|
756
|
-
._Heading--
|
758
|
+
._Heading--xxxxl_1bvy5_13 {
|
757
759
|
font-size: var(--puck-font-size-xxxxl);
|
758
760
|
letter-spacing: 0.08ch;
|
759
761
|
font-weight: 800;
|
760
762
|
}
|
761
|
-
._Heading--
|
763
|
+
._Heading--xxxl_1bvy5_19 {
|
762
764
|
font-size: var(--puck-font-size-xxxl);
|
763
765
|
}
|
764
|
-
._Heading--
|
766
|
+
._Heading--xxl_1bvy5_23 {
|
765
767
|
font-size: var(--puck-font-size-xxl);
|
766
768
|
}
|
767
|
-
._Heading--
|
769
|
+
._Heading--xl_1bvy5_27 {
|
768
770
|
font-size: var(--puck-font-size-xl);
|
769
771
|
}
|
770
|
-
._Heading--
|
772
|
+
._Heading--l_1bvy5_31 {
|
771
773
|
font-size: var(--puck-font-size-l);
|
772
774
|
}
|
773
|
-
._Heading--
|
775
|
+
._Heading--m_1bvy5_35 {
|
774
776
|
font-size: var(--puck-font-size-m);
|
775
777
|
}
|
776
|
-
._Heading--
|
778
|
+
._Heading--s_1bvy5_39 {
|
777
779
|
font-size: var(--puck-font-size-s);
|
778
780
|
}
|
779
|
-
._Heading--
|
781
|
+
._Heading--xs_1bvy5_43 {
|
780
782
|
font-size: var(--puck-font-size-xs);
|
781
783
|
}
|
782
784
|
|
package/dist/index.js
CHANGED
@@ -327,7 +327,7 @@ var require_react_is_development = __commonJS({
|
|
327
327
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
328
328
|
var Element = REACT_ELEMENT_TYPE;
|
329
329
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
330
|
-
var
|
330
|
+
var Fragment9 = REACT_FRAGMENT_TYPE;
|
331
331
|
var Lazy = REACT_LAZY_TYPE;
|
332
332
|
var Memo = REACT_MEMO_TYPE;
|
333
333
|
var Portal = REACT_PORTAL_TYPE;
|
@@ -386,7 +386,7 @@ var require_react_is_development = __commonJS({
|
|
386
386
|
exports.ContextProvider = ContextProvider;
|
387
387
|
exports.Element = Element;
|
388
388
|
exports.ForwardRef = ForwardRef;
|
389
|
-
exports.Fragment =
|
389
|
+
exports.Fragment = Fragment9;
|
390
390
|
exports.Lazy = Lazy;
|
391
391
|
exports.Memo = Memo;
|
392
392
|
exports.Portal = Portal;
|
@@ -1223,7 +1223,7 @@ var import_react_beautiful_dnd = require("react-beautiful-dnd");
|
|
1223
1223
|
|
1224
1224
|
// css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css#css-module
|
1225
1225
|
init_react_import();
|
1226
|
-
var styles_module_default = { "DraggableComponent": "
|
1226
|
+
var styles_module_default = { "DraggableComponent": "_DraggableComponent_nszpn_1", "DraggableComponent--isDragging": "_DraggableComponent--isDragging_nszpn_5", "DraggableComponent-contents": "_DraggableComponent-contents_nszpn_11", "DraggableComponent-overlay": "_DraggableComponent-overlay_nszpn_23", "DraggableComponent--isLocked": "_DraggableComponent--isLocked_nszpn_37", "DraggableComponent--forceHover": "_DraggableComponent--forceHover_nszpn_43", "DraggableComponent--indicativeHover": "_DraggableComponent--indicativeHover_nszpn_48", "DraggableComponent--isSelected": "_DraggableComponent--isSelected_nszpn_55", "DraggableComponent-actions": "_DraggableComponent-actions_nszpn_74", "DraggableComponent-actionsLabel": "_DraggableComponent-actionsLabel_nszpn_97", "DraggableComponent-action": "_DraggableComponent-action_nszpn_74" };
|
1227
1227
|
|
1228
1228
|
// ../../node_modules/react-feather/dist/index.js
|
1229
1229
|
init_react_import();
|
@@ -2451,12 +2451,12 @@ var DraggableComponent = ({
|
|
2451
2451
|
onClick,
|
2452
2452
|
children: [
|
2453
2453
|
debug,
|
2454
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: getClassName2("contents"), children }),
|
2455
2454
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: getClassName2("overlay"), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: getClassName2("actions"), children: [
|
2456
2455
|
label && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: getClassName2("actionsLabel"), children: label }),
|
2457
2456
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { className: getClassName2("action"), onClick: onDuplicate, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(copy_default, { size: 16 }) }),
|
2458
2457
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { className: getClassName2("action"), onClick: onDelete, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(trash_default, { size: 16 }) })
|
2459
|
-
] }) })
|
2458
|
+
] }) }),
|
2459
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: getClassName2("contents"), children })
|
2460
2460
|
]
|
2461
2461
|
})
|
2462
2462
|
)
|
@@ -2548,7 +2548,7 @@ var replace = (list, index, newItem) => {
|
|
2548
2548
|
|
2549
2549
|
// css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css#css-module
|
2550
2550
|
init_react_import();
|
2551
|
-
var styles_module_default2 = { "DropZone": "
|
2551
|
+
var styles_module_default2 = { "DropZone": "_DropZone_ou0z5_1", "DropZone-content": "_DropZone-content_ou0z5_11", "DropZone--userIsDragging": "_DropZone--userIsDragging_ou0z5_16", "DropZone--draggingOverArea": "_DropZone--draggingOverArea_ou0z5_20", "DropZone--draggingNewComponent": "_DropZone--draggingNewComponent_ou0z5_21", "DropZone--isAreaSelected": "_DropZone--isAreaSelected_ou0z5_27", "DropZone--hoveringOverArea": "_DropZone--hoveringOverArea_ou0z5_28", "DropZone--isDisabled": "_DropZone--isDisabled_ou0z5_29", "DropZone--isRootZone": "_DropZone--isRootZone_ou0z5_30", "DropZone--hasChildren": "_DropZone--hasChildren_ou0z5_36", "DropZone--isDestination": "_DropZone--isDestination_ou0z5_41", "DropZone-item": "_DropZone-item_ou0z5_49", "DropZone-hitbox": "_DropZone-hitbox_ou0z5_54" };
|
2552
2552
|
|
2553
2553
|
// components/DropZone/context.tsx
|
2554
2554
|
init_react_import();
|
@@ -2782,97 +2782,108 @@ function DropZoneEdit({ zone, style }) {
|
|
2782
2782
|
editMode: true
|
2783
2783
|
});
|
2784
2784
|
const isSelected = (selectedItem == null ? void 0 : selectedItem.props.id) === componentId || false;
|
2785
|
+
const isDragging = ((draggedItem == null ? void 0 : draggedItem.draggableId) || "draggable-").split(
|
2786
|
+
"draggable-"
|
2787
|
+
)[1] === componentId;
|
2785
2788
|
const containsZone = areasWithZones ? areasWithZones[componentId] : false;
|
2786
2789
|
const Render2 = config.components[item.type] ? config.components[item.type].render : () => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { padding: 48, textAlign: "center" }, children: [
|
2787
2790
|
"No configuration for ",
|
2788
2791
|
item.type
|
2789
2792
|
] });
|
2790
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
2791
|
-
|
2792
|
-
|
2793
|
-
|
2794
|
-
|
2795
|
-
|
2796
|
-
|
2797
|
-
|
2798
|
-
DraggableComponent,
|
2793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
2794
|
+
"div",
|
2795
|
+
{
|
2796
|
+
className: getClassName3("item"),
|
2797
|
+
style: { zIndex: isDragging ? 1 : void 0 },
|
2798
|
+
children: [
|
2799
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
2800
|
+
DropZoneProvider,
|
2799
2801
|
{
|
2800
|
-
|
2801
|
-
|
2802
|
-
|
2803
|
-
|
2804
|
-
|
2805
|
-
|
2806
|
-
|
2807
|
-
|
2808
|
-
ctx.registerPath({
|
2809
|
-
index: i,
|
2810
|
-
zone: zoneCompound
|
2811
|
-
});
|
2812
|
-
},
|
2813
|
-
onClick: (e) => {
|
2814
|
-
setItemSelector({
|
2802
|
+
value: __spreadProps(__spreadValues({}, ctx), {
|
2803
|
+
areaId: componentId
|
2804
|
+
}),
|
2805
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
2806
|
+
DraggableComponent,
|
2807
|
+
{
|
2808
|
+
label: item.type.toString(),
|
2809
|
+
id: `draggable-${componentId}`,
|
2815
2810
|
index: i,
|
2816
|
-
|
2817
|
-
|
2818
|
-
|
2819
|
-
|
2811
|
+
isSelected,
|
2812
|
+
isLocked: userIsDragging,
|
2813
|
+
forceHover: hoveringComponent === componentId && !userIsDragging,
|
2814
|
+
indicativeHover: userIsDragging && containsZone && hoveringArea === componentId,
|
2815
|
+
onMount: () => {
|
2816
|
+
ctx.registerPath({
|
2817
|
+
index: i,
|
2818
|
+
zone: zoneCompound
|
2819
|
+
});
|
2820
|
+
},
|
2821
|
+
onClick: (e) => {
|
2822
|
+
setItemSelector({
|
2823
|
+
index: i,
|
2824
|
+
zone: zoneCompound
|
2825
|
+
});
|
2826
|
+
e.stopPropagation();
|
2827
|
+
},
|
2828
|
+
onMouseOver: (e) => {
|
2829
|
+
e.stopPropagation();
|
2830
|
+
if (containsZone) {
|
2831
|
+
setHoveringArea(componentId);
|
2832
|
+
} else {
|
2833
|
+
setHoveringArea(zoneArea);
|
2834
|
+
}
|
2835
|
+
setHoveringComponent(componentId);
|
2836
|
+
setHoveringZone(zoneCompound);
|
2837
|
+
},
|
2838
|
+
onMouseOut: () => {
|
2839
|
+
setHoveringArea(null);
|
2840
|
+
setHoveringZone(null);
|
2841
|
+
setHoveringComponent(null);
|
2842
|
+
},
|
2843
|
+
onDelete: (e) => {
|
2844
|
+
dispatch({
|
2845
|
+
type: "remove",
|
2846
|
+
index: i,
|
2847
|
+
zone: zoneCompound
|
2848
|
+
});
|
2849
|
+
setItemSelector(null);
|
2850
|
+
e.stopPropagation();
|
2851
|
+
},
|
2852
|
+
onDuplicate: (e) => {
|
2853
|
+
dispatch({
|
2854
|
+
type: "duplicate",
|
2855
|
+
sourceIndex: i,
|
2856
|
+
sourceZone: zoneCompound
|
2857
|
+
});
|
2858
|
+
setItemSelector({
|
2859
|
+
zone: zoneCompound,
|
2860
|
+
index: i + 1
|
2861
|
+
});
|
2862
|
+
e.stopPropagation();
|
2863
|
+
},
|
2864
|
+
style: {
|
2865
|
+
pointerEvents: userIsDragging && draggingNewComponent ? "all" : void 0
|
2866
|
+
},
|
2867
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { zoom: 0.75 }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Render2, __spreadValues({}, defaultedProps)) })
|
2868
|
+
}
|
2869
|
+
)
|
2870
|
+
}
|
2871
|
+
),
|
2872
|
+
userIsDragging && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
2873
|
+
"div",
|
2874
|
+
{
|
2875
|
+
className: getClassName3("hitbox"),
|
2820
2876
|
onMouseOver: (e) => {
|
2821
2877
|
e.stopPropagation();
|
2822
|
-
|
2823
|
-
setHoveringArea(componentId);
|
2824
|
-
} else {
|
2825
|
-
setHoveringArea(zoneArea);
|
2826
|
-
}
|
2827
|
-
setHoveringComponent(componentId);
|
2878
|
+
setHoveringArea(zoneArea);
|
2828
2879
|
setHoveringZone(zoneCompound);
|
2829
|
-
}
|
2830
|
-
onMouseOut: () => {
|
2831
|
-
setHoveringArea(null);
|
2832
|
-
setHoveringZone(null);
|
2833
|
-
setHoveringComponent(null);
|
2834
|
-
},
|
2835
|
-
onDelete: (e) => {
|
2836
|
-
dispatch({
|
2837
|
-
type: "remove",
|
2838
|
-
index: i,
|
2839
|
-
zone: zoneCompound
|
2840
|
-
});
|
2841
|
-
setItemSelector(null);
|
2842
|
-
e.stopPropagation();
|
2843
|
-
},
|
2844
|
-
onDuplicate: (e) => {
|
2845
|
-
dispatch({
|
2846
|
-
type: "duplicate",
|
2847
|
-
sourceIndex: i,
|
2848
|
-
sourceZone: zoneCompound
|
2849
|
-
});
|
2850
|
-
setItemSelector({
|
2851
|
-
zone: zoneCompound,
|
2852
|
-
index: i + 1
|
2853
|
-
});
|
2854
|
-
e.stopPropagation();
|
2855
|
-
},
|
2856
|
-
style: {
|
2857
|
-
pointerEvents: userIsDragging && draggingNewComponent ? "all" : void 0
|
2858
|
-
},
|
2859
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { zoom: 0.75 }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Render2, __spreadValues({}, defaultedProps)) })
|
2880
|
+
}
|
2860
2881
|
}
|
2861
2882
|
)
|
2862
|
-
|
2863
|
-
|
2864
|
-
|
2865
|
-
|
2866
|
-
{
|
2867
|
-
className: getClassName3("hitbox"),
|
2868
|
-
onMouseOver: (e) => {
|
2869
|
-
e.stopPropagation();
|
2870
|
-
setHoveringArea(zoneArea);
|
2871
|
-
setHoveringZone(zoneCompound);
|
2872
|
-
}
|
2873
|
-
}
|
2874
|
-
)
|
2875
|
-
] }, item.props.id);
|
2883
|
+
]
|
2884
|
+
},
|
2885
|
+
item.props.id
|
2886
|
+
);
|
2876
2887
|
}),
|
2877
2888
|
provided == null ? void 0 : provided.placeholder,
|
2878
2889
|
(snapshot == null ? void 0 : snapshot.isDraggingOver) && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
@@ -3117,7 +3128,7 @@ var FieldLabel = ({
|
|
3117
3128
|
}) => {
|
3118
3129
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { children: [
|
3119
3130
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: getClassName6("label"), children: [
|
3120
|
-
icon
|
3131
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: getClassName6("labelIcon"), children: icon }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, {}),
|
3121
3132
|
label
|
3122
3133
|
] }),
|
3123
3134
|
children
|
@@ -3463,7 +3474,7 @@ init_react_import();
|
|
3463
3474
|
|
3464
3475
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css#css-module
|
3465
3476
|
init_react_import();
|
3466
|
-
var styles_module_default7 = { "Heading": "
|
3477
|
+
var styles_module_default7 = { "Heading": "_Heading_1bvy5_1", "Heading--xxxxl": "_Heading--xxxxl_1bvy5_13", "Heading--xxxl": "_Heading--xxxl_1bvy5_19", "Heading--xxl": "_Heading--xxl_1bvy5_23", "Heading--xl": "_Heading--xl_1bvy5_27", "Heading--l": "_Heading--l_1bvy5_31", "Heading--m": "_Heading--m_1bvy5_35", "Heading--s": "_Heading--s_1bvy5_39", "Heading--xs": "_Heading--xs_1bvy5_43" };
|
3467
3478
|
|
3468
3479
|
// components/Heading/index.tsx
|
3469
3480
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
@@ -4430,29 +4441,50 @@ function Puck({
|
|
4430
4441
|
]
|
4431
4442
|
}
|
4432
4443
|
),
|
4433
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.
|
4444
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
4434
4445
|
"div",
|
4435
4446
|
{
|
4436
4447
|
style: {
|
4437
|
-
padding: 32,
|
4438
4448
|
overflowY: "auto",
|
4439
4449
|
gridArea: "editor",
|
4440
|
-
position: "relative"
|
4450
|
+
position: "relative",
|
4451
|
+
display: "flex",
|
4452
|
+
flexDirection: "column"
|
4441
4453
|
},
|
4442
4454
|
onClick: () => setItemSelector(null),
|
4443
4455
|
id: "puck-frame",
|
4444
|
-
children:
|
4445
|
-
|
4446
|
-
|
4447
|
-
|
4448
|
-
|
4449
|
-
|
4450
|
-
|
4451
|
-
|
4452
|
-
|
4453
|
-
|
4454
|
-
|
4455
|
-
|
4456
|
+
children: [
|
4457
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
4458
|
+
"div",
|
4459
|
+
{
|
4460
|
+
className: "puck-root",
|
4461
|
+
style: {
|
4462
|
+
boxShadow: "0px 0px 0px 32px var(--puck-color-grey-10)",
|
4463
|
+
margin: 32,
|
4464
|
+
zoom: 0.75
|
4465
|
+
},
|
4466
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
4467
|
+
"div",
|
4468
|
+
{
|
4469
|
+
style: {
|
4470
|
+
border: "1px solid var(--puck-color-grey-8)"
|
4471
|
+
},
|
4472
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Page, __spreadProps(__spreadValues({ data }, data.root), { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropZone, { zone: rootDroppableId }) }))
|
4473
|
+
}
|
4474
|
+
)
|
4475
|
+
}
|
4476
|
+
),
|
4477
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
4478
|
+
"div",
|
4479
|
+
{
|
4480
|
+
style: {
|
4481
|
+
background: "var(--puck-color-grey-10)",
|
4482
|
+
height: "100%",
|
4483
|
+
flexGrow: 1
|
4484
|
+
}
|
4485
|
+
}
|
4486
|
+
)
|
4487
|
+
]
|
4456
4488
|
}
|
4457
4489
|
),
|
4458
4490
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|