@atlaskit/editor-plugin-table 5.4.1 → 5.4.2
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.
- package/CHANGELOG.md +7 -0
- package/dist/cjs/plugins/table/types.js +2 -0
- package/dist/cjs/plugins/table/ui/DragHandle/index.js +25 -4
- package/dist/cjs/plugins/table/ui/TableFloatingColumnControls/ColumnControls/index.js +22 -2
- package/dist/cjs/plugins/table/ui/TableFloatingControls/RowControls/DragControls.js +6 -2
- package/dist/cjs/plugins/table/ui/common-styles.js +1 -1
- package/dist/cjs/plugins/table/ui/icons/DragHandleDisabledIcon.js +4 -8
- package/dist/cjs/plugins/table/ui/icons/MinimisedHandle.js +22 -0
- package/dist/cjs/plugins/table/ui/icons/index.js +7 -0
- package/dist/es2019/plugins/table/types.js +2 -0
- package/dist/es2019/plugins/table/ui/DragHandle/index.js +25 -3
- package/dist/es2019/plugins/table/ui/TableFloatingColumnControls/ColumnControls/index.js +25 -3
- package/dist/es2019/plugins/table/ui/TableFloatingControls/RowControls/DragControls.js +6 -2
- package/dist/es2019/plugins/table/ui/common-styles.js +18 -4
- package/dist/es2019/plugins/table/ui/icons/DragHandleDisabledIcon.js +4 -8
- package/dist/es2019/plugins/table/ui/icons/MinimisedHandle.js +13 -0
- package/dist/es2019/plugins/table/ui/icons/index.js +1 -0
- package/dist/esm/plugins/table/types.js +2 -0
- package/dist/esm/plugins/table/ui/DragHandle/index.js +24 -3
- package/dist/esm/plugins/table/ui/TableFloatingColumnControls/ColumnControls/index.js +23 -3
- package/dist/esm/plugins/table/ui/TableFloatingControls/RowControls/DragControls.js +6 -2
- package/dist/esm/plugins/table/ui/common-styles.js +1 -1
- package/dist/esm/plugins/table/ui/icons/DragHandleDisabledIcon.js +4 -8
- package/dist/esm/plugins/table/ui/icons/MinimisedHandle.js +15 -0
- package/dist/esm/plugins/table/ui/icons/index.js +1 -0
- package/dist/types/plugins/table/types.d.ts +2 -0
- package/dist/types/plugins/table/ui/icons/MinimisedHandle.d.ts +2 -0
- package/dist/types/plugins/table/ui/icons/index.d.ts +1 -0
- package/dist/types-ts4.5/plugins/table/types.d.ts +2 -0
- package/dist/types-ts4.5/plugins/table/ui/icons/MinimisedHandle.d.ts +2 -0
- package/dist/types-ts4.5/plugins/table/ui/icons/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/__tests__/unit/ui/RowDragControls.tsx +2 -2
- package/src/plugins/table/types.ts +3 -0
- package/src/plugins/table/ui/DragHandle/index.tsx +37 -3
- package/src/plugins/table/ui/TableFloatingColumnControls/ColumnControls/index.tsx +33 -2
- package/src/plugins/table/ui/TableFloatingControls/RowControls/DragControls.tsx +6 -1
- package/src/plugins/table/ui/common-styles.ts +18 -4
- package/src/plugins/table/ui/icons/DragHandleDisabledIcon.tsx +4 -32
- package/src/plugins/table/ui/icons/MinimisedHandle.tsx +14 -0
- package/src/plugins/table/ui/icons/index.ts +1 -0
|
@@ -736,7 +736,7 @@ export const tableStyles = (
|
|
|
736
736
|
display: grid;
|
|
737
737
|
align-items: center;
|
|
738
738
|
position: absolute;
|
|
739
|
-
left: -${dropTargetExtendedWidth
|
|
739
|
+
left: -${dropTargetExtendedWidth}px;
|
|
740
740
|
z-index: ${akEditorUnitZIndex};
|
|
741
741
|
|
|
742
742
|
.${ClassName.DRAG_ROW_FLOATING_INSERT_DOT_WRAPPER} {
|
|
@@ -749,7 +749,7 @@ export const tableStyles = (
|
|
|
749
749
|
.${ClassName.DRAG_ROW_FLOATING_INSERT_DOT} {
|
|
750
750
|
position: absolute;
|
|
751
751
|
bottom: -3px;
|
|
752
|
-
left:
|
|
752
|
+
left: 2px;
|
|
753
753
|
background-color: ${token(
|
|
754
754
|
'color.background.accent.gray.subtler',
|
|
755
755
|
'#C1C7D0',
|
|
@@ -800,13 +800,27 @@ export const tableStyles = (
|
|
|
800
800
|
align-items: center;
|
|
801
801
|
outline: none !important;
|
|
802
802
|
|
|
803
|
+
&.${ClassName.DRAG_HANDLE_DISABLED} {
|
|
804
|
+
& > svg {
|
|
805
|
+
& > rect.${ClassName.DRAG_HANDLE_MINIMISED} {
|
|
806
|
+
fill: ${token('color.background.accent.gray.subtler', '#DCDFE4')};
|
|
807
|
+
}
|
|
808
|
+
& > rect {
|
|
809
|
+
fill: ${token('color.background.accent.gray.subtlest', '#F4F5F7')};
|
|
810
|
+
}
|
|
811
|
+
& > g > rect {
|
|
812
|
+
fill: ${token('color.icon.disabled', '#BFDBF847')};
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
|
|
803
817
|
&:not(.${ClassName.DRAG_HANDLE_DISABLED}) {
|
|
804
818
|
& > svg {
|
|
805
819
|
rect {
|
|
806
|
-
fill: ${token('color.background.accent.gray.
|
|
820
|
+
fill: ${token('color.background.accent.gray.subtler', '#DCDFE4')};
|
|
807
821
|
}
|
|
808
822
|
g {
|
|
809
|
-
fill: ${token('color.icon.subtle', '#
|
|
823
|
+
fill: ${token('color.icon.subtle', '#626f86')};
|
|
810
824
|
}
|
|
811
825
|
}
|
|
812
826
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { token } from '@atlaskit/tokens';
|
|
4
|
-
|
|
5
3
|
interface DragHandleDisabledIconProps {
|
|
6
4
|
style?: React.CSSProperties;
|
|
7
5
|
}
|
|
@@ -17,37 +15,11 @@ export const DragHandleDisabledIcon = ({
|
|
|
17
15
|
xmlns="http://www.w3.org/2000/svg"
|
|
18
16
|
style={style}
|
|
19
17
|
>
|
|
20
|
-
<rect
|
|
21
|
-
width="24"
|
|
22
|
-
height="16"
|
|
23
|
-
rx="4"
|
|
24
|
-
fill={token('color.background.accent.gray.subtlest', 'Neutral200')}
|
|
25
|
-
/>
|
|
18
|
+
<rect width="24" height="16" rx="4" />
|
|
26
19
|
<g>
|
|
27
|
-
<rect
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
width="2"
|
|
31
|
-
height="8"
|
|
32
|
-
rx="1"
|
|
33
|
-
fill={token('color.icon.disabled', '#091E424F')}
|
|
34
|
-
/>
|
|
35
|
-
<rect
|
|
36
|
-
x="11"
|
|
37
|
-
y="4"
|
|
38
|
-
width="2"
|
|
39
|
-
height="8"
|
|
40
|
-
rx="1"
|
|
41
|
-
fill={token('color.icon.disabled', '#091E424F')}
|
|
42
|
-
/>
|
|
43
|
-
<rect
|
|
44
|
-
x="15"
|
|
45
|
-
y="4"
|
|
46
|
-
width="2"
|
|
47
|
-
height="8"
|
|
48
|
-
rx="1"
|
|
49
|
-
fill={token('color.icon.disabled', '#091E424F')}
|
|
50
|
-
/>
|
|
20
|
+
<rect x="7" y="4" width="2" height="8" rx="1" />
|
|
21
|
+
<rect x="11" y="4" width="2" height="8" rx="1" />
|
|
22
|
+
<rect x="15" y="4" width="2" height="8" rx="1" />
|
|
51
23
|
</g>
|
|
52
24
|
</svg>
|
|
53
25
|
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { TableCssClassName as ClassName } from '../../types';
|
|
4
|
+
|
|
5
|
+
export const MinimisedHandleIcon = () => (
|
|
6
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="5" fill="none">
|
|
7
|
+
<rect
|
|
8
|
+
className={ClassName.DRAG_HANDLE_MINIMISED}
|
|
9
|
+
width="24"
|
|
10
|
+
height="5"
|
|
11
|
+
rx="3"
|
|
12
|
+
/>
|
|
13
|
+
</svg>
|
|
14
|
+
);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { DragHandleIcon } from './DragHandleIcon';
|
|
2
2
|
export { DragInMotionIcon } from './DragInMotionIcon';
|
|
3
3
|
export { DragHandleDisabledIcon } from './DragHandleDisabledIcon';
|
|
4
|
+
export { MinimisedHandleIcon } from './MinimisedHandle';
|
|
4
5
|
export { AddRowAboveIcon } from './AddRowAboveIcon';
|
|
5
6
|
export { AddRowBelowIcon } from './AddRowBelowIcon';
|
|
6
7
|
export { AddColLeftIcon } from './AddColLeftIcon';
|