@atlaskit/tokens 1.10.2 → 1.11.1
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 +13 -0
- package/dist/cjs/artifacts/palettes-raw/shape-palette.js +16 -1
- package/dist/cjs/artifacts/themes/atlassian-shape.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +3 -3
- package/dist/cjs/artifacts/token-names.js +3 -3
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +27 -21
- package/dist/cjs/get-token-value.js +1 -1
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/shape-palette.js +6 -0
- package/dist/cjs/set-global-theme.js +2 -5
- package/dist/cjs/tokens/atlassian-shape/shape.js +4 -4
- package/dist/cjs/tokens/default/shape/shape.js +11 -8
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/palettes-raw/shape-palette.js +16 -1
- package/dist/es2019/artifacts/themes/atlassian-shape.js +3 -3
- package/dist/es2019/artifacts/token-default-values.js +3 -3
- package/dist/es2019/artifacts/token-names.js +3 -3
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +27 -21
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/shape-palette.js +6 -0
- package/dist/es2019/set-global-theme.js +2 -5
- package/dist/es2019/tokens/atlassian-shape/shape.js +4 -4
- package/dist/es2019/tokens/default/shape/shape.js +11 -8
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/palettes-raw/shape-palette.js +16 -1
- package/dist/esm/artifacts/themes/atlassian-shape.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +3 -3
- package/dist/esm/artifacts/token-names.js +3 -3
- package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +27 -21
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/shape-palette.js +6 -0
- package/dist/esm/set-global-theme.js +2 -5
- package/dist/esm/tokens/atlassian-shape/shape.js +4 -4
- package/dist/esm/tokens/default/shape/shape.js +11 -8
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-shape.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +3 -3
- package/dist/types/artifacts/token-names.d.ts +5 -5
- package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +29 -3
- package/dist/types/artifacts/types-internal.d.ts +2 -2
- package/dist/types/artifacts/types.d.ts +2 -2
- package/dist/types/palettes/shape-palette.d.ts +6 -0
- package/dist/types/types.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +3 -3
- package/dist/types-ts4.5/artifacts/token-names.d.ts +5 -5
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +29 -3
- package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
- package/dist/types-ts4.5/palettes/shape-palette.d.ts +6 -0
- package/dist/types-ts4.5/types.d.ts +2 -2
- package/figma/atlassian-shape.json +20 -9
- package/package.json +1 -1
- package/report.api.md +14 -8
- package/tmp/api-report-tmp.d.ts +12 -6
|
@@ -52,9 +52,6 @@ const getThemePreferences = themeState => {
|
|
|
52
52
|
|
|
53
53
|
// Load shape and spacing by default, currently behind a feature flag
|
|
54
54
|
if (getBooleanFF('platform.design-system-team.space-and-shape-tokens_q5me6')) {
|
|
55
|
-
if (!themePreferences.includes('shape')) {
|
|
56
|
-
themePreferences.push('shape');
|
|
57
|
-
}
|
|
58
55
|
if (!themePreferences.includes('spacing')) {
|
|
59
56
|
themePreferences.push('spacing');
|
|
60
57
|
}
|
|
@@ -199,12 +196,12 @@ export const getThemeHtmlAttrs = ({
|
|
|
199
196
|
typography
|
|
200
197
|
};
|
|
201
198
|
|
|
202
|
-
// Load
|
|
199
|
+
// Load spacing by default, currently behind a feature flag
|
|
203
200
|
if (getBooleanFF('platform.design-system-team.space-and-shape-tokens_q5me6')) {
|
|
204
201
|
themePreferences = {
|
|
205
202
|
dark,
|
|
206
203
|
light,
|
|
207
|
-
shape
|
|
204
|
+
shape,
|
|
208
205
|
spacing: 'spacing',
|
|
209
206
|
typography
|
|
210
207
|
};
|
|
@@ -5,8 +5,9 @@ const shape = {
|
|
|
5
5
|
attributes: {
|
|
6
6
|
group: 'shape',
|
|
7
7
|
state: 'active',
|
|
8
|
+
suggest: ['1px', '2px'],
|
|
8
9
|
introduced: '1.5.2',
|
|
9
|
-
description: 'The default border width.'
|
|
10
|
+
description: 'The default border width. Used for all borders.'
|
|
10
11
|
}
|
|
11
12
|
},
|
|
12
13
|
'0': {
|
|
@@ -14,23 +15,23 @@ const shape = {
|
|
|
14
15
|
group: 'shape',
|
|
15
16
|
state: 'experimental',
|
|
16
17
|
introduced: '1.2.1',
|
|
17
|
-
description: '
|
|
18
|
+
description: 'Used for zero width borders.'
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
|
-
|
|
21
|
+
outline: {
|
|
21
22
|
attributes: {
|
|
22
23
|
group: 'shape',
|
|
23
24
|
state: 'active',
|
|
24
|
-
introduced: '1.
|
|
25
|
-
description: 'Used for
|
|
25
|
+
introduced: '1.5.2',
|
|
26
|
+
description: 'Used for focus, active or selected inputs.'
|
|
26
27
|
}
|
|
27
28
|
},
|
|
28
|
-
|
|
29
|
+
indicator: {
|
|
29
30
|
attributes: {
|
|
30
31
|
group: 'shape',
|
|
31
32
|
state: 'active',
|
|
32
|
-
introduced: '1.
|
|
33
|
-
description: 'Used for
|
|
33
|
+
introduced: '1.5.2',
|
|
34
|
+
description: 'Used for indicators like tab and menu selected states.'
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
},
|
|
@@ -39,6 +40,7 @@ const shape = {
|
|
|
39
40
|
attributes: {
|
|
40
41
|
group: 'shape',
|
|
41
42
|
state: 'active',
|
|
43
|
+
suggest: ['3px', '4px'],
|
|
42
44
|
introduced: '1.5.2',
|
|
43
45
|
description: 'The default border radius.'
|
|
44
46
|
}
|
|
@@ -87,6 +89,7 @@ const shape = {
|
|
|
87
89
|
attributes: {
|
|
88
90
|
group: 'shape',
|
|
89
91
|
state: 'active',
|
|
92
|
+
suggest: ['50%'],
|
|
90
93
|
introduced: '1.1.0',
|
|
91
94
|
description: 'Used for circular containers, like a rounded button.'
|
|
92
95
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::b929a0286651ecabd7f635e23b71f002>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
@@ -138,5 +138,20 @@ var tokens = [{
|
|
|
138
138
|
},
|
|
139
139
|
"name": "border.width.Size100",
|
|
140
140
|
"path": ["border", "width", "Size100"]
|
|
141
|
+
}, {
|
|
142
|
+
"value": "3px",
|
|
143
|
+
"attributes": {
|
|
144
|
+
"group": "shape"
|
|
145
|
+
},
|
|
146
|
+
"filePath": "src/palettes/shape-palette.tsx",
|
|
147
|
+
"isSource": true,
|
|
148
|
+
"original": {
|
|
149
|
+
"value": 3,
|
|
150
|
+
"attributes": {
|
|
151
|
+
"group": "shape"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"name": "border.width.Size200",
|
|
155
|
+
"path": ["border", "width", "Size200"]
|
|
141
156
|
}];
|
|
142
157
|
export default tokens;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::57c7e229053412965e492af01b042778>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
export default "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-border-radius-050: 0.125rem;\n --ds-border-radius: 0.25rem;\n --ds-border-radius-100: 0.25rem;\n --ds-border-radius-200: 0.5rem;\n --ds-border-radius-300: 0.75rem;\n --ds-border-radius-400: 1rem;\n --ds-border-radius-circle: 2002rem;\n --ds-border-width: 0.0625rem;\n --ds-border-width-0: 0rem;\n --ds-border-width-
|
|
6
|
+
export default "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-border-radius-050: 0.125rem;\n --ds-border-radius: 0.25rem;\n --ds-border-radius-100: 0.25rem;\n --ds-border-radius-200: 0.5rem;\n --ds-border-radius-300: 0.75rem;\n --ds-border-radius-400: 1rem;\n --ds-border-radius-circle: 2002rem;\n --ds-border-width: 0.0625rem;\n --ds-border-width-0: 0rem;\n --ds-border-width-indicator: 0.1875rem;\n --ds-border-width-outline: 0.125rem;\n}\n";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Token names mapped to their value in the default Atlassian themes ('light').
|
|
5
5
|
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
6
6
|
*
|
|
7
|
-
* @codegen <<SignedSource::
|
|
7
|
+
* @codegen <<SignedSource::a2442c19bc018ff0c9f4f96c2bfa54ab>>
|
|
8
8
|
* @codegenCommand yarn build tokens
|
|
9
9
|
*/
|
|
10
10
|
var defaultTokenValues = {
|
|
@@ -317,8 +317,8 @@ var defaultTokenValues = {
|
|
|
317
317
|
'border.radius.circle': '2002rem',
|
|
318
318
|
'border.width': '0.0625rem',
|
|
319
319
|
'border.width.0': '0rem',
|
|
320
|
-
'border.width.
|
|
321
|
-
'border.width.
|
|
320
|
+
'border.width.indicator': '0.1875rem',
|
|
321
|
+
'border.width.outline': '0.125rem',
|
|
322
322
|
'space.0': '0rem',
|
|
323
323
|
'space.025': '0.125rem',
|
|
324
324
|
'space.050': '0.25rem',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::0c77b46d428791fb0288b991d64320bc>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = {
|
|
@@ -313,8 +313,8 @@ var tokens = {
|
|
|
313
313
|
'border.radius.circle': '--ds-border-radius-circle',
|
|
314
314
|
'border.width': '--ds-border-width',
|
|
315
315
|
'border.width.0': '--ds-border-width-0',
|
|
316
|
-
'border.width.
|
|
317
|
-
'border.width.
|
|
316
|
+
'border.width.indicator': '--ds-border-width-indicator',
|
|
317
|
+
'border.width.outline': '--ds-border-width-outline',
|
|
318
318
|
'space.0': '--ds-space-0',
|
|
319
319
|
'space.025': '--ds-space-025',
|
|
320
320
|
'space.050': '--ds-space-050',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::475f699859423669fdb3de04f32b3560>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
@@ -29,6 +29,7 @@ var tokens = [{
|
|
|
29
29
|
"attributes": {
|
|
30
30
|
"group": "shape",
|
|
31
31
|
"state": "active",
|
|
32
|
+
"suggest": ["3px", "4px"],
|
|
32
33
|
"introduced": "1.5.2",
|
|
33
34
|
"description": "The default border radius."
|
|
34
35
|
},
|
|
@@ -39,6 +40,7 @@ var tokens = [{
|
|
|
39
40
|
"attributes": {
|
|
40
41
|
"group": "shape",
|
|
41
42
|
"state": "active",
|
|
43
|
+
"suggest": ["3px", "4px"],
|
|
42
44
|
"introduced": "1.5.2",
|
|
43
45
|
"description": "The default border radius."
|
|
44
46
|
},
|
|
@@ -139,6 +141,7 @@ var tokens = [{
|
|
|
139
141
|
"attributes": {
|
|
140
142
|
"group": "shape",
|
|
141
143
|
"state": "active",
|
|
144
|
+
"suggest": ["50%"],
|
|
142
145
|
"introduced": "1.1.0",
|
|
143
146
|
"description": "Used for circular containers, like a rounded button."
|
|
144
147
|
},
|
|
@@ -149,6 +152,7 @@ var tokens = [{
|
|
|
149
152
|
"attributes": {
|
|
150
153
|
"group": "shape",
|
|
151
154
|
"state": "active",
|
|
155
|
+
"suggest": ["50%"],
|
|
152
156
|
"introduced": "1.1.0",
|
|
153
157
|
"description": "Used for circular containers, like a rounded button."
|
|
154
158
|
},
|
|
@@ -161,8 +165,9 @@ var tokens = [{
|
|
|
161
165
|
"attributes": {
|
|
162
166
|
"group": "shape",
|
|
163
167
|
"state": "active",
|
|
168
|
+
"suggest": ["1px", "2px"],
|
|
164
169
|
"introduced": "1.5.2",
|
|
165
|
-
"description": "The default border width."
|
|
170
|
+
"description": "The default border width. Used for all borders."
|
|
166
171
|
},
|
|
167
172
|
"value": "1px",
|
|
168
173
|
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
@@ -171,8 +176,9 @@ var tokens = [{
|
|
|
171
176
|
"attributes": {
|
|
172
177
|
"group": "shape",
|
|
173
178
|
"state": "active",
|
|
179
|
+
"suggest": ["1px", "2px"],
|
|
174
180
|
"introduced": "1.5.2",
|
|
175
|
-
"description": "The default border width."
|
|
181
|
+
"description": "The default border width. Used for all borders."
|
|
176
182
|
},
|
|
177
183
|
"value": "Size050"
|
|
178
184
|
},
|
|
@@ -184,7 +190,7 @@ var tokens = [{
|
|
|
184
190
|
"group": "shape",
|
|
185
191
|
"state": "experimental",
|
|
186
192
|
"introduced": "1.2.1",
|
|
187
|
-
"description": "
|
|
193
|
+
"description": "Used for zero width borders."
|
|
188
194
|
},
|
|
189
195
|
"value": "0px",
|
|
190
196
|
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
@@ -194,7 +200,7 @@ var tokens = [{
|
|
|
194
200
|
"group": "shape",
|
|
195
201
|
"state": "experimental",
|
|
196
202
|
"introduced": "1.2.1",
|
|
197
|
-
"description": "
|
|
203
|
+
"description": "Used for zero width borders."
|
|
198
204
|
},
|
|
199
205
|
"value": "Size0"
|
|
200
206
|
},
|
|
@@ -205,30 +211,30 @@ var tokens = [{
|
|
|
205
211
|
"attributes": {
|
|
206
212
|
"group": "shape",
|
|
207
213
|
"state": "active",
|
|
208
|
-
"introduced": "1.
|
|
209
|
-
"description": "Used for
|
|
214
|
+
"introduced": "1.5.2",
|
|
215
|
+
"description": "Used for indicators like tab and menu selected states."
|
|
210
216
|
},
|
|
211
|
-
"value": "
|
|
217
|
+
"value": "3px",
|
|
212
218
|
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
213
219
|
"isSource": true,
|
|
214
220
|
"original": {
|
|
215
221
|
"attributes": {
|
|
216
222
|
"group": "shape",
|
|
217
223
|
"state": "active",
|
|
218
|
-
"introduced": "1.
|
|
219
|
-
"description": "Used for
|
|
224
|
+
"introduced": "1.5.2",
|
|
225
|
+
"description": "Used for indicators like tab and menu selected states."
|
|
220
226
|
},
|
|
221
|
-
"value": "
|
|
227
|
+
"value": "Size200"
|
|
222
228
|
},
|
|
223
|
-
"name": "border.width.
|
|
224
|
-
"path": ["border", "width", "
|
|
225
|
-
"cleanName": "border.width.
|
|
229
|
+
"name": "border.width.indicator",
|
|
230
|
+
"path": ["border", "width", "indicator"],
|
|
231
|
+
"cleanName": "border.width.indicator"
|
|
226
232
|
}, {
|
|
227
233
|
"attributes": {
|
|
228
234
|
"group": "shape",
|
|
229
235
|
"state": "active",
|
|
230
|
-
"introduced": "1.
|
|
231
|
-
"description": "Used for
|
|
236
|
+
"introduced": "1.5.2",
|
|
237
|
+
"description": "Used for focus, active or selected inputs."
|
|
232
238
|
},
|
|
233
239
|
"value": "2px",
|
|
234
240
|
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
@@ -237,13 +243,13 @@ var tokens = [{
|
|
|
237
243
|
"attributes": {
|
|
238
244
|
"group": "shape",
|
|
239
245
|
"state": "active",
|
|
240
|
-
"introduced": "1.
|
|
241
|
-
"description": "Used for
|
|
246
|
+
"introduced": "1.5.2",
|
|
247
|
+
"description": "Used for focus, active or selected inputs."
|
|
242
248
|
},
|
|
243
249
|
"value": "Size100"
|
|
244
250
|
},
|
|
245
|
-
"name": "border.width.
|
|
246
|
-
"path": ["border", "width", "
|
|
247
|
-
"cleanName": "border.width.
|
|
251
|
+
"name": "border.width.outline",
|
|
252
|
+
"path": ["border", "width", "outline"],
|
|
253
|
+
"cleanName": "border.width.outline"
|
|
248
254
|
}];
|
|
249
255
|
export default tokens;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
var name = "@atlaskit/tokens";
|
|
4
|
-
var version = "1.
|
|
4
|
+
var version = "1.11.1";
|
|
5
5
|
/**
|
|
6
6
|
* Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
|
|
7
7
|
* resulting CSS Custom Property.
|
package/dist/esm/get-token.js
CHANGED
|
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
|
|
4
4
|
var name = "@atlaskit/tokens";
|
|
5
|
-
var version = "1.
|
|
5
|
+
var version = "1.11.1";
|
|
6
6
|
/**
|
|
7
7
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
|
8
8
|
* This should be used to implement design decisions throughout your application.
|
|
@@ -55,9 +55,6 @@ var getThemePreferences = function getThemePreferences(themeState) {
|
|
|
55
55
|
|
|
56
56
|
// Load shape and spacing by default, currently behind a feature flag
|
|
57
57
|
if (getBooleanFF('platform.design-system-team.space-and-shape-tokens_q5me6')) {
|
|
58
|
-
if (!themePreferences.includes('shape')) {
|
|
59
|
-
themePreferences.push('shape');
|
|
60
|
-
}
|
|
61
58
|
if (!themePreferences.includes('spacing')) {
|
|
62
59
|
themePreferences.push('spacing');
|
|
63
60
|
}
|
|
@@ -293,12 +290,12 @@ export var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
|
|
|
293
290
|
typography: typography
|
|
294
291
|
};
|
|
295
292
|
|
|
296
|
-
// Load
|
|
293
|
+
// Load spacing by default, currently behind a feature flag
|
|
297
294
|
if (getBooleanFF('platform.design-system-team.space-and-shape-tokens_q5me6')) {
|
|
298
295
|
themePreferences = {
|
|
299
296
|
dark: dark,
|
|
300
297
|
light: light,
|
|
301
|
-
shape:
|
|
298
|
+
shape: shape,
|
|
302
299
|
spacing: 'spacing',
|
|
303
300
|
typography: typography
|
|
304
301
|
};
|
|
@@ -5,8 +5,9 @@ var shape = {
|
|
|
5
5
|
attributes: {
|
|
6
6
|
group: 'shape',
|
|
7
7
|
state: 'active',
|
|
8
|
+
suggest: ['1px', '2px'],
|
|
8
9
|
introduced: '1.5.2',
|
|
9
|
-
description: 'The default border width.'
|
|
10
|
+
description: 'The default border width. Used for all borders.'
|
|
10
11
|
}
|
|
11
12
|
},
|
|
12
13
|
'0': {
|
|
@@ -14,23 +15,23 @@ var shape = {
|
|
|
14
15
|
group: 'shape',
|
|
15
16
|
state: 'experimental',
|
|
16
17
|
introduced: '1.2.1',
|
|
17
|
-
description: '
|
|
18
|
+
description: 'Used for zero width borders.'
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
|
-
|
|
21
|
+
outline: {
|
|
21
22
|
attributes: {
|
|
22
23
|
group: 'shape',
|
|
23
24
|
state: 'active',
|
|
24
|
-
introduced: '1.
|
|
25
|
-
description: 'Used for
|
|
25
|
+
introduced: '1.5.2',
|
|
26
|
+
description: 'Used for focus, active or selected inputs.'
|
|
26
27
|
}
|
|
27
28
|
},
|
|
28
|
-
|
|
29
|
+
indicator: {
|
|
29
30
|
attributes: {
|
|
30
31
|
group: 'shape',
|
|
31
32
|
state: 'active',
|
|
32
|
-
introduced: '1.
|
|
33
|
-
description: 'Used for
|
|
33
|
+
introduced: '1.5.2',
|
|
34
|
+
description: 'Used for indicators like tab and menu selected states.'
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
},
|
|
@@ -39,6 +40,7 @@ var shape = {
|
|
|
39
40
|
attributes: {
|
|
40
41
|
group: 'shape',
|
|
41
42
|
state: 'active',
|
|
43
|
+
suggest: ['3px', '4px'],
|
|
42
44
|
introduced: '1.5.2',
|
|
43
45
|
description: 'The default border radius.'
|
|
44
46
|
}
|
|
@@ -87,6 +89,7 @@ var shape = {
|
|
|
87
89
|
attributes: {
|
|
88
90
|
group: 'shape',
|
|
89
91
|
state: 'active',
|
|
92
|
+
suggest: ['50%'],
|
|
90
93
|
introduced: '1.1.0',
|
|
91
94
|
description: 'Used for circular containers, like a rounded button.'
|
|
92
95
|
}
|
package/dist/esm/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::b929a0286651ecabd7f635e23b71f002>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::57c7e229053412965e492af01b042778>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
declare const _default: "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-border-radius-050: 0.125rem;\n --ds-border-radius: 0.25rem;\n --ds-border-radius-100: 0.25rem;\n --ds-border-radius-200: 0.5rem;\n --ds-border-radius-300: 0.75rem;\n --ds-border-radius-400: 1rem;\n --ds-border-radius-circle: 2002rem;\n --ds-border-width: 0.0625rem;\n --ds-border-width-0: 0rem;\n --ds-border-width-
|
|
6
|
+
declare const _default: "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-border-radius-050: 0.125rem;\n --ds-border-radius: 0.25rem;\n --ds-border-radius-100: 0.25rem;\n --ds-border-radius-200: 0.5rem;\n --ds-border-radius-300: 0.75rem;\n --ds-border-radius-400: 1rem;\n --ds-border-radius-circle: 2002rem;\n --ds-border-width: 0.0625rem;\n --ds-border-width-0: 0rem;\n --ds-border-width-indicator: 0.1875rem;\n --ds-border-width-outline: 0.125rem;\n}\n";
|
|
7
7
|
export default _default;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Token names mapped to their value in the default Atlassian themes ('light').
|
|
5
5
|
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
6
6
|
*
|
|
7
|
-
* @codegen <<SignedSource::
|
|
7
|
+
* @codegen <<SignedSource::a2442c19bc018ff0c9f4f96c2bfa54ab>>
|
|
8
8
|
* @codegenCommand yarn build tokens
|
|
9
9
|
*/
|
|
10
10
|
declare const defaultTokenValues: {
|
|
@@ -317,8 +317,8 @@ declare const defaultTokenValues: {
|
|
|
317
317
|
readonly 'border.radius.circle': "2002rem";
|
|
318
318
|
readonly 'border.width': "0.0625rem";
|
|
319
319
|
readonly 'border.width.0': "0rem";
|
|
320
|
-
readonly 'border.width.
|
|
321
|
-
readonly 'border.width.
|
|
320
|
+
readonly 'border.width.indicator': "0.1875rem";
|
|
321
|
+
readonly 'border.width.outline': "0.125rem";
|
|
322
322
|
readonly 'space.0': "0rem";
|
|
323
323
|
readonly 'space.025': "0.125rem";
|
|
324
324
|
readonly 'space.050': "0.25rem";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::0c77b46d428791fb0288b991d64320bc>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: {
|
|
@@ -313,8 +313,8 @@ declare const tokens: {
|
|
|
313
313
|
readonly 'border.radius.circle': "--ds-border-radius-circle";
|
|
314
314
|
readonly 'border.width': "--ds-border-width";
|
|
315
315
|
readonly 'border.width.0': "--ds-border-width-0";
|
|
316
|
-
readonly 'border.width.
|
|
317
|
-
readonly 'border.width.
|
|
316
|
+
readonly 'border.width.indicator': "--ds-border-width-indicator";
|
|
317
|
+
readonly 'border.width.outline': "--ds-border-width-outline";
|
|
318
318
|
readonly 'space.0': "--ds-space-0";
|
|
319
319
|
readonly 'space.025': "--ds-space-025";
|
|
320
320
|
readonly 'space.050': "--ds-space-050";
|
|
@@ -660,8 +660,8 @@ export type CSSTokenMap = {
|
|
|
660
660
|
'border.radius.circle': 'var(--ds-border-radius-circle)';
|
|
661
661
|
'border.width': 'var(--ds-border-width)';
|
|
662
662
|
'border.width.0': 'var(--ds-border-width-0)';
|
|
663
|
-
'border.width.
|
|
664
|
-
'border.width.
|
|
663
|
+
'border.width.indicator': 'var(--ds-border-width-indicator)';
|
|
664
|
+
'border.width.outline': 'var(--ds-border-width-outline)';
|
|
665
665
|
'space.0': 'var(--ds-space-0)';
|
|
666
666
|
'space.025': 'var(--ds-space-025)';
|
|
667
667
|
'space.050': 'var(--ds-space-050)';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::475f699859423669fdb3de04f32b3560>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
declare const tokens: {
|
|
6
|
+
declare const tokens: ({
|
|
7
7
|
attributes: {
|
|
8
8
|
group: string;
|
|
9
9
|
state: string;
|
|
10
10
|
introduced: string;
|
|
11
11
|
description: string;
|
|
12
|
+
suggest?: undefined;
|
|
12
13
|
};
|
|
13
14
|
value: string;
|
|
14
15
|
filePath: string;
|
|
@@ -19,11 +20,36 @@ declare const tokens: {
|
|
|
19
20
|
state: string;
|
|
20
21
|
introduced: string;
|
|
21
22
|
description: string;
|
|
23
|
+
suggest?: undefined;
|
|
22
24
|
};
|
|
23
25
|
value: string;
|
|
24
26
|
};
|
|
25
27
|
name: string;
|
|
26
28
|
path: string[];
|
|
27
29
|
cleanName: string;
|
|
28
|
-
}
|
|
30
|
+
} | {
|
|
31
|
+
attributes: {
|
|
32
|
+
group: string;
|
|
33
|
+
state: string;
|
|
34
|
+
suggest: string[];
|
|
35
|
+
introduced: string;
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
value: string;
|
|
39
|
+
filePath: string;
|
|
40
|
+
isSource: boolean;
|
|
41
|
+
original: {
|
|
42
|
+
attributes: {
|
|
43
|
+
group: string;
|
|
44
|
+
state: string;
|
|
45
|
+
suggest: string[];
|
|
46
|
+
introduced: string;
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
value: string;
|
|
50
|
+
};
|
|
51
|
+
name: string;
|
|
52
|
+
path: string[];
|
|
53
|
+
cleanName: string;
|
|
54
|
+
})[];
|
|
29
55
|
export default tokens;
|