@puckeditor/core 0.21.3 → 0.22.0-canary.08eaa6ba

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.
Files changed (41) hide show
  1. package/README.md +1 -4
  2. package/dist/{Editor-MCVDFQH6.mjs → Editor-K6FPIMNH.mjs} +8 -8
  3. package/dist/{actions-C3e2nJ9v.d.mts → actions-Csn3gOP8.d.mts} +3 -1
  4. package/dist/{actions-C3e2nJ9v.d.ts → actions-Csn3gOP8.d.ts} +3 -1
  5. package/dist/{chunk-DPDJ67KA.mjs → chunk-4X2SLJRQ.mjs} +1 -1
  6. package/dist/{chunk-4HOGLOEA.mjs → chunk-6MO3E35Y.mjs} +5 -3
  7. package/dist/{chunk-X2ZFWNCU.mjs → chunk-CO6PRTVM.mjs} +12 -9
  8. package/dist/{chunk-6XCJ3Y7O.mjs → chunk-DVZWVU66.mjs} +55 -2
  9. package/dist/{chunk-TDQEUXB2.mjs → chunk-FE7T3PZI.mjs} +3 -3
  10. package/dist/{chunk-ZMTK7SMX.mjs → chunk-GFIZBMKN.mjs} +1 -1
  11. package/dist/{chunk-LODTL5KW.mjs → chunk-MQKADUDK.mjs} +1 -1
  12. package/dist/{chunk-YXFTA2VL.mjs → chunk-MYHXN3XX.mjs} +3131 -319
  13. package/dist/{chunk-HGJWUFLT.mjs → chunk-NWL4JLKR.mjs} +7 -7
  14. package/dist/{chunk-O7FT3KAM.mjs → chunk-OVPTKQ2P.mjs} +4 -3
  15. package/dist/{full-5QCBHXRC.mjs → full-L4ITHDQO.mjs} +7 -7
  16. package/dist/{index-Cx46WIFC.d.ts → index-B1b1cFug.d.ts} +1 -1
  17. package/dist/{index-zHrchQGY.d.mts → index-ClzBCbx_.d.mts} +1 -1
  18. package/dist/index.css +60 -54
  19. package/dist/index.d.mts +4 -4
  20. package/dist/index.d.ts +4 -4
  21. package/dist/index.js +3206 -326
  22. package/dist/index.mjs +10 -10
  23. package/dist/internal.d.mts +2 -2
  24. package/dist/internal.d.ts +2 -2
  25. package/dist/internal.js +48 -2
  26. package/dist/internal.mjs +1 -1
  27. package/dist/{loaded-Y4ZWZC55.mjs → loaded-2QS7VXZ6.mjs} +4 -4
  28. package/dist/{loaded-OMRIYZIQ.mjs → loaded-A7UUCT2O.mjs} +4 -4
  29. package/dist/{loaded-54625GTL.mjs → loaded-JHBS3QYA.mjs} +4 -4
  30. package/dist/no-external.css +60 -54
  31. package/dist/no-external.d.mts +3 -3
  32. package/dist/no-external.d.ts +3 -3
  33. package/dist/no-external.js +3206 -326
  34. package/dist/no-external.mjs +10 -10
  35. package/dist/rsc.d.mts +2 -2
  36. package/dist/rsc.d.ts +2 -2
  37. package/dist/rsc.js +16 -11
  38. package/dist/rsc.mjs +2 -2
  39. package/dist/{walk-tree-BJoNgZ0l.d.mts → walk-tree-BrW9VQ_t.d.mts} +1 -1
  40. package/dist/{walk-tree-f8Yzs5o3.d.ts → walk-tree-CWrsBHHe.d.ts} +1 -1
  41. package/package.json +13 -5
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  EditorInner,
3
3
  LoadedRichTextMenu
4
- } from "./chunk-TDQEUXB2.mjs";
4
+ } from "./chunk-FE7T3PZI.mjs";
5
5
  import {
6
6
  RichTextRenderFallback,
7
7
  SlotRender,
@@ -10,13 +10,13 @@ import {
10
10
  getSlotTransform,
11
11
  useRichtextProps,
12
12
  useSlots
13
- } from "./chunk-X2ZFWNCU.mjs";
13
+ } from "./chunk-CO6PRTVM.mjs";
14
14
  import {
15
15
  ActionBar,
16
16
  IconButton,
17
17
  LoadedRichTextMenuInner,
18
18
  Loader
19
- } from "./chunk-HGJWUFLT.mjs";
19
+ } from "./chunk-NWL4JLKR.mjs";
20
20
  import {
21
21
  ChevronDown,
22
22
  ChevronRight,
@@ -68,7 +68,7 @@ import {
68
68
  useRegisterHistorySlice,
69
69
  useRegisterPermissionsSlice,
70
70
  useResetAutoZoom
71
- } from "./chunk-O7FT3KAM.mjs";
71
+ } from "./chunk-OVPTKQ2P.mjs";
72
72
  import {
73
73
  generateId,
74
74
  getItem,
@@ -76,11 +76,11 @@ import {
76
76
  insertAction,
77
77
  makeStatePublic,
78
78
  populateIds
79
- } from "./chunk-6XCJ3Y7O.mjs";
79
+ } from "./chunk-DVZWVU66.mjs";
80
80
  import {
81
81
  defaultAppState,
82
82
  defaultViewports
83
- } from "./chunk-4HOGLOEA.mjs";
83
+ } from "./chunk-6MO3E35Y.mjs";
84
84
  import {
85
85
  get_class_name_factory_default
86
86
  } from "./chunk-Y2EFNT5P.mjs";
@@ -400,12 +400,16 @@ import { DragDropProvider } from "@dnd-kit/react";
400
400
  init_react_import();
401
401
  import { useState as useState3 } from "react";
402
402
  import { PointerSensor } from "@dnd-kit/react";
403
+ import { PointerActivationConstraints } from "@dnd-kit/dom";
403
404
  import { isElement } from "@dnd-kit/dom/utilities";
404
- var touchDefault = { delay: { value: 200, tolerance: 10 } };
405
- var otherDefault = {
406
- delay: { value: 200, tolerance: 10 },
407
- distance: { value: 5 }
408
- };
405
+ var { Delay, Distance } = PointerActivationConstraints;
406
+ var touchDefault = [
407
+ new Delay({ value: 200, tolerance: 10 })
408
+ ];
409
+ var otherDefault = [
410
+ new Delay({ value: 200, tolerance: 10 }),
411
+ new Distance({ value: 5 })
412
+ ];
409
413
  var useSensors = ({
410
414
  other = otherDefault,
411
415
  mouse,
@@ -753,6 +757,7 @@ var createDynamicCollisionDetector = (dragAxis, midpointOffset = 0.05) => ((inpu
753
757
 
754
758
  // components/Sortable/index.tsx
755
759
  import { useSortable } from "@dnd-kit/react/sortable";
760
+ import { PointerActivationConstraints as PointerActivationConstraints2 } from "@dnd-kit/dom";
756
761
  import { jsx as jsx5 } from "react/jsx-runtime";
757
762
  var SortableProvider = ({
758
763
  children,
@@ -761,7 +766,7 @@ var SortableProvider = ({
761
766
  onMove
762
767
  }) => {
763
768
  const sensors = useSensors({
764
- mouse: { distance: { value: 5 } }
769
+ mouse: [new PointerActivationConstraints2.Distance({ value: 5 })]
765
770
  });
766
771
  return /* @__PURE__ */ jsx5(
767
772
  DragDropProvider,
@@ -1991,7 +1996,7 @@ EditorFallback.displayName = "EditorFallback";
1991
1996
  // components/AutoField/fields/RichtextField/index.tsx
1992
1997
  import { Fragment as Fragment5, jsx as jsx18 } from "react/jsx-runtime";
1993
1998
  var Editor = lazy(
1994
- () => import("./Editor-MCVDFQH6.mjs").then((m) => ({
1999
+ () => import("./Editor-K6FPIMNH.mjs").then((m) => ({
1995
2000
  default: m.Editor
1996
2001
  }))
1997
2002
  );
@@ -2319,6 +2324,7 @@ var styles_module_default8 = { "DraggableComponent": "_DraggableComponent_1vaqy_
2319
2324
 
2320
2325
  // components/DraggableComponent/index.tsx
2321
2326
  import { createPortal as createPortal2 } from "react-dom";
2327
+ import { Feedback } from "@dnd-kit/dom";
2322
2328
 
2323
2329
  // lib/get-deep-scroll-position.ts
2324
2330
  init_react_import();
@@ -2565,7 +2571,10 @@ var DraggableComponent = ({
2565
2571
  duration: 200,
2566
2572
  easing: "cubic-bezier(0.2, 0, 0, 1)"
2567
2573
  },
2568
- feedback: "clone"
2574
+ plugins: (defaults) => [
2575
+ ...defaults,
2576
+ Feedback.configure({ feedback: "clone" })
2577
+ ]
2569
2578
  });
2570
2579
  useEffect8(() => {
2571
2580
  const isEnabled = zoneStore.getState().enabledIndex[zoneCompound];
@@ -3071,7 +3080,10 @@ import {
3071
3080
  useRef as useRef3,
3072
3081
  useState as useState10
3073
3082
  } from "react";
3074
- import { AutoScroller, defaultPreset } from "@dnd-kit/dom";
3083
+ import {
3084
+ AutoScroller,
3085
+ defaultPreset
3086
+ } from "@dnd-kit/dom";
3075
3087
 
3076
3088
  // lib/dnd/NestedDroppablePlugin.ts
3077
3089
  init_react_import();
@@ -4484,7 +4496,7 @@ import {
4484
4496
  } from "react";
4485
4497
  import { jsx as jsx28 } from "react/jsx-runtime";
4486
4498
  var Editor2 = lazy2(
4487
- () => import("./Editor-MCVDFQH6.mjs").then((m) => ({
4499
+ () => import("./Editor-K6FPIMNH.mjs").then((m) => ({
4488
4500
  default: m.Editor
4489
4501
  }))
4490
4502
  );
@@ -6460,267 +6472,3081 @@ import {
6460
6472
  useEffect as useEffect29,
6461
6473
  useMemo as useMemo25,
6462
6474
  useRef as useRef16,
6463
- useState as useState25
6475
+ useState as useState24
6464
6476
  } from "react";
6465
6477
 
6466
6478
  // components/Puck/components/Preview/index.tsx
6467
6479
  init_react_import();
6468
- import { useCallback as useCallback16, useEffect as useEffect22, useRef as useRef11, useMemo as useMemo18 } from "react";
6480
+ import { useCallback as useCallback16, useEffect as useEffect23, useRef as useRef11, useMemo as useMemo18 } from "react";
6469
6481
 
6470
6482
  // components/AutoFrame/index.tsx
6471
6483
  init_react_import();
6472
6484
  import {
6473
6485
  createContext as createContext6,
6474
6486
  useContext as useContext13,
6475
- useEffect as useEffect21,
6487
+ useEffect as useEffect22,
6476
6488
  useState as useState18
6477
6489
  } from "react";
6478
6490
  import hash from "object-hash";
6479
6491
  import { createPortal as createPortal3 } from "react-dom";
6480
- import { Fragment as Fragment12, jsx as jsx43 } from "react/jsx-runtime";
6481
- var styleSelector = 'style, link[rel="stylesheet"]';
6482
- var collectStyles = (doc) => {
6483
- const collected = [];
6484
- doc.querySelectorAll(styleSelector).forEach((style) => {
6485
- if (style.tagName === "STYLE") {
6486
- const hasContent = !!style.innerHTML.trim();
6487
- if (hasContent) {
6488
- collected.push(style);
6489
- }
6490
- } else {
6491
- collected.push(style);
6492
- }
6493
- });
6494
- return collected;
6495
- };
6496
- var getStyleSheet = (el) => {
6497
- return Array.from(document.styleSheets).find((ss) => {
6498
- const ownerNode = ss.ownerNode;
6499
- return ownerNode.href === el.href;
6500
- });
6501
- };
6502
- var getStyles = (styleSheet) => {
6503
- if (styleSheet) {
6504
- try {
6505
- return Array.from(styleSheet.cssRules).map((rule) => rule.cssText).join("");
6506
- } catch (e) {
6507
- console.warn(
6508
- "Access to stylesheet %s is denied. Ignoring\u2026",
6509
- styleSheet.href
6510
- );
6511
- }
6492
+
6493
+ // lib/use-inject-css.ts
6494
+ init_react_import();
6495
+ import { useEffect as useEffect21, useInsertionEffect } from "react";
6496
+
6497
+ // puck-runtime-css:puck-runtime-css
6498
+ init_react_import();
6499
+ var defaultUiStyles = `@import "https://rsms.me/inter/inter.css";
6500
+
6501
+ /* styles/color.css */
6502
+ :root {
6503
+ --puck-color-rose-01: #4a001c;
6504
+ --puck-color-rose-02: #670833;
6505
+ --puck-color-rose-03: #87114c;
6506
+ --puck-color-rose-04: #a81a66;
6507
+ --puck-color-rose-05: #bc5089;
6508
+ --puck-color-rose-06: #cc7ca5;
6509
+ --puck-color-rose-07: #d89aba;
6510
+ --puck-color-rose-08: #e3b8cf;
6511
+ --puck-color-rose-09: #efd6e3;
6512
+ --puck-color-rose-10: #f6eaf1;
6513
+ --puck-color-rose-11: #faf4f8;
6514
+ --puck-color-rose-12: #fef8fc;
6515
+ --puck-color-azure-01: #00175d;
6516
+ --puck-color-azure-02: #002c77;
6517
+ --puck-color-azure-03: #014292;
6518
+ --puck-color-azure-04: #0158ad;
6519
+ --puck-color-azure-05: #3479be;
6520
+ --puck-color-azure-06: #6499cf;
6521
+ --puck-color-azure-07: #88b0da;
6522
+ --puck-color-azure-08: #abc7e5;
6523
+ --puck-color-azure-09: #cfdff0;
6524
+ --puck-color-azure-10: #e7eef7;
6525
+ --puck-color-azure-11: #f3f6fb;
6526
+ --puck-color-azure-12: #f7faff;
6527
+ --puck-color-green-01: #002000;
6528
+ --puck-color-green-02: #043604;
6529
+ --puck-color-green-03: #084e08;
6530
+ --puck-color-green-04: #0c680c;
6531
+ --puck-color-green-05: #1d882f;
6532
+ --puck-color-green-06: #2faa53;
6533
+ --puck-color-green-07: #56c16f;
6534
+ --puck-color-green-08: #7dd78b;
6535
+ --puck-color-green-09: #b8e8bf;
6536
+ --puck-color-green-10: #ddf3e0;
6537
+ --puck-color-green-11: #eff8f0;
6538
+ --puck-color-green-12: #f3fcf4;
6539
+ --puck-color-yellow-01: #211000;
6540
+ --puck-color-yellow-02: #362700;
6541
+ --puck-color-yellow-03: #4c4000;
6542
+ --puck-color-yellow-04: #645a00;
6543
+ --puck-color-yellow-05: #877614;
6544
+ --puck-color-yellow-06: #ab9429;
6545
+ --puck-color-yellow-07: #bfac4e;
6546
+ --puck-color-yellow-08: #d4c474;
6547
+ --puck-color-yellow-09: #e6deb1;
6548
+ --puck-color-yellow-10: #f3efd9;
6549
+ --puck-color-yellow-11: #f9f7ed;
6550
+ --puck-color-yellow-12: #fcfaf0;
6551
+ --puck-color-red-01: #4c0000;
6552
+ --puck-color-red-02: #6a0a10;
6553
+ --puck-color-red-03: #8a1422;
6554
+ --puck-color-red-04: #ac1f35;
6555
+ --puck-color-red-05: #bf5366;
6556
+ --puck-color-red-06: #ce7e8e;
6557
+ --puck-color-red-07: #d99ca8;
6558
+ --puck-color-red-08: #e4b9c2;
6559
+ --puck-color-red-09: #efd7db;
6560
+ --puck-color-red-10: #f6eaec;
6561
+ --puck-color-red-11: #faf4f5;
6562
+ --puck-color-red-12: #fff9fa;
6563
+ --puck-color-grey-01: #181818;
6564
+ --puck-color-grey-02: #292929;
6565
+ --puck-color-grey-03: #404040;
6566
+ --puck-color-grey-04: #5a5a5a;
6567
+ --puck-color-grey-05: #767676;
6568
+ --puck-color-grey-06: #949494;
6569
+ --puck-color-grey-07: #ababab;
6570
+ --puck-color-grey-08: #c3c3c3;
6571
+ --puck-color-grey-09: #dcdcdc;
6572
+ --puck-color-grey-10: #efefef;
6573
+ --puck-color-grey-11: #f5f5f5;
6574
+ --puck-color-grey-12: #fafafa;
6575
+ --puck-color-black: #000000;
6576
+ --puck-color-white: #ffffff;
6577
+ }
6578
+
6579
+ /* styles/typography.css */
6580
+ :root {
6581
+ --puck-font-size-scale-base-unitless: 12;
6582
+ --puck-font-size-xxxs-unitless: 12;
6583
+ --puck-font-size-xxs-unitless: 14;
6584
+ --puck-font-size-xs-unitless: 16;
6585
+ --puck-font-size-s-unitless: 18;
6586
+ --puck-font-size-m-unitless: 21;
6587
+ --puck-font-size-l-unitless: 24;
6588
+ --puck-font-size-xl-unitless: 28;
6589
+ --puck-font-size-xxl-unitless: 36;
6590
+ --puck-font-size-xxxl-unitless: 48;
6591
+ --puck-font-size-xxxxl-unitless: 56;
6592
+ --puck-font-size-xxxs: calc(1rem * var(--puck-font-size-xxxs-unitless) / 16);
6593
+ --puck-font-size-xxs: calc(1rem * var(--puck-font-size-xxs-unitless) / 16);
6594
+ --puck-font-size-xs: calc(1rem * var(--puck-font-size-xs-unitless) / 16);
6595
+ --puck-font-size-s: calc(1rem * var(--puck-font-size-s-unitless) / 16);
6596
+ --puck-font-size-m: calc(1rem * var(--puck-font-size-m-unitless) / 16);
6597
+ --puck-font-size-l: calc(1rem * var(--puck-font-size-l-unitless) / 16);
6598
+ --puck-font-size-xl: calc(1rem * var(--puck-font-size-xl-unitless) / 16);
6599
+ --puck-font-size-xxl: calc(1rem * var(--puck-font-size-xxl-unitless) / 16);
6600
+ --puck-font-size-xxxl: calc(1rem * var(--puck-font-size-xxxl-unitless) / 16);
6601
+ --puck-font-size-xxxxl: calc( 1rem * var(--puck-font-size-xxxxl-unitless) / 16 );
6602
+ --puck-font-size-base: var(--puck-font-size-xs);
6603
+ --line-height-reset: 1;
6604
+ --line-height-xs: calc( var(--space-m-unitless) / var(--puck-font-size-m-unitless) );
6605
+ --line-height-s: calc( var(--space-m-unitless) / var(--puck-font-size-s-unitless) );
6606
+ --line-height-m: calc( var(--space-m-unitless) / var(--puck-font-size-xs-unitless) );
6607
+ --line-height-l: calc( var(--space-m-unitless) / var(--puck-font-size-xxs-unitless) );
6608
+ --line-height-xl: calc( var(--space-m-unitless) / var(--puck-font-size-scale-base-unitless) );
6609
+ --line-height-base: var(--line-height-m);
6610
+ --fallback-font-stack:
6611
+ -apple-system,
6612
+ BlinkMacSystemFont,
6613
+ Segoe UI,
6614
+ Helvetica Neue,
6615
+ sans-serif,
6616
+ Apple Color Emoji,
6617
+ Segoe UI Emoji,
6618
+ Segoe UI Symbol;
6619
+ --puck-font-family: Inter, var(--fallback-font-stack);
6620
+ --puck-font-family-monospaced:
6621
+ ui-monospace,
6622
+ "Cascadia Code",
6623
+ "Source Code Pro",
6624
+ Menlo,
6625
+ Consolas,
6626
+ "DejaVu Sans Mono",
6627
+ monospace;
6628
+ }
6629
+ @supports (font-variation-settings: normal) {
6630
+ :root {
6631
+ --puck-font-family: InterVariable, var(--fallback-font-stack);
6512
6632
  }
6513
- return "";
6514
- };
6515
- var syncAttributes = (sourceElement, targetElement) => {
6516
- const attributes = sourceElement.attributes;
6517
- if ((attributes == null ? void 0 : attributes.length) > 0) {
6518
- Array.from(attributes).forEach((attribute) => {
6519
- targetElement.setAttribute(attribute.name, attribute.value);
6520
- });
6633
+ }
6634
+
6635
+ /* bundle/core.css */
6636
+ #frame-root {
6637
+ height: 1px;
6638
+ min-height: 100vh;
6639
+ }
6640
+ [data-puck-entry] {
6641
+ position: relative;
6642
+ z-index: 0;
6643
+ }
6644
+
6645
+ /* bundle/index.css */
6646
+
6647
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/ActionBar/styles.module.css/#css-module-data */
6648
+ ._ActionBar_1nmyk_1 {
6649
+ align-items: center;
6650
+ cursor: default;
6651
+ display: flex;
6652
+ width: auto;
6653
+ padding: 4px;
6654
+ padding-inline-start: 0;
6655
+ padding-inline-end: 0;
6656
+ border-top-left-radius: 8px;
6657
+ border-top-right-radius: 8px;
6658
+ border-radius: 8px;
6659
+ background: var(--puck-color-grey-01);
6660
+ color: var(--puck-color-white);
6661
+ font-family: var(--puck-font-family);
6662
+ min-height: 26px;
6663
+ }
6664
+ ._ActionBar-label_1nmyk_18 {
6665
+ color: var(--puck-color-grey-08);
6666
+ font-size: var(--puck-font-size-xxxs);
6667
+ font-weight: 500;
6668
+ padding-inline-start: 8px;
6669
+ padding-inline-end: 8px;
6670
+ margin-inline-start: 4px;
6671
+ margin-inline-end: 4px;
6672
+ text-overflow: ellipsis;
6673
+ white-space: nowrap;
6674
+ }
6675
+ ._ActionBarAction_1nmyk_30 + ._ActionBar-label_1nmyk_18 {
6676
+ padding-inline-start: 0;
6677
+ }
6678
+ ._ActionBar-label_1nmyk_18 + ._ActionBarAction_1nmyk_30 {
6679
+ margin-inline-start: -4px;
6680
+ }
6681
+ ._ActionBar-group_1nmyk_38 {
6682
+ align-items: center;
6683
+ border-inline-start: 0.5px solid var(--puck-color-grey-05);
6684
+ display: flex;
6685
+ height: 100%;
6686
+ padding-inline-start: 4px;
6687
+ padding-inline-end: 4px;
6688
+ }
6689
+ ._ActionBar-group_1nmyk_38:first-of-type {
6690
+ border-inline-start: 0;
6691
+ }
6692
+ ._ActionBar-group_1nmyk_38:empty {
6693
+ display: none;
6694
+ }
6695
+ ._ActionBarAction_1nmyk_30 {
6696
+ background: transparent;
6697
+ border: none;
6698
+ color: var(--puck-color-grey-08);
6699
+ cursor: pointer;
6700
+ padding: 6px;
6701
+ margin-inline-start: 4px;
6702
+ margin-inline-end: 4px;
6703
+ border-radius: 4px;
6704
+ overflow: hidden;
6705
+ display: flex;
6706
+ align-items: center;
6707
+ justify-content: center;
6708
+ transition: color 50ms ease-in;
6709
+ }
6710
+ ._ActionBarAction--disabled_1nmyk_71 {
6711
+ cursor: auto;
6712
+ color: var(--puck-color-grey-06);
6713
+ }
6714
+ ._ActionBarAction_1nmyk_30 svg {
6715
+ max-width: none !important;
6716
+ }
6717
+ ._ActionBarAction_1nmyk_30:focus-visible {
6718
+ outline: 2px solid var(--puck-color-azure-05);
6719
+ outline-offset: -2px;
6720
+ }
6721
+ @media (hover: hover) and (pointer: fine) {
6722
+ ._ActionBarAction_1nmyk_30:hover:not(._ActionBarAction--disabled_1nmyk_71) {
6723
+ color: var(--puck-color-azure-06);
6724
+ transition: none;
6521
6725
  }
6522
- };
6523
- var defer = (fn) => setTimeout(fn, 0);
6524
- var CopyHostStyles = ({
6525
- children,
6526
- debug = false,
6527
- onStylesLoaded = () => null
6528
- }) => {
6529
- const { document: doc, window: win } = useFrame();
6530
- useEffect21(() => {
6531
- if (!win || !doc) {
6532
- return () => {
6533
- };
6534
- }
6535
- let elements = [];
6536
- const hashes = {};
6537
- const lookupEl = (el) => elements.findIndex((elementMap) => elementMap.original === el);
6538
- const mirrorEl = (el, inlineStyles = false) => __async(null, null, function* () {
6539
- let mirror;
6540
- if (el.nodeName === "LINK" && inlineStyles) {
6541
- mirror = document.createElement("style");
6542
- mirror.type = "text/css";
6543
- let styleSheet = getStyleSheet(el);
6544
- if (!styleSheet) {
6545
- yield new Promise((resolve) => {
6546
- const fn = () => {
6547
- resolve();
6548
- el.removeEventListener("load", fn);
6549
- };
6550
- el.addEventListener("load", fn);
6551
- });
6552
- styleSheet = getStyleSheet(el);
6553
- }
6554
- const styles2 = getStyles(styleSheet);
6555
- if (!styles2) {
6556
- if (debug) {
6557
- console.warn(
6558
- `Tried to load styles for link element, but couldn't find them. Skipping...`
6559
- );
6560
- }
6561
- return;
6562
- }
6563
- mirror.innerHTML = styles2;
6564
- mirror.setAttribute("data-href", el.getAttribute("href"));
6565
- } else {
6566
- mirror = el.cloneNode(true);
6567
- }
6568
- return mirror;
6569
- });
6570
- const addEl = (el) => __async(null, null, function* () {
6571
- const index = lookupEl(el);
6572
- if (index > -1) {
6573
- if (debug)
6574
- console.log(
6575
- `Tried to add an element that was already mirrored. Updating instead...`
6576
- );
6577
- elements[index].mirror.innerText = el.innerText;
6578
- return;
6579
- }
6580
- const mirror = yield mirrorEl(el);
6581
- if (!mirror) {
6582
- return;
6583
- }
6584
- const elHash = hash(mirror.outerHTML);
6585
- if (hashes[elHash]) {
6586
- if (debug)
6587
- console.log(
6588
- `iframe already contains element that is being mirrored. Skipping...`
6589
- );
6590
- return;
6591
- }
6592
- hashes[elHash] = true;
6593
- doc.head.append(mirror);
6594
- elements.push({ original: el, mirror });
6595
- if (debug) console.log(`Added style node ${el.outerHTML}`);
6596
- });
6597
- const removeEl = (el) => {
6598
- var _a, _b;
6599
- const index = lookupEl(el);
6600
- if (index === -1) {
6601
- if (debug)
6602
- console.log(
6603
- `Tried to remove an element that did not exist. Skipping...`
6604
- );
6605
- return;
6606
- }
6607
- const elHash = hash(el.outerHTML);
6608
- (_b = (_a = elements[index]) == null ? void 0 : _a.mirror) == null ? void 0 : _b.remove();
6609
- delete hashes[elHash];
6610
- if (debug) console.log(`Removed style node ${el.outerHTML}`);
6611
- };
6612
- const observer = new MutationObserver((mutations) => {
6613
- mutations.forEach((mutation) => {
6614
- if (mutation.type === "childList") {
6615
- mutation.addedNodes.forEach((node) => {
6616
- if (node.nodeType === Node.TEXT_NODE || node.nodeType === Node.ELEMENT_NODE) {
6617
- const el = node.nodeType === Node.TEXT_NODE ? node.parentElement : node;
6618
- if (el && el.matches(styleSelector)) {
6619
- defer(() => addEl(el));
6620
- }
6621
- }
6622
- });
6623
- mutation.removedNodes.forEach((node) => {
6624
- if (node.nodeType === Node.TEXT_NODE || node.nodeType === Node.ELEMENT_NODE) {
6625
- const el = node.nodeType === Node.TEXT_NODE ? node.parentElement : node;
6626
- if (el && el.matches(styleSelector)) {
6627
- defer(() => removeEl(el));
6628
- }
6629
- }
6630
- });
6631
- }
6632
- });
6633
- });
6634
- const parentDocument = win.parent.document;
6635
- const collectedStyles = collectStyles(parentDocument);
6636
- const hrefs = [];
6637
- let stylesLoaded = 0;
6638
- const parentHtml = parentDocument.getElementsByTagName("html")[0];
6639
- syncAttributes(parentHtml, doc.documentElement);
6640
- const parentBody = parentDocument.getElementsByTagName("body")[0];
6641
- syncAttributes(parentBody, doc.body);
6642
- Promise.all(
6643
- collectedStyles.map((styleNode, i) => __async(null, null, function* () {
6644
- if (styleNode.nodeName === "LINK") {
6645
- const linkHref = styleNode.href;
6646
- if (hrefs.indexOf(linkHref) > -1) {
6647
- return;
6648
- }
6649
- hrefs.push(linkHref);
6650
- }
6651
- const mirror = yield mirrorEl(styleNode);
6652
- if (!mirror) return;
6653
- elements.push({ original: styleNode, mirror });
6654
- return mirror;
6655
- }))
6656
- ).then((mirrorStyles) => {
6657
- const filtered = mirrorStyles.filter(
6658
- (el) => typeof el !== "undefined"
6659
- );
6660
- filtered.forEach((mirror) => {
6661
- mirror.onload = () => {
6662
- stylesLoaded = stylesLoaded + 1;
6663
- if (stylesLoaded >= filtered.length) {
6664
- onStylesLoaded();
6665
- }
6666
- };
6667
- mirror.onerror = () => {
6668
- console.warn(`AutoFrame couldn't load a stylesheet`);
6669
- stylesLoaded = stylesLoaded + 1;
6670
- if (stylesLoaded >= filtered.length) {
6671
- onStylesLoaded();
6672
- }
6673
- };
6674
- });
6675
- doc.head.innerHTML = "";
6676
- doc.head.append(...filtered);
6677
- filtered.forEach((mirror) => {
6678
- if (mirror.nodeName === "STYLE") {
6679
- stylesLoaded = stylesLoaded + 1;
6680
- }
6681
- });
6682
- if (stylesLoaded >= filtered.length) {
6683
- onStylesLoaded();
6684
- }
6685
- observer.observe(parentDocument.head, { childList: true, subtree: true });
6686
- filtered.forEach((el) => {
6687
- const elHash = hash(el.outerHTML);
6688
- hashes[elHash] = true;
6689
- });
6690
- });
6691
- return () => {
6692
- observer.disconnect();
6693
- };
6694
- }, []);
6695
- return /* @__PURE__ */ jsx43(Fragment12, { children });
6696
- };
6697
- var autoFrameContext = createContext6({});
6698
- var useFrame = () => useContext13(autoFrameContext);
6699
- function AutoFrame(_a) {
6700
- var _b = _a, {
6701
- children,
6702
- className,
6703
- debug,
6704
- id,
6705
- onReady = () => {
6706
- },
6707
- onNotReady = () => {
6708
- },
6709
- frameRef
6710
- } = _b, props = __objRest(_b, [
6711
- "children",
6712
- "className",
6713
- "debug",
6714
- "id",
6715
- "onReady",
6716
- "onNotReady",
6717
- "frameRef"
6718
- ]);
6719
- const [loaded, setLoaded] = useState18(false);
6720
- const [ctx, setCtx] = useState18({});
6721
- const [mountTarget, setMountTarget] = useState18();
6722
- const [stylesLoaded, setStylesLoaded] = useState18(false);
6723
- useEffect21(() => {
6726
+ }
6727
+ ._ActionBarAction_1nmyk_30:active:not(._ActionBarAction--disabled_1nmyk_71),
6728
+ ._ActionBarAction--active_1nmyk_93 {
6729
+ color: var(--puck-color-azure-07);
6730
+ transition: none;
6731
+ }
6732
+ ._ActionBar-group_1nmyk_38 * {
6733
+ margin: 0;
6734
+ }
6735
+ ._ActionBar-separator_1nmyk_102 {
6736
+ background: var(--puck-color-grey-05);
6737
+ margin-inline: 4px;
6738
+ width: 0.5px;
6739
+ height: 100%;
6740
+ }
6741
+
6742
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/styles.module.css/#css-module-data */
6743
+ ._InputWrapper_bsxfo_1 + ._InputWrapper_bsxfo_1 {
6744
+ margin-top: 12px;
6745
+ }
6746
+ ._Input-label_bsxfo_5 {
6747
+ align-items: center;
6748
+ color: var(--puck-color-grey-04);
6749
+ display: flex;
6750
+ padding-bottom: 12px;
6751
+ font-size: var(--puck-font-size-xxs);
6752
+ font-weight: 600;
6753
+ }
6754
+ ._Input-labelIcon_bsxfo_14 {
6755
+ color: var(--puck-color-grey-07);
6756
+ display: flex;
6757
+ margin-inline-end: 4px;
6758
+ padding-inline-start: 4px;
6759
+ }
6760
+ ._Input-disabledIcon_bsxfo_21 {
6761
+ color: var(--puck-color-grey-05);
6762
+ margin-inline-start: auto;
6763
+ }
6764
+ ._Input-input_bsxfo_26 {
6765
+ background: var(--puck-color-white);
6766
+ border-width: 1px;
6767
+ border-style: solid;
6768
+ border-color: var(--puck-color-grey-09);
6769
+ border-radius: 4px;
6770
+ box-sizing: border-box;
6771
+ font-family: inherit;
6772
+ font-size: 16px;
6773
+ padding: 12px 15px;
6774
+ transition: border-color 50ms ease-in;
6775
+ width: 100%;
6776
+ max-width: 100%;
6777
+ }
6778
+ @media (min-width: 458px) {
6779
+ ._Input-input_bsxfo_26 {
6780
+ font-size: 14px;
6781
+ }
6782
+ }
6783
+ select._Input-input_bsxfo_26 {
6784
+ appearance: none;
6785
+ background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23c3c3c3'><polygon points='0,0 100,0 50,50'/></svg>") no-repeat;
6786
+ background-size: 12px;
6787
+ background-position: calc(100% - 12px) calc(50% + 3px);
6788
+ background-repeat: no-repeat;
6789
+ background-color: var(--puck-color-white);
6790
+ cursor: pointer;
6791
+ }
6792
+ select._Input-input_bsxfo_26:dir(rtl) {
6793
+ background-position: 12px calc(50% + 3px);
6794
+ }
6795
+ @media (hover: hover) and (pointer: fine) {
6796
+ ._Input_bsxfo_1:has(> input):hover ._Input-input_bsxfo_26:not([readonly]),
6797
+ ._Input_bsxfo_1:has(> textarea):hover ._Input-input_bsxfo_26:not([readonly]) {
6798
+ border-color: var(--puck-color-grey-05);
6799
+ transition: none;
6800
+ }
6801
+ ._Input_bsxfo_1:has(> select):hover ._Input-input_bsxfo_26:not([disabled]) {
6802
+ background-color: var(--puck-color-azure-12);
6803
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%235a5a5a'><polygon points='0,0 100,0 50,50'/></svg>");
6804
+ border-color: var(--puck-color-grey-05);
6805
+ transition: none;
6806
+ }
6807
+ }
6808
+ ._Input-input_bsxfo_26:focus {
6809
+ border-color: var(--puck-color-grey-05);
6810
+ outline: 2px solid var(--puck-color-azure-05);
6811
+ transition: none;
6812
+ }
6813
+ ._Input--readOnly_bsxfo_82 > ._Input-input_bsxfo_26,
6814
+ ._Input--readOnly_bsxfo_82 > select._Input-input_bsxfo_26 {
6815
+ background-color: var(--puck-color-grey-11);
6816
+ border-color: var(--puck-color-grey-09);
6817
+ color: var(--puck-color-grey-04);
6818
+ cursor: default;
6819
+ opacity: 1;
6820
+ outline: 0;
6821
+ transition: none;
6822
+ }
6823
+ ._Input-radioGroupItems_bsxfo_93 {
6824
+ display: flex;
6825
+ border: 1px solid var(--puck-color-grey-09);
6826
+ border-radius: 4px;
6827
+ flex-wrap: wrap;
6828
+ }
6829
+ ._Input-radio_bsxfo_93 {
6830
+ border-inline-end: 1px solid var(--puck-color-grey-09);
6831
+ flex-grow: 1;
6832
+ }
6833
+ ._Input-radio_bsxfo_93:first-of-type {
6834
+ border-bottom-left-radius: 4px;
6835
+ border-top-left-radius: 4px;
6836
+ }
6837
+ ._Input-radio_bsxfo_93:first-of-type ._Input-radioInner_bsxfo_110 {
6838
+ border-bottom-left-radius: 3px;
6839
+ border-top-left-radius: 3px;
6840
+ }
6841
+ ._Input-radio_bsxfo_93:last-of-type {
6842
+ border-bottom-right-radius: 4px;
6843
+ border-inline-end: 0;
6844
+ border-top-right-radius: 4px;
6845
+ }
6846
+ ._Input-radio_bsxfo_93:last-of-type ._Input-radioInner_bsxfo_110 {
6847
+ border-bottom-right-radius: 3px;
6848
+ border-top-right-radius: 3px;
6849
+ }
6850
+ ._Input-radioInner_bsxfo_110 {
6851
+ background-color: var(--puck-color-white);
6852
+ color: var(--puck-color-grey-04);
6853
+ cursor: pointer;
6854
+ font-size: var(--puck-font-size-xxxs);
6855
+ padding: 8px 12px;
6856
+ text-align: center;
6857
+ transition: background-color 50ms ease-in;
6858
+ }
6859
+ ._Input-radio_bsxfo_93:has(:focus-visible) {
6860
+ outline: 2px solid var(--puck-color-azure-05);
6861
+ outline-offset: 2px;
6862
+ position: relative;
6863
+ }
6864
+ @media (hover: hover) and (pointer: fine) {
6865
+ ._Input-radioInner_bsxfo_110:hover {
6866
+ background-color: var(--puck-color-azure-12);
6867
+ transition: none;
6868
+ }
6869
+ }
6870
+ ._Input--readOnly_bsxfo_82 ._Input-radioInner_bsxfo_110 {
6871
+ background-color: var(--puck-color-white);
6872
+ color: var(--puck-color-grey-04);
6873
+ cursor: default;
6874
+ }
6875
+ ._Input-radio_bsxfo_93 ._Input-radioInput_bsxfo_155:checked ~ ._Input-radioInner_bsxfo_110 {
6876
+ background-color: var(--puck-color-azure-11);
6877
+ color: var(--puck-color-azure-04);
6878
+ font-weight: 500;
6879
+ }
6880
+ ._Input--readOnly_bsxfo_82 ._Input-radioInput_bsxfo_155:checked ~ ._Input-radioInner_bsxfo_110 {
6881
+ background-color: var(--puck-color-grey-11);
6882
+ color: var(--puck-color-grey-04);
6883
+ }
6884
+ ._Input-radio_bsxfo_93 ._Input-radioInput_bsxfo_155 {
6885
+ clip: rect(0 0 0 0);
6886
+ clip-path: inset(100%);
6887
+ height: 1px;
6888
+ overflow: hidden;
6889
+ position: absolute;
6890
+ white-space: nowrap;
6891
+ width: 1px;
6892
+ }
6893
+ textarea._Input-input_bsxfo_26 {
6894
+ margin-bottom: -4px;
6895
+ }
6896
+
6897
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/fields/ArrayField/styles.module.css/#css-module-data */
6898
+ ._ArrayField_1vaho_5 {
6899
+ display: flex;
6900
+ flex-direction: column;
6901
+ background: var(--puck-color-azure-11);
6902
+ border: 1px solid var(--puck-color-grey-09);
6903
+ border-radius: 4px;
6904
+ }
6905
+ ._ArrayField--isDraggingFrom_1vaho_13 {
6906
+ background-color: var(--puck-color-azure-11);
6907
+ overflow: hidden;
6908
+ }
6909
+ ._ArrayField-addButton_1vaho_18 {
6910
+ background-color: var(--puck-color-white);
6911
+ border: none;
6912
+ border-radius: 3px;
6913
+ display: flex;
6914
+ color: var(--puck-color-azure-05);
6915
+ justify-content: center;
6916
+ cursor: pointer;
6917
+ width: 100%;
6918
+ margin: 0;
6919
+ padding: 14px;
6920
+ text-align: left;
6921
+ transition: background-color 50ms ease-in;
6922
+ }
6923
+ ._ArrayField--hasItems_1vaho_33 > ._ArrayField-addButton_1vaho_18 {
6924
+ border-top: 1px solid var(--puck-color-grey-09);
6925
+ border-top-left-radius: 0;
6926
+ border-top-right-radius: 0;
6927
+ }
6928
+ ._ArrayField-addButton_1vaho_18:focus-visible {
6929
+ outline: 2px solid var(--puck-color-azure-05);
6930
+ outline-offset: 2px;
6931
+ position: relative;
6932
+ }
6933
+ @media (hover: hover) and (pointer: fine) {
6934
+ ._ArrayField_1vaho_5:not(._ArrayField--isDraggingFrom_1vaho_13) > ._ArrayField-addButton_1vaho_18:hover {
6935
+ background: var(--puck-color-azure-12);
6936
+ color: var(--puck-color-azure-04);
6937
+ transition: none;
6938
+ }
6939
+ }
6940
+ ._ArrayField_1vaho_5:not(._ArrayField--isDraggingFrom_1vaho_13) > ._ArrayField-addButton_1vaho_18:active {
6941
+ background: var(--puck-color-azure-11);
6942
+ color: var(--puck-color-azure-04);
6943
+ transition: none;
6944
+ }
6945
+ ._ArrayField-inner_1vaho_59 {
6946
+ margin-top: -1px;
6947
+ }
6948
+ ._ArrayFieldItem_1vaho_67 {
6949
+ border-top-left-radius: 3px;
6950
+ border-top-right-radius: 3px;
6951
+ display: block;
6952
+ position: relative;
6953
+ }
6954
+ ._ArrayFieldItem_1vaho_67 {
6955
+ border-top: 1px solid var(--puck-color-grey-09);
6956
+ }
6957
+ ._ArrayFieldItem--isDragging_1vaho_78 {
6958
+ border-top: transparent;
6959
+ }
6960
+ ._ArrayFieldItem--isExpanded_1vaho_82::before {
6961
+ display: none;
6962
+ }
6963
+ ._ArrayFieldItem--isExpanded_1vaho_82 {
6964
+ border-bottom: 0;
6965
+ outline-offset: 0px !important;
6966
+ outline: 1px solid var(--puck-color-azure-07) !important;
6967
+ z-index: 2;
6968
+ }
6969
+ ._ArrayFieldItem--isDragging_1vaho_78 {
6970
+ outline: 2px var(--puck-color-azure-09) solid !important;
6971
+ }
6972
+ ._ArrayFieldItem--isDragging_1vaho_78 ._ArrayFieldItem-summary_1vaho_97:active {
6973
+ background-color: var(--puck-color-white);
6974
+ }
6975
+ ._ArrayFieldItem_1vaho_67 + ._ArrayFieldItem_1vaho_67 {
6976
+ border-top-left-radius: 0;
6977
+ border-top-right-radius: 0;
6978
+ }
6979
+ ._ArrayFieldItem-summary_1vaho_97 {
6980
+ background: var(--puck-color-white);
6981
+ color: var(--puck-color-grey-04);
6982
+ cursor: pointer;
6983
+ display: flex;
6984
+ align-items: center;
6985
+ gap: 2px;
6986
+ justify-content: space-between;
6987
+ font-size: var(--puck-font-size-xxs);
6988
+ list-style: none;
6989
+ padding: 12px 15px;
6990
+ position: relative;
6991
+ overflow: hidden;
6992
+ transition: background-color 50ms ease-in;
6993
+ }
6994
+ ._ArrayFieldItem--noFields_1vaho_122 > ._ArrayFieldItem-summary_1vaho_97 {
6995
+ cursor: grab;
6996
+ }
6997
+ ._ArrayFieldItem_1vaho_67:first-of-type > ._ArrayFieldItem-summary_1vaho_97 {
6998
+ border-top-left-radius: 3px;
6999
+ border-top-right-radius: 3px;
7000
+ }
7001
+ ._ArrayField--addDisabled_1vaho_131 > ._ArrayField-inner_1vaho_59 > ._ArrayFieldItem_1vaho_67:last-of-type:not(._ArrayFieldItem--isExpanded_1vaho_82) > ._ArrayFieldItem-summary_1vaho_97 {
7002
+ border-bottom-left-radius: 3px;
7003
+ border-bottom-right-radius: 3px;
7004
+ }
7005
+ ._ArrayField--addDisabled_1vaho_131 > ._ArrayField-inner_1vaho_59 > ._ArrayFieldItem--isExpanded_1vaho_82:last-of-type {
7006
+ border-bottom-left-radius: 3px;
7007
+ border-bottom-right-radius: 3px;
7008
+ }
7009
+ ._ArrayFieldItem-summary_1vaho_97:focus-visible {
7010
+ outline: 2px solid var(--puck-color-azure-05);
7011
+ outline-offset: 2px;
7012
+ }
7013
+ @media (hover: hover) and (pointer: fine) {
7014
+ ._ArrayFieldItem-summary_1vaho_97:hover {
7015
+ background-color: var(--puck-color-azure-12);
7016
+ transition: none;
7017
+ }
7018
+ }
7019
+ ._ArrayFieldItem-summary_1vaho_97:active {
7020
+ background-color: var(--puck-color-azure-11);
7021
+ transition: none;
7022
+ }
7023
+ ._ArrayFieldItem--isExpanded_1vaho_82 > ._ArrayFieldItem-summary_1vaho_97 {
7024
+ background: var(--puck-color-azure-11);
7025
+ color: var(--puck-color-azure-04);
7026
+ font-weight: 600;
7027
+ transition: none;
7028
+ }
7029
+ ._ArrayFieldItem-body_1vaho_170 {
7030
+ background: var(--puck-color-white);
7031
+ display: none;
7032
+ }
7033
+ ._ArrayFieldItem--isExpanded_1vaho_82 > ._ArrayFieldItem-body_1vaho_170 {
7034
+ display: block;
7035
+ }
7036
+ ._ArrayFieldItem-fieldset_1vaho_179 {
7037
+ border: none;
7038
+ border-top: 1px solid var(--puck-color-grey-09);
7039
+ margin: 0;
7040
+ min-width: 0;
7041
+ padding: 16px 15px;
7042
+ }
7043
+ ._ArrayFieldItem-rhs_1vaho_187 {
7044
+ display: flex;
7045
+ gap: 4px;
7046
+ align-items: center;
7047
+ }
7048
+ ._ArrayFieldItem-actions_1vaho_193 {
7049
+ color: var(--puck-color-grey-04);
7050
+ display: flex;
7051
+ gap: 4px;
7052
+ opacity: 0;
7053
+ }
7054
+ ._ArrayFieldItem-summary_1vaho_97:focus-within > ._ArrayFieldItem-rhs_1vaho_187 > ._ArrayFieldItem-actions_1vaho_193,
7055
+ ._ArrayFieldItem-summary_1vaho_97:hover > ._ArrayFieldItem-rhs_1vaho_187 > ._ArrayFieldItem-actions_1vaho_193 {
7056
+ opacity: 1;
7057
+ }
7058
+
7059
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/IconButton/IconButton.module.css/#css-module-data */
7060
+ ._IconButton_1c68y_1 {
7061
+ align-items: center;
7062
+ background: transparent;
7063
+ border: none;
7064
+ border-radius: 4px;
7065
+ color: currentColor;
7066
+ display: flex;
7067
+ font-family: var(--puck-font-family);
7068
+ justify-content: center;
7069
+ padding: 4px;
7070
+ transition: background-color 50ms ease-in, color 50ms ease-in;
7071
+ }
7072
+ ._IconButton--active_1c68y_14 {
7073
+ color: var(--puck-color-azure-04);
7074
+ }
7075
+ ._IconButton_1c68y_1:focus-visible {
7076
+ outline: 2px solid var(--puck-color-azure-05);
7077
+ outline-offset: -2px;
7078
+ }
7079
+ @media (hover: hover) and (pointer: fine) {
7080
+ ._IconButton_1c68y_1:hover:not(._IconButton--disabled_1c68y_24) {
7081
+ background: var(--puck-color-grey-10);
7082
+ color: var(--puck-color-azure-04);
7083
+ cursor: pointer;
7084
+ transition: none;
7085
+ }
7086
+ }
7087
+ ._IconButton_1c68y_1:active {
7088
+ background: var(--puck-color-azure-11);
7089
+ transition: none;
7090
+ }
7091
+ ._IconButton--disabled_1c68y_24 {
7092
+ color: var(--puck-color-grey-07);
7093
+ }
7094
+
7095
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Loader/styles.module.css/#css-module-data */
7096
+ @keyframes _loader-animation_nacdm_1 {
7097
+ 0% {
7098
+ transform: rotate(0deg) scale(1);
7099
+ }
7100
+ 50% {
7101
+ transform: rotate(180deg) scale(0.8);
7102
+ }
7103
+ 100% {
7104
+ transform: rotate(360deg) scale(1);
7105
+ }
7106
+ }
7107
+ ._Loader_nacdm_13 {
7108
+ background: transparent;
7109
+ border-radius: 100%;
7110
+ border: 2px solid currentColor;
7111
+ border-bottom-color: transparent;
7112
+ display: inline-block;
7113
+ animation: _loader-animation_nacdm_1 1s 0s infinite linear;
7114
+ animation-fill-mode: both;
7115
+ }
7116
+
7117
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/DragIcon/styles.module.css/#css-module-data */
7118
+ ._DragIcon_17p8x_1 {
7119
+ color: var(--puck-color-grey-05);
7120
+ cursor: grab;
7121
+ padding: 4px;
7122
+ border-radius: 4px;
7123
+ }
7124
+ ._DragIcon--disabled_17p8x_8 {
7125
+ cursor: no-drop;
7126
+ }
7127
+ @media (hover: hover) and (pointer: fine) {
7128
+ ._DragIcon_17p8x_1:not(._DragIcon--disabled_17p8x_8):hover {
7129
+ color: var(--puck-color-azure-05);
7130
+ background-color: var(--puck-color-azure-12);
7131
+ }
7132
+ }
7133
+
7134
+ /* components/Sortable/styles.css */
7135
+ [data-dnd-placeholder] * {
7136
+ opacity: 0 !important;
7137
+ }
7138
+ [data-dnd-placeholder] {
7139
+ background: var(--puck-color-azure-09) !important;
7140
+ border: none !important;
7141
+ color: #00000000 !important;
7142
+ opacity: 0.3 !important;
7143
+ outline: none !important;
7144
+ transition: none !important;
7145
+ }
7146
+
7147
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/ExternalInput/styles.module.css/#css-module-data */
7148
+ ._ExternalInput-actions_91ls0_1 {
7149
+ display: flex;
7150
+ }
7151
+ ._ExternalInput-button_91ls0_5 {
7152
+ display: flex;
7153
+ gap: 8px;
7154
+ align-items: center;
7155
+ justify-content: center;
7156
+ background-color: var(--puck-color-white);
7157
+ border: 1px solid var(--puck-color-grey-09);
7158
+ border-radius: 4px;
7159
+ color: var(--puck-color-azure-04);
7160
+ padding: 12px 16px;
7161
+ font-weight: 500;
7162
+ white-space: nowrap;
7163
+ text-overflow: ellipsis;
7164
+ transition: background-color 50ms ease-in;
7165
+ position: relative;
7166
+ overflow: hidden;
7167
+ flex-grow: 1;
7168
+ }
7169
+ ._ExternalInput--dataSelected_91ls0_24 ._ExternalInput-button_91ls0_5 {
7170
+ color: var(--puck-color-grey-03);
7171
+ display: block;
7172
+ border-top-right-radius: 0px;
7173
+ border-bottom-right-radius: 0px;
7174
+ }
7175
+ ._ExternalInput--readOnly_91ls0_31 ._ExternalInput-button_91ls0_5 {
7176
+ background-color: var(--puck-color-grey-11);
7177
+ }
7178
+ ._ExternalInput-detachButton_91ls0_35 {
7179
+ border: 1px solid var(--puck-color-grey-09);
7180
+ border-top-right-radius: 4px;
7181
+ border-bottom-right-radius: 4px;
7182
+ background-color: var(--puck-color-grey-12);
7183
+ color: var(--puck-color-grey-05);
7184
+ display: flex;
7185
+ gap: 8px;
7186
+ align-items: center;
7187
+ justify-content: center;
7188
+ padding: 8px 12px;
7189
+ position: relative;
7190
+ transition: background-color 50ms ease-in, color 50ms ease-in;
7191
+ margin-inline-start: -1px;
7192
+ }
7193
+ ._ExternalInput-button_91ls0_5:focus-visible,
7194
+ ._ExternalInput-detachButton_91ls0_35:focus-visible {
7195
+ outline: 2px solid var(--puck-color-azure-05);
7196
+ outline-offset: 2px;
7197
+ z-index: 1;
7198
+ }
7199
+ @media (hover: hover) and (pointer: fine) {
7200
+ ._ExternalInput_91ls0_1:not(._ExternalInput--readOnly_91ls0_31) ._ExternalInput-button_91ls0_5:hover,
7201
+ ._ExternalInput_91ls0_1:not(._ExternalInput--readOnly_91ls0_31) ._ExternalInput-detachButton_91ls0_35:hover {
7202
+ background: var(--puck-color-azure-12);
7203
+ transition: none;
7204
+ }
7205
+ ._ExternalInput_91ls0_1:not(._ExternalInput--readOnly_91ls0_31) ._ExternalInput-detachButton_91ls0_35:hover {
7206
+ color: var(--puck-color-azure-04);
7207
+ }
7208
+ }
7209
+ ._ExternalInput_91ls0_1:not(._ExternalInput--readOnly_91ls0_31) ._ExternalInput-button_91ls0_5:active,
7210
+ ._ExternalInput_91ls0_1:not(._ExternalInput--readOnly_91ls0_31) ._ExternalInput-detachButton_91ls0_35:active {
7211
+ background: var(--puck-color-azure-11);
7212
+ transition: none;
7213
+ }
7214
+ ._ExternalInputModal_91ls0_79 {
7215
+ color: var(--puck-color-black);
7216
+ display: grid;
7217
+ grid-template-rows: min-content minmax(128px, 100%) min-content;
7218
+ grid-template-columns: 100%;
7219
+ position: relative;
7220
+ min-height: 50dvh;
7221
+ max-height: 90dvh;
7222
+ }
7223
+ ._ExternalInputModal-grid_91ls0_89 {
7224
+ display: flex;
7225
+ flex-direction: column;
7226
+ }
7227
+ @media (min-width: 458px) {
7228
+ ._ExternalInputModal-grid_91ls0_89 {
7229
+ display: grid;
7230
+ grid-template-columns: 100%;
7231
+ }
7232
+ ._ExternalInputModal--filtersToggled_91ls0_100 ._ExternalInputModal-grid_91ls0_89 {
7233
+ grid-template-columns: 25% 75%;
7234
+ }
7235
+ }
7236
+ ._ExternalInputModal-filters_91ls0_105 {
7237
+ border-bottom: 1px solid var(--puck-color-grey-09);
7238
+ }
7239
+ ._ExternalInputModal--filtersToggled_91ls0_100 ._ExternalInputModal-filters_91ls0_105 {
7240
+ display: none;
7241
+ }
7242
+ @media (min-width: 458px) {
7243
+ ._ExternalInputModal-filters_91ls0_105 {
7244
+ border-inline-end: 1px solid var(--puck-color-grey-09);
7245
+ display: none;
7246
+ }
7247
+ ._ExternalInputModal--filtersToggled_91ls0_100 ._ExternalInputModal-filters_91ls0_105 {
7248
+ display: block;
7249
+ }
7250
+ }
7251
+ ._ExternalInputModal-masthead_91ls0_124 {
7252
+ background-color: var(--puck-color-grey-12);
7253
+ border-bottom: 1px solid var(--puck-color-grey-09);
7254
+ display: flex;
7255
+ flex-wrap: wrap;
7256
+ gap: 24px;
7257
+ padding: 24px;
7258
+ }
7259
+ ._ExternalInputModal-tableWrapper_91ls0_133 {
7260
+ position: relative;
7261
+ overflow-x: auto;
7262
+ overflow-y: auto;
7263
+ flex-grow: 1;
7264
+ }
7265
+ ._ExternalInputModal-table_91ls0_133 {
7266
+ border-collapse: unset;
7267
+ border-spacing: 0px;
7268
+ color: var(--puck-color-grey-02);
7269
+ position: relative;
7270
+ z-index: 0;
7271
+ min-width: 100%;
7272
+ }
7273
+ ._ExternalInputModal-thead_91ls0_149 {
7274
+ background-color: var(--puck-color-white);
7275
+ position: sticky;
7276
+ top: 0;
7277
+ z-index: 1;
7278
+ }
7279
+ ._ExternalInputModal-th_91ls0_149 {
7280
+ border-bottom: 1px solid var(--puck-color-grey-09);
7281
+ color: var(--puck-color-grey-04);
7282
+ font-weight: 500;
7283
+ font-size: 14px;
7284
+ padding: 16px 24px;
7285
+ }
7286
+ ._ExternalInputModal-td_91ls0_164 {
7287
+ border-bottom: 1px solid var(--puck-color-grey-10);
7288
+ padding: 16px 24px;
7289
+ }
7290
+ ._ExternalInputModal-tr_91ls0_169 ._ExternalInputModal-td_91ls0_164:first-of-type {
7291
+ font-weight: 500;
7292
+ width: 1%;
7293
+ white-space: nowrap;
7294
+ }
7295
+ @media (hover: hover) and (pointer: fine) {
7296
+ ._ExternalInputModal-tbody_91ls0_176 ._ExternalInputModal-tr_91ls0_169:hover {
7297
+ background: var(--puck-color-azure-12);
7298
+ color: var(--puck-color-azure-04);
7299
+ cursor: pointer;
7300
+ position: relative;
7301
+ margin-inline-start: -5px;
7302
+ }
7303
+ ._ExternalInputModal-tbody_91ls0_176 ._ExternalInputModal-tr_91ls0_169:hover ._ExternalInputModal-td_91ls0_164:first-of-type {
7304
+ border-inline-start: 4px solid var(--puck-color-azure-04);
7305
+ padding-inline-start: 20px;
7306
+ }
7307
+ }
7308
+ ._ExternalInputModal-tbody_91ls0_176 ._ExternalInputModal-tr_91ls0_169:last-of-type ._ExternalInputModal-td_91ls0_164 {
7309
+ border-bottom: none;
7310
+ }
7311
+ ._ExternalInputModal-tableWrapper_91ls0_133 {
7312
+ display: none;
7313
+ }
7314
+ ._ExternalInputModal--hasData_91ls0_202 ._ExternalInputModal-tableWrapper_91ls0_133 {
7315
+ display: block;
7316
+ }
7317
+ ._ExternalInputModal-loadingBanner_91ls0_206 {
7318
+ display: none;
7319
+ background-color: color-mix(in srgb, var(--puck-color-white) 90%, transparent);
7320
+ padding: 64px;
7321
+ align-items: center;
7322
+ justify-content: center;
7323
+ position: absolute;
7324
+ top: 0;
7325
+ left: 0;
7326
+ right: 0;
7327
+ bottom: 0;
7328
+ }
7329
+ ._ExternalInputModal--isLoading_91ls0_223 ._ExternalInputModal-loadingBanner_91ls0_206 {
7330
+ display: flex;
7331
+ }
7332
+ ._ExternalInputModal-searchForm_91ls0_227 {
7333
+ display: flex;
7334
+ flex-wrap: wrap;
7335
+ gap: 12px;
7336
+ flex-grow: 1;
7337
+ }
7338
+ @media (min-width: 458px) {
7339
+ ._ExternalInputModal-searchForm_91ls0_227 {
7340
+ flex-wrap: nowrap;
7341
+ }
7342
+ }
7343
+ ._ExternalInputModal-search_91ls0_227 {
7344
+ display: flex;
7345
+ background: var(--puck-color-white);
7346
+ border-width: 1px;
7347
+ border-style: solid;
7348
+ border-color: var(--puck-color-grey-09);
7349
+ border-radius: 4px;
7350
+ flex-grow: 1;
7351
+ transition: border-color 50ms ease-in;
7352
+ }
7353
+ ._ExternalInputModal-search_91ls0_227:focus-within {
7354
+ border-color: var(--puck-color-grey-05);
7355
+ outline: 2px solid var(--puck-color-azure-05);
7356
+ transition: none;
7357
+ }
7358
+ @media (hover: hover) and (pointer: fine) {
7359
+ ._ExternalInputModal-search_91ls0_227:hover {
7360
+ border-color: var(--puck-color-grey-05);
7361
+ transition: none;
7362
+ }
7363
+ }
7364
+ ._ExternalInputModal-searchIcon_91ls0_264 {
7365
+ align-items: center;
7366
+ background: var(--puck-color-grey-12);
7367
+ border-bottom-left-radius: 4px;
7368
+ border-top-left-radius: 4px;
7369
+ border-inline-end: 1px solid var(--puck-color-grey-09);
7370
+ color: var(--puck-color-grey-07);
7371
+ display: flex;
7372
+ justify-content: center;
7373
+ padding: 12px 15px;
7374
+ transition: color 50ms ease-in;
7375
+ }
7376
+ ._ExternalInputModal-search_91ls0_227:focus-within ._ExternalInputModal-searchIcon_91ls0_264 {
7377
+ color: var(--puck-color-grey-04);
7378
+ transition: none;
7379
+ }
7380
+ @media (hover: hover) and (pointer: fine) {
7381
+ ._ExternalInputModal-search_91ls0_227:hover ._ExternalInputModal-searchIcon_91ls0_264 {
7382
+ color: var(--puck-color-grey-04);
7383
+ transition: none;
7384
+ }
7385
+ }
7386
+ ._ExternalInputModal-searchIconText_91ls0_289 {
7387
+ clip: rect(0 0 0 0);
7388
+ clip-path: inset(100%);
7389
+ height: 1px;
7390
+ overflow: hidden;
7391
+ position: absolute;
7392
+ white-space: nowrap;
7393
+ width: 1px;
7394
+ }
7395
+ ._ExternalInputModal-searchInput_91ls0_299 {
7396
+ border: none;
7397
+ border-radius: 4px;
7398
+ background: var(--puck-color-white);
7399
+ font-family: inherit;
7400
+ font-size: 14px;
7401
+ padding: 12px 15px;
7402
+ width: 100%;
7403
+ }
7404
+ ._ExternalInputModal-searchInput_91ls0_299:focus {
7405
+ outline: 0;
7406
+ }
7407
+ ._ExternalInputModal-searchActions_91ls0_313 {
7408
+ display: flex;
7409
+ gap: 8px;
7410
+ height: 44px;
7411
+ width: 100%;
7412
+ }
7413
+ @media (min-width: 458px) {
7414
+ ._ExternalInputModal-searchActions_91ls0_313 {
7415
+ width: auto;
7416
+ }
7417
+ }
7418
+ ._ExternalInputModal-searchActionIcon_91ls0_326 {
7419
+ align-self: center;
7420
+ }
7421
+ ._ExternalInputModal-footerContainer_91ls0_330 {
7422
+ background-color: var(--puck-color-grey-12);
7423
+ border-top: 1px solid var(--puck-color-grey-09);
7424
+ color: var(--puck-color-grey-04);
7425
+ padding: 16px;
7426
+ }
7427
+ ._ExternalInputModal-footer_91ls0_330 {
7428
+ font-weight: 500;
7429
+ font-size: 14px;
7430
+ text-align: right;
7431
+ }
7432
+ ._ExternalInputModal-field_91ls0_343 {
7433
+ color: var(--puck-color-grey-04);
7434
+ margin: 16px;
7435
+ margin-bottom: 12px;
7436
+ display: block;
7437
+ }
7438
+
7439
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Modal/styles.module.css/#css-module-data */
7440
+ ._Modal_ikbaj_1 {
7441
+ background: color-mix(in srgb, var(--puck-color-black) 75%, transparent);
7442
+ display: none;
7443
+ justify-content: center;
7444
+ align-items: center;
7445
+ position: fixed;
7446
+ top: 0;
7447
+ left: 0;
7448
+ bottom: 0;
7449
+ right: 0;
7450
+ z-index: 1;
7451
+ padding: 32px;
7452
+ }
7453
+ ._Modal--isOpen_ikbaj_15 {
7454
+ display: flex;
7455
+ }
7456
+ ._Modal-inner_ikbaj_19 {
7457
+ width: 100%;
7458
+ max-width: 1024px;
7459
+ border-radius: 8px;
7460
+ overflow: hidden;
7461
+ background: var(--puck-color-white);
7462
+ display: flex;
7463
+ flex-direction: column;
7464
+ max-height: 90dvh;
7465
+ }
7466
+
7467
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css/#css-module-data */
7468
+ ._Heading_qxrry_1 {
7469
+ display: block;
7470
+ color: var(--puck-color-black);
7471
+ font-weight: 700;
7472
+ margin: 0;
7473
+ }
7474
+ ._Heading_qxrry_1 b {
7475
+ font-weight: 700;
7476
+ }
7477
+ ._Heading--xxxxl_qxrry_12 {
7478
+ font-size: var(--puck-font-size-xxxxl);
7479
+ letter-spacing: 0.08ch;
7480
+ font-weight: 800;
7481
+ }
7482
+ ._Heading--xxxl_qxrry_18 {
7483
+ font-size: var(--puck-font-size-xxxl);
7484
+ }
7485
+ ._Heading--xxl_qxrry_22 {
7486
+ font-size: var(--puck-font-size-xxl);
7487
+ }
7488
+ ._Heading--xl_qxrry_26 {
7489
+ font-size: var(--puck-font-size-xl);
7490
+ }
7491
+ ._Heading--l_qxrry_30 {
7492
+ font-size: var(--puck-font-size-l);
7493
+ }
7494
+ ._Heading--m_qxrry_34 {
7495
+ font-size: var(--puck-font-size-m);
7496
+ }
7497
+ ._Heading--s_qxrry_38 {
7498
+ font-size: var(--puck-font-size-s);
7499
+ }
7500
+ ._Heading--xs_qxrry_42 {
7501
+ font-size: var(--puck-font-size-xs);
7502
+ }
7503
+
7504
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Button/Button.module.css/#css-module-data */
7505
+ ._Button_10byl_1 {
7506
+ appearance: none;
7507
+ background: none;
7508
+ border: 1px solid transparent;
7509
+ border-radius: 4px;
7510
+ color: var(--puck-color-white);
7511
+ display: inline-flex;
7512
+ align-items: center;
7513
+ gap: 8px;
7514
+ letter-spacing: 0.05ch;
7515
+ font-family: var(--puck-font-family);
7516
+ font-size: 14px;
7517
+ font-weight: 400;
7518
+ box-sizing: border-box;
7519
+ line-height: 1;
7520
+ text-align: center;
7521
+ text-decoration: none;
7522
+ transition: background-color 50ms ease-in;
7523
+ cursor: pointer;
7524
+ white-space: nowrap;
7525
+ margin: 0;
7526
+ }
7527
+ ._Button_10byl_1:hover,
7528
+ ._Button_10byl_1:active {
7529
+ transition: none;
7530
+ }
7531
+ ._Button--medium_10byl_29 {
7532
+ min-height: 34px;
7533
+ padding-bottom: 7px;
7534
+ padding-inline-start: 19px;
7535
+ padding-inline-end: 19px;
7536
+ padding-top: 7px;
7537
+ }
7538
+ ._Button--large_10byl_37 {
7539
+ padding-bottom: 11px;
7540
+ padding-inline-start: 19px;
7541
+ padding-inline-end: 19px;
7542
+ padding-top: 11px;
7543
+ }
7544
+ ._Button-icon_10byl_44 {
7545
+ margin-top: 2px;
7546
+ }
7547
+ ._Button--primary_10byl_48 {
7548
+ background: var(--puck-color-azure-04);
7549
+ }
7550
+ ._Button_10byl_1:focus-visible {
7551
+ outline: 2px solid var(--puck-color-azure-05);
7552
+ outline-offset: 2px;
7553
+ }
7554
+ @media (hover: hover) and (pointer: fine) {
7555
+ ._Button--primary_10byl_48:hover {
7556
+ background-color: var(--puck-color-azure-03);
7557
+ }
7558
+ }
7559
+ ._Button--primary_10byl_48:active {
7560
+ background-color: var(--puck-color-azure-02);
7561
+ }
7562
+ ._Button--secondary_10byl_67 {
7563
+ border: 1px solid currentColor;
7564
+ color: currentColor;
7565
+ }
7566
+ @media (hover: hover) and (pointer: fine) {
7567
+ ._Button--secondary_10byl_67:hover {
7568
+ background-color: var(--puck-color-azure-12);
7569
+ color: var(--puck-color-black);
7570
+ }
7571
+ }
7572
+ ._Button--secondary_10byl_67:active {
7573
+ background-color: var(--puck-color-azure-11);
7574
+ color: var(--puck-color-black);
7575
+ }
7576
+ ._Button--flush_10byl_84 {
7577
+ border-radius: 0;
7578
+ }
7579
+ ._Button--disabled_10byl_88,
7580
+ ._Button--disabled_10byl_88:hover {
7581
+ background-color: var(--puck-color-grey-07);
7582
+ color: var(--puck-color-grey-03);
7583
+ cursor: not-allowed;
7584
+ }
7585
+ ._Button--fullWidth_10byl_95 {
7586
+ justify-content: center;
7587
+ width: 100%;
7588
+ }
7589
+ ._Button-spinner_10byl_100 {
7590
+ padding-inline-start: 8px;
7591
+ }
7592
+
7593
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextMenu/styles.module.css/#css-module-data */
7594
+ ._RichTextMenu_k97eh_1 {
7595
+ display: flex;
7596
+ flex-direction: row;
7597
+ flex-wrap: nowrap;
7598
+ }
7599
+ ._RichTextMenu--form_k97eh_7 {
7600
+ border-top-left-radius: 4px;
7601
+ border-top-right-radius: 4px;
7602
+ padding: 6px 6px;
7603
+ background-color: var(--puck-color-grey-12);
7604
+ position: relative;
7605
+ scrollbar-width: none;
7606
+ overflow-x: auto;
7607
+ }
7608
+ ._RichTextMenu-group_k97eh_17 {
7609
+ display: flex;
7610
+ align-items: space-between;
7611
+ flex-direction: row;
7612
+ flex-wrap: nowrap;
7613
+ padding-inline: 6px;
7614
+ gap: 2px;
7615
+ position: relative;
7616
+ }
7617
+ ._RichTextMenu-group_k97eh_17:first-of-type {
7618
+ padding-left: 0;
7619
+ }
7620
+ ._RichTextMenu-group_k97eh_17:last-of-type {
7621
+ padding-right: 0;
7622
+ }
7623
+ ._RichTextMenu--inline_k97eh_35 ._RichTextMenu-group_k97eh_17 {
7624
+ color: var(--puck-color-grey-08);
7625
+ gap: 0px;
7626
+ flex-wrap: nowrap;
7627
+ }
7628
+ ._RichTextMenu-group_k97eh_17 + ._RichTextMenu-group_k97eh_17 {
7629
+ border-left: 1px solid var(--puck-color-grey-10);
7630
+ }
7631
+ ._RichTextMenu--inline_k97eh_35 ._RichTextMenu-group_k97eh_17 + ._RichTextMenu-group_k97eh_17 {
7632
+ border-left: 0.5px solid var(--puck-color-grey-05);
7633
+ }
7634
+
7635
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextMenu/components/Control/styles.module.css/#css-module-data */
7636
+ ._Control_1aveu_1 .lucide {
7637
+ height: 18px;
7638
+ width: 18px;
7639
+ }
7640
+ ._Control--inline_1aveu_6 .lucide {
7641
+ height: 16px;
7642
+ width: 16px;
7643
+ }
7644
+
7645
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Select/styles.module.css/#css-module-data */
7646
+ ._Select_xjbef_1 {
7647
+ position: relative;
7648
+ z-index: 1;
7649
+ }
7650
+ ._Select-button_xjbef_6 {
7651
+ align-items: center;
7652
+ background: transparent;
7653
+ border: none;
7654
+ border-radius: 4px;
7655
+ display: flex;
7656
+ justify-content: center;
7657
+ gap: 0px;
7658
+ height: 100%;
7659
+ padding: 4px;
7660
+ padding-right: 2px;
7661
+ }
7662
+ ._Select--hasOptions_xjbef_19 ._Select-button_xjbef_6 {
7663
+ color: currentColor;
7664
+ }
7665
+ ._Select--hasOptions_xjbef_19:not(._Select--disabled_xjbef_23) ._Select-button_xjbef_6 {
7666
+ cursor: pointer;
7667
+ }
7668
+ ._Select-buttonIcon_xjbef_27 {
7669
+ align-items: center;
7670
+ display: flex;
7671
+ justify-content: center;
7672
+ }
7673
+ ._Select--standalone_xjbef_33 ._Select-buttonIcon_xjbef_27 .lucide {
7674
+ height: 18px;
7675
+ width: 18px;
7676
+ }
7677
+ ._Select--actionBar_xjbef_38 ._Select-buttonIcon_xjbef_27 .lucide {
7678
+ height: 16px;
7679
+ width: 16px;
7680
+ }
7681
+ ._Select--hasOptions_xjbef_19:not(._Select--disabled_xjbef_23) ._Select-button_xjbef_6:hover,
7682
+ ._Select--hasValue_xjbef_44 ._Select-button_xjbef_6 {
7683
+ background: var(--puck-color-grey-10);
7684
+ color: var(--puck-color-azure-04);
7685
+ }
7686
+ ._Select--disabled_xjbef_23 ._Select-button_xjbef_6 {
7687
+ color: var(--puck-color-grey-07);
7688
+ }
7689
+ ._Select--actionBar_xjbef_38 {
7690
+ &._Select--hasOptions_xjbef_19 ._Select-button_xjbef_6:hover,
7691
+ &._Select--hasValue_xjbef_44 ._Select-button_xjbef_6 {
7692
+ background: none;
7693
+ color: var(--puck-color-azure-07);
7694
+ }
7695
+ }
7696
+ ._Select-items_xjbef_61 {
7697
+ background: white;
7698
+ border: 1px solid var(--puck-color-grey-09);
7699
+ border-radius: 8px;
7700
+ margin: 10px 8px;
7701
+ margin-left: 0;
7702
+ padding: 4px;
7703
+ z-index: 2;
7704
+ list-style: none;
7705
+ }
7706
+ ._SelectItem_xjbef_72 {
7707
+ background: transparent;
7708
+ border-radius: 4px;
7709
+ border: none;
7710
+ color: var(--puck-color-grey-04);
7711
+ cursor: pointer;
7712
+ display: flex;
7713
+ gap: 8px;
7714
+ align-items: center;
7715
+ font-size: var(--puck-font-size-xxs);
7716
+ margin: 0;
7717
+ padding: 8px 12px;
7718
+ width: 100%;
7719
+ }
7720
+ ._SelectItem--isSelected_xjbef_87 {
7721
+ background: var(--puck-color-azure-11);
7722
+ color: var(--puck-color-azure-04);
7723
+ font-weight: 500;
7724
+ }
7725
+ ._SelectItem--isSelected_xjbef_87 ._SelectItem-icon_xjbef_93 {
7726
+ color: var(--puck-color-azure-04);
7727
+ }
7728
+ ._SelectItem_xjbef_72:hover {
7729
+ background: var(--puck-color-azure-11);
7730
+ color: var(--puck-color-azure-04);
7731
+ }
7732
+
7733
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextEditor/styles.module.css/#css-module-data */
7734
+ ._RichTextEditor_z25h4_1 .ProseMirror {
7735
+ white-space: pre-wrap;
7736
+ word-wrap: break-word;
7737
+ cursor: text;
7738
+ outline: none;
7739
+ position: relative;
7740
+ }
7741
+ ._RichTextEditor_z25h4_1 .rich-text * {
7742
+ white-space: pre-wrap;
7743
+ user-select: auto;
7744
+ -webkit-user-select: auto;
7745
+ }
7746
+ ._RichTextEditor_z25h4_1 .rich-text blockquote {
7747
+ margin: 1em 0;
7748
+ padding: 0 1em;
7749
+ border-left: 4px solid var(--puck-color-grey-09);
7750
+ }
7751
+ ._RichTextEditor_z25h4_1 .rich-text code {
7752
+ background-color: var(--puck-color-grey-11);
7753
+ padding: 4px 8px;
7754
+ border-radius: 4px;
7755
+ }
7756
+ ._RichTextEditor_z25h4_1 .rich-text p:empty::before {
7757
+ content: "\\a0";
7758
+ }
7759
+ ._RichTextEditor_z25h4_1 .rich-text pre code {
7760
+ display: block;
7761
+ padding: 8px 12px;
7762
+ }
7763
+ ._RichTextEditor_z25h4_1 .rich-text > *:first-child,
7764
+ ._RichTextEditor_z25h4_1 .ProseMirror > *:first-child,
7765
+ ._RichTextEditor_z25h4_1 .rich-text * p:first-of-type {
7766
+ margin-top: 0;
7767
+ }
7768
+ ._RichTextEditor_z25h4_1 .rich-text > *:last-child,
7769
+ ._RichTextEditor_z25h4_1 .ProseMirror > *:last-child,
7770
+ ._RichTextEditor_z25h4_1 .rich-text * p:last-of-type {
7771
+ margin-bottom: 0;
7772
+ }
7773
+ ._RichTextEditor--editor_z25h4_50 {
7774
+ background: var(--puck-color-white);
7775
+ border-width: 1px;
7776
+ border-style: solid;
7777
+ border-color: var(--puck-color-grey-09);
7778
+ border-radius: 4px;
7779
+ box-sizing: border-box;
7780
+ display: flex;
7781
+ flex-direction: column;
7782
+ font-family: inherit;
7783
+ font-size: var(--puck-font-size-xxs);
7784
+ resize: vertical;
7785
+ text-align: initial;
7786
+ transition: border-color 50ms ease-in;
7787
+ width: 100%;
7788
+ max-width: 100%;
7789
+ min-height: 128px;
7790
+ }
7791
+ ._RichTextEditor--editor_z25h4_50 .rich-text {
7792
+ flex-grow: 1;
7793
+ }
7794
+ ._RichTextEditor--editor_z25h4_50 .rich-text:not(:has(.ProseMirror)),
7795
+ ._RichTextEditor--editor_z25h4_50 .rich-text .ProseMirror {
7796
+ height: 100%;
7797
+ padding: 12px 15px;
7798
+ }
7799
+ ._RichTextEditor--editor_z25h4_50 .rich-text ul,
7800
+ ._RichTextEditor--editor_z25h4_50 .rich-text ol {
7801
+ padding-left: 24px;
7802
+ }
7803
+ ._RichTextEditor--editor_z25h4_50 .rich-text li {
7804
+ line-height: 1.5;
7805
+ }
7806
+ ._RichTextEditor--editor_z25h4_50 .rich-text p {
7807
+ margin-block: 12px;
7808
+ }
7809
+ ._RichTextEditor--editor_z25h4_50 .rich-text ul {
7810
+ list-style: disc;
7811
+ }
7812
+ ._RichTextEditor--editor_z25h4_50 .rich-text ol {
7813
+ list-style: decimal;
7814
+ }
7815
+ ._RichTextEditor--editor_z25h4_50:focus-within {
7816
+ border-color: var(--puck-color-grey-05);
7817
+ outline: 2px solid var(--puck-color-azure-05);
7818
+ transition: none;
7819
+ }
7820
+ ._RichTextEditor--editor_z25h4_50._RichTextEditor--disabled_z25h4_107 {
7821
+ background: var(--puck-color-grey-11);
7822
+ }
7823
+ ._RichTextEditor_z25h4_1:not(:focus-within):not(._RichTextEditor--isActive_z25h4_111) .ProseMirror ::selection {
7824
+ background-color: transparent;
7825
+ }
7826
+ ._RichTextEditor-menu_z25h4_117 {
7827
+ border-bottom: 1px solid var(--puck-color-grey-10);
7828
+ position: sticky;
7829
+ top: 0;
7830
+ z-index: 1;
7831
+ }
7832
+ ._RichTextEditor--disabled_z25h4_107 ._RichTextEditor-menu_z25h4_117 {
7833
+ border-bottom: 1px solid var(--puck-color-grey-09);
7834
+ }
7835
+
7836
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data */
7837
+ ._ObjectField_1ua3y_5 {
7838
+ display: flex;
7839
+ flex-direction: column;
7840
+ background-color: var(--puck-color-white);
7841
+ border: 1px solid var(--puck-color-grey-09);
7842
+ border-radius: 4px;
7843
+ }
7844
+ ._ObjectField-fieldset_1ua3y_13 {
7845
+ border: none;
7846
+ margin: 0;
7847
+ min-width: 0;
7848
+ padding: 16px 15px;
7849
+ }
7850
+
7851
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Drawer/styles.module.css/#css-module-data */
7852
+ ._Drawer_pl7z0_1 {
7853
+ display: flex;
7854
+ flex-direction: column;
7855
+ font-family: var(--puck-font-family);
7856
+ gap: 12px;
7857
+ }
7858
+ ._Drawer-draggable_pl7z0_8 {
7859
+ position: relative;
7860
+ }
7861
+ ._Drawer-draggableBg_pl7z0_12 {
7862
+ position: absolute;
7863
+ top: 0;
7864
+ right: 0;
7865
+ bottom: 0;
7866
+ left: 0;
7867
+ pointer-events: none;
7868
+ z-index: -1;
7869
+ }
7870
+ ._DrawerItem-draggable_pl7z0_22 {
7871
+ background: var(--puck-color-white);
7872
+ cursor: grab;
7873
+ padding: 12px;
7874
+ display: flex;
7875
+ border: 1px var(--puck-color-grey-09) solid;
7876
+ border-radius: 4px;
7877
+ font-size: var(--puck-font-size-xxs);
7878
+ justify-content: space-between;
7879
+ align-items: center;
7880
+ transition: background-color 50ms ease-in, color 50ms ease-in;
7881
+ }
7882
+ ._DrawerItem--disabled_pl7z0_35 ._DrawerItem-draggable_pl7z0_22 {
7883
+ background: var(--puck-color-grey-11);
7884
+ color: var(--puck-color-grey-05);
7885
+ cursor: not-allowed;
7886
+ }
7887
+ ._DrawerItem_pl7z0_22:focus-visible {
7888
+ outline: 0;
7889
+ }
7890
+ ._Drawer_pl7z0_1:not(._Drawer--isDraggingFrom_pl7z0_45) ._DrawerItem_pl7z0_22:focus-visible ._DrawerItem-draggable_pl7z0_22 {
7891
+ border-radius: 4px;
7892
+ outline: 2px solid var(--puck-color-azure-05);
7893
+ outline-offset: 2px;
7894
+ }
7895
+ @media (hover: hover) and (pointer: fine) {
7896
+ ._Drawer_pl7z0_1:not(._Drawer--isDraggingFrom_pl7z0_45) ._DrawerItem_pl7z0_22:not(._DrawerItem--disabled_pl7z0_35) ._DrawerItem-draggable_pl7z0_22:hover {
7897
+ background-color: var(--puck-color-azure-12);
7898
+ color: var(--puck-color-azure-04);
7899
+ transition: none;
7900
+ }
7901
+ }
7902
+ ._DrawerItem-name_pl7z0_63 {
7903
+ overflow-x: hidden;
7904
+ text-overflow: ellipsis;
7905
+ white-space: nowrap;
7906
+ }
7907
+
7908
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css/#css-module-data */
7909
+ ._DraggableComponent_1vaqy_1 {
7910
+ position: absolute;
7911
+ pointer-events: none;
7912
+ --overlay-background: color-mix( in srgb, var(--puck-color-azure-08) 30%, transparent );
7913
+ }
7914
+ ._DraggableComponent-overlayWrapper_1vaqy_12 {
7915
+ height: 100%;
7916
+ width: 100%;
7917
+ top: 0;
7918
+ position: absolute;
7919
+ pointer-events: none;
7920
+ box-sizing: border-box;
7921
+ z-index: 1;
7922
+ }
7923
+ ._DraggableComponent-overlay_1vaqy_12 {
7924
+ cursor: pointer;
7925
+ height: 100%;
7926
+ outline: 2px var(--puck-color-azure-09) solid;
7927
+ outline-offset: -2px;
7928
+ width: 100%;
7929
+ }
7930
+ ._DraggableComponent_1vaqy_1:focus-visible > ._DraggableComponent-overlayWrapper_1vaqy_12 {
7931
+ outline: 1px solid var(--puck-color-azure-05);
7932
+ }
7933
+ ._DraggableComponent-loadingOverlay_1vaqy_34 {
7934
+ background: var(--puck-color-white);
7935
+ color: var(--puck-color-grey-03);
7936
+ border-radius: 4px;
7937
+ display: flex;
7938
+ padding: 8px;
7939
+ top: 8px;
7940
+ right: 8px;
7941
+ position: absolute;
7942
+ z-index: 1;
7943
+ pointer-events: all;
7944
+ box-sizing: border-box;
7945
+ opacity: 0.8;
7946
+ z-index: 1;
7947
+ }
7948
+ ._DraggableComponent--hover_1vaqy_50 > ._DraggableComponent-overlayWrapper_1vaqy_12 > ._DraggableComponent-overlay_1vaqy_12 {
7949
+ background: var(--overlay-background);
7950
+ outline: 2px var(--puck-color-azure-09) solid;
7951
+ }
7952
+ ._DraggableComponent--isSelected_1vaqy_57 > ._DraggableComponent-overlayWrapper_1vaqy_12 > ._DraggableComponent-overlay_1vaqy_12 {
7953
+ outline-color: var(--puck-color-azure-07);
7954
+ }
7955
+ ._DraggableComponent_1vaqy_1:has(._DraggableComponent--hover_1vaqy_50 > ._DraggableComponent-overlayWrapper_1vaqy_12) > ._DraggableComponent-overlayWrapper_1vaqy_12 {
7956
+ display: none;
7957
+ }
7958
+ ._DraggableComponent-actionsOverlay_1vaqy_71 {
7959
+ position: sticky;
7960
+ opacity: 0;
7961
+ pointer-events: none;
7962
+ z-index: 2;
7963
+ }
7964
+ ._DraggableComponent--isSelected_1vaqy_57 ._DraggableComponent-actionsOverlay_1vaqy_71 {
7965
+ opacity: 1;
7966
+ pointer-events: auto;
7967
+ }
7968
+ ._DraggableComponent-actions_1vaqy_71 {
7969
+ position: absolute;
7970
+ width: auto;
7971
+ cursor: grab;
7972
+ display: flex;
7973
+ box-sizing: border-box;
7974
+ transform-origin: right top;
7975
+ min-height: 36px;
7976
+ }
7977
+
7978
+ /* components/DraggableComponent/styles.css */
7979
+ [data-puck-component] * {
7980
+ pointer-events: none;
7981
+ user-select: none;
7982
+ -webkit-user-select: none;
7983
+ }
7984
+ [data-puck-component] {
7985
+ cursor: grab;
7986
+ pointer-events: auto !important;
7987
+ user-select: none;
7988
+ -webkit-user-select: none;
7989
+ }
7990
+ [data-puck-dropzone] {
7991
+ pointer-events: auto !important;
7992
+ }
7993
+ [data-puck-disabled] {
7994
+ cursor: pointer;
7995
+ }
7996
+ [data-dnd-placeholder] {
7997
+ background: var(--puck-color-azure-06, #6499cf) !important;
7998
+ border: none !important;
7999
+ color: #00000000 !important;
8000
+ opacity: 0.3 !important;
8001
+ outline: none !important;
8002
+ transition: none !important;
8003
+ }
8004
+ [data-dnd-placeholder] *,
8005
+ [data-dnd-placeholder]::after,
8006
+ [data-dnd-placeholder]::before {
8007
+ opacity: 0 !important;
8008
+ }
8009
+ [data-dnd-dragging][data-puck-component] {
8010
+ pointer-events: none !important;
8011
+ outline: 2px var(--puck-color-azure-09, #cfdff0) solid !important;
8012
+ outline-offset: -2px !important;
8013
+ }
8014
+ [data-dnd-dragging][data-puck-component] > :first-child {
8015
+ margin-top: 0 !important;
8016
+ }
8017
+ [data-dnd-dragging][data-puck-component] > :last-child {
8018
+ margin-bottom: 0 !important;
8019
+ }
8020
+
8021
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css/#css-module-data */
8022
+ ._DropZone_1i2sv_1 {
8023
+ --resize-animation-ms: 150ms;
8024
+ position: relative;
8025
+ height: 100%;
8026
+ min-height: var(--min-empty-height);
8027
+ outline-offset: -2px;
8028
+ width: 100%;
8029
+ }
8030
+ ._DropZone--hasChildren_1i2sv_11 {
8031
+ min-height: 0;
8032
+ }
8033
+ ._DropZone_1i2sv_1:empty {
8034
+ min-height: var(--min-empty-height);
8035
+ }
8036
+ [data-puck-entry]:not([data-puck-dragging]) ._DropZone_1i2sv_1 {
8037
+ transition: min-height var(--resize-animation-ms) ease-in;
8038
+ }
8039
+ ._DropZone--isAreaSelected_1i2sv_24,
8040
+ ._DropZone--hoveringOverArea_1i2sv_25:not(._DropZone--isRootZone_1i2sv_25) {
8041
+ background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent);
8042
+ outline: 2px dashed var(--puck-color-azure-08);
8043
+ }
8044
+ ._DropZone_1i2sv_1:empty {
8045
+ background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent);
8046
+ outline: 2px dashed var(--puck-color-azure-08);
8047
+ }
8048
+ ._DropZone--isDestination_1i2sv_35 {
8049
+ outline: 2px dashed var(--puck-color-azure-04) !important;
8050
+ }
8051
+ ._DropZone--isDestination_1i2sv_35:not(._DropZone--isRootZone_1i2sv_25) {
8052
+ background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent) !important;
8053
+ }
8054
+ ._DropZone-item_1i2sv_47 {
8055
+ position: relative;
8056
+ }
8057
+ ._DropZone-hitbox_1i2sv_51 {
8058
+ position: absolute;
8059
+ bottom: -12px;
8060
+ height: 24px;
8061
+ width: 100%;
8062
+ z-index: 1;
8063
+ }
8064
+ [data-puck-dragging] ._DropZone--isEnabled_1i2sv_59 {
8065
+ outline: 2px dashed var(--puck-color-azure-06);
8066
+ }
8067
+ ._DropZone_1i2sv_1 > *:not([data-puck-component]) {
8068
+ opacity: 0;
8069
+ }
8070
+ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
8071
+ opacity: 0 !important;
8072
+ }
8073
+
8074
+ /* lib/overlay-portal/styles.css */
8075
+ [data-puck-overlay-portal],
8076
+ [data-puck-overlay-portal] * {
8077
+ pointer-events: auto !important;
8078
+ }
8079
+ [data-puck-overlay-portal]:hover {
8080
+ outline: 2px var(--puck-color-azure-09, #cfdff0) dashed;
8081
+ outline-offset: 2px;
8082
+ }
8083
+ [data-puck-overlay-portal]:focus-within {
8084
+ outline: 2px var(--puck-color-azure-07, #88b0da) dashed;
8085
+ outline-offset: 2px;
8086
+ }
8087
+
8088
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css/#css-module-data */
8089
+ ._InlineTextField_104qp_1 {
8090
+ cursor: text;
8091
+ display: inline-block;
8092
+ white-space: pre-wrap;
8093
+ text-decoration: inherit;
8094
+ }
8095
+ [data-dnd-dragging] ._InlineTextField_104qp_1 {
8096
+ cursor: none;
8097
+ caret-color: transparent;
8098
+ }
8099
+ [data-dnd-dragging] ._InlineTextField_104qp_1::selection {
8100
+ display: none;
8101
+ }
8102
+
8103
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Fields/styles.module.css/#css-module-data */
8104
+ ._PuckFields_10bh7_1 {
8105
+ position: relative;
8106
+ font-family: var(--puck-font-family);
8107
+ }
8108
+ ._PuckFields--isLoading_10bh7_6 {
8109
+ min-height: 48px;
8110
+ }
8111
+ ._PuckFields-loadingOverlay_10bh7_10 {
8112
+ background: var(--puck-color-white);
8113
+ display: flex;
8114
+ justify-content: flex-end;
8115
+ align-items: flex-start;
8116
+ height: 100%;
8117
+ width: 100%;
8118
+ top: 0px;
8119
+ position: absolute;
8120
+ z-index: 1;
8121
+ pointer-events: all;
8122
+ box-sizing: border-box;
8123
+ opacity: 0.8;
8124
+ }
8125
+ ._PuckFields-loadingOverlayInner_10bh7_25 {
8126
+ display: flex;
8127
+ padding: 16px;
8128
+ position: sticky;
8129
+ top: 0;
8130
+ }
8131
+ ._PuckFields-field_10bh7_32 * {
8132
+ box-sizing: border-box;
8133
+ }
8134
+ ._PuckFields--wrapFields_10bh7_36 ._PuckFields-field_10bh7_32 {
8135
+ color: var(--puck-color-grey-04);
8136
+ padding: 16px;
8137
+ padding-bottom: 12px;
8138
+ display: block;
8139
+ }
8140
+ ._PuckFields--wrapFields_10bh7_36 ._PuckFields-field_10bh7_32 + ._PuckFields-field_10bh7_32 {
8141
+ border-top: 1px solid var(--puck-color-grey-09);
8142
+ margin-top: 8px;
8143
+ }
8144
+
8145
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/ComponentList/styles.module.css/#css-module-data */
8146
+ ._ComponentList_1rrlt_1 {
8147
+ max-width: 100%;
8148
+ }
8149
+ ._ComponentList--isExpanded_1rrlt_5 + ._ComponentList_1rrlt_1 {
8150
+ margin-top: 12px;
8151
+ }
8152
+ ._ComponentList-content_1rrlt_9 {
8153
+ display: none;
8154
+ }
8155
+ ._ComponentList--isExpanded_1rrlt_5 > ._ComponentList-content_1rrlt_9 {
8156
+ display: block;
8157
+ }
8158
+ ._ComponentList-title_1rrlt_17 {
8159
+ background-color: transparent;
8160
+ border: 0;
8161
+ color: var(--puck-color-grey-05);
8162
+ cursor: pointer;
8163
+ display: flex;
8164
+ font: inherit;
8165
+ font-size: var(--puck-font-size-xxxs);
8166
+ list-style: none;
8167
+ margin-bottom: 6px;
8168
+ padding: 8px;
8169
+ text-transform: uppercase;
8170
+ transition: background-color 50ms ease-in, color 50ms ease-in;
8171
+ gap: 4px;
8172
+ border-radius: 4px;
8173
+ width: 100%;
8174
+ }
8175
+ ._ComponentList-title_1rrlt_17:focus-visible {
8176
+ outline: 2px solid var(--puck-color-azure-05);
8177
+ outline-offset: 2px;
8178
+ }
8179
+ @media (hover: hover) and (pointer: fine) {
8180
+ ._ComponentList-title_1rrlt_17:hover {
8181
+ background-color: var(--puck-color-azure-11);
8182
+ color: var(--puck-color-azure-04);
8183
+ transition: none;
8184
+ }
8185
+ }
8186
+ ._ComponentList-title_1rrlt_17:active {
8187
+ background-color: var(--puck-color-azure-10);
8188
+ transition: none;
8189
+ }
8190
+ ._ComponentList-titleIcon_1rrlt_53 {
8191
+ margin-inline-start: auto;
8192
+ }
8193
+
8194
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Preview/styles.module.css/#css-module-data */
8195
+ ._PuckPreview_z2rgu_1 {
8196
+ position: relative;
8197
+ height: 100%;
8198
+ }
8199
+ ._PuckPreview-frame_z2rgu_6 {
8200
+ border: none;
8201
+ height: 100%;
8202
+ width: 100%;
8203
+ }
8204
+
8205
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/LayerTree/styles.module.css/#css-module-data */
8206
+ ._LayerTree_7rx04_1 {
8207
+ color: var(--puck-color-grey-03);
8208
+ font-family: var(--puck-font-family);
8209
+ font-size: var(--puck-font-size-xxs);
8210
+ margin: 0;
8211
+ position: relative;
8212
+ list-style: none;
8213
+ padding: 0;
8214
+ }
8215
+ ._LayerTree-zoneTitle_7rx04_11 {
8216
+ color: var(--puck-color-grey-05);
8217
+ font-size: var(--puck-font-size-xxxs);
8218
+ text-transform: uppercase;
8219
+ }
8220
+ ._LayerTree-helper_7rx04_17 {
8221
+ text-align: center;
8222
+ color: var(--puck-color-grey-07);
8223
+ margin: 8px 4px;
8224
+ }
8225
+ ._Layer_7rx04_1 {
8226
+ position: relative;
8227
+ border: 1px solid transparent;
8228
+ border-radius: 4px;
8229
+ }
8230
+ ._Layer-inner_7rx04_29 {
8231
+ border: 1px solid transparent;
8232
+ border-radius: 4px;
8233
+ transition: color 50ms ease-in;
8234
+ }
8235
+ ._Layer--containsZone_7rx04_35 > ._Layer-inner_7rx04_29 {
8236
+ padding-inline-start: 0;
8237
+ }
8238
+ ._Layer-clickable_7rx04_39 {
8239
+ align-items: center;
8240
+ background: none;
8241
+ border: 0;
8242
+ border-radius: 4px;
8243
+ color: inherit;
8244
+ cursor: pointer;
8245
+ display: flex;
8246
+ font: inherit;
8247
+ padding-inline-start: 12px;
8248
+ padding-inline-end: 4px;
8249
+ width: 100%;
8250
+ }
8251
+ ._Layer-clickable_7rx04_39:focus-visible {
8252
+ outline: 2px solid var(--puck-color-azure-05);
8253
+ outline-offset: 2px;
8254
+ position: relative;
8255
+ z-index: 1;
8256
+ }
8257
+ @media (hover: hover) and (pointer: fine) {
8258
+ ._Layer_7rx04_1:not(._Layer--isSelected_7rx04_61) > ._Layer-inner_7rx04_29:hover {
8259
+ border-color: var(--puck-color-azure-10);
8260
+ background: var(--puck-color-azure-11);
8261
+ color: var(--puck-color-azure-04);
8262
+ transition: none;
8263
+ }
8264
+ }
8265
+ ._Layer--isSelected_7rx04_61 {
8266
+ border-color: var(--puck-color-azure-08);
8267
+ }
8268
+ ._Layer--isSelected_7rx04_61 > ._Layer-inner_7rx04_29 {
8269
+ background: var(--puck-color-azure-10);
8270
+ }
8271
+ ._Layer--isSelected_7rx04_61 > ._Layer-inner_7rx04_29 > ._Layer-clickable_7rx04_39 > ._Layer-chevron_7rx04_77,
8272
+ ._Layer--childIsSelected_7rx04_78 > ._Layer-inner_7rx04_29 > ._Layer-clickable_7rx04_39 > ._Layer-chevron_7rx04_77 {
8273
+ transform: scaleY(-1);
8274
+ }
8275
+ ._Layer-zones_7rx04_82 {
8276
+ display: none;
8277
+ margin-inline-start: 12px;
8278
+ }
8279
+ ._Layer--isSelected_7rx04_61 > ._Layer-zones_7rx04_82,
8280
+ ._Layer--childIsSelected_7rx04_78 > ._Layer-zones_7rx04_82 {
8281
+ display: block;
8282
+ }
8283
+ ._Layer-zones_7rx04_82 > ._LayerTree_7rx04_1 {
8284
+ margin-inline-start: 12px;
8285
+ }
8286
+ ._Layer-title_7rx04_96,
8287
+ ._LayerTree-zoneTitle_7rx04_11 {
8288
+ display: flex;
8289
+ gap: 8px;
8290
+ align-items: center;
8291
+ margin: 8px 4px;
8292
+ overflow-x: hidden;
8293
+ }
8294
+ ._Layer-name_7rx04_105 {
8295
+ overflow-x: hidden;
8296
+ text-overflow: ellipsis;
8297
+ white-space: nowrap;
8298
+ }
8299
+ ._Layer-icon_7rx04_111 {
8300
+ color: var(--puck-color-rose-07);
8301
+ margin-top: 4px;
8302
+ }
8303
+ ._Layer-zoneIcon_7rx04_116 {
8304
+ color: var(--puck-color-grey-08);
8305
+ margin-top: 4px;
8306
+ }
8307
+
8308
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Layout/styles.module.css/#css-module-data */
8309
+ ._Puck_cgc86_19 {
8310
+ --puck-space-px: 16px;
8311
+ font-family: var(--puck-font-family);
8312
+ overflow-x: hidden;
8313
+ visibility: visible !important;
8314
+ }
8315
+ @media (min-width: 766px) {
8316
+ ._Puck_cgc86_19 {
8317
+ overflow-x: auto;
8318
+ }
8319
+ }
8320
+ ._Puck-portal_cgc86_32 {
8321
+ position: relative;
8322
+ z-index: 2;
8323
+ }
8324
+ ._PuckLayout_cgc86_37 {
8325
+ height: 100dvh;
8326
+ }
8327
+ ._PuckLayout-inner_cgc86_41 {
8328
+ --puck-frame-width: auto;
8329
+ --puck-side-nav-width: min-content;
8330
+ --puck-side-bar-width: 0px;
8331
+ --puck-left-side-bar-width: var( --puck-user-left-side-bar-width, var(--puck-side-bar-width) );
8332
+ --puck-right-side-bar-width: var( --puck-user-right-side-bar-width, var(--puck-side-bar-width) );
8333
+ background-color: var(--puck-color-grey-12);
8334
+ display: grid;
8335
+ grid-template-areas: "header" "editor" "left" "right" "sidenav";
8336
+ grid-template-columns: var(--puck-frame-width);
8337
+ grid-template-rows: min-content auto 0 0 var(--puck-side-nav-width);
8338
+ height: 100%;
8339
+ position: relative;
8340
+ transition: grid-template-rows 150ms ease-in;
8341
+ z-index: 0;
8342
+ overflow: hidden;
8343
+ }
8344
+ @media (min-width: 638px) {
8345
+ ._PuckLayout-inner_cgc86_41 {
8346
+ --puck-side-nav-width: 68px;
8347
+ grid-template-areas: "header header header header" "sidenav left editor right";
8348
+ grid-template-columns: var(--puck-side-nav-width) 0 var(--puck-frame-width) 0;
8349
+ grid-template-rows: min-content auto;
8350
+ }
8351
+ ._Puck--hidePlugins_cgc86_73 ._PuckLayout-inner_cgc86_41 {
8352
+ --puck-side-nav-width: 0;
8353
+ }
8354
+ }
8355
+ ._PuckLayout--mounted_cgc86_78 ._PuckLayout-inner_cgc86_41 {
8356
+ --puck-side-bar-width: 186px;
8357
+ }
8358
+ ._PuckLayout--mobilePanelHeightToggle_cgc86_82._PuckLayout--leftSideBarVisible_cgc86_82 ._PuckLayout-inner_cgc86_41 {
8359
+ grid-template-rows: 0 auto 30% 0 var(--puck-side-nav-width);
8360
+ }
8361
+ ._PuckLayout--mobilePanelHeightToggle_cgc86_82._PuckLayout--leftSideBarVisible_cgc86_82._PuckLayout--isExpanded_cgc86_88 ._PuckLayout-inner_cgc86_41 {
8362
+ grid-template-rows: 0 auto 55% 0 var(--puck-side-nav-width);
8363
+ }
8364
+ @media (min-width: 638px) {
8365
+ ._PuckLayout--mobilePanelHeightToggle_cgc86_82._PuckLayout--leftSideBarVisible_cgc86_82 ._PuckLayout-inner_cgc86_41 {
8366
+ grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) 0;
8367
+ grid-template-rows: min-content auto;
8368
+ }
8369
+ }
8370
+ ._PuckLayout--mobilePanelHeightMinContent_cgc86_106._PuckLayout--leftSideBarVisible_cgc86_82 ._PuckLayout-inner_cgc86_41,
8371
+ ._PuckLayout--mobilePanelHeightMinContent_cgc86_106._PuckLayout--leftSideBarVisible_cgc86_82._PuckLayout--isExpanded_cgc86_88 ._PuckLayout-inner_cgc86_41 {
8372
+ grid-template-rows: 0 auto min-content 0 var(--puck-side-nav-width);
8373
+ }
8374
+ @media (min-width: 638px) {
8375
+ ._PuckLayout--mobilePanelHeightToggle_cgc86_82._PuckLayout--leftSideBarVisible_cgc86_82 ._PuckLayout-inner_cgc86_41,
8376
+ ._PuckLayout--mobilePanelHeightToggle_cgc86_82._PuckLayout--leftSideBarVisible_cgc86_82._PuckLayout--isExpanded_cgc86_88 ._PuckLayout-inner_cgc86_41,
8377
+ ._PuckLayout--mobilePanelHeightMinContent_cgc86_106._PuckLayout--leftSideBarVisible_cgc86_82 ._PuckLayout-inner_cgc86_41,
8378
+ ._PuckLayout--mobilePanelHeightMinContent_cgc86_106._PuckLayout--leftSideBarVisible_cgc86_82._PuckLayout--isExpanded_cgc86_88 ._PuckLayout-inner_cgc86_41 {
8379
+ grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) 0;
8380
+ grid-template-rows: min-content auto;
8381
+ }
8382
+ }
8383
+ @media (min-width: 638px) {
8384
+ ._PuckLayout--rightSideBarVisible_cgc86_133 ._PuckLayout-inner_cgc86_41 {
8385
+ grid-template-columns: var(--puck-side-nav-width) 0 var(--puck-frame-width) var(--puck-right-side-bar-width);
8386
+ }
8387
+ }
8388
+ @media (min-width: 638px) {
8389
+ ._PuckLayout--leftSideBarVisible_cgc86_82._PuckLayout--rightSideBarVisible_cgc86_133 ._PuckLayout-inner_cgc86_41 {
8390
+ grid-template-columns: var(--puck-side-nav-width) var(--puck-left-side-bar-width) var( --puck-frame-width ) var(--puck-right-side-bar-width);
8391
+ }
8392
+ }
8393
+ @media (min-width: 458px) {
8394
+ ._PuckLayout-mounted_cgc86_152 ._PuckLayout-inner_cgc86_41 {
8395
+ --puck-frame-width: minmax(266px, auto);
8396
+ }
8397
+ }
8398
+ @media (min-width: 638px) {
8399
+ ._PuckLayout_cgc86_37 ._PuckLayout-inner_cgc86_41 {
8400
+ --puck-side-bar-width: minmax(186px, 250px);
8401
+ }
8402
+ }
8403
+ @media (min-width: 766px) {
8404
+ ._PuckLayout_cgc86_37 ._PuckLayout-inner_cgc86_41 {
8405
+ --puck-frame-width: auto;
8406
+ }
8407
+ }
8408
+ @media (min-width: 990px) {
8409
+ ._PuckLayout_cgc86_37 ._PuckLayout-inner_cgc86_41 {
8410
+ --puck-side-bar-width: 256px;
8411
+ }
8412
+ }
8413
+ @media (min-width: 1198px) {
8414
+ ._PuckLayout_cgc86_37 ._PuckLayout-inner_cgc86_41 {
8415
+ --puck-side-bar-width: 274px;
8416
+ }
8417
+ }
8418
+ @media (min-width: 1398px) {
8419
+ ._PuckLayout_cgc86_37 ._PuckLayout-inner_cgc86_41 {
8420
+ --puck-side-bar-width: 290px;
8421
+ }
8422
+ }
8423
+ @media (min-width: 1598px) {
8424
+ ._PuckLayout_cgc86_37 ._PuckLayout-inner_cgc86_41 {
8425
+ --puck-side-bar-width: 320px;
8426
+ }
8427
+ }
8428
+ ._PuckLayout-nav_cgc86_193 {
8429
+ border-top: 1px solid var(--puck-color-grey-09);
8430
+ background-color: var(--puck-color-grey-12);
8431
+ grid-area: sidenav;
8432
+ overflow: hidden;
8433
+ width: 100%;
8434
+ }
8435
+ @media (min-width: 638px) {
8436
+ ._PuckLayout-nav_cgc86_193 {
8437
+ border-top: 0;
8438
+ border-right: 1px solid var(--puck-color-grey-09);
8439
+ box-sizing: border-box;
8440
+ }
8441
+ }
8442
+ ._PuckLayout-header_cgc86_209 {
8443
+ grid-area: header;
8444
+ }
8445
+ ._PuckLayout--leftSideBarVisible_cgc86_82 ._PuckLayout-header_cgc86_209 {
8446
+ overflow: hidden;
8447
+ }
8448
+ @media (min-width: 638px) {
8449
+ ._PuckLayout--leftSideBarVisible_cgc86_82 ._PuckLayout-header_cgc86_209 {
8450
+ overflow: auto;
8451
+ }
8452
+ }
8453
+ ._PuckPluginTab_cgc86_223 {
8454
+ display: none;
8455
+ flex-grow: 1;
8456
+ max-height: 100%;
8457
+ }
8458
+ ._PuckPluginTab--visible_cgc86_229 {
8459
+ display: flex;
8460
+ flex-direction: column;
8461
+ }
8462
+ ._PuckPluginTab-body_cgc86_234 {
8463
+ flex-grow: 1;
8464
+ max-height: 100%;
8465
+ }
8466
+
8467
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/MenuBar/styles.module.css/#css-module-data */
8468
+ ._MenuBar_8pf8c_1 {
8469
+ background-color: var(--puck-color-white);
8470
+ border-bottom: 1px solid var(--puck-color-grey-09);
8471
+ display: none;
8472
+ left: 0;
8473
+ margin-top: 1px;
8474
+ padding: 8px 16px;
8475
+ position: absolute;
8476
+ right: 0;
8477
+ top: 100%;
8478
+ z-index: 2;
8479
+ }
8480
+ ._MenuBar--menuOpen_8pf8c_14 {
8481
+ display: block;
8482
+ }
8483
+ @media (min-width: 638px) {
8484
+ ._MenuBar_8pf8c_1 {
8485
+ border: none;
8486
+ display: block;
8487
+ margin-top: 0;
8488
+ overflow-y: visible;
8489
+ padding: 0;
8490
+ position: static;
8491
+ }
8492
+ }
8493
+ ._MenuBar-inner_8pf8c_29 {
8494
+ align-items: center;
8495
+ display: flex;
8496
+ flex-wrap: wrap;
8497
+ gap: 8px 16px;
8498
+ justify-content: flex-end;
8499
+ }
8500
+ @media (min-width: 638px) {
8501
+ ._MenuBar-inner_8pf8c_29 {
8502
+ display: flex;
8503
+ flex-direction: row;
8504
+ flex-wrap: nowrap;
8505
+ }
8506
+ }
8507
+ ._MenuBar-history_8pf8c_45 {
8508
+ display: flex;
8509
+ }
8510
+
8511
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Header/styles.module.css/#css-module-data */
8512
+ ._PuckHeader_63pti_1 {
8513
+ background: var(--puck-color-white);
8514
+ border-bottom: 1px solid var(--puck-color-grey-09);
8515
+ color: var(--puck-color-black);
8516
+ grid-area: header;
8517
+ position: relative;
8518
+ max-width: 100vw;
8519
+ }
8520
+ @media (min-width: 638px) {
8521
+ ._PuckHeader_63pti_1 {
8522
+ padding-left: 67px;
8523
+ }
8524
+ ._PuckHeader--hidePlugins_63pti_15 {
8525
+ padding-left: 0;
8526
+ }
8527
+ }
8528
+ ._PuckHeader-inner_63pti_20 {
8529
+ align-items: end;
8530
+ display: grid;
8531
+ gap: var(--puck-space-px);
8532
+ grid-template-areas: "left middle right";
8533
+ grid-template-columns: 1fr auto 1fr;
8534
+ grid-template-rows: auto;
8535
+ padding: var(--puck-space-px);
8536
+ }
8537
+ @media (min-width: 638px) {
8538
+ ._PuckHeader-inner_63pti_20 {
8539
+ border-left: 1px solid var(--puck-color-grey-09);
8540
+ }
8541
+ ._PuckHeader--hidePlugins_63pti_15 ._PuckHeader-inner_63pti_20 {
8542
+ border-left: none;
8543
+ }
8544
+ }
8545
+ ._PuckHeader-toggle_63pti_40 {
8546
+ color: var(--puck-color-grey-05);
8547
+ display: flex;
8548
+ margin-inline-start: -4px;
8549
+ padding-top: 2px;
8550
+ }
8551
+ ._PuckHeader--rightSideBarVisible_63pti_47 ._PuckHeader-rightSideBarToggle_63pti_47,
8552
+ ._PuckHeader--leftSideBarVisible_63pti_48 ._PuckHeader-leftSideBarToggle_63pti_48 {
8553
+ color: var(--puck-color-black);
8554
+ }
8555
+ ._PuckHeader-rightSideBarToggle_63pti_47,
8556
+ ._PuckHeader-leftSideBarToggle_63pti_48 {
8557
+ display: none;
8558
+ }
8559
+ @media (min-width: 638px) {
8560
+ ._PuckHeader-rightSideBarToggle_63pti_47,
8561
+ ._PuckHeader-leftSideBarToggle_63pti_48 {
8562
+ display: block;
8563
+ }
8564
+ }
8565
+ ._PuckHeader-title_63pti_64 {
8566
+ align-self: center;
8567
+ }
8568
+ ._PuckHeader-path_63pti_68 {
8569
+ font-family: var(--puck-font-family-monospaced);
8570
+ font-size: var(--puck-font-size-xxs);
8571
+ font-weight: normal;
8572
+ word-break: break-all;
8573
+ }
8574
+ ._PuckHeader-tools_63pti_75 {
8575
+ display: flex;
8576
+ gap: 16px;
8577
+ justify-content: flex-end;
8578
+ }
8579
+ ._PuckHeader-menuButton_63pti_81 {
8580
+ color: var(--puck-color-grey-05);
8581
+ margin-inline-start: -4px;
8582
+ }
8583
+ ._PuckHeader--menuOpen_63pti_86 ._PuckHeader-menuButton_63pti_81 {
8584
+ color: var(--puck-color-black);
8585
+ }
8586
+ @media (min-width: 638px) {
8587
+ ._PuckHeader-menuButton_63pti_81 {
8588
+ display: none;
8589
+ }
8590
+ }
8591
+
8592
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css/#css-module-data */
8593
+ ._SidebarSection_5otpt_1 {
8594
+ display: flex;
8595
+ position: relative;
8596
+ flex-direction: column;
8597
+ color: var(--puck-color-black);
8598
+ }
8599
+ ._SidebarSection_5otpt_1:last-of-type {
8600
+ flex-grow: 1;
8601
+ }
8602
+ ._SidebarSection-title_5otpt_12 {
8603
+ background: var(--puck-color-white);
8604
+ padding: 16px;
8605
+ border-bottom: 1px solid var(--puck-color-grey-09);
8606
+ border-top: 1px solid var(--puck-color-grey-09);
8607
+ overflow-x: auto;
8608
+ }
8609
+ ._SidebarSection--noBorderTop_5otpt_20 > ._SidebarSection-title_5otpt_12 {
8610
+ border-top: 0px;
8611
+ }
8612
+ ._SidebarSection-content_5otpt_24:last-child {
8613
+ padding-bottom: 4px;
8614
+ }
8615
+ ._SidebarSection_5otpt_1:last-of-type ._SidebarSection-content_5otpt_24 {
8616
+ border-bottom: none;
8617
+ flex-grow: 1;
8618
+ }
8619
+ ._SidebarSection-breadcrumbLabel_5otpt_33 {
8620
+ background: none;
8621
+ border: 0;
8622
+ border-radius: 2px;
8623
+ color: var(--puck-color-azure-04);
8624
+ cursor: pointer;
8625
+ font: inherit;
8626
+ flex-shrink: 0;
8627
+ padding: 0;
8628
+ transition: color 50ms ease-in;
8629
+ }
8630
+ ._SidebarSection-breadcrumbLabel_5otpt_33:focus-visible {
8631
+ outline: 2px solid var(--puck-color-azure-05);
8632
+ outline-offset: 2px;
8633
+ }
8634
+ @media (hover: hover) and (pointer: fine) {
8635
+ ._SidebarSection-breadcrumbLabel_5otpt_33:hover {
8636
+ color: var(--puck-color-azure-03);
8637
+ transition: none;
8638
+ }
8639
+ }
8640
+ ._SidebarSection-breadcrumbLabel_5otpt_33:active {
8641
+ color: var(--puck-color-azure-02);
8642
+ transition: none;
8643
+ }
8644
+ ._SidebarSection-breadcrumbs_5otpt_62 {
8645
+ align-items: center;
8646
+ display: flex;
8647
+ gap: 4px;
8648
+ }
8649
+ ._SidebarSection-breadcrumb_5otpt_33 {
8650
+ align-items: center;
8651
+ display: flex;
8652
+ gap: 4px;
8653
+ }
8654
+ ._SidebarSection-heading_5otpt_74 {
8655
+ padding-inline-end: 16px;
8656
+ }
8657
+ ._SidebarSection-loadingOverlay_5otpt_78 {
8658
+ background: var(--puck-color-white);
8659
+ display: flex;
8660
+ justify-content: center;
8661
+ align-items: center;
8662
+ height: 100%;
8663
+ width: 100%;
8664
+ top: 0;
8665
+ position: absolute;
8666
+ z-index: 1;
8667
+ pointer-events: all;
8668
+ box-sizing: border-box;
8669
+ opacity: 0.8;
8670
+ }
8671
+
8672
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Breadcrumbs/styles.module.css/#css-module-data */
8673
+ ._Breadcrumbs_1c9yh_1 {
8674
+ align-items: center;
8675
+ display: flex;
8676
+ gap: 4px;
8677
+ }
8678
+ ._Breadcrumbs-breadcrumbLabel_1c9yh_7 {
8679
+ background: none;
8680
+ border: 0;
8681
+ border-radius: 2px;
8682
+ color: var(--puck-color-azure-04);
8683
+ cursor: pointer;
8684
+ font: inherit;
8685
+ flex-shrink: 0;
8686
+ padding: 0;
8687
+ transition: color 50ms ease-in;
8688
+ }
8689
+ ._Breadcrumbs-breadcrumbLabel_1c9yh_7:focus-visible {
8690
+ outline: 2px solid var(--puck-color-azure-05);
8691
+ outline-offset: 2px;
8692
+ }
8693
+ @media (hover: hover) and (pointer: fine) {
8694
+ ._Breadcrumbs-breadcrumbLabel_1c9yh_7:hover {
8695
+ color: var(--puck-color-azure-03);
8696
+ transition: none;
8697
+ }
8698
+ }
8699
+ ._Breadcrumbs-breadcrumbLabel_1c9yh_7:active {
8700
+ color: var(--puck-color-azure-02);
8701
+ transition: none;
8702
+ }
8703
+ ._Breadcrumbs-breadcrumb_1c9yh_7 {
8704
+ align-items: center;
8705
+ display: flex;
8706
+ gap: 4px;
8707
+ }
8708
+
8709
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/ViewportControls/styles.module.css/#css-module-data */
8710
+ ._ViewportControls_e3unb_1 {
8711
+ position: relative;
8712
+ }
8713
+ ._ViewportControls--fullScreen_e3unb_5 {
8714
+ border-radius: 32px;
8715
+ display: flex;
8716
+ position: absolute;
8717
+ bottom: 12px;
8718
+ right: 12px;
8719
+ overflow: hidden;
8720
+ }
8721
+ ._ViewportControls-toggleButton_e3unb_14 {
8722
+ display: none;
8723
+ }
8724
+ ._ViewportControls--fullScreen_e3unb_5 ._ViewportControls-toggleButton_e3unb_14 {
8725
+ align-items: center;
8726
+ background-color: var(--puck-color-grey-02);
8727
+ border: 1px solid var(--puck-color-grey-04);
8728
+ border-radius: 30px;
8729
+ cursor: pointer;
8730
+ color: var(--puck-color-grey-11);
8731
+ display: flex;
8732
+ justify-content: center;
8733
+ width: 42px;
8734
+ height: 42px;
8735
+ z-index: 1;
8736
+ }
8737
+ ._ViewportControls--fullScreen_e3unb_5 ._ViewportControls-toggleButton_e3unb_14:hover {
8738
+ background-color: var(--puck-color-grey-02);
8739
+ border: 1px solid var(--puck-color-azure-04);
8740
+ color: var(--puck-color-azure-07);
8741
+ }
8742
+ ._ViewportControls--isExpanded_e3unb_38 ._ViewportControls-toggleButton_e3unb_14 {
8743
+ background-color: var(--puck-color-grey-03);
8744
+ }
8745
+ ._ViewportControls-actions_e3unb_42 {
8746
+ display: flex;
8747
+ }
8748
+ ._ViewportControls-actionsInner_e3unb_46 {
8749
+ display: flex;
8750
+ box-sizing: border-box;
8751
+ justify-content: center;
8752
+ margin-left: auto;
8753
+ margin-right: auto;
8754
+ z-index: 0;
8755
+ overflow: hidden;
8756
+ }
8757
+ ._ViewportControls--fullScreen_e3unb_5 ._ViewportControls-actionsInner_e3unb_46 {
8758
+ background: var(--puck-color-grey-11);
8759
+ border: 1px solid var(--puck-color-grey-09);
8760
+ border-radius: 30px;
8761
+ margin-left: none;
8762
+ margin-right: none;
8763
+ padding-right: 42px;
8764
+ }
8765
+ ._ViewportControls--fullScreen_e3unb_5 ._ViewportControls-actionsInner_e3unb_46 {
8766
+ transform: translateX(100%);
8767
+ transition: transform 150ms ease-in-out;
8768
+ }
8769
+ ._ViewportControls--fullScreen_e3unb_5._ViewportControls--isExpanded_e3unb_38 ._ViewportControls-actionsInner_e3unb_46 {
8770
+ transform: translateX(42px);
8771
+ }
8772
+ ._ViewportControls-divider_e3unb_75 {
8773
+ border-inline-end: 1px solid var(--puck-color-grey-09);
8774
+ margin-bottom: 8px;
8775
+ margin-top: 8px;
8776
+ }
8777
+ ._ViewportControls-zoomSelect_e3unb_81 {
8778
+ appearance: none;
8779
+ background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23c3c3c3'><polygon points='0,0 100,0 50,50'/></svg>") no-repeat;
8780
+ background-size: 10px;
8781
+ background-position: calc(100% - 12px) calc(50% + 3px);
8782
+ background-repeat: no-repeat;
8783
+ border: 0;
8784
+ font-size: var(--puck-font-size-xxxs);
8785
+ padding: 0;
8786
+ padding-left: 8px;
8787
+ width: 96px;
8788
+ }
8789
+ ._ViewportControls--fullScreen_e3unb_5 ._ViewportControls-zoom_e3unb_81 {
8790
+ display: none;
8791
+ }
8792
+ @media (min-width: 638px) {
8793
+ ._ViewportControls-zoom_e3unb_81,
8794
+ ._ViewportControls--fullScreen_e3unb_5 ._ViewportControls-zoom_e3unb_81 {
8795
+ display: flex;
8796
+ justify-content: center;
8797
+ }
8798
+ }
8799
+ ._ViewportControls-zoomSelect_e3unb_81:dir(rtl) {
8800
+ background-position: 12px calc(50% + 3px);
8801
+ }
8802
+ ._ViewportButton-inner_e3unb_111 {
8803
+ align-items: center;
8804
+ display: flex;
8805
+ justify-content: center;
8806
+ height: 32px;
8807
+ width: 32px;
8808
+ }
8809
+ ._ViewportButton--isActive_e3unb_119 ._ViewportButton-inner_e3unb_111 {
8810
+ color: var(--puck-color-azure-04);
8811
+ }
8812
+
8813
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Canvas/styles.module.css/#css-module-data */
8814
+ ._PuckCanvas_t6s9b_1 {
8815
+ background: var(--puck-color-grey-11);
8816
+ display: flex;
8817
+ grid-area: editor;
8818
+ flex-direction: column;
8819
+ padding: var(--puck-space-px);
8820
+ position: relative;
8821
+ overflow: auto;
8822
+ }
8823
+ @media (min-width: 1198px) {
8824
+ ._PuckCanvas_t6s9b_1 {
8825
+ padding: calc(var(--puck-space-px) * 1.5);
8826
+ padding-top: calc(var(--puck-space-px) * 0.5);
8827
+ }
8828
+ ._PuckCanvas_t6s9b_1:not(._PuckCanvas_t6s9b_1:has(._PuckCanvas-controls_t6s9b_17)) {
8829
+ padding-top: calc(var(--puck-space-px) * 1.5);
8830
+ }
8831
+ }
8832
+ ._PuckCanvas--fullScreen_t6s9b_22 {
8833
+ padding: 0;
8834
+ overflow: hidden;
8835
+ }
8836
+ @media (min-width: 1198px) {
8837
+ ._PuckCanvas--fullScreen_t6s9b_22 {
8838
+ padding: 0;
8839
+ }
8840
+ }
8841
+ ._PuckCanvas-inner_t6s9b_33 {
8842
+ display: flex;
8843
+ height: 100%;
8844
+ justify-content: center;
8845
+ min-width: 288px;
8846
+ position: relative;
8847
+ width: 100%;
8848
+ }
8849
+ ._PuckCanvas-root_t6s9b_42 {
8850
+ background: white;
8851
+ outline: 1px solid var(--puck-color-grey-09);
8852
+ box-sizing: content-box;
8853
+ min-width: 321px;
8854
+ position: absolute;
8855
+ pointer-events: none;
8856
+ transform-origin: top;
8857
+ top: 0;
8858
+ bottom: 0;
8859
+ opacity: 0;
8860
+ }
8861
+ @media (min-width: 1198px) {
8862
+ ._PuckCanvas-root_t6s9b_42 {
8863
+ min-width: unset;
8864
+ }
8865
+ }
8866
+ @media (prefers-reduced-motion: reduce) {
8867
+ ._PuckCanvas-root_t6s9b_42 {
8868
+ transition: none !important;
8869
+ }
8870
+ }
8871
+ ._PuckCanvas--ready_t6s9b_67 ._PuckCanvas-root_t6s9b_42 {
8872
+ pointer-events: unset;
8873
+ opacity: 1;
8874
+ }
8875
+ ._PuckCanvas-loader_t6s9b_72 {
8876
+ align-items: center;
8877
+ color: var(--puck-color-grey-06);
8878
+ display: flex;
8879
+ height: 100%;
8880
+ justify-content: center;
8881
+ transition: opacity 250ms ease-out;
8882
+ opacity: 0;
8883
+ }
8884
+ ._PuckCanvas--showLoader_t6s9b_82 ._PuckCanvas-loader_t6s9b_72 {
8885
+ opacity: 1;
8886
+ }
8887
+ ._PuckCanvas--showLoader_t6s9b_82._PuckCanvas--ready_t6s9b_67 ._PuckCanvas-loader_t6s9b_72 {
8888
+ opacity: 0;
8889
+ height: 0;
8890
+ transition: none;
8891
+ }
8892
+ ._PuckCanvas-controls_t6s9b_17 {
8893
+ padding-bottom: calc(var(--puck-space-px) * 0.5);
8894
+ }
8895
+ ._PuckCanvas--fullScreen_t6s9b_22 ._PuckCanvas-controls_t6s9b_17 {
8896
+ padding-bottom: 0;
8897
+ z-index: 1;
8898
+ }
8899
+
8900
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/ResizeHandle/styles.module.css/#css-module-data */
8901
+ @media (min-width: 766px) {
8902
+ ._ResizeHandle_144bf_2 {
8903
+ position: absolute;
8904
+ width: 5px;
8905
+ height: 100%;
8906
+ cursor: col-resize;
8907
+ z-index: 10;
8908
+ background: transparent;
8909
+ top: 0;
8910
+ }
8911
+ ._ResizeHandle_144bf_2:hover {
8912
+ background: rgba(0, 0, 0, 0.1);
8913
+ }
8914
+ ._ResizeHandle--left_144bf_16 {
8915
+ right: -3px;
8916
+ }
8917
+ ._ResizeHandle--right_144bf_20 {
8918
+ left: -3px;
8919
+ }
8920
+ }
8921
+
8922
+ /* components/Puck/components/ResizeHandle/styles.css */
8923
+ [data-resize-overlay] {
8924
+ position: fixed;
8925
+ top: 0;
8926
+ left: 0;
8927
+ right: 0;
8928
+ bottom: 0;
8929
+ z-index: 9999;
8930
+ cursor: col-resize;
8931
+ }
8932
+
8933
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Sidebar/styles.module.css/#css-module-data */
8934
+ ._Sidebar_o396p_1 {
8935
+ border-block-start: 1px solid var(--puck-color-grey-09);
8936
+ position: relative;
8937
+ display: none;
8938
+ flex-direction: column;
8939
+ overflow-y: auto;
8940
+ }
8941
+ ._Sidebar--isVisible_o396p_9 {
8942
+ display: flex;
8943
+ }
8944
+ ._Sidebar--left_o396p_13 {
8945
+ background: var(--puck-color-grey-12);
8946
+ grid-area: left;
8947
+ }
8948
+ @media (min-width: 766px) {
8949
+ ._Sidebar--left_o396p_13 {
8950
+ border-block-start: 0;
8951
+ border-inline-end: 1px solid var(--puck-color-grey-09);
8952
+ }
8953
+ }
8954
+ ._Sidebar--right_o396p_25 {
8955
+ background: var(--puck-color-white);
8956
+ grid-area: right;
8957
+ }
8958
+ @media (min-width: 766px) {
8959
+ ._Sidebar--right_o396p_25 {
8960
+ border-block-start: 0;
8961
+ border-inline-start: 1px solid var(--puck-color-grey-09);
8962
+ }
8963
+ }
8964
+ ._Sidebar-resizeHandle_o396p_37 {
8965
+ position: absolute;
8966
+ height: 100%;
8967
+ }
8968
+ ._Sidebar--left_o396p_13 + ._Sidebar-resizeHandle_o396p_37 {
8969
+ grid-area: left;
8970
+ justify-self: end;
8971
+ }
8972
+ ._Sidebar--right_o396p_25 + ._Sidebar-resizeHandle_o396p_37 {
8973
+ grid-area: right;
8974
+ justify-self: start;
8975
+ }
8976
+
8977
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Nav/styles.module.css/#css-module-data */
8978
+ ._Nav_1tvxq_1 {
8979
+ display: flex;
8980
+ }
8981
+ ._Nav-list_1tvxq_5 {
8982
+ display: flex;
8983
+ list-style: none;
8984
+ margin: 0;
8985
+ padding: 0;
8986
+ overflow-x: auto;
8987
+ gap: 8px;
8988
+ }
8989
+ @media (min-width: 638px) {
8990
+ ._Nav-list_1tvxq_5 {
8991
+ padding-top: 32px;
8992
+ flex-direction: column;
8993
+ gap: 16px;
8994
+ width: 100%;
8995
+ }
8996
+ }
8997
+ ._Nav-mobileActions_1tvxq_23 {
8998
+ align-items: center;
8999
+ display: flex;
9000
+ justify-content: center;
9001
+ margin-inline-start: auto;
9002
+ padding: 4px 16px;
9003
+ border-inline-start: 1px solid var(--puck-color-grey-09);
9004
+ }
9005
+ @media (min-width: 638px) {
9006
+ ._Nav-mobileActions_1tvxq_23 {
9007
+ display: none;
9008
+ }
9009
+ }
9010
+ ._NavItem-link_1tvxq_38 {
9011
+ text-align: center;
9012
+ align-items: center;
9013
+ color: var(--puck-color-grey-03);
9014
+ display: flex;
9015
+ gap: 8px;
9016
+ text-decoration: none;
9017
+ cursor: pointer;
9018
+ border-radius: 4px;
9019
+ padding: 8px 4px;
9020
+ width: 64px;
9021
+ box-sizing: border-box;
9022
+ }
9023
+ @media (min-width: 638px) {
9024
+ ._NavItem-link_1tvxq_38 {
9025
+ width: auto;
9026
+ }
9027
+ }
9028
+ ._NavItem_1tvxq_38:first-of-type {
9029
+ padding-left: 16px;
9030
+ }
9031
+ ._NavItem_1tvxq_38:last-of-type {
9032
+ padding-right: 16px;
9033
+ }
9034
+ @media (min-width: 638px) {
9035
+ ._NavItem_1tvxq_38:first-of-type,
9036
+ ._NavItem_1tvxq_38:last-of-type {
9037
+ padding: 0;
9038
+ }
9039
+ }
9040
+ ._NavItem-link_1tvxq_38 {
9041
+ border-top: 4px solid transparent;
9042
+ border-bottom: 4px solid transparent;
9043
+ border-radius: 0;
9044
+ flex-direction: column;
9045
+ font-size: var(--puck-font-size-xxxs);
9046
+ }
9047
+ @media (min-width: 638px) {
9048
+ ._NavItem-link_1tvxq_38 {
9049
+ border: 0;
9050
+ border-left: 4px solid transparent;
9051
+ border-right: 4px solid transparent;
9052
+ }
9053
+ }
9054
+ ._NavItem-linkIcon_1tvxq_89 {
9055
+ height: 24px;
9056
+ width: 24px;
9057
+ }
9058
+ ._NavItem--active_1tvxq_94 > ._NavItem-link_1tvxq_38 {
9059
+ background-color: var(--puck-color-azure-10);
9060
+ color: var(--puck-color-azure-04);
9061
+ font-weight: 600;
9062
+ }
9063
+ ._NavItem--active_1tvxq_94 > ._NavItem-link_1tvxq_38 {
9064
+ background-color: transparent;
9065
+ border-top-color: var(--puck-color-azure-04);
9066
+ border-top-right-radius: 0;
9067
+ border-bottom-right-radius: 0;
9068
+ font-weight: 600;
9069
+ }
9070
+ @media (min-width: 638px) {
9071
+ ._NavItem--active_1tvxq_94 > ._NavItem-link_1tvxq_38 {
9072
+ border-top-color: transparent;
9073
+ border-right-color: var(--puck-color-azure-04);
9074
+ }
9075
+ }
9076
+ ._NavItem_1tvxq_38:not(._NavItem--active_1tvxq_94) > ._NavItem-link_1tvxq_38:hover {
9077
+ background-color: var(--puck-color-azure-11);
9078
+ color: var(--puck-color-azure-04);
9079
+ }
9080
+ @media (min-width: 638px) {
9081
+ ._NavItem--mobileOnly_1tvxq_121 {
9082
+ display: none;
9083
+ }
9084
+ }
9085
+ ._NavItem--desktopOnly_1tvxq_126 {
9086
+ display: none;
9087
+ }
9088
+ @media (min-width: 638px) {
9089
+ ._NavItem--desktopOnly_1tvxq_126 {
9090
+ display: block;
9091
+ }
9092
+ }
9093
+
9094
+ /* css-module:/home/runner/work/puck/puck/packages/core/plugins/blocks/styles.module.css/#css-module-data */
9095
+ ._BlocksPlugin_1ey1i_1 {
9096
+ padding: 16px;
9097
+ height: 100%;
9098
+ overflow-y: auto;
9099
+ box-sizing: border-box;
9100
+ }
9101
+
9102
+ /* css-module:/home/runner/work/puck/puck/packages/core/plugins/outline/styles.module.css/#css-module-data */
9103
+ ._OutlinePlugin_q92j6_1 {
9104
+ padding: 16px;
9105
+ height: 100%;
9106
+ overflow-y: auto;
9107
+ box-sizing: border-box;
9108
+ }
9109
+
9110
+ /* css-module:/home/runner/work/puck/puck/packages/core/plugins/fields/styles.module.css/#css-module-data */
9111
+ ._FieldsPlugin_nd930_1 {
9112
+ background: white;
9113
+ height: 100%;
9114
+ overflow-y: auto;
9115
+ }
9116
+ ._FieldsPlugin-header_nd930_7 {
9117
+ border-bottom: 1px solid var(--puck-color-grey-09);
9118
+ font-weight: 600;
9119
+ padding-bottom: 8px;
9120
+ padding-left: 16px;
9121
+ padding-right: 16px;
9122
+ padding-top: 8px;
9123
+ }
9124
+ @media (min-width: 638px) {
9125
+ ._FieldsPlugin-header_nd930_7 {
9126
+ padding: 16px;
9127
+ }
9128
+ }`;
9129
+ var iframeInteractionStyles = '/* styles/color.css */\n:root {\n --puck-color-rose-01: #4a001c;\n --puck-color-rose-02: #670833;\n --puck-color-rose-03: #87114c;\n --puck-color-rose-04: #a81a66;\n --puck-color-rose-05: #bc5089;\n --puck-color-rose-06: #cc7ca5;\n --puck-color-rose-07: #d89aba;\n --puck-color-rose-08: #e3b8cf;\n --puck-color-rose-09: #efd6e3;\n --puck-color-rose-10: #f6eaf1;\n --puck-color-rose-11: #faf4f8;\n --puck-color-rose-12: #fef8fc;\n --puck-color-azure-01: #00175d;\n --puck-color-azure-02: #002c77;\n --puck-color-azure-03: #014292;\n --puck-color-azure-04: #0158ad;\n --puck-color-azure-05: #3479be;\n --puck-color-azure-06: #6499cf;\n --puck-color-azure-07: #88b0da;\n --puck-color-azure-08: #abc7e5;\n --puck-color-azure-09: #cfdff0;\n --puck-color-azure-10: #e7eef7;\n --puck-color-azure-11: #f3f6fb;\n --puck-color-azure-12: #f7faff;\n --puck-color-green-01: #002000;\n --puck-color-green-02: #043604;\n --puck-color-green-03: #084e08;\n --puck-color-green-04: #0c680c;\n --puck-color-green-05: #1d882f;\n --puck-color-green-06: #2faa53;\n --puck-color-green-07: #56c16f;\n --puck-color-green-08: #7dd78b;\n --puck-color-green-09: #b8e8bf;\n --puck-color-green-10: #ddf3e0;\n --puck-color-green-11: #eff8f0;\n --puck-color-green-12: #f3fcf4;\n --puck-color-yellow-01: #211000;\n --puck-color-yellow-02: #362700;\n --puck-color-yellow-03: #4c4000;\n --puck-color-yellow-04: #645a00;\n --puck-color-yellow-05: #877614;\n --puck-color-yellow-06: #ab9429;\n --puck-color-yellow-07: #bfac4e;\n --puck-color-yellow-08: #d4c474;\n --puck-color-yellow-09: #e6deb1;\n --puck-color-yellow-10: #f3efd9;\n --puck-color-yellow-11: #f9f7ed;\n --puck-color-yellow-12: #fcfaf0;\n --puck-color-red-01: #4c0000;\n --puck-color-red-02: #6a0a10;\n --puck-color-red-03: #8a1422;\n --puck-color-red-04: #ac1f35;\n --puck-color-red-05: #bf5366;\n --puck-color-red-06: #ce7e8e;\n --puck-color-red-07: #d99ca8;\n --puck-color-red-08: #e4b9c2;\n --puck-color-red-09: #efd7db;\n --puck-color-red-10: #f6eaec;\n --puck-color-red-11: #faf4f5;\n --puck-color-red-12: #fff9fa;\n --puck-color-grey-01: #181818;\n --puck-color-grey-02: #292929;\n --puck-color-grey-03: #404040;\n --puck-color-grey-04: #5a5a5a;\n --puck-color-grey-05: #767676;\n --puck-color-grey-06: #949494;\n --puck-color-grey-07: #ababab;\n --puck-color-grey-08: #c3c3c3;\n --puck-color-grey-09: #dcdcdc;\n --puck-color-grey-10: #efefef;\n --puck-color-grey-11: #f5f5f5;\n --puck-color-grey-12: #fafafa;\n --puck-color-black: #000000;\n --puck-color-white: #ffffff;\n}\n\n/* styles/typography.css */\n:root {\n --puck-font-size-scale-base-unitless: 12;\n --puck-font-size-xxxs-unitless: 12;\n --puck-font-size-xxs-unitless: 14;\n --puck-font-size-xs-unitless: 16;\n --puck-font-size-s-unitless: 18;\n --puck-font-size-m-unitless: 21;\n --puck-font-size-l-unitless: 24;\n --puck-font-size-xl-unitless: 28;\n --puck-font-size-xxl-unitless: 36;\n --puck-font-size-xxxl-unitless: 48;\n --puck-font-size-xxxxl-unitless: 56;\n --puck-font-size-xxxs: calc(1rem * var(--puck-font-size-xxxs-unitless) / 16);\n --puck-font-size-xxs: calc(1rem * var(--puck-font-size-xxs-unitless) / 16);\n --puck-font-size-xs: calc(1rem * var(--puck-font-size-xs-unitless) / 16);\n --puck-font-size-s: calc(1rem * var(--puck-font-size-s-unitless) / 16);\n --puck-font-size-m: calc(1rem * var(--puck-font-size-m-unitless) / 16);\n --puck-font-size-l: calc(1rem * var(--puck-font-size-l-unitless) / 16);\n --puck-font-size-xl: calc(1rem * var(--puck-font-size-xl-unitless) / 16);\n --puck-font-size-xxl: calc(1rem * var(--puck-font-size-xxl-unitless) / 16);\n --puck-font-size-xxxl: calc(1rem * var(--puck-font-size-xxxl-unitless) / 16);\n --puck-font-size-xxxxl: calc( 1rem * var(--puck-font-size-xxxxl-unitless) / 16 );\n --puck-font-size-base: var(--puck-font-size-xs);\n --line-height-reset: 1;\n --line-height-xs: calc( var(--space-m-unitless) / var(--puck-font-size-m-unitless) );\n --line-height-s: calc( var(--space-m-unitless) / var(--puck-font-size-s-unitless) );\n --line-height-m: calc( var(--space-m-unitless) / var(--puck-font-size-xs-unitless) );\n --line-height-l: calc( var(--space-m-unitless) / var(--puck-font-size-xxs-unitless) );\n --line-height-xl: calc( var(--space-m-unitless) / var(--puck-font-size-scale-base-unitless) );\n --line-height-base: var(--line-height-m);\n --fallback-font-stack:\n -apple-system,\n BlinkMacSystemFont,\n Segoe UI,\n Helvetica Neue,\n sans-serif,\n Apple Color Emoji,\n Segoe UI Emoji,\n Segoe UI Symbol;\n --puck-font-family: Inter, var(--fallback-font-stack);\n --puck-font-family-monospaced:\n ui-monospace,\n "Cascadia Code",\n "Source Code Pro",\n Menlo,\n Consolas,\n "DejaVu Sans Mono",\n monospace;\n}\n@supports (font-variation-settings: normal) {\n :root {\n --puck-font-family: InterVariable, var(--fallback-font-stack);\n }\n}\n\n/* bundle/core.css */\n#frame-root {\n height: 1px;\n min-height: 100vh;\n}\n[data-puck-entry] {\n position: relative;\n z-index: 0;\n}\n\n/* css-module:/home/runner/work/puck/puck/packages/core/components/ActionBar/styles.module.css/#css-module-data */\n._ActionBar_1nmyk_1 {\n align-items: center;\n cursor: default;\n display: flex;\n width: auto;\n padding: 4px;\n padding-inline-start: 0;\n padding-inline-end: 0;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n border-radius: 8px;\n background: var(--puck-color-grey-01);\n color: var(--puck-color-white);\n font-family: var(--puck-font-family);\n min-height: 26px;\n}\n._ActionBar-label_1nmyk_18 {\n color: var(--puck-color-grey-08);\n font-size: var(--puck-font-size-xxxs);\n font-weight: 500;\n padding-inline-start: 8px;\n padding-inline-end: 8px;\n margin-inline-start: 4px;\n margin-inline-end: 4px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n._ActionBarAction_1nmyk_30 + ._ActionBar-label_1nmyk_18 {\n padding-inline-start: 0;\n}\n._ActionBar-label_1nmyk_18 + ._ActionBarAction_1nmyk_30 {\n margin-inline-start: -4px;\n}\n._ActionBar-group_1nmyk_38 {\n align-items: center;\n border-inline-start: 0.5px solid var(--puck-color-grey-05);\n display: flex;\n height: 100%;\n padding-inline-start: 4px;\n padding-inline-end: 4px;\n}\n._ActionBar-group_1nmyk_38:first-of-type {\n border-inline-start: 0;\n}\n._ActionBar-group_1nmyk_38:empty {\n display: none;\n}\n._ActionBarAction_1nmyk_30 {\n background: transparent;\n border: none;\n color: var(--puck-color-grey-08);\n cursor: pointer;\n padding: 6px;\n margin-inline-start: 4px;\n margin-inline-end: 4px;\n border-radius: 4px;\n overflow: hidden;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: color 50ms ease-in;\n}\n._ActionBarAction--disabled_1nmyk_71 {\n cursor: auto;\n color: var(--puck-color-grey-06);\n}\n._ActionBarAction_1nmyk_30 svg {\n max-width: none !important;\n}\n._ActionBarAction_1nmyk_30:focus-visible {\n outline: 2px solid var(--puck-color-azure-05);\n outline-offset: -2px;\n}\n@media (hover: hover) and (pointer: fine) {\n ._ActionBarAction_1nmyk_30:hover:not(._ActionBarAction--disabled_1nmyk_71) {\n color: var(--puck-color-azure-06);\n transition: none;\n }\n}\n._ActionBarAction_1nmyk_30:active:not(._ActionBarAction--disabled_1nmyk_71),\n._ActionBarAction--active_1nmyk_93 {\n color: var(--puck-color-azure-07);\n transition: none;\n}\n._ActionBar-group_1nmyk_38 * {\n margin: 0;\n}\n._ActionBar-separator_1nmyk_102 {\n background: var(--puck-color-grey-05);\n margin-inline: 4px;\n width: 0.5px;\n height: 100%;\n}\n\n/* css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css/#css-module-data */\n._DraggableComponent_1vaqy_1 {\n position: absolute;\n pointer-events: none;\n --overlay-background: color-mix( in srgb, var(--puck-color-azure-08) 30%, transparent );\n}\n._DraggableComponent-overlayWrapper_1vaqy_12 {\n height: 100%;\n width: 100%;\n top: 0;\n position: absolute;\n pointer-events: none;\n box-sizing: border-box;\n z-index: 1;\n}\n._DraggableComponent-overlay_1vaqy_12 {\n cursor: pointer;\n height: 100%;\n outline: 2px var(--puck-color-azure-09) solid;\n outline-offset: -2px;\n width: 100%;\n}\n._DraggableComponent_1vaqy_1:focus-visible > ._DraggableComponent-overlayWrapper_1vaqy_12 {\n outline: 1px solid var(--puck-color-azure-05);\n}\n._DraggableComponent-loadingOverlay_1vaqy_34 {\n background: var(--puck-color-white);\n color: var(--puck-color-grey-03);\n border-radius: 4px;\n display: flex;\n padding: 8px;\n top: 8px;\n right: 8px;\n position: absolute;\n z-index: 1;\n pointer-events: all;\n box-sizing: border-box;\n opacity: 0.8;\n z-index: 1;\n}\n._DraggableComponent--hover_1vaqy_50 > ._DraggableComponent-overlayWrapper_1vaqy_12 > ._DraggableComponent-overlay_1vaqy_12 {\n background: var(--overlay-background);\n outline: 2px var(--puck-color-azure-09) solid;\n}\n._DraggableComponent--isSelected_1vaqy_57 > ._DraggableComponent-overlayWrapper_1vaqy_12 > ._DraggableComponent-overlay_1vaqy_12 {\n outline-color: var(--puck-color-azure-07);\n}\n._DraggableComponent_1vaqy_1:has(._DraggableComponent--hover_1vaqy_50 > ._DraggableComponent-overlayWrapper_1vaqy_12) > ._DraggableComponent-overlayWrapper_1vaqy_12 {\n display: none;\n}\n._DraggableComponent-actionsOverlay_1vaqy_71 {\n position: sticky;\n opacity: 0;\n pointer-events: none;\n z-index: 2;\n}\n._DraggableComponent--isSelected_1vaqy_57 ._DraggableComponent-actionsOverlay_1vaqy_71 {\n opacity: 1;\n pointer-events: auto;\n}\n._DraggableComponent-actions_1vaqy_71 {\n position: absolute;\n width: auto;\n cursor: grab;\n display: flex;\n box-sizing: border-box;\n transform-origin: right top;\n min-height: 36px;\n}\n\n/* css-module:/home/runner/work/puck/puck/packages/core/components/Drawer/styles.module.css/#css-module-data */\n._Drawer_pl7z0_1 {\n display: flex;\n flex-direction: column;\n font-family: var(--puck-font-family);\n gap: 12px;\n}\n._Drawer-draggable_pl7z0_8 {\n position: relative;\n}\n._Drawer-draggableBg_pl7z0_12 {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: none;\n z-index: -1;\n}\n._DrawerItem-draggable_pl7z0_22 {\n background: var(--puck-color-white);\n cursor: grab;\n padding: 12px;\n display: flex;\n border: 1px var(--puck-color-grey-09) solid;\n border-radius: 4px;\n font-size: var(--puck-font-size-xxs);\n justify-content: space-between;\n align-items: center;\n transition: background-color 50ms ease-in, color 50ms ease-in;\n}\n._DrawerItem--disabled_pl7z0_35 ._DrawerItem-draggable_pl7z0_22 {\n background: var(--puck-color-grey-11);\n color: var(--puck-color-grey-05);\n cursor: not-allowed;\n}\n._DrawerItem_pl7z0_22:focus-visible {\n outline: 0;\n}\n._Drawer_pl7z0_1:not(._Drawer--isDraggingFrom_pl7z0_45) ._DrawerItem_pl7z0_22:focus-visible ._DrawerItem-draggable_pl7z0_22 {\n border-radius: 4px;\n outline: 2px solid var(--puck-color-azure-05);\n outline-offset: 2px;\n}\n@media (hover: hover) and (pointer: fine) {\n ._Drawer_pl7z0_1:not(._Drawer--isDraggingFrom_pl7z0_45) ._DrawerItem_pl7z0_22:not(._DrawerItem--disabled_pl7z0_35) ._DrawerItem-draggable_pl7z0_22:hover {\n background-color: var(--puck-color-azure-12);\n color: var(--puck-color-azure-04);\n transition: none;\n }\n}\n._DrawerItem-name_pl7z0_63 {\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css/#css-module-data */\n._DropZone_1i2sv_1 {\n --resize-animation-ms: 150ms;\n position: relative;\n height: 100%;\n min-height: var(--min-empty-height);\n outline-offset: -2px;\n width: 100%;\n}\n._DropZone--hasChildren_1i2sv_11 {\n min-height: 0;\n}\n._DropZone_1i2sv_1:empty {\n min-height: var(--min-empty-height);\n}\n[data-puck-entry]:not([data-puck-dragging]) ._DropZone_1i2sv_1 {\n transition: min-height var(--resize-animation-ms) ease-in;\n}\n._DropZone--isAreaSelected_1i2sv_24,\n._DropZone--hoveringOverArea_1i2sv_25:not(._DropZone--isRootZone_1i2sv_25) {\n background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent);\n outline: 2px dashed var(--puck-color-azure-08);\n}\n._DropZone_1i2sv_1:empty {\n background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent);\n outline: 2px dashed var(--puck-color-azure-08);\n}\n._DropZone--isDestination_1i2sv_35 {\n outline: 2px dashed var(--puck-color-azure-04) !important;\n}\n._DropZone--isDestination_1i2sv_35:not(._DropZone--isRootZone_1i2sv_25) {\n background: color-mix(in srgb, var(--puck-color-azure-09) 30%, transparent) !important;\n}\n._DropZone-item_1i2sv_47 {\n position: relative;\n}\n._DropZone-hitbox_1i2sv_51 {\n position: absolute;\n bottom: -12px;\n height: 24px;\n width: 100%;\n z-index: 1;\n}\n[data-puck-dragging] ._DropZone--isEnabled_1i2sv_59 {\n outline: 2px dashed var(--puck-color-azure-06);\n}\n._DropZone_1i2sv_1 > *:not([data-puck-component]) {\n opacity: 0;\n}\nbody:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {\n opacity: 0 !important;\n}\n\n/* css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css/#css-module-data */\n._InlineTextField_104qp_1 {\n cursor: text;\n display: inline-block;\n white-space: pre-wrap;\n text-decoration: inherit;\n}\n[data-dnd-dragging] ._InlineTextField_104qp_1 {\n cursor: none;\n caret-color: transparent;\n}\n[data-dnd-dragging] ._InlineTextField_104qp_1::selection {\n display: none;\n}\n\n/* css-module:/home/runner/work/puck/puck/packages/core/components/Loader/styles.module.css/#css-module-data */\n@keyframes _loader-animation_nacdm_1 {\n 0% {\n transform: rotate(0deg) scale(1);\n }\n 50% {\n transform: rotate(180deg) scale(0.8);\n }\n 100% {\n transform: rotate(360deg) scale(1);\n }\n}\n._Loader_nacdm_13 {\n background: transparent;\n border-radius: 100%;\n border: 2px solid currentColor;\n border-bottom-color: transparent;\n display: inline-block;\n animation: _loader-animation_nacdm_1 1s 0s infinite linear;\n animation-fill-mode: both;\n}\n\n/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextMenu/styles.module.css/#css-module-data */\n._RichTextMenu_k97eh_1 {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n}\n._RichTextMenu--form_k97eh_7 {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n padding: 6px 6px;\n background-color: var(--puck-color-grey-12);\n position: relative;\n scrollbar-width: none;\n overflow-x: auto;\n}\n._RichTextMenu-group_k97eh_17 {\n display: flex;\n align-items: space-between;\n flex-direction: row;\n flex-wrap: nowrap;\n padding-inline: 6px;\n gap: 2px;\n position: relative;\n}\n._RichTextMenu-group_k97eh_17:first-of-type {\n padding-left: 0;\n}\n._RichTextMenu-group_k97eh_17:last-of-type {\n padding-right: 0;\n}\n._RichTextMenu--inline_k97eh_35 ._RichTextMenu-group_k97eh_17 {\n color: var(--puck-color-grey-08);\n gap: 0px;\n flex-wrap: nowrap;\n}\n._RichTextMenu-group_k97eh_17 + ._RichTextMenu-group_k97eh_17 {\n border-left: 1px solid var(--puck-color-grey-10);\n}\n._RichTextMenu--inline_k97eh_35 ._RichTextMenu-group_k97eh_17 + ._RichTextMenu-group_k97eh_17 {\n border-left: 0.5px solid var(--puck-color-grey-05);\n}\n\n/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextMenu/components/Control/styles.module.css/#css-module-data */\n._Control_1aveu_1 .lucide {\n height: 18px;\n width: 18px;\n}\n._Control--inline_1aveu_6 .lucide {\n height: 16px;\n width: 16px;\n}\n\n/* components/DraggableComponent/styles.css */\n[data-puck-component] * {\n pointer-events: none;\n user-select: none;\n -webkit-user-select: none;\n}\n[data-puck-component] {\n cursor: grab;\n pointer-events: auto !important;\n user-select: none;\n -webkit-user-select: none;\n}\n[data-puck-dropzone] {\n pointer-events: auto !important;\n}\n[data-puck-disabled] {\n cursor: pointer;\n}\n[data-dnd-placeholder] {\n background: var(--puck-color-azure-06, #6499cf) !important;\n border: none !important;\n color: #00000000 !important;\n opacity: 0.3 !important;\n outline: none !important;\n transition: none !important;\n}\n[data-dnd-placeholder] *,\n[data-dnd-placeholder]::after,\n[data-dnd-placeholder]::before {\n opacity: 0 !important;\n}\n[data-dnd-dragging][data-puck-component] {\n pointer-events: none !important;\n outline: 2px var(--puck-color-azure-09, #cfdff0) solid !important;\n outline-offset: -2px !important;\n}\n[data-dnd-dragging][data-puck-component] > :first-child {\n margin-top: 0 !important;\n}\n[data-dnd-dragging][data-puck-component] > :last-child {\n margin-bottom: 0 !important;\n}\n\n/* lib/overlay-portal/styles.css */\n[data-puck-overlay-portal],\n[data-puck-overlay-portal] * {\n pointer-events: auto !important;\n}\n[data-puck-overlay-portal]:hover {\n outline: 2px var(--puck-color-azure-09, #cfdff0) dashed;\n outline-offset: 2px;\n}\n[data-puck-overlay-portal]:focus-within {\n outline: 2px var(--puck-color-azure-07, #88b0da) dashed;\n outline-offset: 2px;\n}';
9130
+
9131
+ // lib/use-inject-css.ts
9132
+ var PUCK_STYLE_SOURCE_ATTRIBUTE = "data-puck-style-source";
9133
+ var PUCK_STYLE_SOURCE_VALUE = "puck";
9134
+ var PUCK_STYLE_ID_ATTRIBUTE = "data-puck-style-id";
9135
+ var PUCK_STYLE_IDS = {
9136
+ uiDefault: "ui-default",
9137
+ iframeInteractions: "iframe-styles"
9138
+ };
9139
+ var styleRegistry = /* @__PURE__ */ new WeakMap();
9140
+ var getTargetDocument = (target) => {
9141
+ if (target) {
9142
+ return target;
9143
+ }
9144
+ if (typeof document === "undefined") {
9145
+ return void 0;
9146
+ }
9147
+ return document;
9148
+ };
9149
+ var getStyleMap = (target) => {
9150
+ const existing = styleRegistry.get(target);
9151
+ if (existing) {
9152
+ return existing;
9153
+ }
9154
+ const created = /* @__PURE__ */ new Map();
9155
+ styleRegistry.set(target, created);
9156
+ return created;
9157
+ };
9158
+ var attachStyleElement = (target, el, prepend = false) => {
9159
+ const head = target.head;
9160
+ if (!head) {
9161
+ return;
9162
+ }
9163
+ if (el.parentElement !== head) {
9164
+ if (prepend) {
9165
+ head.prepend(el);
9166
+ } else {
9167
+ head.append(el);
9168
+ }
9169
+ return;
9170
+ }
9171
+ if (prepend && head.firstChild !== el) {
9172
+ head.prepend(el);
9173
+ }
9174
+ if (!prepend && head.lastChild !== el) {
9175
+ head.append(el);
9176
+ }
9177
+ };
9178
+ var createStyleElement = (target, id, cssText, prepend = false) => {
9179
+ const el = target.createElement("style");
9180
+ el.setAttribute(PUCK_STYLE_SOURCE_ATTRIBUTE, PUCK_STYLE_SOURCE_VALUE);
9181
+ el.setAttribute(PUCK_STYLE_ID_ATTRIBUTE, id);
9182
+ el.textContent = cssText;
9183
+ attachStyleElement(target, el, prepend);
9184
+ return el;
9185
+ };
9186
+ var isPuckStyleElement = (el) => (el == null ? void 0 : el.getAttribute(PUCK_STYLE_SOURCE_ATTRIBUTE)) === PUCK_STYLE_SOURCE_VALUE;
9187
+ var useInjectStyleSheet = (options) => {
9188
+ const targetDocument = getTargetDocument(options == null ? void 0 : options.document);
9189
+ useInsertionEffect(() => {
9190
+ if (!options || !targetDocument) {
9191
+ return;
9192
+ }
9193
+ const registry = getStyleMap(targetDocument);
9194
+ const existing = registry.get(options.id);
9195
+ if (existing) {
9196
+ existing.count = existing.count + 1;
9197
+ if (existing.el.textContent !== options.cssText) {
9198
+ existing.el.textContent = options.cssText;
9199
+ }
9200
+ attachStyleElement(targetDocument, existing.el, options.prepend);
9201
+ } else {
9202
+ const el = createStyleElement(
9203
+ targetDocument,
9204
+ options.id,
9205
+ options.cssText,
9206
+ options.prepend
9207
+ );
9208
+ registry.set(options.id, {
9209
+ count: 1,
9210
+ el
9211
+ });
9212
+ }
9213
+ return () => {
9214
+ const current = registry.get(options.id);
9215
+ if (!current) {
9216
+ return;
9217
+ }
9218
+ current.count = current.count - 1;
9219
+ if (current.count <= 0) {
9220
+ current.el.remove();
9221
+ registry.delete(options.id);
9222
+ }
9223
+ };
9224
+ }, [
9225
+ options == null ? void 0 : options.cssText,
9226
+ options == null ? void 0 : options.id,
9227
+ options == null ? void 0 : options.prepend,
9228
+ options == null ? void 0 : options.document,
9229
+ targetDocument
9230
+ ]);
9231
+ };
9232
+ var staticCssDetected = null;
9233
+ var hasStaticPuckCss = () => {
9234
+ if (staticCssDetected !== null) return staticCssDetected;
9235
+ if (typeof document === "undefined") return false;
9236
+ staticCssDetected = getComputedStyle(document.documentElement).getPropertyValue("--puck-color-azure-05").trim() !== "";
9237
+ return staticCssDetected;
9238
+ };
9239
+ var useInjectUiCss = () => {
9240
+ const skip = hasStaticPuckCss();
9241
+ useInjectStyleSheet(
9242
+ skip ? null : {
9243
+ cssText: defaultUiStyles,
9244
+ id: PUCK_STYLE_IDS.uiDefault,
9245
+ prepend: true
9246
+ }
9247
+ );
9248
+ useEffect21(() => {
9249
+ if (skip && process.env.NODE_ENV !== "production") {
9250
+ console.info(
9251
+ "Puck: Skipped runtime style injection as Puck styles are already loaded. As of Puck 0.22, you can safely remove CSS imports, or ignore this message."
9252
+ );
9253
+ }
9254
+ }, []);
9255
+ };
9256
+ var useInjectIframeCss = (targetDocument) => {
9257
+ useInjectStyleSheet(
9258
+ targetDocument ? {
9259
+ cssText: iframeInteractionStyles,
9260
+ document: targetDocument,
9261
+ id: PUCK_STYLE_IDS.iframeInteractions
9262
+ } : null
9263
+ );
9264
+ };
9265
+
9266
+ // components/AutoFrame/index.tsx
9267
+ import { Fragment as Fragment12, jsx as jsx43 } from "react/jsx-runtime";
9268
+ var styleSelector = 'style, link[rel="stylesheet"]';
9269
+ var mirroredStyleAttribute = "data-puck-style-mirror";
9270
+ var shouldMirrorStyleElement = (style) => {
9271
+ if (!style.matches(styleSelector) || isPuckStyleElement(style)) {
9272
+ return false;
9273
+ }
9274
+ if (style.tagName === "STYLE") {
9275
+ return !!style.innerHTML.trim();
9276
+ }
9277
+ return true;
9278
+ };
9279
+ var collectStyles = (doc) => {
9280
+ const collected = [];
9281
+ doc.querySelectorAll(styleSelector).forEach((style) => {
9282
+ if (shouldMirrorStyleElement(style)) {
9283
+ collected.push(style);
9284
+ }
9285
+ });
9286
+ return collected;
9287
+ };
9288
+ var getStyleSheet = (el) => {
9289
+ return Array.from(document.styleSheets).find((ss) => {
9290
+ const ownerNode = ss.ownerNode;
9291
+ return ownerNode.href === el.href;
9292
+ });
9293
+ };
9294
+ var getStyles = (styleSheet) => {
9295
+ if (styleSheet) {
9296
+ try {
9297
+ return Array.from(styleSheet.cssRules).map((rule) => rule.cssText).join("");
9298
+ } catch (e) {
9299
+ console.warn(
9300
+ "Access to stylesheet %s is denied. Ignoring\u2026",
9301
+ styleSheet.href
9302
+ );
9303
+ }
9304
+ }
9305
+ return "";
9306
+ };
9307
+ var syncAttributes = (sourceElement, targetElement) => {
9308
+ const attributes = sourceElement.attributes;
9309
+ if ((attributes == null ? void 0 : attributes.length) > 0) {
9310
+ Array.from(attributes).forEach((attribute) => {
9311
+ targetElement.setAttribute(attribute.name, attribute.value);
9312
+ });
9313
+ }
9314
+ };
9315
+ var defer = (fn) => setTimeout(fn, 0);
9316
+ var CopyHostStyles = ({
9317
+ children,
9318
+ debug = false,
9319
+ onStylesLoaded = () => null,
9320
+ syncHostStyles = true
9321
+ }) => {
9322
+ const { document: doc, window: win } = useFrame();
9323
+ useInjectIframeCss(doc);
9324
+ useEffect22(() => {
9325
+ if (!win || !doc) {
9326
+ return () => {
9327
+ };
9328
+ }
9329
+ let elements = [];
9330
+ const hashes = {};
9331
+ const removeAllMirrors = () => {
9332
+ elements.forEach(({ mirror }) => {
9333
+ mirror.remove();
9334
+ });
9335
+ elements = [];
9336
+ Array.from(
9337
+ doc.head.querySelectorAll(`[${mirroredStyleAttribute}="true"]`)
9338
+ ).forEach((mirror) => {
9339
+ mirror.remove();
9340
+ });
9341
+ Object.keys(hashes).forEach((key) => {
9342
+ delete hashes[key];
9343
+ });
9344
+ };
9345
+ const lookupEl = (el) => elements.findIndex((elementMap) => elementMap.original === el);
9346
+ const mirrorEl = (el, inlineStyles = false) => __async(null, null, function* () {
9347
+ let mirror;
9348
+ if (el.nodeName === "LINK" && inlineStyles) {
9349
+ mirror = document.createElement("style");
9350
+ mirror.type = "text/css";
9351
+ let styleSheet = getStyleSheet(el);
9352
+ if (!styleSheet) {
9353
+ yield new Promise((resolve) => {
9354
+ const fn = () => {
9355
+ resolve();
9356
+ el.removeEventListener("load", fn);
9357
+ };
9358
+ el.addEventListener("load", fn);
9359
+ });
9360
+ styleSheet = getStyleSheet(el);
9361
+ }
9362
+ const styles = getStyles(styleSheet);
9363
+ if (!styles) {
9364
+ if (debug) {
9365
+ console.warn(
9366
+ `Tried to load styles for link element, but couldn't find them. Skipping...`
9367
+ );
9368
+ }
9369
+ return;
9370
+ }
9371
+ mirror.innerHTML = styles;
9372
+ mirror.setAttribute("data-href", el.getAttribute("href"));
9373
+ } else {
9374
+ mirror = el.cloneNode(true);
9375
+ }
9376
+ mirror.setAttribute(mirroredStyleAttribute, "true");
9377
+ return mirror;
9378
+ });
9379
+ const addEl = (el) => __async(null, null, function* () {
9380
+ const index = lookupEl(el);
9381
+ if (index > -1) {
9382
+ if (debug)
9383
+ console.log(
9384
+ `Tried to add an element that was already mirrored. Updating instead...`
9385
+ );
9386
+ elements[index].mirror.innerText = el.innerText;
9387
+ return;
9388
+ }
9389
+ const mirror = yield mirrorEl(el);
9390
+ if (!mirror) {
9391
+ return;
9392
+ }
9393
+ const elHash = hash(mirror.outerHTML);
9394
+ if (hashes[elHash]) {
9395
+ if (debug)
9396
+ console.log(
9397
+ `iframe already contains element that is being mirrored. Skipping...`
9398
+ );
9399
+ return;
9400
+ }
9401
+ hashes[elHash] = true;
9402
+ doc.head.append(mirror);
9403
+ elements.push({ original: el, mirror });
9404
+ if (debug) console.log(`Added style node ${el.outerHTML}`);
9405
+ });
9406
+ const removeEl = (el) => {
9407
+ var _a, _b;
9408
+ const index = lookupEl(el);
9409
+ if (index === -1) {
9410
+ if (debug)
9411
+ console.log(
9412
+ `Tried to remove an element that did not exist. Skipping...`
9413
+ );
9414
+ return;
9415
+ }
9416
+ const elHash = hash(el.outerHTML);
9417
+ (_b = (_a = elements[index]) == null ? void 0 : _a.mirror) == null ? void 0 : _b.remove();
9418
+ delete hashes[elHash];
9419
+ if (debug) console.log(`Removed style node ${el.outerHTML}`);
9420
+ };
9421
+ const observer = new MutationObserver((mutations) => {
9422
+ mutations.forEach((mutation) => {
9423
+ if (mutation.type === "childList") {
9424
+ mutation.addedNodes.forEach((node) => {
9425
+ if (node.nodeType === Node.TEXT_NODE || node.nodeType === Node.ELEMENT_NODE) {
9426
+ const el = node.nodeType === Node.TEXT_NODE ? node.parentElement : node;
9427
+ if (el && shouldMirrorStyleElement(el)) {
9428
+ defer(() => addEl(el));
9429
+ }
9430
+ }
9431
+ });
9432
+ mutation.removedNodes.forEach((node) => {
9433
+ if (node.nodeType === Node.TEXT_NODE || node.nodeType === Node.ELEMENT_NODE) {
9434
+ const el = node.nodeType === Node.TEXT_NODE ? node.parentElement : node;
9435
+ if (el && el.matches(styleSelector) && !isPuckStyleElement(el)) {
9436
+ defer(() => removeEl(el));
9437
+ }
9438
+ }
9439
+ });
9440
+ }
9441
+ });
9442
+ });
9443
+ if (!syncHostStyles) {
9444
+ onStylesLoaded();
9445
+ return () => {
9446
+ observer.disconnect();
9447
+ removeAllMirrors();
9448
+ };
9449
+ }
9450
+ const parentDocument = win.parent.document;
9451
+ const collectedStyles = collectStyles(parentDocument);
9452
+ const hrefs = [];
9453
+ let stylesLoaded = 0;
9454
+ const parentHtml = parentDocument.getElementsByTagName("html")[0];
9455
+ syncAttributes(parentHtml, doc.documentElement);
9456
+ const parentBody = parentDocument.getElementsByTagName("body")[0];
9457
+ syncAttributes(parentBody, doc.body);
9458
+ Promise.all(
9459
+ collectedStyles.map((styleNode, i) => __async(null, null, function* () {
9460
+ if (styleNode.nodeName === "LINK") {
9461
+ const linkHref = styleNode.href;
9462
+ if (hrefs.indexOf(linkHref) > -1) {
9463
+ return;
9464
+ }
9465
+ hrefs.push(linkHref);
9466
+ }
9467
+ const mirror = yield mirrorEl(styleNode);
9468
+ if (!mirror) return;
9469
+ elements.push({ original: styleNode, mirror });
9470
+ return mirror;
9471
+ }))
9472
+ ).then((mirrorStyles) => {
9473
+ const filtered = mirrorStyles.filter(
9474
+ (el) => typeof el !== "undefined"
9475
+ );
9476
+ filtered.forEach((mirror) => {
9477
+ mirror.onload = () => {
9478
+ stylesLoaded = stylesLoaded + 1;
9479
+ if (stylesLoaded >= filtered.length) {
9480
+ onStylesLoaded();
9481
+ }
9482
+ };
9483
+ mirror.onerror = () => {
9484
+ console.warn(`AutoFrame couldn't load a stylesheet`);
9485
+ stylesLoaded = stylesLoaded + 1;
9486
+ if (stylesLoaded >= filtered.length) {
9487
+ onStylesLoaded();
9488
+ }
9489
+ };
9490
+ });
9491
+ doc.head.querySelectorAll(`[${mirroredStyleAttribute}="true"]`).forEach((el) => {
9492
+ el.remove();
9493
+ });
9494
+ doc.head.append(...filtered);
9495
+ filtered.forEach((mirror) => {
9496
+ if (mirror.nodeName === "STYLE") {
9497
+ stylesLoaded = stylesLoaded + 1;
9498
+ }
9499
+ });
9500
+ if (stylesLoaded >= filtered.length) {
9501
+ onStylesLoaded();
9502
+ }
9503
+ observer.observe(parentDocument.head, { childList: true, subtree: true });
9504
+ filtered.forEach((el) => {
9505
+ const elHash = hash(el.outerHTML);
9506
+ hashes[elHash] = true;
9507
+ });
9508
+ });
9509
+ return () => {
9510
+ observer.disconnect();
9511
+ removeAllMirrors();
9512
+ };
9513
+ }, [syncHostStyles]);
9514
+ return /* @__PURE__ */ jsx43(Fragment12, { children });
9515
+ };
9516
+ var autoFrameContext = createContext6({});
9517
+ var useFrame = () => useContext13(autoFrameContext);
9518
+ function AutoFrame(_a) {
9519
+ var _b = _a, {
9520
+ children,
9521
+ className,
9522
+ debug,
9523
+ id,
9524
+ onReady = () => {
9525
+ },
9526
+ onNotReady = () => {
9527
+ },
9528
+ frameRef,
9529
+ syncHostStyles = true
9530
+ } = _b, props = __objRest(_b, [
9531
+ "children",
9532
+ "className",
9533
+ "debug",
9534
+ "id",
9535
+ "onReady",
9536
+ "onNotReady",
9537
+ "frameRef",
9538
+ "syncHostStyles"
9539
+ ]);
9540
+ const [loaded, setLoaded] = useState18(false);
9541
+ const [ctx, setCtx] = useState18({});
9542
+ const [mountTarget, setMountTarget] = useState18();
9543
+ const [stylesLoaded, setStylesLoaded] = useState18(false);
9544
+ useEffect22(() => {
9545
+ if (loaded) {
9546
+ setStylesLoaded(!syncHostStyles);
9547
+ }
9548
+ }, [loaded, syncHostStyles]);
9549
+ useEffect22(() => {
6724
9550
  var _a2;
6725
9551
  if (frameRef.current) {
6726
9552
  const doc = frameRef.current.contentDocument;
@@ -6754,6 +9580,7 @@ function AutoFrame(_a) {
6754
9580
  {
6755
9581
  debug,
6756
9582
  onStylesLoaded: () => setStylesLoaded(true),
9583
+ syncHostStyles,
6757
9584
  children: createPortal3(children, mountTarget)
6758
9585
  }
6759
9586
  ) })
@@ -6772,7 +9599,7 @@ import { Fragment as Fragment13, jsx as jsx44 } from "react/jsx-runtime";
6772
9599
  var getClassName25 = get_class_name_factory_default("PuckPreview", styles_module_default19);
6773
9600
  var useBubbleIframeEvents = (ref) => {
6774
9601
  const status = useAppStore((s) => s.status);
6775
- useEffect22(() => {
9602
+ useEffect23(() => {
6776
9603
  if (ref.current && status === "READY") {
6777
9604
  const iframe = ref.current;
6778
9605
  const handlePointerMove = (event) => {
@@ -6781,6 +9608,9 @@ var useBubbleIframeEvents = (ref) => {
6781
9608
  cancelable: false,
6782
9609
  clientX: event.clientX,
6783
9610
  clientY: event.clientY,
9611
+ pointerId: event.pointerId,
9612
+ pointerType: event.pointerType,
9613
+ isPrimary: event.isPrimary,
6784
9614
  originalTarget: event.target
6785
9615
  }));
6786
9616
  iframe.dispatchEvent(evt);
@@ -6856,7 +9686,7 @@ var Preview2 = ({ id = "puck-preview" }) => {
6856
9686
  children: /* @__PURE__ */ jsx44(DropZonePure, { zone: rootDroppableId })
6857
9687
  })
6858
9688
  ) : /* @__PURE__ */ jsx44(Render, { data: renderData, config, metadata });
6859
- useEffect22(() => {
9689
+ useEffect23(() => {
6860
9690
  if (!iframe.enabled) {
6861
9691
  setStatus("READY");
6862
9692
  }
@@ -6879,6 +9709,7 @@ var Preview2 = ({ id = "puck-preview" }) => {
6879
9709
  id: "preview-frame",
6880
9710
  className: getClassName25("frame"),
6881
9711
  "data-rfd-iframe": true,
9712
+ syncHostStyles: iframe.syncHostStyles,
6882
9713
  onReady: () => {
6883
9714
  setStatus("READY");
6884
9715
  },
@@ -6961,38 +9792,16 @@ import { deepEqual as deepEqual2 } from "fast-equals";
6961
9792
 
6962
9793
  // components/Puck/components/Layout/index.tsx
6963
9794
  init_react_import();
6964
- import { useEffect as useEffect28, useMemo as useMemo24, useState as useState24 } from "react";
9795
+ import {
9796
+ useEffect as useEffect28,
9797
+ useLayoutEffect as useLayoutEffect2,
9798
+ useMemo as useMemo24,
9799
+ useState as useState23
9800
+ } from "react";
6965
9801
 
6966
9802
  // css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Layout/styles.module.css#css-module
6967
9803
  init_react_import();
6968
- var styles_module_default20 = { "Puck": "_Puck_1dd16_19", "Puck-portal": "_Puck-portal_1dd16_31", "PuckLayout": "_PuckLayout_1dd16_36", "PuckLayout-inner": "_PuckLayout-inner_1dd16_40", "Puck--hidePlugins": "_Puck--hidePlugins_1dd16_72", "PuckLayout--mounted": "_PuckLayout--mounted_1dd16_77", "PuckLayout--mobilePanelHeightToggle": "_PuckLayout--mobilePanelHeightToggle_1dd16_81", "PuckLayout--leftSideBarVisible": "_PuckLayout--leftSideBarVisible_1dd16_81", "PuckLayout--isExpanded": "_PuckLayout--isExpanded_1dd16_87", "PuckLayout--mobilePanelHeightMinContent": "_PuckLayout--mobilePanelHeightMinContent_1dd16_105", "PuckLayout--rightSideBarVisible": "_PuckLayout--rightSideBarVisible_1dd16_132", "PuckLayout-mounted": "_PuckLayout-mounted_1dd16_151", "PuckLayout-nav": "_PuckLayout-nav_1dd16_192", "PuckLayout-header": "_PuckLayout-header_1dd16_208", "PuckPluginTab": "_PuckPluginTab_1dd16_222", "PuckPluginTab--visible": "_PuckPluginTab--visible_1dd16_228", "PuckPluginTab-body": "_PuckPluginTab-body_1dd16_233" };
6969
-
6970
- // lib/use-inject-css.ts
6971
- init_react_import();
6972
- import { useEffect as useEffect23, useState as useState19 } from "react";
6973
- var styles = ``;
6974
- var useInjectStyleSheet = (initialStyles, iframeEnabled) => {
6975
- const [el, setEl] = useState19();
6976
- useEffect23(() => {
6977
- setEl(document.createElement("style"));
6978
- }, []);
6979
- useEffect23(() => {
6980
- var _a;
6981
- if (!el || typeof window === "undefined") {
6982
- return;
6983
- }
6984
- el.innerHTML = initialStyles;
6985
- if (iframeEnabled) {
6986
- const frame = getFrame();
6987
- (_a = frame == null ? void 0 : frame.head) == null ? void 0 : _a.appendChild(el);
6988
- }
6989
- document.head.appendChild(el);
6990
- }, [iframeEnabled, el]);
6991
- return el;
6992
- };
6993
- var useInjectGlobalCss = (iframeEnabled) => {
6994
- return useInjectStyleSheet(styles, iframeEnabled);
6995
- };
9804
+ var styles_module_default20 = { "Puck": "_Puck_cgc86_19", "Puck-portal": "_Puck-portal_cgc86_32", "PuckLayout": "_PuckLayout_cgc86_37", "PuckLayout-inner": "_PuckLayout-inner_cgc86_41", "Puck--hidePlugins": "_Puck--hidePlugins_cgc86_73", "PuckLayout--mounted": "_PuckLayout--mounted_cgc86_78", "PuckLayout--mobilePanelHeightToggle": "_PuckLayout--mobilePanelHeightToggle_cgc86_82", "PuckLayout--leftSideBarVisible": "_PuckLayout--leftSideBarVisible_cgc86_82", "PuckLayout--isExpanded": "_PuckLayout--isExpanded_cgc86_88", "PuckLayout--mobilePanelHeightMinContent": "_PuckLayout--mobilePanelHeightMinContent_cgc86_106", "PuckLayout--rightSideBarVisible": "_PuckLayout--rightSideBarVisible_cgc86_133", "PuckLayout-mounted": "_PuckLayout-mounted_cgc86_152", "PuckLayout-nav": "_PuckLayout-nav_cgc86_193", "PuckLayout-header": "_PuckLayout-header_cgc86_209", "PuckPluginTab": "_PuckPluginTab_cgc86_223", "PuckPluginTab--visible": "_PuckPluginTab--visible_cgc86_229", "PuckPluginTab-body": "_PuckPluginTab-body_cgc86_234" };
6996
9805
 
6997
9806
  // components/DefaultOverride/index.tsx
6998
9807
  init_react_import();
@@ -7019,7 +9828,7 @@ var usePreviewModeHotkeys = () => {
7019
9828
 
7020
9829
  // components/Puck/components/Header/index.tsx
7021
9830
  init_react_import();
7022
- import { memo as memo9, useCallback as useCallback18, useMemo as useMemo20, useState as useState20 } from "react";
9831
+ import { memo as memo9, useCallback as useCallback18, useMemo as useMemo20, useState as useState19 } from "react";
7023
9832
 
7024
9833
  // components/MenuBar/index.tsx
7025
9834
  init_react_import();
@@ -7138,7 +9947,7 @@ var HeaderInner = ({
7138
9947
  const CustomHeaderActions = useAppStore(
7139
9948
  (s) => s.overrides.headerActions || defaultHeaderActionsRender
7140
9949
  );
7141
- const [menuOpen, setMenuOpen] = useState20(false);
9950
+ const [menuOpen, setMenuOpen] = useState19(false);
7142
9951
  const rootTitle = useAppStore((s) => {
7143
9952
  var _a, _b;
7144
9953
  const rootData = (_a = s.state.indexes.nodes["root"]) == null ? void 0 : _a.data;
@@ -7292,12 +10101,12 @@ import {
7292
10101
  useEffect as useEffect25,
7293
10102
  useMemo as useMemo23,
7294
10103
  useRef as useRef13,
7295
- useState as useState22
10104
+ useState as useState21
7296
10105
  } from "react";
7297
10106
 
7298
10107
  // components/ViewportControls/index.tsx
7299
10108
  init_react_import();
7300
- import { useEffect as useEffect24, useMemo as useMemo21, useState as useState21 } from "react";
10109
+ import { useEffect as useEffect24, useMemo as useMemo21, useState as useState20 } from "react";
7301
10110
 
7302
10111
  // css-module:/home/runner/work/puck/puck/packages/core/components/ViewportControls/styles.module.css#css-module
7303
10112
  init_react_import();
@@ -7366,13 +10175,13 @@ var ViewportControls = ({
7366
10175
  ].filter((a) => a.value <= autoZoom).sort((a, b) => a.value > b.value ? 1 : -1),
7367
10176
  [autoZoom]
7368
10177
  );
7369
- const [activeViewport, setActiveViewport] = useState21(
10178
+ const [activeViewport, setActiveViewport] = useState20(
7370
10179
  uiViewports.current.width
7371
10180
  );
7372
10181
  useEffect24(() => {
7373
10182
  setActiveViewport(uiViewports.current.width);
7374
10183
  }, [uiViewports.current]);
7375
- const [isExpanded, setIsExpanded] = useState21(false);
10184
+ const [isExpanded, setIsExpanded] = useState20(false);
7376
10185
  return /* @__PURE__ */ jsxs18(
7377
10186
  "div",
7378
10187
  {
@@ -7469,7 +10278,7 @@ var ViewportControls = ({
7469
10278
 
7470
10279
  // css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Canvas/styles.module.css#css-module
7471
10280
  init_react_import();
7472
- var styles_module_default25 = { "PuckCanvas": "_PuckCanvas_ur8dl_1", "PuckCanvas-controls": "_PuckCanvas-controls_ur8dl_17", "PuckCanvas--fullScreen": "_PuckCanvas--fullScreen_ur8dl_22", "PuckCanvas-inner": "_PuckCanvas-inner_ur8dl_33", "PuckCanvas-root": "_PuckCanvas-root_ur8dl_42", "PuckCanvas--ready": "_PuckCanvas--ready_ur8dl_67", "PuckCanvas-loader": "_PuckCanvas-loader_ur8dl_72", "PuckCanvas--showLoader": "_PuckCanvas--showLoader_ur8dl_83" };
10281
+ var styles_module_default25 = { "PuckCanvas": "_PuckCanvas_t6s9b_1", "PuckCanvas-controls": "_PuckCanvas-controls_t6s9b_17", "PuckCanvas--fullScreen": "_PuckCanvas--fullScreen_t6s9b_22", "PuckCanvas-inner": "_PuckCanvas-inner_t6s9b_33", "PuckCanvas-root": "_PuckCanvas-root_t6s9b_42", "PuckCanvas--ready": "_PuckCanvas--ready_t6s9b_67", "PuckCanvas-loader": "_PuckCanvas-loader_t6s9b_72", "PuckCanvas--showLoader": "_PuckCanvas--showLoader_t6s9b_82" };
7473
10282
 
7474
10283
  // components/Puck/components/Canvas/index.tsx
7475
10284
  import { useShallow as useShallow9 } from "zustand/react/shallow";
@@ -7550,7 +10359,7 @@ var Canvas = () => {
7550
10359
  viewports: s.state.ui.viewports
7551
10360
  }))
7552
10361
  );
7553
- const [showTransition, setShowTransition] = useState22(false);
10362
+ const [showTransition, setShowTransition] = useState21(false);
7554
10363
  const isResizingRef = useRef13(false);
7555
10364
  const defaultRender = useMemo23(() => {
7556
10365
  const PuckDefault = ({ children }) => /* @__PURE__ */ jsx51(Fragment17, { children });
@@ -7603,7 +10412,7 @@ var Canvas = () => {
7603
10412
  resizeObserver.disconnect();
7604
10413
  };
7605
10414
  }, [frameRef.current]);
7606
- const [showLoader, setShowLoader] = useState22(false);
10415
+ const [showLoader, setShowLoader] = useState21(false);
7607
10416
  useEffect25(() => {
7608
10417
  setTimeout(() => {
7609
10418
  setShowLoader(true);
@@ -7740,9 +10549,9 @@ var Canvas = () => {
7740
10549
 
7741
10550
  // lib/use-sidebar-resize.ts
7742
10551
  init_react_import();
7743
- import { useCallback as useCallback20, useEffect as useEffect26, useRef as useRef14, useState as useState23 } from "react";
10552
+ import { useCallback as useCallback20, useEffect as useEffect26, useRef as useRef14, useState as useState22 } from "react";
7744
10553
  function useSidebarResize(position, dispatch) {
7745
- const [width, setWidth] = useState23(null);
10554
+ const [width, setWidth] = useState22(null);
7746
10555
  const sidebarRef = useRef14(null);
7747
10556
  const storeWidth = useAppStore(
7748
10557
  (s) => position === "left" ? s.state.ui.leftSideBarWidth : s.state.ui.rightSideBarWidth
@@ -8041,11 +10850,20 @@ var Nav = ({
8041
10850
  ] });
8042
10851
  };
8043
10852
 
10853
+ // lib/style-config.ts
10854
+ init_react_import();
10855
+ var normalizeIframeConfig = (iframe) => __spreadValues({
10856
+ enabled: true,
10857
+ waitForStyles: true,
10858
+ syncHostStyles: true
10859
+ }, iframe);
10860
+
8044
10861
  // components/Puck/components/Layout/index.tsx
8045
10862
  import { jsx as jsx55, jsxs as jsxs22 } from "react/jsx-runtime";
8046
10863
  var getClassName34 = get_class_name_factory_default("Puck", styles_module_default20);
8047
10864
  var getLayoutClassName = get_class_name_factory_default("PuckLayout", styles_module_default20);
8048
10865
  var getPluginTabClassName = get_class_name_factory_default("PuckPluginTab", styles_module_default20);
10866
+ var useBrowserLayoutEffect = typeof window === "undefined" ? useEffect28 : useLayoutEffect2;
8049
10867
  var FieldSideBar = () => {
8050
10868
  const title = useAppStore(
8051
10869
  (s) => {
@@ -8071,13 +10889,10 @@ var Layout = ({ children }) => {
8071
10889
  height
8072
10890
  } = usePropsContext();
8073
10891
  const iframe = useMemo24(
8074
- () => __spreadValues({
8075
- enabled: true,
8076
- waitForStyles: true
8077
- }, _iframe),
10892
+ () => normalizeIframeConfig(_iframe),
8078
10893
  [_iframe]
8079
10894
  );
8080
- useInjectGlobalCss(iframe.enabled);
10895
+ useInjectUiCss();
8081
10896
  const dispatch = useAppStore((s) => s.dispatch);
8082
10897
  const leftSideBarVisible = useAppStore((s) => s.state.ui.leftSideBarVisible);
8083
10898
  const rightSideBarVisible = useAppStore(
@@ -8124,8 +10939,8 @@ var Layout = ({ children }) => {
8124
10939
  () => overrides.puck || DefaultOverride,
8125
10940
  [overrides]
8126
10941
  );
8127
- const [mounted, setMounted] = useState24(false);
8128
- useEffect28(() => {
10942
+ const [mounted, setMounted] = useState23(false);
10943
+ useBrowserLayoutEffect(() => {
8129
10944
  setMounted(true);
8130
10945
  }, []);
8131
10946
  const ready = useAppStore((s) => s.status === "READY");
@@ -8153,7 +10968,7 @@ var Layout = ({ children }) => {
8153
10968
  return (_a = s.state.ui.plugin) == null ? void 0 : _a.current;
8154
10969
  });
8155
10970
  const appStoreApi = useAppStoreApi();
8156
- const [mobilePanelHeightMode, setMobilePanelHeightMode] = useState24("toggle");
10971
+ const [mobilePanelHeightMode, setMobilePanelHeightMode] = useState23("toggle");
8157
10972
  const hasLegacySideBarPlugin = useMemo24(
8158
10973
  () => !!(plugins == null ? void 0 : plugins.find((p) => p.name === "legacy-side-bar")),
8159
10974
  [plugins]
@@ -8225,7 +11040,7 @@ var Layout = ({ children }) => {
8225
11040
  hidePlugins: hasLegacySideBarPlugin
8226
11041
  })}`,
8227
11042
  id: instanceId,
8228
- style: { height },
11043
+ style: { height, visibility: "hidden" },
8229
11044
  children: [
8230
11045
  /* @__PURE__ */ jsx55(DragDropContext, { disableAutoScroll: dnd == null ? void 0 : dnd.disableAutoScroll, children: /* @__PURE__ */ jsx55(CustomPuck, { children: children || /* @__PURE__ */ jsx55(FrameProvider, { children: /* @__PURE__ */ jsx55(
8231
11046
  "div",
@@ -8335,13 +11150,10 @@ function PuckProvider({ children }) {
8335
11150
  _experimentalVirtualization
8336
11151
  } = usePropsContext();
8337
11152
  const iframe = useMemo25(
8338
- () => __spreadValues({
8339
- enabled: true,
8340
- waitForStyles: true
8341
- }, _iframe),
11153
+ () => normalizeIframeConfig(_iframe),
8342
11154
  [_iframe]
8343
11155
  );
8344
- const [generatedAppState] = useState25(() => {
11156
+ const [generatedAppState] = useState24(() => {
8345
11157
  var _a, _b, _c;
8346
11158
  const initial = __spreadValues(__spreadValues({}, defaultAppState.ui), initialUi);
8347
11159
  let clientUiState = {};
@@ -8381,7 +11193,7 @@ function PuckProvider({ children }) {
8381
11193
  return walkAppState(newAppState, config);
8382
11194
  });
8383
11195
  const { appendData = true } = _initialHistory || {};
8384
- const [blendedHistories] = useState25(
11196
+ const [blendedHistories] = useState24(
8385
11197
  [
8386
11198
  ...(_initialHistory == null ? void 0 : _initialHistory.histories) || [],
8387
11199
  ...appendData ? [{ state: generatedAppState }] : []
@@ -8447,7 +11259,7 @@ function PuckProvider({ children }) {
8447
11259
  loadedFieldTransforms
8448
11260
  ]
8449
11261
  );
8450
- const [appStore] = useState25(
11262
+ const [appStore] = useState24(
8451
11263
  () => createAppStore(generateAppStore(initialAppState))
8452
11264
  );
8453
11265
  useEffect29(() => {