@atlaskit/tokens 0.7.0 → 0.7.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 +18 -0
- package/css/atlassian-dark.css +3 -0
- package/css/atlassian-light.css +4 -1
- package/dist/cjs/artifacts/rename-mapping.js +1 -1
- package/dist/cjs/artifacts/token-default-values.js +4 -1
- package/dist/cjs/artifacts/token-names.js +3 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +93 -4
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +95 -6
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/tokens/atlassian-dark/color/background.js +11 -1
- package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +23 -0
- package/dist/cjs/tokens/atlassian-light/color/background.js +11 -1
- package/dist/cjs/tokens/atlassian-light/elevation/shadow.js +19 -0
- package/dist/cjs/tokens/atlassian-light/elevation/surface.js +1 -1
- package/dist/cjs/tokens/default/color/background.js +20 -4
- package/dist/cjs/tokens/default/deprecated/deprecated.js +1 -1
- package/dist/cjs/tokens/default/elevation/shadow.js +7 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/rename-mapping.js +1 -1
- package/dist/es2019/artifacts/token-default-values.js +4 -1
- package/dist/es2019/artifacts/token-names.js +3 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +93 -4
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +95 -6
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/tokens/atlassian-dark/color/background.js +11 -1
- package/dist/es2019/tokens/atlassian-dark/elevation/shadow.js +23 -0
- package/dist/es2019/tokens/atlassian-light/color/background.js +11 -1
- package/dist/es2019/tokens/atlassian-light/elevation/shadow.js +19 -0
- package/dist/es2019/tokens/atlassian-light/elevation/surface.js +1 -1
- package/dist/es2019/tokens/default/color/background.js +20 -4
- package/dist/es2019/tokens/default/deprecated/deprecated.js +1 -1
- package/dist/es2019/tokens/default/elevation/shadow.js +7 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/rename-mapping.js +1 -1
- package/dist/esm/artifacts/token-default-values.js +4 -1
- package/dist/esm/artifacts/token-names.js +3 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +93 -4
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +95 -6
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/tokens/atlassian-dark/color/background.js +11 -1
- package/dist/esm/tokens/atlassian-dark/elevation/shadow.js +23 -0
- package/dist/esm/tokens/atlassian-light/color/background.js +11 -1
- package/dist/esm/tokens/atlassian-light/elevation/shadow.js +19 -0
- package/dist/esm/tokens/atlassian-light/elevation/surface.js +1 -1
- package/dist/esm/tokens/default/color/background.js +20 -4
- package/dist/esm/tokens/default/deprecated/deprecated.js +1 -1
- package/dist/esm/tokens/default/elevation/shadow.js +7 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/token-default-values.d.ts +4 -1
- package/dist/types/artifacts/token-names.d.ts +6 -0
- package/dist/types/artifacts/types-internal.d.ts +1 -1
- package/dist/types/artifacts/types.d.ts +1 -1
- package/dist/types/tokens/default/utility/utility.d.ts +10 -10
- package/dist/types/types.d.ts +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/tokens
|
|
2
2
|
|
|
3
|
+
## 0.7.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ba0ddcf976e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ba0ddcf976e) - Adding new token for `elevation.shadow.overflow`
|
|
8
|
+
|
|
9
|
+
## 0.7.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`2229ec7c745`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2229ec7c745) - elevation.sunken no longer uses a transparent color
|
|
14
|
+
|
|
15
|
+
## 0.7.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`5d35c6b1c5f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d35c6b1c5f) - Adding new tokens for `color.blanket.selected` and `color.blanket.danger`
|
|
20
|
+
|
|
3
21
|
## 0.7.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/css/atlassian-dark.css
CHANGED
|
@@ -230,6 +230,8 @@ html[data-theme="dark"] {
|
|
|
230
230
|
--ds-background-transparentNeutral-hover: #A1BDD914;
|
|
231
231
|
--ds-background-transparentNeutral-pressed: #A6C5E229;
|
|
232
232
|
--ds-blanket: #03040442;
|
|
233
|
+
--ds-blanket-selected: #1D7AFCCC;
|
|
234
|
+
--ds-blanket-danger: #E34935CC;
|
|
233
235
|
--ds-interaction-hovered: #00000029;
|
|
234
236
|
--ds-interaction-pressed: #00000052;
|
|
235
237
|
--ds-interaction-inverse-hovered: #ffffff33;
|
|
@@ -259,6 +261,7 @@ html[data-theme="dark"] {
|
|
|
259
261
|
--ds-card: 0px 1px 1px #03040480, 0px 0px 1px #03040480;
|
|
260
262
|
--ds-overlay: inset 0px 0px 0px 1px #BCD6F00A, 0px 8px 12px #0304045C, 0px 0px 1px #03040480;
|
|
261
263
|
--ds-shadow-raised: 0px 1px 1px #03040480, 0px 0px 1px #03040480;
|
|
264
|
+
--ds-shadow-overflow: 0px 0px 12px #0304048F, 0px 0px 1px #03040480;
|
|
262
265
|
--ds-shadow-overlay: inset 0px 0px 0px 1px #BCD6F00A, 0px 8px 12px #0304045C, 0px 0px 1px #03040480;
|
|
263
266
|
--ds-surface: #161A1D;
|
|
264
267
|
--ds-surface-sunken: #101214;
|
package/css/atlassian-light.css
CHANGED
|
@@ -230,6 +230,8 @@
|
|
|
230
230
|
--ds-background-transparentNeutral-hover: #091E420F;
|
|
231
231
|
--ds-background-transparentNeutral-pressed: #091E4224;
|
|
232
232
|
--ds-blanket: #091E427A;
|
|
233
|
+
--ds-blanket-selected: #388BFFCC;
|
|
234
|
+
--ds-blanket-danger: #EF5C48CC;
|
|
233
235
|
--ds-interaction-hovered: #ffffff33;
|
|
234
236
|
--ds-interaction-pressed: #ffffff5c;
|
|
235
237
|
--ds-interaction-inverse-hovered: #00000029;
|
|
@@ -259,9 +261,10 @@
|
|
|
259
261
|
--ds-card: 0px 1px 1px #091E4240, 0px 0px 1px #091E424F;
|
|
260
262
|
--ds-overlay: 0px 8px 12px #091E4226, 0px 0px 1px #091E424F;
|
|
261
263
|
--ds-shadow-raised: 0px 1px 1px #091E4240, 0px 0px 1px #091E424F;
|
|
264
|
+
--ds-shadow-overflow: 0px 8px 8px #091E4214, 0px 0px 1px #091E421F;
|
|
262
265
|
--ds-shadow-overlay: 0px 8px 12px #091E4226, 0px 0px 1px #091E424F;
|
|
263
266
|
--ds-surface: #FFFFFF;
|
|
264
|
-
--ds-surface-sunken: #
|
|
267
|
+
--ds-surface-sunken: #F7F8F9;
|
|
265
268
|
--ds-surface-raised: #FFFFFF;
|
|
266
269
|
--ds-surface-overlay: #FFFFFF;
|
|
267
270
|
--ds-UNSAFE_util-transparent: transparent;
|
|
@@ -141,7 +141,7 @@ var renameMapper = [{
|
|
|
141
141
|
}, {
|
|
142
142
|
"path": "color.background.blanket",
|
|
143
143
|
"state": "deprecated",
|
|
144
|
-
"replacement": "color.blanket"
|
|
144
|
+
"replacement": "color.blanket.[default]"
|
|
145
145
|
}, {
|
|
146
146
|
"path": "color.background.boldBrand.hover",
|
|
147
147
|
"state": "deprecated",
|
|
@@ -240,6 +240,8 @@ var defaultTokenValues = {
|
|
|
240
240
|
'color.background.transparentNeutral.hover': '#091E420F',
|
|
241
241
|
'color.background.transparentNeutral.pressed': '#091E4224',
|
|
242
242
|
'color.blanket': '#091E427A',
|
|
243
|
+
'color.blanket.selected': '#388BFFCC',
|
|
244
|
+
'color.blanket.danger': '#EF5C48CC',
|
|
243
245
|
'color.interaction.hovered': '#ffffff33',
|
|
244
246
|
'color.interaction.pressed': '#ffffff5c',
|
|
245
247
|
'color.interaction.inverse.hovered': '#00000029',
|
|
@@ -269,9 +271,10 @@ var defaultTokenValues = {
|
|
|
269
271
|
'shadow.card': '0px 1px 1px #091E4240, 0px 0px 1px #091E424F',
|
|
270
272
|
'shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
|
|
271
273
|
'elevation.shadow.raised': '0px 1px 1px #091E4240, 0px 0px 1px #091E424F',
|
|
274
|
+
'elevation.shadow.overflow': '0px 8px 8px #091E4214, 0px 0px 1px #091E421F',
|
|
272
275
|
'elevation.shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
|
|
273
276
|
'elevation.surface': '#FFFFFF',
|
|
274
|
-
'elevation.surface.sunken': '#
|
|
277
|
+
'elevation.surface.sunken': '#F7F8F9',
|
|
275
278
|
'elevation.surface.raised': '#FFFFFF',
|
|
276
279
|
'elevation.surface.overlay': '#FFFFFF',
|
|
277
280
|
'utility.UNSAFE_util.transparent': 'transparent',
|
|
@@ -236,6 +236,8 @@ var tokens = {
|
|
|
236
236
|
'color.background.transparentNeutral.hover': '--ds-background-transparentNeutral-hover',
|
|
237
237
|
'color.background.transparentNeutral.pressed': '--ds-background-transparentNeutral-pressed',
|
|
238
238
|
'color.blanket': '--ds-blanket',
|
|
239
|
+
'color.blanket.selected': '--ds-blanket-selected',
|
|
240
|
+
'color.blanket.danger': '--ds-blanket-danger',
|
|
239
241
|
'color.interaction.hovered': '--ds-interaction-hovered',
|
|
240
242
|
'color.interaction.pressed': '--ds-interaction-pressed',
|
|
241
243
|
'color.interaction.inverse.hovered': '--ds-interaction-inverse-hovered',
|
|
@@ -265,6 +267,7 @@ var tokens = {
|
|
|
265
267
|
'shadow.card': '--ds-card',
|
|
266
268
|
'shadow.overlay': '--ds-overlay',
|
|
267
269
|
'elevation.shadow.raised': '--ds-shadow-raised',
|
|
270
|
+
'elevation.shadow.overflow': '--ds-shadow-overflow',
|
|
268
271
|
'elevation.shadow.overlay': '--ds-shadow-overlay',
|
|
269
272
|
'elevation.surface': '--ds-surface',
|
|
270
273
|
'elevation.surface.sunken': '--ds-surface-sunken',
|
|
@@ -3547,7 +3547,7 @@ var tokens = [{
|
|
|
3547
3547
|
"attributes": {
|
|
3548
3548
|
"group": "paint",
|
|
3549
3549
|
"state": "deprecated",
|
|
3550
|
-
"replacement": "color.blanket",
|
|
3550
|
+
"replacement": "color.blanket.[default]",
|
|
3551
3551
|
"description": "Use for the screen overlay that appears with modal dialogs"
|
|
3552
3552
|
},
|
|
3553
3553
|
"value": "#03040442",
|
|
@@ -3557,7 +3557,7 @@ var tokens = [{
|
|
|
3557
3557
|
"attributes": {
|
|
3558
3558
|
"group": "paint",
|
|
3559
3559
|
"state": "deprecated",
|
|
3560
|
-
"replacement": "color.blanket",
|
|
3560
|
+
"replacement": "color.blanket.[default]",
|
|
3561
3561
|
"description": "Use for the screen overlay that appears with modal dialogs"
|
|
3562
3562
|
},
|
|
3563
3563
|
"value": "DN-100A"
|
|
@@ -4505,8 +4505,46 @@ var tokens = [{
|
|
|
4505
4505
|
},
|
|
4506
4506
|
"value": "DN-100A"
|
|
4507
4507
|
},
|
|
4508
|
-
"name": "color.blanket",
|
|
4509
|
-
"path": ["color", "blanket"]
|
|
4508
|
+
"name": "color.blanket.[default]",
|
|
4509
|
+
"path": ["color", "blanket", "[default]"]
|
|
4510
|
+
}, {
|
|
4511
|
+
"attributes": {
|
|
4512
|
+
"group": "paint",
|
|
4513
|
+
"state": "active",
|
|
4514
|
+
"description": "Use as an overlay to communicate selected states when a simple background color change isn't possible, such as in Editor block elements"
|
|
4515
|
+
},
|
|
4516
|
+
"value": "#1D7AFCCC",
|
|
4517
|
+
"filePath": "src/tokens/atlassian-dark/color/background.tsx",
|
|
4518
|
+
"isSource": true,
|
|
4519
|
+
"original": {
|
|
4520
|
+
"attributes": {
|
|
4521
|
+
"group": "paint",
|
|
4522
|
+
"state": "active",
|
|
4523
|
+
"description": "Use as an overlay to communicate selected states when a simple background color change isn't possible, such as in Editor block elements"
|
|
4524
|
+
},
|
|
4525
|
+
"value": "#1D7AFCCC"
|
|
4526
|
+
},
|
|
4527
|
+
"name": "color.blanket.selected",
|
|
4528
|
+
"path": ["color", "blanket", "selected"]
|
|
4529
|
+
}, {
|
|
4530
|
+
"attributes": {
|
|
4531
|
+
"group": "paint",
|
|
4532
|
+
"state": "active",
|
|
4533
|
+
"description": "Use as an overlay to communicate danger states when a simple background color change isn't possible, such as deletion of Editor block elements"
|
|
4534
|
+
},
|
|
4535
|
+
"value": "#E34935CC",
|
|
4536
|
+
"filePath": "src/tokens/atlassian-dark/color/background.tsx",
|
|
4537
|
+
"isSource": true,
|
|
4538
|
+
"original": {
|
|
4539
|
+
"attributes": {
|
|
4540
|
+
"group": "paint",
|
|
4541
|
+
"state": "active",
|
|
4542
|
+
"description": "Use as an overlay to communicate danger states when a simple background color change isn't possible, such as deletion of Editor block elements"
|
|
4543
|
+
},
|
|
4544
|
+
"value": "#E34935CC"
|
|
4545
|
+
},
|
|
4546
|
+
"name": "color.blanket.danger",
|
|
4547
|
+
"path": ["color", "blanket", "danger"]
|
|
4510
4548
|
}, {
|
|
4511
4549
|
"attributes": {
|
|
4512
4550
|
"group": "paint",
|
|
@@ -5218,6 +5256,57 @@ var tokens = [{
|
|
|
5218
5256
|
},
|
|
5219
5257
|
"name": "elevation.shadow.raised",
|
|
5220
5258
|
"path": ["elevation", "shadow", "raised"]
|
|
5259
|
+
}, {
|
|
5260
|
+
"attributes": {
|
|
5261
|
+
"group": "shadow",
|
|
5262
|
+
"state": "active",
|
|
5263
|
+
"description": "Use to create a shadow when content scolls under other content."
|
|
5264
|
+
},
|
|
5265
|
+
"value": [{
|
|
5266
|
+
"radius": 12,
|
|
5267
|
+
"offset": {
|
|
5268
|
+
"x": 0,
|
|
5269
|
+
"y": 0
|
|
5270
|
+
},
|
|
5271
|
+
"color": "#030404",
|
|
5272
|
+
"opacity": 0.56
|
|
5273
|
+
}, {
|
|
5274
|
+
"radius": 1,
|
|
5275
|
+
"offset": {
|
|
5276
|
+
"x": 0,
|
|
5277
|
+
"y": 0
|
|
5278
|
+
},
|
|
5279
|
+
"color": "#030404",
|
|
5280
|
+
"opacity": 0.5
|
|
5281
|
+
}],
|
|
5282
|
+
"filePath": "src/tokens/atlassian-dark/elevation/shadow.tsx",
|
|
5283
|
+
"isSource": true,
|
|
5284
|
+
"original": {
|
|
5285
|
+
"attributes": {
|
|
5286
|
+
"group": "shadow",
|
|
5287
|
+
"state": "active",
|
|
5288
|
+
"description": "Use to create a shadow when content scolls under other content."
|
|
5289
|
+
},
|
|
5290
|
+
"value": [{
|
|
5291
|
+
"radius": 12,
|
|
5292
|
+
"offset": {
|
|
5293
|
+
"x": 0,
|
|
5294
|
+
"y": 0
|
|
5295
|
+
},
|
|
5296
|
+
"color": "#030404",
|
|
5297
|
+
"opacity": 0.56
|
|
5298
|
+
}, {
|
|
5299
|
+
"radius": 1,
|
|
5300
|
+
"offset": {
|
|
5301
|
+
"x": 0,
|
|
5302
|
+
"y": 0
|
|
5303
|
+
},
|
|
5304
|
+
"color": "#030404",
|
|
5305
|
+
"opacity": 0.5
|
|
5306
|
+
}]
|
|
5307
|
+
},
|
|
5308
|
+
"name": "elevation.shadow.overflow",
|
|
5309
|
+
"path": ["elevation", "shadow", "overflow"]
|
|
5221
5310
|
}, {
|
|
5222
5311
|
"attributes": {
|
|
5223
5312
|
"group": "shadow",
|
|
@@ -3547,7 +3547,7 @@ var tokens = [{
|
|
|
3547
3547
|
"attributes": {
|
|
3548
3548
|
"group": "paint",
|
|
3549
3549
|
"state": "deprecated",
|
|
3550
|
-
"replacement": "color.blanket",
|
|
3550
|
+
"replacement": "color.blanket.[default]",
|
|
3551
3551
|
"description": "Use for the screen overlay that appears with modal dialogs"
|
|
3552
3552
|
},
|
|
3553
3553
|
"value": "#091E427A",
|
|
@@ -3557,7 +3557,7 @@ var tokens = [{
|
|
|
3557
3557
|
"attributes": {
|
|
3558
3558
|
"group": "paint",
|
|
3559
3559
|
"state": "deprecated",
|
|
3560
|
-
"replacement": "color.blanket",
|
|
3560
|
+
"replacement": "color.blanket.[default]",
|
|
3561
3561
|
"description": "Use for the screen overlay that appears with modal dialogs"
|
|
3562
3562
|
},
|
|
3563
3563
|
"value": "N500A"
|
|
@@ -4505,8 +4505,46 @@ var tokens = [{
|
|
|
4505
4505
|
},
|
|
4506
4506
|
"value": "N500A"
|
|
4507
4507
|
},
|
|
4508
|
-
"name": "color.blanket",
|
|
4509
|
-
"path": ["color", "blanket"]
|
|
4508
|
+
"name": "color.blanket.[default]",
|
|
4509
|
+
"path": ["color", "blanket", "[default]"]
|
|
4510
|
+
}, {
|
|
4511
|
+
"attributes": {
|
|
4512
|
+
"group": "paint",
|
|
4513
|
+
"state": "active",
|
|
4514
|
+
"description": "Use as an overlay to communicate selected states when a simple background color change isn't possible, such as in Editor block elements"
|
|
4515
|
+
},
|
|
4516
|
+
"value": "#388BFFCC",
|
|
4517
|
+
"filePath": "src/tokens/atlassian-light/color/background.tsx",
|
|
4518
|
+
"isSource": true,
|
|
4519
|
+
"original": {
|
|
4520
|
+
"attributes": {
|
|
4521
|
+
"group": "paint",
|
|
4522
|
+
"state": "active",
|
|
4523
|
+
"description": "Use as an overlay to communicate selected states when a simple background color change isn't possible, such as in Editor block elements"
|
|
4524
|
+
},
|
|
4525
|
+
"value": "#388BFFCC"
|
|
4526
|
+
},
|
|
4527
|
+
"name": "color.blanket.selected",
|
|
4528
|
+
"path": ["color", "blanket", "selected"]
|
|
4529
|
+
}, {
|
|
4530
|
+
"attributes": {
|
|
4531
|
+
"group": "paint",
|
|
4532
|
+
"state": "active",
|
|
4533
|
+
"description": "Use as an overlay to communicate danger states when a simple background color change isn't possible, such as deletion of Editor block elements"
|
|
4534
|
+
},
|
|
4535
|
+
"value": "#EF5C48CC",
|
|
4536
|
+
"filePath": "src/tokens/atlassian-light/color/background.tsx",
|
|
4537
|
+
"isSource": true,
|
|
4538
|
+
"original": {
|
|
4539
|
+
"attributes": {
|
|
4540
|
+
"group": "paint",
|
|
4541
|
+
"state": "active",
|
|
4542
|
+
"description": "Use as an overlay to communicate danger states when a simple background color change isn't possible, such as deletion of Editor block elements"
|
|
4543
|
+
},
|
|
4544
|
+
"value": "#EF5C48CC"
|
|
4545
|
+
},
|
|
4546
|
+
"name": "color.blanket.danger",
|
|
4547
|
+
"path": ["color", "blanket", "danger"]
|
|
4510
4548
|
}, {
|
|
4511
4549
|
"attributes": {
|
|
4512
4550
|
"group": "paint",
|
|
@@ -5198,6 +5236,57 @@ var tokens = [{
|
|
|
5198
5236
|
},
|
|
5199
5237
|
"name": "elevation.shadow.raised",
|
|
5200
5238
|
"path": ["elevation", "shadow", "raised"]
|
|
5239
|
+
}, {
|
|
5240
|
+
"attributes": {
|
|
5241
|
+
"group": "shadow",
|
|
5242
|
+
"state": "active",
|
|
5243
|
+
"description": "Use to create a shadow when content scolls under other content."
|
|
5244
|
+
},
|
|
5245
|
+
"value": [{
|
|
5246
|
+
"radius": 8,
|
|
5247
|
+
"offset": {
|
|
5248
|
+
"x": 0,
|
|
5249
|
+
"y": 8
|
|
5250
|
+
},
|
|
5251
|
+
"color": "#091E42",
|
|
5252
|
+
"opacity": 0.08
|
|
5253
|
+
}, {
|
|
5254
|
+
"radius": 1,
|
|
5255
|
+
"offset": {
|
|
5256
|
+
"x": 0,
|
|
5257
|
+
"y": 0
|
|
5258
|
+
},
|
|
5259
|
+
"color": "#091E42",
|
|
5260
|
+
"opacity": 0.12
|
|
5261
|
+
}],
|
|
5262
|
+
"filePath": "src/tokens/atlassian-light/elevation/shadow.tsx",
|
|
5263
|
+
"isSource": true,
|
|
5264
|
+
"original": {
|
|
5265
|
+
"attributes": {
|
|
5266
|
+
"group": "shadow",
|
|
5267
|
+
"state": "active",
|
|
5268
|
+
"description": "Use to create a shadow when content scolls under other content."
|
|
5269
|
+
},
|
|
5270
|
+
"value": [{
|
|
5271
|
+
"radius": 8,
|
|
5272
|
+
"offset": {
|
|
5273
|
+
"x": 0,
|
|
5274
|
+
"y": 8
|
|
5275
|
+
},
|
|
5276
|
+
"color": "N1100",
|
|
5277
|
+
"opacity": 0.08
|
|
5278
|
+
}, {
|
|
5279
|
+
"radius": 1,
|
|
5280
|
+
"offset": {
|
|
5281
|
+
"x": 0,
|
|
5282
|
+
"y": 0
|
|
5283
|
+
},
|
|
5284
|
+
"color": "N1100",
|
|
5285
|
+
"opacity": 0.12
|
|
5286
|
+
}]
|
|
5287
|
+
},
|
|
5288
|
+
"name": "elevation.shadow.overflow",
|
|
5289
|
+
"path": ["elevation", "shadow", "overflow"]
|
|
5201
5290
|
}, {
|
|
5202
5291
|
"attributes": {
|
|
5203
5292
|
"group": "shadow",
|
|
@@ -5274,7 +5363,7 @@ var tokens = [{
|
|
|
5274
5363
|
"state": "active",
|
|
5275
5364
|
"description": "A secondary background for the UI commonly used for grouping items, such as Jira cards in columns."
|
|
5276
5365
|
},
|
|
5277
|
-
"value": "#
|
|
5366
|
+
"value": "#F7F8F9",
|
|
5278
5367
|
"filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
|
|
5279
5368
|
"isSource": true,
|
|
5280
5369
|
"original": {
|
|
@@ -5283,7 +5372,7 @@ var tokens = [{
|
|
|
5283
5372
|
"state": "active",
|
|
5284
5373
|
"description": "A secondary background for the UI commonly used for grouping items, such as Jira cards in columns."
|
|
5285
5374
|
},
|
|
5286
|
-
"value": "
|
|
5375
|
+
"value": "N100"
|
|
5287
5376
|
},
|
|
5288
5377
|
"name": "elevation.surface.sunken",
|
|
5289
5378
|
"path": ["elevation", "surface", "sunken"]
|
package/dist/cjs/get-token.js
CHANGED
|
@@ -12,7 +12,7 @@ var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
|
|
|
12
12
|
var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
|
|
13
13
|
|
|
14
14
|
var name = "@atlaskit/tokens";
|
|
15
|
-
var version = "0.7.
|
|
15
|
+
var version = "0.7.3";
|
|
16
16
|
|
|
17
17
|
function token(path, fallback) {
|
|
18
18
|
var token = _tokenNames.default[path];
|
|
@@ -7,7 +7,17 @@ exports.default = void 0;
|
|
|
7
7
|
var color = {
|
|
8
8
|
color: {
|
|
9
9
|
blanket: {
|
|
10
|
-
|
|
10
|
+
'[default]': {
|
|
11
|
+
value: 'DN-100A'
|
|
12
|
+
},
|
|
13
|
+
// @ts-ignore temporary value (B600 8% opacity)
|
|
14
|
+
selected: {
|
|
15
|
+
value: '#1D7AFCCC'
|
|
16
|
+
},
|
|
17
|
+
// @ts-ignore temporary value (R600 8% opacity)
|
|
18
|
+
danger: {
|
|
19
|
+
value: '#E34935CC'
|
|
20
|
+
}
|
|
11
21
|
},
|
|
12
22
|
background: {
|
|
13
23
|
disabled: {
|
|
@@ -28,6 +28,29 @@ var shadow = {
|
|
|
28
28
|
opacity: 0.5
|
|
29
29
|
}]
|
|
30
30
|
},
|
|
31
|
+
overflow: {
|
|
32
|
+
value: [{
|
|
33
|
+
radius: 12,
|
|
34
|
+
offset: {
|
|
35
|
+
x: 0,
|
|
36
|
+
y: 0
|
|
37
|
+
},
|
|
38
|
+
// @ts-ignore no current palette colour for this yet
|
|
39
|
+
color: '#030404',
|
|
40
|
+
// This opacity overrides the color alpha.
|
|
41
|
+
opacity: 0.56
|
|
42
|
+
}, {
|
|
43
|
+
radius: 1,
|
|
44
|
+
offset: {
|
|
45
|
+
x: 0,
|
|
46
|
+
y: 0
|
|
47
|
+
},
|
|
48
|
+
// @ts-ignore no current palette colour for this yet
|
|
49
|
+
color: '#030404',
|
|
50
|
+
// This opacity overrides the color alpha.
|
|
51
|
+
opacity: 0.5
|
|
52
|
+
}]
|
|
53
|
+
},
|
|
31
54
|
overlay: {
|
|
32
55
|
value: [{
|
|
33
56
|
radius: 0,
|
|
@@ -7,7 +7,17 @@ exports.default = void 0;
|
|
|
7
7
|
var color = {
|
|
8
8
|
color: {
|
|
9
9
|
blanket: {
|
|
10
|
-
|
|
10
|
+
'[default]': {
|
|
11
|
+
value: 'N500A'
|
|
12
|
+
},
|
|
13
|
+
// @ts-ignore temporary value (B500 8% opacity)
|
|
14
|
+
selected: {
|
|
15
|
+
value: '#388BFFCC'
|
|
16
|
+
},
|
|
17
|
+
// @ts-ignore temporary value (R500 8% opacity)
|
|
18
|
+
danger: {
|
|
19
|
+
value: '#EF5C48CC'
|
|
20
|
+
}
|
|
11
21
|
},
|
|
12
22
|
background: {
|
|
13
23
|
disabled: {
|
|
@@ -26,6 +26,25 @@ var shadow = {
|
|
|
26
26
|
opacity: 0.31
|
|
27
27
|
}]
|
|
28
28
|
},
|
|
29
|
+
overflow: {
|
|
30
|
+
value: [{
|
|
31
|
+
radius: 8,
|
|
32
|
+
offset: {
|
|
33
|
+
x: 0,
|
|
34
|
+
y: 8
|
|
35
|
+
},
|
|
36
|
+
color: 'N1100',
|
|
37
|
+
opacity: 0.08
|
|
38
|
+
}, {
|
|
39
|
+
radius: 1,
|
|
40
|
+
offset: {
|
|
41
|
+
x: 0,
|
|
42
|
+
y: 0
|
|
43
|
+
},
|
|
44
|
+
color: 'N1100',
|
|
45
|
+
opacity: 0.12
|
|
46
|
+
}]
|
|
47
|
+
},
|
|
29
48
|
overlay: {
|
|
30
49
|
value: [{
|
|
31
50
|
radius: 12,
|
|
@@ -7,10 +7,26 @@ exports.default = void 0;
|
|
|
7
7
|
var color = {
|
|
8
8
|
color: {
|
|
9
9
|
blanket: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
'[default]': {
|
|
11
|
+
attributes: {
|
|
12
|
+
group: 'paint',
|
|
13
|
+
state: 'active',
|
|
14
|
+
description: 'Use for the screen overlay that appears with modal dialogs'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
selected: {
|
|
18
|
+
attributes: {
|
|
19
|
+
group: 'paint',
|
|
20
|
+
state: 'active',
|
|
21
|
+
description: "Use as an overlay to communicate selected states when a simple background color change isn't possible, such as in Editor block elements"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
danger: {
|
|
25
|
+
attributes: {
|
|
26
|
+
group: 'paint',
|
|
27
|
+
state: 'active',
|
|
28
|
+
description: "Use as an overlay to communicate danger states when a simple background color change isn't possible, such as deletion of Editor block elements"
|
|
29
|
+
}
|
|
14
30
|
}
|
|
15
31
|
},
|
|
16
32
|
background: {
|
|
@@ -14,6 +14,13 @@ var shadow = {
|
|
|
14
14
|
description: "Use for the box shadow of raised card elements, such as Jira cards on a Kanban board. Combine with elevation.surface.raised"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
+
overflow: {
|
|
18
|
+
attributes: {
|
|
19
|
+
group: 'shadow',
|
|
20
|
+
state: 'active',
|
|
21
|
+
description: "Use to create a shadow when content scolls under other content."
|
|
22
|
+
}
|
|
23
|
+
},
|
|
17
24
|
overlay: {
|
|
18
25
|
attributes: {
|
|
19
26
|
group: 'shadow',
|
package/dist/cjs/version.json
CHANGED
|
@@ -135,7 +135,7 @@ const renameMapper = [{
|
|
|
135
135
|
}, {
|
|
136
136
|
"path": "color.background.blanket",
|
|
137
137
|
"state": "deprecated",
|
|
138
|
-
"replacement": "color.blanket"
|
|
138
|
+
"replacement": "color.blanket.[default]"
|
|
139
139
|
}, {
|
|
140
140
|
"path": "color.background.boldBrand.hover",
|
|
141
141
|
"state": "deprecated",
|
|
@@ -234,6 +234,8 @@ const defaultTokenValues = {
|
|
|
234
234
|
'color.background.transparentNeutral.hover': '#091E420F',
|
|
235
235
|
'color.background.transparentNeutral.pressed': '#091E4224',
|
|
236
236
|
'color.blanket': '#091E427A',
|
|
237
|
+
'color.blanket.selected': '#388BFFCC',
|
|
238
|
+
'color.blanket.danger': '#EF5C48CC',
|
|
237
239
|
'color.interaction.hovered': '#ffffff33',
|
|
238
240
|
'color.interaction.pressed': '#ffffff5c',
|
|
239
241
|
'color.interaction.inverse.hovered': '#00000029',
|
|
@@ -263,9 +265,10 @@ const defaultTokenValues = {
|
|
|
263
265
|
'shadow.card': '0px 1px 1px #091E4240, 0px 0px 1px #091E424F',
|
|
264
266
|
'shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
|
|
265
267
|
'elevation.shadow.raised': '0px 1px 1px #091E4240, 0px 0px 1px #091E424F',
|
|
268
|
+
'elevation.shadow.overflow': '0px 8px 8px #091E4214, 0px 0px 1px #091E421F',
|
|
266
269
|
'elevation.shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
|
|
267
270
|
'elevation.surface': '#FFFFFF',
|
|
268
|
-
'elevation.surface.sunken': '#
|
|
271
|
+
'elevation.surface.sunken': '#F7F8F9',
|
|
269
272
|
'elevation.surface.raised': '#FFFFFF',
|
|
270
273
|
'elevation.surface.overlay': '#FFFFFF',
|
|
271
274
|
'utility.UNSAFE_util.transparent': 'transparent',
|
|
@@ -230,6 +230,8 @@ const tokens = {
|
|
|
230
230
|
'color.background.transparentNeutral.hover': '--ds-background-transparentNeutral-hover',
|
|
231
231
|
'color.background.transparentNeutral.pressed': '--ds-background-transparentNeutral-pressed',
|
|
232
232
|
'color.blanket': '--ds-blanket',
|
|
233
|
+
'color.blanket.selected': '--ds-blanket-selected',
|
|
234
|
+
'color.blanket.danger': '--ds-blanket-danger',
|
|
233
235
|
'color.interaction.hovered': '--ds-interaction-hovered',
|
|
234
236
|
'color.interaction.pressed': '--ds-interaction-pressed',
|
|
235
237
|
'color.interaction.inverse.hovered': '--ds-interaction-inverse-hovered',
|
|
@@ -259,6 +261,7 @@ const tokens = {
|
|
|
259
261
|
'shadow.card': '--ds-card',
|
|
260
262
|
'shadow.overlay': '--ds-overlay',
|
|
261
263
|
'elevation.shadow.raised': '--ds-shadow-raised',
|
|
264
|
+
'elevation.shadow.overflow': '--ds-shadow-overflow',
|
|
262
265
|
'elevation.shadow.overlay': '--ds-shadow-overlay',
|
|
263
266
|
'elevation.surface': '--ds-surface',
|
|
264
267
|
'elevation.surface.sunken': '--ds-surface-sunken',
|