@atlaskit/editor-plugin-table 5.6.7 → 5.7.1

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 (46) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/nodeviews/TableResizer.js +1 -1
  3. package/dist/cjs/types.js +1 -0
  4. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +238 -99
  5. package/dist/cjs/ui/FloatingContextualMenu/styles.js +1 -1
  6. package/dist/cjs/ui/consts.js +6 -1
  7. package/dist/cjs/ui/icons/MergeCellsIcon.js +34 -0
  8. package/dist/cjs/ui/icons/SplitCellIcon.js +41 -0
  9. package/dist/cjs/ui/icons/index.js +14 -0
  10. package/dist/es2019/nodeviews/TableResizer.js +2 -2
  11. package/dist/es2019/types.js +1 -0
  12. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +248 -71
  13. package/dist/es2019/ui/FloatingContextualMenu/styles.js +20 -0
  14. package/dist/es2019/ui/consts.js +5 -0
  15. package/dist/es2019/ui/icons/MergeCellsIcon.js +25 -0
  16. package/dist/es2019/ui/icons/SplitCellIcon.js +32 -0
  17. package/dist/es2019/ui/icons/index.js +2 -0
  18. package/dist/esm/nodeviews/TableResizer.js +2 -2
  19. package/dist/esm/types.js +1 -0
  20. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +238 -98
  21. package/dist/esm/ui/FloatingContextualMenu/styles.js +1 -1
  22. package/dist/esm/ui/consts.js +5 -0
  23. package/dist/esm/ui/icons/MergeCellsIcon.js +27 -0
  24. package/dist/esm/ui/icons/SplitCellIcon.js +34 -0
  25. package/dist/esm/ui/icons/index.js +2 -0
  26. package/dist/types/types.d.ts +1 -0
  27. package/dist/types/ui/FloatingContextualMenu/ContextualMenu.d.ts +12 -2
  28. package/dist/types/ui/consts.d.ts +1 -0
  29. package/dist/types/ui/icons/MergeCellsIcon.d.ts +2 -0
  30. package/dist/types/ui/icons/SplitCellIcon.d.ts +2 -0
  31. package/dist/types/ui/icons/index.d.ts +2 -0
  32. package/dist/types-ts4.5/types.d.ts +1 -0
  33. package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +12 -2
  34. package/dist/types-ts4.5/ui/consts.d.ts +1 -0
  35. package/dist/types-ts4.5/ui/icons/MergeCellsIcon.d.ts +2 -0
  36. package/dist/types-ts4.5/ui/icons/SplitCellIcon.d.ts +2 -0
  37. package/dist/types-ts4.5/ui/icons/index.d.ts +2 -0
  38. package/package.json +11 -4
  39. package/src/nodeviews/TableResizer.tsx +3 -1
  40. package/src/types.ts +1 -0
  41. package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +316 -68
  42. package/src/ui/FloatingContextualMenu/styles.ts +20 -0
  43. package/src/ui/consts.ts +5 -0
  44. package/src/ui/icons/MergeCellsIcon.tsx +32 -0
  45. package/src/ui/icons/SplitCellIcon.tsx +40 -0
  46. package/src/ui/icons/index.ts +2 -0
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+
3
+ export const MergeCellsIcon = () => (
4
+ <svg
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ >
11
+ <path
12
+ fillRule="evenodd"
13
+ clipRule="evenodd"
14
+ d="M10 19C10.5523 19 11 18.5523 11 18C11 17.4477 10.5523 17 10 17H6V7L10 7C10.5523 7 11 6.55228 11 6C11 5.44771 10.5523 5 10 5H6C4.89543 5 4 5.89543 4 7V17C4 18.1046 4.89543 19 6 19H10ZM14 5C13.4477 5 13 5.44772 13 6C13 6.55228 13.4477 7 14 7H18V17L14 17C13.4477 17 13 17.4477 13 18C13 18.5523 13.4477 19 14 19H18C19.1046 19 20 18.1046 20 17V7C20 5.89543 19.1046 5 18 5H14Z"
15
+ fill="currentColor"
16
+ />
17
+ <path
18
+ d="M15.75 10L13.75 12L15.75 14"
19
+ stroke="currentColor"
20
+ strokeWidth="1.5"
21
+ strokeLinecap="round"
22
+ strokeLinejoin="round"
23
+ />
24
+ <path
25
+ d="M8.25 14L10.25 12L8.25 10"
26
+ stroke="currentColor"
27
+ strokeWidth="1.5"
28
+ strokeLinecap="round"
29
+ strokeLinejoin="round"
30
+ />
31
+ </svg>
32
+ );
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+
3
+ export const SplitCellIcon = () => (
4
+ <svg
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ >
11
+ <path
12
+ d="M19 18L14 18L14 6L19 6"
13
+ stroke="currentColor"
14
+ strokeWidth="2"
15
+ strokeLinecap="round"
16
+ strokeLinejoin="round"
17
+ />
18
+ <path
19
+ d="M5 6L10 6L9.99999 18L5 18"
20
+ stroke="currentColor"
21
+ strokeWidth="2"
22
+ strokeLinecap="round"
23
+ strokeLinejoin="round"
24
+ />
25
+ <path
26
+ d="M7 10L5 12L7 14"
27
+ stroke="currentColor"
28
+ strokeWidth="1.5"
29
+ strokeLinecap="round"
30
+ strokeLinejoin="round"
31
+ />
32
+ <path
33
+ d="M17 14L19 12L17 10"
34
+ stroke="currentColor"
35
+ strokeWidth="1.5"
36
+ strokeLinecap="round"
37
+ strokeLinejoin="round"
38
+ />
39
+ </svg>
40
+ );
@@ -2,6 +2,8 @@ export { DragHandleIcon } from './DragHandleIcon';
2
2
  export { DragInMotionIcon } from './DragInMotionIcon';
3
3
  export { DragHandleDisabledIcon } from './DragHandleDisabledIcon';
4
4
  export { MinimisedHandleIcon } from './MinimisedHandle';
5
+ export { MergeCellsIcon } from './MergeCellsIcon';
6
+ export { SplitCellIcon } from './SplitCellIcon';
5
7
  export { AddRowAboveIcon } from './AddRowAboveIcon';
6
8
  export { AddRowBelowIcon } from './AddRowBelowIcon';
7
9
  export { AddColLeftIcon } from './AddColLeftIcon';