@entur/layout 2.1.13 → 2.1.15
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 +419 -0
- package/dist/Badge/Badge.d.ts +4 -3
- package/dist/Badge/BulletBadge.d.ts +4 -3
- package/dist/Badge/NotificationBadge.d.ts +4 -3
- package/dist/Badge/StatusBadge.d.ts +4 -3
- package/dist/BaseCard.d.ts +2 -2
- package/dist/Contrast.d.ts +4 -3
- package/dist/MediaCard.d.ts +2 -2
- package/dist/NavigationCard.d.ts +2 -2
- package/dist/Tag.d.ts +2 -2
- package/dist/layout.cjs.development.js +59 -40
- package/dist/layout.cjs.development.js.map +1 -1
- package/dist/layout.cjs.production.min.js.map +1 -1
- package/dist/layout.esm.js +59 -40
- package/dist/layout.esm.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +10 -14
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,419 @@
|
|
|
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.1.15](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.14...@entur/layout@2.1.15) (2023-01-19)
|
|
7
|
+
|
|
8
|
+
### Performance Improvements
|
|
9
|
+
|
|
10
|
+
- **layout:** remove usage of react-polymorphic-types in favor of own implementation in layout packa ([b7ada6d](https://bitbucket.org/enturas/design-system/commits/b7ada6d7b9776cce86dea51f58c4b7ea0300451b))
|
|
11
|
+
- **packages:** remove all referenves to react-polymorphic-types npm-package ([e47a304](https://bitbucket.org/enturas/design-system/commits/e47a304d87eb77adae5dd002e89f03026c7eadce))
|
|
12
|
+
|
|
13
|
+
## [2.1.14](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.11...@entur/layout@2.1.14) (2022-12-09)
|
|
14
|
+
|
|
15
|
+
**Note:** Version bump only for package @entur/layout
|
|
16
|
+
|
|
17
|
+
## [2.1.13](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.12...@entur/layout@2.1.13) (2022-11-24)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @entur/layout
|
|
20
|
+
|
|
21
|
+
## [2.1.12](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.11...@entur/layout@2.1.12) (2022-10-31)
|
|
22
|
+
|
|
23
|
+
**Note:** Version bump only for package @entur/layout
|
|
24
|
+
|
|
25
|
+
## [2.1.10](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.9...@entur/layout@2.1.10) (2022-08-31)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @entur/layout
|
|
28
|
+
|
|
29
|
+
## [2.1.9](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.8...@entur/layout@2.1.9) (2022-08-24)
|
|
30
|
+
|
|
31
|
+
**Note:** Version bump only for package @entur/layout
|
|
32
|
+
|
|
33
|
+
## [2.1.8](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.7...@entur/layout@2.1.8) (2022-08-09)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @entur/layout
|
|
36
|
+
|
|
37
|
+
## [2.1.7](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.6...@entur/layout@2.1.7) (2022-06-02)
|
|
38
|
+
|
|
39
|
+
**Note:** Version bump only for package @entur/layout
|
|
40
|
+
|
|
41
|
+
## [2.1.6](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.5...@entur/layout@2.1.6) (2022-05-13)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @entur/layout
|
|
44
|
+
|
|
45
|
+
## [2.1.5](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.4...@entur/layout@2.1.5) (2022-04-27)
|
|
46
|
+
|
|
47
|
+
**Note:** Version bump only for package @entur/layout
|
|
48
|
+
|
|
49
|
+
## [2.1.4](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.3...@entur/layout@2.1.4) (2022-02-09)
|
|
50
|
+
|
|
51
|
+
**Note:** Version bump only for package @entur/layout
|
|
52
|
+
|
|
53
|
+
## [2.1.3](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.2...@entur/layout@2.1.3) (2021-11-17)
|
|
54
|
+
|
|
55
|
+
**Note:** Version bump only for package @entur/layout
|
|
56
|
+
|
|
57
|
+
## [2.1.2](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.1...@entur/layout@2.1.2) (2021-09-23)
|
|
58
|
+
|
|
59
|
+
**Note:** Version bump only for package @entur/layout
|
|
60
|
+
|
|
61
|
+
## [2.1.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.0...@entur/layout@2.1.1) (2021-09-07)
|
|
62
|
+
|
|
63
|
+
### Bug Fixes
|
|
64
|
+
|
|
65
|
+
- fix lint warnings ([fecb950](https://bitbucket.org/enturas/design-system/commits/fecb95073921975c0c2eaea313afb63235a63589))
|
|
66
|
+
- utilize reworked focus token ([586758f](https://bitbucket.org/enturas/design-system/commits/586758fc86eb5aa52116c63c14ef033eb2e8b12f))
|
|
67
|
+
|
|
68
|
+
# [2.1.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.0.1...@entur/layout@2.1.0) (2021-07-16)
|
|
69
|
+
|
|
70
|
+
### Features
|
|
71
|
+
|
|
72
|
+
- **media card:** add wholeCardAsElement prop ([77bda47](https://bitbucket.org/enturas/design-system/commits/77bda475dad9f80d4e95d14cc88c225bb35c11db))
|
|
73
|
+
|
|
74
|
+
## [2.0.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.0.0...@entur/layout@2.0.1) (2021-06-25)
|
|
75
|
+
|
|
76
|
+
### Bug Fixes
|
|
77
|
+
|
|
78
|
+
- update dependencies ([8757f55](https://bitbucket.org/enturas/design-system/commits/8757f551ea84321b1fec788636cef6912ba42af8))
|
|
79
|
+
|
|
80
|
+
# [2.0.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.10.4...@entur/layout@2.0.0) (2021-06-04)
|
|
81
|
+
|
|
82
|
+
### Features
|
|
83
|
+
|
|
84
|
+
- add new component notification badge ([738d1db](https://bitbucket.org/enturas/design-system/commits/738d1db64ed9bd99881aea76fcbf77624265eee8))
|
|
85
|
+
- add new component status badge ([f9757ba](https://bitbucket.org/enturas/design-system/commits/f9757ba14e57ea5467c4770c06f4db30570de276))
|
|
86
|
+
- **badge:** add type prop to component ([2aba830](https://bitbucket.org/enturas/design-system/commits/2aba830991cf8267534f8a2feaf89c903ac3b2e6))
|
|
87
|
+
- **bullet badge:** add new component bullet badge ([c6d0bce](https://bitbucket.org/enturas/design-system/commits/c6d0bcea0558576b41829277fa5c2036fb2caaf0))
|
|
88
|
+
|
|
89
|
+
### BREAKING CHANGES
|
|
90
|
+
|
|
91
|
+
- **badge:** select type after your need, or use the new badge components directly
|
|
92
|
+
|
|
93
|
+
## [1.10.4](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.10.3...@entur/layout@1.10.4) (2021-05-19)
|
|
94
|
+
|
|
95
|
+
### Bug Fixes
|
|
96
|
+
|
|
97
|
+
- **navigation card:** improve component styling on mobile ([4387991](https://bitbucket.org/enturas/design-system/commits/4387991d6f03531edab250f855de10c2aecfe60b))
|
|
98
|
+
|
|
99
|
+
## [1.10.3](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.10.2...@entur/layout@1.10.3) (2021-04-23)
|
|
100
|
+
|
|
101
|
+
### Bug Fixes
|
|
102
|
+
|
|
103
|
+
- utilize new focus tokens ([17113ef](https://bitbucket.org/enturas/design-system/commits/17113ef3f791c86fa6e19e71680fd5acdbae4990))
|
|
104
|
+
|
|
105
|
+
## [1.10.2](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.10.1...@entur/layout@1.10.2) (2021-03-02)
|
|
106
|
+
|
|
107
|
+
**Note:** Version bump only for package @entur/layout
|
|
108
|
+
|
|
109
|
+
## [1.10.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.10.0...@entur/layout@1.10.1) (2021-02-17)
|
|
110
|
+
|
|
111
|
+
### Bug Fixes
|
|
112
|
+
|
|
113
|
+
- **polymorphism:** update polymorphism dependency ([dc4c31d](https://bitbucket.org/enturas/design-system/commits/dc4c31d8e891a46c1f0c1fbd0a6a026c1638accc))
|
|
114
|
+
|
|
115
|
+
# [1.10.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.9.3...@entur/layout@1.10.0) (2021-01-29)
|
|
116
|
+
|
|
117
|
+
### Bug Fixes
|
|
118
|
+
|
|
119
|
+
- **navigationcard:** remove arrow icon on non compact cards ([e1d7134](https://bitbucket.org/enturas/design-system/commits/e1d713422adff6cb25b883630ea1a27d4408ca2d))
|
|
120
|
+
|
|
121
|
+
### Features
|
|
122
|
+
|
|
123
|
+
- **contrast:** export contrast react-context ([793fad7](https://bitbucket.org/enturas/design-system/commits/793fad790e81cc09e171e9226688711da93f8863))
|
|
124
|
+
|
|
125
|
+
## [1.9.3](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.9.2...@entur/layout@1.9.3) (2021-01-20)
|
|
126
|
+
|
|
127
|
+
**Note:** Version bump only for package @entur/layout
|
|
128
|
+
|
|
129
|
+
## [1.9.2](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.9.1...@entur/layout@1.9.2) (2021-01-13)
|
|
130
|
+
|
|
131
|
+
### Bug Fixes
|
|
132
|
+
|
|
133
|
+
- transpose grey colors for updated color tokens ([d6a444c](https://bitbucket.org/enturas/design-system/commits/d6a444c2c37339b9bac0702738ed52693367d344))
|
|
134
|
+
|
|
135
|
+
## [1.9.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.9.0...@entur/layout@1.9.1) (2021-01-05)
|
|
136
|
+
|
|
137
|
+
**Note:** Version bump only for package @entur/layout
|
|
138
|
+
|
|
139
|
+
# [1.9.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.8.3...@entur/layout@1.9.0) (2020-12-04)
|
|
140
|
+
|
|
141
|
+
### Bug Fixes
|
|
142
|
+
|
|
143
|
+
- **contrast:** improve typings ([160c495](https://bitbucket.org/enturas/design-system/commits/160c4955687a3a072fd8b806799a27228153f8a9))
|
|
144
|
+
|
|
145
|
+
### Features
|
|
146
|
+
|
|
147
|
+
- **badge:** add support for polymorphic component typings ([b6aaba5](https://bitbucket.org/enturas/design-system/commits/b6aaba5c9a3424798d5ab94c4d32269fd53576c2))
|
|
148
|
+
- **cards:** add support for polymorphic component typings ([7531e31](https://bitbucket.org/enturas/design-system/commits/7531e31222f924576f8b03d0ebc90fae517e400a))
|
|
149
|
+
- **contrast:** add support for polymorphic component typings ([b2639ad](https://bitbucket.org/enturas/design-system/commits/b2639ad289a30e9dabc213dfb92e9f12b06377d6))
|
|
150
|
+
- **tag:** add support for polymorphic component typings ([a9a4bf0](https://bitbucket.org/enturas/design-system/commits/a9a4bf018543d57951a34284e3721380684dddb4))
|
|
151
|
+
|
|
152
|
+
## [1.8.3](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.8.2...@entur/layout@1.8.3) (2020-11-05)
|
|
153
|
+
|
|
154
|
+
**Note:** Version bump only for package @entur/layout
|
|
155
|
+
|
|
156
|
+
## [1.8.2](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.8.1...@entur/layout@1.8.2) (2020-10-23)
|
|
157
|
+
|
|
158
|
+
**Note:** Version bump only for package @entur/layout
|
|
159
|
+
|
|
160
|
+
## [1.8.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.8.0...@entur/layout@1.8.1) (2020-10-09)
|
|
161
|
+
|
|
162
|
+
### Bug Fixes
|
|
163
|
+
|
|
164
|
+
- **badge:** decrease font weight ([9b7bf2f](https://bitbucket.org/enturas/design-system/commits/9b7bf2f4f6676268cdc33c7461b75b56e6bdc640))
|
|
165
|
+
|
|
166
|
+
# [1.8.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.7.5...@entur/layout@1.8.0) (2020-09-25)
|
|
167
|
+
|
|
168
|
+
### Features
|
|
169
|
+
|
|
170
|
+
- **navigation card:** add externallink prop ([37a66de](https://bitbucket.org/enturas/design-system/commits/37a66de4e02022e8a54df3ea68205a05ad5ace6d))
|
|
171
|
+
|
|
172
|
+
## [1.7.5](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.7.4...@entur/layout@1.7.5) (2020-09-14)
|
|
173
|
+
|
|
174
|
+
**Note:** Version bump only for package @entur/layout
|
|
175
|
+
|
|
176
|
+
## [1.7.4](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.7.3...@entur/layout@1.7.4) (2020-09-02)
|
|
177
|
+
|
|
178
|
+
### Bug Fixes
|
|
179
|
+
|
|
180
|
+
- **media card:** shift font size for new token ([3185b6a](https://bitbucket.org/enturas/design-system/commits/3185b6a474f1ef8c369f6aba53c2b2c28c0fa140))
|
|
181
|
+
- **navigation card:** shift font size for new token ([ed39b1e](https://bitbucket.org/enturas/design-system/commits/ed39b1ecc15b8a06fa40d85c467e2ffd8693b15c))
|
|
182
|
+
|
|
183
|
+
## [1.7.3](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.7.2...@entur/layout@1.7.3) (2020-08-19)
|
|
184
|
+
|
|
185
|
+
**Note:** Version bump only for package @entur/layout
|
|
186
|
+
|
|
187
|
+
## [1.7.2](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.7.1...@entur/layout@1.7.2) (2020-08-11)
|
|
188
|
+
|
|
189
|
+
**Note:** Version bump only for package @entur/layout
|
|
190
|
+
|
|
191
|
+
## [1.7.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.7.0...@entur/layout@1.7.1) (2020-07-24)
|
|
192
|
+
|
|
193
|
+
### Bug Fixes
|
|
194
|
+
|
|
195
|
+
- add forwardref to badge component ([7a2532e](https://bitbucket.org/enturas/design-system/commits/7a2532eda6ed564f0267d918d4ba2ceca3887a9b))
|
|
196
|
+
|
|
197
|
+
# [1.7.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.6.0...@entur/layout@1.7.0) (2020-07-13)
|
|
198
|
+
|
|
199
|
+
### Features
|
|
200
|
+
|
|
201
|
+
- add forward referencing to Contrast ([63ebcb8](https://bitbucket.org/enturas/design-system/commits/63ebcb8b865b8aa71cfb85331d74292457cb2a13))
|
|
202
|
+
- add info and neutral variant for badge ([d187808](https://bitbucket.org/enturas/design-system/commits/d187808627cd3186b52d6293cd626374ef96fa58))
|
|
203
|
+
|
|
204
|
+
# [1.6.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.5.0...@entur/layout@1.6.0) (2020-07-09)
|
|
205
|
+
|
|
206
|
+
### Features
|
|
207
|
+
|
|
208
|
+
- add compact prop for tag component ([fe271c1](https://bitbucket.org/enturas/design-system/commits/fe271c11beed22641379cc90634eb54a55d42b6a))
|
|
209
|
+
|
|
210
|
+
# [1.5.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.4.4...@entur/layout@1.5.0) (2020-07-03)
|
|
211
|
+
|
|
212
|
+
### Features
|
|
213
|
+
|
|
214
|
+
- titleicon for compact navcard, and simplified design ([ae0d2e4](https://bitbucket.org/enturas/design-system/commits/ae0d2e4e0e00d65c7edf119d96ef024b9f8eb101))
|
|
215
|
+
|
|
216
|
+
## [1.4.4](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.4.3...@entur/layout@1.4.4) (2020-06-17)
|
|
217
|
+
|
|
218
|
+
**Note:** Version bump only for package @entur/layout
|
|
219
|
+
|
|
220
|
+
## [1.4.3](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.4.2...@entur/layout@1.4.3) (2020-05-27)
|
|
221
|
+
|
|
222
|
+
**Note:** Version bump only for package @entur/layout
|
|
223
|
+
|
|
224
|
+
## [1.4.2](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.4.1...@entur/layout@1.4.2) (2020-05-26)
|
|
225
|
+
|
|
226
|
+
**Note:** Version bump only for package @entur/layout
|
|
227
|
+
|
|
228
|
+
## [1.4.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.4.0...@entur/layout@1.4.1) (2020-05-20)
|
|
229
|
+
|
|
230
|
+
**Note:** Version bump only for package @entur/layout
|
|
231
|
+
|
|
232
|
+
# [1.4.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.3.6...@entur/layout@1.4.0) (2020-04-27)
|
|
233
|
+
|
|
234
|
+
### Features
|
|
235
|
+
|
|
236
|
+
- add category prop for media cards ([5ec6540](https://bitbucket.org/enturas/design-system/commits/5ec65404ecf445f44ed223366d817aacf5adc9ac))
|
|
237
|
+
|
|
238
|
+
## [1.3.6](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.3.5...@entur/layout@1.3.6) (2020-04-23)
|
|
239
|
+
|
|
240
|
+
### Bug Fixes
|
|
241
|
+
|
|
242
|
+
- fixed mediacard red-line bug ([d95d1d1](https://bitbucket.org/enturas/design-system/commits/d95d1d1ea190db502c224f135d15fb3f80002806))
|
|
243
|
+
- updated to use new focus styling where applicable ([d0a52c0](https://bitbucket.org/enturas/design-system/commits/d0a52c096b673c6647070a90dd79bef9003ee0ad))
|
|
244
|
+
|
|
245
|
+
## [1.3.5](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.3.4...@entur/layout@1.3.5) (2020-04-08)
|
|
246
|
+
|
|
247
|
+
### Bug Fixes
|
|
248
|
+
|
|
249
|
+
- fix border color for cards in contrast ([564aa85](https://bitbucket.org/enturas/design-system/commits/564aa85014b63bda47159fb7782a4a71577e9a7d))
|
|
250
|
+
|
|
251
|
+
## [1.3.4](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.3.2...@entur/layout@1.3.4) (2020-03-25)
|
|
252
|
+
|
|
253
|
+
### Bug Fixes
|
|
254
|
+
|
|
255
|
+
- add thin border to navigationcards ([b4be3e7](https://bitbucket.org/enturas/design-system/commits/b4be3e71f5146f55f5ab383b9e344b15a2e8f0ab))
|
|
256
|
+
|
|
257
|
+
## [1.3.3](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.3.2...@entur/layout@1.3.3) (2020-03-25)
|
|
258
|
+
|
|
259
|
+
### Bug Fixes
|
|
260
|
+
|
|
261
|
+
- add thin border to navigationcards ([b4be3e7](https://bitbucket.org/enturas/design-system/commits/b4be3e71f5146f55f5ab383b9e344b15a2e8f0ab))
|
|
262
|
+
|
|
263
|
+
## [1.3.2](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.3.1...@entur/layout@1.3.2) (2020-03-20)
|
|
264
|
+
|
|
265
|
+
### Bug Fixes
|
|
266
|
+
|
|
267
|
+
- small styling tweak for cards ([a616522](https://bitbucket.org/enturas/design-system/commits/a61652276e10cd14d836d2241cd160b9b5742d7d))
|
|
268
|
+
|
|
269
|
+
## [1.3.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.3.0...@entur/layout@1.3.1) (2020-03-18)
|
|
270
|
+
|
|
271
|
+
### Bug Fixes
|
|
272
|
+
|
|
273
|
+
- update styling for card components ([5505e22](https://bitbucket.org/enturas/design-system/commits/5505e224b778d1793a8ec3a56f06eb6aec1b17bc))
|
|
274
|
+
|
|
275
|
+
# [1.3.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.2.4...@entur/layout@1.3.0) (2020-02-26)
|
|
276
|
+
|
|
277
|
+
### Bug Fixes
|
|
278
|
+
|
|
279
|
+
- readjust hover effect for cards ([1f09cb7](https://bitbucket.org/enturas/design-system/commits/1f09cb7242fcec9c0c0927c951c7f76a47e4e0fa))
|
|
280
|
+
|
|
281
|
+
### Features
|
|
282
|
+
|
|
283
|
+
- adding the tag component ([213edb6](https://bitbucket.org/enturas/design-system/commits/213edb6bcaec751f4eff7a024e87c974d90202ba))
|
|
284
|
+
- **badge:** adding the badge component ([f88f222](https://bitbucket.org/enturas/design-system/commits/f88f22221f66c2376b01773de2245d079014ccd8))
|
|
285
|
+
|
|
286
|
+
## [1.2.4](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.2.3...@entur/layout@1.2.4) (2020-02-20)
|
|
287
|
+
|
|
288
|
+
### Bug Fixes
|
|
289
|
+
|
|
290
|
+
- update navigationcard to align with new small typography ([ec23db5](https://bitbucket.org/enturas/design-system/commits/ec23db52ce70a45699a4a74e326f478185d1d729))
|
|
291
|
+
|
|
292
|
+
## [1.2.3](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.2.2...@entur/layout@1.2.3) (2020-02-14)
|
|
293
|
+
|
|
294
|
+
**Note:** Version bump only for package @entur/layout
|
|
295
|
+
|
|
296
|
+
## [1.2.2](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.2.1...@entur/layout@1.2.2) (2020-02-10)
|
|
297
|
+
|
|
298
|
+
### Bug Fixes
|
|
299
|
+
|
|
300
|
+
- remove deprecated and colliding styling ([81f3128](https://bitbucket.org/enturas/design-system/commits/81f3128afb75b74ae9d4e643ca2d7af1b1efabb3))
|
|
301
|
+
|
|
302
|
+
## [1.2.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.2.0...@entur/layout@1.2.1) (2020-02-05)
|
|
303
|
+
|
|
304
|
+
### Bug Fixes
|
|
305
|
+
|
|
306
|
+
- fixing broken flow for mediacard ([b9069b8](https://bitbucket.org/enturas/design-system/commits/b9069b8bb115f750968ae194f357b72d3f1442ab))
|
|
307
|
+
|
|
308
|
+
# [1.2.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.1.1...@entur/layout@1.2.0) (2020-02-05)
|
|
309
|
+
|
|
310
|
+
### Bug Fixes
|
|
311
|
+
|
|
312
|
+
- fix contrast styling for card-components ([9490181](https://bitbucket.org/enturas/design-system/commits/9490181256c3f628bde9125e468b6d26d77bc220))
|
|
313
|
+
- remove test-files from build process ([e0b24af](https://bitbucket.org/enturas/design-system/commits/e0b24af05d5c2ad8de4ae587d83c389495235890))
|
|
314
|
+
- update look and hover-effect for navigationcard ([05690ac](https://bitbucket.org/enturas/design-system/commits/05690ac39553e2aaf6130d3eca230e009bdd1ff4))
|
|
315
|
+
|
|
316
|
+
### Features
|
|
317
|
+
|
|
318
|
+
- adding new component: mediacard ([00989a9](https://bitbucket.org/enturas/design-system/commits/00989a9b740b8526db5cc237381bdd982c9a391c))
|
|
319
|
+
- new look and feel for navigationcards ([942398c](https://bitbucket.org/enturas/design-system/commits/942398c7ab5ffc53e96679ce1893738e4eb94066))
|
|
320
|
+
|
|
321
|
+
## [1.1.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.1.0...@entur/layout@1.1.1) (2020-01-28)
|
|
322
|
+
|
|
323
|
+
**Note:** Version bump only for package @entur/layout
|
|
324
|
+
|
|
325
|
+
# [1.1.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.0.5...@entur/layout@1.1.0) (2020-01-27)
|
|
326
|
+
|
|
327
|
+
### Bug Fixes
|
|
328
|
+
|
|
329
|
+
- update navigationcards to comply with new typography ([3d77634](https://bitbucket.org/enturas/design-system/commits/3d776344dbfdec913f73bc33fcf209d6fdafd088))
|
|
330
|
+
- **types:** place types in the correct place ([acace09](https://bitbucket.org/enturas/design-system/commits/acace09ec0e258c5cff3a65e13ab29d6603780d9))
|
|
331
|
+
|
|
332
|
+
### Features
|
|
333
|
+
|
|
334
|
+
- adding the useContrast-hook, for contrast awereness in JS/TS ([ba580ef](https://bitbucket.org/enturas/design-system/commits/ba580ef67c7250f7ea7d9ecb0c6662b5ed8449d1))
|
|
335
|
+
|
|
336
|
+
## [1.0.5](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.0.4...@entur/layout@1.0.5) (2020-01-20)
|
|
337
|
+
|
|
338
|
+
**Note:** Version bump only for package @entur/layout
|
|
339
|
+
|
|
340
|
+
## [1.0.4](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.0.3...@entur/layout@1.0.4) (2020-01-14)
|
|
341
|
+
|
|
342
|
+
**Note:** Version bump only for package @entur/layout
|
|
343
|
+
|
|
344
|
+
## [1.0.3](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.0.2...@entur/layout@1.0.3) (2020-01-13)
|
|
345
|
+
|
|
346
|
+
**Note:** Version bump only for package @entur/layout
|
|
347
|
+
|
|
348
|
+
## [1.0.2](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.0.1...@entur/layout@1.0.2) (2020-01-08)
|
|
349
|
+
|
|
350
|
+
### Bug Fixes
|
|
351
|
+
|
|
352
|
+
- warn in development if the developer have forgotten the CSS ([e5c30fc](https://bitbucket.org/enturas/design-system/commits/e5c30fc08624ef22c02773892778abd92205c6b0))
|
|
353
|
+
|
|
354
|
+
## [1.0.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.0.0...@entur/layout@1.0.1) (2020-01-06)
|
|
355
|
+
|
|
356
|
+
**Note:** Version bump only for package @entur/layout
|
|
357
|
+
|
|
358
|
+
# [1.0.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@0.4.1...@entur/layout@1.0.0) (2019-12-10)
|
|
359
|
+
|
|
360
|
+
### Bug Fixes
|
|
361
|
+
|
|
362
|
+
- adding default prop as part of documentation ([1ef7510](https://bitbucket.org/enturas/design-system/commits/1ef75107362f6262429d7fe31519b4353eccc8de))
|
|
363
|
+
- **Card:** renaming CardBox/Tab, to NavigationCard ([da9856a](https://bitbucket.org/enturas/design-system/commits/da9856a285136e773825efe6ea4e927fea4a0ef4))
|
|
364
|
+
|
|
365
|
+
### Features
|
|
366
|
+
|
|
367
|
+
- adding new component Card ([836331f](https://bitbucket.org/enturas/design-system/commits/836331f985baee213d116ec364b19a864d73755f))
|
|
368
|
+
|
|
369
|
+
### BREAKING CHANGES
|
|
370
|
+
|
|
371
|
+
- **Card:** CardBox and CardTab are renamed to NavigationCard,
|
|
372
|
+
whereas CardBox is a renaming procedure(CardBox -> NavigationCard),
|
|
373
|
+
CardTab is NavigationCard with the compact prop
|
|
374
|
+
|
|
375
|
+
## [0.4.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@0.4.0...@entur/layout@0.4.1) (2019-11-29)
|
|
376
|
+
|
|
377
|
+
### Bug Fixes
|
|
378
|
+
|
|
379
|
+
- using new box shadow tokens ([9ff30bd](https://bitbucket.org/enturas/design-system/commits/9ff30bd52ad2b6e6d770565684a05e15f0b0ba9a))
|
|
380
|
+
|
|
381
|
+
# [0.4.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@0.3.2...@entur/layout@0.4.0) (2019-11-22)
|
|
382
|
+
|
|
383
|
+
### Bug Fixes
|
|
384
|
+
|
|
385
|
+
- add missing Props to end of type name ([d28f9c6](https://bitbucket.org/enturas/design-system/commits/d28f9c65dd2ab72c94108cad3dab39c320c95146))
|
|
386
|
+
|
|
387
|
+
### Features
|
|
388
|
+
|
|
389
|
+
- **types:** exporting all public types for public components ([4a277ab](https://bitbucket.org/enturas/design-system/commits/4a277ab266fdb32a6760821a07b1c6cc716bac85))
|
|
390
|
+
|
|
391
|
+
## [0.3.2](https://bitbucket.org/enturas/design-system/compare/@entur/layout@0.3.1...@entur/layout@0.3.2) (2019-11-18)
|
|
392
|
+
|
|
393
|
+
**Note:** Version bump only for package @entur/layout
|
|
394
|
+
|
|
395
|
+
## [0.3.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@0.3.0...@entur/layout@0.3.1) (2019-11-14)
|
|
396
|
+
|
|
397
|
+
### Bug Fixes
|
|
398
|
+
|
|
399
|
+
- **css classnames:** fixing naming collisions with CSS classes ([a93ca43](https://bitbucket.org/enturas/design-system/commits/a93ca435d3a01d61d8f02694a672686b9e943a66))
|
|
400
|
+
|
|
401
|
+
# [0.3.0](https://bitbucket.org/enturas/design-system/compare/@entur/layout@0.2.2...@entur/layout@0.3.0) (2019-11-07)
|
|
402
|
+
|
|
403
|
+
### Features
|
|
404
|
+
|
|
405
|
+
- **CardComponent:** adding the CardBox and CardTab component to layout ([22a5da2](https://bitbucket.org/enturas/design-system/commits/22a5da2d696736d9074f3b778a753aad960834ab))
|
|
406
|
+
|
|
407
|
+
## [0.2.2](https://bitbucket.org/enturas/design-system/compare/@entur/layout@0.2.1...@entur/layout@0.2.2) (2019-10-30)
|
|
408
|
+
|
|
409
|
+
**Note:** Version bump only for package @entur/layout
|
|
410
|
+
|
|
411
|
+
## [0.2.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@0.2.0...@entur/layout@0.2.1) (2019-10-22)
|
|
412
|
+
|
|
413
|
+
**Note:** Version bump only for package @entur/layout
|
|
414
|
+
|
|
415
|
+
# 0.2.0 (2019-10-07)
|
|
416
|
+
|
|
417
|
+
### Features
|
|
418
|
+
|
|
419
|
+
- **layout:** add new package layout ([3ab2559](https://bitbucket.org/enturas/design-system/commits/3ab2559))
|
package/dist/Badge/Badge.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { PolymorphicComponentPropsWithRef } from '@entur/utils';
|
|
2
3
|
import './Badge.scss';
|
|
3
|
-
import { PolymorphicForwardRefExoticComponent, PolymorphicPropsWithRef } from '@entur/utils';
|
|
4
4
|
export declare type BadgeTypes = 'status' | 'bullet' | 'notification';
|
|
5
5
|
export declare type BadgeOwnProps = {
|
|
6
6
|
/** Elementet som wrapper badgen
|
|
@@ -23,7 +23,8 @@ export declare type BadgeOwnProps = {
|
|
|
23
23
|
max?: number;
|
|
24
24
|
type?: BadgeTypes;
|
|
25
25
|
};
|
|
26
|
-
export declare type BadgeProps<
|
|
26
|
+
export declare type BadgeProps<T extends React.ElementType> = PolymorphicComponentPropsWithRef<T, BadgeOwnProps>;
|
|
27
|
+
export declare type BadgeComponent = <T extends React.ElementType = typeof defaultElement>(props: BadgeProps<T>) => React.ReactElement | null;
|
|
27
28
|
declare const defaultElement = "span";
|
|
28
|
-
export declare const Badge:
|
|
29
|
+
export declare const Badge: BadgeComponent;
|
|
29
30
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { PolymorphicComponentPropsWithRef } from '@entur/utils';
|
|
3
3
|
declare type BulletBadgeBaseProps = {
|
|
4
4
|
/** Elementet som wrapper badgen
|
|
5
5
|
* @default "span"
|
|
@@ -12,7 +12,8 @@ declare type BulletBadgeBaseProps = {
|
|
|
12
12
|
/** Hvilken type badge man vil ha */
|
|
13
13
|
variant: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
14
14
|
};
|
|
15
|
-
export declare type BulletBadgeProps<T extends React.ElementType
|
|
15
|
+
export declare type BulletBadgeProps<T extends React.ElementType> = PolymorphicComponentPropsWithRef<T, BulletBadgeBaseProps>;
|
|
16
|
+
export declare type BulletBadgeComponent = <T extends React.ElementType = typeof defaultElement>(props: BulletBadgeProps<T>) => React.ReactElement | null;
|
|
16
17
|
declare const defaultElement = "span";
|
|
17
|
-
export declare const BulletBadge:
|
|
18
|
+
export declare const BulletBadge: BulletBadgeComponent;
|
|
18
19
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { PolymorphicComponentPropsWithRef } from '@entur/utils';
|
|
3
3
|
declare type NotificationBadgeBaseProps = {
|
|
4
4
|
/** Elementet som wrapper badgen
|
|
5
5
|
* @default "span"
|
|
@@ -20,7 +20,8 @@ declare type NotificationBadgeBaseProps = {
|
|
|
20
20
|
*/
|
|
21
21
|
max?: number;
|
|
22
22
|
};
|
|
23
|
-
export declare type
|
|
23
|
+
export declare type NotificationBadgeProps<T extends React.ElementType> = PolymorphicComponentPropsWithRef<T, NotificationBadgeBaseProps>;
|
|
24
|
+
export declare type NotificationBadgeComponent = <T extends React.ElementType = typeof defaultElement>(props: NotificationBadgeProps<T>) => React.ReactElement | null;
|
|
24
25
|
declare const defaultElement = "span";
|
|
25
|
-
export declare const NotificationBadge:
|
|
26
|
+
export declare const NotificationBadge: NotificationBadgeComponent;
|
|
26
27
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { PolymorphicComponentPropsWithRef } from '@entur/utils';
|
|
3
3
|
declare type StatusBadgeBaseProps = {
|
|
4
4
|
/** Elementet som wrapper badgen
|
|
5
5
|
* @default "span"
|
|
@@ -12,7 +12,8 @@ declare type StatusBadgeBaseProps = {
|
|
|
12
12
|
/** Hvilken type badge man vil ha */
|
|
13
13
|
variant: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
14
14
|
};
|
|
15
|
-
export declare type StatusBadgeProps<T extends React.ElementType
|
|
15
|
+
export declare type StatusBadgeProps<T extends React.ElementType> = PolymorphicComponentPropsWithRef<T, StatusBadgeBaseProps>;
|
|
16
|
+
export declare type StatusBadgeComponent = <T extends React.ElementType = typeof defaultElement>(props: StatusBadgeProps<T>) => React.ReactElement | null;
|
|
16
17
|
declare const defaultElement = "span";
|
|
17
|
-
export declare const StatusBadge:
|
|
18
|
+
export declare const StatusBadge: StatusBadgeComponent;
|
|
18
19
|
export {};
|
package/dist/BaseCard.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { PolymorphicComponentProps } from '@entur/utils';
|
|
3
3
|
import './BaseCard.scss';
|
|
4
4
|
export declare type BaseCardOwnProps = {
|
|
5
5
|
/** HTML-elementet eller React-komponenten som lager Card
|
|
@@ -10,7 +10,7 @@ export declare type BaseCardOwnProps = {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
};
|
|
13
|
-
export declare type BaseCardProps<
|
|
13
|
+
export declare type BaseCardProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, BaseCardOwnProps>;
|
|
14
14
|
declare const defaultElement = "div";
|
|
15
15
|
export declare const BaseCard: <E extends React.ElementType<any> = "div">({ children, className, as, ...rest }: BaseCardProps<E>) => JSX.Element;
|
|
16
16
|
export {};
|
package/dist/Contrast.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { PolymorphicComponentPropsWithRef } from '@entur/utils';
|
|
3
3
|
export declare type ContrastBaseProps = {
|
|
4
4
|
/** Ekstra klassenavn */
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare type ContrastProps<
|
|
7
|
+
export declare type ContrastProps<T extends React.ElementType> = PolymorphicComponentPropsWithRef<T, ContrastBaseProps>;
|
|
8
|
+
export declare type ContrastComponent = <T extends React.ElementType = typeof defaultElement>(props: ContrastProps<T>) => React.ReactElement | null;
|
|
8
9
|
declare const defaultElement = "div";
|
|
9
|
-
export declare const Contrast:
|
|
10
|
+
export declare const Contrast: ContrastComponent;
|
|
10
11
|
export declare const ContrastContext: React.Context<boolean>;
|
|
11
12
|
export declare const useContrast: () => boolean;
|
|
12
13
|
export {};
|
package/dist/MediaCard.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
2
|
import './MediaCard.scss';
|
|
3
|
-
import {
|
|
3
|
+
import { PolymorphicComponentProps } from '@entur/utils';
|
|
4
4
|
export declare type MediaCardOwnProps = {
|
|
5
5
|
/** HTML-elementet eller React-komponenten som lager bunnen (under media) av MediaCard
|
|
6
6
|
* @default 'a'
|
|
@@ -23,7 +23,7 @@ export declare type MediaCardOwnProps = {
|
|
|
23
23
|
*/
|
|
24
24
|
wholeCardAsElement?: boolean;
|
|
25
25
|
};
|
|
26
|
-
export declare type MediaCardProps<
|
|
26
|
+
export declare type MediaCardProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, MediaCardOwnProps>;
|
|
27
27
|
declare const defaultElement = "a";
|
|
28
28
|
export declare const MediaCard: <E extends React.ElementType<any> = "a">({ title, description, children, className, category, style, as, wholeCardAsElement: whole, ...rest }: MediaCardProps<E>) => JSX.Element;
|
|
29
29
|
export default MediaCard;
|
package/dist/NavigationCard.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './NavigationCard.scss';
|
|
3
|
-
import {
|
|
3
|
+
import { PolymorphicComponentProps } from '@entur/utils';
|
|
4
4
|
export declare type NavigationCardOwnProps = {
|
|
5
5
|
/** HTML-elementet eller React-komponenten som lager NavigationCard
|
|
6
6
|
* @default 'a'
|
|
@@ -23,7 +23,7 @@ export declare type NavigationCardOwnProps = {
|
|
|
23
23
|
*/
|
|
24
24
|
externalLink?: boolean;
|
|
25
25
|
};
|
|
26
|
-
export declare type NavigationCardProps<
|
|
26
|
+
export declare type NavigationCardProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, NavigationCardOwnProps>;
|
|
27
27
|
declare const defaultElement = "a";
|
|
28
28
|
export declare const NavigationCard: <E extends React.ElementType<any> = "a">({ title, children, titleIcon, compact, className, externalLink, as, ...rest }: NavigationCardProps<E>) => JSX.Element;
|
|
29
29
|
export {};
|
package/dist/Tag.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './Tag.scss';
|
|
3
|
-
import {
|
|
3
|
+
import { PolymorphicComponentProps } from '@entur/utils';
|
|
4
4
|
export declare type TagOwnProps = {
|
|
5
5
|
/** HTML-elementet eller React-komponenten som rendres
|
|
6
6
|
* @default 'div'
|
|
@@ -14,7 +14,7 @@ export declare type TagOwnProps = {
|
|
|
14
14
|
compact?: boolean;
|
|
15
15
|
children: React.ReactNode;
|
|
16
16
|
};
|
|
17
|
-
export declare type TagProps<
|
|
17
|
+
export declare type TagProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, TagOwnProps>;
|
|
18
18
|
declare const defaultElement = "div";
|
|
19
19
|
export declare const Tag: <E extends React.ElementType<any> = "div">({ className, children, compact, as, ...rest }: TagProps<E>) => JSX.Element;
|
|
20
20
|
export {};
|