@flozy/editor 10.4.4 → 10.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/Editor/CommonEditor.js +2 -3
  2. package/dist/Editor/Elements/Button/EditorButton.js +2 -0
  3. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +2 -4
  4. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +8 -23
  5. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +1 -5
  6. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +2 -3
  7. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -11
  8. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +4 -8
  9. package/dist/Editor/Elements/Embed/Image.js +2 -3
  10. package/dist/Editor/Elements/EmbedScript/Code.js +2 -14
  11. package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +28 -57
  12. package/dist/Editor/Elements/Form/Form.js +168 -181
  13. package/dist/Editor/Elements/Form/FormElements/FormText.js +6 -23
  14. package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +2 -3
  15. package/dist/Editor/Elements/Form/FormField.js +4 -10
  16. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -5
  17. package/dist/Editor/Elements/FreeGrid/Options/More.js +1 -1
  18. package/dist/Editor/Elements/FreeGrid/Options/sectionItemOptions.js +1 -1
  19. package/dist/Editor/Elements/FreeGrid/styles.js +7 -61
  20. package/dist/Editor/Elements/List/CheckList.js +2 -3
  21. package/dist/Editor/Elements/Search/SearchAttachment.js +9 -40
  22. package/dist/Editor/Elements/Search/SearchButton.js +8 -9
  23. package/dist/Editor/Elements/Search/SearchList.js +7 -9
  24. package/dist/Editor/Elements/SimpleText/index.js +1 -6
  25. package/dist/Editor/Elements/Table/TableCell.js +3 -7
  26. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +18 -43
  27. package/dist/Editor/assets/svg/SettingsIcon.js +0 -1
  28. package/dist/Editor/common/Icon.js +1 -3
  29. package/dist/Editor/common/LinkSettings/NavComponents.js +8 -34
  30. package/dist/Editor/common/LinkSettings/index.js +69 -85
  31. package/dist/Editor/common/LinkSettings/style.js +30 -245
  32. package/dist/Editor/common/RnD/ElementOptions/Actions.js +14 -13
  33. package/dist/Editor/common/RnD/ElementOptions/Icons/LinkIcon.js +0 -1
  34. package/dist/Editor/common/RnD/ElementOptions/index.js +2 -2
  35. package/dist/Editor/common/RnD/ElementOptions/styles.js +1 -28
  36. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +4 -4
  37. package/dist/Editor/common/RnD/ElementSettings/styles.js +12 -147
  38. package/dist/Editor/common/RnD/OptionsPopup/index.js +5 -8
  39. package/dist/Editor/common/RnD/OptionsPopup/style.js +19 -121
  40. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +6 -0
  41. package/dist/Editor/common/Select/index.js +0 -2
  42. package/dist/Editor/common/Shorthands/elements.js +11 -11
  43. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +6 -7
  44. package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -13
  45. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
  46. package/dist/Editor/common/iconListV2.js +6 -101
  47. package/dist/Editor/common/iconslist.js +0 -3
  48. package/dist/Editor/commonStyle.js +1 -70
  49. package/dist/Editor/hooks/useMouseMove.js +5 -2
  50. package/dist/Editor/utils/SlateUtilityFunctions.js +10 -12
  51. package/dist/Editor/utils/form.js +4 -4
  52. package/dist/Editor/utils/formfield.js +2 -8
  53. package/package.json +1 -1
  54. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -454
  55. package/dist/Editor/Elements/EmbedScript/styles.js +0 -89
  56. package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
  57. package/dist/Editor/assets/svg/ResetIconNew.js +0 -23
  58. package/dist/Editor/common/SnackBar/index.js +0 -43
@@ -1,454 +0,0 @@
1
- import React, { useCallback, useEffect, useMemo, useState } from "react";
2
- import Autocomplete from "@mui/material/Autocomplete";
3
- import Box from "@mui/material/Box";
4
- import Chip from "@mui/material/Chip";
5
- import Divider from "@mui/material/Divider";
6
- import Popover from "@mui/material/Popover";
7
- import TextField from "@mui/material/TextField";
8
- import Typography from "@mui/material/Typography";
9
- import List from "@mui/material/List";
10
- import ListItem from "@mui/material/ListItem";
11
- import ListItemButton from "@mui/material/ListItemButton";
12
- import IconButton from "@mui/material/IconButton";
13
- import SwipeableDrawer from "@mui/material/SwipeableDrawer";
14
- import Tooltip from "@mui/material/Tooltip";
15
- import { CloseIcon } from "../../../../../common/iconslist";
16
- import { useEditorContext } from "../../../../../hooks/useMouseMove";
17
- import Icon from "../../../../../common/Icon";
18
- import { colors } from "../../../../Color Picker/defaultColors";
19
- import PropertySettings from "../../Options";
20
- import SnackbarAlert from "../../../../../common/SnackBar";
21
- import { jsx as _jsx } from "react/jsx-runtime";
22
- import { jsxs as _jsxs } from "react/jsx-runtime";
23
- const EXCLUDED_COLORS = new Set(["#000000", "#0F172A", "#2563EB", "#FFFFFF", "#64748B"]);
24
- const DEFAULT_COLORS = colors?.filter(f => !f?.includes("linear") && !EXCLUDED_COLORS?.has(f));
25
- const generateRandomColor = () => {
26
- const randomIndex = Math.floor(Math.random() * DEFAULT_COLORS?.length);
27
- return DEFAULT_COLORS[randomIndex];
28
- };
29
- const MultiSelectWithPopover = props => {
30
- const {
31
- options = [],
32
- value,
33
- onChange,
34
- onUpdate,
35
- property,
36
- wrapColumn = false,
37
- translation
38
- } = props;
39
- const [anchorEl, setAnchorEl] = useState(null);
40
- const [anchorElOption, setAnchorElOption] = useState(null);
41
- const [currentIndex, setCurrentIndex] = useState(null);
42
- const [selectedOptions, setSelectedOptions] = useState(value);
43
- const [availableOptions, setAvailableOptions] = useState(options);
44
- const [showSnackBar, setShowSnackBar] = useState(false);
45
- const [chipColor, setChipColor] = useState(generateRandomColor());
46
- const [inputValue, setInputValue] = useState("");
47
- const {
48
- theme
49
- } = useEditorContext();
50
- const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
51
- const PopoverComponent = isMobile ? SwipeableDrawer : Popover;
52
- const mode = useMemo(() => ({
53
- type: "editOptionMulti",
54
- edit: {
55
- label: "Multi Select",
56
- visible: true,
57
- key: property,
58
- type: "multi-select",
59
- options: options || [],
60
- optionIndex: currentIndex,
61
- hideBackButton: true
62
- }
63
- }), [options, property, currentIndex]);
64
- const customScrollStyles = {
65
- scrollbarWidth: "thin",
66
- scrollbarColor: `${theme?.palette?.editor?.brainPopupScroll} transparent`,
67
- "&::-webkit-scrollbar": {
68
- width: "6px"
69
- },
70
- "&::-webkit-scrollbar-thumb": {
71
- backgroundColor: theme?.palette?.editor?.brainPopupScroll,
72
- borderRadius: "3px"
73
- },
74
- "&::-webkit-scrollbar-track": {
75
- display: "none"
76
- }
77
- };
78
- useEffect(() => {
79
- if (inputValue?.trim() && !chipColor) {
80
- setChipColor(generateRandomColor());
81
- }
82
- }, [inputValue, chipColor]);
83
- useEffect(() => {
84
- if (JSON.stringify(options) !== JSON.stringify(availableOptions)) {
85
- setAvailableOptions(options);
86
- }
87
- }, [options, availableOptions]);
88
- const handleOpenPopover = useCallback(event => {
89
- setAnchorEl(event.currentTarget);
90
- }, []);
91
- const handleClosePopover = useCallback(e => {
92
- e?.stopPropagation();
93
- setAnchorEl(null);
94
- }, []);
95
- const handleAddOption = newValue => {
96
- const trimmedValue = newValue?.trim();
97
- if (!trimmedValue) return;
98
- const newOption = {
99
- value: trimmedValue,
100
- color: chipColor
101
- };
102
- if (!availableOptions?.some(opt => opt?.value === trimmedValue)) {
103
- setAvailableOptions(prev => [...prev, newOption]);
104
- setSelectedOptions(prev => [...prev, newOption]);
105
- onUpdate([newOption, ...availableOptions]);
106
- }
107
- setInputValue("");
108
- setChipColor("");
109
- };
110
- const onClose = () => {
111
- setAnchorEl(anchorElOption);
112
- setAnchorElOption(null);
113
- };
114
- const onEditOption = (type, data) => {
115
- const updateData = data?.edit ? data?.edit?.options : data?.options;
116
- onUpdate(updateData);
117
- if (data?.edit?.options) {
118
- const updatedSelectedOptions = selectedOptions?.filter(selOption => updateData?.some(availOption => availOption?.value === selOption?.value && availOption?.color === selOption?.color));
119
- setSelectedOptions(updatedSelectedOptions);
120
- onClose();
121
- }
122
- };
123
- const handleEditOption = (e, index) => {
124
- e.stopPropagation();
125
- setCurrentIndex(index);
126
- setAnchorElOption(anchorEl);
127
- setAnchorEl(null);
128
- };
129
- const handleSelectOption = option => {
130
- if (!selectedOptions?.some(opt => opt?.value === option?.value)) {
131
- const updatedOptions = [...selectedOptions, option];
132
- setSelectedOptions(updatedOptions);
133
- onChange(updatedOptions);
134
- } else {
135
- setShowSnackBar(true);
136
- }
137
- };
138
- const handleClearSelection = () => {
139
- setSelectedOptions([]);
140
- };
141
- const handleDeleteChip = (event, option) => {
142
- event.stopPropagation();
143
- setSelectedOptions(prev => {
144
- const updatedOptions = prev.filter(selected => selected?.value !== option?.value);
145
- onChange(updatedOptions);
146
- return updatedOptions;
147
- });
148
- };
149
- const filteredOptions = availableOptions?.filter(option => option?.value?.toLowerCase()?.includes(inputValue?.toLowerCase()));
150
- const isExactMatch = availableOptions?.some(opt => opt?.value?.toLowerCase() === inputValue?.toLowerCase());
151
- const open = Boolean(anchorEl);
152
- const openEditOption = Boolean(anchorElOption);
153
- const id = open ? "autocomplete-popover" : undefined;
154
- return /*#__PURE__*/_jsxs("div", {
155
- children: [/*#__PURE__*/_jsx(Box, {
156
- sx: {
157
- display: "flex",
158
- flexWrap: wrapColumn ? "wrap" : "nowrap",
159
- overflowX: wrapColumn ? "hidden" : "auto",
160
- gap: 0.5,
161
- padding: "8px",
162
- cursor: "pointer"
163
- },
164
- onClick: handleOpenPopover,
165
- children: selectedOptions?.map((option, index) => /*#__PURE__*/_jsx(Chip, {
166
- label: option?.value,
167
- onDelete: event => {
168
- handleDeleteChip(event, option);
169
- },
170
- deleteIcon: /*#__PURE__*/_jsx(CloseIcon, {}),
171
- variant: "filled",
172
- sx: {
173
- backgroundColor: option?.color,
174
- color: '#0F172A',
175
- "& .MuiChip-deleteIcon": {
176
- flexShrink: 0,
177
- "& path": {
178
- stroke: '#0F172A !important'
179
- }
180
- },
181
- "&:hover": {
182
- opacity: 0.8
183
- }
184
- }
185
- }, index))
186
- }), /*#__PURE__*/_jsx(PopoverComponent, {
187
- id: id,
188
- open: open,
189
- anchorEl: anchorEl,
190
- anchor: "bottom",
191
- onClose: e => handleClosePopover(e),
192
- anchorOrigin: {
193
- vertical: "top",
194
- horizontal: "left"
195
- },
196
- transformOrigin: {
197
- vertical: "top",
198
- horizontal: "left"
199
- },
200
- sx: {
201
- "& .MuiPaper-root": {
202
- borderRadius: "20px",
203
- background: theme?.palette?.editor?.textFormatBgColor,
204
- border: `1px solid ${theme?.palette?.editor?.popUpBorderColor}`,
205
- boxShadow: "0px 4px 10px 0px #00000029"
206
- }
207
- },
208
- disableAutoFocus: true,
209
- disableEnforceFocus: true,
210
- disableRestoreFocus: true,
211
- children: /*#__PURE__*/_jsxs(Box, {
212
- sx: {
213
- width: isMobile ? "100%" : 300
214
- },
215
- children: [/*#__PURE__*/_jsx(Autocomplete, {
216
- multiple: true,
217
- freeSolo: true,
218
- disablePortal: true,
219
- PopperComponent: () => null,
220
- sx: {
221
- "& .MuiFormControl-root": {
222
- maxHeight: "250px",
223
- overflowY: "auto",
224
- overflowX: "hidden",
225
- pr: '12px',
226
- pl: '12px',
227
- marginTop: '12px',
228
- ...customScrollStyles
229
- }
230
- },
231
- disableClearable: true,
232
- options: [],
233
- getOptionLabel: option => options?.value || "",
234
- value: selectedOptions,
235
- onChange: (event, newValues) => {
236
- const addedOptions = newValues?.filter(value => typeof value === "object" || typeof value === "string" && value?.trim() !== "")?.map(value => typeof value === "string" ? {
237
- value,
238
- color: chipColor
239
- } : value);
240
- const isDuplicate = addedOptions?.some(newOpt => (selectedOptions || [])?.some(opt => opt.value === newOpt.value));
241
- if (!isDuplicate) {
242
- setSelectedOptions([...selectedOptions, ...addedOptions]);
243
- }
244
- },
245
- inputValue: inputValue,
246
- onInputChange: (event, newInputValue) => setInputValue(newInputValue),
247
- onKeyDown: event => {
248
- if (event.key === "Enter" && inputValue.trim()) {
249
- event.preventDefault();
250
- handleAddOption(inputValue);
251
- }
252
- },
253
- filterOptions: (options, params) => options?.filter(option => option?.value?.toLowerCase()?.includes(params?.inputValue?.toLowerCase())),
254
- renderInput: params => /*#__PURE__*/_jsx(TextField, {
255
- ...params,
256
- variant: "standard",
257
- InputProps: {
258
- ...params.InputProps,
259
- disableUnderline: true,
260
- sx: {
261
- display: "flex",
262
- flexWrap: "wrap",
263
- fontFamily: "Inter",
264
- fontWeight: 400,
265
- fontSize: "12px",
266
- color: theme?.palette?.editor?.secondaryTextColor,
267
- "&::placeholder": {
268
- color: theme?.palette?.editor?.secondaryTextColor
269
- },
270
- "& .MuiAutocomplete-input": {
271
- minWidth: "100px !important"
272
- }
273
- },
274
- endAdornment: /*#__PURE__*/_jsx(Tooltip, {
275
- arrow: true,
276
- title: "Clear Selected",
277
- children: /*#__PURE__*/_jsx(IconButton, {
278
- onClick: handleClearSelection,
279
- sx: {
280
- padding: 0,
281
- minWidth: "unset",
282
- "& .MuiSvgIcon-root": {
283
- fontSize: 20
284
- },
285
- '& rect': {
286
- fill: theme?.palette?.editor?.closeButtonSvgStroke
287
- },
288
- '&:hover': {
289
- backgroundColor: 'transparent'
290
- }
291
- },
292
- children: /*#__PURE__*/_jsx(Icon, {
293
- icon: "resetIconNew"
294
- })
295
- })
296
- })
297
- },
298
- sx: {
299
- backgroundColor: "transparent",
300
- fontFamily: 'Inter',
301
- fontWeight: 400,
302
- fontSize: '12px'
303
- },
304
- placeholder: "Create new one..."
305
- }),
306
- renderTags: (tagValues, getTagProps) => tagValues.map((option, index) => /*#__PURE__*/_jsx(Chip, {
307
- variant: "filled",
308
- label: option?.value,
309
- ...getTagProps({
310
- index
311
- }),
312
- onDelete: event => {
313
- handleDeleteChip(event, option);
314
- },
315
- deleteIcon: /*#__PURE__*/_jsx(CloseIcon, {}),
316
- sx: {
317
- backgroundColor: option?.color,
318
- color: '#0F172A',
319
- "& .MuiChip-deleteIcon": {
320
- flexShrink: 0,
321
- "& path": {
322
- stroke: '#0F172A !important'
323
- }
324
- },
325
- "&:hover": {
326
- opacity: 0.8
327
- }
328
- }
329
- }, index))
330
- }), /*#__PURE__*/_jsx(Divider, {
331
- sx: {
332
- mt: '12px',
333
- borderBottom: `1px solid ${theme?.palette?.editor?.popUpBorderColor}`,
334
- boxShadow: theme?.palette?.editor?.dividerDropShadow
335
- }
336
- }), /*#__PURE__*/_jsx(Box, {
337
- sx: {
338
- pl: '4px'
339
- },
340
- children: /*#__PURE__*/_jsxs(List, {
341
- sx: {
342
- maxHeight: "250px",
343
- overflowY: "auto",
344
- ...customScrollStyles
345
- },
346
- children: [/*#__PURE__*/_jsx(Typography, {
347
- sx: {
348
- mb: 1,
349
- pl: '8px',
350
- color: theme?.palette?.editor?.secondaryTextColor,
351
- fontFamily: 'Inter',
352
- fontWeight: 400,
353
- fontSize: '12px'
354
- },
355
- children: "Choose an option or create one"
356
- }), filteredOptions?.map((option, index) => /*#__PURE__*/_jsx(ListItem, {
357
- sx: {
358
- padding: 0
359
- },
360
- disablePadding: true,
361
- children: /*#__PURE__*/_jsxs(ListItemButton, {
362
- onClick: () => handleSelectOption(option),
363
- sx: {
364
- paddingTop: "4px",
365
- paddingBottom: "4px",
366
- justifyContent: 'space-between',
367
- '&:hover': {
368
- '& path': {
369
- stroke: theme?.palette?.editor?.activeColor
370
- },
371
- borderRadius: '12px'
372
- }
373
- },
374
- children: [/*#__PURE__*/_jsx(Chip, {
375
- label: option?.value,
376
- sx: {
377
- backgroundColor: option?.color,
378
- color: '#0F172A',
379
- fontWeight: 500,
380
- fontSize: "12px",
381
- fontFamily: "Inter",
382
- padding: "4px 12px",
383
- borderRadius: "16px",
384
- maxWidth: "180px",
385
- whiteSpace: "nowrap",
386
- overflow: "hidden",
387
- textOverflow: "ellipsis"
388
- }
389
- }), /*#__PURE__*/_jsx(IconButton, {
390
- size: "small",
391
- sx: {
392
- '& path': {
393
- stroke: theme?.palette?.editor?.closeButtonSvgStroke
394
- },
395
- '&:hover': {
396
- backgroundColor: 'transparent'
397
- }
398
- },
399
- onClick: e => handleEditOption(e, index),
400
- children: /*#__PURE__*/_jsx(Icon, {
401
- icon: "rightArrow"
402
- })
403
- })]
404
- })
405
- }, index)), inputValue?.trim() && !isExactMatch && /*#__PURE__*/_jsx(ListItem, {
406
- disablePadding: true,
407
- children: /*#__PURE__*/_jsxs(ListItemButton, {
408
- onClick: () => handleAddOption(inputValue),
409
- sx: {
410
- display: "flex",
411
- alignItems: "center"
412
- },
413
- children: [/*#__PURE__*/_jsx(Typography, {
414
- sx: {
415
- color: theme?.palette?.editor?.secondaryTextColor,
416
- marginRight: "6px",
417
- fontSize: "14px",
418
- fontFamily: "Inter"
419
- },
420
- children: "Create"
421
- }), /*#__PURE__*/_jsx(Chip, {
422
- label: `${inputValue}`,
423
- sx: {
424
- backgroundColor: chipColor,
425
- color: '#0F172A',
426
- fontWeight: 500,
427
- fontSize: "12px",
428
- fontFamily: "Inter",
429
- borderRadius: "16px",
430
- maxWidth: "180px",
431
- whiteSpace: "nowrap",
432
- overflow: "hidden",
433
- textOverflow: "ellipsis"
434
- }
435
- })]
436
- })
437
- })]
438
- })
439
- })]
440
- })
441
- }), openEditOption ? /*#__PURE__*/_jsx(PropertySettings, {
442
- open: openEditOption,
443
- anchorEl: anchorElOption,
444
- mode: mode,
445
- onClose: onClose,
446
- onEvent: onEditOption,
447
- translation: translation
448
- }) : null, showSnackBar ? /*#__PURE__*/_jsx(SnackbarAlert, {
449
- message: "Option already selected!",
450
- setShowSnackBar: setShowSnackBar
451
- }) : null]
452
- });
453
- };
454
- export default MultiSelectWithPopover;
@@ -1,89 +0,0 @@
1
- const Styles = theme => ({
2
- root: {
3
- "& .MuiPaper-root": {
4
- borderRadius: "12px",
5
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground,
6
- border: `1px solid ${theme?.palette?.editor?.miniToolBarBorder}`,
7
- overflow: "hidden"
8
- },
9
- "& textarea": {
10
- backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
11
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
12
- borderRadius: "12px",
13
- padding: "10px !important",
14
- color: theme?.palette?.editor?.textColor,
15
- boxShadow: "0px 4px 18px 0px #00000014",
16
- "&:focus": {
17
- border: `1px solid #2563EB`,
18
- boxShadow: "0px 4px 18px 0px #2563EB1F",
19
- outline: "none"
20
- },
21
- "&:focus-visible": {
22
- border: `1px solid #2563EB`,
23
- boxShadow: "0px 4px 18px 0px #2563EB1F",
24
- outline: "none"
25
- }
26
- },
27
- "& .MuiDialogTitle-root": {
28
- padding: "20px 24px 16px 24px"
29
- },
30
- "& .title": {
31
- color: theme?.palette?.editor?.textColor,
32
- fontWeight: 600,
33
- fontSize: "20px",
34
- fontFamily: "Inter, sans-serif"
35
- },
36
- "& .close-popupbtn": {
37
- background: theme?.palette?.editor?.closeButtonBgColor,
38
- color: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`,
39
- "& svg": {
40
- color: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
41
- }
42
- },
43
- "& .divider": {
44
- margin: "0px 24px",
45
- background: theme?.palette?.editor?.deviderBgColor
46
- },
47
- "& .save-btn": {
48
- backgroundColor: "#2563EB",
49
- color: "#ffffff",
50
- fontWeight: 600,
51
- fontSize: "14px",
52
- opacity: 1,
53
- borderRadius: "8px",
54
- textTransform: "math-auto",
55
- height: "36px",
56
- padding: "0px 12px",
57
- minWidth: "90px",
58
- "&:hover": {
59
- backgroundColor: "#2563EB"
60
- },
61
- "@media only screen and (max-width: 899px)": {
62
- width: "50%"
63
- }
64
- },
65
- "& .clear-btn": {
66
- padding: "8px 12px",
67
- color: theme?.palette?.editor?.customDialogueCloseBtnColor,
68
- fontWeight: 600,
69
- fontSize: "14px",
70
- opacity: 1,
71
- borderRadius: "8px",
72
- textTransform: "math-auto",
73
- height: "36px",
74
- minWidth: "90px",
75
- backgroundColor: theme?.palette?.editor?.closeButtonBackground,
76
- border: `1px solid ${theme?.palette?.editor?.customDialogueCloseBtnBorder}`,
77
- "&:hover": {
78
- backgroundColor: theme?.palette?.editor?.closeButtonBackground
79
- },
80
- "@media only screen and (max-width: 899px)": {
81
- width: "50%"
82
- }
83
- },
84
- "& .MuiDialogActions-root": {
85
- padding: "0px 22px 16px 0px"
86
- }
87
- }
88
- });
89
- export default Styles;
@@ -1,31 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
- const ClearAllIcon = () => /*#__PURE__*/_jsxs("svg", {
4
- xmlns: "http://www.w3.org/2000/svg",
5
- width: "20",
6
- height: "20",
7
- viewBox: "0 0 20 20",
8
- children: [/*#__PURE__*/_jsx("rect", {
9
- x: "4",
10
- y: "5",
11
- width: "12",
12
- height: "2",
13
- rx: "1",
14
- fill: "currentColor"
15
- }), /*#__PURE__*/_jsx("rect", {
16
- x: "4",
17
- y: "9",
18
- width: "10",
19
- height: "2",
20
- rx: "1",
21
- fill: "currentColor"
22
- }), /*#__PURE__*/_jsx("rect", {
23
- x: "4",
24
- y: "13",
25
- width: "12",
26
- height: "2",
27
- rx: "1",
28
- fill: "currentColor"
29
- })]
30
- });
31
- export default ClearAllIcon;
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
- const ResetIconNew = () => {
4
- return /*#__PURE__*/_jsxs("svg", {
5
- width: "17",
6
- height: "17",
7
- viewBox: "0 0 17 17",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
10
- children: [/*#__PURE__*/_jsx("circle", {
11
- cx: "8.10105",
12
- cy: "8.10234",
13
- r: "8",
14
- transform: "rotate(-89.2717 8.10105 8.10234)",
15
- fill: "#2563EB",
16
- fillOpacity: "0.16"
17
- }), /*#__PURE__*/_jsx("path", {
18
- d: "M12.7169 8.22222V8.22222C12.7168 8.2323 12.7289 8.23752 12.7361 8.2305L13.3823 7.6035C13.6597 7.33434 14.0843 7.33974 14.3547 7.61586C14.6252 7.89199 14.6198 8.31458 14.3424 8.58375L12.6992 10.1595C12.3035 10.5389 11.6762 10.5291 11.2926 10.1375L9.71318 8.5249C9.57796 8.38683 9.51173 8.20874 9.51381 8.04516C9.51606 7.86794 9.58679 7.69159 9.72531 7.57064C10.0027 7.30148 10.4273 7.30688 10.6977 7.583L11.3182 8.21649C11.3288 8.22729 11.3471 8.21993 11.3473 8.20481V8.20481C11.374 6.10545 9.67017 4.36586 7.56099 4.33905C5.45182 4.31224 3.70429 6.00795 3.6776 8.10731C3.65091 10.2067 5.35477 11.9463 7.46394 11.9731C7.84743 11.9779 8.14493 12.2817 8.14007 12.6634C8.13522 13.0451 7.8301 13.3412 7.44661 13.3363C4.57046 13.2997 2.27161 10.9527 2.30801 8.0899C2.3444 5.22714 4.70217 2.93927 7.57832 2.97583C10.4408 3.01222 12.7533 5.35946 12.7169 8.22222Z",
19
- fill: "#2563EB"
20
- })]
21
- });
22
- };
23
- export default ResetIconNew;
@@ -1,43 +0,0 @@
1
- import Snackbar from "@mui/material/Snackbar";
2
- import Alert from "@mui/material/Alert";
3
- import { useState } from "react";
4
- import { useEditorContext } from "../../hooks/useMouseMove";
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- const SnackbarAlert = ({
7
- message,
8
- setShowSnackBar,
9
- severity = "info"
10
- }) => {
11
- const [open, setOpen] = useState(!!message);
12
- const {
13
- theme
14
- } = useEditorContext();
15
- return /*#__PURE__*/_jsx(Snackbar, {
16
- open: open,
17
- autoHideDuration: 3000,
18
- onClose: () => {
19
- setOpen(false);
20
- setShowSnackBar(false);
21
- },
22
- anchorOrigin: {
23
- vertical: "top",
24
- horizontal: "right"
25
- },
26
- children: /*#__PURE__*/_jsx(Alert, {
27
- severity: severity,
28
- onClose: () => {
29
- setOpen(false);
30
- setShowSnackBar(false);
31
- },
32
- sx: {
33
- background: theme?.palette?.primary?.gradientBtn,
34
- color: "#FFFFFF",
35
- "& .MuiAlert-icon": {
36
- color: "#FFFFFF"
37
- }
38
- },
39
- children: message
40
- })
41
- });
42
- };
43
- export default SnackbarAlert;