@measured/puck 0.21.0-canary.ec77dd9f → 0.21.0-canary.ece26d91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/Editor-F2LSS6SE.css +403 -0
  2. package/dist/Editor-O447AVCX.mjs +204 -0
  3. package/dist/Render-OFE6QLI2.mjs +55 -0
  4. package/dist/Render-QEMDIDQC.css +101 -0
  5. package/dist/{walk-tree-CkSoNBF7.d.mts → actions-ONhOkrvf.d.mts} +208 -33
  6. package/dist/{walk-tree-CkSoNBF7.d.ts → actions-ONhOkrvf.d.ts} +208 -33
  7. package/dist/chunk-2Q4PACDA.mjs +111 -0
  8. package/dist/chunk-62AAYNXG.mjs +63 -0
  9. package/dist/chunk-BSDEIOEK.mjs +706 -0
  10. package/dist/chunk-CSSRLPHM.mjs +11 -0
  11. package/dist/chunk-DAQLMM2T.mjs +1722 -0
  12. package/dist/chunk-M6W7YEVX.mjs +95 -0
  13. package/dist/chunk-NLUHDYVR.mjs +416 -0
  14. package/dist/chunk-PLXSMBAA.mjs +53 -0
  15. package/dist/chunk-QAWJTCV5.mjs +33 -0
  16. package/dist/chunk-QBGM4ELA.mjs +528 -0
  17. package/dist/{chunk-NW2GGRCZ.mjs → chunk-QBJ2LDJB.mjs} +1048 -2778
  18. package/dist/chunk-T3WX7XJ6.mjs +132 -0
  19. package/dist/chunk-V5I7CVLT.mjs +103 -0
  20. package/dist/chunk-Y2EFNT5P.mjs +108 -0
  21. package/dist/chunk-Y656T6AQ.mjs +419 -0
  22. package/dist/full-2GJTAAZE.css +301 -0
  23. package/dist/full-BEMDJKDS.mjs +93 -0
  24. package/dist/index-BEoNHRI1.d.ts +116 -0
  25. package/dist/index-DfxZ7tZF.d.mts +116 -0
  26. package/dist/index.css +278 -22
  27. package/dist/index.d.mts +94 -111
  28. package/dist/index.d.ts +94 -111
  29. package/dist/index.js +5812 -2550
  30. package/dist/index.mjs +28 -9
  31. package/dist/internal.d.mts +27 -0
  32. package/dist/internal.d.ts +27 -0
  33. package/dist/internal.js +908 -0
  34. package/dist/internal.mjs +13 -0
  35. package/dist/loaded-JU3A7Y4L.mjs +57 -0
  36. package/dist/loaded-N3FYGF2Y.mjs +57 -0
  37. package/dist/loaded-OBY7OMS6.mjs +60 -0
  38. package/dist/loaded-RVWBFK7L.css +87 -0
  39. package/dist/no-external.css +278 -22
  40. package/dist/no-external.d.mts +19 -2
  41. package/dist/no-external.d.ts +19 -2
  42. package/dist/no-external.js +5812 -2550
  43. package/dist/no-external.mjs +28 -9
  44. package/dist/rsc.css +101 -0
  45. package/dist/rsc.d.mts +17 -2
  46. package/dist/rsc.d.ts +17 -2
  47. package/dist/rsc.js +409 -22
  48. package/dist/rsc.mjs +18 -9
  49. package/dist/walk-tree-CdriEzFJ.d.mts +29 -0
  50. package/dist/walk-tree-DHbAZ4wF.d.ts +29 -0
  51. package/package.json +29 -2
  52. package/dist/chunk-TC25DCTQ.mjs +0 -965
@@ -0,0 +1,13 @@
1
+ import {
2
+ createReducer
3
+ } from "./chunk-QBGM4ELA.mjs";
4
+ import "./chunk-NLUHDYVR.mjs";
5
+ import {
6
+ init_react_import
7
+ } from "./chunk-M6W7YEVX.mjs";
8
+
9
+ // bundle/internal.ts
10
+ init_react_import();
11
+ export {
12
+ createReducer
13
+ };
@@ -0,0 +1,57 @@
1
+ import {
2
+ useAlignOptions
3
+ } from "./chunk-PLXSMBAA.mjs";
4
+ import {
5
+ AlignLeft,
6
+ SelectControl,
7
+ useControlContext
8
+ } from "./chunk-DAQLMM2T.mjs";
9
+ import "./chunk-QBGM4ELA.mjs";
10
+ import "./chunk-T3WX7XJ6.mjs";
11
+ import "./chunk-Y2EFNT5P.mjs";
12
+ import "./chunk-NLUHDYVR.mjs";
13
+ import {
14
+ init_react_import
15
+ } from "./chunk-M6W7YEVX.mjs";
16
+
17
+ // components/RichTextMenu/controls/AlignSelect/loaded.tsx
18
+ init_react_import();
19
+ import { useEditorState } from "@tiptap/react";
20
+ import { jsx } from "react/jsx-runtime";
21
+ function AlignSelectLoaded() {
22
+ var _a;
23
+ const { options } = useControlContext();
24
+ const alignOptions = useAlignOptions(options);
25
+ const { editor } = useControlContext();
26
+ const currentValue = (_a = useEditorState({
27
+ editor,
28
+ selector: (ctx) => {
29
+ var _a2, _b, _c, _d;
30
+ if ((_a2 = ctx.editor) == null ? void 0 : _a2.isActive({ textAlign: "center" })) {
31
+ return "center";
32
+ } else if ((_b = ctx.editor) == null ? void 0 : _b.isActive({ textAlign: "right" })) {
33
+ return "right";
34
+ } else if ((_c = ctx.editor) == null ? void 0 : _c.isActive({ textAlign: "justify" })) {
35
+ return "justify";
36
+ }
37
+ return (options == null ? void 0 : options.textAlign) ? (_d = options.textAlign.defaultAlignment) != null ? _d : "left" : "left";
38
+ }
39
+ })) != null ? _a : "left";
40
+ const handleChange = (val) => {
41
+ const chain = editor == null ? void 0 : editor.chain();
42
+ chain == null ? void 0 : chain.focus().setTextAlign(val).run();
43
+ };
44
+ return /* @__PURE__ */ jsx(
45
+ SelectControl,
46
+ {
47
+ options: alignOptions,
48
+ onChange: handleChange,
49
+ value: currentValue,
50
+ defaultValue: "left",
51
+ renderDefaultIcon: AlignLeft
52
+ }
53
+ );
54
+ }
55
+ export {
56
+ AlignSelectLoaded
57
+ };
@@ -0,0 +1,57 @@
1
+ import {
2
+ useListOptions
3
+ } from "./chunk-QAWJTCV5.mjs";
4
+ import {
5
+ List,
6
+ SelectControl,
7
+ useControlContext
8
+ } from "./chunk-DAQLMM2T.mjs";
9
+ import "./chunk-QBGM4ELA.mjs";
10
+ import "./chunk-T3WX7XJ6.mjs";
11
+ import "./chunk-Y2EFNT5P.mjs";
12
+ import "./chunk-NLUHDYVR.mjs";
13
+ import {
14
+ init_react_import
15
+ } from "./chunk-M6W7YEVX.mjs";
16
+
17
+ // components/RichTextMenu/controls/ListSelect/loaded.tsx
18
+ init_react_import();
19
+ import { useEditorState } from "@tiptap/react";
20
+ import { jsx } from "react/jsx-runtime";
21
+ function ListSelectLoaded() {
22
+ const { options } = useControlContext();
23
+ const listOptions = useListOptions(options);
24
+ const { editor } = useControlContext();
25
+ const currentValue = useEditorState({
26
+ editor,
27
+ selector: (ctx) => {
28
+ var _a, _b;
29
+ if ((_a = ctx.editor) == null ? void 0 : _a.isActive("bulletList")) return "ul";
30
+ if ((_b = ctx.editor) == null ? void 0 : _b.isActive("orderedList")) return "ol";
31
+ return "p";
32
+ }
33
+ });
34
+ const handleChange = (val) => {
35
+ const chain = editor == null ? void 0 : editor.chain();
36
+ if (val === "p") {
37
+ chain == null ? void 0 : chain.focus().setParagraph().run();
38
+ } else if (val === "ol") {
39
+ chain == null ? void 0 : chain.focus().toggleOrderedList().run();
40
+ } else if (val === "ul") {
41
+ chain == null ? void 0 : chain.focus().toggleBulletList().run();
42
+ }
43
+ };
44
+ return /* @__PURE__ */ jsx(
45
+ SelectControl,
46
+ {
47
+ options: listOptions,
48
+ onChange: handleChange,
49
+ value: currentValue != null ? currentValue : "p",
50
+ defaultValue: "p",
51
+ renderDefaultIcon: List
52
+ }
53
+ );
54
+ }
55
+ export {
56
+ ListSelectLoaded
57
+ };
@@ -0,0 +1,60 @@
1
+ import {
2
+ useHeadingOptions
3
+ } from "./chunk-62AAYNXG.mjs";
4
+ import {
5
+ Heading,
6
+ SelectControl,
7
+ useControlContext
8
+ } from "./chunk-DAQLMM2T.mjs";
9
+ import "./chunk-QBGM4ELA.mjs";
10
+ import "./chunk-T3WX7XJ6.mjs";
11
+ import "./chunk-Y2EFNT5P.mjs";
12
+ import "./chunk-NLUHDYVR.mjs";
13
+ import {
14
+ init_react_import
15
+ } from "./chunk-M6W7YEVX.mjs";
16
+
17
+ // components/RichTextMenu/controls/HeadingSelect/loaded.tsx
18
+ init_react_import();
19
+ import { useEditorState } from "@tiptap/react";
20
+ import { jsx } from "react/jsx-runtime";
21
+ function HeadingSelectLoaded() {
22
+ const { options } = useControlContext();
23
+ const headingOptions = useHeadingOptions(options);
24
+ const { editor } = useControlContext();
25
+ const currentValue = useEditorState({
26
+ editor,
27
+ selector: (ctx) => {
28
+ var _a, _b;
29
+ if ((_a = ctx.editor) == null ? void 0 : _a.isActive("paragraph")) return "p";
30
+ for (let level = 1; level <= 6; level++) {
31
+ if ((_b = ctx.editor) == null ? void 0 : _b.isActive("heading", { level })) {
32
+ return `h${level}`;
33
+ }
34
+ }
35
+ return "p";
36
+ }
37
+ });
38
+ const handleChange = (val) => {
39
+ const chain = editor == null ? void 0 : editor.chain();
40
+ if (val === "p") {
41
+ chain == null ? void 0 : chain.focus().setParagraph().run();
42
+ } else {
43
+ const level = parseInt(val.replace("h", ""), 10);
44
+ chain == null ? void 0 : chain.focus().toggleHeading({ level }).run();
45
+ }
46
+ };
47
+ return /* @__PURE__ */ jsx(
48
+ SelectControl,
49
+ {
50
+ options: headingOptions,
51
+ onChange: handleChange,
52
+ value: currentValue != null ? currentValue : "p",
53
+ defaultValue: "p",
54
+ renderDefaultIcon: Heading
55
+ }
56
+ );
57
+ }
58
+ export {
59
+ HeadingSelectLoaded
60
+ };
@@ -0,0 +1,87 @@
1
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Select/styles.module.css/#css-module-data */
2
+ ._Select_xjbef_1 {
3
+ position: relative;
4
+ z-index: 1;
5
+ }
6
+ ._Select-button_xjbef_6 {
7
+ align-items: center;
8
+ background: transparent;
9
+ border: none;
10
+ border-radius: 4px;
11
+ display: flex;
12
+ justify-content: center;
13
+ gap: 0px;
14
+ height: 100%;
15
+ padding: 4px;
16
+ padding-right: 2px;
17
+ }
18
+ ._Select--hasOptions_xjbef_19 ._Select-button_xjbef_6 {
19
+ color: currentColor;
20
+ }
21
+ ._Select--hasOptions_xjbef_19:not(._Select--disabled_xjbef_23) ._Select-button_xjbef_6 {
22
+ cursor: pointer;
23
+ }
24
+ ._Select-buttonIcon_xjbef_27 {
25
+ align-items: center;
26
+ display: flex;
27
+ justify-content: center;
28
+ }
29
+ ._Select--standalone_xjbef_33 ._Select-buttonIcon_xjbef_27 .lucide {
30
+ height: 18px;
31
+ width: 18px;
32
+ }
33
+ ._Select--actionBar_xjbef_38 ._Select-buttonIcon_xjbef_27 .lucide {
34
+ height: 16px;
35
+ width: 16px;
36
+ }
37
+ ._Select--hasOptions_xjbef_19:not(._Select--disabled_xjbef_23) ._Select-button_xjbef_6:hover,
38
+ ._Select--hasValue_xjbef_44 ._Select-button_xjbef_6 {
39
+ background: var(--puck-color-grey-10);
40
+ color: var(--puck-color-azure-04);
41
+ }
42
+ ._Select--disabled_xjbef_23 ._Select-button_xjbef_6 {
43
+ color: var(--puck-color-grey-07);
44
+ }
45
+ ._Select--actionBar_xjbef_38 {
46
+ &._Select--hasOptions_xjbef_19 ._Select-button_xjbef_6:hover,
47
+ &._Select--hasValue_xjbef_44 ._Select-button_xjbef_6 {
48
+ background: none;
49
+ color: var(--puck-color-azure-07);
50
+ }
51
+ }
52
+ ._Select-items_xjbef_61 {
53
+ background: white;
54
+ border: 1px solid var(--puck-color-grey-09);
55
+ border-radius: 8px;
56
+ margin: 10px 8px;
57
+ margin-left: 0;
58
+ padding: 4px;
59
+ z-index: 2;
60
+ list-style: none;
61
+ }
62
+ ._SelectItem_xjbef_72 {
63
+ background: transparent;
64
+ border-radius: 4px;
65
+ border: none;
66
+ color: var(--puck-color-grey-04);
67
+ cursor: pointer;
68
+ display: flex;
69
+ gap: 8px;
70
+ align-items: center;
71
+ font-size: var(--puck-font-size-xxs);
72
+ margin: 0;
73
+ padding: 8px 12px;
74
+ width: 100%;
75
+ }
76
+ ._SelectItem--isSelected_xjbef_87 {
77
+ background: var(--puck-color-azure-11);
78
+ color: var(--puck-color-azure-04);
79
+ font-weight: 500;
80
+ }
81
+ ._SelectItem--isSelected_xjbef_87 ._SelectItem-icon_xjbef_93 {
82
+ color: var(--puck-color-azure-04);
83
+ }
84
+ ._SelectItem_xjbef_72:hover {
85
+ background: var(--puck-color-azure-11);
86
+ color: var(--puck-color-azure-04);
87
+ }
@@ -145,7 +145,7 @@
145
145
  /* bundle/no-external.css */
146
146
 
147
147
  /* css-module:/home/runner/work/puck/puck/packages/core/components/ActionBar/styles.module.css/#css-module-data */
148
- ._ActionBar_rvadt_1 {
148
+ ._ActionBar_1nmyk_1 {
149
149
  align-items: center;
150
150
  cursor: default;
151
151
  display: flex;
@@ -161,7 +161,7 @@
161
161
  font-family: var(--puck-font-family);
162
162
  min-height: 26px;
163
163
  }
164
- ._ActionBar-label_rvadt_18 {
164
+ ._ActionBar-label_1nmyk_18 {
165
165
  color: var(--puck-color-grey-08);
166
166
  font-size: var(--puck-font-size-xxxs);
167
167
  font-weight: 500;
@@ -172,13 +172,13 @@
172
172
  text-overflow: ellipsis;
173
173
  white-space: nowrap;
174
174
  }
175
- ._ActionBar-action_rvadt_30 + ._ActionBar-label_rvadt_18 {
175
+ ._ActionBarAction_1nmyk_30 + ._ActionBar-label_1nmyk_18 {
176
176
  padding-inline-start: 0;
177
177
  }
178
- ._ActionBar-label_rvadt_18 + ._ActionBar-action_rvadt_30 {
178
+ ._ActionBar-label_1nmyk_18 + ._ActionBarAction_1nmyk_30 {
179
179
  margin-inline-start: -4px;
180
180
  }
181
- ._ActionBar-group_rvadt_38 {
181
+ ._ActionBar-group_1nmyk_38 {
182
182
  align-items: center;
183
183
  border-inline-start: 0.5px solid var(--puck-color-grey-05);
184
184
  display: flex;
@@ -186,18 +186,18 @@
186
186
  padding-inline-start: 4px;
187
187
  padding-inline-end: 4px;
188
188
  }
189
- ._ActionBar-group_rvadt_38:first-of-type {
189
+ ._ActionBar-group_1nmyk_38:first-of-type {
190
190
  border-inline-start: 0;
191
191
  }
192
- ._ActionBar-group_rvadt_38:empty {
192
+ ._ActionBar-group_1nmyk_38:empty {
193
193
  display: none;
194
194
  }
195
- ._ActionBar-action_rvadt_30 {
195
+ ._ActionBarAction_1nmyk_30 {
196
196
  background: transparent;
197
197
  border: none;
198
198
  color: var(--puck-color-grey-08);
199
199
  cursor: pointer;
200
- padding: 6px 8px;
200
+ padding: 6px;
201
201
  margin-inline-start: 4px;
202
202
  margin-inline-end: 4px;
203
203
  border-radius: 4px;
@@ -207,26 +207,37 @@
207
207
  justify-content: center;
208
208
  transition: color 50ms ease-in;
209
209
  }
210
- ._ActionBar-action_rvadt_30 svg {
210
+ ._ActionBarAction--disabled_1nmyk_71 {
211
+ cursor: auto;
212
+ color: var(--puck-color-grey-06);
213
+ }
214
+ ._ActionBarAction_1nmyk_30 svg {
211
215
  max-width: none !important;
212
216
  }
213
- ._ActionBar-action_rvadt_30:focus-visible {
217
+ ._ActionBarAction_1nmyk_30:focus-visible {
214
218
  outline: 2px solid var(--puck-color-azure-05);
215
219
  outline-offset: -2px;
216
220
  }
217
221
  @media (hover: hover) and (pointer: fine) {
218
- ._ActionBar-action_rvadt_30:hover {
222
+ ._ActionBarAction_1nmyk_30:hover:not(._ActionBarAction--disabled_1nmyk_71) {
219
223
  color: var(--puck-color-azure-06);
220
224
  transition: none;
221
225
  }
222
226
  }
223
- ._ActionBar-action_rvadt_30:active {
227
+ ._ActionBarAction_1nmyk_30:active:not(._ActionBarAction--disabled_1nmyk_71),
228
+ ._ActionBarAction--active_1nmyk_93 {
224
229
  color: var(--puck-color-azure-07);
225
230
  transition: none;
226
231
  }
227
- ._ActionBar-group_rvadt_38 * {
232
+ ._ActionBar-group_1nmyk_38 * {
228
233
  margin: 0;
229
234
  }
235
+ ._ActionBar-separator_1nmyk_102 {
236
+ background: var(--puck-color-grey-05);
237
+ margin-inline: 4px;
238
+ width: 0.5px;
239
+ height: 100%;
240
+ }
230
241
 
231
242
  /* css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/styles.module.css/#css-module-data */
232
243
  ._InputWrapper_bsxfo_1 + ._InputWrapper_bsxfo_1 {
@@ -543,7 +554,7 @@ textarea._Input-input_bsxfo_26 {
543
554
  }
544
555
 
545
556
  /* css-module:/home/runner/work/puck/puck/packages/core/components/IconButton/IconButton.module.css/#css-module-data */
546
- ._IconButton_swpni_1 {
557
+ ._IconButton_ffob9_1 {
547
558
  align-items: center;
548
559
  background: transparent;
549
560
  border: none;
@@ -555,23 +566,26 @@ textarea._Input-input_bsxfo_26 {
555
566
  padding: 4px;
556
567
  transition: background-color 50ms ease-in, color 50ms ease-in;
557
568
  }
558
- ._IconButton_swpni_1:focus-visible {
569
+ ._IconButton--active_ffob9_14 {
570
+ color: var(--puck-color-azure-04);
571
+ }
572
+ ._IconButton_ffob9_1:focus-visible {
559
573
  outline: 2px solid var(--puck-color-azure-05);
560
574
  outline-offset: -2px;
561
575
  }
562
576
  @media (hover: hover) and (pointer: fine) {
563
- ._IconButton_swpni_1:hover:not(._IconButton--disabled_swpni_20) {
564
- background: var(--puck-color-azure-12);
577
+ ._IconButton_ffob9_1:hover:not(._IconButton--disabled_ffob9_24) {
578
+ background: var(--puck-color-grey-10);
565
579
  color: var(--puck-color-azure-04);
566
580
  cursor: pointer;
567
581
  transition: none;
568
582
  }
569
583
  }
570
- ._IconButton_swpni_1:active {
584
+ ._IconButton_ffob9_1:active {
571
585
  background: var(--puck-color-azure-11);
572
586
  transition: none;
573
587
  }
574
- ._IconButton-title_swpni_33 {
588
+ ._IconButton-title_ffob9_37 {
575
589
  clip: rect(0 0 0 0);
576
590
  clip-path: inset(100%);
577
591
  height: 1px;
@@ -580,7 +594,7 @@ textarea._Input-input_bsxfo_26 {
580
594
  white-space: nowrap;
581
595
  width: 1px;
582
596
  }
583
- ._IconButton--disabled_swpni_20 {
597
+ ._IconButton--disabled_ffob9_24 {
584
598
  color: var(--puck-color-grey-07);
585
599
  }
586
600
 
@@ -1082,6 +1096,248 @@ textarea._Input-input_bsxfo_26 {
1082
1096
  padding-inline-start: 8px;
1083
1097
  }
1084
1098
 
1099
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextMenu/styles.module.css/#css-module-data */
1100
+ ._RichTextMenu_k97eh_1 {
1101
+ display: flex;
1102
+ flex-direction: row;
1103
+ flex-wrap: nowrap;
1104
+ }
1105
+ ._RichTextMenu--form_k97eh_7 {
1106
+ border-top-left-radius: 4px;
1107
+ border-top-right-radius: 4px;
1108
+ padding: 6px 6px;
1109
+ background-color: var(--puck-color-grey-12);
1110
+ position: relative;
1111
+ scrollbar-width: none;
1112
+ overflow-x: auto;
1113
+ }
1114
+ ._RichTextMenu-group_k97eh_17 {
1115
+ display: flex;
1116
+ align-items: space-between;
1117
+ flex-direction: row;
1118
+ flex-wrap: nowrap;
1119
+ padding-inline: 6px;
1120
+ gap: 2px;
1121
+ position: relative;
1122
+ }
1123
+ ._RichTextMenu-group_k97eh_17:first-of-type {
1124
+ padding-left: 0;
1125
+ }
1126
+ ._RichTextMenu-group_k97eh_17:last-of-type {
1127
+ padding-right: 0;
1128
+ }
1129
+ ._RichTextMenu--inline_k97eh_35 ._RichTextMenu-group_k97eh_17 {
1130
+ color: var(--puck-color-grey-08);
1131
+ gap: 0px;
1132
+ flex-wrap: nowrap;
1133
+ }
1134
+ ._RichTextMenu-group_k97eh_17 + ._RichTextMenu-group_k97eh_17 {
1135
+ border-left: 1px solid var(--puck-color-grey-10);
1136
+ }
1137
+ ._RichTextMenu--inline_k97eh_35 ._RichTextMenu-group_k97eh_17 + ._RichTextMenu-group_k97eh_17 {
1138
+ border-left: 0.5px solid var(--puck-color-grey-05);
1139
+ }
1140
+
1141
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextMenu/components/Control/styles.module.css/#css-module-data */
1142
+ ._Control_1aveu_1 .lucide {
1143
+ height: 18px;
1144
+ width: 18px;
1145
+ }
1146
+ ._Control--inline_1aveu_6 .lucide {
1147
+ height: 16px;
1148
+ width: 16px;
1149
+ }
1150
+
1151
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/Select/styles.module.css/#css-module-data */
1152
+ ._Select_xjbef_1 {
1153
+ position: relative;
1154
+ z-index: 1;
1155
+ }
1156
+ ._Select-button_xjbef_6 {
1157
+ align-items: center;
1158
+ background: transparent;
1159
+ border: none;
1160
+ border-radius: 4px;
1161
+ display: flex;
1162
+ justify-content: center;
1163
+ gap: 0px;
1164
+ height: 100%;
1165
+ padding: 4px;
1166
+ padding-right: 2px;
1167
+ }
1168
+ ._Select--hasOptions_xjbef_19 ._Select-button_xjbef_6 {
1169
+ color: currentColor;
1170
+ }
1171
+ ._Select--hasOptions_xjbef_19:not(._Select--disabled_xjbef_23) ._Select-button_xjbef_6 {
1172
+ cursor: pointer;
1173
+ }
1174
+ ._Select-buttonIcon_xjbef_27 {
1175
+ align-items: center;
1176
+ display: flex;
1177
+ justify-content: center;
1178
+ }
1179
+ ._Select--standalone_xjbef_33 ._Select-buttonIcon_xjbef_27 .lucide {
1180
+ height: 18px;
1181
+ width: 18px;
1182
+ }
1183
+ ._Select--actionBar_xjbef_38 ._Select-buttonIcon_xjbef_27 .lucide {
1184
+ height: 16px;
1185
+ width: 16px;
1186
+ }
1187
+ ._Select--hasOptions_xjbef_19:not(._Select--disabled_xjbef_23) ._Select-button_xjbef_6:hover,
1188
+ ._Select--hasValue_xjbef_44 ._Select-button_xjbef_6 {
1189
+ background: var(--puck-color-grey-10);
1190
+ color: var(--puck-color-azure-04);
1191
+ }
1192
+ ._Select--disabled_xjbef_23 ._Select-button_xjbef_6 {
1193
+ color: var(--puck-color-grey-07);
1194
+ }
1195
+ ._Select--actionBar_xjbef_38 {
1196
+ &._Select--hasOptions_xjbef_19 ._Select-button_xjbef_6:hover,
1197
+ &._Select--hasValue_xjbef_44 ._Select-button_xjbef_6 {
1198
+ background: none;
1199
+ color: var(--puck-color-azure-07);
1200
+ }
1201
+ }
1202
+ ._Select-items_xjbef_61 {
1203
+ background: white;
1204
+ border: 1px solid var(--puck-color-grey-09);
1205
+ border-radius: 8px;
1206
+ margin: 10px 8px;
1207
+ margin-left: 0;
1208
+ padding: 4px;
1209
+ z-index: 2;
1210
+ list-style: none;
1211
+ }
1212
+ ._SelectItem_xjbef_72 {
1213
+ background: transparent;
1214
+ border-radius: 4px;
1215
+ border: none;
1216
+ color: var(--puck-color-grey-04);
1217
+ cursor: pointer;
1218
+ display: flex;
1219
+ gap: 8px;
1220
+ align-items: center;
1221
+ font-size: var(--puck-font-size-xxs);
1222
+ margin: 0;
1223
+ padding: 8px 12px;
1224
+ width: 100%;
1225
+ }
1226
+ ._SelectItem--isSelected_xjbef_87 {
1227
+ background: var(--puck-color-azure-11);
1228
+ color: var(--puck-color-azure-04);
1229
+ font-weight: 500;
1230
+ }
1231
+ ._SelectItem--isSelected_xjbef_87 ._SelectItem-icon_xjbef_93 {
1232
+ color: var(--puck-color-azure-04);
1233
+ }
1234
+ ._SelectItem_xjbef_72:hover {
1235
+ background: var(--puck-color-azure-11);
1236
+ color: var(--puck-color-azure-04);
1237
+ }
1238
+
1239
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextEditor/styles.module.css/#css-module-data */
1240
+ ._RichTextEditor_1elol_1 .ProseMirror {
1241
+ white-space: pre-wrap;
1242
+ word-wrap: break-word;
1243
+ cursor: text;
1244
+ outline: none;
1245
+ position: relative;
1246
+ }
1247
+ ._RichTextEditor_1elol_1 .rich-text * {
1248
+ white-space: pre-wrap;
1249
+ user-select: auto;
1250
+ -webkit-user-select: auto;
1251
+ }
1252
+ ._RichTextEditor_1elol_1 .rich-text blockquote {
1253
+ margin: 1em 0;
1254
+ padding: 0 1em;
1255
+ border-left: 4px solid var(--puck-color-grey-09);
1256
+ }
1257
+ ._RichTextEditor_1elol_1 .rich-text code {
1258
+ background-color: var(--puck-color-grey-11);
1259
+ padding: 4px 8px;
1260
+ border-radius: 4px;
1261
+ }
1262
+ ._RichTextEditor_1elol_1 .rich-text p:empty::before {
1263
+ content: "\a0";
1264
+ }
1265
+ ._RichTextEditor_1elol_1 .rich-text pre code {
1266
+ display: block;
1267
+ padding: 8px 12px;
1268
+ }
1269
+ ._RichTextEditor_1elol_1 .rich-text > *:first-child,
1270
+ ._RichTextEditor_1elol_1 .ProseMirror > *:first-child,
1271
+ ._RichTextEditor_1elol_1 .rich-text * p:first-of-type {
1272
+ margin-top: 0;
1273
+ }
1274
+ ._RichTextEditor_1elol_1 .rich-text > *:last-child,
1275
+ ._RichTextEditor_1elol_1 .ProseMirror > *:last-child,
1276
+ ._RichTextEditor_1elol_1 .rich-text * p:last-of-type {
1277
+ margin-bottom: 0;
1278
+ }
1279
+ ._RichTextEditor--editor_1elol_50 {
1280
+ background: var(--puck-color-white);
1281
+ border-width: 1px;
1282
+ border-style: solid;
1283
+ border-color: var(--puck-color-grey-09);
1284
+ border-radius: 4px;
1285
+ box-sizing: border-box;
1286
+ display: flex;
1287
+ flex-direction: column;
1288
+ font-family: inherit;
1289
+ font-size: var(--puck-font-size-xxs);
1290
+ resize: vertical;
1291
+ transition: border-color 50ms ease-in;
1292
+ width: 100%;
1293
+ max-width: 100%;
1294
+ min-height: 128px;
1295
+ }
1296
+ ._RichTextEditor--editor_1elol_50 .rich-text {
1297
+ flex-grow: 1;
1298
+ }
1299
+ ._RichTextEditor--editor_1elol_50 .rich-text:not(:has(.ProseMirror)),
1300
+ ._RichTextEditor--editor_1elol_50 .rich-text .ProseMirror {
1301
+ height: 100%;
1302
+ padding: 12px 15px;
1303
+ }
1304
+ ._RichTextEditor--editor_1elol_50 .rich-text ul,
1305
+ ._RichTextEditor--editor_1elol_50 .rich-text ol {
1306
+ padding-left: 24px;
1307
+ }
1308
+ ._RichTextEditor--editor_1elol_50 .rich-text li {
1309
+ line-height: 1.5;
1310
+ }
1311
+ ._RichTextEditor--editor_1elol_50 .rich-text p {
1312
+ margin-block: 12px;
1313
+ }
1314
+ ._RichTextEditor--editor_1elol_50 .rich-text ul {
1315
+ list-style: disc;
1316
+ }
1317
+ ._RichTextEditor--editor_1elol_50 .rich-text ol {
1318
+ list-style: decimal;
1319
+ }
1320
+ ._RichTextEditor--editor_1elol_50:focus-within {
1321
+ border-color: var(--puck-color-grey-05);
1322
+ outline: 2px solid var(--puck-color-azure-05);
1323
+ transition: none;
1324
+ }
1325
+ ._RichTextEditor--editor_1elol_50._RichTextEditor--disabled_1elol_106 {
1326
+ background: var(--puck-color-grey-11);
1327
+ }
1328
+ ._RichTextEditor_1elol_1:not(:focus-within):not(._RichTextEditor--isActive_1elol_110) .ProseMirror ::selection {
1329
+ background-color: transparent;
1330
+ }
1331
+ ._RichTextEditor-menu_1elol_116 {
1332
+ border-bottom: 1px solid var(--puck-color-grey-10);
1333
+ position: sticky;
1334
+ top: 0;
1335
+ z-index: 1;
1336
+ }
1337
+ ._RichTextEditor--disabled_1elol_106 ._RichTextEditor-menu_1elol_116 {
1338
+ border-bottom: 1px solid var(--puck-color-grey-09);
1339
+ }
1340
+
1085
1341
  /* css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data */
1086
1342
  ._ObjectField_1ua3y_5 {
1087
1343
  display: flex;
@@ -1324,7 +1580,7 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1324
1580
  outline-offset: 2px;
1325
1581
  }
1326
1582
  [data-puck-overlay-portal]:focus-within {
1327
- outline: 2px var(--puck-color-azure-07) solid;
1583
+ outline: 2px var(--puck-color-azure-07) dashed;
1328
1584
  outline-offset: 2px;
1329
1585
  }
1330
1586