@flozy/editor 5.3.5 → 5.3.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Editor/CommonEditor.js +8 -14
- package/dist/Editor/Editor.css +22 -58
- package/dist/Editor/Elements/Accordion/Accordion.js +1 -8
- package/dist/Editor/Elements/AppHeader/AppHeader.js +6 -6
- package/dist/Editor/Elements/Button/EditorButton.js +2 -9
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +2 -4
- package/dist/Editor/Elements/Divider/Divider.js +9 -24
- package/dist/Editor/Elements/Embed/Image.js +12 -31
- package/dist/Editor/Elements/Embed/Video.js +2 -13
- package/dist/Editor/Elements/Form/Form.js +0 -1
- package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
- package/dist/Editor/Elements/FreeGrid/styles.js +1 -2
- package/dist/Editor/Elements/Grid/GridItem.js +0 -2
- package/dist/Editor/Elements/Grid/Styles.js +0 -44
- package/dist/Editor/Elements/List/CheckList.js +1 -2
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +0 -1
- package/dist/Editor/Elements/Search/SearchAttachment.js +0 -1
- package/dist/Editor/Elements/Signature/SignaturePopup.js +4 -4
- package/dist/Editor/Elements/SimpleText/index.js +1 -8
- package/dist/Editor/Elements/SimpleText/style.js +1 -10
- package/dist/Editor/Elements/TopBanner/TopBanner.js +1 -2
- package/dist/Editor/MiniEditor.js +1 -15
- package/dist/Editor/Styles/EditorStyles.js +3 -5
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +1 -17
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +3 -5
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +72 -210
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +8 -55
- package/dist/Editor/Toolbar/Toolbar.js +0 -6
- package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
- package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
- package/dist/Editor/common/ColorPickerButton.js +3 -5
- package/dist/Editor/common/DnD/Draggable.js +1 -2
- package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
- package/dist/Editor/common/Icon.js +0 -6
- package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -2
- package/dist/Editor/common/ImageSelector/Styles.js +6 -47
- package/dist/Editor/common/ImageSelector/UploadStyles.js +6 -18
- package/dist/Editor/common/MentionsPopup/Styles.js +122 -109
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +0 -1
- package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
- package/dist/Editor/common/RnD/ShadowElement.js +1 -1
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -14
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +6 -9
- package/dist/Editor/common/RnD/index.js +1 -2
- package/dist/Editor/common/Section/index.js +3 -3
- package/dist/Editor/common/Section/styles.js +1 -5
- package/dist/Editor/common/Shorthands/elements.js +1 -13
- package/dist/Editor/common/StyleBuilder/fieldStyle.js +1 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -9
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +3 -27
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +2 -15
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +2 -10
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +1 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +0 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +4 -4
- package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +6 -22
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -21
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -15
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +0 -7
- package/dist/Editor/common/StyleBuilder/index.js +9 -17
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +0 -4
- package/dist/Editor/common/ToolbarIcon.js +1 -2
- package/dist/Editor/common/Uploader.js +36 -46
- package/dist/Editor/common/iconListV2.js +130 -348
- package/dist/Editor/common/iconslist.js +3 -6
- package/dist/Editor/commonStyle.js +4 -290
- package/dist/Editor/helper/index.js +3 -16
- package/dist/Editor/helper/theme.js +1 -24
- package/dist/Editor/hooks/useMouseMove.js +2 -5
- package/dist/Editor/plugins/withCustomDeleteBackward.js +2 -33
- package/dist/Editor/plugins/withEmbeds.js +26 -30
- package/dist/Editor/utils/SlateUtilityFunctions.js +4 -27
- package/dist/Editor/utils/button.js +4 -4
- package/dist/Editor/utils/helper.js +13 -40
- package/dist/Editor/utils/pageSettings.js +2 -14
- package/package.json +2 -2
- package/dist/Editor/Elements/DataView/DataView.js +0 -124
- package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -67
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -33
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -162
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -40
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -67
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -35
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -39
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -74
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -64
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -106
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -174
- package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -37
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -111
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -60
- package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -36
- package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -160
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -190
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -42
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -30
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
- package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -179
- package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -112
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -227
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -80
- package/dist/Editor/Elements/DataView/Layouts/colStyles.js +0 -10
- package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -281
- package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
- package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -74
- package/dist/Editor/Elements/DataView/styles.js +0 -154
- package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +0 -79
- package/dist/Editor/helper/enforceDateFormat.js +0 -41
- package/dist/Editor/utils/dataView.js +0 -43
@@ -90,16 +90,12 @@ const usePopupStyle = theme => ({
|
|
90
90
|
},
|
91
91
|
"& .more-btn-cbs": {
|
92
92
|
color: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
|
93
|
-
border: `
|
94
|
-
paddingTop: "10px"
|
95
|
-
"& svg": {
|
96
|
-
width: "20px",
|
97
|
-
height: "24px"
|
98
|
-
}
|
93
|
+
border: `1.5px solid ${theme?.palette?.editor?.closeButtonSvgStroke}`,
|
94
|
+
paddingTop: "10px"
|
99
95
|
}
|
100
96
|
},
|
101
97
|
"@media only screen and (max-width: 599px)": {
|
102
|
-
|
98
|
+
margin: "10px !important",
|
103
99
|
background: "unset",
|
104
100
|
boxShadow: "unset"
|
105
101
|
// border: "none",
|
@@ -129,9 +125,6 @@ const usePopupStyle = theme => ({
|
|
129
125
|
width: "330px"
|
130
126
|
}
|
131
127
|
},
|
132
|
-
"& .MuiTypography-root": {
|
133
|
-
padding: "0px"
|
134
|
-
},
|
135
128
|
"&.templates": {
|
136
129
|
width: "500px",
|
137
130
|
maxWidth: "100%",
|
@@ -153,7 +146,6 @@ const usePopupStyle = theme => ({
|
|
153
146
|
},
|
154
147
|
"& .MuiTabScrollButton-horizontal": {
|
155
148
|
borderBottom: "unset !important",
|
156
|
-
width: "10px",
|
157
149
|
"& svg": {
|
158
150
|
color: theme?.palette?.editor?.closeButtonSvgStroke
|
159
151
|
}
|
@@ -185,11 +177,6 @@ const usePopupStyle = theme => ({
|
|
185
177
|
justifyContent: "start",
|
186
178
|
borderRadius: "10px !important",
|
187
179
|
transition: "background-color 0.3s ease",
|
188
|
-
// "& .colorBoxElementIcon": {
|
189
|
-
// "& path": {
|
190
|
-
// fill: theme?.palette?.type === "dark" ? "none" : "",
|
191
|
-
// },
|
192
|
-
// },
|
193
180
|
"& .signatureElementIcon": {
|
194
181
|
"& path": {
|
195
182
|
fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
|
@@ -223,37 +210,37 @@ const usePopupStyle = theme => ({
|
|
223
210
|
}
|
224
211
|
},
|
225
212
|
"&:hover": {
|
226
|
-
backgroundColor: `${theme?.palette?.editor?.
|
213
|
+
backgroundColor: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
|
227
214
|
"& .signatureElementIcon": {
|
228
215
|
"& path": {
|
229
|
-
fill: `${theme?.palette?.editor?.
|
216
|
+
fill: `${theme?.palette?.editor?.menuOptionTextColor}`
|
230
217
|
}
|
231
218
|
},
|
232
219
|
"& .commonSvgStyle": {
|
233
220
|
"& path": {
|
234
|
-
stroke: `${theme?.palette?.editor?.
|
221
|
+
stroke: `${theme?.palette?.editor?.menuOptionTextColor}`
|
235
222
|
}
|
236
223
|
},
|
237
224
|
"& .commonSvgStyle2": {
|
238
225
|
"& path": {
|
239
|
-
stroke: `${theme?.palette?.editor?.
|
226
|
+
stroke: `${theme?.palette?.editor?.menuOptionTextColor}`
|
240
227
|
}
|
241
228
|
},
|
242
229
|
"& .colorBoxElementIcon": {
|
243
230
|
"& path": {
|
244
|
-
stroke: `${theme?.palette?.editor?.
|
231
|
+
stroke: `${theme?.palette?.editor?.menuOptionTextColor}`,
|
245
232
|
fill: "none"
|
246
233
|
}
|
247
234
|
},
|
248
235
|
"& .gridElementIcon": {
|
249
236
|
"& path": {
|
250
|
-
stroke: `${theme?.palette?.editor?.
|
251
|
-
fill: `${theme?.palette?.editor?.
|
237
|
+
stroke: `${theme?.palette?.editor?.menuOptionTextColor}`,
|
238
|
+
fill: `${theme?.palette?.editor?.menuOptionTextColor}`
|
252
239
|
}
|
253
240
|
},
|
254
241
|
"& .newLineElementIcon": {
|
255
242
|
"& path": {
|
256
|
-
fill: `${theme?.palette?.editor?.
|
243
|
+
fill: `${theme?.palette?.editor?.menuOptionTextColor}`
|
257
244
|
}
|
258
245
|
}
|
259
246
|
},
|
@@ -297,11 +284,8 @@ const usePopupStyle = theme => ({
|
|
297
284
|
},
|
298
285
|
"& .textFormatMUIIcon": {
|
299
286
|
"& svg": {
|
300
|
-
color:
|
287
|
+
color: theme?.palette?.editor?.closeButtonSvgStroke
|
301
288
|
}
|
302
|
-
},
|
303
|
-
"& .npr-0": {
|
304
|
-
paddingRight: "0px !important"
|
305
289
|
}
|
306
290
|
},
|
307
291
|
textFormatLabel: {
|
@@ -335,8 +319,8 @@ const usePopupStyle = theme => ({
|
|
335
319
|
borderBottom: `1px solid ${theme?.palette?.editor?.deviderBgColor} !important`
|
336
320
|
},
|
337
321
|
textFormatField: {
|
338
|
-
marginBottom: "
|
339
|
-
marginTop: "
|
322
|
+
marginBottom: "16px",
|
323
|
+
marginTop: "10px"
|
340
324
|
},
|
341
325
|
textFormatField1: {
|
342
326
|
marginBottom: "16px",
|
@@ -350,111 +334,61 @@ const usePopupStyle = theme => ({
|
|
350
334
|
marginBottom: "16px"
|
351
335
|
},
|
352
336
|
textAlignButtons: {
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
},
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
fill: `${theme?.palette?.editor?.textColor}`,
|
398
|
-
stroke: `${theme?.palette?.editor?.textColor}`
|
399
|
-
},
|
400
|
-
"& path": {
|
401
|
-
fill: `${theme?.palette?.editor?.textColor}`,
|
402
|
-
stroke: `${theme?.palette?.editor?.textColor}`
|
403
|
-
}
|
404
|
-
}
|
405
|
-
}
|
337
|
+
// "& .justifyIcon": {
|
338
|
+
// "& path": {
|
339
|
+
// fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
|
340
|
+
// stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
|
341
|
+
// },
|
342
|
+
// },
|
343
|
+
// "& .textAlignIconSameStyles": {
|
344
|
+
// "& path": {
|
345
|
+
// fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
|
346
|
+
// },
|
347
|
+
// },
|
348
|
+
// "& .orderedListIcon": {
|
349
|
+
// "& path": {
|
350
|
+
// stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
|
351
|
+
// },
|
352
|
+
// "& text": {
|
353
|
+
// fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
|
354
|
+
// },
|
355
|
+
// },
|
356
|
+
// "& .bulletedListTextIcon": {
|
357
|
+
// "& path": {
|
358
|
+
// fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
|
359
|
+
// stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
|
360
|
+
// },
|
361
|
+
// "& circle": {
|
362
|
+
// fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
|
363
|
+
// },
|
364
|
+
// },
|
365
|
+
// "& .checkedListTextIcon": {
|
366
|
+
// "& path": {
|
367
|
+
// stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
|
368
|
+
// },
|
369
|
+
// },
|
370
|
+
// "& .accordianListTextIcon": {
|
371
|
+
// // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`,
|
372
|
+
// "& svg": {
|
373
|
+
// fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
|
374
|
+
// stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
|
375
|
+
// },
|
376
|
+
// "& path": {
|
377
|
+
// fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
|
378
|
+
// stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
|
379
|
+
// },
|
380
|
+
// },
|
406
381
|
},
|
407
382
|
autoCompleteaFontFamily: {
|
408
383
|
"& .MuiOutlinedInput-root": {
|
409
384
|
borderRadius: "8px",
|
410
385
|
backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor}`,
|
411
|
-
fontSize: "
|
412
|
-
fontWeight: "400",
|
386
|
+
fontSize: "14px",
|
413
387
|
height: "36px",
|
414
|
-
paddingLeft: "
|
388
|
+
paddingLeft: "15px !important"
|
415
389
|
},
|
416
390
|
"& .MuiOutlinedInput-notchedOutline": {
|
417
391
|
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
|
418
|
-
},
|
419
|
-
'& .MuiInputBase-root': {
|
420
|
-
'& input': {
|
421
|
-
border: "none !important"
|
422
|
-
}
|
423
|
-
},
|
424
|
-
"& svg": {
|
425
|
-
width: "20px",
|
426
|
-
height: "24px"
|
427
|
-
}
|
428
|
-
},
|
429
|
-
fontFamilyListOptions: {
|
430
|
-
"& .MuiAutocomplete-listbox": {
|
431
|
-
padding: "0px",
|
432
|
-
"&::-webkit-scrollbar-thumb": {
|
433
|
-
background: `none !important`
|
434
|
-
},
|
435
|
-
"&::-webkit-scrollbar-track": {
|
436
|
-
visibility: "hidden"
|
437
|
-
},
|
438
|
-
"&::-webkit-scrollbar-thumb": {
|
439
|
-
background: `${theme?.palette?.editor?.brainPopupScroll} !important`
|
440
|
-
},
|
441
|
-
"&::-webkit-scrollbar-track": {
|
442
|
-
visibility: "hidden"
|
443
|
-
},
|
444
|
-
"& li": {
|
445
|
-
margin: "5px",
|
446
|
-
borderRadius: "8px",
|
447
|
-
color: theme?.palette?.editor?.menuOptionTextColor,
|
448
|
-
fontSize: '14px',
|
449
|
-
padding: '8px 12px',
|
450
|
-
'&[aria-selected="true"]': {
|
451
|
-
backgroundColor: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`
|
452
|
-
}
|
453
|
-
}
|
454
|
-
},
|
455
|
-
"& .MuiPaper-root": {
|
456
|
-
borderRadius: "8px",
|
457
|
-
background: theme?.palette?.editor?.textWeightPopUpBackground
|
458
392
|
}
|
459
393
|
},
|
460
394
|
textFormatSelect: {
|
@@ -466,10 +400,6 @@ const usePopupStyle = theme => ({
|
|
466
400
|
fontFamily: "Inter, sans-serif",
|
467
401
|
"& .MuiOutlinedInput-notchedOutline": {
|
468
402
|
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
|
469
|
-
},
|
470
|
-
"& svg": {
|
471
|
-
width: "20px",
|
472
|
-
height: "24px"
|
473
403
|
}
|
474
404
|
},
|
475
405
|
textFormatSelectOptions: {
|
@@ -491,32 +421,15 @@ const usePopupStyle = theme => ({
|
|
491
421
|
boxShadow: "0px 4px 18px 0px rgba(0, 0, 0, 0.05)"
|
492
422
|
},
|
493
423
|
dividerGrid: {
|
494
|
-
margin: "5px 0px 10px 0px"
|
495
|
-
|
424
|
+
margin: "5px 0px 10px 0px",
|
425
|
+
background: `${theme?.palette?.editor?.deviderBgColor} !important`
|
496
426
|
},
|
497
|
-
|
498
427
|
textFormatColorWrpr: {
|
499
428
|
display: "flex",
|
500
429
|
alignItems: "center",
|
501
430
|
marginBottom: "8px"
|
502
431
|
},
|
503
|
-
textFormatCG: {
|
504
|
-
alignItems: "flexStart",
|
505
|
-
justifyContent: "center",
|
506
|
-
flexDirection: "row",
|
507
|
-
"& .accordionIcon": {
|
508
|
-
paddingLeft: "0px",
|
509
|
-
paddingRight: "12px",
|
510
|
-
"&:not(.btnActive):hover": {
|
511
|
-
background: "unset",
|
512
|
-
"& .accordianIconSvgTextFormat": {
|
513
|
-
"& path": {
|
514
|
-
stroke: theme?.palette?.editor?.textColor
|
515
|
-
}
|
516
|
-
}
|
517
|
-
}
|
518
|
-
}
|
519
|
-
},
|
432
|
+
textFormatCG: {},
|
520
433
|
evenSpace: {
|
521
434
|
display: "flex",
|
522
435
|
flexDirection: "row",
|
@@ -528,36 +441,7 @@ const usePopupStyle = theme => ({
|
|
528
441
|
"&.typo-icons": {
|
529
442
|
"& button": {
|
530
443
|
width: "31px",
|
531
|
-
height: "36px"
|
532
|
-
"&:hover": {
|
533
|
-
background: "unset"
|
534
|
-
},
|
535
|
-
"&:not(.btnActive):hover": {
|
536
|
-
background: "unset",
|
537
|
-
"& svg": {
|
538
|
-
color: `${theme?.palette?.editor?.textColor} !important`
|
539
|
-
},
|
540
|
-
"& .linkIcon": {
|
541
|
-
"& path": {
|
542
|
-
stroke: theme?.palette?.editor?.textColor
|
543
|
-
}
|
544
|
-
}
|
545
|
-
}
|
546
|
-
},
|
547
|
-
alignItems: "flexStart",
|
548
|
-
justifyContent: "center",
|
549
|
-
flexDirection: "row",
|
550
|
-
"&:hover": {
|
551
|
-
background: "unset"
|
552
|
-
},
|
553
|
-
"& .customSelectTool": {
|
554
|
-
color: theme?.palette?.editor?.closeButtonSvgStroke,
|
555
|
-
fontWeight: "510",
|
556
|
-
"& svg": {
|
557
|
-
marginTop: "8px",
|
558
|
-
width: "16px",
|
559
|
-
height: "8px"
|
560
|
-
}
|
444
|
+
height: "36px"
|
561
445
|
}
|
562
446
|
},
|
563
447
|
"&.text-decorations-wrpr": {
|
@@ -570,24 +454,15 @@ const usePopupStyle = theme => ({
|
|
570
454
|
fontSize: "14px",
|
571
455
|
marginBottom: "5px",
|
572
456
|
paddingLeft: "5px",
|
573
|
-
marginTop: "4px",
|
574
457
|
fontWeight: 500,
|
575
458
|
color: theme?.palette?.editor?.textColor || "#000"
|
576
459
|
},
|
577
460
|
typoLabel2: {
|
578
461
|
fontSize: "14px",
|
579
|
-
marginBottom: "
|
580
|
-
|
462
|
+
marginBottom: "5px",
|
463
|
+
paddingLeft: "10px",
|
581
464
|
fontWeight: 500
|
582
465
|
},
|
583
|
-
typoLabel3: {
|
584
|
-
fontSize: "14px",
|
585
|
-
marginBottom: "10px",
|
586
|
-
paddingLeft: "5px",
|
587
|
-
marginTop: "4px",
|
588
|
-
fontWeight: 500,
|
589
|
-
color: theme?.palette?.editor?.textColor || "#000"
|
590
|
-
},
|
591
466
|
templateCard: {
|
592
467
|
borderRadius: "10px",
|
593
468
|
boxShadow: "none",
|
@@ -660,7 +535,6 @@ const usePopupStyle = theme => ({
|
|
660
535
|
border: `1px solid ${theme?.palette?.editor?.borderColor}`,
|
661
536
|
borderRadius: "7px",
|
662
537
|
backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
|
663
|
-
height: "36px",
|
664
538
|
"& button": {
|
665
539
|
backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
|
666
540
|
marginRight: "0px",
|
@@ -692,17 +566,12 @@ const usePopupStyle = theme => ({
|
|
692
566
|
width: "2px",
|
693
567
|
height: "25px",
|
694
568
|
margin: "5px 0px"
|
695
|
-
},
|
696
|
-
"& svg": {
|
697
|
-
width: "20px",
|
698
|
-
height: "24px"
|
699
569
|
}
|
700
570
|
},
|
701
571
|
btnGroup2: {
|
702
572
|
border: `1px solid ${theme?.palette?.editor?.borderColor}`,
|
703
573
|
borderRadius: "7px",
|
704
574
|
backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
|
705
|
-
height: "36px",
|
706
575
|
"& button": {
|
707
576
|
backgroundColor: theme?.palette?.editor?.background,
|
708
577
|
marginRight: "0px",
|
@@ -721,10 +590,6 @@ const usePopupStyle = theme => ({
|
|
721
590
|
"&.no-hover": {
|
722
591
|
border: `1px solid #ffffff00`,
|
723
592
|
borderRadius: "7px 0px 0px 7px"
|
724
|
-
},
|
725
|
-
"& svg": {
|
726
|
-
width: "20px",
|
727
|
-
height: "24px"
|
728
593
|
}
|
729
594
|
},
|
730
595
|
"& .colorBox": {
|
@@ -784,14 +649,14 @@ const usePopupStyle = theme => ({
|
|
784
649
|
textTransform: "none",
|
785
650
|
textDecorationLine: "underline",
|
786
651
|
textUnderlineOffset: "2px",
|
787
|
-
padding: "0px"
|
652
|
+
padding: "0px 10px"
|
788
653
|
},
|
789
654
|
defaultBtn2: {
|
790
655
|
color: `${theme?.palette?.editor?.deafultColorOptionTextColor} !important`,
|
791
656
|
textTransform: "none",
|
792
657
|
textDecorationLine: "underline",
|
793
658
|
textUnderlineOffset: "2px",
|
794
|
-
padding: "0px"
|
659
|
+
padding: "0px 10px"
|
795
660
|
},
|
796
661
|
defaultBtn: {
|
797
662
|
color: "#0F172A",
|
@@ -857,10 +722,7 @@ const usePopupStyle = theme => ({
|
|
857
722
|
},
|
858
723
|
"& .textFontArrows": {
|
859
724
|
"& svg": {
|
860
|
-
stroke: theme?.palette?.editor?.
|
861
|
-
color: theme?.palette?.editor?.closeButtonSvgStroke,
|
862
|
-
width: "10px",
|
863
|
-
height: "12px"
|
725
|
+
stroke: theme?.palette?.editor?.textColor
|
864
726
|
}
|
865
727
|
}
|
866
728
|
},
|
@@ -879,7 +741,7 @@ const usePopupStyle = theme => ({
|
|
879
741
|
"& .popup_tabs": {
|
880
742
|
backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
|
881
743
|
"@media only screen and (max-width: 899px)": {
|
882
|
-
width:
|
744
|
+
width: '100% !important'
|
883
745
|
}
|
884
746
|
},
|
885
747
|
"& .popup_tabs-header": {
|
@@ -1081,10 +943,10 @@ const usePopupStyle = theme => ({
|
|
1081
943
|
color: `${theme?.palette?.editor?.menuOptionTextColor} !important`,
|
1082
944
|
background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
|
1083
945
|
"& .orderedListIcon": {
|
1084
|
-
"&
|
946
|
+
"& path": {
|
1085
947
|
stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
|
1086
948
|
},
|
1087
|
-
"&
|
949
|
+
"& text": {
|
1088
950
|
fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
|
1089
951
|
}
|
1090
952
|
},
|
@@ -14,8 +14,6 @@ import SelectSuperSubscript from "./MiniTextFormat/SelectSuperSubscript";
|
|
14
14
|
import { ColorResetIcon, TextDefaultStyleIcon } from "../../common/iconListV2";
|
15
15
|
import FontFamilyAutocomplete from "../FormatTools/FontFamilyAutocomplete";
|
16
16
|
import { useEditorContext } from "../../hooks/useMouseMove";
|
17
|
-
import LineSpacing from "../../common/StyleBuilder/fieldTypes/lineSpacing";
|
18
|
-
import { getPageSettings } from "../../utils/pageSettings";
|
19
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
20
18
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
21
19
|
const allTools = toolbarGroups.flat();
|
@@ -33,18 +31,10 @@ const TextFormat = props => {
|
|
33
31
|
const [anchorEl, setAnchorEl] = useState(null);
|
34
32
|
const [type, setType] = useState(null);
|
35
33
|
const open = Boolean(anchorEl);
|
36
|
-
const {
|
37
|
-
element: pageSt
|
38
|
-
} = getPageSettings(editor) || {};
|
39
|
-
const pageSettingLine = pageSt?.pageProps?.lineHeight;
|
40
34
|
const {
|
41
35
|
fontFamilies,
|
42
36
|
theme
|
43
37
|
} = useEditorContext();
|
44
|
-
const {
|
45
|
-
activeBreakPoint
|
46
|
-
} = useEditorContext();
|
47
|
-
const breakpoint = activeBreakPoint === "" ? "lg" : activeBreakPoint;
|
48
38
|
const fontWeight = allTools.find(f => f.format === "fontWeight");
|
49
39
|
const fontStyle = allTools.filter(f => f.type === "mark" && f.format !== "strikethrough" && f.format !== "superscript" && f.format !== "subscript");
|
50
40
|
const fontAlign = allTools.filter(f => f.format?.indexOf("align") >= 0);
|
@@ -61,8 +51,6 @@ const TextFormat = props => {
|
|
61
51
|
color: "",
|
62
52
|
bgColor: ""
|
63
53
|
};
|
64
|
-
let lineSpacingValue = activeMark(editor, 'lineHeight');
|
65
|
-
lineSpacingValue = lineSpacingValue?.[breakpoint] !== undefined ? lineSpacingValue : pageSettingLine;
|
66
54
|
const handleColorPicker = type => e => {
|
67
55
|
setType(type);
|
68
56
|
setAnchorEl(e.currentTarget);
|
@@ -102,13 +90,6 @@ const TextFormat = props => {
|
|
102
90
|
value
|
103
91
|
});
|
104
92
|
};
|
105
|
-
const handleLineSpacing = data => {
|
106
|
-
const [[format, value]] = Object.entries(data);
|
107
|
-
addMarkData(editor, {
|
108
|
-
format,
|
109
|
-
value
|
110
|
-
});
|
111
|
-
};
|
112
93
|
return /*#__PURE__*/_jsxs(Grid, {
|
113
94
|
container: true,
|
114
95
|
sx: classes.textFormatWrapper,
|
@@ -137,7 +118,6 @@ const TextFormat = props => {
|
|
137
118
|
format: "fontFamily",
|
138
119
|
val: Object.values(fontFamilyMap)[0]
|
139
120
|
}),
|
140
|
-
className: "npr-0",
|
141
121
|
children: "Default Text"
|
142
122
|
})
|
143
123
|
})]
|
@@ -162,7 +142,7 @@ const TextFormat = props => {
|
|
162
142
|
children: [/*#__PURE__*/_jsx(Typography, {
|
163
143
|
variant: "body1",
|
164
144
|
color: "primary",
|
165
|
-
sx: classes.
|
145
|
+
sx: classes.typoLabel,
|
166
146
|
children: "Font Weight"
|
167
147
|
}), /*#__PURE__*/_jsx(Grid, {
|
168
148
|
item: true,
|
@@ -179,11 +159,10 @@ const TextFormat = props => {
|
|
179
159
|
}), /*#__PURE__*/_jsxs(Grid, {
|
180
160
|
item: true,
|
181
161
|
xs: 6,
|
182
|
-
className: "npr-0",
|
183
162
|
children: [/*#__PURE__*/_jsx(Typography, {
|
184
163
|
variant: "body1",
|
185
164
|
color: "primary",
|
186
|
-
sx: classes.
|
165
|
+
sx: classes.typoLabel,
|
187
166
|
children: "Font Size"
|
188
167
|
}), /*#__PURE__*/_jsx(Grid, {
|
189
168
|
item: true,
|
@@ -363,41 +342,15 @@ const TextFormat = props => {
|
|
363
342
|
editor: editor,
|
364
343
|
...m
|
365
344
|
}, `pptool_mark_${i}_${m.id}`);
|
345
|
+
}), /*#__PURE__*/_jsx(SelectSuperSubscript, {
|
346
|
+
classes: classes,
|
347
|
+
editor: editor,
|
348
|
+
closeMainPopup: closeMainPopup || onClose
|
366
349
|
}), /*#__PURE__*/_jsx(LinkButton, {
|
367
350
|
active: isBlockActive(editor, link.format),
|
368
351
|
editor: editor,
|
369
352
|
customProps: customProps
|
370
|
-
}, link.id)
|
371
|
-
classes: classes,
|
372
|
-
editor: editor,
|
373
|
-
closeMainPopup: closeMainPopup || onClose
|
374
|
-
})]
|
375
|
-
})]
|
376
|
-
}), /*#__PURE__*/_jsx(Grid, {
|
377
|
-
item: true,
|
378
|
-
xs: 12,
|
379
|
-
sx: classes.dividerGrid,
|
380
|
-
children: /*#__PURE__*/_jsx(Divider, {})
|
381
|
-
}), /*#__PURE__*/_jsxs(Grid, {
|
382
|
-
item: true,
|
383
|
-
xs: 12,
|
384
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
385
|
-
variant: "body1",
|
386
|
-
color: "primary",
|
387
|
-
sx: classes.typoLabel,
|
388
|
-
children: "Line Spacing"
|
389
|
-
}), /*#__PURE__*/_jsx(Grid, {
|
390
|
-
item: true,
|
391
|
-
xs: 12,
|
392
|
-
className: "typo-icons",
|
393
|
-
sx: classes.evenSpace,
|
394
|
-
children: /*#__PURE__*/_jsx(LineSpacing, {
|
395
|
-
value: lineSpacingValue,
|
396
|
-
onChange: handleLineSpacing,
|
397
|
-
data: {
|
398
|
-
key: 'lineHeight'
|
399
|
-
}
|
400
|
-
})
|
353
|
+
}, link.id)]
|
401
354
|
})]
|
402
355
|
}), /*#__PURE__*/_jsx(Grid, {
|
403
356
|
item: true,
|
@@ -414,7 +367,7 @@ const TextFormat = props => {
|
|
414
367
|
children: /*#__PURE__*/_jsx(Typography, {
|
415
368
|
variant: "body1",
|
416
369
|
color: "primary",
|
417
|
-
sx: classes.
|
370
|
+
sx: classes.typoLabel,
|
418
371
|
children: "Decorations"
|
419
372
|
})
|
420
373
|
}), /*#__PURE__*/_jsxs(Grid, {
|
@@ -32,7 +32,6 @@ import ColorboxButton from "../Elements/Colorbox/ColorboxButton.js";
|
|
32
32
|
import DividerButton from "../Elements/Divider/DividerButton.js";
|
33
33
|
import EmbedScript from "../Elements/EmbedScript/EmbedScript.js";
|
34
34
|
import FreeGridButton from "../Elements/FreeGrid/FreeGridButton.js";
|
35
|
-
import DataViewButton from "../Elements/DataView/DataViewButton.js";
|
36
35
|
import SearchButton from "../Elements/Search/SearchButton.js";
|
37
36
|
import { jsx as _jsx } from "react/jsx-runtime";
|
38
37
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -119,11 +118,6 @@ export const RenderToolbarIcon = props => {
|
|
119
118
|
editor: editor,
|
120
119
|
icoBtnType: icoBtnType
|
121
120
|
}, element.id);
|
122
|
-
case "dataView":
|
123
|
-
return /*#__PURE__*/_jsx(DataViewButton, {
|
124
|
-
editor: editor,
|
125
|
-
icoBtnType: icoBtnType
|
126
|
-
}, element.id);
|
127
121
|
case "id":
|
128
122
|
return /*#__PURE__*/_jsx(Id, {
|
129
123
|
editor: editor
|
@@ -2,21 +2,21 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
3
3
|
const SettingsIcon = props => {
|
4
4
|
return /*#__PURE__*/_jsxs("svg", {
|
5
|
-
width: "
|
5
|
+
width: "17",
|
6
6
|
height: "18",
|
7
|
-
viewBox: "0 0
|
7
|
+
viewBox: "0 0 17 18",
|
8
8
|
fill: "none",
|
9
9
|
xmlns: "http://www.w3.org/2000/svg",
|
10
10
|
...props,
|
11
11
|
children: [/*#__PURE__*/_jsx("path", {
|
12
|
-
d: "
|
12
|
+
d: "M8.5 11.125C9.6736 11.125 10.625 10.1736 10.625 9C10.625 7.82639 9.6736 6.875 8.5 6.875C7.32639 6.875 6.375 7.82639 6.375 9C6.375 10.1736 7.32639 11.125 8.5 11.125Z",
|
13
13
|
stroke: "#64748B",
|
14
14
|
strokeWidth: "1.5",
|
15
15
|
strokeMiterlimit: "10",
|
16
16
|
strokeLinecap: "round",
|
17
17
|
strokeLinejoin: "round"
|
18
18
|
}), /*#__PURE__*/_jsx("path", {
|
19
|
-
d: "M1.
|
19
|
+
d: "M1.4165 9.62343V8.37676C1.4165 7.6401 2.01859 7.03093 2.76234 7.03093C4.04442 7.03093 4.56859 6.12426 3.924 5.01218C3.55567 4.37468 3.77525 3.54593 4.41984 3.1776L5.64525 2.47635C6.20484 2.14343 6.92734 2.34176 7.26025 2.90135L7.33817 3.03593C7.97567 4.14801 9.024 4.14801 9.66859 3.03593L9.7465 2.90135C10.0794 2.34176 10.8019 2.14343 11.3615 2.47635L12.5869 3.1776C13.2315 3.54593 13.4511 4.37468 13.0828 5.01218C12.4382 6.12426 12.9623 7.03093 14.2444 7.03093C14.9811 7.03093 15.5903 7.63301 15.5903 8.37676V9.62343C15.5903 10.3601 14.9882 10.9693 14.2444 10.9693C12.9623 10.9693 12.4382 11.8759 13.0828 12.988C13.4511 13.6326 13.2315 14.4543 12.5869 14.8226L11.3615 15.5238C10.8019 15.8568 10.0794 15.6584 9.7465 15.0988L9.66859 14.9643C9.03109 13.8522 7.98275 13.8522 7.33817 14.9643L7.26025 15.0988C6.92734 15.6584 6.20484 15.8568 5.64525 15.5238L4.41984 14.8226C3.77525 14.4543 3.55567 13.6255 3.924 12.988C4.56859 11.8759 4.04442 10.9693 2.76234 10.9693C2.01859 10.9693 1.4165 10.3601 1.4165 9.62343Z",
|
20
20
|
stroke: "#64748B",
|
21
21
|
strokeWidth: "1.5",
|
22
22
|
strokeMiterlimit: "10",
|