@atlaskit/tokens 1.5.2 → 1.7.0

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.
Files changed (100) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/artifacts/palettes-raw/shape-palette.js +3 -3
  3. package/dist/cjs/artifacts/themes/atlassian-shape.js +2 -2
  4. package/dist/cjs/artifacts/token-default-values.js +12 -10
  5. package/dist/cjs/artifacts/token-names.js +12 -10
  6. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-new-input-border.js +3 -267
  7. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +33 -33
  8. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-light-new-input-border.js +3 -267
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +33 -33
  12. package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +81 -37
  13. package/dist/cjs/constants.js +1 -1
  14. package/dist/cjs/get-token-value.js +1 -1
  15. package/dist/cjs/get-token.js +1 -1
  16. package/dist/cjs/palettes/shape-palette.js +2 -1
  17. package/dist/cjs/set-global-theme.js +38 -3
  18. package/dist/cjs/tokens/atlassian-shape/shape.js +7 -1
  19. package/dist/cjs/tokens/default/shape/shape.js +33 -17
  20. package/dist/cjs/utils/theme-state-transformer.js +2 -1
  21. package/dist/cjs/utils/token-order.js +1 -1
  22. package/dist/cjs/version.json +1 -1
  23. package/dist/es2019/artifacts/palettes-raw/shape-palette.js +3 -3
  24. package/dist/es2019/artifacts/themes/atlassian-shape.js +12 -10
  25. package/dist/es2019/artifacts/token-default-values.js +12 -10
  26. package/dist/es2019/artifacts/token-names.js +12 -10
  27. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-new-input-border.js +3 -267
  28. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +33 -33
  29. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
  30. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
  31. package/dist/es2019/artifacts/tokens-raw/atlassian-light-new-input-border.js +3 -267
  32. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +33 -33
  33. package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +81 -37
  34. package/dist/es2019/constants.js +1 -1
  35. package/dist/es2019/get-token-value.js +1 -1
  36. package/dist/es2019/get-token.js +1 -1
  37. package/dist/es2019/palettes/shape-palette.js +2 -1
  38. package/dist/es2019/set-global-theme.js +34 -2
  39. package/dist/es2019/tokens/atlassian-shape/shape.js +7 -1
  40. package/dist/es2019/tokens/default/shape/shape.js +33 -17
  41. package/dist/es2019/utils/theme-state-transformer.js +2 -1
  42. package/dist/es2019/utils/token-order.js +1 -1
  43. package/dist/es2019/version.json +1 -1
  44. package/dist/esm/artifacts/palettes-raw/shape-palette.js +3 -3
  45. package/dist/esm/artifacts/themes/atlassian-shape.js +2 -2
  46. package/dist/esm/artifacts/token-default-values.js +12 -10
  47. package/dist/esm/artifacts/token-names.js +12 -10
  48. package/dist/esm/artifacts/tokens-raw/atlassian-dark-new-input-border.js +3 -267
  49. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +33 -33
  50. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
  51. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
  52. package/dist/esm/artifacts/tokens-raw/atlassian-light-new-input-border.js +3 -267
  53. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +33 -33
  54. package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +81 -37
  55. package/dist/esm/constants.js +1 -1
  56. package/dist/esm/get-token-value.js +1 -1
  57. package/dist/esm/get-token.js +1 -1
  58. package/dist/esm/palettes/shape-palette.js +2 -1
  59. package/dist/esm/set-global-theme.js +38 -3
  60. package/dist/esm/tokens/atlassian-shape/shape.js +7 -1
  61. package/dist/esm/tokens/default/shape/shape.js +33 -17
  62. package/dist/esm/utils/theme-state-transformer.js +2 -1
  63. package/dist/esm/utils/token-order.js +1 -1
  64. package/dist/esm/version.json +1 -1
  65. package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +3 -18
  66. package/dist/types/artifacts/themes/atlassian-shape.d.ts +2 -2
  67. package/dist/types/artifacts/token-default-values.d.ts +12 -10
  68. package/dist/types/artifacts/token-names.d.ts +23 -19
  69. package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
  70. package/dist/types/artifacts/types-internal.d.ts +2 -2
  71. package/dist/types/artifacts/types.d.ts +2 -2
  72. package/dist/types/index.d.ts +1 -1
  73. package/dist/types/palettes/shape-palette.d.ts +1 -1
  74. package/dist/types/set-global-theme.d.ts +10 -7
  75. package/dist/types/types.d.ts +3 -1
  76. package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +3 -18
  77. package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +2 -2
  78. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +12 -10
  79. package/dist/types-ts4.5/artifacts/token-names.d.ts +23 -19
  80. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-new-input-border.d.ts +1 -1
  81. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  82. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
  83. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
  84. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-new-input-border.d.ts +1 -1
  85. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  86. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
  87. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  88. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  89. package/dist/types-ts4.5/index.d.ts +1 -1
  90. package/dist/types-ts4.5/palettes/shape-palette.d.ts +1 -1
  91. package/dist/types-ts4.5/set-global-theme.d.ts +10 -7
  92. package/dist/types-ts4.5/types.d.ts +3 -1
  93. package/figma/atlassian-dark.json +16 -16
  94. package/figma/atlassian-legacy-dark.json +16 -16
  95. package/figma/atlassian-legacy-light.json +16 -16
  96. package/figma/atlassian-light.json +16 -16
  97. package/figma/atlassian-shape.json +36 -18
  98. package/package.json +6 -4
  99. package/report.api.md +125 -22
  100. package/tmp/api-report-tmp.d.ts +107 -27
@@ -15,7 +15,7 @@
15
15
  "group": "paint",
16
16
  "state": "active",
17
17
  "introduced": "0.6.0",
18
- "description": "Use for red text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
18
+ "description": "Use for red text on subtlest and subtler red accent backgrounds when there is no meaning tied to the color."
19
19
  },
20
20
  "value": "#DE350B"
21
21
  },
@@ -24,7 +24,7 @@
24
24
  "group": "paint",
25
25
  "state": "active",
26
26
  "introduced": "0.7.0",
27
- "description": "Use on bold red accent backgrounds."
27
+ "description": "Use for red text on subtle red accent backgrounds when there is no meaning tied to the color."
28
28
  },
29
29
  "value": "#BF2600"
30
30
  },
@@ -33,7 +33,7 @@
33
33
  "group": "paint",
34
34
  "state": "active",
35
35
  "introduced": "0.6.0",
36
- "description": "Use for orange text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
36
+ "description": "Use for orange text on subtlest and subtler orange accent backgrounds when there is no meaning tied to the color."
37
37
  },
38
38
  "value": "#F18D13"
39
39
  },
@@ -42,7 +42,7 @@
42
42
  "group": "paint",
43
43
  "state": "active",
44
44
  "introduced": "0.7.0",
45
- "description": "Use on bold orange accent backgrounds."
45
+ "description": "Use for orange text on subtle orange accent backgrounds when there is no meaning tied to the color."
46
46
  },
47
47
  "value": "#B65C02"
48
48
  },
@@ -51,7 +51,7 @@
51
51
  "group": "paint",
52
52
  "state": "active",
53
53
  "introduced": "0.6.0",
54
- "description": "Use for yellow text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
54
+ "description": "Use for yellow text on subtlest and subtler yellow accent backgrounds when there is no meaning tied to the color."
55
55
  },
56
56
  "value": "#FF991F"
57
57
  },
@@ -60,7 +60,7 @@
60
60
  "group": "paint",
61
61
  "state": "active",
62
62
  "introduced": "0.7.0",
63
- "description": "Use on bold yellow accent backgrounds."
63
+ "description": "Use for yellow text on subtle yellow accent backgrounds when there is no meaning tied to the color."
64
64
  },
65
65
  "value": "#FF8B00"
66
66
  },
@@ -69,7 +69,7 @@
69
69
  "group": "paint",
70
70
  "state": "active",
71
71
  "introduced": "0.6.0",
72
- "description": "Use for green text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
72
+ "description": "Use for green text on subtlest and subtler green accent backgrounds when there is no meaning tied to the color."
73
73
  },
74
74
  "value": "#00875A"
75
75
  },
@@ -78,7 +78,7 @@
78
78
  "group": "paint",
79
79
  "state": "active",
80
80
  "introduced": "0.7.0",
81
- "description": "Use on bold green accent backgrounds."
81
+ "description": "Use for green text on subtle green accent backgrounds when there is no meaning tied to the color."
82
82
  },
83
83
  "value": "#006644"
84
84
  },
@@ -87,7 +87,7 @@
87
87
  "group": "paint",
88
88
  "state": "active",
89
89
  "introduced": "0.6.0",
90
- "description": "Use for teal text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
90
+ "description": "Use for teal text on subtlest and subtler teal accent backgrounds when there is no meaning tied to the color."
91
91
  },
92
92
  "value": "#00A3BF"
93
93
  },
@@ -96,7 +96,7 @@
96
96
  "group": "paint",
97
97
  "state": "active",
98
98
  "introduced": "0.7.0",
99
- "description": "Use on bold teal accent backgrounds."
99
+ "description": "Use for teal text on subtle teal accent backgrounds when there is no meaning tied to the color."
100
100
  },
101
101
  "value": "#008DA6"
102
102
  },
@@ -105,7 +105,7 @@
105
105
  "group": "paint",
106
106
  "state": "active",
107
107
  "introduced": "0.6.0",
108
- "description": "Use for blue text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
108
+ "description": "Use for blue text on subtlest and subtler blue accent backgrounds when there is no meaning tied to the color."
109
109
  },
110
110
  "value": "#0052CC"
111
111
  },
@@ -114,7 +114,7 @@
114
114
  "group": "paint",
115
115
  "state": "active",
116
116
  "introduced": "0.7.0",
117
- "description": "Use on bold blue accent backgrounds."
117
+ "description": "Use for blue text on subtle blue accent backgrounds when there is no meaning tied to the color."
118
118
  },
119
119
  "value": "#0747A6"
120
120
  },
@@ -123,7 +123,7 @@
123
123
  "group": "paint",
124
124
  "state": "active",
125
125
  "introduced": "0.6.0",
126
- "description": "Use for purple text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
126
+ "description": "Use for purple text on subtlest and subtler purple accent backgrounds when there is no meaning tied to the color."
127
127
  },
128
128
  "value": "#5243AA"
129
129
  },
@@ -132,7 +132,7 @@
132
132
  "group": "paint",
133
133
  "state": "active",
134
134
  "introduced": "0.7.0",
135
- "description": "Use on bold purple accent backgrounds."
135
+ "description": "Use for purple text on subtle purple accent backgrounds when there is no meaning tied to the color."
136
136
  },
137
137
  "value": "#403294"
138
138
  },
@@ -141,7 +141,7 @@
141
141
  "group": "paint",
142
142
  "state": "active",
143
143
  "introduced": "0.6.0",
144
- "description": "Use for magenta text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
144
+ "description": "Use for magenta text on subtlest and subtler magenta accent backgrounds when there is no meaning tied to the color."
145
145
  },
146
146
  "value": "#E774BB"
147
147
  },
@@ -150,7 +150,7 @@
150
150
  "group": "paint",
151
151
  "state": "active",
152
152
  "introduced": "0.7.0",
153
- "description": "Use on bold magenta accent backgrounds."
153
+ "description": "Use for magenta text on subtle magenta accent backgrounds when there is no meaning tied to the color."
154
154
  },
155
155
  "value": "#DA62AC"
156
156
  },
@@ -15,7 +15,7 @@
15
15
  "group": "paint",
16
16
  "state": "active",
17
17
  "introduced": "0.6.0",
18
- "description": "Use for red text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
18
+ "description": "Use for red text on subtlest and subtler red accent backgrounds when there is no meaning tied to the color."
19
19
  },
20
20
  "value": "#AE2A19"
21
21
  },
@@ -24,7 +24,7 @@
24
24
  "group": "paint",
25
25
  "state": "active",
26
26
  "introduced": "0.7.0",
27
- "description": "Use on bold red accent backgrounds."
27
+ "description": "Use for red text on subtle red accent backgrounds when there is no meaning tied to the color."
28
28
  },
29
29
  "value": "#601E16"
30
30
  },
@@ -33,7 +33,7 @@
33
33
  "group": "paint",
34
34
  "state": "active",
35
35
  "introduced": "0.6.0",
36
- "description": "Use for orange text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
36
+ "description": "Use for orange text on subtlest and subtler orange accent backgrounds when there is no meaning tied to the color."
37
37
  },
38
38
  "value": "#974F0C"
39
39
  },
@@ -42,7 +42,7 @@
42
42
  "group": "paint",
43
43
  "state": "active",
44
44
  "introduced": "0.7.0",
45
- "description": "Use on bold orange accent backgrounds."
45
+ "description": "Use for orange text on subtle orange accent backgrounds when there is no meaning tied to the color."
46
46
  },
47
47
  "value": "#5F3811"
48
48
  },
@@ -51,7 +51,7 @@
51
51
  "group": "paint",
52
52
  "state": "active",
53
53
  "introduced": "0.6.0",
54
- "description": "Use for yellow text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
54
+ "description": "Use for yellow text on subtlest and subtler yellow accent backgrounds when there is no meaning tied to the color."
55
55
  },
56
56
  "value": "#7F5F01"
57
57
  },
@@ -60,7 +60,7 @@
60
60
  "group": "paint",
61
61
  "state": "active",
62
62
  "introduced": "0.7.0",
63
- "description": "Use on bold yellow accent backgrounds."
63
+ "description": "Use for yellow text on subtle yellow accent backgrounds when there is no meaning tied to the color."
64
64
  },
65
65
  "value": "#533F04"
66
66
  },
@@ -69,7 +69,7 @@
69
69
  "group": "paint",
70
70
  "state": "active",
71
71
  "introduced": "0.6.0",
72
- "description": "Use for green text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
72
+ "description": "Use for green text on subtlest and subtler green accent backgrounds when there is no meaning tied to the color."
73
73
  },
74
74
  "value": "#216E4E"
75
75
  },
@@ -78,7 +78,7 @@
78
78
  "group": "paint",
79
79
  "state": "active",
80
80
  "introduced": "0.7.0",
81
- "description": "Use on bold green accent backgrounds."
81
+ "description": "Use for green text on subtle green accent backgrounds when there is no meaning tied to the color."
82
82
  },
83
83
  "value": "#164B35"
84
84
  },
@@ -87,7 +87,7 @@
87
87
  "group": "paint",
88
88
  "state": "active",
89
89
  "introduced": "0.6.0",
90
- "description": "Use for teal text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
90
+ "description": "Use for teal text on subtlest and subtler teal accent backgrounds when there is no meaning tied to the color."
91
91
  },
92
92
  "value": "#206B74"
93
93
  },
@@ -96,7 +96,7 @@
96
96
  "group": "paint",
97
97
  "state": "active",
98
98
  "introduced": "0.7.0",
99
- "description": "Use on bold teal accent backgrounds."
99
+ "description": "Use for teal text on subtle teal accent backgrounds when there is no meaning tied to the color."
100
100
  },
101
101
  "value": "#1D474C"
102
102
  },
@@ -105,7 +105,7 @@
105
105
  "group": "paint",
106
106
  "state": "active",
107
107
  "introduced": "0.6.0",
108
- "description": "Use for blue text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
108
+ "description": "Use for blue text on subtlest and subtler blue accent backgrounds when there is no meaning tied to the color."
109
109
  },
110
110
  "value": "#0055CC"
111
111
  },
@@ -114,7 +114,7 @@
114
114
  "group": "paint",
115
115
  "state": "active",
116
116
  "introduced": "0.7.0",
117
- "description": "Use on bold blue accent backgrounds."
117
+ "description": "Use for blue text on subtle blue accent backgrounds when there is no meaning tied to the color."
118
118
  },
119
119
  "value": "#09326C"
120
120
  },
@@ -123,7 +123,7 @@
123
123
  "group": "paint",
124
124
  "state": "active",
125
125
  "introduced": "0.6.0",
126
- "description": "Use for purple text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
126
+ "description": "Use for purple text on subtlest and subtler purple accent backgrounds when there is no meaning tied to the color."
127
127
  },
128
128
  "value": "#5E4DB2"
129
129
  },
@@ -132,7 +132,7 @@
132
132
  "group": "paint",
133
133
  "state": "active",
134
134
  "introduced": "0.7.0",
135
- "description": "Use on bold purple accent backgrounds."
135
+ "description": "Use for purple text on subtle purple accent backgrounds when there is no meaning tied to the color."
136
136
  },
137
137
  "value": "#352C63"
138
138
  },
@@ -141,7 +141,7 @@
141
141
  "group": "paint",
142
142
  "state": "active",
143
143
  "introduced": "0.6.0",
144
- "description": "Use for magenta text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
144
+ "description": "Use for magenta text on subtlest and subtler magenta accent backgrounds when there is no meaning tied to the color."
145
145
  },
146
146
  "value": "#943D73"
147
147
  },
@@ -150,7 +150,7 @@
150
150
  "group": "paint",
151
151
  "state": "active",
152
152
  "introduced": "0.7.0",
153
- "description": "Use on bold magenta accent backgrounds."
153
+ "description": "Use for magenta text on subtle magenta accent backgrounds when there is no meaning tied to the color."
154
154
  },
155
155
  "value": "#50253F"
156
156
  },
@@ -4,56 +4,74 @@
4
4
  "Shape/border.radius.050": {
5
5
  "attributes": {
6
6
  "group": "shape",
7
- "state": "experimental",
7
+ "state": "active",
8
8
  "introduced": "1.1.0",
9
- "description": "Experimental, description needs to be amended"
9
+ "description": "Used for selection indicators, like tabs."
10
10
  },
11
11
  "value": 2
12
12
  },
13
+ "Shape/border.radius": {
14
+ "attributes": {
15
+ "group": "shape",
16
+ "state": "active",
17
+ "introduced": "1.5.2",
18
+ "description": "The default border radius."
19
+ },
20
+ "value": 4
21
+ },
13
22
  "Shape/border.radius.100": {
14
23
  "attributes": {
15
24
  "group": "shape",
16
- "state": "experimental",
25
+ "state": "active",
17
26
  "introduced": "1.1.0",
18
- "description": "Experimental, description needs to be amended"
27
+ "description": "Used for buttons and inputs."
19
28
  },
20
29
  "value": 4
21
30
  },
22
31
  "Shape/border.radius.200": {
23
32
  "attributes": {
24
33
  "group": "shape",
25
- "state": "experimental",
34
+ "state": "active",
26
35
  "introduced": "1.1.0",
27
- "description": "Experimental, description needs to be amended"
36
+ "description": "Used for smaller cards."
28
37
  },
29
38
  "value": 8
30
39
  },
31
40
  "Shape/border.radius.300": {
32
41
  "attributes": {
33
42
  "group": "shape",
34
- "state": "experimental",
43
+ "state": "active",
35
44
  "introduced": "1.1.0",
36
- "description": "Experimental, description needs to be amended"
45
+ "description": "Used for cards and larger containers."
37
46
  },
38
47
  "value": 12
39
48
  },
40
49
  "Shape/border.radius.400": {
41
50
  "attributes": {
42
51
  "group": "shape",
43
- "state": "experimental",
52
+ "state": "active",
44
53
  "introduced": "1.1.0",
45
- "description": "Experimental, description needs to be amended"
54
+ "description": "Used for modals."
46
55
  },
47
56
  "value": 16
48
57
  },
49
- "Shape/border.radius.round": {
58
+ "Shape/border.radius.circle": {
50
59
  "attributes": {
51
60
  "group": "shape",
52
- "state": "experimental",
61
+ "state": "active",
53
62
  "introduced": "1.1.0",
54
- "description": "Experimental, description needs to be amended"
63
+ "description": "Used for circular containers, like a rounded button."
55
64
  },
56
- "value": "50%"
65
+ "value": 32032
66
+ },
67
+ "Shape/border.width": {
68
+ "attributes": {
69
+ "group": "shape",
70
+ "state": "active",
71
+ "introduced": "1.5.2",
72
+ "description": "The default border width."
73
+ },
74
+ "value": 1
57
75
  },
58
76
  "Shape/border.width.0": {
59
77
  "attributes": {
@@ -67,18 +85,18 @@
67
85
  "Shape/border.width.050": {
68
86
  "attributes": {
69
87
  "group": "shape",
70
- "state": "experimental",
88
+ "state": "active",
71
89
  "introduced": "1.1.0",
72
- "description": "Experimental, description needs to be amended"
90
+ "description": "Used for all borders and dividers."
73
91
  },
74
92
  "value": 1
75
93
  },
76
94
  "Shape/border.width.100": {
77
95
  "attributes": {
78
96
  "group": "shape",
79
- "state": "experimental",
97
+ "state": "active",
80
98
  "introduced": "1.1.0",
81
- "description": "Experimental, description needs to be amended"
99
+ "description": "Used for bolder dividers and interaction states."
82
100
  },
83
101
  "value": 2
84
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.5.2",
3
+ "version": "1.7.0",
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",
@@ -71,16 +71,15 @@
71
71
  "@atlaskit/docs": "^9.1.0",
72
72
  "@atlaskit/dropdown-menu": "^11.9.0",
73
73
  "@atlaskit/ds-explorations": "^2.2.0",
74
- "@atlaskit/dynamic-table": "^14.9.0",
74
+ "@atlaskit/dynamic-table": "^14.11.0",
75
75
  "@atlaskit/grid": "^0.11.0",
76
76
  "@atlaskit/heading": "^1.3.0",
77
77
  "@atlaskit/icon": "^21.12.0",
78
78
  "@atlaskit/lozenge": "^11.4.0",
79
- "@atlaskit/primitives": "^0.9.0",
79
+ "@atlaskit/primitives": "^0.12.0",
80
80
  "@atlaskit/section-message": "^6.4.0",
81
81
  "@atlaskit/select": "^16.5.0",
82
82
  "@atlaskit/spinner": "^15.5.1",
83
- "@atlaskit/tabs": "^13.4.0",
84
83
  "@atlaskit/tag": "^11.5.0",
85
84
  "@atlaskit/textfield": "^5.5.0",
86
85
  "@atlaskit/theme": "^12.5.0",
@@ -136,6 +135,9 @@
136
135
  },
137
136
  "platform.design-system-team.update-border-input_ff9l1": {
138
137
  "type": "boolean"
138
+ },
139
+ "platform.design-system-team.space-and-shape-tokens_q5me6": {
140
+ "type": "boolean"
139
141
  }
140
142
  },
141
143
  "homepage": "https://atlassian.design/components/tokens",
package/report.api.md CHANGED
@@ -25,6 +25,16 @@ interface ActiveThemeState extends ThemeState {
25
25
 
26
26
  // @public
27
27
  export type ActiveTokens =
28
+ | 'border.radius'
29
+ | 'border.radius.050'
30
+ | 'border.radius.100'
31
+ | 'border.radius.200'
32
+ | 'border.radius.300'
33
+ | 'border.radius.400'
34
+ | 'border.radius.circle'
35
+ | 'border.width'
36
+ | 'border.width.050'
37
+ | 'border.width.100'
28
38
  | 'color.background.accent.blue.bolder'
29
39
  | 'color.background.accent.blue.subtle'
30
40
  | 'color.background.accent.blue.subtler'
@@ -349,6 +359,74 @@ export type ActiveTokens =
349
359
  // @public (undocumented)
350
360
  type ActiveTokenState = 'active';
351
361
 
362
+ // @public (undocumented)
363
+ type BaseRadiusToken = keyof typeof baseRadiusTokens;
364
+
365
+ // @public (undocumented)
366
+ const baseRadiusTokens: {
367
+ readonly Radius050: {
368
+ readonly value: 2;
369
+ readonly attributes: {
370
+ readonly group: 'shape';
371
+ };
372
+ };
373
+ readonly Radius100: {
374
+ readonly value: 4;
375
+ readonly attributes: {
376
+ readonly group: 'shape';
377
+ };
378
+ };
379
+ readonly Radius200: {
380
+ readonly value: 8;
381
+ readonly attributes: {
382
+ readonly group: 'shape';
383
+ };
384
+ };
385
+ readonly Radius300: {
386
+ readonly value: 12;
387
+ readonly attributes: {
388
+ readonly group: 'shape';
389
+ };
390
+ };
391
+ readonly Radius400: {
392
+ readonly value: 16;
393
+ readonly attributes: {
394
+ readonly group: 'shape';
395
+ };
396
+ };
397
+ readonly RadiusCircle: {
398
+ readonly value: 32032;
399
+ readonly attributes: {
400
+ readonly group: 'shape';
401
+ };
402
+ };
403
+ };
404
+
405
+ // @public (undocumented)
406
+ type BaseSizeToken = keyof typeof baseSizeTokens;
407
+
408
+ // @public (undocumented)
409
+ const baseSizeTokens: {
410
+ readonly Size0: {
411
+ readonly value: 0;
412
+ readonly attributes: {
413
+ readonly group: 'shape';
414
+ };
415
+ };
416
+ readonly Size050: {
417
+ readonly value: 1;
418
+ readonly attributes: {
419
+ readonly group: 'shape';
420
+ };
421
+ };
422
+ readonly Size100: {
423
+ readonly value: 2;
424
+ readonly attributes: {
425
+ readonly group: 'shape';
426
+ };
427
+ };
428
+ };
429
+
352
430
  // @public (undocumented)
353
431
  const baseSpacingTokens: {
354
432
  readonly Space0: {
@@ -442,15 +520,6 @@ export type CSSToken = CSSTokenMap[keyof CSSTokenMap];
442
520
 
443
521
  // @public (undocumented)
444
522
  type CSSTokenMap = {
445
- 'border.radius.050': 'var(--ds-radius-050)';
446
- 'border.radius.100': 'var(--ds-radius-100)';
447
- 'border.radius.200': 'var(--ds-radius-200)';
448
- 'border.radius.300': 'var(--ds-radius-300)';
449
- 'border.radius.400': 'var(--ds-radius-400)';
450
- 'border.radius.round': 'var(--ds-radius-round)';
451
- 'border.width.0': 'var(--ds-width-0)';
452
- 'border.width.050': 'var(--ds-width-050)';
453
- 'border.width.100': 'var(--ds-width-100)';
454
523
  'color.text': 'var(--ds-text)';
455
524
  'color.text.accent.red': 'var(--ds-text-accent-red)';
456
525
  'color.text.accent.red.bolder': 'var(--ds-text-accent-red-bolder)';
@@ -737,6 +806,17 @@ type CSSTokenMap = {
737
806
  'opacity.disabled': 'var(--ds-opacity-disabled)';
738
807
  'opacity.loading': 'var(--ds-opacity-loading)';
739
808
  'utility.UNSAFE.transparent': 'var(--ds-UNSAFE-transparent)';
809
+ 'border.radius.050': 'var(--ds-border-radius-050)';
810
+ 'border.radius': 'var(--ds-border-radius)';
811
+ 'border.radius.100': 'var(--ds-border-radius-100)';
812
+ 'border.radius.200': 'var(--ds-border-radius-200)';
813
+ 'border.radius.300': 'var(--ds-border-radius-300)';
814
+ 'border.radius.400': 'var(--ds-border-radius-400)';
815
+ 'border.radius.circle': 'var(--ds-border-radius-circle)';
816
+ 'border.width': 'var(--ds-border-width)';
817
+ 'border.width.0': 'var(--ds-border-width-0)';
818
+ 'border.width.050': 'var(--ds-border-width-050)';
819
+ 'border.width.100': 'var(--ds-border-width-100)';
740
820
  'space.0': 'var(--ds-space-0)';
741
821
  'space.025': 'var(--ds-space-025)';
742
822
  'space.050': 'var(--ds-space-050)';
@@ -843,6 +923,7 @@ export const getThemeHtmlAttrs: ({
843
923
  colorMode,
844
924
  dark,
845
925
  light,
926
+ shape,
846
927
  spacing,
847
928
  typography,
848
929
  }?: Partial<ThemeState>) => Record<string, string>;
@@ -852,6 +933,7 @@ export const getThemeStyles: ({
852
933
  colorMode,
853
934
  dark,
854
935
  light,
936
+ shape,
855
937
  spacing,
856
938
  typography,
857
939
  }?: Partial<ThemeState>) => Promise<ThemeStyles[]>;
@@ -879,6 +961,16 @@ export type Groups =
879
961
 
880
962
  // @public
881
963
  type InternalTokenIds =
964
+ | 'border.radius.050'
965
+ | 'border.radius.100'
966
+ | 'border.radius.200'
967
+ | 'border.radius.300'
968
+ | 'border.radius.400'
969
+ | 'border.radius.[default]'
970
+ | 'border.radius.circle'
971
+ | 'border.width.050'
972
+ | 'border.width.100'
973
+ | 'border.width.[default]'
882
974
  | 'color.background.accent.blue.bolder'
883
975
  | 'color.background.accent.blue.subtle'
884
976
  | 'color.background.accent.blue.subtler'
@@ -1225,6 +1317,7 @@ export const setGlobalTheme: ({
1225
1317
  colorMode,
1226
1318
  dark,
1227
1319
  light,
1320
+ shape,
1228
1321
  spacing,
1229
1322
  typography,
1230
1323
  }?: Partial<ThemeState>) => Promise<UnbindFn>;
@@ -1245,6 +1338,12 @@ export type ShadowToken<BaseToken> = DesignToken<
1245
1338
  'shadow'
1246
1339
  >;
1247
1340
 
1341
+ // @public
1342
+ type ShapePaletteToken = BaseRadiusToken | BaseSizeToken;
1343
+
1344
+ // @public (undocumented)
1345
+ export type ShapeToken = DesignToken<ShapePaletteToken, 'shape'>;
1346
+
1248
1347
  // @public
1249
1348
  type SpacingPaletteToken = keyof typeof baseSpacingTokens;
1250
1349
 
@@ -1330,13 +1429,15 @@ export interface ThemeState {
1330
1429
  // (undocumented)
1331
1430
  colorMode: ThemeColorModes;
1332
1431
  // (undocumented)
1333
- dark: ThemeIds;
1432
+ dark: Extract<ThemeIds, 'dark' | 'legacy-dark' | 'legacy-light' | 'light'>;
1433
+ // (undocumented)
1434
+ light: Extract<ThemeIds, 'dark' | 'legacy-dark' | 'legacy-light' | 'light'>;
1334
1435
  // (undocumented)
1335
- light: ThemeIds;
1436
+ shape?: Extract<ThemeIds, 'shape'>;
1336
1437
  // (undocumented)
1337
- spacing?: ThemeIds;
1438
+ spacing?: Extract<ThemeIds, 'spacing'>;
1338
1439
  // (undocumented)
1339
- typography?: ThemeIds;
1440
+ typography?: Extract<ThemeIds, 'typography'>;
1340
1441
  }
1341
1442
 
1342
1443
  // @public
@@ -1376,15 +1477,6 @@ type Tokens = typeof tokens;
1376
1477
 
1377
1478
  // @public
1378
1479
  const tokens: {
1379
- readonly 'border.radius.050': '--ds-radius-050';
1380
- readonly 'border.radius.100': '--ds-radius-100';
1381
- readonly 'border.radius.200': '--ds-radius-200';
1382
- readonly 'border.radius.300': '--ds-radius-300';
1383
- readonly 'border.radius.400': '--ds-radius-400';
1384
- readonly 'border.radius.round': '--ds-radius-round';
1385
- readonly 'border.width.0': '--ds-width-0';
1386
- readonly 'border.width.050': '--ds-width-050';
1387
- readonly 'border.width.100': '--ds-width-100';
1388
1480
  readonly 'color.text': '--ds-text';
1389
1481
  readonly 'color.text.accent.red': '--ds-text-accent-red';
1390
1482
  readonly 'color.text.accent.red.bolder': '--ds-text-accent-red-bolder';
@@ -1671,6 +1763,17 @@ const tokens: {
1671
1763
  readonly 'opacity.disabled': '--ds-opacity-disabled';
1672
1764
  readonly 'opacity.loading': '--ds-opacity-loading';
1673
1765
  readonly 'utility.UNSAFE.transparent': '--ds-UNSAFE-transparent';
1766
+ readonly 'border.radius.050': '--ds-border-radius-050';
1767
+ readonly 'border.radius': '--ds-border-radius';
1768
+ readonly 'border.radius.100': '--ds-border-radius-100';
1769
+ readonly 'border.radius.200': '--ds-border-radius-200';
1770
+ readonly 'border.radius.300': '--ds-border-radius-300';
1771
+ readonly 'border.radius.400': '--ds-border-radius-400';
1772
+ readonly 'border.radius.circle': '--ds-border-radius-circle';
1773
+ readonly 'border.width': '--ds-border-width';
1774
+ readonly 'border.width.0': '--ds-border-width-0';
1775
+ readonly 'border.width.050': '--ds-border-width-050';
1776
+ readonly 'border.width.100': '--ds-border-width-100';
1674
1777
  readonly 'space.0': '--ds-space-0';
1675
1778
  readonly 'space.025': '--ds-space-025';
1676
1779
  readonly 'space.050': '--ds-space-050';