@lets-events/react 12.1.11 → 12.1.13

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.js CHANGED
@@ -155,7 +155,7 @@ var require_react_is_development = __commonJS({
155
155
  var Portal = REACT_PORTAL_TYPE;
156
156
  var Profiler = REACT_PROFILER_TYPE;
157
157
  var StrictMode = REACT_STRICT_MODE_TYPE;
158
- var Suspense2 = REACT_SUSPENSE_TYPE;
158
+ var Suspense = REACT_SUSPENSE_TYPE;
159
159
  var hasWarnedAboutDeprecatedIsAsyncMode = false;
160
160
  function isAsyncMode(object) {
161
161
  {
@@ -214,7 +214,7 @@ var require_react_is_development = __commonJS({
214
214
  exports2.Portal = Portal;
215
215
  exports2.Profiler = Profiler;
216
216
  exports2.StrictMode = StrictMode;
217
- exports2.Suspense = Suspense2;
217
+ exports2.Suspense = Suspense;
218
218
  exports2.isAsyncMode = isAsyncMode;
219
219
  exports2.isConcurrentMode = isConcurrentMode;
220
220
  exports2.isContextConsumer = isContextConsumer;
@@ -11135,55 +11135,913 @@ var QuillContainer = styled("div", {
11135
11135
  flexDirection: "column"
11136
11136
  });
11137
11137
  var QuillEditor = styled("div", {
11138
+ // Base container
11139
+ "& .ql-container": {
11140
+ boxSizing: "border-box",
11141
+ fontFamily: "Helvetica, Arial, sans-serif",
11142
+ fontSize: "13px",
11143
+ height: "100%",
11144
+ margin: 0,
11145
+ position: "relative",
11146
+ border: "1px solid $neutral300",
11147
+ borderTop: "none",
11148
+ borderBottomLeftRadius: "$sm",
11149
+ borderBottomRightRadius: "$sm"
11150
+ },
11151
+ "& .ql-container.ql-disabled .ql-tooltip": {
11152
+ visibility: "hidden"
11153
+ },
11154
+ "& .ql-container:not(.ql-disabled) li[data-list=checked] > .ql-ui, & .ql-container:not(.ql-disabled) li[data-list=unchecked] > .ql-ui": {
11155
+ cursor: "pointer"
11156
+ },
11157
+ // Clipboard
11158
+ "& .ql-clipboard": {
11159
+ left: "-100000px",
11160
+ height: "1px",
11161
+ overflowY: "hidden",
11162
+ position: "absolute",
11163
+ top: "50%"
11164
+ },
11165
+ "& .ql-clipboard p": {
11166
+ margin: 0,
11167
+ padding: 0
11168
+ },
11169
+ // Editor
11138
11170
  "& .ql-editor": {
11139
- minHeight: "200px",
11171
+ boxSizing: "border-box",
11172
+ counterReset: "list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9",
11173
+ lineHeight: "1.42",
11174
+ height: "100%",
11175
+ outline: "none",
11176
+ overflowY: "auto",
11140
11177
  padding: "$12",
11178
+ tabSize: 4,
11179
+ MozTabSize: 4,
11180
+ textAlign: "left",
11181
+ whiteSpace: "pre-wrap",
11182
+ wordWrap: "break-word",
11183
+ minHeight: "200px",
11141
11184
  fontSize: "$14",
11142
- lineHeight: "$base",
11143
11185
  fontFamily: "$default",
11144
11186
  color: "$neutral900",
11145
11187
  backgroundColor: "$white",
11146
11188
  border: "none",
11147
- outline: "none",
11148
11189
  cursor: "text",
11149
11190
  caretColor: "$primary500",
11191
+ "& > *": {
11192
+ cursor: "text"
11193
+ },
11150
11194
  "&:focus": {
11151
11195
  borderColor: "$primary500",
11152
11196
  boxShadow: "0 0 0 1px $primary500"
11153
11197
  },
11198
+ "& p, & ol, & pre, & blockquote, & h1, & h2, & h3, & h4, & h5, & h6": {
11199
+ margin: 0,
11200
+ padding: 0
11201
+ },
11154
11202
  "& p": {
11155
11203
  margin: "0 0 $8 0"
11156
11204
  },
11205
+ "& p:last-child": {
11206
+ marginBottom: 0
11207
+ },
11208
+ "& h1": {
11209
+ fontSize: "2em"
11210
+ },
11211
+ "& h2": {
11212
+ fontSize: "1.5em"
11213
+ },
11214
+ "& h3": {
11215
+ fontSize: "1.17em"
11216
+ },
11217
+ "& h4": {
11218
+ fontSize: "1em"
11219
+ },
11220
+ "& h5": {
11221
+ fontSize: "0.83em"
11222
+ },
11223
+ "& h6": {
11224
+ fontSize: "0.67em"
11225
+ },
11157
11226
  "& h1 span, & h1, & h2, & h2 span": {
11158
11227
  lineHeight: "1.5rem"
11159
11228
  },
11160
- "& p:last-child": {
11161
- marginBottom: 0
11229
+ "& table": {
11230
+ borderCollapse: "collapse",
11231
+ tableLayout: "fixed",
11232
+ width: "100%"
11233
+ },
11234
+ "& td": {
11235
+ border: "1px solid #000",
11236
+ padding: "2px 5px",
11237
+ outline: "none"
11238
+ },
11239
+ "& ol": {
11240
+ paddingLeft: "1.5em"
11241
+ },
11242
+ "& li": {
11243
+ listStyleType: "none",
11244
+ paddingLeft: "1.5em",
11245
+ position: "relative"
11246
+ },
11247
+ "& li > .ql-ui:before": {
11248
+ display: "inline-block",
11249
+ marginLeft: "-1.5em",
11250
+ marginRight: "0.3em",
11251
+ textAlign: "right",
11252
+ whiteSpace: "nowrap",
11253
+ width: "1.2em"
11254
+ },
11255
+ "& li[data-list=checked] > .ql-ui, & li[data-list=unchecked] > .ql-ui": {
11256
+ color: "#777"
11257
+ },
11258
+ "& li[data-list=bullet] > .ql-ui:before": {
11259
+ content: "'\\2022'"
11260
+ },
11261
+ "& li[data-list=checked] > .ql-ui:before": {
11262
+ content: "'\\2611'"
11263
+ },
11264
+ "& li[data-list=unchecked] > .ql-ui:before": {
11265
+ content: "'\\2610'"
11266
+ },
11267
+ "& li[data-list=ordered]": {
11268
+ counterIncrement: "list-0"
11269
+ },
11270
+ "& li[data-list=ordered] > .ql-ui:before": {
11271
+ content: "counter(list-0, decimal) '. '"
11272
+ },
11273
+ "& li[data-list=ordered].ql-indent-1": {
11274
+ counterIncrement: "list-1"
11275
+ },
11276
+ "& li[data-list=ordered].ql-indent-1 > .ql-ui:before": {
11277
+ content: "counter(list-1, lower-alpha) '. '"
11278
+ },
11279
+ "& li[data-list=ordered].ql-indent-2": {
11280
+ counterIncrement: "list-2"
11281
+ },
11282
+ "& li[data-list=ordered].ql-indent-2 > .ql-ui:before": {
11283
+ content: "counter(list-2, lower-roman) '. '"
11284
+ },
11285
+ "& li[data-list=ordered].ql-indent-3": {
11286
+ counterIncrement: "list-3"
11287
+ },
11288
+ "& li[data-list=ordered].ql-indent-3 > .ql-ui:before": {
11289
+ content: "counter(list-3, decimal) '. '"
11290
+ },
11291
+ "& li[data-list=ordered].ql-indent-4": {
11292
+ counterIncrement: "list-4"
11293
+ },
11294
+ "& li[data-list=ordered].ql-indent-4 > .ql-ui:before": {
11295
+ content: "counter(list-4, lower-alpha) '. '"
11296
+ },
11297
+ "& li[data-list=ordered].ql-indent-5": {
11298
+ counterIncrement: "list-5"
11299
+ },
11300
+ "& li[data-list=ordered].ql-indent-5 > .ql-ui:before": {
11301
+ content: "counter(list-5, lower-roman) '. '"
11302
+ },
11303
+ "& li[data-list=ordered].ql-indent-6": {
11304
+ counterIncrement: "list-6"
11305
+ },
11306
+ "& li[data-list=ordered].ql-indent-6 > .ql-ui:before": {
11307
+ content: "counter(list-6, decimal) '. '"
11308
+ },
11309
+ "& li[data-list=ordered].ql-indent-7": {
11310
+ counterIncrement: "list-7"
11311
+ },
11312
+ "& li[data-list=ordered].ql-indent-7 > .ql-ui:before": {
11313
+ content: "counter(list-7, lower-alpha) '. '"
11314
+ },
11315
+ "& li[data-list=ordered].ql-indent-8": {
11316
+ counterIncrement: "list-8"
11317
+ },
11318
+ "& li[data-list=ordered].ql-indent-8 > .ql-ui:before": {
11319
+ content: "counter(list-8, lower-roman) '. '"
11320
+ },
11321
+ "& li[data-list=ordered].ql-indent-9": {
11322
+ counterIncrement: "list-9"
11323
+ },
11324
+ "& li[data-list=ordered].ql-indent-9 > .ql-ui:before": {
11325
+ content: "counter(list-9, decimal) '. '"
11326
+ },
11327
+ // Indents
11328
+ "& .ql-indent-1:not(.ql-direction-rtl)": {
11329
+ paddingLeft: "3em"
11330
+ },
11331
+ "& li.ql-indent-1:not(.ql-direction-rtl)": {
11332
+ paddingLeft: "4.5em"
11333
+ },
11334
+ "& .ql-indent-1.ql-direction-rtl.ql-align-right": {
11335
+ paddingRight: "3em"
11336
+ },
11337
+ "& li.ql-indent-1.ql-direction-rtl.ql-align-right": {
11338
+ paddingRight: "4.5em"
11339
+ },
11340
+ "& .ql-indent-2:not(.ql-direction-rtl)": {
11341
+ paddingLeft: "6em"
11342
+ },
11343
+ "& li.ql-indent-2:not(.ql-direction-rtl)": {
11344
+ paddingLeft: "7.5em"
11345
+ },
11346
+ "& .ql-indent-2.ql-direction-rtl.ql-align-right": {
11347
+ paddingRight: "6em"
11348
+ },
11349
+ "& li.ql-indent-2.ql-direction-rtl.ql-align-right": {
11350
+ paddingRight: "7.5em"
11351
+ },
11352
+ "& .ql-indent-3:not(.ql-direction-rtl)": {
11353
+ paddingLeft: "9em"
11354
+ },
11355
+ "& li.ql-indent-3:not(.ql-direction-rtl)": {
11356
+ paddingLeft: "10.5em"
11357
+ },
11358
+ "& .ql-indent-3.ql-direction-rtl.ql-align-right": {
11359
+ paddingRight: "9em"
11360
+ },
11361
+ "& li.ql-indent-3.ql-direction-rtl.ql-align-right": {
11362
+ paddingRight: "10.5em"
11363
+ },
11364
+ "& .ql-indent-4:not(.ql-direction-rtl)": {
11365
+ paddingLeft: "12em"
11366
+ },
11367
+ "& li.ql-indent-4:not(.ql-direction-rtl)": {
11368
+ paddingLeft: "13.5em"
11369
+ },
11370
+ "& .ql-indent-4.ql-direction-rtl.ql-align-right": {
11371
+ paddingRight: "12em"
11372
+ },
11373
+ "& li.ql-indent-4.ql-direction-rtl.ql-align-right": {
11374
+ paddingRight: "13.5em"
11375
+ },
11376
+ "& .ql-indent-5:not(.ql-direction-rtl)": {
11377
+ paddingLeft: "15em"
11378
+ },
11379
+ "& li.ql-indent-5:not(.ql-direction-rtl)": {
11380
+ paddingLeft: "16.5em"
11381
+ },
11382
+ "& .ql-indent-5.ql-direction-rtl.ql-align-right": {
11383
+ paddingRight: "15em"
11384
+ },
11385
+ "& li.ql-indent-5.ql-direction-rtl.ql-align-right": {
11386
+ paddingRight: "16.5em"
11387
+ },
11388
+ "& .ql-indent-6:not(.ql-direction-rtl)": {
11389
+ paddingLeft: "18em"
11390
+ },
11391
+ "& li.ql-indent-6:not(.ql-direction-rtl)": {
11392
+ paddingLeft: "19.5em"
11393
+ },
11394
+ "& .ql-indent-6.ql-direction-rtl.ql-align-right": {
11395
+ paddingRight: "18em"
11396
+ },
11397
+ "& li.ql-indent-6.ql-direction-rtl.ql-align-right": {
11398
+ paddingRight: "19.5em"
11399
+ },
11400
+ "& .ql-indent-7:not(.ql-direction-rtl)": {
11401
+ paddingLeft: "21em"
11402
+ },
11403
+ "& li.ql-indent-7:not(.ql-direction-rtl)": {
11404
+ paddingLeft: "22.5em"
11405
+ },
11406
+ "& .ql-indent-7.ql-direction-rtl.ql-align-right": {
11407
+ paddingRight: "21em"
11408
+ },
11409
+ "& li.ql-indent-7.ql-direction-rtl.ql-align-right": {
11410
+ paddingRight: "22.5em"
11411
+ },
11412
+ "& .ql-indent-8:not(.ql-direction-rtl)": {
11413
+ paddingLeft: "24em"
11414
+ },
11415
+ "& li.ql-indent-8:not(.ql-direction-rtl)": {
11416
+ paddingLeft: "25.5em"
11417
+ },
11418
+ "& .ql-indent-8.ql-direction-rtl.ql-align-right": {
11419
+ paddingRight: "24em"
11420
+ },
11421
+ "& li.ql-indent-8.ql-direction-rtl.ql-align-right": {
11422
+ paddingRight: "25.5em"
11423
+ },
11424
+ "& .ql-indent-9:not(.ql-direction-rtl)": {
11425
+ paddingLeft: "27em"
11426
+ },
11427
+ "& li.ql-indent-9:not(.ql-direction-rtl)": {
11428
+ paddingLeft: "28.5em"
11429
+ },
11430
+ "& .ql-indent-9.ql-direction-rtl.ql-align-right": {
11431
+ paddingRight: "27em"
11432
+ },
11433
+ "& li.ql-indent-9.ql-direction-rtl.ql-align-right": {
11434
+ paddingRight: "28.5em"
11435
+ },
11436
+ "& li.ql-direction-rtl": {
11437
+ paddingRight: "1.5em"
11438
+ },
11439
+ "& li.ql-direction-rtl > .ql-ui:before": {
11440
+ marginLeft: "0.3em",
11441
+ marginRight: "-1.5em",
11442
+ textAlign: "left"
11443
+ },
11444
+ // Code blocks
11445
+ "& .ql-code-block-container": {
11446
+ fontFamily: "monospace",
11447
+ backgroundColor: "#23241f",
11448
+ color: "#f8f8f2",
11449
+ overflow: "visible",
11450
+ marginBottom: "5px",
11451
+ marginTop: "5px",
11452
+ padding: "5px 10px"
11453
+ },
11454
+ // Video
11455
+ "& .ql-video": {
11456
+ display: "block",
11457
+ maxWidth: "100%"
11458
+ },
11459
+ "& .ql-video.ql-align-center": {
11460
+ margin: "0 auto"
11461
+ },
11462
+ "& .ql-video.ql-align-right": {
11463
+ margin: "0 0 0 auto"
11464
+ },
11465
+ // Colors
11466
+ "& .ql-bg-black": {
11467
+ backgroundColor: "#000"
11468
+ },
11469
+ "& .ql-bg-red": {
11470
+ backgroundColor: "#e60000"
11471
+ },
11472
+ "& .ql-bg-orange": {
11473
+ backgroundColor: "#f90"
11474
+ },
11475
+ "& .ql-bg-yellow": {
11476
+ backgroundColor: "#ff0"
11477
+ },
11478
+ "& .ql-bg-green": {
11479
+ backgroundColor: "#008a00"
11480
+ },
11481
+ "& .ql-bg-blue": {
11482
+ backgroundColor: "#06c"
11483
+ },
11484
+ "& .ql-bg-purple": {
11485
+ backgroundColor: "#93f"
11486
+ },
11487
+ "& .ql-color-white": {
11488
+ color: "#fff"
11489
+ },
11490
+ "& .ql-color-red": {
11491
+ color: "#e60000"
11492
+ },
11493
+ "& .ql-color-orange": {
11494
+ color: "#f90"
11495
+ },
11496
+ "& .ql-color-yellow": {
11497
+ color: "#ff0"
11498
+ },
11499
+ "& .ql-color-green": {
11500
+ color: "#008a00"
11501
+ },
11502
+ "& .ql-color-blue": {
11503
+ color: "#06c"
11504
+ },
11505
+ "& .ql-color-purple": {
11506
+ color: "#93f"
11507
+ },
11508
+ // Fonts
11509
+ "& .ql-font-serif": {
11510
+ fontFamily: "Georgia, Times New Roman, serif"
11511
+ },
11512
+ "& .ql-font-monospace": {
11513
+ fontFamily: "Monaco, Courier New, monospace"
11514
+ },
11515
+ // Sizes
11516
+ "& .ql-size-small": {
11517
+ fontSize: "0.75em"
11518
+ },
11519
+ "& .ql-size-large": {
11520
+ fontSize: "1.5em"
11521
+ },
11522
+ "& .ql-size-huge": {
11523
+ fontSize: "2.5em"
11524
+ },
11525
+ // Direction
11526
+ "& .ql-direction-rtl": {
11527
+ direction: "rtl",
11528
+ textAlign: "inherit"
11529
+ },
11530
+ // Alignment
11531
+ "& .ql-align-center": {
11532
+ textAlign: "center"
11533
+ },
11534
+ "& .ql-align-justify": {
11535
+ textAlign: "justify"
11536
+ },
11537
+ "& .ql-align-right": {
11538
+ textAlign: "right"
11539
+ },
11540
+ // UI
11541
+ "& .ql-ui": {
11542
+ position: "absolute"
11543
+ },
11544
+ // Formats
11545
+ "& strong": {
11546
+ fontWeight: "bold"
11547
+ },
11548
+ "& em": {
11549
+ fontStyle: "italic"
11550
+ },
11551
+ "& u": {
11552
+ textDecoration: "underline"
11553
+ },
11554
+ "& s": {
11555
+ textDecoration: "line-through"
11556
+ },
11557
+ "& a": {
11558
+ textDecoration: "underline",
11559
+ color: "#06c"
11560
+ },
11561
+ "& blockquote": {
11562
+ borderLeft: "4px solid #ccc",
11563
+ marginBottom: "5px",
11564
+ marginTop: "5px",
11565
+ paddingLeft: "16px"
11566
+ },
11567
+ "& code": {
11568
+ backgroundColor: "#f0f0f0",
11569
+ borderRadius: "3px",
11570
+ fontSize: "85%",
11571
+ padding: "2px 4px"
11572
+ },
11573
+ "& pre": {
11574
+ backgroundColor: "#f0f0f0",
11575
+ borderRadius: "3px",
11576
+ padding: "5px 10px",
11577
+ whiteSpace: "pre-wrap"
11578
+ },
11579
+ "& img": {
11580
+ maxWidth: "100%"
11162
11581
  },
11163
11582
  "& .ql-cursor": {
11164
11583
  borderLeft: "2px solid $primary500"
11165
11584
  }
11166
11585
  },
11167
- "& .ql-toolbar": {
11586
+ "&.ql-blank::before": {
11587
+ color: "rgba(0, 0, 0, 0.6)",
11588
+ content: "attr(data-placeholder)",
11589
+ fontStyle: "italic",
11590
+ left: "15px",
11591
+ pointerEvents: "none",
11592
+ position: "absolute",
11593
+ right: "15px"
11594
+ },
11595
+ // Toolbar
11596
+ "& .ql-toolbar, &.ql-toolbar": {
11168
11597
  backgroundColor: "$grey100",
11169
11598
  border: "1px solid $neutral300",
11170
11599
  borderBottom: "none",
11171
11600
  borderTopLeftRadius: "$sm",
11172
11601
  borderTopRightRadius: "$sm",
11173
- padding: "$8 $12"
11602
+ padding: "$8 $12",
11603
+ boxSizing: "border-box",
11604
+ fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif",
11605
+ "&::after": {
11606
+ clear: "both",
11607
+ content: "''",
11608
+ display: "table"
11609
+ },
11610
+ "& button": {
11611
+ background: "none",
11612
+ border: "none",
11613
+ cursor: "pointer",
11614
+ display: "inline-block",
11615
+ float: "left",
11616
+ height: "24px",
11617
+ padding: "3px 5px",
11618
+ width: "28px",
11619
+ "& svg": {
11620
+ float: "left",
11621
+ height: "100%"
11622
+ },
11623
+ "&:active:hover": {
11624
+ outline: "none"
11625
+ },
11626
+ "&:hover, &:focus, &.ql-active": {
11627
+ color: "#06c",
11628
+ "& .ql-fill, & .ql-stroke.ql-fill": {
11629
+ fill: "#06c"
11630
+ },
11631
+ "& .ql-stroke, & .ql-stroke-miter": {
11632
+ stroke: "#06c"
11633
+ }
11634
+ }
11635
+ },
11636
+ "& input.ql-image[type=file]": {
11637
+ display: "none"
11638
+ },
11639
+ "& .ql-formats": {
11640
+ display: "inline-block",
11641
+ verticalAlign: "middle",
11642
+ marginRight: "15px",
11643
+ "&::after": {
11644
+ clear: "both",
11645
+ content: "''",
11646
+ display: "table"
11647
+ }
11648
+ },
11649
+ "& .ql-picker-label": {
11650
+ border: "1px solid transparent",
11651
+ "&:hover, &.ql-active": {
11652
+ color: "#06c",
11653
+ "& .ql-fill": {
11654
+ fill: "#06c"
11655
+ },
11656
+ "& .ql-stroke": {
11657
+ stroke: "#06c"
11658
+ }
11659
+ }
11660
+ },
11661
+ "& .ql-picker-options": {
11662
+ border: "1px solid transparent",
11663
+ boxShadow: "rgba(0, 0, 0, 0.2) 0 2px 8px"
11664
+ },
11665
+ "& .ql-picker.ql-expanded .ql-picker-label": {
11666
+ borderColor: "#ccc",
11667
+ "& .ql-fill": {
11668
+ fill: "#ccc"
11669
+ },
11670
+ "& .ql-stroke": {
11671
+ stroke: "#ccc"
11672
+ }
11673
+ },
11674
+ "& .ql-picker.ql-expanded .ql-picker-options": {
11675
+ borderColor: "#ccc"
11676
+ },
11677
+ "& .ql-picker-item": {
11678
+ "&:hover, &.ql-selected": {
11679
+ color: "#06c",
11680
+ "& .ql-fill, & .ql-stroke.ql-fill": {
11681
+ fill: "#06c"
11682
+ },
11683
+ "& .ql-stroke, & .ql-stroke-miter": {
11684
+ stroke: "#06c"
11685
+ }
11686
+ }
11687
+ },
11688
+ "& .ql-color-picker .ql-picker-item.ql-selected, & .ql-color-picker .ql-picker-item:hover": {
11689
+ borderColor: "#000"
11690
+ }
11174
11691
  },
11175
- "& .ql-container": {
11176
- border: "1px solid $neutral300",
11177
- borderTop: "none",
11178
- borderBottomLeftRadius: "$sm",
11179
- borderBottomRightRadius: "$sm",
11180
- fontFamily: "$default"
11692
+ "@media (pointer: coarse)": {
11693
+ "& .ql-toolbar button:hover:not(.ql-active)": {
11694
+ color: "#444",
11695
+ "& .ql-fill, & .ql-stroke.ql-fill": {
11696
+ fill: "#444"
11697
+ },
11698
+ "& .ql-stroke, & .ql-stroke-miter": {
11699
+ stroke: "#444"
11700
+ }
11701
+ }
11702
+ },
11703
+ // Snow theme
11704
+ "&, & *": {
11705
+ boxSizing: "border-box"
11706
+ },
11707
+ "& .ql-hidden": {
11708
+ display: "none"
11709
+ },
11710
+ "& .ql-out-bottom, & .ql-out-top": {
11711
+ visibility: "hidden"
11712
+ },
11713
+ "& .ql-tooltip": {
11714
+ position: "absolute",
11715
+ transform: "translateY(10px)",
11716
+ backgroundColor: "#fff",
11717
+ border: "1px solid #ccc",
11718
+ boxShadow: "0 0 5px #ddd",
11719
+ color: "#444",
11720
+ padding: "5px 12px",
11721
+ whiteSpace: "nowrap",
11722
+ "& a": {
11723
+ cursor: "pointer",
11724
+ textDecoration: "none",
11725
+ lineHeight: "26px",
11726
+ color: "#06c"
11727
+ },
11728
+ "&.ql-flip": {
11729
+ transform: "translateY(-10px)"
11730
+ },
11731
+ "&::before": {
11732
+ content: "'Visit URL:'",
11733
+ lineHeight: "26px",
11734
+ marginRight: "8px"
11735
+ },
11736
+ "& input[type=text]": {
11737
+ display: "none",
11738
+ border: "1px solid #ccc",
11739
+ fontSize: "13px",
11740
+ height: "26px",
11741
+ margin: 0,
11742
+ padding: "3px 5px",
11743
+ width: "170px"
11744
+ },
11745
+ "& a.ql-preview": {
11746
+ display: "inline-block",
11747
+ maxWidth: "200px",
11748
+ overflowX: "hidden",
11749
+ textOverflow: "ellipsis",
11750
+ verticalAlign: "top"
11751
+ },
11752
+ "& a.ql-action::after": {
11753
+ borderRight: "1px solid #ccc",
11754
+ content: "'Edit'",
11755
+ marginLeft: "16px",
11756
+ paddingRight: "8px"
11757
+ },
11758
+ "& a.ql-remove::before": {
11759
+ content: "'Remove'",
11760
+ marginLeft: "8px"
11761
+ },
11762
+ "&.ql-editing a.ql-preview, &.ql-editing a.ql-remove": {
11763
+ display: "none"
11764
+ },
11765
+ "&.ql-editing input[type=text]": {
11766
+ display: "inline-block"
11767
+ },
11768
+ "&.ql-editing a.ql-action::after": {
11769
+ borderRight: 0,
11770
+ content: "'Save'",
11771
+ paddingRight: 0
11772
+ },
11773
+ "&[data-mode=link]::before": {
11774
+ content: "'Enter link:'"
11775
+ },
11776
+ "&[data-mode=formula]::before": {
11777
+ content: "'Enter formula:'"
11778
+ },
11779
+ "&[data-mode=video]::before": {
11780
+ content: "'Enter video:'"
11781
+ }
11782
+ },
11783
+ // Stroke and fill
11784
+ "& .ql-stroke": {
11785
+ fill: "none",
11786
+ stroke: "#444",
11787
+ strokeLinecap: "round",
11788
+ strokeLinejoin: "round",
11789
+ strokeWidth: "2"
11790
+ },
11791
+ "& .ql-stroke-miter": {
11792
+ fill: "none",
11793
+ stroke: "#444",
11794
+ strokeMiterlimit: "10",
11795
+ strokeWidth: "2"
11796
+ },
11797
+ "& .ql-fill, & .ql-stroke.ql-fill": {
11798
+ fill: "#444"
11799
+ },
11800
+ "& .ql-empty": {
11801
+ fill: "none"
11802
+ },
11803
+ "& .ql-even": {
11804
+ fillRule: "evenodd"
11805
+ },
11806
+ "& .ql-thin, & .ql-stroke.ql-thin": {
11807
+ strokeWidth: "1"
11808
+ },
11809
+ "& .ql-transparent": {
11810
+ opacity: 0.4
11811
+ },
11812
+ // Direction
11813
+ "& .ql-direction svg:last-child": {
11814
+ display: "none"
11815
+ },
11816
+ "& .ql-direction.ql-active svg:last-child": {
11817
+ display: "inline"
11818
+ },
11819
+ "& .ql-direction.ql-active svg:first-child": {
11820
+ display: "none"
11821
+ },
11822
+ // Picker
11823
+ "& .ql-picker": {
11824
+ color: "#444",
11825
+ display: "inline-block",
11826
+ float: "left",
11827
+ fontSize: "14px",
11828
+ fontWeight: "500",
11829
+ height: "24px",
11830
+ position: "relative",
11831
+ verticalAlign: "middle"
11832
+ },
11833
+ "& .ql-picker-label": {
11834
+ cursor: "pointer",
11835
+ display: "inline-block",
11836
+ height: "100%",
11837
+ paddingLeft: "8px",
11838
+ paddingRight: "2px",
11839
+ position: "relative",
11840
+ width: "100%",
11841
+ "&::before": {
11842
+ display: "inline-block",
11843
+ lineHeight: "22px"
11844
+ }
11845
+ },
11846
+ "& .ql-picker-options": {
11847
+ backgroundColor: "#fff",
11848
+ display: "none",
11849
+ minWidth: "100%",
11850
+ padding: "4px 8px",
11851
+ position: "absolute",
11852
+ whiteSpace: "nowrap",
11853
+ "& .ql-picker-item": {
11854
+ cursor: "pointer",
11855
+ display: "block",
11856
+ paddingBottom: "5px",
11857
+ paddingTop: "5px"
11858
+ }
11859
+ },
11860
+ "& .ql-picker.ql-expanded": {
11861
+ "& .ql-picker-label": {
11862
+ color: "#ccc",
11863
+ zIndex: 2
11864
+ },
11865
+ "& .ql-picker-options": {
11866
+ display: "block",
11867
+ marginTop: "-1px",
11868
+ top: "100%",
11869
+ zIndex: 1
11870
+ }
11871
+ },
11872
+ "& .ql-color-picker, & .ql-icon-picker": {
11873
+ width: "28px",
11874
+ "& .ql-picker-label": {
11875
+ padding: "2px 4px",
11876
+ "& svg": {
11877
+ right: "4px"
11878
+ }
11879
+ }
11880
+ },
11881
+ "& .ql-icon-picker .ql-picker-options": {
11882
+ padding: "4px 0"
11883
+ },
11884
+ "& .ql-icon-picker .ql-picker-item": {
11885
+ height: "24px",
11886
+ width: "24px",
11887
+ padding: "2px 4px"
11888
+ },
11889
+ "& .ql-color-picker .ql-picker-options": {
11890
+ padding: "3px 5px",
11891
+ width: "152px"
11892
+ },
11893
+ "& .ql-color-picker .ql-picker-item": {
11894
+ border: "1px solid transparent",
11895
+ float: "left",
11896
+ height: "16px",
11897
+ margin: "2px",
11898
+ padding: 0,
11899
+ width: "16px"
11900
+ },
11901
+ "& .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg": {
11902
+ position: "absolute",
11903
+ marginTop: "-9px",
11904
+ right: 0,
11905
+ top: "50%",
11906
+ width: "18px"
11907
+ },
11908
+ "& .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": {
11909
+ content: "attr(data-label)"
11910
+ },
11911
+ // Header picker
11912
+ "& .ql-picker.ql-header": {
11913
+ width: "98px",
11914
+ "& .ql-picker-label::before, & .ql-picker-item::before": {
11915
+ content: "'Normal'"
11916
+ },
11917
+ "& .ql-picker-label[data-value='1']::before, & .ql-picker-item[data-value='1']::before": {
11918
+ content: "'T\xEDtulo 1'"
11919
+ },
11920
+ "& .ql-picker-label[data-value='2']::before, & .ql-picker-item[data-value='2']::before": {
11921
+ content: "'T\xEDtulo 2'"
11922
+ },
11923
+ "& .ql-picker-label[data-value='3']::before, & .ql-picker-item[data-value='3']::before": {
11924
+ content: "'Heading 3'"
11925
+ },
11926
+ "& .ql-picker-label[data-value='4']::before, & .ql-picker-item[data-value='4']::before": {
11927
+ content: "'Heading 4'"
11928
+ },
11929
+ "& .ql-picker-label[data-value='5']::before, & .ql-picker-item[data-value='5']::before": {
11930
+ content: "'Heading 5'"
11931
+ },
11932
+ "& .ql-picker-label[data-value='6']::before, & .ql-picker-item[data-value='6']::before": {
11933
+ content: "'Heading 6'"
11934
+ },
11935
+ "& .ql-picker-item[data-value='1']::before": {
11936
+ fontSize: "2em"
11937
+ },
11938
+ "& .ql-picker-item[data-value='2']::before": {
11939
+ fontSize: "1.5em"
11940
+ },
11941
+ "& .ql-picker-item[data-value='3']::before": {
11942
+ fontSize: "1.17em"
11943
+ },
11944
+ "& .ql-picker-item[data-value='4']::before": {
11945
+ fontSize: "1em"
11946
+ },
11947
+ "& .ql-picker-item[data-value='5']::before": {
11948
+ fontSize: "0.83em"
11949
+ },
11950
+ "& .ql-picker-item[data-value='6']::before": {
11951
+ fontSize: "0.67em"
11952
+ }
11953
+ },
11954
+ // Font picker
11955
+ "& .ql-picker.ql-font": {
11956
+ width: "108px",
11957
+ "& .ql-picker-label::before, & .ql-picker-item::before": {
11958
+ content: "'Sans Serif'"
11959
+ },
11960
+ "& .ql-picker-label[data-value=serif]::before, & .ql-picker-item[data-value=serif]::before": {
11961
+ content: "'Serif'"
11962
+ },
11963
+ "& .ql-picker-label[data-value=monospace]::before, & .ql-picker-item[data-value=monospace]::before": {
11964
+ content: "'Monospace'"
11965
+ },
11966
+ "& .ql-picker-item[data-value=serif]::before": {
11967
+ fontFamily: "Georgia, Times New Roman, serif"
11968
+ },
11969
+ "& .ql-picker-item[data-value=monospace]::before": {
11970
+ fontFamily: "Monaco, Courier New, monospace"
11971
+ }
11972
+ },
11973
+ // Size picker
11974
+ "& .ql-picker.ql-size": {
11975
+ width: "98px",
11976
+ "& .ql-picker-label::before, & .ql-picker-item::before": {
11977
+ content: "'Normal'"
11978
+ },
11979
+ "& .ql-picker-label[data-value=small]::before, & .ql-picker-item[data-value=small]::before": {
11980
+ content: "'Small'"
11981
+ },
11982
+ "& .ql-picker-label[data-value=large]::before, & .ql-picker-item[data-value=large]::before": {
11983
+ content: "'Large'"
11984
+ },
11985
+ "& .ql-picker-label[data-value=huge]::before, & .ql-picker-item[data-value=huge]::before": {
11986
+ content: "'Huge'"
11987
+ },
11988
+ "& .ql-picker-item[data-value=small]::before": {
11989
+ fontSize: "10px"
11990
+ },
11991
+ "& .ql-picker-item[data-value=large]::before": {
11992
+ fontSize: "18px"
11993
+ },
11994
+ "& .ql-picker-item[data-value=huge]::before": {
11995
+ fontSize: "32px"
11996
+ }
11997
+ },
11998
+ // Color picker items
11999
+ "& .ql-color-picker.ql-background .ql-picker-item": {
12000
+ backgroundColor: "#fff"
12001
+ },
12002
+ "& .ql-color-picker.ql-color .ql-picker-item": {
12003
+ backgroundColor: "#000"
12004
+ },
12005
+ // Code block container
12006
+ "& .ql-code-block-container": {
12007
+ position: "relative",
12008
+ "& .ql-ui": {
12009
+ right: "5px",
12010
+ top: "5px"
12011
+ }
12012
+ },
12013
+ // Toolbar snow adjustments
12014
+ "&.ql-toolbar, & .ql-toolbar.ql-snow": {
12015
+ border: "1px solid #ccc",
12016
+ boxSizing: "border-box",
12017
+ fontFamily: "Helvetica Neue, Helvetica, Arial, sans-serif",
12018
+ padding: "8px",
12019
+ "& .ql-formats": {
12020
+ marginRight: "15px"
12021
+ },
12022
+ "& .ql-picker-label": {
12023
+ border: "1px solid transparent"
12024
+ },
12025
+ "& .ql-picker-options": {
12026
+ border: "1px solid transparent",
12027
+ boxShadow: "rgba(0, 0, 0, 0.2) 0 2px 8px"
12028
+ },
12029
+ "& .ql-picker.ql-expanded .ql-picker-label": {
12030
+ borderColor: "#ccc"
12031
+ },
12032
+ "& .ql-picker.ql-expanded .ql-picker-options": {
12033
+ borderColor: "#ccc"
12034
+ },
12035
+ "& .ql-color-picker .ql-picker-item.ql-selected, & .ql-color-picker .ql-picker-item:hover": {
12036
+ borderColor: "#000"
12037
+ }
11181
12038
  },
11182
- "& .ql-snow .ql-picker.ql-header .ql-picker-item[data-value='1']::before": {
11183
- content: "T\xEDtulo 1"
12039
+ "& .ql-toolbar.ql-snow + .ql-container.ql-snow": {
12040
+ borderTop: 0
11184
12041
  },
11185
- "& .ql-snow .ql-picker.ql-header .ql-picker-item[data-value='2']::before": {
11186
- content: "T\xEDtulo 2"
12042
+ // Container snow
12043
+ "& .ql-container.ql-snow": {
12044
+ border: "1px solid #ccc"
11187
12045
  }
11188
12046
  });
11189
12047
 
@@ -11269,6 +12127,7 @@ var QuillComponent = ({
11269
12127
  const index = selection ? selection.index : quill.getLength();
11270
12128
  quill.insertEmbed(index, "image", uploadedFile.url);
11271
12129
  quill.setSelection(index + 1, 0);
12130
+ onChange == null ? void 0 : onChange(quill.root.innerHTML);
11272
12131
  } catch (error) {
11273
12132
  console.error("Erro no upload:", error);
11274
12133
  addToast({