@atlaskit/tokens 1.2.1 → 1.2.2
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/README.md +1 -23
- 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 +2 -1
- package/dist/cjs/artifacts/token-names.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +23 -1
- 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/tokens/atlassian-shape/shape.js +3 -0
- package/dist/cjs/tokens/default/shape/shape.js +8 -0
- 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 +2 -1
- package/dist/es2019/artifacts/token-default-values.js +2 -1
- package/dist/es2019/artifacts/token-names.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +23 -1
- 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/tokens/atlassian-shape/shape.js +3 -0
- package/dist/es2019/tokens/default/shape/shape.js +8 -0
- 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 +2 -1
- package/dist/esm/artifacts/token-names.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +23 -1
- 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/tokens/atlassian-shape/shape.js +3 -0
- package/dist/esm/tokens/default/shape/shape.js +8 -0
- 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 +2 -1
- package/dist/types/artifacts/token-names.d.ts +3 -1
- package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
- package/dist/types/palettes/shape-palette.d.ts +6 -0
- package/dist/types/types.d.ts +1 -0
- package/figma/atlassian-shape.json +9 -0
- package/package.json +4 -3
- package/report.api.md +2 -0
- package/tmp/api-report-tmp.d.ts +2 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -10,29 +10,7 @@ yarn add @atlaskit/tokens
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
To load and set themes into your app, call setGlobalTheme during runtime.
|
|
16
|
-
|
|
17
|
-
```tsx
|
|
18
|
-
import { setGlobalTheme } from '@atlaskit/tokens';
|
|
19
|
-
|
|
20
|
-
setGlobalTheme({ colorMode: 'light', light: 'light', dark: 'dark' });
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
### Token
|
|
24
|
-
|
|
25
|
-
Use the `token` function to get a [CSS variable](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) for the named token.
|
|
26
|
-
|
|
27
|
-
```tsx
|
|
28
|
-
import { token } from '@atlaskit/tokens';
|
|
29
|
-
|
|
30
|
-
token('color.background.default');
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Learn more
|
|
34
|
-
|
|
35
|
-
To learn more about the tokens package API, view the [token package docs on atlassian.design](https://atlassian.design/components/tokens/code)
|
|
13
|
+
[View documentation](https://atlassian.design/components/tokens).
|
|
36
14
|
|
|
37
15
|
# BabelPlugin
|
|
38
16
|
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::d9adf6612a4bc5957b7824e1f32a76b2>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
var tokens = [{
|
|
@@ -99,6 +99,21 @@ var tokens = [{
|
|
|
99
99
|
},
|
|
100
100
|
"name": "border.radius.RadiusCircle",
|
|
101
101
|
"path": ["border", "radius", "RadiusCircle"]
|
|
102
|
+
}, {
|
|
103
|
+
"value": "0",
|
|
104
|
+
"attributes": {
|
|
105
|
+
"group": "shape"
|
|
106
|
+
},
|
|
107
|
+
"filePath": "src/palettes/shape-palette.tsx",
|
|
108
|
+
"isSource": true,
|
|
109
|
+
"original": {
|
|
110
|
+
"value": "0",
|
|
111
|
+
"attributes": {
|
|
112
|
+
"group": "shape"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"name": "border.width.Size0",
|
|
116
|
+
"path": ["border", "width", "Size0"]
|
|
102
117
|
}, {
|
|
103
118
|
"value": "0.0625rem",
|
|
104
119
|
"attributes": {
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::e1827dff880ab23a73ac703dfb8f2018>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
|
-
var _default = "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-radius-050: 0.125rem;\n --ds-radius-100: 0.25rem;\n --ds-radius-200: 0.5rem;\n --ds-radius-300: 0.75rem;\n --ds-radius-400: 1rem;\n --ds-radius-round: 50%;\n --ds-width-050: 0.0625rem;\n --ds-width-100: 0.125rem;\n}\n";
|
|
12
|
+
var _default = "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-radius-050: 0.125rem;\n --ds-radius-100: 0.25rem;\n --ds-radius-200: 0.5rem;\n --ds-radius-300: 0.75rem;\n --ds-radius-400: 1rem;\n --ds-radius-round: 50%;\n --ds-width-0: 0;\n --ds-width-050: 0.0625rem;\n --ds-width-100: 0.125rem;\n}\n";
|
|
13
13
|
exports.default = _default;
|
|
@@ -10,7 +10,7 @@ exports.default = void 0;
|
|
|
10
10
|
* Token names mapped to their value in the default Atlassian themes ('light').
|
|
11
11
|
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
12
12
|
*
|
|
13
|
-
* @codegen <<SignedSource::
|
|
13
|
+
* @codegen <<SignedSource::9c962af7a2afdab3160e3f3a2b285a8a>>
|
|
14
14
|
* @codegenCommand yarn build tokens
|
|
15
15
|
*/
|
|
16
16
|
var defaultTokenValues = {
|
|
@@ -20,6 +20,7 @@ var defaultTokenValues = {
|
|
|
20
20
|
'border.radius.300': '0.75rem',
|
|
21
21
|
'border.radius.400': '1rem',
|
|
22
22
|
'border.radius.round': '50%',
|
|
23
|
+
'border.width.0': '0',
|
|
23
24
|
'border.width.050': '0.0625rem',
|
|
24
25
|
'border.width.100': '0.125rem',
|
|
25
26
|
'color.text': '#172B4D',
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::462a85d7e15b8fb4e0c4225b94e89903>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
var tokens = {
|
|
@@ -16,6 +16,7 @@ var tokens = {
|
|
|
16
16
|
'border.radius.300': '--ds-radius-300',
|
|
17
17
|
'border.radius.400': '--ds-radius-400',
|
|
18
18
|
'border.radius.round': '--ds-radius-round',
|
|
19
|
+
'border.width.0': '--ds-width-0',
|
|
19
20
|
'border.width.050': '--ds-width-050',
|
|
20
21
|
'border.width.100': '--ds-width-100',
|
|
21
22
|
'color.text': '--ds-text',
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::f4523de23a205d43950d1b24f656f952>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
var tokens = [{
|
|
@@ -141,6 +141,28 @@ var tokens = [{
|
|
|
141
141
|
"name": "border.radius.round",
|
|
142
142
|
"path": ["border", "radius", "round"],
|
|
143
143
|
"cleanName": "border.radius.round"
|
|
144
|
+
}, {
|
|
145
|
+
"attributes": {
|
|
146
|
+
"group": "shape",
|
|
147
|
+
"state": "experimental",
|
|
148
|
+
"introduced": "1.2.1",
|
|
149
|
+
"description": "Experimental, description needs to be amended"
|
|
150
|
+
},
|
|
151
|
+
"value": "0",
|
|
152
|
+
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
153
|
+
"isSource": true,
|
|
154
|
+
"original": {
|
|
155
|
+
"attributes": {
|
|
156
|
+
"group": "shape",
|
|
157
|
+
"state": "experimental",
|
|
158
|
+
"introduced": "1.2.1",
|
|
159
|
+
"description": "Experimental, description needs to be amended"
|
|
160
|
+
},
|
|
161
|
+
"value": "Size0"
|
|
162
|
+
},
|
|
163
|
+
"name": "border.width.0",
|
|
164
|
+
"path": ["border", "width", "0"],
|
|
165
|
+
"cleanName": "border.width.0"
|
|
144
166
|
}, {
|
|
145
167
|
"attributes": {
|
|
146
168
|
"group": "shape",
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
|
|
9
9
|
var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
|
|
10
10
|
var name = "@atlaskit/tokens";
|
|
11
|
-
var version = "1.2.
|
|
11
|
+
var version = "1.2.2";
|
|
12
12
|
/**
|
|
13
13
|
* Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
|
|
14
14
|
* resulting CSS Custom Property.
|
package/dist/cjs/get-token.js
CHANGED
|
@@ -9,7 +9,7 @@ var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
|
|
|
9
9
|
var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
|
|
10
10
|
var _constants = require("./constants");
|
|
11
11
|
var name = "@atlaskit/tokens";
|
|
12
|
-
var version = "1.2.
|
|
12
|
+
var version = "1.2.2";
|
|
13
13
|
/**
|
|
14
14
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
|
15
15
|
* This should be used to implement design decisions throughout your application.
|
|
@@ -7,6 +7,14 @@ exports.default = void 0;
|
|
|
7
7
|
var shape = {
|
|
8
8
|
border: {
|
|
9
9
|
width: {
|
|
10
|
+
'0': {
|
|
11
|
+
attributes: {
|
|
12
|
+
group: 'shape',
|
|
13
|
+
state: 'experimental',
|
|
14
|
+
introduced: '1.2.1',
|
|
15
|
+
description: 'Experimental, description needs to be amended'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
10
18
|
'050': {
|
|
11
19
|
attributes: {
|
|
12
20
|
group: 'shape',
|
package/dist/cjs/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::d9adf6612a4bc5957b7824e1f32a76b2>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -93,6 +93,21 @@ const tokens = [{
|
|
|
93
93
|
},
|
|
94
94
|
"name": "border.radius.RadiusCircle",
|
|
95
95
|
"path": ["border", "radius", "RadiusCircle"]
|
|
96
|
+
}, {
|
|
97
|
+
"value": "0",
|
|
98
|
+
"attributes": {
|
|
99
|
+
"group": "shape"
|
|
100
|
+
},
|
|
101
|
+
"filePath": "src/palettes/shape-palette.tsx",
|
|
102
|
+
"isSource": true,
|
|
103
|
+
"original": {
|
|
104
|
+
"value": "0",
|
|
105
|
+
"attributes": {
|
|
106
|
+
"group": "shape"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"name": "border.width.Size0",
|
|
110
|
+
"path": ["border", "width", "Size0"]
|
|
96
111
|
}, {
|
|
97
112
|
"value": "0.0625rem",
|
|
98
113
|
"attributes": {
|
|
@@ -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::e1827dff880ab23a73ac703dfb8f2018>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
export default `
|
|
@@ -11,6 +11,7 @@ html[data-theme~="shape:shape"] {
|
|
|
11
11
|
--ds-radius-300: 0.75rem;
|
|
12
12
|
--ds-radius-400: 1rem;
|
|
13
13
|
--ds-radius-round: 50%;
|
|
14
|
+
--ds-width-0: 0;
|
|
14
15
|
--ds-width-050: 0.0625rem;
|
|
15
16
|
--ds-width-100: 0.125rem;
|
|
16
17
|
}
|
|
@@ -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::9c962af7a2afdab3160e3f3a2b285a8a>>
|
|
8
8
|
* @codegenCommand yarn build tokens
|
|
9
9
|
*/
|
|
10
10
|
const defaultTokenValues = {
|
|
@@ -14,6 +14,7 @@ const defaultTokenValues = {
|
|
|
14
14
|
'border.radius.300': '0.75rem',
|
|
15
15
|
'border.radius.400': '1rem',
|
|
16
16
|
'border.radius.round': '50%',
|
|
17
|
+
'border.width.0': '0',
|
|
17
18
|
'border.width.050': '0.0625rem',
|
|
18
19
|
'border.width.100': '0.125rem',
|
|
19
20
|
'color.text': '#172B4D',
|
|
@@ -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::462a85d7e15b8fb4e0c4225b94e89903>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = {
|
|
@@ -10,6 +10,7 @@ const tokens = {
|
|
|
10
10
|
'border.radius.300': '--ds-radius-300',
|
|
11
11
|
'border.radius.400': '--ds-radius-400',
|
|
12
12
|
'border.radius.round': '--ds-radius-round',
|
|
13
|
+
'border.width.0': '--ds-width-0',
|
|
13
14
|
'border.width.050': '--ds-width-050',
|
|
14
15
|
'border.width.100': '--ds-width-100',
|
|
15
16
|
'color.text': '--ds-text',
|
|
@@ -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::f4523de23a205d43950d1b24f656f952>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -135,6 +135,28 @@ const tokens = [{
|
|
|
135
135
|
"name": "border.radius.round",
|
|
136
136
|
"path": ["border", "radius", "round"],
|
|
137
137
|
"cleanName": "border.radius.round"
|
|
138
|
+
}, {
|
|
139
|
+
"attributes": {
|
|
140
|
+
"group": "shape",
|
|
141
|
+
"state": "experimental",
|
|
142
|
+
"introduced": "1.2.1",
|
|
143
|
+
"description": "Experimental, description needs to be amended"
|
|
144
|
+
},
|
|
145
|
+
"value": "0",
|
|
146
|
+
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
147
|
+
"isSource": true,
|
|
148
|
+
"original": {
|
|
149
|
+
"attributes": {
|
|
150
|
+
"group": "shape",
|
|
151
|
+
"state": "experimental",
|
|
152
|
+
"introduced": "1.2.1",
|
|
153
|
+
"description": "Experimental, description needs to be amended"
|
|
154
|
+
},
|
|
155
|
+
"value": "Size0"
|
|
156
|
+
},
|
|
157
|
+
"name": "border.width.0",
|
|
158
|
+
"path": ["border", "width", "0"],
|
|
159
|
+
"cleanName": "border.width.0"
|
|
138
160
|
}, {
|
|
139
161
|
"attributes": {
|
|
140
162
|
"group": "shape",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
const name = "@atlaskit/tokens";
|
|
4
|
-
const version = "1.2.
|
|
4
|
+
const version = "1.2.2";
|
|
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/es2019/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
|
const name = "@atlaskit/tokens";
|
|
5
|
-
const version = "1.2.
|
|
5
|
+
const version = "1.2.2";
|
|
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.
|
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::d9adf6612a4bc5957b7824e1f32a76b2>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
@@ -93,6 +93,21 @@ var tokens = [{
|
|
|
93
93
|
},
|
|
94
94
|
"name": "border.radius.RadiusCircle",
|
|
95
95
|
"path": ["border", "radius", "RadiusCircle"]
|
|
96
|
+
}, {
|
|
97
|
+
"value": "0",
|
|
98
|
+
"attributes": {
|
|
99
|
+
"group": "shape"
|
|
100
|
+
},
|
|
101
|
+
"filePath": "src/palettes/shape-palette.tsx",
|
|
102
|
+
"isSource": true,
|
|
103
|
+
"original": {
|
|
104
|
+
"value": "0",
|
|
105
|
+
"attributes": {
|
|
106
|
+
"group": "shape"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"name": "border.width.Size0",
|
|
110
|
+
"path": ["border", "width", "Size0"]
|
|
96
111
|
}, {
|
|
97
112
|
"value": "0.0625rem",
|
|
98
113
|
"attributes": {
|
|
@@ -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::e1827dff880ab23a73ac703dfb8f2018>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
export default "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-radius-050: 0.125rem;\n --ds-radius-100: 0.25rem;\n --ds-radius-200: 0.5rem;\n --ds-radius-300: 0.75rem;\n --ds-radius-400: 1rem;\n --ds-radius-round: 50%;\n --ds-width-050: 0.0625rem;\n --ds-width-100: 0.125rem;\n}\n";
|
|
6
|
+
export default "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-radius-050: 0.125rem;\n --ds-radius-100: 0.25rem;\n --ds-radius-200: 0.5rem;\n --ds-radius-300: 0.75rem;\n --ds-radius-400: 1rem;\n --ds-radius-round: 50%;\n --ds-width-0: 0;\n --ds-width-050: 0.0625rem;\n --ds-width-100: 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::9c962af7a2afdab3160e3f3a2b285a8a>>
|
|
8
8
|
* @codegenCommand yarn build tokens
|
|
9
9
|
*/
|
|
10
10
|
var defaultTokenValues = {
|
|
@@ -14,6 +14,7 @@ var defaultTokenValues = {
|
|
|
14
14
|
'border.radius.300': '0.75rem',
|
|
15
15
|
'border.radius.400': '1rem',
|
|
16
16
|
'border.radius.round': '50%',
|
|
17
|
+
'border.width.0': '0',
|
|
17
18
|
'border.width.050': '0.0625rem',
|
|
18
19
|
'border.width.100': '0.125rem',
|
|
19
20
|
'color.text': '#172B4D',
|
|
@@ -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::462a85d7e15b8fb4e0c4225b94e89903>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = {
|
|
@@ -10,6 +10,7 @@ var tokens = {
|
|
|
10
10
|
'border.radius.300': '--ds-radius-300',
|
|
11
11
|
'border.radius.400': '--ds-radius-400',
|
|
12
12
|
'border.radius.round': '--ds-radius-round',
|
|
13
|
+
'border.width.0': '--ds-width-0',
|
|
13
14
|
'border.width.050': '--ds-width-050',
|
|
14
15
|
'border.width.100': '--ds-width-100',
|
|
15
16
|
'color.text': '--ds-text',
|
|
@@ -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::f4523de23a205d43950d1b24f656f952>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
@@ -135,6 +135,28 @@ var tokens = [{
|
|
|
135
135
|
"name": "border.radius.round",
|
|
136
136
|
"path": ["border", "radius", "round"],
|
|
137
137
|
"cleanName": "border.radius.round"
|
|
138
|
+
}, {
|
|
139
|
+
"attributes": {
|
|
140
|
+
"group": "shape",
|
|
141
|
+
"state": "experimental",
|
|
142
|
+
"introduced": "1.2.1",
|
|
143
|
+
"description": "Experimental, description needs to be amended"
|
|
144
|
+
},
|
|
145
|
+
"value": "0",
|
|
146
|
+
"filePath": "src/tokens/atlassian-shape/shape.tsx",
|
|
147
|
+
"isSource": true,
|
|
148
|
+
"original": {
|
|
149
|
+
"attributes": {
|
|
150
|
+
"group": "shape",
|
|
151
|
+
"state": "experimental",
|
|
152
|
+
"introduced": "1.2.1",
|
|
153
|
+
"description": "Experimental, description needs to be amended"
|
|
154
|
+
},
|
|
155
|
+
"value": "Size0"
|
|
156
|
+
},
|
|
157
|
+
"name": "border.width.0",
|
|
158
|
+
"path": ["border", "width", "0"],
|
|
159
|
+
"cleanName": "border.width.0"
|
|
138
160
|
}, {
|
|
139
161
|
"attributes": {
|
|
140
162
|
"group": "shape",
|
|
@@ -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.2.
|
|
4
|
+
var version = "1.2.2";
|
|
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.2.
|
|
5
|
+
var version = "1.2.2";
|
|
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.
|
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::d9adf6612a4bc5957b7824e1f32a76b2>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-radius-050: 0.125rem;\n --ds-radius-100: 0.25rem;\n --ds-radius-200: 0.5rem;\n --ds-radius-300: 0.75rem;\n --ds-radius-400: 1rem;\n --ds-radius-round: 50%;\n --ds-width-050: 0.0625rem;\n --ds-width-100: 0.125rem;\n}\n";
|
|
1
|
+
declare const _default: "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-radius-050: 0.125rem;\n --ds-radius-100: 0.25rem;\n --ds-radius-200: 0.5rem;\n --ds-radius-300: 0.75rem;\n --ds-radius-400: 1rem;\n --ds-radius-round: 50%;\n --ds-width-0: 0;\n --ds-width-050: 0.0625rem;\n --ds-width-100: 0.125rem;\n}\n";
|
|
2
2
|
/**
|
|
3
3
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
4
|
-
* @codegen <<SignedSource::
|
|
4
|
+
* @codegen <<SignedSource::e1827dff880ab23a73ac703dfb8f2018>>
|
|
5
5
|
* @codegenCommand yarn build tokens
|
|
6
6
|
*/
|
|
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::9c962af7a2afdab3160e3f3a2b285a8a>>
|
|
8
8
|
* @codegenCommand yarn build tokens
|
|
9
9
|
*/
|
|
10
10
|
declare const defaultTokenValues: {
|
|
@@ -14,6 +14,7 @@ declare const defaultTokenValues: {
|
|
|
14
14
|
readonly 'border.radius.300': "0.75rem";
|
|
15
15
|
readonly 'border.radius.400': "1rem";
|
|
16
16
|
readonly 'border.radius.round': "50%";
|
|
17
|
+
readonly 'border.width.0': "0";
|
|
17
18
|
readonly 'border.width.050': "0.0625rem";
|
|
18
19
|
readonly 'border.width.100': "0.125rem";
|
|
19
20
|
readonly 'color.text': "#172B4D";
|
|
@@ -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::462a85d7e15b8fb4e0c4225b94e89903>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: {
|
|
@@ -10,6 +10,7 @@ declare const tokens: {
|
|
|
10
10
|
readonly 'border.radius.300': "--ds-radius-300";
|
|
11
11
|
readonly 'border.radius.400': "--ds-radius-400";
|
|
12
12
|
readonly 'border.radius.round': "--ds-radius-round";
|
|
13
|
+
readonly 'border.width.0': "--ds-width-0";
|
|
13
14
|
readonly 'border.width.050': "--ds-width-050";
|
|
14
15
|
readonly 'border.width.100': "--ds-width-100";
|
|
15
16
|
readonly 'color.text': "--ds-text";
|
|
@@ -340,6 +341,7 @@ export declare type CSSTokenMap = {
|
|
|
340
341
|
'border.radius.300': 'var(--ds-radius-300)';
|
|
341
342
|
'border.radius.400': 'var(--ds-radius-400)';
|
|
342
343
|
'border.radius.round': 'var(--ds-radius-round)';
|
|
344
|
+
'border.width.0': 'var(--ds-width-0)';
|
|
343
345
|
'border.width.050': 'var(--ds-width-050)';
|
|
344
346
|
'border.width.100': 'var(--ds-width-100)';
|
|
345
347
|
'color.text': 'var(--ds-text)';
|
|
@@ -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::f4523de23a205d43950d1b24f656f952>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: {
|
|
@@ -6,6 +6,12 @@ export declare type ShapePaletteToken = BaseRadiusToken | BaseSizeToken;
|
|
|
6
6
|
export declare type BaseSizeToken = keyof typeof baseSizeTokens;
|
|
7
7
|
export declare type BaseRadiusToken = keyof typeof baseRadiusTokens;
|
|
8
8
|
declare const baseSizeTokens: {
|
|
9
|
+
readonly Size0: {
|
|
10
|
+
readonly value: "0";
|
|
11
|
+
readonly attributes: {
|
|
12
|
+
readonly group: "shape";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
9
15
|
readonly Size050: {
|
|
10
16
|
readonly value: "0.0625rem";
|
|
11
17
|
readonly attributes: {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -55,6 +55,15 @@
|
|
|
55
55
|
},
|
|
56
56
|
"value": "50%"
|
|
57
57
|
},
|
|
58
|
+
"Shape/border.width.0": {
|
|
59
|
+
"attributes": {
|
|
60
|
+
"group": "shape",
|
|
61
|
+
"state": "experimental",
|
|
62
|
+
"introduced": "1.2.1",
|
|
63
|
+
"description": "Experimental, description needs to be amended"
|
|
64
|
+
},
|
|
65
|
+
"value": "0"
|
|
66
|
+
},
|
|
58
67
|
"Shape/border.width.050": {
|
|
59
68
|
"attributes": {
|
|
60
69
|
"group": "shape",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"author": "Atlassian Pty Ltd",
|
|
5
5
|
"description": "Design tokens are the single source of truth to name and store design decisions.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
|
-
"disableProductCI": true,
|
|
12
11
|
"team": "Design System Team",
|
|
13
12
|
"releaseModel": "continuous",
|
|
14
13
|
"website": {
|
|
@@ -67,15 +66,17 @@
|
|
|
67
66
|
"@atlaskit/checkbox": "^12.4.0",
|
|
68
67
|
"@atlaskit/code": "^14.4.5",
|
|
69
68
|
"@atlaskit/docs": "^9.0.10",
|
|
70
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
69
|
+
"@atlaskit/dropdown-menu": "^11.6.0",
|
|
71
70
|
"@atlaskit/ds-explorations": "^2.0.0",
|
|
72
71
|
"@atlaskit/dynamic-table": "^14.8.0",
|
|
73
72
|
"@atlaskit/empty-state": "^7.4.0",
|
|
74
73
|
"@atlaskit/focus-ring": "^1.2.0",
|
|
74
|
+
"@atlaskit/grid": "^0.7.0",
|
|
75
75
|
"@atlaskit/heading": "^1.1.0",
|
|
76
76
|
"@atlaskit/icon": "^21.11.0",
|
|
77
77
|
"@atlaskit/lozenge": "^11.3.0",
|
|
78
78
|
"@atlaskit/modal-dialog": "^12.4.0",
|
|
79
|
+
"@atlaskit/primitives": "^0.2.0",
|
|
79
80
|
"@atlaskit/section-message": "^6.3.0",
|
|
80
81
|
"@atlaskit/tabs": "^13.3.0",
|
|
81
82
|
"@atlaskit/tag": "^11.4.0",
|
package/report.api.md
CHANGED
|
@@ -28,6 +28,7 @@ type CSSTokenMap = {
|
|
|
28
28
|
'border.radius.300': 'var(--ds-radius-300)';
|
|
29
29
|
'border.radius.400': 'var(--ds-radius-400)';
|
|
30
30
|
'border.radius.round': 'var(--ds-radius-round)';
|
|
31
|
+
'border.width.0': 'var(--ds-width-0)';
|
|
31
32
|
'border.width.050': 'var(--ds-width-050)';
|
|
32
33
|
'border.width.100': 'var(--ds-width-100)';
|
|
33
34
|
'color.text': 'var(--ds-text)';
|
|
@@ -522,6 +523,7 @@ const tokens: {
|
|
|
522
523
|
readonly 'border.radius.300': '--ds-radius-300';
|
|
523
524
|
readonly 'border.radius.400': '--ds-radius-400';
|
|
524
525
|
readonly 'border.radius.round': '--ds-radius-round';
|
|
526
|
+
readonly 'border.width.0': '--ds-width-0';
|
|
525
527
|
readonly 'border.width.050': '--ds-width-050';
|
|
526
528
|
readonly 'border.width.100': '--ds-width-100';
|
|
527
529
|
readonly 'color.text': '--ds-text';
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ type CSSTokenMap = {
|
|
|
17
17
|
'border.radius.300': 'var(--ds-radius-300)';
|
|
18
18
|
'border.radius.400': 'var(--ds-radius-400)';
|
|
19
19
|
'border.radius.round': 'var(--ds-radius-round)';
|
|
20
|
+
'border.width.0': 'var(--ds-width-0)';
|
|
20
21
|
'border.width.050': 'var(--ds-width-050)';
|
|
21
22
|
'border.width.100': 'var(--ds-width-100)';
|
|
22
23
|
'color.text': 'var(--ds-text)';
|
|
@@ -462,6 +463,7 @@ const tokens: {
|
|
|
462
463
|
readonly 'border.radius.300': "--ds-radius-300";
|
|
463
464
|
readonly 'border.radius.400': "--ds-radius-400";
|
|
464
465
|
readonly 'border.radius.round': "--ds-radius-round";
|
|
466
|
+
readonly 'border.width.0': "--ds-width-0";
|
|
465
467
|
readonly 'border.width.050': "--ds-width-050";
|
|
466
468
|
readonly 'border.width.100': "--ds-width-100";
|
|
467
469
|
readonly 'color.text': "--ds-text";
|