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