@atlaskit/primitives 12.2.4 → 12.2.5
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 +8 -0
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/cjs/xcss/style-maps.partial.js +11 -11
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/es2019/xcss/style-maps.partial.js +11 -11
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/pressable.js +1 -1
- package/dist/esm/xcss/style-maps.partial.js +11 -11
- package/dist/types/xcss/style-maps.partial.d.ts +11 -11
- package/dist/types-ts4.5/xcss/style-maps.partial.d.ts +11 -11
- package/package.json +1 -1
- package/scripts/codegen-styles.tsx +86 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/primitives
|
|
2
2
|
|
|
3
|
+
## 12.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#150360](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150360)
|
|
8
|
+
[`284490a8c1813`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/284490a8c1813) -
|
|
9
|
+
Update codegen script to output into primitives-emotion-to-compiled codemod.
|
|
10
|
+
|
|
3
11
|
## 12.2.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -100,7 +100,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
100
100
|
action: 'clicked',
|
|
101
101
|
componentName: componentName || 'Anchor',
|
|
102
102
|
packageName: "@atlaskit/primitives",
|
|
103
|
-
packageVersion: "12.2.
|
|
103
|
+
packageVersion: "12.2.5",
|
|
104
104
|
analyticsData: analyticsContext,
|
|
105
105
|
actionSubject: 'link'
|
|
106
106
|
});
|
|
@@ -95,7 +95,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
95
95
|
action: 'clicked',
|
|
96
96
|
componentName: componentName || 'Pressable',
|
|
97
97
|
packageName: "@atlaskit/primitives",
|
|
98
|
-
packageVersion: "12.2.
|
|
98
|
+
packageVersion: "12.2.5",
|
|
99
99
|
analyticsData: analyticsContext,
|
|
100
100
|
actionSubject: 'button'
|
|
101
101
|
});
|
|
@@ -12,11 +12,11 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
13
|
/**
|
|
14
14
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
15
|
-
* @codegen <<SignedSource::
|
|
15
|
+
* @codegen <<SignedSource::df710bcd99c0a8704ca36bddb12c2154>>
|
|
16
16
|
* @codegenId dimensions
|
|
17
17
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
18
18
|
* @codegenParams ["dimensions"]
|
|
19
|
-
* @codegenDependency
|
|
19
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
20
20
|
*/
|
|
21
21
|
var dimensionMap = exports.dimensionMap = {
|
|
22
22
|
'100%': '100%',
|
|
@@ -448,12 +448,12 @@ var fillMap = exports.fillMap = {
|
|
|
448
448
|
|
|
449
449
|
/**
|
|
450
450
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
451
|
-
* @codegen <<SignedSource::
|
|
451
|
+
* @codegen <<SignedSource::dbfb4c7de16d0ae4a53d66f9663aca91>>
|
|
452
452
|
* @codegenId misc
|
|
453
453
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
454
454
|
* @codegenParams ["layer"]
|
|
455
|
-
* @codegenDependency
|
|
456
|
-
* @codegenDependency
|
|
455
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
456
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
457
457
|
*/
|
|
458
458
|
var layerMap = exports.layerMap = {
|
|
459
459
|
card: 100,
|
|
@@ -499,12 +499,12 @@ var borderRadiusMap = exports.borderRadiusMap = {
|
|
|
499
499
|
|
|
500
500
|
/**
|
|
501
501
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
502
|
-
* @codegen <<SignedSource::
|
|
502
|
+
* @codegen <<SignedSource::97e5ae47f252660a5ef7569a3880c26c>>
|
|
503
503
|
* @codegenId typography
|
|
504
504
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
505
505
|
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight", "body", "ui"]
|
|
506
|
-
* @codegenDependency
|
|
507
|
-
* @codegenDependency
|
|
506
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
507
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
508
508
|
*/
|
|
509
509
|
var fontMap = exports.fontMap = {
|
|
510
510
|
'font.body': "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
@@ -539,11 +539,11 @@ var fontFamilyMap = exports.fontFamilyMap = {
|
|
|
539
539
|
|
|
540
540
|
/**
|
|
541
541
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
542
|
-
* @codegen <<SignedSource::
|
|
542
|
+
* @codegen <<SignedSource::7dc7abf82a13bc780c338b9602508ae6>>
|
|
543
543
|
* @codegenId text
|
|
544
544
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
545
|
-
* @codegenDependency
|
|
546
|
-
* @codegenDependency
|
|
545
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
546
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
547
547
|
*/
|
|
548
548
|
var textSizeMap = exports.textSizeMap = {
|
|
549
549
|
medium: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
@@ -85,7 +85,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
|
|
|
85
85
|
action: 'clicked',
|
|
86
86
|
componentName: componentName || 'Pressable',
|
|
87
87
|
packageName: "@atlaskit/primitives",
|
|
88
|
-
packageVersion: "12.2.
|
|
88
|
+
packageVersion: "12.2.5",
|
|
89
89
|
analyticsData: analyticsContext,
|
|
90
90
|
actionSubject: 'button'
|
|
91
91
|
});
|
|
@@ -4,11 +4,11 @@ import { CURRENT_SURFACE_CSS_VAR } from '@atlaskit/tokens';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
7
|
-
* @codegen <<SignedSource::
|
|
7
|
+
* @codegen <<SignedSource::df710bcd99c0a8704ca36bddb12c2154>>
|
|
8
8
|
* @codegenId dimensions
|
|
9
9
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
10
10
|
* @codegenParams ["dimensions"]
|
|
11
|
-
* @codegenDependency
|
|
11
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
12
12
|
*/
|
|
13
13
|
export const dimensionMap = {
|
|
14
14
|
'100%': '100%',
|
|
@@ -443,12 +443,12 @@ export const fillMap = {
|
|
|
443
443
|
|
|
444
444
|
/**
|
|
445
445
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
446
|
-
* @codegen <<SignedSource::
|
|
446
|
+
* @codegen <<SignedSource::dbfb4c7de16d0ae4a53d66f9663aca91>>
|
|
447
447
|
* @codegenId misc
|
|
448
448
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
449
449
|
* @codegenParams ["layer"]
|
|
450
|
-
* @codegenDependency
|
|
451
|
-
* @codegenDependency
|
|
450
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
451
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
452
452
|
*/
|
|
453
453
|
export const layerMap = {
|
|
454
454
|
card: 100,
|
|
@@ -494,12 +494,12 @@ export const borderRadiusMap = {
|
|
|
494
494
|
|
|
495
495
|
/**
|
|
496
496
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
497
|
-
* @codegen <<SignedSource::
|
|
497
|
+
* @codegen <<SignedSource::97e5ae47f252660a5ef7569a3880c26c>>
|
|
498
498
|
* @codegenId typography
|
|
499
499
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
500
500
|
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight", "body", "ui"]
|
|
501
|
-
* @codegenDependency
|
|
502
|
-
* @codegenDependency
|
|
501
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
502
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
503
503
|
*/
|
|
504
504
|
export const fontMap = {
|
|
505
505
|
'font.body': "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
@@ -534,11 +534,11 @@ export const fontFamilyMap = {
|
|
|
534
534
|
|
|
535
535
|
/**
|
|
536
536
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
537
|
-
* @codegen <<SignedSource::
|
|
537
|
+
* @codegen <<SignedSource::7dc7abf82a13bc780c338b9602508ae6>>
|
|
538
538
|
* @codegenId text
|
|
539
539
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
540
|
-
* @codegenDependency
|
|
541
|
-
* @codegenDependency
|
|
540
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
541
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
542
542
|
*/
|
|
543
543
|
export const textSizeMap = {
|
|
544
544
|
medium: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
@@ -94,7 +94,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
94
94
|
action: 'clicked',
|
|
95
95
|
componentName: componentName || 'Anchor',
|
|
96
96
|
packageName: "@atlaskit/primitives",
|
|
97
|
-
packageVersion: "12.2.
|
|
97
|
+
packageVersion: "12.2.5",
|
|
98
98
|
analyticsData: analyticsContext,
|
|
99
99
|
actionSubject: 'link'
|
|
100
100
|
});
|
|
@@ -89,7 +89,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
89
89
|
action: 'clicked',
|
|
90
90
|
componentName: componentName || 'Pressable',
|
|
91
91
|
packageName: "@atlaskit/primitives",
|
|
92
|
-
packageVersion: "12.2.
|
|
92
|
+
packageVersion: "12.2.5",
|
|
93
93
|
analyticsData: analyticsContext,
|
|
94
94
|
actionSubject: 'button'
|
|
95
95
|
});
|
|
@@ -7,11 +7,11 @@ import { CURRENT_SURFACE_CSS_VAR } from '@atlaskit/tokens';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
10
|
-
* @codegen <<SignedSource::
|
|
10
|
+
* @codegen <<SignedSource::df710bcd99c0a8704ca36bddb12c2154>>
|
|
11
11
|
* @codegenId dimensions
|
|
12
12
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
13
13
|
* @codegenParams ["dimensions"]
|
|
14
|
-
* @codegenDependency
|
|
14
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
15
15
|
*/
|
|
16
16
|
export var dimensionMap = {
|
|
17
17
|
'100%': '100%',
|
|
@@ -443,12 +443,12 @@ export var fillMap = {
|
|
|
443
443
|
|
|
444
444
|
/**
|
|
445
445
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
446
|
-
* @codegen <<SignedSource::
|
|
446
|
+
* @codegen <<SignedSource::dbfb4c7de16d0ae4a53d66f9663aca91>>
|
|
447
447
|
* @codegenId misc
|
|
448
448
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
449
449
|
* @codegenParams ["layer"]
|
|
450
|
-
* @codegenDependency
|
|
451
|
-
* @codegenDependency
|
|
450
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
451
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
452
452
|
*/
|
|
453
453
|
export var layerMap = {
|
|
454
454
|
card: 100,
|
|
@@ -494,12 +494,12 @@ export var borderRadiusMap = {
|
|
|
494
494
|
|
|
495
495
|
/**
|
|
496
496
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
497
|
-
* @codegen <<SignedSource::
|
|
497
|
+
* @codegen <<SignedSource::97e5ae47f252660a5ef7569a3880c26c>>
|
|
498
498
|
* @codegenId typography
|
|
499
499
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
500
500
|
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight", "body", "ui"]
|
|
501
|
-
* @codegenDependency
|
|
502
|
-
* @codegenDependency
|
|
501
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
502
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
503
503
|
*/
|
|
504
504
|
export var fontMap = {
|
|
505
505
|
'font.body': "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
@@ -534,11 +534,11 @@ export var fontFamilyMap = {
|
|
|
534
534
|
|
|
535
535
|
/**
|
|
536
536
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
537
|
-
* @codegen <<SignedSource::
|
|
537
|
+
* @codegen <<SignedSource::7dc7abf82a13bc780c338b9602508ae6>>
|
|
538
538
|
* @codegenId text
|
|
539
539
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
540
|
-
* @codegenDependency
|
|
541
|
-
* @codegenDependency
|
|
540
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
541
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
542
542
|
*/
|
|
543
543
|
export var textSizeMap = {
|
|
544
544
|
medium: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
@@ -2,11 +2,11 @@ import { type SerializedStyles } from '@emotion/react';
|
|
|
2
2
|
import { CURRENT_SURFACE_CSS_VAR, token } from '@atlaskit/tokens';
|
|
3
3
|
/**
|
|
4
4
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
5
|
-
* @codegen <<SignedSource::
|
|
5
|
+
* @codegen <<SignedSource::df710bcd99c0a8704ca36bddb12c2154>>
|
|
6
6
|
* @codegenId dimensions
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
8
8
|
* @codegenParams ["dimensions"]
|
|
9
|
-
* @codegenDependency
|
|
9
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
10
10
|
*/
|
|
11
11
|
export declare const dimensionMap: {
|
|
12
12
|
readonly '100%': "100%";
|
|
@@ -467,12 +467,12 @@ export type Fill = keyof typeof fillMap;
|
|
|
467
467
|
*/
|
|
468
468
|
/**
|
|
469
469
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
470
|
-
* @codegen <<SignedSource::
|
|
470
|
+
* @codegen <<SignedSource::dbfb4c7de16d0ae4a53d66f9663aca91>>
|
|
471
471
|
* @codegenId misc
|
|
472
472
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
473
473
|
* @codegenParams ["layer"]
|
|
474
|
-
* @codegenDependency
|
|
475
|
-
* @codegenDependency
|
|
474
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
475
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
476
476
|
*/
|
|
477
477
|
export declare const layerMap: {
|
|
478
478
|
readonly card: 100;
|
|
@@ -519,12 +519,12 @@ export type BorderRadius = keyof typeof borderRadiusMap;
|
|
|
519
519
|
*/
|
|
520
520
|
/**
|
|
521
521
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
522
|
-
* @codegen <<SignedSource::
|
|
522
|
+
* @codegen <<SignedSource::97e5ae47f252660a5ef7569a3880c26c>>
|
|
523
523
|
* @codegenId typography
|
|
524
524
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
525
525
|
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight", "body", "ui"]
|
|
526
|
-
* @codegenDependency
|
|
527
|
-
* @codegenDependency
|
|
526
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
527
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
528
528
|
*/
|
|
529
529
|
export declare const fontMap: {
|
|
530
530
|
'font.body': "var(--ds-font-body)";
|
|
@@ -561,11 +561,11 @@ export type FontFamily = keyof typeof fontFamilyMap;
|
|
|
561
561
|
*/
|
|
562
562
|
/**
|
|
563
563
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
564
|
-
* @codegen <<SignedSource::
|
|
564
|
+
* @codegen <<SignedSource::7dc7abf82a13bc780c338b9602508ae6>>
|
|
565
565
|
* @codegenId text
|
|
566
566
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
567
|
-
* @codegenDependency
|
|
568
|
-
* @codegenDependency
|
|
567
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
568
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
569
569
|
*/
|
|
570
570
|
export declare const textSizeMap: {
|
|
571
571
|
medium: "var(--ds-font-body)";
|
|
@@ -2,11 +2,11 @@ import { type SerializedStyles } from '@emotion/react';
|
|
|
2
2
|
import { CURRENT_SURFACE_CSS_VAR, token } from '@atlaskit/tokens';
|
|
3
3
|
/**
|
|
4
4
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
5
|
-
* @codegen <<SignedSource::
|
|
5
|
+
* @codegen <<SignedSource::df710bcd99c0a8704ca36bddb12c2154>>
|
|
6
6
|
* @codegenId dimensions
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
8
8
|
* @codegenParams ["dimensions"]
|
|
9
|
-
* @codegenDependency
|
|
9
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
10
10
|
*/
|
|
11
11
|
export declare const dimensionMap: {
|
|
12
12
|
readonly '100%': "100%";
|
|
@@ -467,12 +467,12 @@ export type Fill = keyof typeof fillMap;
|
|
|
467
467
|
*/
|
|
468
468
|
/**
|
|
469
469
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
470
|
-
* @codegen <<SignedSource::
|
|
470
|
+
* @codegen <<SignedSource::dbfb4c7de16d0ae4a53d66f9663aca91>>
|
|
471
471
|
* @codegenId misc
|
|
472
472
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
473
473
|
* @codegenParams ["layer"]
|
|
474
|
-
* @codegenDependency
|
|
475
|
-
* @codegenDependency
|
|
474
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
475
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
476
476
|
*/
|
|
477
477
|
export declare const layerMap: {
|
|
478
478
|
readonly card: 100;
|
|
@@ -519,12 +519,12 @@ export type BorderRadius = keyof typeof borderRadiusMap;
|
|
|
519
519
|
*/
|
|
520
520
|
/**
|
|
521
521
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
522
|
-
* @codegen <<SignedSource::
|
|
522
|
+
* @codegen <<SignedSource::97e5ae47f252660a5ef7569a3880c26c>>
|
|
523
523
|
* @codegenId typography
|
|
524
524
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
525
525
|
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight", "body", "ui"]
|
|
526
|
-
* @codegenDependency
|
|
527
|
-
* @codegenDependency
|
|
526
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
527
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
528
528
|
*/
|
|
529
529
|
export declare const fontMap: {
|
|
530
530
|
'font.body': "var(--ds-font-body)";
|
|
@@ -561,11 +561,11 @@ export type FontFamily = keyof typeof fontFamilyMap;
|
|
|
561
561
|
*/
|
|
562
562
|
/**
|
|
563
563
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
564
|
-
* @codegen <<SignedSource::
|
|
564
|
+
* @codegen <<SignedSource::7dc7abf82a13bc780c338b9602508ae6>>
|
|
565
565
|
* @codegenId text
|
|
566
566
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
567
|
-
* @codegenDependency
|
|
568
|
-
* @codegenDependency
|
|
567
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
|
|
568
|
+
* @codegenDependency ../../../primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::6f10945ad9139d0119003738c65ae40a>>
|
|
569
569
|
*/
|
|
570
570
|
export declare const textSizeMap: {
|
|
571
571
|
medium: "var(--ds-font-body)";
|
package/package.json
CHANGED
|
@@ -30,6 +30,11 @@ const templateFiles = readdirSync(join(__dirname, 'codegen-file-templates'), {
|
|
|
30
30
|
.map((item) => join(__dirname, 'codegen-file-templates', item.name));
|
|
31
31
|
|
|
32
32
|
const targetPath = join(__dirname, '../', 'src', 'xcss', 'style-maps.partial.tsx');
|
|
33
|
+
const xcssCodemodPath = join(
|
|
34
|
+
process.cwd(),
|
|
35
|
+
'../../../',
|
|
36
|
+
'packages/design-system/css/codemods/primitives-emotion-to-compiled/style-maps.partial.tsx',
|
|
37
|
+
);
|
|
33
38
|
|
|
34
39
|
const sourceFns = [
|
|
35
40
|
// width, height, minWidth, maxWidth, minHeight, maxHeight
|
|
@@ -43,6 +48,16 @@ const sourceFns = [
|
|
|
43
48
|
dependencies: templateFiles.filter((v) => v.includes('dimensions')),
|
|
44
49
|
},
|
|
45
50
|
),
|
|
51
|
+
() =>
|
|
52
|
+
createPartialSignedArtifact(
|
|
53
|
+
(options) => options.map(createStylesFromFileTemplate).join('\n'),
|
|
54
|
+
'yarn workspace @atlaskit/primitives codegen-styles',
|
|
55
|
+
{
|
|
56
|
+
id: 'dimensions',
|
|
57
|
+
absoluteFilePath: xcssCodemodPath,
|
|
58
|
+
dependencies: templateFiles.filter((v) => v.includes('dimensions')),
|
|
59
|
+
},
|
|
60
|
+
),
|
|
46
61
|
// padding*, gap*, inset*
|
|
47
62
|
() =>
|
|
48
63
|
createPartialSignedArtifact(
|
|
@@ -54,6 +69,16 @@ const sourceFns = [
|
|
|
54
69
|
dependencies: [spacingTokensDependencyPath],
|
|
55
70
|
},
|
|
56
71
|
),
|
|
72
|
+
() =>
|
|
73
|
+
createPartialSignedArtifact(
|
|
74
|
+
createSpacingStylesFromTemplate,
|
|
75
|
+
'yarn workspace @atlaskit/primitives codegen-styles',
|
|
76
|
+
{
|
|
77
|
+
id: 'spacing',
|
|
78
|
+
absoluteFilePath: xcssCodemodPath,
|
|
79
|
+
dependencies: [spacingTokensDependencyPath],
|
|
80
|
+
},
|
|
81
|
+
),
|
|
57
82
|
// text color, background-color, border-color
|
|
58
83
|
() =>
|
|
59
84
|
createPartialSignedArtifact(
|
|
@@ -65,6 +90,16 @@ const sourceFns = [
|
|
|
65
90
|
dependencies: [colorTokensDependencyPath],
|
|
66
91
|
},
|
|
67
92
|
),
|
|
93
|
+
() =>
|
|
94
|
+
createPartialSignedArtifact(
|
|
95
|
+
(options) => options.map(createColorStylesFromTemplate).join('\n'),
|
|
96
|
+
'yarn workspace @atlaskit/primitives codegen-styles',
|
|
97
|
+
{
|
|
98
|
+
id: 'colors',
|
|
99
|
+
absoluteFilePath: xcssCodemodPath,
|
|
100
|
+
dependencies: [colorTokensDependencyPath],
|
|
101
|
+
},
|
|
102
|
+
),
|
|
68
103
|
// inverse color map
|
|
69
104
|
() =>
|
|
70
105
|
createPartialSignedArtifact(
|
|
@@ -87,6 +122,16 @@ const sourceFns = [
|
|
|
87
122
|
dependencies: [colorTokensDependencyPath],
|
|
88
123
|
},
|
|
89
124
|
),
|
|
125
|
+
() =>
|
|
126
|
+
createPartialSignedArtifact(
|
|
127
|
+
(options) => options.map(createElevationStylesFromTemplate).join('\n'),
|
|
128
|
+
'yarn workspace @atlaskit/primitives codegen-styles',
|
|
129
|
+
{
|
|
130
|
+
id: 'elevation',
|
|
131
|
+
absoluteFilePath: xcssCodemodPath,
|
|
132
|
+
dependencies: [colorTokensDependencyPath],
|
|
133
|
+
},
|
|
134
|
+
),
|
|
90
135
|
// border-width, border-radius
|
|
91
136
|
() =>
|
|
92
137
|
createPartialSignedArtifact(
|
|
@@ -98,6 +143,16 @@ const sourceFns = [
|
|
|
98
143
|
dependencies: [shapeTokensDependencyPath],
|
|
99
144
|
},
|
|
100
145
|
),
|
|
146
|
+
() =>
|
|
147
|
+
createPartialSignedArtifact(
|
|
148
|
+
(options) => options.map(createBorderStylesFromTemplate).join('\n'),
|
|
149
|
+
'yarn workspace @atlaskit/primitives codegen-styles',
|
|
150
|
+
{
|
|
151
|
+
id: 'border',
|
|
152
|
+
absoluteFilePath: xcssCodemodPath,
|
|
153
|
+
dependencies: [shapeTokensDependencyPath],
|
|
154
|
+
},
|
|
155
|
+
),
|
|
101
156
|
// border-color, border-radius, border-width, layer',
|
|
102
157
|
() =>
|
|
103
158
|
createPartialSignedArtifact(
|
|
@@ -109,6 +164,16 @@ const sourceFns = [
|
|
|
109
164
|
dependencies: templateFiles,
|
|
110
165
|
},
|
|
111
166
|
),
|
|
167
|
+
() =>
|
|
168
|
+
createPartialSignedArtifact(
|
|
169
|
+
(options) => options.map(createStylesFromFileTemplate).join('\n'),
|
|
170
|
+
'yarn workspace @atlaskit/primitives codegen-styles',
|
|
171
|
+
{
|
|
172
|
+
id: 'misc',
|
|
173
|
+
absoluteFilePath: xcssCodemodPath,
|
|
174
|
+
dependencies: templateFiles,
|
|
175
|
+
},
|
|
176
|
+
),
|
|
112
177
|
// font*, lineheight
|
|
113
178
|
() =>
|
|
114
179
|
createPartialSignedArtifact(
|
|
@@ -120,6 +185,16 @@ const sourceFns = [
|
|
|
120
185
|
dependencies: templateFiles,
|
|
121
186
|
},
|
|
122
187
|
),
|
|
188
|
+
() =>
|
|
189
|
+
createPartialSignedArtifact(
|
|
190
|
+
createTypographyStylesFromTemplate,
|
|
191
|
+
'yarn workspace @atlaskit/primitives codegen-styles',
|
|
192
|
+
{
|
|
193
|
+
id: 'typography',
|
|
194
|
+
absoluteFilePath: xcssCodemodPath,
|
|
195
|
+
dependencies: templateFiles,
|
|
196
|
+
},
|
|
197
|
+
),
|
|
123
198
|
// font and weight map for text primitive
|
|
124
199
|
() =>
|
|
125
200
|
createPartialSignedArtifact(
|
|
@@ -131,10 +206,21 @@ const sourceFns = [
|
|
|
131
206
|
dependencies: templateFiles,
|
|
132
207
|
},
|
|
133
208
|
),
|
|
209
|
+
() =>
|
|
210
|
+
createPartialSignedArtifact(
|
|
211
|
+
createTextStylesFromTemplate,
|
|
212
|
+
'yarn workspace @atlaskit/primitives codegen-styles',
|
|
213
|
+
{
|
|
214
|
+
id: 'text',
|
|
215
|
+
absoluteFilePath: xcssCodemodPath,
|
|
216
|
+
dependencies: templateFiles,
|
|
217
|
+
},
|
|
218
|
+
),
|
|
134
219
|
];
|
|
135
220
|
|
|
136
221
|
sourceFns.forEach((sourceFn) => {
|
|
137
222
|
writeFileSync(targetPath, sourceFn());
|
|
223
|
+
writeFileSync(xcssCodemodPath, sourceFn());
|
|
138
224
|
});
|
|
139
225
|
|
|
140
226
|
console.log(`${targetPath} written!`);
|