@atlaskit/tokens 0.10.19 → 0.10.20
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/css/atlassian-dark.css +8 -2
- package/css/atlassian-legacy-dark.css +8 -2
- package/css/atlassian-legacy-light.css +7 -1
- package/css/atlassian-light.css +7 -1
- package/dist/cjs/artifacts/rename-mapping.js +4 -4
- package/dist/cjs/artifacts/token-default-values.js +7 -1
- package/dist/cjs/artifacts/token-names.js +7 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +163 -17
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +163 -17
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +143 -17
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +143 -17
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +12 -0
- package/dist/cjs/tokens/atlassian-dark/elevation/surface.js +27 -3
- package/dist/cjs/tokens/atlassian-legacy-dark/elevation/shadow.js +12 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/elevation/surface.js +27 -3
- package/dist/cjs/tokens/atlassian-legacy-light/elevation/surface.js +27 -3
- package/dist/cjs/tokens/atlassian-light/elevation/surface.js +27 -3
- package/dist/cjs/tokens/default/deprecated/deprecated.js +3 -3
- package/dist/cjs/tokens/default/elevation/surface.js +69 -15
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/rename-mapping.js +4 -4
- package/dist/es2019/artifacts/token-default-values.js +7 -1
- package/dist/es2019/artifacts/token-names.js +7 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +163 -17
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +163 -17
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +143 -17
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +143 -17
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/tokens/atlassian-dark/elevation/shadow.js +12 -0
- package/dist/es2019/tokens/atlassian-dark/elevation/surface.js +27 -3
- package/dist/es2019/tokens/atlassian-legacy-dark/elevation/shadow.js +12 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/elevation/surface.js +27 -3
- package/dist/es2019/tokens/atlassian-legacy-light/elevation/surface.js +27 -3
- package/dist/es2019/tokens/atlassian-light/elevation/surface.js +27 -3
- package/dist/es2019/tokens/default/deprecated/deprecated.js +3 -3
- package/dist/es2019/tokens/default/elevation/surface.js +69 -17
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/rename-mapping.js +4 -4
- package/dist/esm/artifacts/token-default-values.js +7 -1
- package/dist/esm/artifacts/token-names.js +7 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +163 -17
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +163 -17
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +143 -17
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +143 -17
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/tokens/atlassian-dark/elevation/shadow.js +12 -0
- package/dist/esm/tokens/atlassian-dark/elevation/surface.js +27 -3
- package/dist/esm/tokens/atlassian-legacy-dark/elevation/shadow.js +12 -0
- package/dist/esm/tokens/atlassian-legacy-dark/elevation/surface.js +27 -3
- package/dist/esm/tokens/atlassian-legacy-light/elevation/surface.js +27 -3
- package/dist/esm/tokens/atlassian-light/elevation/surface.js +27 -3
- package/dist/esm/tokens/default/deprecated/deprecated.js +3 -3
- package/dist/esm/tokens/default/elevation/surface.js +69 -15
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/rename-mapping.d.ts +1 -1
- package/dist/types/artifacts/token-default-values.d.ts +7 -1
- package/dist/types/artifacts/token-names.d.ts +13 -1
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types/artifacts/types-internal.d.ts +2 -2
- package/dist/types/artifacts/types.d.ts +2 -2
- package/dist/types/types.d.ts +15 -3
- package/package.json +6 -5
|
@@ -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::3e1535e99114e3ceefa050ae548283a1>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
@@ -4825,7 +4825,7 @@ var tokens = [{
|
|
|
4825
4825
|
"introduced": "0.0.15",
|
|
4826
4826
|
"deprecated": "0.6.0",
|
|
4827
4827
|
"deleted": "0.8.0",
|
|
4828
|
-
"replacement": "elevation.surface.raised",
|
|
4828
|
+
"replacement": "elevation.surface.raised.[default]",
|
|
4829
4829
|
"description": "Use for the background of raised cards, such as Jira cards on a Kanban board.\nCombine with shadow.card."
|
|
4830
4830
|
},
|
|
4831
4831
|
"value": "#FFFFFF",
|
|
@@ -4838,7 +4838,7 @@ var tokens = [{
|
|
|
4838
4838
|
"introduced": "0.0.15",
|
|
4839
4839
|
"deprecated": "0.6.0",
|
|
4840
4840
|
"deleted": "0.8.0",
|
|
4841
|
-
"replacement": "elevation.surface.raised",
|
|
4841
|
+
"replacement": "elevation.surface.raised.[default]",
|
|
4842
4842
|
"description": "Use for the background of raised cards, such as Jira cards on a Kanban board.\nCombine with shadow.card."
|
|
4843
4843
|
},
|
|
4844
4844
|
"value": "N0"
|
|
@@ -4852,7 +4852,7 @@ var tokens = [{
|
|
|
4852
4852
|
"introduced": "0.0.15",
|
|
4853
4853
|
"deprecated": "0.6.0",
|
|
4854
4854
|
"deleted": "0.8.0",
|
|
4855
|
-
"replacement": "elevation.surface.[default]",
|
|
4855
|
+
"replacement": "elevation.surface.[default].[default]",
|
|
4856
4856
|
"description": "Use as the primary background for the UI"
|
|
4857
4857
|
},
|
|
4858
4858
|
"value": "#FFFFFF",
|
|
@@ -4865,7 +4865,7 @@ var tokens = [{
|
|
|
4865
4865
|
"introduced": "0.0.15",
|
|
4866
4866
|
"deprecated": "0.6.0",
|
|
4867
4867
|
"deleted": "0.8.0",
|
|
4868
|
-
"replacement": "elevation.surface.[default]",
|
|
4868
|
+
"replacement": "elevation.surface.[default].[default]",
|
|
4869
4869
|
"description": "Use as the primary background for the UI"
|
|
4870
4870
|
},
|
|
4871
4871
|
"value": "N0"
|
|
@@ -4879,7 +4879,7 @@ var tokens = [{
|
|
|
4879
4879
|
"introduced": "0.0.15",
|
|
4880
4880
|
"deprecated": "0.6.0",
|
|
4881
4881
|
"deleted": "0.8.0",
|
|
4882
|
-
"replacement": "elevation.surface.overlay",
|
|
4882
|
+
"replacement": "elevation.surface.overlay.[default]",
|
|
4883
4883
|
"description": "\nUse for the background of overlay elements, such as modals, dropdown menus, flags, and inline dialogs (i.e. elements that sit on top of the UI).\n\nAlso use for the background of raised cards in a dragged state.\n\nCombine with shadow.overlay."
|
|
4884
4884
|
},
|
|
4885
4885
|
"value": "#FFFFFF",
|
|
@@ -4892,7 +4892,7 @@ var tokens = [{
|
|
|
4892
4892
|
"introduced": "0.0.15",
|
|
4893
4893
|
"deprecated": "0.6.0",
|
|
4894
4894
|
"deleted": "0.8.0",
|
|
4895
|
-
"replacement": "elevation.surface.overlay",
|
|
4895
|
+
"replacement": "elevation.surface.overlay.[default]",
|
|
4896
4896
|
"description": "\nUse for the background of overlay elements, such as modals, dropdown menus, flags, and inline dialogs (i.e. elements that sit on top of the UI).\n\nAlso use for the background of raised cards in a dragged state.\n\nCombine with shadow.overlay."
|
|
4897
4897
|
},
|
|
4898
4898
|
"value": "N0"
|
|
@@ -6599,8 +6599,50 @@ var tokens = [{
|
|
|
6599
6599
|
},
|
|
6600
6600
|
"value": "N0"
|
|
6601
6601
|
},
|
|
6602
|
-
"name": "elevation.surface.[default]",
|
|
6603
|
-
"path": ["elevation", "surface", "[default]"]
|
|
6602
|
+
"name": "elevation.surface.[default].[default]",
|
|
6603
|
+
"path": ["elevation", "surface", "[default]", "[default]"]
|
|
6604
|
+
}, {
|
|
6605
|
+
"attributes": {
|
|
6606
|
+
"group": "paint",
|
|
6607
|
+
"state": "active",
|
|
6608
|
+
"introduced": "0.10.20",
|
|
6609
|
+
"description": "Hovered state of elevation.surface"
|
|
6610
|
+
},
|
|
6611
|
+
"value": "#F1F2F4",
|
|
6612
|
+
"filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
|
|
6613
|
+
"isSource": true,
|
|
6614
|
+
"original": {
|
|
6615
|
+
"attributes": {
|
|
6616
|
+
"group": "paint",
|
|
6617
|
+
"state": "active",
|
|
6618
|
+
"introduced": "0.10.20",
|
|
6619
|
+
"description": "Hovered state of elevation.surface"
|
|
6620
|
+
},
|
|
6621
|
+
"value": "N200"
|
|
6622
|
+
},
|
|
6623
|
+
"name": "elevation.surface.[default].hovered",
|
|
6624
|
+
"path": ["elevation", "surface", "[default]", "hovered"]
|
|
6625
|
+
}, {
|
|
6626
|
+
"attributes": {
|
|
6627
|
+
"group": "paint",
|
|
6628
|
+
"state": "active",
|
|
6629
|
+
"introduced": "0.10.20",
|
|
6630
|
+
"description": "Pressed state of elevation.surface"
|
|
6631
|
+
},
|
|
6632
|
+
"value": "#DCDFE4",
|
|
6633
|
+
"filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
|
|
6634
|
+
"isSource": true,
|
|
6635
|
+
"original": {
|
|
6636
|
+
"attributes": {
|
|
6637
|
+
"group": "paint",
|
|
6638
|
+
"state": "active",
|
|
6639
|
+
"introduced": "0.10.20",
|
|
6640
|
+
"description": "Pressed state of elevation.surface"
|
|
6641
|
+
},
|
|
6642
|
+
"value": "N300"
|
|
6643
|
+
},
|
|
6644
|
+
"name": "elevation.surface.[default].pressed",
|
|
6645
|
+
"path": ["elevation", "surface", "[default]", "pressed"]
|
|
6604
6646
|
}, {
|
|
6605
6647
|
"attributes": {
|
|
6606
6648
|
"group": "paint",
|
|
@@ -6627,7 +6669,7 @@ var tokens = [{
|
|
|
6627
6669
|
"group": "paint",
|
|
6628
6670
|
"state": "active",
|
|
6629
6671
|
"introduced": "0.6.0",
|
|
6630
|
-
"description": "Use for the background of
|
|
6672
|
+
"description": "Use for the background of cards that can be moved, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised."
|
|
6631
6673
|
},
|
|
6632
6674
|
"value": "#FFFFFF",
|
|
6633
6675
|
"filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
|
|
@@ -6637,18 +6679,60 @@ var tokens = [{
|
|
|
6637
6679
|
"group": "paint",
|
|
6638
6680
|
"state": "active",
|
|
6639
6681
|
"introduced": "0.6.0",
|
|
6640
|
-
"description": "Use for the background of
|
|
6682
|
+
"description": "Use for the background of cards that can be moved, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised."
|
|
6641
6683
|
},
|
|
6642
6684
|
"value": "N0"
|
|
6643
6685
|
},
|
|
6644
|
-
"name": "elevation.surface.raised",
|
|
6645
|
-
"path": ["elevation", "surface", "raised"]
|
|
6686
|
+
"name": "elevation.surface.raised.[default]",
|
|
6687
|
+
"path": ["elevation", "surface", "raised", "[default]"]
|
|
6688
|
+
}, {
|
|
6689
|
+
"attributes": {
|
|
6690
|
+
"group": "paint",
|
|
6691
|
+
"state": "active",
|
|
6692
|
+
"introduced": "0.10.20",
|
|
6693
|
+
"description": "Hovered state of elevation.surface.raised"
|
|
6694
|
+
},
|
|
6695
|
+
"value": "#F1F2F4",
|
|
6696
|
+
"filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
|
|
6697
|
+
"isSource": true,
|
|
6698
|
+
"original": {
|
|
6699
|
+
"attributes": {
|
|
6700
|
+
"group": "paint",
|
|
6701
|
+
"state": "active",
|
|
6702
|
+
"introduced": "0.10.20",
|
|
6703
|
+
"description": "Hovered state of elevation.surface.raised"
|
|
6704
|
+
},
|
|
6705
|
+
"value": "N200"
|
|
6706
|
+
},
|
|
6707
|
+
"name": "elevation.surface.raised.hovered",
|
|
6708
|
+
"path": ["elevation", "surface", "raised", "hovered"]
|
|
6709
|
+
}, {
|
|
6710
|
+
"attributes": {
|
|
6711
|
+
"group": "paint",
|
|
6712
|
+
"state": "active",
|
|
6713
|
+
"introduced": "0.10.20",
|
|
6714
|
+
"description": "Pressed state of elevation.surface.raised"
|
|
6715
|
+
},
|
|
6716
|
+
"value": "#DCDFE4",
|
|
6717
|
+
"filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
|
|
6718
|
+
"isSource": true,
|
|
6719
|
+
"original": {
|
|
6720
|
+
"attributes": {
|
|
6721
|
+
"group": "paint",
|
|
6722
|
+
"state": "active",
|
|
6723
|
+
"introduced": "0.10.20",
|
|
6724
|
+
"description": "Pressed state of elevation.surface.raised"
|
|
6725
|
+
},
|
|
6726
|
+
"value": "N300"
|
|
6727
|
+
},
|
|
6728
|
+
"name": "elevation.surface.raised.pressed",
|
|
6729
|
+
"path": ["elevation", "surface", "raised", "pressed"]
|
|
6646
6730
|
}, {
|
|
6647
6731
|
"attributes": {
|
|
6648
6732
|
"group": "paint",
|
|
6649
6733
|
"state": "active",
|
|
6650
6734
|
"introduced": "0.6.0",
|
|
6651
|
-
"description": "Use for the background of elements that sit on top of they UI, such as modals, dropdown menus,
|
|
6735
|
+
"description": "Use for the background of elements that sit on top of they UI, such as modals, dialogs, dropdown menus, floating toolbars, and floating single-action buttons. Also use for the background of raised cards in a dragged state. Combine with elevation.shadow.overlay."
|
|
6652
6736
|
},
|
|
6653
6737
|
"value": "#FFFFFF",
|
|
6654
6738
|
"filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
|
|
@@ -6658,12 +6742,54 @@ var tokens = [{
|
|
|
6658
6742
|
"group": "paint",
|
|
6659
6743
|
"state": "active",
|
|
6660
6744
|
"introduced": "0.6.0",
|
|
6661
|
-
"description": "Use for the background of elements that sit on top of they UI, such as modals, dropdown menus,
|
|
6745
|
+
"description": "Use for the background of elements that sit on top of they UI, such as modals, dialogs, dropdown menus, floating toolbars, and floating single-action buttons. Also use for the background of raised cards in a dragged state. Combine with elevation.shadow.overlay."
|
|
6662
6746
|
},
|
|
6663
6747
|
"value": "N0"
|
|
6664
6748
|
},
|
|
6665
|
-
"name": "elevation.surface.overlay",
|
|
6666
|
-
"path": ["elevation", "surface", "overlay"]
|
|
6749
|
+
"name": "elevation.surface.overlay.[default]",
|
|
6750
|
+
"path": ["elevation", "surface", "overlay", "[default]"]
|
|
6751
|
+
}, {
|
|
6752
|
+
"attributes": {
|
|
6753
|
+
"group": "paint",
|
|
6754
|
+
"state": "active",
|
|
6755
|
+
"introduced": "0.10.20",
|
|
6756
|
+
"description": "Hovered state of elevation.surface.overlay"
|
|
6757
|
+
},
|
|
6758
|
+
"value": "#F1F2F4",
|
|
6759
|
+
"filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
|
|
6760
|
+
"isSource": true,
|
|
6761
|
+
"original": {
|
|
6762
|
+
"attributes": {
|
|
6763
|
+
"group": "paint",
|
|
6764
|
+
"state": "active",
|
|
6765
|
+
"introduced": "0.10.20",
|
|
6766
|
+
"description": "Hovered state of elevation.surface.overlay"
|
|
6767
|
+
},
|
|
6768
|
+
"value": "N200"
|
|
6769
|
+
},
|
|
6770
|
+
"name": "elevation.surface.overlay.hovered",
|
|
6771
|
+
"path": ["elevation", "surface", "overlay", "hovered"]
|
|
6772
|
+
}, {
|
|
6773
|
+
"attributes": {
|
|
6774
|
+
"group": "paint",
|
|
6775
|
+
"state": "active",
|
|
6776
|
+
"introduced": "0.10.20",
|
|
6777
|
+
"description": "Pressed state of elevation.surface.overlay"
|
|
6778
|
+
},
|
|
6779
|
+
"value": "#DCDFE4",
|
|
6780
|
+
"filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
|
|
6781
|
+
"isSource": true,
|
|
6782
|
+
"original": {
|
|
6783
|
+
"attributes": {
|
|
6784
|
+
"group": "paint",
|
|
6785
|
+
"state": "active",
|
|
6786
|
+
"introduced": "0.10.20",
|
|
6787
|
+
"description": "Pressed state of elevation.surface.overlay"
|
|
6788
|
+
},
|
|
6789
|
+
"value": "N300"
|
|
6790
|
+
},
|
|
6791
|
+
"name": "elevation.surface.overlay.pressed",
|
|
6792
|
+
"path": ["elevation", "surface", "overlay", "pressed"]
|
|
6667
6793
|
}, {
|
|
6668
6794
|
"attributes": {
|
|
6669
6795
|
"group": "opacity",
|
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 = "0.10.
|
|
5
|
+
var version = "0.10.20";
|
|
6
6
|
|
|
7
7
|
function token(path, fallback) {
|
|
8
8
|
var token = tokens[path];
|
|
@@ -3,6 +3,18 @@ var shadow = {
|
|
|
3
3
|
shadow: {
|
|
4
4
|
raised: {
|
|
5
5
|
value: [{
|
|
6
|
+
// This inset shadow is just to allow animations between shadow types
|
|
7
|
+
radius: 0,
|
|
8
|
+
spread: 1,
|
|
9
|
+
// @ts-ignore no current palette colour for this yet
|
|
10
|
+
color: '#000000',
|
|
11
|
+
offset: {
|
|
12
|
+
x: 0,
|
|
13
|
+
y: 0
|
|
14
|
+
},
|
|
15
|
+
opacity: 0,
|
|
16
|
+
inset: true
|
|
17
|
+
}, {
|
|
6
18
|
radius: 1,
|
|
7
19
|
offset: {
|
|
8
20
|
x: 0,
|
|
@@ -2,16 +2,40 @@ var elevation = {
|
|
|
2
2
|
elevation: {
|
|
3
3
|
surface: {
|
|
4
4
|
'[default]': {
|
|
5
|
-
|
|
5
|
+
'[default]': {
|
|
6
|
+
value: 'DN0'
|
|
7
|
+
},
|
|
8
|
+
hovered: {
|
|
9
|
+
value: 'DN100'
|
|
10
|
+
},
|
|
11
|
+
pressed: {
|
|
12
|
+
value: 'DN200'
|
|
13
|
+
}
|
|
6
14
|
},
|
|
7
15
|
sunken: {
|
|
8
16
|
value: 'DN-100'
|
|
9
17
|
},
|
|
10
18
|
raised: {
|
|
11
|
-
|
|
19
|
+
'[default]': {
|
|
20
|
+
value: 'DN100'
|
|
21
|
+
},
|
|
22
|
+
hovered: {
|
|
23
|
+
value: 'DN200'
|
|
24
|
+
},
|
|
25
|
+
pressed: {
|
|
26
|
+
value: 'DN300'
|
|
27
|
+
}
|
|
12
28
|
},
|
|
13
29
|
overlay: {
|
|
14
|
-
|
|
30
|
+
'[default]': {
|
|
31
|
+
value: 'DN200'
|
|
32
|
+
},
|
|
33
|
+
hovered: {
|
|
34
|
+
value: 'DN300'
|
|
35
|
+
},
|
|
36
|
+
pressed: {
|
|
37
|
+
value: 'DN400'
|
|
38
|
+
}
|
|
15
39
|
}
|
|
16
40
|
}
|
|
17
41
|
}
|
|
@@ -3,6 +3,18 @@ var shadow = {
|
|
|
3
3
|
shadow: {
|
|
4
4
|
raised: {
|
|
5
5
|
value: [{
|
|
6
|
+
// This inset shadow is just to allow animations between shadow types
|
|
7
|
+
radius: 0,
|
|
8
|
+
spread: 1,
|
|
9
|
+
// @ts-ignore no current palette colour for this yet
|
|
10
|
+
color: '#000000',
|
|
11
|
+
offset: {
|
|
12
|
+
x: 0,
|
|
13
|
+
y: 0
|
|
14
|
+
},
|
|
15
|
+
opacity: 0,
|
|
16
|
+
inset: true
|
|
17
|
+
}, {
|
|
6
18
|
radius: 1,
|
|
7
19
|
offset: {
|
|
8
20
|
x: 0,
|
|
@@ -2,16 +2,40 @@ var elevation = {
|
|
|
2
2
|
elevation: {
|
|
3
3
|
surface: {
|
|
4
4
|
'[default]': {
|
|
5
|
-
|
|
5
|
+
'[default]': {
|
|
6
|
+
value: 'DN30'
|
|
7
|
+
},
|
|
8
|
+
hovered: {
|
|
9
|
+
value: 'DN40'
|
|
10
|
+
},
|
|
11
|
+
pressed: {
|
|
12
|
+
value: 'DN50'
|
|
13
|
+
}
|
|
6
14
|
},
|
|
7
15
|
sunken: {
|
|
8
16
|
value: 'DN100'
|
|
9
17
|
},
|
|
10
18
|
raised: {
|
|
11
|
-
|
|
19
|
+
'[default]': {
|
|
20
|
+
value: 'DN80'
|
|
21
|
+
},
|
|
22
|
+
hovered: {
|
|
23
|
+
value: 'DN90'
|
|
24
|
+
},
|
|
25
|
+
pressed: {
|
|
26
|
+
value: 'DN100'
|
|
27
|
+
}
|
|
12
28
|
},
|
|
13
29
|
overlay: {
|
|
14
|
-
|
|
30
|
+
'[default]': {
|
|
31
|
+
value: 'DN200'
|
|
32
|
+
},
|
|
33
|
+
hovered: {
|
|
34
|
+
value: 'DN300'
|
|
35
|
+
},
|
|
36
|
+
pressed: {
|
|
37
|
+
value: 'DN400'
|
|
38
|
+
}
|
|
15
39
|
}
|
|
16
40
|
}
|
|
17
41
|
}
|
|
@@ -2,16 +2,40 @@ var elevation = {
|
|
|
2
2
|
elevation: {
|
|
3
3
|
surface: {
|
|
4
4
|
'[default]': {
|
|
5
|
-
|
|
5
|
+
'[default]': {
|
|
6
|
+
value: 'N0'
|
|
7
|
+
},
|
|
8
|
+
hovered: {
|
|
9
|
+
value: 'N10'
|
|
10
|
+
},
|
|
11
|
+
pressed: {
|
|
12
|
+
value: 'N20'
|
|
13
|
+
}
|
|
6
14
|
},
|
|
7
15
|
sunken: {
|
|
8
16
|
value: 'N20'
|
|
9
17
|
},
|
|
10
18
|
raised: {
|
|
11
|
-
|
|
19
|
+
'[default]': {
|
|
20
|
+
value: 'N0'
|
|
21
|
+
},
|
|
22
|
+
hovered: {
|
|
23
|
+
value: 'N10'
|
|
24
|
+
},
|
|
25
|
+
pressed: {
|
|
26
|
+
value: 'N20'
|
|
27
|
+
}
|
|
12
28
|
},
|
|
13
29
|
overlay: {
|
|
14
|
-
|
|
30
|
+
'[default]': {
|
|
31
|
+
value: 'N0'
|
|
32
|
+
},
|
|
33
|
+
hovered: {
|
|
34
|
+
value: 'N10'
|
|
35
|
+
},
|
|
36
|
+
pressed: {
|
|
37
|
+
value: 'N20'
|
|
38
|
+
}
|
|
15
39
|
}
|
|
16
40
|
}
|
|
17
41
|
}
|
|
@@ -2,16 +2,40 @@ var elevation = {
|
|
|
2
2
|
elevation: {
|
|
3
3
|
surface: {
|
|
4
4
|
'[default]': {
|
|
5
|
-
|
|
5
|
+
'[default]': {
|
|
6
|
+
value: 'N0'
|
|
7
|
+
},
|
|
8
|
+
hovered: {
|
|
9
|
+
value: 'N200'
|
|
10
|
+
},
|
|
11
|
+
pressed: {
|
|
12
|
+
value: 'N300'
|
|
13
|
+
}
|
|
6
14
|
},
|
|
7
15
|
sunken: {
|
|
8
16
|
value: 'N100'
|
|
9
17
|
},
|
|
10
18
|
raised: {
|
|
11
|
-
|
|
19
|
+
'[default]': {
|
|
20
|
+
value: 'N0'
|
|
21
|
+
},
|
|
22
|
+
hovered: {
|
|
23
|
+
value: 'N200'
|
|
24
|
+
},
|
|
25
|
+
pressed: {
|
|
26
|
+
value: 'N300'
|
|
27
|
+
}
|
|
12
28
|
},
|
|
13
29
|
overlay: {
|
|
14
|
-
|
|
30
|
+
'[default]': {
|
|
31
|
+
value: 'N0'
|
|
32
|
+
},
|
|
33
|
+
hovered: {
|
|
34
|
+
value: 'N200'
|
|
35
|
+
},
|
|
36
|
+
pressed: {
|
|
37
|
+
value: 'N300'
|
|
38
|
+
}
|
|
15
39
|
}
|
|
16
40
|
}
|
|
17
41
|
}
|
|
@@ -605,7 +605,7 @@ var color = {
|
|
|
605
605
|
introduced: '0.0.15',
|
|
606
606
|
deprecated: '0.6.0',
|
|
607
607
|
deleted: '0.8.0',
|
|
608
|
-
replacement: 'elevation.surface.raised',
|
|
608
|
+
replacement: 'elevation.surface.raised.[default]',
|
|
609
609
|
description: 'Use for the background of raised cards, such as Jira cards on a Kanban board.\nCombine with shadow.card.'
|
|
610
610
|
}
|
|
611
611
|
},
|
|
@@ -616,7 +616,7 @@ var color = {
|
|
|
616
616
|
introduced: '0.0.15',
|
|
617
617
|
deprecated: '0.6.0',
|
|
618
618
|
deleted: '0.8.0',
|
|
619
|
-
replacement: 'elevation.surface.[default]',
|
|
619
|
+
replacement: 'elevation.surface.[default].[default]',
|
|
620
620
|
description: 'Use as the primary background for the UI'
|
|
621
621
|
}
|
|
622
622
|
},
|
|
@@ -640,7 +640,7 @@ var color = {
|
|
|
640
640
|
introduced: '0.0.15',
|
|
641
641
|
deprecated: '0.6.0',
|
|
642
642
|
deleted: '0.8.0',
|
|
643
|
-
replacement: 'elevation.surface.overlay',
|
|
643
|
+
replacement: 'elevation.surface.overlay.[default]',
|
|
644
644
|
description: "\nUse for the background of overlay elements, such as modals, dropdown menus, flags, and inline dialogs (i.e. elements that sit on top of the UI).\n\nAlso use for the background of raised cards in a dragged state.\n\nCombine with shadow.overlay."
|
|
645
645
|
}
|
|
646
646
|
},
|
|
@@ -2,11 +2,29 @@ var shadow = {
|
|
|
2
2
|
elevation: {
|
|
3
3
|
surface: {
|
|
4
4
|
'[default]': {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
'[default]': {
|
|
6
|
+
attributes: {
|
|
7
|
+
group: 'paint',
|
|
8
|
+
state: 'active',
|
|
9
|
+
introduced: '0.6.0',
|
|
10
|
+
description: 'Use as the primary background for the UI.'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
hovered: {
|
|
14
|
+
attributes: {
|
|
15
|
+
group: 'paint',
|
|
16
|
+
state: 'active',
|
|
17
|
+
introduced: '0.10.20',
|
|
18
|
+
description: 'Hovered state of elevation.surface'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
pressed: {
|
|
22
|
+
attributes: {
|
|
23
|
+
group: 'paint',
|
|
24
|
+
state: 'active',
|
|
25
|
+
introduced: '0.10.20',
|
|
26
|
+
description: 'Pressed state of elevation.surface'
|
|
27
|
+
}
|
|
10
28
|
}
|
|
11
29
|
},
|
|
12
30
|
sunken: {
|
|
@@ -18,19 +36,55 @@ var shadow = {
|
|
|
18
36
|
}
|
|
19
37
|
},
|
|
20
38
|
raised: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
39
|
+
'[default]': {
|
|
40
|
+
attributes: {
|
|
41
|
+
group: 'paint',
|
|
42
|
+
state: 'active',
|
|
43
|
+
introduced: '0.6.0',
|
|
44
|
+
description: 'Use for the background of cards that can be moved, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised.'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
hovered: {
|
|
48
|
+
attributes: {
|
|
49
|
+
group: 'paint',
|
|
50
|
+
state: 'active',
|
|
51
|
+
introduced: '0.10.20',
|
|
52
|
+
description: 'Hovered state of elevation.surface.raised'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
pressed: {
|
|
56
|
+
attributes: {
|
|
57
|
+
group: 'paint',
|
|
58
|
+
state: 'active',
|
|
59
|
+
introduced: '0.10.20',
|
|
60
|
+
description: 'Pressed state of elevation.surface.raised'
|
|
61
|
+
}
|
|
26
62
|
}
|
|
27
63
|
},
|
|
28
64
|
overlay: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
65
|
+
'[default]': {
|
|
66
|
+
attributes: {
|
|
67
|
+
group: 'paint',
|
|
68
|
+
state: 'active',
|
|
69
|
+
introduced: '0.6.0',
|
|
70
|
+
description: "Use for the background of elements that sit on top of they UI, such as modals, dialogs, dropdown menus, floating toolbars, and floating single-action buttons. Also use for the background of raised cards in a dragged state. Combine with elevation.shadow.overlay."
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
hovered: {
|
|
74
|
+
attributes: {
|
|
75
|
+
group: 'paint',
|
|
76
|
+
state: 'active',
|
|
77
|
+
introduced: '0.10.20',
|
|
78
|
+
description: "Hovered state of elevation.surface.overlay"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
pressed: {
|
|
82
|
+
attributes: {
|
|
83
|
+
group: 'paint',
|
|
84
|
+
state: 'active',
|
|
85
|
+
introduced: '0.10.20',
|
|
86
|
+
description: "Pressed state of elevation.surface.overlay"
|
|
87
|
+
}
|
|
34
88
|
}
|
|
35
89
|
}
|
|
36
90
|
}
|
package/dist/esm/version.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* These changes will then be picked up by our tooling which will attempt to
|
|
13
13
|
* migrate as many of these renames as possible.
|
|
14
14
|
*
|
|
15
|
-
* @codegen <<SignedSource::
|
|
15
|
+
* @codegen <<SignedSource::785f21ff78f22bc07f51619e1add8ba9>>
|
|
16
16
|
* @codegenCommand yarn build tokens
|
|
17
17
|
*/
|
|
18
18
|
import tokens from './token-names';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Token names mapped to their value in the default Atlassian theme ('light')
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::59a1a4aaa5f768efccaed2c726fc2b08>>
|
|
7
7
|
* @codegenCommand yarn build tokens
|
|
8
8
|
*/
|
|
9
9
|
declare const defaultTokenValues: {
|
|
@@ -285,9 +285,15 @@ declare const defaultTokenValues: {
|
|
|
285
285
|
readonly 'elevation.shadow.overflow': "0px 8px 8px #091E4214, 0px 0px 1px #091E421F";
|
|
286
286
|
readonly 'elevation.shadow.overlay': "0px 8px 12px #091E4226, 0px 0px 1px #091E424F";
|
|
287
287
|
readonly 'elevation.surface': "#FFFFFF";
|
|
288
|
+
readonly 'elevation.surface.hovered': "#F1F2F4";
|
|
289
|
+
readonly 'elevation.surface.pressed': "#DCDFE4";
|
|
288
290
|
readonly 'elevation.surface.sunken': "#F7F8F9";
|
|
289
291
|
readonly 'elevation.surface.raised': "#FFFFFF";
|
|
292
|
+
readonly 'elevation.surface.raised.hovered': "#F1F2F4";
|
|
293
|
+
readonly 'elevation.surface.raised.pressed': "#DCDFE4";
|
|
290
294
|
readonly 'elevation.surface.overlay': "#FFFFFF";
|
|
295
|
+
readonly 'elevation.surface.overlay.hovered': "#F1F2F4";
|
|
296
|
+
readonly 'elevation.surface.overlay.pressed': "#DCDFE4";
|
|
291
297
|
readonly 'opacity.disabled': "0.4";
|
|
292
298
|
readonly 'opacity.loading': "0.2";
|
|
293
299
|
readonly 'utility.UNSAFE_util.transparent': "transparent";
|