@atlaskit/editor-plugin-table 7.16.15 → 7.16.17
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 +29 -0
- package/dist/cjs/commands-with-analytics.js +66 -41
- package/dist/cjs/nodeviews/TableContainer.js +14 -12
- package/dist/cjs/nodeviews/TableResizer.js +12 -13
- package/dist/cjs/plugin.js +3 -2
- package/dist/cjs/pm-plugins/keymap.js +6 -0
- package/dist/cjs/pm-plugins/table-resizing/utils/misc.js +1 -1
- package/dist/cjs/toolbar.js +23 -48
- package/dist/cjs/ui/TableFloatingControls/index.js +2 -2
- package/dist/cjs/ui/icons/index.js +0 -7
- package/dist/cjs/utils/snapping.js +2 -2
- package/dist/es2019/commands-with-analytics.js +29 -6
- package/dist/es2019/nodeviews/TableContainer.js +17 -13
- package/dist/es2019/nodeviews/TableResizer.js +11 -12
- package/dist/es2019/plugin.js +3 -2
- package/dist/es2019/pm-plugins/keymap.js +7 -1
- package/dist/es2019/pm-plugins/table-resizing/utils/misc.js +2 -2
- package/dist/es2019/toolbar.js +22 -48
- package/dist/es2019/ui/TableFloatingControls/index.js +2 -2
- package/dist/es2019/ui/icons/index.js +0 -1
- package/dist/es2019/utils/snapping.js +3 -3
- package/dist/esm/commands-with-analytics.js +66 -41
- package/dist/esm/nodeviews/TableContainer.js +15 -13
- package/dist/esm/nodeviews/TableResizer.js +14 -15
- package/dist/esm/plugin.js +3 -2
- package/dist/esm/pm-plugins/keymap.js +7 -1
- package/dist/esm/pm-plugins/table-resizing/utils/misc.js +2 -2
- package/dist/esm/toolbar.js +24 -49
- package/dist/esm/ui/TableFloatingControls/index.js +2 -2
- package/dist/esm/ui/icons/index.js +0 -1
- package/dist/esm/utils/snapping.js +3 -3
- package/dist/types/commands/toggle.d.ts +1 -1
- package/dist/types/commands-with-analytics.d.ts +7 -4
- package/dist/types/pm-plugins/table-resizing/utils/resize-state.d.ts +1 -1
- package/dist/types/toolbar.d.ts +2 -3
- package/dist/types/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -0
- package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +4 -0
- package/dist/types/ui/TableFloatingControls/index.d.ts +2 -0
- package/dist/types/ui/icons/index.d.ts +0 -1
- package/dist/types-ts4.5/commands/toggle.d.ts +1 -1
- package/dist/types-ts4.5/commands-with-analytics.d.ts +7 -4
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-state.d.ts +1 -1
- package/dist/types-ts4.5/toolbar.d.ts +2 -3
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +4 -0
- package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/icons/index.d.ts +0 -1
- package/package.json +10 -4
- package/src/commands-with-analytics.ts +80 -40
- package/src/nodeviews/TableContainer.tsx +24 -14
- package/src/nodeviews/TableResizer.tsx +17 -9
- package/src/plugin.tsx +5 -2
- package/src/pm-plugins/keymap.ts +30 -0
- package/src/pm-plugins/table-resizing/utils/misc.ts +2 -2
- package/src/toolbar.tsx +29 -55
- package/src/ui/TableFloatingControls/index.tsx +17 -16
- package/src/ui/icons/index.ts +0 -1
- package/src/utils/snapping.ts +4 -4
- package/dist/cjs/ui/icons/DisplayModeIcon.js +0 -46
- package/dist/es2019/ui/icons/DisplayModeIcon.js +0 -39
- package/dist/esm/ui/icons/DisplayModeIcon.js +0 -39
- package/dist/types/ui/icons/DisplayModeIcon.d.ts +0 -4
- package/dist/types-ts4.5/ui/icons/DisplayModeIcon.d.ts +0 -4
- package/src/ui/icons/DisplayModeIcon.tsx +0 -41
package/src/toolbar.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx } from '@emotion/react';
|
|
|
3
3
|
|
|
4
4
|
import { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
5
5
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
import { CHANGE_ALIGNMENT_REASON, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import { addColumnAfter, addRowAfter, backspace, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
8
8
|
import commonMessages, { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
9
9
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
@@ -69,10 +69,10 @@ import {
|
|
|
69
69
|
setTableAlignmentWithAnalytics,
|
|
70
70
|
sortColumnWithAnalytics,
|
|
71
71
|
splitCellWithAnalytics,
|
|
72
|
+
toggleFixedColumnWidthsOptionAnalytics,
|
|
72
73
|
toggleHeaderColumnWithAnalytics,
|
|
73
74
|
toggleHeaderRowWithAnalytics,
|
|
74
75
|
toggleNumberColumnWithAnalytics,
|
|
75
|
-
toggleTableLockWithAnalytics,
|
|
76
76
|
wrapTableInExpandWithAnalytics,
|
|
77
77
|
} from './commands-with-analytics';
|
|
78
78
|
import type { TablePluginOptions } from './plugin';
|
|
@@ -90,7 +90,6 @@ import type {
|
|
|
90
90
|
} from './types';
|
|
91
91
|
import { TableCssClassName } from './types';
|
|
92
92
|
import { FloatingAlignmentButtons } from './ui/FloatingAlignmentButtons/FloatingAlignmentButtons';
|
|
93
|
-
import { DisplayModeIcon } from './ui/icons';
|
|
94
93
|
import {
|
|
95
94
|
getMergedCellsPositions,
|
|
96
95
|
getSelectedColumnIndexes,
|
|
@@ -104,6 +103,8 @@ export const getToolbarMenuConfig = (
|
|
|
104
103
|
state: ToolbarMenuState,
|
|
105
104
|
{ formatMessage }: ToolbarMenuContext,
|
|
106
105
|
editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null,
|
|
106
|
+
isTableScalingWithFixedColumnWidthsOptionShown = false,
|
|
107
|
+
areTableColumnWidthsFixed = false,
|
|
107
108
|
): FloatingToolbarItem<Command> => {
|
|
108
109
|
const optionItem: typeOption = getBooleanFF(
|
|
109
110
|
'platform.editor.a11y-table-floating-toolbar-dropdown-menu_zkb33',
|
|
@@ -112,6 +113,14 @@ export const getToolbarMenuConfig = (
|
|
|
112
113
|
: 'item';
|
|
113
114
|
|
|
114
115
|
const options = [
|
|
116
|
+
{
|
|
117
|
+
id: 'editor.table.lockColumnWidths',
|
|
118
|
+
title: formatMessage(messages.lockColumnWidths),
|
|
119
|
+
onClick: toggleFixedColumnWidthsOptionAnalytics(editorAnalyticsAPI, INPUT_METHOD.FLOATING_TB),
|
|
120
|
+
selected: areTableColumnWidthsFixed,
|
|
121
|
+
hidden: !isTableScalingWithFixedColumnWidthsOptionShown,
|
|
122
|
+
domItemOptions: { type: optionItem },
|
|
123
|
+
},
|
|
115
124
|
{
|
|
116
125
|
id: 'editor.table.headerRow',
|
|
117
126
|
title: formatMessage(messages.headerRow),
|
|
@@ -156,6 +165,7 @@ export const getToolbarMenuConfig = (
|
|
|
156
165
|
title: formatMessage(messages.tableOptions),
|
|
157
166
|
hidden: options.every((option) => option.hidden),
|
|
158
167
|
options,
|
|
168
|
+
dropdownWidth: isTableScalingWithFixedColumnWidthsOptionShown ? 192 : undefined,
|
|
159
169
|
};
|
|
160
170
|
} else {
|
|
161
171
|
return {
|
|
@@ -165,6 +175,7 @@ export const getToolbarMenuConfig = (
|
|
|
165
175
|
title: formatMessage(messages.tableOptions),
|
|
166
176
|
hidden: options.every((option) => option.hidden),
|
|
167
177
|
options,
|
|
178
|
+
dropdownWidth: isTableScalingWithFixedColumnWidthsOptionShown ? 192 : undefined,
|
|
168
179
|
};
|
|
169
180
|
}
|
|
170
181
|
};
|
|
@@ -434,6 +445,7 @@ export const getToolbarConfig =
|
|
|
434
445
|
getEditorFeatureFlags: GetEditorFeatureFlags,
|
|
435
446
|
getEditorView: () => EditorView | null,
|
|
436
447
|
options?: TablePluginOptions,
|
|
448
|
+
isTableScalingWithFixedColumnWidthsOptionEnabled = false,
|
|
437
449
|
shouldUseIncreasedScalingPercent = false,
|
|
438
450
|
) =>
|
|
439
451
|
(config: PluginConfig): FloatingToolbarHandler =>
|
|
@@ -448,11 +460,21 @@ export const getToolbarConfig =
|
|
|
448
460
|
|
|
449
461
|
if (tableObject && pluginState.editorHasFocus && !isWidthResizing) {
|
|
450
462
|
const nodeType = state.schema.nodes.table;
|
|
451
|
-
const menu = getToolbarMenuConfig(config, pluginState, intl, editorAnalyticsAPI);
|
|
452
|
-
|
|
453
|
-
let alignmentMenu: Array<FloatingToolbarItem<Command>>;
|
|
454
463
|
const isNested = pluginState.tablePos && isTableNested(state, pluginState.tablePos);
|
|
464
|
+
const isTableScalingWithFixedColumnWidthsOptionShown =
|
|
465
|
+
isTableScalingWithFixedColumnWidthsOptionEnabled && !isNested;
|
|
466
|
+
const areTableColumWidthsFixed = tableObject.node.attrs.displayMode === 'fixed';
|
|
467
|
+
|
|
468
|
+
const menu = getToolbarMenuConfig(
|
|
469
|
+
config,
|
|
470
|
+
pluginState,
|
|
471
|
+
intl,
|
|
472
|
+
editorAnalyticsAPI,
|
|
473
|
+
isTableScalingWithFixedColumnWidthsOptionShown,
|
|
474
|
+
areTableColumWidthsFixed,
|
|
475
|
+
);
|
|
455
476
|
|
|
477
|
+
let alignmentMenu: Array<FloatingToolbarItem<Command>>;
|
|
456
478
|
alignmentMenu =
|
|
457
479
|
options?.isTableAlignmentEnabled && !isNested
|
|
458
480
|
? getAlignmentOptionsConfig(state, intl, editorAnalyticsAPI, getEditorContainerWidth)
|
|
@@ -612,29 +634,6 @@ const getCellItems = (
|
|
|
612
634
|
return [];
|
|
613
635
|
};
|
|
614
636
|
|
|
615
|
-
export const getLockBtnConfig =
|
|
616
|
-
(editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null): Command =>
|
|
617
|
-
(state, dispatch, editorView) => {
|
|
618
|
-
const selectionOrTableRect = getClosestSelectionOrTableRect(state);
|
|
619
|
-
if (!editorView || !selectionOrTableRect) {
|
|
620
|
-
return false;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
const { tr } = state;
|
|
624
|
-
const table = findTable(tr.selection);
|
|
625
|
-
|
|
626
|
-
if (!table) {
|
|
627
|
-
return false;
|
|
628
|
-
} else {
|
|
629
|
-
const { displayMode } = table.node.attrs;
|
|
630
|
-
toggleTableLockWithAnalytics(editorAnalyticsAPI)(displayMode, INPUT_METHOD.FLOATING_TB)(
|
|
631
|
-
state,
|
|
632
|
-
dispatch,
|
|
633
|
-
);
|
|
634
|
-
return true;
|
|
635
|
-
}
|
|
636
|
-
};
|
|
637
|
-
|
|
638
637
|
export const getDistributeConfig =
|
|
639
638
|
(
|
|
640
639
|
getEditorContainerWidth: GetEditorContainerWidth,
|
|
@@ -693,32 +692,6 @@ const getColumnSettingItems = (
|
|
|
693
692
|
|
|
694
693
|
const items: Array<FloatingToolbarItem<Command>> = [];
|
|
695
694
|
|
|
696
|
-
const isNested = pluginState.tablePos && isTableNested(editorState, pluginState.tablePos);
|
|
697
|
-
|
|
698
|
-
const isTableScalingLockBtnEnabled =
|
|
699
|
-
!isNested &&
|
|
700
|
-
isTableScalingEnabled &&
|
|
701
|
-
getBooleanFF('platform.editor.table.preserve-widths-with-lock-button');
|
|
702
|
-
|
|
703
|
-
if (isTableScalingLockBtnEnabled) {
|
|
704
|
-
const areColumnWidthsLocked = pluginState?.tableNode?.attrs.displayMode === 'fixed';
|
|
705
|
-
|
|
706
|
-
const title = areColumnWidthsLocked
|
|
707
|
-
? formatMessage(messages.unlockColumnWidths)
|
|
708
|
-
: formatMessage(messages.lockColumnWidths);
|
|
709
|
-
|
|
710
|
-
items.push({
|
|
711
|
-
id: 'editor.table.lockColumns',
|
|
712
|
-
type: 'button',
|
|
713
|
-
title,
|
|
714
|
-
icon: () => <DisplayModeIcon size="medium" label={title} />,
|
|
715
|
-
onClick: (state, dispatch, view) =>
|
|
716
|
-
getLockBtnConfig(editorAnalyticsAPI)(state, dispatch, view),
|
|
717
|
-
selected: areColumnWidthsLocked,
|
|
718
|
-
testId: 'table-lock-column-widths-btn',
|
|
719
|
-
});
|
|
720
|
-
}
|
|
721
|
-
|
|
722
695
|
if (pluginState?.pluginConfig?.allowDistributeColumns && pluginState.isDragAndDropEnabled) {
|
|
723
696
|
items.push({
|
|
724
697
|
id: 'editor.table.distributeColumns',
|
|
@@ -875,6 +848,7 @@ export const getAlignmentOptionsConfig = (
|
|
|
875
848
|
value,
|
|
876
849
|
currentLayout,
|
|
877
850
|
INPUT_METHOD.FLOATING_TB,
|
|
851
|
+
CHANGE_ALIGNMENT_REASON.TOOLBAR_OPTION_CHANGED,
|
|
878
852
|
),
|
|
879
853
|
...(isLayoutOptionDisabled(tableObject.node, getEditorContainerWidth) && {
|
|
880
854
|
disabled: value !== 'center',
|
|
@@ -149,22 +149,23 @@ export const TableFloatingControls = ({
|
|
|
149
149
|
<>
|
|
150
150
|
{isDragAndDropEnabled ? (
|
|
151
151
|
<>
|
|
152
|
-
{getBooleanFF('platform.editor.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
152
|
+
{!getBooleanFF('platform.editor.drag-and-drop_wmv9t') &&
|
|
153
|
+
(getBooleanFF('platform.editor.table.use-shared-state-hook') ? (
|
|
154
|
+
<DragCornerControlsWithSelection
|
|
155
|
+
editorView={editorView}
|
|
156
|
+
tableRef={tableRef}
|
|
157
|
+
isInDanger={isInDanger}
|
|
158
|
+
isResizing={isResizing}
|
|
159
|
+
api={api}
|
|
160
|
+
/>
|
|
161
|
+
) : (
|
|
162
|
+
<DragCornerControls
|
|
163
|
+
editorView={editorView}
|
|
164
|
+
tableRef={tableRef}
|
|
165
|
+
isInDanger={isInDanger}
|
|
166
|
+
isResizing={isResizing}
|
|
167
|
+
/>
|
|
168
|
+
))}
|
|
168
169
|
<DragControls
|
|
169
170
|
tableRef={tableRef}
|
|
170
171
|
tableNode={tableNode}
|
package/src/ui/icons/index.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { DragHandleIcon } from './DragHandleIcon';
|
|
2
2
|
export { DragInMotionIcon } from './DragInMotionIcon';
|
|
3
3
|
export { DragHandleDisabledIcon } from './DragHandleDisabledIcon';
|
|
4
|
-
export { DisplayModeIcon } from './DisplayModeIcon';
|
|
5
4
|
export { MinimisedHandleIcon } from './MinimisedHandle';
|
|
6
5
|
export { MergeCellsIcon } from './MergeCellsIcon';
|
|
7
6
|
export { SplitCellIcon } from './SplitCellIcon';
|
package/src/utils/snapping.ts
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
akEditorCalculatedWideLayoutWidth,
|
|
5
5
|
akEditorDefaultLayoutWidth,
|
|
6
6
|
akEditorFullWidthLayoutWidth,
|
|
7
|
-
|
|
7
|
+
akEditorGutterPaddingDynamic,
|
|
8
8
|
} from '@atlaskit/editor-shared-styles';
|
|
9
9
|
|
|
10
10
|
const numberOfLanesInDefaultLayoutWidth = 12;
|
|
@@ -39,9 +39,9 @@ export const calculateDefaultTablePreserveSnappings = (
|
|
|
39
39
|
},
|
|
40
40
|
) => {
|
|
41
41
|
const dynamicFullWidthLine =
|
|
42
|
-
editorContainerWith -
|
|
42
|
+
editorContainerWith - akEditorGutterPaddingDynamic() * 2 >= akEditorFullWidthLayoutWidth
|
|
43
43
|
? akEditorFullWidthLayoutWidth
|
|
44
|
-
: editorContainerWith -
|
|
44
|
+
: editorContainerWith - akEditorGutterPaddingDynamic() * 2;
|
|
45
45
|
|
|
46
46
|
const guides = [dynamicFullWidthLine - lengthOffset];
|
|
47
47
|
|
|
@@ -77,7 +77,7 @@ export const defaultTablePreserveSnappingWidths = (
|
|
|
77
77
|
breakoutPoints: false,
|
|
78
78
|
},
|
|
79
79
|
) => {
|
|
80
|
-
return editorContainerWidth -
|
|
80
|
+
return editorContainerWidth - akEditorGutterPaddingDynamic() * 2 > akEditorFullWidthLayoutWidth
|
|
81
81
|
? calculateDefaultSnappings()
|
|
82
82
|
: calculateDefaultTablePreserveSnappings(lengthOffset, editorContainerWidth, exclude); // lengthOffset was hardcoded 0 here, created PRESERVE_TABLE_SNAPPING_LENGTH_OFFSET instead.
|
|
83
83
|
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.DisplayModeIcon = exports.DisplayModeGlyth = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _icon = _interopRequireDefault(require("@atlaskit/icon"));
|
|
11
|
-
var DisplayModeGlyth = exports.DisplayModeGlyth = function DisplayModeGlyth(props) {
|
|
12
|
-
return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({
|
|
13
|
-
width: "24",
|
|
14
|
-
height: "24",
|
|
15
|
-
viewBox: "0 0 24 24",
|
|
16
|
-
fill: "none",
|
|
17
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
18
|
-
}, props), /*#__PURE__*/_react.default.createElement("rect", {
|
|
19
|
-
x: "4",
|
|
20
|
-
y: "5",
|
|
21
|
-
width: "4",
|
|
22
|
-
height: "14",
|
|
23
|
-
rx: "1",
|
|
24
|
-
fill: "currentColor"
|
|
25
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
26
|
-
fillRule: "evenodd",
|
|
27
|
-
clipRule: "evenodd",
|
|
28
|
-
d: "M11 5C10.4477 5 10 5.44772 10 6V9.10102C11.0503 8.02921 12.4424 7.29368 14 7.07089V6C14 5.44772 13.5523 5 13 5H11Z",
|
|
29
|
-
fill: "currentColor"
|
|
30
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
31
|
-
fillRule: "evenodd",
|
|
32
|
-
clipRule: "evenodd",
|
|
33
|
-
d: "M17 5C16.4477 5 16 5.44772 16 6V7.07089C17.5576 7.29368 18.9497 8.02921 20 9.10102V6C20 5.44772 19.5523 5 19 5H17Z",
|
|
34
|
-
fill: "currentColor"
|
|
35
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
36
|
-
fillRule: "evenodd",
|
|
37
|
-
clipRule: "evenodd",
|
|
38
|
-
d: "M21 14C21 17.3137 18.3137 20 15 20C11.6863 20 9 17.3137 9 14C9 10.6863 11.6863 8 15 8C18.3137 8 21 10.6863 21 14ZM12 15C12 14.4477 12.4477 14 13 14V12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12V14C17.5523 14 18 14.4477 18 15V17C18 17.5523 17.5523 18 17 18H13C12.4477 18 12 17.5523 12 17V15ZM16 14V12C16 11.4477 15.5523 11 15 11C14.4477 11 14 11.4477 14 12V14H16Z",
|
|
39
|
-
fill: "currentColor"
|
|
40
|
-
}));
|
|
41
|
-
};
|
|
42
|
-
var DisplayModeIcon = exports.DisplayModeIcon = function DisplayModeIcon(props) {
|
|
43
|
-
return /*#__PURE__*/_react.default.createElement(_icon.default, (0, _extends2.default)({
|
|
44
|
-
glyph: DisplayModeGlyth
|
|
45
|
-
}, props));
|
|
46
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Icon from '@atlaskit/icon';
|
|
4
|
-
export const DisplayModeGlyth = props => {
|
|
5
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
6
|
-
width: "24",
|
|
7
|
-
height: "24",
|
|
8
|
-
viewBox: "0 0 24 24",
|
|
9
|
-
fill: "none",
|
|
10
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
11
|
-
}, props), /*#__PURE__*/React.createElement("rect", {
|
|
12
|
-
x: "4",
|
|
13
|
-
y: "5",
|
|
14
|
-
width: "4",
|
|
15
|
-
height: "14",
|
|
16
|
-
rx: "1",
|
|
17
|
-
fill: "currentColor"
|
|
18
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
19
|
-
fillRule: "evenodd",
|
|
20
|
-
clipRule: "evenodd",
|
|
21
|
-
d: "M11 5C10.4477 5 10 5.44772 10 6V9.10102C11.0503 8.02921 12.4424 7.29368 14 7.07089V6C14 5.44772 13.5523 5 13 5H11Z",
|
|
22
|
-
fill: "currentColor"
|
|
23
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
24
|
-
fillRule: "evenodd",
|
|
25
|
-
clipRule: "evenodd",
|
|
26
|
-
d: "M17 5C16.4477 5 16 5.44772 16 6V7.07089C17.5576 7.29368 18.9497 8.02921 20 9.10102V6C20 5.44772 19.5523 5 19 5H17Z",
|
|
27
|
-
fill: "currentColor"
|
|
28
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
29
|
-
fillRule: "evenodd",
|
|
30
|
-
clipRule: "evenodd",
|
|
31
|
-
d: "M21 14C21 17.3137 18.3137 20 15 20C11.6863 20 9 17.3137 9 14C9 10.6863 11.6863 8 15 8C18.3137 8 21 10.6863 21 14ZM12 15C12 14.4477 12.4477 14 13 14V12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12V14C17.5523 14 18 14.4477 18 15V17C18 17.5523 17.5523 18 17 18H13C12.4477 18 12 17.5523 12 17V15ZM16 14V12C16 11.4477 15.5523 11 15 11C14.4477 11 14 11.4477 14 12V14H16Z",
|
|
32
|
-
fill: "currentColor"
|
|
33
|
-
}));
|
|
34
|
-
};
|
|
35
|
-
export const DisplayModeIcon = props => {
|
|
36
|
-
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
37
|
-
glyph: DisplayModeGlyth
|
|
38
|
-
}, props));
|
|
39
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Icon from '@atlaskit/icon';
|
|
4
|
-
export var DisplayModeGlyth = function DisplayModeGlyth(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
6
|
-
width: "24",
|
|
7
|
-
height: "24",
|
|
8
|
-
viewBox: "0 0 24 24",
|
|
9
|
-
fill: "none",
|
|
10
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
11
|
-
}, props), /*#__PURE__*/React.createElement("rect", {
|
|
12
|
-
x: "4",
|
|
13
|
-
y: "5",
|
|
14
|
-
width: "4",
|
|
15
|
-
height: "14",
|
|
16
|
-
rx: "1",
|
|
17
|
-
fill: "currentColor"
|
|
18
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
19
|
-
fillRule: "evenodd",
|
|
20
|
-
clipRule: "evenodd",
|
|
21
|
-
d: "M11 5C10.4477 5 10 5.44772 10 6V9.10102C11.0503 8.02921 12.4424 7.29368 14 7.07089V6C14 5.44772 13.5523 5 13 5H11Z",
|
|
22
|
-
fill: "currentColor"
|
|
23
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
24
|
-
fillRule: "evenodd",
|
|
25
|
-
clipRule: "evenodd",
|
|
26
|
-
d: "M17 5C16.4477 5 16 5.44772 16 6V7.07089C17.5576 7.29368 18.9497 8.02921 20 9.10102V6C20 5.44772 19.5523 5 19 5H17Z",
|
|
27
|
-
fill: "currentColor"
|
|
28
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
29
|
-
fillRule: "evenodd",
|
|
30
|
-
clipRule: "evenodd",
|
|
31
|
-
d: "M21 14C21 17.3137 18.3137 20 15 20C11.6863 20 9 17.3137 9 14C9 10.6863 11.6863 8 15 8C18.3137 8 21 10.6863 21 14ZM12 15C12 14.4477 12.4477 14 13 14V12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12V14C17.5523 14 18 14.4477 18 15V17C18 17.5523 17.5523 18 17 18H13C12.4477 18 12 17.5523 12 17V15ZM16 14V12C16 11.4477 15.5523 11 15 11C14.4477 11 14 11.4477 14 12V14H16Z",
|
|
32
|
-
fill: "currentColor"
|
|
33
|
-
}));
|
|
34
|
-
};
|
|
35
|
-
export var DisplayModeIcon = function DisplayModeIcon(props) {
|
|
36
|
-
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
37
|
-
glyph: DisplayModeGlyth
|
|
38
|
-
}, props));
|
|
39
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import Icon from '@atlaskit/icon';
|
|
4
|
-
import type { CustomGlyphProps, GlyphProps } from '@atlaskit/icon/types';
|
|
5
|
-
|
|
6
|
-
export const DisplayModeGlyth = (props: CustomGlyphProps) => {
|
|
7
|
-
return (
|
|
8
|
-
<svg
|
|
9
|
-
width="24"
|
|
10
|
-
height="24"
|
|
11
|
-
viewBox="0 0 24 24"
|
|
12
|
-
fill="none"
|
|
13
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
{...props}
|
|
15
|
-
>
|
|
16
|
-
<rect x="4" y="5" width="4" height="14" rx="1" fill="currentColor" />
|
|
17
|
-
<path
|
|
18
|
-
fillRule="evenodd"
|
|
19
|
-
clipRule="evenodd"
|
|
20
|
-
d="M11 5C10.4477 5 10 5.44772 10 6V9.10102C11.0503 8.02921 12.4424 7.29368 14 7.07089V6C14 5.44772 13.5523 5 13 5H11Z"
|
|
21
|
-
fill="currentColor"
|
|
22
|
-
/>
|
|
23
|
-
<path
|
|
24
|
-
fillRule="evenodd"
|
|
25
|
-
clipRule="evenodd"
|
|
26
|
-
d="M17 5C16.4477 5 16 5.44772 16 6V7.07089C17.5576 7.29368 18.9497 8.02921 20 9.10102V6C20 5.44772 19.5523 5 19 5H17Z"
|
|
27
|
-
fill="currentColor"
|
|
28
|
-
/>
|
|
29
|
-
<path
|
|
30
|
-
fillRule="evenodd"
|
|
31
|
-
clipRule="evenodd"
|
|
32
|
-
d="M21 14C21 17.3137 18.3137 20 15 20C11.6863 20 9 17.3137 9 14C9 10.6863 11.6863 8 15 8C18.3137 8 21 10.6863 21 14ZM12 15C12 14.4477 12.4477 14 13 14V12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12V14C17.5523 14 18 14.4477 18 15V17C18 17.5523 17.5523 18 17 18H13C12.4477 18 12 17.5523 12 17V15ZM16 14V12C16 11.4477 15.5523 11 15 11C14.4477 11 14 11.4477 14 12V14H16Z"
|
|
33
|
-
fill="currentColor"
|
|
34
|
-
/>
|
|
35
|
-
</svg>
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const DisplayModeIcon = (props: GlyphProps) => {
|
|
40
|
-
return <Icon glyph={DisplayModeGlyth} {...props} />;
|
|
41
|
-
};
|