@atlaskit/renderer 109.21.0 → 109.22.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 109.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#90188](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90188) [`a3520474fc12`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a3520474fc12) - move SortingIcon component from Renderer to Editor Common
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 109.21.1
14
+
15
+ ### Patch Changes
16
+
17
+ - [#94757](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94757) [`22e7c4a1a8f4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/22e7c4a1a8f4) - add ff and fix table width issue in renderer
18
+ - Updated dependencies
19
+
3
20
  ## 109.21.0
4
21
 
5
22
  ### Minor Changes
@@ -14,6 +14,5 @@ var RendererCssClassName = exports.RendererCssClassName = {
14
14
  SORTABLE_COLUMN_WRAPPER: "".concat(clPrefix, "tableHeader-sortable-column__wrapper"),
15
15
  SORTABLE_COLUMN: "".concat(clPrefix, "tableHeader-sortable-column"),
16
16
  SORTABLE_COLUMN_ICON_WRAPPER: "".concat(clPrefix, "tableHeader-sorting-icon__wrapper"),
17
- SORTABLE_COLUMN_ICON: "".concat(clPrefix, "tableHeader-sorting-icon"),
18
17
  SORTABLE_COLUMN_NO_ORDER: "".concat(clPrefix, "tableHeader-sorting-icon__no-order")
19
18
  };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.tableCellMessages = exports.sortingIconMessages = exports.sortingAriaLabelMessages = exports.headingAnchorLinkMessages = void 0;
6
+ exports.tableCellMessages = exports.headingAnchorLinkMessages = void 0;
7
7
  var _reactIntlNext = require("react-intl-next");
8
8
  var headingAnchorLinkMessages = exports.headingAnchorLinkMessages = (0, _reactIntlNext.defineMessages)({
9
9
  copyHeadingLinkToClipboard: {
@@ -43,53 +43,4 @@ var tableCellMessages = exports.tableCellMessages = (0, _reactIntlNext.defineMes
43
43
  defaultMessage: 'descending',
44
44
  description: 'this table column is sorted in descending order'
45
45
  }
46
- });
47
- var sortingIconMessages = exports.sortingIconMessages = (0, _reactIntlNext.defineMessages)({
48
- noOrderLabel: {
49
- id: 'fabric.editor.headingLink.noOrderLabel',
50
- defaultMessage: 'Sort column A to Z',
51
- description: 'Sort the column in ascending order'
52
- },
53
- ascOrderLabel: {
54
- id: 'fabric.editor.headingLink.ascOrderLabel',
55
- defaultMessage: 'Sort column Z to A',
56
- description: 'Sort the column in descending order'
57
- },
58
- descOrderLabel: {
59
- id: 'fabric.editor.headingLink.descOrderLabel',
60
- defaultMessage: 'Clear sorting',
61
- description: 'clear the sorting from this column'
62
- },
63
- invalidLabel: {
64
- id: 'fabric.editor.headingLink.invalidLabel',
65
- defaultMessage: "\u26A0\uFE0F You can't sort a table with merged cells",
66
- description: 'this sort is invalid for merged cells'
67
- }
68
- });
69
- var sortingAriaLabelMessages = exports.sortingAriaLabelMessages = (0, _reactIntlNext.defineMessages)({
70
- noOrderLabel: {
71
- id: 'fabric.editor.tableHeader.sorting.no',
72
- defaultMessage: 'No sort applied to the column',
73
- description: 'Aria-label for Sort column button when sorting was not applied or the sorting has been cleared'
74
- },
75
- ascOrderLabel: {
76
- id: 'fabric.editor.tableHeader.sorting.asc',
77
- defaultMessage: 'Ascending sort applied',
78
- description: 'Aria-label for Sort column button when ascending sorting was applied'
79
- },
80
- descOrderLabel: {
81
- id: 'fabric.editor.tableHeader.sorting.desc',
82
- defaultMessage: 'Descending sort applied',
83
- description: 'Aria-label for Sort column button when descending sorting was applied'
84
- },
85
- invalidLabel: {
86
- id: 'fabric.editor.tableHeader.sorting.invalid',
87
- defaultMessage: "You can't sort a table with merged cells",
88
- description: 'Aria-label for Sort column button when sorting is not possible'
89
- },
90
- defaultLabel: {
91
- id: 'fabric.editor.tableHeader.sorting.default',
92
- defaultMessage: 'Sort the column',
93
- description: 'Default aria-label for Sort column button'
94
- }
95
46
  });
@@ -20,6 +20,7 @@ var _utils = require("@atlaskit/editor-common/utils");
20
20
  var _types = require("@atlaskit/editor-common/types");
21
21
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
22
22
  var _nodeWidth = require("@atlaskit/editor-common/node-width");
23
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
23
24
  var _style = require("../../ui/Renderer/style");
24
25
  var _tableCell = require("./tableCell");
25
26
  var _SmartCardStorage = require("../../ui/SmartCardStorage");
@@ -440,26 +441,24 @@ var TableWithShadows = (0, _ui.overflowShadow)(TableProcessor, {
440
441
  useShadowObserver: true
441
442
  });
442
443
  var TableWithWidth = function TableWithWidth(props) {
443
- return (
444
- /*#__PURE__*/
445
- // Remember, `width` will be 0 during SSR
446
- _react.default.createElement(_ui.WidthConsumer, null, function (_ref2) {
447
- var _props$columnWidths;
448
- var width = _ref2.width;
449
- var renderWidth = props.rendererAppearance === 'full-page' ? width - _style.FullPagePadding * 2 : width;
450
- var colWidthsSum = ((_props$columnWidths = props.columnWidths) === null || _props$columnWidths === void 0 ? void 0 : _props$columnWidths.reduce(function (total, val) {
451
- return total + val;
452
- }, 0)) || 0;
453
- if (colWidthsSum || isTableResizingEnabled(props.rendererAppearance)) {
454
- return /*#__PURE__*/_react.default.createElement(TableWithShadows, (0, _extends2.default)({
455
- renderWidth: renderWidth
456
- }, props));
457
- }
458
- // there should not be a case when colWidthsSum is 0 and table is in overflow state - so no need to render shadows in this case
459
- return /*#__PURE__*/_react.default.createElement(TableProcessor, (0, _extends2.default)({
444
+ // Remember, `width` will be 0 during SSR
445
+ return /*#__PURE__*/_react.default.createElement(_ui.WidthConsumer, null, function (_ref2) {
446
+ var _props$columnWidths;
447
+ var width = _ref2.width;
448
+ // we are adding full page padding before but now it cause difference between editor and renderer so we need to remove it, and 1px also for matching exact width.
449
+ var renderWidth = props.rendererAppearance === 'full-page' ? (0, _platformFeatureFlags.getBooleanFF)('platform.editor.table-width-diff-in-renderer_x5s3z') ? width + _style.FullPagePadding - 1 : width - _style.FullPagePadding * 2 : width;
450
+ var colWidthsSum = ((_props$columnWidths = props.columnWidths) === null || _props$columnWidths === void 0 ? void 0 : _props$columnWidths.reduce(function (total, val) {
451
+ return total + val;
452
+ }, 0)) || 0;
453
+ if (colWidthsSum || isTableResizingEnabled(props.rendererAppearance)) {
454
+ return /*#__PURE__*/_react.default.createElement(TableWithShadows, (0, _extends2.default)({
460
455
  renderWidth: renderWidth
461
456
  }, props));
462
- })
463
- );
457
+ }
458
+ // there should not be a case when colWidthsSum is 0 and table is in overflow state - so no need to render shadows in this case
459
+ return /*#__PURE__*/_react.default.createElement(TableProcessor, (0, _extends2.default)({
460
+ renderWidth: renderWidth
461
+ }, props));
462
+ });
464
463
  };
465
464
  var _default = exports.default = (0, _SmartCardStorage.withSmartCardStorage)(TableWithWidth);
@@ -11,7 +11,7 @@ var _adfSchema = require("@atlaskit/adf-schema");
11
11
  var _tokens = require("@atlaskit/tokens");
12
12
  var _types = require("@atlaskit/editor-common/types");
13
13
  var _editorPalette = require("@atlaskit/editor-palette");
14
- var _SortingIcon = _interopRequireDefault(require("../../ui/SortingIcon"));
14
+ var _table = require("@atlaskit/editor-common/table");
15
15
  var _events = require("../../analytics/events");
16
16
  var _analytics = require("@atlaskit/editor-common/analytics");
17
17
  var _consts = require("../../consts");
@@ -177,7 +177,7 @@ var withSortableColumn = exports.withSortableColumn = function withSortableColum
177
177
  className: _consts.RendererCssClassName.SORTABLE_COLUMN
178
178
  }, children, /*#__PURE__*/_react.default.createElement("figure", {
179
179
  className: "".concat(_consts.RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, " ").concat(sortOrderedClassName)
180
- }, /*#__PURE__*/_react.default.createElement(_SortingIcon.default, {
180
+ }, /*#__PURE__*/_react.default.createElement(_table.SortingIcon, {
181
181
  isSortingAllowed: !!onSorting,
182
182
  sortOrdered: sortOrdered,
183
183
  onClick: sort,
@@ -55,7 +55,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
55
55
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
56
56
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
57
57
  var packageName = "@atlaskit/renderer";
58
- var packageVersion = "109.21.0";
58
+ var packageVersion = "109.22.0";
59
59
  var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
60
60
  (0, _inherits2.default)(Renderer, _PureComponent);
61
61
  var _super = _createSuper(Renderer);
@@ -22,6 +22,7 @@ var _consts = require("../../consts");
22
22
  var _headingAnchor = require("../../react/nodes/heading-anchor");
23
23
  var _lightWeightCodeBlock = require("../../react/nodes/codeBlock/components/lightWeightCodeBlock");
24
24
  var _table = require("../../react/nodes/table");
25
+ var _table2 = require("@atlaskit/editor-common/table");
25
26
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
26
27
  /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation */
27
28
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
@@ -83,7 +84,7 @@ var tableSortableColumnStyle = function tableSortableColumnStyle(_ref2) {
83
84
  if (allowNestedHeaderLinks) {
84
85
  headingsCss = "\n /**\n * When the sort button is enabled we want the heading's copy link button\n * to reserve space so that it can prematurely wrap to avoid the button\n * being displayed underneath the sort button (hidden or obscured).\n *\n * The two buttons fight each other since the sort button is displayed\n * on hover of the <th /> and the copy link button is displayed on hover\n * of the heading.\n *\n * Note that this can break the WYSIWYG experience in the case where\n * a heading fills the width of the table cell and the only thing which\n * wraps is the copy link button. This is hopefully a rare fringe case.\n */\n .".concat(_headingAnchor.HeadingAnchorWrapperClassName, " {\n position: unset;\n }\n > {\n h1, h2, h3, h4, h5, h6 {\n margin-right: 30px;\n }\n }\n ");
85
86
  }
86
- return (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n padding: 0;\n\n .", " {\n width: 100%;\n height: 100%;\n padding: ", "px;\n border-width: 1.5px;\n border-style: solid;\n border-color: transparent;\n\n > *:first-child {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + *,\n > style:first-child + .ProseMirror-gapcursor + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + *,\n > style:first-child + .ProseMirror-gapcursor + span + * {\n margin-top: 0;\n }\n\n @supports selector(:focus-visible) {\n &:focus {\n outline: unset;\n }\n &:focus-visible {\n border-color: ", ";\n }\n }\n\n ", "\n }\n\n .", " {\n margin: 0;\n .", " {\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n }\n }\n\n .", " {\n .", " {\n opacity: 0;\n &:focus {\n opacity: 1;\n }\n }\n }\n\n &:hover {\n .", " {\n .", " {\n opacity: 1;\n }\n }\n }\n }\n "])), _consts.RendererCssClassName.SORTABLE_COLUMN_WRAPPER, _consts.RendererCssClassName.SORTABLE_COLUMN, _styles.tableCellPadding, "var(--ds-border-focused, ".concat(colors.B300, ")"), headingsCss, _consts.RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, _consts.RendererCssClassName.SORTABLE_COLUMN_ICON, _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, _consts.RendererCssClassName.SORTABLE_COLUMN_ICON, _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, _consts.RendererCssClassName.SORTABLE_COLUMN_ICON);
87
+ return (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n padding: 0;\n\n .", " {\n width: 100%;\n height: 100%;\n padding: ", "px;\n border-width: 1.5px;\n border-style: solid;\n border-color: transparent;\n\n > *:first-child {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + *,\n > style:first-child + .ProseMirror-gapcursor + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + *,\n > style:first-child + .ProseMirror-gapcursor + span + * {\n margin-top: 0;\n }\n\n @supports selector(:focus-visible) {\n &:focus {\n outline: unset;\n }\n &:focus-visible {\n border-color: ", ";\n }\n }\n\n ", "\n }\n\n .", " {\n margin: 0;\n .", " {\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n }\n }\n\n .", " {\n .", " {\n opacity: 0;\n &:focus {\n opacity: 1;\n }\n }\n }\n\n &:hover {\n .", " {\n .", " {\n opacity: 1;\n }\n }\n }\n }\n "])), _consts.RendererCssClassName.SORTABLE_COLUMN_WRAPPER, _consts.RendererCssClassName.SORTABLE_COLUMN, _styles.tableCellPadding, "var(--ds-border-focused, ".concat(colors.B300, ")"), headingsCss, _consts.RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME, _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME, _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME);
87
88
  };
88
89
  var fullPageStyles = function fullPageStyles(_ref3, _ref4) {
89
90
  var appearance = _ref3.appearance;
@@ -8,6 +8,5 @@ export const RendererCssClassName = {
8
8
  SORTABLE_COLUMN_WRAPPER: `${clPrefix}tableHeader-sortable-column__wrapper`,
9
9
  SORTABLE_COLUMN: `${clPrefix}tableHeader-sortable-column`,
10
10
  SORTABLE_COLUMN_ICON_WRAPPER: `${clPrefix}tableHeader-sorting-icon__wrapper`,
11
- SORTABLE_COLUMN_ICON: `${clPrefix}tableHeader-sorting-icon`,
12
11
  SORTABLE_COLUMN_NO_ORDER: `${clPrefix}tableHeader-sorting-icon__no-order`
13
12
  };
@@ -37,53 +37,4 @@ export const tableCellMessages = defineMessages({
37
37
  defaultMessage: 'descending',
38
38
  description: 'this table column is sorted in descending order'
39
39
  }
40
- });
41
- export const sortingIconMessages = defineMessages({
42
- noOrderLabel: {
43
- id: 'fabric.editor.headingLink.noOrderLabel',
44
- defaultMessage: 'Sort column A to Z',
45
- description: 'Sort the column in ascending order'
46
- },
47
- ascOrderLabel: {
48
- id: 'fabric.editor.headingLink.ascOrderLabel',
49
- defaultMessage: 'Sort column Z to A',
50
- description: 'Sort the column in descending order'
51
- },
52
- descOrderLabel: {
53
- id: 'fabric.editor.headingLink.descOrderLabel',
54
- defaultMessage: 'Clear sorting',
55
- description: 'clear the sorting from this column'
56
- },
57
- invalidLabel: {
58
- id: 'fabric.editor.headingLink.invalidLabel',
59
- defaultMessage: `⚠️ You can't sort a table with merged cells`,
60
- description: 'this sort is invalid for merged cells'
61
- }
62
- });
63
- export const sortingAriaLabelMessages = defineMessages({
64
- noOrderLabel: {
65
- id: 'fabric.editor.tableHeader.sorting.no',
66
- defaultMessage: 'No sort applied to the column',
67
- description: 'Aria-label for Sort column button when sorting was not applied or the sorting has been cleared'
68
- },
69
- ascOrderLabel: {
70
- id: 'fabric.editor.tableHeader.sorting.asc',
71
- defaultMessage: 'Ascending sort applied',
72
- description: 'Aria-label for Sort column button when ascending sorting was applied'
73
- },
74
- descOrderLabel: {
75
- id: 'fabric.editor.tableHeader.sorting.desc',
76
- defaultMessage: 'Descending sort applied',
77
- description: 'Aria-label for Sort column button when descending sorting was applied'
78
- },
79
- invalidLabel: {
80
- id: 'fabric.editor.tableHeader.sorting.invalid',
81
- defaultMessage: `You can't sort a table with merged cells`,
82
- description: 'Aria-label for Sort column button when sorting is not possible'
83
- },
84
- defaultLabel: {
85
- id: 'fabric.editor.tableHeader.sorting.default',
86
- defaultMessage: 'Sort the column',
87
- description: 'Default aria-label for Sort column button'
88
- }
89
40
  });
@@ -7,6 +7,7 @@ import { createCompareNodes, convertProsemirrorTableNodeToArrayOfRows, hasMerged
7
7
  import { SortOrder } from '@atlaskit/editor-common/types';
8
8
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
9
9
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
10
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
10
11
  import { FullPagePadding } from '../../ui/Renderer/style';
11
12
  import { TableHeader } from './tableCell';
12
13
  import { withSmartCardStorage } from '../../ui/SmartCardStorage';
@@ -379,23 +380,24 @@ const TableWithShadows = overflowShadow(TableProcessor, {
379
380
  overflowSelector: `.${TableSharedCssClassName.TABLE_NODE_WRAPPER}`,
380
381
  useShadowObserver: true
381
382
  });
382
- const TableWithWidth = props =>
383
- /*#__PURE__*/
384
- // Remember, `width` will be 0 during SSR
385
- React.createElement(WidthConsumer, null, ({
386
- width
387
- }) => {
388
- var _props$columnWidths;
389
- const renderWidth = props.rendererAppearance === 'full-page' ? width - FullPagePadding * 2 : width;
390
- const colWidthsSum = ((_props$columnWidths = props.columnWidths) === null || _props$columnWidths === void 0 ? void 0 : _props$columnWidths.reduce((total, val) => total + val, 0)) || 0;
391
- if (colWidthsSum || isTableResizingEnabled(props.rendererAppearance)) {
392
- return /*#__PURE__*/React.createElement(TableWithShadows, _extends({
383
+ const TableWithWidth = props => {
384
+ // Remember, `width` will be 0 during SSR
385
+ return /*#__PURE__*/React.createElement(WidthConsumer, null, ({
386
+ width
387
+ }) => {
388
+ var _props$columnWidths;
389
+ // we are adding full page padding before but now it cause difference between editor and renderer so we need to remove it, and 1px also for matching exact width.
390
+ const renderWidth = props.rendererAppearance === 'full-page' ? getBooleanFF('platform.editor.table-width-diff-in-renderer_x5s3z') ? width + FullPagePadding - 1 : width - FullPagePadding * 2 : width;
391
+ const colWidthsSum = ((_props$columnWidths = props.columnWidths) === null || _props$columnWidths === void 0 ? void 0 : _props$columnWidths.reduce((total, val) => total + val, 0)) || 0;
392
+ if (colWidthsSum || isTableResizingEnabled(props.rendererAppearance)) {
393
+ return /*#__PURE__*/React.createElement(TableWithShadows, _extends({
394
+ renderWidth: renderWidth
395
+ }, props));
396
+ }
397
+ // there should not be a case when colWidthsSum is 0 and table is in overflow state - so no need to render shadows in this case
398
+ return /*#__PURE__*/React.createElement(TableProcessor, _extends({
393
399
  renderWidth: renderWidth
394
400
  }, props));
395
- }
396
- // there should not be a case when colWidthsSum is 0 and table is in overflow state - so no need to render shadows in this case
397
- return /*#__PURE__*/React.createElement(TableProcessor, _extends({
398
- renderWidth: renderWidth
399
- }, props));
400
- });
401
+ });
402
+ };
401
403
  export default withSmartCardStorage(TableWithWidth);
@@ -4,7 +4,7 @@ import { tableBackgroundColorPalette, getDarkModeLCHColor } from '@atlaskit/adf-
4
4
  import { useThemeObserver } from '@atlaskit/tokens';
5
5
  import { SortOrder } from '@atlaskit/editor-common/types';
6
6
  import { hexToEditorBackgroundPaletteRawValue } from '@atlaskit/editor-palette';
7
- import SortingIcon from '../../ui/SortingIcon';
7
+ import { SortingIcon } from '@atlaskit/editor-common/table';
8
8
  import { MODE, PLATFORM } from '../../analytics/events';
9
9
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
10
10
  import { RendererCssClassName } from '../../consts';
@@ -36,7 +36,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
36
36
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
37
37
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
38
38
  const packageName = "@atlaskit/renderer";
39
- const packageVersion = "109.21.0";
39
+ const packageVersion = "109.22.0";
40
40
  export class Renderer extends PureComponent {
41
41
  constructor(props) {
42
42
  super(props);
@@ -8,15 +8,15 @@ import { headingSizes as headingSizesImport } from '@atlaskit/theme/typography';
8
8
  import { getGlobalTheme } from '@atlaskit/tokens';
9
9
  import { mediaInlineImageStyles } from '@atlaskit/editor-common/media-inline';
10
10
  import { tableSharedStyle, columnLayoutSharedStyle, blockquoteSharedStyles, headingsSharedStyles, ruleSharedStyles, whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, mediaSingleSharedStyle, TableSharedCssClassName, tableMarginTop, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, richMediaClassName, tasksAndDecisionsStyles, smartCardSharedStyles, tableCellPadding, textColorStyles, codeBlockInListSafariFix, SmartCardSharedCssClassName } from '@atlaskit/editor-common/styles';
11
- import { shadowClassNames } from '@atlaskit/editor-common/ui';
11
+ import { shadowClassNames, shadowObserverClassNames } from '@atlaskit/editor-common/ui';
12
12
  import { browser } from '@atlaskit/editor-common/utils';
13
13
  import { editorFontSize, blockNodesVerticalMargin, akEditorTableToolbar, akEditorTableBorder, akEditorTableNumberColumnWidth, gridMediumMaxWidth, akEditorFullWidthLayoutWidth, akEditorStickyHeaderZIndex, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
14
14
  import { N40A } from '@atlaskit/theme/colors';
15
15
  import { RendererCssClassName } from '../../consts';
16
16
  import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
17
- import { shadowObserverClassNames } from '@atlaskit/editor-common/ui';
18
17
  import { getLightWeightCodeBlockStylesForRootRendererStyleSheet } from '../../react/nodes/codeBlock/components/lightWeightCodeBlock';
19
18
  import { isTableResizingEnabled } from '../../react/nodes/table';
19
+ import { SORTABLE_COLUMN_ICON_CLASSNAME } from '@atlaskit/editor-common/table';
20
20
  export const FullPagePadding = 32;
21
21
  const tableShadowWidth = 32;
22
22
  export const TELEPOINTER_ID = 'ai-streaming-telepointer';
@@ -282,14 +282,14 @@ const tableSortableColumnStyle = ({
282
282
 
283
283
  .${RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER} {
284
284
  margin: 0;
285
- .${RendererCssClassName.SORTABLE_COLUMN_ICON} {
285
+ .${SORTABLE_COLUMN_ICON_CLASSNAME} {
286
286
  opacity: 1;
287
287
  transition: opacity 0.2s ease-in-out;
288
288
  }
289
289
  }
290
290
 
291
291
  .${RendererCssClassName.SORTABLE_COLUMN_NO_ORDER} {
292
- .${RendererCssClassName.SORTABLE_COLUMN_ICON} {
292
+ .${SORTABLE_COLUMN_ICON_CLASSNAME} {
293
293
  opacity: 0;
294
294
  &:focus {
295
295
  opacity: 1;
@@ -299,7 +299,7 @@ const tableSortableColumnStyle = ({
299
299
 
300
300
  &:hover {
301
301
  .${RendererCssClassName.SORTABLE_COLUMN_NO_ORDER} {
302
- .${RendererCssClassName.SORTABLE_COLUMN_ICON} {
302
+ .${SORTABLE_COLUMN_ICON_CLASSNAME} {
303
303
  opacity: 1;
304
304
  }
305
305
  }
@@ -8,6 +8,5 @@ export var RendererCssClassName = {
8
8
  SORTABLE_COLUMN_WRAPPER: "".concat(clPrefix, "tableHeader-sortable-column__wrapper"),
9
9
  SORTABLE_COLUMN: "".concat(clPrefix, "tableHeader-sortable-column"),
10
10
  SORTABLE_COLUMN_ICON_WRAPPER: "".concat(clPrefix, "tableHeader-sorting-icon__wrapper"),
11
- SORTABLE_COLUMN_ICON: "".concat(clPrefix, "tableHeader-sorting-icon"),
12
11
  SORTABLE_COLUMN_NO_ORDER: "".concat(clPrefix, "tableHeader-sorting-icon__no-order")
13
12
  };
@@ -37,53 +37,4 @@ export var tableCellMessages = defineMessages({
37
37
  defaultMessage: 'descending',
38
38
  description: 'this table column is sorted in descending order'
39
39
  }
40
- });
41
- export var sortingIconMessages = defineMessages({
42
- noOrderLabel: {
43
- id: 'fabric.editor.headingLink.noOrderLabel',
44
- defaultMessage: 'Sort column A to Z',
45
- description: 'Sort the column in ascending order'
46
- },
47
- ascOrderLabel: {
48
- id: 'fabric.editor.headingLink.ascOrderLabel',
49
- defaultMessage: 'Sort column Z to A',
50
- description: 'Sort the column in descending order'
51
- },
52
- descOrderLabel: {
53
- id: 'fabric.editor.headingLink.descOrderLabel',
54
- defaultMessage: 'Clear sorting',
55
- description: 'clear the sorting from this column'
56
- },
57
- invalidLabel: {
58
- id: 'fabric.editor.headingLink.invalidLabel',
59
- defaultMessage: "\u26A0\uFE0F You can't sort a table with merged cells",
60
- description: 'this sort is invalid for merged cells'
61
- }
62
- });
63
- export var sortingAriaLabelMessages = defineMessages({
64
- noOrderLabel: {
65
- id: 'fabric.editor.tableHeader.sorting.no',
66
- defaultMessage: 'No sort applied to the column',
67
- description: 'Aria-label for Sort column button when sorting was not applied or the sorting has been cleared'
68
- },
69
- ascOrderLabel: {
70
- id: 'fabric.editor.tableHeader.sorting.asc',
71
- defaultMessage: 'Ascending sort applied',
72
- description: 'Aria-label for Sort column button when ascending sorting was applied'
73
- },
74
- descOrderLabel: {
75
- id: 'fabric.editor.tableHeader.sorting.desc',
76
- defaultMessage: 'Descending sort applied',
77
- description: 'Aria-label for Sort column button when descending sorting was applied'
78
- },
79
- invalidLabel: {
80
- id: 'fabric.editor.tableHeader.sorting.invalid',
81
- defaultMessage: "You can't sort a table with merged cells",
82
- description: 'Aria-label for Sort column button when sorting is not possible'
83
- },
84
- defaultLabel: {
85
- id: 'fabric.editor.tableHeader.sorting.default',
86
- defaultMessage: 'Sort the column',
87
- description: 'Default aria-label for Sort column button'
88
- }
89
40
  });
@@ -18,6 +18,7 @@ import { createCompareNodes, convertProsemirrorTableNodeToArrayOfRows, hasMerged
18
18
  import { SortOrder } from '@atlaskit/editor-common/types';
19
19
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
20
20
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
21
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
21
22
  import { FullPagePadding } from '../../ui/Renderer/style';
22
23
  import { TableHeader } from './tableCell';
23
24
  import { withSmartCardStorage } from '../../ui/SmartCardStorage';
@@ -433,26 +434,24 @@ var TableWithShadows = overflowShadow(TableProcessor, {
433
434
  useShadowObserver: true
434
435
  });
435
436
  var TableWithWidth = function TableWithWidth(props) {
436
- return (
437
- /*#__PURE__*/
438
- // Remember, `width` will be 0 during SSR
439
- React.createElement(WidthConsumer, null, function (_ref2) {
440
- var _props$columnWidths;
441
- var width = _ref2.width;
442
- var renderWidth = props.rendererAppearance === 'full-page' ? width - FullPagePadding * 2 : width;
443
- var colWidthsSum = ((_props$columnWidths = props.columnWidths) === null || _props$columnWidths === void 0 ? void 0 : _props$columnWidths.reduce(function (total, val) {
444
- return total + val;
445
- }, 0)) || 0;
446
- if (colWidthsSum || isTableResizingEnabled(props.rendererAppearance)) {
447
- return /*#__PURE__*/React.createElement(TableWithShadows, _extends({
448
- renderWidth: renderWidth
449
- }, props));
450
- }
451
- // there should not be a case when colWidthsSum is 0 and table is in overflow state - so no need to render shadows in this case
452
- return /*#__PURE__*/React.createElement(TableProcessor, _extends({
437
+ // Remember, `width` will be 0 during SSR
438
+ return /*#__PURE__*/React.createElement(WidthConsumer, null, function (_ref2) {
439
+ var _props$columnWidths;
440
+ var width = _ref2.width;
441
+ // we are adding full page padding before but now it cause difference between editor and renderer so we need to remove it, and 1px also for matching exact width.
442
+ var renderWidth = props.rendererAppearance === 'full-page' ? getBooleanFF('platform.editor.table-width-diff-in-renderer_x5s3z') ? width + FullPagePadding - 1 : width - FullPagePadding * 2 : width;
443
+ var colWidthsSum = ((_props$columnWidths = props.columnWidths) === null || _props$columnWidths === void 0 ? void 0 : _props$columnWidths.reduce(function (total, val) {
444
+ return total + val;
445
+ }, 0)) || 0;
446
+ if (colWidthsSum || isTableResizingEnabled(props.rendererAppearance)) {
447
+ return /*#__PURE__*/React.createElement(TableWithShadows, _extends({
453
448
  renderWidth: renderWidth
454
449
  }, props));
455
- })
456
- );
450
+ }
451
+ // there should not be a case when colWidthsSum is 0 and table is in overflow state - so no need to render shadows in this case
452
+ return /*#__PURE__*/React.createElement(TableProcessor, _extends({
453
+ renderWidth: renderWidth
454
+ }, props));
455
+ });
457
456
  };
458
457
  export default withSmartCardStorage(TableWithWidth);
@@ -4,7 +4,7 @@ import { tableBackgroundColorPalette, getDarkModeLCHColor } from '@atlaskit/adf-
4
4
  import { useThemeObserver } from '@atlaskit/tokens';
5
5
  import { SortOrder } from '@atlaskit/editor-common/types';
6
6
  import { hexToEditorBackgroundPaletteRawValue } from '@atlaskit/editor-palette';
7
- import SortingIcon from '../../ui/SortingIcon';
7
+ import { SortingIcon } from '@atlaskit/editor-common/table';
8
8
  import { MODE, PLATFORM } from '../../analytics/events';
9
9
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
10
10
  import { RendererCssClassName } from '../../consts';
@@ -46,7 +46,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
46
46
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
47
47
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
48
48
  var packageName = "@atlaskit/renderer";
49
- var packageVersion = "109.21.0";
49
+ var packageVersion = "109.22.0";
50
50
  export var Renderer = /*#__PURE__*/function (_PureComponent) {
51
51
  _inherits(Renderer, _PureComponent);
52
52
  var _super = _createSuper(Renderer);
@@ -10,15 +10,15 @@ import { headingSizes as headingSizesImport } from '@atlaskit/theme/typography';
10
10
  import { getGlobalTheme } from '@atlaskit/tokens';
11
11
  import { mediaInlineImageStyles } from '@atlaskit/editor-common/media-inline';
12
12
  import { tableSharedStyle, columnLayoutSharedStyle, blockquoteSharedStyles, headingsSharedStyles, ruleSharedStyles, whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, mediaSingleSharedStyle, TableSharedCssClassName, tableMarginTop, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, richMediaClassName, tasksAndDecisionsStyles, smartCardSharedStyles, tableCellPadding, textColorStyles, codeBlockInListSafariFix, SmartCardSharedCssClassName } from '@atlaskit/editor-common/styles';
13
- import { shadowClassNames } from '@atlaskit/editor-common/ui';
13
+ import { shadowClassNames, shadowObserverClassNames } from '@atlaskit/editor-common/ui';
14
14
  import { browser } from '@atlaskit/editor-common/utils';
15
15
  import { editorFontSize, blockNodesVerticalMargin, akEditorTableToolbar, akEditorTableBorder, akEditorTableNumberColumnWidth, gridMediumMaxWidth, akEditorFullWidthLayoutWidth, akEditorStickyHeaderZIndex, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
16
16
  import { N40A } from '@atlaskit/theme/colors';
17
17
  import { RendererCssClassName } from '../../consts';
18
18
  import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
19
- import { shadowObserverClassNames } from '@atlaskit/editor-common/ui';
20
19
  import { getLightWeightCodeBlockStylesForRootRendererStyleSheet } from '../../react/nodes/codeBlock/components/lightWeightCodeBlock';
21
20
  import { isTableResizingEnabled } from '../../react/nodes/table';
21
+ import { SORTABLE_COLUMN_ICON_CLASSNAME } from '@atlaskit/editor-common/table';
22
22
  export var FullPagePadding = 32;
23
23
  var tableShadowWidth = 32;
24
24
  export var TELEPOINTER_ID = 'ai-streaming-telepointer';
@@ -75,7 +75,7 @@ var tableSortableColumnStyle = function tableSortableColumnStyle(_ref2) {
75
75
  if (allowNestedHeaderLinks) {
76
76
  headingsCss = "\n /**\n * When the sort button is enabled we want the heading's copy link button\n * to reserve space so that it can prematurely wrap to avoid the button\n * being displayed underneath the sort button (hidden or obscured).\n *\n * The two buttons fight each other since the sort button is displayed\n * on hover of the <th /> and the copy link button is displayed on hover\n * of the heading.\n *\n * Note that this can break the WYSIWYG experience in the case where\n * a heading fills the width of the table cell and the only thing which\n * wraps is the copy link button. This is hopefully a rare fringe case.\n */\n .".concat(HeadingAnchorWrapperClassName, " {\n position: unset;\n }\n > {\n h1, h2, h3, h4, h5, h6 {\n margin-right: 30px;\n }\n }\n ");
77
77
  }
78
- return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n .", " {\n padding: 0;\n\n .", " {\n width: 100%;\n height: 100%;\n padding: ", "px;\n border-width: 1.5px;\n border-style: solid;\n border-color: transparent;\n\n > *:first-child {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + *,\n > style:first-child + .ProseMirror-gapcursor + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + *,\n > style:first-child + .ProseMirror-gapcursor + span + * {\n margin-top: 0;\n }\n\n @supports selector(:focus-visible) {\n &:focus {\n outline: unset;\n }\n &:focus-visible {\n border-color: ", ";\n }\n }\n\n ", "\n }\n\n .", " {\n margin: 0;\n .", " {\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n }\n }\n\n .", " {\n .", " {\n opacity: 0;\n &:focus {\n opacity: 1;\n }\n }\n }\n\n &:hover {\n .", " {\n .", " {\n opacity: 1;\n }\n }\n }\n }\n "])), RendererCssClassName.SORTABLE_COLUMN_WRAPPER, RendererCssClassName.SORTABLE_COLUMN, tableCellPadding, "var(--ds-border-focused, ".concat(colors.B300, ")"), headingsCss, RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, RendererCssClassName.SORTABLE_COLUMN_ICON, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, RendererCssClassName.SORTABLE_COLUMN_ICON, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, RendererCssClassName.SORTABLE_COLUMN_ICON);
78
+ return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n .", " {\n padding: 0;\n\n .", " {\n width: 100%;\n height: 100%;\n padding: ", "px;\n border-width: 1.5px;\n border-style: solid;\n border-color: transparent;\n\n > *:first-child {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + *,\n > style:first-child + .ProseMirror-gapcursor + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + *,\n > style:first-child + .ProseMirror-gapcursor + span + * {\n margin-top: 0;\n }\n\n @supports selector(:focus-visible) {\n &:focus {\n outline: unset;\n }\n &:focus-visible {\n border-color: ", ";\n }\n }\n\n ", "\n }\n\n .", " {\n margin: 0;\n .", " {\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n }\n }\n\n .", " {\n .", " {\n opacity: 0;\n &:focus {\n opacity: 1;\n }\n }\n }\n\n &:hover {\n .", " {\n .", " {\n opacity: 1;\n }\n }\n }\n }\n "])), RendererCssClassName.SORTABLE_COLUMN_WRAPPER, RendererCssClassName.SORTABLE_COLUMN, tableCellPadding, "var(--ds-border-focused, ".concat(colors.B300, ")"), headingsCss, RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, SORTABLE_COLUMN_ICON_CLASSNAME, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, SORTABLE_COLUMN_ICON_CLASSNAME, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, SORTABLE_COLUMN_ICON_CLASSNAME);
79
79
  };
80
80
  var fullPageStyles = function fullPageStyles(_ref3, _ref4) {
81
81
  var appearance = _ref3.appearance;
@@ -7,6 +7,5 @@ export declare const RendererCssClassName: {
7
7
  SORTABLE_COLUMN_WRAPPER: string;
8
8
  SORTABLE_COLUMN: string;
9
9
  SORTABLE_COLUMN_ICON_WRAPPER: string;
10
- SORTABLE_COLUMN_ICON: string;
11
10
  SORTABLE_COLUMN_NO_ORDER: string;
12
11
  };
@@ -37,52 +37,3 @@ export declare const tableCellMessages: {
37
37
  description: string;
38
38
  };
39
39
  };
40
- export declare const sortingIconMessages: {
41
- noOrderLabel: {
42
- id: string;
43
- defaultMessage: string;
44
- description: string;
45
- };
46
- ascOrderLabel: {
47
- id: string;
48
- defaultMessage: string;
49
- description: string;
50
- };
51
- descOrderLabel: {
52
- id: string;
53
- defaultMessage: string;
54
- description: string;
55
- };
56
- invalidLabel: {
57
- id: string;
58
- defaultMessage: string;
59
- description: string;
60
- };
61
- };
62
- export declare const sortingAriaLabelMessages: {
63
- noOrderLabel: {
64
- id: string;
65
- defaultMessage: string;
66
- description: string;
67
- };
68
- ascOrderLabel: {
69
- id: string;
70
- defaultMessage: string;
71
- description: string;
72
- };
73
- descOrderLabel: {
74
- id: string;
75
- defaultMessage: string;
76
- description: string;
77
- };
78
- invalidLabel: {
79
- id: string;
80
- defaultMessage: string;
81
- description: string;
82
- };
83
- defaultLabel: {
84
- id: string;
85
- defaultMessage: string;
86
- description: string;
87
- };
88
- };
@@ -7,6 +7,5 @@ export declare const RendererCssClassName: {
7
7
  SORTABLE_COLUMN_WRAPPER: string;
8
8
  SORTABLE_COLUMN: string;
9
9
  SORTABLE_COLUMN_ICON_WRAPPER: string;
10
- SORTABLE_COLUMN_ICON: string;
11
10
  SORTABLE_COLUMN_NO_ORDER: string;
12
11
  };
@@ -37,52 +37,3 @@ export declare const tableCellMessages: {
37
37
  description: string;
38
38
  };
39
39
  };
40
- export declare const sortingIconMessages: {
41
- noOrderLabel: {
42
- id: string;
43
- defaultMessage: string;
44
- description: string;
45
- };
46
- ascOrderLabel: {
47
- id: string;
48
- defaultMessage: string;
49
- description: string;
50
- };
51
- descOrderLabel: {
52
- id: string;
53
- defaultMessage: string;
54
- description: string;
55
- };
56
- invalidLabel: {
57
- id: string;
58
- defaultMessage: string;
59
- description: string;
60
- };
61
- };
62
- export declare const sortingAriaLabelMessages: {
63
- noOrderLabel: {
64
- id: string;
65
- defaultMessage: string;
66
- description: string;
67
- };
68
- ascOrderLabel: {
69
- id: string;
70
- defaultMessage: string;
71
- description: string;
72
- };
73
- descOrderLabel: {
74
- id: string;
75
- defaultMessage: string;
76
- description: string;
77
- };
78
- invalidLabel: {
79
- id: string;
80
- defaultMessage: string;
81
- description: string;
82
- };
83
- defaultLabel: {
84
- id: string;
85
- defaultMessage: string;
86
- description: string;
87
- };
88
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "109.21.0",
3
+ "version": "109.22.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/analytics-next": "^9.3.0",
32
32
  "@atlaskit/button": "^17.14.0",
33
33
  "@atlaskit/code": "^15.1.0",
34
- "@atlaskit/editor-common": "^78.34.0",
34
+ "@atlaskit/editor-common": "^78.36.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.11.0",
36
36
  "@atlaskit/editor-palette": "1.5.3",
37
37
  "@atlaskit/editor-prosemirror": "4.0.0",
@@ -129,6 +129,9 @@
129
129
  "platform.editor.inline_extension.extended_lcqdn": {
130
130
  "type": "boolean"
131
131
  },
132
+ "platform.editor.table-width-diff-in-renderer_x5s3z": {
133
+ "type": "boolean"
134
+ },
132
135
  "platform.editor.allow-inline-comments-for-inline-nodes": {
133
136
  "type": "boolean"
134
137
  },
@@ -1,144 +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.default = exports.StatusClassNames = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
- var _react = require("@emotion/react");
10
- var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
11
- var _colors = require("@atlaskit/theme/colors");
12
- var _types = require("@atlaskit/editor-common/types");
13
- var _messages = require("../messages");
14
- var _reactIntlNext = require("react-intl-next");
15
- var _consts = require("../consts");
16
- var _templateObject, _templateObject2;
17
- /** @jsx jsx */
18
- var StatusClassNames = exports.StatusClassNames = /*#__PURE__*/function (StatusClassNames) {
19
- StatusClassNames["ASC"] = "sorting-icon-svg__asc";
20
- StatusClassNames["DESC"] = "sorting-icon-svg__desc";
21
- StatusClassNames["NO_ORDER"] = "sorting-icon-svg__no_order";
22
- StatusClassNames["SORTING_NOT_ALLOWED"] = "sorting-icon-svg__not-allowed";
23
- return StatusClassNames;
24
- }({}); // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
25
- var buttonStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n display: flex;\n height: 28px;\n width: 28px;\n margin: ", ";\n right: 0;\n top: 0;\n border: 2px solid ", ";\n border-radius: ", ";\n background-color: ", ";\n justify-content: center;\n align-items: center;\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n\n &.", "__not-allowed {\n cursor: not-allowed;\n }\n"])), "var(--ds-space-075, 6px)", "var(--ds-border, #fff)", "var(--ds-border-radius-100, 4px)", "var(--ds-surface-overlay, ".concat(_colors.N20, ")"), "var(--ds-surface-overlay-hovered, ".concat(_colors.N30, ")"), "var(--ds-surface-overlay-pressed, rgba(179, 212, 255, 0.6))", _consts.RendererCssClassName.SORTABLE_COLUMN_ICON);
26
-
27
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
28
- var iconWrapperStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 8px;\n height: 12px;\n transition: transform 0.3s cubic-bezier(0.15, 1, 0.3, 1);\n transform-origin: 50% 50%;\n display: flex;\n justify-content: center;\n\n &.", " {\n transform: rotate(-180deg);\n }\n\n &.", "-inactive {\n opacity: 0.7;\n }\n"])), StatusClassNames.DESC, _consts.RendererCssClassName.SORTABLE_COLUMN_ICON);
29
-
30
- // The icon is created with CSS due to the following Firefox issue: https://product-fabric.atlassian.net/browse/ED-8001
31
- // The TL;DR is that svg's in tables mess up how HTML is copied in Firefox. Using a styled div instead solves the problem.
32
- // For this reason, svg's should be avoided in tables until this issue is fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=1664350
33
- var iconStyles = (0, _react.css)({
34
- height: '100%',
35
- width: '2px',
36
- borderRadius: '50px',
37
- background: "var(--ds-icon, #42526E)",
38
- '&::before, &::after': {
39
- background: "var(--ds-icon, #42526E)",
40
- content: "''",
41
- height: '2px',
42
- width: '6px',
43
- position: 'absolute',
44
- borderRadius: '50px'
45
- },
46
- '&::before': {
47
- transform: 'rotate(45deg) translate(3.4px, 8.5px)'
48
- },
49
- '&::after': {
50
- transform: 'rotate(-45deg) translate(-6.3px, 5.7px)'
51
- }
52
- });
53
- var getIconClassName = function getIconClassName(isSortingAllowed, sortOrdered) {
54
- var activated = sortOrdered !== _types.SortOrder.NO_ORDER;
55
- var activeStatusClass = "".concat(_consts.RendererCssClassName.SORTABLE_COLUMN_ICON, "-").concat(activated ? 'active' : 'inactive');
56
- if (!isSortingAllowed) {
57
- return "".concat(StatusClassNames.SORTING_NOT_ALLOWED, " ").concat(activeStatusClass);
58
- }
59
- switch (sortOrdered) {
60
- case _types.SortOrder.ASC:
61
- return "".concat(StatusClassNames.ASC, " ").concat(activeStatusClass);
62
- case _types.SortOrder.DESC:
63
- return "".concat(StatusClassNames.DESC, " ").concat(activeStatusClass);
64
- default:
65
- return "".concat(StatusClassNames.NO_ORDER, " ").concat(activeStatusClass);
66
- }
67
- };
68
- var getTooltipTitle = function getTooltipTitle(intl, isSortingAllowed, sortOrdered) {
69
- var noOrderLabel = _messages.sortingIconMessages.noOrderLabel,
70
- ascOrderLabel = _messages.sortingIconMessages.ascOrderLabel,
71
- descOrderLabel = _messages.sortingIconMessages.descOrderLabel,
72
- invalidLabel = _messages.sortingIconMessages.invalidLabel;
73
- if (!isSortingAllowed) {
74
- return intl.formatMessage(invalidLabel);
75
- }
76
- switch (sortOrdered) {
77
- case _types.SortOrder.NO_ORDER:
78
- return intl.formatMessage(noOrderLabel);
79
- case _types.SortOrder.ASC:
80
- return intl.formatMessage(ascOrderLabel);
81
- case _types.SortOrder.DESC:
82
- return intl.formatMessage(descOrderLabel);
83
- }
84
- return '';
85
- };
86
- var getAriaLabel = function getAriaLabel(intl, isSortingAllowed, sortOrdered) {
87
- var noOrderLabel = _messages.sortingAriaLabelMessages.noOrderLabel,
88
- ascOrderLabel = _messages.sortingAriaLabelMessages.ascOrderLabel,
89
- descOrderLabel = _messages.sortingAriaLabelMessages.descOrderLabel,
90
- invalidLabel = _messages.sortingAriaLabelMessages.invalidLabel,
91
- defaultLabel = _messages.sortingAriaLabelMessages.defaultLabel;
92
- if (!isSortingAllowed) {
93
- return intl.formatMessage(invalidLabel);
94
- }
95
- switch (sortOrdered) {
96
- case _types.SortOrder.NO_ORDER:
97
- return intl.formatMessage(noOrderLabel);
98
- case _types.SortOrder.ASC:
99
- return intl.formatMessage(ascOrderLabel);
100
- case _types.SortOrder.DESC:
101
- return intl.formatMessage(descOrderLabel);
102
- }
103
- return intl.formatMessage(defaultLabel);
104
- };
105
- var SortingIcon = function SortingIcon(_ref) {
106
- var isSortingAllowed = _ref.isSortingAllowed,
107
- sortOrdered = _ref.sortOrdered,
108
- intl = _ref.intl,
109
- onClick = _ref.onClick,
110
- onKeyDown = _ref.onKeyDown;
111
- var buttonClassName = "".concat(_consts.RendererCssClassName.SORTABLE_COLUMN_ICON).concat(isSortingAllowed ? '' : " ".concat(_consts.RendererCssClassName.SORTABLE_COLUMN_ICON, "__not-allowed"));
112
- var content = getTooltipTitle(intl, isSortingAllowed, sortOrdered);
113
- var ariaLabel = getAriaLabel(intl, isSortingAllowed, sortOrdered);
114
- var handleClick = function handleClick() {
115
- if (isSortingAllowed) {
116
- onClick();
117
- }
118
- };
119
- var handleKeyDown = function handleKeyDown(event) {
120
- if (isSortingAllowed) {
121
- onKeyDown(event);
122
- }
123
- };
124
- return (0, _react.jsx)(_tooltip.default, {
125
- delay: 0,
126
- content: content,
127
- position: "top"
128
- }, (0, _react.jsx)("div", {
129
- css: buttonStyles,
130
- className: buttonClassName,
131
- role: "button",
132
- tabIndex: isSortingAllowed ? 0 : -1,
133
- "aria-label": ariaLabel,
134
- "aria-disabled": !isSortingAllowed,
135
- onClick: handleClick,
136
- onKeyDown: handleKeyDown
137
- }, (0, _react.jsx)("div", {
138
- css: iconWrapperStyles,
139
- className: getIconClassName(isSortingAllowed, sortOrdered)
140
- }, (0, _react.jsx)("div", {
141
- css: iconStyles
142
- }))));
143
- };
144
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(SortingIcon);
@@ -1,183 +0,0 @@
1
- /** @jsx jsx */
2
- import { css, jsx } from '@emotion/react';
3
- import Tooltip from '@atlaskit/tooltip';
4
- import { N20, N30 } from '@atlaskit/theme/colors';
5
- import { SortOrder } from '@atlaskit/editor-common/types';
6
- import { sortingIconMessages, sortingAriaLabelMessages } from '../messages';
7
- import { injectIntl } from 'react-intl-next';
8
- import { RendererCssClassName } from '../consts';
9
- export let StatusClassNames = /*#__PURE__*/function (StatusClassNames) {
10
- StatusClassNames["ASC"] = "sorting-icon-svg__asc";
11
- StatusClassNames["DESC"] = "sorting-icon-svg__desc";
12
- StatusClassNames["NO_ORDER"] = "sorting-icon-svg__no_order";
13
- StatusClassNames["SORTING_NOT_ALLOWED"] = "sorting-icon-svg__not-allowed";
14
- return StatusClassNames;
15
- }({});
16
-
17
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
18
- const buttonStyles = css`
19
- position: absolute;
20
- display: flex;
21
- height: 28px;
22
- width: 28px;
23
- margin: ${"var(--ds-space-075, 6px)"};
24
- right: 0;
25
- top: 0;
26
- border: 2px solid ${"var(--ds-border, #fff)"};
27
- border-radius: ${"var(--ds-border-radius-100, 4px)"};
28
- background-color: ${`var(--ds-surface-overlay, ${N20})`};
29
- justify-content: center;
30
- align-items: center;
31
- cursor: pointer;
32
-
33
- &:hover {
34
- background-color: ${`var(--ds-surface-overlay-hovered, ${N30})`};
35
- }
36
-
37
- &:active {
38
- background-color: ${"var(--ds-surface-overlay-pressed, rgba(179, 212, 255, 0.6))"};
39
- }
40
-
41
- &.${RendererCssClassName.SORTABLE_COLUMN_ICON}__not-allowed {
42
- cursor: not-allowed;
43
- }
44
- `;
45
-
46
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
47
- const iconWrapperStyles = css`
48
- width: 8px;
49
- height: 12px;
50
- transition: transform 0.3s cubic-bezier(0.15, 1, 0.3, 1);
51
- transform-origin: 50% 50%;
52
- display: flex;
53
- justify-content: center;
54
-
55
- &.${StatusClassNames.DESC} {
56
- transform: rotate(-180deg);
57
- }
58
-
59
- &.${RendererCssClassName.SORTABLE_COLUMN_ICON}-inactive {
60
- opacity: 0.7;
61
- }
62
- `;
63
-
64
- // The icon is created with CSS due to the following Firefox issue: https://product-fabric.atlassian.net/browse/ED-8001
65
- // The TL;DR is that svg's in tables mess up how HTML is copied in Firefox. Using a styled div instead solves the problem.
66
- // For this reason, svg's should be avoided in tables until this issue is fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=1664350
67
- const iconStyles = css({
68
- height: '100%',
69
- width: '2px',
70
- borderRadius: '50px',
71
- background: "var(--ds-icon, #42526E)",
72
- '&::before, &::after': {
73
- background: "var(--ds-icon, #42526E)",
74
- content: "''",
75
- height: '2px',
76
- width: '6px',
77
- position: 'absolute',
78
- borderRadius: '50px'
79
- },
80
- '&::before': {
81
- transform: 'rotate(45deg) translate(3.4px, 8.5px)'
82
- },
83
- '&::after': {
84
- transform: 'rotate(-45deg) translate(-6.3px, 5.7px)'
85
- }
86
- });
87
- const getIconClassName = (isSortingAllowed, sortOrdered) => {
88
- const activated = sortOrdered !== SortOrder.NO_ORDER;
89
- const activeStatusClass = `${RendererCssClassName.SORTABLE_COLUMN_ICON}-${activated ? 'active' : 'inactive'}`;
90
- if (!isSortingAllowed) {
91
- return `${StatusClassNames.SORTING_NOT_ALLOWED} ${activeStatusClass}`;
92
- }
93
- switch (sortOrdered) {
94
- case SortOrder.ASC:
95
- return `${StatusClassNames.ASC} ${activeStatusClass}`;
96
- case SortOrder.DESC:
97
- return `${StatusClassNames.DESC} ${activeStatusClass}`;
98
- default:
99
- return `${StatusClassNames.NO_ORDER} ${activeStatusClass}`;
100
- }
101
- };
102
- const getTooltipTitle = (intl, isSortingAllowed, sortOrdered) => {
103
- const {
104
- noOrderLabel,
105
- ascOrderLabel,
106
- descOrderLabel,
107
- invalidLabel
108
- } = sortingIconMessages;
109
- if (!isSortingAllowed) {
110
- return intl.formatMessage(invalidLabel);
111
- }
112
- switch (sortOrdered) {
113
- case SortOrder.NO_ORDER:
114
- return intl.formatMessage(noOrderLabel);
115
- case SortOrder.ASC:
116
- return intl.formatMessage(ascOrderLabel);
117
- case SortOrder.DESC:
118
- return intl.formatMessage(descOrderLabel);
119
- }
120
- return '';
121
- };
122
- const getAriaLabel = (intl, isSortingAllowed, sortOrdered) => {
123
- const {
124
- noOrderLabel,
125
- ascOrderLabel,
126
- descOrderLabel,
127
- invalidLabel,
128
- defaultLabel
129
- } = sortingAriaLabelMessages;
130
- if (!isSortingAllowed) {
131
- return intl.formatMessage(invalidLabel);
132
- }
133
- switch (sortOrdered) {
134
- case SortOrder.NO_ORDER:
135
- return intl.formatMessage(noOrderLabel);
136
- case SortOrder.ASC:
137
- return intl.formatMessage(ascOrderLabel);
138
- case SortOrder.DESC:
139
- return intl.formatMessage(descOrderLabel);
140
- }
141
- return intl.formatMessage(defaultLabel);
142
- };
143
- const SortingIcon = ({
144
- isSortingAllowed,
145
- sortOrdered,
146
- intl,
147
- onClick,
148
- onKeyDown
149
- }) => {
150
- const buttonClassName = `${RendererCssClassName.SORTABLE_COLUMN_ICON}${isSortingAllowed ? '' : ` ${RendererCssClassName.SORTABLE_COLUMN_ICON}__not-allowed`}`;
151
- const content = getTooltipTitle(intl, isSortingAllowed, sortOrdered);
152
- const ariaLabel = getAriaLabel(intl, isSortingAllowed, sortOrdered);
153
- const handleClick = () => {
154
- if (isSortingAllowed) {
155
- onClick();
156
- }
157
- };
158
- const handleKeyDown = event => {
159
- if (isSortingAllowed) {
160
- onKeyDown(event);
161
- }
162
- };
163
- return jsx(Tooltip, {
164
- delay: 0,
165
- content: content,
166
- position: "top"
167
- }, jsx("div", {
168
- css: buttonStyles,
169
- className: buttonClassName,
170
- role: "button",
171
- tabIndex: isSortingAllowed ? 0 : -1,
172
- "aria-label": ariaLabel,
173
- "aria-disabled": !isSortingAllowed,
174
- onClick: handleClick,
175
- onKeyDown: handleKeyDown
176
- }, jsx("div", {
177
- css: iconWrapperStyles,
178
- className: getIconClassName(isSortingAllowed, sortOrdered)
179
- }, jsx("div", {
180
- css: iconStyles
181
- }))));
182
- };
183
- export default injectIntl(SortingIcon);
@@ -1,139 +0,0 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2;
3
- /** @jsx jsx */
4
- import { css, jsx } from '@emotion/react';
5
- import Tooltip from '@atlaskit/tooltip';
6
- import { N20, N30 } from '@atlaskit/theme/colors';
7
- import { SortOrder } from '@atlaskit/editor-common/types';
8
- import { sortingIconMessages, sortingAriaLabelMessages } from '../messages';
9
- import { injectIntl } from 'react-intl-next';
10
- import { RendererCssClassName } from '../consts';
11
- export var StatusClassNames = /*#__PURE__*/function (StatusClassNames) {
12
- StatusClassNames["ASC"] = "sorting-icon-svg__asc";
13
- StatusClassNames["DESC"] = "sorting-icon-svg__desc";
14
- StatusClassNames["NO_ORDER"] = "sorting-icon-svg__no_order";
15
- StatusClassNames["SORTING_NOT_ALLOWED"] = "sorting-icon-svg__not-allowed";
16
- return StatusClassNames;
17
- }({});
18
-
19
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
20
- var buttonStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n display: flex;\n height: 28px;\n width: 28px;\n margin: ", ";\n right: 0;\n top: 0;\n border: 2px solid ", ";\n border-radius: ", ";\n background-color: ", ";\n justify-content: center;\n align-items: center;\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n\n &.", "__not-allowed {\n cursor: not-allowed;\n }\n"])), "var(--ds-space-075, 6px)", "var(--ds-border, #fff)", "var(--ds-border-radius-100, 4px)", "var(--ds-surface-overlay, ".concat(N20, ")"), "var(--ds-surface-overlay-hovered, ".concat(N30, ")"), "var(--ds-surface-overlay-pressed, rgba(179, 212, 255, 0.6))", RendererCssClassName.SORTABLE_COLUMN_ICON);
21
-
22
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
23
- var iconWrapperStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 8px;\n height: 12px;\n transition: transform 0.3s cubic-bezier(0.15, 1, 0.3, 1);\n transform-origin: 50% 50%;\n display: flex;\n justify-content: center;\n\n &.", " {\n transform: rotate(-180deg);\n }\n\n &.", "-inactive {\n opacity: 0.7;\n }\n"])), StatusClassNames.DESC, RendererCssClassName.SORTABLE_COLUMN_ICON);
24
-
25
- // The icon is created with CSS due to the following Firefox issue: https://product-fabric.atlassian.net/browse/ED-8001
26
- // The TL;DR is that svg's in tables mess up how HTML is copied in Firefox. Using a styled div instead solves the problem.
27
- // For this reason, svg's should be avoided in tables until this issue is fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=1664350
28
- var iconStyles = css({
29
- height: '100%',
30
- width: '2px',
31
- borderRadius: '50px',
32
- background: "var(--ds-icon, #42526E)",
33
- '&::before, &::after': {
34
- background: "var(--ds-icon, #42526E)",
35
- content: "''",
36
- height: '2px',
37
- width: '6px',
38
- position: 'absolute',
39
- borderRadius: '50px'
40
- },
41
- '&::before': {
42
- transform: 'rotate(45deg) translate(3.4px, 8.5px)'
43
- },
44
- '&::after': {
45
- transform: 'rotate(-45deg) translate(-6.3px, 5.7px)'
46
- }
47
- });
48
- var getIconClassName = function getIconClassName(isSortingAllowed, sortOrdered) {
49
- var activated = sortOrdered !== SortOrder.NO_ORDER;
50
- var activeStatusClass = "".concat(RendererCssClassName.SORTABLE_COLUMN_ICON, "-").concat(activated ? 'active' : 'inactive');
51
- if (!isSortingAllowed) {
52
- return "".concat(StatusClassNames.SORTING_NOT_ALLOWED, " ").concat(activeStatusClass);
53
- }
54
- switch (sortOrdered) {
55
- case SortOrder.ASC:
56
- return "".concat(StatusClassNames.ASC, " ").concat(activeStatusClass);
57
- case SortOrder.DESC:
58
- return "".concat(StatusClassNames.DESC, " ").concat(activeStatusClass);
59
- default:
60
- return "".concat(StatusClassNames.NO_ORDER, " ").concat(activeStatusClass);
61
- }
62
- };
63
- var getTooltipTitle = function getTooltipTitle(intl, isSortingAllowed, sortOrdered) {
64
- var noOrderLabel = sortingIconMessages.noOrderLabel,
65
- ascOrderLabel = sortingIconMessages.ascOrderLabel,
66
- descOrderLabel = sortingIconMessages.descOrderLabel,
67
- invalidLabel = sortingIconMessages.invalidLabel;
68
- if (!isSortingAllowed) {
69
- return intl.formatMessage(invalidLabel);
70
- }
71
- switch (sortOrdered) {
72
- case SortOrder.NO_ORDER:
73
- return intl.formatMessage(noOrderLabel);
74
- case SortOrder.ASC:
75
- return intl.formatMessage(ascOrderLabel);
76
- case SortOrder.DESC:
77
- return intl.formatMessage(descOrderLabel);
78
- }
79
- return '';
80
- };
81
- var getAriaLabel = function getAriaLabel(intl, isSortingAllowed, sortOrdered) {
82
- var noOrderLabel = sortingAriaLabelMessages.noOrderLabel,
83
- ascOrderLabel = sortingAriaLabelMessages.ascOrderLabel,
84
- descOrderLabel = sortingAriaLabelMessages.descOrderLabel,
85
- invalidLabel = sortingAriaLabelMessages.invalidLabel,
86
- defaultLabel = sortingAriaLabelMessages.defaultLabel;
87
- if (!isSortingAllowed) {
88
- return intl.formatMessage(invalidLabel);
89
- }
90
- switch (sortOrdered) {
91
- case SortOrder.NO_ORDER:
92
- return intl.formatMessage(noOrderLabel);
93
- case SortOrder.ASC:
94
- return intl.formatMessage(ascOrderLabel);
95
- case SortOrder.DESC:
96
- return intl.formatMessage(descOrderLabel);
97
- }
98
- return intl.formatMessage(defaultLabel);
99
- };
100
- var SortingIcon = function SortingIcon(_ref) {
101
- var isSortingAllowed = _ref.isSortingAllowed,
102
- sortOrdered = _ref.sortOrdered,
103
- intl = _ref.intl,
104
- onClick = _ref.onClick,
105
- onKeyDown = _ref.onKeyDown;
106
- var buttonClassName = "".concat(RendererCssClassName.SORTABLE_COLUMN_ICON).concat(isSortingAllowed ? '' : " ".concat(RendererCssClassName.SORTABLE_COLUMN_ICON, "__not-allowed"));
107
- var content = getTooltipTitle(intl, isSortingAllowed, sortOrdered);
108
- var ariaLabel = getAriaLabel(intl, isSortingAllowed, sortOrdered);
109
- var handleClick = function handleClick() {
110
- if (isSortingAllowed) {
111
- onClick();
112
- }
113
- };
114
- var handleKeyDown = function handleKeyDown(event) {
115
- if (isSortingAllowed) {
116
- onKeyDown(event);
117
- }
118
- };
119
- return jsx(Tooltip, {
120
- delay: 0,
121
- content: content,
122
- position: "top"
123
- }, jsx("div", {
124
- css: buttonStyles,
125
- className: buttonClassName,
126
- role: "button",
127
- tabIndex: isSortingAllowed ? 0 : -1,
128
- "aria-label": ariaLabel,
129
- "aria-disabled": !isSortingAllowed,
130
- onClick: handleClick,
131
- onKeyDown: handleKeyDown
132
- }, jsx("div", {
133
- css: iconWrapperStyles,
134
- className: getIconClassName(isSortingAllowed, sortOrdered)
135
- }, jsx("div", {
136
- css: iconStyles
137
- }))));
138
- };
139
- export default injectIntl(SortingIcon);
@@ -1,23 +0,0 @@
1
- /// <reference types="react" />
2
- import { SortOrder } from '@atlaskit/editor-common/types';
3
- import type { WrappedComponentProps } from 'react-intl-next';
4
- export declare enum StatusClassNames {
5
- ASC = "sorting-icon-svg__asc",
6
- DESC = "sorting-icon-svg__desc",
7
- NO_ORDER = "sorting-icon-svg__no_order",
8
- SORTING_NOT_ALLOWED = "sorting-icon-svg__not-allowed"
9
- }
10
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<{
11
- isSortingAllowed: boolean;
12
- sortOrdered?: SortOrder | undefined;
13
- onClick: () => void;
14
- onKeyDown: (event: import("react").KeyboardEvent<HTMLElement>) => void;
15
- } & WrappedComponentProps>> & {
16
- WrappedComponent: import("react").ComponentType<{
17
- isSortingAllowed: boolean;
18
- sortOrdered?: SortOrder | undefined;
19
- onClick: () => void;
20
- onKeyDown: (event: import("react").KeyboardEvent<HTMLElement>) => void;
21
- } & WrappedComponentProps>;
22
- };
23
- export default _default;
@@ -1,23 +0,0 @@
1
- /// <reference types="react" />
2
- import { SortOrder } from '@atlaskit/editor-common/types';
3
- import type { WrappedComponentProps } from 'react-intl-next';
4
- export declare enum StatusClassNames {
5
- ASC = "sorting-icon-svg__asc",
6
- DESC = "sorting-icon-svg__desc",
7
- NO_ORDER = "sorting-icon-svg__no_order",
8
- SORTING_NOT_ALLOWED = "sorting-icon-svg__not-allowed"
9
- }
10
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<{
11
- isSortingAllowed: boolean;
12
- sortOrdered?: SortOrder | undefined;
13
- onClick: () => void;
14
- onKeyDown: (event: import("react").KeyboardEvent<HTMLElement>) => void;
15
- } & WrappedComponentProps>> & {
16
- WrappedComponent: import("react").ComponentType<{
17
- isSortingAllowed: boolean;
18
- sortOrdered?: SortOrder | undefined;
19
- onClick: () => void;
20
- onKeyDown: (event: import("react").KeyboardEvent<HTMLElement>) => void;
21
- } & WrappedComponentProps>;
22
- };
23
- export default _default;