@react-email/editor 0.0.0-experimental.2 → 0.0.0-experimental.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4205 -0
- package/dist/index.d.cts +1164 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +958 -68
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3187 -490
- package/dist/index.mjs.map +1 -1
- package/dist/ui/bubble-menu/bubble-menu.css +146 -0
- package/dist/ui/button-bubble-menu/button-bubble-menu.css +29 -0
- package/dist/ui/image-bubble-menu/image-bubble-menu.css +29 -0
- package/dist/ui/link-bubble-menu/link-bubble-menu.css +66 -0
- package/dist/ui/slash-command/slash-command.css +44 -0
- package/dist/ui/themes/default.css +750 -0
- package/package.json +51 -17
- package/dist/index.d.ts +0 -274
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -1399
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/* Minimal functional styles for BubbleMenu compound components.
|
|
2
|
+
* This file handles layout and positioning only - no visual design.
|
|
3
|
+
* Import this optionally: import '@react-email/editor/styles/bubble-menu.css';
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
[data-re-bubble-menu] {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: 0.125rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[data-re-bubble-menu-group] {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: 0.125rem;
|
|
16
|
+
padding: 0 0.125rem;
|
|
17
|
+
border: none;
|
|
18
|
+
margin: 0;
|
|
19
|
+
min-width: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[data-re-bubble-menu-separator] {
|
|
23
|
+
align-self: stretch;
|
|
24
|
+
width: 1px;
|
|
25
|
+
margin: 0.25rem 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-re-bubble-menu-item] {
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
border: none;
|
|
34
|
+
background: none;
|
|
35
|
+
padding: 0.375rem;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[data-re-bubble-menu-item] svg {
|
|
39
|
+
width: 0.875rem;
|
|
40
|
+
height: 0.875rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-re-node-selector] {
|
|
44
|
+
position: relative;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-re-node-selector-trigger] {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: 0.25rem;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
border: none;
|
|
53
|
+
background: none;
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
font-size: 0.8125rem;
|
|
56
|
+
padding: 0.375rem 0.5rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-re-node-selector-trigger] svg {
|
|
60
|
+
width: 0.75rem;
|
|
61
|
+
height: 0.75rem;
|
|
62
|
+
opacity: 0.5;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[data-re-node-selector-content] {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
min-width: 10rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[data-re-node-selector-item] {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: 0.5rem;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
border: none;
|
|
77
|
+
background: none;
|
|
78
|
+
padding: 0.375rem 0.5rem;
|
|
79
|
+
font-size: 0.8125rem;
|
|
80
|
+
width: 100%;
|
|
81
|
+
text-align: left;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[data-re-node-selector-item] svg {
|
|
85
|
+
width: 0.875rem;
|
|
86
|
+
height: 0.875rem;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[data-re-link-selector] {
|
|
90
|
+
display: flex;
|
|
91
|
+
position: relative;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[data-re-link-selector-trigger] {
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
border: none;
|
|
100
|
+
background: none;
|
|
101
|
+
padding: 0.375rem;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
[data-re-link-selector-trigger] svg {
|
|
105
|
+
width: 0.875rem;
|
|
106
|
+
height: 0.875rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
[data-re-link-selector-form] {
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
gap: 0.25rem;
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: 100%;
|
|
115
|
+
left: 0;
|
|
116
|
+
margin-top: 0.25rem;
|
|
117
|
+
width: max-content;
|
|
118
|
+
min-width: 16rem;
|
|
119
|
+
padding: 0.25rem;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
[data-re-link-selector-input] {
|
|
123
|
+
flex: 1;
|
|
124
|
+
border: none;
|
|
125
|
+
outline: none;
|
|
126
|
+
font-size: 0.8125rem;
|
|
127
|
+
padding: 0.25rem;
|
|
128
|
+
background: transparent;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
[data-re-link-selector-apply],
|
|
132
|
+
[data-re-link-selector-unlink] {
|
|
133
|
+
display: inline-flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
border: none;
|
|
138
|
+
background: none;
|
|
139
|
+
padding: 0.25rem;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
[data-re-link-selector-apply] svg,
|
|
143
|
+
[data-re-link-selector-unlink] svg {
|
|
144
|
+
width: 0.875rem;
|
|
145
|
+
height: 0.875rem;
|
|
146
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* Minimal functional styles for ButtonBubbleMenu compound components.
|
|
2
|
+
* Layout and positioning only - no visual design.
|
|
3
|
+
* Import optionally: import '@react-email/editor/styles/button-bubble-menu.css';
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
[data-re-btn-bm] {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-re-btn-bm-toolbar] {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-re-btn-bm-item] {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
border: none;
|
|
22
|
+
background: none;
|
|
23
|
+
padding: 0.5rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[data-re-btn-bm-item] svg {
|
|
27
|
+
width: 1rem;
|
|
28
|
+
height: 1rem;
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* Minimal functional styles for ImageBubbleMenu compound components.
|
|
2
|
+
* Layout and positioning only - no visual design.
|
|
3
|
+
* Import optionally: import '@react-email/editor/styles/image-bubble-menu.css';
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
[data-re-img-bm] {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-re-img-bm-toolbar] {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-re-img-bm-item] {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
border: none;
|
|
22
|
+
background: none;
|
|
23
|
+
padding: 0.5rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[data-re-img-bm-item] svg {
|
|
27
|
+
width: 1rem;
|
|
28
|
+
height: 1rem;
|
|
29
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* Minimal functional styles for LinkBubbleMenu compound components.
|
|
2
|
+
* Layout and positioning only - no visual design.
|
|
3
|
+
* Import optionally: import '@react-email/editor/styles/link-bubble-menu.css';
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
[data-re-link-bm] {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-re-link-bm-toolbar] {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-re-link-bm-item] {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
border: none;
|
|
22
|
+
background: none;
|
|
23
|
+
padding: 0.5rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[data-re-link-bm-item] svg {
|
|
27
|
+
width: 1rem;
|
|
28
|
+
height: 1rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
a[data-re-link-bm-item] {
|
|
32
|
+
text-decoration: none;
|
|
33
|
+
color: inherit;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-re-link-bm-form] {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 0.25rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[data-re-link-bm-input] {
|
|
43
|
+
flex: 1;
|
|
44
|
+
border: none;
|
|
45
|
+
outline: none;
|
|
46
|
+
font-size: 0.875rem;
|
|
47
|
+
padding: 0.25rem;
|
|
48
|
+
background: transparent;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-re-link-bm-apply],
|
|
52
|
+
[data-re-link-bm-unlink] {
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
border: none;
|
|
58
|
+
background: none;
|
|
59
|
+
padding: 0.25rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-re-link-bm-apply] svg,
|
|
63
|
+
[data-re-link-bm-unlink] svg {
|
|
64
|
+
width: 1rem;
|
|
65
|
+
height: 1rem;
|
|
66
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* Minimal functional styles for SlashCommand components.
|
|
2
|
+
* Layout and positioning only - no visual design.
|
|
3
|
+
* Import optionally: import '@react-email/editor/styles/slash-command.css';
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
[data-re-slash-command] {
|
|
7
|
+
max-height: 330px;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
width: 256px;
|
|
10
|
+
padding: 0.25rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-re-slash-command-item] {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 0.5rem;
|
|
17
|
+
width: 100%;
|
|
18
|
+
padding: 0.375rem 0.5rem;
|
|
19
|
+
border: none;
|
|
20
|
+
border-radius: 0.375rem;
|
|
21
|
+
background: none;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
font-size: 0.875rem;
|
|
24
|
+
line-height: 1.25rem;
|
|
25
|
+
text-align: left;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-re-slash-command-item] svg {
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-re-slash-command-category] {
|
|
33
|
+
font-size: 0.6875rem;
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
text-transform: uppercase;
|
|
36
|
+
letter-spacing: 0.05em;
|
|
37
|
+
padding: 0.5rem 0.5rem 0.25rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-re-slash-command-empty] {
|
|
41
|
+
padding: 0.75rem 0.5rem;
|
|
42
|
+
font-size: 0.875rem;
|
|
43
|
+
text-align: center;
|
|
44
|
+
}
|