@mantine/tiptap 7.14.3 → 7.15.0
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/cjs/RichTextEditor.cjs +5 -2
- package/cjs/RichTextEditor.cjs.map +1 -1
- package/cjs/RichTextEditor.context.cjs.map +1 -1
- package/cjs/RichTextEditor.module.css.cjs +1 -1
- package/cjs/RichTextEditorControl/RichTextEditorColorControl.cjs +2 -1
- package/cjs/RichTextEditorControl/RichTextEditorColorControl.cjs.map +1 -1
- package/cjs/RichTextEditorControl/RichTextEditorColorPickerControl.cjs +2 -1
- package/cjs/RichTextEditorControl/RichTextEditorColorPickerControl.cjs.map +1 -1
- package/cjs/RichTextEditorControl/RichTextEditorControl.cjs +7 -3
- package/cjs/RichTextEditorControl/RichTextEditorControl.cjs.map +1 -1
- package/cjs/RichTextEditorControl/RichTextEditorLinkControl.cjs +2 -1
- package/cjs/RichTextEditorControl/RichTextEditorLinkControl.cjs.map +1 -1
- package/cjs/RichTextEditorControlsGroup/RichTextEditorControlsGroup.cjs +2 -1
- package/cjs/RichTextEditorControlsGroup/RichTextEditorControlsGroup.cjs.map +1 -1
- package/cjs/RichTextEditorToolbar/RichTextEditorToolbar.cjs +13 -1
- package/cjs/RichTextEditorToolbar/RichTextEditorToolbar.cjs.map +1 -1
- package/esm/RichTextEditor.context.mjs.map +1 -1
- package/esm/RichTextEditor.mjs +5 -2
- package/esm/RichTextEditor.mjs.map +1 -1
- package/esm/RichTextEditor.module.css.mjs +1 -1
- package/esm/RichTextEditorControl/RichTextEditorColorControl.mjs +2 -1
- package/esm/RichTextEditorControl/RichTextEditorColorControl.mjs.map +1 -1
- package/esm/RichTextEditorControl/RichTextEditorColorPickerControl.mjs +2 -1
- package/esm/RichTextEditorControl/RichTextEditorColorPickerControl.mjs.map +1 -1
- package/esm/RichTextEditorControl/RichTextEditorControl.mjs +8 -4
- package/esm/RichTextEditorControl/RichTextEditorControl.mjs.map +1 -1
- package/esm/RichTextEditorControl/RichTextEditorLinkControl.mjs +2 -1
- package/esm/RichTextEditorControl/RichTextEditorLinkControl.mjs.map +1 -1
- package/esm/RichTextEditorControlsGroup/RichTextEditorControlsGroup.mjs +2 -1
- package/esm/RichTextEditorControlsGroup/RichTextEditorControlsGroup.mjs.map +1 -1
- package/esm/RichTextEditorToolbar/RichTextEditorToolbar.mjs +13 -1
- package/esm/RichTextEditorToolbar/RichTextEditorToolbar.mjs.map +1 -1
- package/lib/RichTextEditor.context.d.ts +1 -0
- package/lib/RichTextEditor.d.ts +4 -1
- package/package.json +6 -4
- package/styles.css +72 -25
- package/styles.layer.css +72 -25
package/styles.layer.css
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.m_d37966d9 li > p {
|
|
21
|
-
display: inline-block;
|
|
22
21
|
margin: 0;
|
|
22
|
+
display: inline-block;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.m_d37966d9 ul li,
|
|
@@ -153,26 +153,44 @@
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.m_c2207da6 {
|
|
156
|
-
min-width: calc(1.625rem * var(--mantine-scale));
|
|
157
|
-
height: calc(1.625rem * var(--mantine-scale));
|
|
158
156
|
display: flex;
|
|
159
157
|
justify-content: center;
|
|
160
158
|
align-items: center;
|
|
161
|
-
border: calc(0.0625rem * var(--mantine-scale)) solid;
|
|
162
159
|
border-radius: var(--mantine-radius-default);
|
|
163
160
|
cursor: default;
|
|
164
161
|
}
|
|
165
162
|
|
|
163
|
+
.m_c2207da6:where([data-variant='default']) {
|
|
164
|
+
border: calc(0.0625rem * var(--mantine-scale)) solid;
|
|
165
|
+
min-width: calc(1.625rem * var(--mantine-scale));
|
|
166
|
+
height: calc(1.625rem * var(--mantine-scale));
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.m_c2207da6:where([data-variant='subtle']) {
|
|
170
|
+
--control-icon-size: calc(1.25rem * var(--mantine-scale));
|
|
171
|
+
min-width: calc(2rem * var(--mantine-scale));
|
|
172
|
+
height: calc(2rem * var(--mantine-scale));
|
|
173
|
+
}
|
|
174
|
+
|
|
166
175
|
:where([data-mantine-color-scheme='light']) .m_c2207da6 {
|
|
167
176
|
background-color: var(--mantine-color-white);
|
|
168
177
|
border-color: var(--mantine-color-gray-4);
|
|
178
|
+
color: var(--mantine-color-gray-7);
|
|
169
179
|
}
|
|
170
180
|
|
|
171
181
|
:where([data-mantine-color-scheme='dark']) .m_c2207da6 {
|
|
172
|
-
background-color: var(--mantine-color-dark-6);
|
|
173
182
|
border-color: var(--mantine-color-dark-4);
|
|
183
|
+
color: var(--mantine-color-dark-1);
|
|
174
184
|
}
|
|
175
185
|
|
|
186
|
+
:where([data-mantine-color-scheme='dark']) .m_c2207da6:where([data-variant='default']) {
|
|
187
|
+
background-color: var(--mantine-color-dark-6);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
:where([data-mantine-color-scheme='dark']) .m_c2207da6:where([data-variant='subtle']) {
|
|
191
|
+
background-color: var(--mantine-color-dark-7);
|
|
192
|
+
}
|
|
193
|
+
|
|
176
194
|
.m_c2207da6:where([data-disabled]) {
|
|
177
195
|
cursor: not-allowed;
|
|
178
196
|
}
|
|
@@ -192,9 +210,17 @@
|
|
|
192
210
|
}
|
|
193
211
|
|
|
194
212
|
@media (hover: hover) {
|
|
195
|
-
|
|
196
|
-
|
|
213
|
+
|
|
214
|
+
.m_c2207da6:where([data-interactive]:not([data-disabled])):hover {
|
|
215
|
+
color: var(--mantine-color-bright);
|
|
197
216
|
}
|
|
217
|
+
:where([data-mantine-color-scheme='light']) .m_c2207da6:where([data-interactive]:not([data-disabled])):hover:where([data-variant='default']) {
|
|
218
|
+
background-color: var(--mantine-color-gray-0);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:where([data-mantine-color-scheme='light']) .m_c2207da6:where([data-interactive]:not([data-disabled])):hover:where([data-variant='subtle']) {
|
|
222
|
+
background-color: var(--mantine-color-gray-1);
|
|
223
|
+
}
|
|
198
224
|
|
|
199
225
|
:where([data-mantine-color-scheme='dark']) .m_c2207da6:where([data-interactive]:not([data-disabled])):hover {
|
|
200
226
|
background-color: var(--mantine-color-dark-5);
|
|
@@ -202,9 +228,17 @@
|
|
|
202
228
|
}
|
|
203
229
|
|
|
204
230
|
@media (hover: none) {
|
|
205
|
-
|
|
206
|
-
|
|
231
|
+
|
|
232
|
+
.m_c2207da6:where([data-interactive]:not([data-disabled])):active {
|
|
233
|
+
color: var(--mantine-color-bright);
|
|
207
234
|
}
|
|
235
|
+
:where([data-mantine-color-scheme='light']) .m_c2207da6:where([data-interactive]:not([data-disabled])):active:where([data-variant='default']) {
|
|
236
|
+
background-color: var(--mantine-color-gray-0);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
:where([data-mantine-color-scheme='light']) .m_c2207da6:where([data-interactive]:not([data-disabled])):active:where([data-variant='subtle']) {
|
|
240
|
+
background-color: var(--mantine-color-gray-1);
|
|
241
|
+
}
|
|
208
242
|
|
|
209
243
|
:where([data-mantine-color-scheme='dark']) .m_c2207da6:where([data-interactive]:not([data-disabled])):active {
|
|
210
244
|
background-color: var(--mantine-color-dark-5);
|
|
@@ -230,28 +264,33 @@
|
|
|
230
264
|
}
|
|
231
265
|
}
|
|
232
266
|
|
|
267
|
+
.m_9cdfeb3f {
|
|
268
|
+
width: var(--control-icon-size, 16px);
|
|
269
|
+
height: var(--control-icon-size, 16px);
|
|
270
|
+
}
|
|
271
|
+
|
|
233
272
|
.m_2ab47ef2 {
|
|
234
273
|
display: flex;
|
|
235
274
|
background-color: var(--mantine-color-body);
|
|
236
275
|
}
|
|
237
276
|
|
|
238
|
-
.m_2ab47ef2 :where([data-rich-text-editor-control]) {
|
|
239
|
-
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.m_2ab47ef2 :where([data-rich-text-editor-control]):where(:not(:last-of-type)) {
|
|
243
|
-
border-inline-end-width: 0;
|
|
277
|
+
.m_2ab47ef2:where([data-variant='default']) :where([data-rich-text-editor-control]) {
|
|
278
|
+
border-radius: 0;
|
|
244
279
|
}
|
|
245
280
|
|
|
246
|
-
.m_2ab47ef2 :where([data-rich-text-editor-control]):where(:last-of-type) {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}
|
|
281
|
+
.m_2ab47ef2:where([data-variant='default']) :where([data-rich-text-editor-control]):where(:not(:last-of-type)) {
|
|
282
|
+
border-inline-end-width: 0;
|
|
283
|
+
}
|
|
250
284
|
|
|
251
|
-
.m_2ab47ef2 :where([data-rich-text-editor-control]):where(:
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
285
|
+
.m_2ab47ef2:where([data-variant='default']) :where([data-rich-text-editor-control]):where(:last-of-type) {
|
|
286
|
+
border-start-end-radius: var(--mantine-radius-default);
|
|
287
|
+
border-end-end-radius: var(--mantine-radius-default);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.m_2ab47ef2:where([data-variant='default']) :where([data-rich-text-editor-control]):where(:first-of-type) {
|
|
291
|
+
border-start-start-radius: var(--mantine-radius-default);
|
|
292
|
+
border-end-start-radius: var(--mantine-radius-default);
|
|
293
|
+
}
|
|
255
294
|
|
|
256
295
|
.m_b67b711e {
|
|
257
296
|
display: flex;
|
|
@@ -313,15 +352,23 @@
|
|
|
313
352
|
align-items: center;
|
|
314
353
|
flex-wrap: wrap;
|
|
315
354
|
gap: var(--mantine-spacing-sm);
|
|
316
|
-
top: var(--rte-sticky-offset,
|
|
355
|
+
top: var(--rte-sticky-offset, 0px);
|
|
317
356
|
background-color: var(--mantine-color-body);
|
|
318
357
|
z-index: 1;
|
|
319
358
|
border-start-end-radius: var(--mantine-radius-default);
|
|
320
359
|
border-start-start-radius: var(--mantine-radius-default);
|
|
321
360
|
border-bottom: calc(0.0625rem * var(--mantine-scale)) solid;
|
|
322
|
-
padding: var(--mantine-spacing-xs) var(--mantine-spacing-md);
|
|
323
361
|
}
|
|
324
362
|
|
|
363
|
+
.m_4574a3c4:where([data-variant='default']) {
|
|
364
|
+
padding: var(--mantine-spacing-xs) var(--mantine-spacing-md);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.m_4574a3c4:where([data-variant='subtle']) {
|
|
368
|
+
padding: calc(0.25rem * var(--mantine-scale));
|
|
369
|
+
row-gap: 0;
|
|
370
|
+
}
|
|
371
|
+
|
|
325
372
|
:where([data-mantine-color-scheme='light']) .m_4574a3c4 {
|
|
326
373
|
border-color: var(--mantine-color-gray-4);
|
|
327
374
|
}
|