@measured/puck 0.9.0-canary.fe1629e → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +50 -44
- package/dist/index.js +131 -99
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -210,28 +210,27 @@
|
|
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_1phls_1 {
|
215
214
|
pointer-events: auto;
|
216
215
|
}
|
217
|
-
._DraggableComponent--
|
216
|
+
._DraggableComponent--isDragging_1phls_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_1phls_11 {
|
223
222
|
position: relative;
|
224
223
|
pointer-events: none;
|
224
|
+
z-index: 0;
|
225
225
|
}
|
226
|
-
._DraggableComponent-
|
227
|
-
._DraggableComponent-
|
226
|
+
._DraggableComponent-contents_1phls_11::before,
|
227
|
+
._DraggableComponent-contents_1phls_11::after {
|
228
228
|
content: " ";
|
229
229
|
display: table;
|
230
230
|
}
|
231
|
-
._DraggableComponent-
|
231
|
+
._DraggableComponent-overlay_1phls_24 {
|
232
232
|
display: none;
|
233
233
|
background: #abc7e530;
|
234
|
-
outline: 2px var(--puck-color-azure-8) solid;
|
235
234
|
cursor: pointer;
|
236
235
|
height: 100%;
|
237
236
|
width: 100%;
|
@@ -242,28 +241,36 @@
|
|
242
241
|
pointer-events: none;
|
243
242
|
box-sizing: border-box;
|
244
243
|
}
|
245
|
-
.
|
244
|
+
._DraggableComponent_1phls_1:hover:not(._DraggableComponent--isLocked_1phls_38) > ._DraggableComponent-overlay_1phls_24 {
|
246
245
|
display: block;
|
247
246
|
pointer-events: none;
|
248
247
|
}
|
249
|
-
._DraggableComponent--
|
248
|
+
._DraggableComponent--forceHover_1phls_44 > ._DraggableComponent-overlay_1phls_24 {
|
250
249
|
display: block;
|
251
250
|
pointer-events: none;
|
252
251
|
}
|
253
|
-
._DraggableComponent--
|
252
|
+
._DraggableComponent_1phls_1:not(._DraggableComponent--isSelected_1phls_49) > ._DraggableComponent-overlay_1phls_24 {
|
253
|
+
outline: 2px var(--puck-color-azure-8) solid;
|
254
|
+
}
|
255
|
+
._DraggableComponent--indicativeHover_1phls_54 > ._DraggableComponent-overlay_1phls_24 {
|
254
256
|
display: block;
|
255
257
|
background: transparent;
|
256
258
|
pointer-events: none;
|
257
259
|
}
|
258
|
-
.
|
260
|
+
._DraggableComponent_1phls_1:not(._DraggableComponent--isSelected_1phls_49):has(._DraggableComponent_1phls_1:hover > ._DraggableComponent-overlay_1phls_24) > ._DraggableComponent-overlay_1phls_24 {
|
259
261
|
display: none;
|
260
262
|
}
|
261
|
-
._DraggableComponent--
|
263
|
+
._DraggableComponent--isSelected_1phls_49 {
|
264
|
+
outline: 2px var(--puck-color-azure-6) solid;
|
265
|
+
}
|
266
|
+
._DraggableComponent--isSelected_1phls_49 > ._DraggableComponent-overlay_1phls_24 {
|
262
267
|
background: none;
|
263
268
|
display: block;
|
264
|
-
|
269
|
+
position: sticky;
|
270
|
+
top: 56px;
|
271
|
+
z-index: 1;
|
265
272
|
}
|
266
|
-
._DraggableComponent-
|
273
|
+
._DraggableComponent-actions_1phls_80 {
|
267
274
|
position: absolute;
|
268
275
|
right: 6.5px;
|
269
276
|
width: auto;
|
@@ -279,10 +286,10 @@
|
|
279
286
|
pointer-events: auto;
|
280
287
|
box-sizing: border-box;
|
281
288
|
}
|
282
|
-
._DraggableComponent--
|
289
|
+
._DraggableComponent--isSelected_1phls_49 > ._DraggableComponent-overlay_1phls_24 > ._DraggableComponent-actions_1phls_80 {
|
283
290
|
display: flex;
|
284
291
|
}
|
285
|
-
._DraggableComponent-
|
292
|
+
._DraggableComponent-actionsLabel_1phls_103 {
|
286
293
|
color: var(--puck-color-grey-7);
|
287
294
|
display: flex;
|
288
295
|
font-size: var(--puck-font-size-xxxs);
|
@@ -296,7 +303,7 @@
|
|
296
303
|
text-overflow: ellipsis;
|
297
304
|
white-space: nowrap;
|
298
305
|
}
|
299
|
-
._DraggableComponent-
|
306
|
+
._DraggableComponent-action_1phls_80 {
|
300
307
|
background: transparent;
|
301
308
|
border: none;
|
302
309
|
color: var(--puck-color-grey-7);
|
@@ -304,14 +311,14 @@
|
|
304
311
|
border-radius: 4px;
|
305
312
|
overflow: hidden;
|
306
313
|
}
|
307
|
-
._DraggableComponent-
|
314
|
+
._DraggableComponent-action_1phls_80:hover {
|
308
315
|
background: var(--puck-color-grey-2);
|
309
316
|
color: var(--puck-color-azure-5);
|
310
317
|
cursor: pointer;
|
311
318
|
}
|
312
319
|
|
313
320
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css/#css-module-data */
|
314
|
-
.
|
321
|
+
._DropZone_ou0z5_1 {
|
315
322
|
margin-left: auto;
|
316
323
|
margin-right: auto;
|
317
324
|
zoom: 1.33;
|
@@ -320,39 +327,37 @@
|
|
320
327
|
outline-offset: -1px;
|
321
328
|
width: 100%;
|
322
329
|
}
|
323
|
-
._DropZone-
|
330
|
+
._DropZone-content_ou0z5_11 {
|
324
331
|
min-height: 128px;
|
325
332
|
height: 100%;
|
326
333
|
}
|
327
|
-
._DropZone--
|
334
|
+
._DropZone--userIsDragging_ou0z5_16 ._DropZone-content_ou0z5_11 {
|
328
335
|
pointer-events: all;
|
329
336
|
}
|
330
|
-
._DropZone--
|
337
|
+
._DropZone--userIsDragging_ou0z5_16:not(._DropZone--draggingOverArea_ou0z5_20):not(._DropZone--draggingNewComponent_ou0z5_21) > ._DropZone-content_ou0z5_11 {
|
331
338
|
pointer-events: none;
|
332
339
|
}
|
333
|
-
._DropZone--
|
334
|
-
._DropZone--
|
335
|
-
._DropZone--
|
340
|
+
._DropZone--isAreaSelected_ou0z5_27,
|
341
|
+
._DropZone--draggingOverArea_ou0z5_20:not(:has(._DropZone--hoveringOverArea_ou0z5_28)),
|
342
|
+
._DropZone--hoveringOverArea_ou0z5_28:not(._DropZone--isDisabled_ou0z5_29):not(._DropZone--isRootZone_ou0z5_30) {
|
336
343
|
background: var(--puck-color-azure-9);
|
337
344
|
outline: 2px dashed var(--puck-color-azure-7);
|
338
345
|
}
|
339
|
-
.
|
346
|
+
._DropZone_ou0z5_1:not(._DropZone--hasChildren_ou0z5_36) {
|
340
347
|
background: var(--puck-color-azure-9);
|
341
348
|
outline: 2px dashed var(--puck-color-azure-7);
|
342
349
|
}
|
343
|
-
._DropZone--
|
350
|
+
._DropZone--isDestination_ou0z5_41 {
|
344
351
|
outline: 2px dashed var(--puck-color-azure-3) !important;
|
345
352
|
}
|
346
|
-
._DropZone--
|
353
|
+
._DropZone--isDestination_ou0z5_41:not(._DropZone--isRootZone_ou0z5_30) {
|
347
354
|
background: var(--puck-color-azure-85) !important;
|
348
355
|
}
|
349
|
-
._DropZone-
|
356
|
+
._DropZone-item_ou0z5_49 {
|
350
357
|
position: relative;
|
358
|
+
z-index: 0;
|
351
359
|
}
|
352
|
-
._DropZone-
|
353
|
-
z-index: 1;
|
354
|
-
}
|
355
|
-
._DropZone-hitbox_1980k_57 {
|
360
|
+
._DropZone-hitbox_ou0z5_54 {
|
356
361
|
position: absolute;
|
357
362
|
bottom: -12px;
|
358
363
|
height: 24px;
|
@@ -744,39 +749,40 @@
|
|
744
749
|
}
|
745
750
|
|
746
751
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css/#css-module-data */
|
747
|
-
.
|
752
|
+
._Heading_1bvy5_1 {
|
748
753
|
display: block;
|
754
|
+
color: var(--puck-color-black);
|
749
755
|
font-family: var(--puck-font-stack);
|
750
756
|
font-weight: 700;
|
751
757
|
margin: 0;
|
752
758
|
}
|
753
|
-
.
|
759
|
+
._Heading_1bvy5_1 b {
|
754
760
|
font-weight: 700;
|
755
761
|
}
|
756
|
-
._Heading--
|
762
|
+
._Heading--xxxxl_1bvy5_13 {
|
757
763
|
font-size: var(--puck-font-size-xxxxl);
|
758
764
|
letter-spacing: 0.08ch;
|
759
765
|
font-weight: 800;
|
760
766
|
}
|
761
|
-
._Heading--
|
767
|
+
._Heading--xxxl_1bvy5_19 {
|
762
768
|
font-size: var(--puck-font-size-xxxl);
|
763
769
|
}
|
764
|
-
._Heading--
|
770
|
+
._Heading--xxl_1bvy5_23 {
|
765
771
|
font-size: var(--puck-font-size-xxl);
|
766
772
|
}
|
767
|
-
._Heading--
|
773
|
+
._Heading--xl_1bvy5_27 {
|
768
774
|
font-size: var(--puck-font-size-xl);
|
769
775
|
}
|
770
|
-
._Heading--
|
776
|
+
._Heading--l_1bvy5_31 {
|
771
777
|
font-size: var(--puck-font-size-l);
|
772
778
|
}
|
773
|
-
._Heading--
|
779
|
+
._Heading--m_1bvy5_35 {
|
774
780
|
font-size: var(--puck-font-size-m);
|
775
781
|
}
|
776
|
-
._Heading--
|
782
|
+
._Heading--s_1bvy5_39 {
|
777
783
|
font-size: var(--puck-font-size-s);
|
778
784
|
}
|
779
|
-
._Heading--
|
785
|
+
._Heading--xs_1bvy5_43 {
|
780
786
|
font-size: var(--puck-font-size-xs);
|
781
787
|
}
|
782
788
|
|
package/dist/index.js
CHANGED
@@ -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_1phls_1", "DraggableComponent--isDragging": "_DraggableComponent--isDragging_1phls_5", "DraggableComponent-contents": "_DraggableComponent-contents_1phls_11", "DraggableComponent-overlay": "_DraggableComponent-overlay_1phls_24", "DraggableComponent--isLocked": "_DraggableComponent--isLocked_1phls_38", "DraggableComponent--forceHover": "_DraggableComponent--forceHover_1phls_44", "DraggableComponent--isSelected": "_DraggableComponent--isSelected_1phls_49", "DraggableComponent--indicativeHover": "_DraggableComponent--indicativeHover_1phls_54", "DraggableComponent-actions": "_DraggableComponent-actions_1phls_80", "DraggableComponent-actionsLabel": "_DraggableComponent-actionsLabel_1phls_103", "DraggableComponent-action": "_DraggableComponent-action_1phls_80" };
|
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)(
|
@@ -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)(
|