@flozy/editor 3.9.1 → 3.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. package/dist/Editor/ChatEditor.js +16 -0
  2. package/dist/Editor/CommonEditor.js +109 -177
  3. package/dist/Editor/Editor.css +12 -8
  4. package/dist/Editor/Elements/AI/AIInput.js +18 -17
  5. package/dist/Editor/Elements/AI/CustomSelect.js +12 -19
  6. package/dist/Editor/Elements/AI/PopoverAIInput.js +28 -23
  7. package/dist/Editor/Elements/AI/Styles.js +1 -2
  8. package/dist/Editor/Elements/Accordion/Accordion.js +1 -1
  9. package/dist/Editor/Elements/Accordion/AccordionSummary.js +21 -5
  10. package/dist/Editor/Elements/AppHeader/AppHeader.js +4 -26
  11. package/dist/Editor/Elements/Button/EditorButton.js +16 -28
  12. package/dist/Editor/Elements/Color Picker/ColorButtons.js +17 -60
  13. package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
  14. package/dist/Editor/Elements/Color Picker/ColorPicker.js +4 -4
  15. package/dist/Editor/Elements/Color Picker/Styles.js +1 -2
  16. package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +3 -12
  17. package/dist/Editor/Elements/Form/Workflow/UserInputs.js +1 -2
  18. package/dist/Editor/Elements/Grid/Grid.js +3 -27
  19. package/dist/Editor/Elements/Grid/GridItem.js +1 -3
  20. package/dist/Editor/Elements/Link/Link.js +1 -6
  21. package/dist/Editor/Elements/Link/LinkButton.js +2 -4
  22. package/dist/Editor/Elements/Link/LinkPopup.js +3 -10
  23. package/dist/Editor/Elements/List/CheckList.js +2 -1
  24. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +3 -3
  25. package/dist/Editor/Elements/Signature/SignaturePopup.js +3 -14
  26. package/dist/Editor/Elements/Table/Styles.js +1 -23
  27. package/dist/Editor/Elements/Table/Table.js +1 -2
  28. package/dist/Editor/Elements/Table/TableCell.js +7 -69
  29. package/dist/Editor/Elements/TableContextMenu/TableContextMenu.js +0 -1
  30. package/dist/Editor/MiniEditor.js +1 -3
  31. package/dist/Editor/Styles/EditorStyles.js +1 -1
  32. package/dist/Editor/Toolbar/Basic/index.js +2 -4
  33. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +2 -26
  34. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +2 -2
  35. package/dist/Editor/Toolbar/FormatTools/TextSize.js +18 -29
  36. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +2 -4
  37. package/dist/Editor/Toolbar/Mini/Options/Options.js +0 -10
  38. package/dist/Editor/Toolbar/Mini/Styles.js +0 -7
  39. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +11 -4
  40. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +86 -213
  41. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +1 -2
  42. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +16 -22
  43. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +7 -52
  44. package/dist/Editor/Toolbar/PopupTool/index.js +17 -7
  45. package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
  46. package/dist/Editor/assets/svg/AIIcons.js +1 -153
  47. package/dist/Editor/assets/svg/AddTemplateIcon.js +10 -13
  48. package/dist/Editor/assets/svg/TextIcon.js +5 -8
  49. package/dist/Editor/common/ColorPickerButton.js +18 -26
  50. package/dist/Editor/common/DnD/DragHandleButton.js +47 -56
  51. package/dist/Editor/common/Icon.js +3 -43
  52. package/dist/Editor/common/LinkSettings/NavComponents.js +2 -5
  53. package/dist/Editor/common/LinkSettings/index.js +2 -4
  54. package/dist/Editor/common/LinkSettings/navOptions.js +2 -7
  55. package/dist/Editor/common/LinkSettings/style.js +8 -11
  56. package/dist/Editor/common/Section/index.js +7 -57
  57. package/dist/Editor/common/Section/styles.js +0 -11
  58. package/dist/Editor/common/Shorthands/elements.js +0 -54
  59. package/dist/Editor/common/StyleBuilder/accordionTitleBtnStyle.js +2 -1
  60. package/dist/Editor/common/StyleBuilder/buttonStyle.js +2 -4
  61. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +29 -33
  62. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +25 -31
  63. package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +1 -1
  64. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +7 -29
  65. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +4 -13
  66. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +4 -14
  67. package/dist/Editor/common/StyleBuilder/index.js +1 -1
  68. package/dist/Editor/common/iconslist.js +31 -0
  69. package/dist/Editor/helper/index.js +22 -0
  70. package/dist/Editor/helper/theme.js +4 -189
  71. package/dist/Editor/hooks/useMouseMove.js +1 -4
  72. package/dist/Editor/hooks/useWindowMessage.js +7 -10
  73. package/dist/Editor/plugins/withEmbeds.js +1 -1
  74. package/dist/Editor/plugins/withHTML.js +1 -1
  75. package/dist/Editor/plugins/withTable.js +1 -1
  76. package/dist/Editor/theme/ThemeList.js +173 -50
  77. package/dist/Editor/utils/SlateUtilityFunctions.js +27 -169
  78. package/dist/Editor/utils/button.js +17 -1
  79. package/dist/Editor/utils/events.js +2 -54
  80. package/dist/Editor/utils/font.js +37 -40
  81. package/dist/Editor/utils/helper.js +2 -31
  82. package/dist/Editor/utils/table.js +43 -51
  83. package/package.json +3 -4
  84. package/dist/Editor/Elements/AI/VoiceToText/AudioWave.js +0 -73
  85. package/dist/Editor/Elements/AI/VoiceToText/index.js +0 -177
  86. package/dist/Editor/Elements/AI/VoiceToText/style.js +0 -40
  87. package/dist/Editor/Elements/Link/LinkPopupStyles.js +0 -28
  88. package/dist/Editor/Elements/Redo/RedoButton.js +0 -14
  89. package/dist/Editor/Elements/Undo/UndoButton.js +0 -14
  90. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -438
  91. package/dist/Editor/assets/svg/RedoIcon.js +0 -27
  92. package/dist/Editor/assets/svg/SettingsIcon.js +0 -28
  93. package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
  94. package/dist/Editor/assets/svg/UndoIcon.js +0 -27
  95. package/dist/Editor/common/CustomColorPicker/index.js +0 -106
  96. package/dist/Editor/common/CustomColorPicker/style.js +0 -53
  97. package/dist/Editor/common/CustomDialog/index.js +0 -94
  98. package/dist/Editor/common/CustomDialog/style.js +0 -67
  99. package/dist/Editor/common/CustomSelect.js +0 -33
  100. package/dist/Editor/hooks/useEditorTheme.js +0 -139
  101. package/dist/Editor/theme/index.js +0 -144
  102. package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
  103. package/dist/Editor/themeSettings/buttons/index.js +0 -290
  104. package/dist/Editor/themeSettings/buttons/style.js +0 -21
  105. package/dist/Editor/themeSettings/colorTheme/index.js +0 -290
  106. package/dist/Editor/themeSettings/colorTheme/style.js +0 -77
  107. package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -123
  108. package/dist/Editor/themeSettings/fonts/index.js +0 -213
  109. package/dist/Editor/themeSettings/fonts/style.js +0 -44
  110. package/dist/Editor/themeSettings/icons.js +0 -60
  111. package/dist/Editor/themeSettings/index.js +0 -320
  112. package/dist/Editor/themeSettings/style.js +0 -152
  113. package/dist/Editor/themeSettingsAI/icons.js +0 -96
  114. package/dist/Editor/themeSettingsAI/index.js +0 -356
  115. package/dist/Editor/themeSettingsAI/saveTheme.js +0 -190
  116. package/dist/Editor/themeSettingsAI/style.js +0 -247
@@ -1,291 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
- export const ThemePaintIcon = () => /*#__PURE__*/_jsxs("svg", {
4
- width: "32",
5
- height: "36",
6
- viewBox: "0 0 36 39",
7
- fill: "none",
8
- xmlns: "http://www.w3.org/2000/svg",
9
- children: [/*#__PURE__*/_jsx("path", {
10
- d: "M10.4325 30.1183C12.139 31.1876 14.0973 31.7882 16.1099 31.8595C16.8893 31.8902 17.6699 31.8481 18.4415 31.7337L17.8907 33.3571C17.2776 33.414 16.6614 33.4296 16.0462 33.4036C13.7653 33.3205 11.5466 32.6376 9.61376 31.4238C7.53754 30.0913 5.95828 28.1117 5.12029 25.7914C4.23027 23.3448 4.06149 20.6941 4.634 18.1544C5.32901 15.0434 7.1361 12.2933 9.71575 10.4207C12.3096 8.51989 15.5017 7.61749 18.7068 7.87886C19.755 7.92879 20.7757 8.23069 21.6825 8.75897C22.0763 8.9939 22.4171 9.30786 22.6835 9.68107C22.9499 10.0543 23.1362 10.4786 23.2304 10.9274C23.2405 10.9823 23.245 11.0381 23.2441 11.0939C23.2158 12.8879 21.9918 13.4622 20.8255 14.0113C20.1397 14.3232 19.5069 14.6321 19.5387 15.2172C19.5497 15.4668 19.7385 15.7377 20.0664 16.0015C20.5942 16.3982 21.197 16.6835 21.8383 16.8402C22.4605 17.0128 23.1214 17.1542 23.7449 17.3003C24.1251 17.3841 24.4862 17.462 24.8522 17.553L23.7035 18.879L23.4025 18.8123C22.7815 18.6728 22.1281 18.5267 21.4188 18.3306C20.5732 18.1157 19.7797 17.7322 19.0859 17.2032C18.4162 16.6584 18.0267 15.9997 17.9896 15.2953C17.9042 13.6668 19.0075 13.1488 20.1607 12.6046C20.8766 12.2684 21.6273 11.9155 21.6909 11.1512C21.5627 10.6932 21.2613 10.3032 20.8504 10.0638C20.1561 9.66831 19.3778 9.4434 18.5796 9.40758C15.747 9.18118 12.9274 9.98108 10.6357 11.6612C8.36068 13.3186 6.76827 15.7488 6.15706 18.4964C5.64599 20.7451 5.79061 23.0931 6.57376 25.2621C7.29184 27.2606 8.64787 28.9672 10.4325 30.1183Z",
11
- fill: "#64748B",
12
- stroke: "#64748B",
13
- strokeWidth: "0.5"
14
- }), /*#__PURE__*/_jsx("path", {
15
- fillRule: "evenodd",
16
- clipRule: "evenodd",
17
- d: "M11.857 14.7924C11.8336 15.2307 11.9404 15.666 12.1639 16.0437C12.3873 16.4214 12.7175 16.7245 13.1128 16.915C13.5082 17.1055 13.951 17.1748 14.3857 17.1142C14.8203 17.0536 15.2273 16.8658 15.5555 16.5744C15.8836 16.283 16.1183 15.9011 16.2299 15.4767C16.3415 15.0523 16.3251 14.6044 16.1828 14.1893C16.0404 13.7741 15.7784 13.4104 15.4299 13.1438C15.0813 12.8772 14.6616 12.7197 14.2237 12.691C13.93 12.6718 13.6353 12.7111 13.3568 12.8066C13.0783 12.9021 12.8216 13.0519 12.6014 13.2474C12.3813 13.4429 12.2021 13.6801 12.0743 13.9453C11.9466 14.2105 11.8727 14.4985 11.857 14.7924Z",
18
- fill: "#45B51D"
19
- }), /*#__PURE__*/_jsx("path", {
20
- fillRule: "evenodd",
21
- clipRule: "evenodd",
22
- d: "M7.90225 20.2707C7.87487 20.7146 7.97972 21.1567 8.20357 21.5411C8.42741 21.9255 8.76018 22.2348 9.15982 22.4301C9.55946 22.6254 10.008 22.6978 10.4488 22.6382C10.8896 22.5785 11.3028 22.3896 11.6362 22.0951C11.9696 21.8007 12.2082 21.4141 12.3219 20.984C12.4356 20.554 12.4192 20.0999 12.2749 19.6792C12.1306 19.2585 11.8647 18.89 11.511 18.6203C11.1573 18.3507 10.7315 18.1919 10.2876 18.1642C9.69229 18.1282 9.10708 18.3301 8.66061 18.7255C8.21415 19.1209 7.94298 19.6775 7.90674 20.2727L7.90225 20.2707Z",
23
- fill: "#E89431"
24
- }), /*#__PURE__*/_jsx("path", {
25
- fillRule: "evenodd",
26
- clipRule: "evenodd",
27
- d: "M18.1791 24.7302C18.1451 25.2948 18.2983 25.8549 18.6148 26.3236C18.9314 26.7923 19.3937 27.1435 19.9302 27.3228L21.5794 22.4539C21.3605 22.3786 21.1322 22.3338 20.9011 22.3209C20.5638 22.2992 20.2255 22.3442 19.9057 22.4534C19.5858 22.5627 19.2907 22.734 19.0372 22.9575C18.7837 23.1811 18.5768 23.4525 18.4284 23.7561C18.28 24.0598 18.193 24.3898 18.1724 24.7271L18.1791 24.7302Z",
28
- fill: "#E831D5"
29
- }), /*#__PURE__*/_jsx("path", {
30
- fillRule: "evenodd",
31
- clipRule: "evenodd",
32
- d: "M32.7335 9.18621C31.3102 11.8459 26.9461 11.8944 26.9128 15.3245C26.9126 15.8075 27.0124 16.2852 27.2061 16.7277C27.3998 17.1701 27.6831 17.5676 28.0381 17.895C28.4548 18.2729 28.9983 18.4802 29.5607 18.476C31.813 18.4825 33.0805 16.295 33.3333 14.2829C33.5585 12.4266 33.106 10.4893 32.7335 9.18621ZM28.6753 24.4217C27.0476 24.0905 25.5122 23.4072 24.1766 22.4198L19.9589 34.8736C19.8518 35.1342 19.7782 35.4074 19.74 35.6866C19.7196 35.902 19.7541 36.119 19.8402 36.3175C19.9263 36.516 20.0612 36.6895 20.2324 36.8218C20.4035 36.9542 20.6053 37.0411 20.8191 37.0745C21.0329 37.1079 21.2516 37.0867 21.455 37.0129C21.7724 36.8627 22.0272 36.6059 22.1748 36.2872L28.6785 24.4205L28.6753 24.4217ZM29.2912 19.8582C28.6241 19.8255 27.5539 19.4973 26.9954 18.8102L24.5583 21.6431C25.9722 22.7123 27.476 23.4776 29.1409 23.7349C29.0576 21.977 29.0679 21.7996 29.277 19.8654L29.2912 19.8582Z",
33
- fill: "#64748B"
34
- }), /*#__PURE__*/_jsx("path", {
35
- fillRule: "evenodd",
36
- clipRule: "evenodd",
37
- d: "M11.3398 27.0233C11.3122 27.4672 11.4169 27.9093 11.6405 28.2937C11.8642 28.6781 12.1967 28.9876 12.5962 29.1831C12.9957 29.3785 13.4441 29.4512 13.8849 29.3919C14.3257 29.3325 14.7389 29.1439 15.0725 28.8497C15.4061 28.5556 15.6449 28.1691 15.7589 27.7393C15.873 27.3094 15.857 26.8554 15.713 26.4346C15.5691 26.0138 15.3036 25.6451 14.9502 25.3751C14.5967 25.1052 14.1712 24.946 13.7274 24.9178C13.1321 24.8819 12.5469 25.0838 12.1004 25.4792C11.6539 25.8746 11.3828 26.4311 11.3465 27.0264L11.3398 27.0233Z",
38
- fill: "#3F31E8"
39
- })]
40
- });
41
- export const ThemeAIIcon = () => /*#__PURE__*/_jsxs("svg", {
42
- width: "32",
43
- height: "32",
44
- viewBox: "0 0 32 32",
45
- fill: "none",
46
- xmlns: "http://www.w3.org/2000/svg",
47
- children: [/*#__PURE__*/_jsx("g", {
48
- filter: "url(#filter0_i_2642_42364)",
49
- children: /*#__PURE__*/_jsx("rect", {
50
- width: "32",
51
- height: "32",
52
- rx: "16",
53
- fill: "white"
54
- })
55
- }), /*#__PURE__*/_jsx("path", {
56
- d: "M6.46812 17.5346C6.64285 16.2169 7.27499 15.7965 7.56923 15.751C7.46913 15.8966 7.25437 16.2442 7.19613 16.4699C7.12333 16.752 7.07783 17.5346 7.56923 18.3081C8.06063 19.0816 8.94333 19.5275 9.78964 19.7914C10.4667 20.0025 11.1091 19.9643 11.3457 19.9188C11.5641 19.9279 11.375 20.1312 10.5813 20.4193C9.70773 20.7378 8.75223 20.8197 7.96053 20.3738C7.16883 19.9279 6.24972 19.1817 6.46812 17.5346Z",
57
- fill: "url(#paint0_linear_2642_42364)"
58
- }), /*#__PURE__*/_jsx("path", {
59
- d: "M6.46812 17.5346C6.64285 16.2169 7.27499 15.7965 7.56923 15.751C7.46913 15.8966 7.25437 16.2442 7.19613 16.4699C7.12333 16.752 7.07783 17.5346 7.56923 18.3081C7.78693 18.6508 8.08142 18.9291 8.41553 19.1559C8.56113 19.2363 8.61573 19.2909 8.61573 19.2909C8.38823 19.3364 8.03333 19.391 7.56923 19.2909C7.10513 19.1908 6.65923 18.9269 6.4809 18.5265C6.42764 18.2378 6.41841 17.9095 6.46812 17.5346Z",
60
- fill: "url(#paint1_linear_2642_42364)"
61
- }), /*#__PURE__*/_jsx("path", {
62
- d: "M7.52201 19.3642C7.08521 18.8 6.6543 17.8559 7.20031 16.4727C7.08201 16.8731 7.25037 17.6307 7.40507 18.0129C7.55977 18.3951 8.15492 19.1044 9.14646 19.5735C9.99276 19.9739 11.0043 19.9739 11.4805 19.9375C11.2348 20.0528 10.5396 20.2852 9.72422 20.2924C8.70502 20.3015 8.02251 19.8647 7.52201 19.3642Z",
63
- fill: "url(#paint2_linear_2642_42364)"
64
- }), /*#__PURE__*/_jsx("path", {
65
- d: "M19.7027 22.4996C21.4315 22.182 22.7057 21.3502 23.7168 19.2824C23.458 19.5092 22.8954 20.0511 22.4673 20.3206C21.9321 20.6575 20.9398 21.0412 20.5712 21.4316C19.9052 22.0468 18.8501 22.3866 18.4018 22.434C17.9535 22.4813 18.1881 22.7278 19.7027 22.4996Z",
66
- fill: "url(#paint3_linear_2642_42364)"
67
- }), /*#__PURE__*/_jsx("path", {
68
- d: "M7.81229 14.4839C6.53617 15.1533 6.20086 16.7097 6.28989 17.7157C6.37892 18.7217 6.63989 18.8837 6.58803 18.7946C6.41887 17.6105 6.63711 16.2823 7.58972 15.9351C8.54233 15.5879 9.46823 16.3624 10.2784 17.1459C11.0886 17.9294 12.6555 19.3182 13.2609 19.9236C13.8663 20.529 16.1869 22.4805 17.9497 22.5785C19.5878 22.6695 20.487 21.8039 21.1667 20.9564C21.5752 20.4469 21.8967 19.2025 21.7365 19.3538C21.5762 19.5052 21.14 19.9147 20.3209 20.1373C19.5018 20.3599 18.4335 20.253 17.5076 19.9681C16.5817 19.6832 15.3798 18.8553 14.623 18.1608C13.8663 17.4664 12.0323 15.6235 11.1865 14.9914C10.3407 14.3593 9.04059 13.8396 7.81229 14.4839Z",
69
- fill: "url(#paint4_linear_2642_42364)"
70
- }), /*#__PURE__*/_jsx("path", {
71
- d: "M11.1955 14.9745C10.3497 14.3424 9.03209 13.7904 7.82129 14.467C6.9458 14.9745 6.71432 15.5639 6.84787 15.4125C6.98141 15.2612 7.93402 13.9792 9.50094 14.8249C11.0678 15.6707 12.6882 17.8697 13.9791 19.0805C15.27 20.2913 16.1574 21.0036 17.5166 21.4042C18.8757 21.8048 20.6059 21.5431 21.1757 20.9395C21.5842 20.43 21.9057 19.1856 21.7455 19.3369C21.5852 19.4883 21.149 19.8978 20.3299 20.1204C19.5108 20.343 18.4425 20.2361 17.5166 19.9512C16.5907 19.6663 15.3888 18.8384 14.632 18.1439C13.8753 17.4495 12.0413 15.6066 11.1955 14.9745Z",
72
- fill: "url(#paint5_linear_2642_42364)"
73
- }), /*#__PURE__*/_jsx("path", {
74
- d: "M21.0103 21.0923C20.8857 21.2258 21.9376 20.8171 22.9525 20.0247C23.2614 19.7836 23.4052 19.6945 23.61 19.463C23.8014 19.2467 24.19 17.8346 24.19 17.1669C24.1544 15.8136 23.798 14.9688 23.7181 14.7979C23.61 14.5663 23.5743 14.4685 23.61 15.154C23.6456 15.8396 23.5565 16.7655 23.1737 17.5667C22.6841 18.368 22.3814 18.5817 21.8561 19.1336C21.7403 19.2583 21.7849 19.4898 21.6869 19.7836C21.5801 20.1308 21.1349 20.9587 21.0103 21.0923Z",
75
- fill: "url(#paint6_linear_2642_42364)"
76
- }), /*#__PURE__*/_jsx("path", {
77
- d: "M8.62628 19.2839C8.48382 19.3266 8.84884 19.5689 9.88158 19.8894C10.3 19.9784 11.1903 20.2276 11.5909 19.9428C12.1518 19.6789 13.4338 18.4649 13.9769 17.913C14.4339 17.4767 15.5545 16.4867 16.3807 16.0166C17.4135 15.429 18.9537 14.7435 20.1288 15.1263C21.304 15.5092 21.767 16.9871 21.7848 17.6103C21.8026 18.2335 21.7848 19.0347 21.7848 19.2395C21.7818 19.2929 21.84 19.325 22.0964 19.0258C22.4169 18.6519 22.7997 18.4649 23.2894 17.3254C23.4763 16.8565 23.7874 15.5537 23.6633 14.8326C23.556 14.2093 23.2979 13.8799 22.8086 13.328C22.3194 12.776 21.2328 11.9836 19.9241 11.9747C18.6153 11.9658 17.5915 12.5178 17.0306 12.7849C16.0869 13.2211 14.5467 14.3874 13.7187 15.2154C12.8819 15.981 12.0361 16.8357 11.5108 17.361C11.0906 17.7812 10.4632 18.3908 10.2021 18.643C9.67681 19.0525 8.83104 19.2225 8.62628 19.2839Z",
78
- fill: "url(#paint7_linear_2642_42364)"
79
- }), /*#__PURE__*/_jsx("path", {
80
- d: "M11.601 19.948C11.2378 20.1189 10.3101 19.9836 9.89163 19.8946C10.0535 19.8351 10.5856 19.5365 11.4189 18.8172C12.4606 17.9181 13.9563 16.529 15.3006 15.6834C16.912 14.6952 18.4513 14.2412 20.1389 15.1315C18.9637 14.7487 17.4235 15.4342 16.3908 16.0218C15.5646 16.4919 14.444 17.4819 13.987 17.9181C13.4439 18.4701 12.1619 19.684 11.601 19.948Z",
81
- fill: "url(#paint8_linear_2642_42364)"
82
- }), /*#__PURE__*/_jsx("path", {
83
- d: "M22.067 13.3464C21.3334 12.6556 19.9096 12.6312 19.2893 12.7054L23.0998 15.6256C23.0998 15.6256 22.984 14.21 22.067 13.3464Z",
84
- fill: "url(#paint9_linear_2642_42364)"
85
- }), /*#__PURE__*/_jsx("path", {
86
- d: "M15.2273 25.6144C14.9918 25.6144 14.801 25.4235 14.801 25.188C14.801 24.9526 14.9918 24.7617 15.2273 24.7617C15.4627 24.7617 15.6536 24.9526 15.6536 25.188C15.6536 25.4235 15.4627 25.6144 15.2273 25.6144Z",
87
- fill: "#8360FE"
88
- }), /*#__PURE__*/_jsx("path", {
89
- d: "M24.6082 11.1212C24.3728 11.1212 24.1819 10.9303 24.1819 10.6949C24.1819 10.4594 24.3728 10.2686 24.6082 10.2686C24.8437 10.2686 25.0345 10.4594 25.0345 10.6949C25.0345 10.9303 24.8437 11.1212 24.6082 11.1212Z",
90
- fill: "#8360FE"
91
- }), /*#__PURE__*/_jsx("path", {
92
- d: "M27.1665 19.2218C26.9311 19.2218 26.7402 19.0309 26.7402 18.7955C26.7402 18.56 26.9311 18.3691 27.1665 18.3691C27.402 18.3691 27.5929 18.56 27.5929 18.7955C27.5929 19.0309 27.402 19.2218 27.1665 19.2218Z",
93
- fill: "#8360FE"
94
- }), /*#__PURE__*/_jsx("path", {
95
- d: "M5.64086 10.4327C5.69392 10.2138 6.00514 10.2138 6.05821 10.4327L6.20421 11.0348C6.22315 11.1129 6.28415 11.1739 6.36228 11.1929L6.96439 11.3389C7.18322 11.3919 7.18322 11.7031 6.96439 11.7562L6.36228 11.9022C6.28415 11.9212 6.22315 11.9822 6.20421 12.0603L6.05821 12.6624C6.00514 12.8812 5.69392 12.8812 5.64086 12.6624L5.49486 12.0603C5.47591 11.9822 5.41491 11.9212 5.33679 11.9022L4.73468 11.7562C4.51585 11.7031 4.51585 11.3919 4.73468 11.3389L5.33679 11.1929C5.41491 11.1739 5.47591 11.1129 5.49486 11.0348L5.64086 10.4327Z",
96
- fill: "#8360FE",
97
- fillOpacity: "0.73"
98
- }), /*#__PURE__*/_jsx("path", {
99
- d: "M26.1036 22.3682C26.1567 22.1494 26.4679 22.1494 26.521 22.3682L26.667 22.9703C26.6859 23.0485 26.7469 23.1095 26.825 23.1284L27.4272 23.2744C27.646 23.3275 27.646 23.6387 27.4272 23.6917L26.825 23.8378C26.7469 23.8567 26.6859 23.9177 26.667 23.9958L26.521 24.5979C26.4679 24.8168 26.1567 24.8168 26.1036 24.5979L25.9576 23.9958C25.9387 23.9177 25.8777 23.8567 25.7996 23.8378L25.1974 23.6917C24.9786 23.6387 24.9786 23.3275 25.1974 23.2744L25.7996 23.1284C25.8777 23.1095 25.9387 23.0485 25.9576 22.9703L26.1036 22.3682Z",
100
- fill: "#8360FE",
101
- fillOpacity: "0.73"
102
- }), /*#__PURE__*/_jsx("path", {
103
- d: "M12.9572 6.96683C12.9925 6.82095 13.2 6.82095 13.2354 6.96683L13.3327 7.36824C13.3454 7.42033 13.386 7.46099 13.4381 7.47362L13.8395 7.57096C13.9854 7.60633 13.9854 7.81381 13.8395 7.84919L13.4381 7.94652C13.386 7.95915 13.3454 7.99982 13.3327 8.0519L13.2354 8.45331C13.2 8.5992 12.9925 8.5992 12.9572 8.45331L12.8598 8.0519C12.8472 7.99982 12.8065 7.95915 12.7544 7.94652L12.353 7.84919C12.2072 7.81381 12.2072 7.60633 12.353 7.57096L12.7544 7.47362C12.8065 7.46099 12.8472 7.42033 12.8598 7.36824L12.9572 6.96683Z",
104
- fill: "#8360FE"
105
- }), /*#__PURE__*/_jsx("path", {
106
- d: "M8.33812 23.1113C8.35581 23.0384 8.45955 23.0384 8.47724 23.1113L8.5259 23.3121C8.53222 23.3381 8.55255 23.3584 8.57859 23.3647L8.7793 23.4134C8.85224 23.4311 8.85224 23.5348 8.7793 23.5525L8.57859 23.6012C8.55255 23.6075 8.53222 23.6278 8.5259 23.6539L8.47724 23.8546C8.45955 23.9275 8.35581 23.9275 8.33812 23.8546L8.28945 23.6539C8.28314 23.6278 8.26281 23.6075 8.23676 23.6012L8.03606 23.5525C7.96312 23.5348 7.96312 23.4311 8.03606 23.4134L8.23676 23.3647C8.26281 23.3584 8.28314 23.3381 8.28945 23.3121L8.33812 23.1113Z",
107
- fill: "#2563EB"
108
- }), /*#__PURE__*/_jsx("path", {
109
- d: "M12.6004 12.0274C12.6181 11.9544 12.7218 11.9544 12.7395 12.0274L12.7882 12.2281C12.7945 12.2541 12.8148 12.2744 12.8409 12.2808L13.0416 12.3294C13.1145 12.3471 13.1145 12.4509 13.0416 12.4685L12.8409 12.5172C12.8148 12.5235 12.7945 12.5439 12.7882 12.5699L12.7395 12.7706C12.7218 12.8435 12.6181 12.8435 12.6004 12.7706L12.5517 12.5699C12.5454 12.5439 12.5251 12.5235 12.499 12.5172L12.2983 12.4685C12.2254 12.4509 12.2254 12.3471 12.2983 12.3294L12.499 12.2808C12.5251 12.2744 12.5454 12.2541 12.5517 12.2281L12.6004 12.0274Z",
110
- fill: "#8360FE"
111
- }), /*#__PURE__*/_jsx("path", {
112
- d: "M19.7767 24.0176C19.8121 23.8717 20.0196 23.8717 20.055 24.0176L20.1523 24.419C20.1649 24.4711 20.2056 24.5118 20.2577 24.5244L20.6591 24.6217C20.805 24.6571 20.805 24.8646 20.6591 24.9L20.2577 24.9973C20.2056 25.0099 20.1649 25.0506 20.1523 25.1027L20.055 25.5041C20.0196 25.65 19.8121 25.65 19.7767 25.5041L19.6794 25.1027C19.6668 25.0506 19.6261 25.0099 19.574 24.9973L19.1726 24.9C19.0267 24.8646 19.0267 24.6571 19.1726 24.6217L19.574 24.5244C19.6261 24.5118 19.6668 24.4711 19.6794 24.419L19.7767 24.0176Z",
113
- fill: "#8360FE"
114
- }), /*#__PURE__*/_jsxs("defs", {
115
- children: [/*#__PURE__*/_jsxs("filter", {
116
- id: "filter0_i_2642_42364",
117
- x: "0",
118
- y: "0",
119
- width: "32",
120
- height: "32",
121
- filterUnits: "userSpaceOnUse",
122
- colorInterpolationFilters: "sRGB",
123
- children: [/*#__PURE__*/_jsx("feFlood", {
124
- floodOpacity: "0",
125
- result: "BackgroundImageFix"
126
- }), /*#__PURE__*/_jsx("feBlend", {
127
- mode: "normal",
128
- in: "SourceGraphic",
129
- in2: "BackgroundImageFix",
130
- result: "shape"
131
- }), /*#__PURE__*/_jsx("feColorMatrix", {
132
- in: "SourceAlpha",
133
- type: "matrix",
134
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
135
- result: "hardAlpha"
136
- }), /*#__PURE__*/_jsx("feOffset", {}), /*#__PURE__*/_jsx("feGaussianBlur", {
137
- stdDeviation: "1"
138
- }), /*#__PURE__*/_jsx("feComposite", {
139
- in2: "hardAlpha",
140
- operator: "arithmetic",
141
- k2: "-1",
142
- k3: "1"
143
- }), /*#__PURE__*/_jsx("feColorMatrix", {
144
- type: "matrix",
145
- values: "0 0 0 0 0.513726 0 0 0 0 0.376471 0 0 0 0 0.992157 0 0 0 0.5 0"
146
- }), /*#__PURE__*/_jsx("feBlend", {
147
- mode: "normal",
148
- in2: "shape",
149
- result: "effect1_innerShadow_2642_42364"
150
- })]
151
- }), /*#__PURE__*/_jsxs("linearGradient", {
152
- id: "paint0_linear_2642_42364",
153
- x1: "10.6852",
154
- y1: "18.4992",
155
- x2: "8.93073",
156
- y2: "20.6834",
157
- gradientUnits: "userSpaceOnUse",
158
- children: [/*#__PURE__*/_jsx("stop", {
159
- stopColor: "#8D2EB0"
160
- }), /*#__PURE__*/_jsx("stop", {
161
- offset: "0.932292",
162
- stopColor: "#6E11B8"
163
- })]
164
- }), /*#__PURE__*/_jsxs("linearGradient", {
165
- id: "paint1_linear_2642_42364",
166
- x1: "6.21705",
167
- y1: "15.6054",
168
- x2: "7.79136",
169
- y2: "19.7004",
170
- gradientUnits: "userSpaceOnUse",
171
- children: [/*#__PURE__*/_jsx("stop", {
172
- stopColor: "#2563EB"
173
- }), /*#__PURE__*/_jsx("stop", {
174
- offset: "1",
175
- stopColor: "#BA6CD9"
176
- })]
177
- }), /*#__PURE__*/_jsxs("linearGradient", {
178
- id: "paint2_linear_2642_42364",
179
- x1: "5.97055",
180
- y1: "18.254",
181
- x2: "9.71066",
182
- y2: "19.4734",
183
- gradientUnits: "userSpaceOnUse",
184
- children: [/*#__PURE__*/_jsx("stop", {
185
- stopColor: "#D9D9D9",
186
- stopOpacity: "0.59"
187
- }), /*#__PURE__*/_jsx("stop", {
188
- offset: "1",
189
- stopColor: "#D9D9D9",
190
- stopOpacity: "0"
191
- })]
192
- }), /*#__PURE__*/_jsxs("linearGradient", {
193
- id: "paint3_linear_2642_42364",
194
- x1: "21.5312",
195
- y1: "19.9851",
196
- x2: "19.899",
197
- y2: "23.3303",
198
- gradientUnits: "userSpaceOnUse",
199
- children: [/*#__PURE__*/_jsx("stop", {
200
- stopColor: "#615EFF"
201
- }), /*#__PURE__*/_jsx("stop", {
202
- offset: "1",
203
- stopColor: "#FF5EB0"
204
- })]
205
- }), /*#__PURE__*/_jsxs("linearGradient", {
206
- id: "paint4_linear_2642_42364",
207
- x1: "24.1491",
208
- y1: "17.2527",
209
- x2: "6.28099",
210
- y2: "17.6712",
211
- gradientUnits: "userSpaceOnUse",
212
- children: [/*#__PURE__*/_jsx("stop", {
213
- stopColor: "#8360FD"
214
- }), /*#__PURE__*/_jsx("stop", {
215
- offset: "1",
216
- stopColor: "#A037D9"
217
- })]
218
- }), /*#__PURE__*/_jsxs("linearGradient", {
219
- id: "paint5_linear_2642_42364",
220
- x1: "19.5707",
221
- y1: "18.8936",
222
- x2: "8.66458",
223
- y2: "18.1012",
224
- gradientUnits: "userSpaceOnUse",
225
- children: [/*#__PURE__*/_jsx("stop", {
226
- stopColor: "#CFB9FE"
227
- }), /*#__PURE__*/_jsx("stop", {
228
- offset: "1",
229
- stopColor: "#0029FF"
230
- })]
231
- }), /*#__PURE__*/_jsxs("linearGradient", {
232
- id: "paint6_linear_2642_42364",
233
- x1: "24.3503",
234
- y1: "14.7542",
235
- x2: "20.5665",
236
- y2: "22.3394",
237
- gradientUnits: "userSpaceOnUse",
238
- children: [/*#__PURE__*/_jsx("stop", {
239
- stopColor: "#2C92FF"
240
- }), /*#__PURE__*/_jsx("stop", {
241
- offset: "1",
242
- stopColor: "#0001C5"
243
- })]
244
- }), /*#__PURE__*/_jsxs("linearGradient", {
245
- id: "paint7_linear_2642_42364",
246
- x1: "25.2124",
247
- y1: "11.1556",
248
- x2: "17.6805",
249
- y2: "23.3615",
250
- gradientUnits: "userSpaceOnUse",
251
- children: [/*#__PURE__*/_jsx("stop", {
252
- stopColor: "#2563EB"
253
- }), /*#__PURE__*/_jsx("stop", {
254
- offset: "0.308321",
255
- stopColor: "#4C60FF"
256
- }), /*#__PURE__*/_jsx("stop", {
257
- offset: "0.802083",
258
- stopColor: "#925FFF"
259
- })]
260
- }), /*#__PURE__*/_jsxs("linearGradient", {
261
- id: "paint8_linear_2642_42364",
262
- x1: "18.0961",
263
- y1: "13.2974",
264
- x2: "14.072",
265
- y2: "19.8856",
266
- gradientUnits: "userSpaceOnUse",
267
- children: [/*#__PURE__*/_jsx("stop", {
268
- stopColor: "#D9D9D9"
269
- }), /*#__PURE__*/_jsx("stop", {
270
- offset: "1",
271
- stopColor: "#D9D9D9",
272
- stopOpacity: "0"
273
- })]
274
- }), /*#__PURE__*/_jsxs("linearGradient", {
275
- id: "paint9_linear_2642_42364",
276
- x1: "22.6546",
277
- y1: "12.0822",
278
- x2: "20.5714",
279
- y2: "14.5483",
280
- gradientUnits: "userSpaceOnUse",
281
- children: [/*#__PURE__*/_jsx("stop", {
282
- offset: "0.295908",
283
- stopColor: "#D9D9D9"
284
- }), /*#__PURE__*/_jsx("stop", {
285
- offset: "0.667869",
286
- stopColor: "#D9D9D9",
287
- stopOpacity: "0"
288
- })]
289
- })]
290
- })]
291
- });
@@ -1,27 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
- const UndoIcon = props => {
4
- return /*#__PURE__*/_jsxs("svg", {
5
- width: "17",
6
- height: "18",
7
- viewBox: "0 0 17 18",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
10
- ...props,
11
- children: [/*#__PURE__*/_jsx("path", {
12
- d: "M4.75 14.5H10.75C12.82 14.5 14.5 12.484 14.5 10C14.5 7.516 12.82 5.5 10.75 5.5H2.5",
13
- stroke: "#64748B",
14
- strokeWidth: "1.5",
15
- strokeMiterlimit: "10",
16
- strokeLinecap: "round",
17
- strokeLinejoin: "round"
18
- }), /*#__PURE__*/_jsx("path", {
19
- d: "M4.5 7.5L2.5 5.5L4.5 3.5",
20
- stroke: "#64748B",
21
- strokeWidth: "1.5",
22
- strokeLinecap: "round",
23
- strokeLinejoin: "round"
24
- })]
25
- });
26
- };
27
- export default UndoIcon;
@@ -1,106 +0,0 @@
1
- import { Box, Button, Typography, useTheme } from "@mui/material";
2
- import ColorPickerTool from "react-gcolor-picker";
3
- import customColorPickerStyles from "./style";
4
- import { colors } from "../../Elements/Color Picker/defaultColors";
5
- import { useContext, useMemo } from "react";
6
- import { ThemeContext } from "../../CommonEditor";
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
9
- function CustomColorPicker(props) {
10
- const {
11
- gradient,
12
- color,
13
- onChange,
14
- defaultColors,
15
- recentColors = [],
16
- closeDrawer,
17
- hideThemeColors,
18
- disableEditTheme
19
- } = props;
20
- const {
21
- setOpenTheme
22
- } = useContext(ThemeContext);
23
- const classes = customColorPickerStyles();
24
- const theme = useTheme();
25
- const colorVars = theme?.vars?.colors || {};
26
- const colorTabs = useMemo(() => {
27
- const otherColors = {
28
- title: "Recent colours",
29
- colors: [...recentColors, ...defaultColors],
30
- onChange: onChange
31
- };
32
- const themeColors = Object.values(colorVars);
33
- const tabs = [];
34
- if (themeColors?.length && !hideThemeColors) {
35
- tabs.push({
36
- title: "Theme colour",
37
- onEdit: () => {
38
- setOpenTheme("editThemeColor");
39
- closeDrawer();
40
- },
41
- colors: Object.values(colorVars),
42
- onChange: onChange
43
- });
44
- }
45
- tabs.push(otherColors);
46
- return tabs;
47
- }, [recentColors, defaultColors, onChange, colorVars]);
48
- return /*#__PURE__*/_jsxs(Box, {
49
- component: "div",
50
- sx: classes.customColorPickerContainer,
51
- children: [/*#__PURE__*/_jsx(ColorPickerTool, {
52
- gradient: gradient,
53
- value: color?.startsWith("var") ? "" : color,
54
- onChange: onChange,
55
- defaultColors: [],
56
- popupWidth: "300"
57
- }), colorTabs.map((tab, i) => {
58
- const {
59
- title,
60
- onEdit,
61
- colors = [],
62
- onChange
63
- } = tab;
64
- return /*#__PURE__*/_jsxs(Box, {
65
- component: "div",
66
- className: "customColorPickerWrapper",
67
- children: [/*#__PURE__*/_jsxs(Box, {
68
- component: "div",
69
- className: "colorTitleWrapper",
70
- children: [/*#__PURE__*/_jsx(Typography, {
71
- variant: "subtitle2",
72
- children: title
73
- }), onEdit && !disableEditTheme ? /*#__PURE__*/_jsx(Button, {
74
- variant: "text",
75
- className: "editBtn",
76
- onClick: () => onEdit(tab),
77
- children: "Edit"
78
- }) : null]
79
- }), /*#__PURE__*/_jsx(Box, {
80
- component: "div",
81
- className: "colorPickerBtnContainer",
82
- children: colors.map((colorVar, i) => {
83
- const isSelected = colorVar === color;
84
- return /*#__PURE__*/_jsx(Box, {
85
- className: isSelected ? "colorPicketBtnActive" : "",
86
- component: "div",
87
- children: /*#__PURE__*/_jsx("button", {
88
- style: {
89
- background: colorVar
90
- },
91
- onClick: () => onChange(colorVar),
92
- className: `colorPicketBtn`,
93
- type: "button"
94
- })
95
- }, i);
96
- })
97
- })]
98
- }, i);
99
- })]
100
- });
101
- }
102
- CustomColorPicker.defaultProps = {
103
- defaultColors: [...colors],
104
- closeDrawer: () => {}
105
- };
106
- export default CustomColorPicker;
@@ -1,53 +0,0 @@
1
- const styles = () => ({
2
- customColorPickerContainer: {
3
- background: "white",
4
- width: "300px",
5
- "& .popup_tabs": {
6
- boxShadow: "none"
7
- },
8
- ".customColorPickerWrapper": {
9
- padding: "10px 0px",
10
- margin: "0px 16px",
11
- borderTop: "1px solid #DCE4EC"
12
- },
13
- ".colorTitleWrapper": {
14
- display: "flex",
15
- justifyContent: "space-between",
16
- alignItems: "center",
17
- paddingBottom: "10px",
18
- ".MuiTypography-root": {
19
- fontWeight: "600"
20
- },
21
- ".editBtn": {
22
- textTransform: "none",
23
- color: "#2563EB",
24
- textDecoration: "underline",
25
- padding: "0px",
26
- minWidth: "unset"
27
- }
28
- },
29
- ".colorPickerBtnContainer": {
30
- display: "flex",
31
- flexWrap: "wrap",
32
- gap: "10px"
33
- },
34
- ".colorPicketBtn": {
35
- width: "26px",
36
- height: "26px",
37
- outline: "none",
38
- borderRadius: "50%",
39
- cursor: "pointer",
40
- border: "1.5px solid #DCE4EC"
41
- },
42
- ".colorPicketBtnActive": {
43
- borderRadius: "50%",
44
- padding: "1px",
45
- border: "1.5px solid rgb(83, 83, 249)",
46
- width: "fit-content",
47
- height: "fit-content",
48
- display: "flex",
49
- justifyContent: "center"
50
- }
51
- }
52
- });
53
- export default styles;
@@ -1,94 +0,0 @@
1
- import Dialog from "@mui/material/Dialog";
2
- import DialogTitle from "@mui/material/DialogTitle";
3
- import DialogContent from "@mui/material/DialogContent";
4
- import DialogActions from "@mui/material/DialogActions";
5
- import IconButton from "@mui/material/IconButton";
6
- import CloseIcon from "@mui/icons-material/Close";
7
- import { Box, Typography, Button } from "@mui/material";
8
- import SwipeableDrawer from "../SwipeableDrawer";
9
- import customDialogStyles from "./style";
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
- import { Fragment as _Fragment } from "react/jsx-runtime";
13
- function CustomDialog(props) {
14
- const {
15
- handleClose,
16
- customProps,
17
- children,
18
- onSubmit
19
- } = props;
20
- const {
21
- isMobile
22
- } = customProps;
23
- const classes = customDialogStyles();
24
- if (isMobile) {
25
- return /*#__PURE__*/_jsx(Box, {
26
- sx: classes.dialogContainer,
27
- children: /*#__PURE__*/_jsxs(SwipeableDrawer, {
28
- onClose: handleClose,
29
- children: [/*#__PURE__*/_jsx(Typography, {
30
- variant: "subtitle1",
31
- gutterBottom: true,
32
- sx: {
33
- fontWeight: 600
34
- },
35
- children: "What do you want to link to?"
36
- }), /*#__PURE__*/_jsx(Box, {
37
- sx: classes.mobileDialogContent,
38
- children: children
39
- }), /*#__PURE__*/_jsx(Box, {
40
- component: "div",
41
- sx: classes.mobileActionBtns,
42
- children: /*#__PURE__*/_jsx(ActionsButtons, {
43
- classes: classes,
44
- onCancel: handleClose,
45
- onSave: onSubmit
46
- })
47
- })]
48
- })
49
- });
50
- } else {
51
- return /*#__PURE__*/_jsxs(Dialog, {
52
- onClose: handleClose,
53
- open: true,
54
- sx: classes.dialogContainer,
55
- fullWidth: true,
56
- maxWidth: "sm",
57
- children: [/*#__PURE__*/_jsx(DialogTitle, {
58
- children: "What do you want to link to?"
59
- }), /*#__PURE__*/_jsx(IconButton, {
60
- "aria-label": "close",
61
- onClick: handleClose,
62
- sx: classes.closeIcon,
63
- children: /*#__PURE__*/_jsx(CloseIcon, {})
64
- }), /*#__PURE__*/_jsx(DialogContent, {
65
- dividers: true,
66
- children: children
67
- }), /*#__PURE__*/_jsx(DialogActions, {
68
- children: /*#__PURE__*/_jsx(ActionsButtons, {
69
- classes: classes,
70
- onCancel: handleClose,
71
- onSave: onSubmit
72
- })
73
- })]
74
- });
75
- }
76
- }
77
- export default CustomDialog;
78
- function ActionsButtons({
79
- classes,
80
- onCancel,
81
- onSave
82
- }) {
83
- return /*#__PURE__*/_jsxs(_Fragment, {
84
- children: [/*#__PURE__*/_jsx(Button, {
85
- onClick: onCancel,
86
- sx: classes.closeBtn,
87
- children: "Cancel"
88
- }), /*#__PURE__*/_jsx(Button, {
89
- onClick: onSave,
90
- sx: classes.saveBtn,
91
- children: "Save"
92
- })]
93
- });
94
- }
@@ -1,67 +0,0 @@
1
- const styles = () => ({
2
- dialogContainer: {
3
- "& .MuiDialogContent-root": {
4
- padding: "0px 20px"
5
- },
6
- "& .MuiDialogActions-root": {
7
- padding: "10px"
8
- },
9
- "& .MuiTypography-h6": {
10
- fontWeight: 600,
11
- fontSize: "16px",
12
- paddingRight: "20px"
13
- },
14
- "& .MuiGrid-container": {
15
- marginTop: "0px"
16
- },
17
- "& .MuiGrid-item": {
18
- padding: "14px"
19
- }
20
- },
21
- saveBtn: {
22
- color: "#fff",
23
- background: "#2563EB",
24
- fontSize: "14px",
25
- fontWeight: 500,
26
- padding: "4px 24px",
27
- textTransform: "none",
28
- "&:hover": {
29
- color: "#fff",
30
- background: "#2563EB"
31
- }
32
- },
33
- closeBtn: {
34
- backgroundColor: "#F4F6F9",
35
- color: "#64748B",
36
- fontSize: "14px",
37
- fontWeight: 500,
38
- padding: "4px 22px",
39
- textTransform: "none",
40
- border: "1px solid #D8DDE1",
41
- "&:hover": {
42
- border: "1px solid #64748B"
43
- }
44
- },
45
- closeIcon: {
46
- position: "absolute",
47
- right: 8,
48
- top: 8,
49
- color: theme => theme.palette.grey[500]
50
- },
51
- gridDivider: {
52
- borderRight: "1px solid rgba(0, 0, 0, 0.12)"
53
- },
54
- mobileActionBtns: {
55
- display: "flex",
56
- justifyContent: "flex-end",
57
- gap: "8px",
58
- paddingTop: "14px",
59
- marginTop: "14px",
60
- borderTop: theme => `1px solid ${theme.palette.grey[300]}`
61
- },
62
- mobileDialogContent: {
63
- borderTop: theme => `1px solid ${theme.palette.grey[300]}`,
64
- paddingTop: "14px"
65
- }
66
- });
67
- export default styles;