@puckeditor/core 0.21.3 → 0.22.0-canary.0c2f7ab8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -4
- package/dist/{Editor-MCVDFQH6.mjs → Editor-FJJNKTC3.mjs} +10 -11
- package/dist/Editor-ZZW3KF2T.css +385 -0
- package/dist/{Render-MJ563JES.mjs → Render-DQXAYUBI.mjs} +1 -1
- package/dist/Render-EKEWMTMI.css +117 -0
- package/dist/{actions-C3e2nJ9v.d.mts → actions-Csn3gOP8.d.mts} +3 -1
- package/dist/{actions-C3e2nJ9v.d.ts → actions-Csn3gOP8.d.ts} +3 -1
- package/dist/{chunk-ZMTK7SMX.mjs → chunk-3RQGAM3Z.mjs} +1 -1
- package/dist/{chunk-HGJWUFLT.mjs → chunk-4US666EQ.mjs} +91 -248
- package/dist/{chunk-4HOGLOEA.mjs → chunk-6MO3E35Y.mjs} +5 -3
- package/dist/{chunk-6XCJ3Y7O.mjs → chunk-DVZWVU66.mjs} +55 -2
- package/dist/{chunk-TDQEUXB2.mjs → chunk-GKUX6MNS.mjs} +4 -4
- package/dist/{chunk-AOEDIUVK.mjs → chunk-H635BA2V.mjs} +1 -1
- package/dist/{chunk-DPDJ67KA.mjs → chunk-M5GPDW62.mjs} +1 -1
- package/dist/{chunk-YXFTA2VL.mjs → chunk-SLDNFU3H.mjs} +3378 -432
- package/dist/{chunk-X2ZFWNCU.mjs → chunk-SSXLOL3N.mjs} +18 -15
- package/dist/{chunk-LODTL5KW.mjs → chunk-XIGSFEU7.mjs} +1 -1
- package/dist/{chunk-O7FT3KAM.mjs → chunk-XQHCQEAF.mjs} +233 -54
- package/dist/{full-5QCBHXRC.mjs → full-6ZILLKCS.mjs} +7 -7
- package/dist/full-S3QQ2IBQ.css +267 -0
- package/dist/{index-Cx46WIFC.d.ts → index-B1b1cFug.d.ts} +1 -1
- package/dist/{index-zHrchQGY.d.mts → index-ClzBCbx_.d.mts} +1 -1
- package/dist/index.css +1293 -1162
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +3788 -752
- package/dist/index.mjs +13 -12
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +48 -2
- package/dist/internal.mjs +1 -1
- package/dist/loaded-FVWRAJR3.css +215 -0
- package/dist/{loaded-OMRIYZIQ.mjs → loaded-LAKI4KDY.mjs} +4 -4
- package/dist/{loaded-Y4ZWZC55.mjs → loaded-PILFUJGA.mjs} +4 -4
- package/dist/{loaded-54625GTL.mjs → loaded-QH5RKCGC.mjs} +4 -4
- package/dist/no-external.css +1293 -1162
- package/dist/no-external.d.mts +3 -3
- package/dist/no-external.d.ts +3 -3
- package/dist/no-external.js +3788 -752
- package/dist/no-external.mjs +13 -12
- package/dist/rsc.css +61 -46
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +22 -17
- package/dist/rsc.mjs +3 -3
- package/dist/{walk-tree-BJoNgZ0l.d.mts → walk-tree-BrW9VQ_t.d.mts} +1 -1
- package/dist/{walk-tree-f8Yzs5o3.d.ts → walk-tree-CWrsBHHe.d.ts} +1 -1
- package/package.json +13 -5
- package/dist/Editor-SWYBDXGU.css +0 -395
- package/dist/Render-3OV4N4MT.css +0 -102
- package/dist/full-FFFM5OTN.css +0 -292
- package/dist/loaded-RVWBFK7L.css +0 -87
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EditorInner,
|
|
3
3
|
LoadedRichTextMenu
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GKUX6MNS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
RichTextRenderFallback,
|
|
7
7
|
SlotRender,
|
|
@@ -10,14 +10,12 @@ import {
|
|
|
10
10
|
getSlotTransform,
|
|
11
11
|
useRichtextProps,
|
|
12
12
|
useSlots
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SSXLOL3N.mjs";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
LoadedRichTextMenuInner,
|
|
18
|
-
Loader
|
|
19
|
-
} from "./chunk-HGJWUFLT.mjs";
|
|
15
|
+
LoadedRichTextMenuInner
|
|
16
|
+
} from "./chunk-4US666EQ.mjs";
|
|
20
17
|
import {
|
|
18
|
+
ActionBar,
|
|
21
19
|
ChevronDown,
|
|
22
20
|
ChevronRight,
|
|
23
21
|
ChevronUp,
|
|
@@ -29,10 +27,12 @@ import {
|
|
|
29
27
|
Globe,
|
|
30
28
|
Hammer,
|
|
31
29
|
Hash,
|
|
30
|
+
IconButton,
|
|
32
31
|
Layers,
|
|
33
32
|
LayoutGrid,
|
|
34
33
|
Link,
|
|
35
34
|
List,
|
|
35
|
+
Loader,
|
|
36
36
|
Lock,
|
|
37
37
|
LockOpen,
|
|
38
38
|
Maximize2,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
useRegisterHistorySlice,
|
|
69
69
|
useRegisterPermissionsSlice,
|
|
70
70
|
useResetAutoZoom
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-XQHCQEAF.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-
|
|
79
|
+
} from "./chunk-DVZWVU66.mjs";
|
|
80
80
|
import {
|
|
81
81
|
defaultAppState,
|
|
82
82
|
defaultViewports
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-6MO3E35Y.mjs";
|
|
84
84
|
import {
|
|
85
85
|
get_class_name_factory_default
|
|
86
86
|
} from "./chunk-Y2EFNT5P.mjs";
|
|
@@ -159,7 +159,7 @@ import { useEffect, useState } from "react";
|
|
|
159
159
|
|
|
160
160
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Button/Button.module.css#css-module
|
|
161
161
|
init_react_import();
|
|
162
|
-
var Button_module_default = { "Button": "
|
|
162
|
+
var Button_module_default = { "Button": "_Button_oe4qj_1", "Button--medium": "_Button--medium_oe4qj_34", "Button--large": "_Button--large_oe4qj_62", "Button-icon": "_Button-icon_oe4qj_89", "Button--primary": "_Button--primary_oe4qj_93", "Button--disabled": "_Button--disabled_oe4qj_123", "Button--secondary": "_Button--secondary_oe4qj_135", "Button--flush": "_Button--flush_oe4qj_171", "Button--fullWidth": "_Button--fullWidth_oe4qj_179", "Button-spinner": "_Button-spinner_oe4qj_184" };
|
|
163
163
|
|
|
164
164
|
// lib/filter-data-attrs.ts
|
|
165
165
|
init_react_import();
|
|
@@ -248,7 +248,7 @@ init_react_import();
|
|
|
248
248
|
|
|
249
249
|
// css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/styles.module.css#css-module
|
|
250
250
|
init_react_import();
|
|
251
|
-
var styles_module_default = { "InputWrapper": "
|
|
251
|
+
var styles_module_default = { "InputWrapper": "_InputWrapper_qyenz_1", "Input-label": "_Input-label_qyenz_5", "Input-labelIcon": "_Input-labelIcon_qyenz_17", "Input-disabledIcon": "_Input-disabledIcon_qyenz_24", "Input-input": "_Input-input_qyenz_29", "Input-select": "_Input-select_qyenz_61", "Input-selectIcon": "_Input-selectIcon_qyenz_71", "Input": "_Input_qyenz_1", "Input--readOnly": "_Input--readOnly_qyenz_111", "Input-radioGroupItems": "_Input-radioGroupItems_qyenz_150", "Input-radio": "_Input-radio_qyenz_150", "Input-radioInner": "_Input-radioInner_qyenz_179", "Input-radioInput": "_Input-radioInput_qyenz_261" };
|
|
252
252
|
|
|
253
253
|
// components/AutoField/FieldLabel.tsx
|
|
254
254
|
import { useMemo } from "react";
|
|
@@ -317,7 +317,7 @@ init_react_import();
|
|
|
317
317
|
|
|
318
318
|
// css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/fields/ArrayField/styles.module.css#css-module
|
|
319
319
|
init_react_import();
|
|
320
|
-
var styles_module_default2 = { "ArrayField": "
|
|
320
|
+
var styles_module_default2 = { "ArrayField": "_ArrayField_62huh_5", "ArrayField--isDraggingFrom": "_ArrayField--isDraggingFrom_62huh_30", "ArrayField-addButton": "_ArrayField-addButton_62huh_38", "ArrayField--hasItems": "_ArrayField--hasItems_62huh_58", "ArrayField-inner": "_ArrayField-inner_62huh_93", "ArrayFieldItem": "_ArrayFieldItem_62huh_101", "ArrayFieldItem--isDragging": "_ArrayFieldItem--isDragging_62huh_110", "ArrayFieldItem--isExpanded": "_ArrayFieldItem--isExpanded_62huh_114", "ArrayFieldItem-summary": "_ArrayFieldItem-summary_62huh_132", "ArrayFieldItem--noFields": "_ArrayFieldItem--noFields_62huh_167", "ArrayField--addDisabled": "_ArrayField--addDisabled_62huh_176", "ArrayFieldItem-body": "_ArrayFieldItem-body_62huh_228", "ArrayFieldItem-fieldset": "_ArrayFieldItem-fieldset_62huh_237", "ArrayFieldItem-rhs": "_ArrayFieldItem-rhs_62huh_250", "ArrayFieldItem-actions": "_ArrayFieldItem-actions_62huh_256" };
|
|
321
321
|
|
|
322
322
|
// components/AutoField/store.ts
|
|
323
323
|
init_react_import();
|
|
@@ -385,7 +385,7 @@ init_react_import();
|
|
|
385
385
|
|
|
386
386
|
// css-module:/home/runner/work/puck/puck/packages/core/components/DragIcon/styles.module.css#css-module
|
|
387
387
|
init_react_import();
|
|
388
|
-
var styles_module_default3 = { "DragIcon": "
|
|
388
|
+
var styles_module_default3 = { "DragIcon": "_DragIcon_5e515_1", "DragIcon--disabled": "_DragIcon--disabled_5e515_10" };
|
|
389
389
|
|
|
390
390
|
// components/DragIcon/index.tsx
|
|
391
391
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
@@ -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
|
|
405
|
-
var
|
|
406
|
-
|
|
407
|
-
|
|
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:
|
|
769
|
+
mouse: [new PointerActivationConstraints2.Distance({ value: 5 })]
|
|
765
770
|
});
|
|
766
771
|
return /* @__PURE__ */ jsx5(
|
|
767
772
|
DragDropProvider,
|
|
@@ -1458,7 +1463,7 @@ import {
|
|
|
1458
1463
|
|
|
1459
1464
|
// css-module:/home/runner/work/puck/puck/packages/core/components/ExternalInput/styles.module.css#css-module
|
|
1460
1465
|
init_react_import();
|
|
1461
|
-
var styles_module_default4 = { "ExternalInput-actions": "_ExternalInput-
|
|
1466
|
+
var styles_module_default4 = { "ExternalInput-actions": "_ExternalInput-actions_143vl_1", "ExternalInput-button": "_ExternalInput-button_143vl_5", "ExternalInput--dataSelected": "_ExternalInput--dataSelected_143vl_34", "ExternalInput--readOnly": "_ExternalInput--readOnly_143vl_41", "ExternalInput-detachButton": "_ExternalInput-detachButton_143vl_48", "ExternalInput": "_ExternalInput_143vl_1", "ExternalInputModal": "_ExternalInputModal_143vl_118", "ExternalInputModal-grid": "_ExternalInputModal-grid_143vl_128", "ExternalInputModal--filtersToggled": "_ExternalInputModal--filtersToggled_143vl_139", "ExternalInputModal-filters": "_ExternalInputModal-filters_143vl_144", "ExternalInputModal-masthead": "_ExternalInputModal-masthead_143vl_164", "ExternalInputModal-tableWrapper": "_ExternalInputModal-tableWrapper_143vl_173", "ExternalInputModal-table": "_ExternalInputModal-table_143vl_173", "ExternalInputModal-thead": "_ExternalInputModal-thead_143vl_189", "ExternalInputModal-th": "_ExternalInputModal-th_143vl_189", "ExternalInputModal-td": "_ExternalInputModal-td_143vl_204", "ExternalInputModal-tr": "_ExternalInputModal-tr_143vl_210", "ExternalInputModal-tbody": "_ExternalInputModal-tbody_143vl_217", "ExternalInputModal--hasData": "_ExternalInputModal--hasData_143vl_244", "ExternalInputModal-loadingBanner": "_ExternalInputModal-loadingBanner_143vl_248", "ExternalInputModal--isLoading": "_ExternalInputModal--isLoading_143vl_265", "ExternalInputModal-searchForm": "_ExternalInputModal-searchForm_143vl_269", "ExternalInputModal-search": "_ExternalInputModal-search_143vl_269", "ExternalInputModal-searchIcon": "_ExternalInputModal-searchIcon_143vl_306", "ExternalInputModal-searchIconText": "_ExternalInputModal-searchIconText_143vl_333", "ExternalInputModal-searchInput": "_ExternalInputModal-searchInput_143vl_343", "ExternalInputModal-searchActions": "_ExternalInputModal-searchActions_143vl_358", "ExternalInputModal-searchActionIcon": "_ExternalInputModal-searchActionIcon_143vl_371", "ExternalInputModal-footerContainer": "_ExternalInputModal-footerContainer_143vl_375", "ExternalInputModal-footer": "_ExternalInputModal-footer_143vl_375", "ExternalInputModal-field": "_ExternalInputModal-field_143vl_388" };
|
|
1462
1467
|
|
|
1463
1468
|
// components/Modal/index.tsx
|
|
1464
1469
|
init_react_import();
|
|
@@ -1466,7 +1471,7 @@ import { useEffect as useEffect4, useState as useState6 } from "react";
|
|
|
1466
1471
|
|
|
1467
1472
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Modal/styles.module.css#css-module
|
|
1468
1473
|
init_react_import();
|
|
1469
|
-
var styles_module_default5 = { "Modal": "
|
|
1474
|
+
var styles_module_default5 = { "Modal": "_Modal_g5xob_1", "Modal--isOpen": "_Modal--isOpen_g5xob_15", "Modal-inner": "_Modal-inner_g5xob_19" };
|
|
1470
1475
|
|
|
1471
1476
|
// components/Modal/index.tsx
|
|
1472
1477
|
import { createPortal } from "react-dom";
|
|
@@ -1502,7 +1507,7 @@ init_react_import();
|
|
|
1502
1507
|
|
|
1503
1508
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css#css-module
|
|
1504
1509
|
init_react_import();
|
|
1505
|
-
var styles_module_default6 = { "Heading": "
|
|
1510
|
+
var styles_module_default6 = { "Heading": "_Heading_97eh4_1", "Heading--xxxxl": "_Heading--xxxxl_97eh4_12", "Heading--xxxl": "_Heading--xxxl_97eh4_18", "Heading--xxl": "_Heading--xxl_97eh4_22", "Heading--xl": "_Heading--xl_97eh4_26", "Heading--l": "_Heading--l_97eh4_30", "Heading--m": "_Heading--m_97eh4_34", "Heading--s": "_Heading--s_97eh4_38", "Heading--xs": "_Heading--xs_97eh4_42" };
|
|
1506
1511
|
|
|
1507
1512
|
// components/Heading/index.tsx
|
|
1508
1513
|
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
@@ -1865,7 +1870,7 @@ var RadioField = ({
|
|
|
1865
1870
|
|
|
1866
1871
|
// components/AutoField/fields/SelectField/index.tsx
|
|
1867
1872
|
init_react_import();
|
|
1868
|
-
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1873
|
+
import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1869
1874
|
var getClassName10 = get_class_name_factory_default("Input", styles_module_default);
|
|
1870
1875
|
var SelectField = ({
|
|
1871
1876
|
field,
|
|
@@ -1887,27 +1892,30 @@ var SelectField = ({
|
|
|
1887
1892
|
label: label || name,
|
|
1888
1893
|
icon: labelIcon || /* @__PURE__ */ jsx15(ChevronDown, { size: 16 }),
|
|
1889
1894
|
readOnly,
|
|
1890
|
-
children: /* @__PURE__ */
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
onChange(
|
|
1899
|
-
|
|
1900
|
-
value: JSON.stringify({ value }),
|
|
1901
|
-
children: field.options.map((option) => /* @__PURE__ */ jsx15(
|
|
1902
|
-
"option",
|
|
1903
|
-
{
|
|
1904
|
-
label: option.label,
|
|
1905
|
-
value: JSON.stringify({ value: option.value })
|
|
1895
|
+
children: /* @__PURE__ */ jsxs7("div", { className: getClassName10("select"), children: [
|
|
1896
|
+
/* @__PURE__ */ jsx15(
|
|
1897
|
+
"select",
|
|
1898
|
+
{
|
|
1899
|
+
id,
|
|
1900
|
+
title: label || name,
|
|
1901
|
+
className: getClassName10("input"),
|
|
1902
|
+
disabled: readOnly,
|
|
1903
|
+
onChange: (e) => {
|
|
1904
|
+
onChange(JSON.parse(e.target.value).value);
|
|
1906
1905
|
},
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1906
|
+
value: JSON.stringify({ value }),
|
|
1907
|
+
children: field.options.map((option) => /* @__PURE__ */ jsx15(
|
|
1908
|
+
"option",
|
|
1909
|
+
{
|
|
1910
|
+
label: option.label,
|
|
1911
|
+
value: JSON.stringify({ value: option.value })
|
|
1912
|
+
},
|
|
1913
|
+
option.label + JSON.stringify(option.value)
|
|
1914
|
+
))
|
|
1915
|
+
}
|
|
1916
|
+
),
|
|
1917
|
+
/* @__PURE__ */ jsx15(ChevronDown, { size: 18, className: getClassName10("selectIcon") })
|
|
1918
|
+
] })
|
|
1911
1919
|
}
|
|
1912
1920
|
);
|
|
1913
1921
|
};
|
|
@@ -1991,7 +1999,7 @@ EditorFallback.displayName = "EditorFallback";
|
|
|
1991
1999
|
// components/AutoField/fields/RichtextField/index.tsx
|
|
1992
2000
|
import { Fragment as Fragment5, jsx as jsx18 } from "react/jsx-runtime";
|
|
1993
2001
|
var Editor = lazy(
|
|
1994
|
-
() => import("./Editor-
|
|
2002
|
+
() => import("./Editor-FJJNKTC3.mjs").then((m) => ({
|
|
1995
2003
|
default: m.Editor
|
|
1996
2004
|
}))
|
|
1997
2005
|
);
|
|
@@ -2031,7 +2039,7 @@ init_react_import();
|
|
|
2031
2039
|
|
|
2032
2040
|
// css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/fields/ObjectField/styles.module.css#css-module
|
|
2033
2041
|
init_react_import();
|
|
2034
|
-
var styles_module_default7 = { "ObjectField": "
|
|
2042
|
+
var styles_module_default7 = { "ObjectField": "_ObjectField_c5reb_1", "ObjectField-fieldset": "_ObjectField-fieldset_c5reb_10" };
|
|
2035
2043
|
|
|
2036
2044
|
// components/AutoField/fields/ObjectField/index.tsx
|
|
2037
2045
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
@@ -2315,10 +2323,11 @@ import {
|
|
|
2315
2323
|
|
|
2316
2324
|
// css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css#css-module
|
|
2317
2325
|
init_react_import();
|
|
2318
|
-
var styles_module_default8 = { "DraggableComponent": "
|
|
2326
|
+
var styles_module_default8 = { "DraggableComponent": "_DraggableComponent_1627v_1", "DraggableComponent-overlayWrapper": "_DraggableComponent-overlayWrapper_1627v_6", "DraggableComponent-overlay": "_DraggableComponent-overlay_1627v_6", "DraggableComponent-loadingOverlay": "_DraggableComponent-loadingOverlay_1627v_38", "DraggableComponent--hover": "_DraggableComponent--hover_1627v_54", "DraggableComponent--isSelected": "_DraggableComponent--isSelected_1627v_72", "DraggableComponent-actionsOverlay": "_DraggableComponent-actionsOverlay_1627v_89", "DraggableComponent-actions": "_DraggableComponent-actions_1627v_89", "DraggableComponent-actionsAction": "_DraggableComponent-actionsAction_1627v_111" };
|
|
2319
2327
|
|
|
2320
2328
|
// components/DraggableComponent/index.tsx
|
|
2321
2329
|
import { createPortal as createPortal2 } from "react-dom";
|
|
2330
|
+
import { Feedback } from "@dnd-kit/dom";
|
|
2322
2331
|
|
|
2323
2332
|
// lib/get-deep-scroll-position.ts
|
|
2324
2333
|
init_react_import();
|
|
@@ -2447,7 +2456,7 @@ function assignRefs(refs, node) {
|
|
|
2447
2456
|
}
|
|
2448
2457
|
|
|
2449
2458
|
// components/DraggableComponent/index.tsx
|
|
2450
|
-
import { Fragment as Fragment7, jsx as jsx22, jsxs as
|
|
2459
|
+
import { Fragment as Fragment7, jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2451
2460
|
var getClassName14 = get_class_name_factory_default("DraggableComponent", styles_module_default8);
|
|
2452
2461
|
var DEBUG2 = false;
|
|
2453
2462
|
var MEASURE_EVERY_MS = 100;
|
|
@@ -2459,8 +2468,8 @@ var DefaultActionBar = ({
|
|
|
2459
2468
|
label,
|
|
2460
2469
|
children,
|
|
2461
2470
|
parentAction
|
|
2462
|
-
}) => /* @__PURE__ */
|
|
2463
|
-
/* @__PURE__ */
|
|
2471
|
+
}) => /* @__PURE__ */ jsxs8(ActionBar, { children: [
|
|
2472
|
+
/* @__PURE__ */ jsxs8(ActionBar.Group, { children: [
|
|
2464
2473
|
parentAction,
|
|
2465
2474
|
label && /* @__PURE__ */ jsx22(ActionBar.Label, { label })
|
|
2466
2475
|
] }),
|
|
@@ -2565,7 +2574,10 @@ var DraggableComponent = ({
|
|
|
2565
2574
|
duration: 200,
|
|
2566
2575
|
easing: "cubic-bezier(0.2, 0, 0, 1)"
|
|
2567
2576
|
},
|
|
2568
|
-
|
|
2577
|
+
plugins: (defaults) => [
|
|
2578
|
+
...defaults,
|
|
2579
|
+
Feedback.configure({ feedback: "clone" })
|
|
2580
|
+
]
|
|
2569
2581
|
});
|
|
2570
2582
|
useEffect8(() => {
|
|
2571
2583
|
const isEnabled = zoneStore.getState().enabledIndex[zoneCompound];
|
|
@@ -2962,9 +2974,9 @@ var DraggableComponent = ({
|
|
|
2962
2974
|
}
|
|
2963
2975
|
);
|
|
2964
2976
|
const hasNormalActions = permissions.duplicate || permissions.delete;
|
|
2965
|
-
return /* @__PURE__ */
|
|
2977
|
+
return /* @__PURE__ */ jsxs8(DropZoneProvider, { value: nextContextValue, children: [
|
|
2966
2978
|
dragFinished && isVisible && createPortal2(
|
|
2967
|
-
/* @__PURE__ */
|
|
2979
|
+
/* @__PURE__ */ jsxs8(
|
|
2968
2980
|
"div",
|
|
2969
2981
|
{
|
|
2970
2982
|
className: getClassName14({
|
|
@@ -2996,13 +3008,13 @@ var DraggableComponent = ({
|
|
|
2996
3008
|
paddingRight: actionsSide
|
|
2997
3009
|
},
|
|
2998
3010
|
ref: actionBarRef,
|
|
2999
|
-
children: /* @__PURE__ */
|
|
3011
|
+
children: /* @__PURE__ */ jsxs8(
|
|
3000
3012
|
CustomActionBar,
|
|
3001
3013
|
{
|
|
3002
3014
|
parentAction,
|
|
3003
3015
|
label: DEBUG2 ? id : label,
|
|
3004
3016
|
children: [
|
|
3005
|
-
richText && /* @__PURE__ */
|
|
3017
|
+
richText && /* @__PURE__ */ jsxs8(Fragment7, { children: [
|
|
3006
3018
|
/* @__PURE__ */ jsx22(
|
|
3007
3019
|
LoadedRichTextMenu,
|
|
3008
3020
|
{
|
|
@@ -3014,8 +3026,8 @@ var DraggableComponent = ({
|
|
|
3014
3026
|
),
|
|
3015
3027
|
hasNormalActions && /* @__PURE__ */ jsx22(ActionBar.Separator, {})
|
|
3016
3028
|
] }),
|
|
3017
|
-
permissions.duplicate && /* @__PURE__ */ jsx22(ActionBar.Action, { onClick: onDuplicate, label: "Duplicate", children: /* @__PURE__ */ jsx22(Copy, {
|
|
3018
|
-
permissions.delete && /* @__PURE__ */ jsx22(ActionBar.Action, { onClick: onDelete, label: "Delete", children: /* @__PURE__ */ jsx22(Trash, {
|
|
3029
|
+
permissions.duplicate && /* @__PURE__ */ jsx22(ActionBar.Action, { onClick: onDuplicate, label: "Duplicate", children: /* @__PURE__ */ jsx22(Copy, { className: getClassName14("actionsAction") }) }),
|
|
3030
|
+
permissions.delete && /* @__PURE__ */ jsx22(ActionBar.Action, { onClick: onDelete, label: "Delete", children: /* @__PURE__ */ jsx22(Trash, { className: getClassName14("actionsAction") }) })
|
|
3019
3031
|
]
|
|
3020
3032
|
}
|
|
3021
3033
|
)
|
|
@@ -3044,7 +3056,7 @@ var DraggableComponent = ({
|
|
|
3044
3056
|
|
|
3045
3057
|
// css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css#css-module
|
|
3046
3058
|
init_react_import();
|
|
3047
|
-
var styles_module_default9 = { "DropZone": "
|
|
3059
|
+
var styles_module_default9 = { "DropZone": "_DropZone_ybznu_1", "DropZone--hasChildren": "_DropZone--hasChildren_ybznu_11", "DropZone--isAreaSelected": "_DropZone--isAreaSelected_ybznu_24", "DropZone--hoveringOverArea": "_DropZone--hoveringOverArea_ybznu_25", "DropZone--isRootZone": "_DropZone--isRootZone_ybznu_25", "DropZone-item": "_DropZone-item_ybznu_39", "DropZone-hitbox": "_DropZone-hitbox_ybznu_43", "DropZone--isEnabled": "_DropZone--isEnabled_ybznu_51", "DropZone--isAnimating": "_DropZone--isAnimating_ybznu_62" };
|
|
3048
3060
|
|
|
3049
3061
|
// components/DropZone/index.tsx
|
|
3050
3062
|
import { useDroppable as useDroppable2 } from "@dnd-kit/react";
|
|
@@ -3054,7 +3066,7 @@ init_react_import();
|
|
|
3054
3066
|
|
|
3055
3067
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Drawer/styles.module.css#css-module
|
|
3056
3068
|
init_react_import();
|
|
3057
|
-
var styles_module_default10 = { "Drawer": "
|
|
3069
|
+
var styles_module_default10 = { "Drawer": "_Drawer_1n90m_1", "Drawer-draggable": "_Drawer-draggable_1n90m_8", "Drawer-draggableBg": "_Drawer-draggableBg_1n90m_12", "DrawerItem-draggable": "_DrawerItem-draggable_1n90m_22", "DrawerItem--disabled": "_DrawerItem--disabled_1n90m_38", "DrawerItem": "_DrawerItem_1n90m_22", "Drawer--isDraggingFrom": "_Drawer--isDraggingFrom_1n90m_48", "DrawerItem-name": "_DrawerItem-name_1n90m_72" };
|
|
3058
3070
|
|
|
3059
3071
|
// components/Drawer/index.tsx
|
|
3060
3072
|
import { useMemo as useMemo9, useState as useState11 } from "react";
|
|
@@ -3071,7 +3083,10 @@ import {
|
|
|
3071
3083
|
useRef as useRef3,
|
|
3072
3084
|
useState as useState10
|
|
3073
3085
|
} from "react";
|
|
3074
|
-
import {
|
|
3086
|
+
import {
|
|
3087
|
+
AutoScroller,
|
|
3088
|
+
defaultPreset
|
|
3089
|
+
} from "@dnd-kit/dom";
|
|
3075
3090
|
|
|
3076
3091
|
// lib/dnd/NestedDroppablePlugin.ts
|
|
3077
3092
|
init_react_import();
|
|
@@ -3885,7 +3900,7 @@ var DragDropContext = ({
|
|
|
3885
3900
|
|
|
3886
3901
|
// components/Drawer/index.tsx
|
|
3887
3902
|
import { useDraggable, useDroppable } from "@dnd-kit/react";
|
|
3888
|
-
import { jsx as jsx24, jsxs as
|
|
3903
|
+
import { jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3889
3904
|
var getClassName15 = get_class_name_factory_default("Drawer", styles_module_default10);
|
|
3890
3905
|
var getClassNameItem2 = get_class_name_factory_default("DrawerItem", styles_module_default10);
|
|
3891
3906
|
var DrawerItemInner = ({
|
|
@@ -3907,7 +3922,7 @@ var DrawerItemInner = ({
|
|
|
3907
3922
|
onMouseDown: (e) => e.preventDefault(),
|
|
3908
3923
|
"data-testid": dragRef ? `drawer-item:${name}` : "",
|
|
3909
3924
|
"data-puck-drawer-item": true,
|
|
3910
|
-
children: /* @__PURE__ */ jsx24(CustomInner, { name, children: /* @__PURE__ */ jsx24("div", { className: getClassNameItem2("draggableWrapper"), children: /* @__PURE__ */
|
|
3925
|
+
children: /* @__PURE__ */ jsx24(CustomInner, { name, children: /* @__PURE__ */ jsx24("div", { className: getClassNameItem2("draggableWrapper"), children: /* @__PURE__ */ jsxs9("div", { className: getClassNameItem2("draggable"), children: [
|
|
3911
3926
|
/* @__PURE__ */ jsx24("div", { className: getClassNameItem2("name"), children: label != null ? label : name }),
|
|
3912
3927
|
/* @__PURE__ */ jsx24("div", { className: getClassNameItem2("icon"), children: /* @__PURE__ */ jsx24(DragIcon, {}) })
|
|
3913
3928
|
] }) }) })
|
|
@@ -3927,7 +3942,7 @@ var DrawerItemDraggable = ({
|
|
|
3927
3942
|
disabled: isDragDisabled,
|
|
3928
3943
|
type: "drawer"
|
|
3929
3944
|
});
|
|
3930
|
-
return /* @__PURE__ */
|
|
3945
|
+
return /* @__PURE__ */ jsxs9("div", { className: getClassName15("draggable"), children: [
|
|
3931
3946
|
/* @__PURE__ */ jsx24("div", { className: getClassName15("draggableBg"), children: /* @__PURE__ */ jsx24(DrawerItemInner, { name, label, children }) }),
|
|
3932
3947
|
/* @__PURE__ */ jsx24("div", { className: getClassName15("draggableFg"), children: /* @__PURE__ */ jsx24(
|
|
3933
3948
|
DrawerItemInner,
|
|
@@ -4484,12 +4499,12 @@ import {
|
|
|
4484
4499
|
} from "react";
|
|
4485
4500
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
4486
4501
|
var Editor2 = lazy2(
|
|
4487
|
-
() => import("./Editor-
|
|
4502
|
+
() => import("./Editor-FJJNKTC3.mjs").then((m) => ({
|
|
4488
4503
|
default: m.Editor
|
|
4489
4504
|
}))
|
|
4490
4505
|
);
|
|
4491
4506
|
var RichTextRender = lazy2(
|
|
4492
|
-
() => import("./Render-
|
|
4507
|
+
() => import("./Render-DQXAYUBI.mjs").then((m) => ({
|
|
4493
4508
|
default: m.RichTextRender
|
|
4494
4509
|
}))
|
|
4495
4510
|
);
|
|
@@ -4853,7 +4868,7 @@ var VirtualizedDropZone = ({
|
|
|
4853
4868
|
};
|
|
4854
4869
|
|
|
4855
4870
|
// components/DropZone/index.tsx
|
|
4856
|
-
import { Fragment as Fragment9, jsx as jsx31, jsxs as
|
|
4871
|
+
import { Fragment as Fragment9, jsx as jsx31, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
4857
4872
|
var getClassName17 = get_class_name_factory_default("DropZone", styles_module_default9);
|
|
4858
4873
|
var getRandomColor = () => `#${Math.floor(Math.random() * 16777215).toString(16)}`;
|
|
4859
4874
|
var RENDER_DEBUG = false;
|
|
@@ -4982,7 +4997,7 @@ var DropZoneChild = ({
|
|
|
4982
4997
|
isLoading
|
|
4983
4998
|
);
|
|
4984
4999
|
if (!item) return;
|
|
4985
|
-
const Render2 = componentConfig ? componentConfig.render : () => /* @__PURE__ */
|
|
5000
|
+
const Render2 = componentConfig ? componentConfig.render : () => /* @__PURE__ */ jsxs10("div", { style: { padding: 48, textAlign: "center" }, children: [
|
|
4986
5001
|
"No configuration for ",
|
|
4987
5002
|
item.type
|
|
4988
5003
|
] });
|
|
@@ -5214,7 +5229,7 @@ var DropZoneEdit = forwardRef(
|
|
|
5214
5229
|
"data-testid": `dropzone:${zoneCompound}`,
|
|
5215
5230
|
"data-puck-dropzone": zoneCompound,
|
|
5216
5231
|
style: __spreadProps(__spreadValues({}, style), {
|
|
5217
|
-
"--min-empty-height": minEmptyHeight,
|
|
5232
|
+
"--puck-slot-min-empty-height": minEmptyHeight,
|
|
5218
5233
|
backgroundColor: RENDER_DEBUG ? getRandomColor() : style == null ? void 0 : style.backgroundColor
|
|
5219
5234
|
}),
|
|
5220
5235
|
children: shouldVirtualizeItems ? /* @__PURE__ */ jsx31(
|
|
@@ -5560,11 +5575,11 @@ init_react_import();
|
|
|
5560
5575
|
|
|
5561
5576
|
// css-module:/home/runner/work/puck/puck/packages/core/components/ComponentList/styles.module.css#css-module
|
|
5562
5577
|
init_react_import();
|
|
5563
|
-
var styles_module_default12 = { "ComponentList": "
|
|
5578
|
+
var styles_module_default12 = { "ComponentList": "_ComponentList_htktj_1", "ComponentList--isExpanded": "_ComponentList--isExpanded_htktj_5", "ComponentList-content": "_ComponentList-content_htktj_9", "ComponentList-title": "_ComponentList-title_htktj_17", "ComponentList-titleIcon": "_ComponentList-titleIcon_htktj_63" };
|
|
5564
5579
|
|
|
5565
5580
|
// components/ComponentList/index.tsx
|
|
5566
5581
|
import { useEffect as useEffect18 } from "react";
|
|
5567
|
-
import { jsx as jsx33, jsxs as
|
|
5582
|
+
import { jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
5568
5583
|
var getClassName18 = get_class_name_factory_default("ComponentList", styles_module_default12);
|
|
5569
5584
|
var ComponentListItem = ({
|
|
5570
5585
|
name,
|
|
@@ -5595,12 +5610,15 @@ var ComponentList = ({
|
|
|
5595
5610
|
const setUi = useAppStore((s) => s.setUi);
|
|
5596
5611
|
const componentList = useAppStore((s) => s.state.ui.componentList);
|
|
5597
5612
|
const { expanded = true } = componentList[id] || {};
|
|
5598
|
-
|
|
5599
|
-
|
|
5613
|
+
const contentId = `puck-drawer-category-${id}`;
|
|
5614
|
+
return /* @__PURE__ */ jsxs11("div", { className: getClassName18({ isExpanded: expanded }), children: [
|
|
5615
|
+
title && /* @__PURE__ */ jsxs11(
|
|
5600
5616
|
"button",
|
|
5601
5617
|
{
|
|
5602
5618
|
type: "button",
|
|
5603
5619
|
className: getClassName18("title"),
|
|
5620
|
+
"aria-expanded": expanded,
|
|
5621
|
+
"aria-controls": contentId,
|
|
5604
5622
|
onClick: () => setUi({
|
|
5605
5623
|
componentList: __spreadProps(__spreadValues({}, componentList), {
|
|
5606
5624
|
[id]: __spreadProps(__spreadValues({}, componentList[id]), {
|
|
@@ -5615,7 +5633,7 @@ var ComponentList = ({
|
|
|
5615
5633
|
]
|
|
5616
5634
|
}
|
|
5617
5635
|
),
|
|
5618
|
-
/* @__PURE__ */ jsx33("div", { className: getClassName18("content"), children: /* @__PURE__ */ jsx33(Drawer, { children: children || Object.keys(config.components).map((componentKey) => {
|
|
5636
|
+
/* @__PURE__ */ jsx33("div", { className: getClassName18("content"), id: contentId, children: /* @__PURE__ */ jsx33(Drawer, { children: children || Object.keys(config.components).map((componentKey) => {
|
|
5619
5637
|
var _a;
|
|
5620
5638
|
return /* @__PURE__ */ jsx33(
|
|
5621
5639
|
ComponentListItem,
|
|
@@ -5728,7 +5746,7 @@ var Components = () => {
|
|
|
5728
5746
|
|
|
5729
5747
|
// css-module:/home/runner/work/puck/puck/packages/core/plugins/blocks/styles.module.css#css-module
|
|
5730
5748
|
init_react_import();
|
|
5731
|
-
var styles_module_default13 = { "BlocksPlugin": "
|
|
5749
|
+
var styles_module_default13 = { "BlocksPlugin": "_BlocksPlugin_9af19_1" };
|
|
5732
5750
|
|
|
5733
5751
|
// plugins/blocks/index.tsx
|
|
5734
5752
|
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
@@ -5751,7 +5769,7 @@ init_react_import();
|
|
|
5751
5769
|
|
|
5752
5770
|
// css-module:/home/runner/work/puck/puck/packages/core/components/LayerTree/styles.module.css#css-module
|
|
5753
5771
|
init_react_import();
|
|
5754
|
-
var styles_module_default14 = { "LayerTree": "
|
|
5772
|
+
var styles_module_default14 = { "LayerTree": "_LayerTree_1vltj_1", "LayerTree-zoneTitle": "_LayerTree-zoneTitle_1vltj_11", "LayerTree-helper": "_LayerTree-helper_1vltj_17", "Layer": "_Layer_1vltj_1", "Layer-inner": "_Layer-inner_1vltj_30", "Layer--containsZone": "_Layer--containsZone_1vltj_37", "Layer-clickable": "_Layer-clickable_1vltj_41", "Layer--isSelected": "_Layer--isSelected_1vltj_63", "Layer-chevron": "_Layer-chevron_1vltj_91", "Layer--childIsSelected": "_Layer--childIsSelected_1vltj_92", "Layer-zones": "_Layer-zones_1vltj_96", "Layer-title": "_Layer-title_1vltj_110", "Layer-name": "_Layer-name_1vltj_119", "Layer-icon": "_Layer-icon_1vltj_125", "Layer-zoneIcon": "_Layer-zoneIcon_1vltj_130" };
|
|
5755
5773
|
|
|
5756
5774
|
// components/LayerTree/index.tsx
|
|
5757
5775
|
import {
|
|
@@ -5761,7 +5779,7 @@ import {
|
|
|
5761
5779
|
useRef as useRef10
|
|
5762
5780
|
} from "react";
|
|
5763
5781
|
import { useVirtualizer as useVirtualizer2 } from "@tanstack/react-virtual";
|
|
5764
|
-
import { Fragment as Fragment10, jsx as jsx37, jsxs as
|
|
5782
|
+
import { Fragment as Fragment10, jsx as jsx37, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
5765
5783
|
var getClassName20 = get_class_name_factory_default("LayerTree", styles_module_default14);
|
|
5766
5784
|
var getClassNameLayer = get_class_name_factory_default("Layer", styles_module_default14);
|
|
5767
5785
|
var DEFAULT_LAYER_ROW_HEIGHT = 32;
|
|
@@ -5890,7 +5908,7 @@ var Layer = forwardRef2(function Layer2({
|
|
|
5890
5908
|
[dispatch]
|
|
5891
5909
|
);
|
|
5892
5910
|
const shouldRenderChildren = isSelected || childIsSelected;
|
|
5893
|
-
return /* @__PURE__ */
|
|
5911
|
+
return /* @__PURE__ */ jsxs12(
|
|
5894
5912
|
"li",
|
|
5895
5913
|
{
|
|
5896
5914
|
ref,
|
|
@@ -5903,7 +5921,7 @@ var Layer = forwardRef2(function Layer2({
|
|
|
5903
5921
|
"data-index": dataIndex,
|
|
5904
5922
|
"data-puck-layer-tree-id": node.itemId,
|
|
5905
5923
|
children: [
|
|
5906
|
-
/* @__PURE__ */ jsx37("div", { className: getClassNameLayer("inner"), children: /* @__PURE__ */
|
|
5924
|
+
/* @__PURE__ */ jsx37("div", { className: getClassNameLayer("inner"), children: /* @__PURE__ */ jsxs12(
|
|
5907
5925
|
"button",
|
|
5908
5926
|
{
|
|
5909
5927
|
type: "button",
|
|
@@ -5936,7 +5954,7 @@ var Layer = forwardRef2(function Layer2({
|
|
|
5936
5954
|
children: /* @__PURE__ */ jsx37(ChevronDown, { size: "12" })
|
|
5937
5955
|
}
|
|
5938
5956
|
),
|
|
5939
|
-
/* @__PURE__ */
|
|
5957
|
+
/* @__PURE__ */ jsxs12("div", { className: getClassNameLayer("title"), children: [
|
|
5940
5958
|
/* @__PURE__ */ jsx37("div", { className: getClassNameLayer("icon"), children: node.componentType === "Text" || node.componentType === "Heading" ? /* @__PURE__ */ jsx37(Type, { size: "16" }) : /* @__PURE__ */ jsx37(LayoutGrid, { size: "16" }) }),
|
|
5941
5959
|
/* @__PURE__ */ jsx37("div", { className: getClassNameLayer("name"), children: node.label })
|
|
5942
5960
|
] })
|
|
@@ -5970,8 +5988,8 @@ var LayerTreeZone = ({
|
|
|
5970
5988
|
tree
|
|
5971
5989
|
}) => {
|
|
5972
5990
|
const shouldVirtualize = depth === 0 && tree.items.length >= MIN_VIRTUALIZED_LAYER_COUNT;
|
|
5973
|
-
return /* @__PURE__ */
|
|
5974
|
-
tree.label && /* @__PURE__ */
|
|
5991
|
+
return /* @__PURE__ */ jsxs12(Fragment10, { children: [
|
|
5992
|
+
tree.label && /* @__PURE__ */ jsxs12("div", { className: getClassName20("zoneTitle"), children: [
|
|
5975
5993
|
/* @__PURE__ */ jsx37("div", { className: getClassName20("zoneIcon"), children: /* @__PURE__ */ jsx37(Layers, { size: "16" }) }),
|
|
5976
5994
|
tree.label
|
|
5977
5995
|
] }),
|
|
@@ -6000,7 +6018,7 @@ var StaticLayerTreeItems = ({
|
|
|
6000
6018
|
selectedPathIds,
|
|
6001
6019
|
tree
|
|
6002
6020
|
}) => {
|
|
6003
|
-
return /* @__PURE__ */
|
|
6021
|
+
return /* @__PURE__ */ jsxs12("ul", { className: getClassName20(), children: [
|
|
6004
6022
|
tree.items.length === 0 && /* @__PURE__ */ jsx37("div", { className: getClassName20("helper"), children: "No items" }),
|
|
6005
6023
|
tree.items.map((node) => /* @__PURE__ */ jsx37(
|
|
6006
6024
|
Layer,
|
|
@@ -6090,7 +6108,7 @@ var VirtualizedLayerTreeItems = ({
|
|
|
6090
6108
|
)
|
|
6091
6109
|
);
|
|
6092
6110
|
}
|
|
6093
|
-
return /* @__PURE__ */
|
|
6111
|
+
return /* @__PURE__ */ jsxs12("ul", { className: getClassName20(), ref: listRef, children: [
|
|
6094
6112
|
tree.items.length === 0 && /* @__PURE__ */ jsx37("div", { className: getClassName20("helper"), children: "No items" }),
|
|
6095
6113
|
renderedItems
|
|
6096
6114
|
] });
|
|
@@ -6170,7 +6188,7 @@ var Outline = () => {
|
|
|
6170
6188
|
|
|
6171
6189
|
// css-module:/home/runner/work/puck/puck/packages/core/plugins/outline/styles.module.css#css-module
|
|
6172
6190
|
init_react_import();
|
|
6173
|
-
var styles_module_default15 = { "OutlinePlugin": "
|
|
6191
|
+
var styles_module_default15 = { "OutlinePlugin": "_OutlinePlugin_16k03_1" };
|
|
6174
6192
|
|
|
6175
6193
|
// plugins/outline/index.tsx
|
|
6176
6194
|
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
@@ -6190,7 +6208,7 @@ init_react_import();
|
|
|
6190
6208
|
|
|
6191
6209
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Breadcrumbs/styles.module.css#css-module
|
|
6192
6210
|
init_react_import();
|
|
6193
|
-
var styles_module_default16 = { "Breadcrumbs": "
|
|
6211
|
+
var styles_module_default16 = { "Breadcrumbs": "_Breadcrumbs_8c6w5_1", "Breadcrumbs-breadcrumbLabel": "_Breadcrumbs-breadcrumbLabel_8c6w5_7", "Breadcrumbs-breadcrumb": "_Breadcrumbs-breadcrumb_8c6w5_7" };
|
|
6194
6212
|
|
|
6195
6213
|
// lib/use-breadcrumbs.ts
|
|
6196
6214
|
init_react_import();
|
|
@@ -6237,7 +6255,7 @@ var useBreadcrumbs = (renderCount) => {
|
|
|
6237
6255
|
};
|
|
6238
6256
|
|
|
6239
6257
|
// components/Breadcrumbs/index.tsx
|
|
6240
|
-
import { jsx as jsx40, jsxs as
|
|
6258
|
+
import { jsx as jsx40, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
6241
6259
|
var getClassName22 = get_class_name_factory_default("Breadcrumbs", styles_module_default16);
|
|
6242
6260
|
var Breadcrumbs = ({
|
|
6243
6261
|
children,
|
|
@@ -6245,8 +6263,8 @@ var Breadcrumbs = ({
|
|
|
6245
6263
|
}) => {
|
|
6246
6264
|
const setUi = useAppStore((s) => s.setUi);
|
|
6247
6265
|
const breadcrumbs = useBreadcrumbs(numParents);
|
|
6248
|
-
return /* @__PURE__ */
|
|
6249
|
-
breadcrumbs.map((breadcrumb, i) => /* @__PURE__ */
|
|
6266
|
+
return /* @__PURE__ */ jsxs13("div", { className: getClassName22(), children: [
|
|
6267
|
+
breadcrumbs.map((breadcrumb, i) => /* @__PURE__ */ jsxs13("div", { className: getClassName22("breadcrumb"), children: [
|
|
6250
6268
|
/* @__PURE__ */ jsx40(
|
|
6251
6269
|
"button",
|
|
6252
6270
|
{
|
|
@@ -6267,7 +6285,7 @@ init_react_import();
|
|
|
6267
6285
|
|
|
6268
6286
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Fields/styles.module.css#css-module
|
|
6269
6287
|
init_react_import();
|
|
6270
|
-
var styles_module_default17 = { "PuckFields": "
|
|
6288
|
+
var styles_module_default17 = { "PuckFields": "_PuckFields_wnj25_1", "PuckFields--isLoading": "_PuckFields--isLoading_wnj25_6", "PuckFields-loadingOverlay": "_PuckFields-loadingOverlay_wnj25_10", "PuckFields-loadingOverlayInner": "_PuckFields-loadingOverlayInner_wnj25_25", "PuckFields-field": "_PuckFields-field_wnj25_32", "PuckFields--wrapFields": "_PuckFields--wrapFields_wnj25_36" };
|
|
6271
6289
|
|
|
6272
6290
|
// components/Puck/components/Fields/index.tsx
|
|
6273
6291
|
import {
|
|
@@ -6278,7 +6296,7 @@ import {
|
|
|
6278
6296
|
useMemo as useMemo17
|
|
6279
6297
|
} from "react";
|
|
6280
6298
|
import { useShallow as useShallow8 } from "zustand/react/shallow";
|
|
6281
|
-
import { Fragment as Fragment11, jsx as jsx41, jsxs as
|
|
6299
|
+
import { Fragment as Fragment11, jsx as jsx41, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
6282
6300
|
var getClassName23 = get_class_name_factory_default("PuckFields", styles_module_default17);
|
|
6283
6301
|
var DefaultFields = ({
|
|
6284
6302
|
children
|
|
@@ -6409,7 +6427,7 @@ var FieldsInternal = ({ wrapFields = true }) => {
|
|
|
6409
6427
|
);
|
|
6410
6428
|
const isLoading = fieldsLoading || componentResolving;
|
|
6411
6429
|
const Wrapper = useMemo17(() => overrides.fields || DefaultFields, [overrides]);
|
|
6412
|
-
return /* @__PURE__ */
|
|
6430
|
+
return /* @__PURE__ */ jsxs14(
|
|
6413
6431
|
"form",
|
|
6414
6432
|
{
|
|
6415
6433
|
className: getClassName23({ wrapFields }),
|
|
@@ -6427,10 +6445,10 @@ var Fields = memo8(FieldsInternal);
|
|
|
6427
6445
|
|
|
6428
6446
|
// css-module:/home/runner/work/puck/puck/packages/core/plugins/fields/styles.module.css#css-module
|
|
6429
6447
|
init_react_import();
|
|
6430
|
-
var styles_module_default18 = { "FieldsPlugin": "
|
|
6448
|
+
var styles_module_default18 = { "FieldsPlugin": "_FieldsPlugin_18cj3_1", "FieldsPlugin-header": "_FieldsPlugin-header_18cj3_7" };
|
|
6431
6449
|
|
|
6432
6450
|
// plugins/fields/index.tsx
|
|
6433
|
-
import { jsx as jsx42, jsxs as
|
|
6451
|
+
import { jsx as jsx42, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
6434
6452
|
var getClassName24 = get_class_name_factory_default("FieldsPlugin", styles_module_default18);
|
|
6435
6453
|
var CurrentTitle = () => {
|
|
6436
6454
|
const label = useAppStore((s) => {
|
|
@@ -6443,7 +6461,7 @@ var CurrentTitle = () => {
|
|
|
6443
6461
|
var fieldsPlugin = ({ desktopSideBar = "right" } = {}) => ({
|
|
6444
6462
|
name: "fields",
|
|
6445
6463
|
label: "Fields",
|
|
6446
|
-
render: () => /* @__PURE__ */
|
|
6464
|
+
render: () => /* @__PURE__ */ jsxs15("div", { className: getClassName24(), children: [
|
|
6447
6465
|
/* @__PURE__ */ jsx42("div", { className: getClassName24("header"), children: /* @__PURE__ */ jsx42(Breadcrumbs, { numParents: 2, children: /* @__PURE__ */ jsx42(CurrentTitle, {}) }) }),
|
|
6448
6466
|
/* @__PURE__ */ jsx42(Fields, {})
|
|
6449
6467
|
] }),
|
|
@@ -6460,267 +6478,3209 @@ import {
|
|
|
6460
6478
|
useEffect as useEffect29,
|
|
6461
6479
|
useMemo as useMemo25,
|
|
6462
6480
|
useRef as useRef16,
|
|
6463
|
-
useState as
|
|
6481
|
+
useState as useState24
|
|
6464
6482
|
} from "react";
|
|
6465
6483
|
|
|
6466
6484
|
// components/Puck/components/Preview/index.tsx
|
|
6467
6485
|
init_react_import();
|
|
6468
|
-
import { useCallback as useCallback16, useEffect as
|
|
6486
|
+
import { useCallback as useCallback16, useEffect as useEffect23, useRef as useRef11, useMemo as useMemo18 } from "react";
|
|
6469
6487
|
|
|
6470
6488
|
// components/AutoFrame/index.tsx
|
|
6471
6489
|
init_react_import();
|
|
6472
6490
|
import {
|
|
6473
6491
|
createContext as createContext6,
|
|
6474
6492
|
useContext as useContext13,
|
|
6475
|
-
useEffect as
|
|
6493
|
+
useEffect as useEffect22,
|
|
6476
6494
|
useState as useState18
|
|
6477
6495
|
} from "react";
|
|
6478
6496
|
import hash from "object-hash";
|
|
6479
6497
|
import { createPortal as createPortal3 } from "react-dom";
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6498
|
+
|
|
6499
|
+
// lib/use-inject-css.ts
|
|
6500
|
+
init_react_import();
|
|
6501
|
+
import { useEffect as useEffect21, useInsertionEffect } from "react";
|
|
6502
|
+
|
|
6503
|
+
// puck-runtime-css:puck-runtime-css
|
|
6504
|
+
init_react_import();
|
|
6505
|
+
var defaultUiStyles = `@import "https://rsms.me/inter/inter.css";
|
|
6506
|
+
|
|
6507
|
+
/* styles/color.css */
|
|
6508
|
+
@layer puck-tokens {
|
|
6509
|
+
:root {
|
|
6510
|
+
--puck-color-rose-01: #4a001c;
|
|
6511
|
+
--puck-color-rose-02: #670833;
|
|
6512
|
+
--puck-color-rose-03: #87114c;
|
|
6513
|
+
--puck-color-rose-04: #a81a66;
|
|
6514
|
+
--puck-color-rose-05: #bc5089;
|
|
6515
|
+
--puck-color-rose-06: #cc7ca5;
|
|
6516
|
+
--puck-color-rose-07: #d89aba;
|
|
6517
|
+
--puck-color-rose-08: #e3b8cf;
|
|
6518
|
+
--puck-color-rose-09: #efd6e3;
|
|
6519
|
+
--puck-color-rose-10: #f6eaf1;
|
|
6520
|
+
--puck-color-rose-11: #faf4f8;
|
|
6521
|
+
--puck-color-rose-12: #fef8fc;
|
|
6522
|
+
--puck-color-azure-01: #00175d;
|
|
6523
|
+
--puck-color-azure-02: #002c77;
|
|
6524
|
+
--puck-color-azure-03: #014292;
|
|
6525
|
+
--puck-color-azure-04: #0158ad;
|
|
6526
|
+
--puck-color-azure-05: #3479be;
|
|
6527
|
+
--puck-color-azure-06: #6499cf;
|
|
6528
|
+
--puck-color-azure-07: #88b0da;
|
|
6529
|
+
--puck-color-azure-08: #abc7e5;
|
|
6530
|
+
--puck-color-azure-09: #cfdff0;
|
|
6531
|
+
--puck-color-azure-10: #e7eef7;
|
|
6532
|
+
--puck-color-azure-11: #f3f6fb;
|
|
6533
|
+
--puck-color-azure-12: #f7faff;
|
|
6534
|
+
--puck-color-green-01: #002000;
|
|
6535
|
+
--puck-color-green-02: #043604;
|
|
6536
|
+
--puck-color-green-03: #084e08;
|
|
6537
|
+
--puck-color-green-04: #0c680c;
|
|
6538
|
+
--puck-color-green-05: #1d882f;
|
|
6539
|
+
--puck-color-green-06: #2faa53;
|
|
6540
|
+
--puck-color-green-07: #56c16f;
|
|
6541
|
+
--puck-color-green-08: #7dd78b;
|
|
6542
|
+
--puck-color-green-09: #b8e8bf;
|
|
6543
|
+
--puck-color-green-10: #ddf3e0;
|
|
6544
|
+
--puck-color-green-11: #eff8f0;
|
|
6545
|
+
--puck-color-green-12: #f3fcf4;
|
|
6546
|
+
--puck-color-yellow-01: #211000;
|
|
6547
|
+
--puck-color-yellow-02: #362700;
|
|
6548
|
+
--puck-color-yellow-03: #4c4000;
|
|
6549
|
+
--puck-color-yellow-04: #645a00;
|
|
6550
|
+
--puck-color-yellow-05: #877614;
|
|
6551
|
+
--puck-color-yellow-06: #ab9429;
|
|
6552
|
+
--puck-color-yellow-07: #bfac4e;
|
|
6553
|
+
--puck-color-yellow-08: #d4c474;
|
|
6554
|
+
--puck-color-yellow-09: #e6deb1;
|
|
6555
|
+
--puck-color-yellow-10: #f3efd9;
|
|
6556
|
+
--puck-color-yellow-11: #f9f7ed;
|
|
6557
|
+
--puck-color-yellow-12: #fcfaf0;
|
|
6558
|
+
--puck-color-red-01: #4c0000;
|
|
6559
|
+
--puck-color-red-02: #6a0a10;
|
|
6560
|
+
--puck-color-red-03: #8a1422;
|
|
6561
|
+
--puck-color-red-04: #ac1f35;
|
|
6562
|
+
--puck-color-red-05: #bf5366;
|
|
6563
|
+
--puck-color-red-06: #ce7e8e;
|
|
6564
|
+
--puck-color-red-07: #d99ca8;
|
|
6565
|
+
--puck-color-red-08: #e4b9c2;
|
|
6566
|
+
--puck-color-red-09: #efd7db;
|
|
6567
|
+
--puck-color-red-10: #f6eaec;
|
|
6568
|
+
--puck-color-red-11: #faf4f5;
|
|
6569
|
+
--puck-color-red-12: #fff9fa;
|
|
6570
|
+
--puck-color-grey-01: #181818;
|
|
6571
|
+
--puck-color-grey-02: #292929;
|
|
6572
|
+
--puck-color-grey-03: #404040;
|
|
6573
|
+
--puck-color-grey-04: #5a5a5a;
|
|
6574
|
+
--puck-color-grey-05: #767676;
|
|
6575
|
+
--puck-color-grey-06: #949494;
|
|
6576
|
+
--puck-color-grey-07: #ababab;
|
|
6577
|
+
--puck-color-grey-08: #c3c3c3;
|
|
6578
|
+
--puck-color-grey-09: #dcdcdc;
|
|
6579
|
+
--puck-color-grey-10: #efefef;
|
|
6580
|
+
--puck-color-grey-11: #f5f5f5;
|
|
6581
|
+
--puck-color-grey-12: #fafafa;
|
|
6582
|
+
--puck-color-black: #000000;
|
|
6583
|
+
--puck-color-white: #ffffff;
|
|
6512
6584
|
}
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6585
|
+
}
|
|
6586
|
+
|
|
6587
|
+
/* styles/tokens.css */
|
|
6588
|
+
@layer puck-tokens {
|
|
6589
|
+
:root {
|
|
6590
|
+
--puck-color-surface: var(--puck-color-white);
|
|
6591
|
+
--puck-color-surface-muted: var(--puck-color-grey-11);
|
|
6592
|
+
--puck-color-surface-subtle: var(--puck-color-grey-12);
|
|
6593
|
+
--puck-color-surface-inverse: var(--puck-color-grey-01);
|
|
6594
|
+
--puck-color-border: var(--puck-color-grey-09);
|
|
6595
|
+
--puck-color-border-hover: var(--puck-color-grey-05);
|
|
6596
|
+
--puck-color-border-muted: var(--puck-color-grey-10);
|
|
6597
|
+
--puck-color-border-inverse: var(--puck-color-grey-05);
|
|
6598
|
+
--puck-color-text: var(--puck-color-black);
|
|
6599
|
+
--puck-color-text-secondary: var(--puck-color-grey-04);
|
|
6600
|
+
--puck-color-text-muted: var(--puck-color-grey-05);
|
|
6601
|
+
--puck-color-text-subtle: var(--puck-color-grey-07);
|
|
6602
|
+
--puck-color-text-inverse: var(--puck-color-white);
|
|
6603
|
+
--puck-opacity-text-inverse: 0.75;
|
|
6604
|
+
--puck-color-interactive: var(--puck-color-azure-04);
|
|
6605
|
+
--puck-color-interactive-hover: var(--puck-color-azure-03);
|
|
6606
|
+
--puck-color-interactive-active: var(--puck-color-azure-02);
|
|
6607
|
+
--puck-color-interactive-subtle: var(--puck-color-azure-10);
|
|
6608
|
+
--puck-color-interactive-soft: var(--puck-color-azure-11);
|
|
6609
|
+
--puck-color-interactive-soft-hover: var(--puck-color-azure-12);
|
|
6610
|
+
--puck-color-interactive-neutral-hover: var(--puck-color-grey-10);
|
|
6611
|
+
--puck-color-interactive-inverse-hover: var(--puck-color-azure-06);
|
|
6612
|
+
--puck-color-interactive-inverse-active: var(--puck-color-azure-07);
|
|
6613
|
+
--puck-color-focus-ring: var(--puck-color-azure-05);
|
|
6614
|
+
--puck-color-selection-bg: color-mix( in srgb, var(--puck-color-azure-09) 30%, transparent );
|
|
6615
|
+
--puck-color-selection-border: var(--puck-color-azure-08);
|
|
6616
|
+
--puck-color-highlight: var(--puck-color-rose-07);
|
|
6617
|
+
--puck-color-bg-disabled: var(--puck-color-grey-07);
|
|
6618
|
+
--puck-color-text-disabled: var(--puck-color-grey-03);
|
|
6619
|
+
--puck-color-overlay-backdrop: color-mix( in srgb, var(--puck-color-black) 75%, transparent );
|
|
6620
|
+
--puck-space-1: 4px;
|
|
6621
|
+
--puck-space-2: 8px;
|
|
6622
|
+
--puck-space-3: 12px;
|
|
6623
|
+
--puck-space-4: 16px;
|
|
6624
|
+
--puck-space-5: 24px;
|
|
6625
|
+
--puck-space-chrome-gutter: var(--puck-space-4);
|
|
6626
|
+
--puck-radius-none: 0;
|
|
6627
|
+
--puck-radius-xs: 2px;
|
|
6628
|
+
--puck-radius-s: 3px;
|
|
6629
|
+
--puck-radius-m: 4px;
|
|
6630
|
+
--puck-radius-l: 8px;
|
|
6631
|
+
--puck-radius-pill: 30px;
|
|
6632
|
+
--puck-radius-round: 100%;
|
|
6633
|
+
--puck-border-width-hairline: 0.5px;
|
|
6634
|
+
--puck-border-width-regular: 1px;
|
|
6635
|
+
--puck-border-width-focus: 2px;
|
|
6636
|
+
--puck-border-width-strong: 4px;
|
|
6637
|
+
--puck-duration-fast: 50ms;
|
|
6638
|
+
--puck-duration-medium: 150ms;
|
|
6639
|
+
--puck-duration-slow: 250ms;
|
|
6640
|
+
--puck-ease-exit: ease-in;
|
|
6641
|
+
--puck-ease-emphasized: ease-in-out;
|
|
6642
|
+
--puck-ease-entrance: ease-out;
|
|
6643
|
+
--puck-font-weight-regular: 400;
|
|
6644
|
+
--puck-font-weight-medium: 500;
|
|
6645
|
+
--puck-font-weight-semibold: 600;
|
|
6646
|
+
--puck-font-weight-bold: 700;
|
|
6647
|
+
--puck-font-weight-heavy: 800;
|
|
6648
|
+
--puck-letter-spacing-ui: 0.05ch;
|
|
6649
|
+
--puck-letter-spacing-heading: 0.08ch;
|
|
6650
|
+
--puck-icon-size-s: 16px;
|
|
6651
|
+
--puck-icon-size-m: 18px;
|
|
6652
|
+
--puck-icon-size-l: 24px;
|
|
6653
|
+
--puck-space-m-unitless: 24;
|
|
6654
|
+
--puck-user-sidebar-left-width: var(--puck-sidebar-width);
|
|
6655
|
+
--puck-user-sidebar-right-width: var(--puck-sidebar-width);
|
|
6656
|
+
--puck-slot-min-empty-height: 128px;
|
|
6521
6657
|
}
|
|
6522
|
-
}
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6658
|
+
}
|
|
6659
|
+
|
|
6660
|
+
/* styles/typography.css */
|
|
6661
|
+
@layer puck-tokens {
|
|
6662
|
+
:root {
|
|
6663
|
+
--puck-font-size-scale-base-unitless: 12;
|
|
6664
|
+
--puck-font-size-xxxs-unitless: 12;
|
|
6665
|
+
--puck-font-size-xxs-unitless: 14;
|
|
6666
|
+
--puck-font-size-xs-unitless: 16;
|
|
6667
|
+
--puck-font-size-s-unitless: 18;
|
|
6668
|
+
--puck-font-size-m-unitless: 21;
|
|
6669
|
+
--puck-font-size-l-unitless: 24;
|
|
6670
|
+
--puck-font-size-xl-unitless: 28;
|
|
6671
|
+
--puck-font-size-xxl-unitless: 36;
|
|
6672
|
+
--puck-font-size-xxxl-unitless: 48;
|
|
6673
|
+
--puck-font-size-xxxxl-unitless: 56;
|
|
6674
|
+
--puck-font-size-xxxs: calc( 1rem * var(--puck-font-size-xxxs-unitless) / 16 );
|
|
6675
|
+
--puck-font-size-xxs: calc(1rem * var(--puck-font-size-xxs-unitless) / 16);
|
|
6676
|
+
--puck-font-size-xs: calc(1rem * var(--puck-font-size-xs-unitless) / 16);
|
|
6677
|
+
--puck-font-size-s: calc(1rem * var(--puck-font-size-s-unitless) / 16);
|
|
6678
|
+
--puck-font-size-m: calc(1rem * var(--puck-font-size-m-unitless) / 16);
|
|
6679
|
+
--puck-font-size-l: calc(1rem * var(--puck-font-size-l-unitless) / 16);
|
|
6680
|
+
--puck-font-size-xl: calc(1rem * var(--puck-font-size-xl-unitless) / 16);
|
|
6681
|
+
--puck-font-size-xxl: calc(1rem * var(--puck-font-size-xxl-unitless) / 16);
|
|
6682
|
+
--puck-font-size-xxxl: calc( 1rem * var(--puck-font-size-xxxl-unitless) / 16 );
|
|
6683
|
+
--puck-font-size-xxxxl: calc( 1rem * var(--puck-font-size-xxxxl-unitless) / 16 );
|
|
6684
|
+
--puck-font-size-base: var(--puck-font-size-xs);
|
|
6685
|
+
--puck-line-height-reset: 1;
|
|
6686
|
+
--puck-line-height-xs: calc( var(--puck-space-m-unitless) / var(--puck-font-size-m-unitless) );
|
|
6687
|
+
--puck-line-height-s: calc( var(--puck-space-m-unitless) / var(--puck-font-size-s-unitless) );
|
|
6688
|
+
--puck-line-height-m: calc( var(--puck-space-m-unitless) / var(--puck-font-size-xs-unitless) );
|
|
6689
|
+
--puck-line-height-l: calc( var(--puck-space-m-unitless) / var(--puck-font-size-xxs-unitless) );
|
|
6690
|
+
--puck-line-height-xl: calc( var(--puck-space-m-unitless) / var(--puck-font-size-scale-base-unitless) );
|
|
6691
|
+
--puck-line-height-base: var(--puck-line-height-m);
|
|
6692
|
+
--puck-fallback-font-stack:
|
|
6693
|
+
-apple-system,
|
|
6694
|
+
BlinkMacSystemFont,
|
|
6695
|
+
Segoe UI,
|
|
6696
|
+
Helvetica Neue,
|
|
6697
|
+
sans-serif,
|
|
6698
|
+
Apple Color Emoji,
|
|
6699
|
+
Segoe UI Emoji,
|
|
6700
|
+
Segoe UI Symbol;
|
|
6701
|
+
--puck-font-family: Inter, var(--puck-fallback-font-stack);
|
|
6702
|
+
--puck-font-family-monospaced:
|
|
6703
|
+
ui-monospace,
|
|
6704
|
+
"Cascadia Code",
|
|
6705
|
+
"Source Code Pro",
|
|
6706
|
+
Menlo,
|
|
6707
|
+
Consolas,
|
|
6708
|
+
"DejaVu Sans Mono",
|
|
6709
|
+
monospace;
|
|
6710
|
+
}
|
|
6711
|
+
@supports (font-variation-settings: normal) {
|
|
6712
|
+
:root {
|
|
6713
|
+
--puck-font-family: InterVariable, var(--puck-fallback-font-stack);
|
|
6534
6714
|
}
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6715
|
+
}
|
|
6716
|
+
}
|
|
6717
|
+
|
|
6718
|
+
/* bundle/core.css */
|
|
6719
|
+
:root {
|
|
6720
|
+
--_puck-styles-loaded: "true";
|
|
6721
|
+
}
|
|
6722
|
+
#frame-root {
|
|
6723
|
+
height: 1px;
|
|
6724
|
+
min-height: 100vh;
|
|
6725
|
+
}
|
|
6726
|
+
[data-puck-entry] {
|
|
6727
|
+
position: relative;
|
|
6728
|
+
z-index: 0;
|
|
6729
|
+
}
|
|
6730
|
+
|
|
6731
|
+
/* bundle/index.css */
|
|
6732
|
+
|
|
6733
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/ActionBar/styles.module.css/#css-module-data */
|
|
6734
|
+
._ActionBar_5vdfr_1 {
|
|
6735
|
+
align-items: center;
|
|
6736
|
+
cursor: default;
|
|
6737
|
+
display: flex;
|
|
6738
|
+
width: auto;
|
|
6739
|
+
padding-top: var(--puck-actionbar-space-y, var(--puck-space-1));
|
|
6740
|
+
padding-bottom: var(--puck-actionbar-space-y, var(--puck-space-1));
|
|
6741
|
+
padding-inline-start: var(--puck-actionbar-space-x, 0);
|
|
6742
|
+
padding-inline-end: var(--puck-actionbar-space-x, 0);
|
|
6743
|
+
border-radius: var(--puck-actionbar-radius, var(--puck-radius-l));
|
|
6744
|
+
background: var(--puck-actionbar-color-bg, var(--puck-color-surface-inverse));
|
|
6745
|
+
color: var(--puck-color-text-inverse);
|
|
6746
|
+
font-family: var(--puck-font-family);
|
|
6747
|
+
min-height: 26px;
|
|
6748
|
+
}
|
|
6749
|
+
._ActionBar-label_5vdfr_17 {
|
|
6750
|
+
color: var(--puck-actionbar-color-text, var(--puck-color-text-inverse));
|
|
6751
|
+
font-size: var(--puck-actionbar-font-size, var(--puck-font-size-xxxs));
|
|
6752
|
+
opacity: var(--puck-actionbar-opacity-text, var(--puck-opacity-text-inverse));
|
|
6753
|
+
font-weight: var(--puck-font-weight-medium);
|
|
6754
|
+
padding-inline-start: var(--puck-space-2);
|
|
6755
|
+
padding-inline-end: var(--puck-space-2);
|
|
6756
|
+
margin-inline-start: var(--puck-space-1);
|
|
6757
|
+
margin-inline-end: var(--puck-space-1);
|
|
6758
|
+
text-overflow: ellipsis;
|
|
6759
|
+
white-space: nowrap;
|
|
6760
|
+
}
|
|
6761
|
+
._ActionBarAction_5vdfr_30 + ._ActionBar-label_5vdfr_17 {
|
|
6762
|
+
padding-inline-start: 0;
|
|
6763
|
+
}
|
|
6764
|
+
._ActionBar-label_5vdfr_17 + ._ActionBarAction_5vdfr_30 {
|
|
6765
|
+
margin-inline-start: calc(var(--puck-space-1) * -1);
|
|
6766
|
+
}
|
|
6767
|
+
._ActionBar-group_5vdfr_38 {
|
|
6768
|
+
align-items: center;
|
|
6769
|
+
border-inline-start: var(--puck-border-width-hairline) solid var(--puck-actionbar-color-separator, var(--puck-color-border-inverse));
|
|
6770
|
+
display: flex;
|
|
6771
|
+
height: 100%;
|
|
6772
|
+
padding-inline-start: var(--puck-space-1);
|
|
6773
|
+
padding-inline-end: var(--puck-space-1);
|
|
6774
|
+
}
|
|
6775
|
+
._ActionBar-group_5vdfr_38:first-of-type {
|
|
6776
|
+
border-inline-start: 0;
|
|
6777
|
+
}
|
|
6778
|
+
._ActionBar-group_5vdfr_38:empty {
|
|
6779
|
+
display: none;
|
|
6780
|
+
}
|
|
6781
|
+
._ActionBarAction_5vdfr_30 {
|
|
6782
|
+
background: transparent;
|
|
6783
|
+
border: none;
|
|
6784
|
+
color: var(--puck-actionbar-color-text, var(--puck-color-text-inverse));
|
|
6785
|
+
cursor: pointer;
|
|
6786
|
+
padding: var(--puck-actionbar-action-space, 6px);
|
|
6787
|
+
margin-inline-start: var(--puck-space-1);
|
|
6788
|
+
margin-inline-end: var(--puck-space-1);
|
|
6789
|
+
border-radius: var(--puck-radius-m);
|
|
6790
|
+
overflow: hidden;
|
|
6791
|
+
display: flex;
|
|
6792
|
+
align-items: center;
|
|
6793
|
+
justify-content: center;
|
|
6794
|
+
opacity: var(--puck-actionbar-opacity-text, var(--puck-opacity-text-inverse));
|
|
6795
|
+
transition: color var(--puck-duration-fast) var(--puck-ease-exit), opacity var(--puck-duration-fast) var(--puck-ease-exit);
|
|
6796
|
+
}
|
|
6797
|
+
._ActionBarAction--disabled_5vdfr_74 {
|
|
6798
|
+
cursor: auto;
|
|
6799
|
+
color: var( --puck-actionbar-color-action-disabled, var(--puck-color-text-inverse) );
|
|
6800
|
+
opacity: var(--puck-actionbar-opacity-action-disabled, 0.54);
|
|
6801
|
+
}
|
|
6802
|
+
._ActionBarAction_5vdfr_30 svg {
|
|
6803
|
+
max-width: none !important;
|
|
6804
|
+
}
|
|
6805
|
+
._ActionBarAction_5vdfr_30:focus-visible {
|
|
6806
|
+
outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
|
|
6807
|
+
outline-offset: calc(var(--puck-border-width-focus) * -1);
|
|
6808
|
+
}
|
|
6809
|
+
@media (hover: hover) and (pointer: fine) {
|
|
6810
|
+
._ActionBarAction_5vdfr_30:hover:not(._ActionBarAction--disabled_5vdfr_74) {
|
|
6811
|
+
color: var( --puck-actionbar-color-action-hover, var(--puck-color-interactive-inverse-hover) );
|
|
6812
|
+
opacity: 1;
|
|
6813
|
+
transition: none;
|
|
6814
|
+
}
|
|
6815
|
+
}
|
|
6816
|
+
._ActionBarAction_5vdfr_30:active:not(._ActionBarAction--disabled_5vdfr_74),
|
|
6817
|
+
._ActionBarAction--active_5vdfr_104 {
|
|
6818
|
+
color: var( --puck-actionbar-color-action-active, var(--puck-color-interactive-inverse-active) );
|
|
6819
|
+
opacity: 1;
|
|
6820
|
+
transition: none;
|
|
6821
|
+
}
|
|
6822
|
+
._ActionBar-group_5vdfr_38 * {
|
|
6823
|
+
margin: 0;
|
|
6824
|
+
}
|
|
6825
|
+
._ActionBar-separator_5vdfr_117 {
|
|
6826
|
+
background: var( --puck-actionbar-color-separator, var(--puck-color-border-inverse) );
|
|
6827
|
+
margin-inline: var(--puck-space-1);
|
|
6828
|
+
width: var( --puck-border-width-hairline );
|
|
6829
|
+
height: 100%;
|
|
6830
|
+
}
|
|
6831
|
+
|
|
6832
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/styles.module.css/#css-module-data */
|
|
6833
|
+
._InputWrapper_qyenz_1 + ._InputWrapper_qyenz_1 {
|
|
6834
|
+
margin-top: var(--puck-space-3);
|
|
6835
|
+
}
|
|
6836
|
+
._Input-label_qyenz_5 {
|
|
6837
|
+
align-items: center;
|
|
6838
|
+
color: var(--puck-field-label-color-text, var(--puck-color-text-secondary));
|
|
6839
|
+
display: flex;
|
|
6840
|
+
padding-bottom: var(--puck-field-label-space-y, var(--puck-space-3));
|
|
6841
|
+
font-size: var(--puck-field-label-font-size, var(--puck-font-size-xxs));
|
|
6842
|
+
font-weight: var( --puck-field-label-font-weight, var(--puck-font-weight-semibold) );
|
|
6843
|
+
}
|
|
6844
|
+
._Input-labelIcon_qyenz_17 {
|
|
6845
|
+
color: var(--puck-field-label-color-icon, var(--puck-color-text-subtle));
|
|
6846
|
+
display: flex;
|
|
6847
|
+
margin-inline-end: var(--puck-space-1);
|
|
6848
|
+
padding-inline-start: var(--puck-space-1);
|
|
6849
|
+
}
|
|
6850
|
+
._Input-disabledIcon_qyenz_24 {
|
|
6851
|
+
color: var(--puck-color-text-muted);
|
|
6852
|
+
margin-inline-start: auto;
|
|
6853
|
+
}
|
|
6854
|
+
._Input-input_qyenz_29 {
|
|
6855
|
+
background: var(--puck-field-color-bg, var(--puck-color-surface));
|
|
6856
|
+
border-width: var( --puck-field-border-width, var(--puck-border-width-regular) );
|
|
6857
|
+
border-style: solid;
|
|
6858
|
+
border-color: var(--puck-field-color-border, var(--puck-color-border));
|
|
6859
|
+
border-radius: var(--puck-field-radius, var(--puck-radius-m));
|
|
6860
|
+
box-sizing: border-box;
|
|
6861
|
+
color: var(--puck-field-color-text, var(--puck-color-text));
|
|
6862
|
+
font-family: inherit;
|
|
6863
|
+
font-size: var(--puck-font-size-xs);
|
|
6864
|
+
padding: var(--puck-field-space-y, var(--puck-space-3)) var( --puck-field-space-x, calc( var(--puck-space-4) - var(--puck-field-border-width, var(--puck-border-width-regular)) ) );
|
|
6865
|
+
transition: border-color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
6866
|
+
width: 100%;
|
|
6867
|
+
max-width: 100%;
|
|
6868
|
+
}
|
|
6869
|
+
@media (min-width: 458px) {
|
|
6870
|
+
._Input-input_qyenz_29 {
|
|
6871
|
+
font-size: var(--puck-field-font-size, var(--puck-font-size-xxs));
|
|
6872
|
+
}
|
|
6873
|
+
}
|
|
6874
|
+
._Input-select_qyenz_61 {
|
|
6875
|
+
position: relative;
|
|
6876
|
+
width: 100%;
|
|
6877
|
+
}
|
|
6878
|
+
select._Input-input_qyenz_29 {
|
|
6879
|
+
appearance: none;
|
|
6880
|
+
cursor: pointer;
|
|
6881
|
+
}
|
|
6882
|
+
._Input-selectIcon_qyenz_71 {
|
|
6883
|
+
position: absolute;
|
|
6884
|
+
right: 12px;
|
|
6885
|
+
top: 50%;
|
|
6886
|
+
transform: translateY(-50%);
|
|
6887
|
+
pointer-events: none;
|
|
6888
|
+
fill: var(--puck-field-color-border, var(--puck-color-border));
|
|
6889
|
+
stroke-width: 0;
|
|
6890
|
+
}
|
|
6891
|
+
._Input-selectIcon_qyenz_71:dir(rtl) {
|
|
6892
|
+
right: auto;
|
|
6893
|
+
left: 12px;
|
|
6894
|
+
}
|
|
6895
|
+
@media (hover: hover) and (pointer: fine) {
|
|
6896
|
+
._Input_qyenz_1:has(> input):hover ._Input-input_qyenz_29:not([readonly]),
|
|
6897
|
+
._Input_qyenz_1:has(> textarea):hover ._Input-input_qyenz_29:not([readonly]) {
|
|
6898
|
+
border-color: var( --puck-field-color-border-hover, var(--puck-color-border-hover) );
|
|
6899
|
+
transition: none;
|
|
6900
|
+
}
|
|
6901
|
+
._Input_qyenz_1:has(> ._Input-select_qyenz_61):hover ._Input-input_qyenz_29:not([disabled]) {
|
|
6902
|
+
color: var( --puck-field-color-text-hover, var(--puck-field-color-text, var(--puck-color-text)) );
|
|
6903
|
+
background-color: var( --puck-field-color-bg-hover, var(--puck-color-interactive-soft-hover) );
|
|
6904
|
+
border-color: var( --puck-field-color-border-hover, var(--puck-color-border-hover) );
|
|
6905
|
+
transition: none;
|
|
6906
|
+
}
|
|
6907
|
+
._Input_qyenz_1:not(._Input--readOnly_qyenz_111):has(> ._Input-select_qyenz_61):hover ._Input-selectIcon_qyenz_71 {
|
|
6908
|
+
fill: var(--puck-field-color-border-hover, var(--puck-color-border-hover));
|
|
6909
|
+
}
|
|
6910
|
+
}
|
|
6911
|
+
._Input-input_qyenz_29:focus {
|
|
6912
|
+
border-color: var( --puck-field-color-border-hover, var(--puck-color-border-hover) );
|
|
6913
|
+
outline: var(--puck-border-width-focus) solid var(--puck-field-color-border-focus, var(--puck-color-focus-ring));
|
|
6914
|
+
transition: none;
|
|
6915
|
+
}
|
|
6916
|
+
._Input--readOnly_qyenz_111 > ._Input-input_qyenz_29,
|
|
6917
|
+
._Input--readOnly_qyenz_111 > ._Input-select_qyenz_61 > select._Input-input_qyenz_29 {
|
|
6918
|
+
background-color: var( --puck-field-color-bg-disabled, var(--puck-color-surface-muted) );
|
|
6919
|
+
border-color: var( --puck-field-color-border-disabled, var(--puck-color-border) );
|
|
6920
|
+
color: var( --puck-field-color-text-disabled, var(--puck-color-text-secondary) );
|
|
6921
|
+
cursor: default;
|
|
6922
|
+
opacity: 1;
|
|
6923
|
+
outline: 0;
|
|
6924
|
+
transition: none;
|
|
6925
|
+
}
|
|
6926
|
+
._Input--readOnly_qyenz_111 > ._Input-select_qyenz_61 > select._Input-input_qyenz_29 ~ ._Input-selectIcon_qyenz_71 {
|
|
6927
|
+
fill: var(--puck-field-color-text-disabled, var(--puck-color-text-secondary));
|
|
6928
|
+
}
|
|
6929
|
+
._Input-radioGroupItems_qyenz_150 {
|
|
6930
|
+
--_puck-field-radio-radius: var(--puck-field-radius, var(--puck-radius-m));
|
|
6931
|
+
--_puck-field-radio-border-width: var( --puck-field-border-width, var(--puck-border-width-regular) );
|
|
6932
|
+
--_puck-field-radio-border-color: var( --puck-field-color-border, var(--puck-color-border) );
|
|
6933
|
+
display: flex;
|
|
6934
|
+
border: var(--_puck-field-radio-border-width) solid var(--_puck-field-radio-border-color);
|
|
6935
|
+
border-radius: var(--_puck-field-radio-radius);
|
|
6936
|
+
flex-wrap: wrap;
|
|
6937
|
+
}
|
|
6938
|
+
._Input-radio_qyenz_150 {
|
|
6939
|
+
border-inline-end: var(--_puck-field-radio-border-width) solid var(--_puck-field-radio-border-color);
|
|
6940
|
+
flex-grow: 1;
|
|
6941
|
+
}
|
|
6942
|
+
._Input-radio_qyenz_150:first-of-type {
|
|
6943
|
+
border-bottom-left-radius: var(--_puck-field-radio-radius);
|
|
6944
|
+
border-top-left-radius: var(--_puck-field-radio-radius);
|
|
6945
|
+
}
|
|
6946
|
+
._Input-radio_qyenz_150:first-of-type ._Input-radioInner_qyenz_179 {
|
|
6947
|
+
border-bottom-left-radius: calc(var(--_puck-field-radio-radius) - var(--_puck-field-radio-border-width));
|
|
6948
|
+
border-top-left-radius: calc(var(--_puck-field-radio-radius) - var(--_puck-field-radio-border-width));
|
|
6949
|
+
}
|
|
6950
|
+
._Input-radio_qyenz_150:last-of-type {
|
|
6951
|
+
border-bottom-right-radius: var(--_puck-field-radio-radius);
|
|
6952
|
+
border-inline-end: 0;
|
|
6953
|
+
border-top-right-radius: var(--_puck-field-radio-radius);
|
|
6954
|
+
}
|
|
6955
|
+
._Input-radio_qyenz_150:last-of-type ._Input-radioInner_qyenz_179 {
|
|
6956
|
+
border-bottom-right-radius: calc(var(--_puck-field-radio-radius) - var(--_puck-field-radio-border-width));
|
|
6957
|
+
border-top-right-radius: calc(var(--_puck-field-radio-radius) - var(--_puck-field-radio-border-width));
|
|
6958
|
+
}
|
|
6959
|
+
._Input-radioInner_qyenz_179 {
|
|
6960
|
+
background-color: var(--puck-field-color-bg, var(--puck-color-surface));
|
|
6961
|
+
color: var(--puck-field-color-text, var(--puck-color-text));
|
|
6962
|
+
cursor: pointer;
|
|
6963
|
+
font-size: var(--puck-field-font-size, var(--puck-font-size-xxs));
|
|
6964
|
+
padding: var(--puck-field-space-y, var(--puck-space-3)) var( --puck-field-space-x, calc(var(--puck-space-4) - var(--_puck-field-radio-border-width)) );
|
|
6965
|
+
text-align: center;
|
|
6966
|
+
transition: background-color var(--puck-duration-fast) var(--puck-ease-exit), color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
6967
|
+
}
|
|
6968
|
+
._Input-radio_qyenz_150:has(:focus-visible) {
|
|
6969
|
+
outline: var(--puck-border-width-focus) solid var(--puck-field-color-border-focus, var(--puck-color-focus-ring));
|
|
6970
|
+
outline-offset: var(--puck-border-width-focus);
|
|
6971
|
+
position: relative;
|
|
6972
|
+
}
|
|
6973
|
+
@media (hover: hover) and (pointer: fine) {
|
|
6974
|
+
._Input-radioInner_qyenz_179:hover {
|
|
6975
|
+
background-color: var( --puck-field-color-bg-hover, var(--puck-color-interactive-soft-hover) );
|
|
6976
|
+
color: var( --puck-field-color-text-hover, var(--puck-field-color-text, var(--puck-color-text)) );
|
|
6977
|
+
transition: none;
|
|
6978
|
+
}
|
|
6979
|
+
}
|
|
6980
|
+
._Input--readOnly_qyenz_111 ._Input-radioGroupItems_qyenz_150 {
|
|
6981
|
+
border-color: var( --puck-field-color-border-disabled, var(--puck-color-border) );
|
|
6982
|
+
}
|
|
6983
|
+
._Input--readOnly_qyenz_111 ._Input-radioInner_qyenz_179 {
|
|
6984
|
+
background-color: var(--puck-field-color-bg, var(--puck-color-surface));
|
|
6985
|
+
color: var(--puck-field-color-text, var(--puck-color-text-secondary));
|
|
6986
|
+
cursor: default;
|
|
6987
|
+
}
|
|
6988
|
+
._Input--readOnly_qyenz_111 ._Input-radio_qyenz_150 {
|
|
6989
|
+
border-inline-end: var(--_puck-field-radio-border-width) solid var(--puck-field-color-border-disabled, var(--puck-color-border));
|
|
6990
|
+
}
|
|
6991
|
+
._Input--readOnly_qyenz_111 ._Input-radio_qyenz_150:last-of-type {
|
|
6992
|
+
border-inline-end: 0;
|
|
6993
|
+
}
|
|
6994
|
+
._Input-radio_qyenz_150 ._Input-radioInput_qyenz_261:checked ~ ._Input-radioInner_qyenz_179 {
|
|
6995
|
+
background-color: var( --puck-field-color-bg-active, var(--puck-color-interactive-soft) );
|
|
6996
|
+
color: var(--puck-field-color-text-active, var(--puck-color-interactive));
|
|
6997
|
+
font-weight: var(--puck-font-weight-medium);
|
|
6998
|
+
}
|
|
6999
|
+
._Input--readOnly_qyenz_111 ._Input-radioInput_qyenz_261:checked ~ ._Input-radioInner_qyenz_179 {
|
|
7000
|
+
background-color: var( --puck-field-color-bg-disabled, var(--puck-color-surface-muted) );
|
|
7001
|
+
color: var( --puck-field-color-text-disabled, var(--puck-color-text-secondary) );
|
|
7002
|
+
}
|
|
7003
|
+
._Input-radio_qyenz_150 ._Input-radioInput_qyenz_261 {
|
|
7004
|
+
clip: rect(0 0 0 0);
|
|
7005
|
+
clip-path: inset(100%);
|
|
7006
|
+
height: 1px;
|
|
7007
|
+
overflow: hidden;
|
|
7008
|
+
position: absolute;
|
|
7009
|
+
white-space: nowrap;
|
|
7010
|
+
width: 1px;
|
|
7011
|
+
}
|
|
7012
|
+
textarea._Input-input_qyenz_29 {
|
|
7013
|
+
margin-bottom: calc(var(--puck-space-1) * -1);
|
|
7014
|
+
}
|
|
7015
|
+
|
|
7016
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/fields/ArrayField/styles.module.css/#css-module-data */
|
|
7017
|
+
._ArrayField_62huh_5 {
|
|
7018
|
+
--_puck-field-array-border-color: var( --puck-field-color-border, var(--puck-color-border) );
|
|
7019
|
+
--_puck-field-array-border-width: var( --puck-field-border-width, var(--puck-border-width-regular) );
|
|
7020
|
+
--_puck-field-array-radius: var(--puck-field-radius, var(--puck-radius-m));
|
|
7021
|
+
--_puck-field-array-radius-inner: calc( var(--_puck-field-array-radius) - var(--_puck-field-array-border-width) );
|
|
7022
|
+
display: flex;
|
|
7023
|
+
flex-direction: column;
|
|
7024
|
+
background: var( --puck-field-color-bg-active, var(--puck-color-interactive-soft) );
|
|
7025
|
+
border: var(--_puck-field-array-border-width) solid var(--_puck-field-array-border-color);
|
|
7026
|
+
border-radius: var(--_puck-field-array-radius);
|
|
7027
|
+
}
|
|
7028
|
+
._ArrayField--isDraggingFrom_62huh_30 {
|
|
7029
|
+
background-color: var( --puck-field-color-bg-active, var(--puck-color-interactive-soft) );
|
|
7030
|
+
overflow: hidden;
|
|
7031
|
+
}
|
|
7032
|
+
._ArrayField-addButton_62huh_38 {
|
|
7033
|
+
background-color: var(--puck-field-color-bg, var(--puck-color-surface));
|
|
7034
|
+
border: none;
|
|
7035
|
+
border-radius: var(--_puck-field-array-radius-inner);
|
|
7036
|
+
display: flex;
|
|
7037
|
+
color: var(--puck-field-array-add-color-icon, var(--puck-color-interactive));
|
|
7038
|
+
justify-content: center;
|
|
7039
|
+
cursor: pointer;
|
|
7040
|
+
width: 100%;
|
|
7041
|
+
margin: 0;
|
|
7042
|
+
padding: calc(var(--puck-field-space-y, var(--puck-space-3)) + 2px) var( --puck-field-space-x, calc(var(--puck-space-4) - var(--_puck-field-array-border-width)) );
|
|
7043
|
+
text-align: left;
|
|
7044
|
+
transition: background-color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
7045
|
+
}
|
|
7046
|
+
._ArrayField--hasItems_62huh_58 > ._ArrayField-addButton_62huh_38 {
|
|
7047
|
+
border-top: var(--_puck-field-array-border-width) solid var(--_puck-field-array-border-color);
|
|
7048
|
+
border-top-left-radius: 0;
|
|
7049
|
+
border-top-right-radius: 0;
|
|
7050
|
+
}
|
|
7051
|
+
._ArrayField-addButton_62huh_38:focus-visible {
|
|
7052
|
+
outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
|
|
7053
|
+
outline-offset: var(--puck-border-width-focus);
|
|
7054
|
+
position: relative;
|
|
7055
|
+
}
|
|
7056
|
+
@media (hover: hover) and (pointer: fine) {
|
|
7057
|
+
._ArrayField_62huh_5:not(._ArrayField--isDraggingFrom_62huh_30) > ._ArrayField-addButton_62huh_38:hover {
|
|
7058
|
+
background: var( --puck-field-color-bg-hover, var(--puck-color-interactive-soft-hover) );
|
|
7059
|
+
color: var( --puck-field-color-text-hover, var(--puck-field-color-text, var(--puck-color-text)) );
|
|
7060
|
+
transition: none;
|
|
7061
|
+
}
|
|
7062
|
+
}
|
|
7063
|
+
._ArrayField_62huh_5:not(._ArrayField--isDraggingFrom_62huh_30) > ._ArrayField-addButton_62huh_38:active {
|
|
7064
|
+
background: var( --puck-field-color-bg-hover, var(--puck-color-interactive-soft-hover) );
|
|
7065
|
+
transition: none;
|
|
7066
|
+
}
|
|
7067
|
+
._ArrayField-inner_62huh_93 {
|
|
7068
|
+
margin-top: -1px;
|
|
7069
|
+
}
|
|
7070
|
+
._ArrayFieldItem_62huh_101 {
|
|
7071
|
+
display: block;
|
|
7072
|
+
position: relative;
|
|
7073
|
+
border-top-left-radius: var(--_puck-field-array-radius-inner);
|
|
7074
|
+
border-top-right-radius: var(--_puck-field-array-radius-inner);
|
|
7075
|
+
border-top: var(--_puck-field-array-border-width) solid var(--_puck-field-array-border-color);
|
|
7076
|
+
}
|
|
7077
|
+
._ArrayFieldItem--isDragging_62huh_110 {
|
|
7078
|
+
border-top: transparent;
|
|
7079
|
+
}
|
|
7080
|
+
._ArrayFieldItem--isExpanded_62huh_114::before {
|
|
7081
|
+
display: none;
|
|
7082
|
+
}
|
|
7083
|
+
._ArrayFieldItem--isExpanded_62huh_114 {
|
|
7084
|
+
border-bottom: 0;
|
|
7085
|
+
outline-offset: 0px !important;
|
|
7086
|
+
outline: var(--_puck-field-array-border-width) solid var(--puck-field-color-border-focus, var(--puck-color-focus-ring)) !important;
|
|
7087
|
+
z-index: 2;
|
|
7088
|
+
}
|
|
7089
|
+
._ArrayFieldItem--isDragging_62huh_110 {
|
|
7090
|
+
outline: var(--puck-border-width-focus) var(--puck-field-color-border-dragging, var(--puck-color-selection-border)) solid !important;
|
|
7091
|
+
}
|
|
7092
|
+
._ArrayFieldItem--isDragging_62huh_110 ._ArrayFieldItem-summary_62huh_132:active {
|
|
7093
|
+
background-color: var(--puck-field-color-bg, var(--puck-color-surface));
|
|
7094
|
+
}
|
|
7095
|
+
._ArrayFieldItem_62huh_101 + ._ArrayFieldItem_62huh_101 {
|
|
7096
|
+
border-top-left-radius: 0;
|
|
7097
|
+
border-top-right-radius: 0;
|
|
7098
|
+
}
|
|
7099
|
+
._ArrayFieldItem-summary_62huh_132 {
|
|
7100
|
+
--_puck-drag-icon-color: var(--puck-field-color-text, var(--puck-color-text));
|
|
7101
|
+
--_puck-drag-icon-color-hover: var( --puck-field-color-text-hover, var(--puck-field-color-text, var(--puck-color-text)) );
|
|
7102
|
+
background: var(--puck-field-color-bg, var(--puck-color-surface));
|
|
7103
|
+
color: var(--puck-field-color-text, var(--puck-color-text));
|
|
7104
|
+
cursor: pointer;
|
|
7105
|
+
display: flex;
|
|
7106
|
+
align-items: center;
|
|
7107
|
+
gap: 2px;
|
|
7108
|
+
justify-content: space-between;
|
|
7109
|
+
font-size: var(--puck-field-font-size, var(--puck-font-size-xxs));
|
|
7110
|
+
list-style: none;
|
|
7111
|
+
padding: var(--puck-field-space-y, var(--puck-space-3)) var( --puck-field-space-x, calc(var(--puck-space-4) - var(--_puck-field-array-border-width)) );
|
|
7112
|
+
position: relative;
|
|
7113
|
+
overflow: hidden;
|
|
7114
|
+
transition: background-color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
7115
|
+
}
|
|
7116
|
+
._ArrayFieldItem--noFields_62huh_167 > ._ArrayFieldItem-summary_62huh_132 {
|
|
7117
|
+
cursor: grab;
|
|
7118
|
+
}
|
|
7119
|
+
._ArrayFieldItem_62huh_101:first-of-type > ._ArrayFieldItem-summary_62huh_132 {
|
|
7120
|
+
border-top-left-radius: var(--_puck-field-array-radius-inner);
|
|
7121
|
+
border-top-right-radius: var(--_puck-field-array-radius-inner);
|
|
7122
|
+
}
|
|
7123
|
+
._ArrayField--addDisabled_62huh_176 > ._ArrayField-inner_62huh_93 > ._ArrayFieldItem_62huh_101:last-of-type:not(._ArrayFieldItem--isExpanded_62huh_114) > ._ArrayFieldItem-summary_62huh_132 {
|
|
7124
|
+
border-bottom-left-radius: var(--_puck-field-array-radius-inner);
|
|
7125
|
+
border-bottom-right-radius: var(--_puck-field-array-radius-inner);
|
|
7126
|
+
}
|
|
7127
|
+
._ArrayField--addDisabled_62huh_176 > ._ArrayField-inner_62huh_93 > ._ArrayFieldItem--isExpanded_62huh_114:last-of-type {
|
|
7128
|
+
border-bottom-left-radius: var(--_puck-field-array-radius-inner);
|
|
7129
|
+
border-bottom-right-radius: var(--_puck-field-array-radius-inner);
|
|
7130
|
+
}
|
|
7131
|
+
._ArrayFieldItem-summary_62huh_132:focus-visible {
|
|
7132
|
+
outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
|
|
7133
|
+
outline-offset: var(--puck-border-width-focus);
|
|
7134
|
+
}
|
|
7135
|
+
@media (hover: hover) and (pointer: fine) {
|
|
7136
|
+
._ArrayFieldItem-summary_62huh_132:hover {
|
|
7137
|
+
background-color: var( --puck-field-color-bg-hover, var(--puck-color-interactive-soft-hover) );
|
|
7138
|
+
color: var( --puck-field-color-text-hover, var(--puck-field-color-text, var(--puck-color-text)) );
|
|
7139
|
+
transition: none;
|
|
7140
|
+
}
|
|
7141
|
+
}
|
|
7142
|
+
._ArrayFieldItem-summary_62huh_132:active {
|
|
7143
|
+
background-color: var( --puck-field-color-bg-hover, var(--puck-color-interactive-soft-hover) );
|
|
7144
|
+
transition: none;
|
|
7145
|
+
}
|
|
7146
|
+
._ArrayFieldItem--isExpanded_62huh_114 > ._ArrayFieldItem-summary_62huh_132 {
|
|
7147
|
+
background: var( --puck-field-color-bg-active, var(--puck-color-interactive-soft) );
|
|
7148
|
+
color: var(--puck-field-color-text-active, var(--puck-color-interactive));
|
|
7149
|
+
font-weight: var(--puck-font-weight-semibold);
|
|
7150
|
+
transition: none;
|
|
7151
|
+
}
|
|
7152
|
+
._ArrayFieldItem-body_62huh_228 {
|
|
7153
|
+
background: var(--puck-field-color-surface, var(--puck-color-surface));
|
|
7154
|
+
display: none;
|
|
7155
|
+
}
|
|
7156
|
+
._ArrayFieldItem--isExpanded_62huh_114 > ._ArrayFieldItem-body_62huh_228 {
|
|
7157
|
+
display: block;
|
|
7158
|
+
}
|
|
7159
|
+
._ArrayFieldItem-fieldset_62huh_237 {
|
|
7160
|
+
border: none;
|
|
7161
|
+
border-top: var(--_puck-field-array-border-width) solid var(--_puck-field-array-border-color);
|
|
7162
|
+
margin: 0;
|
|
7163
|
+
min-width: 0;
|
|
7164
|
+
padding: var(--puck-field-space-surface-y, var(--puck-space-4)) var( --puck-field-space-surface-x, calc(var(--puck-space-4) - var(--_puck-field-array-border-width)) );
|
|
7165
|
+
}
|
|
7166
|
+
._ArrayFieldItem-rhs_62huh_250 {
|
|
7167
|
+
display: flex;
|
|
7168
|
+
gap: var(--puck-space-1);
|
|
7169
|
+
align-items: center;
|
|
7170
|
+
}
|
|
7171
|
+
._ArrayFieldItem-actions_62huh_256 {
|
|
7172
|
+
color: var(--puck-color-text-secondary);
|
|
7173
|
+
display: flex;
|
|
7174
|
+
gap: var(--puck-space-1);
|
|
7175
|
+
opacity: 0;
|
|
7176
|
+
}
|
|
7177
|
+
._ArrayFieldItem-summary_62huh_132:focus-within > ._ArrayFieldItem-rhs_62huh_250 > ._ArrayFieldItem-actions_62huh_256,
|
|
7178
|
+
._ArrayFieldItem-summary_62huh_132:hover > ._ArrayFieldItem-rhs_62huh_250 > ._ArrayFieldItem-actions_62huh_256 {
|
|
7179
|
+
opacity: 1;
|
|
7180
|
+
}
|
|
7181
|
+
|
|
7182
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/IconButton/IconButton.module.css/#css-module-data */
|
|
7183
|
+
._IconButton_yuha3_1 {
|
|
7184
|
+
align-items: center;
|
|
7185
|
+
background: var(--puck-iconbutton-color-bg, transparent);
|
|
7186
|
+
border: none;
|
|
7187
|
+
border-radius: var(--puck-iconbutton-radius, var(--puck-radius-m));
|
|
7188
|
+
color: var(--puck-iconbutton-color-icon, currentColor);
|
|
7189
|
+
display: flex;
|
|
7190
|
+
font-family: var(--puck-font-family);
|
|
7191
|
+
justify-content: center;
|
|
7192
|
+
padding: var(--puck-iconbutton-space, var(--puck-space-1));
|
|
7193
|
+
transition: background-color var(--puck-duration-fast) var(--puck-ease-exit), color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
7194
|
+
}
|
|
7195
|
+
._IconButton--active_yuha3_15 {
|
|
7196
|
+
color: var( --puck-iconbutton-color-icon-active, var(--puck-color-interactive) );
|
|
7197
|
+
}
|
|
7198
|
+
._IconButton_yuha3_1:focus-visible {
|
|
7199
|
+
outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
|
|
7200
|
+
outline-offset: calc(var(--puck-border-width-focus) * -1);
|
|
7201
|
+
}
|
|
7202
|
+
@media (hover: hover) and (pointer: fine) {
|
|
7203
|
+
._IconButton_yuha3_1:hover:not(._IconButton--disabled_yuha3_28) {
|
|
7204
|
+
background: var( --puck-iconbutton-color-bg-hover, var(--puck-color-interactive-neutral-hover) );
|
|
7205
|
+
color: var( --puck-iconbutton-color-icon-hover, var(--puck-color-interactive) );
|
|
7206
|
+
cursor: pointer;
|
|
7207
|
+
transition: none;
|
|
7208
|
+
}
|
|
7209
|
+
}
|
|
7210
|
+
._IconButton_yuha3_1:active {
|
|
7211
|
+
background: var( --puck-iconbutton-color-bg-active, var(--puck-color-interactive-soft) );
|
|
7212
|
+
transition: none;
|
|
7213
|
+
}
|
|
7214
|
+
._IconButton--disabled_yuha3_28 {
|
|
7215
|
+
color: var( --puck-iconbutton-color-icon-disabled, var(--puck-color-text-subtle) );
|
|
7216
|
+
}
|
|
7217
|
+
|
|
7218
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Loader/styles.module.css/#css-module-data */
|
|
7219
|
+
@keyframes _loader-animation_1w5zn_1 {
|
|
7220
|
+
0% {
|
|
7221
|
+
transform: rotate(0deg) scale(1);
|
|
7222
|
+
}
|
|
7223
|
+
50% {
|
|
7224
|
+
transform: rotate(180deg) scale(0.8);
|
|
7225
|
+
}
|
|
7226
|
+
100% {
|
|
7227
|
+
transform: rotate(360deg) scale(1);
|
|
7228
|
+
}
|
|
7229
|
+
}
|
|
7230
|
+
._Loader_1w5zn_13 {
|
|
7231
|
+
background: transparent;
|
|
7232
|
+
border-radius: var(--puck-radius-round);
|
|
7233
|
+
border: var(--puck-border-width-focus) solid currentColor;
|
|
7234
|
+
border-bottom-color: transparent;
|
|
7235
|
+
display: inline-block;
|
|
7236
|
+
animation: _loader-animation_1w5zn_1 1s 0s infinite linear;
|
|
7237
|
+
animation-fill-mode: both;
|
|
7238
|
+
}
|
|
7239
|
+
|
|
7240
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/DragIcon/styles.module.css/#css-module-data */
|
|
7241
|
+
._DragIcon_5e515_1 {
|
|
7242
|
+
color: var(--_puck-drag-icon-color, var(--puck-color-text-muted));
|
|
7243
|
+
cursor: grab;
|
|
7244
|
+
padding: var(--puck-space-1);
|
|
7245
|
+
border-radius: var(--puck-radius-m);
|
|
7246
|
+
}
|
|
7247
|
+
._DragIcon--disabled_5e515_10 {
|
|
7248
|
+
cursor: no-drop;
|
|
7249
|
+
}
|
|
7250
|
+
@media (hover: hover) and (pointer: fine) {
|
|
7251
|
+
._DragIcon_5e515_1:not(._DragIcon--disabled_5e515_10):hover {
|
|
7252
|
+
color: var(--_puck-drag-icon-color-hover, var(--puck-color-focus-ring));
|
|
7253
|
+
}
|
|
7254
|
+
}
|
|
7255
|
+
|
|
7256
|
+
/* components/Sortable/styles.css */
|
|
7257
|
+
[data-dnd-placeholder] * {
|
|
7258
|
+
opacity: 0 !important;
|
|
7259
|
+
}
|
|
7260
|
+
[data-dnd-placeholder] {
|
|
7261
|
+
background: var( --_puck-field-array-color-placeholder, var(--puck-color-azure-06) ) !important;
|
|
7262
|
+
border: none !important;
|
|
7263
|
+
color: transparent !important;
|
|
7264
|
+
opacity: 0.3 !important;
|
|
7265
|
+
outline: none !important;
|
|
7266
|
+
transition: none !important;
|
|
7267
|
+
}
|
|
7268
|
+
|
|
7269
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/ExternalInput/styles.module.css/#css-module-data */
|
|
7270
|
+
._ExternalInput-actions_143vl_1 {
|
|
7271
|
+
display: flex;
|
|
7272
|
+
}
|
|
7273
|
+
._ExternalInput-button_143vl_5 {
|
|
7274
|
+
display: flex;
|
|
7275
|
+
gap: var(--puck-space-2);
|
|
7276
|
+
align-items: center;
|
|
7277
|
+
justify-content: center;
|
|
7278
|
+
background-color: var(--puck-field-color-bg, var(--puck-color-surface));
|
|
7279
|
+
border: var(--puck-field-border-width, var(--puck-border-width-regular)) solid var(--puck-field-color-border, var(--puck-color-border));
|
|
7280
|
+
border-radius: var(--puck-field-radius, var(--puck-radius-m));
|
|
7281
|
+
color: var(--puck-field-color-text-active, var(--puck-color-interactive));
|
|
7282
|
+
padding: var(--puck-field-space-y, var(--puck-space-3)) var( --puck-field-space-x, calc( var(--puck-space-4) - var(--puck-field-border-width, var(--puck-border-width-regular)) ) );
|
|
7283
|
+
font-size: var(--puck-field-font-size, var(--puck-font-size-xxs));
|
|
7284
|
+
font-weight: var(--puck-font-weight-medium);
|
|
7285
|
+
white-space: nowrap;
|
|
7286
|
+
text-overflow: ellipsis;
|
|
7287
|
+
transition: background-color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
7288
|
+
position: relative;
|
|
7289
|
+
overflow: hidden;
|
|
7290
|
+
flex-grow: 1;
|
|
7291
|
+
cursor: pointer;
|
|
7292
|
+
}
|
|
7293
|
+
._ExternalInput--dataSelected_143vl_34 ._ExternalInput-button_143vl_5 {
|
|
7294
|
+
color: var(--puck-field-color-text, var(--puck-color-text));
|
|
7295
|
+
display: block;
|
|
7296
|
+
border-top-right-radius: 0px;
|
|
7297
|
+
border-bottom-right-radius: 0px;
|
|
7298
|
+
}
|
|
7299
|
+
._ExternalInput--readOnly_143vl_41 ._ExternalInput-button_143vl_5 {
|
|
7300
|
+
background-color: var( --puck-field-color-bg-disabled, var(--puck-color-surface-muted) );
|
|
7301
|
+
}
|
|
7302
|
+
._ExternalInput-detachButton_143vl_48 {
|
|
7303
|
+
border: var(--puck-field-border-width, var(--puck-border-width-regular)) solid var(--puck-field-color-border, var(--puck-color-border));
|
|
7304
|
+
border-top-right-radius: var(--puck-field-radius, var(--puck-radius-m));
|
|
7305
|
+
border-bottom-right-radius: var(--puck-field-radius, var(--puck-radius-m));
|
|
7306
|
+
background-color: var( --puck-field-external-detach-color-bg, var(--puck-color-surface-subtle) );
|
|
7307
|
+
color: var( --puck-field-external-detach-color-text, var(--puck-color-text-muted) );
|
|
7308
|
+
display: flex;
|
|
7309
|
+
gap: var(--puck-space-2);
|
|
7310
|
+
align-items: center;
|
|
7311
|
+
justify-content: center;
|
|
7312
|
+
padding: var(--puck-space-2) var(--puck-space-3);
|
|
7313
|
+
position: relative;
|
|
7314
|
+
transition: background-color var(--puck-duration-fast) var(--puck-ease-exit), color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
7315
|
+
margin-inline-start: -1px;
|
|
7316
|
+
cursor: pointer;
|
|
7317
|
+
}
|
|
7318
|
+
._ExternalInput-button_143vl_5:focus-visible,
|
|
7319
|
+
._ExternalInput-detachButton_143vl_48:focus-visible {
|
|
7320
|
+
outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
|
|
7321
|
+
outline-offset: var(--puck-border-width-focus);
|
|
7322
|
+
z-index: 1;
|
|
7323
|
+
}
|
|
7324
|
+
@media (hover: hover) and (pointer: fine) {
|
|
7325
|
+
._ExternalInput_143vl_1:not(._ExternalInput--readOnly_143vl_41) ._ExternalInput-button_143vl_5:hover,
|
|
7326
|
+
._ExternalInput_143vl_1:not(._ExternalInput--readOnly_143vl_41) ._ExternalInput-detachButton_143vl_48:hover {
|
|
7327
|
+
background: var( --puck-field-color-bg-hover, var(--puck-color-interactive-soft-hover) );
|
|
7328
|
+
transition: none;
|
|
7329
|
+
}
|
|
7330
|
+
._ExternalInput_143vl_1:not(._ExternalInput--readOnly_143vl_41) ._ExternalInput-detachButton_143vl_48:hover {
|
|
7331
|
+
color: var( --puck-field-color-text-hover, var(--puck-field-external-detach-color-text, var(--puck-color-text-muted)) );
|
|
7332
|
+
}
|
|
7333
|
+
._ExternalInput--dataSelected_143vl_34:not(._ExternalInput--readOnly_143vl_41) ._ExternalInput-button_143vl_5:hover {
|
|
7334
|
+
color: var( --puck-field-color-text-hover, var(--puck-field-color-text, var(--puck-color-text)) );
|
|
7335
|
+
}
|
|
7336
|
+
}
|
|
7337
|
+
._ExternalInput_143vl_1:not(._ExternalInput--readOnly_143vl_41) ._ExternalInput-button_143vl_5:active,
|
|
7338
|
+
._ExternalInput_143vl_1:not(._ExternalInput--readOnly_143vl_41) ._ExternalInput-detachButton_143vl_48:active {
|
|
7339
|
+
background: var( --puck-field-color-bg-hover, var(--puck-color-interactive-soft-hover) );
|
|
7340
|
+
transition: none;
|
|
7341
|
+
}
|
|
7342
|
+
._ExternalInputModal_143vl_118 {
|
|
7343
|
+
color: var(--puck-color-text);
|
|
7344
|
+
display: grid;
|
|
7345
|
+
grid-template-rows: min-content minmax(128px, 100%) min-content;
|
|
7346
|
+
grid-template-columns: 100%;
|
|
7347
|
+
position: relative;
|
|
7348
|
+
min-height: 50dvh;
|
|
7349
|
+
max-height: 90dvh;
|
|
7350
|
+
}
|
|
7351
|
+
._ExternalInputModal-grid_143vl_128 {
|
|
7352
|
+
display: flex;
|
|
7353
|
+
flex-direction: column;
|
|
7354
|
+
}
|
|
7355
|
+
@media (min-width: 458px) {
|
|
7356
|
+
._ExternalInputModal-grid_143vl_128 {
|
|
7357
|
+
display: grid;
|
|
7358
|
+
grid-template-columns: 100%;
|
|
7359
|
+
}
|
|
7360
|
+
._ExternalInputModal--filtersToggled_143vl_139 ._ExternalInputModal-grid_143vl_128 {
|
|
7361
|
+
grid-template-columns: 25% 75%;
|
|
7362
|
+
}
|
|
7363
|
+
}
|
|
7364
|
+
._ExternalInputModal-filters_143vl_144 {
|
|
7365
|
+
border-bottom: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
7366
|
+
}
|
|
7367
|
+
._ExternalInputModal--filtersToggled_143vl_139 ._ExternalInputModal-filters_143vl_144 {
|
|
7368
|
+
display: none;
|
|
7369
|
+
}
|
|
7370
|
+
@media (min-width: 458px) {
|
|
7371
|
+
._ExternalInputModal-filters_143vl_144 {
|
|
7372
|
+
border-inline-end: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
7373
|
+
display: none;
|
|
7374
|
+
}
|
|
7375
|
+
._ExternalInputModal--filtersToggled_143vl_139 ._ExternalInputModal-filters_143vl_144 {
|
|
7376
|
+
display: block;
|
|
7377
|
+
}
|
|
7378
|
+
}
|
|
7379
|
+
._ExternalInputModal-masthead_143vl_164 {
|
|
7380
|
+
background-color: var(--puck-color-surface-subtle);
|
|
7381
|
+
border-bottom: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
7382
|
+
display: flex;
|
|
7383
|
+
flex-wrap: wrap;
|
|
7384
|
+
gap: var(--puck-space-5);
|
|
7385
|
+
padding: var(--puck-space-5);
|
|
7386
|
+
}
|
|
7387
|
+
._ExternalInputModal-tableWrapper_143vl_173 {
|
|
7388
|
+
position: relative;
|
|
7389
|
+
overflow-x: auto;
|
|
7390
|
+
overflow-y: auto;
|
|
7391
|
+
flex-grow: 1;
|
|
7392
|
+
}
|
|
7393
|
+
._ExternalInputModal-table_143vl_173 {
|
|
7394
|
+
border-collapse: unset;
|
|
7395
|
+
border-spacing: 0px;
|
|
7396
|
+
color: var(--puck-color-text);
|
|
7397
|
+
position: relative;
|
|
7398
|
+
z-index: 0;
|
|
7399
|
+
min-width: 100%;
|
|
7400
|
+
}
|
|
7401
|
+
._ExternalInputModal-thead_143vl_189 {
|
|
7402
|
+
background-color: var(--puck-color-surface);
|
|
7403
|
+
position: sticky;
|
|
7404
|
+
top: 0;
|
|
7405
|
+
z-index: 1;
|
|
7406
|
+
}
|
|
7407
|
+
._ExternalInputModal-th_143vl_189 {
|
|
7408
|
+
border-bottom: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
7409
|
+
color: var(--puck-color-text-secondary);
|
|
7410
|
+
font-weight: var(--puck-font-weight-medium);
|
|
7411
|
+
font-size: var(--puck-font-size-xxs);
|
|
7412
|
+
padding: var(--puck-space-4) var(--puck-space-5);
|
|
7413
|
+
}
|
|
7414
|
+
._ExternalInputModal-td_143vl_204 {
|
|
7415
|
+
border-bottom: var(--puck-border-width-regular) solid var(--puck-color-border-muted);
|
|
7416
|
+
padding: var(--puck-space-4) var(--puck-space-5);
|
|
7417
|
+
}
|
|
7418
|
+
._ExternalInputModal-tr_143vl_210 ._ExternalInputModal-td_143vl_204:first-of-type {
|
|
7419
|
+
font-weight: var(--puck-font-weight-medium);
|
|
7420
|
+
width: 1%;
|
|
7421
|
+
white-space: nowrap;
|
|
7422
|
+
}
|
|
7423
|
+
@media (hover: hover) and (pointer: fine) {
|
|
7424
|
+
._ExternalInputModal-tbody_143vl_217 ._ExternalInputModal-tr_143vl_210:hover {
|
|
7425
|
+
background: var(--puck-color-interactive-soft-hover);
|
|
7426
|
+
color: var(--puck-color-interactive);
|
|
7427
|
+
cursor: pointer;
|
|
7428
|
+
position: relative;
|
|
7429
|
+
margin-inline-start: -5px;
|
|
7430
|
+
}
|
|
7431
|
+
._ExternalInputModal-tbody_143vl_217 ._ExternalInputModal-tr_143vl_210:hover ._ExternalInputModal-td_143vl_204:first-of-type {
|
|
7432
|
+
border-inline-start: var(--puck-border-width-strong) solid var(--puck-color-interactive);
|
|
7433
|
+
padding-inline-start: 20px;
|
|
7434
|
+
}
|
|
7435
|
+
}
|
|
7436
|
+
._ExternalInputModal-tbody_143vl_217 ._ExternalInputModal-tr_143vl_210:last-of-type ._ExternalInputModal-td_143vl_204 {
|
|
7437
|
+
border-bottom: none;
|
|
7438
|
+
}
|
|
7439
|
+
._ExternalInputModal-tableWrapper_143vl_173 {
|
|
7440
|
+
display: none;
|
|
7441
|
+
}
|
|
7442
|
+
._ExternalInputModal--hasData_143vl_244 ._ExternalInputModal-tableWrapper_143vl_173 {
|
|
7443
|
+
display: block;
|
|
7444
|
+
}
|
|
7445
|
+
._ExternalInputModal-loadingBanner_143vl_248 {
|
|
7446
|
+
display: none;
|
|
7447
|
+
background-color: color-mix(in srgb, var(--puck-color-surface) 90%, transparent);
|
|
7448
|
+
padding: 64px;
|
|
7449
|
+
align-items: center;
|
|
7450
|
+
justify-content: center;
|
|
7451
|
+
position: absolute;
|
|
7452
|
+
top: 0;
|
|
7453
|
+
left: 0;
|
|
7454
|
+
right: 0;
|
|
7455
|
+
bottom: 0;
|
|
7456
|
+
}
|
|
7457
|
+
._ExternalInputModal--isLoading_143vl_265 ._ExternalInputModal-loadingBanner_143vl_248 {
|
|
7458
|
+
display: flex;
|
|
7459
|
+
}
|
|
7460
|
+
._ExternalInputModal-searchForm_143vl_269 {
|
|
7461
|
+
display: flex;
|
|
7462
|
+
flex-wrap: wrap;
|
|
7463
|
+
gap: var(--puck-space-3);
|
|
7464
|
+
flex-grow: 1;
|
|
7465
|
+
}
|
|
7466
|
+
@media (min-width: 458px) {
|
|
7467
|
+
._ExternalInputModal-searchForm_143vl_269 {
|
|
7468
|
+
flex-wrap: nowrap;
|
|
7469
|
+
}
|
|
7470
|
+
}
|
|
7471
|
+
._ExternalInputModal-search_143vl_269 {
|
|
7472
|
+
display: flex;
|
|
7473
|
+
background: var(--puck-color-surface);
|
|
7474
|
+
border-width: var(--puck-border-width-regular);
|
|
7475
|
+
border-style: solid;
|
|
7476
|
+
border-color: var(--puck-color-border);
|
|
7477
|
+
border-radius: var(--puck-radius-m);
|
|
7478
|
+
flex-grow: 1;
|
|
7479
|
+
transition: border-color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
7480
|
+
}
|
|
7481
|
+
._ExternalInputModal-search_143vl_269:focus-within {
|
|
7482
|
+
border-color: var(--puck-color-border-hover);
|
|
7483
|
+
outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
|
|
7484
|
+
transition: none;
|
|
7485
|
+
}
|
|
7486
|
+
@media (hover: hover) and (pointer: fine) {
|
|
7487
|
+
._ExternalInputModal-search_143vl_269:hover {
|
|
7488
|
+
border-color: var(--puck-color-border-hover);
|
|
7489
|
+
transition: none;
|
|
7490
|
+
}
|
|
7491
|
+
}
|
|
7492
|
+
._ExternalInputModal-searchIcon_143vl_306 {
|
|
7493
|
+
align-items: center;
|
|
7494
|
+
background: var(--puck-color-surface-subtle);
|
|
7495
|
+
border-bottom-left-radius: var(--puck-radius-m);
|
|
7496
|
+
border-top-left-radius: var(--puck-radius-m);
|
|
7497
|
+
border-inline-end: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
7498
|
+
color: var(--puck-color-text-subtle);
|
|
7499
|
+
display: flex;
|
|
7500
|
+
justify-content: center;
|
|
7501
|
+
padding: var(--puck-space-3) calc(var(--puck-space-4) - var(--puck-border-width-regular));
|
|
7502
|
+
transition: color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
7503
|
+
}
|
|
7504
|
+
._ExternalInputModal-search_143vl_269:focus-within ._ExternalInputModal-searchIcon_143vl_306 {
|
|
7505
|
+
color: var(--puck-color-text-secondary);
|
|
7506
|
+
transition: none;
|
|
7507
|
+
}
|
|
7508
|
+
@media (hover: hover) and (pointer: fine) {
|
|
7509
|
+
._ExternalInputModal-search_143vl_269:hover ._ExternalInputModal-searchIcon_143vl_306 {
|
|
7510
|
+
color: var(--puck-color-text-secondary);
|
|
7511
|
+
transition: none;
|
|
7512
|
+
}
|
|
7513
|
+
}
|
|
7514
|
+
._ExternalInputModal-searchIconText_143vl_333 {
|
|
7515
|
+
clip: rect(0 0 0 0);
|
|
7516
|
+
clip-path: inset(100%);
|
|
7517
|
+
height: 1px;
|
|
7518
|
+
overflow: hidden;
|
|
7519
|
+
position: absolute;
|
|
7520
|
+
white-space: nowrap;
|
|
7521
|
+
width: 1px;
|
|
7522
|
+
}
|
|
7523
|
+
._ExternalInputModal-searchInput_143vl_343 {
|
|
7524
|
+
border: none;
|
|
7525
|
+
border-radius: var(--puck-radius-m);
|
|
7526
|
+
background: var(--puck-color-surface);
|
|
7527
|
+
font-family: inherit;
|
|
7528
|
+
font-size: var(--puck-font-size-xxs);
|
|
7529
|
+
padding: var(--puck-space-3) calc(var(--puck-space-4) - var(--puck-border-width-regular));
|
|
7530
|
+
width: 100%;
|
|
7531
|
+
}
|
|
7532
|
+
._ExternalInputModal-searchInput_143vl_343:focus {
|
|
7533
|
+
outline: 0;
|
|
7534
|
+
}
|
|
7535
|
+
._ExternalInputModal-searchActions_143vl_358 {
|
|
7536
|
+
display: flex;
|
|
7537
|
+
gap: var(--puck-space-2);
|
|
7538
|
+
height: 44px;
|
|
7539
|
+
width: 100%;
|
|
7540
|
+
}
|
|
7541
|
+
@media (min-width: 458px) {
|
|
7542
|
+
._ExternalInputModal-searchActions_143vl_358 {
|
|
7543
|
+
width: auto;
|
|
7544
|
+
}
|
|
7545
|
+
}
|
|
7546
|
+
._ExternalInputModal-searchActionIcon_143vl_371 {
|
|
7547
|
+
align-self: center;
|
|
7548
|
+
}
|
|
7549
|
+
._ExternalInputModal-footerContainer_143vl_375 {
|
|
7550
|
+
background-color: var(--puck-color-surface-subtle);
|
|
7551
|
+
border-top: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
7552
|
+
color: var(--puck-color-text-secondary);
|
|
7553
|
+
padding: var(--puck-space-4);
|
|
7554
|
+
}
|
|
7555
|
+
._ExternalInputModal-footer_143vl_375 {
|
|
7556
|
+
font-weight: var(--puck-font-weight-medium);
|
|
7557
|
+
font-size: var(--puck-font-size-xxs);
|
|
7558
|
+
text-align: right;
|
|
7559
|
+
}
|
|
7560
|
+
._ExternalInputModal-field_143vl_388 {
|
|
7561
|
+
color: var(--puck-color-text-secondary);
|
|
7562
|
+
margin: var(--puck-space-4);
|
|
7563
|
+
margin-bottom: var(--puck-space-3);
|
|
7564
|
+
display: block;
|
|
7565
|
+
}
|
|
7566
|
+
|
|
7567
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Modal/styles.module.css/#css-module-data */
|
|
7568
|
+
._Modal_g5xob_1 {
|
|
7569
|
+
background: var(--puck-color-overlay-backdrop);
|
|
7570
|
+
display: none;
|
|
7571
|
+
justify-content: center;
|
|
7572
|
+
align-items: center;
|
|
7573
|
+
position: fixed;
|
|
7574
|
+
top: 0;
|
|
7575
|
+
left: 0;
|
|
7576
|
+
bottom: 0;
|
|
7577
|
+
right: 0;
|
|
7578
|
+
z-index: 1;
|
|
7579
|
+
padding: 32px;
|
|
7580
|
+
}
|
|
7581
|
+
._Modal--isOpen_g5xob_15 {
|
|
7582
|
+
display: flex;
|
|
7583
|
+
}
|
|
7584
|
+
._Modal-inner_g5xob_19 {
|
|
7585
|
+
width: 100%;
|
|
7586
|
+
max-width: 1024px;
|
|
7587
|
+
border-radius: var(--puck-radius-l);
|
|
7588
|
+
overflow: hidden;
|
|
7589
|
+
background: var(--puck-color-surface);
|
|
7590
|
+
display: flex;
|
|
7591
|
+
flex-direction: column;
|
|
7592
|
+
max-height: 90dvh;
|
|
7593
|
+
}
|
|
7594
|
+
|
|
7595
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css/#css-module-data */
|
|
7596
|
+
._Heading_97eh4_1 {
|
|
7597
|
+
display: block;
|
|
7598
|
+
color: var(--_puck-heading-color, var(--puck-color-text));
|
|
7599
|
+
font-weight: var(--puck-font-weight-bold);
|
|
7600
|
+
margin: 0;
|
|
7601
|
+
}
|
|
7602
|
+
._Heading_97eh4_1 b {
|
|
7603
|
+
font-weight: var(--puck-font-weight-bold);
|
|
7604
|
+
}
|
|
7605
|
+
._Heading--xxxxl_97eh4_12 {
|
|
7606
|
+
font-size: var(--puck-font-size-xxxxl);
|
|
7607
|
+
letter-spacing: var(--puck-letter-spacing-heading);
|
|
7608
|
+
font-weight: var(--puck-font-weight-heavy);
|
|
7609
|
+
}
|
|
7610
|
+
._Heading--xxxl_97eh4_18 {
|
|
7611
|
+
font-size: var(--puck-font-size-xxxl);
|
|
7612
|
+
}
|
|
7613
|
+
._Heading--xxl_97eh4_22 {
|
|
7614
|
+
font-size: var(--puck-font-size-xxl);
|
|
7615
|
+
}
|
|
7616
|
+
._Heading--xl_97eh4_26 {
|
|
7617
|
+
font-size: var(--puck-font-size-xl);
|
|
7618
|
+
}
|
|
7619
|
+
._Heading--l_97eh4_30 {
|
|
7620
|
+
font-size: var(--puck-font-size-l);
|
|
7621
|
+
}
|
|
7622
|
+
._Heading--m_97eh4_34 {
|
|
7623
|
+
font-size: var(--puck-font-size-m);
|
|
7624
|
+
}
|
|
7625
|
+
._Heading--s_97eh4_38 {
|
|
7626
|
+
font-size: var(--puck-font-size-s);
|
|
7627
|
+
}
|
|
7628
|
+
._Heading--xs_97eh4_42 {
|
|
7629
|
+
font-size: var(--puck-font-size-xs);
|
|
7630
|
+
}
|
|
7631
|
+
|
|
7632
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Button/Button.module.css/#css-module-data */
|
|
7633
|
+
._Button_oe4qj_1 {
|
|
7634
|
+
--_puck-button-default-space-x: 20px;
|
|
7635
|
+
--_puck-button-default-font-size: var(--puck-font-size-xxs);
|
|
7636
|
+
--_puck-button-default-font-weight: var(--puck-font-weight-regular);
|
|
7637
|
+
--_puck-button-default-color-bg-disabled: var(--puck-color-bg-disabled);
|
|
7638
|
+
--_puck-button-default-color-text-disabled: var(--puck-color-text-disabled);
|
|
7639
|
+
appearance: none;
|
|
7640
|
+
background: none;
|
|
7641
|
+
border: var(--puck-border-width-regular) solid transparent;
|
|
7642
|
+
border-radius: var(--puck-button-radius, var(--puck-radius-m));
|
|
7643
|
+
color: var(--puck-color-text-inverse);
|
|
7644
|
+
display: inline-flex;
|
|
7645
|
+
align-items: center;
|
|
7646
|
+
gap: var(--puck-space-2);
|
|
7647
|
+
letter-spacing: var(--puck-letter-spacing-ui);
|
|
7648
|
+
font-family: var(--puck-font-family);
|
|
7649
|
+
box-sizing: border-box;
|
|
7650
|
+
line-height: 1;
|
|
7651
|
+
text-align: center;
|
|
7652
|
+
text-decoration: none;
|
|
7653
|
+
transition: background-color var(--puck-duration-fast) var(--puck-ease-exit), color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
7654
|
+
cursor: pointer;
|
|
7655
|
+
white-space: nowrap;
|
|
7656
|
+
margin: 0;
|
|
7657
|
+
}
|
|
7658
|
+
._Button_oe4qj_1:hover,
|
|
7659
|
+
._Button_oe4qj_1:active {
|
|
7660
|
+
transition: none;
|
|
7661
|
+
}
|
|
7662
|
+
._Button--medium_oe4qj_34 {
|
|
7663
|
+
min-height: 34px;
|
|
7664
|
+
padding-bottom: var( --puck-button-medium-space-y, calc(var(--puck-space-2) - var(--puck-border-width-regular)) );
|
|
7665
|
+
padding-inline-start: var( --puck-button-medium-space-x, calc(var(--_puck-button-default-space-x) - var(--puck-border-width-regular)) );
|
|
7666
|
+
padding-inline-end: var( --puck-button-medium-space-x, calc(var(--_puck-button-default-space-x) - var(--puck-border-width-regular)) );
|
|
7667
|
+
padding-top: var( --puck-button-medium-space-y, calc(var(--puck-space-2) - var(--puck-border-width-regular)) );
|
|
7668
|
+
font-weight: var( --puck-button-medium-font-weight, var(--_puck-button-default-font-weight) );
|
|
7669
|
+
font-size: var( --puck-button-medium-font-size, var(--_puck-button-default-font-size) );
|
|
7670
|
+
}
|
|
7671
|
+
._Button--large_oe4qj_62 {
|
|
7672
|
+
padding-bottom: var( --puck-button-large-space-y, calc(var(--puck-space-3) - var(--puck-border-width-regular)) );
|
|
7673
|
+
padding-inline-start: var( --puck-button-large-space-x, calc(var(--_puck-button-default-space-x) - var(--puck-border-width-regular)) );
|
|
7674
|
+
padding-inline-end: var( --puck-button-large-space-x, calc(var(--_puck-button-default-space-x) - var(--puck-border-width-regular)) );
|
|
7675
|
+
padding-top: var( --puck-button-large-space-y, calc(var(--puck-space-3) - var(--puck-border-width-regular)) );
|
|
7676
|
+
font-weight: var( --puck-button-large-font-weight, var(--_puck-button-default-font-weight) );
|
|
7677
|
+
font-size: var( --puck-button-large-font-size, var(--_puck-button-default-font-size) );
|
|
7678
|
+
}
|
|
7679
|
+
._Button-icon_oe4qj_89 {
|
|
7680
|
+
margin-top: 2px;
|
|
7681
|
+
}
|
|
7682
|
+
._Button--primary_oe4qj_93 {
|
|
7683
|
+
background: var( --puck-button-primary-color-bg, var(--puck-color-interactive) );
|
|
7684
|
+
border-color: var(--puck-button-primary-color-border, transparent);
|
|
7685
|
+
color: var(--puck-button-primary-color-text, var(--puck-color-text-inverse));
|
|
7686
|
+
}
|
|
7687
|
+
._Button_oe4qj_1:focus-visible {
|
|
7688
|
+
outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
|
|
7689
|
+
outline-offset: var(--puck-border-width-focus);
|
|
7690
|
+
}
|
|
7691
|
+
@media (hover: hover) and (pointer: fine) {
|
|
7692
|
+
._Button--primary_oe4qj_93:hover {
|
|
7693
|
+
background-color: var( --puck-button-primary-color-bg-hover, var(--puck-color-interactive-hover) );
|
|
7694
|
+
}
|
|
7695
|
+
}
|
|
7696
|
+
._Button--primary_oe4qj_93:active {
|
|
7697
|
+
background-color: var( --puck-button-primary-color-bg-active, var(--puck-color-interactive-active) );
|
|
7698
|
+
}
|
|
7699
|
+
._Button--primary_oe4qj_93._Button--disabled_oe4qj_123,
|
|
7700
|
+
._Button--primary_oe4qj_93._Button--disabled_oe4qj_123:hover {
|
|
7701
|
+
background-color: var( --puck-button-primary-color-bg-disabled, var(--_puck-button-default-color-bg-disabled) );
|
|
7702
|
+
color: var( --puck-button-primary-color-text-disabled, var(--_puck-button-default-color-text-disabled) );
|
|
7703
|
+
}
|
|
7704
|
+
._Button--secondary_oe4qj_135 {
|
|
7705
|
+
background: var(--puck-button-secondary-color-bg, transparent);
|
|
7706
|
+
border-color: var(--puck-button-secondary-color-border, currentColor);
|
|
7707
|
+
color: var(--puck-button-secondary-color-text, currentColor);
|
|
7708
|
+
}
|
|
7709
|
+
@media (hover: hover) and (pointer: fine) {
|
|
7710
|
+
._Button--secondary_oe4qj_135:hover {
|
|
7711
|
+
background-color: var( --puck-button-secondary-color-bg-hover, var(--puck-color-interactive-soft) );
|
|
7712
|
+
color: var(--puck-button-secondary-color-text, var(--puck-color-text));
|
|
7713
|
+
}
|
|
7714
|
+
}
|
|
7715
|
+
._Button--secondary_oe4qj_135:active {
|
|
7716
|
+
background-color: var( --puck-button-secondary-color-bg-active, var(--puck-color-interactive-soft) );
|
|
7717
|
+
color: var(--puck-button-secondary-color-text, var(--puck-color-text));
|
|
7718
|
+
}
|
|
7719
|
+
._Button--secondary_oe4qj_135._Button--disabled_oe4qj_123,
|
|
7720
|
+
._Button--secondary_oe4qj_135._Button--disabled_oe4qj_123:hover {
|
|
7721
|
+
background-color: var( --puck-button-secondary-color-bg-disabled, var(--_puck-button-default-color-bg-disabled) );
|
|
7722
|
+
color: var( --puck-button-secondary-color-text-disabled, var(--_puck-button-default-color-text-disabled) );
|
|
7723
|
+
}
|
|
7724
|
+
._Button--flush_oe4qj_171 {
|
|
7725
|
+
border-radius: var(--puck-radius-none);
|
|
7726
|
+
}
|
|
7727
|
+
._Button--disabled_oe4qj_123:hover {
|
|
7728
|
+
cursor: not-allowed;
|
|
7729
|
+
}
|
|
7730
|
+
._Button--fullWidth_oe4qj_179 {
|
|
7731
|
+
justify-content: center;
|
|
7732
|
+
width: 100%;
|
|
7733
|
+
}
|
|
7734
|
+
._Button-spinner_oe4qj_184 {
|
|
7735
|
+
padding-inline-start: var(--puck-space-2);
|
|
7736
|
+
}
|
|
7737
|
+
|
|
7738
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextMenu/styles.module.css/#css-module-data */
|
|
7739
|
+
._RichTextMenu_1ve2j_1 {
|
|
7740
|
+
display: flex;
|
|
7741
|
+
flex-direction: row;
|
|
7742
|
+
flex-wrap: nowrap;
|
|
7743
|
+
}
|
|
7744
|
+
._RichTextMenu--form_1ve2j_7 {
|
|
7745
|
+
border-top-left-radius: var(--puck-field-radius, var(--puck-radius-m));
|
|
7746
|
+
border-top-right-radius: var(--puck-field-radius, var(--puck-radius-m));
|
|
7747
|
+
padding: var(--puck-field-richtext-menu-space-y, 6px) var(--puck-field-richtext-menu-space-x, 6px);
|
|
7748
|
+
background-color: var( --puck-field-richtext-menu-color-bg, var(--puck-color-surface-subtle) );
|
|
7749
|
+
position: relative;
|
|
7750
|
+
scrollbar-width: none;
|
|
7751
|
+
overflow-x: auto;
|
|
7752
|
+
}
|
|
7753
|
+
._RichTextMenu-group_1ve2j_21 {
|
|
7754
|
+
display: flex;
|
|
7755
|
+
align-items: space-between;
|
|
7756
|
+
flex-direction: row;
|
|
7757
|
+
flex-wrap: nowrap;
|
|
7758
|
+
padding-inline: 6px;
|
|
7759
|
+
gap: 2px;
|
|
7760
|
+
position: relative;
|
|
7761
|
+
}
|
|
7762
|
+
._RichTextMenu-group_1ve2j_21:first-of-type {
|
|
7763
|
+
padding-left: 0;
|
|
7764
|
+
}
|
|
7765
|
+
._RichTextMenu-group_1ve2j_21:last-of-type {
|
|
7766
|
+
padding-right: 0;
|
|
7767
|
+
}
|
|
7768
|
+
._RichTextMenu--inline_1ve2j_39 ._RichTextMenu-group_1ve2j_21 {
|
|
7769
|
+
color: var(--puck-color-text-inverse);
|
|
7770
|
+
gap: 0px;
|
|
7771
|
+
flex-wrap: nowrap;
|
|
7772
|
+
}
|
|
7773
|
+
._RichTextMenu-group_1ve2j_21 + ._RichTextMenu-group_1ve2j_21 {
|
|
7774
|
+
border-left: var(--puck-border-width-regular) solid var( --puck-field-richtext-menu-color-separator, var(--puck-color-border-muted) );
|
|
7775
|
+
}
|
|
7776
|
+
._RichTextMenu--inline_1ve2j_39 ._RichTextMenu-group_1ve2j_21 + ._RichTextMenu-group_1ve2j_21 {
|
|
7777
|
+
border-left: var(--puck-border-width-hairline) solid var(--puck-color-border-inverse);
|
|
7778
|
+
}
|
|
7779
|
+
|
|
7780
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextMenu/components/Control/styles.module.css/#css-module-data */
|
|
7781
|
+
._Control_id4pm_1 .lucide {
|
|
7782
|
+
height: var(--puck-icon-size-m);
|
|
7783
|
+
width: var(--puck-icon-size-m);
|
|
7784
|
+
}
|
|
7785
|
+
._Control--inline_id4pm_6 .lucide {
|
|
7786
|
+
height: var(--puck-actionbar-action-size, var(--puck-icon-size-s));
|
|
7787
|
+
width: var(--puck-actionbar-action-size, var(--puck-icon-size-s));
|
|
7788
|
+
}
|
|
7789
|
+
|
|
7790
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Select/styles.module.css/#css-module-data */
|
|
7791
|
+
._Select_1n4iv_1 {
|
|
7792
|
+
position: relative;
|
|
7793
|
+
z-index: 1;
|
|
7794
|
+
}
|
|
7795
|
+
._Select-buttonInner_1n4iv_6 {
|
|
7796
|
+
align-items: center;
|
|
7797
|
+
display: flex;
|
|
7798
|
+
}
|
|
7799
|
+
._Select-buttonIcon_1n4iv_11 {
|
|
7800
|
+
align-items: center;
|
|
7801
|
+
display: flex;
|
|
7802
|
+
justify-content: center;
|
|
7803
|
+
}
|
|
7804
|
+
._Select--standalone_1n4iv_17 ._Select-buttonIcon_1n4iv_11 .lucide {
|
|
7805
|
+
height: var(--puck-icon-size-m);
|
|
7806
|
+
width: var(--puck-icon-size-m);
|
|
7807
|
+
}
|
|
7808
|
+
._Select--actionBar_1n4iv_22 ._Select-buttonIcon_1n4iv_11 .lucide {
|
|
7809
|
+
height: var(--puck-actionbar-action-size, var(--puck-icon-size-s));
|
|
7810
|
+
width: var(--puck-actionbar-action-size, var(--puck-icon-size-s));
|
|
7811
|
+
}
|
|
7812
|
+
._Select-items_1n4iv_27 {
|
|
7813
|
+
background: var(--puck-color-surface);
|
|
7814
|
+
border: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
7815
|
+
border-radius: var(--puck-radius-l);
|
|
7816
|
+
margin: 10px 8px;
|
|
7817
|
+
margin-left: 0;
|
|
7818
|
+
padding: var(--puck-space-1);
|
|
7819
|
+
z-index: 2;
|
|
7820
|
+
list-style: none;
|
|
7821
|
+
}
|
|
7822
|
+
._SelectItem_1n4iv_38 {
|
|
7823
|
+
background: transparent;
|
|
7824
|
+
border-radius: var(--puck-radius-m);
|
|
7825
|
+
border: none;
|
|
7826
|
+
color: var(--puck-color-text-secondary);
|
|
7827
|
+
cursor: pointer;
|
|
7828
|
+
display: flex;
|
|
7829
|
+
gap: var(--puck-space-2);
|
|
7830
|
+
align-items: center;
|
|
7831
|
+
font-size: var(--puck-font-size-xxs);
|
|
7832
|
+
margin: 0;
|
|
7833
|
+
padding: var(--puck-space-2) var(--puck-space-3);
|
|
7834
|
+
width: 100%;
|
|
7835
|
+
}
|
|
7836
|
+
._SelectItem--isSelected_1n4iv_53 {
|
|
7837
|
+
background: var(--puck-color-interactive-soft);
|
|
7838
|
+
color: var(--puck-color-interactive);
|
|
7839
|
+
font-weight: var(--puck-font-weight-medium);
|
|
7840
|
+
}
|
|
7841
|
+
._SelectItem--isSelected_1n4iv_53 ._SelectItem-icon_1n4iv_59 {
|
|
7842
|
+
color: var(--puck-color-interactive);
|
|
7843
|
+
}
|
|
7844
|
+
._SelectItem_1n4iv_38:hover {
|
|
7845
|
+
background: var(--puck-color-interactive-soft);
|
|
7846
|
+
color: var(--puck-color-interactive);
|
|
7847
|
+
}
|
|
7848
|
+
|
|
7849
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextEditor/styles.module.css/#css-module-data */
|
|
7850
|
+
._RichTextEditor_5wzos_1 .ProseMirror {
|
|
7851
|
+
white-space: pre-wrap;
|
|
7852
|
+
word-wrap: break-word;
|
|
7853
|
+
cursor: text;
|
|
7854
|
+
outline: none;
|
|
7855
|
+
position: relative;
|
|
7856
|
+
}
|
|
7857
|
+
._RichTextEditor_5wzos_1 .rich-text * {
|
|
7858
|
+
white-space: pre-wrap;
|
|
7859
|
+
user-select: auto;
|
|
7860
|
+
-webkit-user-select: auto;
|
|
7861
|
+
}
|
|
7862
|
+
._RichTextEditor_5wzos_1 .rich-text blockquote {
|
|
7863
|
+
margin: 1em 0;
|
|
7864
|
+
padding: 0 1em;
|
|
7865
|
+
border-left: var(--puck-border-width-strong) solid var(--puck-color-border);
|
|
7866
|
+
}
|
|
7867
|
+
._RichTextEditor_5wzos_1 .rich-text code {
|
|
7868
|
+
background-color: var(--puck-color-surface-muted);
|
|
7869
|
+
padding: var(--puck-space-1) var(--puck-space-2);
|
|
7870
|
+
border-radius: var(--puck-radius-m);
|
|
7871
|
+
}
|
|
7872
|
+
._RichTextEditor_5wzos_1 .rich-text p:empty::before {
|
|
7873
|
+
content: "\\a0";
|
|
7874
|
+
}
|
|
7875
|
+
._RichTextEditor_5wzos_1 .rich-text pre code {
|
|
7876
|
+
display: block;
|
|
7877
|
+
padding: var(--puck-space-2) var(--puck-space-3);
|
|
7878
|
+
}
|
|
7879
|
+
._RichTextEditor_5wzos_1 .rich-text > *:first-child,
|
|
7880
|
+
._RichTextEditor_5wzos_1 .ProseMirror > *:first-child,
|
|
7881
|
+
._RichTextEditor_5wzos_1 .rich-text * p:first-of-type {
|
|
7882
|
+
margin-top: 0;
|
|
7883
|
+
}
|
|
7884
|
+
._RichTextEditor_5wzos_1 .rich-text > *:last-child,
|
|
7885
|
+
._RichTextEditor_5wzos_1 .ProseMirror > *:last-child,
|
|
7886
|
+
._RichTextEditor_5wzos_1 .rich-text * p:last-of-type {
|
|
7887
|
+
margin-bottom: 0;
|
|
7888
|
+
}
|
|
7889
|
+
._RichTextEditor--editor_5wzos_50 {
|
|
7890
|
+
color: var(--puck-field-color-text, var(--puck-color-text));
|
|
7891
|
+
background: var(--puck-field-color-bg, var(--puck-color-surface));
|
|
7892
|
+
border-width: var( --puck-field-border-width, var(--puck-border-width-regular) );
|
|
7893
|
+
border-style: solid;
|
|
7894
|
+
border-color: var(--puck-field-color-border, var(--puck-color-border));
|
|
7895
|
+
border-radius: var(--puck-field-radius, var(--puck-radius-m));
|
|
7896
|
+
box-sizing: border-box;
|
|
7897
|
+
display: flex;
|
|
7898
|
+
flex-direction: column;
|
|
7899
|
+
font-family: inherit;
|
|
7900
|
+
font-size: var(--puck-field-font-size, var(--puck-font-size-xxs));
|
|
7901
|
+
resize: vertical;
|
|
7902
|
+
text-align: initial;
|
|
7903
|
+
transition: border-color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
7904
|
+
width: 100%;
|
|
7905
|
+
max-width: 100%;
|
|
7906
|
+
min-height: 128px;
|
|
7907
|
+
}
|
|
7908
|
+
._RichTextEditor--editor_5wzos_50 .rich-text {
|
|
7909
|
+
flex-grow: 1;
|
|
7910
|
+
}
|
|
7911
|
+
._RichTextEditor--editor_5wzos_50 .rich-text:not(:has(.ProseMirror)),
|
|
7912
|
+
._RichTextEditor--editor_5wzos_50 .rich-text .ProseMirror {
|
|
7913
|
+
height: 100%;
|
|
7914
|
+
padding: var(--puck-field-space-y, var(--puck-space-3)) var( --puck-field-space-x, calc( var(--puck-space-4) - var(--puck-field-border-width, var(--puck-border-width-regular)) ) );
|
|
7915
|
+
}
|
|
7916
|
+
._RichTextEditor--editor_5wzos_50 .rich-text ul,
|
|
7917
|
+
._RichTextEditor--editor_5wzos_50 .rich-text ol {
|
|
7918
|
+
padding-left: var(--puck-space-5);
|
|
7919
|
+
}
|
|
7920
|
+
._RichTextEditor--editor_5wzos_50 .rich-text li {
|
|
7921
|
+
line-height: 1.5;
|
|
7922
|
+
}
|
|
7923
|
+
._RichTextEditor--editor_5wzos_50 .rich-text p {
|
|
7924
|
+
margin-block: var(--puck-space-3);
|
|
7925
|
+
}
|
|
7926
|
+
._RichTextEditor--editor_5wzos_50 .rich-text ul {
|
|
7927
|
+
list-style: disc;
|
|
7928
|
+
}
|
|
7929
|
+
._RichTextEditor--editor_5wzos_50 .rich-text ol {
|
|
7930
|
+
list-style: decimal;
|
|
7931
|
+
}
|
|
7932
|
+
._RichTextEditor--editor_5wzos_50:focus-within {
|
|
7933
|
+
border-color: var( --puck-field-color-border-hover, var(--puck-color-border-hover) );
|
|
7934
|
+
outline: var(--puck-border-width-focus) solid var(--puck-field-color-border-focus, var(--puck-color-focus-ring));
|
|
7935
|
+
transition: none;
|
|
7936
|
+
}
|
|
7937
|
+
@media (hover: hover) and (pointer: fine) {
|
|
7938
|
+
._RichTextEditor--editor_5wzos_50:hover:not(._RichTextEditor--disabled_5wzos_123) {
|
|
7939
|
+
border-color: var( --puck-field-color-border-hover, var(--puck-color-border-hover) );
|
|
7940
|
+
transition: none;
|
|
7941
|
+
}
|
|
7942
|
+
}
|
|
7943
|
+
._RichTextEditor--editor_5wzos_50._RichTextEditor--disabled_5wzos_123 {
|
|
7944
|
+
background: var( --puck-field-color-bg-disabled, var(--puck-color-surface-muted) );
|
|
7945
|
+
border-color: var( --puck-field-color-border-disabled, var(--puck-color-border) );
|
|
7946
|
+
}
|
|
7947
|
+
._RichTextEditor--editor_5wzos_50._RichTextEditor--disabled_5wzos_123 .rich-text:not(:has(.ProseMirror)),
|
|
7948
|
+
._RichTextEditor--editor_5wzos_50._RichTextEditor--disabled_5wzos_123 .rich-text .ProseMirror {
|
|
7949
|
+
color: var( --puck-field-color-text-disabled, var(--puck-color-text-secondary) );
|
|
7950
|
+
}
|
|
7951
|
+
._RichTextEditor--editor_5wzos_50._RichTextEditor--disabled_5wzos_123 .ProseMirror[contenteditable=false] {
|
|
7952
|
+
cursor: default;
|
|
7953
|
+
}
|
|
7954
|
+
._RichTextEditor_5wzos_1:not(:focus-within):not(._RichTextEditor--isActive_5wzos_159) .ProseMirror ::selection {
|
|
7955
|
+
background-color: transparent;
|
|
7956
|
+
}
|
|
7957
|
+
._RichTextEditor-menu_5wzos_165 {
|
|
7958
|
+
border-bottom: var(--puck-border-width-regular) solid var(--puck-color-border-muted);
|
|
7959
|
+
position: sticky;
|
|
7960
|
+
top: 0;
|
|
7961
|
+
z-index: 1;
|
|
7962
|
+
}
|
|
7963
|
+
._RichTextEditor--disabled_5wzos_123 ._RichTextEditor-menu_5wzos_165 {
|
|
7964
|
+
border-bottom: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
7965
|
+
}
|
|
7966
|
+
|
|
7967
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data */
|
|
7968
|
+
._ObjectField_c5reb_1 {
|
|
7969
|
+
display: flex;
|
|
7970
|
+
flex-direction: column;
|
|
7971
|
+
background-color: var(--puck-field-color-surface, var(--puck-color-surface));
|
|
7972
|
+
border: var(--puck-field-border-width, var(--puck-border-width-regular)) solid var(--puck-field-color-border, var(--puck-color-border));
|
|
7973
|
+
border-radius: var(--puck-field-radius, var(--puck-radius-m));
|
|
7974
|
+
}
|
|
7975
|
+
._ObjectField-fieldset_c5reb_10 {
|
|
7976
|
+
border: none;
|
|
7977
|
+
margin: 0;
|
|
7978
|
+
min-width: 0;
|
|
7979
|
+
padding: var(--puck-field-space-surface-y, var(--puck-space-4)) var( --puck-field-space-surface-x, calc( var(--puck-space-4) - var(--puck-field-border-width, var(--puck-border-width-regular)) ) );
|
|
7980
|
+
}
|
|
7981
|
+
|
|
7982
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Drawer/styles.module.css/#css-module-data */
|
|
7983
|
+
._Drawer_1n90m_1 {
|
|
7984
|
+
display: flex;
|
|
7985
|
+
flex-direction: column;
|
|
7986
|
+
font-family: var(--puck-font-family);
|
|
7987
|
+
gap: var(--puck-space-3);
|
|
7988
|
+
}
|
|
7989
|
+
._Drawer-draggable_1n90m_8 {
|
|
7990
|
+
position: relative;
|
|
7991
|
+
}
|
|
7992
|
+
._Drawer-draggableBg_1n90m_12 {
|
|
7993
|
+
position: absolute;
|
|
7994
|
+
top: 0;
|
|
7995
|
+
right: 0;
|
|
7996
|
+
bottom: 0;
|
|
7997
|
+
left: 0;
|
|
7998
|
+
pointer-events: none;
|
|
7999
|
+
z-index: -1;
|
|
8000
|
+
}
|
|
8001
|
+
._DrawerItem-draggable_1n90m_22 {
|
|
8002
|
+
background: var(--puck-drawer-item-color-bg, var(--puck-color-surface));
|
|
8003
|
+
color: var(--puck-drawer-item-color-text, var(--puck-color-text));
|
|
8004
|
+
cursor: grab;
|
|
8005
|
+
padding: var(--puck-drawer-item-space, var(--puck-space-3));
|
|
8006
|
+
display: flex;
|
|
8007
|
+
border: var(--puck-drawer-item-border-width, var(--puck-border-width-regular)) var(--puck-drawer-item-color-border, var(--puck-color-border)) solid;
|
|
8008
|
+
border-radius: var(--puck-drawer-item-radius, var(--puck-radius-m));
|
|
8009
|
+
font-size: var(--puck-drawer-item-font-size, var(--puck-font-size-xxs));
|
|
8010
|
+
justify-content: space-between;
|
|
8011
|
+
align-items: center;
|
|
8012
|
+
transition: background-color var(--puck-duration-fast) var(--puck-ease-exit), color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
8013
|
+
}
|
|
8014
|
+
._DrawerItem--disabled_1n90m_38 ._DrawerItem-draggable_1n90m_22 {
|
|
8015
|
+
background: var(--puck-color-surface-muted);
|
|
8016
|
+
color: var(--puck-color-text-muted);
|
|
8017
|
+
cursor: not-allowed;
|
|
8018
|
+
}
|
|
8019
|
+
._DrawerItem_1n90m_22:focus-visible {
|
|
8020
|
+
outline: 0;
|
|
8021
|
+
}
|
|
8022
|
+
._Drawer_1n90m_1:not(._Drawer--isDraggingFrom_1n90m_48) ._DrawerItem_1n90m_22:focus-visible ._DrawerItem-draggable_1n90m_22 {
|
|
8023
|
+
border-radius: var(--puck-radius-m);
|
|
8024
|
+
outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
|
|
8025
|
+
outline-offset: var(--puck-border-width-focus);
|
|
8026
|
+
}
|
|
8027
|
+
@media (hover: hover) and (pointer: fine) {
|
|
8028
|
+
._Drawer_1n90m_1:not(._Drawer--isDraggingFrom_1n90m_48) ._DrawerItem_1n90m_22:not(._DrawerItem--disabled_1n90m_38) ._DrawerItem-draggable_1n90m_22:hover {
|
|
8029
|
+
background-color: var( --puck-drawer-item-color-bg-hover, var(--puck-color-interactive-soft-hover) );
|
|
8030
|
+
color: var( --puck-drawer-item-color-text-hover, var(--puck-color-interactive) );
|
|
8031
|
+
transition: none;
|
|
8032
|
+
}
|
|
8033
|
+
}
|
|
8034
|
+
._DrawerItem-name_1n90m_72 {
|
|
8035
|
+
overflow-x: hidden;
|
|
8036
|
+
text-overflow: ellipsis;
|
|
8037
|
+
white-space: nowrap;
|
|
8038
|
+
}
|
|
8039
|
+
|
|
8040
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css/#css-module-data */
|
|
8041
|
+
._DraggableComponent_1627v_1 {
|
|
8042
|
+
position: absolute;
|
|
8043
|
+
pointer-events: none;
|
|
8044
|
+
}
|
|
8045
|
+
._DraggableComponent-overlayWrapper_1627v_6 {
|
|
8046
|
+
height: 100%;
|
|
8047
|
+
width: 100%;
|
|
8048
|
+
top: 0;
|
|
8049
|
+
position: absolute;
|
|
8050
|
+
pointer-events: none;
|
|
8051
|
+
box-sizing: border-box;
|
|
8052
|
+
z-index: 1;
|
|
8053
|
+
}
|
|
8054
|
+
._DraggableComponent-overlay_1627v_6 {
|
|
8055
|
+
cursor: pointer;
|
|
8056
|
+
height: 100%;
|
|
8057
|
+
outline: var( --puck-slot-component-border-width, var(--puck-border-width-focus) ) var( --puck-slot-component-color-overlay-border, var(--puck-color-selection-border) ) solid;
|
|
8058
|
+
outline-offset: calc(var(--puck-slot-component-border-width, var(--puck-border-width-focus)) * -1);
|
|
8059
|
+
width: 100%;
|
|
8060
|
+
}
|
|
8061
|
+
._DraggableComponent_1627v_1:focus-visible > ._DraggableComponent-overlayWrapper_1627v_6 {
|
|
8062
|
+
outline: var(--puck-border-width-regular) solid var(--puck-color-focus-ring);
|
|
8063
|
+
}
|
|
8064
|
+
._DraggableComponent-loadingOverlay_1627v_38 {
|
|
8065
|
+
background: var(--puck-color-surface);
|
|
8066
|
+
color: var(--puck-color-text);
|
|
8067
|
+
border-radius: var(--puck-radius-m);
|
|
8068
|
+
display: flex;
|
|
8069
|
+
padding: var(--puck-space-2);
|
|
8070
|
+
top: var(--puck-space-2);
|
|
8071
|
+
right: var(--puck-space-2);
|
|
8072
|
+
position: absolute;
|
|
8073
|
+
z-index: 1;
|
|
8074
|
+
pointer-events: all;
|
|
8075
|
+
box-sizing: border-box;
|
|
8076
|
+
opacity: 0.8;
|
|
8077
|
+
z-index: 1;
|
|
8078
|
+
}
|
|
8079
|
+
._DraggableComponent--hover_1627v_54 > ._DraggableComponent-overlayWrapper_1627v_6 > ._DraggableComponent-overlay_1627v_6 {
|
|
8080
|
+
background: var( --puck-slot-component-color-overlay, var(--puck-color-selection-bg) );
|
|
8081
|
+
outline: var( --puck-slot-component-border-width, var(--puck-border-width-focus) ) var( --puck-slot-component-color-overlay-border, var(--puck-color-selection-border) ) solid;
|
|
8082
|
+
}
|
|
8083
|
+
._DraggableComponent--isSelected_1627v_72 > ._DraggableComponent-overlayWrapper_1627v_6 > ._DraggableComponent-overlay_1627v_6 {
|
|
8084
|
+
outline-color: var( --puck-slot-component-color-border-selected, var(--puck-color-selection-border) );
|
|
8085
|
+
}
|
|
8086
|
+
._DraggableComponent_1627v_1:has(._DraggableComponent--hover_1627v_54 > ._DraggableComponent-overlayWrapper_1627v_6) > ._DraggableComponent-overlayWrapper_1627v_6 {
|
|
8087
|
+
display: none;
|
|
8088
|
+
}
|
|
8089
|
+
._DraggableComponent-actionsOverlay_1627v_89 {
|
|
8090
|
+
position: sticky;
|
|
8091
|
+
opacity: 0;
|
|
8092
|
+
pointer-events: none;
|
|
8093
|
+
z-index: 2;
|
|
8094
|
+
}
|
|
8095
|
+
._DraggableComponent--isSelected_1627v_72 ._DraggableComponent-actionsOverlay_1627v_89 {
|
|
8096
|
+
opacity: 1;
|
|
8097
|
+
pointer-events: auto;
|
|
8098
|
+
}
|
|
8099
|
+
._DraggableComponent-actions_1627v_89 {
|
|
8100
|
+
position: absolute;
|
|
8101
|
+
width: auto;
|
|
8102
|
+
cursor: grab;
|
|
8103
|
+
display: flex;
|
|
8104
|
+
box-sizing: border-box;
|
|
8105
|
+
transform-origin: right top;
|
|
8106
|
+
min-height: 36px;
|
|
8107
|
+
}
|
|
8108
|
+
._DraggableComponent-actionsAction_1627v_111 {
|
|
8109
|
+
height: var(--puck-actionbar-action-size, var(--puck-icon-size-s));
|
|
8110
|
+
width: var(--puck-actionbar-action-size, var(--puck-icon-size-s));
|
|
8111
|
+
}
|
|
8112
|
+
|
|
8113
|
+
/* components/DraggableComponent/styles.css */
|
|
8114
|
+
[data-puck-component] * {
|
|
8115
|
+
pointer-events: none;
|
|
8116
|
+
user-select: none;
|
|
8117
|
+
-webkit-user-select: none;
|
|
8118
|
+
}
|
|
8119
|
+
[data-puck-component] {
|
|
8120
|
+
cursor: grab;
|
|
8121
|
+
pointer-events: auto !important;
|
|
8122
|
+
user-select: none;
|
|
8123
|
+
-webkit-user-select: none;
|
|
8124
|
+
}
|
|
8125
|
+
[data-puck-dropzone] {
|
|
8126
|
+
pointer-events: auto !important;
|
|
8127
|
+
}
|
|
8128
|
+
[data-puck-disabled] {
|
|
8129
|
+
cursor: pointer;
|
|
8130
|
+
}
|
|
8131
|
+
[data-dnd-placeholder] {
|
|
8132
|
+
background: var( --puck-slot-component-color-placeholder, var(--puck-color-azure-06) ) !important;
|
|
8133
|
+
border: none !important;
|
|
8134
|
+
color: transparent !important;
|
|
8135
|
+
opacity: 0.3 !important;
|
|
8136
|
+
outline: none !important;
|
|
8137
|
+
transition: none !important;
|
|
8138
|
+
}
|
|
8139
|
+
[data-dnd-placeholder] *,
|
|
8140
|
+
[data-dnd-placeholder]::after,
|
|
8141
|
+
[data-dnd-placeholder]::before {
|
|
8142
|
+
opacity: 0 !important;
|
|
8143
|
+
}
|
|
8144
|
+
[data-dnd-dragging][data-puck-component] {
|
|
8145
|
+
pointer-events: none !important;
|
|
8146
|
+
outline: var( --puck-slot-component-border-width, var(--puck-border-width-focus) ) var(--puck-slot-component-color-border-dragging, var(--puck-color-azure-09)) solid !important;
|
|
8147
|
+
outline-offset: calc(var(--puck-slot-component-border-width, var(--puck-border-width-focus)) * -1) !important;
|
|
8148
|
+
}
|
|
8149
|
+
[data-dnd-dragging][data-puck-component] > :first-child {
|
|
8150
|
+
margin-top: 0 !important;
|
|
8151
|
+
}
|
|
8152
|
+
[data-dnd-dragging][data-puck-component] > :last-child {
|
|
8153
|
+
margin-bottom: 0 !important;
|
|
8154
|
+
}
|
|
8155
|
+
|
|
8156
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css/#css-module-data */
|
|
8157
|
+
._DropZone_ybznu_1 {
|
|
8158
|
+
position: relative;
|
|
8159
|
+
height: 100%;
|
|
8160
|
+
min-height: var(--puck-slot-min-empty-height);
|
|
8161
|
+
outline-offset: calc(var(--puck-slot-border-width, var(--puck-border-width-focus)) * -1);
|
|
8162
|
+
width: 100%;
|
|
8163
|
+
}
|
|
8164
|
+
._DropZone--hasChildren_ybznu_11 {
|
|
8165
|
+
min-height: 0;
|
|
8166
|
+
}
|
|
8167
|
+
._DropZone_ybznu_1:empty {
|
|
8168
|
+
min-height: var(--puck-slot-min-empty-height);
|
|
8169
|
+
}
|
|
8170
|
+
[data-puck-entry]:not([data-puck-dragging]) ._DropZone_ybznu_1 {
|
|
8171
|
+
transition: min-height var(--puck-duration-medium) var(--puck-ease-exit);
|
|
8172
|
+
}
|
|
8173
|
+
._DropZone--isAreaSelected_ybznu_24,
|
|
8174
|
+
._DropZone--hoveringOverArea_ybznu_25:not(._DropZone--isRootZone_ybznu_25) {
|
|
8175
|
+
background: var(--puck-slot-color-bg, var(--puck-color-selection-bg));
|
|
8176
|
+
outline: var(--puck-slot-border-width, var(--puck-border-width-focus)) var(--puck-slot-border-style, dashed) var(--puck-slot-color-border, var(--puck-color-selection-border));
|
|
8177
|
+
}
|
|
8178
|
+
._DropZone_ybznu_1:empty {
|
|
8179
|
+
background: var(--puck-slot-color-bg, var(--puck-color-selection-bg));
|
|
8180
|
+
outline: var(--puck-slot-border-width, var(--puck-border-width-focus)) var(--puck-slot-border-style, dashed) var(--puck-slot-color-border, var(--puck-color-selection-border));
|
|
8181
|
+
}
|
|
8182
|
+
._DropZone-item_ybznu_39 {
|
|
8183
|
+
position: relative;
|
|
8184
|
+
}
|
|
8185
|
+
._DropZone-hitbox_ybznu_43 {
|
|
8186
|
+
position: absolute;
|
|
8187
|
+
bottom: calc(var(--puck-space-3) * -1);
|
|
8188
|
+
height: var(--puck-space-5);
|
|
8189
|
+
width: 100%;
|
|
8190
|
+
z-index: 1;
|
|
8191
|
+
}
|
|
8192
|
+
[data-puck-dragging] ._DropZone--isEnabled_ybznu_51 {
|
|
8193
|
+
outline: var(--puck-slot-border-width, var(--puck-border-width-focus)) var(--puck-slot-border-style, dashed) var(--puck-slot-color-border, var(--puck-color-selection-border));
|
|
8194
|
+
}
|
|
8195
|
+
._DropZone_ybznu_1 > *:not([data-puck-component]) {
|
|
8196
|
+
opacity: 0;
|
|
8197
|
+
}
|
|
8198
|
+
body:has(._DropZone--isAnimating_ybznu_62:empty) [data-puck-overlay] {
|
|
8199
|
+
opacity: 0 !important;
|
|
8200
|
+
}
|
|
8201
|
+
|
|
8202
|
+
/* lib/overlay-portal/styles.css */
|
|
8203
|
+
[data-puck-overlay-portal],
|
|
8204
|
+
[data-puck-overlay-portal] * {
|
|
8205
|
+
pointer-events: auto !important;
|
|
8206
|
+
}
|
|
8207
|
+
[data-puck-overlay-portal]:hover {
|
|
8208
|
+
outline: 2px var(--puck-color-azure-09, #cfdff0) dashed;
|
|
8209
|
+
outline-offset: 2px;
|
|
8210
|
+
}
|
|
8211
|
+
[data-puck-overlay-portal]:focus-within {
|
|
8212
|
+
outline: 2px var(--puck-color-azure-07, #88b0da) dashed;
|
|
8213
|
+
outline-offset: 2px;
|
|
8214
|
+
}
|
|
8215
|
+
|
|
8216
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css/#css-module-data */
|
|
8217
|
+
._InlineTextField_104qp_1 {
|
|
8218
|
+
cursor: text;
|
|
8219
|
+
display: inline-block;
|
|
8220
|
+
white-space: pre-wrap;
|
|
8221
|
+
text-decoration: inherit;
|
|
8222
|
+
}
|
|
8223
|
+
[data-dnd-dragging] ._InlineTextField_104qp_1 {
|
|
8224
|
+
cursor: none;
|
|
8225
|
+
caret-color: transparent;
|
|
8226
|
+
}
|
|
8227
|
+
[data-dnd-dragging] ._InlineTextField_104qp_1::selection {
|
|
8228
|
+
display: none;
|
|
8229
|
+
}
|
|
8230
|
+
|
|
8231
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Fields/styles.module.css/#css-module-data */
|
|
8232
|
+
._PuckFields_wnj25_1 {
|
|
8233
|
+
position: relative;
|
|
8234
|
+
font-family: var(--puck-font-family);
|
|
8235
|
+
}
|
|
8236
|
+
._PuckFields--isLoading_wnj25_6 {
|
|
8237
|
+
min-height: 48px;
|
|
8238
|
+
}
|
|
8239
|
+
._PuckFields-loadingOverlay_wnj25_10 {
|
|
8240
|
+
background: var(--puck-color-surface);
|
|
8241
|
+
display: flex;
|
|
8242
|
+
justify-content: flex-end;
|
|
8243
|
+
align-items: flex-start;
|
|
8244
|
+
height: 100%;
|
|
8245
|
+
width: 100%;
|
|
8246
|
+
top: 0px;
|
|
8247
|
+
position: absolute;
|
|
8248
|
+
z-index: 1;
|
|
8249
|
+
pointer-events: all;
|
|
8250
|
+
box-sizing: border-box;
|
|
8251
|
+
opacity: 0.8;
|
|
8252
|
+
}
|
|
8253
|
+
._PuckFields-loadingOverlayInner_wnj25_25 {
|
|
8254
|
+
display: flex;
|
|
8255
|
+
padding: var(--puck-space-4);
|
|
8256
|
+
position: sticky;
|
|
8257
|
+
top: 0;
|
|
8258
|
+
}
|
|
8259
|
+
._PuckFields-field_wnj25_32 * {
|
|
8260
|
+
box-sizing: border-box;
|
|
8261
|
+
}
|
|
8262
|
+
._PuckFields--wrapFields_wnj25_36 ._PuckFields-field_wnj25_32 {
|
|
8263
|
+
color: var(--puck-color-text-secondary);
|
|
8264
|
+
padding: var(--puck-space-4);
|
|
8265
|
+
padding-bottom: var(--puck-space-3);
|
|
8266
|
+
display: block;
|
|
8267
|
+
}
|
|
8268
|
+
._PuckFields--wrapFields_wnj25_36 ._PuckFields-field_wnj25_32 + ._PuckFields-field_wnj25_32 {
|
|
8269
|
+
border-top: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
8270
|
+
margin-top: var(--puck-space-2);
|
|
8271
|
+
}
|
|
8272
|
+
|
|
8273
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/ComponentList/styles.module.css/#css-module-data */
|
|
8274
|
+
._ComponentList_htktj_1 {
|
|
8275
|
+
max-width: 100%;
|
|
8276
|
+
}
|
|
8277
|
+
._ComponentList--isExpanded_htktj_5 + ._ComponentList_htktj_1 {
|
|
8278
|
+
margin-top: var(--puck-space-3);
|
|
8279
|
+
}
|
|
8280
|
+
._ComponentList-content_htktj_9 {
|
|
8281
|
+
display: none;
|
|
8282
|
+
}
|
|
8283
|
+
._ComponentList--isExpanded_htktj_5 > ._ComponentList-content_htktj_9 {
|
|
8284
|
+
display: block;
|
|
8285
|
+
}
|
|
8286
|
+
._ComponentList-title_htktj_17 {
|
|
8287
|
+
background-color: transparent;
|
|
8288
|
+
border: 0;
|
|
8289
|
+
color: var(--puck-drawer-category-color-text, var(--puck-color-text-muted));
|
|
8290
|
+
cursor: pointer;
|
|
8291
|
+
display: flex;
|
|
8292
|
+
font: inherit;
|
|
8293
|
+
font-size: var(--puck-drawer-category-font-size, var(--puck-font-size-xxxs));
|
|
8294
|
+
list-style: none;
|
|
8295
|
+
margin-bottom: 6px;
|
|
8296
|
+
padding: var(--puck-drawer-category-space, var(--puck-space-2));
|
|
8297
|
+
text-transform: uppercase;
|
|
8298
|
+
transition: background-color var(--puck-duration-fast) var(--puck-ease-exit), color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
8299
|
+
gap: var(--puck-space-1);
|
|
8300
|
+
border-radius: var(--puck-radius-m);
|
|
8301
|
+
width: 100%;
|
|
8302
|
+
}
|
|
8303
|
+
._ComponentList-title_htktj_17:focus-visible {
|
|
8304
|
+
outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
|
|
8305
|
+
outline-offset: var(--puck-border-width-focus);
|
|
8306
|
+
}
|
|
8307
|
+
@media (hover: hover) and (pointer: fine) {
|
|
8308
|
+
._ComponentList-title_htktj_17:hover {
|
|
8309
|
+
background-color: var( --puck-drawer-category-color-bg-hover, var(--puck-color-interactive-soft) );
|
|
8310
|
+
color: var( --puck-drawer-category-color-text-hover, var(--puck-color-interactive) );
|
|
8311
|
+
transition: none;
|
|
8312
|
+
}
|
|
8313
|
+
}
|
|
8314
|
+
._ComponentList-title_htktj_17:active {
|
|
8315
|
+
background-color: var( --puck-drawer-category-color-bg-active, var(--puck-color-interactive-subtle) );
|
|
8316
|
+
transition: none;
|
|
8317
|
+
}
|
|
8318
|
+
._ComponentList-titleIcon_htktj_63 {
|
|
8319
|
+
margin-inline-start: auto;
|
|
8320
|
+
}
|
|
8321
|
+
|
|
8322
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Preview/styles.module.css/#css-module-data */
|
|
8323
|
+
._PuckPreview_z2rgu_1 {
|
|
8324
|
+
position: relative;
|
|
8325
|
+
height: 100%;
|
|
8326
|
+
}
|
|
8327
|
+
._PuckPreview-frame_z2rgu_6 {
|
|
8328
|
+
border: none;
|
|
8329
|
+
height: 100%;
|
|
8330
|
+
width: 100%;
|
|
8331
|
+
}
|
|
8332
|
+
|
|
8333
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/LayerTree/styles.module.css/#css-module-data */
|
|
8334
|
+
._LayerTree_1vltj_1 {
|
|
8335
|
+
color: var(--puck-outline-color-text, var(--puck-color-text-secondary));
|
|
8336
|
+
font-family: var(--puck-font-family);
|
|
8337
|
+
font-size: var(--puck-outline-font-size, var(--puck-font-size-xxs));
|
|
8338
|
+
margin: 0;
|
|
8339
|
+
position: relative;
|
|
8340
|
+
list-style: none;
|
|
8341
|
+
padding: 0;
|
|
8342
|
+
}
|
|
8343
|
+
._LayerTree-zoneTitle_1vltj_11 {
|
|
8344
|
+
color: var(--puck-outline-zone-color-text, var(--puck-color-text-muted));
|
|
8345
|
+
font-size: var(--puck-outline-zone-font-size, var(--puck-font-size-xxxs));
|
|
8346
|
+
text-transform: uppercase;
|
|
8347
|
+
}
|
|
8348
|
+
._LayerTree-helper_1vltj_17 {
|
|
8349
|
+
text-align: center;
|
|
8350
|
+
color: var(--puck-color-text-subtle);
|
|
8351
|
+
margin: var(--puck-space-2) var(--puck-space-1);
|
|
8352
|
+
}
|
|
8353
|
+
._Layer_1vltj_1 {
|
|
8354
|
+
position: relative;
|
|
8355
|
+
border: var(--puck-outline-border-width, var(--puck-border-width-regular)) solid transparent;
|
|
8356
|
+
border-radius: var(--puck-outline-radius, var(--puck-radius-m));
|
|
8357
|
+
}
|
|
8358
|
+
._Layer-inner_1vltj_30 {
|
|
8359
|
+
border: var(--puck-outline-border-width, var(--puck-border-width-regular)) solid transparent;
|
|
8360
|
+
border-radius: var(--puck-outline-radius, var(--puck-radius-m));
|
|
8361
|
+
transition: color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
8362
|
+
}
|
|
8363
|
+
._Layer--containsZone_1vltj_37 > ._Layer-inner_1vltj_30 {
|
|
8364
|
+
padding-inline-start: 0;
|
|
8365
|
+
}
|
|
8366
|
+
._Layer-clickable_1vltj_41 {
|
|
8367
|
+
align-items: center;
|
|
8368
|
+
background: none;
|
|
8369
|
+
border: 0;
|
|
8370
|
+
border-radius: var(--puck-outline-radius, var(--puck-radius-m));
|
|
8371
|
+
color: inherit;
|
|
8372
|
+
cursor: pointer;
|
|
8373
|
+
display: flex;
|
|
8374
|
+
font: inherit;
|
|
8375
|
+
padding-inline-start: var(--puck-space-3);
|
|
8376
|
+
padding-inline-end: var(--puck-space-1);
|
|
8377
|
+
width: 100%;
|
|
8378
|
+
}
|
|
8379
|
+
._Layer-clickable_1vltj_41:focus-visible {
|
|
8380
|
+
outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
|
|
8381
|
+
outline-offset: var(--puck-border-width-focus);
|
|
8382
|
+
position: relative;
|
|
8383
|
+
z-index: 1;
|
|
8384
|
+
}
|
|
8385
|
+
@media (hover: hover) and (pointer: fine) {
|
|
8386
|
+
._Layer_1vltj_1:not(._Layer--isSelected_1vltj_63) > ._Layer-inner_1vltj_30:hover {
|
|
8387
|
+
border-color: var( --puck-outline-color-border-hover, var(--puck-color-interactive-subtle) );
|
|
8388
|
+
background: var( --puck-outline-color-bg-hover, var(--puck-color-interactive-soft) );
|
|
8389
|
+
color: var(--puck-outline-color-text-hover, var(--puck-color-interactive));
|
|
8390
|
+
transition: none;
|
|
8391
|
+
}
|
|
8392
|
+
}
|
|
8393
|
+
._Layer--isSelected_1vltj_63 {
|
|
8394
|
+
border-color: var( --puck-outline-color-border-selected, var(--puck-color-selection-border) );
|
|
8395
|
+
}
|
|
8396
|
+
._Layer--isSelected_1vltj_63 > ._Layer-inner_1vltj_30 {
|
|
8397
|
+
background: var( --puck-outline-color-bg-selected, var(--puck-color-interactive-subtle) );
|
|
8398
|
+
}
|
|
8399
|
+
._Layer--isSelected_1vltj_63 > ._Layer-inner_1vltj_30 > ._Layer-clickable_1vltj_41 > ._Layer-chevron_1vltj_91,
|
|
8400
|
+
._Layer--childIsSelected_1vltj_92 > ._Layer-inner_1vltj_30 > ._Layer-clickable_1vltj_41 > ._Layer-chevron_1vltj_91 {
|
|
8401
|
+
transform: scaleY(-1);
|
|
8402
|
+
}
|
|
8403
|
+
._Layer-zones_1vltj_96 {
|
|
8404
|
+
display: none;
|
|
8405
|
+
margin-inline-start: var(--puck-space-3);
|
|
8406
|
+
}
|
|
8407
|
+
._Layer--isSelected_1vltj_63 > ._Layer-zones_1vltj_96,
|
|
8408
|
+
._Layer--childIsSelected_1vltj_92 > ._Layer-zones_1vltj_96 {
|
|
8409
|
+
display: block;
|
|
8410
|
+
}
|
|
8411
|
+
._Layer-zones_1vltj_96 > ._LayerTree_1vltj_1 {
|
|
8412
|
+
margin-inline-start: var(--puck-space-3);
|
|
8413
|
+
}
|
|
8414
|
+
._Layer-title_1vltj_110,
|
|
8415
|
+
._LayerTree-zoneTitle_1vltj_11 {
|
|
8416
|
+
display: flex;
|
|
8417
|
+
gap: var(--puck-space-2);
|
|
8418
|
+
align-items: center;
|
|
8419
|
+
margin: var(--puck-space-2) var(--puck-space-1);
|
|
8420
|
+
overflow-x: hidden;
|
|
8421
|
+
}
|
|
8422
|
+
._Layer-name_1vltj_119 {
|
|
8423
|
+
overflow-x: hidden;
|
|
8424
|
+
text-overflow: ellipsis;
|
|
8425
|
+
white-space: nowrap;
|
|
8426
|
+
}
|
|
8427
|
+
._Layer-icon_1vltj_125 {
|
|
8428
|
+
color: var(--puck-outline-color-icon, var(--puck-color-highlight));
|
|
8429
|
+
margin-top: var(--puck-space-1);
|
|
8430
|
+
}
|
|
8431
|
+
._Layer-zoneIcon_1vltj_130 {
|
|
8432
|
+
color: var(--puck-outline-zone-color-text, var(--puck-color-text-muted));
|
|
8433
|
+
margin-top: var(--puck-space-1);
|
|
8434
|
+
}
|
|
8435
|
+
|
|
8436
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Layout/styles.module.css/#css-module-data */
|
|
8437
|
+
._Puck_mr27u_19 {
|
|
8438
|
+
font-family: var(--puck-font-family);
|
|
8439
|
+
overflow-x: hidden;
|
|
8440
|
+
visibility: visible !important;
|
|
8441
|
+
}
|
|
8442
|
+
@media (min-width: 766px) {
|
|
8443
|
+
._Puck_mr27u_19 {
|
|
8444
|
+
overflow-x: auto;
|
|
8445
|
+
}
|
|
8446
|
+
}
|
|
8447
|
+
._Puck-portal_mr27u_31 {
|
|
8448
|
+
position: relative;
|
|
8449
|
+
z-index: 2;
|
|
8450
|
+
}
|
|
8451
|
+
._PuckLayout_mr27u_36 {
|
|
8452
|
+
height: 100dvh;
|
|
8453
|
+
}
|
|
8454
|
+
._PuckLayout-inner_mr27u_40 {
|
|
8455
|
+
--puck-frame-width: auto;
|
|
8456
|
+
--puck-pluginbar-width: min-content;
|
|
8457
|
+
--puck-sidebar-width: 0px;
|
|
8458
|
+
--puck-sidebar-left-width: var( --puck-user-sidebar-left-width, var(--puck-sidebar-width) );
|
|
8459
|
+
--puck-sidebar-right-width: var( --puck-user-sidebar-right-width, var(--puck-sidebar-width) );
|
|
8460
|
+
background-color: var(--puck-color-surface-subtle);
|
|
8461
|
+
display: grid;
|
|
8462
|
+
grid-template-areas: "header" "editor" "left" "right" "sidenav";
|
|
8463
|
+
grid-template-columns: var(--puck-frame-width);
|
|
8464
|
+
grid-template-rows: min-content auto 0 0 var(--puck-pluginbar-width);
|
|
8465
|
+
height: 100%;
|
|
8466
|
+
position: relative;
|
|
8467
|
+
transition: grid-template-rows var(--puck-duration-medium) var(--puck-ease-exit);
|
|
8468
|
+
z-index: 0;
|
|
8469
|
+
overflow: hidden;
|
|
8470
|
+
}
|
|
8471
|
+
@media (min-width: 638px) {
|
|
8472
|
+
._PuckLayout-inner_mr27u_40 {
|
|
8473
|
+
--puck-pluginbar-width: 68px;
|
|
8474
|
+
grid-template-areas: "header header header header" "sidenav left editor right";
|
|
8475
|
+
grid-template-columns: var(--puck-pluginbar-width) 0 var(--puck-frame-width) 0;
|
|
8476
|
+
grid-template-rows: min-content auto;
|
|
8477
|
+
}
|
|
8478
|
+
._Puck--hidePlugins_mr27u_73 ._PuckLayout-inner_mr27u_40 {
|
|
8479
|
+
--puck-pluginbar-width: 0;
|
|
8480
|
+
}
|
|
8481
|
+
}
|
|
8482
|
+
._PuckLayout--mounted_mr27u_78 ._PuckLayout-inner_mr27u_40 {
|
|
8483
|
+
--puck-sidebar-width: 186px;
|
|
8484
|
+
}
|
|
8485
|
+
._PuckLayout--mobilePanelHeightToggle_mr27u_82._PuckLayout--leftSideBarVisible_mr27u_82 ._PuckLayout-inner_mr27u_40 {
|
|
8486
|
+
grid-template-rows: 0 auto 30% 0 var(--puck-pluginbar-width);
|
|
8487
|
+
transition: grid-template-rows var(--puck-duration-medium) var(--puck-ease-entrance);
|
|
8488
|
+
}
|
|
8489
|
+
._PuckLayout--mobilePanelHeightToggle_mr27u_82._PuckLayout--leftSideBarVisible_mr27u_82._PuckLayout--isExpanded_mr27u_90 ._PuckLayout-inner_mr27u_40 {
|
|
8490
|
+
grid-template-rows: 0 auto 55% 0 var(--puck-pluginbar-width);
|
|
8491
|
+
transition: grid-template-rows var(--puck-duration-medium) var(--puck-ease-entrance);
|
|
8492
|
+
}
|
|
8493
|
+
@media (min-width: 638px) {
|
|
8494
|
+
._PuckLayout--mobilePanelHeightToggle_mr27u_82._PuckLayout--leftSideBarVisible_mr27u_82 ._PuckLayout-inner_mr27u_40 {
|
|
8495
|
+
grid-template-columns: var(--puck-pluginbar-width) var(--puck-sidebar-left-width) var( --puck-frame-width ) 0;
|
|
8496
|
+
grid-template-rows: min-content auto;
|
|
8497
|
+
}
|
|
8498
|
+
}
|
|
8499
|
+
._PuckLayout--mobilePanelHeightMinContent_mr27u_110._PuckLayout--leftSideBarVisible_mr27u_82 ._PuckLayout-inner_mr27u_40,
|
|
8500
|
+
._PuckLayout--mobilePanelHeightMinContent_mr27u_110._PuckLayout--leftSideBarVisible_mr27u_82._PuckLayout--isExpanded_mr27u_90 ._PuckLayout-inner_mr27u_40 {
|
|
8501
|
+
grid-template-rows: 0 auto min-content 0 var(--puck-pluginbar-width);
|
|
8502
|
+
}
|
|
8503
|
+
@media (min-width: 638px) {
|
|
8504
|
+
._PuckLayout--mobilePanelHeightToggle_mr27u_82._PuckLayout--leftSideBarVisible_mr27u_82 ._PuckLayout-inner_mr27u_40,
|
|
8505
|
+
._PuckLayout--mobilePanelHeightToggle_mr27u_82._PuckLayout--leftSideBarVisible_mr27u_82._PuckLayout--isExpanded_mr27u_90 ._PuckLayout-inner_mr27u_40,
|
|
8506
|
+
._PuckLayout--mobilePanelHeightMinContent_mr27u_110._PuckLayout--leftSideBarVisible_mr27u_82 ._PuckLayout-inner_mr27u_40,
|
|
8507
|
+
._PuckLayout--mobilePanelHeightMinContent_mr27u_110._PuckLayout--leftSideBarVisible_mr27u_82._PuckLayout--isExpanded_mr27u_90 ._PuckLayout-inner_mr27u_40 {
|
|
8508
|
+
grid-template-columns: var(--puck-pluginbar-width) var(--puck-sidebar-left-width) var( --puck-frame-width ) 0;
|
|
8509
|
+
grid-template-rows: min-content auto;
|
|
8510
|
+
}
|
|
8511
|
+
}
|
|
8512
|
+
@media (min-width: 638px) {
|
|
8513
|
+
._PuckLayout--rightSideBarVisible_mr27u_137 ._PuckLayout-inner_mr27u_40 {
|
|
8514
|
+
grid-template-columns: var(--puck-pluginbar-width) 0 var(--puck-frame-width) var(--puck-sidebar-right-width);
|
|
8515
|
+
}
|
|
8516
|
+
}
|
|
8517
|
+
@media (min-width: 638px) {
|
|
8518
|
+
._PuckLayout--leftSideBarVisible_mr27u_82._PuckLayout--rightSideBarVisible_mr27u_137 ._PuckLayout-inner_mr27u_40 {
|
|
8519
|
+
grid-template-columns: var(--puck-pluginbar-width) var(--puck-sidebar-left-width) var( --puck-frame-width ) var(--puck-sidebar-right-width);
|
|
8520
|
+
}
|
|
8521
|
+
}
|
|
8522
|
+
@media (min-width: 458px) {
|
|
8523
|
+
._PuckLayout-mounted_mr27u_156 ._PuckLayout-inner_mr27u_40 {
|
|
8524
|
+
--puck-frame-width: minmax(266px, auto);
|
|
8525
|
+
}
|
|
8526
|
+
}
|
|
8527
|
+
@media (min-width: 638px) {
|
|
8528
|
+
._PuckLayout_mr27u_36 ._PuckLayout-inner_mr27u_40 {
|
|
8529
|
+
--puck-sidebar-width: minmax(186px, 250px);
|
|
8530
|
+
}
|
|
8531
|
+
}
|
|
8532
|
+
@media (min-width: 766px) {
|
|
8533
|
+
._PuckLayout_mr27u_36 ._PuckLayout-inner_mr27u_40 {
|
|
8534
|
+
--puck-frame-width: auto;
|
|
8535
|
+
}
|
|
8536
|
+
}
|
|
8537
|
+
@media (min-width: 990px) {
|
|
8538
|
+
._PuckLayout_mr27u_36 ._PuckLayout-inner_mr27u_40 {
|
|
8539
|
+
--puck-sidebar-width: 256px;
|
|
8540
|
+
}
|
|
8541
|
+
}
|
|
8542
|
+
@media (min-width: 1198px) {
|
|
8543
|
+
._PuckLayout_mr27u_36 ._PuckLayout-inner_mr27u_40 {
|
|
8544
|
+
--puck-sidebar-width: 274px;
|
|
8545
|
+
}
|
|
8546
|
+
}
|
|
8547
|
+
@media (min-width: 1398px) {
|
|
8548
|
+
._PuckLayout_mr27u_36 ._PuckLayout-inner_mr27u_40 {
|
|
8549
|
+
--puck-sidebar-width: 290px;
|
|
8550
|
+
}
|
|
8551
|
+
}
|
|
8552
|
+
@media (min-width: 1598px) {
|
|
8553
|
+
._PuckLayout_mr27u_36 ._PuckLayout-inner_mr27u_40 {
|
|
8554
|
+
--puck-sidebar-width: 320px;
|
|
8555
|
+
}
|
|
8556
|
+
}
|
|
8557
|
+
._PuckLayout-nav_mr27u_197 {
|
|
8558
|
+
border-top: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
8559
|
+
background-color: var( --puck-pluginbar-color-bg, var(--puck-color-surface-subtle) );
|
|
8560
|
+
grid-area: sidenav;
|
|
8561
|
+
overflow: hidden;
|
|
8562
|
+
width: 100%;
|
|
8563
|
+
}
|
|
8564
|
+
@media (min-width: 638px) {
|
|
8565
|
+
._PuckLayout-nav_mr27u_197 {
|
|
8566
|
+
border-top: 0;
|
|
8567
|
+
border-right: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
8568
|
+
box-sizing: border-box;
|
|
8569
|
+
}
|
|
8570
|
+
}
|
|
8571
|
+
._PuckLayout-header_mr27u_217 {
|
|
8572
|
+
grid-area: header;
|
|
8573
|
+
}
|
|
8574
|
+
._PuckLayout--leftSideBarVisible_mr27u_82 ._PuckLayout-header_mr27u_217 {
|
|
8575
|
+
overflow: hidden;
|
|
8576
|
+
}
|
|
8577
|
+
@media (min-width: 638px) {
|
|
8578
|
+
._PuckLayout--leftSideBarVisible_mr27u_82 ._PuckLayout-header_mr27u_217 {
|
|
8579
|
+
overflow: auto;
|
|
8580
|
+
}
|
|
8581
|
+
}
|
|
8582
|
+
._PuckPluginTab_mr27u_231 {
|
|
8583
|
+
display: none;
|
|
8584
|
+
flex-grow: 1;
|
|
8585
|
+
max-height: 100%;
|
|
8586
|
+
}
|
|
8587
|
+
._PuckPluginTab--visible_mr27u_237 {
|
|
8588
|
+
display: flex;
|
|
8589
|
+
flex-direction: column;
|
|
8590
|
+
}
|
|
8591
|
+
._PuckPluginTab-body_mr27u_242 {
|
|
8592
|
+
flex-grow: 1;
|
|
8593
|
+
max-height: 100%;
|
|
8594
|
+
}
|
|
8595
|
+
|
|
8596
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/MenuBar/styles.module.css/#css-module-data */
|
|
8597
|
+
._MenuBar_1hxnj_1 {
|
|
8598
|
+
background-color: var(--_puck-menu-bar-color-bg, var(--puck-color-surface));
|
|
8599
|
+
border-bottom: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
8600
|
+
display: none;
|
|
8601
|
+
left: 0;
|
|
8602
|
+
margin-top: 1px;
|
|
8603
|
+
padding: var(--puck-space-2) var(--puck-space-4);
|
|
8604
|
+
position: absolute;
|
|
8605
|
+
right: 0;
|
|
8606
|
+
top: 100%;
|
|
8607
|
+
z-index: 2;
|
|
8608
|
+
}
|
|
8609
|
+
._MenuBar--menuOpen_1hxnj_14 {
|
|
8610
|
+
display: block;
|
|
8611
|
+
}
|
|
8612
|
+
@media (min-width: 638px) {
|
|
8613
|
+
._MenuBar_1hxnj_1 {
|
|
8614
|
+
border: none;
|
|
8615
|
+
display: block;
|
|
8616
|
+
margin-top: 0;
|
|
8617
|
+
overflow-y: visible;
|
|
8618
|
+
padding: 0;
|
|
8619
|
+
position: static;
|
|
8620
|
+
}
|
|
8621
|
+
}
|
|
8622
|
+
._MenuBar-inner_1hxnj_29 {
|
|
8623
|
+
align-items: center;
|
|
8624
|
+
display: flex;
|
|
8625
|
+
flex-wrap: wrap;
|
|
8626
|
+
gap: var(--puck-space-2) var(--puck-space-4);
|
|
8627
|
+
justify-content: flex-end;
|
|
8628
|
+
}
|
|
8629
|
+
@media (min-width: 638px) {
|
|
8630
|
+
._MenuBar-inner_1hxnj_29 {
|
|
8631
|
+
display: flex;
|
|
8632
|
+
flex-direction: row;
|
|
8633
|
+
flex-wrap: nowrap;
|
|
8634
|
+
}
|
|
8635
|
+
}
|
|
8636
|
+
._MenuBar-history_1hxnj_45 {
|
|
8637
|
+
display: flex;
|
|
8638
|
+
}
|
|
8639
|
+
|
|
8640
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Header/styles.module.css/#css-module-data */
|
|
8641
|
+
._PuckHeader_c2nei_1 {
|
|
8642
|
+
--_puck-menu-bar-color-bg: var( --puck-header-color-bg, var(--puck-color-surface) );
|
|
8643
|
+
background: var(--puck-header-color-bg, var(--puck-color-surface));
|
|
8644
|
+
border-bottom: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
8645
|
+
color: var(--puck-header-color-text, var(--puck-color-text));
|
|
8646
|
+
--_puck-heading-color: var(--puck-header-color-text, var(--puck-color-text));
|
|
8647
|
+
grid-area: header;
|
|
8648
|
+
position: relative;
|
|
8649
|
+
max-width: 100vw;
|
|
8650
|
+
}
|
|
8651
|
+
@media (min-width: 638px) {
|
|
8652
|
+
._PuckHeader_c2nei_1 {
|
|
8653
|
+
padding-left: 67px;
|
|
8654
|
+
}
|
|
8655
|
+
._PuckHeader--hidePlugins_c2nei_21 {
|
|
8656
|
+
padding-left: 0;
|
|
8657
|
+
}
|
|
8658
|
+
}
|
|
8659
|
+
._PuckHeader-inner_c2nei_26 {
|
|
8660
|
+
align-items: end;
|
|
8661
|
+
display: grid;
|
|
8662
|
+
gap: var(--puck-space-chrome-gutter);
|
|
8663
|
+
grid-template-areas: "left middle right";
|
|
8664
|
+
grid-template-columns: 1fr auto 1fr;
|
|
8665
|
+
grid-template-rows: auto;
|
|
8666
|
+
padding: var(--puck-space-chrome-gutter);
|
|
8667
|
+
}
|
|
8668
|
+
@media (min-width: 638px) {
|
|
8669
|
+
._PuckHeader-inner_c2nei_26 {
|
|
8670
|
+
border-left: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
8671
|
+
}
|
|
8672
|
+
._PuckHeader--hidePlugins_c2nei_21 ._PuckHeader-inner_c2nei_26 {
|
|
8673
|
+
border-left: none;
|
|
8674
|
+
}
|
|
8675
|
+
}
|
|
8676
|
+
._PuckHeader-toggle_c2nei_46 {
|
|
8677
|
+
display: flex;
|
|
8678
|
+
margin-inline-start: calc(var(--puck-space-1) * -1);
|
|
8679
|
+
padding-top: 2px;
|
|
8680
|
+
}
|
|
8681
|
+
._PuckHeader-rightSideBarToggle_c2nei_52,
|
|
8682
|
+
._PuckHeader-leftSideBarToggle_c2nei_53 {
|
|
8683
|
+
display: none;
|
|
8684
|
+
}
|
|
8685
|
+
@media (min-width: 638px) {
|
|
8686
|
+
._PuckHeader-rightSideBarToggle_c2nei_52,
|
|
8687
|
+
._PuckHeader-leftSideBarToggle_c2nei_53 {
|
|
8688
|
+
display: block;
|
|
8689
|
+
}
|
|
8690
|
+
}
|
|
8691
|
+
._PuckHeader-title_c2nei_64 {
|
|
8692
|
+
align-self: center;
|
|
8693
|
+
}
|
|
8694
|
+
._PuckHeader-path_c2nei_68 {
|
|
8695
|
+
font-family: var(--puck-font-family-monospaced);
|
|
8696
|
+
font-size: var(--puck-font-size-xxs);
|
|
8697
|
+
font-weight: normal;
|
|
8698
|
+
word-break: break-all;
|
|
8699
|
+
}
|
|
8700
|
+
._PuckHeader-tools_c2nei_75 {
|
|
8701
|
+
display: flex;
|
|
8702
|
+
gap: var(--puck-space-4);
|
|
8703
|
+
justify-content: flex-end;
|
|
8704
|
+
}
|
|
8705
|
+
._PuckHeader-menuButton_c2nei_81 {
|
|
8706
|
+
color: var(--puck-color-text-muted);
|
|
8707
|
+
margin-inline-start: calc(var(--puck-space-1) * -1);
|
|
8708
|
+
}
|
|
8709
|
+
._PuckHeader--menuOpen_c2nei_86 ._PuckHeader-menuButton_c2nei_81 {
|
|
8710
|
+
color: var(--puck-color-text);
|
|
8711
|
+
}
|
|
8712
|
+
@media (min-width: 638px) {
|
|
8713
|
+
._PuckHeader-menuButton_c2nei_81 {
|
|
8714
|
+
display: none;
|
|
8715
|
+
}
|
|
8716
|
+
}
|
|
8717
|
+
|
|
8718
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css/#css-module-data */
|
|
8719
|
+
._SidebarSection_1uv88_1 {
|
|
8720
|
+
display: flex;
|
|
8721
|
+
position: relative;
|
|
8722
|
+
flex-direction: column;
|
|
8723
|
+
color: var(--puck-color-text);
|
|
8724
|
+
}
|
|
8725
|
+
._SidebarSection_1uv88_1:last-of-type {
|
|
8726
|
+
flex-grow: 1;
|
|
8727
|
+
}
|
|
8728
|
+
._SidebarSection-title_1uv88_12 {
|
|
8729
|
+
background: var(--_puck-sidebar-section-color-bg, var(--puck-color-surface));
|
|
8730
|
+
padding: var(--puck-space-4);
|
|
8731
|
+
border-bottom: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
8732
|
+
border-top: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
8733
|
+
overflow-x: auto;
|
|
8734
|
+
}
|
|
8735
|
+
._SidebarSection--noBorderTop_1uv88_20 > ._SidebarSection-title_1uv88_12 {
|
|
8736
|
+
border-top: 0px;
|
|
8737
|
+
}
|
|
8738
|
+
._SidebarSection-content_1uv88_24:last-child {
|
|
8739
|
+
padding-bottom: var(--puck-space-1);
|
|
8740
|
+
}
|
|
8741
|
+
._SidebarSection_1uv88_1:last-of-type ._SidebarSection-content_1uv88_24 {
|
|
8742
|
+
border-bottom: none;
|
|
8743
|
+
flex-grow: 1;
|
|
8744
|
+
}
|
|
8745
|
+
._SidebarSection-breadcrumbLabel_1uv88_33 {
|
|
8746
|
+
background: none;
|
|
8747
|
+
border: 0;
|
|
8748
|
+
border-radius: var(--puck-radius-xs);
|
|
8749
|
+
color: var(--puck-color-interactive);
|
|
8750
|
+
cursor: pointer;
|
|
8751
|
+
font: inherit;
|
|
8752
|
+
flex-shrink: 0;
|
|
8753
|
+
padding: 0;
|
|
8754
|
+
transition: color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
8755
|
+
}
|
|
8756
|
+
._SidebarSection-breadcrumbLabel_1uv88_33:focus-visible {
|
|
8757
|
+
outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
|
|
8758
|
+
outline-offset: var(--puck-border-width-focus);
|
|
8759
|
+
}
|
|
8760
|
+
@media (hover: hover) and (pointer: fine) {
|
|
8761
|
+
._SidebarSection-breadcrumbLabel_1uv88_33:hover {
|
|
8762
|
+
color: var(--puck-color-interactive-hover);
|
|
8763
|
+
transition: none;
|
|
8764
|
+
}
|
|
8765
|
+
}
|
|
8766
|
+
._SidebarSection-breadcrumbLabel_1uv88_33:active {
|
|
8767
|
+
color: var(--puck-color-interactive-active);
|
|
8768
|
+
transition: none;
|
|
8769
|
+
}
|
|
8770
|
+
._SidebarSection-breadcrumbs_1uv88_62 {
|
|
8771
|
+
align-items: center;
|
|
8772
|
+
display: flex;
|
|
8773
|
+
gap: var(--puck-space-1);
|
|
8774
|
+
}
|
|
8775
|
+
._SidebarSection-breadcrumb_1uv88_33 {
|
|
8776
|
+
align-items: center;
|
|
8777
|
+
display: flex;
|
|
8778
|
+
gap: var(--puck-space-1);
|
|
8779
|
+
}
|
|
8780
|
+
._SidebarSection-heading_1uv88_74 {
|
|
8781
|
+
padding-inline-end: var(--puck-space-4);
|
|
8782
|
+
}
|
|
8783
|
+
._SidebarSection-loadingOverlay_1uv88_78 {
|
|
8784
|
+
background: var(--puck-color-surface);
|
|
8785
|
+
display: flex;
|
|
8786
|
+
justify-content: center;
|
|
8787
|
+
align-items: center;
|
|
8788
|
+
height: 100%;
|
|
8789
|
+
width: 100%;
|
|
8790
|
+
top: 0;
|
|
8791
|
+
position: absolute;
|
|
8792
|
+
z-index: 1;
|
|
8793
|
+
pointer-events: all;
|
|
8794
|
+
box-sizing: border-box;
|
|
8795
|
+
opacity: 0.8;
|
|
8796
|
+
}
|
|
8797
|
+
|
|
8798
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Breadcrumbs/styles.module.css/#css-module-data */
|
|
8799
|
+
._Breadcrumbs_8c6w5_1 {
|
|
8800
|
+
align-items: center;
|
|
8801
|
+
display: flex;
|
|
8802
|
+
gap: var(--puck-space-1);
|
|
8803
|
+
}
|
|
8804
|
+
._Breadcrumbs-breadcrumbLabel_8c6w5_7 {
|
|
8805
|
+
background: none;
|
|
8806
|
+
border: 0;
|
|
8807
|
+
border-radius: var(--puck-radius-xs);
|
|
8808
|
+
color: var(--puck-color-interactive);
|
|
8809
|
+
cursor: pointer;
|
|
8810
|
+
font: inherit;
|
|
8811
|
+
flex-shrink: 0;
|
|
8812
|
+
padding: 0;
|
|
8813
|
+
transition: color var(--puck-duration-fast) var(--puck-ease-exit);
|
|
8814
|
+
}
|
|
8815
|
+
._Breadcrumbs-breadcrumbLabel_8c6w5_7:focus-visible {
|
|
8816
|
+
outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
|
|
8817
|
+
outline-offset: var(--puck-border-width-focus);
|
|
8818
|
+
}
|
|
8819
|
+
@media (hover: hover) and (pointer: fine) {
|
|
8820
|
+
._Breadcrumbs-breadcrumbLabel_8c6w5_7:hover {
|
|
8821
|
+
color: var(--puck-color-interactive-hover);
|
|
8822
|
+
transition: none;
|
|
8823
|
+
}
|
|
8824
|
+
}
|
|
8825
|
+
._Breadcrumbs-breadcrumbLabel_8c6w5_7:active {
|
|
8826
|
+
color: var(--puck-color-interactive-active);
|
|
8827
|
+
transition: none;
|
|
8828
|
+
}
|
|
8829
|
+
._Breadcrumbs-breadcrumb_8c6w5_7 {
|
|
8830
|
+
align-items: center;
|
|
8831
|
+
display: flex;
|
|
8832
|
+
gap: var(--puck-space-1);
|
|
8833
|
+
}
|
|
8834
|
+
|
|
8835
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/ViewportControls/styles.module.css/#css-module-data */
|
|
8836
|
+
._ViewportControls_v26yb_1 {
|
|
8837
|
+
position: relative;
|
|
8838
|
+
}
|
|
8839
|
+
._ViewportControls--fullScreen_v26yb_5 {
|
|
8840
|
+
border-radius: 32px;
|
|
8841
|
+
display: flex;
|
|
8842
|
+
position: absolute;
|
|
8843
|
+
bottom: var(--puck-space-3);
|
|
8844
|
+
right: var(--puck-space-3);
|
|
8845
|
+
overflow: hidden;
|
|
8846
|
+
}
|
|
8847
|
+
._ViewportControls-toggleButton_v26yb_14 {
|
|
8848
|
+
display: none;
|
|
8849
|
+
}
|
|
8850
|
+
._ViewportControls--fullScreen_v26yb_5 ._ViewportControls-toggleButton_v26yb_14 {
|
|
8851
|
+
align-items: center;
|
|
8852
|
+
background-color: var(--puck-color-surface-inverse);
|
|
8853
|
+
border: var(--puck-border-width-regular) solid var(--puck-color-border-inverse);
|
|
8854
|
+
border-radius: var(--puck-radius-pill);
|
|
8855
|
+
cursor: pointer;
|
|
8856
|
+
color: var(--puck-color-text-inverse);
|
|
8857
|
+
display: flex;
|
|
8858
|
+
justify-content: center;
|
|
8859
|
+
width: 42px;
|
|
8860
|
+
height: 42px;
|
|
8861
|
+
z-index: 1;
|
|
8862
|
+
}
|
|
8863
|
+
._ViewportControls--fullScreen_v26yb_5 ._ViewportControls-toggleButton_v26yb_14:hover {
|
|
8864
|
+
color: var(--puck-color-interactive-inverse-hover);
|
|
8865
|
+
border: var(--puck-border-width-regular) solid var(--puck-color-interactive-inverse-hover);
|
|
8866
|
+
}
|
|
8867
|
+
._ViewportControls-actions_v26yb_39 {
|
|
8868
|
+
display: flex;
|
|
8869
|
+
}
|
|
8870
|
+
._ViewportControls-actionsInner_v26yb_43 {
|
|
8871
|
+
display: flex;
|
|
8872
|
+
box-sizing: border-box;
|
|
8873
|
+
justify-content: center;
|
|
8874
|
+
margin-left: auto;
|
|
8875
|
+
margin-right: auto;
|
|
8876
|
+
z-index: 0;
|
|
8877
|
+
overflow: hidden;
|
|
8878
|
+
}
|
|
8879
|
+
._ViewportControls--fullScreen_v26yb_5 ._ViewportControls-actionsInner_v26yb_43 {
|
|
8880
|
+
background: var(--puck-color-surface-muted);
|
|
8881
|
+
border: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
8882
|
+
border-radius: var(--puck-radius-pill);
|
|
8883
|
+
margin-left: none;
|
|
8884
|
+
margin-right: none;
|
|
8885
|
+
padding-right: 42px;
|
|
8886
|
+
}
|
|
8887
|
+
._ViewportControls--fullScreen_v26yb_5 ._ViewportControls-actionsInner_v26yb_43 {
|
|
8888
|
+
transform: translateX(100%);
|
|
8889
|
+
transition: transform var(--puck-duration-medium) var(--puck-ease-emphasized);
|
|
8890
|
+
}
|
|
8891
|
+
._ViewportControls--fullScreen_v26yb_5._ViewportControls--isExpanded_v26yb_67 ._ViewportControls-actionsInner_v26yb_43 {
|
|
8892
|
+
transform: translateX(42px);
|
|
8893
|
+
}
|
|
8894
|
+
._ViewportControls-divider_v26yb_72 {
|
|
8895
|
+
border-inline-end: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
8896
|
+
margin-bottom: var(--puck-space-2);
|
|
8897
|
+
margin-top: var(--puck-space-2);
|
|
8898
|
+
}
|
|
8899
|
+
._ViewportControls-zoomSelect_v26yb_79 {
|
|
8900
|
+
appearance: none;
|
|
8901
|
+
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;
|
|
8902
|
+
background-size: 10px;
|
|
8903
|
+
color: currentColor;
|
|
8904
|
+
background-position: calc(100% - 12px) calc(50% + 3px);
|
|
8905
|
+
background-repeat: no-repeat;
|
|
8906
|
+
border: 0;
|
|
8907
|
+
font-size: var(--puck-font-size-xxxs);
|
|
8908
|
+
padding: 0;
|
|
8909
|
+
padding-left: var(--puck-space-2);
|
|
8910
|
+
width: 96px;
|
|
8911
|
+
}
|
|
8912
|
+
._ViewportControls--fullScreen_v26yb_5 ._ViewportControls-zoom_v26yb_79 {
|
|
8913
|
+
display: none;
|
|
8914
|
+
}
|
|
8915
|
+
@media (min-width: 638px) {
|
|
8916
|
+
._ViewportControls-zoom_v26yb_79,
|
|
8917
|
+
._ViewportControls--fullScreen_v26yb_5 ._ViewportControls-zoom_v26yb_79 {
|
|
8918
|
+
display: flex;
|
|
8919
|
+
justify-content: center;
|
|
8920
|
+
}
|
|
8921
|
+
}
|
|
8922
|
+
._ViewportControls-zoomSelect_v26yb_79:dir(rtl) {
|
|
8923
|
+
background-position: 12px calc(50% + 3px);
|
|
8924
|
+
}
|
|
8925
|
+
._ViewportButton-inner_v26yb_110 {
|
|
8926
|
+
align-items: center;
|
|
8927
|
+
display: flex;
|
|
8928
|
+
justify-content: center;
|
|
8929
|
+
height: 32px;
|
|
8930
|
+
width: 32px;
|
|
8931
|
+
}
|
|
8932
|
+
._ViewportButton--isActive_v26yb_118 ._ViewportButton-inner_v26yb_110 {
|
|
8933
|
+
color: var(--puck-color-interactive);
|
|
8934
|
+
}
|
|
8935
|
+
|
|
8936
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Canvas/styles.module.css/#css-module-data */
|
|
8937
|
+
._PuckCanvas_zw9iy_1 {
|
|
8938
|
+
color: var(--puck-canvas-color-text, var(--puck-color-text));
|
|
8939
|
+
background: var(--puck-canvas-color-bg, var(--puck-color-surface-muted));
|
|
8940
|
+
display: flex;
|
|
8941
|
+
grid-area: editor;
|
|
8942
|
+
flex-direction: column;
|
|
8943
|
+
padding: var(--puck-space-chrome-gutter);
|
|
8944
|
+
position: relative;
|
|
8945
|
+
overflow: auto;
|
|
8946
|
+
}
|
|
8947
|
+
@media (min-width: 1198px) {
|
|
8948
|
+
._PuckCanvas_zw9iy_1 {
|
|
8949
|
+
padding: calc(var(--puck-space-chrome-gutter) * 1.5);
|
|
8950
|
+
padding-top: calc(var(--puck-space-chrome-gutter) * 0.5);
|
|
8951
|
+
}
|
|
8952
|
+
._PuckCanvas_zw9iy_1:not(._PuckCanvas_zw9iy_1:has(._PuckCanvas-controls_zw9iy_18)) {
|
|
8953
|
+
padding-top: calc(var(--puck-space-chrome-gutter) * 1.5);
|
|
8954
|
+
}
|
|
8955
|
+
}
|
|
8956
|
+
._PuckCanvas--fullScreen_zw9iy_23 {
|
|
8957
|
+
padding: 0;
|
|
8958
|
+
overflow: hidden;
|
|
8959
|
+
}
|
|
8960
|
+
@media (min-width: 1198px) {
|
|
8961
|
+
._PuckCanvas--fullScreen_zw9iy_23 {
|
|
8962
|
+
padding: 0;
|
|
8963
|
+
}
|
|
8964
|
+
}
|
|
8965
|
+
._PuckCanvas-inner_zw9iy_34 {
|
|
8966
|
+
display: flex;
|
|
8967
|
+
height: 100%;
|
|
8968
|
+
justify-content: center;
|
|
8969
|
+
min-width: 288px;
|
|
8970
|
+
position: relative;
|
|
8971
|
+
width: 100%;
|
|
8972
|
+
}
|
|
8973
|
+
._PuckCanvas-root_zw9iy_43 {
|
|
8974
|
+
background: var(--puck-canvas-preview-color-bg, var(--puck-color-surface));
|
|
8975
|
+
outline: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
8976
|
+
box-sizing: content-box;
|
|
8977
|
+
min-width: 321px;
|
|
8978
|
+
position: absolute;
|
|
8979
|
+
pointer-events: none;
|
|
8980
|
+
transform-origin: top;
|
|
8981
|
+
top: 0;
|
|
8982
|
+
bottom: 0;
|
|
8983
|
+
opacity: 0;
|
|
8984
|
+
}
|
|
8985
|
+
@media (min-width: 1198px) {
|
|
8986
|
+
._PuckCanvas-root_zw9iy_43 {
|
|
8987
|
+
min-width: unset;
|
|
8988
|
+
}
|
|
8989
|
+
}
|
|
8990
|
+
@media (prefers-reduced-motion: reduce) {
|
|
8991
|
+
._PuckCanvas-root_zw9iy_43 {
|
|
8992
|
+
transition: none !important;
|
|
8993
|
+
}
|
|
8994
|
+
}
|
|
8995
|
+
._PuckCanvas--ready_zw9iy_68 ._PuckCanvas-root_zw9iy_43 {
|
|
8996
|
+
pointer-events: unset;
|
|
8997
|
+
opacity: 1;
|
|
8998
|
+
}
|
|
8999
|
+
._PuckCanvas-loader_zw9iy_73 {
|
|
9000
|
+
align-items: center;
|
|
9001
|
+
color: var(--puck-color-text-subtle);
|
|
9002
|
+
display: flex;
|
|
9003
|
+
height: 100%;
|
|
9004
|
+
justify-content: center;
|
|
9005
|
+
transition: opacity var(--puck-duration-slow) var(--puck-ease-entrance);
|
|
9006
|
+
opacity: 0;
|
|
9007
|
+
pointer-events: none;
|
|
9008
|
+
}
|
|
9009
|
+
._PuckCanvas--showLoader_zw9iy_84 ._PuckCanvas-loader_zw9iy_73 {
|
|
9010
|
+
opacity: 1;
|
|
9011
|
+
}
|
|
9012
|
+
._PuckCanvas--showLoader_zw9iy_84._PuckCanvas--ready_zw9iy_68 ._PuckCanvas-loader_zw9iy_73 {
|
|
9013
|
+
opacity: 0;
|
|
9014
|
+
height: 0;
|
|
9015
|
+
transition: none;
|
|
9016
|
+
}
|
|
9017
|
+
._PuckCanvas-controls_zw9iy_18 {
|
|
9018
|
+
padding-bottom: calc(var(--puck-space-chrome-gutter) * 0.5);
|
|
9019
|
+
}
|
|
9020
|
+
._PuckCanvas--fullScreen_zw9iy_23 ._PuckCanvas-controls_zw9iy_18 {
|
|
9021
|
+
padding-bottom: 0;
|
|
9022
|
+
z-index: 1;
|
|
9023
|
+
}
|
|
9024
|
+
|
|
9025
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/ResizeHandle/styles.module.css/#css-module-data */
|
|
9026
|
+
@media (min-width: 766px) {
|
|
9027
|
+
._ResizeHandle_144bf_2 {
|
|
9028
|
+
position: absolute;
|
|
9029
|
+
width: 5px;
|
|
9030
|
+
height: 100%;
|
|
9031
|
+
cursor: col-resize;
|
|
9032
|
+
z-index: 10;
|
|
9033
|
+
background: transparent;
|
|
9034
|
+
top: 0;
|
|
9035
|
+
}
|
|
9036
|
+
._ResizeHandle_144bf_2:hover {
|
|
9037
|
+
background: rgba(0, 0, 0, 0.1);
|
|
9038
|
+
}
|
|
9039
|
+
._ResizeHandle--left_144bf_16 {
|
|
9040
|
+
right: -3px;
|
|
9041
|
+
}
|
|
9042
|
+
._ResizeHandle--right_144bf_20 {
|
|
9043
|
+
left: -3px;
|
|
9044
|
+
}
|
|
9045
|
+
}
|
|
9046
|
+
|
|
9047
|
+
/* components/Puck/components/ResizeHandle/styles.css */
|
|
9048
|
+
[data-resize-overlay] {
|
|
9049
|
+
position: fixed;
|
|
9050
|
+
top: 0;
|
|
9051
|
+
left: 0;
|
|
9052
|
+
right: 0;
|
|
9053
|
+
bottom: 0;
|
|
9054
|
+
z-index: 9999;
|
|
9055
|
+
cursor: col-resize;
|
|
9056
|
+
}
|
|
9057
|
+
|
|
9058
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Sidebar/styles.module.css/#css-module-data */
|
|
9059
|
+
._Sidebar_16oed_1 {
|
|
9060
|
+
border-block-start: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
9061
|
+
position: relative;
|
|
9062
|
+
display: none;
|
|
9063
|
+
flex-direction: column;
|
|
9064
|
+
overflow-y: auto;
|
|
9065
|
+
}
|
|
9066
|
+
._Sidebar--isVisible_16oed_10 {
|
|
9067
|
+
display: flex;
|
|
9068
|
+
}
|
|
9069
|
+
._Sidebar--left_16oed_14 {
|
|
9070
|
+
--_puck-sidebar-section-color-bg: var( --puck-sidebar-left-color-bg, var(--puck-color-surface) );
|
|
9071
|
+
background: var( --puck-sidebar-left-color-bg, var(--puck-color-surface-subtle) );
|
|
9072
|
+
grid-area: left;
|
|
9073
|
+
}
|
|
9074
|
+
@media (min-width: 766px) {
|
|
9075
|
+
._Sidebar--left_16oed_14 {
|
|
9076
|
+
border-block-start: 0;
|
|
9077
|
+
border-inline-end: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
9078
|
+
}
|
|
9079
|
+
}
|
|
9080
|
+
._Sidebar--right_16oed_34 {
|
|
9081
|
+
--_puck-sidebar-section-color-bg: var( --puck-sidebar-right-color-bg, var(--puck-color-surface) );
|
|
9082
|
+
background: var(--puck-sidebar-right-color-bg, var(--puck-color-surface));
|
|
9083
|
+
grid-area: right;
|
|
9084
|
+
}
|
|
9085
|
+
@media (min-width: 766px) {
|
|
9086
|
+
._Sidebar--right_16oed_34 {
|
|
9087
|
+
border-block-start: 0;
|
|
9088
|
+
border-inline-start: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
9089
|
+
}
|
|
9090
|
+
}
|
|
9091
|
+
._Sidebar-resizeHandle_16oed_51 {
|
|
9092
|
+
position: absolute;
|
|
9093
|
+
height: 100%;
|
|
9094
|
+
}
|
|
9095
|
+
._Sidebar--left_16oed_14 + ._Sidebar-resizeHandle_16oed_51 {
|
|
9096
|
+
grid-area: left;
|
|
9097
|
+
justify-self: end;
|
|
9098
|
+
}
|
|
9099
|
+
._Sidebar--right_16oed_34 + ._Sidebar-resizeHandle_16oed_51 {
|
|
9100
|
+
grid-area: right;
|
|
9101
|
+
justify-self: start;
|
|
9102
|
+
}
|
|
9103
|
+
|
|
9104
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Nav/styles.module.css/#css-module-data */
|
|
9105
|
+
._Nav_vll2r_1 {
|
|
9106
|
+
display: flex;
|
|
9107
|
+
}
|
|
9108
|
+
._Nav-list_vll2r_5 {
|
|
9109
|
+
display: flex;
|
|
9110
|
+
list-style: none;
|
|
9111
|
+
margin: 0;
|
|
9112
|
+
padding: 0;
|
|
9113
|
+
overflow-x: auto;
|
|
9114
|
+
gap: var(--puck-space-2);
|
|
9115
|
+
}
|
|
9116
|
+
@media (min-width: 638px) {
|
|
9117
|
+
._Nav-list_vll2r_5 {
|
|
9118
|
+
padding-top: 32px;
|
|
9119
|
+
flex-direction: column;
|
|
9120
|
+
gap: var(--puck-space-4);
|
|
9121
|
+
width: 100%;
|
|
9122
|
+
}
|
|
9123
|
+
}
|
|
9124
|
+
._Nav-mobileActions_vll2r_23 {
|
|
9125
|
+
align-items: center;
|
|
9126
|
+
display: flex;
|
|
9127
|
+
justify-content: center;
|
|
9128
|
+
margin-inline-start: auto;
|
|
9129
|
+
padding: var(--puck-space-1) var(--puck-space-4);
|
|
9130
|
+
border-inline-start: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
9131
|
+
}
|
|
9132
|
+
@media (min-width: 638px) {
|
|
9133
|
+
._Nav-mobileActions_vll2r_23 {
|
|
9134
|
+
display: none;
|
|
9135
|
+
}
|
|
9136
|
+
}
|
|
9137
|
+
._NavItem-link_vll2r_39 {
|
|
9138
|
+
text-align: center;
|
|
9139
|
+
align-items: center;
|
|
9140
|
+
color: var(--puck-pluginbar-color-text, var(--puck-color-text-secondary));
|
|
9141
|
+
display: flex;
|
|
9142
|
+
gap: var(--puck-space-2);
|
|
9143
|
+
text-decoration: none;
|
|
9144
|
+
cursor: pointer;
|
|
9145
|
+
border-radius: var(--puck-radius-m);
|
|
9146
|
+
padding: var(--puck-space-2) var(--puck-space-1);
|
|
9147
|
+
width: 64px;
|
|
9148
|
+
box-sizing: border-box;
|
|
9149
|
+
}
|
|
9150
|
+
@media (min-width: 638px) {
|
|
9151
|
+
._NavItem-link_vll2r_39 {
|
|
9152
|
+
width: auto;
|
|
9153
|
+
}
|
|
9154
|
+
}
|
|
9155
|
+
._NavItem_vll2r_39:first-of-type {
|
|
9156
|
+
padding-left: var(--puck-space-4);
|
|
9157
|
+
}
|
|
9158
|
+
._NavItem_vll2r_39:last-of-type {
|
|
9159
|
+
padding-right: var(--puck-space-4);
|
|
9160
|
+
}
|
|
9161
|
+
@media (min-width: 638px) {
|
|
9162
|
+
._NavItem_vll2r_39:first-of-type,
|
|
9163
|
+
._NavItem_vll2r_39:last-of-type {
|
|
9164
|
+
padding: 0;
|
|
9165
|
+
}
|
|
9166
|
+
}
|
|
9167
|
+
._NavItem-link_vll2r_39 {
|
|
9168
|
+
border-top: var(--puck-border-width-strong) solid transparent;
|
|
9169
|
+
border-bottom: var(--puck-border-width-strong) solid transparent;
|
|
9170
|
+
border-radius: var(--puck-radius-none);
|
|
9171
|
+
flex-direction: column;
|
|
9172
|
+
font-size: var(--puck-pluginbar-font-size, var(--puck-font-size-xxxs));
|
|
9173
|
+
}
|
|
9174
|
+
@media (min-width: 638px) {
|
|
9175
|
+
._NavItem-link_vll2r_39 {
|
|
9176
|
+
border: 0;
|
|
9177
|
+
border-left: var(--puck-border-width-strong) solid transparent;
|
|
9178
|
+
border-right: var(--puck-border-width-strong) solid transparent;
|
|
9179
|
+
}
|
|
9180
|
+
}
|
|
9181
|
+
._NavItem-linkIcon_vll2r_90 {
|
|
9182
|
+
height: 2em;
|
|
9183
|
+
width: 2em;
|
|
9184
|
+
}
|
|
9185
|
+
._NavItem-linkIcon_vll2r_90 svg {
|
|
9186
|
+
height: 100%;
|
|
9187
|
+
width: 100%;
|
|
9188
|
+
}
|
|
9189
|
+
._NavItem--active_vll2r_100 > ._NavItem-link_vll2r_39 {
|
|
9190
|
+
background-color: var(--puck-color-interactive-subtle);
|
|
9191
|
+
color: var( --puck-pluginbar-color-text-selected, var(--puck-color-interactive) );
|
|
9192
|
+
font-weight: var(--puck-font-weight-semibold);
|
|
9193
|
+
}
|
|
9194
|
+
._NavItem--active_vll2r_100 > ._NavItem-link_vll2r_39 {
|
|
9195
|
+
background-color: transparent;
|
|
9196
|
+
border-top-color: var(--puck-color-interactive);
|
|
9197
|
+
border-top-right-radius: 0;
|
|
9198
|
+
border-bottom-right-radius: 0;
|
|
9199
|
+
font-weight: var(--puck-font-weight-semibold);
|
|
9200
|
+
}
|
|
9201
|
+
@media (min-width: 638px) {
|
|
9202
|
+
._NavItem--active_vll2r_100 > ._NavItem-link_vll2r_39 {
|
|
9203
|
+
border-top-color: transparent;
|
|
9204
|
+
border-right-color: var( --puck-pluginbar-color-text-selected, var(--puck-color-interactive) );
|
|
9205
|
+
}
|
|
9206
|
+
}
|
|
9207
|
+
._NavItem_vll2r_39:not(._NavItem--active_vll2r_100) > ._NavItem-link_vll2r_39:hover {
|
|
9208
|
+
background-color: var( --puck-pluginbar-color-bg-hover, var(--puck-color-interactive-soft) );
|
|
9209
|
+
color: var(--puck-pluginbar-color-text-hover, var(--puck-color-interactive));
|
|
9210
|
+
}
|
|
9211
|
+
@media (min-width: 638px) {
|
|
9212
|
+
._NavItem--mobileOnly_vll2r_136 {
|
|
9213
|
+
display: none;
|
|
9214
|
+
}
|
|
9215
|
+
}
|
|
9216
|
+
._NavItem--desktopOnly_vll2r_141 {
|
|
9217
|
+
display: none;
|
|
9218
|
+
}
|
|
9219
|
+
@media (min-width: 638px) {
|
|
9220
|
+
._NavItem--desktopOnly_vll2r_141 {
|
|
9221
|
+
display: block;
|
|
9222
|
+
}
|
|
9223
|
+
}
|
|
9224
|
+
|
|
9225
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/plugins/blocks/styles.module.css/#css-module-data */
|
|
9226
|
+
._BlocksPlugin_9af19_1 {
|
|
9227
|
+
padding: var(--puck-drawer-space, var(--puck-space-4));
|
|
9228
|
+
height: 100%;
|
|
9229
|
+
overflow-y: auto;
|
|
9230
|
+
box-sizing: border-box;
|
|
9231
|
+
}
|
|
9232
|
+
|
|
9233
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/plugins/outline/styles.module.css/#css-module-data */
|
|
9234
|
+
._OutlinePlugin_16k03_1 {
|
|
9235
|
+
padding: var(--puck-space-4);
|
|
9236
|
+
height: 100%;
|
|
9237
|
+
overflow-y: auto;
|
|
9238
|
+
box-sizing: border-box;
|
|
9239
|
+
}
|
|
9240
|
+
|
|
9241
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/plugins/fields/styles.module.css/#css-module-data */
|
|
9242
|
+
._FieldsPlugin_18cj3_1 {
|
|
9243
|
+
background: var(--puck-color-surface);
|
|
9244
|
+
height: 100%;
|
|
9245
|
+
overflow-y: auto;
|
|
9246
|
+
}
|
|
9247
|
+
._FieldsPlugin-header_18cj3_7 {
|
|
9248
|
+
border-bottom: var(--puck-border-width-regular) solid var(--puck-color-border);
|
|
9249
|
+
font-weight: var(--puck-font-weight-semibold);
|
|
9250
|
+
padding-bottom: var(--puck-space-2);
|
|
9251
|
+
padding-left: var(--puck-space-4);
|
|
9252
|
+
padding-right: var(--puck-space-4);
|
|
9253
|
+
padding-top: var(--puck-space-2);
|
|
9254
|
+
}
|
|
9255
|
+
@media (min-width: 638px) {
|
|
9256
|
+
._FieldsPlugin-header_18cj3_7 {
|
|
9257
|
+
padding: var(--puck-space-4);
|
|
9258
|
+
}
|
|
9259
|
+
}`;
|
|
9260
|
+
var iframeInteractionStyles = '/* styles/color.css */\n@layer puck-tokens {\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\n/* styles/tokens.css */\n@layer puck-tokens {\n :root {\n --puck-color-surface: var(--puck-color-white);\n --puck-color-surface-muted: var(--puck-color-grey-11);\n --puck-color-surface-subtle: var(--puck-color-grey-12);\n --puck-color-surface-inverse: var(--puck-color-grey-01);\n --puck-color-border: var(--puck-color-grey-09);\n --puck-color-border-hover: var(--puck-color-grey-05);\n --puck-color-border-muted: var(--puck-color-grey-10);\n --puck-color-border-inverse: var(--puck-color-grey-05);\n --puck-color-text: var(--puck-color-black);\n --puck-color-text-secondary: var(--puck-color-grey-04);\n --puck-color-text-muted: var(--puck-color-grey-05);\n --puck-color-text-subtle: var(--puck-color-grey-07);\n --puck-color-text-inverse: var(--puck-color-white);\n --puck-opacity-text-inverse: 0.75;\n --puck-color-interactive: var(--puck-color-azure-04);\n --puck-color-interactive-hover: var(--puck-color-azure-03);\n --puck-color-interactive-active: var(--puck-color-azure-02);\n --puck-color-interactive-subtle: var(--puck-color-azure-10);\n --puck-color-interactive-soft: var(--puck-color-azure-11);\n --puck-color-interactive-soft-hover: var(--puck-color-azure-12);\n --puck-color-interactive-neutral-hover: var(--puck-color-grey-10);\n --puck-color-interactive-inverse-hover: var(--puck-color-azure-06);\n --puck-color-interactive-inverse-active: var(--puck-color-azure-07);\n --puck-color-focus-ring: var(--puck-color-azure-05);\n --puck-color-selection-bg: color-mix( in srgb, var(--puck-color-azure-09) 30%, transparent );\n --puck-color-selection-border: var(--puck-color-azure-08);\n --puck-color-highlight: var(--puck-color-rose-07);\n --puck-color-bg-disabled: var(--puck-color-grey-07);\n --puck-color-text-disabled: var(--puck-color-grey-03);\n --puck-color-overlay-backdrop: color-mix( in srgb, var(--puck-color-black) 75%, transparent );\n --puck-space-1: 4px;\n --puck-space-2: 8px;\n --puck-space-3: 12px;\n --puck-space-4: 16px;\n --puck-space-5: 24px;\n --puck-space-chrome-gutter: var(--puck-space-4);\n --puck-radius-none: 0;\n --puck-radius-xs: 2px;\n --puck-radius-s: 3px;\n --puck-radius-m: 4px;\n --puck-radius-l: 8px;\n --puck-radius-pill: 30px;\n --puck-radius-round: 100%;\n --puck-border-width-hairline: 0.5px;\n --puck-border-width-regular: 1px;\n --puck-border-width-focus: 2px;\n --puck-border-width-strong: 4px;\n --puck-duration-fast: 50ms;\n --puck-duration-medium: 150ms;\n --puck-duration-slow: 250ms;\n --puck-ease-exit: ease-in;\n --puck-ease-emphasized: ease-in-out;\n --puck-ease-entrance: ease-out;\n --puck-font-weight-regular: 400;\n --puck-font-weight-medium: 500;\n --puck-font-weight-semibold: 600;\n --puck-font-weight-bold: 700;\n --puck-font-weight-heavy: 800;\n --puck-letter-spacing-ui: 0.05ch;\n --puck-letter-spacing-heading: 0.08ch;\n --puck-icon-size-s: 16px;\n --puck-icon-size-m: 18px;\n --puck-icon-size-l: 24px;\n --puck-space-m-unitless: 24;\n --puck-user-sidebar-left-width: var(--puck-sidebar-width);\n --puck-user-sidebar-right-width: var(--puck-sidebar-width);\n --puck-slot-min-empty-height: 128px;\n }\n}\n\n/* styles/typography.css */\n@layer puck-tokens {\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 --puck-line-height-reset: 1;\n --puck-line-height-xs: calc( var(--puck-space-m-unitless) / var(--puck-font-size-m-unitless) );\n --puck-line-height-s: calc( var(--puck-space-m-unitless) / var(--puck-font-size-s-unitless) );\n --puck-line-height-m: calc( var(--puck-space-m-unitless) / var(--puck-font-size-xs-unitless) );\n --puck-line-height-l: calc( var(--puck-space-m-unitless) / var(--puck-font-size-xxs-unitless) );\n --puck-line-height-xl: calc( var(--puck-space-m-unitless) / var(--puck-font-size-scale-base-unitless) );\n --puck-line-height-base: var(--puck-line-height-m);\n --puck-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(--puck-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(--puck-fallback-font-stack);\n }\n }\n}\n\n/* bundle/core.css */\n:root {\n --_puck-styles-loaded: "true";\n}\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_5vdfr_1 {\n align-items: center;\n cursor: default;\n display: flex;\n width: auto;\n padding-top: var(--puck-actionbar-space-y, var(--puck-space-1));\n padding-bottom: var(--puck-actionbar-space-y, var(--puck-space-1));\n padding-inline-start: var(--puck-actionbar-space-x, 0);\n padding-inline-end: var(--puck-actionbar-space-x, 0);\n border-radius: var(--puck-actionbar-radius, var(--puck-radius-l));\n background: var(--puck-actionbar-color-bg, var(--puck-color-surface-inverse));\n color: var(--puck-color-text-inverse);\n font-family: var(--puck-font-family);\n min-height: 26px;\n}\n._ActionBar-label_5vdfr_17 {\n color: var(--puck-actionbar-color-text, var(--puck-color-text-inverse));\n font-size: var(--puck-actionbar-font-size, var(--puck-font-size-xxxs));\n opacity: var(--puck-actionbar-opacity-text, var(--puck-opacity-text-inverse));\n font-weight: var(--puck-font-weight-medium);\n padding-inline-start: var(--puck-space-2);\n padding-inline-end: var(--puck-space-2);\n margin-inline-start: var(--puck-space-1);\n margin-inline-end: var(--puck-space-1);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n._ActionBarAction_5vdfr_30 + ._ActionBar-label_5vdfr_17 {\n padding-inline-start: 0;\n}\n._ActionBar-label_5vdfr_17 + ._ActionBarAction_5vdfr_30 {\n margin-inline-start: calc(var(--puck-space-1) * -1);\n}\n._ActionBar-group_5vdfr_38 {\n align-items: center;\n border-inline-start: var(--puck-border-width-hairline) solid var(--puck-actionbar-color-separator, var(--puck-color-border-inverse));\n display: flex;\n height: 100%;\n padding-inline-start: var(--puck-space-1);\n padding-inline-end: var(--puck-space-1);\n}\n._ActionBar-group_5vdfr_38:first-of-type {\n border-inline-start: 0;\n}\n._ActionBar-group_5vdfr_38:empty {\n display: none;\n}\n._ActionBarAction_5vdfr_30 {\n background: transparent;\n border: none;\n color: var(--puck-actionbar-color-text, var(--puck-color-text-inverse));\n cursor: pointer;\n padding: var(--puck-actionbar-action-space, 6px);\n margin-inline-start: var(--puck-space-1);\n margin-inline-end: var(--puck-space-1);\n border-radius: var(--puck-radius-m);\n overflow: hidden;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: var(--puck-actionbar-opacity-text, var(--puck-opacity-text-inverse));\n transition: color var(--puck-duration-fast) var(--puck-ease-exit), opacity var(--puck-duration-fast) var(--puck-ease-exit);\n}\n._ActionBarAction--disabled_5vdfr_74 {\n cursor: auto;\n color: var( --puck-actionbar-color-action-disabled, var(--puck-color-text-inverse) );\n opacity: var(--puck-actionbar-opacity-action-disabled, 0.54);\n}\n._ActionBarAction_5vdfr_30 svg {\n max-width: none !important;\n}\n._ActionBarAction_5vdfr_30:focus-visible {\n outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);\n outline-offset: calc(var(--puck-border-width-focus) * -1);\n}\n@media (hover: hover) and (pointer: fine) {\n ._ActionBarAction_5vdfr_30:hover:not(._ActionBarAction--disabled_5vdfr_74) {\n color: var( --puck-actionbar-color-action-hover, var(--puck-color-interactive-inverse-hover) );\n opacity: 1;\n transition: none;\n }\n}\n._ActionBarAction_5vdfr_30:active:not(._ActionBarAction--disabled_5vdfr_74),\n._ActionBarAction--active_5vdfr_104 {\n color: var( --puck-actionbar-color-action-active, var(--puck-color-interactive-inverse-active) );\n opacity: 1;\n transition: none;\n}\n._ActionBar-group_5vdfr_38 * {\n margin: 0;\n}\n._ActionBar-separator_5vdfr_117 {\n background: var( --puck-actionbar-color-separator, var(--puck-color-border-inverse) );\n margin-inline: var(--puck-space-1);\n width: var( --puck-border-width-hairline );\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_1627v_1 {\n position: absolute;\n pointer-events: none;\n}\n._DraggableComponent-overlayWrapper_1627v_6 {\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_1627v_6 {\n cursor: pointer;\n height: 100%;\n outline: var( --puck-slot-component-border-width, var(--puck-border-width-focus) ) var( --puck-slot-component-color-overlay-border, var(--puck-color-selection-border) ) solid;\n outline-offset: calc(var(--puck-slot-component-border-width, var(--puck-border-width-focus)) * -1);\n width: 100%;\n}\n._DraggableComponent_1627v_1:focus-visible > ._DraggableComponent-overlayWrapper_1627v_6 {\n outline: var(--puck-border-width-regular) solid var(--puck-color-focus-ring);\n}\n._DraggableComponent-loadingOverlay_1627v_38 {\n background: var(--puck-color-surface);\n color: var(--puck-color-text);\n border-radius: var(--puck-radius-m);\n display: flex;\n padding: var(--puck-space-2);\n top: var(--puck-space-2);\n right: var(--puck-space-2);\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_1627v_54 > ._DraggableComponent-overlayWrapper_1627v_6 > ._DraggableComponent-overlay_1627v_6 {\n background: var( --puck-slot-component-color-overlay, var(--puck-color-selection-bg) );\n outline: var( --puck-slot-component-border-width, var(--puck-border-width-focus) ) var( --puck-slot-component-color-overlay-border, var(--puck-color-selection-border) ) solid;\n}\n._DraggableComponent--isSelected_1627v_72 > ._DraggableComponent-overlayWrapper_1627v_6 > ._DraggableComponent-overlay_1627v_6 {\n outline-color: var( --puck-slot-component-color-border-selected, var(--puck-color-selection-border) );\n}\n._DraggableComponent_1627v_1:has(._DraggableComponent--hover_1627v_54 > ._DraggableComponent-overlayWrapper_1627v_6) > ._DraggableComponent-overlayWrapper_1627v_6 {\n display: none;\n}\n._DraggableComponent-actionsOverlay_1627v_89 {\n position: sticky;\n opacity: 0;\n pointer-events: none;\n z-index: 2;\n}\n._DraggableComponent--isSelected_1627v_72 ._DraggableComponent-actionsOverlay_1627v_89 {\n opacity: 1;\n pointer-events: auto;\n}\n._DraggableComponent-actions_1627v_89 {\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._DraggableComponent-actionsAction_1627v_111 {\n height: var(--puck-actionbar-action-size, var(--puck-icon-size-s));\n width: var(--puck-actionbar-action-size, var(--puck-icon-size-s));\n}\n\n/* css-module:/home/runner/work/puck/puck/packages/core/components/Drawer/styles.module.css/#css-module-data */\n._Drawer_1n90m_1 {\n display: flex;\n flex-direction: column;\n font-family: var(--puck-font-family);\n gap: var(--puck-space-3);\n}\n._Drawer-draggable_1n90m_8 {\n position: relative;\n}\n._Drawer-draggableBg_1n90m_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_1n90m_22 {\n background: var(--puck-drawer-item-color-bg, var(--puck-color-surface));\n color: var(--puck-drawer-item-color-text, var(--puck-color-text));\n cursor: grab;\n padding: var(--puck-drawer-item-space, var(--puck-space-3));\n display: flex;\n border: var(--puck-drawer-item-border-width, var(--puck-border-width-regular)) var(--puck-drawer-item-color-border, var(--puck-color-border)) solid;\n border-radius: var(--puck-drawer-item-radius, var(--puck-radius-m));\n font-size: var(--puck-drawer-item-font-size, var(--puck-font-size-xxs));\n justify-content: space-between;\n align-items: center;\n transition: background-color var(--puck-duration-fast) var(--puck-ease-exit), color var(--puck-duration-fast) var(--puck-ease-exit);\n}\n._DrawerItem--disabled_1n90m_38 ._DrawerItem-draggable_1n90m_22 {\n background: var(--puck-color-surface-muted);\n color: var(--puck-color-text-muted);\n cursor: not-allowed;\n}\n._DrawerItem_1n90m_22:focus-visible {\n outline: 0;\n}\n._Drawer_1n90m_1:not(._Drawer--isDraggingFrom_1n90m_48) ._DrawerItem_1n90m_22:focus-visible ._DrawerItem-draggable_1n90m_22 {\n border-radius: var(--puck-radius-m);\n outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);\n outline-offset: var(--puck-border-width-focus);\n}\n@media (hover: hover) and (pointer: fine) {\n ._Drawer_1n90m_1:not(._Drawer--isDraggingFrom_1n90m_48) ._DrawerItem_1n90m_22:not(._DrawerItem--disabled_1n90m_38) ._DrawerItem-draggable_1n90m_22:hover {\n background-color: var( --puck-drawer-item-color-bg-hover, var(--puck-color-interactive-soft-hover) );\n color: var( --puck-drawer-item-color-text-hover, var(--puck-color-interactive) );\n transition: none;\n }\n}\n._DrawerItem-name_1n90m_72 {\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_ybznu_1 {\n position: relative;\n height: 100%;\n min-height: var(--puck-slot-min-empty-height);\n outline-offset: calc(var(--puck-slot-border-width, var(--puck-border-width-focus)) * -1);\n width: 100%;\n}\n._DropZone--hasChildren_ybznu_11 {\n min-height: 0;\n}\n._DropZone_ybznu_1:empty {\n min-height: var(--puck-slot-min-empty-height);\n}\n[data-puck-entry]:not([data-puck-dragging]) ._DropZone_ybznu_1 {\n transition: min-height var(--puck-duration-medium) var(--puck-ease-exit);\n}\n._DropZone--isAreaSelected_ybznu_24,\n._DropZone--hoveringOverArea_ybznu_25:not(._DropZone--isRootZone_ybznu_25) {\n background: var(--puck-slot-color-bg, var(--puck-color-selection-bg));\n outline: var(--puck-slot-border-width, var(--puck-border-width-focus)) var(--puck-slot-border-style, dashed) var(--puck-slot-color-border, var(--puck-color-selection-border));\n}\n._DropZone_ybznu_1:empty {\n background: var(--puck-slot-color-bg, var(--puck-color-selection-bg));\n outline: var(--puck-slot-border-width, var(--puck-border-width-focus)) var(--puck-slot-border-style, dashed) var(--puck-slot-color-border, var(--puck-color-selection-border));\n}\n._DropZone-item_ybznu_39 {\n position: relative;\n}\n._DropZone-hitbox_ybznu_43 {\n position: absolute;\n bottom: calc(var(--puck-space-3) * -1);\n height: var(--puck-space-5);\n width: 100%;\n z-index: 1;\n}\n[data-puck-dragging] ._DropZone--isEnabled_ybznu_51 {\n outline: var(--puck-slot-border-width, var(--puck-border-width-focus)) var(--puck-slot-border-style, dashed) var(--puck-slot-color-border, var(--puck-color-selection-border));\n}\n._DropZone_ybznu_1 > *:not([data-puck-component]) {\n opacity: 0;\n}\nbody:has(._DropZone--isAnimating_ybznu_62: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_1w5zn_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_1w5zn_13 {\n background: transparent;\n border-radius: var(--puck-radius-round);\n border: var(--puck-border-width-focus) solid currentColor;\n border-bottom-color: transparent;\n display: inline-block;\n animation: _loader-animation_1w5zn_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_1ve2j_1 {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n}\n._RichTextMenu--form_1ve2j_7 {\n border-top-left-radius: var(--puck-field-radius, var(--puck-radius-m));\n border-top-right-radius: var(--puck-field-radius, var(--puck-radius-m));\n padding: var(--puck-field-richtext-menu-space-y, 6px) var(--puck-field-richtext-menu-space-x, 6px);\n background-color: var( --puck-field-richtext-menu-color-bg, var(--puck-color-surface-subtle) );\n position: relative;\n scrollbar-width: none;\n overflow-x: auto;\n}\n._RichTextMenu-group_1ve2j_21 {\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_1ve2j_21:first-of-type {\n padding-left: 0;\n}\n._RichTextMenu-group_1ve2j_21:last-of-type {\n padding-right: 0;\n}\n._RichTextMenu--inline_1ve2j_39 ._RichTextMenu-group_1ve2j_21 {\n color: var(--puck-color-text-inverse);\n gap: 0px;\n flex-wrap: nowrap;\n}\n._RichTextMenu-group_1ve2j_21 + ._RichTextMenu-group_1ve2j_21 {\n border-left: var(--puck-border-width-regular) solid var( --puck-field-richtext-menu-color-separator, var(--puck-color-border-muted) );\n}\n._RichTextMenu--inline_1ve2j_39 ._RichTextMenu-group_1ve2j_21 + ._RichTextMenu-group_1ve2j_21 {\n border-left: var(--puck-border-width-hairline) solid var(--puck-color-border-inverse);\n}\n\n/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextMenu/components/Control/styles.module.css/#css-module-data */\n._Control_id4pm_1 .lucide {\n height: var(--puck-icon-size-m);\n width: var(--puck-icon-size-m);\n}\n._Control--inline_id4pm_6 .lucide {\n height: var(--puck-actionbar-action-size, var(--puck-icon-size-s));\n width: var(--puck-actionbar-action-size, var(--puck-icon-size-s));\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-slot-component-color-placeholder, var(--puck-color-azure-06) ) !important;\n border: none !important;\n color: transparent !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: var( --puck-slot-component-border-width, var(--puck-border-width-focus) ) var(--puck-slot-component-color-border-dragging, var(--puck-color-azure-09)) solid !important;\n outline-offset: calc(var(--puck-slot-component-border-width, var(--puck-border-width-focus)) * -1) !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}';
|
|
9261
|
+
|
|
9262
|
+
// lib/use-inject-css.ts
|
|
9263
|
+
var PUCK_STYLE_SOURCE_ATTRIBUTE = "data-puck-style-source";
|
|
9264
|
+
var PUCK_STYLE_SOURCE_VALUE = "puck";
|
|
9265
|
+
var PUCK_STYLE_ID_ATTRIBUTE = "data-puck-style-id";
|
|
9266
|
+
var PUCK_STYLE_IDS = {
|
|
9267
|
+
uiDefault: "ui-default",
|
|
9268
|
+
iframeInteractions: "iframe-styles"
|
|
9269
|
+
};
|
|
9270
|
+
var styleRegistry = /* @__PURE__ */ new WeakMap();
|
|
9271
|
+
var getTargetDocument = (target) => {
|
|
9272
|
+
if (target) {
|
|
9273
|
+
return target;
|
|
9274
|
+
}
|
|
9275
|
+
if (typeof document === "undefined") {
|
|
9276
|
+
return void 0;
|
|
9277
|
+
}
|
|
9278
|
+
return document;
|
|
9279
|
+
};
|
|
9280
|
+
var getStyleMap = (target) => {
|
|
9281
|
+
const existing = styleRegistry.get(target);
|
|
9282
|
+
if (existing) {
|
|
9283
|
+
return existing;
|
|
9284
|
+
}
|
|
9285
|
+
const created = /* @__PURE__ */ new Map();
|
|
9286
|
+
styleRegistry.set(target, created);
|
|
9287
|
+
return created;
|
|
9288
|
+
};
|
|
9289
|
+
var attachStyleElement = (target, el, prepend = false) => {
|
|
9290
|
+
const head = target.head;
|
|
9291
|
+
if (!head) {
|
|
9292
|
+
return;
|
|
9293
|
+
}
|
|
9294
|
+
if (el.parentElement !== head) {
|
|
9295
|
+
if (prepend) {
|
|
9296
|
+
head.prepend(el);
|
|
9297
|
+
} else {
|
|
9298
|
+
head.append(el);
|
|
9299
|
+
}
|
|
9300
|
+
return;
|
|
9301
|
+
}
|
|
9302
|
+
if (prepend && head.firstChild !== el) {
|
|
9303
|
+
head.prepend(el);
|
|
9304
|
+
}
|
|
9305
|
+
if (!prepend && head.lastChild !== el) {
|
|
9306
|
+
head.append(el);
|
|
9307
|
+
}
|
|
9308
|
+
};
|
|
9309
|
+
var createStyleElement = (target, id, cssText, prepend = false) => {
|
|
9310
|
+
const el = target.createElement("style");
|
|
9311
|
+
el.setAttribute(PUCK_STYLE_SOURCE_ATTRIBUTE, PUCK_STYLE_SOURCE_VALUE);
|
|
9312
|
+
el.setAttribute(PUCK_STYLE_ID_ATTRIBUTE, id);
|
|
9313
|
+
el.textContent = cssText;
|
|
9314
|
+
attachStyleElement(target, el, prepend);
|
|
9315
|
+
return el;
|
|
9316
|
+
};
|
|
9317
|
+
var isPuckStyleElement = (el) => (el == null ? void 0 : el.getAttribute(PUCK_STYLE_SOURCE_ATTRIBUTE)) === PUCK_STYLE_SOURCE_VALUE;
|
|
9318
|
+
var useInjectStyleSheet = (options) => {
|
|
9319
|
+
const targetDocument = getTargetDocument(options == null ? void 0 : options.document);
|
|
9320
|
+
useInsertionEffect(() => {
|
|
9321
|
+
if (!options || !targetDocument) {
|
|
9322
|
+
return;
|
|
9323
|
+
}
|
|
9324
|
+
const registry = getStyleMap(targetDocument);
|
|
9325
|
+
const existing = registry.get(options.id);
|
|
9326
|
+
if (existing) {
|
|
9327
|
+
existing.count = existing.count + 1;
|
|
9328
|
+
if (existing.el.textContent !== options.cssText) {
|
|
9329
|
+
existing.el.textContent = options.cssText;
|
|
9330
|
+
}
|
|
9331
|
+
attachStyleElement(targetDocument, existing.el, options.prepend);
|
|
9332
|
+
} else {
|
|
9333
|
+
const el = createStyleElement(
|
|
9334
|
+
targetDocument,
|
|
9335
|
+
options.id,
|
|
9336
|
+
options.cssText,
|
|
9337
|
+
options.prepend
|
|
9338
|
+
);
|
|
9339
|
+
registry.set(options.id, {
|
|
9340
|
+
count: 1,
|
|
9341
|
+
el
|
|
9342
|
+
});
|
|
9343
|
+
}
|
|
9344
|
+
return () => {
|
|
9345
|
+
const current = registry.get(options.id);
|
|
9346
|
+
if (!current) {
|
|
9347
|
+
return;
|
|
9348
|
+
}
|
|
9349
|
+
current.count = current.count - 1;
|
|
9350
|
+
if (current.count <= 0) {
|
|
9351
|
+
current.el.remove();
|
|
9352
|
+
registry.delete(options.id);
|
|
9353
|
+
}
|
|
9354
|
+
};
|
|
9355
|
+
}, [
|
|
9356
|
+
options == null ? void 0 : options.cssText,
|
|
9357
|
+
options == null ? void 0 : options.id,
|
|
9358
|
+
options == null ? void 0 : options.prepend,
|
|
9359
|
+
options == null ? void 0 : options.document,
|
|
9360
|
+
targetDocument
|
|
9361
|
+
]);
|
|
9362
|
+
};
|
|
9363
|
+
var staticCssDetected = null;
|
|
9364
|
+
var hasStaticPuckCss = () => {
|
|
9365
|
+
if (staticCssDetected !== null) return staticCssDetected;
|
|
9366
|
+
if (typeof document === "undefined") return false;
|
|
9367
|
+
staticCssDetected = getComputedStyle(document.documentElement).getPropertyValue("--_puck-styles-loaded").trim() !== "";
|
|
9368
|
+
return staticCssDetected;
|
|
9369
|
+
};
|
|
9370
|
+
var useInjectUiCss = () => {
|
|
9371
|
+
const skip = hasStaticPuckCss();
|
|
9372
|
+
useInjectStyleSheet(
|
|
9373
|
+
skip ? null : {
|
|
9374
|
+
cssText: defaultUiStyles,
|
|
9375
|
+
id: PUCK_STYLE_IDS.uiDefault,
|
|
9376
|
+
prepend: true
|
|
9377
|
+
}
|
|
9378
|
+
);
|
|
9379
|
+
useEffect21(() => {
|
|
9380
|
+
if (skip && process.env.NODE_ENV !== "production") {
|
|
9381
|
+
console.info(
|
|
9382
|
+
"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."
|
|
9383
|
+
);
|
|
9384
|
+
}
|
|
9385
|
+
}, []);
|
|
9386
|
+
};
|
|
9387
|
+
var useInjectIframeCss = (targetDocument) => {
|
|
9388
|
+
useInjectStyleSheet(
|
|
9389
|
+
targetDocument ? {
|
|
9390
|
+
cssText: iframeInteractionStyles,
|
|
9391
|
+
document: targetDocument,
|
|
9392
|
+
id: PUCK_STYLE_IDS.iframeInteractions
|
|
9393
|
+
} : null
|
|
9394
|
+
);
|
|
9395
|
+
};
|
|
9396
|
+
|
|
9397
|
+
// components/AutoFrame/index.tsx
|
|
9398
|
+
import { Fragment as Fragment12, jsx as jsx43 } from "react/jsx-runtime";
|
|
9399
|
+
var styleSelector = 'style, link[rel="stylesheet"]';
|
|
9400
|
+
var mirroredStyleAttribute = "data-puck-style-mirror";
|
|
9401
|
+
var shouldMirrorStyleElement = (style) => {
|
|
9402
|
+
if (!style.matches(styleSelector) || isPuckStyleElement(style)) {
|
|
9403
|
+
return false;
|
|
9404
|
+
}
|
|
9405
|
+
if (style.tagName === "STYLE") {
|
|
9406
|
+
return !!style.innerHTML.trim();
|
|
9407
|
+
}
|
|
9408
|
+
return true;
|
|
9409
|
+
};
|
|
9410
|
+
var collectStyles = (doc) => {
|
|
9411
|
+
const collected = [];
|
|
9412
|
+
doc.querySelectorAll(styleSelector).forEach((style) => {
|
|
9413
|
+
if (shouldMirrorStyleElement(style)) {
|
|
9414
|
+
collected.push(style);
|
|
9415
|
+
}
|
|
9416
|
+
});
|
|
9417
|
+
return collected;
|
|
9418
|
+
};
|
|
9419
|
+
var getStyleSheet = (el) => {
|
|
9420
|
+
return Array.from(document.styleSheets).find((ss) => {
|
|
9421
|
+
const ownerNode = ss.ownerNode;
|
|
9422
|
+
return ownerNode.href === el.href;
|
|
9423
|
+
});
|
|
9424
|
+
};
|
|
9425
|
+
var getStyles = (styleSheet) => {
|
|
9426
|
+
if (styleSheet) {
|
|
9427
|
+
try {
|
|
9428
|
+
return Array.from(styleSheet.cssRules).map((rule) => rule.cssText).join("");
|
|
9429
|
+
} catch (e) {
|
|
9430
|
+
console.warn(
|
|
9431
|
+
"Access to stylesheet %s is denied. Ignoring\u2026",
|
|
9432
|
+
styleSheet.href
|
|
9433
|
+
);
|
|
9434
|
+
}
|
|
9435
|
+
}
|
|
9436
|
+
return "";
|
|
9437
|
+
};
|
|
9438
|
+
var syncAttributes = (sourceElement, targetElement) => {
|
|
9439
|
+
const attributes = sourceElement.attributes;
|
|
9440
|
+
if ((attributes == null ? void 0 : attributes.length) > 0) {
|
|
9441
|
+
Array.from(attributes).forEach((attribute) => {
|
|
9442
|
+
targetElement.setAttribute(attribute.name, attribute.value);
|
|
9443
|
+
});
|
|
9444
|
+
}
|
|
9445
|
+
};
|
|
9446
|
+
var defer = (fn) => setTimeout(fn, 0);
|
|
9447
|
+
var CopyHostStyles = ({
|
|
9448
|
+
children,
|
|
9449
|
+
debug = false,
|
|
9450
|
+
onStylesLoaded = () => null,
|
|
9451
|
+
syncHostStyles = true
|
|
9452
|
+
}) => {
|
|
9453
|
+
const { document: doc, window: win } = useFrame();
|
|
9454
|
+
useInjectIframeCss(doc);
|
|
9455
|
+
useEffect22(() => {
|
|
9456
|
+
if (!win || !doc) {
|
|
9457
|
+
return () => {
|
|
9458
|
+
};
|
|
9459
|
+
}
|
|
9460
|
+
let elements = [];
|
|
9461
|
+
const hashes = {};
|
|
9462
|
+
const removeAllMirrors = () => {
|
|
9463
|
+
elements.forEach(({ mirror }) => {
|
|
9464
|
+
mirror.remove();
|
|
9465
|
+
});
|
|
9466
|
+
elements = [];
|
|
9467
|
+
Array.from(
|
|
9468
|
+
doc.head.querySelectorAll(`[${mirroredStyleAttribute}="true"]`)
|
|
9469
|
+
).forEach((mirror) => {
|
|
9470
|
+
mirror.remove();
|
|
9471
|
+
});
|
|
9472
|
+
Object.keys(hashes).forEach((key) => {
|
|
9473
|
+
delete hashes[key];
|
|
9474
|
+
});
|
|
9475
|
+
};
|
|
9476
|
+
const lookupEl = (el) => elements.findIndex((elementMap) => elementMap.original === el);
|
|
9477
|
+
const mirrorEl = (el, inlineStyles = false) => __async(null, null, function* () {
|
|
9478
|
+
let mirror;
|
|
9479
|
+
if (el.nodeName === "LINK" && inlineStyles) {
|
|
9480
|
+
mirror = document.createElement("style");
|
|
9481
|
+
mirror.type = "text/css";
|
|
9482
|
+
let styleSheet = getStyleSheet(el);
|
|
9483
|
+
if (!styleSheet) {
|
|
9484
|
+
yield new Promise((resolve) => {
|
|
9485
|
+
const fn = () => {
|
|
9486
|
+
resolve();
|
|
9487
|
+
el.removeEventListener("load", fn);
|
|
9488
|
+
};
|
|
9489
|
+
el.addEventListener("load", fn);
|
|
9490
|
+
});
|
|
9491
|
+
styleSheet = getStyleSheet(el);
|
|
9492
|
+
}
|
|
9493
|
+
const styles = getStyles(styleSheet);
|
|
9494
|
+
if (!styles) {
|
|
9495
|
+
if (debug) {
|
|
9496
|
+
console.warn(
|
|
9497
|
+
`Tried to load styles for link element, but couldn't find them. Skipping...`
|
|
9498
|
+
);
|
|
9499
|
+
}
|
|
9500
|
+
return;
|
|
9501
|
+
}
|
|
9502
|
+
mirror.innerHTML = styles;
|
|
9503
|
+
mirror.setAttribute("data-href", el.getAttribute("href"));
|
|
9504
|
+
} else {
|
|
9505
|
+
mirror = el.cloneNode(true);
|
|
9506
|
+
}
|
|
9507
|
+
mirror.setAttribute(mirroredStyleAttribute, "true");
|
|
9508
|
+
return mirror;
|
|
9509
|
+
});
|
|
9510
|
+
const addEl = (el) => __async(null, null, function* () {
|
|
9511
|
+
const index = lookupEl(el);
|
|
9512
|
+
if (index > -1) {
|
|
9513
|
+
if (debug)
|
|
9514
|
+
console.log(
|
|
9515
|
+
`Tried to add an element that was already mirrored. Updating instead...`
|
|
9516
|
+
);
|
|
9517
|
+
elements[index].mirror.innerText = el.innerText;
|
|
9518
|
+
return;
|
|
9519
|
+
}
|
|
9520
|
+
const mirror = yield mirrorEl(el);
|
|
9521
|
+
if (!mirror) {
|
|
9522
|
+
return;
|
|
9523
|
+
}
|
|
9524
|
+
const elHash = hash(mirror.outerHTML);
|
|
9525
|
+
if (hashes[elHash]) {
|
|
9526
|
+
if (debug)
|
|
9527
|
+
console.log(
|
|
9528
|
+
`iframe already contains element that is being mirrored. Skipping...`
|
|
9529
|
+
);
|
|
9530
|
+
return;
|
|
9531
|
+
}
|
|
9532
|
+
hashes[elHash] = true;
|
|
9533
|
+
doc.head.append(mirror);
|
|
9534
|
+
elements.push({ original: el, mirror });
|
|
9535
|
+
if (debug) console.log(`Added style node ${el.outerHTML}`);
|
|
9536
|
+
});
|
|
9537
|
+
const removeEl = (el) => {
|
|
9538
|
+
var _a, _b;
|
|
9539
|
+
const index = lookupEl(el);
|
|
9540
|
+
if (index === -1) {
|
|
9541
|
+
if (debug)
|
|
9542
|
+
console.log(
|
|
9543
|
+
`Tried to remove an element that did not exist. Skipping...`
|
|
9544
|
+
);
|
|
9545
|
+
return;
|
|
9546
|
+
}
|
|
9547
|
+
const elHash = hash(el.outerHTML);
|
|
9548
|
+
(_b = (_a = elements[index]) == null ? void 0 : _a.mirror) == null ? void 0 : _b.remove();
|
|
9549
|
+
delete hashes[elHash];
|
|
9550
|
+
if (debug) console.log(`Removed style node ${el.outerHTML}`);
|
|
9551
|
+
};
|
|
9552
|
+
const observer = new MutationObserver((mutations) => {
|
|
9553
|
+
mutations.forEach((mutation) => {
|
|
9554
|
+
if (mutation.type === "childList") {
|
|
9555
|
+
mutation.addedNodes.forEach((node) => {
|
|
9556
|
+
if (node.nodeType === Node.TEXT_NODE || node.nodeType === Node.ELEMENT_NODE) {
|
|
9557
|
+
const el = node.nodeType === Node.TEXT_NODE ? node.parentElement : node;
|
|
9558
|
+
if (el && shouldMirrorStyleElement(el)) {
|
|
9559
|
+
defer(() => addEl(el));
|
|
9560
|
+
}
|
|
9561
|
+
}
|
|
9562
|
+
});
|
|
9563
|
+
mutation.removedNodes.forEach((node) => {
|
|
9564
|
+
if (node.nodeType === Node.TEXT_NODE || node.nodeType === Node.ELEMENT_NODE) {
|
|
9565
|
+
const el = node.nodeType === Node.TEXT_NODE ? node.parentElement : node;
|
|
9566
|
+
if (el && el.matches(styleSelector) && !isPuckStyleElement(el)) {
|
|
9567
|
+
defer(() => removeEl(el));
|
|
9568
|
+
}
|
|
9569
|
+
}
|
|
9570
|
+
});
|
|
9571
|
+
}
|
|
9572
|
+
});
|
|
9573
|
+
});
|
|
9574
|
+
if (!syncHostStyles) {
|
|
9575
|
+
onStylesLoaded();
|
|
9576
|
+
return () => {
|
|
9577
|
+
observer.disconnect();
|
|
9578
|
+
removeAllMirrors();
|
|
9579
|
+
};
|
|
9580
|
+
}
|
|
9581
|
+
const parentDocument = win.parent.document;
|
|
9582
|
+
const collectedStyles = collectStyles(parentDocument);
|
|
9583
|
+
const hrefs = [];
|
|
9584
|
+
let stylesLoaded = 0;
|
|
9585
|
+
const parentHtml = parentDocument.getElementsByTagName("html")[0];
|
|
9586
|
+
syncAttributes(parentHtml, doc.documentElement);
|
|
9587
|
+
const parentBody = parentDocument.getElementsByTagName("body")[0];
|
|
9588
|
+
syncAttributes(parentBody, doc.body);
|
|
9589
|
+
Promise.all(
|
|
9590
|
+
collectedStyles.map((styleNode, i) => __async(null, null, function* () {
|
|
9591
|
+
if (styleNode.nodeName === "LINK") {
|
|
9592
|
+
const linkHref = styleNode.href;
|
|
9593
|
+
if (hrefs.indexOf(linkHref) > -1) {
|
|
9594
|
+
return;
|
|
9595
|
+
}
|
|
9596
|
+
hrefs.push(linkHref);
|
|
9597
|
+
}
|
|
9598
|
+
const mirror = yield mirrorEl(styleNode);
|
|
9599
|
+
if (!mirror) return;
|
|
9600
|
+
elements.push({ original: styleNode, mirror });
|
|
9601
|
+
return mirror;
|
|
9602
|
+
}))
|
|
9603
|
+
).then((mirrorStyles) => {
|
|
9604
|
+
const filtered = mirrorStyles.filter(
|
|
9605
|
+
(el) => typeof el !== "undefined"
|
|
9606
|
+
);
|
|
9607
|
+
filtered.forEach((mirror) => {
|
|
9608
|
+
mirror.onload = () => {
|
|
9609
|
+
stylesLoaded = stylesLoaded + 1;
|
|
9610
|
+
if (stylesLoaded >= filtered.length) {
|
|
9611
|
+
onStylesLoaded();
|
|
9612
|
+
}
|
|
9613
|
+
};
|
|
9614
|
+
mirror.onerror = () => {
|
|
9615
|
+
const href = mirror instanceof HTMLLinkElement ? mirror.href : void 0;
|
|
9616
|
+
console.warn(
|
|
9617
|
+
`AutoFrame couldn't load a stylesheet${href ? `: ${href}` : ""}. This can happen if the parent document's stylesheet is blocked by the iframe's CSP, returns a non-2xx status, or fails to reach the network.`
|
|
9618
|
+
);
|
|
9619
|
+
stylesLoaded = stylesLoaded + 1;
|
|
9620
|
+
if (stylesLoaded >= filtered.length) {
|
|
9621
|
+
onStylesLoaded();
|
|
9622
|
+
}
|
|
9623
|
+
};
|
|
9624
|
+
});
|
|
9625
|
+
doc.head.querySelectorAll(`[${mirroredStyleAttribute}="true"]`).forEach((el) => {
|
|
9626
|
+
el.remove();
|
|
9627
|
+
});
|
|
9628
|
+
doc.head.append(...filtered);
|
|
9629
|
+
filtered.forEach((mirror) => {
|
|
9630
|
+
if (mirror.nodeName === "STYLE") {
|
|
9631
|
+
stylesLoaded = stylesLoaded + 1;
|
|
9632
|
+
}
|
|
9633
|
+
});
|
|
9634
|
+
if (stylesLoaded >= filtered.length) {
|
|
9635
|
+
onStylesLoaded();
|
|
9636
|
+
}
|
|
9637
|
+
observer.observe(parentDocument.head, { childList: true, subtree: true });
|
|
9638
|
+
filtered.forEach((el) => {
|
|
9639
|
+
const elHash = hash(el.outerHTML);
|
|
9640
|
+
hashes[elHash] = true;
|
|
9641
|
+
});
|
|
9642
|
+
});
|
|
9643
|
+
return () => {
|
|
9644
|
+
observer.disconnect();
|
|
9645
|
+
removeAllMirrors();
|
|
9646
|
+
};
|
|
9647
|
+
}, [syncHostStyles]);
|
|
9648
|
+
return /* @__PURE__ */ jsx43(Fragment12, { children });
|
|
9649
|
+
};
|
|
9650
|
+
var autoFrameContext = createContext6({});
|
|
9651
|
+
var useFrame = () => useContext13(autoFrameContext);
|
|
9652
|
+
function AutoFrame(_a) {
|
|
9653
|
+
var _b = _a, {
|
|
9654
|
+
children,
|
|
9655
|
+
className,
|
|
9656
|
+
debug,
|
|
9657
|
+
id,
|
|
9658
|
+
onReady = () => {
|
|
9659
|
+
},
|
|
9660
|
+
onNotReady = () => {
|
|
9661
|
+
},
|
|
9662
|
+
frameRef,
|
|
9663
|
+
syncHostStyles = true
|
|
9664
|
+
} = _b, props = __objRest(_b, [
|
|
9665
|
+
"children",
|
|
9666
|
+
"className",
|
|
9667
|
+
"debug",
|
|
9668
|
+
"id",
|
|
9669
|
+
"onReady",
|
|
9670
|
+
"onNotReady",
|
|
9671
|
+
"frameRef",
|
|
9672
|
+
"syncHostStyles"
|
|
9673
|
+
]);
|
|
9674
|
+
const [loaded, setLoaded] = useState18(false);
|
|
9675
|
+
const [ctx, setCtx] = useState18({});
|
|
9676
|
+
const [mountTarget, setMountTarget] = useState18();
|
|
6722
9677
|
const [stylesLoaded, setStylesLoaded] = useState18(false);
|
|
6723
|
-
|
|
9678
|
+
useEffect22(() => {
|
|
9679
|
+
if (loaded) {
|
|
9680
|
+
setStylesLoaded(!syncHostStyles);
|
|
9681
|
+
}
|
|
9682
|
+
}, [loaded, syncHostStyles]);
|
|
9683
|
+
useEffect22(() => {
|
|
6724
9684
|
var _a2;
|
|
6725
9685
|
if (frameRef.current) {
|
|
6726
9686
|
const doc = frameRef.current.contentDocument;
|
|
@@ -6754,6 +9714,7 @@ function AutoFrame(_a) {
|
|
|
6754
9714
|
{
|
|
6755
9715
|
debug,
|
|
6756
9716
|
onStylesLoaded: () => setStylesLoaded(true),
|
|
9717
|
+
syncHostStyles,
|
|
6757
9718
|
children: createPortal3(children, mountTarget)
|
|
6758
9719
|
}
|
|
6759
9720
|
) })
|
|
@@ -6772,7 +9733,7 @@ import { Fragment as Fragment13, jsx as jsx44 } from "react/jsx-runtime";
|
|
|
6772
9733
|
var getClassName25 = get_class_name_factory_default("PuckPreview", styles_module_default19);
|
|
6773
9734
|
var useBubbleIframeEvents = (ref) => {
|
|
6774
9735
|
const status = useAppStore((s) => s.status);
|
|
6775
|
-
|
|
9736
|
+
useEffect23(() => {
|
|
6776
9737
|
if (ref.current && status === "READY") {
|
|
6777
9738
|
const iframe = ref.current;
|
|
6778
9739
|
const handlePointerMove = (event) => {
|
|
@@ -6781,6 +9742,9 @@ var useBubbleIframeEvents = (ref) => {
|
|
|
6781
9742
|
cancelable: false,
|
|
6782
9743
|
clientX: event.clientX,
|
|
6783
9744
|
clientY: event.clientY,
|
|
9745
|
+
pointerId: event.pointerId,
|
|
9746
|
+
pointerType: event.pointerType,
|
|
9747
|
+
isPrimary: event.isPrimary,
|
|
6784
9748
|
originalTarget: event.target
|
|
6785
9749
|
}));
|
|
6786
9750
|
iframe.dispatchEvent(evt);
|
|
@@ -6856,7 +9820,7 @@ var Preview2 = ({ id = "puck-preview" }) => {
|
|
|
6856
9820
|
children: /* @__PURE__ */ jsx44(DropZonePure, { zone: rootDroppableId })
|
|
6857
9821
|
})
|
|
6858
9822
|
) : /* @__PURE__ */ jsx44(Render, { data: renderData, config, metadata });
|
|
6859
|
-
|
|
9823
|
+
useEffect23(() => {
|
|
6860
9824
|
if (!iframe.enabled) {
|
|
6861
9825
|
setStatus("READY");
|
|
6862
9826
|
}
|
|
@@ -6879,6 +9843,7 @@ var Preview2 = ({ id = "puck-preview" }) => {
|
|
|
6879
9843
|
id: "preview-frame",
|
|
6880
9844
|
className: getClassName25("frame"),
|
|
6881
9845
|
"data-rfd-iframe": true,
|
|
9846
|
+
syncHostStyles: iframe.syncHostStyles,
|
|
6882
9847
|
onReady: () => {
|
|
6883
9848
|
setStatus("READY");
|
|
6884
9849
|
},
|
|
@@ -6961,38 +9926,16 @@ import { deepEqual as deepEqual2 } from "fast-equals";
|
|
|
6961
9926
|
|
|
6962
9927
|
// components/Puck/components/Layout/index.tsx
|
|
6963
9928
|
init_react_import();
|
|
6964
|
-
import {
|
|
9929
|
+
import {
|
|
9930
|
+
useEffect as useEffect28,
|
|
9931
|
+
useLayoutEffect as useLayoutEffect2,
|
|
9932
|
+
useMemo as useMemo24,
|
|
9933
|
+
useState as useState23
|
|
9934
|
+
} from "react";
|
|
6965
9935
|
|
|
6966
9936
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Layout/styles.module.css#css-module
|
|
6967
9937
|
init_react_import();
|
|
6968
|
-
var styles_module_default20 = { "Puck": "
|
|
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
|
-
};
|
|
9938
|
+
var styles_module_default20 = { "Puck": "_Puck_mr27u_19", "Puck-portal": "_Puck-portal_mr27u_31", "PuckLayout": "_PuckLayout_mr27u_36", "PuckLayout-inner": "_PuckLayout-inner_mr27u_40", "Puck--hidePlugins": "_Puck--hidePlugins_mr27u_73", "PuckLayout--mounted": "_PuckLayout--mounted_mr27u_78", "PuckLayout--mobilePanelHeightToggle": "_PuckLayout--mobilePanelHeightToggle_mr27u_82", "PuckLayout--leftSideBarVisible": "_PuckLayout--leftSideBarVisible_mr27u_82", "PuckLayout--isExpanded": "_PuckLayout--isExpanded_mr27u_90", "PuckLayout--mobilePanelHeightMinContent": "_PuckLayout--mobilePanelHeightMinContent_mr27u_110", "PuckLayout--rightSideBarVisible": "_PuckLayout--rightSideBarVisible_mr27u_137", "PuckLayout-mounted": "_PuckLayout-mounted_mr27u_156", "PuckLayout-nav": "_PuckLayout-nav_mr27u_197", "PuckLayout-header": "_PuckLayout-header_mr27u_217", "PuckPluginTab": "_PuckPluginTab_mr27u_231", "PuckPluginTab--visible": "_PuckPluginTab--visible_mr27u_237", "PuckPluginTab-body": "_PuckPluginTab-body_mr27u_242" };
|
|
6996
9939
|
|
|
6997
9940
|
// components/DefaultOverride/index.tsx
|
|
6998
9941
|
init_react_import();
|
|
@@ -7019,17 +9962,17 @@ var usePreviewModeHotkeys = () => {
|
|
|
7019
9962
|
|
|
7020
9963
|
// components/Puck/components/Header/index.tsx
|
|
7021
9964
|
init_react_import();
|
|
7022
|
-
import { memo as memo9, useCallback as useCallback18, useMemo as useMemo20, useState as
|
|
9965
|
+
import { memo as memo9, useCallback as useCallback18, useMemo as useMemo20, useState as useState19 } from "react";
|
|
7023
9966
|
|
|
7024
9967
|
// components/MenuBar/index.tsx
|
|
7025
9968
|
init_react_import();
|
|
7026
9969
|
|
|
7027
9970
|
// css-module:/home/runner/work/puck/puck/packages/core/components/MenuBar/styles.module.css#css-module
|
|
7028
9971
|
init_react_import();
|
|
7029
|
-
var styles_module_default21 = { "MenuBar": "
|
|
9972
|
+
var styles_module_default21 = { "MenuBar": "_MenuBar_1hxnj_1", "MenuBar--menuOpen": "_MenuBar--menuOpen_1hxnj_14", "MenuBar-inner": "_MenuBar-inner_1hxnj_29", "MenuBar-history": "_MenuBar-history_1hxnj_45" };
|
|
7030
9973
|
|
|
7031
9974
|
// components/MenuBar/index.tsx
|
|
7032
|
-
import { Fragment as Fragment15, jsx as jsx46, jsxs as
|
|
9975
|
+
import { Fragment as Fragment15, jsx as jsx46, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
7033
9976
|
var getClassName26 = get_class_name_factory_default("MenuBar", styles_module_default21);
|
|
7034
9977
|
function MenuBar({
|
|
7035
9978
|
menuOpen = false,
|
|
@@ -7054,8 +9997,8 @@ function MenuBar({
|
|
|
7054
9997
|
setMenuOpen(false);
|
|
7055
9998
|
}
|
|
7056
9999
|
},
|
|
7057
|
-
children: /* @__PURE__ */
|
|
7058
|
-
/* @__PURE__ */
|
|
10000
|
+
children: /* @__PURE__ */ jsxs16("div", { className: getClassName26("inner"), children: [
|
|
10001
|
+
/* @__PURE__ */ jsxs16("div", { className: getClassName26("history"), children: [
|
|
7059
10002
|
/* @__PURE__ */ jsx46(
|
|
7060
10003
|
IconButton,
|
|
7061
10004
|
{
|
|
@@ -7085,10 +10028,10 @@ function MenuBar({
|
|
|
7085
10028
|
|
|
7086
10029
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Header/styles.module.css#css-module
|
|
7087
10030
|
init_react_import();
|
|
7088
|
-
var styles_module_default22 = { "PuckHeader": "
|
|
10031
|
+
var styles_module_default22 = { "PuckHeader": "_PuckHeader_c2nei_1", "PuckHeader--hidePlugins": "_PuckHeader--hidePlugins_c2nei_21", "PuckHeader-inner": "_PuckHeader-inner_c2nei_26", "PuckHeader-toggle": "_PuckHeader-toggle_c2nei_46", "PuckHeader-rightSideBarToggle": "_PuckHeader-rightSideBarToggle_c2nei_52", "PuckHeader-leftSideBarToggle": "_PuckHeader-leftSideBarToggle_c2nei_53", "PuckHeader-title": "_PuckHeader-title_c2nei_64", "PuckHeader-path": "_PuckHeader-path_c2nei_68", "PuckHeader-tools": "_PuckHeader-tools_c2nei_75", "PuckHeader-menuButton": "_PuckHeader-menuButton_c2nei_81", "PuckHeader--menuOpen": "_PuckHeader--menuOpen_c2nei_86" };
|
|
7089
10032
|
|
|
7090
10033
|
// components/Puck/components/Header/index.tsx
|
|
7091
|
-
import { Fragment as Fragment16, jsx as jsx47, jsxs as
|
|
10034
|
+
import { Fragment as Fragment16, jsx as jsx47, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
7092
10035
|
var getClassName27 = get_class_name_factory_default("PuckHeader", styles_module_default22);
|
|
7093
10036
|
var HeaderInner = ({
|
|
7094
10037
|
hidePlugins
|
|
@@ -7138,7 +10081,7 @@ var HeaderInner = ({
|
|
|
7138
10081
|
const CustomHeaderActions = useAppStore(
|
|
7139
10082
|
(s) => s.overrides.headerActions || defaultHeaderActionsRender
|
|
7140
10083
|
);
|
|
7141
|
-
const [menuOpen, setMenuOpen] =
|
|
10084
|
+
const [menuOpen, setMenuOpen] = useState19(false);
|
|
7142
10085
|
const rootTitle = useAppStore((s) => {
|
|
7143
10086
|
var _a, _b;
|
|
7144
10087
|
const rootData = (_a = s.state.indexes.nodes["root"]) == null ? void 0 : _a.data;
|
|
@@ -7184,8 +10127,8 @@ var HeaderInner = ({
|
|
|
7184
10127
|
rightSideBarVisible,
|
|
7185
10128
|
hidePlugins
|
|
7186
10129
|
}),
|
|
7187
|
-
children: /* @__PURE__ */
|
|
7188
|
-
/* @__PURE__ */
|
|
10130
|
+
children: /* @__PURE__ */ jsxs17("div", { className: getClassName27("inner"), children: [
|
|
10131
|
+
/* @__PURE__ */ jsxs17("div", { className: getClassName27("toggle"), children: [
|
|
7189
10132
|
/* @__PURE__ */ jsx47("div", { className: getClassName27("leftSideBarToggle"), children: /* @__PURE__ */ jsx47(
|
|
7190
10133
|
IconButton,
|
|
7191
10134
|
{
|
|
@@ -7209,14 +10152,14 @@ var HeaderInner = ({
|
|
|
7209
10152
|
}
|
|
7210
10153
|
) })
|
|
7211
10154
|
] }),
|
|
7212
|
-
/* @__PURE__ */ jsx47("div", { className: getClassName27("title"), children: /* @__PURE__ */
|
|
10155
|
+
/* @__PURE__ */ jsx47("div", { className: getClassName27("title"), children: /* @__PURE__ */ jsxs17(Heading, { rank: "2", size: "xs", children: [
|
|
7213
10156
|
headerTitle || rootTitle || "Page",
|
|
7214
|
-
headerPath && /* @__PURE__ */
|
|
10157
|
+
headerPath && /* @__PURE__ */ jsxs17(Fragment16, { children: [
|
|
7215
10158
|
" ",
|
|
7216
10159
|
/* @__PURE__ */ jsx47("code", { className: getClassName27("path"), children: headerPath })
|
|
7217
10160
|
] })
|
|
7218
10161
|
] }) }),
|
|
7219
|
-
/* @__PURE__ */
|
|
10162
|
+
/* @__PURE__ */ jsxs17("div", { className: getClassName27("tools"), children: [
|
|
7220
10163
|
/* @__PURE__ */ jsx47("div", { className: getClassName27("menuButton"), children: /* @__PURE__ */ jsx47(
|
|
7221
10164
|
IconButton,
|
|
7222
10165
|
{
|
|
@@ -7262,10 +10205,10 @@ init_react_import();
|
|
|
7262
10205
|
|
|
7263
10206
|
// css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css#css-module
|
|
7264
10207
|
init_react_import();
|
|
7265
|
-
var styles_module_default23 = { "SidebarSection": "
|
|
10208
|
+
var styles_module_default23 = { "SidebarSection": "_SidebarSection_1uv88_1", "SidebarSection-title": "_SidebarSection-title_1uv88_12", "SidebarSection--noBorderTop": "_SidebarSection--noBorderTop_1uv88_20", "SidebarSection-content": "_SidebarSection-content_1uv88_24", "SidebarSection-breadcrumbLabel": "_SidebarSection-breadcrumbLabel_1uv88_33", "SidebarSection-breadcrumbs": "_SidebarSection-breadcrumbs_1uv88_62", "SidebarSection-breadcrumb": "_SidebarSection-breadcrumb_1uv88_33", "SidebarSection-heading": "_SidebarSection-heading_1uv88_74", "SidebarSection-loadingOverlay": "_SidebarSection-loadingOverlay_1uv88_78" };
|
|
7266
10209
|
|
|
7267
10210
|
// components/SidebarSection/index.tsx
|
|
7268
|
-
import { jsx as jsx48, jsxs as
|
|
10211
|
+
import { jsx as jsx48, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
7269
10212
|
var getClassName28 = get_class_name_factory_default("SidebarSection", styles_module_default23);
|
|
7270
10213
|
var SidebarSection = ({
|
|
7271
10214
|
children,
|
|
@@ -7275,8 +10218,8 @@ var SidebarSection = ({
|
|
|
7275
10218
|
noBorderTop,
|
|
7276
10219
|
isLoading
|
|
7277
10220
|
}) => {
|
|
7278
|
-
return /* @__PURE__ */
|
|
7279
|
-
/* @__PURE__ */ jsx48("div", { className: getClassName28("title"), children: /* @__PURE__ */
|
|
10221
|
+
return /* @__PURE__ */ jsxs18("div", { className: getClassName28({ noBorderTop }), style: { background }, children: [
|
|
10222
|
+
/* @__PURE__ */ jsx48("div", { className: getClassName28("title"), children: /* @__PURE__ */ jsxs18("div", { className: getClassName28("breadcrumbs"), children: [
|
|
7280
10223
|
showBreadcrumbs && /* @__PURE__ */ jsx48(Breadcrumbs, {}),
|
|
7281
10224
|
/* @__PURE__ */ jsx48("div", { className: getClassName28("heading"), children: /* @__PURE__ */ jsx48(Heading, { rank: "2", size: "xs", children: title }) })
|
|
7282
10225
|
] }) }),
|
|
@@ -7292,19 +10235,19 @@ import {
|
|
|
7292
10235
|
useEffect as useEffect25,
|
|
7293
10236
|
useMemo as useMemo23,
|
|
7294
10237
|
useRef as useRef13,
|
|
7295
|
-
useState as
|
|
10238
|
+
useState as useState21
|
|
7296
10239
|
} from "react";
|
|
7297
10240
|
|
|
7298
10241
|
// components/ViewportControls/index.tsx
|
|
7299
10242
|
init_react_import();
|
|
7300
|
-
import { useEffect as useEffect24, useMemo as useMemo21, useState as
|
|
10243
|
+
import { useEffect as useEffect24, useMemo as useMemo21, useState as useState20 } from "react";
|
|
7301
10244
|
|
|
7302
10245
|
// css-module:/home/runner/work/puck/puck/packages/core/components/ViewportControls/styles.module.css#css-module
|
|
7303
10246
|
init_react_import();
|
|
7304
|
-
var styles_module_default24 = { "ViewportControls": "
|
|
10247
|
+
var styles_module_default24 = { "ViewportControls": "_ViewportControls_v26yb_1", "ViewportControls--fullScreen": "_ViewportControls--fullScreen_v26yb_5", "ViewportControls-toggleButton": "_ViewportControls-toggleButton_v26yb_14", "ViewportControls-actions": "_ViewportControls-actions_v26yb_39", "ViewportControls-actionsInner": "_ViewportControls-actionsInner_v26yb_43", "ViewportControls--isExpanded": "_ViewportControls--isExpanded_v26yb_67", "ViewportControls-divider": "_ViewportControls-divider_v26yb_72", "ViewportControls-zoomSelect": "_ViewportControls-zoomSelect_v26yb_79", "ViewportControls-zoom": "_ViewportControls-zoom_v26yb_79", "ViewportButton-inner": "_ViewportButton-inner_v26yb_110", "ViewportButton--isActive": "_ViewportButton--isActive_v26yb_118" };
|
|
7305
10248
|
|
|
7306
10249
|
// components/ViewportControls/index.tsx
|
|
7307
|
-
import { jsx as jsx49, jsxs as
|
|
10250
|
+
import { jsx as jsx49, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
7308
10251
|
var icons = {
|
|
7309
10252
|
Smartphone: /* @__PURE__ */ jsx49(Smartphone, { size: 16 }),
|
|
7310
10253
|
Tablet: /* @__PURE__ */ jsx49(Tablet, { size: 16 }),
|
|
@@ -7366,20 +10309,20 @@ var ViewportControls = ({
|
|
|
7366
10309
|
].filter((a) => a.value <= autoZoom).sort((a, b) => a.value > b.value ? 1 : -1),
|
|
7367
10310
|
[autoZoom]
|
|
7368
10311
|
);
|
|
7369
|
-
const [activeViewport, setActiveViewport] =
|
|
10312
|
+
const [activeViewport, setActiveViewport] = useState20(
|
|
7370
10313
|
uiViewports.current.width
|
|
7371
10314
|
);
|
|
7372
10315
|
useEffect24(() => {
|
|
7373
10316
|
setActiveViewport(uiViewports.current.width);
|
|
7374
10317
|
}, [uiViewports.current]);
|
|
7375
|
-
const [isExpanded, setIsExpanded] =
|
|
7376
|
-
return /* @__PURE__ */
|
|
10318
|
+
const [isExpanded, setIsExpanded] = useState20(false);
|
|
10319
|
+
return /* @__PURE__ */ jsxs19(
|
|
7377
10320
|
"div",
|
|
7378
10321
|
{
|
|
7379
10322
|
className: getClassName29({ isExpanded, fullScreen }),
|
|
7380
10323
|
suppressHydrationWarning: true,
|
|
7381
10324
|
children: [
|
|
7382
|
-
/* @__PURE__ */ jsx49("div", { className: getClassName29("actions"), children: /* @__PURE__ */
|
|
10325
|
+
/* @__PURE__ */ jsx49("div", { className: getClassName29("actions"), children: /* @__PURE__ */ jsxs19("div", { className: getClassName29("actionsInner"), children: [
|
|
7383
10326
|
viewports.map((viewport, i) => /* @__PURE__ */ jsx49(
|
|
7384
10327
|
ActionButton,
|
|
7385
10328
|
{
|
|
@@ -7428,7 +10371,7 @@ var ViewportControls = ({
|
|
|
7428
10371
|
children: /* @__PURE__ */ jsx49(ZoomIn, { size: 16 })
|
|
7429
10372
|
}
|
|
7430
10373
|
),
|
|
7431
|
-
/* @__PURE__ */
|
|
10374
|
+
/* @__PURE__ */ jsxs19("div", { className: getClassName29("zoom"), children: [
|
|
7432
10375
|
/* @__PURE__ */ jsx49("div", { className: getClassName29("divider") }),
|
|
7433
10376
|
/* @__PURE__ */ jsx49(
|
|
7434
10377
|
"select",
|
|
@@ -7469,7 +10412,7 @@ var ViewportControls = ({
|
|
|
7469
10412
|
|
|
7470
10413
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Canvas/styles.module.css#css-module
|
|
7471
10414
|
init_react_import();
|
|
7472
|
-
var styles_module_default25 = { "PuckCanvas": "
|
|
10415
|
+
var styles_module_default25 = { "PuckCanvas": "_PuckCanvas_zw9iy_1", "PuckCanvas-controls": "_PuckCanvas-controls_zw9iy_18", "PuckCanvas--fullScreen": "_PuckCanvas--fullScreen_zw9iy_23", "PuckCanvas-inner": "_PuckCanvas-inner_zw9iy_34", "PuckCanvas-root": "_PuckCanvas-root_zw9iy_43", "PuckCanvas--ready": "_PuckCanvas--ready_zw9iy_68", "PuckCanvas-loader": "_PuckCanvas-loader_zw9iy_73", "PuckCanvas--showLoader": "_PuckCanvas--showLoader_zw9iy_84" };
|
|
7473
10416
|
|
|
7474
10417
|
// components/Puck/components/Canvas/index.tsx
|
|
7475
10418
|
import { useShallow as useShallow9 } from "zustand/react/shallow";
|
|
@@ -7505,7 +10448,7 @@ var useCanvasFrame = () => {
|
|
|
7505
10448
|
};
|
|
7506
10449
|
|
|
7507
10450
|
// components/Puck/components/Canvas/index.tsx
|
|
7508
|
-
import { Fragment as Fragment17, jsx as jsx51, jsxs as
|
|
10451
|
+
import { Fragment as Fragment17, jsx as jsx51, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
7509
10452
|
var getClassName30 = get_class_name_factory_default("PuckCanvas", styles_module_default25);
|
|
7510
10453
|
var ZOOM_ON_CHANGE = true;
|
|
7511
10454
|
var TRANSITION_DURATION = 150;
|
|
@@ -7550,7 +10493,7 @@ var Canvas = () => {
|
|
|
7550
10493
|
viewports: s.state.ui.viewports
|
|
7551
10494
|
}))
|
|
7552
10495
|
);
|
|
7553
|
-
const [showTransition, setShowTransition] =
|
|
10496
|
+
const [showTransition, setShowTransition] = useState21(false);
|
|
7554
10497
|
const isResizingRef = useRef13(false);
|
|
7555
10498
|
const defaultRender = useMemo23(() => {
|
|
7556
10499
|
const PuckDefault = ({ children }) => /* @__PURE__ */ jsx51(Fragment17, { children });
|
|
@@ -7603,7 +10546,7 @@ var Canvas = () => {
|
|
|
7603
10546
|
resizeObserver.disconnect();
|
|
7604
10547
|
};
|
|
7605
10548
|
}, [frameRef.current]);
|
|
7606
|
-
const [showLoader, setShowLoader] =
|
|
10549
|
+
const [showLoader, setShowLoader] = useState21(false);
|
|
7607
10550
|
useEffect25(() => {
|
|
7608
10551
|
setTimeout(() => {
|
|
7609
10552
|
setShowLoader(true);
|
|
@@ -7661,7 +10604,7 @@ var Canvas = () => {
|
|
|
7661
10604
|
appStoreApi,
|
|
7662
10605
|
(_a = uiProp == null ? void 0 : uiProp.viewports) == null ? void 0 : _a.current
|
|
7663
10606
|
]);
|
|
7664
|
-
return /* @__PURE__ */
|
|
10607
|
+
return /* @__PURE__ */ jsxs20(
|
|
7665
10608
|
"div",
|
|
7666
10609
|
{
|
|
7667
10610
|
className: getClassName30({
|
|
@@ -7710,7 +10653,7 @@ var Canvas = () => {
|
|
|
7710
10653
|
}
|
|
7711
10654
|
}
|
|
7712
10655
|
) }),
|
|
7713
|
-
/* @__PURE__ */
|
|
10656
|
+
/* @__PURE__ */ jsxs20("div", { className: getClassName30("inner"), ref: frameRef, children: [
|
|
7714
10657
|
/* @__PURE__ */ jsx51(
|
|
7715
10658
|
"div",
|
|
7716
10659
|
{
|
|
@@ -7740,9 +10683,9 @@ var Canvas = () => {
|
|
|
7740
10683
|
|
|
7741
10684
|
// lib/use-sidebar-resize.ts
|
|
7742
10685
|
init_react_import();
|
|
7743
|
-
import { useCallback as useCallback20, useEffect as useEffect26, useRef as useRef14, useState as
|
|
10686
|
+
import { useCallback as useCallback20, useEffect as useEffect26, useRef as useRef14, useState as useState22 } from "react";
|
|
7744
10687
|
function useSidebarResize(position, dispatch) {
|
|
7745
|
-
const [width, setWidth] =
|
|
10688
|
+
const [width, setWidth] = useState22(null);
|
|
7746
10689
|
const sidebarRef = useRef14(null);
|
|
7747
10690
|
const storeWidth = useAppStore(
|
|
7748
10691
|
(s) => position === "left" ? s.state.ui.leftSideBarWidth : s.state.ui.rightSideBarWidth
|
|
@@ -7902,10 +10845,10 @@ var ResizeHandle = ({
|
|
|
7902
10845
|
|
|
7903
10846
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Sidebar/styles.module.css#css-module
|
|
7904
10847
|
init_react_import();
|
|
7905
|
-
var styles_module_default27 = { "Sidebar": "
|
|
10848
|
+
var styles_module_default27 = { "Sidebar": "_Sidebar_16oed_1", "Sidebar--isVisible": "_Sidebar--isVisible_16oed_10", "Sidebar--left": "_Sidebar--left_16oed_14", "Sidebar--right": "_Sidebar--right_16oed_34", "Sidebar-resizeHandle": "_Sidebar-resizeHandle_16oed_51" };
|
|
7906
10849
|
|
|
7907
10850
|
// components/Puck/components/Sidebar/index.tsx
|
|
7908
|
-
import { Fragment as Fragment18, jsx as jsx53, jsxs as
|
|
10851
|
+
import { Fragment as Fragment18, jsx as jsx53, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
7909
10852
|
var getClassName32 = get_class_name_factory_default("Sidebar", styles_module_default27);
|
|
7910
10853
|
var Sidebar = ({
|
|
7911
10854
|
position,
|
|
@@ -7915,7 +10858,7 @@ var Sidebar = ({
|
|
|
7915
10858
|
onResizeEnd,
|
|
7916
10859
|
children
|
|
7917
10860
|
}) => {
|
|
7918
|
-
return /* @__PURE__ */
|
|
10861
|
+
return /* @__PURE__ */ jsxs21(Fragment18, { children: [
|
|
7919
10862
|
/* @__PURE__ */ jsx53(
|
|
7920
10863
|
"div",
|
|
7921
10864
|
{
|
|
@@ -8002,10 +10945,10 @@ init_react_import();
|
|
|
8002
10945
|
|
|
8003
10946
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Nav/styles.module.css#css-module
|
|
8004
10947
|
init_react_import();
|
|
8005
|
-
var styles_module_default28 = { "Nav": "
|
|
10948
|
+
var styles_module_default28 = { "Nav": "_Nav_vll2r_1", "Nav-list": "_Nav-list_vll2r_5", "Nav-mobileActions": "_Nav-mobileActions_vll2r_23", "NavItem-link": "_NavItem-link_vll2r_39", "NavItem": "_NavItem_vll2r_39", "NavItem-linkIcon": "_NavItem-linkIcon_vll2r_90", "NavItem--active": "_NavItem--active_vll2r_100", "NavItem--mobileOnly": "_NavItem--mobileOnly_vll2r_136", "NavItem--desktopOnly": "_NavItem--desktopOnly_vll2r_141" };
|
|
8006
10949
|
|
|
8007
10950
|
// components/Puck/components/Nav/index.tsx
|
|
8008
|
-
import { jsx as jsx54, jsxs as
|
|
10951
|
+
import { jsx as jsx54, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
8009
10952
|
var getClassName33 = get_class_name_factory_default("Nav", styles_module_default28);
|
|
8010
10953
|
var getClassNameItem3 = get_class_name_factory_default("NavItem", styles_module_default28);
|
|
8011
10954
|
var MenuItem = ({
|
|
@@ -8024,7 +10967,7 @@ var MenuItem = ({
|
|
|
8024
10967
|
mobileOnly,
|
|
8025
10968
|
desktopOnly
|
|
8026
10969
|
}),
|
|
8027
|
-
children: onClick && /* @__PURE__ */
|
|
10970
|
+
children: onClick && /* @__PURE__ */ jsxs22("div", { className: getClassNameItem3("link"), onClick, children: [
|
|
8028
10971
|
icon && /* @__PURE__ */ jsx54("span", { className: getClassNameItem3("linkIcon"), children: icon }),
|
|
8029
10972
|
/* @__PURE__ */ jsx54("span", { className: getClassNameItem3("linkLabel"), children: label })
|
|
8030
10973
|
] })
|
|
@@ -8035,17 +10978,26 @@ var Nav = ({
|
|
|
8035
10978
|
items,
|
|
8036
10979
|
mobileActions
|
|
8037
10980
|
}) => {
|
|
8038
|
-
return /* @__PURE__ */
|
|
10981
|
+
return /* @__PURE__ */ jsxs22("nav", { className: getClassName33(), children: [
|
|
8039
10982
|
/* @__PURE__ */ jsx54("ul", { className: getClassName33("list"), children: Object.entries(items).map(([key, item]) => /* @__PURE__ */ jsx54(MenuItem, __spreadValues({}, item), key)) }),
|
|
8040
10983
|
mobileActions && /* @__PURE__ */ jsx54("div", { className: getClassName33("mobileActions"), children: mobileActions })
|
|
8041
10984
|
] });
|
|
8042
10985
|
};
|
|
8043
10986
|
|
|
10987
|
+
// lib/style-config.ts
|
|
10988
|
+
init_react_import();
|
|
10989
|
+
var normalizeIframeConfig = (iframe) => __spreadValues({
|
|
10990
|
+
enabled: true,
|
|
10991
|
+
waitForStyles: true,
|
|
10992
|
+
syncHostStyles: true
|
|
10993
|
+
}, iframe);
|
|
10994
|
+
|
|
8044
10995
|
// components/Puck/components/Layout/index.tsx
|
|
8045
|
-
import { jsx as jsx55, jsxs as
|
|
10996
|
+
import { jsx as jsx55, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
8046
10997
|
var getClassName34 = get_class_name_factory_default("Puck", styles_module_default20);
|
|
8047
10998
|
var getLayoutClassName = get_class_name_factory_default("PuckLayout", styles_module_default20);
|
|
8048
10999
|
var getPluginTabClassName = get_class_name_factory_default("PuckPluginTab", styles_module_default20);
|
|
11000
|
+
var useBrowserLayoutEffect = typeof window === "undefined" ? useEffect28 : useLayoutEffect2;
|
|
8049
11001
|
var FieldSideBar = () => {
|
|
8050
11002
|
const title = useAppStore(
|
|
8051
11003
|
(s) => {
|
|
@@ -8071,13 +11023,10 @@ var Layout = ({ children }) => {
|
|
|
8071
11023
|
height
|
|
8072
11024
|
} = usePropsContext();
|
|
8073
11025
|
const iframe = useMemo24(
|
|
8074
|
-
() =>
|
|
8075
|
-
enabled: true,
|
|
8076
|
-
waitForStyles: true
|
|
8077
|
-
}, _iframe),
|
|
11026
|
+
() => normalizeIframeConfig(_iframe),
|
|
8078
11027
|
[_iframe]
|
|
8079
11028
|
);
|
|
8080
|
-
|
|
11029
|
+
useInjectUiCss();
|
|
8081
11030
|
const dispatch = useAppStore((s) => s.dispatch);
|
|
8082
11031
|
const leftSideBarVisible = useAppStore((s) => s.state.ui.leftSideBarVisible);
|
|
8083
11032
|
const rightSideBarVisible = useAppStore(
|
|
@@ -8124,8 +11073,8 @@ var Layout = ({ children }) => {
|
|
|
8124
11073
|
() => overrides.puck || DefaultOverride,
|
|
8125
11074
|
[overrides]
|
|
8126
11075
|
);
|
|
8127
|
-
const [mounted, setMounted] =
|
|
8128
|
-
|
|
11076
|
+
const [mounted, setMounted] = useState23(false);
|
|
11077
|
+
useBrowserLayoutEffect(() => {
|
|
8129
11078
|
setMounted(true);
|
|
8130
11079
|
}, []);
|
|
8131
11080
|
const ready = useAppStore((s) => s.status === "READY");
|
|
@@ -8142,10 +11091,10 @@ var Layout = ({ children }) => {
|
|
|
8142
11091
|
useDeleteHotkeys();
|
|
8143
11092
|
const layoutOptions = {};
|
|
8144
11093
|
if (leftWidth) {
|
|
8145
|
-
layoutOptions["--puck-user-left-
|
|
11094
|
+
layoutOptions["--puck-user-sidebar-left-width"] = `${leftWidth}px`;
|
|
8146
11095
|
}
|
|
8147
11096
|
if (rightWidth) {
|
|
8148
|
-
layoutOptions["--puck-user-right-
|
|
11097
|
+
layoutOptions["--puck-user-sidebar-right-width"] = `${rightWidth}px`;
|
|
8149
11098
|
}
|
|
8150
11099
|
const setUi = useAppStore((s) => s.setUi);
|
|
8151
11100
|
const currentPlugin = useAppStore((s) => {
|
|
@@ -8153,7 +11102,7 @@ var Layout = ({ children }) => {
|
|
|
8153
11102
|
return (_a = s.state.ui.plugin) == null ? void 0 : _a.current;
|
|
8154
11103
|
});
|
|
8155
11104
|
const appStoreApi = useAppStoreApi();
|
|
8156
|
-
const [mobilePanelHeightMode, setMobilePanelHeightMode] =
|
|
11105
|
+
const [mobilePanelHeightMode, setMobilePanelHeightMode] = useState23("toggle");
|
|
8157
11106
|
const hasLegacySideBarPlugin = useMemo24(
|
|
8158
11107
|
() => !!(plugins == null ? void 0 : plugins.find((p) => p.name === "legacy-side-bar")),
|
|
8159
11108
|
[plugins]
|
|
@@ -8218,14 +11167,14 @@ var Layout = ({ children }) => {
|
|
|
8218
11167
|
return (_a = s.state.ui.mobilePanelExpanded) != null ? _a : false;
|
|
8219
11168
|
}
|
|
8220
11169
|
);
|
|
8221
|
-
return /* @__PURE__ */
|
|
11170
|
+
return /* @__PURE__ */ jsxs23(
|
|
8222
11171
|
"div",
|
|
8223
11172
|
{
|
|
8224
11173
|
className: `Puck ${getClassName34({
|
|
8225
11174
|
hidePlugins: hasLegacySideBarPlugin
|
|
8226
11175
|
})}`,
|
|
8227
11176
|
id: instanceId,
|
|
8228
|
-
style: { height },
|
|
11177
|
+
style: { height, visibility: "hidden" },
|
|
8229
11178
|
children: [
|
|
8230
11179
|
/* @__PURE__ */ jsx55(DragDropContext, { disableAutoScroll: dnd == null ? void 0 : dnd.disableAutoScroll, children: /* @__PURE__ */ jsx55(CustomPuck, { children: children || /* @__PURE__ */ jsx55(FrameProvider, { children: /* @__PURE__ */ jsx55(
|
|
8231
11180
|
"div",
|
|
@@ -8239,7 +11188,7 @@ var Layout = ({ children }) => {
|
|
|
8239
11188
|
mobilePanelHeightMinContent: mobilePanelHeightMode === "min-content"
|
|
8240
11189
|
}),
|
|
8241
11190
|
style: { height },
|
|
8242
|
-
children: /* @__PURE__ */
|
|
11191
|
+
children: /* @__PURE__ */ jsxs23(
|
|
8243
11192
|
"div",
|
|
8244
11193
|
{
|
|
8245
11194
|
className: getLayoutClassName("inner"),
|
|
@@ -8335,13 +11284,10 @@ function PuckProvider({ children }) {
|
|
|
8335
11284
|
_experimentalVirtualization
|
|
8336
11285
|
} = usePropsContext();
|
|
8337
11286
|
const iframe = useMemo25(
|
|
8338
|
-
() =>
|
|
8339
|
-
enabled: true,
|
|
8340
|
-
waitForStyles: true
|
|
8341
|
-
}, _iframe),
|
|
11287
|
+
() => normalizeIframeConfig(_iframe),
|
|
8342
11288
|
[_iframe]
|
|
8343
11289
|
);
|
|
8344
|
-
const [generatedAppState] =
|
|
11290
|
+
const [generatedAppState] = useState24(() => {
|
|
8345
11291
|
var _a, _b, _c;
|
|
8346
11292
|
const initial = __spreadValues(__spreadValues({}, defaultAppState.ui), initialUi);
|
|
8347
11293
|
let clientUiState = {};
|
|
@@ -8381,7 +11327,7 @@ function PuckProvider({ children }) {
|
|
|
8381
11327
|
return walkAppState(newAppState, config);
|
|
8382
11328
|
});
|
|
8383
11329
|
const { appendData = true } = _initialHistory || {};
|
|
8384
|
-
const [blendedHistories] =
|
|
11330
|
+
const [blendedHistories] = useState24(
|
|
8385
11331
|
[
|
|
8386
11332
|
...(_initialHistory == null ? void 0 : _initialHistory.histories) || [],
|
|
8387
11333
|
...appendData ? [{ state: generatedAppState }] : []
|
|
@@ -8447,7 +11393,7 @@ function PuckProvider({ children }) {
|
|
|
8447
11393
|
loadedFieldTransforms
|
|
8448
11394
|
]
|
|
8449
11395
|
);
|
|
8450
|
-
const [appStore] =
|
|
11396
|
+
const [appStore] = useState24(
|
|
8451
11397
|
() => createAppStore(generateAppStore(initialAppState))
|
|
8452
11398
|
);
|
|
8453
11399
|
useEffect29(() => {
|
|
@@ -8498,10 +11444,10 @@ Puck.Preview = Preview2;
|
|
|
8498
11444
|
|
|
8499
11445
|
// plugins/legacy-side-bar/index.tsx
|
|
8500
11446
|
init_react_import();
|
|
8501
|
-
import { jsx as jsx57, jsxs as
|
|
11447
|
+
import { jsx as jsx57, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
8502
11448
|
var legacySideBarPlugin = () => ({
|
|
8503
11449
|
name: "legacy-side-bar",
|
|
8504
|
-
render: () => /* @__PURE__ */
|
|
11450
|
+
render: () => /* @__PURE__ */ jsxs24("div", { style: { overflowY: "auto" }, children: [
|
|
8505
11451
|
/* @__PURE__ */ jsx57(SidebarSection, { title: "Components", noBorderTop: true, children: /* @__PURE__ */ jsx57(Components, {}) }),
|
|
8506
11452
|
/* @__PURE__ */ jsx57(SidebarSection, { title: "Outline", children: /* @__PURE__ */ jsx57(Outline, {}) })
|
|
8507
11453
|
] })
|