@atlaskit/button 16.10.0 → 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.
Files changed (80) hide show
  1. package/CHANGELOG.md +71 -59
  2. package/dist/cjs/containers/button-group.js +1 -0
  3. package/dist/cjs/new-button/variants/default/button.js +1 -2
  4. package/dist/cjs/new-button/variants/default/link.js +1 -2
  5. package/dist/cjs/new-button/variants/default/use-default-button.js +11 -16
  6. package/dist/cjs/new-button/variants/icon/button.js +1 -2
  7. package/dist/cjs/new-button/variants/icon/link.js +1 -2
  8. package/dist/cjs/new-button/variants/icon/use-icon-button.js +6 -10
  9. package/dist/cjs/new-button/variants/shared/colors.js +1 -2
  10. package/dist/cjs/new-button/variants/shared/content.js +51 -0
  11. package/dist/cjs/new-button/variants/shared/use-button-base.js +14 -4
  12. package/dist/cjs/new-button/variants/shared/xcss.js +1 -43
  13. package/dist/cjs/old-button/button.js +1 -2
  14. package/dist/cjs/old-button/custom-theme-button/custom-theme-button.js +1 -2
  15. package/dist/cjs/old-button/custom-theme-button/theme.js +1 -2
  16. package/dist/cjs/old-button/loading-button.js +1 -2
  17. package/dist/cjs/old-button/shared/button-base.js +11 -11
  18. package/dist/cjs/old-button/shared/colors.js +1 -2
  19. package/dist/cjs/old-button/shared/css.js +2 -3
  20. package/dist/cjs/old-button/shared/get-if-visually-hidden-children.js +2 -3
  21. package/dist/cjs/utils/appearances.js +1 -2
  22. package/dist/cjs/utils/spacing.js +1 -2
  23. package/dist/cjs/utils/variants.js +2 -4
  24. package/dist/es2019/containers/button-group.js +1 -0
  25. package/dist/es2019/new-button/variants/default/use-default-button.js +10 -14
  26. package/dist/es2019/new-button/variants/icon/use-icon-button.js +5 -8
  27. package/dist/es2019/new-button/variants/shared/content.js +43 -0
  28. package/dist/es2019/new-button/variants/shared/use-button-base.js +14 -3
  29. package/dist/es2019/new-button/variants/shared/xcss.js +1 -38
  30. package/dist/es2019/old-button/shared/button-base.js +9 -8
  31. package/dist/esm/containers/button-group.js +1 -0
  32. package/dist/esm/new-button/variants/default/use-default-button.js +10 -14
  33. package/dist/esm/new-button/variants/icon/use-icon-button.js +5 -8
  34. package/dist/esm/new-button/variants/shared/content.js +44 -0
  35. package/dist/esm/new-button/variants/shared/use-button-base.js +14 -3
  36. package/dist/esm/new-button/variants/shared/xcss.js +1 -37
  37. package/dist/esm/old-button/shared/button-base.js +9 -8
  38. package/dist/types/new-button/variants/shared/content.d.ts +13 -0
  39. package/dist/types/new-button/variants/shared/xcss.d.ts +0 -6
  40. package/package.json +6 -6
  41. package/dist/types-ts4.5/containers/button-group.d.ts +0 -12
  42. package/dist/types-ts4.5/entry-points/button-group.d.ts +0 -1
  43. package/dist/types-ts4.5/entry-points/custom-theme-button.d.ts +0 -2
  44. package/dist/types-ts4.5/entry-points/loading-button.d.ts +0 -2
  45. package/dist/types-ts4.5/entry-points/new.d.ts +0 -5
  46. package/dist/types-ts4.5/entry-points/standard-button.d.ts +0 -7
  47. package/dist/types-ts4.5/entry-points/types.d.ts +0 -4
  48. package/dist/types-ts4.5/entry-points/unsafe.d.ts +0 -1
  49. package/dist/types-ts4.5/index.d.ts +0 -8
  50. package/dist/types-ts4.5/new-button/variants/default/button.d.ts +0 -19
  51. package/dist/types-ts4.5/new-button/variants/default/link.d.ts +0 -17
  52. package/dist/types-ts4.5/new-button/variants/default/types.d.ts +0 -15
  53. package/dist/types-ts4.5/new-button/variants/default/use-default-button.d.ts +0 -15
  54. package/dist/types-ts4.5/new-button/variants/icon/button.d.ts +0 -17
  55. package/dist/types-ts4.5/new-button/variants/icon/link.d.ts +0 -17
  56. package/dist/types-ts4.5/new-button/variants/icon/types.d.ts +0 -8
  57. package/dist/types-ts4.5/new-button/variants/icon/use-icon-button.d.ts +0 -15
  58. package/dist/types-ts4.5/new-button/variants/shared/block-events.d.ts +0 -2
  59. package/dist/types-ts4.5/new-button/variants/shared/colors.d.ts +0 -18
  60. package/dist/types-ts4.5/new-button/variants/shared/use-button-base.d.ts +0 -37
  61. package/dist/types-ts4.5/new-button/variants/shared/xcss.d.ts +0 -24
  62. package/dist/types-ts4.5/new-button/variants/types.d.ts +0 -69
  63. package/dist/types-ts4.5/old-button/button.d.ts +0 -15
  64. package/dist/types-ts4.5/old-button/custom-theme-button/custom-theme-button-types.d.ts +0 -22
  65. package/dist/types-ts4.5/old-button/custom-theme-button/custom-theme-button.d.ts +0 -10
  66. package/dist/types-ts4.5/old-button/custom-theme-button/index.d.ts +0 -2
  67. package/dist/types-ts4.5/old-button/custom-theme-button/theme.d.ts +0 -21
  68. package/dist/types-ts4.5/old-button/loading-button.d.ts +0 -15
  69. package/dist/types-ts4.5/old-button/shared/block-events.d.ts +0 -4
  70. package/dist/types-ts4.5/old-button/shared/button-base.d.ts +0 -10
  71. package/dist/types-ts4.5/old-button/shared/colors.d.ts +0 -23
  72. package/dist/types-ts4.5/old-button/shared/css.d.ts +0 -22
  73. package/dist/types-ts4.5/old-button/shared/get-if-visually-hidden-children.d.ts +0 -2
  74. package/dist/types-ts4.5/old-button/shared/get-is-only-single-icon.d.ts +0 -2
  75. package/dist/types-ts4.5/old-button/shared/loading-spinner.d.ts +0 -5
  76. package/dist/types-ts4.5/old-button/types.d.ts +0 -94
  77. package/dist/types-ts4.5/utils/appearances.d.ts +0 -3
  78. package/dist/types-ts4.5/utils/spacing.d.ts +0 -3
  79. package/dist/types-ts4.5/utils/variants.d.ts +0 -15
  80. package/tmp/api-report-tmp.d.ts +0 -133
package/CHANGELOG.md CHANGED
@@ -1,10 +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
+
9
+ ## 16.10.1
10
+
11
+ ### Patch Changes
12
+
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.
14
+
3
15
  ## 16.10.0
4
16
 
5
17
  ### Minor Changes
6
18
 
7
- - [`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.
8
20
 
9
21
  ### Patch Changes
10
22
 
@@ -14,110 +26,110 @@
14
26
 
15
27
  ### Patch Changes
16
28
 
17
- - [`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
18
30
 
19
31
  ## 16.9.3
20
32
 
21
33
  ### Patch Changes
22
34
 
23
- - [`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
24
36
  - Updated dependencies
25
37
 
26
38
  ## 16.9.2
27
39
 
28
40
  ### Patch Changes
29
41
 
30
- - [`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.
31
43
 
32
44
  ## 16.9.1
33
45
 
34
46
  ### Patch Changes
35
47
 
36
- - [`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.
37
49
 
38
50
  ## 16.9.0
39
51
 
40
52
  ### Minor Changes
41
53
 
42
- - [`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.
43
55
 
44
56
  ## 16.8.5
45
57
 
46
58
  ### Patch Changes
47
59
 
48
- - [`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.
49
61
 
50
62
  ## 16.8.4
51
63
 
52
64
  ### Patch Changes
53
65
 
54
- - [`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.
55
67
 
56
68
  ## 16.8.3
57
69
 
58
70
  ### Patch Changes
59
71
 
60
- - [`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.
61
73
 
62
74
  ## 16.8.2
63
75
 
64
76
  ### Patch Changes
65
77
 
66
- - [`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.
67
79
 
68
80
  ## 16.8.1
69
81
 
70
82
  ### Patch Changes
71
83
 
72
- - [`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.
73
85
 
74
86
  ## 16.8.0
75
87
 
76
88
  ### Minor Changes
77
89
 
78
- - [`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)
79
91
 
80
92
  ## 16.7.6
81
93
 
82
94
  ### Patch Changes
83
95
 
84
- - [`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
85
97
 
86
98
  ## 16.7.5
87
99
 
88
100
  ### Patch Changes
89
101
 
90
- - [`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
91
103
 
92
104
  ## 16.7.4
93
105
 
94
106
  ### Patch Changes
95
107
 
96
- - [`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.
97
109
 
98
110
  ## 16.7.3
99
111
 
100
112
  ### Patch Changes
101
113
 
102
- - [`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
103
115
 
104
116
  ## 16.7.2
105
117
 
106
118
  ### Patch Changes
107
119
 
108
- - [`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
109
121
 
110
122
  ## 16.7.1
111
123
 
112
124
  ### Patch Changes
113
125
 
114
- - [`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`
115
127
 
116
128
  ## 16.7.0
117
129
 
118
130
  ### Minor Changes
119
131
 
120
- - [`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
121
133
 
122
134
  ### Patch Changes
123
135
 
@@ -127,13 +139,13 @@
127
139
 
128
140
  ### Patch Changes
129
141
 
130
- - [`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
131
143
 
132
144
  ## 16.6.0
133
145
 
134
146
  ### Minor Changes
135
147
 
136
- - [`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.
137
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.
138
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.
139
151
 
@@ -141,7 +153,7 @@
141
153
 
142
154
  ### Patch Changes
143
155
 
144
- - [`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
145
157
  - Updated dependencies
146
158
 
147
159
  ## 16.5.6
@@ -160,13 +172,13 @@
160
172
 
161
173
  ### Patch Changes
162
174
 
163
- - [`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.
164
176
 
165
177
  ## 16.5.3
166
178
 
167
179
  ### Patch Changes
168
180
 
169
- - [`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.
170
182
 
171
183
  ## 16.5.2
172
184
 
@@ -184,7 +196,7 @@
184
196
 
185
197
  ### Minor Changes
186
198
 
187
- - [`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
188
200
 
189
201
  ### Patch Changes
190
202
 
@@ -201,7 +213,7 @@
201
213
 
202
214
  ### Minor Changes
203
215
 
204
- - [`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.
205
217
 
206
218
  ### Patch Changes
207
219
 
@@ -211,50 +223,50 @@
211
223
 
212
224
  ### Patch Changes
213
225
 
214
- - [`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.
215
227
 
216
228
  ## 16.3.9
217
229
 
218
230
  ### Patch Changes
219
231
 
220
- - [`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
221
233
 
222
234
  ## 16.3.8
223
235
 
224
236
  ### Patch Changes
225
237
 
226
- - [`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`
227
239
 
228
240
  ## 16.3.7
229
241
 
230
242
  ### Patch Changes
231
243
 
232
- - [`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
233
245
 
234
246
  ## 16.3.6
235
247
 
236
248
  ### Patch Changes
237
249
 
238
- - [`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`.
239
251
 
240
252
  ## 16.3.5
241
253
 
242
254
  ### Patch Changes
243
255
 
244
- - [`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.
245
257
  - Updated dependencies
246
258
 
247
259
  ## 16.3.4
248
260
 
249
261
  ### Patch Changes
250
262
 
251
- - [`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
252
264
 
253
265
  ## 16.3.3
254
266
 
255
267
  ### Patch Changes
256
268
 
257
- - [`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
258
270
 
259
271
  ## 16.3.2
260
272
 
@@ -272,7 +284,7 @@
272
284
 
273
285
  ### Minor Changes
274
286
 
275
- - [`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
276
288
 
277
289
  ### Patch Changes
278
290
 
@@ -288,14 +300,14 @@
288
300
 
289
301
  ### Patch Changes
290
302
 
291
- - [`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.
292
304
  - Updated dependencies
293
305
 
294
306
  ## 16.2.0
295
307
 
296
308
  ### Minor Changes
297
309
 
298
- - [`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"
299
311
 
300
312
  ### Patch Changes
301
313
 
@@ -305,7 +317,7 @@
305
317
 
306
318
  ### Patch Changes
307
319
 
308
- - [`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)
309
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
310
322
  - Updated dependencies
311
323
 
@@ -319,14 +331,14 @@
319
331
 
320
332
  ### Patch Changes
321
333
 
322
- - [`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.
323
335
  - Updated dependencies
324
336
 
325
337
  ## 16.1.3
326
338
 
327
339
  ### Patch Changes
328
340
 
329
- - [`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
330
342
  - Updated dependencies
331
343
 
332
344
  ## 16.1.2
@@ -345,7 +357,7 @@
345
357
 
346
358
  ### Minor Changes
347
359
 
348
- - [`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.
349
361
 
350
362
  ### Patch Changes
351
363
 
@@ -366,44 +378,44 @@
366
378
 
367
379
  ### Patch Changes
368
380
 
369
- - [`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`.
370
382
 
371
383
  ## 15.1.7
372
384
 
373
385
  ### Patch Changes
374
386
 
375
- - [`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`
376
388
 
377
389
  ## 15.1.6
378
390
 
379
391
  ### Patch Changes
380
392
 
381
- - [`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`.
382
394
  - Updated dependencies
383
395
 
384
396
  ## 15.1.5
385
397
 
386
398
  ### Patch Changes
387
399
 
388
- - [`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.
389
401
 
390
402
  ## 15.1.4
391
403
 
392
404
  ### Patch Changes
393
405
 
394
- - [`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
395
407
 
396
408
  ## 15.1.3
397
409
 
398
410
  ### Patch Changes
399
411
 
400
- - [`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
401
413
 
402
414
  ## 15.1.2
403
415
 
404
416
  ### Patch Changes
405
417
 
406
- - [`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`
407
419
 
408
420
  We have:
409
421
 
@@ -428,7 +440,7 @@
428
440
 
429
441
  ### Patch Changes
430
442
 
431
- - [`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.
432
444
  This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
433
445
  Also add `typescript` to `devDependencies` to denote version that the package was built with.
434
446
 
@@ -436,7 +448,7 @@
436
448
 
437
449
  ### Minor Changes
438
450
 
439
- - [`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
440
452
 
441
453
  ### Patch Changes
442
454
 
@@ -446,7 +458,7 @@
446
458
 
447
459
  ### Major Changes
448
460
 
449
- [`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 🤩
450
462
 
451
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
452
464
 
@@ -514,7 +526,7 @@ Once upgraded, use the Atlaskit codemod-cli;
514
526
  `npx @atlaskit/codemod-cli --parser [PARSER] --extensions [FILE_EXTENSIONS] [TARGET_PATH]`
515
527
 
516
528
  Or run `npx @atlaskit/codemod-cli -h` for more details on usage.
517
- For Atlassians, refer to [this doc](https://developer.atlassian.com/cloud/framework/atlassian-frontend/codemods/01-atlassian-codemods/) for more details on the codemod CLI.
529
+ For Atlassians, refer to [this doc](https://hello.atlassian.net/wiki/spaces/AF/pages/2627171992/Codemods) for more details on the codemod CLI.
518
530
 
519
531
  ```js
520
532
  import Button, { LoadingButton, CustomThemeButton } from '@atlaskit/button';
@@ -614,13 +626,13 @@ _When you use `@atlaskit/codemod-cli` you will be able to select which codemod y
614
626
 
615
627
  ### Patch Changes
616
628
 
617
- - [`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
618
630
 
619
631
  ## 14.0.3
620
632
 
621
633
  ### Patch Changes
622
634
 
623
- - [`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
624
636
 
625
637
  Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
626
638
  to prevent duplicates of tslib being bundled.
@@ -629,19 +641,19 @@ _When you use `@atlaskit/codemod-cli` you will be able to select which codemod y
629
641
 
630
642
  ### Patch Changes
631
643
 
632
- - [`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
633
645
 
634
646
  ## 14.0.1
635
647
 
636
648
  ### Patch Changes
637
649
 
638
- - [`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.
639
651
 
640
652
  ## 14.0.0
641
653
 
642
654
  ### Major Changes
643
655
 
644
- - [`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.
645
657
  For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
646
658
 
647
659
  ### Patch Changes
@@ -658,13 +670,13 @@ _When you use `@atlaskit/codemod-cli` you will be able to select which codemod y
658
670
 
659
671
  ### Patch Changes
660
672
 
661
- - [`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
662
674
 
663
675
  ## 13.4.0
664
676
 
665
677
  ### Minor Changes
666
678
 
667
- - [`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
668
680
 
669
681
  ### Patch Changes
670
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
  }
@@ -96,5 +96,4 @@ var Button = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
96
96
  }), baseProps.children);
97
97
  }));
98
98
  Button.displayName = 'Button';
99
- var _default = Button;
100
- exports.default = _default;
99
+ var _default = exports.default = Button;
@@ -102,5 +102,4 @@ var LinkButton = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.f
102
102
  );
103
103
  }));
104
104
  LinkButton.displayName = 'LinkButton';
105
- var _default = LinkButton;
106
- exports.default = _default;
105
+ var _default = exports.default = LinkButton;
@@ -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 _primitives = require("@atlaskit/primitives");
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 fadeStyles = (0, _xcss.getFadingStyles)({
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(_primitives.Box, {
58
- as: "span",
59
- xcss: [fadeStyles, _xcss.iconStyles]
60
- }, iconBefore), children && /*#__PURE__*/_react.default.createElement(_primitives.Box, {
61
- as: "span",
62
- xcss: [fadeStyles, _xcss.contentStyles]
63
- }, children), iconAfter && /*#__PURE__*/_react.default.createElement(_primitives.Box, {
64
- as: "span",
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;
@@ -98,5 +98,4 @@ var LinkIconButton = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
98
98
  );
99
99
  }));
100
100
  LinkIconButton.displayName = 'LinkIconButton';
101
- var _default = LinkIconButton;
102
- exports.default = _default;
101
+ var _default = exports.default = LinkIconButton;
@@ -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 _primitives = require("@atlaskit/primitives");
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 fadeStyles = (0, _xcss.getFadingStyles)({
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(_primitives.Box, {
57
- as: "span",
58
- xcss: [fadeStyles, _xcss.iconStyles]
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;
@@ -126,5 +126,4 @@ var values = {
126
126
  }
127
127
  }
128
128
  };
129
- var _default = values;
130
- exports.default = _default;
129
+ var _default = exports.default = values;