@atlaskit/editor-shared-styles 1.6.0 → 2.1.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 +30 -0
- package/consts/package.json +1 -0
- package/dist/cjs/consts/consts.js +7 -3
- package/dist/cjs/consts/index.js +100 -100
- package/dist/cjs/index.js +108 -108
- package/dist/cjs/overflow-shadow/overflow-shadow.js +2 -2
- package/dist/cjs/selection/utils.js +4 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/consts/consts.js +4 -2
- package/dist/es2019/overflow-shadow/overflow-shadow.js +8 -6
- package/dist/es2019/selection/utils.js +4 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/consts/consts.js +5 -2
- package/dist/esm/overflow-shadow/overflow-shadow.js +3 -2
- package/dist/esm/selection/utils.js +4 -3
- package/dist/esm/version.json +1 -1
- package/dist/types/overflow-shadow/overflow-shadow.d.ts +2 -3
- package/package.json +9 -4
- package/selection/package.json +1 -0
- package/src/consts/consts.ts +10 -2
- package/src/overflow-shadow/overflow-shadow.ts +9 -9
- package/src/selection/utils.ts +7 -5
- package/dist/cjs/consts/consts.test.js +0 -25
- package/dist/es2019/consts/consts.test.js +0 -20
- package/dist/esm/consts/consts.test.js +0 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @atlaskit/editor-shared-styles
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`02bfb564e45`](https://bitbucket.org/atlassian/atlassian-frontend/commits/02bfb564e45) - [ux] Instrumented `@atlaskit/editor-shared-styles` and partial `@atlaskit/editor-core` with the new theming package, `@atlaskit/tokens`.
|
|
8
|
+
|
|
9
|
+
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
10
|
+
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
11
|
+
|
|
12
|
+
- [`5ab00fca118`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5ab00fca118) - Instrumented `@atlaskit/editor-shared-styles` with the new theming package, `@atlaskit/tokens`.
|
|
13
|
+
|
|
14
|
+
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
15
|
+
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
16
|
+
|
|
17
|
+
## 2.0.1
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
22
|
+
|
|
23
|
+
## 2.0.0
|
|
24
|
+
|
|
25
|
+
### Major Changes
|
|
26
|
+
|
|
27
|
+
- [`e22509504e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e22509504e8) - ED-14255 migrate editor-shared-style to emotion
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- [`9712e78abb0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9712e78abb0) - ED-14255 moved some usages of editor-shared-styles to emotion
|
|
32
|
+
|
|
3
33
|
## 1.6.0
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|
package/consts/package.json
CHANGED
|
@@ -5,8 +5,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
exports.getAkEditorFullPageMaxWidth = exports.editorFontSize = exports.breakoutWideScaleRatio = exports.blockNodesVerticalMargin = exports.akRichMediaResizeZIndex = exports.akLayoutGutterOffset = exports.akEditorWideLayoutWidth = exports.akEditorUnitZIndex = exports.akEditorToolbarKeylineHeight = exports.akEditorTableToolbarSize = exports.akEditorTableToolbarSelected = exports.akEditorTableToolbarDelete = exports.akEditorTableToolbarDark = exports.akEditorTableToolbar = exports.akEditorTableNumberColumnWidth = exports.akEditorTableLegacyCellMinWidth = exports.akEditorTableFloatingControls = exports.akEditorTableCellSelected = exports.akEditorTableCellMinWidth = exports.akEditorTableCellDelete = exports.akEditorTableCellBackgroundOpacity = exports.akEditorTableBorderSelected = exports.akEditorTableBorderRadius = exports.akEditorTableBorderDelete = exports.akEditorTableBorderDark = exports.akEditorTableBorder = exports.akEditorSwoopCubicBezier = exports.akEditorSubtleAccent = exports.akEditorStickyHeaderZIndex = exports.akEditorSmallZIndex = exports.akEditorShadowZIndex = exports.akEditorSelectedNodeClassName = exports.akEditorSelectedIconColor = exports.akEditorSelectedBoxShadow = exports.akEditorSelectedBorderSize = exports.akEditorSelectedBorderColor = exports.akEditorSelectedBorderBoldSize = exports.akEditorSelectedBorder = exports.akEditorSelectedBlanketOpacity = exports.akEditorSelectedBlanketColor = exports.akEditorSelectedBgColor = exports.akEditorRuleBorderRadius = exports.akEditorRuleBackground = exports.akEditorPrimaryButton = exports.akEditorPopupText = exports.akEditorPopupBackground = exports.akEditorMobileMaxWidth = exports.akEditorMobileBreakoutPoint = exports.akEditorMenuZIndex = exports.akEditorMentionSelected = exports.akEditorMediaResizeHandlerPaddingWide = exports.akEditorMediaResizeHandlerPadding = exports.akEditorLineHeight = exports.akEditorInactiveForeground = exports.akEditorGutterPadding = exports.akEditorGridLineZIndex = exports.akEditorFullWidthLayoutWidth = exports.akEditorFullWidthLayoutLineLength = exports.akEditorFullPageMaxWidth = exports.akEditorFullPageDefaultFontSize = exports.akEditorFocus = exports.akEditorFloatingPanelZIndex = exports.akEditorFloatingOverlapPanelZIndex = exports.akEditorFloatingDialogZIndex = exports.akEditorDropdownActiveBackground = exports.akEditorDeleteIconColor = exports.akEditorDeleteBorder = exports.akEditorDeleteBackgroundWithOpacity = exports.akEditorDeleteBackgroundShaded = exports.akEditorDeleteBackground = exports.akEditorDefaultLayoutWidth = exports.akEditorCustomIconSize = exports.akEditorContextPanelWidth = exports.akEditorCodeInlinePadding = exports.akEditorCodeFontFamily = exports.akEditorCodeBlockPadding = exports.akEditorCodeBackground = exports.akEditorBreakoutPadding = exports.akEditorBlockquoteBorderColor = exports.akEditorActiveForeground = exports.akEditorActiveBackground = exports.VIEWPORT_SIZES = exports.DEFAULT_EMBED_CARD_WIDTH = exports.DEFAULT_EMBED_CARD_HEIGHT = exports.ATLASSIAN_NAVIGATION_HEIGHT = void 0;
|
|
8
9
|
exports.getTableCellBackgroundDarkModeColorCSS = getTableCellBackgroundDarkModeColorCSS;
|
|
9
|
-
exports.
|
|
10
|
+
exports.relativeSize = exports.relativeFontSizeToBase16 = exports.gridMediumMaxWidth = exports.getTableCellBackgroundDarkModeColors = void 0;
|
|
10
11
|
|
|
11
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
13
|
|
|
@@ -14,6 +15,9 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
14
15
|
|
|
15
16
|
var _constants = require("@atlaskit/theme/constants");
|
|
16
17
|
|
|
18
|
+
var _tokens = require("@atlaskit/tokens");
|
|
19
|
+
|
|
20
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
17
21
|
var akEditorFullPageDefaultFontSize = 16;
|
|
18
22
|
exports.akEditorFullPageDefaultFontSize = akEditorFullPageDefaultFontSize;
|
|
19
23
|
var akEditorCodeFontFamily = (0, _constants.codeFontFamily)();
|
|
@@ -65,9 +69,9 @@ var akEditorSelectedBlanketColor = _colors.B75;
|
|
|
65
69
|
exports.akEditorSelectedBlanketColor = akEditorSelectedBlanketColor;
|
|
66
70
|
var akEditorSelectedBorderSize = 1;
|
|
67
71
|
exports.akEditorSelectedBorderSize = akEditorSelectedBorderSize;
|
|
68
|
-
var akEditorSelectedBorder = "".concat(akEditorSelectedBorderSize, "px solid ").concat(akEditorSelectedBorderColor);
|
|
72
|
+
var akEditorSelectedBorder = "".concat(akEditorSelectedBorderSize, "px solid ").concat((0, _tokens.token)('color.border.selected', akEditorSelectedBorderColor));
|
|
69
73
|
exports.akEditorSelectedBorder = akEditorSelectedBorder;
|
|
70
|
-
var akEditorSelectedBoxShadow = "0 0 0 ".concat(akEditorSelectedBorderSize, "px ").concat(akEditorSelectedBorderColor);
|
|
74
|
+
var akEditorSelectedBoxShadow = "0 0 0 ".concat(akEditorSelectedBorderSize, "px ").concat((0, _tokens.token)('color.border.selected', akEditorSelectedBorderColor));
|
|
71
75
|
exports.akEditorSelectedBoxShadow = akEditorSelectedBoxShadow;
|
|
72
76
|
var akEditorSelectedIconColor = _colors.B400;
|
|
73
77
|
exports.akEditorSelectedIconColor = akEditorSelectedIconColor;
|
package/dist/cjs/consts/index.js
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "ATLASSIAN_NAVIGATION_HEIGHT", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _consts.ATLASSIAN_NAVIGATION_HEIGHT;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "DEFAULT_EMBED_CARD_HEIGHT", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _consts.DEFAULT_EMBED_CARD_HEIGHT;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "DEFAULT_EMBED_CARD_WIDTH", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _consts.DEFAULT_EMBED_CARD_WIDTH;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "VIEWPORT_SIZES", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _consts.VIEWPORT_SIZES;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
6
30
|
Object.defineProperty(exports, "akEditorActiveBackground", {
|
|
7
31
|
enumerable: true,
|
|
8
32
|
get: function get() {
|
|
@@ -57,6 +81,12 @@ Object.defineProperty(exports, "akEditorContextPanelWidth", {
|
|
|
57
81
|
return _consts.akEditorContextPanelWidth;
|
|
58
82
|
}
|
|
59
83
|
});
|
|
84
|
+
Object.defineProperty(exports, "akEditorCustomIconSize", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function get() {
|
|
87
|
+
return _consts.akEditorCustomIconSize;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
60
90
|
Object.defineProperty(exports, "akEditorDefaultLayoutWidth", {
|
|
61
91
|
enumerable: true,
|
|
62
92
|
get: function get() {
|
|
@@ -123,22 +153,16 @@ Object.defineProperty(exports, "akEditorFocus", {
|
|
|
123
153
|
return _consts.akEditorFocus;
|
|
124
154
|
}
|
|
125
155
|
});
|
|
126
|
-
Object.defineProperty(exports, "akEditorFullPageMaxWidth", {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
get: function get() {
|
|
129
|
-
return _consts.akEditorFullPageMaxWidth;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
156
|
Object.defineProperty(exports, "akEditorFullPageDefaultFontSize", {
|
|
133
157
|
enumerable: true,
|
|
134
158
|
get: function get() {
|
|
135
159
|
return _consts.akEditorFullPageDefaultFontSize;
|
|
136
160
|
}
|
|
137
161
|
});
|
|
138
|
-
Object.defineProperty(exports, "
|
|
162
|
+
Object.defineProperty(exports, "akEditorFullPageMaxWidth", {
|
|
139
163
|
enumerable: true,
|
|
140
164
|
get: function get() {
|
|
141
|
-
return _consts.
|
|
165
|
+
return _consts.akEditorFullPageMaxWidth;
|
|
142
166
|
}
|
|
143
167
|
});
|
|
144
168
|
Object.defineProperty(exports, "akEditorFullWidthLayoutLineLength", {
|
|
@@ -147,6 +171,12 @@ Object.defineProperty(exports, "akEditorFullWidthLayoutLineLength", {
|
|
|
147
171
|
return _consts.akEditorFullWidthLayoutLineLength;
|
|
148
172
|
}
|
|
149
173
|
});
|
|
174
|
+
Object.defineProperty(exports, "akEditorFullWidthLayoutWidth", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function get() {
|
|
177
|
+
return _consts.akEditorFullWidthLayoutWidth;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
150
180
|
Object.defineProperty(exports, "akEditorGridLineZIndex", {
|
|
151
181
|
enumerable: true,
|
|
152
182
|
get: function get() {
|
|
@@ -165,6 +195,12 @@ Object.defineProperty(exports, "akEditorInactiveForeground", {
|
|
|
165
195
|
return _consts.akEditorInactiveForeground;
|
|
166
196
|
}
|
|
167
197
|
});
|
|
198
|
+
Object.defineProperty(exports, "akEditorLineHeight", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function get() {
|
|
201
|
+
return _consts.akEditorLineHeight;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
168
204
|
Object.defineProperty(exports, "akEditorMediaResizeHandlerPadding", {
|
|
169
205
|
enumerable: true,
|
|
170
206
|
get: function get() {
|
|
@@ -189,16 +225,16 @@ Object.defineProperty(exports, "akEditorMenuZIndex", {
|
|
|
189
225
|
return _consts.akEditorMenuZIndex;
|
|
190
226
|
}
|
|
191
227
|
});
|
|
192
|
-
Object.defineProperty(exports, "
|
|
228
|
+
Object.defineProperty(exports, "akEditorMobileBreakoutPoint", {
|
|
193
229
|
enumerable: true,
|
|
194
230
|
get: function get() {
|
|
195
|
-
return _consts.
|
|
231
|
+
return _consts.akEditorMobileBreakoutPoint;
|
|
196
232
|
}
|
|
197
233
|
});
|
|
198
|
-
Object.defineProperty(exports, "
|
|
234
|
+
Object.defineProperty(exports, "akEditorMobileMaxWidth", {
|
|
199
235
|
enumerable: true,
|
|
200
236
|
get: function get() {
|
|
201
|
-
return _consts.
|
|
237
|
+
return _consts.akEditorMobileMaxWidth;
|
|
202
238
|
}
|
|
203
239
|
});
|
|
204
240
|
Object.defineProperty(exports, "akEditorPopupBackground", {
|
|
@@ -219,22 +255,34 @@ Object.defineProperty(exports, "akEditorPrimaryButton", {
|
|
|
219
255
|
return _consts.akEditorPrimaryButton;
|
|
220
256
|
}
|
|
221
257
|
});
|
|
222
|
-
Object.defineProperty(exports, "
|
|
258
|
+
Object.defineProperty(exports, "akEditorRuleBackground", {
|
|
223
259
|
enumerable: true,
|
|
224
260
|
get: function get() {
|
|
225
|
-
return _consts.
|
|
261
|
+
return _consts.akEditorRuleBackground;
|
|
226
262
|
}
|
|
227
263
|
});
|
|
228
|
-
Object.defineProperty(exports, "
|
|
264
|
+
Object.defineProperty(exports, "akEditorRuleBorderRadius", {
|
|
229
265
|
enumerable: true,
|
|
230
266
|
get: function get() {
|
|
231
|
-
return _consts.
|
|
267
|
+
return _consts.akEditorRuleBorderRadius;
|
|
232
268
|
}
|
|
233
269
|
});
|
|
234
|
-
Object.defineProperty(exports, "
|
|
270
|
+
Object.defineProperty(exports, "akEditorSelectedBgColor", {
|
|
235
271
|
enumerable: true,
|
|
236
272
|
get: function get() {
|
|
237
|
-
return _consts.
|
|
273
|
+
return _consts.akEditorSelectedBgColor;
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
Object.defineProperty(exports, "akEditorSelectedBlanketColor", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function get() {
|
|
279
|
+
return _consts.akEditorSelectedBlanketColor;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
Object.defineProperty(exports, "akEditorSelectedBlanketOpacity", {
|
|
283
|
+
enumerable: true,
|
|
284
|
+
get: function get() {
|
|
285
|
+
return _consts.akEditorSelectedBlanketOpacity;
|
|
238
286
|
}
|
|
239
287
|
});
|
|
240
288
|
Object.defineProperty(exports, "akEditorSelectedBorder", {
|
|
@@ -243,40 +291,46 @@ Object.defineProperty(exports, "akEditorSelectedBorder", {
|
|
|
243
291
|
return _consts.akEditorSelectedBorder;
|
|
244
292
|
}
|
|
245
293
|
});
|
|
246
|
-
Object.defineProperty(exports, "
|
|
294
|
+
Object.defineProperty(exports, "akEditorSelectedBorderBoldSize", {
|
|
247
295
|
enumerable: true,
|
|
248
296
|
get: function get() {
|
|
249
|
-
return _consts.
|
|
297
|
+
return _consts.akEditorSelectedBorderBoldSize;
|
|
250
298
|
}
|
|
251
299
|
});
|
|
252
|
-
Object.defineProperty(exports, "
|
|
300
|
+
Object.defineProperty(exports, "akEditorSelectedBorderColor", {
|
|
253
301
|
enumerable: true,
|
|
254
302
|
get: function get() {
|
|
255
|
-
return _consts.
|
|
303
|
+
return _consts.akEditorSelectedBorderColor;
|
|
256
304
|
}
|
|
257
305
|
});
|
|
258
|
-
Object.defineProperty(exports, "
|
|
306
|
+
Object.defineProperty(exports, "akEditorSelectedBorderSize", {
|
|
259
307
|
enumerable: true,
|
|
260
308
|
get: function get() {
|
|
261
|
-
return _consts.
|
|
309
|
+
return _consts.akEditorSelectedBorderSize;
|
|
262
310
|
}
|
|
263
311
|
});
|
|
264
|
-
Object.defineProperty(exports, "
|
|
312
|
+
Object.defineProperty(exports, "akEditorSelectedBoxShadow", {
|
|
265
313
|
enumerable: true,
|
|
266
314
|
get: function get() {
|
|
267
|
-
return _consts.
|
|
315
|
+
return _consts.akEditorSelectedBoxShadow;
|
|
268
316
|
}
|
|
269
317
|
});
|
|
270
|
-
Object.defineProperty(exports, "
|
|
318
|
+
Object.defineProperty(exports, "akEditorSelectedIconColor", {
|
|
271
319
|
enumerable: true,
|
|
272
320
|
get: function get() {
|
|
273
|
-
return _consts.
|
|
321
|
+
return _consts.akEditorSelectedIconColor;
|
|
274
322
|
}
|
|
275
323
|
});
|
|
276
|
-
Object.defineProperty(exports, "
|
|
324
|
+
Object.defineProperty(exports, "akEditorSelectedNodeClassName", {
|
|
277
325
|
enumerable: true,
|
|
278
326
|
get: function get() {
|
|
279
|
-
return _consts.
|
|
327
|
+
return _consts.akEditorSelectedNodeClassName;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
Object.defineProperty(exports, "akEditorShadowZIndex", {
|
|
331
|
+
enumerable: true,
|
|
332
|
+
get: function get() {
|
|
333
|
+
return _consts.akEditorShadowZIndex;
|
|
280
334
|
}
|
|
281
335
|
});
|
|
282
336
|
Object.defineProperty(exports, "akEditorSmallZIndex", {
|
|
@@ -285,10 +339,10 @@ Object.defineProperty(exports, "akEditorSmallZIndex", {
|
|
|
285
339
|
return _consts.akEditorSmallZIndex;
|
|
286
340
|
}
|
|
287
341
|
});
|
|
288
|
-
Object.defineProperty(exports, "
|
|
342
|
+
Object.defineProperty(exports, "akEditorStickyHeaderZIndex", {
|
|
289
343
|
enumerable: true,
|
|
290
344
|
get: function get() {
|
|
291
|
-
return _consts.
|
|
345
|
+
return _consts.akEditorStickyHeaderZIndex;
|
|
292
346
|
}
|
|
293
347
|
});
|
|
294
348
|
Object.defineProperty(exports, "akEditorSubtleAccent", {
|
|
@@ -405,6 +459,12 @@ Object.defineProperty(exports, "akEditorTableToolbarSize", {
|
|
|
405
459
|
return _consts.akEditorTableToolbarSize;
|
|
406
460
|
}
|
|
407
461
|
});
|
|
462
|
+
Object.defineProperty(exports, "akEditorToolbarKeylineHeight", {
|
|
463
|
+
enumerable: true,
|
|
464
|
+
get: function get() {
|
|
465
|
+
return _consts.akEditorToolbarKeylineHeight;
|
|
466
|
+
}
|
|
467
|
+
});
|
|
408
468
|
Object.defineProperty(exports, "akEditorUnitZIndex", {
|
|
409
469
|
enumerable: true,
|
|
410
470
|
get: function get() {
|
|
@@ -447,94 +507,34 @@ Object.defineProperty(exports, "editorFontSize", {
|
|
|
447
507
|
return _consts.editorFontSize;
|
|
448
508
|
}
|
|
449
509
|
});
|
|
450
|
-
Object.defineProperty(exports, "gridMediumMaxWidth", {
|
|
451
|
-
enumerable: true,
|
|
452
|
-
get: function get() {
|
|
453
|
-
return _consts.gridMediumMaxWidth;
|
|
454
|
-
}
|
|
455
|
-
});
|
|
456
510
|
Object.defineProperty(exports, "getAkEditorFullPageMaxWidth", {
|
|
457
511
|
enumerable: true,
|
|
458
512
|
get: function get() {
|
|
459
513
|
return _consts.getAkEditorFullPageMaxWidth;
|
|
460
514
|
}
|
|
461
515
|
});
|
|
462
|
-
Object.defineProperty(exports, "
|
|
463
|
-
enumerable: true,
|
|
464
|
-
get: function get() {
|
|
465
|
-
return _consts.relativeSize;
|
|
466
|
-
}
|
|
467
|
-
});
|
|
468
|
-
Object.defineProperty(exports, "relativeFontSizeToBase16", {
|
|
469
|
-
enumerable: true,
|
|
470
|
-
get: function get() {
|
|
471
|
-
return _consts.relativeFontSizeToBase16;
|
|
472
|
-
}
|
|
473
|
-
});
|
|
474
|
-
Object.defineProperty(exports, "DEFAULT_EMBED_CARD_HEIGHT", {
|
|
475
|
-
enumerable: true,
|
|
476
|
-
get: function get() {
|
|
477
|
-
return _consts.DEFAULT_EMBED_CARD_HEIGHT;
|
|
478
|
-
}
|
|
479
|
-
});
|
|
480
|
-
Object.defineProperty(exports, "DEFAULT_EMBED_CARD_WIDTH", {
|
|
481
|
-
enumerable: true,
|
|
482
|
-
get: function get() {
|
|
483
|
-
return _consts.DEFAULT_EMBED_CARD_WIDTH;
|
|
484
|
-
}
|
|
485
|
-
});
|
|
486
|
-
Object.defineProperty(exports, "akEditorLineHeight", {
|
|
487
|
-
enumerable: true,
|
|
488
|
-
get: function get() {
|
|
489
|
-
return _consts.akEditorLineHeight;
|
|
490
|
-
}
|
|
491
|
-
});
|
|
492
|
-
Object.defineProperty(exports, "akEditorRuleBackground", {
|
|
493
|
-
enumerable: true,
|
|
494
|
-
get: function get() {
|
|
495
|
-
return _consts.akEditorRuleBackground;
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
Object.defineProperty(exports, "akEditorRuleBorderRadius", {
|
|
499
|
-
enumerable: true,
|
|
500
|
-
get: function get() {
|
|
501
|
-
return _consts.akEditorRuleBorderRadius;
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
Object.defineProperty(exports, "akEditorSelectedNodeClassName", {
|
|
505
|
-
enumerable: true,
|
|
506
|
-
get: function get() {
|
|
507
|
-
return _consts.akEditorSelectedNodeClassName;
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
Object.defineProperty(exports, "akEditorToolbarKeylineHeight", {
|
|
511
|
-
enumerable: true,
|
|
512
|
-
get: function get() {
|
|
513
|
-
return _consts.akEditorToolbarKeylineHeight;
|
|
514
|
-
}
|
|
515
|
-
});
|
|
516
|
-
Object.defineProperty(exports, "VIEWPORT_SIZES", {
|
|
516
|
+
Object.defineProperty(exports, "getTableCellBackgroundDarkModeColors", {
|
|
517
517
|
enumerable: true,
|
|
518
518
|
get: function get() {
|
|
519
|
-
return _consts.
|
|
519
|
+
return _consts.getTableCellBackgroundDarkModeColors;
|
|
520
520
|
}
|
|
521
521
|
});
|
|
522
|
-
Object.defineProperty(exports, "
|
|
522
|
+
Object.defineProperty(exports, "gridMediumMaxWidth", {
|
|
523
523
|
enumerable: true,
|
|
524
524
|
get: function get() {
|
|
525
|
-
return _consts.
|
|
525
|
+
return _consts.gridMediumMaxWidth;
|
|
526
526
|
}
|
|
527
527
|
});
|
|
528
|
-
Object.defineProperty(exports, "
|
|
528
|
+
Object.defineProperty(exports, "relativeFontSizeToBase16", {
|
|
529
529
|
enumerable: true,
|
|
530
530
|
get: function get() {
|
|
531
|
-
return _consts.
|
|
531
|
+
return _consts.relativeFontSizeToBase16;
|
|
532
532
|
}
|
|
533
533
|
});
|
|
534
|
-
Object.defineProperty(exports, "
|
|
534
|
+
Object.defineProperty(exports, "relativeSize", {
|
|
535
535
|
enumerable: true,
|
|
536
536
|
get: function get() {
|
|
537
|
-
return _consts.
|
|
537
|
+
return _consts.relativeSize;
|
|
538
538
|
}
|
|
539
539
|
});
|
|
540
540
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "ATLASSIAN_NAVIGATION_HEIGHT", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _consts.ATLASSIAN_NAVIGATION_HEIGHT;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "DEFAULT_EMBED_CARD_HEIGHT", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _consts.DEFAULT_EMBED_CARD_HEIGHT;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "DEFAULT_EMBED_CARD_WIDTH", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _consts.DEFAULT_EMBED_CARD_WIDTH;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "SelectionStyle", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _selection.SelectionStyle;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "VIEWPORT_SIZES", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _consts.VIEWPORT_SIZES;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
6
36
|
Object.defineProperty(exports, "akEditorActiveBackground", {
|
|
7
37
|
enumerable: true,
|
|
8
38
|
get: function get() {
|
|
@@ -123,22 +153,16 @@ Object.defineProperty(exports, "akEditorFocus", {
|
|
|
123
153
|
return _consts.akEditorFocus;
|
|
124
154
|
}
|
|
125
155
|
});
|
|
126
|
-
Object.defineProperty(exports, "akEditorFullPageMaxWidth", {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
get: function get() {
|
|
129
|
-
return _consts.akEditorFullPageMaxWidth;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
156
|
Object.defineProperty(exports, "akEditorFullPageDefaultFontSize", {
|
|
133
157
|
enumerable: true,
|
|
134
158
|
get: function get() {
|
|
135
159
|
return _consts.akEditorFullPageDefaultFontSize;
|
|
136
160
|
}
|
|
137
161
|
});
|
|
138
|
-
Object.defineProperty(exports, "
|
|
162
|
+
Object.defineProperty(exports, "akEditorFullPageMaxWidth", {
|
|
139
163
|
enumerable: true,
|
|
140
164
|
get: function get() {
|
|
141
|
-
return _consts.
|
|
165
|
+
return _consts.akEditorFullPageMaxWidth;
|
|
142
166
|
}
|
|
143
167
|
});
|
|
144
168
|
Object.defineProperty(exports, "akEditorFullWidthLayoutLineLength", {
|
|
@@ -147,6 +171,12 @@ Object.defineProperty(exports, "akEditorFullWidthLayoutLineLength", {
|
|
|
147
171
|
return _consts.akEditorFullWidthLayoutLineLength;
|
|
148
172
|
}
|
|
149
173
|
});
|
|
174
|
+
Object.defineProperty(exports, "akEditorFullWidthLayoutWidth", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function get() {
|
|
177
|
+
return _consts.akEditorFullWidthLayoutWidth;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
150
180
|
Object.defineProperty(exports, "akEditorGridLineZIndex", {
|
|
151
181
|
enumerable: true,
|
|
152
182
|
get: function get() {
|
|
@@ -165,6 +195,12 @@ Object.defineProperty(exports, "akEditorInactiveForeground", {
|
|
|
165
195
|
return _consts.akEditorInactiveForeground;
|
|
166
196
|
}
|
|
167
197
|
});
|
|
198
|
+
Object.defineProperty(exports, "akEditorLineHeight", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function get() {
|
|
201
|
+
return _consts.akEditorLineHeight;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
168
204
|
Object.defineProperty(exports, "akEditorMediaResizeHandlerPadding", {
|
|
169
205
|
enumerable: true,
|
|
170
206
|
get: function get() {
|
|
@@ -189,16 +225,16 @@ Object.defineProperty(exports, "akEditorMenuZIndex", {
|
|
|
189
225
|
return _consts.akEditorMenuZIndex;
|
|
190
226
|
}
|
|
191
227
|
});
|
|
192
|
-
Object.defineProperty(exports, "
|
|
228
|
+
Object.defineProperty(exports, "akEditorMobileBreakoutPoint", {
|
|
193
229
|
enumerable: true,
|
|
194
230
|
get: function get() {
|
|
195
|
-
return _consts.
|
|
231
|
+
return _consts.akEditorMobileBreakoutPoint;
|
|
196
232
|
}
|
|
197
233
|
});
|
|
198
|
-
Object.defineProperty(exports, "
|
|
234
|
+
Object.defineProperty(exports, "akEditorMobileMaxWidth", {
|
|
199
235
|
enumerable: true,
|
|
200
236
|
get: function get() {
|
|
201
|
-
return _consts.
|
|
237
|
+
return _consts.akEditorMobileMaxWidth;
|
|
202
238
|
}
|
|
203
239
|
});
|
|
204
240
|
Object.defineProperty(exports, "akEditorPopupBackground", {
|
|
@@ -219,22 +255,34 @@ Object.defineProperty(exports, "akEditorPrimaryButton", {
|
|
|
219
255
|
return _consts.akEditorPrimaryButton;
|
|
220
256
|
}
|
|
221
257
|
});
|
|
222
|
-
Object.defineProperty(exports, "
|
|
258
|
+
Object.defineProperty(exports, "akEditorRuleBackground", {
|
|
223
259
|
enumerable: true,
|
|
224
260
|
get: function get() {
|
|
225
|
-
return _consts.
|
|
261
|
+
return _consts.akEditorRuleBackground;
|
|
226
262
|
}
|
|
227
263
|
});
|
|
228
|
-
Object.defineProperty(exports, "
|
|
264
|
+
Object.defineProperty(exports, "akEditorRuleBorderRadius", {
|
|
229
265
|
enumerable: true,
|
|
230
266
|
get: function get() {
|
|
231
|
-
return _consts.
|
|
267
|
+
return _consts.akEditorRuleBorderRadius;
|
|
232
268
|
}
|
|
233
269
|
});
|
|
234
|
-
Object.defineProperty(exports, "
|
|
270
|
+
Object.defineProperty(exports, "akEditorSelectedBgColor", {
|
|
235
271
|
enumerable: true,
|
|
236
272
|
get: function get() {
|
|
237
|
-
return _consts.
|
|
273
|
+
return _consts.akEditorSelectedBgColor;
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
Object.defineProperty(exports, "akEditorSelectedBlanketColor", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function get() {
|
|
279
|
+
return _consts.akEditorSelectedBlanketColor;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
Object.defineProperty(exports, "akEditorSelectedBlanketOpacity", {
|
|
283
|
+
enumerable: true,
|
|
284
|
+
get: function get() {
|
|
285
|
+
return _consts.akEditorSelectedBlanketOpacity;
|
|
238
286
|
}
|
|
239
287
|
});
|
|
240
288
|
Object.defineProperty(exports, "akEditorSelectedBorder", {
|
|
@@ -243,40 +291,40 @@ Object.defineProperty(exports, "akEditorSelectedBorder", {
|
|
|
243
291
|
return _consts.akEditorSelectedBorder;
|
|
244
292
|
}
|
|
245
293
|
});
|
|
246
|
-
Object.defineProperty(exports, "
|
|
294
|
+
Object.defineProperty(exports, "akEditorSelectedBorderBoldSize", {
|
|
247
295
|
enumerable: true,
|
|
248
296
|
get: function get() {
|
|
249
|
-
return _consts.
|
|
297
|
+
return _consts.akEditorSelectedBorderBoldSize;
|
|
250
298
|
}
|
|
251
299
|
});
|
|
252
|
-
Object.defineProperty(exports, "
|
|
300
|
+
Object.defineProperty(exports, "akEditorSelectedBorderColor", {
|
|
253
301
|
enumerable: true,
|
|
254
302
|
get: function get() {
|
|
255
|
-
return _consts.
|
|
303
|
+
return _consts.akEditorSelectedBorderColor;
|
|
256
304
|
}
|
|
257
305
|
});
|
|
258
|
-
Object.defineProperty(exports, "
|
|
306
|
+
Object.defineProperty(exports, "akEditorSelectedBorderSize", {
|
|
259
307
|
enumerable: true,
|
|
260
308
|
get: function get() {
|
|
261
|
-
return _consts.
|
|
309
|
+
return _consts.akEditorSelectedBorderSize;
|
|
262
310
|
}
|
|
263
311
|
});
|
|
264
|
-
Object.defineProperty(exports, "
|
|
312
|
+
Object.defineProperty(exports, "akEditorSelectedBoxShadow", {
|
|
265
313
|
enumerable: true,
|
|
266
314
|
get: function get() {
|
|
267
|
-
return _consts.
|
|
315
|
+
return _consts.akEditorSelectedBoxShadow;
|
|
268
316
|
}
|
|
269
317
|
});
|
|
270
|
-
Object.defineProperty(exports, "
|
|
318
|
+
Object.defineProperty(exports, "akEditorSelectedIconColor", {
|
|
271
319
|
enumerable: true,
|
|
272
320
|
get: function get() {
|
|
273
|
-
return _consts.
|
|
321
|
+
return _consts.akEditorSelectedIconColor;
|
|
274
322
|
}
|
|
275
323
|
});
|
|
276
|
-
Object.defineProperty(exports, "
|
|
324
|
+
Object.defineProperty(exports, "akEditorSelectedNodeClassName", {
|
|
277
325
|
enumerable: true,
|
|
278
326
|
get: function get() {
|
|
279
|
-
return _consts.
|
|
327
|
+
return _consts.akEditorSelectedNodeClassName;
|
|
280
328
|
}
|
|
281
329
|
});
|
|
282
330
|
Object.defineProperty(exports, "akEditorShadowZIndex", {
|
|
@@ -285,6 +333,18 @@ Object.defineProperty(exports, "akEditorShadowZIndex", {
|
|
|
285
333
|
return _consts.akEditorShadowZIndex;
|
|
286
334
|
}
|
|
287
335
|
});
|
|
336
|
+
Object.defineProperty(exports, "akEditorSmallZIndex", {
|
|
337
|
+
enumerable: true,
|
|
338
|
+
get: function get() {
|
|
339
|
+
return _consts.akEditorSmallZIndex;
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
Object.defineProperty(exports, "akEditorStickyHeaderZIndex", {
|
|
343
|
+
enumerable: true,
|
|
344
|
+
get: function get() {
|
|
345
|
+
return _consts.akEditorStickyHeaderZIndex;
|
|
346
|
+
}
|
|
347
|
+
});
|
|
288
348
|
Object.defineProperty(exports, "akEditorSubtleAccent", {
|
|
289
349
|
enumerable: true,
|
|
290
350
|
get: function get() {
|
|
@@ -399,6 +459,12 @@ Object.defineProperty(exports, "akEditorTableToolbarSize", {
|
|
|
399
459
|
return _consts.akEditorTableToolbarSize;
|
|
400
460
|
}
|
|
401
461
|
});
|
|
462
|
+
Object.defineProperty(exports, "akEditorToolbarKeylineHeight", {
|
|
463
|
+
enumerable: true,
|
|
464
|
+
get: function get() {
|
|
465
|
+
return _consts.akEditorToolbarKeylineHeight;
|
|
466
|
+
}
|
|
467
|
+
});
|
|
402
468
|
Object.defineProperty(exports, "akEditorUnitZIndex", {
|
|
403
469
|
enumerable: true,
|
|
404
470
|
get: function get() {
|
|
@@ -441,82 +507,16 @@ Object.defineProperty(exports, "editorFontSize", {
|
|
|
441
507
|
return _consts.editorFontSize;
|
|
442
508
|
}
|
|
443
509
|
});
|
|
444
|
-
Object.defineProperty(exports, "gridMediumMaxWidth", {
|
|
445
|
-
enumerable: true,
|
|
446
|
-
get: function get() {
|
|
447
|
-
return _consts.gridMediumMaxWidth;
|
|
448
|
-
}
|
|
449
|
-
});
|
|
450
510
|
Object.defineProperty(exports, "getAkEditorFullPageMaxWidth", {
|
|
451
511
|
enumerable: true,
|
|
452
512
|
get: function get() {
|
|
453
513
|
return _consts.getAkEditorFullPageMaxWidth;
|
|
454
514
|
}
|
|
455
515
|
});
|
|
456
|
-
Object.defineProperty(exports, "
|
|
457
|
-
enumerable: true,
|
|
458
|
-
get: function get() {
|
|
459
|
-
return _consts.relativeSize;
|
|
460
|
-
}
|
|
461
|
-
});
|
|
462
|
-
Object.defineProperty(exports, "relativeFontSizeToBase16", {
|
|
463
|
-
enumerable: true,
|
|
464
|
-
get: function get() {
|
|
465
|
-
return _consts.relativeFontSizeToBase16;
|
|
466
|
-
}
|
|
467
|
-
});
|
|
468
|
-
Object.defineProperty(exports, "DEFAULT_EMBED_CARD_HEIGHT", {
|
|
469
|
-
enumerable: true,
|
|
470
|
-
get: function get() {
|
|
471
|
-
return _consts.DEFAULT_EMBED_CARD_HEIGHT;
|
|
472
|
-
}
|
|
473
|
-
});
|
|
474
|
-
Object.defineProperty(exports, "DEFAULT_EMBED_CARD_WIDTH", {
|
|
475
|
-
enumerable: true,
|
|
476
|
-
get: function get() {
|
|
477
|
-
return _consts.DEFAULT_EMBED_CARD_WIDTH;
|
|
478
|
-
}
|
|
479
|
-
});
|
|
480
|
-
Object.defineProperty(exports, "akEditorLineHeight", {
|
|
481
|
-
enumerable: true,
|
|
482
|
-
get: function get() {
|
|
483
|
-
return _consts.akEditorLineHeight;
|
|
484
|
-
}
|
|
485
|
-
});
|
|
486
|
-
Object.defineProperty(exports, "akEditorRuleBackground", {
|
|
487
|
-
enumerable: true,
|
|
488
|
-
get: function get() {
|
|
489
|
-
return _consts.akEditorRuleBackground;
|
|
490
|
-
}
|
|
491
|
-
});
|
|
492
|
-
Object.defineProperty(exports, "akEditorRuleBorderRadius", {
|
|
493
|
-
enumerable: true,
|
|
494
|
-
get: function get() {
|
|
495
|
-
return _consts.akEditorRuleBorderRadius;
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
Object.defineProperty(exports, "akEditorSelectedNodeClassName", {
|
|
499
|
-
enumerable: true,
|
|
500
|
-
get: function get() {
|
|
501
|
-
return _consts.akEditorSelectedNodeClassName;
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
Object.defineProperty(exports, "akEditorToolbarKeylineHeight", {
|
|
505
|
-
enumerable: true,
|
|
506
|
-
get: function get() {
|
|
507
|
-
return _consts.akEditorToolbarKeylineHeight;
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
Object.defineProperty(exports, "VIEWPORT_SIZES", {
|
|
511
|
-
enumerable: true,
|
|
512
|
-
get: function get() {
|
|
513
|
-
return _consts.VIEWPORT_SIZES;
|
|
514
|
-
}
|
|
515
|
-
});
|
|
516
|
-
Object.defineProperty(exports, "akEditorMobileMaxWidth", {
|
|
516
|
+
Object.defineProperty(exports, "getSelectionStyles", {
|
|
517
517
|
enumerable: true,
|
|
518
518
|
get: function get() {
|
|
519
|
-
return
|
|
519
|
+
return _selection.getSelectionStyles;
|
|
520
520
|
}
|
|
521
521
|
});
|
|
522
522
|
Object.defineProperty(exports, "getTableCellBackgroundDarkModeColors", {
|
|
@@ -525,34 +525,34 @@ Object.defineProperty(exports, "getTableCellBackgroundDarkModeColors", {
|
|
|
525
525
|
return _consts.getTableCellBackgroundDarkModeColors;
|
|
526
526
|
}
|
|
527
527
|
});
|
|
528
|
-
Object.defineProperty(exports, "
|
|
528
|
+
Object.defineProperty(exports, "gridMediumMaxWidth", {
|
|
529
529
|
enumerable: true,
|
|
530
530
|
get: function get() {
|
|
531
|
-
return _consts.
|
|
531
|
+
return _consts.gridMediumMaxWidth;
|
|
532
532
|
}
|
|
533
533
|
});
|
|
534
|
-
Object.defineProperty(exports, "
|
|
534
|
+
Object.defineProperty(exports, "hideNativeBrowserTextSelectionStyles", {
|
|
535
535
|
enumerable: true,
|
|
536
536
|
get: function get() {
|
|
537
|
-
return _selection.
|
|
537
|
+
return _selection.hideNativeBrowserTextSelectionStyles;
|
|
538
538
|
}
|
|
539
539
|
});
|
|
540
|
-
Object.defineProperty(exports, "
|
|
540
|
+
Object.defineProperty(exports, "overflowShadow", {
|
|
541
541
|
enumerable: true,
|
|
542
542
|
get: function get() {
|
|
543
|
-
return
|
|
543
|
+
return _overflowShadow.overflowShadow;
|
|
544
544
|
}
|
|
545
545
|
});
|
|
546
|
-
Object.defineProperty(exports, "
|
|
546
|
+
Object.defineProperty(exports, "relativeFontSizeToBase16", {
|
|
547
547
|
enumerable: true,
|
|
548
548
|
get: function get() {
|
|
549
|
-
return
|
|
549
|
+
return _consts.relativeFontSizeToBase16;
|
|
550
550
|
}
|
|
551
551
|
});
|
|
552
|
-
Object.defineProperty(exports, "
|
|
552
|
+
Object.defineProperty(exports, "relativeSize", {
|
|
553
553
|
enumerable: true,
|
|
554
554
|
get: function get() {
|
|
555
|
-
return
|
|
555
|
+
return _consts.relativeSize;
|
|
556
556
|
}
|
|
557
557
|
});
|
|
558
558
|
|
|
@@ -9,14 +9,14 @@ exports.overflowShadow = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _react = require("@emotion/react");
|
|
13
13
|
|
|
14
14
|
var _templateObject;
|
|
15
15
|
|
|
16
16
|
var overflowShadow = function overflowShadow(_ref) {
|
|
17
17
|
var background = _ref.background,
|
|
18
18
|
width = _ref.width;
|
|
19
|
-
return (0,
|
|
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);
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
exports.overflowShadow = overflowShadow;
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.hideNativeBrowserTextSelectionStyles = exports.getSelectionStyles = void 0;
|
|
7
7
|
|
|
8
|
+
var _tokens = require("@atlaskit/tokens");
|
|
9
|
+
|
|
8
10
|
var _consts = require("../consts");
|
|
9
11
|
|
|
10
12
|
var _types = require("./types");
|
|
@@ -38,10 +40,10 @@ var getSelectionStyle = function getSelectionStyle(style) {
|
|
|
38
40
|
return "\n box-shadow: ".concat(_consts.akEditorSelectedBoxShadow, ";\n border-color: transparent;\n ");
|
|
39
41
|
|
|
40
42
|
case _types.SelectionStyle.Background:
|
|
41
|
-
return "background-color: ".concat(_consts.akEditorSelectedBgColor, ";");
|
|
43
|
+
return "background-color: ".concat((0, _tokens.token)('color.background.selected', _consts.akEditorSelectedBgColor), ";");
|
|
42
44
|
|
|
43
45
|
case _types.SelectionStyle.Blanket:
|
|
44
|
-
return "\n position: relative;\n\n // Fixes ED-9263, where emoji or inline card in panel makes selection go outside the panel\n // in Safari. Looks like it's caused by user-select: all in the emoji element\n -webkit-user-select: text;\n\n ::after {\n position: absolute;\n content: '';\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n
|
|
46
|
+
return "\n position: relative;\n\n // Fixes ED-9263, where emoji or inline card in panel makes selection go outside the panel\n // in Safari. Looks like it's caused by user-select: all in the emoji element\n -webkit-user-select: text;\n\n ::after {\n position: absolute;\n content: '';\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n background-color: ".concat((0, _tokens.token)('color.blanket.selected', '#B3D4FF4C'), "\n }");
|
|
45
47
|
|
|
46
48
|
default:
|
|
47
49
|
return '';
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
1
2
|
import { B100, B300, B400, B50, B75, DN50, DN70, N0, N100, N20, N30, N40, N50, N500, N700, N900, R300, R400, R50, R75 } from '@atlaskit/theme/colors';
|
|
2
3
|
import { codeFontFamily, fontSize as defaultFontSize, gridSize, layers } from '@atlaskit/theme/constants';
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
3
5
|
export const akEditorFullPageDefaultFontSize = 16;
|
|
4
6
|
export const akEditorCodeFontFamily = codeFontFamily();
|
|
5
7
|
export const akEditorInactiveForeground = N500;
|
|
@@ -26,8 +28,8 @@ export const akEditorSelectedBorderColor = B300;
|
|
|
26
28
|
export const akEditorSelectedBgColor = B50;
|
|
27
29
|
export const akEditorSelectedBlanketColor = B75;
|
|
28
30
|
export const akEditorSelectedBorderSize = 1;
|
|
29
|
-
export const akEditorSelectedBorder = `${akEditorSelectedBorderSize}px solid ${akEditorSelectedBorderColor}`;
|
|
30
|
-
export const akEditorSelectedBoxShadow = `0 0 0 ${akEditorSelectedBorderSize}px ${akEditorSelectedBorderColor}`;
|
|
31
|
+
export const akEditorSelectedBorder = `${akEditorSelectedBorderSize}px solid ${token('color.border.selected', akEditorSelectedBorderColor)}`;
|
|
32
|
+
export const akEditorSelectedBoxShadow = `0 0 0 ${akEditorSelectedBorderSize}px ${token('color.border.selected', akEditorSelectedBorderColor)}`;
|
|
31
33
|
export const akEditorSelectedIconColor = B400;
|
|
32
34
|
export const akEditorSelectedBorderBoldSize = 2;
|
|
33
35
|
export const akEditorSelectedBlanketOpacity = 0.3;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
|
+
import { css } from '@emotion/react';
|
|
2
3
|
export const overflowShadow = ({
|
|
3
4
|
background,
|
|
4
5
|
width
|
|
5
6
|
}) => css`
|
|
6
|
-
/* shadow cover right */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
/* shadow cover right */
|
|
8
|
+
linear-gradient(
|
|
9
|
+
to left,
|
|
10
|
+
${background} ${width},
|
|
11
|
+
transparent ${width}
|
|
12
|
+
),
|
|
11
13
|
/* overflow shadow right */
|
|
12
14
|
linear-gradient(
|
|
13
15
|
to left,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { token } from '@atlaskit/tokens';
|
|
2
|
+
import { akEditorSelectedBgColor, akEditorSelectedBorder, akEditorSelectedBoxShadow } from '../consts';
|
|
2
3
|
import { SelectionStyle } from './types';
|
|
3
4
|
/**
|
|
4
5
|
* Adds correct selection styling for a node
|
|
@@ -33,7 +34,7 @@ const getSelectionStyle = style => {
|
|
|
33
34
|
`;
|
|
34
35
|
|
|
35
36
|
case SelectionStyle.Background:
|
|
36
|
-
return `background-color: ${akEditorSelectedBgColor};`;
|
|
37
|
+
return `background-color: ${token('color.background.selected', akEditorSelectedBgColor)};`;
|
|
37
38
|
|
|
38
39
|
case SelectionStyle.Blanket:
|
|
39
40
|
return `
|
|
@@ -50,9 +51,8 @@ const getSelectionStyle = style => {
|
|
|
50
51
|
right: 0;
|
|
51
52
|
top: 0;
|
|
52
53
|
bottom: 0;
|
|
53
|
-
opacity: ${akEditorSelectedBlanketOpacity};
|
|
54
54
|
pointer-events: none;
|
|
55
|
-
background-color: ${
|
|
55
|
+
background-color: ${token('color.blanket.selected', '#B3D4FF4C')}
|
|
56
56
|
}`;
|
|
57
57
|
|
|
58
58
|
default:
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
4
|
import { B100, B300, B400, B50, B75, DN50, DN70, N0, N100, N20, N30, N40, N50, N500, N700, N900, R300, R400, R50, R75 } from '@atlaskit/theme/colors';
|
|
3
5
|
import { codeFontFamily, fontSize as defaultFontSize, gridSize, layers } from '@atlaskit/theme/constants';
|
|
6
|
+
import { token } from '@atlaskit/tokens';
|
|
4
7
|
export var akEditorFullPageDefaultFontSize = 16;
|
|
5
8
|
export var akEditorCodeFontFamily = codeFontFamily();
|
|
6
9
|
export var akEditorInactiveForeground = N500;
|
|
@@ -27,8 +30,8 @@ export var akEditorSelectedBorderColor = B300;
|
|
|
27
30
|
export var akEditorSelectedBgColor = B50;
|
|
28
31
|
export var akEditorSelectedBlanketColor = B75;
|
|
29
32
|
export var akEditorSelectedBorderSize = 1;
|
|
30
|
-
export var akEditorSelectedBorder = "".concat(akEditorSelectedBorderSize, "px solid ").concat(akEditorSelectedBorderColor);
|
|
31
|
-
export var akEditorSelectedBoxShadow = "0 0 0 ".concat(akEditorSelectedBorderSize, "px ").concat(akEditorSelectedBorderColor);
|
|
33
|
+
export var akEditorSelectedBorder = "".concat(akEditorSelectedBorderSize, "px solid ").concat(token('color.border.selected', akEditorSelectedBorderColor));
|
|
34
|
+
export var akEditorSelectedBoxShadow = "0 0 0 ".concat(akEditorSelectedBorderSize, "px ").concat(token('color.border.selected', akEditorSelectedBorderColor));
|
|
32
35
|
export var akEditorSelectedIconColor = B400;
|
|
33
36
|
export var akEditorSelectedBorderBoldSize = 2;
|
|
34
37
|
export var akEditorSelectedBlanketOpacity = 0.3;
|
|
@@ -2,9 +2,10 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
6
|
+
import { css } from '@emotion/react';
|
|
6
7
|
export var overflowShadow = function overflowShadow(_ref) {
|
|
7
8
|
var background = _ref.background,
|
|
8
9
|
width = _ref.width;
|
|
9
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n/* shadow cover right
|
|
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);
|
|
10
11
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { token } from '@atlaskit/tokens';
|
|
2
|
+
import { akEditorSelectedBgColor, akEditorSelectedBorder, akEditorSelectedBoxShadow } from '../consts';
|
|
2
3
|
import { SelectionStyle } from './types';
|
|
3
4
|
/**
|
|
4
5
|
* Adds correct selection styling for a node
|
|
@@ -27,10 +28,10 @@ var getSelectionStyle = function getSelectionStyle(style) {
|
|
|
27
28
|
return "\n box-shadow: ".concat(akEditorSelectedBoxShadow, ";\n border-color: transparent;\n ");
|
|
28
29
|
|
|
29
30
|
case SelectionStyle.Background:
|
|
30
|
-
return "background-color: ".concat(akEditorSelectedBgColor, ";");
|
|
31
|
+
return "background-color: ".concat(token('color.background.selected', akEditorSelectedBgColor), ";");
|
|
31
32
|
|
|
32
33
|
case SelectionStyle.Blanket:
|
|
33
|
-
return "\n position: relative;\n\n // Fixes ED-9263, where emoji or inline card in panel makes selection go outside the panel\n // in Safari. Looks like it's caused by user-select: all in the emoji element\n -webkit-user-select: text;\n\n ::after {\n position: absolute;\n content: '';\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n
|
|
34
|
+
return "\n position: relative;\n\n // Fixes ED-9263, where emoji or inline card in panel makes selection go outside the panel\n // in Safari. Looks like it's caused by user-select: all in the emoji element\n -webkit-user-select: text;\n\n ::after {\n position: absolute;\n content: '';\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n background-color: ".concat(token('color.blanket.selected', '#B3D4FF4C'), "\n }");
|
|
34
35
|
|
|
35
36
|
default:
|
|
36
37
|
return '';
|
package/dist/esm/version.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ThemedValue } from '@atlaskit/theme/types';
|
|
2
1
|
export declare const overflowShadow: ({ background, width, }: {
|
|
3
|
-
background:
|
|
2
|
+
background: string;
|
|
4
3
|
width: string;
|
|
5
|
-
}) => import("
|
|
4
|
+
}) => import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-shared-styles",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Style values used in the editor/renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,14 +25,15 @@
|
|
|
25
25
|
".": "./src/index.ts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@atlaskit/theme": "^12.
|
|
28
|
+
"@atlaskit/theme": "^12.1.0",
|
|
29
|
+
"@atlaskit/tokens": "^0.9.0",
|
|
29
30
|
"@babel/runtime": "^7.0.0",
|
|
30
|
-
"
|
|
31
|
+
"@emotion/react": "^11.7.1"
|
|
31
32
|
},
|
|
32
33
|
"peerDependencies": {},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
35
|
-
"typescript": "
|
|
36
|
+
"typescript": "4.2.4"
|
|
36
37
|
},
|
|
37
38
|
"techstack": {
|
|
38
39
|
"@atlassian/frontend": {
|
|
@@ -40,6 +41,10 @@
|
|
|
40
41
|
"file-level"
|
|
41
42
|
],
|
|
42
43
|
"import-structure": "atlassian-conventions"
|
|
44
|
+
},
|
|
45
|
+
"@repo/internal": {
|
|
46
|
+
"deprecation": "no-deprecated-imports",
|
|
47
|
+
"theming": "tokens"
|
|
43
48
|
}
|
|
44
49
|
},
|
|
45
50
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
package/selection/package.json
CHANGED
package/src/consts/consts.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
1
2
|
import {
|
|
2
3
|
B100,
|
|
3
4
|
B300,
|
|
@@ -26,6 +27,7 @@ import {
|
|
|
26
27
|
gridSize,
|
|
27
28
|
layers,
|
|
28
29
|
} from '@atlaskit/theme/constants';
|
|
30
|
+
import { token } from '@atlaskit/tokens';
|
|
29
31
|
|
|
30
32
|
import { EditorTheme } from './types';
|
|
31
33
|
|
|
@@ -54,8 +56,14 @@ export const akEditorSelectedBorderColor = B300;
|
|
|
54
56
|
export const akEditorSelectedBgColor = B50;
|
|
55
57
|
export const akEditorSelectedBlanketColor = B75;
|
|
56
58
|
export const akEditorSelectedBorderSize = 1;
|
|
57
|
-
export const akEditorSelectedBorder = `${akEditorSelectedBorderSize}px solid ${
|
|
58
|
-
|
|
59
|
+
export const akEditorSelectedBorder = `${akEditorSelectedBorderSize}px solid ${token(
|
|
60
|
+
'color.border.selected',
|
|
61
|
+
akEditorSelectedBorderColor,
|
|
62
|
+
)}`;
|
|
63
|
+
export const akEditorSelectedBoxShadow = `0 0 0 ${akEditorSelectedBorderSize}px ${token(
|
|
64
|
+
'color.border.selected',
|
|
65
|
+
akEditorSelectedBorderColor,
|
|
66
|
+
)}`;
|
|
59
67
|
export const akEditorSelectedIconColor = B400;
|
|
60
68
|
export const akEditorSelectedBorderBoldSize = 2;
|
|
61
69
|
export const akEditorSelectedBlanketOpacity = 0.3;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { ThemedValue } from '@atlaskit/theme/types';
|
|
1
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
|
+
import { css } from '@emotion/react';
|
|
4
3
|
|
|
5
4
|
export const overflowShadow = ({
|
|
6
5
|
background,
|
|
7
6
|
width,
|
|
8
7
|
}: {
|
|
9
|
-
background:
|
|
8
|
+
background: string;
|
|
10
9
|
width: string;
|
|
11
10
|
}) => css`
|
|
12
|
-
/* shadow cover right */
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
/* shadow cover right */
|
|
12
|
+
linear-gradient(
|
|
13
|
+
to left,
|
|
14
|
+
${background} ${width},
|
|
15
|
+
transparent ${width}
|
|
16
|
+
),
|
|
17
17
|
/* overflow shadow right */
|
|
18
18
|
linear-gradient(
|
|
19
19
|
to left,
|
package/src/selection/utils.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { token } from '@atlaskit/tokens';
|
|
2
|
+
|
|
1
3
|
import {
|
|
2
4
|
akEditorSelectedBgColor,
|
|
3
|
-
akEditorSelectedBlanketColor,
|
|
4
|
-
akEditorSelectedBlanketOpacity,
|
|
5
5
|
akEditorSelectedBorder,
|
|
6
6
|
akEditorSelectedBoxShadow,
|
|
7
7
|
} from '../consts';
|
|
@@ -45,7 +45,10 @@ const getSelectionStyle = (style: SelectionStyle): string => {
|
|
|
45
45
|
border-color: transparent;
|
|
46
46
|
`;
|
|
47
47
|
case SelectionStyle.Background:
|
|
48
|
-
return `background-color: ${
|
|
48
|
+
return `background-color: ${token(
|
|
49
|
+
'color.background.selected',
|
|
50
|
+
akEditorSelectedBgColor,
|
|
51
|
+
)};`;
|
|
49
52
|
case SelectionStyle.Blanket:
|
|
50
53
|
return `
|
|
51
54
|
position: relative;
|
|
@@ -61,9 +64,8 @@ const getSelectionStyle = (style: SelectionStyle): string => {
|
|
|
61
64
|
right: 0;
|
|
62
65
|
top: 0;
|
|
63
66
|
bottom: 0;
|
|
64
|
-
opacity: ${akEditorSelectedBlanketOpacity};
|
|
65
67
|
pointer-events: none;
|
|
66
|
-
background-color: ${
|
|
68
|
+
background-color: ${token('color.blanket.selected', '#B3D4FF4C')}
|
|
67
69
|
}`;
|
|
68
70
|
default:
|
|
69
71
|
return '';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _consts = require("./consts");
|
|
4
|
-
|
|
5
|
-
describe('consts', function () {
|
|
6
|
-
describe('relativeFontSizeToBase16', function () {
|
|
7
|
-
it('relativeFontSizeToBase16 should return 1rem with a base font size of 16px', function () {
|
|
8
|
-
expect((0, _consts.relativeFontSizeToBase16)(16)).toBe('1rem');
|
|
9
|
-
});
|
|
10
|
-
it('relativeFontSizeToBase16 should return 0.875rem with a base font size of 14px', function () {
|
|
11
|
-
expect((0, _consts.relativeFontSizeToBase16)(14)).toBe('0.875rem');
|
|
12
|
-
});
|
|
13
|
-
it('relativeFontSizeToBase16 should return 0.875rem with a base font size (string) of 14px', function () {
|
|
14
|
-
expect((0, _consts.relativeFontSizeToBase16)('14')).toBe('0.875rem');
|
|
15
|
-
});
|
|
16
|
-
it('relativeFontSizeToBase16 should return 0.875rem with a base font size (string) of 14px', function () {
|
|
17
|
-
expect((0, _consts.relativeFontSizeToBase16)('14px')).toBe('0.875rem');
|
|
18
|
-
});
|
|
19
|
-
it('relativeFontSizeToBase16 should throw an error for invalid string', function () {
|
|
20
|
-
expect(function () {
|
|
21
|
-
return (0, _consts.relativeFontSizeToBase16)('px');
|
|
22
|
-
}).toThrowError();
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { relativeFontSizeToBase16 } from './consts';
|
|
2
|
-
describe('consts', () => {
|
|
3
|
-
describe('relativeFontSizeToBase16', () => {
|
|
4
|
-
it('relativeFontSizeToBase16 should return 1rem with a base font size of 16px', () => {
|
|
5
|
-
expect(relativeFontSizeToBase16(16)).toBe('1rem');
|
|
6
|
-
});
|
|
7
|
-
it('relativeFontSizeToBase16 should return 0.875rem with a base font size of 14px', () => {
|
|
8
|
-
expect(relativeFontSizeToBase16(14)).toBe('0.875rem');
|
|
9
|
-
});
|
|
10
|
-
it('relativeFontSizeToBase16 should return 0.875rem with a base font size (string) of 14px', () => {
|
|
11
|
-
expect(relativeFontSizeToBase16('14')).toBe('0.875rem');
|
|
12
|
-
});
|
|
13
|
-
it('relativeFontSizeToBase16 should return 0.875rem with a base font size (string) of 14px', () => {
|
|
14
|
-
expect(relativeFontSizeToBase16('14px')).toBe('0.875rem');
|
|
15
|
-
});
|
|
16
|
-
it('relativeFontSizeToBase16 should throw an error for invalid string', () => {
|
|
17
|
-
expect(() => relativeFontSizeToBase16('px')).toThrowError();
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { relativeFontSizeToBase16 } from './consts';
|
|
2
|
-
describe('consts', function () {
|
|
3
|
-
describe('relativeFontSizeToBase16', function () {
|
|
4
|
-
it('relativeFontSizeToBase16 should return 1rem with a base font size of 16px', function () {
|
|
5
|
-
expect(relativeFontSizeToBase16(16)).toBe('1rem');
|
|
6
|
-
});
|
|
7
|
-
it('relativeFontSizeToBase16 should return 0.875rem with a base font size of 14px', function () {
|
|
8
|
-
expect(relativeFontSizeToBase16(14)).toBe('0.875rem');
|
|
9
|
-
});
|
|
10
|
-
it('relativeFontSizeToBase16 should return 0.875rem with a base font size (string) of 14px', function () {
|
|
11
|
-
expect(relativeFontSizeToBase16('14')).toBe('0.875rem');
|
|
12
|
-
});
|
|
13
|
-
it('relativeFontSizeToBase16 should return 0.875rem with a base font size (string) of 14px', function () {
|
|
14
|
-
expect(relativeFontSizeToBase16('14px')).toBe('0.875rem');
|
|
15
|
-
});
|
|
16
|
-
it('relativeFontSizeToBase16 should throw an error for invalid string', function () {
|
|
17
|
-
expect(function () {
|
|
18
|
-
return relativeFontSizeToBase16('px');
|
|
19
|
-
}).toThrowError();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
});
|