@atlaskit/tokens 0.7.2 → 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 +6 -0
- package/css/atlassian-dark.css +1 -0
- package/css/atlassian-light.css +1 -0
- package/dist/cjs/artifacts/token-default-values.js +1 -0
- package/dist/cjs/artifacts/token-names.js +1 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +51 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +51 -0
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +23 -0
- package/dist/cjs/tokens/atlassian-light/elevation/shadow.js +19 -0
- package/dist/cjs/tokens/default/elevation/shadow.js +7 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/token-default-values.js +1 -0
- package/dist/es2019/artifacts/token-names.js +1 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +51 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +51 -0
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/tokens/atlassian-dark/elevation/shadow.js +23 -0
- package/dist/es2019/tokens/atlassian-light/elevation/shadow.js +19 -0
- package/dist/es2019/tokens/default/elevation/shadow.js +7 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/token-default-values.js +1 -0
- package/dist/esm/artifacts/token-names.js +1 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +51 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +51 -0
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/tokens/atlassian-dark/elevation/shadow.js +23 -0
- package/dist/esm/tokens/atlassian-light/elevation/shadow.js +19 -0
- 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 +1 -0
- package/dist/types/artifacts/token-names.d.ts +2 -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 +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/css/atlassian-dark.css
CHANGED
|
@@ -261,6 +261,7 @@ html[data-theme="dark"] {
|
|
|
261
261
|
--ds-card: 0px 1px 1px #03040480, 0px 0px 1px #03040480;
|
|
262
262
|
--ds-overlay: inset 0px 0px 0px 1px #BCD6F00A, 0px 8px 12px #0304045C, 0px 0px 1px #03040480;
|
|
263
263
|
--ds-shadow-raised: 0px 1px 1px #03040480, 0px 0px 1px #03040480;
|
|
264
|
+
--ds-shadow-overflow: 0px 0px 12px #0304048F, 0px 0px 1px #03040480;
|
|
264
265
|
--ds-shadow-overlay: inset 0px 0px 0px 1px #BCD6F00A, 0px 8px 12px #0304045C, 0px 0px 1px #03040480;
|
|
265
266
|
--ds-surface: #161A1D;
|
|
266
267
|
--ds-surface-sunken: #101214;
|
package/css/atlassian-light.css
CHANGED
|
@@ -261,6 +261,7 @@
|
|
|
261
261
|
--ds-card: 0px 1px 1px #091E4240, 0px 0px 1px #091E424F;
|
|
262
262
|
--ds-overlay: 0px 8px 12px #091E4226, 0px 0px 1px #091E424F;
|
|
263
263
|
--ds-shadow-raised: 0px 1px 1px #091E4240, 0px 0px 1px #091E424F;
|
|
264
|
+
--ds-shadow-overflow: 0px 8px 8px #091E4214, 0px 0px 1px #091E421F;
|
|
264
265
|
--ds-shadow-overlay: 0px 8px 12px #091E4226, 0px 0px 1px #091E424F;
|
|
265
266
|
--ds-surface: #FFFFFF;
|
|
266
267
|
--ds-surface-sunken: #F7F8F9;
|
|
@@ -271,6 +271,7 @@ var defaultTokenValues = {
|
|
|
271
271
|
'shadow.card': '0px 1px 1px #091E4240, 0px 0px 1px #091E424F',
|
|
272
272
|
'shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
|
|
273
273
|
'elevation.shadow.raised': '0px 1px 1px #091E4240, 0px 0px 1px #091E424F',
|
|
274
|
+
'elevation.shadow.overflow': '0px 8px 8px #091E4214, 0px 0px 1px #091E421F',
|
|
274
275
|
'elevation.shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
|
|
275
276
|
'elevation.surface': '#FFFFFF',
|
|
276
277
|
'elevation.surface.sunken': '#F7F8F9',
|
|
@@ -267,6 +267,7 @@ var tokens = {
|
|
|
267
267
|
'shadow.card': '--ds-card',
|
|
268
268
|
'shadow.overlay': '--ds-overlay',
|
|
269
269
|
'elevation.shadow.raised': '--ds-shadow-raised',
|
|
270
|
+
'elevation.shadow.overflow': '--ds-shadow-overflow',
|
|
270
271
|
'elevation.shadow.overlay': '--ds-shadow-overlay',
|
|
271
272
|
'elevation.surface': '--ds-surface',
|
|
272
273
|
'elevation.surface.sunken': '--ds-surface-sunken',
|
|
@@ -5256,6 +5256,57 @@ var tokens = [{
|
|
|
5256
5256
|
},
|
|
5257
5257
|
"name": "elevation.shadow.raised",
|
|
5258
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"]
|
|
5259
5310
|
}, {
|
|
5260
5311
|
"attributes": {
|
|
5261
5312
|
"group": "shadow",
|
|
@@ -5236,6 +5236,57 @@ var tokens = [{
|
|
|
5236
5236
|
},
|
|
5237
5237
|
"name": "elevation.shadow.raised",
|
|
5238
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"]
|
|
5239
5290
|
}, {
|
|
5240
5291
|
"attributes": {
|
|
5241
5292
|
"group": "shadow",
|
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];
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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
|
@@ -265,6 +265,7 @@ const defaultTokenValues = {
|
|
|
265
265
|
'shadow.card': '0px 1px 1px #091E4240, 0px 0px 1px #091E424F',
|
|
266
266
|
'shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
|
|
267
267
|
'elevation.shadow.raised': '0px 1px 1px #091E4240, 0px 0px 1px #091E424F',
|
|
268
|
+
'elevation.shadow.overflow': '0px 8px 8px #091E4214, 0px 0px 1px #091E421F',
|
|
268
269
|
'elevation.shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
|
|
269
270
|
'elevation.surface': '#FFFFFF',
|
|
270
271
|
'elevation.surface.sunken': '#F7F8F9',
|
|
@@ -261,6 +261,7 @@ const tokens = {
|
|
|
261
261
|
'shadow.card': '--ds-card',
|
|
262
262
|
'shadow.overlay': '--ds-overlay',
|
|
263
263
|
'elevation.shadow.raised': '--ds-shadow-raised',
|
|
264
|
+
'elevation.shadow.overflow': '--ds-shadow-overflow',
|
|
264
265
|
'elevation.shadow.overlay': '--ds-shadow-overlay',
|
|
265
266
|
'elevation.surface': '--ds-surface',
|
|
266
267
|
'elevation.surface.sunken': '--ds-surface-sunken',
|
|
@@ -5250,6 +5250,57 @@ const tokens = [{
|
|
|
5250
5250
|
},
|
|
5251
5251
|
"name": "elevation.shadow.raised",
|
|
5252
5252
|
"path": ["elevation", "shadow", "raised"]
|
|
5253
|
+
}, {
|
|
5254
|
+
"attributes": {
|
|
5255
|
+
"group": "shadow",
|
|
5256
|
+
"state": "active",
|
|
5257
|
+
"description": "Use to create a shadow when content scolls under other content."
|
|
5258
|
+
},
|
|
5259
|
+
"value": [{
|
|
5260
|
+
"radius": 12,
|
|
5261
|
+
"offset": {
|
|
5262
|
+
"x": 0,
|
|
5263
|
+
"y": 0
|
|
5264
|
+
},
|
|
5265
|
+
"color": "#030404",
|
|
5266
|
+
"opacity": 0.56
|
|
5267
|
+
}, {
|
|
5268
|
+
"radius": 1,
|
|
5269
|
+
"offset": {
|
|
5270
|
+
"x": 0,
|
|
5271
|
+
"y": 0
|
|
5272
|
+
},
|
|
5273
|
+
"color": "#030404",
|
|
5274
|
+
"opacity": 0.5
|
|
5275
|
+
}],
|
|
5276
|
+
"filePath": "src/tokens/atlassian-dark/elevation/shadow.tsx",
|
|
5277
|
+
"isSource": true,
|
|
5278
|
+
"original": {
|
|
5279
|
+
"attributes": {
|
|
5280
|
+
"group": "shadow",
|
|
5281
|
+
"state": "active",
|
|
5282
|
+
"description": "Use to create a shadow when content scolls under other content."
|
|
5283
|
+
},
|
|
5284
|
+
"value": [{
|
|
5285
|
+
"radius": 12,
|
|
5286
|
+
"offset": {
|
|
5287
|
+
"x": 0,
|
|
5288
|
+
"y": 0
|
|
5289
|
+
},
|
|
5290
|
+
"color": "#030404",
|
|
5291
|
+
"opacity": 0.56
|
|
5292
|
+
}, {
|
|
5293
|
+
"radius": 1,
|
|
5294
|
+
"offset": {
|
|
5295
|
+
"x": 0,
|
|
5296
|
+
"y": 0
|
|
5297
|
+
},
|
|
5298
|
+
"color": "#030404",
|
|
5299
|
+
"opacity": 0.5
|
|
5300
|
+
}]
|
|
5301
|
+
},
|
|
5302
|
+
"name": "elevation.shadow.overflow",
|
|
5303
|
+
"path": ["elevation", "shadow", "overflow"]
|
|
5253
5304
|
}, {
|
|
5254
5305
|
"attributes": {
|
|
5255
5306
|
"group": "shadow",
|
|
@@ -5230,6 +5230,57 @@ const tokens = [{
|
|
|
5230
5230
|
},
|
|
5231
5231
|
"name": "elevation.shadow.raised",
|
|
5232
5232
|
"path": ["elevation", "shadow", "raised"]
|
|
5233
|
+
}, {
|
|
5234
|
+
"attributes": {
|
|
5235
|
+
"group": "shadow",
|
|
5236
|
+
"state": "active",
|
|
5237
|
+
"description": "Use to create a shadow when content scolls under other content."
|
|
5238
|
+
},
|
|
5239
|
+
"value": [{
|
|
5240
|
+
"radius": 8,
|
|
5241
|
+
"offset": {
|
|
5242
|
+
"x": 0,
|
|
5243
|
+
"y": 8
|
|
5244
|
+
},
|
|
5245
|
+
"color": "#091E42",
|
|
5246
|
+
"opacity": 0.08
|
|
5247
|
+
}, {
|
|
5248
|
+
"radius": 1,
|
|
5249
|
+
"offset": {
|
|
5250
|
+
"x": 0,
|
|
5251
|
+
"y": 0
|
|
5252
|
+
},
|
|
5253
|
+
"color": "#091E42",
|
|
5254
|
+
"opacity": 0.12
|
|
5255
|
+
}],
|
|
5256
|
+
"filePath": "src/tokens/atlassian-light/elevation/shadow.tsx",
|
|
5257
|
+
"isSource": true,
|
|
5258
|
+
"original": {
|
|
5259
|
+
"attributes": {
|
|
5260
|
+
"group": "shadow",
|
|
5261
|
+
"state": "active",
|
|
5262
|
+
"description": "Use to create a shadow when content scolls under other content."
|
|
5263
|
+
},
|
|
5264
|
+
"value": [{
|
|
5265
|
+
"radius": 8,
|
|
5266
|
+
"offset": {
|
|
5267
|
+
"x": 0,
|
|
5268
|
+
"y": 8
|
|
5269
|
+
},
|
|
5270
|
+
"color": "N1100",
|
|
5271
|
+
"opacity": 0.08
|
|
5272
|
+
}, {
|
|
5273
|
+
"radius": 1,
|
|
5274
|
+
"offset": {
|
|
5275
|
+
"x": 0,
|
|
5276
|
+
"y": 0
|
|
5277
|
+
},
|
|
5278
|
+
"color": "N1100",
|
|
5279
|
+
"opacity": 0.12
|
|
5280
|
+
}]
|
|
5281
|
+
},
|
|
5282
|
+
"name": "elevation.shadow.overflow",
|
|
5283
|
+
"path": ["elevation", "shadow", "overflow"]
|
|
5233
5284
|
}, {
|
|
5234
5285
|
"attributes": {
|
|
5235
5286
|
"group": "shadow",
|
package/dist/es2019/get-token.js
CHANGED
|
@@ -22,6 +22,29 @@ const shadow = {
|
|
|
22
22
|
opacity: 0.5
|
|
23
23
|
}]
|
|
24
24
|
},
|
|
25
|
+
overflow: {
|
|
26
|
+
value: [{
|
|
27
|
+
radius: 12,
|
|
28
|
+
offset: {
|
|
29
|
+
x: 0,
|
|
30
|
+
y: 0
|
|
31
|
+
},
|
|
32
|
+
// @ts-ignore no current palette colour for this yet
|
|
33
|
+
color: '#030404',
|
|
34
|
+
// This opacity overrides the color alpha.
|
|
35
|
+
opacity: 0.56
|
|
36
|
+
}, {
|
|
37
|
+
radius: 1,
|
|
38
|
+
offset: {
|
|
39
|
+
x: 0,
|
|
40
|
+
y: 0
|
|
41
|
+
},
|
|
42
|
+
// @ts-ignore no current palette colour for this yet
|
|
43
|
+
color: '#030404',
|
|
44
|
+
// This opacity overrides the color alpha.
|
|
45
|
+
opacity: 0.5
|
|
46
|
+
}]
|
|
47
|
+
},
|
|
25
48
|
overlay: {
|
|
26
49
|
value: [{
|
|
27
50
|
radius: 0,
|
|
@@ -20,6 +20,25 @@ const shadow = {
|
|
|
20
20
|
opacity: 0.31
|
|
21
21
|
}]
|
|
22
22
|
},
|
|
23
|
+
overflow: {
|
|
24
|
+
value: [{
|
|
25
|
+
radius: 8,
|
|
26
|
+
offset: {
|
|
27
|
+
x: 0,
|
|
28
|
+
y: 8
|
|
29
|
+
},
|
|
30
|
+
color: 'N1100',
|
|
31
|
+
opacity: 0.08
|
|
32
|
+
}, {
|
|
33
|
+
radius: 1,
|
|
34
|
+
offset: {
|
|
35
|
+
x: 0,
|
|
36
|
+
y: 0
|
|
37
|
+
},
|
|
38
|
+
color: 'N1100',
|
|
39
|
+
opacity: 0.12
|
|
40
|
+
}]
|
|
41
|
+
},
|
|
23
42
|
overlay: {
|
|
24
43
|
value: [{
|
|
25
44
|
radius: 12,
|
|
@@ -8,6 +8,13 @@ const shadow = {
|
|
|
8
8
|
description: `Use for the box shadow of raised card elements, such as Jira cards on a Kanban board. Combine with elevation.surface.raised`
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
|
+
overflow: {
|
|
12
|
+
attributes: {
|
|
13
|
+
group: 'shadow',
|
|
14
|
+
state: 'active',
|
|
15
|
+
description: `Use to create a shadow when content scolls under other content.`
|
|
16
|
+
}
|
|
17
|
+
},
|
|
11
18
|
overlay: {
|
|
12
19
|
attributes: {
|
|
13
20
|
group: 'shadow',
|
package/dist/es2019/version.json
CHANGED
|
@@ -265,6 +265,7 @@ var defaultTokenValues = {
|
|
|
265
265
|
'shadow.card': '0px 1px 1px #091E4240, 0px 0px 1px #091E424F',
|
|
266
266
|
'shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
|
|
267
267
|
'elevation.shadow.raised': '0px 1px 1px #091E4240, 0px 0px 1px #091E424F',
|
|
268
|
+
'elevation.shadow.overflow': '0px 8px 8px #091E4214, 0px 0px 1px #091E421F',
|
|
268
269
|
'elevation.shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
|
|
269
270
|
'elevation.surface': '#FFFFFF',
|
|
270
271
|
'elevation.surface.sunken': '#F7F8F9',
|
|
@@ -261,6 +261,7 @@ var tokens = {
|
|
|
261
261
|
'shadow.card': '--ds-card',
|
|
262
262
|
'shadow.overlay': '--ds-overlay',
|
|
263
263
|
'elevation.shadow.raised': '--ds-shadow-raised',
|
|
264
|
+
'elevation.shadow.overflow': '--ds-shadow-overflow',
|
|
264
265
|
'elevation.shadow.overlay': '--ds-shadow-overlay',
|
|
265
266
|
'elevation.surface': '--ds-surface',
|
|
266
267
|
'elevation.surface.sunken': '--ds-surface-sunken',
|
|
@@ -5250,6 +5250,57 @@ var tokens = [{
|
|
|
5250
5250
|
},
|
|
5251
5251
|
"name": "elevation.shadow.raised",
|
|
5252
5252
|
"path": ["elevation", "shadow", "raised"]
|
|
5253
|
+
}, {
|
|
5254
|
+
"attributes": {
|
|
5255
|
+
"group": "shadow",
|
|
5256
|
+
"state": "active",
|
|
5257
|
+
"description": "Use to create a shadow when content scolls under other content."
|
|
5258
|
+
},
|
|
5259
|
+
"value": [{
|
|
5260
|
+
"radius": 12,
|
|
5261
|
+
"offset": {
|
|
5262
|
+
"x": 0,
|
|
5263
|
+
"y": 0
|
|
5264
|
+
},
|
|
5265
|
+
"color": "#030404",
|
|
5266
|
+
"opacity": 0.56
|
|
5267
|
+
}, {
|
|
5268
|
+
"radius": 1,
|
|
5269
|
+
"offset": {
|
|
5270
|
+
"x": 0,
|
|
5271
|
+
"y": 0
|
|
5272
|
+
},
|
|
5273
|
+
"color": "#030404",
|
|
5274
|
+
"opacity": 0.5
|
|
5275
|
+
}],
|
|
5276
|
+
"filePath": "src/tokens/atlassian-dark/elevation/shadow.tsx",
|
|
5277
|
+
"isSource": true,
|
|
5278
|
+
"original": {
|
|
5279
|
+
"attributes": {
|
|
5280
|
+
"group": "shadow",
|
|
5281
|
+
"state": "active",
|
|
5282
|
+
"description": "Use to create a shadow when content scolls under other content."
|
|
5283
|
+
},
|
|
5284
|
+
"value": [{
|
|
5285
|
+
"radius": 12,
|
|
5286
|
+
"offset": {
|
|
5287
|
+
"x": 0,
|
|
5288
|
+
"y": 0
|
|
5289
|
+
},
|
|
5290
|
+
"color": "#030404",
|
|
5291
|
+
"opacity": 0.56
|
|
5292
|
+
}, {
|
|
5293
|
+
"radius": 1,
|
|
5294
|
+
"offset": {
|
|
5295
|
+
"x": 0,
|
|
5296
|
+
"y": 0
|
|
5297
|
+
},
|
|
5298
|
+
"color": "#030404",
|
|
5299
|
+
"opacity": 0.5
|
|
5300
|
+
}]
|
|
5301
|
+
},
|
|
5302
|
+
"name": "elevation.shadow.overflow",
|
|
5303
|
+
"path": ["elevation", "shadow", "overflow"]
|
|
5253
5304
|
}, {
|
|
5254
5305
|
"attributes": {
|
|
5255
5306
|
"group": "shadow",
|
|
@@ -5230,6 +5230,57 @@ var tokens = [{
|
|
|
5230
5230
|
},
|
|
5231
5231
|
"name": "elevation.shadow.raised",
|
|
5232
5232
|
"path": ["elevation", "shadow", "raised"]
|
|
5233
|
+
}, {
|
|
5234
|
+
"attributes": {
|
|
5235
|
+
"group": "shadow",
|
|
5236
|
+
"state": "active",
|
|
5237
|
+
"description": "Use to create a shadow when content scolls under other content."
|
|
5238
|
+
},
|
|
5239
|
+
"value": [{
|
|
5240
|
+
"radius": 8,
|
|
5241
|
+
"offset": {
|
|
5242
|
+
"x": 0,
|
|
5243
|
+
"y": 8
|
|
5244
|
+
},
|
|
5245
|
+
"color": "#091E42",
|
|
5246
|
+
"opacity": 0.08
|
|
5247
|
+
}, {
|
|
5248
|
+
"radius": 1,
|
|
5249
|
+
"offset": {
|
|
5250
|
+
"x": 0,
|
|
5251
|
+
"y": 0
|
|
5252
|
+
},
|
|
5253
|
+
"color": "#091E42",
|
|
5254
|
+
"opacity": 0.12
|
|
5255
|
+
}],
|
|
5256
|
+
"filePath": "src/tokens/atlassian-light/elevation/shadow.tsx",
|
|
5257
|
+
"isSource": true,
|
|
5258
|
+
"original": {
|
|
5259
|
+
"attributes": {
|
|
5260
|
+
"group": "shadow",
|
|
5261
|
+
"state": "active",
|
|
5262
|
+
"description": "Use to create a shadow when content scolls under other content."
|
|
5263
|
+
},
|
|
5264
|
+
"value": [{
|
|
5265
|
+
"radius": 8,
|
|
5266
|
+
"offset": {
|
|
5267
|
+
"x": 0,
|
|
5268
|
+
"y": 8
|
|
5269
|
+
},
|
|
5270
|
+
"color": "N1100",
|
|
5271
|
+
"opacity": 0.08
|
|
5272
|
+
}, {
|
|
5273
|
+
"radius": 1,
|
|
5274
|
+
"offset": {
|
|
5275
|
+
"x": 0,
|
|
5276
|
+
"y": 0
|
|
5277
|
+
},
|
|
5278
|
+
"color": "N1100",
|
|
5279
|
+
"opacity": 0.12
|
|
5280
|
+
}]
|
|
5281
|
+
},
|
|
5282
|
+
"name": "elevation.shadow.overflow",
|
|
5283
|
+
"path": ["elevation", "shadow", "overflow"]
|
|
5233
5284
|
}, {
|
|
5234
5285
|
"attributes": {
|
|
5235
5286
|
"group": "shadow",
|
package/dist/esm/get-token.js
CHANGED
|
@@ -22,6 +22,29 @@ var shadow = {
|
|
|
22
22
|
opacity: 0.5
|
|
23
23
|
}]
|
|
24
24
|
},
|
|
25
|
+
overflow: {
|
|
26
|
+
value: [{
|
|
27
|
+
radius: 12,
|
|
28
|
+
offset: {
|
|
29
|
+
x: 0,
|
|
30
|
+
y: 0
|
|
31
|
+
},
|
|
32
|
+
// @ts-ignore no current palette colour for this yet
|
|
33
|
+
color: '#030404',
|
|
34
|
+
// This opacity overrides the color alpha.
|
|
35
|
+
opacity: 0.56
|
|
36
|
+
}, {
|
|
37
|
+
radius: 1,
|
|
38
|
+
offset: {
|
|
39
|
+
x: 0,
|
|
40
|
+
y: 0
|
|
41
|
+
},
|
|
42
|
+
// @ts-ignore no current palette colour for this yet
|
|
43
|
+
color: '#030404',
|
|
44
|
+
// This opacity overrides the color alpha.
|
|
45
|
+
opacity: 0.5
|
|
46
|
+
}]
|
|
47
|
+
},
|
|
25
48
|
overlay: {
|
|
26
49
|
value: [{
|
|
27
50
|
radius: 0,
|