@atlaskit/primitives 0.13.0 → 0.14.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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/xcss/style-maps.partial.js +6 -78
- package/dist/cjs/xcss/xcss.js +11 -16
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/xcss/style-maps.partial.js +5 -66
- package/dist/es2019/xcss/xcss.js +12 -17
- package/dist/esm/version.json +1 -1
- package/dist/esm/xcss/style-maps.partial.js +5 -66
- package/dist/esm/xcss/xcss.js +12 -17
- package/dist/types/xcss/style-maps.partial.d.ts +22 -122
- package/dist/types/xcss/xcss.d.ts +1 -1
- package/dist/types-ts4.5/xcss/style-maps.partial.d.ts +22 -122
- package/dist/types-ts4.5/xcss/xcss.d.ts +1 -1
- package/package.json +2 -2
- package/report.api.md +24 -213
- package/scripts/codegen-file-templates/dimensions.tsx +1 -18
- package/scripts/codegen-styles.tsx +1 -1
- package/scripts/misc-codegen-template.tsx +1 -10
- package/tmp/api-report-tmp.d.ts +18 -214
- package/scripts/codegen-file-templates/align-self.tsx +0 -9
- package/scripts/codegen-file-templates/border-style.tsx +0 -6
- package/scripts/codegen-file-templates/display.tsx +0 -10
- package/scripts/codegen-file-templates/flex-direction.tsx +0 -6
- package/scripts/codegen-file-templates/flex-grow.tsx +0 -6
- package/scripts/codegen-file-templates/flex-shrink.tsx +0 -6
- package/scripts/codegen-file-templates/flex.tsx +0 -5
- package/scripts/codegen-file-templates/overflow.tsx +0 -20
- package/scripts/codegen-file-templates/position.tsx +0 -8
package/CHANGELOG.md
CHANGED
package/dist/cjs/version.json
CHANGED
|
@@ -4,16 +4,16 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.textColorMap = exports.spaceStylesMap = exports.spaceMap = exports.shadowMap = exports.
|
|
7
|
+
exports.textColorMap = exports.spaceStylesMap = exports.spaceMap = exports.shadowMap = exports.paddingStylesMap = exports.layerMap = exports.fillMap = exports.dimensionMap = exports.borderWidthMap = exports.borderRadiusMap = exports.borderColorMap = exports.backgroundColorStylesMap = exports.backgroundColorMap = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
/**
|
|
11
11
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
12
|
-
* @codegen <<SignedSource::
|
|
12
|
+
* @codegen <<SignedSource::7af6097e56f7fb03635b6f8aaf121b02>>
|
|
13
13
|
* @codegenId dimensions
|
|
14
14
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
15
15
|
* @codegenParams ["dimensions"]
|
|
16
|
-
* @codegenDependency ../../scripts/codegen-file-templates/dimensions.tsx <<SignedSource::
|
|
16
|
+
* @codegenDependency ../../scripts/codegen-file-templates/dimensions.tsx <<SignedSource::0cd422575c3f2a3784eeef767abe71f4>>
|
|
17
17
|
*/
|
|
18
18
|
var dimensionMap = {
|
|
19
19
|
'100%': '100%',
|
|
@@ -278,63 +278,13 @@ exports.fillMap = fillMap;
|
|
|
278
278
|
|
|
279
279
|
/**
|
|
280
280
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
281
|
-
* @codegen <<SignedSource::
|
|
281
|
+
* @codegen <<SignedSource::01a4b055c311d198921d4e000a2d7a54>>
|
|
282
282
|
* @codegenId misc
|
|
283
283
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
284
|
-
* @codegenParams ["
|
|
285
|
-
* @codegenDependency ../../scripts/codegen-file-templates/
|
|
286
|
-
* @codegenDependency ../../scripts/codegen-file-templates/border-style.tsx <<SignedSource::87e7e289ffeaac901997c4af98084a5f>>
|
|
287
|
-
* @codegenDependency ../../scripts/codegen-file-templates/dimensions.tsx <<SignedSource::01143ff41135244db1d8ec2efe4339d6>>
|
|
288
|
-
* @codegenDependency ../../scripts/codegen-file-templates/display.tsx <<SignedSource::486569d9e228265c1688d0a7122bdedc>>
|
|
289
|
-
* @codegenDependency ../../scripts/codegen-file-templates/flex-direction.tsx <<SignedSource::19809ba11675679c188b0d98fb651dc1>>
|
|
290
|
-
* @codegenDependency ../../scripts/codegen-file-templates/flex-grow.tsx <<SignedSource::b8a06b122cb609170f1f42778a6c270e>>
|
|
291
|
-
* @codegenDependency ../../scripts/codegen-file-templates/flex-shrink.tsx <<SignedSource::77effeb1e5c39997e34b21b000a91faf>>
|
|
292
|
-
* @codegenDependency ../../scripts/codegen-file-templates/flex.tsx <<SignedSource::ffa0189d14f1f00a16ec1e9f43a17ce9>>
|
|
284
|
+
* @codegenParams ["layer"]
|
|
285
|
+
* @codegenDependency ../../scripts/codegen-file-templates/dimensions.tsx <<SignedSource::0cd422575c3f2a3784eeef767abe71f4>>
|
|
293
286
|
* @codegenDependency ../../scripts/codegen-file-templates/layer.tsx <<SignedSource::79d24a1e558f12d671c06a7609f90dc1>>
|
|
294
|
-
* @codegenDependency ../../scripts/codegen-file-templates/overflow.tsx <<SignedSource::ccb841f2f51525aed895c06e00f15089>>
|
|
295
|
-
* @codegenDependency ../../scripts/codegen-file-templates/position.tsx <<SignedSource::8709494ef16c48046c1784a9aaec6d80>>
|
|
296
287
|
*/
|
|
297
|
-
var alignSelfMap = {
|
|
298
|
-
center: 'center',
|
|
299
|
-
start: 'start',
|
|
300
|
-
stretch: 'stretch',
|
|
301
|
-
end: 'end',
|
|
302
|
-
baseline: 'baseline'
|
|
303
|
-
};
|
|
304
|
-
exports.alignSelfMap = alignSelfMap;
|
|
305
|
-
var borderStyleMap = {
|
|
306
|
-
none: 'none',
|
|
307
|
-
solid: 'solid'
|
|
308
|
-
};
|
|
309
|
-
exports.borderStyleMap = borderStyleMap;
|
|
310
|
-
var displayMap = {
|
|
311
|
-
flex: 'flex',
|
|
312
|
-
block: 'block',
|
|
313
|
-
inline: 'inline',
|
|
314
|
-
inlineBlock: 'inline-block',
|
|
315
|
-
inlineFlex: 'inline-flex',
|
|
316
|
-
grid: 'grid'
|
|
317
|
-
};
|
|
318
|
-
exports.displayMap = displayMap;
|
|
319
|
-
var flexDirectionMap = {
|
|
320
|
-
row: 'row',
|
|
321
|
-
column: 'column'
|
|
322
|
-
};
|
|
323
|
-
exports.flexDirectionMap = flexDirectionMap;
|
|
324
|
-
var flexGrowMap = {
|
|
325
|
-
'0': 0,
|
|
326
|
-
'1': 1
|
|
327
|
-
};
|
|
328
|
-
exports.flexGrowMap = flexGrowMap;
|
|
329
|
-
var flexShrinkMap = {
|
|
330
|
-
'0': '0',
|
|
331
|
-
'1': 1
|
|
332
|
-
};
|
|
333
|
-
exports.flexShrinkMap = flexShrinkMap;
|
|
334
|
-
var flexMap = {
|
|
335
|
-
'1': 1
|
|
336
|
-
};
|
|
337
|
-
exports.flexMap = flexMap;
|
|
338
288
|
var layerMap = {
|
|
339
289
|
card: 100,
|
|
340
290
|
navigation: 200,
|
|
@@ -347,28 +297,6 @@ var layerMap = {
|
|
|
347
297
|
tooltip: 800
|
|
348
298
|
};
|
|
349
299
|
exports.layerMap = layerMap;
|
|
350
|
-
var overflowMap = {
|
|
351
|
-
auto: 'auto',
|
|
352
|
-
hidden: 'hidden'
|
|
353
|
-
};
|
|
354
|
-
exports.overflowMap = overflowMap;
|
|
355
|
-
var overflowInlineMap = {
|
|
356
|
-
auto: 'auto',
|
|
357
|
-
hidden: 'hidden'
|
|
358
|
-
};
|
|
359
|
-
exports.overflowInlineMap = overflowInlineMap;
|
|
360
|
-
var overflowBlockMap = {
|
|
361
|
-
auto: 'auto',
|
|
362
|
-
hidden: 'hidden'
|
|
363
|
-
};
|
|
364
|
-
exports.overflowBlockMap = overflowBlockMap;
|
|
365
|
-
var positionMap = {
|
|
366
|
-
absolute: 'absolute',
|
|
367
|
-
fixed: 'fixed',
|
|
368
|
-
relative: 'relative',
|
|
369
|
-
static: 'static'
|
|
370
|
-
};
|
|
371
|
-
exports.positionMap = positionMap;
|
|
372
300
|
/**
|
|
373
301
|
* @codegenEnd
|
|
374
302
|
*/
|
package/dist/cjs/xcss/xcss.js
CHANGED
|
@@ -16,23 +16,15 @@ var _styleMaps = require("./style-maps.partial");
|
|
|
16
16
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
17
17
|
|
|
18
18
|
var tokensMap = {
|
|
19
|
-
alignSelf: _styleMaps.alignSelfMap,
|
|
20
19
|
backgroundColor: _styleMaps.backgroundColorMap,
|
|
21
20
|
blockSize: _styleMaps.dimensionMap,
|
|
22
21
|
borderColor: _styleMaps.borderColorMap,
|
|
23
22
|
borderRadius: _styleMaps.borderRadiusMap,
|
|
24
|
-
borderStyle: _styleMaps.borderStyleMap,
|
|
25
23
|
borderWidth: _styleMaps.borderWidthMap,
|
|
26
|
-
bottom: _styleMaps.
|
|
24
|
+
bottom: _styleMaps.spaceMap,
|
|
27
25
|
boxShadow: _styleMaps.shadowMap,
|
|
28
26
|
color: _styleMaps.textColorMap,
|
|
29
27
|
columnGap: _styleMaps.spaceMap,
|
|
30
|
-
display: _styleMaps.displayMap,
|
|
31
|
-
fill: _styleMaps.fillMap,
|
|
32
|
-
flex: _styleMaps.flexMap,
|
|
33
|
-
flexDirection: _styleMaps.flexDirectionMap,
|
|
34
|
-
flexGrow: _styleMaps.flexGrowMap,
|
|
35
|
-
flexShrink: _styleMaps.flexShrinkMap,
|
|
36
28
|
gap: _styleMaps.spaceMap,
|
|
37
29
|
height: _styleMaps.dimensionMap,
|
|
38
30
|
inlineSize: _styleMaps.dimensionMap,
|
|
@@ -43,7 +35,14 @@ var tokensMap = {
|
|
|
43
35
|
insetInline: _styleMaps.spaceMap,
|
|
44
36
|
insetInlineEnd: _styleMaps.spaceMap,
|
|
45
37
|
insetInlineStart: _styleMaps.spaceMap,
|
|
46
|
-
|
|
38
|
+
margin: _styleMaps.spaceMap,
|
|
39
|
+
marginBlock: _styleMaps.spaceMap,
|
|
40
|
+
marginBlockEnd: _styleMaps.spaceMap,
|
|
41
|
+
marginBlockStart: _styleMaps.spaceMap,
|
|
42
|
+
marginInline: _styleMaps.spaceMap,
|
|
43
|
+
marginInlineEnd: _styleMaps.spaceMap,
|
|
44
|
+
marginInlineStart: _styleMaps.spaceMap,
|
|
45
|
+
left: _styleMaps.spaceMap,
|
|
47
46
|
maxBlockSize: _styleMaps.dimensionMap,
|
|
48
47
|
maxHeight: _styleMaps.dimensionMap,
|
|
49
48
|
maxInlineSize: _styleMaps.dimensionMap,
|
|
@@ -55,9 +54,6 @@ var tokensMap = {
|
|
|
55
54
|
outlineOffset: _styleMaps.spaceMap,
|
|
56
55
|
outlineWidth: _styleMaps.borderWidthMap,
|
|
57
56
|
outlineColor: _styleMaps.borderColorMap,
|
|
58
|
-
overflow: _styleMaps.overflowMap,
|
|
59
|
-
overflowBlock: _styleMaps.overflowBlockMap,
|
|
60
|
-
overflowInline: _styleMaps.overflowInlineMap,
|
|
61
57
|
padding: _styleMaps.spaceMap,
|
|
62
58
|
paddingBlock: _styleMaps.spaceMap,
|
|
63
59
|
paddingBlockEnd: _styleMaps.spaceMap,
|
|
@@ -69,10 +65,9 @@ var tokensMap = {
|
|
|
69
65
|
paddingLeft: _styleMaps.spaceMap,
|
|
70
66
|
paddingRight: _styleMaps.spaceMap,
|
|
71
67
|
paddingTop: _styleMaps.spaceMap,
|
|
72
|
-
|
|
73
|
-
right: _styleMaps.dimensionMap,
|
|
68
|
+
right: _styleMaps.spaceMap,
|
|
74
69
|
rowGap: _styleMaps.spaceMap,
|
|
75
|
-
top: _styleMaps.
|
|
70
|
+
top: _styleMaps.spaceMap,
|
|
76
71
|
width: _styleMaps.dimensionMap,
|
|
77
72
|
zIndex: _styleMaps.layerMap
|
|
78
73
|
};
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
/**
|
|
3
3
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
4
|
-
* @codegen <<SignedSource::
|
|
4
|
+
* @codegen <<SignedSource::7af6097e56f7fb03635b6f8aaf121b02>>
|
|
5
5
|
* @codegenId dimensions
|
|
6
6
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
7
7
|
* @codegenParams ["dimensions"]
|
|
8
|
-
* @codegenDependency ../../scripts/codegen-file-templates/dimensions.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../scripts/codegen-file-templates/dimensions.tsx <<SignedSource::0cd422575c3f2a3784eeef767abe71f4>>
|
|
9
9
|
*/
|
|
10
10
|
export const dimensionMap = {
|
|
11
11
|
'100%': '100%',
|
|
@@ -260,56 +260,13 @@ export const fillMap = {
|
|
|
260
260
|
*/
|
|
261
261
|
/**
|
|
262
262
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
263
|
-
* @codegen <<SignedSource::
|
|
263
|
+
* @codegen <<SignedSource::01a4b055c311d198921d4e000a2d7a54>>
|
|
264
264
|
* @codegenId misc
|
|
265
265
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
266
|
-
* @codegenParams ["
|
|
267
|
-
* @codegenDependency ../../scripts/codegen-file-templates/
|
|
268
|
-
* @codegenDependency ../../scripts/codegen-file-templates/border-style.tsx <<SignedSource::87e7e289ffeaac901997c4af98084a5f>>
|
|
269
|
-
* @codegenDependency ../../scripts/codegen-file-templates/dimensions.tsx <<SignedSource::01143ff41135244db1d8ec2efe4339d6>>
|
|
270
|
-
* @codegenDependency ../../scripts/codegen-file-templates/display.tsx <<SignedSource::486569d9e228265c1688d0a7122bdedc>>
|
|
271
|
-
* @codegenDependency ../../scripts/codegen-file-templates/flex-direction.tsx <<SignedSource::19809ba11675679c188b0d98fb651dc1>>
|
|
272
|
-
* @codegenDependency ../../scripts/codegen-file-templates/flex-grow.tsx <<SignedSource::b8a06b122cb609170f1f42778a6c270e>>
|
|
273
|
-
* @codegenDependency ../../scripts/codegen-file-templates/flex-shrink.tsx <<SignedSource::77effeb1e5c39997e34b21b000a91faf>>
|
|
274
|
-
* @codegenDependency ../../scripts/codegen-file-templates/flex.tsx <<SignedSource::ffa0189d14f1f00a16ec1e9f43a17ce9>>
|
|
266
|
+
* @codegenParams ["layer"]
|
|
267
|
+
* @codegenDependency ../../scripts/codegen-file-templates/dimensions.tsx <<SignedSource::0cd422575c3f2a3784eeef767abe71f4>>
|
|
275
268
|
* @codegenDependency ../../scripts/codegen-file-templates/layer.tsx <<SignedSource::79d24a1e558f12d671c06a7609f90dc1>>
|
|
276
|
-
* @codegenDependency ../../scripts/codegen-file-templates/overflow.tsx <<SignedSource::ccb841f2f51525aed895c06e00f15089>>
|
|
277
|
-
* @codegenDependency ../../scripts/codegen-file-templates/position.tsx <<SignedSource::8709494ef16c48046c1784a9aaec6d80>>
|
|
278
269
|
*/
|
|
279
|
-
export const alignSelfMap = {
|
|
280
|
-
center: 'center',
|
|
281
|
-
start: 'start',
|
|
282
|
-
stretch: 'stretch',
|
|
283
|
-
end: 'end',
|
|
284
|
-
baseline: 'baseline'
|
|
285
|
-
};
|
|
286
|
-
export const borderStyleMap = {
|
|
287
|
-
none: 'none',
|
|
288
|
-
solid: 'solid'
|
|
289
|
-
};
|
|
290
|
-
export const displayMap = {
|
|
291
|
-
flex: 'flex',
|
|
292
|
-
block: 'block',
|
|
293
|
-
inline: 'inline',
|
|
294
|
-
inlineBlock: 'inline-block',
|
|
295
|
-
inlineFlex: 'inline-flex',
|
|
296
|
-
grid: 'grid'
|
|
297
|
-
};
|
|
298
|
-
export const flexDirectionMap = {
|
|
299
|
-
row: 'row',
|
|
300
|
-
column: 'column'
|
|
301
|
-
};
|
|
302
|
-
export const flexGrowMap = {
|
|
303
|
-
'0': 0,
|
|
304
|
-
'1': 1
|
|
305
|
-
};
|
|
306
|
-
export const flexShrinkMap = {
|
|
307
|
-
'0': '0',
|
|
308
|
-
'1': 1
|
|
309
|
-
};
|
|
310
|
-
export const flexMap = {
|
|
311
|
-
'1': 1
|
|
312
|
-
};
|
|
313
270
|
export const layerMap = {
|
|
314
271
|
card: 100,
|
|
315
272
|
navigation: 200,
|
|
@@ -321,24 +278,6 @@ export const layerMap = {
|
|
|
321
278
|
spotlight: 700,
|
|
322
279
|
tooltip: 800
|
|
323
280
|
};
|
|
324
|
-
export const overflowMap = {
|
|
325
|
-
auto: 'auto',
|
|
326
|
-
hidden: 'hidden'
|
|
327
|
-
};
|
|
328
|
-
export const overflowInlineMap = {
|
|
329
|
-
auto: 'auto',
|
|
330
|
-
hidden: 'hidden'
|
|
331
|
-
};
|
|
332
|
-
export const overflowBlockMap = {
|
|
333
|
-
auto: 'auto',
|
|
334
|
-
hidden: 'hidden'
|
|
335
|
-
};
|
|
336
|
-
export const positionMap = {
|
|
337
|
-
absolute: 'absolute',
|
|
338
|
-
fixed: 'fixed',
|
|
339
|
-
relative: 'relative',
|
|
340
|
-
static: 'static'
|
|
341
|
-
};
|
|
342
281
|
/**
|
|
343
282
|
* @codegenEnd
|
|
344
283
|
*/
|
package/dist/es2019/xcss/xcss.js
CHANGED
|
@@ -2,25 +2,17 @@
|
|
|
2
2
|
import { css as cssEmotion } from '@emotion/react';
|
|
3
3
|
import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
4
4
|
import { media } from '../helpers/responsive';
|
|
5
|
-
import {
|
|
5
|
+
import { backgroundColorMap, borderColorMap, borderRadiusMap, borderWidthMap, dimensionMap, layerMap, shadowMap, spaceMap, textColorMap } from './style-maps.partial';
|
|
6
6
|
const tokensMap = {
|
|
7
|
-
alignSelf: alignSelfMap,
|
|
8
7
|
backgroundColor: backgroundColorMap,
|
|
9
8
|
blockSize: dimensionMap,
|
|
10
9
|
borderColor: borderColorMap,
|
|
11
10
|
borderRadius: borderRadiusMap,
|
|
12
|
-
borderStyle: borderStyleMap,
|
|
13
11
|
borderWidth: borderWidthMap,
|
|
14
|
-
bottom:
|
|
12
|
+
bottom: spaceMap,
|
|
15
13
|
boxShadow: shadowMap,
|
|
16
14
|
color: textColorMap,
|
|
17
15
|
columnGap: spaceMap,
|
|
18
|
-
display: displayMap,
|
|
19
|
-
fill: fillMap,
|
|
20
|
-
flex: flexMap,
|
|
21
|
-
flexDirection: flexDirectionMap,
|
|
22
|
-
flexGrow: flexGrowMap,
|
|
23
|
-
flexShrink: flexShrinkMap,
|
|
24
16
|
gap: spaceMap,
|
|
25
17
|
height: dimensionMap,
|
|
26
18
|
inlineSize: dimensionMap,
|
|
@@ -31,7 +23,14 @@ const tokensMap = {
|
|
|
31
23
|
insetInline: spaceMap,
|
|
32
24
|
insetInlineEnd: spaceMap,
|
|
33
25
|
insetInlineStart: spaceMap,
|
|
34
|
-
|
|
26
|
+
margin: spaceMap,
|
|
27
|
+
marginBlock: spaceMap,
|
|
28
|
+
marginBlockEnd: spaceMap,
|
|
29
|
+
marginBlockStart: spaceMap,
|
|
30
|
+
marginInline: spaceMap,
|
|
31
|
+
marginInlineEnd: spaceMap,
|
|
32
|
+
marginInlineStart: spaceMap,
|
|
33
|
+
left: spaceMap,
|
|
35
34
|
maxBlockSize: dimensionMap,
|
|
36
35
|
maxHeight: dimensionMap,
|
|
37
36
|
maxInlineSize: dimensionMap,
|
|
@@ -43,9 +42,6 @@ const tokensMap = {
|
|
|
43
42
|
outlineOffset: spaceMap,
|
|
44
43
|
outlineWidth: borderWidthMap,
|
|
45
44
|
outlineColor: borderColorMap,
|
|
46
|
-
overflow: overflowMap,
|
|
47
|
-
overflowBlock: overflowBlockMap,
|
|
48
|
-
overflowInline: overflowInlineMap,
|
|
49
45
|
padding: spaceMap,
|
|
50
46
|
paddingBlock: spaceMap,
|
|
51
47
|
paddingBlockEnd: spaceMap,
|
|
@@ -57,10 +53,9 @@ const tokensMap = {
|
|
|
57
53
|
paddingLeft: spaceMap,
|
|
58
54
|
paddingRight: spaceMap,
|
|
59
55
|
paddingTop: spaceMap,
|
|
60
|
-
|
|
61
|
-
right: dimensionMap,
|
|
56
|
+
right: spaceMap,
|
|
62
57
|
rowGap: spaceMap,
|
|
63
|
-
top:
|
|
58
|
+
top: spaceMap,
|
|
64
59
|
width: dimensionMap,
|
|
65
60
|
zIndex: layerMap
|
|
66
61
|
};
|
package/dist/esm/version.json
CHANGED
|
@@ -2,11 +2,11 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
/**
|
|
4
4
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
5
|
-
* @codegen <<SignedSource::
|
|
5
|
+
* @codegen <<SignedSource::7af6097e56f7fb03635b6f8aaf121b02>>
|
|
6
6
|
* @codegenId dimensions
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
8
8
|
* @codegenParams ["dimensions"]
|
|
9
|
-
* @codegenDependency ../../scripts/codegen-file-templates/dimensions.tsx <<SignedSource::
|
|
9
|
+
* @codegenDependency ../../scripts/codegen-file-templates/dimensions.tsx <<SignedSource::0cd422575c3f2a3784eeef767abe71f4>>
|
|
10
10
|
*/
|
|
11
11
|
export var dimensionMap = {
|
|
12
12
|
'100%': '100%',
|
|
@@ -261,56 +261,13 @@ export var fillMap = {
|
|
|
261
261
|
*/
|
|
262
262
|
/**
|
|
263
263
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
264
|
-
* @codegen <<SignedSource::
|
|
264
|
+
* @codegen <<SignedSource::01a4b055c311d198921d4e000a2d7a54>>
|
|
265
265
|
* @codegenId misc
|
|
266
266
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
267
|
-
* @codegenParams ["
|
|
268
|
-
* @codegenDependency ../../scripts/codegen-file-templates/
|
|
269
|
-
* @codegenDependency ../../scripts/codegen-file-templates/border-style.tsx <<SignedSource::87e7e289ffeaac901997c4af98084a5f>>
|
|
270
|
-
* @codegenDependency ../../scripts/codegen-file-templates/dimensions.tsx <<SignedSource::01143ff41135244db1d8ec2efe4339d6>>
|
|
271
|
-
* @codegenDependency ../../scripts/codegen-file-templates/display.tsx <<SignedSource::486569d9e228265c1688d0a7122bdedc>>
|
|
272
|
-
* @codegenDependency ../../scripts/codegen-file-templates/flex-direction.tsx <<SignedSource::19809ba11675679c188b0d98fb651dc1>>
|
|
273
|
-
* @codegenDependency ../../scripts/codegen-file-templates/flex-grow.tsx <<SignedSource::b8a06b122cb609170f1f42778a6c270e>>
|
|
274
|
-
* @codegenDependency ../../scripts/codegen-file-templates/flex-shrink.tsx <<SignedSource::77effeb1e5c39997e34b21b000a91faf>>
|
|
275
|
-
* @codegenDependency ../../scripts/codegen-file-templates/flex.tsx <<SignedSource::ffa0189d14f1f00a16ec1e9f43a17ce9>>
|
|
267
|
+
* @codegenParams ["layer"]
|
|
268
|
+
* @codegenDependency ../../scripts/codegen-file-templates/dimensions.tsx <<SignedSource::0cd422575c3f2a3784eeef767abe71f4>>
|
|
276
269
|
* @codegenDependency ../../scripts/codegen-file-templates/layer.tsx <<SignedSource::79d24a1e558f12d671c06a7609f90dc1>>
|
|
277
|
-
* @codegenDependency ../../scripts/codegen-file-templates/overflow.tsx <<SignedSource::ccb841f2f51525aed895c06e00f15089>>
|
|
278
|
-
* @codegenDependency ../../scripts/codegen-file-templates/position.tsx <<SignedSource::8709494ef16c48046c1784a9aaec6d80>>
|
|
279
270
|
*/
|
|
280
|
-
export var alignSelfMap = {
|
|
281
|
-
center: 'center',
|
|
282
|
-
start: 'start',
|
|
283
|
-
stretch: 'stretch',
|
|
284
|
-
end: 'end',
|
|
285
|
-
baseline: 'baseline'
|
|
286
|
-
};
|
|
287
|
-
export var borderStyleMap = {
|
|
288
|
-
none: 'none',
|
|
289
|
-
solid: 'solid'
|
|
290
|
-
};
|
|
291
|
-
export var displayMap = {
|
|
292
|
-
flex: 'flex',
|
|
293
|
-
block: 'block',
|
|
294
|
-
inline: 'inline',
|
|
295
|
-
inlineBlock: 'inline-block',
|
|
296
|
-
inlineFlex: 'inline-flex',
|
|
297
|
-
grid: 'grid'
|
|
298
|
-
};
|
|
299
|
-
export var flexDirectionMap = {
|
|
300
|
-
row: 'row',
|
|
301
|
-
column: 'column'
|
|
302
|
-
};
|
|
303
|
-
export var flexGrowMap = {
|
|
304
|
-
'0': 0,
|
|
305
|
-
'1': 1
|
|
306
|
-
};
|
|
307
|
-
export var flexShrinkMap = {
|
|
308
|
-
'0': '0',
|
|
309
|
-
'1': 1
|
|
310
|
-
};
|
|
311
|
-
export var flexMap = {
|
|
312
|
-
'1': 1
|
|
313
|
-
};
|
|
314
271
|
export var layerMap = {
|
|
315
272
|
card: 100,
|
|
316
273
|
navigation: 200,
|
|
@@ -322,24 +279,6 @@ export var layerMap = {
|
|
|
322
279
|
spotlight: 700,
|
|
323
280
|
tooltip: 800
|
|
324
281
|
};
|
|
325
|
-
export var overflowMap = {
|
|
326
|
-
auto: 'auto',
|
|
327
|
-
hidden: 'hidden'
|
|
328
|
-
};
|
|
329
|
-
export var overflowInlineMap = {
|
|
330
|
-
auto: 'auto',
|
|
331
|
-
hidden: 'hidden'
|
|
332
|
-
};
|
|
333
|
-
export var overflowBlockMap = {
|
|
334
|
-
auto: 'auto',
|
|
335
|
-
hidden: 'hidden'
|
|
336
|
-
};
|
|
337
|
-
export var positionMap = {
|
|
338
|
-
absolute: 'absolute',
|
|
339
|
-
fixed: 'fixed',
|
|
340
|
-
relative: 'relative',
|
|
341
|
-
static: 'static'
|
|
342
|
-
};
|
|
343
282
|
/**
|
|
344
283
|
* @codegenEnd
|
|
345
284
|
*/
|
package/dist/esm/xcss/xcss.js
CHANGED
|
@@ -5,25 +5,17 @@ import _typeof from "@babel/runtime/helpers/typeof";
|
|
|
5
5
|
import { css as cssEmotion } from '@emotion/react';
|
|
6
6
|
import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
7
7
|
import { media } from '../helpers/responsive';
|
|
8
|
-
import {
|
|
8
|
+
import { backgroundColorMap, borderColorMap, borderRadiusMap, borderWidthMap, dimensionMap, layerMap, shadowMap, spaceMap, textColorMap } from './style-maps.partial';
|
|
9
9
|
var tokensMap = {
|
|
10
|
-
alignSelf: alignSelfMap,
|
|
11
10
|
backgroundColor: backgroundColorMap,
|
|
12
11
|
blockSize: dimensionMap,
|
|
13
12
|
borderColor: borderColorMap,
|
|
14
13
|
borderRadius: borderRadiusMap,
|
|
15
|
-
borderStyle: borderStyleMap,
|
|
16
14
|
borderWidth: borderWidthMap,
|
|
17
|
-
bottom:
|
|
15
|
+
bottom: spaceMap,
|
|
18
16
|
boxShadow: shadowMap,
|
|
19
17
|
color: textColorMap,
|
|
20
18
|
columnGap: spaceMap,
|
|
21
|
-
display: displayMap,
|
|
22
|
-
fill: fillMap,
|
|
23
|
-
flex: flexMap,
|
|
24
|
-
flexDirection: flexDirectionMap,
|
|
25
|
-
flexGrow: flexGrowMap,
|
|
26
|
-
flexShrink: flexShrinkMap,
|
|
27
19
|
gap: spaceMap,
|
|
28
20
|
height: dimensionMap,
|
|
29
21
|
inlineSize: dimensionMap,
|
|
@@ -34,7 +26,14 @@ var tokensMap = {
|
|
|
34
26
|
insetInline: spaceMap,
|
|
35
27
|
insetInlineEnd: spaceMap,
|
|
36
28
|
insetInlineStart: spaceMap,
|
|
37
|
-
|
|
29
|
+
margin: spaceMap,
|
|
30
|
+
marginBlock: spaceMap,
|
|
31
|
+
marginBlockEnd: spaceMap,
|
|
32
|
+
marginBlockStart: spaceMap,
|
|
33
|
+
marginInline: spaceMap,
|
|
34
|
+
marginInlineEnd: spaceMap,
|
|
35
|
+
marginInlineStart: spaceMap,
|
|
36
|
+
left: spaceMap,
|
|
38
37
|
maxBlockSize: dimensionMap,
|
|
39
38
|
maxHeight: dimensionMap,
|
|
40
39
|
maxInlineSize: dimensionMap,
|
|
@@ -46,9 +45,6 @@ var tokensMap = {
|
|
|
46
45
|
outlineOffset: spaceMap,
|
|
47
46
|
outlineWidth: borderWidthMap,
|
|
48
47
|
outlineColor: borderColorMap,
|
|
49
|
-
overflow: overflowMap,
|
|
50
|
-
overflowBlock: overflowBlockMap,
|
|
51
|
-
overflowInline: overflowInlineMap,
|
|
52
48
|
padding: spaceMap,
|
|
53
49
|
paddingBlock: spaceMap,
|
|
54
50
|
paddingBlockEnd: spaceMap,
|
|
@@ -60,10 +56,9 @@ var tokensMap = {
|
|
|
60
56
|
paddingLeft: spaceMap,
|
|
61
57
|
paddingRight: spaceMap,
|
|
62
58
|
paddingTop: spaceMap,
|
|
63
|
-
|
|
64
|
-
right: dimensionMap,
|
|
59
|
+
right: spaceMap,
|
|
65
60
|
rowGap: spaceMap,
|
|
66
|
-
top:
|
|
61
|
+
top: spaceMap,
|
|
67
62
|
width: dimensionMap,
|
|
68
63
|
zIndex: layerMap
|
|
69
64
|
};
|