@atlaskit/editor-shared-styles 2.13.5 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-shared-styles
2
2
 
3
+ ## 3.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [#145684](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/145684)
14
+ [`8faa0ce1c97d3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8faa0ce1c97d3) -
15
+ [ux] Removed unused consts and updated colours to use tokens instead of the theme package
16
+
3
17
  ## 2.13.5
4
18
 
5
19
  ### Patch Changes
@@ -21,9 +21,6 @@
21
21
  {
22
22
  "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
23
23
  },
24
- {
25
- "path": "../../../design-system/theme/afm-cc/tsconfig.json"
26
- },
27
24
  {
28
25
  "path": "../../../design-system/tokens/afm-cc/tsconfig.json"
29
26
  }
@@ -20,9 +20,6 @@
20
20
  {
21
21
  "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
22
22
  },
23
- {
24
- "path": "../../../design-system/theme/afm-jira/tsconfig.json"
25
- },
26
23
  {
27
24
  "path": "../../../design-system/tokens/afm-jira/tsconfig.json"
28
25
  }
@@ -20,9 +20,6 @@
20
20
  {
21
21
  "path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
22
22
  },
23
- {
24
- "path": "../../../design-system/theme/afm-post-office/tsconfig.json"
25
- },
26
23
  {
27
24
  "path": "../../../design-system/tokens/afm-post-office/tsconfig.json"
28
25
  }
@@ -4,42 +4,29 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.editorFontSize = exports.breakoutWideScaleRatio = exports.blockNodesVerticalMargin = exports.avatarColors = exports.akRichMediaResizeZIndex = exports.akLayoutGutterOffset = exports.akEditorWideLayoutWidth = exports.akEditorUnitZIndex = exports.akEditorToolbarKeylineHeight = exports.akEditorTableToolbarSize = exports.akEditorTableToolbarSelected = exports.akEditorTableToolbarDelete = exports.akEditorTableToolbarDark = exports.akEditorTableToolbar = exports.akEditorTableNumberColumnWidth = exports.akEditorTableLegacyCellMinWidth = exports.akEditorTableHeaderCellBackgroundDark = exports.akEditorTableHeaderCellBackground = exports.akEditorTableFloatingControls = exports.akEditorTableCellSelected = exports.akEditorTableCellOnStickyHeaderZIndex = exports.akEditorTableCellMinWidth = exports.akEditorTableCellDelete = exports.akEditorTableCellBlanketSelected = exports.akEditorTableCellBlanketDeleted = exports.akEditorTableCellBackgroundOpacity = exports.akEditorTableBorderSelected = exports.akEditorTableBorderRadius = exports.akEditorTableBorderDelete = exports.akEditorTableBorderDark = exports.akEditorTableBorder = exports.akEditorSwoopCubicBezier = exports.akEditorSubtleAccent = exports.akEditorStickyHeaderZIndex = exports.akEditorSmallZIndex = exports.akEditorShadowZIndex = exports.akEditorSelectedNodeClassName = exports.akEditorSelectedIconColor = exports.akEditorSelectedBoxShadow = exports.akEditorSelectedBorderSize = exports.akEditorSelectedBorderColor = exports.akEditorSelectedBorderBoldSize = exports.akEditorSelectedBorder = exports.akEditorSelectedBlanketOpacity = exports.akEditorSelectedBlanketColor = exports.akEditorSelectedBgColor = exports.akEditorRuleBorderRadius = exports.akEditorRuleBackground = exports.akEditorPrimaryButton = exports.akEditorPopupText = exports.akEditorPopupBackground = exports.akEditorMobileMaxWidth = exports.akEditorMobileBreakoutPoint = exports.akEditorMenuZIndex = exports.akEditorMentionSelected = exports.akEditorMediaResizeHandlerPaddingWide = exports.akEditorMediaResizeHandlerPadding = exports.akEditorLineHeight = exports.akEditorInactiveForeground = exports.akEditorGutterPaddingDynamic = exports.akEditorGutterPadding = exports.akEditorGridLineZIndex = exports.akEditorFullWidthLayoutWidth = exports.akEditorFullWidthLayoutLineLength = exports.akEditorFullPageMaxWidth = exports.akEditorFullPageDefaultFontSize = exports.akEditorFocus = exports.akEditorFloatingPanelZIndex = exports.akEditorFloatingOverlapPanelZIndex = exports.akEditorFloatingDialogZIndex = exports.akEditorDropdownActiveBackground = exports.akEditorDeleteIconColor = exports.akEditorDeleteBorder = exports.akEditorDeleteBackgroundWithOpacity = exports.akEditorDeleteBackgroundShaded = exports.akEditorDeleteBackground = exports.akEditorDefaultLayoutWidth = exports.akEditorCustomIconSize = exports.akEditorContextPanelWidth = exports.akEditorCodeInlinePadding = exports.akEditorCodeFontFamily = exports.akEditorCodeBlockPadding = exports.akEditorCodeBackground = exports.akEditorCalculatedWideLayoutWidthSmallViewport = exports.akEditorCalculatedWideLayoutWidth = exports.akEditorBreakoutPadding = exports.akEditorBlockquoteBorderColor = exports.akEditorActiveForeground = exports.akEditorActiveBackground = exports.VIEWPORT_SIZES = exports.MAX_BROWSER_SCROLLBAR_HEIGHT = exports.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT = exports.DEFAULT_EMBED_CARD_WIDTH = exports.DEFAULT_EMBED_CARD_HEIGHT = exports.ATLASSIAN_NAVIGATION_HEIGHT = void 0;
7
+ exports.editorFontSize = exports.breakoutWideScaleRatio = exports.blockNodesVerticalMargin = exports.avatarColors = exports.akRichMediaResizeZIndex = exports.akLayoutGutterOffset = exports.akEditorWideLayoutWidth = exports.akEditorUnitZIndex = exports.akEditorToolbarKeylineHeight = exports.akEditorTableToolbarSize = exports.akEditorTableToolbar = exports.akEditorTableNumberColumnWidth = exports.akEditorTableLegacyCellMinWidth = exports.akEditorTableHeaderCellBackgroundDark = exports.akEditorTableHeaderCellBackground = exports.akEditorTableCellOnStickyHeaderZIndex = exports.akEditorTableCellMinWidth = exports.akEditorTableCellBlanketSelected = exports.akEditorTableCellBlanketDeleted = exports.akEditorTableCellBackgroundOpacity = exports.akEditorTableBorderSelected = exports.akEditorTableBorderRadius = exports.akEditorTableBorder = exports.akEditorSwoopCubicBezier = exports.akEditorSubtleAccent = exports.akEditorStickyHeaderZIndex = exports.akEditorSmallZIndex = exports.akEditorShadowZIndex = exports.akEditorSelectedNodeClassName = exports.akEditorSelectedBoxShadow = exports.akEditorSelectedBorderSize = exports.akEditorSelectedBorderColor = exports.akEditorSelectedBorderBoldSize = exports.akEditorSelectedBorder = exports.akEditorSelectedBlanketOpacity = exports.akEditorRuleBorderRadius = exports.akEditorMobileMaxWidth = exports.akEditorMobileBreakoutPoint = exports.akEditorMenuZIndex = exports.akEditorMediaResizeHandlerPaddingWide = exports.akEditorMediaResizeHandlerPadding = exports.akEditorLineHeight = exports.akEditorGutterPaddingDynamic = exports.akEditorGutterPadding = exports.akEditorGridLineZIndex = exports.akEditorFullWidthLayoutWidth = exports.akEditorFullWidthLayoutLineLength = exports.akEditorFullPageMaxWidth = exports.akEditorFullPageDefaultFontSize = exports.akEditorFloatingPanelZIndex = exports.akEditorFloatingOverlapPanelZIndex = exports.akEditorFloatingDialogZIndex = exports.akEditorDeleteIconColor = exports.akEditorDeleteBorder = exports.akEditorDeleteBackgroundWithOpacity = exports.akEditorDeleteBackground = exports.akEditorDefaultLayoutWidth = exports.akEditorCustomIconSize = exports.akEditorContextPanelWidth = exports.akEditorCodeInlinePadding = exports.akEditorCodeFontFamily = exports.akEditorCodeBlockPadding = exports.akEditorCodeBackground = exports.akEditorCalculatedWideLayoutWidthSmallViewport = exports.akEditorCalculatedWideLayoutWidth = exports.akEditorBreakoutPadding = exports.akEditorBlockquoteBorderColor = exports.VIEWPORT_SIZES = exports.MAX_BROWSER_SCROLLBAR_HEIGHT = exports.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT = exports.DEFAULT_EMBED_CARD_WIDTH = exports.DEFAULT_EMBED_CARD_HEIGHT = exports.ATLASSIAN_NAVIGATION_HEIGHT = void 0;
8
8
  exports.getTableCellBackgroundDarkModeColorCSS = getTableCellBackgroundDarkModeColorCSS;
9
9
  exports.relativeSize = exports.relativeFontSizeToBase16 = exports.gridMediumMaxWidth = exports.getTableCellBackgroundDarkModeColors = void 0;
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
- var _colors = require("@atlaskit/theme/colors");
13
12
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
14
13
 
15
14
  var akEditorFullPageDefaultFontSize = exports.akEditorFullPageDefaultFontSize = 16;
16
15
  var akEditorCodeFontFamily = exports.akEditorCodeFontFamily = "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)";
17
- var akEditorInactiveForeground = exports.akEditorInactiveForeground = _colors.N500;
18
- var akEditorFocus = exports.akEditorFocus = _colors.B100;
19
- var akEditorSubtleAccent = exports.akEditorSubtleAccent = _colors.N40;
20
- var akEditorActiveBackground = exports.akEditorActiveBackground = _colors.N500;
21
- var akEditorActiveForeground = exports.akEditorActiveForeground = _colors.N0;
22
- var akEditorBlockquoteBorderColor = exports.akEditorBlockquoteBorderColor = _colors.N40;
23
- var akEditorDropdownActiveBackground = exports.akEditorDropdownActiveBackground = _colors.N900;
24
- var akEditorPopupBackground = exports.akEditorPopupBackground = _colors.N700;
25
- var akEditorPopupText = exports.akEditorPopupText = _colors.B50;
26
- var akEditorPrimaryButton = exports.akEditorPrimaryButton = _colors.B400;
27
- var akEditorCodeBackground = exports.akEditorCodeBackground = _colors.N20;
16
+ var akEditorSubtleAccent = exports.akEditorSubtleAccent = "var(--ds-background-accent-gray-subtler, #DCDFE4)";
17
+ var akEditorBlockquoteBorderColor = exports.akEditorBlockquoteBorderColor = "var(--ds-border, #091E4224)";
18
+ var akEditorCodeBackground = exports.akEditorCodeBackground = "var(--ds-background-accent-gray-subtlest, #F1F2F4)";
28
19
  var akEditorCodeBlockPadding = exports.akEditorCodeBlockPadding = '12px';
29
20
  var akEditorCodeInlinePadding = exports.akEditorCodeInlinePadding = '2px 4px';
30
- var akEditorDeleteBackground = exports.akEditorDeleteBackground = _colors.R50;
31
- var akEditorDeleteBackgroundShaded = exports.akEditorDeleteBackgroundShaded = _colors.R50;
21
+ var akEditorDeleteBackground = exports.akEditorDeleteBackground = "var(--ds-background-danger, #FFECEB)";
32
22
  var akEditorDeleteBackgroundWithOpacity = exports.akEditorDeleteBackgroundWithOpacity = 'rgba(255, 189, 173, 0.5)'; // R75 with 50% opacity
33
- var akEditorDeleteBorder = exports.akEditorDeleteBorder = _colors.R300;
34
- var akEditorDeleteIconColor = exports.akEditorDeleteIconColor = _colors.R400;
23
+ var akEditorDeleteBorder = exports.akEditorDeleteBorder = "var(--ds-border-danger, #E2483D)";
24
+ var akEditorDeleteIconColor = exports.akEditorDeleteIconColor = "var(--ds-icon-danger, #C9372C)";
35
25
  var akEditorCustomIconSize = exports.akEditorCustomIconSize = 20;
36
- var akEditorSelectedBorderColor = exports.akEditorSelectedBorderColor = _colors.B300;
37
- var akEditorSelectedBgColor = exports.akEditorSelectedBgColor = _colors.B50;
38
- var akEditorSelectedBlanketColor = exports.akEditorSelectedBlanketColor = _colors.B75;
26
+ var akEditorSelectedBorderColor = exports.akEditorSelectedBorderColor = "var(--ds-border-selected, #0C66E4)";
39
27
  var akEditorSelectedBorderSize = exports.akEditorSelectedBorderSize = 1;
40
28
  var akEditorSelectedBorder = exports.akEditorSelectedBorder = "".concat(akEditorSelectedBorderSize, "px solid ", "var(--ds-border-selected, #0C66E4)");
41
29
  var akEditorSelectedBoxShadow = exports.akEditorSelectedBoxShadow = "0 0 0 ".concat(akEditorSelectedBorderSize, "px ", "var(--ds-border-selected, #0C66E4)");
42
- var akEditorSelectedIconColor = exports.akEditorSelectedIconColor = _colors.B400;
43
30
  var akEditorSelectedBorderBoldSize = exports.akEditorSelectedBorderBoldSize = 2;
44
31
  var akEditorSelectedBlanketOpacity = exports.akEditorSelectedBlanketOpacity = 0.3;
45
32
  var akEditorUnitZIndex = exports.akEditorUnitZIndex = 1;
@@ -58,21 +45,12 @@ var akEditorFloatingDialogZIndex = exports.akEditorFloatingDialogZIndex = akEdit
58
45
  var akEditorTableCellOnStickyHeaderZIndex = exports.akEditorTableCellOnStickyHeaderZIndex = akEditorFloatingDialogZIndex - 5;
59
46
  // z-index used for floating toolbars table cell menu which are above block toolbars
60
47
  var akEditorFloatingOverlapPanelZIndex = exports.akEditorFloatingOverlapPanelZIndex = akEditorFloatingPanelZIndex + 5;
61
- var akEditorMentionSelected = exports.akEditorMentionSelected = _colors.N100;
62
48
  var akEditorTableToolbarSize = exports.akEditorTableToolbarSize = 11;
63
- var akEditorTableBorder = exports.akEditorTableBorder = _colors.N50;
64
- var akEditorTableBorderDark = exports.akEditorTableBorderDark = _colors.DN70;
65
- var akEditorTableToolbar = exports.akEditorTableToolbar = _colors.N20;
66
- var akEditorTableToolbarDark = exports.akEditorTableToolbarDark = _colors.DN50;
67
- var akEditorTableFloatingControls = exports.akEditorTableFloatingControls = _colors.N20;
68
- var akEditorTableCellSelected = exports.akEditorTableCellSelected = _colors.B75;
49
+ var akEditorTableBorder = exports.akEditorTableBorder = "var(--ds-background-accent-gray-subtler, #DCDFE4)";
50
+ var akEditorTableToolbar = exports.akEditorTableToolbar = "var(--ds-background-accent-gray-subtlest, #F1F2F4)";
69
51
  var akEditorTableHeaderCellBackground = exports.akEditorTableHeaderCellBackground = '#F1F2F4';
70
52
  var akEditorTableHeaderCellBackgroundDark = exports.akEditorTableHeaderCellBackgroundDark = '#2C333A';
71
- var akEditorTableToolbarSelected = exports.akEditorTableToolbarSelected = _colors.B100;
72
- var akEditorTableBorderSelected = exports.akEditorTableBorderSelected = _colors.B300;
73
- var akEditorTableCellDelete = exports.akEditorTableCellDelete = _colors.R50;
74
- var akEditorTableBorderDelete = exports.akEditorTableBorderDelete = _colors.R300;
75
- var akEditorTableToolbarDelete = exports.akEditorTableToolbarDelete = _colors.R75;
53
+ var akEditorTableBorderSelected = exports.akEditorTableBorderSelected = "var(--ds-border-focused, #388BFF)";
76
54
  var akEditorTableBorderRadius = exports.akEditorTableBorderRadius = '3px';
77
55
  var akEditorTableCellBackgroundOpacity = exports.akEditorTableCellBackgroundOpacity = 0.5;
78
56
  var akEditorFullPageMaxWidth = exports.akEditorFullPageMaxWidth = 680;
@@ -99,7 +77,6 @@ var akEditorCalculatedWideLayoutWidth = exports.akEditorCalculatedWideLayoutWidt
99
77
  var akRichMediaResizeZIndex = exports.akRichMediaResizeZIndex = akEditorUnitZIndex * 99;
100
78
  var akLayoutGutterOffset = exports.akLayoutGutterOffset = 12;
101
79
  var akEditorLineHeight = exports.akEditorLineHeight = 1.714;
102
- var akEditorRuleBackground = exports.akEditorRuleBackground = _colors.N30;
103
80
  var akEditorRuleBorderRadius = exports.akEditorRuleBorderRadius = '1px';
104
81
  var akEditorToolbarKeylineHeight = exports.akEditorToolbarKeylineHeight = 2;
105
82
  var akEditorContextPanelWidth = exports.akEditorContextPanelWidth = 320;
@@ -39,18 +39,6 @@ Object.defineProperty(exports, "VIEWPORT_SIZES", {
39
39
  return _consts.VIEWPORT_SIZES;
40
40
  }
41
41
  });
42
- Object.defineProperty(exports, "akEditorActiveBackground", {
43
- enumerable: true,
44
- get: function get() {
45
- return _consts.akEditorActiveBackground;
46
- }
47
- });
48
- Object.defineProperty(exports, "akEditorActiveForeground", {
49
- enumerable: true,
50
- get: function get() {
51
- return _consts.akEditorActiveForeground;
52
- }
53
- });
54
42
  Object.defineProperty(exports, "akEditorBlockquoteBorderColor", {
55
43
  enumerable: true,
56
44
  get: function get() {
@@ -123,12 +111,6 @@ Object.defineProperty(exports, "akEditorDeleteBackground", {
123
111
  return _consts.akEditorDeleteBackground;
124
112
  }
125
113
  });
126
- Object.defineProperty(exports, "akEditorDeleteBackgroundShaded", {
127
- enumerable: true,
128
- get: function get() {
129
- return _consts.akEditorDeleteBackgroundShaded;
130
- }
131
- });
132
114
  Object.defineProperty(exports, "akEditorDeleteBackgroundWithOpacity", {
133
115
  enumerable: true,
134
116
  get: function get() {
@@ -147,12 +129,6 @@ Object.defineProperty(exports, "akEditorDeleteIconColor", {
147
129
  return _consts.akEditorDeleteIconColor;
148
130
  }
149
131
  });
150
- Object.defineProperty(exports, "akEditorDropdownActiveBackground", {
151
- enumerable: true,
152
- get: function get() {
153
- return _consts.akEditorDropdownActiveBackground;
154
- }
155
- });
156
132
  Object.defineProperty(exports, "akEditorFloatingDialogZIndex", {
157
133
  enumerable: true,
158
134
  get: function get() {
@@ -171,12 +147,6 @@ Object.defineProperty(exports, "akEditorFloatingPanelZIndex", {
171
147
  return _consts.akEditorFloatingPanelZIndex;
172
148
  }
173
149
  });
174
- Object.defineProperty(exports, "akEditorFocus", {
175
- enumerable: true,
176
- get: function get() {
177
- return _consts.akEditorFocus;
178
- }
179
- });
180
150
  Object.defineProperty(exports, "akEditorFullPageDefaultFontSize", {
181
151
  enumerable: true,
182
152
  get: function get() {
@@ -219,12 +189,6 @@ Object.defineProperty(exports, "akEditorGutterPaddingDynamic", {
219
189
  return _consts.akEditorGutterPaddingDynamic;
220
190
  }
221
191
  });
222
- Object.defineProperty(exports, "akEditorInactiveForeground", {
223
- enumerable: true,
224
- get: function get() {
225
- return _consts.akEditorInactiveForeground;
226
- }
227
- });
228
192
  Object.defineProperty(exports, "akEditorLineHeight", {
229
193
  enumerable: true,
230
194
  get: function get() {
@@ -243,12 +207,6 @@ Object.defineProperty(exports, "akEditorMediaResizeHandlerPaddingWide", {
243
207
  return _consts.akEditorMediaResizeHandlerPaddingWide;
244
208
  }
245
209
  });
246
- Object.defineProperty(exports, "akEditorMentionSelected", {
247
- enumerable: true,
248
- get: function get() {
249
- return _consts.akEditorMentionSelected;
250
- }
251
- });
252
210
  Object.defineProperty(exports, "akEditorMenuZIndex", {
253
211
  enumerable: true,
254
212
  get: function get() {
@@ -267,48 +225,12 @@ Object.defineProperty(exports, "akEditorMobileMaxWidth", {
267
225
  return _consts.akEditorMobileMaxWidth;
268
226
  }
269
227
  });
270
- Object.defineProperty(exports, "akEditorPopupBackground", {
271
- enumerable: true,
272
- get: function get() {
273
- return _consts.akEditorPopupBackground;
274
- }
275
- });
276
- Object.defineProperty(exports, "akEditorPopupText", {
277
- enumerable: true,
278
- get: function get() {
279
- return _consts.akEditorPopupText;
280
- }
281
- });
282
- Object.defineProperty(exports, "akEditorPrimaryButton", {
283
- enumerable: true,
284
- get: function get() {
285
- return _consts.akEditorPrimaryButton;
286
- }
287
- });
288
- Object.defineProperty(exports, "akEditorRuleBackground", {
289
- enumerable: true,
290
- get: function get() {
291
- return _consts.akEditorRuleBackground;
292
- }
293
- });
294
228
  Object.defineProperty(exports, "akEditorRuleBorderRadius", {
295
229
  enumerable: true,
296
230
  get: function get() {
297
231
  return _consts.akEditorRuleBorderRadius;
298
232
  }
299
233
  });
300
- Object.defineProperty(exports, "akEditorSelectedBgColor", {
301
- enumerable: true,
302
- get: function get() {
303
- return _consts.akEditorSelectedBgColor;
304
- }
305
- });
306
- Object.defineProperty(exports, "akEditorSelectedBlanketColor", {
307
- enumerable: true,
308
- get: function get() {
309
- return _consts.akEditorSelectedBlanketColor;
310
- }
311
- });
312
234
  Object.defineProperty(exports, "akEditorSelectedBlanketOpacity", {
313
235
  enumerable: true,
314
236
  get: function get() {
@@ -345,12 +267,6 @@ Object.defineProperty(exports, "akEditorSelectedBoxShadow", {
345
267
  return _consts.akEditorSelectedBoxShadow;
346
268
  }
347
269
  });
348
- Object.defineProperty(exports, "akEditorSelectedIconColor", {
349
- enumerable: true,
350
- get: function get() {
351
- return _consts.akEditorSelectedIconColor;
352
- }
353
- });
354
270
  Object.defineProperty(exports, "akEditorSelectedNodeClassName", {
355
271
  enumerable: true,
356
272
  get: function get() {
@@ -393,18 +309,6 @@ Object.defineProperty(exports, "akEditorTableBorder", {
393
309
  return _consts.akEditorTableBorder;
394
310
  }
395
311
  });
396
- Object.defineProperty(exports, "akEditorTableBorderDark", {
397
- enumerable: true,
398
- get: function get() {
399
- return _consts.akEditorTableBorderDark;
400
- }
401
- });
402
- Object.defineProperty(exports, "akEditorTableBorderDelete", {
403
- enumerable: true,
404
- get: function get() {
405
- return _consts.akEditorTableBorderDelete;
406
- }
407
- });
408
312
  Object.defineProperty(exports, "akEditorTableBorderRadius", {
409
313
  enumerable: true,
410
314
  get: function get() {
@@ -435,12 +339,6 @@ Object.defineProperty(exports, "akEditorTableCellBlanketSelected", {
435
339
  return _consts.akEditorTableCellBlanketSelected;
436
340
  }
437
341
  });
438
- Object.defineProperty(exports, "akEditorTableCellDelete", {
439
- enumerable: true,
440
- get: function get() {
441
- return _consts.akEditorTableCellDelete;
442
- }
443
- });
444
342
  Object.defineProperty(exports, "akEditorTableCellMinWidth", {
445
343
  enumerable: true,
446
344
  get: function get() {
@@ -453,18 +351,6 @@ Object.defineProperty(exports, "akEditorTableCellOnStickyHeaderZIndex", {
453
351
  return _consts.akEditorTableCellOnStickyHeaderZIndex;
454
352
  }
455
353
  });
456
- Object.defineProperty(exports, "akEditorTableCellSelected", {
457
- enumerable: true,
458
- get: function get() {
459
- return _consts.akEditorTableCellSelected;
460
- }
461
- });
462
- Object.defineProperty(exports, "akEditorTableFloatingControls", {
463
- enumerable: true,
464
- get: function get() {
465
- return _consts.akEditorTableFloatingControls;
466
- }
467
- });
468
354
  Object.defineProperty(exports, "akEditorTableHeaderCellBackground", {
469
355
  enumerable: true,
470
356
  get: function get() {
@@ -495,24 +381,6 @@ Object.defineProperty(exports, "akEditorTableToolbar", {
495
381
  return _consts.akEditorTableToolbar;
496
382
  }
497
383
  });
498
- Object.defineProperty(exports, "akEditorTableToolbarDark", {
499
- enumerable: true,
500
- get: function get() {
501
- return _consts.akEditorTableToolbarDark;
502
- }
503
- });
504
- Object.defineProperty(exports, "akEditorTableToolbarDelete", {
505
- enumerable: true,
506
- get: function get() {
507
- return _consts.akEditorTableToolbarDelete;
508
- }
509
- });
510
- Object.defineProperty(exports, "akEditorTableToolbarSelected", {
511
- enumerable: true,
512
- get: function get() {
513
- return _consts.akEditorTableToolbarSelected;
514
- }
515
- });
516
384
  Object.defineProperty(exports, "akEditorTableToolbarSize", {
517
385
  enumerable: true,
518
386
  get: function get() {
package/dist/cjs/index.js CHANGED
@@ -45,18 +45,6 @@ Object.defineProperty(exports, "VIEWPORT_SIZES", {
45
45
  return _consts.VIEWPORT_SIZES;
46
46
  }
47
47
  });
48
- Object.defineProperty(exports, "akEditorActiveBackground", {
49
- enumerable: true,
50
- get: function get() {
51
- return _consts.akEditorActiveBackground;
52
- }
53
- });
54
- Object.defineProperty(exports, "akEditorActiveForeground", {
55
- enumerable: true,
56
- get: function get() {
57
- return _consts.akEditorActiveForeground;
58
- }
59
- });
60
48
  Object.defineProperty(exports, "akEditorBlockquoteBorderColor", {
61
49
  enumerable: true,
62
50
  get: function get() {
@@ -123,12 +111,6 @@ Object.defineProperty(exports, "akEditorDeleteBackground", {
123
111
  return _consts.akEditorDeleteBackground;
124
112
  }
125
113
  });
126
- Object.defineProperty(exports, "akEditorDeleteBackgroundShaded", {
127
- enumerable: true,
128
- get: function get() {
129
- return _consts.akEditorDeleteBackgroundShaded;
130
- }
131
- });
132
114
  Object.defineProperty(exports, "akEditorDeleteBackgroundWithOpacity", {
133
115
  enumerable: true,
134
116
  get: function get() {
@@ -147,12 +129,6 @@ Object.defineProperty(exports, "akEditorDeleteIconColor", {
147
129
  return _consts.akEditorDeleteIconColor;
148
130
  }
149
131
  });
150
- Object.defineProperty(exports, "akEditorDropdownActiveBackground", {
151
- enumerable: true,
152
- get: function get() {
153
- return _consts.akEditorDropdownActiveBackground;
154
- }
155
- });
156
132
  Object.defineProperty(exports, "akEditorFloatingDialogZIndex", {
157
133
  enumerable: true,
158
134
  get: function get() {
@@ -171,12 +147,6 @@ Object.defineProperty(exports, "akEditorFloatingPanelZIndex", {
171
147
  return _consts.akEditorFloatingPanelZIndex;
172
148
  }
173
149
  });
174
- Object.defineProperty(exports, "akEditorFocus", {
175
- enumerable: true,
176
- get: function get() {
177
- return _consts.akEditorFocus;
178
- }
179
- });
180
150
  Object.defineProperty(exports, "akEditorFullPageDefaultFontSize", {
181
151
  enumerable: true,
182
152
  get: function get() {
@@ -219,12 +189,6 @@ Object.defineProperty(exports, "akEditorGutterPaddingDynamic", {
219
189
  return _consts.akEditorGutterPaddingDynamic;
220
190
  }
221
191
  });
222
- Object.defineProperty(exports, "akEditorInactiveForeground", {
223
- enumerable: true,
224
- get: function get() {
225
- return _consts.akEditorInactiveForeground;
226
- }
227
- });
228
192
  Object.defineProperty(exports, "akEditorLineHeight", {
229
193
  enumerable: true,
230
194
  get: function get() {
@@ -243,12 +207,6 @@ Object.defineProperty(exports, "akEditorMediaResizeHandlerPaddingWide", {
243
207
  return _consts.akEditorMediaResizeHandlerPaddingWide;
244
208
  }
245
209
  });
246
- Object.defineProperty(exports, "akEditorMentionSelected", {
247
- enumerable: true,
248
- get: function get() {
249
- return _consts.akEditorMentionSelected;
250
- }
251
- });
252
210
  Object.defineProperty(exports, "akEditorMenuZIndex", {
253
211
  enumerable: true,
254
212
  get: function get() {
@@ -267,48 +225,12 @@ Object.defineProperty(exports, "akEditorMobileMaxWidth", {
267
225
  return _consts.akEditorMobileMaxWidth;
268
226
  }
269
227
  });
270
- Object.defineProperty(exports, "akEditorPopupBackground", {
271
- enumerable: true,
272
- get: function get() {
273
- return _consts.akEditorPopupBackground;
274
- }
275
- });
276
- Object.defineProperty(exports, "akEditorPopupText", {
277
- enumerable: true,
278
- get: function get() {
279
- return _consts.akEditorPopupText;
280
- }
281
- });
282
- Object.defineProperty(exports, "akEditorPrimaryButton", {
283
- enumerable: true,
284
- get: function get() {
285
- return _consts.akEditorPrimaryButton;
286
- }
287
- });
288
- Object.defineProperty(exports, "akEditorRuleBackground", {
289
- enumerable: true,
290
- get: function get() {
291
- return _consts.akEditorRuleBackground;
292
- }
293
- });
294
228
  Object.defineProperty(exports, "akEditorRuleBorderRadius", {
295
229
  enumerable: true,
296
230
  get: function get() {
297
231
  return _consts.akEditorRuleBorderRadius;
298
232
  }
299
233
  });
300
- Object.defineProperty(exports, "akEditorSelectedBgColor", {
301
- enumerable: true,
302
- get: function get() {
303
- return _consts.akEditorSelectedBgColor;
304
- }
305
- });
306
- Object.defineProperty(exports, "akEditorSelectedBlanketColor", {
307
- enumerable: true,
308
- get: function get() {
309
- return _consts.akEditorSelectedBlanketColor;
310
- }
311
- });
312
234
  Object.defineProperty(exports, "akEditorSelectedBlanketOpacity", {
313
235
  enumerable: true,
314
236
  get: function get() {
@@ -345,12 +267,6 @@ Object.defineProperty(exports, "akEditorSelectedBoxShadow", {
345
267
  return _consts.akEditorSelectedBoxShadow;
346
268
  }
347
269
  });
348
- Object.defineProperty(exports, "akEditorSelectedIconColor", {
349
- enumerable: true,
350
- get: function get() {
351
- return _consts.akEditorSelectedIconColor;
352
- }
353
- });
354
270
  Object.defineProperty(exports, "akEditorSelectedNodeClassName", {
355
271
  enumerable: true,
356
272
  get: function get() {
@@ -393,18 +309,6 @@ Object.defineProperty(exports, "akEditorTableBorder", {
393
309
  return _consts.akEditorTableBorder;
394
310
  }
395
311
  });
396
- Object.defineProperty(exports, "akEditorTableBorderDark", {
397
- enumerable: true,
398
- get: function get() {
399
- return _consts.akEditorTableBorderDark;
400
- }
401
- });
402
- Object.defineProperty(exports, "akEditorTableBorderDelete", {
403
- enumerable: true,
404
- get: function get() {
405
- return _consts.akEditorTableBorderDelete;
406
- }
407
- });
408
312
  Object.defineProperty(exports, "akEditorTableBorderRadius", {
409
313
  enumerable: true,
410
314
  get: function get() {
@@ -435,12 +339,6 @@ Object.defineProperty(exports, "akEditorTableCellBlanketSelected", {
435
339
  return _consts.akEditorTableCellBlanketSelected;
436
340
  }
437
341
  });
438
- Object.defineProperty(exports, "akEditorTableCellDelete", {
439
- enumerable: true,
440
- get: function get() {
441
- return _consts.akEditorTableCellDelete;
442
- }
443
- });
444
342
  Object.defineProperty(exports, "akEditorTableCellMinWidth", {
445
343
  enumerable: true,
446
344
  get: function get() {
@@ -453,18 +351,6 @@ Object.defineProperty(exports, "akEditorTableCellOnStickyHeaderZIndex", {
453
351
  return _consts.akEditorTableCellOnStickyHeaderZIndex;
454
352
  }
455
353
  });
456
- Object.defineProperty(exports, "akEditorTableCellSelected", {
457
- enumerable: true,
458
- get: function get() {
459
- return _consts.akEditorTableCellSelected;
460
- }
461
- });
462
- Object.defineProperty(exports, "akEditorTableFloatingControls", {
463
- enumerable: true,
464
- get: function get() {
465
- return _consts.akEditorTableFloatingControls;
466
- }
467
- });
468
354
  Object.defineProperty(exports, "akEditorTableHeaderCellBackground", {
469
355
  enumerable: true,
470
356
  get: function get() {
@@ -495,24 +381,6 @@ Object.defineProperty(exports, "akEditorTableToolbar", {
495
381
  return _consts.akEditorTableToolbar;
496
382
  }
497
383
  });
498
- Object.defineProperty(exports, "akEditorTableToolbarDark", {
499
- enumerable: true,
500
- get: function get() {
501
- return _consts.akEditorTableToolbarDark;
502
- }
503
- });
504
- Object.defineProperty(exports, "akEditorTableToolbarDelete", {
505
- enumerable: true,
506
- get: function get() {
507
- return _consts.akEditorTableToolbarDelete;
508
- }
509
- });
510
- Object.defineProperty(exports, "akEditorTableToolbarSelected", {
511
- enumerable: true,
512
- get: function get() {
513
- return _consts.akEditorTableToolbarSelected;
514
- }
515
- });
516
384
  Object.defineProperty(exports, "akEditorTableToolbarSize", {
517
385
  enumerable: true,
518
386
  get: function get() {
@@ -1,34 +1,22 @@
1
1
  import { fg } from '@atlaskit/platform-feature-flags';
2
2
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
- import { B100, B300, B400, B50, B75, DN50, DN70, N0, N100, N20, N30, N40, N50, N500, N700, N900, R300, R400, R50, R75 } from '@atlaskit/theme/colors';
3
+
4
4
  export const akEditorFullPageDefaultFontSize = 16;
5
5
  export const akEditorCodeFontFamily = "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)";
6
- export const akEditorInactiveForeground = N500;
7
- export const akEditorFocus = B100;
8
- export const akEditorSubtleAccent = N40;
9
- export const akEditorActiveBackground = N500;
10
- export const akEditorActiveForeground = N0;
11
- export const akEditorBlockquoteBorderColor = N40;
12
- export const akEditorDropdownActiveBackground = N900;
13
- export const akEditorPopupBackground = N700;
14
- export const akEditorPopupText = B50;
15
- export const akEditorPrimaryButton = B400;
16
- export const akEditorCodeBackground = N20;
6
+ export const akEditorSubtleAccent = "var(--ds-background-accent-gray-subtler, #DCDFE4)";
7
+ export const akEditorBlockquoteBorderColor = "var(--ds-border, #091E4224)";
8
+ export const akEditorCodeBackground = "var(--ds-background-accent-gray-subtlest, #F1F2F4)";
17
9
  export const akEditorCodeBlockPadding = '12px';
18
10
  export const akEditorCodeInlinePadding = '2px 4px';
19
- export const akEditorDeleteBackground = R50;
20
- export const akEditorDeleteBackgroundShaded = R50;
11
+ export const akEditorDeleteBackground = "var(--ds-background-danger, #FFECEB)";
21
12
  export const akEditorDeleteBackgroundWithOpacity = 'rgba(255, 189, 173, 0.5)'; // R75 with 50% opacity
22
- export const akEditorDeleteBorder = R300;
23
- export const akEditorDeleteIconColor = R400;
13
+ export const akEditorDeleteBorder = "var(--ds-border-danger, #E2483D)";
14
+ export const akEditorDeleteIconColor = "var(--ds-icon-danger, #C9372C)";
24
15
  export const akEditorCustomIconSize = 20;
25
- export const akEditorSelectedBorderColor = B300;
26
- export const akEditorSelectedBgColor = B50;
27
- export const akEditorSelectedBlanketColor = B75;
16
+ export const akEditorSelectedBorderColor = "var(--ds-border-selected, #0C66E4)";
28
17
  export const akEditorSelectedBorderSize = 1;
29
18
  export const akEditorSelectedBorder = `${akEditorSelectedBorderSize}px solid ${"var(--ds-border-selected, #0C66E4)"}`;
30
19
  export const akEditorSelectedBoxShadow = `0 0 0 ${akEditorSelectedBorderSize}px ${"var(--ds-border-selected, #0C66E4)"}`;
31
- export const akEditorSelectedIconColor = B400;
32
20
  export const akEditorSelectedBorderBoldSize = 2;
33
21
  export const akEditorSelectedBlanketOpacity = 0.3;
34
22
  export const akEditorUnitZIndex = 1;
@@ -47,21 +35,12 @@ export const akEditorFloatingDialogZIndex = akEditorMenuZIndex + 10;
47
35
  export const akEditorTableCellOnStickyHeaderZIndex = akEditorFloatingDialogZIndex - 5;
48
36
  // z-index used for floating toolbars table cell menu which are above block toolbars
49
37
  export const akEditorFloatingOverlapPanelZIndex = akEditorFloatingPanelZIndex + 5;
50
- export const akEditorMentionSelected = N100;
51
38
  export const akEditorTableToolbarSize = 11;
52
- export const akEditorTableBorder = N50;
53
- export const akEditorTableBorderDark = DN70;
54
- export const akEditorTableToolbar = N20;
55
- export const akEditorTableToolbarDark = DN50;
56
- export const akEditorTableFloatingControls = N20;
57
- export const akEditorTableCellSelected = B75;
39
+ export const akEditorTableBorder = "var(--ds-background-accent-gray-subtler, #DCDFE4)";
40
+ export const akEditorTableToolbar = "var(--ds-background-accent-gray-subtlest, #F1F2F4)";
58
41
  export const akEditorTableHeaderCellBackground = '#F1F2F4';
59
42
  export const akEditorTableHeaderCellBackgroundDark = '#2C333A';
60
- export const akEditorTableToolbarSelected = B100;
61
- export const akEditorTableBorderSelected = B300;
62
- export const akEditorTableCellDelete = R50;
63
- export const akEditorTableBorderDelete = R300;
64
- export const akEditorTableToolbarDelete = R75;
43
+ export const akEditorTableBorderSelected = "var(--ds-border-focused, #388BFF)";
65
44
  export const akEditorTableBorderRadius = '3px';
66
45
  export const akEditorTableCellBackgroundOpacity = 0.5;
67
46
  export const akEditorFullPageMaxWidth = 680;
@@ -86,7 +65,6 @@ export const akEditorCalculatedWideLayoutWidth = 1011; // = akEditorDefaultLayou
86
65
  export const akRichMediaResizeZIndex = akEditorUnitZIndex * 99;
87
66
  export const akLayoutGutterOffset = 12;
88
67
  export const akEditorLineHeight = 1.714;
89
- export const akEditorRuleBackground = N30;
90
68
  export const akEditorRuleBorderRadius = '1px';
91
69
  export const akEditorToolbarKeylineHeight = 2;
92
70
  export const akEditorContextPanelWidth = 320;
@@ -1 +1 @@
1
- export { akEditorActiveBackground, akEditorActiveForeground, akEditorBlockquoteBorderColor, akEditorBreakoutPadding, akEditorCodeBackground, akEditorCodeBlockPadding, akEditorCodeFontFamily, akEditorCodeInlinePadding, akEditorContextPanelWidth, akEditorDefaultLayoutWidth, akEditorDeleteBackground, akEditorDeleteBackgroundShaded, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorDeleteIconColor, akEditorDropdownActiveBackground, akEditorFloatingDialogZIndex, akEditorFloatingOverlapPanelZIndex, akEditorFloatingPanelZIndex, akEditorFocus, akEditorFullPageMaxWidth, akEditorFullPageDefaultFontSize, akEditorFullWidthLayoutWidth, akEditorFullWidthLayoutLineLength, akEditorGridLineZIndex, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorInactiveForeground, akEditorMediaResizeHandlerPadding, akEditorMediaResizeHandlerPaddingWide, akEditorMentionSelected, akEditorMenuZIndex, akEditorStickyHeaderZIndex, akEditorMobileBreakoutPoint, akEditorPopupBackground, akEditorPopupText, akEditorPrimaryButton, akEditorSelectedBorderColor, akEditorSelectedBorderBoldSize, akEditorSelectedBorderSize, akEditorSelectedBorder, akEditorSelectedBoxShadow, akEditorSelectedIconColor, akEditorCustomIconSize, akEditorSelectedBlanketColor, akEditorSelectedBgColor, akEditorSelectedBlanketOpacity, akEditorSmallZIndex, akEditorShadowZIndex, akEditorSubtleAccent, akEditorSwoopCubicBezier, akEditorTableBorder, akEditorTableBorderDark, akEditorTableBorderDelete, akEditorTableBorderRadius, akEditorTableBorderSelected, akEditorTableCellBackgroundOpacity, akEditorTableCellDelete, akEditorTableCellMinWidth, akEditorTableCellOnStickyHeaderZIndex, akEditorTableCellSelected, akEditorTableFloatingControls, akEditorTableHeaderCellBackground, akEditorTableHeaderCellBackgroundDark, akEditorTableLegacyCellMinWidth, akEditorTableNumberColumnWidth, akEditorTableToolbar, akEditorTableToolbarDark, akEditorTableToolbarDelete, akEditorTableToolbarSelected, akEditorTableToolbarSize, akEditorUnitZIndex, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorWideLayoutWidth, akLayoutGutterOffset, akRichMediaResizeZIndex, avatarColors, blockNodesVerticalMargin, breakoutWideScaleRatio, editorFontSize, gridMediumMaxWidth, relativeSize, relativeFontSizeToBase16, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH, akEditorLineHeight, akEditorRuleBackground, akEditorRuleBorderRadius, akEditorSelectedNodeClassName, akEditorToolbarKeylineHeight, MAX_BROWSER_SCROLLBAR_HEIGHT, VIEWPORT_SIZES, akEditorMobileMaxWidth, getTableCellBackgroundDarkModeColors, ATLASSIAN_NAVIGATION_HEIGHT, FULL_PAGE_EDITOR_TOOLBAR_HEIGHT, akEditorTableCellBlanketSelected, akEditorTableCellBlanketDeleted } from './consts';
1
+ export { akEditorBlockquoteBorderColor, akEditorBreakoutPadding, akEditorCodeBackground, akEditorCodeBlockPadding, akEditorCodeFontFamily, akEditorCodeInlinePadding, akEditorContextPanelWidth, akEditorDefaultLayoutWidth, akEditorDeleteBackground, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorDeleteIconColor, akEditorFloatingDialogZIndex, akEditorFloatingOverlapPanelZIndex, akEditorFloatingPanelZIndex, akEditorFullPageMaxWidth, akEditorFullPageDefaultFontSize, akEditorFullWidthLayoutWidth, akEditorFullWidthLayoutLineLength, akEditorGridLineZIndex, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorMediaResizeHandlerPadding, akEditorMediaResizeHandlerPaddingWide, akEditorMenuZIndex, akEditorStickyHeaderZIndex, akEditorMobileBreakoutPoint, akEditorSelectedBorderColor, akEditorSelectedBorderBoldSize, akEditorSelectedBorderSize, akEditorSelectedBorder, akEditorSelectedBoxShadow, akEditorCustomIconSize, akEditorSelectedBlanketOpacity, akEditorSmallZIndex, akEditorShadowZIndex, akEditorSubtleAccent, akEditorSwoopCubicBezier, akEditorTableBorder, akEditorTableBorderRadius, akEditorTableBorderSelected, akEditorTableCellBackgroundOpacity, akEditorTableCellMinWidth, akEditorTableCellOnStickyHeaderZIndex, akEditorTableHeaderCellBackground, akEditorTableHeaderCellBackgroundDark, akEditorTableLegacyCellMinWidth, akEditorTableNumberColumnWidth, akEditorTableToolbar, akEditorTableToolbarSize, akEditorUnitZIndex, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorWideLayoutWidth, akLayoutGutterOffset, akRichMediaResizeZIndex, avatarColors, blockNodesVerticalMargin, breakoutWideScaleRatio, editorFontSize, gridMediumMaxWidth, relativeSize, relativeFontSizeToBase16, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH, akEditorLineHeight, akEditorRuleBorderRadius, akEditorSelectedNodeClassName, akEditorToolbarKeylineHeight, MAX_BROWSER_SCROLLBAR_HEIGHT, VIEWPORT_SIZES, akEditorMobileMaxWidth, getTableCellBackgroundDarkModeColors, ATLASSIAN_NAVIGATION_HEIGHT, FULL_PAGE_EDITOR_TOOLBAR_HEIGHT, akEditorTableCellBlanketSelected, akEditorTableCellBlanketDeleted } from './consts';