@atlaskit/button 16.10.1 → 16.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +66 -60
- package/dist/cjs/containers/button-group.js +1 -0
- package/dist/cjs/new-button/variants/default/button.js +1 -2
- package/dist/cjs/new-button/variants/default/link.js +1 -2
- package/dist/cjs/new-button/variants/default/use-default-button.js +11 -16
- package/dist/cjs/new-button/variants/icon/button.js +1 -2
- package/dist/cjs/new-button/variants/icon/link.js +1 -2
- package/dist/cjs/new-button/variants/icon/use-icon-button.js +6 -10
- package/dist/cjs/new-button/variants/shared/colors.js +1 -2
- package/dist/cjs/new-button/variants/shared/content.js +51 -0
- package/dist/cjs/new-button/variants/shared/use-button-base.js +14 -4
- package/dist/cjs/new-button/variants/shared/xcss.js +1 -43
- package/dist/cjs/old-button/button.js +1 -2
- package/dist/cjs/old-button/custom-theme-button/custom-theme-button.js +1 -2
- package/dist/cjs/old-button/custom-theme-button/theme.js +1 -2
- package/dist/cjs/old-button/loading-button.js +1 -2
- package/dist/cjs/old-button/shared/button-base.js +9 -9
- package/dist/cjs/old-button/shared/colors.js +1 -2
- package/dist/cjs/old-button/shared/css.js +2 -3
- package/dist/cjs/old-button/shared/get-if-visually-hidden-children.js +2 -3
- package/dist/cjs/utils/appearances.js +1 -2
- package/dist/cjs/utils/spacing.js +1 -2
- package/dist/cjs/utils/variants.js +2 -4
- package/dist/es2019/containers/button-group.js +1 -0
- package/dist/es2019/new-button/variants/default/use-default-button.js +10 -14
- package/dist/es2019/new-button/variants/icon/use-icon-button.js +5 -8
- package/dist/es2019/new-button/variants/shared/content.js +43 -0
- package/dist/es2019/new-button/variants/shared/use-button-base.js +14 -3
- package/dist/es2019/new-button/variants/shared/xcss.js +1 -38
- package/dist/es2019/old-button/shared/button-base.js +7 -6
- package/dist/esm/containers/button-group.js +1 -0
- package/dist/esm/new-button/variants/default/use-default-button.js +10 -14
- package/dist/esm/new-button/variants/icon/use-icon-button.js +5 -8
- package/dist/esm/new-button/variants/shared/content.js +44 -0
- package/dist/esm/new-button/variants/shared/use-button-base.js +14 -3
- package/dist/esm/new-button/variants/shared/xcss.js +1 -37
- package/dist/esm/old-button/shared/button-base.js +7 -6
- package/dist/types/new-button/variants/shared/content.d.ts +13 -0
- package/dist/types/new-button/variants/shared/xcss.d.ts +0 -6
- package/package.json +6 -6
- package/dist/types-ts4.5/containers/button-group.d.ts +0 -12
- package/dist/types-ts4.5/entry-points/button-group.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/custom-theme-button.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/loading-button.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/new.d.ts +0 -5
- package/dist/types-ts4.5/entry-points/standard-button.d.ts +0 -7
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -4
- package/dist/types-ts4.5/entry-points/unsafe.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -8
- package/dist/types-ts4.5/new-button/variants/default/button.d.ts +0 -19
- package/dist/types-ts4.5/new-button/variants/default/link.d.ts +0 -17
- package/dist/types-ts4.5/new-button/variants/default/types.d.ts +0 -15
- package/dist/types-ts4.5/new-button/variants/default/use-default-button.d.ts +0 -15
- package/dist/types-ts4.5/new-button/variants/icon/button.d.ts +0 -17
- package/dist/types-ts4.5/new-button/variants/icon/link.d.ts +0 -17
- package/dist/types-ts4.5/new-button/variants/icon/types.d.ts +0 -8
- package/dist/types-ts4.5/new-button/variants/icon/use-icon-button.d.ts +0 -15
- package/dist/types-ts4.5/new-button/variants/shared/block-events.d.ts +0 -2
- package/dist/types-ts4.5/new-button/variants/shared/colors.d.ts +0 -18
- package/dist/types-ts4.5/new-button/variants/shared/use-button-base.d.ts +0 -37
- package/dist/types-ts4.5/new-button/variants/shared/xcss.d.ts +0 -24
- package/dist/types-ts4.5/new-button/variants/types.d.ts +0 -69
- package/dist/types-ts4.5/old-button/button.d.ts +0 -15
- package/dist/types-ts4.5/old-button/custom-theme-button/custom-theme-button-types.d.ts +0 -22
- package/dist/types-ts4.5/old-button/custom-theme-button/custom-theme-button.d.ts +0 -10
- package/dist/types-ts4.5/old-button/custom-theme-button/index.d.ts +0 -2
- package/dist/types-ts4.5/old-button/custom-theme-button/theme.d.ts +0 -21
- package/dist/types-ts4.5/old-button/loading-button.d.ts +0 -15
- package/dist/types-ts4.5/old-button/shared/block-events.d.ts +0 -4
- package/dist/types-ts4.5/old-button/shared/button-base.d.ts +0 -10
- package/dist/types-ts4.5/old-button/shared/colors.d.ts +0 -23
- package/dist/types-ts4.5/old-button/shared/css.d.ts +0 -22
- package/dist/types-ts4.5/old-button/shared/get-if-visually-hidden-children.d.ts +0 -2
- package/dist/types-ts4.5/old-button/shared/get-is-only-single-icon.d.ts +0 -2
- package/dist/types-ts4.5/old-button/shared/loading-spinner.d.ts +0 -5
- package/dist/types-ts4.5/old-button/types.d.ts +0 -94
- package/dist/types-ts4.5/utils/appearances.d.ts +0 -3
- package/dist/types-ts4.5/utils/spacing.d.ts +0 -3
- package/dist/types-ts4.5/utils/variants.d.ts +0 -15
- package/tmp/api-report-tmp.d.ts +0 -133
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
# @atlaskit/button
|
|
2
2
|
|
|
3
|
+
## 16.10.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#41229](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41229) [`22075b34cb8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/22075b34cb8) - Removing static styling violations
|
|
8
|
+
|
|
3
9
|
## 16.10.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
- [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
|
|
13
|
+
- [#39787](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39787) [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
|
|
8
14
|
|
|
9
15
|
## 16.10.0
|
|
10
16
|
|
|
11
17
|
### Minor Changes
|
|
12
18
|
|
|
13
|
-
- [`8c6ebfca290`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8c6ebfca290) - Expose temporary "unsafe" entry point for internal work. It will be removed soon. PLEASE DO NOT USE.
|
|
19
|
+
- [#39701](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39701) [`8c6ebfca290`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8c6ebfca290) - Expose temporary "unsafe" entry point for internal work. It will be removed soon. PLEASE DO NOT USE.
|
|
14
20
|
|
|
15
21
|
### Patch Changes
|
|
16
22
|
|
|
@@ -20,110 +26,110 @@
|
|
|
20
26
|
|
|
21
27
|
### Patch Changes
|
|
22
28
|
|
|
23
|
-
- [`f204e4e0e55`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f204e4e0e55) - Updated dependencies
|
|
29
|
+
- [#39579](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39579) [`f204e4e0e55`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f204e4e0e55) - Updated dependencies
|
|
24
30
|
|
|
25
31
|
## 16.9.3
|
|
26
32
|
|
|
27
33
|
### Patch Changes
|
|
28
34
|
|
|
29
|
-
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
35
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
30
36
|
- Updated dependencies
|
|
31
37
|
|
|
32
38
|
## 16.9.2
|
|
33
39
|
|
|
34
40
|
### Patch Changes
|
|
35
41
|
|
|
36
|
-
- [`234448e5bb3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/234448e5bb3) - [ux] Updated inner space fix values to be -2px to cover up for 2px margins.
|
|
42
|
+
- [#38730](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38730) [`234448e5bb3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/234448e5bb3) - [ux] Updated inner space fix values to be -2px to cover up for 2px margins.
|
|
37
43
|
|
|
38
44
|
## 16.9.1
|
|
39
45
|
|
|
40
46
|
### Patch Changes
|
|
41
47
|
|
|
42
|
-
- [`696e8c196a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/696e8c196a3) - Update our documentation of our CustomThemeButton export to note the impending deprecation that we have planned.
|
|
48
|
+
- [#38291](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38291) [`696e8c196a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/696e8c196a3) - Update our documentation of our CustomThemeButton export to note the impending deprecation that we have planned.
|
|
43
49
|
|
|
44
50
|
## 16.9.0
|
|
45
51
|
|
|
46
52
|
### Minor Changes
|
|
47
53
|
|
|
48
|
-
- [`f4aff27416d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f4aff27416d) - [ux] We are testing icon button internal spacing fix behind a feature flag. Now the space between icons and right or left edge of the button will be optically perceived as even. If this fix is successful it will be available in a later release.
|
|
54
|
+
- [#38259](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38259) [`f4aff27416d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f4aff27416d) - [ux] We are testing icon button internal spacing fix behind a feature flag. Now the space between icons and right or left edge of the button will be optically perceived as even. If this fix is successful it will be available in a later release.
|
|
49
55
|
|
|
50
56
|
## 16.8.5
|
|
51
57
|
|
|
52
58
|
### Patch Changes
|
|
53
59
|
|
|
54
|
-
- [`54b69a2fc03`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54b69a2fc03) - Refactor out rest props from button and make props more explicit.
|
|
60
|
+
- [#37681](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37681) [`54b69a2fc03`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54b69a2fc03) - Refactor out rest props from button and make props more explicit.
|
|
55
61
|
|
|
56
62
|
## 16.8.4
|
|
57
63
|
|
|
58
64
|
### Patch Changes
|
|
59
65
|
|
|
60
|
-
- [`4b3cfb2276b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4b3cfb2276b) - Refactor button base to remove rest props and make props more explicit.
|
|
66
|
+
- [#37682](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37682) [`4b3cfb2276b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4b3cfb2276b) - Refactor button base to remove rest props and make props more explicit.
|
|
61
67
|
|
|
62
68
|
## 16.8.3
|
|
63
69
|
|
|
64
70
|
### Patch Changes
|
|
65
71
|
|
|
66
|
-
- [`11cd2f83450`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11cd2f83450) - Refactor loading button to use less rest props to pass props more explicitly.
|
|
72
|
+
- [#37605](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37605) [`11cd2f83450`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11cd2f83450) - Refactor loading button to use less rest props to pass props more explicitly.
|
|
67
73
|
|
|
68
74
|
## 16.8.2
|
|
69
75
|
|
|
70
76
|
### Patch Changes
|
|
71
77
|
|
|
72
|
-
- [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
|
|
78
|
+
- [#36754](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36754) [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
|
|
73
79
|
|
|
74
80
|
## 16.8.1
|
|
75
81
|
|
|
76
82
|
### Patch Changes
|
|
77
83
|
|
|
78
|
-
- [`ba43427b3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ba43427b3e8) - Internal changes to account for introduction of shape/radius tokens.
|
|
84
|
+
- [#35441](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35441) [`ba43427b3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ba43427b3e8) - Internal changes to account for introduction of shape/radius tokens.
|
|
79
85
|
|
|
80
86
|
## 16.8.0
|
|
81
87
|
|
|
82
88
|
### Minor Changes
|
|
83
89
|
|
|
84
|
-
- [`5104149700b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5104149700b) - Button no longer unnecessarily sets `tabindex` as `0` for focus when using default `<button>` or `<a>` elements, as they are already focusable. This is still set when using the `component` prop so other elements can still be be focused. (This change is feature flagged)
|
|
90
|
+
- [#34532](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34532) [`5104149700b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5104149700b) - Button no longer unnecessarily sets `tabindex` as `0` for focus when using default `<button>` or `<a>` elements, as they are already focusable. This is still set when using the `component` prop so other elements can still be be focused. (This change is feature flagged)
|
|
85
91
|
|
|
86
92
|
## 16.7.6
|
|
87
93
|
|
|
88
94
|
### Patch Changes
|
|
89
95
|
|
|
90
|
-
- [`687e9b93266`](https://bitbucket.org/atlassian/atlassian-frontend/commits/687e9b93266) - Updated dependencies
|
|
96
|
+
- [#34644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34644) [`687e9b93266`](https://bitbucket.org/atlassian/atlassian-frontend/commits/687e9b93266) - Updated dependencies
|
|
91
97
|
|
|
92
98
|
## 16.7.5
|
|
93
99
|
|
|
94
100
|
### Patch Changes
|
|
95
101
|
|
|
96
|
-
- [`3a14ab26d19`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3a14ab26d19) - Updated dependencies
|
|
102
|
+
- [#34192](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34192) [`3a14ab26d19`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3a14ab26d19) - Updated dependencies
|
|
97
103
|
|
|
98
104
|
## 16.7.4
|
|
99
105
|
|
|
100
106
|
### Patch Changes
|
|
101
107
|
|
|
102
|
-
- [`49b08bfdf5f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49b08bfdf5f) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
108
|
+
- [#34051](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34051) [`49b08bfdf5f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49b08bfdf5f) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
103
109
|
|
|
104
110
|
## 16.7.3
|
|
105
111
|
|
|
106
112
|
### Patch Changes
|
|
107
113
|
|
|
108
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
114
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
109
115
|
|
|
110
116
|
## 16.7.2
|
|
111
117
|
|
|
112
118
|
### Patch Changes
|
|
113
119
|
|
|
114
|
-
- [`96b5112590b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/96b5112590b) - Updated dependencies
|
|
120
|
+
- [#33771](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33771) [`96b5112590b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/96b5112590b) - Updated dependencies
|
|
115
121
|
|
|
116
122
|
## 16.7.1
|
|
117
123
|
|
|
118
124
|
### Patch Changes
|
|
119
125
|
|
|
120
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
126
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
121
127
|
|
|
122
128
|
## 16.7.0
|
|
123
129
|
|
|
124
130
|
### Minor Changes
|
|
125
131
|
|
|
126
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
132
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
127
133
|
|
|
128
134
|
### Patch Changes
|
|
129
135
|
|
|
@@ -133,13 +139,13 @@
|
|
|
133
139
|
|
|
134
140
|
### Patch Changes
|
|
135
141
|
|
|
136
|
-
- [`23a850fe471`](https://bitbucket.org/atlassian/atlassian-frontend/commits/23a850fe471) - Updated dependencies
|
|
142
|
+
- [#33004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33004) [`23a850fe471`](https://bitbucket.org/atlassian/atlassian-frontend/commits/23a850fe471) - Updated dependencies
|
|
137
143
|
|
|
138
144
|
## 16.6.0
|
|
139
145
|
|
|
140
146
|
### Minor Changes
|
|
141
147
|
|
|
142
|
-
- [`3367210dce8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3367210dce8) - [ux] Internal change to the way focus is rendered for buttons.
|
|
148
|
+
- [#31299](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31299) [`3367210dce8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3367210dce8) - [ux] Internal change to the way focus is rendered for buttons.
|
|
143
149
|
Focus states now apply a 2px offset to the focus ring to aid the contrast of the focus state when applied on the 'primary' and 'selected' buttons.
|
|
144
150
|
As part of this change, and to settle on a more systemic approach to focus, button also no longer applies a different colored shadow per appearance.
|
|
145
151
|
|
|
@@ -147,7 +153,7 @@
|
|
|
147
153
|
|
|
148
154
|
### Patch Changes
|
|
149
155
|
|
|
150
|
-
- [`729e45efa7f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/729e45efa7f) - [ux] Fix a bug where the incorrect design tokens were used for the color of spinners in warning, disabled and selected buttons
|
|
156
|
+
- [#30248](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30248) [`729e45efa7f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/729e45efa7f) - [ux] Fix a bug where the incorrect design tokens were used for the color of spinners in warning, disabled and selected buttons
|
|
151
157
|
- Updated dependencies
|
|
152
158
|
|
|
153
159
|
## 16.5.6
|
|
@@ -166,13 +172,13 @@
|
|
|
166
172
|
|
|
167
173
|
### Patch Changes
|
|
168
174
|
|
|
169
|
-
- [`18aeca8c199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18aeca8c199) - Internal change to update token references. There is no expected behaviour or visual change.
|
|
175
|
+
- [#29390](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29390) [`18aeca8c199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18aeca8c199) - Internal change to update token references. There is no expected behaviour or visual change.
|
|
170
176
|
|
|
171
177
|
## 16.5.3
|
|
172
178
|
|
|
173
179
|
### Patch Changes
|
|
174
180
|
|
|
175
|
-
- [`f96f3ebd861`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f96f3ebd861) - [ux] Use color.background.neutral.subtle token to represent transparent background.
|
|
181
|
+
- [#28090](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28090) [`f96f3ebd861`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f96f3ebd861) - [ux] Use color.background.neutral.subtle token to represent transparent background.
|
|
176
182
|
|
|
177
183
|
## 16.5.2
|
|
178
184
|
|
|
@@ -190,7 +196,7 @@
|
|
|
190
196
|
|
|
191
197
|
### Minor Changes
|
|
192
198
|
|
|
193
|
-
- [`71799e16ae6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/71799e16ae6) - Introduce InteractionContext to @atlaskit/button
|
|
199
|
+
- [#26712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26712) [`71799e16ae6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/71799e16ae6) - Introduce InteractionContext to @atlaskit/button
|
|
194
200
|
|
|
195
201
|
### Patch Changes
|
|
196
202
|
|
|
@@ -207,7 +213,7 @@
|
|
|
207
213
|
|
|
208
214
|
### Minor Changes
|
|
209
215
|
|
|
210
|
-
- [`9f6369f5505`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9f6369f5505) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behaviour change.
|
|
216
|
+
- [#25860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25860) [`9f6369f5505`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9f6369f5505) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behaviour change.
|
|
211
217
|
|
|
212
218
|
### Patch Changes
|
|
213
219
|
|
|
@@ -217,50 +223,50 @@
|
|
|
217
223
|
|
|
218
224
|
### Patch Changes
|
|
219
225
|
|
|
220
|
-
- [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal changes to apply spacing tokens. This should be a no-op change.
|
|
226
|
+
- [#26488](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26488) [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal changes to apply spacing tokens. This should be a no-op change.
|
|
221
227
|
|
|
222
228
|
## 16.3.9
|
|
223
229
|
|
|
224
230
|
### Patch Changes
|
|
225
231
|
|
|
226
|
-
- [`1f4dba8f1a5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1f4dba8f1a5) - [ux] DSP-6696: prevent ButtonGroup items from being squished
|
|
232
|
+
- [#25237](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25237) [`1f4dba8f1a5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1f4dba8f1a5) - [ux] DSP-6696: prevent ButtonGroup items from being squished
|
|
227
233
|
|
|
228
234
|
## 16.3.8
|
|
229
235
|
|
|
230
236
|
### Patch Changes
|
|
231
237
|
|
|
232
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
238
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
233
239
|
|
|
234
240
|
## 16.3.7
|
|
235
241
|
|
|
236
242
|
### Patch Changes
|
|
237
243
|
|
|
238
|
-
- [`14d635468f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/14d635468f6) - [ux] DSP-6696: prevent empty ButtonGroup items from showing spacing by switching to flexbox gap
|
|
244
|
+
- [#24921](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24921) [`14d635468f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/14d635468f6) - [ux] DSP-6696: prevent empty ButtonGroup items from showing spacing by switching to flexbox gap
|
|
239
245
|
|
|
240
246
|
## 16.3.6
|
|
241
247
|
|
|
242
248
|
### Patch Changes
|
|
243
249
|
|
|
244
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
250
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
245
251
|
|
|
246
252
|
## 16.3.5
|
|
247
253
|
|
|
248
254
|
### Patch Changes
|
|
249
255
|
|
|
250
|
-
- [`e09f1576233`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e09f1576233) - Internal code change turning on new linting rules.
|
|
256
|
+
- [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381) [`e09f1576233`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e09f1576233) - Internal code change turning on new linting rules.
|
|
251
257
|
- Updated dependencies
|
|
252
258
|
|
|
253
259
|
## 16.3.4
|
|
254
260
|
|
|
255
261
|
### Patch Changes
|
|
256
262
|
|
|
257
|
-
- [`65a90f6ba14`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65a90f6ba14) - Use medium icons for button examples
|
|
263
|
+
- [#23191](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23191) [`65a90f6ba14`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65a90f6ba14) - Use medium icons for button examples
|
|
258
264
|
|
|
259
265
|
## 16.3.3
|
|
260
266
|
|
|
261
267
|
### Patch Changes
|
|
262
268
|
|
|
263
|
-
- [`8a5bdb3c844`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8a5bdb3c844) - Upgrading internal dependency (bind-event-listener) for improved internal types
|
|
269
|
+
- [#22614](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22614) [`8a5bdb3c844`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8a5bdb3c844) - Upgrading internal dependency (bind-event-listener) for improved internal types
|
|
264
270
|
|
|
265
271
|
## 16.3.2
|
|
266
272
|
|
|
@@ -278,7 +284,7 @@
|
|
|
278
284
|
|
|
279
285
|
### Minor Changes
|
|
280
286
|
|
|
281
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Export BaseProps type to prevent it being referenced via deep import path in d.ts files
|
|
287
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Export BaseProps type to prevent it being referenced via deep import path in d.ts files
|
|
282
288
|
|
|
283
289
|
### Patch Changes
|
|
284
290
|
|
|
@@ -294,14 +300,14 @@
|
|
|
294
300
|
|
|
295
301
|
### Patch Changes
|
|
296
302
|
|
|
297
|
-
- [`62edf20ab1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62edf20ab1e) - Migrates all usage of brand tokens to either selected or information tokens. This change is purely for semantic reasons, there are no visual or behavioural changes.
|
|
303
|
+
- [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618) [`62edf20ab1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62edf20ab1e) - Migrates all usage of brand tokens to either selected or information tokens. This change is purely for semantic reasons, there are no visual or behavioural changes.
|
|
298
304
|
- Updated dependencies
|
|
299
305
|
|
|
300
306
|
## 16.2.0
|
|
301
307
|
|
|
302
308
|
### Minor Changes
|
|
303
309
|
|
|
304
|
-
- [`dde969b6ef5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dde969b6ef5) - Fix type error with missing 'css' prop when importing Buttons directly from "@atlaskit/button/standard-button"
|
|
310
|
+
- [#19019](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19019) [`dde969b6ef5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dde969b6ef5) - Fix type error with missing 'css' prop when importing Buttons directly from "@atlaskit/button/standard-button"
|
|
305
311
|
|
|
306
312
|
### Patch Changes
|
|
307
313
|
|
|
@@ -311,7 +317,7 @@
|
|
|
311
317
|
|
|
312
318
|
### Patch Changes
|
|
313
319
|
|
|
314
|
-
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Performance optimisations (reduce tree size and improve style building)
|
|
320
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Performance optimisations (reduce tree size and improve style building)
|
|
315
321
|
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes
|
|
316
322
|
- Updated dependencies
|
|
317
323
|
|
|
@@ -325,14 +331,14 @@
|
|
|
325
331
|
|
|
326
332
|
### Patch Changes
|
|
327
333
|
|
|
328
|
-
- [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
|
|
334
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
|
|
329
335
|
- Updated dependencies
|
|
330
336
|
|
|
331
337
|
## 16.1.3
|
|
332
338
|
|
|
333
339
|
### Patch Changes
|
|
334
340
|
|
|
335
|
-
- [`c3b0a17a96c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c3b0a17a96c) - Fix spinner colours for disabled, warning and selected states when using tokens
|
|
341
|
+
- [#14777](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14777) [`c3b0a17a96c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c3b0a17a96c) - Fix spinner colours for disabled, warning and selected states when using tokens
|
|
336
342
|
- Updated dependencies
|
|
337
343
|
|
|
338
344
|
## 16.1.2
|
|
@@ -351,7 +357,7 @@
|
|
|
351
357
|
|
|
352
358
|
### Minor Changes
|
|
353
359
|
|
|
354
|
-
- [`e267e790d38`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e267e790d38) - [ux] Colors are now sourced through tokens.
|
|
360
|
+
- [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302) [`e267e790d38`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e267e790d38) - [ux] Colors are now sourced through tokens.
|
|
355
361
|
|
|
356
362
|
### Patch Changes
|
|
357
363
|
|
|
@@ -372,44 +378,44 @@
|
|
|
372
378
|
|
|
373
379
|
### Patch Changes
|
|
374
380
|
|
|
375
|
-
- [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
381
|
+
- [#12880](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12880) [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
376
382
|
|
|
377
383
|
## 15.1.7
|
|
378
384
|
|
|
379
385
|
### Patch Changes
|
|
380
386
|
|
|
381
|
-
- [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
|
|
387
|
+
- [#12167](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12167) [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
|
|
382
388
|
|
|
383
389
|
## 15.1.6
|
|
384
390
|
|
|
385
391
|
### Patch Changes
|
|
386
392
|
|
|
387
|
-
- [`49961803553`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49961803553) - Now utlises the auto focus hook from `ds-lib`.
|
|
393
|
+
- [#10230](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10230) [`49961803553`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49961803553) - Now utlises the auto focus hook from `ds-lib`.
|
|
388
394
|
- Updated dependencies
|
|
389
395
|
|
|
390
396
|
## 15.1.5
|
|
391
397
|
|
|
392
398
|
### Patch Changes
|
|
393
399
|
|
|
394
|
-
- [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
|
|
400
|
+
- [#8644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8644) [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
|
|
395
401
|
|
|
396
402
|
## 15.1.4
|
|
397
403
|
|
|
398
404
|
### Patch Changes
|
|
399
405
|
|
|
400
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
406
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
401
407
|
|
|
402
408
|
## 15.1.3
|
|
403
409
|
|
|
404
410
|
### Patch Changes
|
|
405
411
|
|
|
406
|
-
- [`9f733e3f59`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9f733e3f59) - Fixes inlined inferred types in @atlaskit/button/loading-button - no material change
|
|
412
|
+
- [#6091](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6091) [`9f733e3f59`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9f733e3f59) - Fixes inlined inferred types in @atlaskit/button/loading-button - no material change
|
|
407
413
|
|
|
408
414
|
## 15.1.2
|
|
409
415
|
|
|
410
416
|
### Patch Changes
|
|
411
417
|
|
|
412
|
-
- [`d7540c04cd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7540c04cd) - Before `15.x` it was possible for you to pass in `data-testid` and for that to be applied. In `15.x` we changed how props are spread so that is no longer possible. Please use the public API prop `testId` to control `data-testid`
|
|
418
|
+
- [#5860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5860) [`d7540c04cd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7540c04cd) - Before `15.x` it was possible for you to pass in `data-testid` and for that to be applied. In `15.x` we changed how props are spread so that is no longer possible. Please use the public API prop `testId` to control `data-testid`
|
|
413
419
|
|
|
414
420
|
We have:
|
|
415
421
|
|
|
@@ -434,7 +440,7 @@
|
|
|
434
440
|
|
|
435
441
|
### Patch Changes
|
|
436
442
|
|
|
437
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
443
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
438
444
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
439
445
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
440
446
|
|
|
@@ -442,7 +448,7 @@
|
|
|
442
448
|
|
|
443
449
|
### Minor Changes
|
|
444
450
|
|
|
445
|
-
- [`1944b0b626`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1944b0b626) - Export BaseOwnProps type to prevent it being referenced via deep import path in declaration files of dependendents
|
|
451
|
+
- [#5344](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5344) [`1944b0b626`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1944b0b626) - Export BaseOwnProps type to prevent it being referenced via deep import path in declaration files of dependendents
|
|
446
452
|
|
|
447
453
|
### Patch Changes
|
|
448
454
|
|
|
@@ -452,7 +458,7 @@
|
|
|
452
458
|
|
|
453
459
|
### Major Changes
|
|
454
460
|
|
|
455
|
-
- [`f75fedbf16`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f75fedbf16) - In this version we made button dramatically faster and lighter and improved buttons internal spacing 🤩
|
|
461
|
+
- [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749) [`f75fedbf16`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f75fedbf16) - In this version we made button dramatically faster and lighter and improved buttons internal spacing 🤩
|
|
456
462
|
|
|
457
463
|
There are now 3 button variants. We highly recommend you only install button through entry points to ensure minimum kbs. Our codemod will automatically shift you over to the entry point format
|
|
458
464
|
|
|
@@ -520,7 +526,7 @@ Once upgraded, use the Atlaskit codemod-cli;
|
|
|
520
526
|
`npx @atlaskit/codemod-cli --parser [PARSER] --extensions [FILE_EXTENSIONS] [TARGET_PATH]`
|
|
521
527
|
|
|
522
528
|
Or run `npx @atlaskit/codemod-cli -h` for more details on usage.
|
|
523
|
-
For Atlassians, refer to [this doc](https://
|
|
529
|
+
For Atlassians, refer to [this doc](https://hello.atlassian.net/wiki/spaces/AF/pages/2627171992/Codemods) for more details on the codemod CLI.
|
|
524
530
|
|
|
525
531
|
```js
|
|
526
532
|
import Button, { LoadingButton, CustomThemeButton } from '@atlaskit/button';
|
|
@@ -620,13 +626,13 @@ _When you use `@atlaskit/codemod-cli` you will be able to select which codemod y
|
|
|
620
626
|
|
|
621
627
|
### Patch Changes
|
|
622
628
|
|
|
623
|
-
- [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
|
|
629
|
+
- [#4707](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4707) [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
|
|
624
630
|
|
|
625
631
|
## 14.0.3
|
|
626
632
|
|
|
627
633
|
### Patch Changes
|
|
628
634
|
|
|
629
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
635
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
630
636
|
|
|
631
637
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
632
638
|
to prevent duplicates of tslib being bundled.
|
|
@@ -635,19 +641,19 @@ _When you use `@atlaskit/codemod-cli` you will be able to select which codemod y
|
|
|
635
641
|
|
|
636
642
|
### Patch Changes
|
|
637
643
|
|
|
638
|
-
- [`e99262c6f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e99262c6f0) - All form elements now have a default font explicitly set
|
|
644
|
+
- [#3823](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3823) [`e99262c6f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e99262c6f0) - All form elements now have a default font explicitly set
|
|
639
645
|
|
|
640
646
|
## 14.0.1
|
|
641
647
|
|
|
642
648
|
### Patch Changes
|
|
643
649
|
|
|
644
|
-
- [`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme and package information has been updated to point to the new design system website.
|
|
650
|
+
- [#3293](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3293) [`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme and package information has been updated to point to the new design system website.
|
|
645
651
|
|
|
646
652
|
## 14.0.0
|
|
647
653
|
|
|
648
654
|
### Major Changes
|
|
649
655
|
|
|
650
|
-
- [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
656
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
651
657
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
652
658
|
|
|
653
659
|
### Patch Changes
|
|
@@ -664,13 +670,13 @@ _When you use `@atlaskit/codemod-cli` you will be able to select which codemod y
|
|
|
664
670
|
|
|
665
671
|
### Patch Changes
|
|
666
672
|
|
|
667
|
-
- [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
673
|
+
- [#2866](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2866) [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
668
674
|
|
|
669
675
|
## 13.4.0
|
|
670
676
|
|
|
671
677
|
### Minor Changes
|
|
672
678
|
|
|
673
|
-
- [`afc842d132`](https://bitbucket.org/atlassian/atlassian-frontend/commits/afc842d132) - FIX: Buton text font-weight changed from normal to medium as per ADG spec
|
|
679
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137) [`afc842d132`](https://bitbucket.org/atlassian/atlassian-frontend/commits/afc842d132) - FIX: Buton text font-weight changed from normal to medium as per ADG spec
|
|
674
680
|
|
|
675
681
|
### Patch Changes
|
|
676
682
|
|
|
@@ -14,6 +14,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
14
14
|
var buttonGroupStyles = (0, _react2.css)({
|
|
15
15
|
display: 'inline-flex',
|
|
16
16
|
gap: "var(--ds-space-050, 4px)",
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
17
18
|
'> *': {
|
|
18
19
|
flex: '1 0 auto'
|
|
19
20
|
}
|
|
@@ -7,9 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var
|
|
10
|
+
var _content = _interopRequireDefault(require("../shared/content"));
|
|
11
11
|
var _useButtonBase = _interopRequireDefault(require("../shared/use-button-base"));
|
|
12
|
-
var _xcss = require("../shared/xcss");
|
|
13
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
14
|
/**
|
|
@@ -46,23 +45,20 @@ var useDefaultButton = function useDefaultButton(_ref) {
|
|
|
46
45
|
ref = _ref.ref,
|
|
47
46
|
shouldFitContainer = _ref.shouldFitContainer,
|
|
48
47
|
spacing = _ref.spacing;
|
|
49
|
-
var
|
|
50
|
-
hasOverlay: Boolean(overlay)
|
|
51
|
-
});
|
|
48
|
+
var hasOverlay = Boolean(overlay);
|
|
52
49
|
var baseProps = (0, _useButtonBase.default)({
|
|
53
50
|
analyticsContext: analyticsContext,
|
|
54
51
|
appearance: appearance,
|
|
55
52
|
autoFocus: autoFocus,
|
|
56
53
|
buttonType: buttonType,
|
|
57
|
-
children: /*#__PURE__*/_react.default.createElement(_react.Fragment, null, iconBefore && /*#__PURE__*/_react.default.createElement(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}, iconBefore), children && /*#__PURE__*/_react.default.createElement(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
xcss: [fadeStyles, _xcss.iconStyles]
|
|
54
|
+
children: /*#__PURE__*/_react.default.createElement(_react.Fragment, null, iconBefore && /*#__PURE__*/_react.default.createElement(_content.default, {
|
|
55
|
+
type: "icon",
|
|
56
|
+
hasOverlay: hasOverlay
|
|
57
|
+
}, iconBefore), children && /*#__PURE__*/_react.default.createElement(_content.default, {
|
|
58
|
+
hasOverlay: hasOverlay
|
|
59
|
+
}, children), iconAfter && /*#__PURE__*/_react.default.createElement(_content.default, {
|
|
60
|
+
type: "icon",
|
|
61
|
+
hasOverlay: hasOverlay
|
|
66
62
|
}, iconAfter)),
|
|
67
63
|
interactionName: interactionName,
|
|
68
64
|
isDisabled: isDisabled,
|
|
@@ -86,5 +82,4 @@ var useDefaultButton = function useDefaultButton(_ref) {
|
|
|
86
82
|
});
|
|
87
83
|
return baseProps;
|
|
88
84
|
};
|
|
89
|
-
var _default = useDefaultButton;
|
|
90
|
-
exports.default = _default;
|
|
85
|
+
var _default = exports.default = useDefaultButton;
|
|
@@ -92,5 +92,4 @@ var IconButton = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.f
|
|
|
92
92
|
}), baseProps.children);
|
|
93
93
|
}));
|
|
94
94
|
IconButton.displayName = 'IconButton';
|
|
95
|
-
var _default = IconButton;
|
|
96
|
-
exports.default = _default;
|
|
95
|
+
var _default = exports.default = IconButton;
|
|
@@ -6,9 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _content = _interopRequireDefault(require("../shared/content"));
|
|
10
10
|
var _useButtonBase = _interopRequireDefault(require("../shared/use-button-base"));
|
|
11
|
-
var _xcss = require("../shared/xcss");
|
|
12
11
|
/**
|
|
13
12
|
* __Use icon button__
|
|
14
13
|
*
|
|
@@ -41,9 +40,7 @@ var useIconButton = function useIconButton(_ref) {
|
|
|
41
40
|
ref = _ref.ref,
|
|
42
41
|
shouldFitContainer = _ref.shouldFitContainer,
|
|
43
42
|
spacing = _ref.spacing;
|
|
44
|
-
var
|
|
45
|
-
hasOverlay: Boolean(overlay)
|
|
46
|
-
});
|
|
43
|
+
var hasOverlay = Boolean(overlay);
|
|
47
44
|
var baseProps = (0, _useButtonBase.default)({
|
|
48
45
|
analyticsContext: analyticsContext,
|
|
49
46
|
appearance: appearance,
|
|
@@ -53,9 +50,9 @@ var useIconButton = function useIconButton(_ref) {
|
|
|
53
50
|
* TODO: Have not finished IconButton yet. It also needs a required accessible
|
|
54
51
|
* label - likely implemented using VisuallyHidden
|
|
55
52
|
*/
|
|
56
|
-
children: /*#__PURE__*/_react.default.createElement(
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
children: /*#__PURE__*/_react.default.createElement(_content.default, {
|
|
54
|
+
type: "icon",
|
|
55
|
+
hasOverlay: hasOverlay
|
|
59
56
|
}, icon),
|
|
60
57
|
interactionName: interactionName,
|
|
61
58
|
isDisabled: isDisabled,
|
|
@@ -78,5 +75,4 @@ var useIconButton = function useIconButton(_ref) {
|
|
|
78
75
|
});
|
|
79
76
|
return baseProps;
|
|
80
77
|
};
|
|
81
|
-
var _default = useIconButton;
|
|
82
|
-
exports.default = _default;
|
|
78
|
+
var _default = exports.default = useIconButton;
|