@entur/button 2.10.6 → 2.10.7

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 ADDED
@@ -0,0 +1,459 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [2.10.7](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.10.4...@entur/button@2.10.7) (2022-12-09)
7
+
8
+ **Note:** Version bump only for package @entur/button
9
+
10
+ ## [2.10.6](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.10.5...@entur/button@2.10.6) (2022-11-24)
11
+
12
+ **Note:** Version bump only for package @entur/button
13
+
14
+ ## [2.10.5](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.10.4...@entur/button@2.10.5) (2022-10-31)
15
+
16
+ **Note:** Version bump only for package @entur/button
17
+
18
+ ## [2.10.3](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.10.2...@entur/button@2.10.3) (2022-08-31)
19
+
20
+ **Note:** Version bump only for package @entur/button
21
+
22
+ ## [2.10.2](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.10.1...@entur/button@2.10.2) (2022-08-24)
23
+
24
+ **Note:** Version bump only for package @entur/button
25
+
26
+ ## [2.10.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.10.0...@entur/button@2.10.1) (2022-08-09)
27
+
28
+ **Note:** Version bump only for package @entur/button
29
+
30
+ # [2.10.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.9.0...@entur/button@2.10.0) (2022-06-28)
31
+
32
+ ### Features
33
+
34
+ - **button:** add aria-label to button when loading ([50f325b](https://bitbucket.org/enturas/design-system/commits/50f325be55954b2d9411178d5430c202adc078c9))
35
+
36
+ # [2.9.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.8.3...@entur/button@2.9.0) (2022-06-24)
37
+
38
+ ### Features
39
+
40
+ - **floating button:** add visual indication for active state ([c794e4f](https://bitbucket.org/enturas/design-system/commits/c794e4f831096da1a9ab4e25e62f4329e25e48ff))
41
+ - **icon button:** add cursor not-allowed to disabled icon button and add aria-label prop descriptio ([d7ab051](https://bitbucket.org/enturas/design-system/commits/d7ab051d9a32a2879e243aee9e4620f3e23cb525))
42
+
43
+ ## [2.8.3](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.8.2...@entur/button@2.8.3) (2022-06-02)
44
+
45
+ **Note:** Version bump only for package @entur/button
46
+
47
+ ## [2.8.2](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.8.1...@entur/button@2.8.2) (2022-05-13)
48
+
49
+ **Note:** Version bump only for package @entur/button
50
+
51
+ ## [2.8.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.8.0...@entur/button@2.8.1) (2022-04-27)
52
+
53
+ **Note:** Version bump only for package @entur/button
54
+
55
+ # [2.8.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.7.4...@entur/button@2.8.0) (2022-02-09)
56
+
57
+ ### Features
58
+
59
+ - **square button:** add tertiary square button style ([fe083e3](https://bitbucket.org/enturas/design-system/commits/fe083e3603cb3e037456f9485d5c71d4364d20ee))
60
+
61
+ ## [2.7.4](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.7.3...@entur/button@2.7.4) (2021-11-17)
62
+
63
+ **Note:** Version bump only for package @entur/button
64
+
65
+ ## [2.7.3](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.7.2...@entur/button@2.7.3) (2021-09-23)
66
+
67
+ **Note:** Version bump only for package @entur/button
68
+
69
+ ## [2.7.2](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.7.1...@entur/button@2.7.2) (2021-09-13)
70
+
71
+ ### Bug Fixes
72
+
73
+ - **iconbutton:** fix loading dots in contrast ([f0e4a46](https://bitbucket.org/enturas/design-system/commits/f0e4a462ddb1bbd7f022b7528feea68627fc8da9))
74
+ - **tertiary button:** reduce min width of button ([a241d93](https://bitbucket.org/enturas/design-system/commits/a241d9308488eb8a9a1d95ff400c2afe09e11143))
75
+
76
+ ## [2.7.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.7.0...@entur/button@2.7.1) (2021-09-07)
77
+
78
+ ### Bug Fixes
79
+
80
+ - utilize reworked focus token ([586758f](https://bitbucket.org/enturas/design-system/commits/586758fc86eb5aa52116c63c14ef033eb2e8b12f))
81
+ - **button:** adjust styling for disabled buttons ([edbae0e](https://bitbucket.org/enturas/design-system/commits/edbae0edc8285352c11e402ca9c0d78d0a91bcd8))
82
+ - **button:** fix styling on disabled buttons in contrast ([951ed83](https://bitbucket.org/enturas/design-system/commits/951ed83b2ae0194179cf307f069b9588c68150ec))
83
+
84
+ # [2.7.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.6.1...@entur/button@2.7.0) (2021-08-13)
85
+
86
+ ### Features
87
+
88
+ - **tertiary button:** add loading prop to button ([d52150e](https://bitbucket.org/enturas/design-system/commits/d52150ee26bd5cf7044bd0edacc61f9f53569d60))
89
+
90
+ ## [2.6.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.6.0...@entur/button@2.6.1) (2021-06-25)
91
+
92
+ ### Bug Fixes
93
+
94
+ - update dependencies ([8b7e866](https://bitbucket.org/enturas/design-system/commits/8b7e8667a99df305ecbaefb0daebf7b8074f86e7))
95
+
96
+ # [2.6.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.5.2...@entur/button@2.6.0) (2021-05-05)
97
+
98
+ ### Features
99
+
100
+ - **iconbutton:** add loading prop to iconbutton ([1738d37](https://bitbucket.org/enturas/design-system/commits/1738d375a18fbbabf818f5c612d1ab793eb87464))
101
+
102
+ ## [2.5.2](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.5.1...@entur/button@2.5.2) (2021-04-23)
103
+
104
+ ### Bug Fixes
105
+
106
+ - **button:** use loading dots component if button is loading ([ccf02da](https://bitbucket.org/enturas/design-system/commits/ccf02daf48e97211151c214898910eaa6669bacc))
107
+ - **iconbutton:** fix focus style for iconbutton ([ebf0649](https://bitbucket.org/enturas/design-system/commits/ebf0649246da39ca5390cfc61b1c445fb7ca2d34))
108
+ - utilize new focus tokens ([17113ef](https://bitbucket.org/enturas/design-system/commits/17113ef3f791c86fa6e19e71680fd5acdbae4990))
109
+
110
+ ## [2.5.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.5.0...@entur/button@2.5.1) (2021-02-17)
111
+
112
+ ### Bug Fixes
113
+
114
+ - **polymorphism:** update polymorphism dependency ([dc4c31d](https://bitbucket.org/enturas/design-system/commits/dc4c31d8e891a46c1f0c1fbd0a6a026c1638accc))
115
+
116
+ # [2.5.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.4.2...@entur/button@2.5.0) (2021-01-29)
117
+
118
+ ### Features
119
+
120
+ - **iconbutton:** add size prop ([aa8b36a](https://bitbucket.org/enturas/design-system/commits/aa8b36a2ef5d3188b283df6f3963414671f1e9a9))
121
+
122
+ ## [2.4.2](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.4.1...@entur/button@2.4.2) (2021-01-20)
123
+
124
+ **Note:** Version bump only for package @entur/button
125
+
126
+ ## [2.4.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.4.0...@entur/button@2.4.1) (2021-01-13)
127
+
128
+ **Note:** Version bump only for package @entur/button
129
+
130
+ # [2.4.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.3.7...@entur/button@2.4.0) (2020-12-04)
131
+
132
+ ### Bug Fixes
133
+
134
+ - **basesquarebutton:** improve typings ([3f17a89](https://bitbucket.org/enturas/design-system/commits/3f17a8988504ad88b73007b2e96bceda018aa3ee))
135
+ - **button:** improve typings ([4d16703](https://bitbucket.org/enturas/design-system/commits/4d16703d58e7a64d731890c637248be108463c7b))
136
+ - **iconbutton:** improve typings ([0039ca4](https://bitbucket.org/enturas/design-system/commits/0039ca4e9ec23a6cc98d497694c21e8a36c397f9))
137
+ - **negativebutton:** improve typings ([b91041f](https://bitbucket.org/enturas/design-system/commits/b91041f071a05f53b3915d6ec748aa244ed963c2))
138
+ - **primarybutton:** improve typings ([d01819e](https://bitbucket.org/enturas/design-system/commits/d01819ec82b0a4056c10a787ce3eff29ce44c520))
139
+ - **secondarybutton:** improve typings ([e5eff74](https://bitbucket.org/enturas/design-system/commits/e5eff74afcc6657023641096813a1702bfe218e9))
140
+ - **secondarysquarebutton:** improve typings ([10c9765](https://bitbucket.org/enturas/design-system/commits/10c97655dfb33f8aca553598a2956b0134ba1ffc))
141
+ - **successbutton:** improve typings ([06b297f](https://bitbucket.org/enturas/design-system/commits/06b297ffaf35169bc201786521c110325c9b6121))
142
+ - **successsquarebutton:** improve typings ([7359728](https://bitbucket.org/enturas/design-system/commits/73597283dbddf078df744c4e061e630a9dc4c05d))
143
+ - **tertiarybutton:** improve typings ([4ba1abd](https://bitbucket.org/enturas/design-system/commits/4ba1abd61ba4f143c5ee39b195780abe2120bbc8))
144
+
145
+ ### Features
146
+
147
+ - **buttons:** add support for polymorphic component typings ([ed3c66b](https://bitbucket.org/enturas/design-system/commits/ed3c66b074a6afb39f7b32bef4f7aac9aa019325))
148
+
149
+ ## [2.3.7](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.3.6...@entur/button@2.3.7) (2020-11-10)
150
+
151
+ ### Bug Fixes
152
+
153
+ - **floating button:** adjust horizontal padding ([857bdee](https://bitbucket.org/enturas/design-system/commits/857bdee64bbfcf13bd1ee6dc0eee39da1c4995d1))
154
+
155
+ ## [2.3.6](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.3.5...@entur/button@2.3.6) (2020-10-28)
156
+
157
+ ### Bug Fixes
158
+
159
+ - **floatingbutton:** adjust height of floating buttons ([6e983a9](https://bitbucket.org/enturas/design-system/commits/6e983a99fd9650a60262e173e1fd785291bd7dc2))
160
+
161
+ ## [2.3.5](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.3.4...@entur/button@2.3.5) (2020-10-23)
162
+
163
+ ### Bug Fixes
164
+
165
+ - **iconbutton:** adjust size to 32px ([45dabc8](https://bitbucket.org/enturas/design-system/commits/45dabc8670fd3420088de8c523686fde86298cfd))
166
+
167
+ ## [2.3.4](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.3.3...@entur/button@2.3.4) (2020-10-09)
168
+
169
+ ### Bug Fixes
170
+
171
+ - **button:** increase button height to accomodate for new inputs ([7ebd5a9](https://bitbucket.org/enturas/design-system/commits/7ebd5a9f914a6306c88d1ac8273c31514e93c45b))
172
+
173
+ ## [2.3.3](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.3.2...@entur/button@2.3.3) (2020-09-02)
174
+
175
+ ### Bug Fixes
176
+
177
+ - **tertiary button:** fix padding when tertiary button is link ([670504d](https://bitbucket.org/enturas/design-system/commits/670504ddcc55d1c33da59089339d2ff8856d224d))
178
+
179
+ ## [2.3.2](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.3.1...@entur/button@2.3.2) (2020-08-11)
180
+
181
+ **Note:** Version bump only for package @entur/button
182
+
183
+ ## [2.3.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.3.0...@entur/button@2.3.1) (2020-07-09)
184
+
185
+ ### Bug Fixes
186
+
187
+ - lock height and width of icon button ([fa74a1b](https://bitbucket.org/enturas/design-system/commits/fa74a1baaa1e9bbae7fb8a7758e405ae548e3f2e))
188
+
189
+ # [2.3.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.2.11...@entur/button@2.3.0) (2020-07-03)
190
+
191
+ ### Features
192
+
193
+ - add forwardref for squarebuttons ([bb118a1](https://bitbucket.org/enturas/design-system/commits/bb118a15f07706773273ca2009bb6e338d599d27))
194
+
195
+ ## [2.2.11](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.2.10...@entur/button@2.2.11) (2020-06-17)
196
+
197
+ ### Bug Fixes
198
+
199
+ - fix wrong definition of forward referencing ([e5cad92](https://bitbucket.org/enturas/design-system/commits/e5cad92c59bc6453ab4dbe9a18c4c7e42dd7e00d))
200
+
201
+ ## [2.2.10](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.2.9...@entur/button@2.2.10) (2020-05-27)
202
+
203
+ **Note:** Version bump only for package @entur/button
204
+
205
+ ## [2.2.9](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.2.8...@entur/button@2.2.9) (2020-05-26)
206
+
207
+ ### Bug Fixes
208
+
209
+ - new styling for iconbutton ([84fe6b8](https://bitbucket.org/enturas/design-system/commits/84fe6b8bca8ecd76303995d0b9804cc1517845c5))
210
+
211
+ ## [2.2.8](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.2.7...@entur/button@2.2.8) (2020-05-20)
212
+
213
+ ### Bug Fixes
214
+
215
+ - fix padding bug for link buttons ([119e33a](https://bitbucket.org/enturas/design-system/commits/119e33a8d2c9c649e16328378b7e95ce9aa7d3bb))
216
+
217
+ ## [2.2.7](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.2.6...@entur/button@2.2.7) (2020-04-27)
218
+
219
+ **Note:** Version bump only for package @entur/button
220
+
221
+ ## [2.2.6](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.2.5...@entur/button@2.2.6) (2020-04-23)
222
+
223
+ ### Bug Fixes
224
+
225
+ - updated to use new focus styling where applicable ([d0a52c0](https://bitbucket.org/enturas/design-system/commits/d0a52c096b673c6647070a90dd79bef9003ee0ad))
226
+
227
+ ## [2.2.5](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.2.4...@entur/button@2.2.5) (2020-04-08)
228
+
229
+ ### Bug Fixes
230
+
231
+ - adding forward referencing for iconbutton ([472dac0](https://bitbucket.org/enturas/design-system/commits/472dac0ad13b7e886cedec8a3a4fe8f88295d8b3))
232
+
233
+ ## [2.2.4](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.2.2...@entur/button@2.2.4) (2020-03-25)
234
+
235
+ ### Bug Fixes
236
+
237
+ - fix for disability state for iconbutton ([2550062](https://bitbucket.org/enturas/design-system/commits/2550062988a0deb5ea2dfccddabbd6202fa5be66))
238
+
239
+ ## [2.2.3](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.2.2...@entur/button@2.2.3) (2020-03-25)
240
+
241
+ ### Bug Fixes
242
+
243
+ - fix for disability state for iconbutton ([2550062](https://bitbucket.org/enturas/design-system/commits/2550062988a0deb5ea2dfccddabbd6202fa5be66))
244
+
245
+ ## [2.2.2](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.2.1...@entur/button@2.2.2) (2020-03-20)
246
+
247
+ ### Bug Fixes
248
+
249
+ - improving disabled functionality of iconbutton ([bc76650](https://bitbucket.org/enturas/design-system/commits/bc76650c2c9c368b03c94e892f60c34b6d84a7c4))
250
+
251
+ ## [2.2.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.2.0...@entur/button@2.2.1) (2020-03-18)
252
+
253
+ ### Bug Fixes
254
+
255
+ - add support for loading and disabled to square buttons ([b25ffa0](https://bitbucket.org/enturas/design-system/commits/b25ffa0d9e692e8c7e0d3ba961fa67a0a840835a))
256
+ - update to use new shadow tokens ([37dfe1c](https://bitbucket.org/enturas/design-system/commits/37dfe1c887cbb0357609bbc482ee8a306ba91d20))
257
+
258
+ # [2.2.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.1.4...@entur/button@2.2.0) (2020-03-05)
259
+
260
+ ### Bug Fixes
261
+
262
+ - fix square button focus styling ([803ffd1](https://bitbucket.org/enturas/design-system/commits/803ffd139faaea4cc222cf0a6ae163f1d646c7d6))
263
+
264
+ ### Features
265
+
266
+ - **iconbutton:** add iconbutton component ([81e966f](https://bitbucket.org/enturas/design-system/commits/81e966f3be5cac8605a26abe7f558aeb3682aa1c))
267
+
268
+ ## [2.1.4](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.1.3...@entur/button@2.1.4) (2020-02-20)
269
+
270
+ **Note:** Version bump only for package @entur/button
271
+
272
+ ## [2.1.3](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.1.2...@entur/button@2.1.3) (2020-02-14)
273
+
274
+ ### Bug Fixes
275
+
276
+ - fix padding for button as link as size=large ([4b6757b](https://bitbucket.org/enturas/design-system/commits/4b6757b0dd6fce0e5e7f12629849e4f5ce8ea561))
277
+
278
+ ## [2.1.2](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.1.1...@entur/button@2.1.2) (2020-02-10)
279
+
280
+ ### Bug Fixes
281
+
282
+ - update styling for tertiary buttons ([e55f0fb](https://bitbucket.org/enturas/design-system/commits/e55f0fba0ae4a6ad7f73968f769735ae2c50efb4))
283
+
284
+ ## [2.1.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.1.0...@entur/button@2.1.1) (2020-02-05)
285
+
286
+ ### Bug Fixes
287
+
288
+ - remove test-files from build process ([e0b24af](https://bitbucket.org/enturas/design-system/commits/e0b24af05d5c2ad8de4ae587d83c389495235890))
289
+
290
+ # [2.1.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.0.0...@entur/button@2.1.0) (2020-01-31)
291
+
292
+ ### Bug Fixes
293
+
294
+ - **Bugfiks: let square buttons accept "as":** let square buttons accept "as" ([a94eec1](https://bitbucket.org/enturas/design-system/commits/a94eec11e3e6a65361df2d1087a52afc792051dc))
295
+
296
+ ### Features
297
+
298
+ - **Add types for as in square button:** add types for as in square button ([2a71ee3](https://bitbucket.org/enturas/design-system/commits/2a71ee3af96214a5a92957d4d1dd348ec4bc5255))
299
+
300
+ # [2.0.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.6.1...@entur/button@2.0.0) (2020-01-28)
301
+
302
+ ### Code Refactoring
303
+
304
+ - **Button:** remove size="square" as a valid prop from regular buttons ([7fb1f95](https://bitbucket.org/enturas/design-system/commits/7fb1f95c9dfa56155be762258d59eba7210e6dbc))
305
+
306
+ ### Features
307
+
308
+ - **square buttons:** new components \`SecondarySquareButton\`, \`SuccessSquareButton\` ([2e92897](https://bitbucket.org/enturas/design-system/commits/2e92897f22acacdc649e03dc145db6b589751454))
309
+
310
+ ### BREAKING CHANGES
311
+
312
+ - **Button:** Square buttons are now their own components.
313
+
314
+ ISSUES CLOSED: DS-179
315
+
316
+ ## [1.6.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.6.0...@entur/button@1.6.1) (2020-01-27)
317
+
318
+ ### Bug Fixes
319
+
320
+ - reduce padding for icons in tertiary buttons ([31491b6](https://bitbucket.org/enturas/design-system/commits/31491b6e979a208430199607ff85f0b6fc7a06f8))
321
+ - **types:** place types in the correct place ([acace09](https://bitbucket.org/enturas/design-system/commits/acace09ec0e258c5cff3a65e13ab29d6603780d9))
322
+
323
+ # [1.6.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.5.2...@entur/button@1.6.0) (2020-01-20)
324
+
325
+ ### Bug Fixes
326
+
327
+ - fix transparent styling for secondary buttons ([79640f6](https://bitbucket.org/enturas/design-system/commits/79640f6fd7b9679b7cb958d3b39e181c70bcb67c))
328
+ - **FloatingButton:** add hover effect to the floating buttons ([998ad0b](https://bitbucket.org/enturas/design-system/commits/998ad0b1275af64eb83025195b6b9b0f1d46ff88))
329
+ - **FloatingButton:** fix issue with docs ([a1c7879](https://bitbucket.org/enturas/design-system/commits/a1c7879e4363476541d43f76b9cc3fba17e2d290))
330
+
331
+ ### Features
332
+
333
+ - **FloatingButton:** add new prop "size" to FloatingButotn ([8fc534d](https://bitbucket.org/enturas/design-system/commits/8fc534d59e1d03a35a465affc2a98bc91c1fab56))
334
+
335
+ ## [1.5.2](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.5.1...@entur/button@1.5.2) (2020-01-14)
336
+
337
+ **Note:** Version bump only for package @entur/button
338
+
339
+ ## [1.5.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.5.0...@entur/button@1.5.1) (2020-01-08)
340
+
341
+ ### Bug Fixes
342
+
343
+ - warn in development if the developer have forgotten the CSS ([e5c30fc](https://bitbucket.org/enturas/design-system/commits/e5c30fc08624ef22c02773892778abd92205c6b0))
344
+
345
+ # [1.5.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.4.1...@entur/button@1.5.0) (2020-01-06)
346
+
347
+ ### Features
348
+
349
+ - **FloatingButton:** add new component: FloatingButton ([2f38bc5](https://bitbucket.org/enturas/design-system/commits/2f38bc53cb1b4a357126ca35d6548b7a6e36b3dc))
350
+
351
+ ## [1.4.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.4.0...@entur/button@1.4.1) (2019-12-17)
352
+
353
+ ### Bug Fixes
354
+
355
+ - fix styling for disabled buttons for higher contrast ([7b6b6ce](https://bitbucket.org/enturas/design-system/commits/7b6b6cec62fe5801c538d3db4bf8d76714d64395))
356
+
357
+ # [1.4.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.3.0...@entur/button@1.4.0) (2019-12-10)
358
+
359
+ ### Bug Fixes
360
+
361
+ - **All buttons:** set button props explicitly for each prop ([2bb306e](https://bitbucket.org/enturas/design-system/commits/2bb306e676df094a12d3b41e78006350322d4261))
362
+
363
+ ### Features
364
+
365
+ - **Button:** introduce new components for the different button variants ([26cdb6e](https://bitbucket.org/enturas/design-system/commits/26cdb6e0b70a11254f8902357fc3da8ae9ef8b4a))
366
+
367
+ # [1.3.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.2.2...@entur/button@1.3.0) (2019-12-10)
368
+
369
+ ### Bug Fixes
370
+
371
+ - adding aria-disabled to disabled state ([c048c0e](https://bitbucket.org/enturas/design-system/commits/c048c0e335ea97dd0989cc98515b5e3262887357))
372
+ - adding default prop as part of documentation ([1ef7510](https://bitbucket.org/enturas/design-system/commits/1ef75107362f6262429d7fe31519b4353eccc8de))
373
+ - **styling:** fixing contrast styling for secondary and negative button ([d0ebaa1](https://bitbucket.org/enturas/design-system/commits/d0ebaa18ff2b0c5bd69668934399db1d47747e07))
374
+
375
+ ### Features
376
+
377
+ - adding the tertiary button as a new variant ([808e129](https://bitbucket.org/enturas/design-system/commits/808e129be233ae6ff47d4d8a0add1524138041ad))
378
+
379
+ ## [1.2.2](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.2.1...@entur/button@1.2.2) (2019-11-29)
380
+
381
+ ### Bug Fixes
382
+
383
+ - using new box shadow tokens ([9ff30bd](https://bitbucket.org/enturas/design-system/commits/9ff30bd52ad2b6e6d770565684a05e15f0b0ba9a))
384
+
385
+ ## [1.2.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.2.0...@entur/button@1.2.1) (2019-11-28)
386
+
387
+ ### Bug Fixes
388
+
389
+ - **Button:** add disabled styles to buttons ([745acca](https://bitbucket.org/enturas/design-system/commits/745acca56cf245cc21af3d7f6ae73a675571f82d))
390
+
391
+ # [1.2.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.1.0...@entur/button@1.2.0) (2019-11-25)
392
+
393
+ ### Features
394
+
395
+ - **ButtonGroup:** add new component ButtonGroup ([ae87ffd](https://bitbucket.org/enturas/design-system/commits/ae87ffd137cc6ef6466f7842d69413f4738cda41))
396
+
397
+ # [1.1.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.0.4...@entur/button@1.1.0) (2019-11-22)
398
+
399
+ ### Bug Fixes
400
+
401
+ - **spinner:** fixes styling on the spinner for all variants ([a0322cd](https://bitbucket.org/enturas/design-system/commits/a0322cd3c95e94ed9a4ba9af15a2a2b4c205b1b0))
402
+ - **styling:** fixing styling of loading spinner on all button variants ([74f79f4](https://bitbucket.org/enturas/design-system/commits/74f79f4dc6150d9759f430055ff295a94edd4751))
403
+
404
+ ### Features
405
+
406
+ - **types:** exporting all public types for public components ([4a277ab](https://bitbucket.org/enturas/design-system/commits/4a277ab266fdb32a6760821a07b1c6cc716bac85))
407
+
408
+ ## [1.0.4](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.0.3...@entur/button@1.0.4) (2019-11-18)
409
+
410
+ ### Bug Fixes
411
+
412
+ - add consistent spacing for icons inside buttons ([2c55c15](https://bitbucket.org/enturas/design-system/commits/2c55c1539260d3983ddb82f1a05e369d94425d28))
413
+ - **button:** fixing paddings issue with button as link ([48fcd82](https://bitbucket.org/enturas/design-system/commits/48fcd82835a4bde7c97d8461e5385f39552a92b9))
414
+ - **buttons:** updating all buttons to new border radius ([e1cbc88](https://bitbucket.org/enturas/design-system/commits/e1cbc888723c305333e1b56a1e26898c4a070c2d))
415
+ - **secondary styling:** applying new styling for secondary button ([8fbcc6d](https://bitbucket.org/enturas/design-system/commits/8fbcc6df62552486520391c05f44fcfcaafecf29))
416
+ - **square button:** fixing new styling for square buttons ([430c6f3](https://bitbucket.org/enturas/design-system/commits/430c6f3d7ecc2ba058f38b06e8b0f499c1f212cf))
417
+
418
+ ## [1.0.3](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.0.2...@entur/button@1.0.3) (2019-11-14)
419
+
420
+ ### Bug Fixes
421
+
422
+ - **css classnames:** fixing naming collisions with CSS classes ([a93ca43](https://bitbucket.org/enturas/design-system/commits/a93ca435d3a01d61d8f02694a672686b9e943a66))
423
+
424
+ ## [1.0.2](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.0.1...@entur/button@1.0.2) (2019-10-30)
425
+
426
+ ### Bug Fixes
427
+
428
+ - migrate to latest version of space tokens ([4330496](https://bitbucket.org/enturas/design-system/commits/4330496e269bf628f7b9b7aec75f704800201101))
429
+ - update all packages to use new tokens ([4847835](https://bitbucket.org/enturas/design-system/commits/48478359b0e562ba828e06d9b5c57239316805c2))
430
+
431
+ ## [1.0.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.0.0...@entur/button@1.0.1) (2019-10-22)
432
+
433
+ ### Bug Fixes
434
+
435
+ - **icons:** upgrade tsdx to avoid custom config for icons ([712f1cc](https://bitbucket.org/enturas/design-system/commits/712f1cccfd3f0242f3287c21b45c8d5c9ad92084))
436
+
437
+ # [1.0.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@0.2.1...@entur/button@1.0.0) (2019-10-11)
438
+
439
+ ### Bug Fixes
440
+
441
+ - size property is proper height ([b8d88d2](https://bitbucket.org/enturas/design-system/commits/b8d88d2))
442
+
443
+ ### BREAKING CHANGES
444
+
445
+ - Width=medium|large removed
446
+
447
+ ## [0.2.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@0.2.0...@entur/button@0.2.1) (2019-10-07)
448
+
449
+ **Note:** Version bump only for package @entur/button
450
+
451
+ # 0.2.0 (2019-09-25)
452
+
453
+ ### Bug Fixes
454
+
455
+ - **LinkButton:** fixed disabled property bug on LinkButton ([985d8ff](https://bitbucket.org/enturas/design-system/commits/985d8ff))
456
+
457
+ ### Features
458
+
459
+ - **Button:** button component implementation ([22dae96](https://bitbucket.org/enturas/design-system/commits/22dae96))
@@ -35,26 +35,32 @@ function _extends() {
35
35
  _extends = Object.assign || function (target) {
36
36
  for (var i = 1; i < arguments.length; i++) {
37
37
  var source = arguments[i];
38
+
38
39
  for (var key in source) {
39
40
  if (Object.prototype.hasOwnProperty.call(source, key)) {
40
41
  target[key] = source[key];
41
42
  }
42
43
  }
43
44
  }
45
+
44
46
  return target;
45
47
  };
48
+
46
49
  return _extends.apply(this, arguments);
47
50
  }
51
+
48
52
  function _objectWithoutPropertiesLoose(source, excluded) {
49
53
  if (source == null) return {};
50
54
  var target = {};
51
55
  var sourceKeys = Object.keys(source);
52
56
  var key, i;
57
+
53
58
  for (i = 0; i < sourceKeys.length; i++) {
54
59
  key = sourceKeys[i];
55
60
  if (excluded.indexOf(key) >= 0) continue;
56
61
  target[key] = source[key];
57
62
  }
63
+
58
64
  return target;
59
65
  }
60
66
 
@@ -62,19 +68,21 @@ var _excluded$4 = ["as", "variant", "size", "loading", "className", "children",
62
68
  var defaultElement$a = 'button';
63
69
  var Button = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
64
70
  var _cx;
71
+
65
72
  var as = _ref.as,
66
- variant = _ref.variant,
67
- _ref$size = _ref.size,
68
- size = _ref$size === void 0 ? 'medium' : _ref$size,
69
- loading = _ref.loading,
70
- className = _ref.className,
71
- children = _ref.children,
72
- _ref$disabled = _ref.disabled,
73
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
74
- _ref$width = _ref.width,
75
- width = _ref$width === void 0 ? 'auto' : _ref$width,
76
- ariaLabel = _ref['aria-label'],
77
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
73
+ variant = _ref.variant,
74
+ _ref$size = _ref.size,
75
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
76
+ loading = _ref.loading,
77
+ className = _ref.className,
78
+ children = _ref.children,
79
+ _ref$disabled = _ref.disabled,
80
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
81
+ _ref$width = _ref.width,
82
+ width = _ref$width === void 0 ? 'auto' : _ref$width,
83
+ ariaLabel = _ref['aria-label'],
84
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
85
+
78
86
  var Element = as || defaultElement$a;
79
87
  var childrenArray = React__namespace.Children.toArray(children);
80
88
  var hasLeadingIcon = childrenArray.length > 1 && typeof childrenArray[0] !== 'string';
@@ -82,11 +90,13 @@ var Button = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
82
90
  var ariaLabelWhenLoading = childrenArray.filter(function (child) {
83
91
  return typeof child === 'string';
84
92
  }).join(' ');
93
+
85
94
  var ariaLabelValue = function ariaLabelValue() {
86
95
  if (ariaLabel) return ariaLabel;
87
96
  if (loading) return ariaLabelWhenLoading;
88
97
  return undefined;
89
98
  };
99
+
90
100
  return React__namespace.createElement(Element, _extends({
91
101
  className: classNames__default["default"]('eds-button', (_cx = {}, _cx["eds-button--variant-" + variant] = variant, _cx["eds-button--size-" + size] = size, _cx['eds-button--width-fluid'] = width === 'fluid', _cx['eds-button--loading'] = loading, _cx['eds-button--leading-icon'] = hasLeadingIcon, _cx['eds-button--trailing-icon'] = hasTrailingIcon, _cx), className),
92
102
  ref: ref,
@@ -157,9 +167,10 @@ var TertiaryButton = /*#__PURE__*/React__default["default"].forwardRef(function
157
167
  var _excluded$3 = ["as", "className"];
158
168
  var ButtonGroup = function ButtonGroup(_ref) {
159
169
  var _ref$as = _ref.as,
160
- Element = _ref$as === void 0 ? 'div' : _ref$as,
161
- className = _ref.className,
162
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
170
+ Element = _ref$as === void 0 ? 'div' : _ref$as,
171
+ className = _ref.className,
172
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
173
+
163
174
  return React__default["default"].createElement(Element, _extends({
164
175
  className: classNames__default["default"]('eds-button-group', className)
165
176
  }, rest));
@@ -168,10 +179,11 @@ var ButtonGroup = function ButtonGroup(_ref) {
168
179
  var _excluded$2 = ["className", "children", "size"];
169
180
  var FloatingButton = function FloatingButton(_ref) {
170
181
  var className = _ref.className,
171
- children = _ref.children,
172
- _ref$size = _ref.size,
173
- size = _ref$size === void 0 ? 'medium' : _ref$size,
174
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
182
+ children = _ref.children,
183
+ _ref$size = _ref.size,
184
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
185
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
186
+
175
187
  return React__default["default"].createElement("button", _extends({
176
188
  className: classNames__default["default"]('eds-floating-button', {
177
189
  'eds-floating-button--extended': React__default["default"].Children.count(children) > 1
@@ -181,6 +193,7 @@ var FloatingButton = function FloatingButton(_ref) {
181
193
  type: "button"
182
194
  }, rest), wrapStringsInSpans(children));
183
195
  };
196
+
184
197
  var wrapStringsInSpans = function wrapStringsInSpans(children) {
185
198
  return React__default["default"].Children.map(children, function (child) {
186
199
  return typeof child === 'string' ? React__default["default"].createElement("span", null, child) : child;
@@ -191,14 +204,15 @@ var _excluded$1 = ["children", "className", "variant", "disabled", "loading", "a
191
204
  var defaultElement$4 = 'button';
192
205
  var BaseSquareButton = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
193
206
  var children = _ref.children,
194
- className = _ref.className,
195
- variant = _ref.variant,
196
- _ref$disabled = _ref.disabled,
197
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
198
- _ref$loading = _ref.loading,
199
- loading = _ref$loading === void 0 ? false : _ref$loading,
200
- as = _ref.as,
201
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
207
+ className = _ref.className,
208
+ variant = _ref.variant,
209
+ _ref$disabled = _ref.disabled,
210
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
211
+ _ref$loading = _ref.loading,
212
+ loading = _ref$loading === void 0 ? false : _ref$loading,
213
+ as = _ref.as,
214
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
215
+
202
216
  var Element = as || defaultElement$4;
203
217
  return React__namespace.createElement(Element, _extends({
204
218
  className: classNames__default["default"]('eds-square-button', {
@@ -220,6 +234,7 @@ var BaseSquareButton = /*#__PURE__*/React__namespace.forwardRef(function (_ref,
220
234
  className: "eds-square-button__label"
221
235
  }, child);
222
236
  }
237
+
223
238
  return React__namespace.createElement("span", {
224
239
  className: "eds-square-button__icon"
225
240
  }, loading ? React__namespace.createElement(loader.LoadingDots, {
@@ -265,13 +280,14 @@ var _excluded = ["children", "className", "disabled", "size", "as", "loading"];
265
280
  var defaultElement = 'button';
266
281
  var IconButton = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
267
282
  var children = _ref.children,
268
- className = _ref.className,
269
- _ref$disabled = _ref.disabled,
270
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
271
- size = _ref.size,
272
- as = _ref.as,
273
- loading = _ref.loading,
274
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
283
+ className = _ref.className,
284
+ _ref$disabled = _ref.disabled,
285
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
286
+ size = _ref.size,
287
+ as = _ref.as,
288
+ loading = _ref.loading,
289
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
290
+
275
291
  var Element = as || defaultElement;
276
292
  var iconButtonElement = React__default["default"].createElement(Element, _extends({
277
293
  className: classNames__default["default"]('eds-icon-button', className, {
@@ -282,11 +298,13 @@ var IconButton = /*#__PURE__*/React__default["default"].forwardRef(function (_re
282
298
  "aria-busy": loading,
283
299
  ref: ref
284
300
  }, rest), loading ? React__default["default"].createElement(loader.LoadingDots, null) : children);
301
+
285
302
  if (disabled) {
286
303
  return React__default["default"].createElement("div", {
287
304
  className: "eds-icon-button--disabled__wrapper"
288
305
  }, iconButtonElement);
289
306
  }
307
+
290
308
  return React__default["default"].createElement(React__default["default"].Fragment, null, iconButtonElement);
291
309
  });
292
310