@atlaskit/editor-shared-styles 1.6.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 +114 -0
- package/build/tsconfig.json +17 -0
- package/consts/package.json +7 -0
- package/dist/cjs/consts/consts.js +277 -0
- package/dist/cjs/consts/consts.test.js +25 -0
- package/dist/cjs/consts/index.js +541 -0
- package/dist/cjs/consts/types.js +5 -0
- package/dist/cjs/index.js +563 -0
- package/dist/cjs/overflow-shadow/index.js +13 -0
- package/dist/cjs/overflow-shadow/overflow-shadow.js +22 -0
- package/dist/cjs/selection/index.js +27 -0
- package/dist/cjs/selection/types.js +21 -0
- package/dist/cjs/selection/utils.js +49 -0
- package/dist/cjs/version.json +5 -0
- package/dist/es2019/consts/consts.js +152 -0
- package/dist/es2019/consts/consts.test.js +20 -0
- package/dist/es2019/consts/index.js +1 -0
- package/dist/es2019/consts/types.js +1 -0
- package/dist/es2019/index.js +3 -0
- package/dist/es2019/overflow-shadow/index.js +1 -0
- package/dist/es2019/overflow-shadow/overflow-shadow.js +23 -0
- package/dist/es2019/selection/index.js +2 -0
- package/dist/es2019/selection/types.js +13 -0
- package/dist/es2019/selection/utils.js +61 -0
- package/dist/es2019/version.json +5 -0
- package/dist/esm/consts/consts.js +162 -0
- package/dist/esm/consts/consts.test.js +22 -0
- package/dist/esm/consts/index.js +1 -0
- package/dist/esm/consts/types.js +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/overflow-shadow/index.js +1 -0
- package/dist/esm/overflow-shadow/overflow-shadow.js +10 -0
- package/dist/esm/selection/index.js +2 -0
- package/dist/esm/selection/types.js +13 -0
- package/dist/esm/selection/utils.js +38 -0
- package/dist/esm/version.json +5 -0
- package/dist/types/consts/consts.d.ts +124 -0
- package/dist/types/consts/index.d.ts +2 -0
- package/dist/types/consts/types.d.ts +3 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/overflow-shadow/index.d.ts +1 -0
- package/dist/types/overflow-shadow/overflow-shadow.d.ts +5 -0
- package/dist/types/selection/index.d.ts +2 -0
- package/dist/types/selection/types.d.ts +11 -0
- package/dist/types/selection/utils.d.ts +13 -0
- package/package.json +46 -0
- package/selection/package.json +7 -0
- package/src/consts/consts.test.ts +21 -0
- package/src/consts/consts.ts +204 -0
- package/src/consts/index.ts +92 -0
- package/src/consts/types.ts +3 -0
- package/src/index.ts +99 -0
- package/src/overflow-shadow/index.ts +1 -0
- package/src/overflow-shadow/overflow-shadow.ts +29 -0
- package/src/selection/__tests__/unit/utils.ts +43 -0
- package/src/selection/index.ts +5 -0
- package/src/selection/types.ts +11 -0
- package/src/selection/utils.ts +71 -0
- package/tsconfig.json +11 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SelectionStyle } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Adds correct selection styling for a node
|
|
4
|
+
* Pass in which selection style properties you want and it will return css string of necessary styles
|
|
5
|
+
*
|
|
6
|
+
* eg.
|
|
7
|
+
* .expand.ak-editor-selected-node {
|
|
8
|
+
* ${getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket])}
|
|
9
|
+
* }
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export declare const getSelectionStyles: (selectionStyles: Array<SelectionStyle>) => string;
|
|
13
|
+
export declare const hideNativeBrowserTextSelectionStyles = "\n ::selection,*::selection {\n background-color: transparent;\n }\n ::-moz-selection,*::-moz-selection {\n background-color: transparent;\n }\n";
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-shared-styles",
|
|
3
|
+
"version": "1.6.0",
|
|
4
|
+
"description": "Style values used in the editor/renderer",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"atlaskit:src": "src/index.ts",
|
|
17
|
+
"atlassian": {
|
|
18
|
+
"team": "Editor",
|
|
19
|
+
"inPublicMirror": true,
|
|
20
|
+
"releaseModel": "scheduled"
|
|
21
|
+
},
|
|
22
|
+
"af:exports": {
|
|
23
|
+
"./consts": "./src/consts/index.ts",
|
|
24
|
+
"./selection": "./src/selection/index.ts",
|
|
25
|
+
".": "./src/index.ts"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@atlaskit/theme": "^12.0.0",
|
|
29
|
+
"@babel/runtime": "^7.0.0",
|
|
30
|
+
"styled-components": "^3.2.6"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
35
|
+
"typescript": "3.9.6"
|
|
36
|
+
},
|
|
37
|
+
"techstack": {
|
|
38
|
+
"@atlassian/frontend": {
|
|
39
|
+
"circular-dependencies": [
|
|
40
|
+
"file-level"
|
|
41
|
+
],
|
|
42
|
+
"import-structure": "atlassian-conventions"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
46
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { relativeFontSizeToBase16 } from './consts';
|
|
2
|
+
|
|
3
|
+
describe('consts', () => {
|
|
4
|
+
describe('relativeFontSizeToBase16', () => {
|
|
5
|
+
it('relativeFontSizeToBase16 should return 1rem with a base font size of 16px', () => {
|
|
6
|
+
expect(relativeFontSizeToBase16(16)).toBe('1rem');
|
|
7
|
+
});
|
|
8
|
+
it('relativeFontSizeToBase16 should return 0.875rem with a base font size of 14px', () => {
|
|
9
|
+
expect(relativeFontSizeToBase16(14)).toBe('0.875rem');
|
|
10
|
+
});
|
|
11
|
+
it('relativeFontSizeToBase16 should return 0.875rem with a base font size (string) of 14px', () => {
|
|
12
|
+
expect(relativeFontSizeToBase16('14')).toBe('0.875rem');
|
|
13
|
+
});
|
|
14
|
+
it('relativeFontSizeToBase16 should return 0.875rem with a base font size (string) of 14px', () => {
|
|
15
|
+
expect(relativeFontSizeToBase16('14px')).toBe('0.875rem');
|
|
16
|
+
});
|
|
17
|
+
it('relativeFontSizeToBase16 should throw an error for invalid string', () => {
|
|
18
|
+
expect(() => relativeFontSizeToBase16('px')).toThrowError();
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import {
|
|
2
|
+
B100,
|
|
3
|
+
B300,
|
|
4
|
+
B400,
|
|
5
|
+
B50,
|
|
6
|
+
B75,
|
|
7
|
+
DN50,
|
|
8
|
+
DN70,
|
|
9
|
+
N0,
|
|
10
|
+
N100,
|
|
11
|
+
N20,
|
|
12
|
+
N30,
|
|
13
|
+
N40,
|
|
14
|
+
N50,
|
|
15
|
+
N500,
|
|
16
|
+
N700,
|
|
17
|
+
N900,
|
|
18
|
+
R300,
|
|
19
|
+
R400,
|
|
20
|
+
R50,
|
|
21
|
+
R75,
|
|
22
|
+
} from '@atlaskit/theme/colors';
|
|
23
|
+
import {
|
|
24
|
+
codeFontFamily,
|
|
25
|
+
fontSize as defaultFontSize,
|
|
26
|
+
gridSize,
|
|
27
|
+
layers,
|
|
28
|
+
} from '@atlaskit/theme/constants';
|
|
29
|
+
|
|
30
|
+
import { EditorTheme } from './types';
|
|
31
|
+
|
|
32
|
+
export const akEditorFullPageDefaultFontSize = 16;
|
|
33
|
+
export const akEditorCodeFontFamily = codeFontFamily();
|
|
34
|
+
export const akEditorInactiveForeground = N500;
|
|
35
|
+
export const akEditorFocus = B100;
|
|
36
|
+
export const akEditorSubtleAccent = N40;
|
|
37
|
+
export const akEditorActiveBackground = N500;
|
|
38
|
+
export const akEditorActiveForeground = N0;
|
|
39
|
+
export const akEditorBlockquoteBorderColor = N40;
|
|
40
|
+
export const akEditorDropdownActiveBackground = N900;
|
|
41
|
+
export const akEditorPopupBackground = N700;
|
|
42
|
+
export const akEditorPopupText = B50;
|
|
43
|
+
export const akEditorPrimaryButton = B400;
|
|
44
|
+
export const akEditorCodeBackground = N20;
|
|
45
|
+
export const akEditorCodeBlockPadding = '12px';
|
|
46
|
+
export const akEditorCodeInlinePadding = '2px 4px';
|
|
47
|
+
export const akEditorDeleteBackground = R50;
|
|
48
|
+
export const akEditorDeleteBackgroundShaded = R50;
|
|
49
|
+
export const akEditorDeleteBackgroundWithOpacity = 'rgba(255, 189, 173, 0.5)'; // R75 with 50% opacity
|
|
50
|
+
export const akEditorDeleteBorder = R300;
|
|
51
|
+
export const akEditorDeleteIconColor = R400;
|
|
52
|
+
export const akEditorCustomIconSize = 20;
|
|
53
|
+
export const akEditorSelectedBorderColor = B300;
|
|
54
|
+
export const akEditorSelectedBgColor = B50;
|
|
55
|
+
export const akEditorSelectedBlanketColor = B75;
|
|
56
|
+
export const akEditorSelectedBorderSize = 1;
|
|
57
|
+
export const akEditorSelectedBorder = `${akEditorSelectedBorderSize}px solid ${akEditorSelectedBorderColor}`;
|
|
58
|
+
export const akEditorSelectedBoxShadow = `0 0 0 ${akEditorSelectedBorderSize}px ${akEditorSelectedBorderColor}`;
|
|
59
|
+
export const akEditorSelectedIconColor = B400;
|
|
60
|
+
export const akEditorSelectedBorderBoldSize = 2;
|
|
61
|
+
export const akEditorSelectedBlanketOpacity = 0.3;
|
|
62
|
+
export const akEditorUnitZIndex = 1;
|
|
63
|
+
export const akEditorShadowZIndex = 2;
|
|
64
|
+
export const akEditorStickyHeaderZIndex = 11; // filmstrip uses 10 for its shadow
|
|
65
|
+
export const akEditorSmallZIndex = akEditorStickyHeaderZIndex + 1;
|
|
66
|
+
export const akEditorGridLineZIndex = 9999;
|
|
67
|
+
// z-index for main menu bar -
|
|
68
|
+
// this is highest as it should be above anything else in editor below.
|
|
69
|
+
export const akEditorMenuZIndex = layers.blanket();
|
|
70
|
+
// z-index used for floating toolbars like code block, table etc
|
|
71
|
+
export const akEditorFloatingPanelZIndex = layers.layer();
|
|
72
|
+
// z-index used for pickers (date, emoji, mentions) and type-aheads, hyperlinks
|
|
73
|
+
export const akEditorFloatingDialogZIndex = akEditorFloatingPanelZIndex + 10;
|
|
74
|
+
// z-index used for floating toolbars table cell menu which are above block toolbars
|
|
75
|
+
export const akEditorFloatingOverlapPanelZIndex =
|
|
76
|
+
akEditorFloatingPanelZIndex + 5;
|
|
77
|
+
export const akEditorMentionSelected = N100;
|
|
78
|
+
export const akEditorTableToolbarSize = 11;
|
|
79
|
+
export const akEditorTableBorder = N50;
|
|
80
|
+
export const akEditorTableBorderDark = DN70;
|
|
81
|
+
export const akEditorTableToolbar = N20;
|
|
82
|
+
export const akEditorTableToolbarDark = DN50;
|
|
83
|
+
export const akEditorTableFloatingControls = N20;
|
|
84
|
+
export const akEditorTableCellSelected = B75;
|
|
85
|
+
export const akEditorTableToolbarSelected = B100;
|
|
86
|
+
export const akEditorTableBorderSelected = B300;
|
|
87
|
+
export const akEditorTableCellDelete = R50;
|
|
88
|
+
export const akEditorTableBorderDelete = R300;
|
|
89
|
+
export const akEditorTableToolbarDelete = R75;
|
|
90
|
+
export const akEditorTableBorderRadius = '3px';
|
|
91
|
+
export const akEditorTableCellBackgroundOpacity = 0.5;
|
|
92
|
+
export const akEditorFullPageMaxWidth = 680;
|
|
93
|
+
export const akEditorDefaultLayoutWidth = 760;
|
|
94
|
+
export const akEditorWideLayoutWidth = 960;
|
|
95
|
+
export const akEditorFullWidthLayoutWidth = 1800;
|
|
96
|
+
export const akEditorFullWidthLayoutLineLength = 1792;
|
|
97
|
+
export const akEditorTableNumberColumnWidth = 42;
|
|
98
|
+
export const akEditorBreakoutPadding = 96;
|
|
99
|
+
export const akEditorGutterPadding = 32;
|
|
100
|
+
export const akEditorMobileBreakoutPoint = 720;
|
|
101
|
+
export const akEditorTableCellMinWidth = 48;
|
|
102
|
+
export const akEditorTableLegacyCellMinWidth = 128;
|
|
103
|
+
export const akEditorMediaResizeHandlerPaddingWide = 12;
|
|
104
|
+
export const akEditorMediaResizeHandlerPadding = 4;
|
|
105
|
+
export const akEditorSwoopCubicBezier = `cubic-bezier(0.15, 1, 0.3, 1)`;
|
|
106
|
+
export const gridMediumMaxWidth = 1024;
|
|
107
|
+
export const breakoutWideScaleRatio = 1.33;
|
|
108
|
+
export const akRichMediaResizeZIndex = akEditorUnitZIndex * 99;
|
|
109
|
+
export const akLayoutGutterOffset = gridSize() * 1.5;
|
|
110
|
+
export const akEditorLineHeight = 1.714;
|
|
111
|
+
export const akEditorRuleBackground = N30;
|
|
112
|
+
export const akEditorRuleBorderRadius = '1px';
|
|
113
|
+
export const akEditorToolbarKeylineHeight = 2;
|
|
114
|
+
export const akEditorContextPanelWidth = 320;
|
|
115
|
+
|
|
116
|
+
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
117
|
+
export const blockNodesVerticalMargin = '0.75rem';
|
|
118
|
+
|
|
119
|
+
export const DEFAULT_EMBED_CARD_WIDTH = 680;
|
|
120
|
+
export const DEFAULT_EMBED_CARD_HEIGHT = 480;
|
|
121
|
+
|
|
122
|
+
export const ATLASSIAN_NAVIGATION_HEIGHT = '56px';
|
|
123
|
+
|
|
124
|
+
export const akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
125
|
+
|
|
126
|
+
export const editorFontSize = ({ theme }: { theme: EditorTheme }) =>
|
|
127
|
+
theme && theme.baseFontSize ? theme.baseFontSize : defaultFontSize();
|
|
128
|
+
|
|
129
|
+
export const relativeSize = (multiplier: number) => ({
|
|
130
|
+
theme,
|
|
131
|
+
}: {
|
|
132
|
+
theme: EditorTheme;
|
|
133
|
+
}) => editorFontSize({ theme }) * multiplier;
|
|
134
|
+
|
|
135
|
+
export const relativeFontSizeToBase16 = (px: number | string) => {
|
|
136
|
+
if (typeof px === 'string') {
|
|
137
|
+
px = parseInt(px);
|
|
138
|
+
}
|
|
139
|
+
if (isNaN(px)) {
|
|
140
|
+
throw new Error(`Invalid font size: '${px}'`);
|
|
141
|
+
}
|
|
142
|
+
return `${px / 16}rem`;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export const getAkEditorFullPageMaxWidth = (
|
|
146
|
+
allowDynamicTextSizing: boolean = false,
|
|
147
|
+
) =>
|
|
148
|
+
allowDynamicTextSizing
|
|
149
|
+
? akEditorFullPageMaxWidth
|
|
150
|
+
: akEditorDefaultLayoutWidth;
|
|
151
|
+
|
|
152
|
+
export const VIEWPORT_SIZES = {
|
|
153
|
+
laptopHiDPI: { width: 1440, height: 900 },
|
|
154
|
+
laptopMDPI: { width: 1280, height: 800 },
|
|
155
|
+
tabletL: { width: 1024, height: 1366 },
|
|
156
|
+
tabletS: { width: 768, height: 1024 },
|
|
157
|
+
mobileM: { width: 414, height: 736 },
|
|
158
|
+
mobileS: { width: 375, height: 667 },
|
|
159
|
+
mobileXS: { width: 320, height: 568 },
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
// to be updated in ED-10790: this should be variable threshold based on how many buttons enabled on main toolbar
|
|
163
|
+
export const akEditorMobileMaxWidth = 0;
|
|
164
|
+
|
|
165
|
+
export const getTableCellBackgroundDarkModeColors = [
|
|
166
|
+
['White', '#000000'],
|
|
167
|
+
['Light blue', '#0C294F'],
|
|
168
|
+
['Light teal', '#0C343B'],
|
|
169
|
+
['Light green', '#052E21'],
|
|
170
|
+
['Light yellow', '#484123'],
|
|
171
|
+
['Light red', '#441C13'],
|
|
172
|
+
['Light purple', '#282249'],
|
|
173
|
+
|
|
174
|
+
['Light gray', '#202328'],
|
|
175
|
+
['Blue', '#0B3165'],
|
|
176
|
+
['Teal', '#044853'],
|
|
177
|
+
['Green', '#053927'],
|
|
178
|
+
['Yellow', '#6F5C25'],
|
|
179
|
+
['Red', '#582013'],
|
|
180
|
+
['Purple', '#3E327B'],
|
|
181
|
+
|
|
182
|
+
['Gray', '#475262'],
|
|
183
|
+
['Dark blue', '#003884'],
|
|
184
|
+
['Dark teal', '#055866'],
|
|
185
|
+
['Dark green', '#044932'],
|
|
186
|
+
['Dark yellow', '#82641C'],
|
|
187
|
+
['Dark red', '#6B2A19'],
|
|
188
|
+
['Dark purple', '#4D38B2'],
|
|
189
|
+
]
|
|
190
|
+
.map(([colorName, colorValue]) =>
|
|
191
|
+
getTableCellBackgroundDarkModeColorCSS(colorName, colorValue),
|
|
192
|
+
)
|
|
193
|
+
.join('\n');
|
|
194
|
+
|
|
195
|
+
export function getTableCellBackgroundDarkModeColorCSS(
|
|
196
|
+
colorName: string,
|
|
197
|
+
colorValue: string,
|
|
198
|
+
): string {
|
|
199
|
+
return `
|
|
200
|
+
&[colorname="${colorName}"] {
|
|
201
|
+
background-color: ${colorValue} !important; // !important to override default style color
|
|
202
|
+
}
|
|
203
|
+
`;
|
|
204
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export type { EditorTheme } from './types';
|
|
2
|
+
export {
|
|
3
|
+
akEditorActiveBackground,
|
|
4
|
+
akEditorActiveForeground,
|
|
5
|
+
akEditorBlockquoteBorderColor,
|
|
6
|
+
akEditorBreakoutPadding,
|
|
7
|
+
akEditorCodeBackground,
|
|
8
|
+
akEditorCodeBlockPadding,
|
|
9
|
+
akEditorCodeFontFamily,
|
|
10
|
+
akEditorCodeInlinePadding,
|
|
11
|
+
akEditorContextPanelWidth,
|
|
12
|
+
akEditorDefaultLayoutWidth,
|
|
13
|
+
akEditorDeleteBackground,
|
|
14
|
+
akEditorDeleteBackgroundShaded,
|
|
15
|
+
akEditorDeleteBackgroundWithOpacity,
|
|
16
|
+
akEditorDeleteBorder,
|
|
17
|
+
akEditorDeleteIconColor,
|
|
18
|
+
akEditorDropdownActiveBackground,
|
|
19
|
+
akEditorFloatingDialogZIndex,
|
|
20
|
+
akEditorFloatingOverlapPanelZIndex,
|
|
21
|
+
akEditorFloatingPanelZIndex,
|
|
22
|
+
akEditorFocus,
|
|
23
|
+
akEditorFullPageMaxWidth,
|
|
24
|
+
akEditorFullPageDefaultFontSize,
|
|
25
|
+
akEditorFullWidthLayoutWidth,
|
|
26
|
+
akEditorFullWidthLayoutLineLength,
|
|
27
|
+
akEditorGridLineZIndex,
|
|
28
|
+
akEditorGutterPadding,
|
|
29
|
+
akEditorInactiveForeground,
|
|
30
|
+
akEditorMediaResizeHandlerPadding,
|
|
31
|
+
akEditorMediaResizeHandlerPaddingWide,
|
|
32
|
+
akEditorMentionSelected,
|
|
33
|
+
akEditorMenuZIndex,
|
|
34
|
+
akEditorStickyHeaderZIndex,
|
|
35
|
+
akEditorMobileBreakoutPoint,
|
|
36
|
+
akEditorPopupBackground,
|
|
37
|
+
akEditorPopupText,
|
|
38
|
+
akEditorPrimaryButton,
|
|
39
|
+
akEditorSelectedBorderColor,
|
|
40
|
+
akEditorSelectedBorderBoldSize,
|
|
41
|
+
akEditorSelectedBorderSize,
|
|
42
|
+
akEditorSelectedBorder,
|
|
43
|
+
akEditorSelectedBoxShadow,
|
|
44
|
+
akEditorSelectedIconColor,
|
|
45
|
+
akEditorCustomIconSize,
|
|
46
|
+
akEditorSelectedBlanketColor,
|
|
47
|
+
akEditorSelectedBgColor,
|
|
48
|
+
akEditorSelectedBlanketOpacity,
|
|
49
|
+
akEditorSmallZIndex,
|
|
50
|
+
akEditorShadowZIndex,
|
|
51
|
+
akEditorSubtleAccent,
|
|
52
|
+
akEditorSwoopCubicBezier,
|
|
53
|
+
akEditorTableBorder,
|
|
54
|
+
akEditorTableBorderDark,
|
|
55
|
+
akEditorTableBorderDelete,
|
|
56
|
+
akEditorTableBorderRadius,
|
|
57
|
+
akEditorTableBorderSelected,
|
|
58
|
+
akEditorTableCellBackgroundOpacity,
|
|
59
|
+
akEditorTableCellDelete,
|
|
60
|
+
akEditorTableCellMinWidth,
|
|
61
|
+
akEditorTableCellSelected,
|
|
62
|
+
akEditorTableFloatingControls,
|
|
63
|
+
akEditorTableLegacyCellMinWidth,
|
|
64
|
+
akEditorTableNumberColumnWidth,
|
|
65
|
+
akEditorTableToolbar,
|
|
66
|
+
akEditorTableToolbarDark,
|
|
67
|
+
akEditorTableToolbarDelete,
|
|
68
|
+
akEditorTableToolbarSelected,
|
|
69
|
+
akEditorTableToolbarSize,
|
|
70
|
+
akEditorUnitZIndex,
|
|
71
|
+
akEditorWideLayoutWidth,
|
|
72
|
+
akLayoutGutterOffset,
|
|
73
|
+
akRichMediaResizeZIndex,
|
|
74
|
+
blockNodesVerticalMargin,
|
|
75
|
+
breakoutWideScaleRatio,
|
|
76
|
+
editorFontSize,
|
|
77
|
+
gridMediumMaxWidth,
|
|
78
|
+
getAkEditorFullPageMaxWidth,
|
|
79
|
+
relativeSize,
|
|
80
|
+
relativeFontSizeToBase16,
|
|
81
|
+
DEFAULT_EMBED_CARD_HEIGHT,
|
|
82
|
+
DEFAULT_EMBED_CARD_WIDTH,
|
|
83
|
+
akEditorLineHeight,
|
|
84
|
+
akEditorRuleBackground,
|
|
85
|
+
akEditorRuleBorderRadius,
|
|
86
|
+
akEditorSelectedNodeClassName,
|
|
87
|
+
akEditorToolbarKeylineHeight,
|
|
88
|
+
VIEWPORT_SIZES,
|
|
89
|
+
akEditorMobileMaxWidth,
|
|
90
|
+
getTableCellBackgroundDarkModeColors,
|
|
91
|
+
ATLASSIAN_NAVIGATION_HEIGHT,
|
|
92
|
+
} from './consts';
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export {
|
|
2
|
+
akEditorActiveBackground,
|
|
3
|
+
akEditorActiveForeground,
|
|
4
|
+
akEditorBlockquoteBorderColor,
|
|
5
|
+
akEditorBreakoutPadding,
|
|
6
|
+
akEditorCodeBackground,
|
|
7
|
+
akEditorCodeBlockPadding,
|
|
8
|
+
akEditorCodeFontFamily,
|
|
9
|
+
akEditorCodeInlinePadding,
|
|
10
|
+
akEditorContextPanelWidth,
|
|
11
|
+
akEditorDefaultLayoutWidth,
|
|
12
|
+
akEditorDeleteBackground,
|
|
13
|
+
akEditorDeleteBackgroundShaded,
|
|
14
|
+
akEditorDeleteBackgroundWithOpacity,
|
|
15
|
+
akEditorDeleteBorder,
|
|
16
|
+
akEditorDeleteIconColor,
|
|
17
|
+
akEditorDropdownActiveBackground,
|
|
18
|
+
akEditorFloatingDialogZIndex,
|
|
19
|
+
akEditorFloatingOverlapPanelZIndex,
|
|
20
|
+
akEditorFloatingPanelZIndex,
|
|
21
|
+
akEditorFocus,
|
|
22
|
+
akEditorFullPageMaxWidth,
|
|
23
|
+
akEditorFullPageDefaultFontSize,
|
|
24
|
+
akEditorFullWidthLayoutWidth,
|
|
25
|
+
akEditorFullWidthLayoutLineLength,
|
|
26
|
+
akEditorGridLineZIndex,
|
|
27
|
+
akEditorGutterPadding,
|
|
28
|
+
akEditorInactiveForeground,
|
|
29
|
+
akEditorMediaResizeHandlerPadding,
|
|
30
|
+
akEditorMediaResizeHandlerPaddingWide,
|
|
31
|
+
akEditorMentionSelected,
|
|
32
|
+
akEditorMenuZIndex,
|
|
33
|
+
akEditorStickyHeaderZIndex,
|
|
34
|
+
akEditorMobileBreakoutPoint,
|
|
35
|
+
akEditorPopupBackground,
|
|
36
|
+
akEditorPopupText,
|
|
37
|
+
akEditorPrimaryButton,
|
|
38
|
+
akEditorSelectedBorderColor,
|
|
39
|
+
akEditorSelectedBorderBoldSize,
|
|
40
|
+
akEditorSelectedBorderSize,
|
|
41
|
+
akEditorSelectedBorder,
|
|
42
|
+
akEditorSelectedBoxShadow,
|
|
43
|
+
akEditorSelectedIconColor,
|
|
44
|
+
akEditorSelectedBlanketColor,
|
|
45
|
+
akEditorSelectedBgColor,
|
|
46
|
+
akEditorSelectedBlanketOpacity,
|
|
47
|
+
akEditorSmallZIndex,
|
|
48
|
+
akEditorShadowZIndex,
|
|
49
|
+
akEditorSubtleAccent,
|
|
50
|
+
akEditorSwoopCubicBezier,
|
|
51
|
+
akEditorTableBorder,
|
|
52
|
+
akEditorTableBorderDark,
|
|
53
|
+
akEditorTableBorderDelete,
|
|
54
|
+
akEditorTableBorderRadius,
|
|
55
|
+
akEditorTableBorderSelected,
|
|
56
|
+
akEditorTableCellBackgroundOpacity,
|
|
57
|
+
akEditorTableCellDelete,
|
|
58
|
+
akEditorTableCellMinWidth,
|
|
59
|
+
akEditorTableCellSelected,
|
|
60
|
+
akEditorTableFloatingControls,
|
|
61
|
+
akEditorTableLegacyCellMinWidth,
|
|
62
|
+
akEditorTableNumberColumnWidth,
|
|
63
|
+
akEditorTableToolbar,
|
|
64
|
+
akEditorTableToolbarDark,
|
|
65
|
+
akEditorTableToolbarDelete,
|
|
66
|
+
akEditorTableToolbarSelected,
|
|
67
|
+
akEditorTableToolbarSize,
|
|
68
|
+
akEditorUnitZIndex,
|
|
69
|
+
akEditorWideLayoutWidth,
|
|
70
|
+
akLayoutGutterOffset,
|
|
71
|
+
akRichMediaResizeZIndex,
|
|
72
|
+
blockNodesVerticalMargin,
|
|
73
|
+
breakoutWideScaleRatio,
|
|
74
|
+
editorFontSize,
|
|
75
|
+
gridMediumMaxWidth,
|
|
76
|
+
getAkEditorFullPageMaxWidth,
|
|
77
|
+
relativeSize,
|
|
78
|
+
relativeFontSizeToBase16,
|
|
79
|
+
DEFAULT_EMBED_CARD_HEIGHT,
|
|
80
|
+
DEFAULT_EMBED_CARD_WIDTH,
|
|
81
|
+
akEditorLineHeight,
|
|
82
|
+
akEditorRuleBackground,
|
|
83
|
+
akEditorRuleBorderRadius,
|
|
84
|
+
akEditorSelectedNodeClassName,
|
|
85
|
+
akEditorToolbarKeylineHeight,
|
|
86
|
+
VIEWPORT_SIZES,
|
|
87
|
+
akEditorMobileMaxWidth,
|
|
88
|
+
getTableCellBackgroundDarkModeColors,
|
|
89
|
+
ATLASSIAN_NAVIGATION_HEIGHT,
|
|
90
|
+
} from './consts';
|
|
91
|
+
export type { EditorTheme } from './consts';
|
|
92
|
+
|
|
93
|
+
export {
|
|
94
|
+
SelectionStyle,
|
|
95
|
+
getSelectionStyles,
|
|
96
|
+
hideNativeBrowserTextSelectionStyles,
|
|
97
|
+
} from './selection';
|
|
98
|
+
|
|
99
|
+
export { overflowShadow } from './overflow-shadow';
|