@atlaskit/ds-explorations 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/components/interaction-surface.partial.js +2 -2
- package/dist/cjs/components/text.partial.js +4 -4
- package/dist/cjs/internal/color-map.js +2 -2
- package/dist/es2019/components/interaction-surface.partial.js +2 -2
- package/dist/es2019/components/surface-provider.js +1 -0
- package/dist/es2019/components/text.partial.js +4 -4
- package/dist/es2019/internal/color-map.js +2 -2
- package/dist/esm/components/interaction-surface.partial.js +2 -2
- package/dist/esm/components/surface-provider.js +1 -0
- package/dist/esm/components/text.partial.js +4 -4
- package/dist/esm/internal/color-map.js +2 -2
- package/dist/types/components/surface-provider.d.ts +2 -2
- package/dist/types/components/text.partial.d.ts +4 -4
- package/dist/types/internal/color-map.d.ts +2 -2
- package/dist/types-ts4.5/components/surface-provider.d.ts +2 -2
- package/dist/types-ts4.5/components/text.partial.d.ts +4 -4
- package/dist/types-ts4.5/internal/color-map.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/interaction-surface.partial.tsx +2 -2
- package/src/components/surface-provider.tsx +1 -4
- package/src/components/text.partial.tsx +4 -4
- package/src/internal/color-map.tsx +2 -2
- package/tsconfig.app.json +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/ds-explorations
|
|
2
2
|
|
|
3
|
+
## 3.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#40324](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40324) [`8d123310957`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d123310957) - Minor internal changes. There is no expected behaviour change
|
|
8
|
+
|
|
9
|
+
## 3.0.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#41492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41492) [`dc028fe1e3b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dc028fe1e3b) - Loosen SurfaceProvider type to `any`.
|
|
14
|
+
|
|
3
15
|
## 3.0.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -53,11 +53,11 @@ var InteractionSurface = function InteractionSurface(_ref) {
|
|
|
53
53
|
var _default = exports.default = InteractionSurface;
|
|
54
54
|
/**
|
|
55
55
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
56
|
-
* @codegen <<SignedSource::
|
|
56
|
+
* @codegen <<SignedSource::f3c9ebfab203e8a499641953b1d16364>>
|
|
57
57
|
* @codegenId interactions
|
|
58
58
|
* @codegenCommand yarn codegen-styles
|
|
59
59
|
* @codegenParams ["background"]
|
|
60
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
60
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
61
61
|
*/
|
|
62
62
|
var backgroundActiveColorMap = {
|
|
63
63
|
'accent.lime.subtlest': (0, _react2.css)({
|
|
@@ -129,11 +129,11 @@ var Text = function Text(_ref) {
|
|
|
129
129
|
var _default = exports.default = Text;
|
|
130
130
|
/**
|
|
131
131
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
132
|
-
* @codegen <<SignedSource::
|
|
132
|
+
* @codegen <<SignedSource::f42dabbb2f08c0ca0dd8a46fc3508937>>
|
|
133
133
|
* @codegenId typography
|
|
134
134
|
* @codegenCommand yarn codegen-styles
|
|
135
135
|
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
|
|
136
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::
|
|
136
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::ca98df97c16967b7984f4ad4d557cc48>>
|
|
137
137
|
*/
|
|
138
138
|
var fontSizeMap = {
|
|
139
139
|
'size.050': (0, _react2.css)({
|
|
@@ -223,11 +223,11 @@ var lineHeightMap = {
|
|
|
223
223
|
*/
|
|
224
224
|
/**
|
|
225
225
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
226
|
-
* @codegen <<SignedSource::
|
|
226
|
+
* @codegen <<SignedSource::dc5e55dd8347953156eca6d9dfebd75c>>
|
|
227
227
|
* @codegenId colors
|
|
228
228
|
* @codegenCommand yarn codegen-styles
|
|
229
229
|
* @codegenParams ["text"]
|
|
230
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
230
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
231
231
|
*/
|
|
232
232
|
var textColorMap = {
|
|
233
233
|
'color.text': (0, _react2.css)({
|
|
@@ -9,9 +9,9 @@ exports.default = void 0;
|
|
|
9
9
|
*
|
|
10
10
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
11
11
|
*
|
|
12
|
-
* @codegen <<SignedSource::
|
|
12
|
+
* @codegen <<SignedSource::7b2c5c3a687466125ec2fa4e833929c1>>
|
|
13
13
|
* @codegenCommand yarn codegen-styles
|
|
14
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
14
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
15
15
|
*/
|
|
16
16
|
var _default = exports.default = {
|
|
17
17
|
'neutral.bold': 'inverse',
|
|
@@ -48,11 +48,11 @@ export default InteractionSurface;
|
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
51
|
-
* @codegen <<SignedSource::
|
|
51
|
+
* @codegen <<SignedSource::f3c9ebfab203e8a499641953b1d16364>>
|
|
52
52
|
* @codegenId interactions
|
|
53
53
|
* @codegenCommand yarn codegen-styles
|
|
54
54
|
* @codegenParams ["background"]
|
|
55
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
55
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
56
56
|
*/
|
|
57
57
|
const backgroundActiveColorMap = {
|
|
58
58
|
'accent.lime.subtlest': css({
|
|
@@ -120,11 +120,11 @@ export default Text;
|
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
123
|
-
* @codegen <<SignedSource::
|
|
123
|
+
* @codegen <<SignedSource::f42dabbb2f08c0ca0dd8a46fc3508937>>
|
|
124
124
|
* @codegenId typography
|
|
125
125
|
* @codegenCommand yarn codegen-styles
|
|
126
126
|
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
|
|
127
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::
|
|
127
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::ca98df97c16967b7984f4ad4d557cc48>>
|
|
128
128
|
*/
|
|
129
129
|
const fontSizeMap = {
|
|
130
130
|
'size.050': css({
|
|
@@ -214,11 +214,11 @@ const lineHeightMap = {
|
|
|
214
214
|
*/
|
|
215
215
|
/**
|
|
216
216
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
217
|
-
* @codegen <<SignedSource::
|
|
217
|
+
* @codegen <<SignedSource::dc5e55dd8347953156eca6d9dfebd75c>>
|
|
218
218
|
* @codegenId colors
|
|
219
219
|
* @codegenCommand yarn codegen-styles
|
|
220
220
|
* @codegenParams ["text"]
|
|
221
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
221
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
222
222
|
*/
|
|
223
223
|
const textColorMap = {
|
|
224
224
|
'color.text': css({
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7b2c5c3a687466125ec2fa4e833929c1>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
9
9
|
*/
|
|
10
10
|
export default {
|
|
11
11
|
'neutral.bold': 'inverse',
|
|
@@ -47,11 +47,11 @@ export default InteractionSurface;
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
50
|
-
* @codegen <<SignedSource::
|
|
50
|
+
* @codegen <<SignedSource::f3c9ebfab203e8a499641953b1d16364>>
|
|
51
51
|
* @codegenId interactions
|
|
52
52
|
* @codegenCommand yarn codegen-styles
|
|
53
53
|
* @codegenParams ["background"]
|
|
54
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
54
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
55
55
|
*/
|
|
56
56
|
var backgroundActiveColorMap = {
|
|
57
57
|
'accent.lime.subtlest': css({
|
|
@@ -123,11 +123,11 @@ export default Text;
|
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
126
|
-
* @codegen <<SignedSource::
|
|
126
|
+
* @codegen <<SignedSource::f42dabbb2f08c0ca0dd8a46fc3508937>>
|
|
127
127
|
* @codegenId typography
|
|
128
128
|
* @codegenCommand yarn codegen-styles
|
|
129
129
|
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
|
|
130
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::
|
|
130
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::ca98df97c16967b7984f4ad4d557cc48>>
|
|
131
131
|
*/
|
|
132
132
|
var fontSizeMap = {
|
|
133
133
|
'size.050': css({
|
|
@@ -217,11 +217,11 @@ var lineHeightMap = {
|
|
|
217
217
|
*/
|
|
218
218
|
/**
|
|
219
219
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
220
|
-
* @codegen <<SignedSource::
|
|
220
|
+
* @codegen <<SignedSource::dc5e55dd8347953156eca6d9dfebd75c>>
|
|
221
221
|
* @codegenId colors
|
|
222
222
|
* @codegenCommand yarn codegen-styles
|
|
223
223
|
* @codegenParams ["text"]
|
|
224
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
224
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
225
225
|
*/
|
|
226
226
|
var textColorMap = {
|
|
227
227
|
'color.text': css({
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7b2c5c3a687466125ec2fa4e833929c1>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
9
9
|
*/
|
|
10
10
|
export default {
|
|
11
11
|
'neutral.bold': 'inverse',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* A surface context provides context information on the current background (if set).
|
|
6
6
|
*/
|
|
7
|
-
export declare const SurfaceContext: import("react").Context<
|
|
7
|
+
export declare const SurfaceContext: import("react").Context<any>;
|
|
8
8
|
/**
|
|
9
9
|
* __useSurface__
|
|
10
10
|
*
|
|
@@ -12,4 +12,4 @@ export declare const SurfaceContext: import("react").Context<"color.background.a
|
|
|
12
12
|
*
|
|
13
13
|
* @see SurfaceContext
|
|
14
14
|
*/
|
|
15
|
-
export declare const useSurface: () =>
|
|
15
|
+
export declare const useSurface: () => any;
|
|
@@ -81,11 +81,11 @@ declare const Text: FC<TextProps>;
|
|
|
81
81
|
export default Text;
|
|
82
82
|
/**
|
|
83
83
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
84
|
-
* @codegen <<SignedSource::
|
|
84
|
+
* @codegen <<SignedSource::f42dabbb2f08c0ca0dd8a46fc3508937>>
|
|
85
85
|
* @codegenId typography
|
|
86
86
|
* @codegenCommand yarn codegen-styles
|
|
87
87
|
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
|
|
88
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::
|
|
88
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::ca98df97c16967b7984f4ad4d557cc48>>
|
|
89
89
|
*/
|
|
90
90
|
declare const fontSizeMap: {
|
|
91
91
|
'size.050': import("@emotion/react").SerializedStyles;
|
|
@@ -129,11 +129,11 @@ export type LineHeight = keyof typeof lineHeightMap;
|
|
|
129
129
|
*/
|
|
130
130
|
/**
|
|
131
131
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
132
|
-
* @codegen <<SignedSource::
|
|
132
|
+
* @codegen <<SignedSource::dc5e55dd8347953156eca6d9dfebd75c>>
|
|
133
133
|
* @codegenId colors
|
|
134
134
|
* @codegenCommand yarn codegen-styles
|
|
135
135
|
* @codegenParams ["text"]
|
|
136
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
136
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
137
137
|
*/
|
|
138
138
|
declare const textColorMap: {
|
|
139
139
|
readonly 'color.text': import("@emotion/react").SerializedStyles;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7b2c5c3a687466125ec2fa4e833929c1>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: {
|
|
11
11
|
readonly 'neutral.bold': "inverse";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* A surface context provides context information on the current background (if set).
|
|
6
6
|
*/
|
|
7
|
-
export declare const SurfaceContext: import("react").Context<
|
|
7
|
+
export declare const SurfaceContext: import("react").Context<any>;
|
|
8
8
|
/**
|
|
9
9
|
* __useSurface__
|
|
10
10
|
*
|
|
@@ -12,4 +12,4 @@ export declare const SurfaceContext: import("react").Context<"color.background.a
|
|
|
12
12
|
*
|
|
13
13
|
* @see SurfaceContext
|
|
14
14
|
*/
|
|
15
|
-
export declare const useSurface: () =>
|
|
15
|
+
export declare const useSurface: () => any;
|
|
@@ -86,11 +86,11 @@ declare const Text: FC<TextProps>;
|
|
|
86
86
|
export default Text;
|
|
87
87
|
/**
|
|
88
88
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
89
|
-
* @codegen <<SignedSource::
|
|
89
|
+
* @codegen <<SignedSource::f42dabbb2f08c0ca0dd8a46fc3508937>>
|
|
90
90
|
* @codegenId typography
|
|
91
91
|
* @codegenCommand yarn codegen-styles
|
|
92
92
|
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
|
|
93
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::
|
|
93
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::ca98df97c16967b7984f4ad4d557cc48>>
|
|
94
94
|
*/
|
|
95
95
|
declare const fontSizeMap: {
|
|
96
96
|
'size.050': import("@emotion/react").SerializedStyles;
|
|
@@ -134,11 +134,11 @@ export type LineHeight = keyof typeof lineHeightMap;
|
|
|
134
134
|
*/
|
|
135
135
|
/**
|
|
136
136
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
137
|
-
* @codegen <<SignedSource::
|
|
137
|
+
* @codegen <<SignedSource::dc5e55dd8347953156eca6d9dfebd75c>>
|
|
138
138
|
* @codegenId colors
|
|
139
139
|
* @codegenCommand yarn codegen-styles
|
|
140
140
|
* @codegenParams ["text"]
|
|
141
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
141
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
142
142
|
*/
|
|
143
143
|
declare const textColorMap: {
|
|
144
144
|
readonly 'color.text': import("@emotion/react").SerializedStyles;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7b2c5c3a687466125ec2fa4e833929c1>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: {
|
|
11
11
|
readonly 'neutral.bold': "inverse";
|
package/package.json
CHANGED
|
@@ -70,11 +70,11 @@ export default InteractionSurface;
|
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
73
|
-
* @codegen <<SignedSource::
|
|
73
|
+
* @codegen <<SignedSource::f3c9ebfab203e8a499641953b1d16364>>
|
|
74
74
|
* @codegenId interactions
|
|
75
75
|
* @codegenCommand yarn codegen-styles
|
|
76
76
|
* @codegenParams ["background"]
|
|
77
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
77
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
78
78
|
*/
|
|
79
79
|
const backgroundActiveColorMap = {
|
|
80
80
|
'accent.lime.subtlest': css({
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { createContext, useContext } from 'react';
|
|
2
2
|
|
|
3
|
-
import type { BackgroundColor } from '@atlaskit/primitives';
|
|
4
|
-
|
|
5
3
|
/**
|
|
6
4
|
* __Surface context__
|
|
7
5
|
*
|
|
8
6
|
* A surface context provides context information on the current background (if set).
|
|
9
7
|
*/
|
|
10
|
-
export const SurfaceContext =
|
|
11
|
-
createContext<BackgroundColor>('elevation.surface');
|
|
8
|
+
export const SurfaceContext = createContext<any>('elevation.surface');
|
|
12
9
|
|
|
13
10
|
/**
|
|
14
11
|
* __useSurface__
|
|
@@ -189,11 +189,11 @@ export default Text;
|
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
191
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
192
|
-
* @codegen <<SignedSource::
|
|
192
|
+
* @codegen <<SignedSource::f42dabbb2f08c0ca0dd8a46fc3508937>>
|
|
193
193
|
* @codegenId typography
|
|
194
194
|
* @codegenCommand yarn codegen-styles
|
|
195
195
|
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
|
|
196
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::
|
|
196
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::ca98df97c16967b7984f4ad4d557cc48>>
|
|
197
197
|
*/
|
|
198
198
|
const fontSizeMap = {
|
|
199
199
|
'size.050': css({
|
|
@@ -311,11 +311,11 @@ export type LineHeight = keyof typeof lineHeightMap;
|
|
|
311
311
|
|
|
312
312
|
/**
|
|
313
313
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
314
|
-
* @codegen <<SignedSource::
|
|
314
|
+
* @codegen <<SignedSource::dc5e55dd8347953156eca6d9dfebd75c>>
|
|
315
315
|
* @codegenId colors
|
|
316
316
|
* @codegenCommand yarn codegen-styles
|
|
317
317
|
* @codegenParams ["text"]
|
|
318
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
318
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
319
319
|
*/
|
|
320
320
|
const textColorMap = {
|
|
321
321
|
'color.text': css({
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7b2c5c3a687466125ec2fa4e833929c1>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::5188ac15a9f4d65b80cf12e4eecac815>>
|
|
9
9
|
*/
|
|
10
10
|
export default {
|
|
11
11
|
'neutral.bold': 'inverse',
|