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