@atlaskit/editor-core 177.0.0 → 177.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.
Files changed (230) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/labs/next/full-page.js +2 -4
  3. package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -3
  4. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -4
  5. package/dist/cjs/plugins/breakout/ui/LayoutButton.js +1 -3
  6. package/dist/cjs/plugins/card/styles.js +1 -3
  7. package/dist/cjs/plugins/code-block/styles.js +2 -4
  8. package/dist/cjs/plugins/collab-edit/styles.js +2 -4
  9. package/dist/cjs/plugins/collab-edit/ui/styles.js +2 -4
  10. package/dist/cjs/plugins/date/styles.js +1 -3
  11. package/dist/cjs/plugins/date/ui/DatePicker/index.js +1 -3
  12. package/dist/cjs/plugins/expand/ui/styles.js +14 -16
  13. package/dist/cjs/plugins/extension/ui/Extension/Extension/styles.js +4 -6
  14. package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -3
  15. package/dist/cjs/plugins/extension/ui/Extension/styles.js +5 -7
  16. package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -4
  17. package/dist/cjs/plugins/extension/ui/styles.js +1 -3
  18. package/dist/cjs/plugins/fake-text-cursor/styles.js +1 -3
  19. package/dist/cjs/plugins/find-replace/ui/styles.js +2 -4
  20. package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +1 -3
  21. package/dist/cjs/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -3
  22. package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +1 -3
  23. package/dist/cjs/plugins/floating-toolbar/ui/Separator.js +1 -3
  24. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +3 -5
  25. package/dist/cjs/plugins/floating-toolbar/ui/styles.js +10 -12
  26. package/dist/cjs/plugins/grid/styles.js +1 -3
  27. package/dist/cjs/plugins/help-dialog/ui/styles.js +9 -11
  28. package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -5
  29. package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +2 -4
  30. package/dist/cjs/plugins/layout/styles.js +1 -3
  31. package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -5
  32. package/dist/cjs/plugins/media/styles.js +1 -3
  33. package/dist/cjs/plugins/media/ui/CaptionPlaceholder/index.js +1 -3
  34. package/dist/cjs/plugins/media/ui/Media/DropPlaceholder.js +2 -4
  35. package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +1 -3
  36. package/dist/cjs/plugins/mentions/styles.js +1 -3
  37. package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +1 -3
  38. package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +2 -4
  39. package/dist/cjs/plugins/panel/styles.js +1 -3
  40. package/dist/cjs/plugins/placeholder/styles.js +1 -3
  41. package/dist/cjs/plugins/placeholder-text/styles.js +1 -3
  42. package/dist/cjs/plugins/rule/styles.js +1 -3
  43. package/dist/cjs/plugins/status/ui/statusPicker.js +1 -3
  44. package/dist/cjs/plugins/tasks-and-decisions/styles.js +1 -3
  45. package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +1 -3
  46. package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +1 -3
  47. package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +7 -9
  48. package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +1 -3
  49. package/dist/cjs/plugins/unsupported-content/styles.js +1 -3
  50. package/dist/cjs/ui/Addon/Dropdown/styles.js +1 -3
  51. package/dist/cjs/ui/Addon/DropdownItem/styles.js +1 -3
  52. package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -3
  53. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -4
  54. package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +2 -4
  55. package/dist/cjs/ui/ChromeCollapsed/styles.js +1 -3
  56. package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -3
  57. package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +1 -3
  58. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +1 -3
  59. package/dist/cjs/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -3
  60. package/dist/cjs/ui/ConfigPanel/Header.js +2 -4
  61. package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +1 -3
  62. package/dist/cjs/ui/ContentStyles/index.js +1 -3
  63. package/dist/cjs/ui/ContextPanel/index.js +1 -3
  64. package/dist/cjs/ui/ElementBrowser/InsertMenu.js +3 -5
  65. package/dist/cjs/ui/ElementBrowser/ModalElementBrowser.js +2 -4
  66. package/dist/cjs/ui/ElementBrowser/components/CategoryList.js +2 -4
  67. package/dist/cjs/ui/ElementBrowser/components/ElementList/ElementList.js +2 -4
  68. package/dist/cjs/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -3
  69. package/dist/cjs/ui/ElementBrowser/components/ElementSearch.js +1 -3
  70. package/dist/cjs/ui/FloatingToolbar/styles.js +1 -3
  71. package/dist/cjs/ui/LinkSearch/LinkSearchListItem.js +3 -5
  72. package/dist/cjs/ui/PanelTextInput/styles.js +1 -3
  73. package/dist/cjs/ui/ToolbarFeedback/styles.js +3 -5
  74. package/dist/cjs/ui/WithFlash/index.js +2 -4
  75. package/dist/cjs/ui/styles.js +2 -4
  76. package/dist/cjs/version-wrapper.js +1 -1
  77. package/dist/cjs/version.json +1 -1
  78. package/dist/es2019/labs/next/full-page.js +2 -3
  79. package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
  80. package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
  81. package/dist/es2019/plugins/breakout/ui/LayoutButton.js +4 -5
  82. package/dist/es2019/plugins/card/styles.js +6 -7
  83. package/dist/es2019/plugins/code-block/styles.js +8 -9
  84. package/dist/es2019/plugins/collab-edit/styles.js +2 -3
  85. package/dist/es2019/plugins/collab-edit/ui/styles.js +3 -4
  86. package/dist/es2019/plugins/date/styles.js +1 -2
  87. package/dist/es2019/plugins/date/ui/DatePicker/index.js +2 -3
  88. package/dist/es2019/plugins/expand/ui/styles.js +14 -15
  89. package/dist/es2019/plugins/extension/ui/Extension/Extension/styles.js +4 -5
  90. package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
  91. package/dist/es2019/plugins/extension/ui/Extension/styles.js +6 -7
  92. package/dist/es2019/plugins/extension/ui/SaveIndicator/SaveIndicator.js +3 -4
  93. package/dist/es2019/plugins/extension/ui/styles.js +2 -3
  94. package/dist/es2019/plugins/fake-text-cursor/styles.js +2 -3
  95. package/dist/es2019/plugins/find-replace/ui/styles.js +2 -3
  96. package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +1 -2
  97. package/dist/es2019/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
  98. package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +1 -2
  99. package/dist/es2019/plugins/floating-toolbar/ui/Separator.js +1 -2
  100. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +3 -4
  101. package/dist/es2019/plugins/floating-toolbar/ui/styles.js +10 -11
  102. package/dist/es2019/plugins/grid/styles.js +2 -3
  103. package/dist/es2019/plugins/help-dialog/ui/styles.js +11 -12
  104. package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -5
  105. package/dist/es2019/plugins/jira-issue/nodeviews/jira-issue.js +5 -6
  106. package/dist/es2019/plugins/layout/styles.js +4 -5
  107. package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +4 -5
  108. package/dist/es2019/plugins/media/styles.js +10 -11
  109. package/dist/es2019/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
  110. package/dist/es2019/plugins/media/ui/Media/DropPlaceholder.js +3 -4
  111. package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +1 -2
  112. package/dist/es2019/plugins/mentions/styles.js +4 -5
  113. package/dist/es2019/plugins/mentions/ui/InviteItem/index.js +1 -2
  114. package/dist/es2019/plugins/mentions/ui/InviteItem/styles.js +2 -3
  115. package/dist/es2019/plugins/panel/styles.js +4 -5
  116. package/dist/es2019/plugins/placeholder/styles.js +1 -2
  117. package/dist/es2019/plugins/placeholder-text/styles.js +4 -5
  118. package/dist/es2019/plugins/rule/styles.js +1 -2
  119. package/dist/es2019/plugins/status/ui/statusPicker.js +2 -3
  120. package/dist/es2019/plugins/tasks-and-decisions/styles.js +2 -3
  121. package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +1 -2
  122. package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +1 -2
  123. package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +8 -9
  124. package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +2 -3
  125. package/dist/es2019/plugins/unsupported-content/styles.js +2 -3
  126. package/dist/es2019/ui/Addon/Dropdown/styles.js +2 -3
  127. package/dist/es2019/ui/Addon/DropdownItem/styles.js +2 -3
  128. package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -3
  129. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -3
  130. package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +2 -3
  131. package/dist/es2019/ui/ChromeCollapsed/styles.js +5 -6
  132. package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
  133. package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +1 -2
  134. package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +1 -2
  135. package/dist/es2019/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
  136. package/dist/es2019/ui/ConfigPanel/Header.js +2 -3
  137. package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +2 -3
  138. package/dist/es2019/ui/ContentStyles/index.js +1 -2
  139. package/dist/es2019/ui/ContextPanel/index.js +1 -2
  140. package/dist/es2019/ui/ElementBrowser/InsertMenu.js +4 -5
  141. package/dist/es2019/ui/ElementBrowser/ModalElementBrowser.js +2 -3
  142. package/dist/es2019/ui/ElementBrowser/components/CategoryList.js +2 -3
  143. package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
  144. package/dist/es2019/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
  145. package/dist/es2019/ui/ElementBrowser/components/ElementSearch.js +1 -2
  146. package/dist/es2019/ui/FloatingToolbar/styles.js +2 -3
  147. package/dist/es2019/ui/LinkSearch/LinkSearchListItem.js +3 -4
  148. package/dist/es2019/ui/PanelTextInput/styles.js +3 -4
  149. package/dist/es2019/ui/ToolbarFeedback/styles.js +4 -5
  150. package/dist/es2019/ui/WithFlash/index.js +3 -4
  151. package/dist/es2019/ui/styles.js +3 -4
  152. package/dist/es2019/version-wrapper.js +1 -1
  153. package/dist/es2019/version.json +1 -1
  154. package/dist/esm/labs/next/full-page.js +2 -3
  155. package/dist/esm/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
  156. package/dist/esm/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
  157. package/dist/esm/plugins/breakout/ui/LayoutButton.js +1 -2
  158. package/dist/esm/plugins/card/styles.js +1 -2
  159. package/dist/esm/plugins/code-block/styles.js +2 -3
  160. package/dist/esm/plugins/collab-edit/styles.js +2 -3
  161. package/dist/esm/plugins/collab-edit/ui/styles.js +2 -3
  162. package/dist/esm/plugins/date/styles.js +1 -2
  163. package/dist/esm/plugins/date/ui/DatePicker/index.js +1 -2
  164. package/dist/esm/plugins/expand/ui/styles.js +14 -15
  165. package/dist/esm/plugins/extension/ui/Extension/Extension/styles.js +4 -5
  166. package/dist/esm/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
  167. package/dist/esm/plugins/extension/ui/Extension/styles.js +5 -6
  168. package/dist/esm/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -3
  169. package/dist/esm/plugins/extension/ui/styles.js +1 -2
  170. package/dist/esm/plugins/fake-text-cursor/styles.js +1 -2
  171. package/dist/esm/plugins/find-replace/ui/styles.js +2 -3
  172. package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +1 -2
  173. package/dist/esm/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
  174. package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +1 -2
  175. package/dist/esm/plugins/floating-toolbar/ui/Separator.js +1 -2
  176. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +3 -4
  177. package/dist/esm/plugins/floating-toolbar/ui/styles.js +10 -11
  178. package/dist/esm/plugins/grid/styles.js +1 -2
  179. package/dist/esm/plugins/help-dialog/ui/styles.js +9 -10
  180. package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -4
  181. package/dist/esm/plugins/jira-issue/nodeviews/jira-issue.js +2 -3
  182. package/dist/esm/plugins/layout/styles.js +1 -2
  183. package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -4
  184. package/dist/esm/plugins/media/styles.js +1 -2
  185. package/dist/esm/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
  186. package/dist/esm/plugins/media/ui/Media/DropPlaceholder.js +2 -3
  187. package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +1 -2
  188. package/dist/esm/plugins/mentions/styles.js +1 -2
  189. package/dist/esm/plugins/mentions/ui/InviteItem/index.js +1 -2
  190. package/dist/esm/plugins/mentions/ui/InviteItem/styles.js +2 -3
  191. package/dist/esm/plugins/panel/styles.js +1 -2
  192. package/dist/esm/plugins/placeholder/styles.js +1 -2
  193. package/dist/esm/plugins/placeholder-text/styles.js +1 -2
  194. package/dist/esm/plugins/rule/styles.js +1 -2
  195. package/dist/esm/plugins/status/ui/statusPicker.js +1 -2
  196. package/dist/esm/plugins/tasks-and-decisions/styles.js +1 -2
  197. package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +1 -2
  198. package/dist/esm/plugins/type-ahead/ui/InputQuery.js +1 -2
  199. package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +7 -8
  200. package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +1 -2
  201. package/dist/esm/plugins/unsupported-content/styles.js +1 -2
  202. package/dist/esm/ui/Addon/Dropdown/styles.js +1 -2
  203. package/dist/esm/ui/Addon/DropdownItem/styles.js +1 -2
  204. package/dist/esm/ui/Appearance/Comment/Comment.js +1 -2
  205. package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -3
  206. package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +2 -3
  207. package/dist/esm/ui/ChromeCollapsed/styles.js +1 -2
  208. package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
  209. package/dist/esm/ui/ConfigPanel/Fields/Expand.js +1 -2
  210. package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +1 -2
  211. package/dist/esm/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
  212. package/dist/esm/ui/ConfigPanel/Header.js +2 -3
  213. package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
  214. package/dist/esm/ui/ContentStyles/index.js +1 -2
  215. package/dist/esm/ui/ContextPanel/index.js +1 -2
  216. package/dist/esm/ui/ElementBrowser/InsertMenu.js +3 -4
  217. package/dist/esm/ui/ElementBrowser/ModalElementBrowser.js +2 -3
  218. package/dist/esm/ui/ElementBrowser/components/CategoryList.js +2 -3
  219. package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
  220. package/dist/esm/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
  221. package/dist/esm/ui/ElementBrowser/components/ElementSearch.js +1 -2
  222. package/dist/esm/ui/FloatingToolbar/styles.js +1 -2
  223. package/dist/esm/ui/LinkSearch/LinkSearchListItem.js +3 -4
  224. package/dist/esm/ui/PanelTextInput/styles.js +2 -3
  225. package/dist/esm/ui/ToolbarFeedback/styles.js +3 -4
  226. package/dist/esm/ui/WithFlash/index.js +2 -3
  227. package/dist/esm/ui/styles.js +2 -3
  228. package/dist/esm/version-wrapper.js +1 -1
  229. package/dist/esm/version.json +1 -1
  230. package/package.json +4 -4
@@ -1,7 +1,6 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { panelSharedStyles, PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
3
3
  import { SelectionStyle, getSelectionStyles, akEditorDeleteBackground, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorDeleteIconColor, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
4
- import { token } from '@atlaskit/tokens';
5
4
  export const panelStyles = props => css`
6
5
  .ProseMirror {
7
6
  .${PanelSharedCssClassName.prefix} {
@@ -11,10 +10,10 @@ export const panelStyles = props => css`
11
10
  &.danger {
12
11
  box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px
13
12
  ${akEditorDeleteBorder};
14
- background-color: ${token('color.background.danger', akEditorDeleteBackground)} !important;
13
+ background-color: ${`var(--ds-background-danger, ${akEditorDeleteBackground})`} !important;
15
14
 
16
15
  .${PanelSharedCssClassName.icon} {
17
- color: ${token('color.icon.danger', akEditorDeleteIconColor)} !important;
16
+ color: ${`var(--ds-icon-danger, ${akEditorDeleteIconColor})`} !important;
18
17
  }
19
18
  }
20
19
  }
@@ -26,10 +25,10 @@ export const panelStyles = props => css`
26
25
  /* Danger when nested node */
27
26
  .danger .${PanelSharedCssClassName.prefix} {
28
27
  &[data-panel-type] {
29
- background-color: ${token('color.blanket.danger', akEditorDeleteBackgroundWithOpacity)};
28
+ background-color: ${`var(--ds-blanket-danger, ${akEditorDeleteBackgroundWithOpacity})`};
30
29
 
31
30
  .${PanelSharedCssClassName.icon} {
32
- color: ${token('color.icon.danger', akEditorDeleteIconColor)};
31
+ color: ${`var(--ds-icon-danger, ${akEditorDeleteIconColor})`};
33
32
  }
34
33
  }
35
34
  }
@@ -1,9 +1,8 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { N200 } from '@atlaskit/theme/colors';
3
- import { token } from '@atlaskit/tokens';
4
3
  export const placeholderStyles = css`
5
4
  .ProseMirror .placeholder-decoration {
6
- color: ${token('color.text.subtlest', N200)};
5
+ color: ${`var(--ds-text-subtlest, ${N200})`};
7
6
  width: 100%;
8
7
  pointer-events: none;
9
8
  user-select: none;
@@ -1,20 +1,19 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { N300 } from '@atlaskit/theme/colors';
3
3
  import { SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
4
- import { token } from '@atlaskit/tokens';
5
4
  export const placeholderTextStyles = css`
6
5
  .ProseMirror span[data-placeholder] {
7
- color: ${token('color.text.subtlest', N300)};
6
+ color: ${`var(--ds-text-subtlest, ${N300})`};
8
7
  display: inline;
9
8
  }
10
9
 
11
10
  .ProseMirror span.pm-placeholder {
12
11
  display: inline;
13
- color: ${token('color.text.subtlest', N300)};
12
+ color: ${`var(--ds-text-subtlest, ${N300})`};
14
13
  }
15
14
  .ProseMirror span.pm-placeholder__text {
16
15
  display: inline;
17
- color: ${token('color.text.subtlest', N300)};
16
+ color: ${`var(--ds-text-subtlest, ${N300})`};
18
17
  }
19
18
 
20
19
  .ProseMirror span.pm-placeholder.${akEditorSelectedNodeClassName} {
@@ -22,7 +21,7 @@ export const placeholderTextStyles = css`
22
21
  }
23
22
 
24
23
  .ProseMirror span.pm-placeholder__text[data-placeholder]::after {
25
- color: ${token('color.text.subtlest', N300)};
24
+ color: ${`var(--ds-text-subtlest, ${N300})`};
26
25
  cursor: text;
27
26
  content: attr(data-placeholder);
28
27
  display: inline;
@@ -1,7 +1,6 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { ruleSharedStyles } from '@atlaskit/editor-common/styles';
3
3
  import { akEditorLineHeight, akEditorSelectedBorderColor, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
4
- import { token } from '@atlaskit/tokens';
5
4
  export const ruleStyles = props => css`
6
5
  .ProseMirror {
7
6
  ${ruleSharedStyles(props)};
@@ -14,7 +13,7 @@ export const ruleStyles = props => css`
14
13
 
15
14
  &.${akEditorSelectedNodeClassName} {
16
15
  outline: none;
17
- background-color: ${token('color.border.selected', akEditorSelectedBorderColor)};
16
+ background-color: ${`var(--ds-border-selected, ${akEditorSelectedBorderColor})`};
18
17
  }
19
18
  }
20
19
  }
@@ -12,7 +12,6 @@ import { N0 } from '@atlaskit/theme/colors';
12
12
  import withOuterListeners from '../../../ui/with-outer-listeners';
13
13
  import { DEFAULT_STATUS } from '../actions';
14
14
  import { analyticsState, createStatusAnalyticsAndFire } from '../analytics';
15
- import { token } from '@atlaskit/tokens';
16
15
  const PopupWithListeners = withOuterListeners(Popup);
17
16
  export let InputMethod;
18
17
 
@@ -23,10 +22,10 @@ export let InputMethod;
23
22
  })(InputMethod || (InputMethod = {}));
24
23
 
25
24
  const pickerContainer = css`
26
- background: ${token('elevation.surface.overlay', N0)};
25
+ background: ${`var(--ds-surface-overlay, ${N0})`};
27
26
  padding: ${gridSize()}px 0;
28
27
  border-radius: ${borderRadius()}px;
29
- box-shadow: ${token('elevation.shadow.overlay', '0 0 1px rgba(9, 30, 66, 0.31), 0 4px 8px -2px rgba(9, 30, 66, 0.25)')};
28
+ box-shadow: ${"var(--ds-shadow-overlay, 0 0 1px rgba(9, 30, 66, 0.31), 0 4px 8px -2px rgba(9, 30, 66, 0.25))"};
30
29
  input {
31
30
  text-transform: uppercase;
32
31
  }
@@ -1,7 +1,6 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
3
3
  import { SelectionStyle, getSelectionStyles, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
4
- import { token } from '@atlaskit/tokens';
5
4
  export const taskDecisionStyles = css`
6
5
  [data-decision-wrapper] {
7
6
  cursor: pointer;
@@ -17,8 +16,8 @@ export const taskDecisionStyles = css`
17
16
  .${TaskDecisionSharedCssClassName.DECISION_CONTAINER}.${akEditorSelectedNodeClassName}
18
17
  > div {
19
18
  box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px
20
- ${token('color.border.danger', akEditorDeleteBorder)};
21
- background-color: ${token('color.blanket.danger', akEditorDeleteBackgroundWithOpacity)};
19
+ ${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
20
+ background-color: ${`var(--ds-blanket-danger, ${akEditorDeleteBackgroundWithOpacity})`};
22
21
  &::after {
23
22
  content: none; /* reset the Blanket selection style */
24
23
  }
@@ -12,7 +12,6 @@ import { WrapperTypeAhead } from '../ui/WrapperTypeAhead';
12
12
  import { StatsModifier } from '../stats-modifier';
13
13
  import { getTypeAheadQuery } from '../utils';
14
14
  import { closeTypeAhead } from '../transforms/close-type-ahead';
15
- import { token } from '@atlaskit/tokens';
16
15
  export const factoryDecorations = ({
17
16
  intl,
18
17
  popupMountRef,
@@ -56,7 +55,7 @@ export const factoryDecorations = ({
56
55
 
57
56
  typeaheadComponent.dataset.editorPopup = 'true';
58
57
  typeaheadComponent.dataset.typeAhead = TYPE_AHEAD_DECORATION_DATA_ATTRIBUTE;
59
- typeaheadComponent.style.color = token('color.text.accent.blue', B400);
58
+ typeaheadComponent.style.color = `var(--ds-text-accent-blue, ${B400})`;
60
59
  typeaheadComponent.style.backgroundColor = 'transparent';
61
60
 
62
61
  const onUndoRedo = inputType => {
@@ -10,7 +10,6 @@ import { TYPE_AHEAD_DECORATION_ELEMENT_ID } from '../constants';
10
10
  import { AssistiveText } from './AssistiveText';
11
11
  import { typeAheadListMessages } from '../messages';
12
12
  import { useIntl } from 'react-intl-next';
13
- import { token } from '@atlaskit/tokens';
14
13
  import * as colors from '@atlaskit/theme/colors';
15
14
 
16
15
  const isNavigationKey = event => {
@@ -230,7 +229,7 @@ export const InputQuery = /*#__PURE__*/React.memo(({
230
229
  background: 'transparent',
231
230
  border: 'none',
232
231
  '&&': {
233
- color: `${token('color.link', colors.B400)}`
232
+ color: `${`var(--ds-link, ${colors.B400})`}`
234
233
  }
235
234
  });
236
235
  useLayoutEffect(() => {
@@ -9,7 +9,6 @@ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
9
9
  import IconFallback from '../../quick-insert/assets/fallback';
10
10
  import { shortcutStyle } from '../../../ui/styles';
11
11
  import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
12
- import { token } from '@atlaskit/tokens';
13
12
  import { useIntl } from 'react-intl-next';
14
13
  import { typeAheadListMessages } from '../messages';
15
14
  export const ICON_HEIGHT = 40;
@@ -19,7 +18,7 @@ export const itemIcon = css`
19
18
  width: ${ICON_WIDTH}px;
20
19
  height: ${ICON_HEIGHT}px;
21
20
  overflow: hidden;
22
- border: 1px solid ${token('color.border', 'rgba(223, 225, 229, 0.5)')}; /* N60 at 50% */
21
+ border: 1px solid ${"var(--ds-border, rgba(223, 225, 229, 0.5))"}; /* N60 at 50% */
23
22
  border-radius: ${borderRadius()}px;
24
23
  box-sizing: border-box;
25
24
 
@@ -42,15 +41,15 @@ const itemBody = css`
42
41
  const itemText = theme => css`
43
42
  white-space: initial;
44
43
  color: ${themed({
45
- light: token('color.text', N800),
46
- dark: token('color.text', DN600)
44
+ light: `var(--ds-text, ${N800})`,
45
+ dark: `var(--ds-text, ${DN600})`
47
46
  })(theme)};
48
47
  .item-title {
49
48
  line-height: 1.4;
50
49
  }
51
50
  .item-description {
52
51
  font-size: ${relativeFontSizeToBase16(12)};
53
- color: ${token('color.text.subtlest', N200)};
52
+ color: ${`var(--ds-text-subtlest, ${N200})`};
54
53
  margin-top: 3px;
55
54
  }
56
55
  `;
@@ -61,10 +60,10 @@ const itemAfter = css`
61
60
  const customRenderItemDivStyle = css`
62
61
  overflow: hidden;
63
62
  &:hover {
64
- background-color: ${token('color.background.selected', N30)};
63
+ background-color: ${`var(--ds-background-selected, ${N30})`};
65
64
  }
66
65
  &:focus {
67
- box-shadow: inset 0px 0px 0px 2px ${token('color.border.focused', B100)};
66
+ box-shadow: inset 0px 0px 0px 2px ${`var(--ds-border-focused, ${B100})`};
68
67
  outline: none;
69
68
  }
70
69
  `;
@@ -76,7 +75,7 @@ const customRenderItemDivStyle = css`
76
75
 
77
76
  const selectionFrame = {
78
77
  '& > button:focus': {
79
- boxShadow: `inset 0px 0px 0px 2px ${token('color.border.focused', B100)}`,
78
+ boxShadow: `inset 0px 0px 0px 2px ${`var(--ds-border-focused, ${B100})`}`,
80
79
  outline: 'none',
81
80
  '&:active': {
82
81
  boxShadow: 'none'
@@ -84,7 +83,7 @@ const selectionFrame = {
84
83
  }
85
84
  };
86
85
  const selectedStyle = css`
87
- background-color: ${token('color.background.selected', N30)};
86
+ background-color: ${`var(--ds-background-selected, ${N30})`};
88
87
  `;
89
88
  const FallbackIcon = /*#__PURE__*/React.memo(({
90
89
  label
@@ -10,12 +10,11 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/anal
10
10
  import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_DATA_ATTRIBUTE, TYPE_AHEAD_POPUP_CONTENT_CLASS } from '../constants';
11
11
  import { TypeAheadList } from './TypeAheadList';
12
12
  import { ITEM_PADDING } from './TypeAheadListItem';
13
- import { token } from '@atlaskit/tokens';
14
13
  const DEFAULT_TYPEAHEAD_MENU_HEIGHT = 380;
15
14
  const typeAheadContent = css`
16
- background: ${token('elevation.surface.overlay', N0)};
15
+ background: ${`var(--ds-surface-overlay, ${N0})`};
17
16
  border-radius: ${borderRadius()}px;
18
- box-shadow: ${token('elevation.shadow.overlay', `0 0 1px ${N60A}, 0 4px 8px -2px ${N50A}`)};
17
+ box-shadow: ${`var(--ds-shadow-overlay, ${`0 0 1px ${N60A}, 0 4px 8px -2px ${N50A}`})`};
19
18
  padding: ${gridSize() / 2}px 0;
20
19
  width: 320px;
21
20
  max-height: 380px; /* ~5.5 visibile items */
@@ -1,6 +1,5 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { SelectionStyle, getSelectionStyles, akEditorDeleteBackgroundWithOpacity, akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
3
- import { token } from '@atlaskit/tokens';
4
3
  export const UnsupportedSharedCssClassName = {
5
4
  BLOCK_CONTAINER: 'unsupportedBlockView-content-wrap',
6
5
  INLINE_CONTAINER: 'unsupportedInlineView-content-wrap'
@@ -21,8 +20,8 @@ export const unsupportedStyles = css`
21
20
  .${akEditorSelectedNodeClassName}${blockUnsupportedSelector},
22
21
  .${akEditorSelectedNodeClassName}${inlineUnsupportedSelector} {
23
22
  border: ${akEditorSelectedBorderSize}px solid
24
- ${token('color.border.danger', akEditorDeleteBorder)};
25
- background-color: ${token('color.blanket.danger', akEditorDeleteBackgroundWithOpacity)};
23
+ ${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
24
+ background-color: ${`var(--ds-blanket-danger, ${akEditorDeleteBackgroundWithOpacity})`};
26
25
  }
27
26
  }
28
27
  `;
@@ -1,13 +1,12 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { borderRadius } from '@atlaskit/theme/constants';
3
3
  import { N60A } from '@atlaskit/theme/colors';
4
- import { token } from '@atlaskit/tokens';
5
4
  export const dropdown = css`
6
5
  display: flex;
7
6
  flex-direction: column;
8
- background: ${token('elevation.surface.overlay', 'white')};
7
+ background: ${"var(--ds-surface-overlay, white)"};
9
8
  border-radius: ${borderRadius()}px;
10
- box-shadow: ${token('elevation.shadow.overlay', `0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`)};
9
+ box-shadow: ${`var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`})`};
11
10
  box-sizing: border-box;
12
11
  padding: 4px 0;
13
12
  `;
@@ -1,18 +1,17 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { N800, N20 } from '@atlaskit/theme/colors';
3
- import { token } from '@atlaskit/tokens';
4
3
  export const dropdownItem = css`
5
4
  display: flex;
6
5
  align-items: center;
7
6
  cursor: pointer;
8
7
  text-decoration: none;
9
8
  padding: 8px 32px 8px 12px;
10
- color: ${token('color.text', N800)};
9
+ color: ${`var(--ds-text, ${N800})`};
11
10
  > span {
12
11
  display: flex;
13
12
  margin-right: 8px;
14
13
  }
15
14
  &:hover {
16
- background-color: ${token('color.background.neutral.subtle.hovered', N20)};
15
+ background-color: ${`var(--ds-background-neutral-subtle-hovered, ${N20})`};
17
16
  }
18
17
  `;
@@ -7,7 +7,6 @@ import ButtonGroup from '@atlaskit/button/button-group';
7
7
  import Button from '@atlaskit/button/custom-theme-button';
8
8
  import { borderRadius } from '@atlaskit/theme/constants';
9
9
  import { N40 } from '@atlaskit/theme/colors';
10
- import { token } from '@atlaskit/tokens';
11
10
  import Toolbar from '../../Toolbar';
12
11
  import PluginSlot from '../../PluginSlot';
13
12
  import WithPluginState from '../../WithPluginState';
@@ -40,8 +39,8 @@ const commentEditorStyle = css`
40
39
  /* calc(2px + 40px + 24px + ( 20px + (32px * 2))) */
41
40
 
42
41
  height: auto;
43
- background-color: ${token('color.background.input', 'white')};
44
- border: 1px solid ${token('color.border', N40)};
42
+ background-color: ${"var(--ds-background-input, white)"};
43
+ border: 1px solid ${`var(--ds-border, ${N40})`};
45
44
  box-sizing: border-box;
46
45
  border-radius: ${borderRadius()}px;
47
46
 
@@ -3,7 +3,6 @@ import React, { useEffect, useState } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
4
  import { gridSize } from '@atlaskit/theme/constants';
5
5
  import { N30 } from '@atlaskit/theme/colors';
6
- import { token } from '@atlaskit/tokens';
7
6
  import { akEditorToolbarKeylineHeight, akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
8
7
  export const TableControlsPadding = 20;
9
8
  const mainToolbarWrapperStyle = css`
@@ -12,7 +11,7 @@ const mainToolbarWrapperStyle = css`
12
11
  padding: ${gridSize()}px ${gridSize()}px 0;
13
12
  display: flex;
14
13
  height: auto;
15
- background-color: ${token('elevation.surface', 'white')};
14
+ background-color: ${"var(--ds-surface, white)"};
16
15
  box-shadow: none;
17
16
  padding-left: ${TableControlsPadding}px;
18
17
 
@@ -37,7 +36,7 @@ const stickyToolbarWrapperStyle = css`
37
36
  transition: box-shadow ease-in-out 0.2s;
38
37
  &.show-keyline {
39
38
  box-shadow: 0 ${akEditorToolbarKeylineHeight}px 0 0
40
- ${token('color.border', N30)};
39
+ ${`var(--ds-border, ${N30})`};
41
40
  }
42
41
  `;
43
42
 
@@ -1,6 +1,5 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { N30 } from '@atlaskit/theme/colors';
3
- import { token } from '@atlaskit/tokens';
4
3
  import { gridSize } from '@atlaskit/theme/constants';
5
4
  import { akEditorMenuZIndex, akEditorSwoopCubicBezier, akEditorToolbarKeylineHeight, akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
6
5
  export const MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
@@ -8,7 +7,7 @@ const toolbarLineHeight = 56; // box-shadow is overriden by the mainToolbar
8
7
 
9
8
  const mainToolbarWithKeyline = css`
10
9
  box-shadow: 0 ${akEditorToolbarKeylineHeight}px 0 0
11
- ${token('color.border', N30)};
10
+ ${`var(--ds-border, ${N30})`};
12
11
  `;
13
12
  const mainToolbarTwoLineStyle = css`
14
13
  @media (max-width: ${MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT}px) {
@@ -26,7 +25,7 @@ const mainToolbar = css`
26
25
  height: ${toolbarLineHeight}px;
27
26
  flex-shrink: 0;
28
27
  // TODO: https://product-fabric.atlassian.net/browse/DSP-4456
29
- background-color: ${token('elevation.surface', 'white')};
28
+ background-color: ${"var(--ds-surface, white)"};
30
29
 
31
30
  & object {
32
31
  height: 0 !important;
@@ -2,12 +2,11 @@ import { css } from '@emotion/react';
2
2
  import { akEditorSubtleAccent, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
3
3
  import { borderRadius } from '@atlaskit/theme/constants';
4
4
  import { N300, N50 } from '@atlaskit/theme/colors';
5
- import { token } from '@atlaskit/tokens';
6
5
  export const inputStyle = css`
7
6
  /* Normal .className gets overridden by input[type=text] hence this hack to produce input.className */
8
7
  input& {
9
- background-color: ${token('color.background.input', 'white')};
10
- border: 1px solid ${token('color.border.input', akEditorSubtleAccent)};
8
+ background-color: ${"var(--ds-background-input, white)"};
9
+ border: 1px solid ${`var(--ds-border-input, ${akEditorSubtleAccent})`};
11
10
  border-radius: ${borderRadius()}px;
12
11
  box-sizing: border-box;
13
12
  height: 40px;
@@ -19,11 +18,11 @@ export const inputStyle = css`
19
18
  font-weight: 400;
20
19
  line-height: 1.42857142857143;
21
20
  letter-spacing: -0.005em;
22
- color: ${token('color.text.subtlest', N300)};
21
+ color: ${`var(--ds-text-subtlest, ${N300})`};
23
22
 
24
23
  &:hover {
25
- background-color: ${token('color.background.input.hovered', 'white')};
26
- border-color: ${token('color.border.input', N50)};
24
+ background-color: ${"var(--ds-background-input-hovered, white)"};
25
+ border-color: ${`var(--ds-border-input, ${N50})`};
27
26
  cursor: text;
28
27
  }
29
28
  }
@@ -5,7 +5,6 @@ import { Fragment, useCallback } from 'react';
5
5
  import { css, jsx } from '@emotion/react';
6
6
  import { Checkbox as AKCheckbox } from '@atlaskit/checkbox';
7
7
  import { Field, Fieldset as AKFieldset } from '@atlaskit/form';
8
- import { token } from '@atlaskit/tokens';
9
8
  import { ValidationError } from '../types';
10
9
  import FieldMessages from '../FieldMessages';
11
10
 
@@ -16,7 +15,7 @@ function validate(value, isRequired) {
16
15
  }
17
16
 
18
17
  const requiredIndicator = css`
19
- color: ${token('color.text.danger', '#bf2600')};
18
+ color: ${"var(--ds-text-danger, #bf2600)"};
20
19
  `;
21
20
 
22
21
  function CheckboxGroupInner({
@@ -3,14 +3,13 @@ import React, { useState } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
4
  import { injectIntl } from 'react-intl-next';
5
5
  import { N40 } from '@atlaskit/theme/colors';
6
- import { token } from '@atlaskit/tokens';
7
6
  import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
8
7
  import ChevronRightIcon from '@atlaskit/icon/glyph/chevron-right';
9
8
  import Button from '@atlaskit/button';
10
9
  import { gridSize } from '@atlaskit/theme/constants';
11
10
  import { messages } from '../messages';
12
11
  export const expandContainer = css`
13
- border-bottom: 1px solid ${token('color.border', N40)};
12
+ border-bottom: 1px solid ${`var(--ds-border, ${N40})`};
14
13
  `;
15
14
  export const expandControl = css`
16
15
  display: flex;
@@ -12,9 +12,8 @@ import { messages } from '../messages';
12
12
  import { getNameFromDuplicateField, isDuplicateField } from '../utils';
13
13
  import { gridSize } from '@atlaskit/theme/constants';
14
14
  import { N40A } from '@atlaskit/theme/colors';
15
- import { token } from '@atlaskit/tokens';
16
15
  const actionsWrapper = css`
17
- border-top: 1px solid ${token('color.border', N40A)};
16
+ border-top: 1px solid ${`var(--ds-border, ${N40A})`};
18
17
  margin-top: ${gridSize() * 2}px;
19
18
  padding-top: ${gridSize() * 2}px;
20
19
  `;
@@ -1,6 +1,5 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { R500 } from '@atlaskit/theme/colors';
3
- import { token } from '@atlaskit/tokens';
4
3
  export const requiredIndicator = css`
5
- color: ${token('color.text.danger', R500)};
4
+ color: ${`var(--ds-text-danger, ${R500})`};
6
5
  `;
@@ -7,7 +7,6 @@ import Button from '@atlaskit/button/custom-theme-button';
7
7
  import CrossIcon from '@atlaskit/icon/glyph/cross';
8
8
  import { borderRadius } from '@atlaskit/theme/constants';
9
9
  import { N200 } from '@atlaskit/theme/colors';
10
- import { token } from '@atlaskit/tokens';
11
10
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
12
11
  import { messages } from './messages';
13
12
  const iconWidth = 40;
@@ -22,7 +21,7 @@ const itemIcon = css`
22
21
  width: ${iconWidth}px;
23
22
  height: ${iconWidth}px;
24
23
  overflow: hidden;
25
- border: 1px solid ${token('color.border', 'rgba(223, 225, 229, 0.5)')}; /* N60 at 50% */
24
+ border: 1px solid ${"var(--ds-border, rgba(223, 225, 229, 0.5))"}; /* N60 at 50% */
26
25
  border-radius: ${borderRadius()}px;
27
26
  box-sizing: border-box;
28
27
 
@@ -55,7 +54,7 @@ const itemText = css`
55
54
  white-space: initial;
56
55
  .item-summary {
57
56
  font-size: ${relativeFontSizeToBase16(11.67)};
58
- color: ${token('color.text.subtlest', N200)};
57
+ color: ${`var(--ds-text-subtlest, ${N200})`};
59
58
  margin-top: 4px;
60
59
 
61
60
  white-space: nowrap;
@@ -6,7 +6,6 @@ import { gridSize } from '@atlaskit/theme/constants';
6
6
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
7
7
  import Tooltip from '@atlaskit/tooltip';
8
8
  import { N80, R300 } from '@atlaskit/theme/colors';
9
- import { token } from '@atlaskit/tokens';
10
9
  import { messages } from '../messages';
11
10
  const removableFieldWrapper = css`
12
11
  position: relative;
@@ -21,10 +20,10 @@ const removeButtonWrapper = css`
21
20
  top: 0;
22
21
  cursor: pointer;
23
22
 
24
- color: ${token('color.icon.subtle', N80)};
23
+ color: ${`var(--ds-icon-subtle, ${N80})`};
25
24
 
26
25
  &:hover {
27
- color: ${token('color.icon.danger', R300)};
26
+ color: ${`var(--ds-icon-danger, ${R300})`};
28
27
  }
29
28
  `;
30
29
 
@@ -3,7 +3,6 @@ import React, { useMemo } from 'react';
3
3
  import { jsx, css, useTheme } from '@emotion/react';
4
4
  import { whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, shadowSharedStyle, dateSharedStyle, tasksAndDecisionsStyles, annotationSharedStyles, smartCardSharedStyles, textColorStyles } from '@atlaskit/editor-common/styles';
5
5
  import { editorFontSize } from '@atlaskit/editor-shared-styles';
6
- import { token } from '@atlaskit/tokens';
7
6
  import { unsupportedStyles } from '../../plugins/unsupported-content/styles';
8
7
  import { telepointerStyle } from '../../plugins/collab-edit/styles';
9
8
  import { gapCursorStyles } from '../../plugins/selection/gap-cursor/styles';
@@ -67,7 +66,7 @@ const contentStyles = props => css`
67
66
  }
68
67
 
69
68
  .ProseMirror-selectednode:empty {
70
- outline: 2px solid ${token('color.border.focused', '#8cf')};
69
+ outline: 2px solid ${"var(--ds-border-focused, #8cf)"};
71
70
  }
72
71
 
73
72
  ${placeholderTextStyles}
@@ -13,7 +13,6 @@ import { pluginKey as contextPanelPluginKey } from '../../plugins/context-panel'
13
13
  import { pluginKey as widthPluginKey } from '../../plugins/width';
14
14
  import WithEditorActions from '../WithEditorActions';
15
15
  import { getChildBreakoutModes } from '../../utils/document';
16
- import { token } from '@atlaskit/tokens';
17
16
  const ANIM_SPEED_MS = 500;
18
17
  const EDITOR_WIDTH = akEditorDefaultLayoutWidth + akEditorBreakoutPadding;
19
18
  const WIDE_EDITOR_WIDTH = akEditorWideLayoutWidth + akEditorBreakoutPadding;
@@ -43,7 +42,7 @@ export const panel = css`
43
42
  height: 100%;
44
43
  transition: width ${ANIM_SPEED_MS}ms ${akEditorSwoopCubicBezier};
45
44
  overflow: hidden;
46
- box-shadow: inset 2px 0 0 0 ${token('color.border', N30)};
45
+ box-shadow: inset 2px 0 0 0 ${`var(--ds-border, ${N30})`};
47
46
  `;
48
47
  export const content = css`
49
48
  transition: width 600ms ${akEditorSwoopCubicBezier};
@@ -17,7 +17,6 @@ import { getFeaturedQuickInsertItems, searchQuickInsertItems } from '../../plugi
17
17
  import { insertItem } from '../../plugins/quick-insert/commands';
18
18
  import ElementBrowser from './components/ElementBrowserLoader';
19
19
  import { ELEMENT_ITEM_HEIGHT } from './constants';
20
- import { token } from '@atlaskit/tokens';
21
20
 
22
21
  const InsertMenu = ({
23
22
  editorView,
@@ -148,13 +147,13 @@ const insertMenuWrapper = (theme, itemCount) => css`
148
147
  itemCount
149
148
  })}px;
150
149
  background-color: ${themed({
151
- light: token('elevation.surface.overlay', N0),
152
- dark: token('elevation.surface.overlay', DN50)
150
+ light: `var(--ds-surface-overlay, ${N0})`,
151
+ dark: `var(--ds-surface-overlay, ${DN50})`
153
152
  })(theme)};
154
153
  border-radius: ${borderRadius()}px;
155
- box-shadow: ${token('elevation.shadow.overlay', `0 0 0 1px ${N30A},
154
+ box-shadow: ${`var(--ds-shadow-overlay, ${`0 0 0 1px ${N30A},
156
155
  0 2px 1px ${N30A},
157
- 0 0 20px -6px ${N60A}`)};
156
+ 0 0 20px -6px ${N60A}`})`};
158
157
  `;
159
158
 
160
159
  const itemBefore = css`
@@ -12,7 +12,6 @@ import ElementBrowser from './components/ElementBrowserLoader';
12
12
  import { getCategories } from './categories';
13
13
  import { MODAL_WRAPPER_PADDING } from './constants';
14
14
  import { messages } from './messages';
15
- import { token } from '@atlaskit/tokens';
16
15
  const actions = css`
17
16
  display: inline-flex;
18
17
  margin: 0 -4px;
@@ -28,8 +27,8 @@ const wrapper = css`
28
27
  padding: ${MODAL_WRAPPER_PADDING}px ${MODAL_WRAPPER_PADDING}px 0 10px;
29
28
  overflow: hidden;
30
29
  background-color: ${themed({
31
- light: token('elevation.surface.overlay', N0),
32
- dark: token('elevation.surface.overlay', DN50)
30
+ light: `var(--ds-surface-overlay, ${N0})`,
31
+ dark: `var(--ds-surface-overlay, ${DN50})`
33
32
  })()};
34
33
  border-radius: ${borderRadius()}px;
35
34
  `;
@@ -9,7 +9,6 @@ import { withAnalyticsContext } from '@atlaskit/analytics-next';
9
9
  import { DEVICE_BREAKPOINT_NUMBERS, GRID_SIZE } from '../constants';
10
10
  import useFocus from '../hooks/use-focus';
11
11
  import { fireAnalyticsEvent, EVENT_TYPE, ACTION_SUBJECT, ACTION_SUBJECT_ID, ACTION } from '../../../plugins/analytics';
12
- import { token } from '@atlaskit/tokens';
13
12
 
14
13
  function CategoryList({
15
14
  categories = [],
@@ -72,9 +71,9 @@ function CategoryListItem({
72
71
  marginLeft: '2px',
73
72
  height: '100%',
74
73
  width: '100%',
75
- color: category.name !== selectedCategory ? token('color.text', N800) : token('color.text.selected', B400),
74
+ color: category.name !== selectedCategory ? `var(--ds-text, ${N800})` : `var(--ds-text-selected, ${B400})`,
76
75
  ...(category.name === selectedCategory && {
77
- background: token('color.background.selected', B50)
76
+ background: `var(--ds-background-selected, ${B50})`
78
77
  })
79
78
  },
80
79
  ...rest