@entur/button 2.10.6 → 2.10.8

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