@flozy/editor 5.5.7 → 5.5.8

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 (198) hide show
  1. package/dist/Editor/ChatEditor.js +34 -25
  2. package/dist/Editor/CommonEditor.js +13 -26
  3. package/dist/Editor/Editor.css +19 -102
  4. package/dist/Editor/Elements/AI/AIInput.js +1 -0
  5. package/dist/Editor/Elements/AI/CustomSelect.js +10 -17
  6. package/dist/Editor/Elements/AI/PopoverAIInput.js +53 -59
  7. package/dist/Editor/Elements/AI/Styles.js +6 -24
  8. package/dist/Editor/Elements/Accordion/Accordion.js +1 -8
  9. package/dist/Editor/Elements/AppHeader/AppHeader.js +6 -6
  10. package/dist/Editor/Elements/Button/EditorButton.js +1 -6
  11. package/dist/Editor/Elements/Carousel/CarouselItem.js +3 -11
  12. package/dist/Editor/Elements/Color Picker/ColorButtons.js +5 -7
  13. package/dist/Editor/Elements/Color Picker/Styles.js +3 -8
  14. package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
  15. package/dist/Editor/Elements/Divider/Divider.js +20 -36
  16. package/dist/Editor/Elements/Embed/Image.js +16 -51
  17. package/dist/Editor/Elements/Embed/Video.js +3 -26
  18. package/dist/Editor/Elements/Form/Form.js +2 -38
  19. package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +1 -7
  20. package/dist/Editor/Elements/Form/FormElements/FormDate.js +1 -7
  21. package/dist/Editor/Elements/Form/FormElements/FormEmail.js +1 -7
  22. package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +1 -7
  23. package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +1 -7
  24. package/dist/Editor/Elements/Form/FormElements/FormText.js +1 -7
  25. package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +1 -6
  26. package/dist/Editor/Elements/Form/FormPopup.js +9 -12
  27. package/dist/Editor/Elements/Form/Workflow/Styles.js +0 -2
  28. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
  29. package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +2 -4
  30. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +1 -20
  31. package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
  32. package/dist/Editor/Elements/FreeGrid/styles.js +1 -1
  33. package/dist/Editor/Elements/Grid/GridButton.js +2 -2
  34. package/dist/Editor/Elements/Grid/GridItem.js +36 -47
  35. package/dist/Editor/Elements/Grid/Styles.js +0 -50
  36. package/dist/Editor/Elements/Link/LinkButton.js +1 -1
  37. package/dist/Editor/Elements/Search/SearchButton.js +0 -1
  38. package/dist/Editor/Elements/Signature/Signature.css +1 -1
  39. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
  40. package/dist/Editor/Elements/Signature/SignaturePopup.js +52 -17
  41. package/dist/Editor/Elements/SimpleText/style.js +0 -15
  42. package/dist/Editor/Elements/Table/Styles.js +78 -88
  43. package/dist/Editor/Elements/Table/Table.js +140 -263
  44. package/dist/Editor/Elements/Table/TableCell.js +111 -365
  45. package/dist/Editor/Elements/Table/TablePopup.js +3 -9
  46. package/dist/Editor/Elements/Table/TableRow.js +2 -10
  47. package/dist/Editor/Elements/TopBanner/TopBanner.js +1 -2
  48. package/dist/Editor/MiniEditor.js +2 -21
  49. package/dist/Editor/Styles/EditorStyles.js +4 -13
  50. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +0 -10
  51. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +12 -7
  52. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -26
  53. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +0 -3
  54. package/dist/Editor/Toolbar/FormatTools/TextSize.js +5 -5
  55. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +8 -8
  56. package/dist/Editor/Toolbar/Mini/Styles.js +1 -9
  57. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/InfinityAITool.js +3 -7
  58. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +4 -6
  59. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +15 -19
  60. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +58 -547
  61. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +16 -28
  62. package/dist/Editor/Toolbar/PopupTool/index.js +5 -3
  63. package/dist/Editor/Toolbar/Toolbar.js +0 -6
  64. package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
  65. package/dist/Editor/assets/svg/BrainIcon.js +2 -2
  66. package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
  67. package/dist/Editor/common/ColorPickerButton.js +45 -85
  68. package/dist/Editor/common/DnD/Draggable.js +1 -2
  69. package/dist/Editor/common/FontLoader/FontLoader.js +2 -2
  70. package/dist/Editor/common/Icon.js +21 -54
  71. package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -2
  72. package/dist/Editor/common/ImageSelector/Styles.js +6 -47
  73. package/dist/Editor/common/ImageSelector/UploadStyles.js +6 -18
  74. package/dist/Editor/common/LinkSettings/NavComponents.js +1 -2
  75. package/dist/Editor/common/LinkSettings/index.js +1 -2
  76. package/dist/Editor/common/MentionsPopup/Styles.js +8 -142
  77. package/dist/Editor/common/MentionsPopup/index.js +1 -1
  78. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +12 -107
  79. package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
  80. package/dist/Editor/common/RnD/ShadowElement.js +1 -1
  81. package/dist/Editor/common/RnD/VirtualElement/index.js +1 -5
  82. package/dist/Editor/common/RnD/index.js +3 -4
  83. package/dist/Editor/common/Section/index.js +3 -3
  84. package/dist/Editor/common/Section/styles.js +1 -5
  85. package/dist/Editor/common/Shorthands/elements.js +1 -13
  86. package/dist/Editor/common/StyleBuilder/fieldStyle.js +1 -2
  87. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -4
  88. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +7 -35
  89. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +2 -15
  90. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +1 -2
  91. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
  92. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +0 -2
  93. package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +11 -11
  94. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +6 -22
  95. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -21
  96. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -20
  97. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +2 -12
  98. package/dist/Editor/common/StyleBuilder/formStyle.js +149 -268
  99. package/dist/Editor/common/StyleBuilder/index.js +20 -101
  100. package/dist/Editor/common/StyleBuilder/tableStyle.js +25 -69
  101. package/dist/Editor/common/SwipeableDrawer/style.js +4 -15
  102. package/dist/Editor/common/ToolbarIcon.js +1 -1
  103. package/dist/Editor/common/Uploader.js +37 -39
  104. package/dist/Editor/common/iconListV2.js +74 -598
  105. package/dist/Editor/common/iconslist.js +19 -25
  106. package/dist/Editor/commonStyle.js +15 -421
  107. package/dist/Editor/helper/deserialize/index.js +2 -31
  108. package/dist/Editor/helper/index.js +2 -15
  109. package/dist/Editor/helper/theme.js +1 -15
  110. package/dist/Editor/hooks/useBreakpoints.js +1 -1
  111. package/dist/Editor/plugins/withCustomDeleteBackward.js +1 -1
  112. package/dist/Editor/plugins/withEmbeds.js +26 -30
  113. package/dist/Editor/plugins/withHTML.js +12 -100
  114. package/dist/Editor/plugins/withLayout.js +0 -1
  115. package/dist/Editor/utils/SlateUtilityFunctions.js +11 -31
  116. package/dist/Editor/utils/brains.js +1 -1
  117. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +1 -26
  118. package/dist/Editor/utils/customHooks/useResize.js +4 -7
  119. package/dist/Editor/utils/customHooks/useTableResize.js +2 -6
  120. package/dist/Editor/utils/embed.js +1 -2
  121. package/dist/Editor/utils/events.js +1 -0
  122. package/dist/Editor/utils/font.js +4 -11
  123. package/dist/Editor/utils/formfield.js +4 -8
  124. package/dist/Editor/utils/helper.js +2 -100
  125. package/dist/Editor/utils/insertNewLine.js +1 -19
  126. package/dist/Editor/utils/serializeToText.js +0 -2
  127. package/dist/Editor/utils/table.js +24 -228
  128. package/package.json +2 -2
  129. package/dist/Editor/Elements/DataView/DataView.js +0 -124
  130. package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
  131. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -83
  132. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -33
  133. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -180
  134. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -62
  135. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -68
  136. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -35
  137. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -39
  138. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
  139. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
  140. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
  141. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
  142. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
  143. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
  144. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
  145. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -86
  146. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -71
  147. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -138
  148. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -213
  149. package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
  150. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
  151. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -44
  152. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -146
  153. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -79
  154. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -57
  155. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
  156. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -174
  157. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -241
  158. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -45
  159. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -32
  160. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
  161. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -217
  162. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -131
  163. package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -253
  164. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -85
  165. package/dist/Editor/Elements/DataView/Layouts/colStyles.js +0 -10
  166. package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
  167. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -277
  168. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
  169. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -88
  170. package/dist/Editor/Elements/DataView/styles.js +0 -169
  171. package/dist/Editor/Elements/Table/AddRowCol.js +0 -77
  172. package/dist/Editor/Elements/Table/DragButton.js +0 -142
  173. package/dist/Editor/Elements/Table/DragStyles.js +0 -70
  174. package/dist/Editor/Elements/Table/Draggable.js +0 -25
  175. package/dist/Editor/Elements/Table/Droppable.js +0 -53
  176. package/dist/Editor/Elements/Table/TableTool.js +0 -101
  177. package/dist/Editor/Elements/Table/tableHelper.js +0 -71
  178. package/dist/Editor/assets/svg/ArrowDownIcon.js +0 -25
  179. package/dist/Editor/assets/svg/ArrowUpIcon.js +0 -25
  180. package/dist/Editor/assets/svg/CalenderIconTick.js +0 -64
  181. package/dist/Editor/assets/svg/ChervDown.js +0 -18
  182. package/dist/Editor/assets/svg/ChervUp.js +0 -18
  183. package/dist/Editor/assets/svg/DataTableIcon.js +0 -50
  184. package/dist/Editor/assets/svg/DuplicateIcon.js +0 -23
  185. package/dist/Editor/assets/svg/EyeIcon.js +0 -23
  186. package/dist/Editor/assets/svg/EyeSlash.js +0 -43
  187. package/dist/Editor/assets/svg/HashtagIcon.js +0 -33
  188. package/dist/Editor/assets/svg/PlusIcon.js +0 -23
  189. package/dist/Editor/assets/svg/SelectRoundedIcon.js +0 -24
  190. package/dist/Editor/assets/svg/SortByIcon.js +0 -33
  191. package/dist/Editor/assets/svg/TableIcons.js +0 -220
  192. package/dist/Editor/assets/svg/TickOutlined.js +0 -23
  193. package/dist/Editor/assets/svg/TrashCanIcon.js +0 -38
  194. package/dist/Editor/common/Select/index.js +0 -20
  195. package/dist/Editor/common/Select/styles.js +0 -17
  196. package/dist/Editor/helper/enforceDateFormat.js +0 -41
  197. package/dist/Editor/hooks/useTable.js +0 -210
  198. package/dist/Editor/utils/dataView.js +0 -43
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
- const DuplicateIcon = () => {
4
- return /*#__PURE__*/_jsxs("svg", {
5
- width: "16",
6
- height: "16",
7
- viewBox: "0 0 16 16",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
10
- children: [/*#__PURE__*/_jsx("path", {
11
- d: "M10.6654 8.60016V11.4002C10.6654 13.7335 9.73203 14.6668 7.3987 14.6668H4.5987C2.26536 14.6668 1.33203 13.7335 1.33203 11.4002V8.60016C1.33203 6.26683 2.26536 5.3335 4.5987 5.3335H7.3987C9.73203 5.3335 10.6654 6.26683 10.6654 8.60016Z",
12
- stroke: "#64748B",
13
- strokeLinecap: "round",
14
- strokeLinejoin: "round"
15
- }), /*#__PURE__*/_jsx("path", {
16
- d: "M14.6654 4.60016V7.40016C14.6654 9.7335 13.732 10.6668 11.3987 10.6668H10.6654V8.60016C10.6654 6.26683 9.73203 5.3335 7.3987 5.3335H5.33203V4.60016C5.33203 2.26683 6.26536 1.3335 8.5987 1.3335H11.3987C13.732 1.3335 14.6654 2.26683 14.6654 4.60016Z",
17
- stroke: "#64748B",
18
- strokeLinecap: "round",
19
- strokeLinejoin: "round"
20
- })]
21
- });
22
- };
23
- export default DuplicateIcon;
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
- const EyeIcon = () => {
4
- return /*#__PURE__*/_jsxs("svg", {
5
- width: "16",
6
- height: "16",
7
- viewBox: "0 0 16 16",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
10
- children: [/*#__PURE__*/_jsx("path", {
11
- d: "M10.3866 7.99995C10.3866 9.31995 9.31995 10.3866 7.99995 10.3866C6.67995 10.3866 5.61328 9.31995 5.61328 7.99995C5.61328 6.67995 6.67995 5.61328 7.99995 5.61328C9.31995 5.61328 10.3866 6.67995 10.3866 7.99995Z",
12
- stroke: "#64748B",
13
- strokeLinecap: "round",
14
- strokeLinejoin: "round"
15
- }), /*#__PURE__*/_jsx("path", {
16
- d: "M7.9999 13.5133C10.3532 13.5133 12.5466 12.1266 14.0732 9.72665C14.6732 8.78665 14.6732 7.20665 14.0732 6.26665C12.5466 3.86665 10.3532 2.47998 7.9999 2.47998C5.64656 2.47998 3.45323 3.86665 1.92656 6.26665C1.32656 7.20665 1.32656 8.78665 1.92656 9.72665C3.45323 12.1266 5.64656 13.5133 7.9999 13.5133Z",
17
- stroke: "#64748B",
18
- strokeLinecap: "round",
19
- strokeLinejoin: "round"
20
- })]
21
- });
22
- };
23
- export default EyeIcon;
@@ -1,43 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
- const EyeSlash = () => {
4
- return /*#__PURE__*/_jsxs("svg", {
5
- width: "16",
6
- height: "16",
7
- viewBox: "0 0 16 16",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
10
- children: [/*#__PURE__*/_jsx("path", {
11
- d: "M9.68661 6.31328L6.31328 9.68661C5.87995 9.25328 5.61328 8.65995 5.61328 7.99995C5.61328 6.67995 6.67995 5.61328 7.99995 5.61328C8.65995 5.61328 9.25328 5.87995 9.68661 6.31328Z",
12
- stroke: "#64748B",
13
- strokeLinecap: "round",
14
- strokeLinejoin: "round"
15
- }), /*#__PURE__*/_jsx("path", {
16
- d: "M11.8799 3.84682C10.7132 2.96682 9.3799 2.48682 7.9999 2.48682C5.64656 2.48682 3.45323 3.87348 1.92656 6.27348C1.32656 7.21348 1.32656 8.79348 1.92656 9.73348C2.45323 10.5602 3.06656 11.2735 3.73323 11.8468",
17
- stroke: "#64748B",
18
- strokeLinecap: "round",
19
- strokeLinejoin: "round"
20
- }), /*#__PURE__*/_jsx("path", {
21
- d: "M5.61328 13.02C6.37328 13.34 7.17995 13.5133 7.99995 13.5133C10.3533 13.5133 12.5466 12.1266 14.0733 9.72662C14.6733 8.78662 14.6733 7.20662 14.0733 6.26662C13.8533 5.91995 13.6133 5.59329 13.3666 5.28662",
22
- stroke: "#64748B",
23
- strokeLinecap: "round",
24
- strokeLinejoin: "round"
25
- }), /*#__PURE__*/_jsx("path", {
26
- d: "M10.3409 8.4668C10.1676 9.4068 9.40094 10.1735 8.46094 10.3468",
27
- stroke: "#64748B",
28
- strokeLinecap: "round",
29
- strokeLinejoin: "round"
30
- }), /*#__PURE__*/_jsx("path", {
31
- d: "M6.31203 9.68652L1.33203 14.6665",
32
- stroke: "#64748B",
33
- strokeLinecap: "round",
34
- strokeLinejoin: "round"
35
- }), /*#__PURE__*/_jsx("path", {
36
- d: "M14.6675 1.3335L9.6875 6.3135",
37
- stroke: "#64748B",
38
- strokeLinecap: "round",
39
- strokeLinejoin: "round"
40
- })]
41
- });
42
- };
43
- export default EyeSlash;
@@ -1,33 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
- const HashtagIcon = () => {
4
- return /*#__PURE__*/_jsxs("svg", {
5
- width: "12",
6
- height: "12",
7
- viewBox: "0 0 12 12",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
10
- children: [/*#__PURE__*/_jsx("path", {
11
- d: "M5 1.5L4 10.5",
12
- stroke: "#64748B",
13
- strokeLinecap: "round",
14
- strokeLinejoin: "round"
15
- }), /*#__PURE__*/_jsx("path", {
16
- d: "M8 1.5L7 10.5",
17
- stroke: "#64748B",
18
- strokeLinecap: "round",
19
- strokeLinejoin: "round"
20
- }), /*#__PURE__*/_jsx("path", {
21
- d: "M1.75 4.5H10.75",
22
- stroke: "#64748B",
23
- strokeLinecap: "round",
24
- strokeLinejoin: "round"
25
- }), /*#__PURE__*/_jsx("path", {
26
- d: "M1.25 7.5H10.25",
27
- stroke: "#64748B",
28
- strokeLinecap: "round",
29
- strokeLinejoin: "round"
30
- })]
31
- });
32
- };
33
- export default HashtagIcon;
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
- const PlusIcon = () => {
4
- return /*#__PURE__*/_jsxs("svg", {
5
- width: "22",
6
- height: "22",
7
- viewBox: "0 0 18 18",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
10
- children: [/*#__PURE__*/_jsx("path", {
11
- d: "M4.5 9H13.5",
12
- stroke: "#64748B",
13
- strokeLinecap: "round",
14
- strokeLinejoin: "round"
15
- }), /*#__PURE__*/_jsx("path", {
16
- d: "M9 13.5V4.5",
17
- stroke: "#64748B",
18
- strokeLinecap: "round",
19
- strokeLinejoin: "round"
20
- })]
21
- });
22
- };
23
- export default PlusIcon;
@@ -1,24 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
- const SelectRoundedIcon = () => {
4
- return /*#__PURE__*/_jsxs("svg", {
5
- width: "14",
6
- height: "14",
7
- viewBox: "0 0 14 14",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
10
- children: [/*#__PURE__*/_jsx("path", {
11
- d: "M7.0013 12.8334C10.223 12.8334 12.8346 10.2217 12.8346 7.00008C12.8346 3.77842 10.223 1.16675 7.0013 1.16675C3.77964 1.16675 1.16797 3.77842 1.16797 7.00008C1.16797 10.2217 3.77964 12.8334 7.0013 12.8334Z",
12
- stroke: "#64748B",
13
- strokeMiterlimit: "10",
14
- strokeLinecap: "round",
15
- strokeLinejoin: "round"
16
- }), /*#__PURE__*/_jsx("path", {
17
- d: "M4.94141 6.26489L7.00057 8.31823L9.05974 6.26489",
18
- stroke: "#64748B",
19
- strokeLinecap: "round",
20
- strokeLinejoin: "round"
21
- })]
22
- });
23
- };
24
- export default SelectRoundedIcon;
@@ -1,33 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
- const SortByIcon = () => {
4
- return /*#__PURE__*/_jsxs("svg", {
5
- width: "16",
6
- height: "16",
7
- viewBox: "0 0 16 16",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
10
- children: [/*#__PURE__*/_jsx("path", {
11
- d: "M6.96781 4.47998L4.48779 2L2.00781 4.47998",
12
- stroke: "#64748B",
13
- strokeLinecap: "round",
14
- strokeLinejoin: "round"
15
- }), /*#__PURE__*/_jsx("path", {
16
- d: "M4.48828 14V2",
17
- stroke: "#64748B",
18
- strokeLinecap: "round",
19
- strokeLinejoin: "round"
20
- }), /*#__PURE__*/_jsx("path", {
21
- d: "M9.03516 11.52L11.5152 14L13.9952 11.52",
22
- stroke: "#64748B",
23
- strokeLinecap: "round",
24
- strokeLinejoin: "round"
25
- }), /*#__PURE__*/_jsx("path", {
26
- d: "M11.5156 2V14",
27
- stroke: "#64748B",
28
- strokeLinecap: "round",
29
- strokeLinejoin: "round"
30
- })]
31
- });
32
- };
33
- export default SortByIcon;
@@ -1,220 +0,0 @@
1
- import React from "react";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { jsxs as _jsxs } from "react/jsx-runtime";
4
- export function PaintIcon() {
5
- return /*#__PURE__*/_jsxs("svg", {
6
- width: "22",
7
- height: "22",
8
- viewBox: "0 0 22 22",
9
- fill: "none",
10
- xmlns: "http://www.w3.org/2000/svg",
11
- children: [/*#__PURE__*/_jsx("path", {
12
- d: "M6.42594 16.4984L2.75011 12.8226C1.52177 11.5943 1.52177 10.3751 2.75011 9.14676L8.87344 3.02344L15.6109 9.76097C15.9501 10.1001 15.9501 10.6501 15.6109 10.9893L10.0926 16.5076C8.88261 17.7176 7.65427 17.7176 6.42594 16.4984Z",
13
- stroke: "#64748B",
14
- strokeWidth: "1.5",
15
- strokeMiterlimit: "10",
16
- strokeLinecap: "round",
17
- strokeLinejoin: "round"
18
- }), /*#__PURE__*/_jsx("path", {
19
- d: "M7.65405 1.78906L8.88239 3.01736",
20
- stroke: "#64748B",
21
- strokeWidth: "1.5",
22
- strokeMiterlimit: "10",
23
- strokeLinecap: "round",
24
- strokeLinejoin: "round"
25
- }), /*#__PURE__*/_jsx("path", {
26
- d: "M1.89746 10.9253L15.7575 10.3203",
27
- stroke: "#64748B",
28
- strokeWidth: "1.5",
29
- strokeMiterlimit: "10",
30
- strokeLinecap: "round",
31
- strokeLinejoin: "round"
32
- }), /*#__PURE__*/_jsx("path", {
33
- d: "M2.75 20.168H14.6667",
34
- stroke: "#64748B",
35
- strokeWidth: "1.5",
36
- strokeMiterlimit: "10",
37
- strokeLinecap: "round",
38
- strokeLinejoin: "round"
39
- }), /*#__PURE__*/_jsx("path", {
40
- d: "M17.2791 13.75C17.2791 13.75 15.5833 15.5925 15.5833 16.72C15.5833 17.655 16.3441 18.4158 17.2791 18.4158C18.2141 18.4158 18.9749 17.655 18.9749 16.72C18.9749 15.5925 17.2791 13.75 17.2791 13.75Z",
41
- stroke: "#64748B",
42
- strokeWidth: "1.5",
43
- strokeLinecap: "round",
44
- strokeLinejoin: "round"
45
- })]
46
- });
47
- }
48
- export function DuplicateIcon() {
49
- return /*#__PURE__*/_jsxs("svg", {
50
- width: "19",
51
- height: "19",
52
- viewBox: "0 0 19 19",
53
- fill: "none",
54
- xmlns: "http://www.w3.org/2000/svg",
55
- children: [/*#__PURE__*/_jsx("path", {
56
- d: "M12.6666 10.2112V13.5362C12.6666 16.307 11.5583 17.4154 8.78742 17.4154H5.46242C2.69159 17.4154 1.58325 16.307 1.58325 13.5362V10.2112C1.58325 7.44036 2.69159 6.33203 5.46242 6.33203H8.78742C11.5583 6.33203 12.6666 7.44036 12.6666 10.2112Z",
57
- stroke: "#64748B",
58
- strokeWidth: "1.5",
59
- strokeLinecap: "round",
60
- strokeLinejoin: "round"
61
- }), /*#__PURE__*/_jsx("path", {
62
- d: "M17.4166 5.4612V8.7862C17.4166 11.557 16.3083 12.6654 13.5374 12.6654H12.6666V10.2112C12.6666 7.44036 11.5583 6.33203 8.78742 6.33203H6.33325V5.4612C6.33325 2.69036 7.44158 1.58203 10.2124 1.58203H13.5374C16.3083 1.58203 17.4166 2.69036 17.4166 5.4612Z",
63
- stroke: "#64748B",
64
- strokeWidth: "1.5",
65
- strokeLinecap: "round",
66
- strokeLinejoin: "round"
67
- })]
68
- });
69
- }
70
- export function AboveArrow() {
71
- return /*#__PURE__*/_jsxs("svg", {
72
- width: "22",
73
- height: "22",
74
- viewBox: "0 0 22 22",
75
- fill: "none",
76
- xmlns: "http://www.w3.org/2000/svg",
77
- children: [/*#__PURE__*/_jsx("path", {
78
- d: "M16.5642 8.77344L11 3.20927L5.43588 8.77344",
79
- stroke: "#64748B",
80
- strokeWidth: "1.5",
81
- strokeMiterlimit: "10",
82
- strokeLinecap: "round",
83
- strokeLinejoin: "round"
84
- }), /*#__PURE__*/_jsx("path", {
85
- d: "M11 18.793L11 3.36547",
86
- stroke: "#64748B",
87
- strokeWidth: "1.5",
88
- strokeMiterlimit: "10",
89
- strokeLinecap: "round",
90
- strokeLinejoin: "round"
91
- })]
92
- });
93
- }
94
- export function BelowArrow() {
95
- return /*#__PURE__*/_jsxs("svg", {
96
- width: "22",
97
- height: "22",
98
- viewBox: "0 0 22 22",
99
- fill: "none",
100
- xmlns: "http://www.w3.org/2000/svg",
101
- children: [/*#__PURE__*/_jsx("path", {
102
- d: "M16.5642 13.2266L11 18.7907L5.43588 13.2266",
103
- stroke: "#64748B",
104
- strokeWidth: "1.5",
105
- strokeMiterlimit: "10",
106
- strokeLinecap: "round",
107
- strokeLinejoin: "round"
108
- }), /*#__PURE__*/_jsx("path", {
109
- d: "M11 3.20703L11 18.6345",
110
- stroke: "#64748B",
111
- strokeWidth: "1.5",
112
- strokeMiterlimit: "10",
113
- strokeLinecap: "round",
114
- strokeLinejoin: "round"
115
- })]
116
- });
117
- }
118
- export function RightArrow() {
119
- return /*#__PURE__*/_jsxs("svg", {
120
- width: "22",
121
- height: "22",
122
- viewBox: "0 0 22 22",
123
- fill: "none",
124
- xmlns: "http://www.w3.org/2000/svg",
125
- children: [/*#__PURE__*/_jsx("path", {
126
- d: "M13.2275 16.5625L18.7917 10.9983L13.2275 5.43417",
127
- stroke: "#64748B",
128
- strokeWidth: "1.5",
129
- strokeMiterlimit: "10",
130
- strokeLinecap: "round",
131
- strokeLinejoin: "round"
132
- }), /*#__PURE__*/_jsx("path", {
133
- d: "M3.20825 11H18.6358",
134
- stroke: "#64748B",
135
- strokeWidth: "1.5",
136
- strokeMiterlimit: "10",
137
- strokeLinecap: "round",
138
- strokeLinejoin: "round"
139
- })]
140
- });
141
- }
142
- export function LeftArrow() {
143
- return /*#__PURE__*/_jsxs("svg", {
144
- width: "22",
145
- height: "22",
146
- viewBox: "0 0 22 22",
147
- fill: "none",
148
- xmlns: "http://www.w3.org/2000/svg",
149
- children: [/*#__PURE__*/_jsx("path", {
150
- d: "M8.77246 16.5625L3.20829 10.9983L8.77246 5.43417",
151
- stroke: "#64748B",
152
- strokeWidth: "1.5",
153
- strokeMiterlimit: "10",
154
- strokeLinecap: "round",
155
- strokeLinejoin: "round"
156
- }), /*#__PURE__*/_jsx("path", {
157
- d: "M18.7917 11L3.36425 11",
158
- stroke: "#64748B",
159
- strokeWidth: "1.5",
160
- strokeMiterlimit: "10",
161
- strokeLinecap: "round",
162
- strokeLinejoin: "round"
163
- })]
164
- });
165
- }
166
- export function SettingsIcon() {
167
- return /*#__PURE__*/_jsxs("svg", {
168
- width: "20",
169
- height: "20",
170
- viewBox: "0 0 20 20",
171
- fill: "none",
172
- xmlns: "http://www.w3.org/2000/svg",
173
- children: [/*#__PURE__*/_jsx("path", {
174
- d: "M10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5Z",
175
- stroke: "#0F172A",
176
- strokeWidth: "1.5",
177
- strokeMiterlimit: "10",
178
- strokeLinecap: "round",
179
- strokeLinejoin: "round"
180
- }), /*#__PURE__*/_jsx("path", {
181
- d: "M1.66675 10.7339V9.26718C1.66675 8.40052 2.37508 7.68385 3.25008 7.68385C4.75841 7.68385 5.37508 6.61718 4.61675 5.30885C4.18341 4.55885 4.44175 3.58385 5.20008 3.15052L6.64175 2.32552C7.30008 1.93385 8.15008 2.16718 8.54175 2.82552L8.63341 2.98385C9.38341 4.29218 10.6167 4.29218 11.3751 2.98385L11.4667 2.82552C11.8584 2.16718 12.7084 1.93385 13.3667 2.32552L14.8084 3.15052C15.5667 3.58385 15.8251 4.55885 15.3917 5.30885C14.6334 6.61718 15.2501 7.68385 16.7584 7.68385C17.6251 7.68385 18.3417 8.39218 18.3417 9.26718V10.7339C18.3417 11.6005 17.6334 12.3172 16.7584 12.3172C15.2501 12.3172 14.6334 13.3838 15.3917 14.6922C15.8251 15.4505 15.5667 16.4172 14.8084 16.8505L13.3667 17.6755C12.7084 18.0672 11.8584 17.8339 11.4667 17.1755L11.3751 17.0172C10.6251 15.7089 9.39175 15.7089 8.63341 17.0172L8.54175 17.1755C8.15008 17.8339 7.30008 18.0672 6.64175 17.6755L5.20008 16.8505C4.44175 16.4172 4.18341 15.4422 4.61675 14.6922C5.37508 13.3838 4.75841 12.3172 3.25008 12.3172C2.37508 12.3172 1.66675 11.6005 1.66675 10.7339Z",
182
- stroke: "#0F172A",
183
- strokeWidth: "1.5",
184
- strokeMiterlimit: "10",
185
- strokeLinecap: "round",
186
- strokeLinejoin: "round"
187
- })]
188
- });
189
- }
190
- export function MoreIcon() {
191
- return /*#__PURE__*/_jsxs("svg", {
192
- width: "18",
193
- height: "4",
194
- viewBox: "0 0 18 4",
195
- fill: "none",
196
- xmlns: "http://www.w3.org/2000/svg",
197
- children: [/*#__PURE__*/_jsx("path", {
198
- d: "M9.99846 2.00034C9.99846 1.44825 9.55081 1.00069 8.99862 1.00069C8.44642 1.00069 7.99878 1.44825 7.99878 2.00034C7.99878 2.55244 8.44642 3 8.99862 3C9.55081 3 9.99846 2.55244 9.99846 2.00034Z",
199
- fill: "#0F172A",
200
- stroke: "#0F172A",
201
- strokeWidth: "1.5",
202
- strokeLinecap: "round",
203
- strokeLinejoin: "round"
204
- }), /*#__PURE__*/_jsx("path", {
205
- d: "M16.9972 2.00034C16.9972 1.44825 16.5496 1.00069 15.9974 1.00069C15.4452 1.00069 14.9976 1.44825 14.9976 2.00034C14.9976 2.55244 15.4452 3 15.9974 3C16.5496 3 16.9972 2.55244 16.9972 2.00034Z",
206
- fill: "#0F172A",
207
- stroke: "#0F172A",
208
- strokeWidth: "1.5",
209
- strokeLinecap: "round",
210
- strokeLinejoin: "round"
211
- }), /*#__PURE__*/_jsx("path", {
212
- d: "M2.99968 2.00034C2.99968 1.44825 2.55203 1.00069 1.99984 1.00069C1.44764 1.00069 1 1.44825 1 2.00034C1 2.55244 1.44764 3 1.99984 3C2.55203 3 2.99968 2.55244 2.99968 2.00034Z",
213
- fill: "#0F172A",
214
- stroke: "#0F172A",
215
- strokeWidth: "1.5",
216
- strokeLinecap: "round",
217
- strokeLinejoin: "round"
218
- })]
219
- });
220
- }
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
- const TickOutlined = () => {
4
- return /*#__PURE__*/_jsxs("svg", {
5
- width: "14",
6
- height: "14",
7
- viewBox: "0 0 14 14",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
10
- children: [/*#__PURE__*/_jsx("path", {
11
- d: "M7.00008 12.8327C10.2084 12.8327 12.8334 10.2077 12.8334 6.99935C12.8334 3.79102 10.2084 1.16602 7.00008 1.16602C3.79175 1.16602 1.16675 3.79102 1.16675 6.99935C1.16675 10.2077 3.79175 12.8327 7.00008 12.8327Z",
12
- stroke: "#64748B",
13
- strokeLinecap: "round",
14
- strokeLinejoin: "round"
15
- }), /*#__PURE__*/_jsx("path", {
16
- d: "M4.52075 7.00044L6.17159 8.65128L9.47909 5.34961",
17
- stroke: "#64748B",
18
- strokeLinecap: "round",
19
- strokeLinejoin: "round"
20
- })]
21
- });
22
- };
23
- export default TickOutlined;
@@ -1,38 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
- const TrashIcon = () => {
4
- return /*#__PURE__*/_jsxs("svg", {
5
- width: "16",
6
- height: "16",
7
- viewBox: "0 0 16 16",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
10
- children: [/*#__PURE__*/_jsx("path", {
11
- d: "M2 3.98617C4.22 3.76617 6.45333 3.65283 8.68 3.65283C10 3.65283 11.32 3.7195 12.64 3.85283L14 3.98617",
12
- stroke: "#64748B",
13
- strokeLinecap: "round",
14
- strokeLinejoin: "round"
15
- }), /*#__PURE__*/_jsx("path", {
16
- d: "M10.332 3.3135L10.1854 2.44016C10.0787 1.80683 9.9987 1.3335 8.87203 1.3335H7.12536C5.9987 1.3335 5.91203 1.8335 5.81203 2.44683L5.66537 3.3135",
17
- stroke: "#64748B",
18
- strokeLinecap: "round",
19
- strokeLinejoin: "round"
20
- }), /*#__PURE__*/_jsx("path", {
21
- d: "M3.43307 6.09375L3.86641 12.8071C3.93974 13.8537 3.99974 14.6671 5.85974 14.6671H10.1397C11.9997 14.6671 12.0597 13.8537 12.1331 12.8071L12.5664 6.09375",
22
- stroke: "#64748B",
23
- strokeLinecap: "round",
24
- strokeLinejoin: "round"
25
- }), /*#__PURE__*/_jsx("path", {
26
- d: "M9.11328 11H6.89328",
27
- stroke: "#64748B",
28
- strokeLinecap: "round",
29
- strokeLinejoin: "round"
30
- }), /*#__PURE__*/_jsx("path", {
31
- d: "M9.66797 8.3335H6.33464",
32
- stroke: "#64748B",
33
- strokeLinecap: "round",
34
- strokeLinejoin: "round"
35
- })]
36
- });
37
- };
38
- export default TrashIcon;
@@ -1,20 +0,0 @@
1
- import { Select as Core } from "@mui/material";
2
- import SelectStyles from "./styles";
3
- import { useEditorContext } from "../../hooks/useMouseMove";
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- function Select(props) {
6
- const {
7
- children,
8
- ...rest
9
- } = props;
10
- const {
11
- theme
12
- } = useEditorContext();
13
- const classes = SelectStyles(theme);
14
- return /*#__PURE__*/_jsx(Core, {
15
- MenuProps: classes.MenuProps,
16
- ...rest,
17
- children: children
18
- });
19
- }
20
- export default Select;
@@ -1,17 +0,0 @@
1
- const SelectStyles = (theme = {}) => {
2
- const {
3
- textColor,
4
- background
5
- } = theme?.palette?.editor || {};
6
- return {
7
- MenuProps: {
8
- PaperProps: {
9
- sx: {
10
- color: textColor,
11
- background
12
- }
13
- }
14
- }
15
- };
16
- };
17
- export default SelectStyles;
@@ -1,41 +0,0 @@
1
- function enforceDateFormat(inputElement) {
2
- inputElement.addEventListener("input", event => {
3
- const input = event.target;
4
- let value = input.value;
5
-
6
- // Allow only numbers and forward slashes
7
- value = value.replace(/[^\d/]/g, "");
8
-
9
- // Enforce MM/DD/YYYY structure
10
- if (value.length > 10) {
11
- value = value.slice(0, 10);
12
- }
13
- const parts = value.split("/");
14
- if (parts.length > 1) {
15
- parts[0] = parts[0].slice(0, 2); // Limit MM to 2 digits
16
- if (parts[0] > 12) parts[0] = "12"; // Max month value
17
- }
18
-
19
- if (parts.length > 2) {
20
- parts[1] = parts[1].slice(0, 2); // Limit DD to 2 digits
21
- if (parts[1] > 31) parts[1] = "31"; // Max day value
22
- }
23
-
24
- if (parts.length > 3) {
25
- parts[2] = parts[2].slice(0, 4); // Limit YYYY to 4 digits
26
- }
27
-
28
- input.value = parts.join("/");
29
-
30
- // Optionally, validate the full date
31
- if (input.value.length === 10) {
32
- const [month, day, year] = input.value.split("/").map(Number);
33
- const isValidDate = !isNaN(Date.parse(`${year}-${month}-${day}`));
34
- if (!isValidDate) {
35
- input.value = ""; // Clear input if invalid
36
- alert("Invalid date format. Please enter a valid MM/DD/YYYY date.");
37
- }
38
- }
39
- });
40
- }
41
- export default enforceDateFormat;