@lets-events/react 12.7.1 → 12.7.3

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 (90) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +21 -19
  3. package/CHANGELOG.md +12 -0
  4. package/dist/index.js +17 -3
  5. package/dist/index.mjs +17 -3
  6. package/package.json +1 -1
  7. package/src/components/Alert.tsx +303 -303
  8. package/src/components/Avatar.tsx +55 -55
  9. package/src/components/Badge.tsx +123 -125
  10. package/src/components/Box.tsx +3 -3
  11. package/src/components/Button/index.tsx +62 -62
  12. package/src/components/Button/styledComponents.ts +320 -320
  13. package/src/components/ButtonGroup.tsx +484 -484
  14. package/src/components/Calendar/index.tsx +148 -148
  15. package/src/components/Calendar/styledComponents.ts +273 -259
  16. package/src/components/Card.tsx +67 -67
  17. package/src/components/CheckboxGroup.tsx +176 -176
  18. package/src/components/Container.tsx +39 -39
  19. package/src/components/Divider.tsx +7 -7
  20. package/src/components/DoubleCalendar/index.tsx +170 -170
  21. package/src/components/Drawer/index.tsx +100 -100
  22. package/src/components/Drawer/styledComponents.ts +103 -103
  23. package/src/components/Dropdown.tsx +302 -302
  24. package/src/components/Filter.tsx +164 -164
  25. package/src/components/Flex.tsx +118 -118
  26. package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -111
  27. package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -33
  28. package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +39 -39
  29. package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
  30. package/src/components/FormFields/AddressFormFields/index.tsx +141 -141
  31. package/src/components/FormFields/BirthDateFormField.tsx +84 -84
  32. package/src/components/FormFields/CNPJFormField.tsx +87 -87
  33. package/src/components/FormFields/CPFFormField.tsx +78 -78
  34. package/src/components/FormFields/CalendarFormField.tsx +95 -95
  35. package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
  36. package/src/components/FormFields/DoubleCalendarFormField.tsx +93 -93
  37. package/src/components/FormFields/EmailFormField.tsx +27 -27
  38. package/src/components/FormFields/Form.tsx +39 -39
  39. package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +32 -32
  40. package/src/components/FormFields/MultiSelectFormField.tsx +64 -64
  41. package/src/components/FormFields/PhoneFormField.tsx +40 -40
  42. package/src/components/FormFields/RadioGroupFormField.tsx +86 -86
  43. package/src/components/FormFields/RichEditorFormField.tsx +103 -103
  44. package/src/components/FormFields/SelectFormField.tsx +93 -93
  45. package/src/components/FormFields/SwitchFormField.tsx +46 -46
  46. package/src/components/FormFields/TextAreaFormField.tsx +61 -61
  47. package/src/components/FormFields/TextFormField.tsx +112 -112
  48. package/src/components/FormFields/TimePickerFormField.tsx +88 -88
  49. package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
  50. package/src/components/FormFields/subComponents/FormLabel.tsx +36 -36
  51. package/src/components/FormFields/utils/validation.ts +23 -23
  52. package/src/components/Grid.tsx +137 -137
  53. package/src/components/Icon.tsx +47 -47
  54. package/src/components/MenuDropdown/index.tsx +38 -38
  55. package/src/components/MenuDropdown/styledComponents.ts +31 -31
  56. package/src/components/Modal.tsx +110 -110
  57. package/src/components/MultiSelect/index.tsx +268 -268
  58. package/src/components/MultiSelect/styledComponents.ts +160 -160
  59. package/src/components/RadioGroup.tsx +210 -210
  60. package/src/components/RichEditor/QuillComponent.tsx +468 -468
  61. package/src/components/RichEditor/RichEditor.tsx +49 -49
  62. package/src/components/RichEditor/RichTextPresenter.tsx +18 -18
  63. package/src/components/RichEditor/index.ts +3 -3
  64. package/src/components/RichEditor/styledComponents.ts +1170 -1170
  65. package/src/components/Section.tsx +33 -33
  66. package/src/components/Step.tsx +164 -164
  67. package/src/components/Switch.tsx +108 -108
  68. package/src/components/Text.tsx +38 -38
  69. package/src/components/TextField.tsx +372 -372
  70. package/src/components/TextareaField.tsx +116 -116
  71. package/src/components/TimePicker.tsx +328 -328
  72. package/src/components/Toast/components/ToastItem.tsx +41 -41
  73. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  74. package/src/components/Toast/hooks/useToast.ts +12 -12
  75. package/src/components/Toast/index.tsx +5 -5
  76. package/src/components/Toast/styles/index.ts +135 -135
  77. package/src/components/Toast/types/index.ts +46 -46
  78. package/src/components/Tooltip/index.tsx +73 -73
  79. package/src/components/Tooltip/styles.ts +77 -77
  80. package/src/hooks/useCountries.ts +41 -41
  81. package/src/hooks/useImageUpload.ts +139 -139
  82. package/src/hooks/useOnClickOutside.tsx +42 -42
  83. package/src/index.tsx +71 -71
  84. package/src/styles/index.ts +41 -41
  85. package/src/types/typographyValues.ts +178 -178
  86. package/src/utils/getNestedValue.ts +3 -3
  87. package/src/utils/states.ts +29 -29
  88. package/src/utils/uploadService.ts +180 -180
  89. package/tsconfig.json +3 -3
  90. package/tsup.config.ts +38 -38
@@ -1,1170 +1,1170 @@
1
- import { styled } from "../../styles";
2
-
3
- export const QuillContainer = styled("div", {
4
- display: "flex",
5
- flexDirection: "column",
6
- });
7
-
8
- export const QuillEditor = styled("div", {
9
- position: "relative",
10
-
11
- // Base container
12
- "& .ql-container": {
13
- boxSizing: "border-box",
14
- fontFamily: "Helvetica, Arial, sans-serif",
15
- fontSize: "13px",
16
- height: "100%",
17
- margin: 0,
18
- position: "relative",
19
- border: "1px solid $neutral300",
20
- borderTop: "none",
21
- borderBottomLeftRadius: "$sm",
22
- borderBottomRightRadius: "$sm",
23
- padding: "$12",
24
- },
25
-
26
- "& .ql-container.ql-disabled .ql-tooltip": {
27
- visibility: "hidden",
28
- },
29
-
30
- "& .ql-container:not(.ql-disabled) li[data-list=checked] > .ql-ui, & .ql-container:not(.ql-disabled) li[data-list=unchecked] > .ql-ui":
31
- {
32
- cursor: "pointer",
33
- },
34
-
35
- // Clipboard
36
- "& .ql-clipboard": {
37
- left: "-100000px",
38
- height: "1px",
39
- overflowY: "hidden",
40
- position: "absolute",
41
- top: "50%",
42
- },
43
-
44
- "& .ql-clipboard p": {
45
- margin: 0,
46
- padding: 0,
47
- },
48
-
49
- // Editor
50
- "& .ql-editor": {
51
- boxSizing: "border-box",
52
- counterReset:
53
- "list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9",
54
- lineHeight: "1.42",
55
- height: "100%",
56
- outline: "none",
57
- overflowY: "auto",
58
- tabSize: 4,
59
- MozTabSize: 4,
60
- textAlign: "left",
61
- whiteSpace: "pre-wrap",
62
- wordWrap: "break-word",
63
- minHeight: "200px",
64
- fontSize: "$14",
65
- fontFamily: "$default",
66
- color: "$neutral900",
67
- backgroundColor: "$white",
68
- border: "none",
69
- cursor: "text",
70
- caretColor: "$primary500",
71
-
72
- "& > *": {
73
- cursor: "text",
74
- },
75
-
76
- "&:focus": {
77
- borderColor: "$primary500",
78
- boxShadow: "0 0 0 1px $primary500",
79
- },
80
-
81
- "& p, & ol, & pre, & blockquote, & h1, & h2, & h3, & h4, & h5, & h6": {
82
- margin: 0,
83
- padding: 0,
84
- },
85
-
86
- "& p": {
87
- margin: "0 0 $8 0",
88
- },
89
-
90
- "& p:last-child": {
91
- marginBottom: 0,
92
- },
93
-
94
- "& h1": {
95
- fontSize: "2em",
96
- lineHeight: "2em!important",
97
- },
98
-
99
- "& h2": {
100
- fontSize: "1.5em",
101
- },
102
-
103
- "& h3": {
104
- fontSize: "1.17em",
105
- },
106
-
107
- "& h4": {
108
- fontSize: "1em",
109
- },
110
-
111
- "& h5": {
112
- fontSize: "0.83em",
113
- },
114
-
115
- "& h6": {
116
- fontSize: "0.67em",
117
- },
118
-
119
- "& h1 span, & h1, & h2, & h2 span": {
120
- lineHeight: "1.5rem",
121
- },
122
-
123
- "& table": {
124
- borderCollapse: "collapse",
125
- tableLayout: "fixed",
126
- width: "100%",
127
- },
128
-
129
- "& td": {
130
- border: "1px solid #000",
131
- padding: "2px 5px",
132
- outline: "none",
133
- },
134
-
135
- "& ol": {
136
- paddingLeft: "1.5em",
137
- },
138
-
139
- "& li": {
140
- listStyleType: "none",
141
- paddingLeft: "1.5em",
142
- position: "relative",
143
- },
144
-
145
- "& li > .ql-ui:before": {
146
- display: "inline-block",
147
- marginLeft: "-1.5em",
148
- marginRight: "0.3em",
149
- textAlign: "right",
150
- whiteSpace: "nowrap",
151
- width: "1.2em",
152
- },
153
-
154
- "& li[data-list=checked] > .ql-ui, & li[data-list=unchecked] > .ql-ui": {
155
- color: "#777",
156
- },
157
-
158
- "& li[data-list=bullet] > .ql-ui:before": {
159
- content: "'\\2022'",
160
- },
161
-
162
- "& li[data-list=checked] > .ql-ui:before": {
163
- content: "'\\2611'",
164
- },
165
-
166
- "& li[data-list=unchecked] > .ql-ui:before": {
167
- content: "'\\2610'",
168
- },
169
-
170
- "& li[data-list=ordered]": {
171
- counterIncrement: "list-0",
172
- },
173
-
174
- "& li[data-list=ordered] > .ql-ui:before": {
175
- content: "counter(list-0, decimal) '. '",
176
- },
177
-
178
- "& li[data-list=ordered].ql-indent-1": {
179
- counterIncrement: "list-1",
180
- },
181
-
182
- "& li[data-list=ordered].ql-indent-1 > .ql-ui:before": {
183
- content: "counter(list-1, lower-alpha) '. '",
184
- },
185
-
186
- "& li[data-list=ordered].ql-indent-2": {
187
- counterIncrement: "list-2",
188
- },
189
-
190
- "& li[data-list=ordered].ql-indent-2 > .ql-ui:before": {
191
- content: "counter(list-2, lower-roman) '. '",
192
- },
193
-
194
- "& li[data-list=ordered].ql-indent-3": {
195
- counterIncrement: "list-3",
196
- },
197
-
198
- "& li[data-list=ordered].ql-indent-3 > .ql-ui:before": {
199
- content: "counter(list-3, decimal) '. '",
200
- },
201
-
202
- "& li[data-list=ordered].ql-indent-4": {
203
- counterIncrement: "list-4",
204
- },
205
-
206
- "& li[data-list=ordered].ql-indent-4 > .ql-ui:before": {
207
- content: "counter(list-4, lower-alpha) '. '",
208
- },
209
-
210
- "& li[data-list=ordered].ql-indent-5": {
211
- counterIncrement: "list-5",
212
- },
213
-
214
- "& li[data-list=ordered].ql-indent-5 > .ql-ui:before": {
215
- content: "counter(list-5, lower-roman) '. '",
216
- },
217
-
218
- "& li[data-list=ordered].ql-indent-6": {
219
- counterIncrement: "list-6",
220
- },
221
-
222
- "& li[data-list=ordered].ql-indent-6 > .ql-ui:before": {
223
- content: "counter(list-6, decimal) '. '",
224
- },
225
-
226
- "& li[data-list=ordered].ql-indent-7": {
227
- counterIncrement: "list-7",
228
- },
229
-
230
- "& li[data-list=ordered].ql-indent-7 > .ql-ui:before": {
231
- content: "counter(list-7, lower-alpha) '. '",
232
- },
233
-
234
- "& li[data-list=ordered].ql-indent-8": {
235
- counterIncrement: "list-8",
236
- },
237
-
238
- "& li[data-list=ordered].ql-indent-8 > .ql-ui:before": {
239
- content: "counter(list-8, lower-roman) '. '",
240
- },
241
-
242
- "& li[data-list=ordered].ql-indent-9": {
243
- counterIncrement: "list-9",
244
- },
245
-
246
- "& li[data-list=ordered].ql-indent-9 > .ql-ui:before": {
247
- content: "counter(list-9, decimal) '. '",
248
- },
249
-
250
- // Indents
251
- "& .ql-indent-1:not(.ql-direction-rtl)": {
252
- paddingLeft: "3em",
253
- },
254
-
255
- "& li.ql-indent-1:not(.ql-direction-rtl)": {
256
- paddingLeft: "4.5em",
257
- },
258
-
259
- "& .ql-indent-1.ql-direction-rtl.ql-align-right": {
260
- paddingRight: "3em",
261
- },
262
-
263
- "& li.ql-indent-1.ql-direction-rtl.ql-align-right": {
264
- paddingRight: "4.5em",
265
- },
266
-
267
- "& .ql-indent-2:not(.ql-direction-rtl)": {
268
- paddingLeft: "6em",
269
- },
270
-
271
- "& li.ql-indent-2:not(.ql-direction-rtl)": {
272
- paddingLeft: "7.5em",
273
- },
274
-
275
- "& .ql-indent-2.ql-direction-rtl.ql-align-right": {
276
- paddingRight: "6em",
277
- },
278
-
279
- "& li.ql-indent-2.ql-direction-rtl.ql-align-right": {
280
- paddingRight: "7.5em",
281
- },
282
-
283
- "& .ql-indent-3:not(.ql-direction-rtl)": {
284
- paddingLeft: "9em",
285
- },
286
-
287
- "& li.ql-indent-3:not(.ql-direction-rtl)": {
288
- paddingLeft: "10.5em",
289
- },
290
-
291
- "& .ql-indent-3.ql-direction-rtl.ql-align-right": {
292
- paddingRight: "9em",
293
- },
294
-
295
- "& li.ql-indent-3.ql-direction-rtl.ql-align-right": {
296
- paddingRight: "10.5em",
297
- },
298
-
299
- "& .ql-indent-4:not(.ql-direction-rtl)": {
300
- paddingLeft: "12em",
301
- },
302
-
303
- "& li.ql-indent-4:not(.ql-direction-rtl)": {
304
- paddingLeft: "13.5em",
305
- },
306
-
307
- "& .ql-indent-4.ql-direction-rtl.ql-align-right": {
308
- paddingRight: "12em",
309
- },
310
-
311
- "& li.ql-indent-4.ql-direction-rtl.ql-align-right": {
312
- paddingRight: "13.5em",
313
- },
314
-
315
- "& .ql-indent-5:not(.ql-direction-rtl)": {
316
- paddingLeft: "15em",
317
- },
318
-
319
- "& li.ql-indent-5:not(.ql-direction-rtl)": {
320
- paddingLeft: "16.5em",
321
- },
322
-
323
- "& .ql-indent-5.ql-direction-rtl.ql-align-right": {
324
- paddingRight: "15em",
325
- },
326
-
327
- "& li.ql-indent-5.ql-direction-rtl.ql-align-right": {
328
- paddingRight: "16.5em",
329
- },
330
-
331
- "& .ql-indent-6:not(.ql-direction-rtl)": {
332
- paddingLeft: "18em",
333
- },
334
-
335
- "& li.ql-indent-6:not(.ql-direction-rtl)": {
336
- paddingLeft: "19.5em",
337
- },
338
-
339
- "& .ql-indent-6.ql-direction-rtl.ql-align-right": {
340
- paddingRight: "18em",
341
- },
342
-
343
- "& li.ql-indent-6.ql-direction-rtl.ql-align-right": {
344
- paddingRight: "19.5em",
345
- },
346
-
347
- "& .ql-indent-7:not(.ql-direction-rtl)": {
348
- paddingLeft: "21em",
349
- },
350
-
351
- "& li.ql-indent-7:not(.ql-direction-rtl)": {
352
- paddingLeft: "22.5em",
353
- },
354
-
355
- "& .ql-indent-7.ql-direction-rtl.ql-align-right": {
356
- paddingRight: "21em",
357
- },
358
-
359
- "& li.ql-indent-7.ql-direction-rtl.ql-align-right": {
360
- paddingRight: "22.5em",
361
- },
362
-
363
- "& .ql-indent-8:not(.ql-direction-rtl)": {
364
- paddingLeft: "24em",
365
- },
366
-
367
- "& li.ql-indent-8:not(.ql-direction-rtl)": {
368
- paddingLeft: "25.5em",
369
- },
370
-
371
- "& .ql-indent-8.ql-direction-rtl.ql-align-right": {
372
- paddingRight: "24em",
373
- },
374
-
375
- "& li.ql-indent-8.ql-direction-rtl.ql-align-right": {
376
- paddingRight: "25.5em",
377
- },
378
-
379
- "& .ql-indent-9:not(.ql-direction-rtl)": {
380
- paddingLeft: "27em",
381
- },
382
-
383
- "& li.ql-indent-9:not(.ql-direction-rtl)": {
384
- paddingLeft: "28.5em",
385
- },
386
-
387
- "& .ql-indent-9.ql-direction-rtl.ql-align-right": {
388
- paddingRight: "27em",
389
- },
390
-
391
- "& li.ql-indent-9.ql-direction-rtl.ql-align-right": {
392
- paddingRight: "28.5em",
393
- },
394
-
395
- "& li.ql-direction-rtl": {
396
- paddingRight: "1.5em",
397
- },
398
-
399
- "& li.ql-direction-rtl > .ql-ui:before": {
400
- marginLeft: "0.3em",
401
- marginRight: "-1.5em",
402
- textAlign: "left",
403
- },
404
-
405
- // Code blocks
406
- "& .ql-code-block-container": {
407
- fontFamily: "monospace",
408
- backgroundColor: "#23241f",
409
- color: "#f8f8f2",
410
- overflow: "visible",
411
- marginBottom: "5px",
412
- marginTop: "5px",
413
- padding: "5px 10px",
414
- },
415
-
416
- // Video
417
- "& .ql-video": {
418
- display: "block",
419
- maxWidth: "100%",
420
- },
421
-
422
- "& .ql-video.ql-align-center": {
423
- margin: "0 auto",
424
- },
425
-
426
- "& .ql-video.ql-align-right": {
427
- margin: "0 0 0 auto",
428
- },
429
-
430
- // Colors
431
- "& .ql-bg-black": {
432
- backgroundColor: "#000",
433
- },
434
-
435
- "& .ql-bg-red": {
436
- backgroundColor: "#e60000",
437
- },
438
-
439
- "& .ql-bg-orange": {
440
- backgroundColor: "#f90",
441
- },
442
-
443
- "& .ql-bg-yellow": {
444
- backgroundColor: "#ff0",
445
- },
446
-
447
- "& .ql-bg-green": {
448
- backgroundColor: "#008a00",
449
- },
450
-
451
- "& .ql-bg-blue": {
452
- backgroundColor: "#06c",
453
- },
454
-
455
- "& .ql-bg-purple": {
456
- backgroundColor: "#93f",
457
- },
458
-
459
- "& .ql-color-white": {
460
- color: "#fff",
461
- },
462
-
463
- "& .ql-color-red": {
464
- color: "#e60000",
465
- },
466
-
467
- "& .ql-color-orange": {
468
- color: "#f90",
469
- },
470
-
471
- "& .ql-color-yellow": {
472
- color: "#ff0",
473
- },
474
-
475
- "& .ql-color-green": {
476
- color: "#008a00",
477
- },
478
-
479
- "& .ql-color-blue": {
480
- color: "#06c",
481
- },
482
-
483
- "& .ql-color-purple": {
484
- color: "#93f",
485
- },
486
-
487
- // Fonts
488
- "& .ql-font-serif": {
489
- fontFamily: "Georgia, Times New Roman, serif",
490
- },
491
-
492
- "& .ql-font-monospace": {
493
- fontFamily: "Monaco, Courier New, monospace",
494
- },
495
-
496
- // Sizes
497
- "& .ql-size-small": {
498
- fontSize: "0.75em",
499
- },
500
-
501
- "& .ql-size-large": {
502
- fontSize: "1.5em",
503
- },
504
-
505
- "& .ql-size-huge": {
506
- fontSize: "2.5em",
507
- },
508
-
509
- // Direction
510
- "& .ql-direction-rtl": {
511
- direction: "rtl",
512
- textAlign: "inherit",
513
- },
514
-
515
- // Alignment
516
- "& .ql-align-center": {
517
- textAlign: "center",
518
- },
519
-
520
- "& .ql-align-justify": {
521
- textAlign: "justify",
522
- },
523
-
524
- "& .ql-align-right": {
525
- textAlign: "right",
526
- },
527
-
528
- // UI
529
- "& .ql-ui": {
530
- position: "absolute",
531
- },
532
-
533
- // Formats
534
- "& strong": {
535
- fontWeight: "bold",
536
- },
537
-
538
- "& em": {
539
- fontStyle: "italic",
540
- },
541
-
542
- "& u": {
543
- textDecoration: "underline",
544
- },
545
-
546
- "& s": {
547
- textDecoration: "line-through",
548
- },
549
-
550
- "& a": {
551
- textDecoration: "underline",
552
- color: "#06c",
553
- },
554
-
555
- "& blockquote": {
556
- borderLeft: "4px solid #ccc",
557
- marginBottom: "5px",
558
- marginTop: "5px",
559
- paddingLeft: "16px",
560
- },
561
-
562
- "& code": {
563
- backgroundColor: "#f0f0f0",
564
- borderRadius: "3px",
565
- fontSize: "85%",
566
- padding: "2px 4px",
567
- },
568
-
569
- "& pre": {
570
- backgroundColor: "#f0f0f0",
571
- borderRadius: "3px",
572
- padding: "5px 10px",
573
- whiteSpace: "pre-wrap",
574
- },
575
-
576
- "& img": {
577
- maxWidth: "100%",
578
- },
579
-
580
- "& .ql-cursor": {
581
- borderLeft: "2px solid $primary500",
582
- },
583
- },
584
-
585
- "&.ql-blank::before": {
586
- color: "rgba(0, 0, 0, 0.6)",
587
- content: "attr(data-placeholder)",
588
- fontStyle: "italic",
589
- left: "15px",
590
- pointerEvents: "none",
591
- position: "absolute",
592
- right: "15px",
593
- },
594
-
595
- // Toolbar
596
- "& .ql-toolbar, &.ql-toolbar": {
597
- backgroundColor: "$grey100",
598
- border: "1px solid $neutral300",
599
- borderBottom: "none",
600
- borderTopLeftRadius: "$sm",
601
- borderTopRightRadius: "$sm",
602
- padding: "$8 $12",
603
- boxSizing: "border-box",
604
- fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif",
605
-
606
- "&::after": {
607
- clear: "both",
608
- content: "''",
609
- display: "table",
610
- },
611
-
612
- "& button": {
613
- background: "none",
614
- border: "none",
615
- cursor: "pointer",
616
- display: "inline-block",
617
- float: "left",
618
- height: "24px",
619
- padding: "3px 5px",
620
- width: "28px",
621
-
622
- "& svg": {
623
- float: "left",
624
- height: "100%",
625
- },
626
-
627
- "&:active:hover": {
628
- outline: "none",
629
- },
630
-
631
- "&:hover, &:focus, &.ql-active": {
632
- color: "#06c",
633
-
634
- "& .ql-fill, & .ql-stroke.ql-fill": {
635
- fill: "#06c",
636
- },
637
-
638
- "& .ql-stroke, & .ql-stroke-miter": {
639
- stroke: "#06c",
640
- },
641
- },
642
- },
643
-
644
- "& input.ql-image[type=file]": {
645
- display: "none",
646
- },
647
-
648
- "& .ql-formats": {
649
- display: "inline-block",
650
- verticalAlign: "middle",
651
- marginRight: "15px",
652
-
653
- "&::after": {
654
- clear: "both",
655
- content: "''",
656
- display: "table",
657
- },
658
- },
659
-
660
- "& .ql-picker-label": {
661
- border: "1px solid transparent",
662
-
663
- "&:hover, &.ql-active": {
664
- color: "#06c",
665
-
666
- "& .ql-fill": {
667
- fill: "#06c",
668
- },
669
-
670
- "& .ql-stroke": {
671
- stroke: "#06c",
672
- },
673
- },
674
- },
675
-
676
- "& .ql-picker-options": {
677
- border: "1px solid transparent",
678
- boxShadow: "rgba(0, 0, 0, 0.2) 0 2px 8px",
679
- },
680
-
681
- "& .ql-picker.ql-expanded .ql-picker-label": {
682
- borderColor: "#ccc",
683
-
684
- "& .ql-fill": {
685
- fill: "#ccc",
686
- },
687
-
688
- "& .ql-stroke": {
689
- stroke: "#ccc",
690
- },
691
- },
692
-
693
- "& .ql-picker.ql-expanded .ql-picker-options": {
694
- borderColor: "#ccc",
695
- },
696
-
697
- "& .ql-picker-item": {
698
- "&:hover, &.ql-selected": {
699
- color: "#06c",
700
-
701
- "& .ql-fill, & .ql-stroke.ql-fill": {
702
- fill: "#06c",
703
- },
704
-
705
- "& .ql-stroke, & .ql-stroke-miter": {
706
- stroke: "#06c",
707
- },
708
- },
709
- },
710
-
711
- "& .ql-color-picker .ql-picker-item.ql-selected, & .ql-color-picker .ql-picker-item:hover":
712
- {
713
- borderColor: "#000",
714
- },
715
- },
716
-
717
- "@media (pointer: coarse)": {
718
- "& .ql-toolbar button:hover:not(.ql-active)": {
719
- color: "#444",
720
-
721
- "& .ql-fill, & .ql-stroke.ql-fill": {
722
- fill: "#444",
723
- },
724
-
725
- "& .ql-stroke, & .ql-stroke-miter": {
726
- stroke: "#444",
727
- },
728
- },
729
- },
730
-
731
- // Snow theme
732
- "&, & *": {
733
- boxSizing: "border-box",
734
- },
735
-
736
- "& .ql-hidden": {
737
- display: "none",
738
- },
739
-
740
- "& .ql-out-bottom, & .ql-out-top": {
741
- visibility: "hidden",
742
- },
743
-
744
- "& .ql-tooltip": {
745
- position: "absolute",
746
- transform: "translateY(10px)",
747
- backgroundColor: "#fff",
748
- border: "1px solid #ccc",
749
- boxShadow: "0 0 5px #ddd",
750
- color: "#444",
751
- padding: "5px 12px",
752
- whiteSpace: "nowrap",
753
-
754
- "& a": {
755
- cursor: "pointer",
756
- textDecoration: "none",
757
- lineHeight: "26px",
758
- color: "#06c",
759
- },
760
-
761
- "&.ql-flip": {
762
- transform: "translateY(-10px)",
763
- },
764
-
765
- "&::before": {
766
- content: "'Visit URL:'",
767
- lineHeight: "26px",
768
- marginRight: "8px",
769
- },
770
-
771
- "& input[type=text]": {
772
- display: "none",
773
- border: "1px solid #ccc",
774
- fontSize: "13px",
775
- height: "26px",
776
- margin: 0,
777
- padding: "3px 5px",
778
- width: "170px",
779
- },
780
-
781
- "& a.ql-preview": {
782
- display: "inline-block",
783
- maxWidth: "200px",
784
- overflowX: "hidden",
785
- textOverflow: "ellipsis",
786
- verticalAlign: "top",
787
- },
788
-
789
- "& a.ql-action::after": {
790
- borderRight: "1px solid #ccc",
791
- content: "'Edit'",
792
- marginLeft: "16px",
793
- paddingRight: "8px",
794
- },
795
-
796
- "& a.ql-remove::before": {
797
- content: "'Remove'",
798
- marginLeft: "8px",
799
- },
800
-
801
- "&.ql-editing a.ql-preview, &.ql-editing a.ql-remove": {
802
- display: "none",
803
- },
804
-
805
- "&.ql-editing input[type=text]": {
806
- display: "inline-block",
807
- },
808
-
809
- "&.ql-editing a.ql-action::after": {
810
- borderRight: 0,
811
- content: "'Save'",
812
- paddingRight: 0,
813
- },
814
-
815
- "&[data-mode=link]::before": {
816
- content: "'Enter link:'",
817
- },
818
-
819
- "&[data-mode=formula]::before": {
820
- content: "'Enter formula:'",
821
- },
822
-
823
- "&[data-mode=video]::before": {
824
- content: "'Enter video:'",
825
- },
826
- },
827
-
828
- // Stroke and fill
829
- "& .ql-stroke": {
830
- fill: "none",
831
- stroke: "#444",
832
- strokeLinecap: "round",
833
- strokeLinejoin: "round",
834
- strokeWidth: "2",
835
- },
836
-
837
- "& .ql-stroke-miter": {
838
- fill: "none",
839
- stroke: "#444",
840
- strokeMiterlimit: "10",
841
- strokeWidth: "2",
842
- },
843
-
844
- "& .ql-fill, & .ql-stroke.ql-fill": {
845
- fill: "#444",
846
- },
847
-
848
- "& .ql-empty": {
849
- fill: "none",
850
- },
851
-
852
- "& .ql-even": {
853
- fillRule: "evenodd",
854
- },
855
-
856
- "& .ql-thin, & .ql-stroke.ql-thin": {
857
- strokeWidth: "1",
858
- },
859
-
860
- "& .ql-transparent": {
861
- opacity: 0.4,
862
- },
863
-
864
- // Direction
865
- "& .ql-direction svg:last-child": {
866
- display: "none",
867
- },
868
-
869
- "& .ql-direction.ql-active svg:last-child": {
870
- display: "inline",
871
- },
872
-
873
- "& .ql-direction.ql-active svg:first-child": {
874
- display: "none",
875
- },
876
-
877
- // Picker
878
- "& .ql-picker": {
879
- color: "#444",
880
- display: "inline-block",
881
- float: "left",
882
- fontSize: "14px",
883
- fontWeight: "500",
884
- height: "24px",
885
- position: "relative",
886
- verticalAlign: "middle",
887
- },
888
-
889
- "& .ql-picker-label": {
890
- cursor: "pointer",
891
- display: "inline-block",
892
- height: "100%",
893
- paddingLeft: "8px",
894
- paddingRight: "2px",
895
- position: "relative",
896
- width: "100%",
897
-
898
- "&::before": {
899
- display: "inline-block",
900
- lineHeight: "22px",
901
- },
902
- },
903
-
904
- "& .ql-picker-options": {
905
- backgroundColor: "#fff",
906
- display: "none",
907
- minWidth: "100%",
908
- padding: "4px 8px",
909
- position: "absolute",
910
- whiteSpace: "nowrap",
911
-
912
- "& .ql-picker-item": {
913
- cursor: "pointer",
914
- display: "block",
915
- paddingBottom: "5px",
916
- paddingTop: "5px",
917
- },
918
- },
919
-
920
- "& .ql-picker.ql-expanded": {
921
- "& .ql-picker-label": {
922
- color: "#ccc",
923
- zIndex: 2,
924
- },
925
-
926
- "& .ql-picker-options": {
927
- display: "block",
928
- marginTop: "-1px",
929
- top: "100%",
930
- zIndex: 1,
931
- },
932
- },
933
-
934
- "& .ql-color-picker, & .ql-icon-picker": {
935
- width: "28px",
936
-
937
- "& .ql-picker-label": {
938
- padding: "2px 4px",
939
-
940
- "& svg": {
941
- right: "4px",
942
- },
943
- },
944
- },
945
-
946
- "& .ql-icon-picker .ql-picker-options": {
947
- padding: "4px 0",
948
- },
949
-
950
- "& .ql-icon-picker .ql-picker-item": {
951
- height: "24px",
952
- width: "24px",
953
- padding: "2px 4px",
954
- },
955
-
956
- "& .ql-color-picker .ql-picker-options": {
957
- padding: "3px 5px",
958
- width: "152px",
959
- },
960
-
961
- "& .ql-color-picker .ql-picker-item": {
962
- border: "1px solid transparent",
963
- float: "left",
964
- height: "16px",
965
- margin: "2px",
966
- padding: 0,
967
- width: "16px",
968
- },
969
-
970
- "& .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg": {
971
- position: "absolute",
972
- marginTop: "-9px",
973
- right: 0,
974
- top: "50%",
975
- width: "18px",
976
- },
977
-
978
- "& .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before, & .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before, & .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before":
979
- {
980
- content: "attr(data-label)",
981
- },
982
-
983
- // Header picker
984
- "& .ql-picker.ql-header": {
985
- width: "98px",
986
-
987
- "& .ql-picker-label::before, & .ql-picker-item::before": {
988
- content: "'Normal'",
989
- },
990
-
991
- "& .ql-picker-label[data-value='1']::before, & .ql-picker-item[data-value='1']::before":
992
- {
993
- content: "'Título 1'",
994
- },
995
-
996
- "& .ql-picker-label[data-value='2']::before, & .ql-picker-item[data-value='2']::before":
997
- {
998
- content: "'Título 2'",
999
- },
1000
-
1001
- "& .ql-picker-label[data-value='3']::before, & .ql-picker-item[data-value='3']::before":
1002
- {
1003
- content: "'Heading 3'",
1004
- },
1005
-
1006
- "& .ql-picker-label[data-value='4']::before, & .ql-picker-item[data-value='4']::before":
1007
- {
1008
- content: "'Heading 4'",
1009
- },
1010
-
1011
- "& .ql-picker-label[data-value='5']::before, & .ql-picker-item[data-value='5']::before":
1012
- {
1013
- content: "'Heading 5'",
1014
- },
1015
-
1016
- "& .ql-picker-label[data-value='6']::before, & .ql-picker-item[data-value='6']::before":
1017
- {
1018
- content: "'Heading 6'",
1019
- },
1020
-
1021
- "& .ql-picker-item[data-value='1']::before": {
1022
- fontSize: "2em",
1023
- },
1024
-
1025
- "& .ql-picker-item[data-value='2']::before": {
1026
- fontSize: "1.5em",
1027
- },
1028
-
1029
- "& .ql-picker-item[data-value='3']::before": {
1030
- fontSize: "1.17em",
1031
- },
1032
-
1033
- "& .ql-picker-item[data-value='4']::before": {
1034
- fontSize: "1em",
1035
- },
1036
-
1037
- "& .ql-picker-item[data-value='5']::before": {
1038
- fontSize: "0.83em",
1039
- },
1040
-
1041
- "& .ql-picker-item[data-value='6']::before": {
1042
- fontSize: "0.67em",
1043
- },
1044
- },
1045
-
1046
- // Font picker
1047
- "& .ql-picker.ql-font": {
1048
- width: "108px",
1049
-
1050
- "& .ql-picker-label::before, & .ql-picker-item::before": {
1051
- content: "'Sans Serif'",
1052
- },
1053
-
1054
- "& .ql-picker-label[data-value=serif]::before, & .ql-picker-item[data-value=serif]::before":
1055
- {
1056
- content: "'Serif'",
1057
- },
1058
-
1059
- "& .ql-picker-label[data-value=monospace]::before, & .ql-picker-item[data-value=monospace]::before":
1060
- {
1061
- content: "'Monospace'",
1062
- },
1063
-
1064
- "& .ql-picker-item[data-value=serif]::before": {
1065
- fontFamily: "Georgia, Times New Roman, serif",
1066
- },
1067
-
1068
- "& .ql-picker-item[data-value=monospace]::before": {
1069
- fontFamily: "Monaco, Courier New, monospace",
1070
- },
1071
- },
1072
-
1073
- // Size picker
1074
- "& .ql-picker.ql-size": {
1075
- width: "98px",
1076
-
1077
- "& .ql-picker-label::before, & .ql-picker-item::before": {
1078
- content: "'Normal'",
1079
- },
1080
-
1081
- "& .ql-picker-label[data-value=small]::before, & .ql-picker-item[data-value=small]::before":
1082
- {
1083
- content: "'Small'",
1084
- },
1085
-
1086
- "& .ql-picker-label[data-value=large]::before, & .ql-picker-item[data-value=large]::before":
1087
- {
1088
- content: "'Large'",
1089
- },
1090
-
1091
- "& .ql-picker-label[data-value=huge]::before, & .ql-picker-item[data-value=huge]::before":
1092
- {
1093
- content: "'Huge'",
1094
- },
1095
-
1096
- "& .ql-picker-item[data-value=small]::before": {
1097
- fontSize: "10px",
1098
- },
1099
-
1100
- "& .ql-picker-item[data-value=large]::before": {
1101
- fontSize: "18px",
1102
- },
1103
-
1104
- "& .ql-picker-item[data-value=huge]::before": {
1105
- fontSize: "32px",
1106
- },
1107
- },
1108
-
1109
- // Color picker items
1110
- "& .ql-color-picker.ql-background .ql-picker-item": {
1111
- backgroundColor: "#fff",
1112
- },
1113
-
1114
- "& .ql-color-picker.ql-color .ql-picker-item": {
1115
- backgroundColor: "#000",
1116
- },
1117
-
1118
- // Code block container
1119
- "& .ql-code-block-container": {
1120
- position: "relative",
1121
-
1122
- "& .ql-ui": {
1123
- right: "5px",
1124
- top: "5px",
1125
- },
1126
- },
1127
-
1128
- // Toolbar snow adjustments
1129
- "&.ql-toolbar, & .ql-toolbar.ql-snow": {
1130
- border: "1px solid #ccc",
1131
- boxSizing: "border-box",
1132
- fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif",
1133
- padding: "8px",
1134
-
1135
- "& .ql-formats": {
1136
- marginRight: "15px",
1137
- },
1138
-
1139
- "& .ql-picker-label": {
1140
- border: "1px solid transparent",
1141
- },
1142
-
1143
- "& .ql-picker-options": {
1144
- border: "1px solid transparent",
1145
- boxShadow: "rgba(0, 0, 0, 0.2) 0 2px 8px",
1146
- },
1147
-
1148
- "& .ql-picker.ql-expanded .ql-picker-label": {
1149
- borderColor: "#ccc",
1150
- },
1151
-
1152
- "& .ql-picker.ql-expanded .ql-picker-options": {
1153
- borderColor: "#ccc",
1154
- },
1155
-
1156
- "& .ql-color-picker .ql-picker-item.ql-selected, & .ql-color-picker .ql-picker-item:hover":
1157
- {
1158
- borderColor: "#000",
1159
- },
1160
- },
1161
-
1162
- "& .ql-toolbar.ql-snow + .ql-container.ql-snow": {
1163
- borderTop: 0,
1164
- },
1165
-
1166
- // Container snow
1167
- "& .ql-container.ql-snow": {
1168
- border: "1px solid #ccc",
1169
- },
1170
- });
1
+ import { styled } from "../../styles";
2
+
3
+ export const QuillContainer = styled("div", {
4
+ display: "flex",
5
+ flexDirection: "column",
6
+ });
7
+
8
+ export const QuillEditor = styled("div", {
9
+ position: "relative",
10
+
11
+ // Base container
12
+ "& .ql-container": {
13
+ boxSizing: "border-box",
14
+ fontFamily: "Helvetica, Arial, sans-serif",
15
+ fontSize: "13px",
16
+ height: "100%",
17
+ margin: 0,
18
+ position: "relative",
19
+ border: "1px solid $neutral300",
20
+ borderTop: "none",
21
+ borderBottomLeftRadius: "$sm",
22
+ borderBottomRightRadius: "$sm",
23
+ padding: "$12",
24
+ },
25
+
26
+ "& .ql-container.ql-disabled .ql-tooltip": {
27
+ visibility: "hidden",
28
+ },
29
+
30
+ "& .ql-container:not(.ql-disabled) li[data-list=checked] > .ql-ui, & .ql-container:not(.ql-disabled) li[data-list=unchecked] > .ql-ui":
31
+ {
32
+ cursor: "pointer",
33
+ },
34
+
35
+ // Clipboard
36
+ "& .ql-clipboard": {
37
+ left: "-100000px",
38
+ height: "1px",
39
+ overflowY: "hidden",
40
+ position: "absolute",
41
+ top: "50%",
42
+ },
43
+
44
+ "& .ql-clipboard p": {
45
+ margin: 0,
46
+ padding: 0,
47
+ },
48
+
49
+ // Editor
50
+ "& .ql-editor": {
51
+ boxSizing: "border-box",
52
+ counterReset:
53
+ "list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9",
54
+ lineHeight: "1.42",
55
+ height: "100%",
56
+ outline: "none",
57
+ overflowY: "auto",
58
+ tabSize: 4,
59
+ MozTabSize: 4,
60
+ textAlign: "left",
61
+ whiteSpace: "pre-wrap",
62
+ wordWrap: "break-word",
63
+ minHeight: "200px",
64
+ fontSize: "$14",
65
+ fontFamily: "$default",
66
+ color: "$neutral900",
67
+ backgroundColor: "$white",
68
+ border: "none",
69
+ cursor: "text",
70
+ caretColor: "$primary500",
71
+
72
+ "& > *": {
73
+ cursor: "text",
74
+ },
75
+
76
+ "&:focus": {
77
+ borderColor: "$primary500",
78
+ boxShadow: "0 0 0 1px $primary500",
79
+ },
80
+
81
+ "& p, & ol, & pre, & blockquote, & h1, & h2, & h3, & h4, & h5, & h6": {
82
+ margin: 0,
83
+ padding: 0,
84
+ },
85
+
86
+ "& p": {
87
+ margin: "0 0 $8 0",
88
+ },
89
+
90
+ "& p:last-child": {
91
+ marginBottom: 0,
92
+ },
93
+
94
+ "& h1": {
95
+ fontSize: "2em",
96
+ lineHeight: "2em!important",
97
+ },
98
+
99
+ "& h2": {
100
+ fontSize: "1.5em",
101
+ },
102
+
103
+ "& h3": {
104
+ fontSize: "1.17em",
105
+ },
106
+
107
+ "& h4": {
108
+ fontSize: "1em",
109
+ },
110
+
111
+ "& h5": {
112
+ fontSize: "0.83em",
113
+ },
114
+
115
+ "& h6": {
116
+ fontSize: "0.67em",
117
+ },
118
+
119
+ "& h1 span, & h1, & h2, & h2 span": {
120
+ lineHeight: "1.5rem",
121
+ },
122
+
123
+ "& table": {
124
+ borderCollapse: "collapse",
125
+ tableLayout: "fixed",
126
+ width: "100%",
127
+ },
128
+
129
+ "& td": {
130
+ border: "1px solid #000",
131
+ padding: "2px 5px",
132
+ outline: "none",
133
+ },
134
+
135
+ "& ol": {
136
+ paddingLeft: "1.5em",
137
+ },
138
+
139
+ "& li": {
140
+ listStyleType: "none",
141
+ paddingLeft: "1.5em",
142
+ position: "relative",
143
+ },
144
+
145
+ "& li > .ql-ui:before": {
146
+ display: "inline-block",
147
+ marginLeft: "-1.5em",
148
+ marginRight: "0.3em",
149
+ textAlign: "right",
150
+ whiteSpace: "nowrap",
151
+ width: "1.2em",
152
+ },
153
+
154
+ "& li[data-list=checked] > .ql-ui, & li[data-list=unchecked] > .ql-ui": {
155
+ color: "#777",
156
+ },
157
+
158
+ "& li[data-list=bullet] > .ql-ui:before": {
159
+ content: "'\\2022'",
160
+ },
161
+
162
+ "& li[data-list=checked] > .ql-ui:before": {
163
+ content: "'\\2611'",
164
+ },
165
+
166
+ "& li[data-list=unchecked] > .ql-ui:before": {
167
+ content: "'\\2610'",
168
+ },
169
+
170
+ "& li[data-list=ordered]": {
171
+ counterIncrement: "list-0",
172
+ },
173
+
174
+ "& li[data-list=ordered] > .ql-ui:before": {
175
+ content: "counter(list-0, decimal) '. '",
176
+ },
177
+
178
+ "& li[data-list=ordered].ql-indent-1": {
179
+ counterIncrement: "list-1",
180
+ },
181
+
182
+ "& li[data-list=ordered].ql-indent-1 > .ql-ui:before": {
183
+ content: "counter(list-1, lower-alpha) '. '",
184
+ },
185
+
186
+ "& li[data-list=ordered].ql-indent-2": {
187
+ counterIncrement: "list-2",
188
+ },
189
+
190
+ "& li[data-list=ordered].ql-indent-2 > .ql-ui:before": {
191
+ content: "counter(list-2, lower-roman) '. '",
192
+ },
193
+
194
+ "& li[data-list=ordered].ql-indent-3": {
195
+ counterIncrement: "list-3",
196
+ },
197
+
198
+ "& li[data-list=ordered].ql-indent-3 > .ql-ui:before": {
199
+ content: "counter(list-3, decimal) '. '",
200
+ },
201
+
202
+ "& li[data-list=ordered].ql-indent-4": {
203
+ counterIncrement: "list-4",
204
+ },
205
+
206
+ "& li[data-list=ordered].ql-indent-4 > .ql-ui:before": {
207
+ content: "counter(list-4, lower-alpha) '. '",
208
+ },
209
+
210
+ "& li[data-list=ordered].ql-indent-5": {
211
+ counterIncrement: "list-5",
212
+ },
213
+
214
+ "& li[data-list=ordered].ql-indent-5 > .ql-ui:before": {
215
+ content: "counter(list-5, lower-roman) '. '",
216
+ },
217
+
218
+ "& li[data-list=ordered].ql-indent-6": {
219
+ counterIncrement: "list-6",
220
+ },
221
+
222
+ "& li[data-list=ordered].ql-indent-6 > .ql-ui:before": {
223
+ content: "counter(list-6, decimal) '. '",
224
+ },
225
+
226
+ "& li[data-list=ordered].ql-indent-7": {
227
+ counterIncrement: "list-7",
228
+ },
229
+
230
+ "& li[data-list=ordered].ql-indent-7 > .ql-ui:before": {
231
+ content: "counter(list-7, lower-alpha) '. '",
232
+ },
233
+
234
+ "& li[data-list=ordered].ql-indent-8": {
235
+ counterIncrement: "list-8",
236
+ },
237
+
238
+ "& li[data-list=ordered].ql-indent-8 > .ql-ui:before": {
239
+ content: "counter(list-8, lower-roman) '. '",
240
+ },
241
+
242
+ "& li[data-list=ordered].ql-indent-9": {
243
+ counterIncrement: "list-9",
244
+ },
245
+
246
+ "& li[data-list=ordered].ql-indent-9 > .ql-ui:before": {
247
+ content: "counter(list-9, decimal) '. '",
248
+ },
249
+
250
+ // Indents
251
+ "& .ql-indent-1:not(.ql-direction-rtl)": {
252
+ paddingLeft: "3em",
253
+ },
254
+
255
+ "& li.ql-indent-1:not(.ql-direction-rtl)": {
256
+ paddingLeft: "4.5em",
257
+ },
258
+
259
+ "& .ql-indent-1.ql-direction-rtl.ql-align-right": {
260
+ paddingRight: "3em",
261
+ },
262
+
263
+ "& li.ql-indent-1.ql-direction-rtl.ql-align-right": {
264
+ paddingRight: "4.5em",
265
+ },
266
+
267
+ "& .ql-indent-2:not(.ql-direction-rtl)": {
268
+ paddingLeft: "6em",
269
+ },
270
+
271
+ "& li.ql-indent-2:not(.ql-direction-rtl)": {
272
+ paddingLeft: "7.5em",
273
+ },
274
+
275
+ "& .ql-indent-2.ql-direction-rtl.ql-align-right": {
276
+ paddingRight: "6em",
277
+ },
278
+
279
+ "& li.ql-indent-2.ql-direction-rtl.ql-align-right": {
280
+ paddingRight: "7.5em",
281
+ },
282
+
283
+ "& .ql-indent-3:not(.ql-direction-rtl)": {
284
+ paddingLeft: "9em",
285
+ },
286
+
287
+ "& li.ql-indent-3:not(.ql-direction-rtl)": {
288
+ paddingLeft: "10.5em",
289
+ },
290
+
291
+ "& .ql-indent-3.ql-direction-rtl.ql-align-right": {
292
+ paddingRight: "9em",
293
+ },
294
+
295
+ "& li.ql-indent-3.ql-direction-rtl.ql-align-right": {
296
+ paddingRight: "10.5em",
297
+ },
298
+
299
+ "& .ql-indent-4:not(.ql-direction-rtl)": {
300
+ paddingLeft: "12em",
301
+ },
302
+
303
+ "& li.ql-indent-4:not(.ql-direction-rtl)": {
304
+ paddingLeft: "13.5em",
305
+ },
306
+
307
+ "& .ql-indent-4.ql-direction-rtl.ql-align-right": {
308
+ paddingRight: "12em",
309
+ },
310
+
311
+ "& li.ql-indent-4.ql-direction-rtl.ql-align-right": {
312
+ paddingRight: "13.5em",
313
+ },
314
+
315
+ "& .ql-indent-5:not(.ql-direction-rtl)": {
316
+ paddingLeft: "15em",
317
+ },
318
+
319
+ "& li.ql-indent-5:not(.ql-direction-rtl)": {
320
+ paddingLeft: "16.5em",
321
+ },
322
+
323
+ "& .ql-indent-5.ql-direction-rtl.ql-align-right": {
324
+ paddingRight: "15em",
325
+ },
326
+
327
+ "& li.ql-indent-5.ql-direction-rtl.ql-align-right": {
328
+ paddingRight: "16.5em",
329
+ },
330
+
331
+ "& .ql-indent-6:not(.ql-direction-rtl)": {
332
+ paddingLeft: "18em",
333
+ },
334
+
335
+ "& li.ql-indent-6:not(.ql-direction-rtl)": {
336
+ paddingLeft: "19.5em",
337
+ },
338
+
339
+ "& .ql-indent-6.ql-direction-rtl.ql-align-right": {
340
+ paddingRight: "18em",
341
+ },
342
+
343
+ "& li.ql-indent-6.ql-direction-rtl.ql-align-right": {
344
+ paddingRight: "19.5em",
345
+ },
346
+
347
+ "& .ql-indent-7:not(.ql-direction-rtl)": {
348
+ paddingLeft: "21em",
349
+ },
350
+
351
+ "& li.ql-indent-7:not(.ql-direction-rtl)": {
352
+ paddingLeft: "22.5em",
353
+ },
354
+
355
+ "& .ql-indent-7.ql-direction-rtl.ql-align-right": {
356
+ paddingRight: "21em",
357
+ },
358
+
359
+ "& li.ql-indent-7.ql-direction-rtl.ql-align-right": {
360
+ paddingRight: "22.5em",
361
+ },
362
+
363
+ "& .ql-indent-8:not(.ql-direction-rtl)": {
364
+ paddingLeft: "24em",
365
+ },
366
+
367
+ "& li.ql-indent-8:not(.ql-direction-rtl)": {
368
+ paddingLeft: "25.5em",
369
+ },
370
+
371
+ "& .ql-indent-8.ql-direction-rtl.ql-align-right": {
372
+ paddingRight: "24em",
373
+ },
374
+
375
+ "& li.ql-indent-8.ql-direction-rtl.ql-align-right": {
376
+ paddingRight: "25.5em",
377
+ },
378
+
379
+ "& .ql-indent-9:not(.ql-direction-rtl)": {
380
+ paddingLeft: "27em",
381
+ },
382
+
383
+ "& li.ql-indent-9:not(.ql-direction-rtl)": {
384
+ paddingLeft: "28.5em",
385
+ },
386
+
387
+ "& .ql-indent-9.ql-direction-rtl.ql-align-right": {
388
+ paddingRight: "27em",
389
+ },
390
+
391
+ "& li.ql-indent-9.ql-direction-rtl.ql-align-right": {
392
+ paddingRight: "28.5em",
393
+ },
394
+
395
+ "& li.ql-direction-rtl": {
396
+ paddingRight: "1.5em",
397
+ },
398
+
399
+ "& li.ql-direction-rtl > .ql-ui:before": {
400
+ marginLeft: "0.3em",
401
+ marginRight: "-1.5em",
402
+ textAlign: "left",
403
+ },
404
+
405
+ // Code blocks
406
+ "& .ql-code-block-container": {
407
+ fontFamily: "monospace",
408
+ backgroundColor: "#23241f",
409
+ color: "#f8f8f2",
410
+ overflow: "visible",
411
+ marginBottom: "5px",
412
+ marginTop: "5px",
413
+ padding: "5px 10px",
414
+ },
415
+
416
+ // Video
417
+ "& .ql-video": {
418
+ display: "block",
419
+ maxWidth: "100%",
420
+ },
421
+
422
+ "& .ql-video.ql-align-center": {
423
+ margin: "0 auto",
424
+ },
425
+
426
+ "& .ql-video.ql-align-right": {
427
+ margin: "0 0 0 auto",
428
+ },
429
+
430
+ // Colors
431
+ "& .ql-bg-black": {
432
+ backgroundColor: "#000",
433
+ },
434
+
435
+ "& .ql-bg-red": {
436
+ backgroundColor: "#e60000",
437
+ },
438
+
439
+ "& .ql-bg-orange": {
440
+ backgroundColor: "#f90",
441
+ },
442
+
443
+ "& .ql-bg-yellow": {
444
+ backgroundColor: "#ff0",
445
+ },
446
+
447
+ "& .ql-bg-green": {
448
+ backgroundColor: "#008a00",
449
+ },
450
+
451
+ "& .ql-bg-blue": {
452
+ backgroundColor: "#06c",
453
+ },
454
+
455
+ "& .ql-bg-purple": {
456
+ backgroundColor: "#93f",
457
+ },
458
+
459
+ "& .ql-color-white": {
460
+ color: "#fff",
461
+ },
462
+
463
+ "& .ql-color-red": {
464
+ color: "#e60000",
465
+ },
466
+
467
+ "& .ql-color-orange": {
468
+ color: "#f90",
469
+ },
470
+
471
+ "& .ql-color-yellow": {
472
+ color: "#ff0",
473
+ },
474
+
475
+ "& .ql-color-green": {
476
+ color: "#008a00",
477
+ },
478
+
479
+ "& .ql-color-blue": {
480
+ color: "#06c",
481
+ },
482
+
483
+ "& .ql-color-purple": {
484
+ color: "#93f",
485
+ },
486
+
487
+ // Fonts
488
+ "& .ql-font-serif": {
489
+ fontFamily: "Georgia, Times New Roman, serif",
490
+ },
491
+
492
+ "& .ql-font-monospace": {
493
+ fontFamily: "Monaco, Courier New, monospace",
494
+ },
495
+
496
+ // Sizes
497
+ "& .ql-size-small": {
498
+ fontSize: "0.75em",
499
+ },
500
+
501
+ "& .ql-size-large": {
502
+ fontSize: "1.5em",
503
+ },
504
+
505
+ "& .ql-size-huge": {
506
+ fontSize: "2.5em",
507
+ },
508
+
509
+ // Direction
510
+ "& .ql-direction-rtl": {
511
+ direction: "rtl",
512
+ textAlign: "inherit",
513
+ },
514
+
515
+ // Alignment
516
+ "& .ql-align-center": {
517
+ textAlign: "center",
518
+ },
519
+
520
+ "& .ql-align-justify": {
521
+ textAlign: "justify",
522
+ },
523
+
524
+ "& .ql-align-right": {
525
+ textAlign: "right",
526
+ },
527
+
528
+ // UI
529
+ "& .ql-ui": {
530
+ position: "absolute",
531
+ },
532
+
533
+ // Formats
534
+ "& strong": {
535
+ fontWeight: "bold",
536
+ },
537
+
538
+ "& em": {
539
+ fontStyle: "italic",
540
+ },
541
+
542
+ "& u": {
543
+ textDecoration: "underline",
544
+ },
545
+
546
+ "& s": {
547
+ textDecoration: "line-through",
548
+ },
549
+
550
+ "& a": {
551
+ textDecoration: "underline",
552
+ color: "#06c",
553
+ },
554
+
555
+ "& blockquote": {
556
+ borderLeft: "4px solid #ccc",
557
+ marginBottom: "5px",
558
+ marginTop: "5px",
559
+ paddingLeft: "16px",
560
+ },
561
+
562
+ "& code": {
563
+ backgroundColor: "#f0f0f0",
564
+ borderRadius: "3px",
565
+ fontSize: "85%",
566
+ padding: "2px 4px",
567
+ },
568
+
569
+ "& pre": {
570
+ backgroundColor: "#f0f0f0",
571
+ borderRadius: "3px",
572
+ padding: "5px 10px",
573
+ whiteSpace: "pre-wrap",
574
+ },
575
+
576
+ "& img": {
577
+ maxWidth: "100%",
578
+ },
579
+
580
+ "& .ql-cursor": {
581
+ borderLeft: "2px solid $primary500",
582
+ },
583
+ },
584
+
585
+ "&.ql-blank::before": {
586
+ color: "rgba(0, 0, 0, 0.6)",
587
+ content: "attr(data-placeholder)",
588
+ fontStyle: "italic",
589
+ left: "15px",
590
+ pointerEvents: "none",
591
+ position: "absolute",
592
+ right: "15px",
593
+ },
594
+
595
+ // Toolbar
596
+ "& .ql-toolbar, &.ql-toolbar": {
597
+ backgroundColor: "$grey100",
598
+ border: "1px solid $neutral300",
599
+ borderBottom: "none",
600
+ borderTopLeftRadius: "$sm",
601
+ borderTopRightRadius: "$sm",
602
+ padding: "$8 $12",
603
+ boxSizing: "border-box",
604
+ fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif",
605
+
606
+ "&::after": {
607
+ clear: "both",
608
+ content: "''",
609
+ display: "table",
610
+ },
611
+
612
+ "& button": {
613
+ background: "none",
614
+ border: "none",
615
+ cursor: "pointer",
616
+ display: "inline-block",
617
+ float: "left",
618
+ height: "24px",
619
+ padding: "3px 5px",
620
+ width: "28px",
621
+
622
+ "& svg": {
623
+ float: "left",
624
+ height: "100%",
625
+ },
626
+
627
+ "&:active:hover": {
628
+ outline: "none",
629
+ },
630
+
631
+ "&:hover, &:focus, &.ql-active": {
632
+ color: "#06c",
633
+
634
+ "& .ql-fill, & .ql-stroke.ql-fill": {
635
+ fill: "#06c",
636
+ },
637
+
638
+ "& .ql-stroke, & .ql-stroke-miter": {
639
+ stroke: "#06c",
640
+ },
641
+ },
642
+ },
643
+
644
+ "& input.ql-image[type=file]": {
645
+ display: "none",
646
+ },
647
+
648
+ "& .ql-formats": {
649
+ display: "inline-block",
650
+ verticalAlign: "middle",
651
+ marginRight: "15px",
652
+
653
+ "&::after": {
654
+ clear: "both",
655
+ content: "''",
656
+ display: "table",
657
+ },
658
+ },
659
+
660
+ "& .ql-picker-label": {
661
+ border: "1px solid transparent",
662
+
663
+ "&:hover, &.ql-active": {
664
+ color: "#06c",
665
+
666
+ "& .ql-fill": {
667
+ fill: "#06c",
668
+ },
669
+
670
+ "& .ql-stroke": {
671
+ stroke: "#06c",
672
+ },
673
+ },
674
+ },
675
+
676
+ "& .ql-picker-options": {
677
+ border: "1px solid transparent",
678
+ boxShadow: "rgba(0, 0, 0, 0.2) 0 2px 8px",
679
+ },
680
+
681
+ "& .ql-picker.ql-expanded .ql-picker-label": {
682
+ borderColor: "#ccc",
683
+
684
+ "& .ql-fill": {
685
+ fill: "#ccc",
686
+ },
687
+
688
+ "& .ql-stroke": {
689
+ stroke: "#ccc",
690
+ },
691
+ },
692
+
693
+ "& .ql-picker.ql-expanded .ql-picker-options": {
694
+ borderColor: "#ccc",
695
+ },
696
+
697
+ "& .ql-picker-item": {
698
+ "&:hover, &.ql-selected": {
699
+ color: "#06c",
700
+
701
+ "& .ql-fill, & .ql-stroke.ql-fill": {
702
+ fill: "#06c",
703
+ },
704
+
705
+ "& .ql-stroke, & .ql-stroke-miter": {
706
+ stroke: "#06c",
707
+ },
708
+ },
709
+ },
710
+
711
+ "& .ql-color-picker .ql-picker-item.ql-selected, & .ql-color-picker .ql-picker-item:hover":
712
+ {
713
+ borderColor: "#000",
714
+ },
715
+ },
716
+
717
+ "@media (pointer: coarse)": {
718
+ "& .ql-toolbar button:hover:not(.ql-active)": {
719
+ color: "#444",
720
+
721
+ "& .ql-fill, & .ql-stroke.ql-fill": {
722
+ fill: "#444",
723
+ },
724
+
725
+ "& .ql-stroke, & .ql-stroke-miter": {
726
+ stroke: "#444",
727
+ },
728
+ },
729
+ },
730
+
731
+ // Snow theme
732
+ "&, & *": {
733
+ boxSizing: "border-box",
734
+ },
735
+
736
+ "& .ql-hidden": {
737
+ display: "none",
738
+ },
739
+
740
+ "& .ql-out-bottom, & .ql-out-top": {
741
+ visibility: "hidden",
742
+ },
743
+
744
+ "& .ql-tooltip": {
745
+ position: "absolute",
746
+ transform: "translateY(10px)",
747
+ backgroundColor: "#fff",
748
+ border: "1px solid #ccc",
749
+ boxShadow: "0 0 5px #ddd",
750
+ color: "#444",
751
+ padding: "5px 12px",
752
+ whiteSpace: "nowrap",
753
+
754
+ "& a": {
755
+ cursor: "pointer",
756
+ textDecoration: "none",
757
+ lineHeight: "26px",
758
+ color: "#06c",
759
+ },
760
+
761
+ "&.ql-flip": {
762
+ transform: "translateY(-10px)",
763
+ },
764
+
765
+ "&::before": {
766
+ content: "'Visit URL:'",
767
+ lineHeight: "26px",
768
+ marginRight: "8px",
769
+ },
770
+
771
+ "& input[type=text]": {
772
+ display: "none",
773
+ border: "1px solid #ccc",
774
+ fontSize: "13px",
775
+ height: "26px",
776
+ margin: 0,
777
+ padding: "3px 5px",
778
+ width: "170px",
779
+ },
780
+
781
+ "& a.ql-preview": {
782
+ display: "inline-block",
783
+ maxWidth: "200px",
784
+ overflowX: "hidden",
785
+ textOverflow: "ellipsis",
786
+ verticalAlign: "top",
787
+ },
788
+
789
+ "& a.ql-action::after": {
790
+ borderRight: "1px solid #ccc",
791
+ content: "'Edit'",
792
+ marginLeft: "16px",
793
+ paddingRight: "8px",
794
+ },
795
+
796
+ "& a.ql-remove::before": {
797
+ content: "'Remove'",
798
+ marginLeft: "8px",
799
+ },
800
+
801
+ "&.ql-editing a.ql-preview, &.ql-editing a.ql-remove": {
802
+ display: "none",
803
+ },
804
+
805
+ "&.ql-editing input[type=text]": {
806
+ display: "inline-block",
807
+ },
808
+
809
+ "&.ql-editing a.ql-action::after": {
810
+ borderRight: 0,
811
+ content: "'Save'",
812
+ paddingRight: 0,
813
+ },
814
+
815
+ "&[data-mode=link]::before": {
816
+ content: "'Enter link:'",
817
+ },
818
+
819
+ "&[data-mode=formula]::before": {
820
+ content: "'Enter formula:'",
821
+ },
822
+
823
+ "&[data-mode=video]::before": {
824
+ content: "'Enter video:'",
825
+ },
826
+ },
827
+
828
+ // Stroke and fill
829
+ "& .ql-stroke": {
830
+ fill: "none",
831
+ stroke: "#444",
832
+ strokeLinecap: "round",
833
+ strokeLinejoin: "round",
834
+ strokeWidth: "2",
835
+ },
836
+
837
+ "& .ql-stroke-miter": {
838
+ fill: "none",
839
+ stroke: "#444",
840
+ strokeMiterlimit: "10",
841
+ strokeWidth: "2",
842
+ },
843
+
844
+ "& .ql-fill, & .ql-stroke.ql-fill": {
845
+ fill: "#444",
846
+ },
847
+
848
+ "& .ql-empty": {
849
+ fill: "none",
850
+ },
851
+
852
+ "& .ql-even": {
853
+ fillRule: "evenodd",
854
+ },
855
+
856
+ "& .ql-thin, & .ql-stroke.ql-thin": {
857
+ strokeWidth: "1",
858
+ },
859
+
860
+ "& .ql-transparent": {
861
+ opacity: 0.4,
862
+ },
863
+
864
+ // Direction
865
+ "& .ql-direction svg:last-child": {
866
+ display: "none",
867
+ },
868
+
869
+ "& .ql-direction.ql-active svg:last-child": {
870
+ display: "inline",
871
+ },
872
+
873
+ "& .ql-direction.ql-active svg:first-child": {
874
+ display: "none",
875
+ },
876
+
877
+ // Picker
878
+ "& .ql-picker": {
879
+ color: "#444",
880
+ display: "inline-block",
881
+ float: "left",
882
+ fontSize: "14px",
883
+ fontWeight: "500",
884
+ height: "24px",
885
+ position: "relative",
886
+ verticalAlign: "middle",
887
+ },
888
+
889
+ "& .ql-picker-label": {
890
+ cursor: "pointer",
891
+ display: "inline-block",
892
+ height: "100%",
893
+ paddingLeft: "8px",
894
+ paddingRight: "2px",
895
+ position: "relative",
896
+ width: "100%",
897
+
898
+ "&::before": {
899
+ display: "inline-block",
900
+ lineHeight: "22px",
901
+ },
902
+ },
903
+
904
+ "& .ql-picker-options": {
905
+ backgroundColor: "#fff",
906
+ display: "none",
907
+ minWidth: "100%",
908
+ padding: "4px 8px",
909
+ position: "absolute",
910
+ whiteSpace: "nowrap",
911
+
912
+ "& .ql-picker-item": {
913
+ cursor: "pointer",
914
+ display: "block",
915
+ paddingBottom: "5px",
916
+ paddingTop: "5px",
917
+ },
918
+ },
919
+
920
+ "& .ql-picker.ql-expanded": {
921
+ "& .ql-picker-label": {
922
+ color: "#ccc",
923
+ zIndex: 2,
924
+ },
925
+
926
+ "& .ql-picker-options": {
927
+ display: "block",
928
+ marginTop: "-1px",
929
+ top: "100%",
930
+ zIndex: 1,
931
+ },
932
+ },
933
+
934
+ "& .ql-color-picker, & .ql-icon-picker": {
935
+ width: "28px",
936
+
937
+ "& .ql-picker-label": {
938
+ padding: "2px 4px",
939
+
940
+ "& svg": {
941
+ right: "4px",
942
+ },
943
+ },
944
+ },
945
+
946
+ "& .ql-icon-picker .ql-picker-options": {
947
+ padding: "4px 0",
948
+ },
949
+
950
+ "& .ql-icon-picker .ql-picker-item": {
951
+ height: "24px",
952
+ width: "24px",
953
+ padding: "2px 4px",
954
+ },
955
+
956
+ "& .ql-color-picker .ql-picker-options": {
957
+ padding: "3px 5px",
958
+ width: "152px",
959
+ },
960
+
961
+ "& .ql-color-picker .ql-picker-item": {
962
+ border: "1px solid transparent",
963
+ float: "left",
964
+ height: "16px",
965
+ margin: "2px",
966
+ padding: 0,
967
+ width: "16px",
968
+ },
969
+
970
+ "& .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg": {
971
+ position: "absolute",
972
+ marginTop: "-9px",
973
+ right: 0,
974
+ top: "50%",
975
+ width: "18px",
976
+ },
977
+
978
+ "& .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before, & .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before, & .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before, & .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before":
979
+ {
980
+ content: "attr(data-label)",
981
+ },
982
+
983
+ // Header picker
984
+ "& .ql-picker.ql-header": {
985
+ width: "98px",
986
+
987
+ "& .ql-picker-label::before, & .ql-picker-item::before": {
988
+ content: "'Normal'",
989
+ },
990
+
991
+ "& .ql-picker-label[data-value='1']::before, & .ql-picker-item[data-value='1']::before":
992
+ {
993
+ content: "'Título 1'",
994
+ },
995
+
996
+ "& .ql-picker-label[data-value='2']::before, & .ql-picker-item[data-value='2']::before":
997
+ {
998
+ content: "'Título 2'",
999
+ },
1000
+
1001
+ "& .ql-picker-label[data-value='3']::before, & .ql-picker-item[data-value='3']::before":
1002
+ {
1003
+ content: "'Heading 3'",
1004
+ },
1005
+
1006
+ "& .ql-picker-label[data-value='4']::before, & .ql-picker-item[data-value='4']::before":
1007
+ {
1008
+ content: "'Heading 4'",
1009
+ },
1010
+
1011
+ "& .ql-picker-label[data-value='5']::before, & .ql-picker-item[data-value='5']::before":
1012
+ {
1013
+ content: "'Heading 5'",
1014
+ },
1015
+
1016
+ "& .ql-picker-label[data-value='6']::before, & .ql-picker-item[data-value='6']::before":
1017
+ {
1018
+ content: "'Heading 6'",
1019
+ },
1020
+
1021
+ "& .ql-picker-item[data-value='1']::before": {
1022
+ fontSize: "2em",
1023
+ },
1024
+
1025
+ "& .ql-picker-item[data-value='2']::before": {
1026
+ fontSize: "1.5em",
1027
+ },
1028
+
1029
+ "& .ql-picker-item[data-value='3']::before": {
1030
+ fontSize: "1.17em",
1031
+ },
1032
+
1033
+ "& .ql-picker-item[data-value='4']::before": {
1034
+ fontSize: "1em",
1035
+ },
1036
+
1037
+ "& .ql-picker-item[data-value='5']::before": {
1038
+ fontSize: "0.83em",
1039
+ },
1040
+
1041
+ "& .ql-picker-item[data-value='6']::before": {
1042
+ fontSize: "0.67em",
1043
+ },
1044
+ },
1045
+
1046
+ // Font picker
1047
+ "& .ql-picker.ql-font": {
1048
+ width: "108px",
1049
+
1050
+ "& .ql-picker-label::before, & .ql-picker-item::before": {
1051
+ content: "'Sans Serif'",
1052
+ },
1053
+
1054
+ "& .ql-picker-label[data-value=serif]::before, & .ql-picker-item[data-value=serif]::before":
1055
+ {
1056
+ content: "'Serif'",
1057
+ },
1058
+
1059
+ "& .ql-picker-label[data-value=monospace]::before, & .ql-picker-item[data-value=monospace]::before":
1060
+ {
1061
+ content: "'Monospace'",
1062
+ },
1063
+
1064
+ "& .ql-picker-item[data-value=serif]::before": {
1065
+ fontFamily: "Georgia, Times New Roman, serif",
1066
+ },
1067
+
1068
+ "& .ql-picker-item[data-value=monospace]::before": {
1069
+ fontFamily: "Monaco, Courier New, monospace",
1070
+ },
1071
+ },
1072
+
1073
+ // Size picker
1074
+ "& .ql-picker.ql-size": {
1075
+ width: "98px",
1076
+
1077
+ "& .ql-picker-label::before, & .ql-picker-item::before": {
1078
+ content: "'Normal'",
1079
+ },
1080
+
1081
+ "& .ql-picker-label[data-value=small]::before, & .ql-picker-item[data-value=small]::before":
1082
+ {
1083
+ content: "'Small'",
1084
+ },
1085
+
1086
+ "& .ql-picker-label[data-value=large]::before, & .ql-picker-item[data-value=large]::before":
1087
+ {
1088
+ content: "'Large'",
1089
+ },
1090
+
1091
+ "& .ql-picker-label[data-value=huge]::before, & .ql-picker-item[data-value=huge]::before":
1092
+ {
1093
+ content: "'Huge'",
1094
+ },
1095
+
1096
+ "& .ql-picker-item[data-value=small]::before": {
1097
+ fontSize: "10px",
1098
+ },
1099
+
1100
+ "& .ql-picker-item[data-value=large]::before": {
1101
+ fontSize: "18px",
1102
+ },
1103
+
1104
+ "& .ql-picker-item[data-value=huge]::before": {
1105
+ fontSize: "32px",
1106
+ },
1107
+ },
1108
+
1109
+ // Color picker items
1110
+ "& .ql-color-picker.ql-background .ql-picker-item": {
1111
+ backgroundColor: "#fff",
1112
+ },
1113
+
1114
+ "& .ql-color-picker.ql-color .ql-picker-item": {
1115
+ backgroundColor: "#000",
1116
+ },
1117
+
1118
+ // Code block container
1119
+ "& .ql-code-block-container": {
1120
+ position: "relative",
1121
+
1122
+ "& .ql-ui": {
1123
+ right: "5px",
1124
+ top: "5px",
1125
+ },
1126
+ },
1127
+
1128
+ // Toolbar snow adjustments
1129
+ "&.ql-toolbar, & .ql-toolbar.ql-snow": {
1130
+ border: "1px solid #ccc",
1131
+ boxSizing: "border-box",
1132
+ fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif",
1133
+ padding: "8px",
1134
+
1135
+ "& .ql-formats": {
1136
+ marginRight: "15px",
1137
+ },
1138
+
1139
+ "& .ql-picker-label": {
1140
+ border: "1px solid transparent",
1141
+ },
1142
+
1143
+ "& .ql-picker-options": {
1144
+ border: "1px solid transparent",
1145
+ boxShadow: "rgba(0, 0, 0, 0.2) 0 2px 8px",
1146
+ },
1147
+
1148
+ "& .ql-picker.ql-expanded .ql-picker-label": {
1149
+ borderColor: "#ccc",
1150
+ },
1151
+
1152
+ "& .ql-picker.ql-expanded .ql-picker-options": {
1153
+ borderColor: "#ccc",
1154
+ },
1155
+
1156
+ "& .ql-color-picker .ql-picker-item.ql-selected, & .ql-color-picker .ql-picker-item:hover":
1157
+ {
1158
+ borderColor: "#000",
1159
+ },
1160
+ },
1161
+
1162
+ "& .ql-toolbar.ql-snow + .ql-container.ql-snow": {
1163
+ borderTop: 0,
1164
+ },
1165
+
1166
+ // Container snow
1167
+ "& .ql-container.ql-snow": {
1168
+ border: "1px solid #ccc",
1169
+ },
1170
+ });