@atlaskit/editor-shared-styles 2.2.1 → 2.2.3
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 +12 -0
- package/dist/cjs/overflow-shadow/overflow-shadow.js +3 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/overflow-shadow/overflow-shadow.js +19 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/overflow-shadow/overflow-shadow.js +2 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/consts/consts.d.ts +1 -1
- package/package.json +7 -11
- package/report.api.md +205 -116
- package/src/consts/consts.ts +4 -5
- package/src/overflow-shadow/overflow-shadow.ts +20 -0
- package/dist/types-ts4.0/consts/consts.d.ts +0 -123
- package/dist/types-ts4.0/consts/index.d.ts +0 -2
- package/dist/types-ts4.0/consts/types.d.ts +0 -3
- package/dist/types-ts4.0/index.d.ts +0 -4
- package/dist/types-ts4.0/overflow-shadow/index.d.ts +0 -1
- package/dist/types-ts4.0/overflow-shadow/overflow-shadow.d.ts +0 -4
- package/dist/types-ts4.0/scrollbar-styles.d.ts +0 -1
- package/dist/types-ts4.0/selection/index.d.ts +0 -2
- package/dist/types-ts4.0/selection/types.d.ts +0 -11
- package/dist/types-ts4.0/selection/utils.d.ts +0 -13
- package/dist/types-ts4.0/shortcut/index.d.ts +0 -1
- package/dist/types-ts4.0/shortcut/shortcut.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-shared-styles
|
|
2
2
|
|
|
3
|
+
## 2.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`977ac74443c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/977ac74443c) - DSP-7235: Fixes issue with overflow shadows on code blocks due to layered transparent colors.
|
|
8
|
+
|
|
9
|
+
## 2.2.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 2.2.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -11,12 +11,14 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
11
11
|
|
|
12
12
|
var _react = require("@emotion/react");
|
|
13
13
|
|
|
14
|
+
var _tokens = require("@atlaskit/tokens");
|
|
15
|
+
|
|
14
16
|
var _templateObject;
|
|
15
17
|
|
|
16
18
|
var overflowShadow = function overflowShadow(_ref) {
|
|
17
19
|
var background = _ref.background,
|
|
18
20
|
width = _ref.width;
|
|
19
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n/* shadow cover right */\n linear-gradient(\n to left,\n ", " ", ",\n transparent ", "\n ),\n/* overflow shadow right */\n linear-gradient(\n to left,\n rgba(9, 30, 66, 0.13) 0,\n rgba(99, 114, 130, 0) ", "\n ),\n/* overflow shadow left */\n linear-gradient(\n to right,\n rgba(9, 30, 66, 0.13) 0,\n rgba(99, 114, 130, 0) ", "\n )\n"])), background, width, width, width, width);
|
|
21
|
+
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n/* shadow cover left */\n linear-gradient(\n to right,\n ", " ", ",\n transparent ", "\n ),\n/* shadow cover background left */\n linear-gradient(\n to right,\n ", " ", ",\n transparent ", "\n ),\n/* shadow cover right */\n linear-gradient(\n to left,\n ", " ", ",\n transparent ", "\n ),\n/* shadow cover background right */\n linear-gradient(\n to left,\n ", " ", ",\n transparent ", "\n ),\n/* overflow shadow right */\n linear-gradient(\n to left,\n rgba(9, 30, 66, 0.13) 0,\n rgba(99, 114, 130, 0) ", "\n ),\n/* overflow shadow left */\n linear-gradient(\n to right,\n rgba(9, 30, 66, 0.13) 0,\n rgba(99, 114, 130, 0) ", "\n )\n"])), background, width, width, (0, _tokens.token)('elevation.surface.raised', 'transparent'), width, width, background, width, width, (0, _tokens.token)('elevation.surface.raised', 'transparent'), width, width, width, width);
|
|
20
22
|
};
|
|
21
23
|
|
|
22
24
|
exports.overflowShadow = overflowShadow;
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,15 +1,34 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
export const overflowShadow = ({
|
|
4
5
|
background,
|
|
5
6
|
width
|
|
6
7
|
}) => css`
|
|
8
|
+
/* shadow cover left */
|
|
9
|
+
linear-gradient(
|
|
10
|
+
to right,
|
|
11
|
+
${background} ${width},
|
|
12
|
+
transparent ${width}
|
|
13
|
+
),
|
|
14
|
+
/* shadow cover background left */
|
|
15
|
+
linear-gradient(
|
|
16
|
+
to right,
|
|
17
|
+
${token('elevation.surface.raised', 'transparent')} ${width},
|
|
18
|
+
transparent ${width}
|
|
19
|
+
),
|
|
7
20
|
/* shadow cover right */
|
|
8
21
|
linear-gradient(
|
|
9
22
|
to left,
|
|
10
23
|
${background} ${width},
|
|
11
24
|
transparent ${width}
|
|
12
25
|
),
|
|
26
|
+
/* shadow cover background right */
|
|
27
|
+
linear-gradient(
|
|
28
|
+
to left,
|
|
29
|
+
${token('elevation.surface.raised', 'transparent')} ${width},
|
|
30
|
+
transparent ${width}
|
|
31
|
+
),
|
|
13
32
|
/* overflow shadow right */
|
|
14
33
|
linear-gradient(
|
|
15
34
|
to left,
|
package/dist/es2019/version.json
CHANGED
|
@@ -4,8 +4,9 @@ var _templateObject;
|
|
|
4
4
|
|
|
5
5
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
6
6
|
import { css } from '@emotion/react';
|
|
7
|
+
import { token } from '@atlaskit/tokens';
|
|
7
8
|
export var overflowShadow = function overflowShadow(_ref) {
|
|
8
9
|
var background = _ref.background,
|
|
9
10
|
width = _ref.width;
|
|
10
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n/* shadow cover right */\n linear-gradient(\n to left,\n ", " ", ",\n transparent ", "\n ),\n/* overflow shadow right */\n linear-gradient(\n to left,\n rgba(9, 30, 66, 0.13) 0,\n rgba(99, 114, 130, 0) ", "\n ),\n/* overflow shadow left */\n linear-gradient(\n to right,\n rgba(9, 30, 66, 0.13) 0,\n rgba(99, 114, 130, 0) ", "\n )\n"])), background, width, width, width, width);
|
|
11
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n/* shadow cover left */\n linear-gradient(\n to right,\n ", " ", ",\n transparent ", "\n ),\n/* shadow cover background left */\n linear-gradient(\n to right,\n ", " ", ",\n transparent ", "\n ),\n/* shadow cover right */\n linear-gradient(\n to left,\n ", " ", ",\n transparent ", "\n ),\n/* shadow cover background right */\n linear-gradient(\n to left,\n ", " ", ",\n transparent ", "\n ),\n/* overflow shadow right */\n linear-gradient(\n to left,\n rgba(9, 30, 66, 0.13) 0,\n rgba(99, 114, 130, 0) ", "\n ),\n/* overflow shadow left */\n linear-gradient(\n to right,\n rgba(9, 30, 66, 0.13) 0,\n rgba(99, 114, 130, 0) ", "\n )\n"])), background, width, width, token('elevation.surface.raised', 'transparent'), width, width, background, width, width, token('elevation.surface.raised', 'transparent'), width, width, width, width);
|
|
11
12
|
};
|
package/dist/esm/version.json
CHANGED
|
@@ -84,7 +84,7 @@ export declare const akEditorSelectedNodeClassName = "ak-editor-selected-node";
|
|
|
84
84
|
export declare const editorFontSize: ({ theme }: {
|
|
85
85
|
theme: EditorTheme;
|
|
86
86
|
}) => number;
|
|
87
|
-
export declare const relativeSize: (multiplier: number) => ({ theme
|
|
87
|
+
export declare const relativeSize: (multiplier: number) => ({ theme }: {
|
|
88
88
|
theme: EditorTheme;
|
|
89
89
|
}) => number;
|
|
90
90
|
export declare const relativeFontSizeToBase16: (px: number | string) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-shared-styles",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "Style values used in the editor/renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,13 +12,6 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
-
"typesVersions": {
|
|
16
|
-
">=4.0 <4.5": {
|
|
17
|
-
"*": [
|
|
18
|
-
"dist/types-ts4.0/*"
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
15
|
"sideEffects": false,
|
|
23
16
|
"atlaskit:src": "src/index.ts",
|
|
24
17
|
"atlassian": {
|
|
@@ -35,7 +28,7 @@
|
|
|
35
28
|
},
|
|
36
29
|
"dependencies": {
|
|
37
30
|
"@atlaskit/theme": "^12.2.0",
|
|
38
|
-
"@atlaskit/tokens": "^0.
|
|
31
|
+
"@atlaskit/tokens": "^0.11.0",
|
|
39
32
|
"@babel/runtime": "^7.0.0",
|
|
40
33
|
"@emotion/react": "^11.7.1"
|
|
41
34
|
},
|
|
@@ -53,8 +46,11 @@
|
|
|
53
46
|
},
|
|
54
47
|
"@repo/internal": {
|
|
55
48
|
"deprecation": "no-deprecated-imports",
|
|
56
|
-
"theming": "tokens"
|
|
49
|
+
"theming": "tokens",
|
|
50
|
+
"styling": [
|
|
51
|
+
"emotion"
|
|
52
|
+
]
|
|
57
53
|
}
|
|
58
54
|
},
|
|
59
55
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
60
|
-
}
|
|
56
|
+
}
|
package/report.api.md
CHANGED
|
@@ -1,205 +1,289 @@
|
|
|
1
|
+
<!-- API Report Version: 2.2 -->
|
|
2
|
+
|
|
1
3
|
## API Report File for "@atlaskit/editor-shared-styles"
|
|
2
4
|
|
|
3
|
-
> Do not edit this file.
|
|
5
|
+
> Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
|
|
6
|
+
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
|
+
|
|
8
|
+
### Table of contents
|
|
9
|
+
|
|
10
|
+
- [Main Entry Types](#main-entry-types)
|
|
11
|
+
|
|
12
|
+
### Main Entry Types
|
|
13
|
+
|
|
14
|
+
<!--SECTION START: Main Entry Types-->
|
|
4
15
|
|
|
5
16
|
```ts
|
|
6
17
|
import { SerializedStyles } from '@emotion/react';
|
|
7
18
|
|
|
8
|
-
|
|
19
|
+
// @public (undocumented)
|
|
20
|
+
export const akEditorActiveBackground = '#42526E';
|
|
9
21
|
|
|
10
|
-
|
|
22
|
+
// @public (undocumented)
|
|
23
|
+
export const akEditorActiveForeground = '#FFFFFF';
|
|
11
24
|
|
|
12
|
-
|
|
25
|
+
// @public (undocumented)
|
|
26
|
+
export const akEditorBlockquoteBorderColor = '#DFE1E6';
|
|
13
27
|
|
|
14
|
-
|
|
28
|
+
// @public (undocumented)
|
|
29
|
+
export const akEditorBreakoutPadding = 96;
|
|
15
30
|
|
|
16
|
-
|
|
31
|
+
// @public (undocumented)
|
|
32
|
+
export const akEditorCodeBackground = '#F4F5F7';
|
|
17
33
|
|
|
18
|
-
|
|
34
|
+
// @public (undocumented)
|
|
35
|
+
export const akEditorCodeBlockPadding = '12px';
|
|
19
36
|
|
|
20
|
-
|
|
37
|
+
// @public (undocumented)
|
|
38
|
+
export const akEditorCodeFontFamily: string;
|
|
21
39
|
|
|
22
|
-
|
|
40
|
+
// @public (undocumented)
|
|
41
|
+
export const akEditorCodeInlinePadding = '2px 4px';
|
|
23
42
|
|
|
24
|
-
|
|
43
|
+
// @public (undocumented)
|
|
44
|
+
export const akEditorContextPanelWidth = 320;
|
|
25
45
|
|
|
26
|
-
|
|
46
|
+
// @public (undocumented)
|
|
47
|
+
export const akEditorDefaultLayoutWidth = 760;
|
|
27
48
|
|
|
28
|
-
|
|
49
|
+
// @public (undocumented)
|
|
50
|
+
export const akEditorDeleteBackground = '#FFEBE6';
|
|
29
51
|
|
|
30
|
-
|
|
52
|
+
// @public (undocumented)
|
|
53
|
+
export const akEditorDeleteBackgroundShaded = '#FFEBE6';
|
|
31
54
|
|
|
32
|
-
|
|
33
|
-
|
|
55
|
+
// @public (undocumented)
|
|
56
|
+
export const akEditorDeleteBackgroundWithOpacity = 'rgba(255, 189, 173, 0.5)';
|
|
34
57
|
|
|
35
|
-
|
|
58
|
+
// @public (undocumented)
|
|
59
|
+
export const akEditorDeleteBorder = '#FF5630';
|
|
36
60
|
|
|
37
|
-
|
|
61
|
+
// @public (undocumented)
|
|
62
|
+
export const akEditorDeleteIconColor = '#DE350B';
|
|
38
63
|
|
|
39
|
-
|
|
64
|
+
// @public (undocumented)
|
|
65
|
+
export const akEditorDropdownActiveBackground = '#091E42';
|
|
40
66
|
|
|
41
|
-
|
|
67
|
+
// @public (undocumented)
|
|
68
|
+
export const akEditorFloatingDialogZIndex: number;
|
|
42
69
|
|
|
43
|
-
|
|
70
|
+
// @public (undocumented)
|
|
71
|
+
export const akEditorFloatingOverlapPanelZIndex: number;
|
|
44
72
|
|
|
45
|
-
|
|
73
|
+
// @public (undocumented)
|
|
74
|
+
export const akEditorFloatingPanelZIndex: 400;
|
|
46
75
|
|
|
47
|
-
|
|
76
|
+
// @public (undocumented)
|
|
77
|
+
export const akEditorFocus = '#4C9AFF';
|
|
48
78
|
|
|
49
|
-
|
|
79
|
+
// @public (undocumented)
|
|
80
|
+
export const akEditorFullPageDefaultFontSize = 16;
|
|
50
81
|
|
|
51
|
-
|
|
82
|
+
// @public (undocumented)
|
|
83
|
+
export const akEditorFullPageMaxWidth = 680;
|
|
52
84
|
|
|
53
|
-
|
|
85
|
+
// @public (undocumented)
|
|
86
|
+
export const akEditorFullWidthLayoutLineLength = 1792;
|
|
54
87
|
|
|
55
|
-
|
|
88
|
+
// @public (undocumented)
|
|
89
|
+
export const akEditorFullWidthLayoutWidth = 1800;
|
|
56
90
|
|
|
57
|
-
|
|
91
|
+
// @public (undocumented)
|
|
92
|
+
export const akEditorGridLineZIndex = 9999;
|
|
58
93
|
|
|
59
|
-
|
|
94
|
+
// @public (undocumented)
|
|
95
|
+
export const akEditorGutterPadding = 32;
|
|
60
96
|
|
|
61
|
-
|
|
97
|
+
// @public (undocumented)
|
|
98
|
+
export const akEditorInactiveForeground = '#42526E';
|
|
62
99
|
|
|
63
|
-
|
|
100
|
+
// @public (undocumented)
|
|
101
|
+
export const akEditorLineHeight = 1.714;
|
|
64
102
|
|
|
65
|
-
|
|
103
|
+
// @public (undocumented)
|
|
104
|
+
export const akEditorMediaResizeHandlerPadding = 4;
|
|
66
105
|
|
|
67
|
-
|
|
106
|
+
// @public (undocumented)
|
|
107
|
+
export const akEditorMediaResizeHandlerPaddingWide = 12;
|
|
68
108
|
|
|
69
|
-
|
|
109
|
+
// @public (undocumented)
|
|
110
|
+
export const akEditorMentionSelected = '#7A869A';
|
|
70
111
|
|
|
71
|
-
|
|
112
|
+
// @public (undocumented)
|
|
113
|
+
export const akEditorMenuZIndex: 500;
|
|
72
114
|
|
|
73
|
-
|
|
115
|
+
// @public (undocumented)
|
|
116
|
+
export const akEditorMobileBreakoutPoint = 720;
|
|
74
117
|
|
|
75
|
-
|
|
118
|
+
// @public (undocumented)
|
|
119
|
+
export const akEditorMobileMaxWidth = 0;
|
|
76
120
|
|
|
77
|
-
|
|
121
|
+
// @public (undocumented)
|
|
122
|
+
export const akEditorPopupBackground = '#253858';
|
|
78
123
|
|
|
79
|
-
|
|
124
|
+
// @public (undocumented)
|
|
125
|
+
export const akEditorPopupText = '#DEEBFF';
|
|
80
126
|
|
|
81
|
-
|
|
127
|
+
// @public (undocumented)
|
|
128
|
+
export const akEditorPrimaryButton = '#0052CC';
|
|
82
129
|
|
|
83
|
-
|
|
130
|
+
// @public (undocumented)
|
|
131
|
+
export const akEditorRuleBackground = '#EBECF0';
|
|
84
132
|
|
|
85
|
-
|
|
133
|
+
// @public (undocumented)
|
|
134
|
+
export const akEditorRuleBorderRadius = '1px';
|
|
86
135
|
|
|
87
|
-
|
|
136
|
+
// @public (undocumented)
|
|
137
|
+
export const akEditorSelectedBgColor = '#DEEBFF';
|
|
88
138
|
|
|
89
|
-
|
|
139
|
+
// @public (undocumented)
|
|
140
|
+
export const akEditorSelectedBlanketColor = '#B3D4FF';
|
|
90
141
|
|
|
91
|
-
|
|
142
|
+
// @public (undocumented)
|
|
143
|
+
export const akEditorSelectedBlanketOpacity = 0.3;
|
|
92
144
|
|
|
93
|
-
|
|
145
|
+
// @public (undocumented)
|
|
146
|
+
export const akEditorSelectedBorder: string;
|
|
94
147
|
|
|
95
|
-
|
|
148
|
+
// @public (undocumented)
|
|
149
|
+
export const akEditorSelectedBorderBoldSize = 2;
|
|
96
150
|
|
|
97
|
-
|
|
151
|
+
// @public (undocumented)
|
|
152
|
+
export const akEditorSelectedBorderColor = '#0065FF';
|
|
98
153
|
|
|
99
|
-
|
|
154
|
+
// @public (undocumented)
|
|
155
|
+
export const akEditorSelectedBorderSize = 1;
|
|
100
156
|
|
|
101
|
-
|
|
157
|
+
// @public (undocumented)
|
|
158
|
+
export const akEditorSelectedBoxShadow: string;
|
|
102
159
|
|
|
103
|
-
|
|
160
|
+
// @public (undocumented)
|
|
161
|
+
export const akEditorSelectedIconColor = '#0052CC';
|
|
104
162
|
|
|
105
|
-
|
|
163
|
+
// @public (undocumented)
|
|
164
|
+
export const akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
106
165
|
|
|
107
|
-
|
|
166
|
+
// @public (undocumented)
|
|
167
|
+
export const akEditorShadowZIndex = 2;
|
|
108
168
|
|
|
109
|
-
|
|
169
|
+
// @public (undocumented)
|
|
170
|
+
export const akEditorSmallZIndex: number;
|
|
110
171
|
|
|
111
|
-
|
|
172
|
+
// @public (undocumented)
|
|
173
|
+
export const akEditorStickyHeaderZIndex = 11;
|
|
112
174
|
|
|
113
|
-
|
|
175
|
+
// @public (undocumented)
|
|
176
|
+
export const akEditorSubtleAccent = '#DFE1E6';
|
|
114
177
|
|
|
115
|
-
|
|
178
|
+
// @public (undocumented)
|
|
179
|
+
export const akEditorSwoopCubicBezier = 'cubic-bezier(0.15, 1, 0.3, 1)';
|
|
116
180
|
|
|
117
|
-
|
|
181
|
+
// @public (undocumented)
|
|
182
|
+
export const akEditorTableBorder = '#C1C7D0';
|
|
118
183
|
|
|
119
|
-
|
|
184
|
+
// @public (undocumented)
|
|
185
|
+
export const akEditorTableBorderDark = '#3B475C';
|
|
120
186
|
|
|
121
|
-
|
|
187
|
+
// @public (undocumented)
|
|
188
|
+
export const akEditorTableBorderDelete = '#FF5630';
|
|
122
189
|
|
|
123
|
-
|
|
190
|
+
// @public (undocumented)
|
|
191
|
+
export const akEditorTableBorderRadius = '3px';
|
|
124
192
|
|
|
125
|
-
|
|
193
|
+
// @public (undocumented)
|
|
194
|
+
export const akEditorTableBorderSelected = '#0065FF';
|
|
126
195
|
|
|
127
|
-
|
|
196
|
+
// @public (undocumented)
|
|
197
|
+
export const akEditorTableCellBackgroundOpacity = 0.5;
|
|
128
198
|
|
|
129
|
-
|
|
199
|
+
// @public (undocumented)
|
|
200
|
+
export const akEditorTableCellDelete = '#FFEBE6';
|
|
130
201
|
|
|
131
|
-
|
|
202
|
+
// @public (undocumented)
|
|
203
|
+
export const akEditorTableCellMinWidth = 48;
|
|
132
204
|
|
|
133
|
-
|
|
205
|
+
// @public (undocumented)
|
|
206
|
+
export const akEditorTableCellSelected = '#B3D4FF';
|
|
134
207
|
|
|
135
|
-
|
|
208
|
+
// @public (undocumented)
|
|
209
|
+
export const akEditorTableFloatingControls = '#F4F5F7';
|
|
136
210
|
|
|
137
|
-
|
|
211
|
+
// @public (undocumented)
|
|
212
|
+
export const akEditorTableLegacyCellMinWidth = 128;
|
|
138
213
|
|
|
139
|
-
|
|
214
|
+
// @public (undocumented)
|
|
215
|
+
export const akEditorTableNumberColumnWidth = 42;
|
|
140
216
|
|
|
141
|
-
|
|
217
|
+
// @public (undocumented)
|
|
218
|
+
export const akEditorTableToolbar = '#F4F5F7';
|
|
142
219
|
|
|
143
|
-
|
|
220
|
+
// @public (undocumented)
|
|
221
|
+
export const akEditorTableToolbarDark = '#283447';
|
|
144
222
|
|
|
145
|
-
|
|
223
|
+
// @public (undocumented)
|
|
224
|
+
export const akEditorTableToolbarDelete = '#FFBDAD';
|
|
146
225
|
|
|
147
|
-
|
|
226
|
+
// @public (undocumented)
|
|
227
|
+
export const akEditorTableToolbarSelected = '#4C9AFF';
|
|
148
228
|
|
|
149
|
-
|
|
229
|
+
// @public (undocumented)
|
|
230
|
+
export const akEditorTableToolbarSize = 11;
|
|
150
231
|
|
|
151
|
-
|
|
232
|
+
// @public (undocumented)
|
|
233
|
+
export const akEditorToolbarKeylineHeight = 2;
|
|
152
234
|
|
|
153
|
-
|
|
235
|
+
// @public (undocumented)
|
|
236
|
+
export const akEditorUnitZIndex = 1;
|
|
154
237
|
|
|
155
|
-
|
|
238
|
+
// @public (undocumented)
|
|
239
|
+
export const akEditorWideLayoutWidth = 960;
|
|
156
240
|
|
|
157
|
-
|
|
241
|
+
// @public (undocumented)
|
|
242
|
+
export const akLayoutGutterOffset: number;
|
|
158
243
|
|
|
159
|
-
|
|
244
|
+
// @public (undocumented)
|
|
245
|
+
export const akRichMediaResizeZIndex: number;
|
|
160
246
|
|
|
161
|
-
|
|
247
|
+
// @public (undocumented)
|
|
248
|
+
export const ATLASSIAN_NAVIGATION_HEIGHT = '56px';
|
|
162
249
|
|
|
163
|
-
|
|
250
|
+
// @public (undocumented)
|
|
251
|
+
export const blockNodesVerticalMargin = '0.75rem';
|
|
164
252
|
|
|
165
|
-
|
|
253
|
+
// @public (undocumented)
|
|
254
|
+
export const breakoutWideScaleRatio = 1.33;
|
|
166
255
|
|
|
167
|
-
|
|
256
|
+
// @public (undocumented)
|
|
257
|
+
export const DEFAULT_EMBED_CARD_HEIGHT = 480;
|
|
168
258
|
|
|
169
|
-
|
|
259
|
+
// @public (undocumented)
|
|
260
|
+
export const DEFAULT_EMBED_CARD_WIDTH = 680;
|
|
170
261
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}: {
|
|
174
|
-
theme: EditorTheme;
|
|
175
|
-
}) => number;
|
|
262
|
+
// @public (undocumented)
|
|
263
|
+
export const editorFontSize: ({ theme }: { theme: EditorTheme }) => number;
|
|
176
264
|
|
|
177
|
-
|
|
265
|
+
// @public (undocumented)
|
|
266
|
+
export type EditorTheme = {
|
|
178
267
|
baseFontSize?: number;
|
|
179
268
|
};
|
|
180
269
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
* Pass in which selection style properties you want and it will return css string of necessary styles
|
|
184
|
-
*
|
|
185
|
-
* eg.
|
|
186
|
-
* .expand.ak-editor-selected-node {
|
|
187
|
-
* ${getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket])}
|
|
188
|
-
* }
|
|
189
|
-
*
|
|
190
|
-
*/
|
|
191
|
-
export declare const getSelectionStyles: (
|
|
270
|
+
// @public
|
|
271
|
+
export const getSelectionStyles: (
|
|
192
272
|
selectionStyles: Array<SelectionStyle>,
|
|
193
273
|
) => string;
|
|
194
274
|
|
|
195
|
-
|
|
275
|
+
// @public (undocumented)
|
|
276
|
+
export const getTableCellBackgroundDarkModeColors: string;
|
|
196
277
|
|
|
197
|
-
|
|
278
|
+
// @public (undocumented)
|
|
279
|
+
export const gridMediumMaxWidth = 1024;
|
|
198
280
|
|
|
199
|
-
|
|
281
|
+
// @public (undocumented)
|
|
282
|
+
export const hideNativeBrowserTextSelectionStyles =
|
|
200
283
|
'\n ::selection,*::selection {\n background-color: transparent;\n }\n ::-moz-selection,*::-moz-selection {\n background-color: transparent;\n }\n';
|
|
201
284
|
|
|
202
|
-
|
|
285
|
+
// @public (undocumented)
|
|
286
|
+
export const overflowShadow: ({
|
|
203
287
|
background,
|
|
204
288
|
width,
|
|
205
289
|
}: {
|
|
@@ -207,25 +291,28 @@ export declare const overflowShadow: ({
|
|
|
207
291
|
width: string;
|
|
208
292
|
}) => SerializedStyles;
|
|
209
293
|
|
|
210
|
-
|
|
294
|
+
// @public (undocumented)
|
|
295
|
+
export const relativeFontSizeToBase16: (px: number | string) => string;
|
|
211
296
|
|
|
212
|
-
|
|
297
|
+
// @public (undocumented)
|
|
298
|
+
export const relativeSize: (
|
|
213
299
|
multiplier: number,
|
|
214
300
|
) => ({ theme }: { theme: EditorTheme }) => number;
|
|
215
301
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
* file in editor-core
|
|
220
|
-
*/
|
|
221
|
-
export declare enum SelectionStyle {
|
|
222
|
-
Border = 0,
|
|
223
|
-
BoxShadow = 1,
|
|
302
|
+
// @public
|
|
303
|
+
export enum SelectionStyle {
|
|
304
|
+
// (undocumented)
|
|
224
305
|
Background = 2,
|
|
306
|
+
// (undocumented)
|
|
225
307
|
Blanket = 3,
|
|
308
|
+
// (undocumented)
|
|
309
|
+
Border = 0,
|
|
310
|
+
// (undocumented)
|
|
311
|
+
BoxShadow = 1,
|
|
226
312
|
}
|
|
227
313
|
|
|
228
|
-
|
|
314
|
+
// @public (undocumented)
|
|
315
|
+
export const VIEWPORT_SIZES: {
|
|
229
316
|
laptopHiDPI: {
|
|
230
317
|
width: number;
|
|
231
318
|
height: number;
|
|
@@ -256,5 +343,7 @@ export declare const VIEWPORT_SIZES: {
|
|
|
256
343
|
};
|
|
257
344
|
};
|
|
258
345
|
|
|
259
|
-
|
|
346
|
+
// (No @packageDocumentation comment for this package)
|
|
260
347
|
```
|
|
348
|
+
|
|
349
|
+
<!--SECTION END: Main Entry Types-->
|
package/src/consts/consts.ts
CHANGED
|
@@ -134,11 +134,10 @@ export const akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
|
134
134
|
export const editorFontSize = ({ theme }: { theme: EditorTheme }) =>
|
|
135
135
|
theme && theme.baseFontSize ? theme.baseFontSize : defaultFontSize();
|
|
136
136
|
|
|
137
|
-
export const relativeSize =
|
|
138
|
-
|
|
139
|
-
}: {
|
|
140
|
-
|
|
141
|
-
}) => editorFontSize({ theme }) * multiplier;
|
|
137
|
+
export const relativeSize =
|
|
138
|
+
(multiplier: number) =>
|
|
139
|
+
({ theme }: { theme: EditorTheme }) =>
|
|
140
|
+
editorFontSize({ theme }) * multiplier;
|
|
142
141
|
|
|
143
142
|
export const relativeFontSizeToBase16 = (px: number | string) => {
|
|
144
143
|
if (typeof px === 'string') {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
5
|
+
|
|
4
6
|
export const overflowShadow = ({
|
|
5
7
|
background,
|
|
6
8
|
width,
|
|
@@ -8,12 +10,30 @@ export const overflowShadow = ({
|
|
|
8
10
|
background: string;
|
|
9
11
|
width: string;
|
|
10
12
|
}) => css`
|
|
13
|
+
/* shadow cover left */
|
|
14
|
+
linear-gradient(
|
|
15
|
+
to right,
|
|
16
|
+
${background} ${width},
|
|
17
|
+
transparent ${width}
|
|
18
|
+
),
|
|
19
|
+
/* shadow cover background left */
|
|
20
|
+
linear-gradient(
|
|
21
|
+
to right,
|
|
22
|
+
${token('elevation.surface.raised', 'transparent')} ${width},
|
|
23
|
+
transparent ${width}
|
|
24
|
+
),
|
|
11
25
|
/* shadow cover right */
|
|
12
26
|
linear-gradient(
|
|
13
27
|
to left,
|
|
14
28
|
${background} ${width},
|
|
15
29
|
transparent ${width}
|
|
16
30
|
),
|
|
31
|
+
/* shadow cover background right */
|
|
32
|
+
linear-gradient(
|
|
33
|
+
to left,
|
|
34
|
+
${token('elevation.surface.raised', 'transparent')} ${width},
|
|
35
|
+
transparent ${width}
|
|
36
|
+
),
|
|
17
37
|
/* overflow shadow right */
|
|
18
38
|
linear-gradient(
|
|
19
39
|
to left,
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { EditorTheme } from './types';
|
|
2
|
-
export declare const akEditorFullPageDefaultFontSize = 16;
|
|
3
|
-
export declare const akEditorCodeFontFamily: string;
|
|
4
|
-
export declare const akEditorInactiveForeground = "#42526E";
|
|
5
|
-
export declare const akEditorFocus = "#4C9AFF";
|
|
6
|
-
export declare const akEditorSubtleAccent = "#DFE1E6";
|
|
7
|
-
export declare const akEditorActiveBackground = "#42526E";
|
|
8
|
-
export declare const akEditorActiveForeground = "#FFFFFF";
|
|
9
|
-
export declare const akEditorBlockquoteBorderColor = "#DFE1E6";
|
|
10
|
-
export declare const akEditorDropdownActiveBackground = "#091E42";
|
|
11
|
-
export declare const akEditorPopupBackground = "#253858";
|
|
12
|
-
export declare const akEditorPopupText = "#DEEBFF";
|
|
13
|
-
export declare const akEditorPrimaryButton = "#0052CC";
|
|
14
|
-
export declare const akEditorCodeBackground = "#F4F5F7";
|
|
15
|
-
export declare const akEditorCodeBlockPadding = "12px";
|
|
16
|
-
export declare const akEditorCodeInlinePadding = "2px 4px";
|
|
17
|
-
export declare const akEditorDeleteBackground = "#FFEBE6";
|
|
18
|
-
export declare const akEditorDeleteBackgroundShaded = "#FFEBE6";
|
|
19
|
-
export declare const akEditorDeleteBackgroundWithOpacity = "rgba(255, 189, 173, 0.5)";
|
|
20
|
-
export declare const akEditorDeleteBorder = "#FF5630";
|
|
21
|
-
export declare const akEditorDeleteIconColor = "#DE350B";
|
|
22
|
-
export declare const akEditorCustomIconSize = 20;
|
|
23
|
-
export declare const akEditorSelectedBorderColor = "#0065FF";
|
|
24
|
-
export declare const akEditorSelectedBgColor = "#DEEBFF";
|
|
25
|
-
export declare const akEditorSelectedBlanketColor = "#B3D4FF";
|
|
26
|
-
export declare const akEditorSelectedBorderSize = 1;
|
|
27
|
-
export declare const akEditorSelectedBorder: string;
|
|
28
|
-
export declare const akEditorSelectedBoxShadow: string;
|
|
29
|
-
export declare const akEditorSelectedIconColor = "#0052CC";
|
|
30
|
-
export declare const akEditorSelectedBorderBoldSize = 2;
|
|
31
|
-
export declare const akEditorSelectedBlanketOpacity = 0.3;
|
|
32
|
-
export declare const akEditorUnitZIndex = 1;
|
|
33
|
-
export declare const akEditorShadowZIndex = 2;
|
|
34
|
-
export declare const akEditorStickyHeaderZIndex = 11;
|
|
35
|
-
export declare const akEditorSmallZIndex: number;
|
|
36
|
-
export declare const akEditorGridLineZIndex = 9999;
|
|
37
|
-
export declare const akEditorMenuZIndex: 500;
|
|
38
|
-
export declare const akEditorFloatingPanelZIndex: 400;
|
|
39
|
-
export declare const akEditorFloatingDialogZIndex: number;
|
|
40
|
-
export declare const akEditorFloatingOverlapPanelZIndex: number;
|
|
41
|
-
export declare const akEditorMentionSelected = "#7A869A";
|
|
42
|
-
export declare const akEditorTableToolbarSize = 11;
|
|
43
|
-
export declare const akEditorTableBorder = "#C1C7D0";
|
|
44
|
-
export declare const akEditorTableBorderDark = "#3B475C";
|
|
45
|
-
export declare const akEditorTableToolbar = "#F4F5F7";
|
|
46
|
-
export declare const akEditorTableToolbarDark = "#283447";
|
|
47
|
-
export declare const akEditorTableFloatingControls = "#F4F5F7";
|
|
48
|
-
export declare const akEditorTableCellSelected = "#B3D4FF";
|
|
49
|
-
export declare const akEditorTableToolbarSelected = "#4C9AFF";
|
|
50
|
-
export declare const akEditorTableBorderSelected = "#0065FF";
|
|
51
|
-
export declare const akEditorTableCellDelete = "#FFEBE6";
|
|
52
|
-
export declare const akEditorTableBorderDelete = "#FF5630";
|
|
53
|
-
export declare const akEditorTableToolbarDelete = "#FFBDAD";
|
|
54
|
-
export declare const akEditorTableBorderRadius = "3px";
|
|
55
|
-
export declare const akEditorTableCellBackgroundOpacity = 0.5;
|
|
56
|
-
export declare const akEditorFullPageMaxWidth = 680;
|
|
57
|
-
export declare const akEditorDefaultLayoutWidth = 760;
|
|
58
|
-
export declare const akEditorWideLayoutWidth = 960;
|
|
59
|
-
export declare const akEditorFullWidthLayoutWidth = 1800;
|
|
60
|
-
export declare const akEditorFullWidthLayoutLineLength = 1792;
|
|
61
|
-
export declare const akEditorTableNumberColumnWidth = 42;
|
|
62
|
-
export declare const akEditorBreakoutPadding = 96;
|
|
63
|
-
export declare const akEditorGutterPadding = 32;
|
|
64
|
-
export declare const akEditorMobileBreakoutPoint = 720;
|
|
65
|
-
export declare const akEditorTableCellMinWidth = 48;
|
|
66
|
-
export declare const akEditorTableLegacyCellMinWidth = 128;
|
|
67
|
-
export declare const akEditorMediaResizeHandlerPaddingWide = 12;
|
|
68
|
-
export declare const akEditorMediaResizeHandlerPadding = 4;
|
|
69
|
-
export declare const akEditorSwoopCubicBezier = "cubic-bezier(0.15, 1, 0.3, 1)";
|
|
70
|
-
export declare const gridMediumMaxWidth = 1024;
|
|
71
|
-
export declare const breakoutWideScaleRatio = 1.33;
|
|
72
|
-
export declare const akRichMediaResizeZIndex: number;
|
|
73
|
-
export declare const akLayoutGutterOffset: number;
|
|
74
|
-
export declare const akEditorLineHeight = 1.714;
|
|
75
|
-
export declare const akEditorRuleBackground = "#EBECF0";
|
|
76
|
-
export declare const akEditorRuleBorderRadius = "1px";
|
|
77
|
-
export declare const akEditorToolbarKeylineHeight = 2;
|
|
78
|
-
export declare const akEditorContextPanelWidth = 320;
|
|
79
|
-
export declare const blockNodesVerticalMargin = "0.75rem";
|
|
80
|
-
export declare const DEFAULT_EMBED_CARD_WIDTH = 680;
|
|
81
|
-
export declare const DEFAULT_EMBED_CARD_HEIGHT = 480;
|
|
82
|
-
export declare const ATLASSIAN_NAVIGATION_HEIGHT = "56px";
|
|
83
|
-
export declare const akEditorSelectedNodeClassName = "ak-editor-selected-node";
|
|
84
|
-
export declare const editorFontSize: ({ theme }: {
|
|
85
|
-
theme: EditorTheme;
|
|
86
|
-
}) => number;
|
|
87
|
-
export declare const relativeSize: (multiplier: number) => ({ theme, }: {
|
|
88
|
-
theme: EditorTheme;
|
|
89
|
-
}) => number;
|
|
90
|
-
export declare const relativeFontSizeToBase16: (px: number | string) => string;
|
|
91
|
-
export declare const VIEWPORT_SIZES: {
|
|
92
|
-
laptopHiDPI: {
|
|
93
|
-
width: number;
|
|
94
|
-
height: number;
|
|
95
|
-
};
|
|
96
|
-
laptopMDPI: {
|
|
97
|
-
width: number;
|
|
98
|
-
height: number;
|
|
99
|
-
};
|
|
100
|
-
tabletL: {
|
|
101
|
-
width: number;
|
|
102
|
-
height: number;
|
|
103
|
-
};
|
|
104
|
-
tabletS: {
|
|
105
|
-
width: number;
|
|
106
|
-
height: number;
|
|
107
|
-
};
|
|
108
|
-
mobileM: {
|
|
109
|
-
width: number;
|
|
110
|
-
height: number;
|
|
111
|
-
};
|
|
112
|
-
mobileS: {
|
|
113
|
-
width: number;
|
|
114
|
-
height: number;
|
|
115
|
-
};
|
|
116
|
-
mobileXS: {
|
|
117
|
-
width: number;
|
|
118
|
-
height: number;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
export declare const akEditorMobileMaxWidth = 0;
|
|
122
|
-
export declare const getTableCellBackgroundDarkModeColors: string;
|
|
123
|
-
export declare function getTableCellBackgroundDarkModeColorCSS(colorName: string, colorValue: string): string;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export type { EditorTheme } from './types';
|
|
2
|
-
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, 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, akEditorTableCellSelected, akEditorTableFloatingControls, akEditorTableLegacyCellMinWidth, akEditorTableNumberColumnWidth, akEditorTableToolbar, akEditorTableToolbarDark, akEditorTableToolbarDelete, akEditorTableToolbarSelected, akEditorTableToolbarSize, akEditorUnitZIndex, akEditorWideLayoutWidth, akLayoutGutterOffset, akRichMediaResizeZIndex, blockNodesVerticalMargin, breakoutWideScaleRatio, editorFontSize, gridMediumMaxWidth, relativeSize, relativeFontSizeToBase16, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH, akEditorLineHeight, akEditorRuleBackground, akEditorRuleBorderRadius, akEditorSelectedNodeClassName, akEditorToolbarKeylineHeight, VIEWPORT_SIZES, akEditorMobileMaxWidth, getTableCellBackgroundDarkModeColors, ATLASSIAN_NAVIGATION_HEIGHT, } from './consts';
|
|
@@ -1,4 +0,0 @@
|
|
|
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, akEditorInactiveForeground, akEditorMediaResizeHandlerPadding, akEditorMediaResizeHandlerPaddingWide, akEditorMentionSelected, akEditorMenuZIndex, akEditorStickyHeaderZIndex, akEditorMobileBreakoutPoint, akEditorPopupBackground, akEditorPopupText, akEditorPrimaryButton, akEditorSelectedBorderColor, akEditorSelectedBorderBoldSize, akEditorSelectedBorderSize, akEditorSelectedBorder, akEditorSelectedBoxShadow, akEditorSelectedIconColor, akEditorSelectedBlanketColor, akEditorSelectedBgColor, akEditorSelectedBlanketOpacity, akEditorSmallZIndex, akEditorShadowZIndex, akEditorSubtleAccent, akEditorSwoopCubicBezier, akEditorTableBorder, akEditorTableBorderDark, akEditorTableBorderDelete, akEditorTableBorderRadius, akEditorTableBorderSelected, akEditorTableCellBackgroundOpacity, akEditorTableCellDelete, akEditorTableCellMinWidth, akEditorTableCellSelected, akEditorTableFloatingControls, akEditorTableLegacyCellMinWidth, akEditorTableNumberColumnWidth, akEditorTableToolbar, akEditorTableToolbarDark, akEditorTableToolbarDelete, akEditorTableToolbarSelected, akEditorTableToolbarSize, akEditorUnitZIndex, akEditorWideLayoutWidth, akLayoutGutterOffset, akRichMediaResizeZIndex, blockNodesVerticalMargin, breakoutWideScaleRatio, editorFontSize, gridMediumMaxWidth, relativeSize, relativeFontSizeToBase16, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH, akEditorLineHeight, akEditorRuleBackground, akEditorRuleBorderRadius, akEditorSelectedNodeClassName, akEditorToolbarKeylineHeight, VIEWPORT_SIZES, akEditorMobileMaxWidth, getTableCellBackgroundDarkModeColors, ATLASSIAN_NAVIGATION_HEIGHT, } from './consts';
|
|
2
|
-
export type { EditorTheme } from './consts';
|
|
3
|
-
export { SelectionStyle, getSelectionStyles, hideNativeBrowserTextSelectionStyles, } from './selection';
|
|
4
|
-
export { overflowShadow } from './overflow-shadow';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { overflowShadow } from './overflow-shadow';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const scrollbarStyles: string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* These are generic selection styles for all nodes
|
|
3
|
-
* If you have custom behaviour needed for a node, add that in the plugin's styles
|
|
4
|
-
* file in editor-core
|
|
5
|
-
*/
|
|
6
|
-
export declare enum SelectionStyle {
|
|
7
|
-
Border = 0,
|
|
8
|
-
BoxShadow = 1,
|
|
9
|
-
Background = 2,
|
|
10
|
-
Blanket = 3
|
|
11
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
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";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { shortcutStyle } from './shortcut';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const shortcutStyle: import("@emotion/react").SerializedStyles;
|