@atlaskit/editor-plugin-table 5.6.6 → 5.7.0

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 (68) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/types.js +1 -0
  3. package/dist/cjs/ui/FloatingContextualButton/index.js +1 -7
  4. package/dist/cjs/ui/FloatingContextualButton/styles.js +5 -25
  5. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +238 -99
  6. package/dist/cjs/ui/FloatingContextualMenu/styles.js +1 -2
  7. package/dist/cjs/ui/TableFloatingControls/NumberColumn/index.js +1 -1
  8. package/dist/cjs/ui/common-styles.js +7 -7
  9. package/dist/cjs/ui/consts.js +16 -63
  10. package/dist/cjs/ui/icons/MergeCellsIcon.js +34 -0
  11. package/dist/cjs/ui/icons/SplitCellIcon.js +41 -0
  12. package/dist/cjs/ui/icons/index.js +14 -0
  13. package/dist/cjs/ui/ui-styles.js +47 -48
  14. package/dist/es2019/types.js +1 -0
  15. package/dist/es2019/ui/FloatingContextualButton/index.js +1 -5
  16. package/dist/es2019/ui/FloatingContextualButton/styles.js +10 -31
  17. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +248 -71
  18. package/dist/es2019/ui/FloatingContextualMenu/styles.js +22 -3
  19. package/dist/es2019/ui/TableFloatingControls/NumberColumn/index.js +1 -1
  20. package/dist/es2019/ui/common-styles.js +59 -59
  21. package/dist/es2019/ui/consts.js +18 -64
  22. package/dist/es2019/ui/icons/MergeCellsIcon.js +25 -0
  23. package/dist/es2019/ui/icons/SplitCellIcon.js +32 -0
  24. package/dist/es2019/ui/icons/index.js +2 -0
  25. package/dist/es2019/ui/ui-styles.js +98 -99
  26. package/dist/esm/types.js +1 -0
  27. package/dist/esm/ui/FloatingContextualButton/index.js +1 -7
  28. package/dist/esm/ui/FloatingContextualButton/styles.js +5 -26
  29. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +238 -98
  30. package/dist/esm/ui/FloatingContextualMenu/styles.js +1 -2
  31. package/dist/esm/ui/TableFloatingControls/NumberColumn/index.js +1 -1
  32. package/dist/esm/ui/common-styles.js +7 -7
  33. package/dist/esm/ui/consts.js +18 -64
  34. package/dist/esm/ui/icons/MergeCellsIcon.js +27 -0
  35. package/dist/esm/ui/icons/SplitCellIcon.js +34 -0
  36. package/dist/esm/ui/icons/index.js +2 -0
  37. package/dist/esm/ui/ui-styles.js +47 -48
  38. package/dist/types/types.d.ts +1 -0
  39. package/dist/types/ui/FloatingContextualButton/styles.d.ts +2 -3
  40. package/dist/types/ui/FloatingContextualMenu/ContextualMenu.d.ts +12 -2
  41. package/dist/types/ui/common-styles.d.ts +1 -2
  42. package/dist/types/ui/consts.d.ts +15 -15
  43. package/dist/types/ui/icons/MergeCellsIcon.d.ts +2 -0
  44. package/dist/types/ui/icons/SplitCellIcon.d.ts +2 -0
  45. package/dist/types/ui/icons/index.d.ts +2 -0
  46. package/dist/types/ui/ui-styles.d.ts +17 -18
  47. package/dist/types-ts4.5/types.d.ts +1 -0
  48. package/dist/types-ts4.5/ui/FloatingContextualButton/styles.d.ts +2 -3
  49. package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +12 -2
  50. package/dist/types-ts4.5/ui/common-styles.d.ts +1 -2
  51. package/dist/types-ts4.5/ui/consts.d.ts +15 -15
  52. package/dist/types-ts4.5/ui/icons/MergeCellsIcon.d.ts +2 -0
  53. package/dist/types-ts4.5/ui/icons/SplitCellIcon.d.ts +2 -0
  54. package/dist/types-ts4.5/ui/icons/index.d.ts +2 -0
  55. package/dist/types-ts4.5/ui/ui-styles.d.ts +17 -18
  56. package/package.json +12 -5
  57. package/src/types.ts +1 -0
  58. package/src/ui/FloatingContextualButton/index.tsx +3 -5
  59. package/src/ui/FloatingContextualButton/styles.ts +13 -35
  60. package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +316 -68
  61. package/src/ui/FloatingContextualMenu/styles.ts +22 -3
  62. package/src/ui/TableFloatingControls/NumberColumn/index.tsx +1 -1
  63. package/src/ui/common-styles.ts +57 -69
  64. package/src/ui/consts.ts +52 -73
  65. package/src/ui/icons/MergeCellsIcon.tsx +32 -0
  66. package/src/ui/icons/SplitCellIcon.tsx +40 -0
  67. package/src/ui/icons/index.ts +2 -0
  68. package/src/ui/ui-styles.ts +94 -106
@@ -12,8 +12,6 @@ import {
12
12
  } from '@atlaskit/editor-shared-styles';
13
13
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
14
14
  import { B300, N0, N300, N40A, N60A, Y200, Y50 } from '@atlaskit/theme/colors';
15
- import { borderRadius } from '@atlaskit/theme/constants';
16
- import type { ThemeProps } from '@atlaskit/theme/types';
17
15
  import { token } from '@atlaskit/tokens';
18
16
 
19
17
  import { TableCssClassName as ClassName } from '../types';
@@ -46,9 +44,9 @@ import {
46
44
  tableToolbarSize,
47
45
  } from './consts';
48
46
 
49
- const InsertLine = (props: ThemeProps, cssString?: string) => css`
47
+ const InsertLine = (cssString?: string) => css`
50
48
  .${ClassName.CONTROLS_INSERT_LINE} {
51
- background: ${tableBorderSelectedColor(props)};
49
+ background: ${tableBorderSelectedColor};
52
50
  display: none;
53
51
  position: absolute;
54
52
  z-index: ${akEditorUnitZIndex};
@@ -56,8 +54,8 @@ const InsertLine = (props: ThemeProps, cssString?: string) => css`
56
54
  }
57
55
  `;
58
56
 
59
- const Marker = (props: ThemeProps) => css`
60
- background-color: ${tableBorderColor(props)};
57
+ const Marker = () => css`
58
+ background-color: ${tableBorderColor};
61
59
  position: absolute;
62
60
  height: ${lineMarkerSize}px;
63
61
  width: ${lineMarkerSize}px;
@@ -65,15 +63,15 @@ const Marker = (props: ThemeProps) => css`
65
63
  pointer-events: none;
66
64
  `;
67
65
 
68
- export const InsertMarker = (props: ThemeProps, cssString?: string) => css`
66
+ export const InsertMarker = (cssString?: string) => css`
69
67
  .${ClassName.CONTROLS_INSERT_MARKER} {
70
- ${Marker(props)};
68
+ ${Marker()};
71
69
  ${cssString}
72
70
  }
73
71
  `;
74
72
 
75
73
  const Button = (cssString?: string) => css`
76
- border-radius: ${borderRadius()}px;
74
+ border-radius: ${token('border.radius', '3px')};
77
75
  border-width: 0px;
78
76
  display: inline-flex;
79
77
  max-width: 100%;
@@ -94,10 +92,10 @@ const Button = (cssString?: string) => css`
94
92
  ${cssString}
95
93
  `;
96
94
 
97
- export const HeaderButton = (props: ThemeProps, cssString?: string) => css`
95
+ export const HeaderButton = (cssString?: string) => css`
98
96
  .${ClassName.CONTROLS_BUTTON} {
99
- background: ${tableHeaderCellBackgroundColor(props)};
100
- border: 1px solid ${tableBorderColor(props)};
97
+ background: ${tableHeaderCellBackgroundColor};
98
+ border: 1px solid ${tableBorderColor};
101
99
  display: block;
102
100
  box-sizing: border-box;
103
101
  padding: 0;
@@ -121,24 +119,24 @@ export const HeaderButton = (props: ThemeProps, cssString?: string) => css`
121
119
 
122
120
  .active .${ClassName.CONTROLS_BUTTON} {
123
121
  color: ${token('color.icon.inverse', N0)};
124
- background-color: ${tableToolbarSelectedColor(props)};
125
- border-color: ${tableBorderSelectedColor(props)};
122
+ background-color: ${tableToolbarSelectedColor};
123
+ border-color: ${tableBorderSelectedColor};
126
124
  }
127
125
  `;
128
126
 
129
- export const HeaderButtonHover = (props: ThemeProps) => css`
127
+ export const HeaderButtonHover = () => css`
130
128
  .${ClassName.CONTROLS_BUTTON}:hover {
131
129
  color: ${token('color.icon.inverse', N0)};
132
- background-color: ${tableToolbarSelectedColor(props)};
133
- border-color: ${tableBorderSelectedColor(props)};
130
+ background-color: ${tableToolbarSelectedColor};
131
+ border-color: ${tableBorderSelectedColor};
134
132
  cursor: pointer;
135
133
  }
136
134
  `;
137
135
 
138
- export const HeaderButtonDanger = (props: ThemeProps) => css`
136
+ export const HeaderButtonDanger = () => css`
139
137
  .${ClassName.HOVERED_CELL_IN_DANGER} .${ClassName.CONTROLS_BUTTON} {
140
- background-color: ${tableToolbarDeleteColor(props)};
141
- border-color: ${tableBorderDeleteColor(props)};
138
+ background-color: ${tableToolbarDeleteColor};
139
+ border-color: ${tableBorderDeleteColor};
142
140
  position: relative;
143
141
  z-index: ${akEditorUnitZIndex};
144
142
  }
@@ -181,7 +179,7 @@ const InsertButtonHover = () => css`
181
179
  }
182
180
  `;
183
181
 
184
- export const dragInsertButtonWrapper = (props: ThemeProps) => css`
182
+ export const dragInsertButtonWrapper = () => css`
185
183
  .${ClassName.DRAG_CONTROLS_INSERT_BUTTON_INNER} {
186
184
  position: absolute;
187
185
  z-index: ${akEditorUnitZIndex + 10};
@@ -221,7 +219,7 @@ export const dragInsertButtonWrapper = (props: ThemeProps) => css`
221
219
 
222
220
  // Explicit pixel values required here to ensure corner button aligns correctly
223
221
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
224
- export const dragCornerControlButton = (props: ThemeProps) => css`
222
+ export const dragCornerControlButton = () => css`
225
223
  .${ClassName.DRAG_CORNER_BUTTON} {
226
224
  width: 15px;
227
225
  height: 15px;
@@ -274,11 +272,10 @@ export const dragCornerControlButton = (props: ThemeProps) => css`
274
272
  }
275
273
  `;
276
274
 
277
- export const insertColumnButtonWrapper = (props: ThemeProps) => css`
275
+ export const insertColumnButtonWrapper = () => css`
278
276
  ${InsertButton()}
279
277
  ${InsertButtonHover()}
280
278
  ${InsertLine(
281
- props,
282
279
  `
283
280
  width: 2px;
284
281
  left: 9px;
@@ -286,11 +283,10 @@ export const insertColumnButtonWrapper = (props: ThemeProps) => css`
286
283
  )}
287
284
  `;
288
285
 
289
- export const insertRowButtonWrapper = (props: ThemeProps) => css`
286
+ export const insertRowButtonWrapper = () => css`
290
287
  ${InsertButton()}
291
288
  ${InsertButtonHover()}
292
289
  ${InsertLine(
293
- props,
294
290
  `
295
291
  height: 2px;
296
292
  top: -11px;
@@ -312,7 +308,7 @@ export const columnControlsLineMarker = () => css`
312
308
  }
313
309
  `;
314
310
 
315
- export const DeleteButton = (props: ThemeProps) => css`
311
+ export const DeleteButton = () => css`
316
312
  .${ClassName.CONTROLS_DELETE_BUTTON_WRAP},
317
313
  .${ClassName.CONTROLS_DELETE_BUTTON} {
318
314
  height: ${tableDeleteButtonSize}px;
@@ -321,20 +317,20 @@ export const DeleteButton = (props: ThemeProps) => css`
321
317
  .${ClassName.CONTROLS_DELETE_BUTTON_WRAP} {
322
318
  .${ClassName.CONTROLS_DELETE_BUTTON} {
323
319
  ${Button(`
324
- background: ${tableCellSelectedDeleteIconBackground(props)};
325
- color: ${tableCellSelectedDeleteIconColor(props)};
320
+ background: ${tableCellSelectedDeleteIconBackground};
321
+ color: ${tableCellSelectedDeleteIconColor};
326
322
  `)}
327
323
  }
328
324
  }
329
325
 
330
326
  .${ClassName.CONTROLS_DELETE_BUTTON}:hover {
331
- background: ${tableCellHoverDeleteIconBackground(props)};
332
- color: ${tableCellHoverDeleteIconColor(props)};
327
+ background: ${tableCellHoverDeleteIconBackground};
328
+ color: ${tableCellHoverDeleteIconColor};
333
329
  cursor: pointer;
334
330
  }
335
331
  `;
336
332
 
337
- export const OverflowShadow = (props: ThemeProps) => css`
333
+ export const OverflowShadow = () => css`
338
334
  .${ClassName.TABLE_RIGHT_SHADOW}, .${ClassName.TABLE_LEFT_SHADOW} {
339
335
  display: block;
340
336
  height: calc(100% - ${tableMarginTop}px);
@@ -400,7 +396,7 @@ export const OverflowShadow = (props: ThemeProps) => css`
400
396
  .${ClassName.WITH_CONTROLS} {
401
397
  ${overflowShadowWidhoutDnD()}
402
398
  .${ClassName.TABLE_LEFT_SHADOW} {
403
- border-left: 1px solid ${tableBorderColor(props)};
399
+ border-left: 1px solid ${tableBorderColor};
404
400
  }
405
401
  }
406
402
  `;
@@ -416,10 +412,10 @@ const overflowShadowWidhoutDnD = () => {
416
412
  }
417
413
  };
418
414
 
419
- const columnHeaderButton = (props: ThemeProps, cssString?: string) => {
415
+ const columnHeaderButton = (cssString?: string) => {
420
416
  if (getBooleanFF('platform.editor.table.column-controls-styles-updated')) {
421
417
  return css`
422
- background: ${tableHeaderCellBackgroundColor(props)};
418
+ background: ${tableHeaderCellBackgroundColor};
423
419
  display: block;
424
420
  box-sizing: border-box;
425
421
  padding: 0;
@@ -432,8 +428,8 @@ const columnHeaderButton = (props: ThemeProps, cssString?: string) => {
432
428
  `;
433
429
  } else {
434
430
  return css`
435
- background: ${tableHeaderCellBackgroundColor(props)};
436
- border: 1px solid ${tableBorderColor(props)};
431
+ background: ${tableHeaderCellBackgroundColor};
432
+ border: 1px solid ${tableBorderColor};
437
433
  display: block;
438
434
  box-sizing: border-box;
439
435
  padding: 0;
@@ -447,14 +443,14 @@ const columnHeaderButton = (props: ThemeProps, cssString?: string) => {
447
443
  }
448
444
  };
449
445
 
450
- const columnHeaderButtonSelected = (props: ThemeProps) => css`
446
+ const columnHeaderButtonSelected = () => css`
451
447
  color: ${token('color.text.inverse', N0)};
452
- background-color: ${tableToolbarSelectedColor(props)};
453
- border-color: ${tableBorderSelectedColor(props)};
448
+ background-color: ${tableToolbarSelectedColor};
449
+ border-color: ${tableBorderSelectedColor};
454
450
  z-index: ${columnControlsSelectedZIndex};
455
451
  `;
456
452
 
457
- const getFloatingDotOverrides = (props: ThemeProps) => {
453
+ const getFloatingDotOverrides = () => {
458
454
  return getBooleanFF('platform.editor.custom-table-width')
459
455
  ? css`
460
456
  tr
@@ -464,7 +460,7 @@ const getFloatingDotOverrides = (props: ThemeProps) => {
464
460
  td:last-child
465
461
  .${ClassName.COLUMN_CONTROLS_DECORATIONS}::before {
466
462
  content: '';
467
- background-color: ${tableBorderColor(props)};
463
+ background-color: ${tableBorderColor};
468
464
  position: absolute;
469
465
  height: ${lineMarkerSize}px;
470
466
  width: ${lineMarkerSize}px;
@@ -477,7 +473,7 @@ const getFloatingDotOverrides = (props: ThemeProps) => {
477
473
  : '';
478
474
  };
479
475
 
480
- export const floatingColumnControls = (props: ThemeProps) => {
476
+ export const floatingColumnControls = () => {
481
477
  return css`
482
478
  .${ClassName.DRAG_COLUMN_DROP_TARGET_CONTROLS} {
483
479
  box-sizing: border-box;
@@ -501,7 +497,7 @@ export const floatingColumnControls = (props: ThemeProps) => {
501
497
  `;
502
498
  };
503
499
 
504
- export const rowControlsWrapperDotStyle = (props: ThemeProps) => {
500
+ export const rowControlsWrapperDotStyle = () => {
505
501
  return css`
506
502
  // override for DnD controls
507
503
  div.${ClassName.WITH_CONTROLS}>.${ClassName.DRAG_ROW_CONTROLS_WRAPPER}::after {
@@ -510,7 +506,7 @@ export const rowControlsWrapperDotStyle = (props: ThemeProps) => {
510
506
 
511
507
  div.${ClassName.WITH_CONTROLS}>.${ClassName.ROW_CONTROLS_WRAPPER}::after {
512
508
  content: ' ';
513
- background-color: ${tableBorderColor(props)};
509
+ background-color: ${tableBorderColor};
514
510
  position: absolute;
515
511
  height: ${lineMarkerSize}px;
516
512
  width: ${lineMarkerSize}px;
@@ -522,7 +518,7 @@ export const rowControlsWrapperDotStyle = (props: ThemeProps) => {
522
518
  `;
523
519
  };
524
520
 
525
- export const columnControlsDecoration = (props: ThemeProps) => {
521
+ export const columnControlsDecoration = () => {
526
522
  if (getBooleanFF('platform.editor.table.column-controls-styles-updated')) {
527
523
  return css`
528
524
  .${ClassName.COLUMN_CONTROLS_DECORATIONS} {
@@ -536,7 +532,7 @@ export const columnControlsDecoration = (props: ThemeProps) => {
536
532
  // floating dot for adding column button
537
533
  &::before {
538
534
  content: ' ';
539
- background-color: ${tableBorderColor(props)};
535
+ background-color: ${tableBorderColor};
540
536
  position: absolute;
541
537
  height: ${lineMarkerSize}px;
542
538
  width: ${lineMarkerSize}px;
@@ -550,15 +546,10 @@ export const columnControlsDecoration = (props: ThemeProps) => {
550
546
  content: ' ';
551
547
 
552
548
  ${columnHeaderButton(
553
- props,
554
549
  `
555
- border-right: ${tableCellBorderWidth}px solid ${tableBorderColor(
556
- props,
557
- )};
558
- border-top: ${tableCellBorderWidth}px solid ${tableBorderColor(props)};
559
- border-bottom: ${tableCellBorderWidth}px solid ${tableBorderColor(
560
- props,
561
- )};
550
+ border-right: ${tableCellBorderWidth}px solid ${tableBorderColor};
551
+ border-top: ${tableCellBorderWidth}px solid ${tableBorderColor};
552
+ border-bottom: ${tableCellBorderWidth}px solid ${tableBorderColor};
562
553
  box-sizing: content-box;
563
554
  height: ${tableToolbarSize - 1}px;
564
555
  width: 100%;
@@ -572,7 +563,7 @@ export const columnControlsDecoration = (props: ThemeProps) => {
572
563
  }
573
564
 
574
565
  // floating dot for adding column button - overriding style on last column to avoid scroll
575
- ${getFloatingDotOverrides(props)}
566
+ ${getFloatingDotOverrides()}
576
567
 
577
568
  .${ClassName.WITH_CONTROLS} .${ClassName.COLUMN_CONTROLS_DECORATIONS} {
578
569
  display: block;
@@ -581,13 +572,13 @@ export const columnControlsDecoration = (props: ThemeProps) => {
581
572
  table tr:first-of-type th.${ClassName.TABLE_HEADER_CELL} {
582
573
  &.${ClassName.COLUMN_SELECTED}, &.${ClassName.HOVERED_TABLE} {
583
574
  .${ClassName.COLUMN_CONTROLS_DECORATIONS}::after {
584
- ${columnHeaderButtonSelected(props)};
575
+ ${columnHeaderButtonSelected()};
585
576
  }
586
577
 
587
578
  &.${ClassName.HOVERED_CELL_IN_DANGER}
588
579
  .${ClassName.COLUMN_CONTROLS_DECORATIONS}::after {
589
- background-color: ${tableToolbarDeleteColor(props)};
590
- border-color: ${tableBorderDeleteColor(props)};
580
+ background-color: ${tableToolbarDeleteColor};
581
+ border-color: ${tableBorderDeleteColor};
591
582
  z-index: ${akEditorUnitZIndex * 100};
592
583
  }
593
584
  }
@@ -596,9 +587,9 @@ export const columnControlsDecoration = (props: ThemeProps) => {
596
587
  table tr:first-of-type th.${ClassName.TABLE_HEADER_CELL} {
597
588
  &.${ClassName.COLUMN_SELECTED}, &.${ClassName.HOVERED_COLUMN} {
598
589
  .${ClassName.COLUMN_CONTROLS_DECORATIONS}::after {
599
- ${columnHeaderButtonSelected(props)};
590
+ ${columnHeaderButtonSelected()};
600
591
  border-left: ${tableCellBorderWidth}px solid
601
- ${tableBorderSelectedColor(props)};
592
+ ${tableBorderSelectedColor};
602
593
  left: -${tableCellBorderWidth}px;
603
594
  }
604
595
  }
@@ -607,15 +598,15 @@ export const columnControlsDecoration = (props: ThemeProps) => {
607
598
  table tr:first-of-type th.${ClassName.TABLE_HEADER_CELL} {
608
599
  &.${ClassName.HOVERED_COLUMN} {
609
600
  .${ClassName.COLUMN_CONTROLS_DECORATIONS}::after {
610
- ${columnHeaderButtonSelected(props)};
601
+ ${columnHeaderButtonSelected()};
611
602
  }
612
603
 
613
604
  &.${ClassName.HOVERED_CELL_IN_DANGER}
614
605
  .${ClassName.COLUMN_CONTROLS_DECORATIONS}::after {
615
- background-color: ${tableToolbarDeleteColor(props)};
616
- border-color: ${tableBorderDeleteColor(props)};
606
+ background-color: ${tableToolbarDeleteColor};
607
+ border-color: ${tableBorderDeleteColor};
617
608
  border-left: ${tableCellBorderWidth}px solid
618
- ${tableBorderDeleteColor(props)};
609
+ ${tableBorderDeleteColor};
619
610
  left: -${tableCellBorderWidth}px;
620
611
  z-index: ${akEditorUnitZIndex * 100};
621
612
  }
@@ -631,7 +622,7 @@ export const columnControlsDecoration = (props: ThemeProps) => {
631
622
  tr:first-of-type
632
623
  th.${ClassName.TABLE_HEADER_CELL} {
633
624
  .${ClassName.COLUMN_CONTROLS_DECORATIONS}::after {
634
- ${columnHeaderButtonSelected(props)};
625
+ ${columnHeaderButtonSelected()};
635
626
  }
636
627
  }
637
628
  `;
@@ -648,7 +639,7 @@ export const columnControlsDecoration = (props: ThemeProps) => {
648
639
  // floating dot for adding column button
649
640
  &::before {
650
641
  content: ' ';
651
- background-color: ${tableBorderColor(props)};
642
+ background-color: ${tableBorderColor};
652
643
  position: absolute;
653
644
  height: ${lineMarkerSize}px;
654
645
  width: ${lineMarkerSize}px;
@@ -662,11 +653,8 @@ export const columnControlsDecoration = (props: ThemeProps) => {
662
653
  content: ' ';
663
654
 
664
655
  ${columnHeaderButton(
665
- props,
666
656
  `
667
- border-right: ${tableCellBorderWidth}px solid ${tableBorderColor(
668
- props,
669
- )};
657
+ border-right: ${tableCellBorderWidth}px solid ${tableBorderColor};
670
658
  border-bottom: none;
671
659
  height: ${tableToolbarSize}px;
672
660
  width: 100%;
@@ -680,7 +668,7 @@ export const columnControlsDecoration = (props: ThemeProps) => {
680
668
  }
681
669
 
682
670
  // floating dot for adding column button - overriding style on last column to avoid scroll
683
- ${getFloatingDotOverrides(props)}
671
+ ${getFloatingDotOverrides()}
684
672
 
685
673
  .${ClassName.WITH_CONTROLS} .${ClassName.COLUMN_CONTROLS_DECORATIONS} {
686
674
  display: block;
@@ -696,13 +684,13 @@ export const columnControlsDecoration = (props: ThemeProps) => {
696
684
  &.${ClassName.HOVERED_COLUMN},
697
685
  &.${ClassName.HOVERED_TABLE} {
698
686
  .${ClassName.COLUMN_CONTROLS_DECORATIONS}::after {
699
- ${columnHeaderButtonSelected(props)};
687
+ ${columnHeaderButtonSelected()};
700
688
  }
701
689
 
702
690
  &.${ClassName.HOVERED_CELL_IN_DANGER}
703
691
  .${ClassName.COLUMN_CONTROLS_DECORATIONS}::after {
704
- background-color: ${tableToolbarDeleteColor(props)};
705
- border: 1px solid ${tableBorderDeleteColor(props)};
692
+ background-color: ${tableToolbarDeleteColor};
693
+ border: 1px solid ${tableBorderDeleteColor};
706
694
  border-bottom: none;
707
695
  z-index: ${akEditorUnitZIndex * 100};
708
696
  }
@@ -718,50 +706,50 @@ export const columnControlsDecoration = (props: ThemeProps) => {
718
706
  tr:first-of-type
719
707
  th.${ClassName.TABLE_HEADER_CELL} {
720
708
  .${ClassName.COLUMN_CONTROLS_DECORATIONS}::after {
721
- ${columnHeaderButtonSelected(props)};
709
+ ${columnHeaderButtonSelected()};
722
710
  }
723
711
  }
724
712
  `;
725
713
  }
726
714
  };
727
715
 
728
- export const hoveredDeleteButton = (props: ThemeProps) => css`
716
+ export const hoveredDeleteButton = () => css`
729
717
  .${ClassName.TABLE_CONTAINER}.${ClassName.HOVERED_DELETE_BUTTON} {
730
718
  .${ClassName.SELECTED_CELL},
731
719
  .${ClassName.COLUMN_SELECTED},
732
720
  .${ClassName.HOVERED_CELL} {
733
- border: 1px solid ${tableBorderDeleteColor(props)};
721
+ border: 1px solid ${tableBorderDeleteColor};
734
722
  }
735
723
  .${ClassName.SELECTED_CELL}::after {
736
- background: ${tableCellDeleteColor(props)};
724
+ background: ${tableCellDeleteColor};
737
725
  }
738
726
 
739
727
  .${ClassName.TABLE_NODE_WRAPPER} > table {
740
728
  td.${ClassName.HOVERED_NO_HIGHLIGHT}::after {
741
- background: ${tableCellDeleteColor(props)};
742
- border: 1px solid ${tableBorderDeleteColor(props)};
729
+ background: ${tableCellDeleteColor};
730
+ border: 1px solid ${tableBorderDeleteColor};
743
731
  }
744
732
  th.${ClassName.HOVERED_NO_HIGHLIGHT} {
745
733
  background-color: unset;
746
734
  }
747
735
  th.${ClassName.HOVERED_NO_HIGHLIGHT}::after {
748
- background: ${tableCellDeleteColor(props)};
749
- border: 1px solid ${tableBorderDeleteColor(props)};
736
+ background: ${tableCellDeleteColor};
737
+ border: 1px solid ${tableBorderDeleteColor};
750
738
  }
751
739
  }
752
740
  }
753
741
  `;
754
742
 
755
- export const hoveredCell = (props: ThemeProps) => css`
743
+ export const hoveredCell = () => css`
756
744
  :not(.${ClassName.IS_RESIZING})
757
745
  .${ClassName.TABLE_CONTAINER}:not(.${ClassName.HOVERED_DELETE_BUTTON}) {
758
746
  .${ClassName.HOVERED_CELL} {
759
747
  position: relative;
760
- border: 1px solid ${tableBorderSelectedColor(props)};
748
+ border: 1px solid ${tableBorderSelectedColor};
761
749
  }
762
750
  .${ClassName.HOVERED_CELL}.${ClassName.HOVERED_NO_HIGHLIGHT} {
763
751
  position: relative;
764
- border: 1px solid ${tableBorderColor(props)};
752
+ border: 1px solid ${tableBorderColor};
765
753
  }
766
754
  }
767
755
  `;
@@ -802,7 +790,7 @@ const getLastColumnResizerOverrides = () => {
802
790
  : '';
803
791
  };
804
792
 
805
- const resizeHandleOverrides = (props: ThemeProps) => {
793
+ const resizeHandleOverrides = () => {
806
794
  if (getBooleanFF('platform.editor.table.drag-and-drop')) {
807
795
  return css`
808
796
  th.${ClassName.WITH_RESIZE_LINE}::before,
@@ -813,7 +801,7 @@ const resizeHandleOverrides = (props: ThemeProps) => {
813
801
  top: -1px;
814
802
  width: ${resizeLineWidth}px;
815
803
  height: calc(100% + 2px);
816
- background-color: ${tableBorderSelectedColor(props)};
804
+ background-color: ${tableBorderSelectedColor};
817
805
  z-index: ${columnControlsZIndex * 2};
818
806
  }
819
807
 
@@ -825,7 +813,7 @@ const resizeHandleOverrides = (props: ThemeProps) => {
825
813
  top: -1px;
826
814
  width: ${resizeLineWidth}px;
827
815
  height: calc(100% + 2px);
828
- background-color: ${tableBorderSelectedColor(props)};
816
+ background-color: ${tableBorderSelectedColor};
829
817
  z-index: ${columnControlsZIndex * 2};
830
818
  }
831
819
  `;
@@ -838,7 +826,7 @@ const resizeHandleOverrides = (props: ThemeProps) => {
838
826
  top: -1px;
839
827
  width: ${resizeLineWidth}px;
840
828
  height: calc(100% + 2px);
841
- background-color: ${tableBorderSelectedColor(props)};
829
+ background-color: ${tableBorderSelectedColor};
842
830
  z-index: ${columnControlsZIndex * 2};
843
831
  }
844
832
 
@@ -848,7 +836,7 @@ const resizeHandleOverrides = (props: ThemeProps) => {
848
836
  position: absolute;
849
837
  width: ${resizeLineWidth}px;
850
838
  height: calc(100% + ${tableToolbarSize + tableCellBorderWidth}px);
851
- background-color: ${tableBorderSelectedColor(props)};
839
+ background-color: ${tableBorderSelectedColor};
852
840
  z-index: ${columnControlsZIndex * 2};
853
841
  top: -${tableToolbarSize + tableCellBorderWidth}px;
854
842
  }
@@ -860,7 +848,7 @@ const resizeHandleOverrides = (props: ThemeProps) => {
860
848
  top: -1px;
861
849
  width: ${resizeLineWidth}px;
862
850
  height: calc(100% + 2px);
863
- background-color: ${tableBorderSelectedColor(props)};
851
+ background-color: ${tableBorderSelectedColor};
864
852
  z-index: ${columnControlsZIndex * 2};
865
853
  }
866
854
 
@@ -870,14 +858,14 @@ const resizeHandleOverrides = (props: ThemeProps) => {
870
858
  position: absolute;
871
859
  width: ${resizeLineWidth}px;
872
860
  height: calc(100% + ${tableToolbarSize + tableCellBorderWidth}px);
873
- background-color: ${tableBorderSelectedColor(props)};
861
+ background-color: ${tableBorderSelectedColor};
874
862
  z-index: ${columnControlsZIndex * 2};
875
863
  top: -${tableToolbarSize + tableCellBorderWidth}px;
876
864
  }
877
865
  `;
878
866
  };
879
867
 
880
- export const resizeHandle = (props: ThemeProps) => css`
868
+ export const resizeHandle = () => css`
881
869
  .${ClassName.TABLE_CONTAINER} {
882
870
  .${ClassName.RESIZE_HANDLE_DECORATION} {
883
871
  background-color: transparent;
@@ -892,7 +880,7 @@ export const resizeHandle = (props: ThemeProps) => css`
892
880
 
893
881
  ${getLastColumnResizerOverrides()}
894
882
 
895
- ${resizeHandleOverrides(props)}
883
+ ${resizeHandleOverrides()}
896
884
 
897
885
  table
898
886
  tr:first-of-type
@@ -909,7 +897,7 @@ export const resizeHandle = (props: ThemeProps) => css`
909
897
  `;
910
898
 
911
899
  // Drag and Drop: drop target insert line
912
- export const insertLine = (props: ThemeProps) => css`
900
+ export const insertLine = () => css`
913
901
  .${ClassName.TABLE_CONTAINER} {
914
902
  td.${ClassName.WITH_FIRST_COLUMN_INSERT_LINE}::before {
915
903
  content: ' ';
@@ -918,7 +906,7 @@ export const insertLine = (props: ThemeProps) => css`
918
906
  top: -1px;
919
907
  width: ${insertLineWidth}px;
920
908
  height: calc(100% + ${tableCellBorderWidth * 2}px);
921
- background-color: ${tableBorderSelectedColor(props)};
909
+ background-color: ${tableBorderSelectedColor};
922
910
  z-index: ${columnControlsZIndex * 2};
923
911
  }
924
912
 
@@ -928,7 +916,7 @@ export const insertLine = (props: ThemeProps) => css`
928
916
  position: absolute;
929
917
  width: ${insertLineWidth}px;
930
918
  height: calc(100% + ${tableCellBorderWidth * 2}px);
931
- background-color: ${tableBorderSelectedColor(props)};
919
+ background-color: ${tableBorderSelectedColor};
932
920
  z-index: ${columnControlsZIndex * 2};
933
921
  top: -${tableCellBorderWidth}px;
934
922
  }
@@ -940,7 +928,7 @@ export const insertLine = (props: ThemeProps) => css`
940
928
  top: -1px;
941
929
  width: ${insertLineWidth}px;
942
930
  height: calc(100% + ${tableCellBorderWidth * 2}px);
943
- background-color: ${tableBorderSelectedColor(props)};
931
+ background-color: ${tableBorderSelectedColor};
944
932
  z-index: ${columnControlsZIndex * 2};
945
933
  }
946
934
 
@@ -950,7 +938,7 @@ export const insertLine = (props: ThemeProps) => css`
950
938
  position: absolute;
951
939
  width: ${insertLineWidth}px;
952
940
  height: calc(100% + ${tableCellBorderWidth * 2}px);
953
- background-color: ${tableBorderSelectedColor(props)};
941
+ background-color: ${tableBorderSelectedColor};
954
942
  z-index: ${columnControlsZIndex * 2};
955
943
  top: -${tableCellBorderWidth}px;
956
944
  }
@@ -962,7 +950,7 @@ export const insertLine = (props: ThemeProps) => css`
962
950
  top: -1px;
963
951
  width: ${insertLineWidth}px;
964
952
  height: calc(100% + ${tableCellBorderWidth * 2}px);
965
- background-color: ${tableBorderSelectedColor(props)};
953
+ background-color: ${tableBorderSelectedColor};
966
954
  z-index: ${columnControlsZIndex * 2};
967
955
  }
968
956
 
@@ -972,7 +960,7 @@ export const insertLine = (props: ThemeProps) => css`
972
960
  position: absolute;
973
961
  width: ${insertLineWidth}px;
974
962
  height: calc(100% + ${tableCellBorderWidth * 2}px);
975
- background-color: ${tableBorderSelectedColor(props)};
963
+ background-color: ${tableBorderSelectedColor};
976
964
  z-index: ${columnControlsZIndex * 2};
977
965
  top: -${tableCellBorderWidth}px;
978
966
  }
@@ -984,7 +972,7 @@ export const insertLine = (props: ThemeProps) => css`
984
972
  top: -1px;
985
973
  height: ${insertLineWidth}px;
986
974
  width: calc(100% + ${tableCellBorderWidth * 2}px);
987
- background-color: ${tableBorderSelectedColor(props)};
975
+ background-color: ${tableBorderSelectedColor};
988
976
  z-index: ${columnControlsZIndex * 2};
989
977
  }
990
978
 
@@ -994,7 +982,7 @@ export const insertLine = (props: ThemeProps) => css`
994
982
  position: absolute;
995
983
  height: ${insertLineWidth}px;
996
984
  width: calc(100% + ${tableCellBorderWidth * 2}px);
997
- background-color: ${tableBorderSelectedColor(props)};
985
+ background-color: ${tableBorderSelectedColor};
998
986
  z-index: ${columnControlsZIndex * 2};
999
987
  top: -1px;
1000
988
  }
@@ -1006,7 +994,7 @@ export const insertLine = (props: ThemeProps) => css`
1006
994
  bottom: 0;
1007
995
  height: ${insertLineWidth}px;
1008
996
  width: calc(100% + 2px);
1009
- background-color: ${tableBorderSelectedColor(props)};
997
+ background-color: ${tableBorderSelectedColor};
1010
998
  z-index: ${columnControlsZIndex * 2};
1011
999
  }
1012
1000
 
@@ -1017,7 +1005,7 @@ export const insertLine = (props: ThemeProps) => css`
1017
1005
  position: absolute;
1018
1006
  height: ${insertLineWidth}px;
1019
1007
  width: calc(100% + ${tableCellBorderWidth * 2}px);
1020
- background-color: ${tableBorderSelectedColor(props)};
1008
+ background-color: ${tableBorderSelectedColor};
1021
1009
  z-index: ${columnControlsZIndex * 2};
1022
1010
  }
1023
1011
  }