@entur/typography 1.7.2 → 1.7.4

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,367 @@
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
+ ## [1.7.4](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.7.3...@entur/typography@1.7.4) (2023-01-19)
7
+
8
+ ### Performance Improvements
9
+
10
+ - **packages:** remove all referenves to react-polymorphic-types npm-package ([e47a304](https://bitbucket.org/enturas/design-system/commits/e47a304d87eb77adae5dd002e89f03026c7eadce))
11
+
12
+ ## [1.7.3](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.7.0...@entur/typography@1.7.3) (2022-12-09)
13
+
14
+ **Note:** Version bump only for package @entur/typography
15
+
16
+ ## [1.7.2](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.7.1...@entur/typography@1.7.2) (2022-11-24)
17
+
18
+ **Note:** Version bump only for package @entur/typography
19
+
20
+ ## [1.7.1](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.7.0...@entur/typography@1.7.1) (2022-10-31)
21
+
22
+ **Note:** Version bump only for package @entur/typography
23
+
24
+ ## [1.6.17](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.16...@entur/typography@1.6.17) (2022-08-31)
25
+
26
+ **Note:** Version bump only for package @entur/typography
27
+
28
+ ## [1.6.16](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.15...@entur/typography@1.6.16) (2022-08-24)
29
+
30
+ **Note:** Version bump only for package @entur/typography
31
+
32
+ ## [1.6.15](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.14...@entur/typography@1.6.15) (2022-08-09)
33
+
34
+ **Note:** Version bump only for package @entur/typography
35
+
36
+ ## [1.6.14](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.13...@entur/typography@1.6.14) (2022-06-02)
37
+
38
+ **Note:** Version bump only for package @entur/typography
39
+
40
+ ## [1.6.13](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.12...@entur/typography@1.6.13) (2022-05-13)
41
+
42
+ ### Bug Fixes
43
+
44
+ - **text elements:** fix margin prop values being overwritten be default value for margin on all text ([ce7b980](https://bitbucket.org/enturas/design-system/commits/ce7b980a0bb874dbcaa46c9ceb0cfdb7b5ef8f5a))
45
+
46
+ ## [1.6.12](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.11...@entur/typography@1.6.12) (2022-04-27)
47
+
48
+ **Note:** Version bump only for package @entur/typography
49
+
50
+ ## [1.6.11](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.10...@entur/typography@1.6.11) (2022-02-09)
51
+
52
+ **Note:** Version bump only for package @entur/typography
53
+
54
+ ## [1.6.10](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.9...@entur/typography@1.6.10) (2021-11-17)
55
+
56
+ **Note:** Version bump only for package @entur/typography
57
+
58
+ ## [1.6.9](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.8...@entur/typography@1.6.9) (2021-09-23)
59
+
60
+ **Note:** Version bump only for package @entur/typography
61
+
62
+ ## [1.6.8](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.7...@entur/typography@1.6.8) (2021-09-07)
63
+
64
+ ### Bug Fixes
65
+
66
+ - fix lint warnings and improve typings ([cc3d14c](https://bitbucket.org/enturas/design-system/commits/cc3d14c279d3cf82361ab49d04be5d0dd53675ed))
67
+ - utilize reworked focus token ([586758f](https://bitbucket.org/enturas/design-system/commits/586758fc86eb5aa52116c63c14ef033eb2e8b12f))
68
+
69
+ ## [1.6.7](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.6...@entur/typography@1.6.7) (2021-06-25)
70
+
71
+ ### Bug Fixes
72
+
73
+ - update dependencies ([8c7faed](https://bitbucket.org/enturas/design-system/commits/8c7faedd80b03e66b2946fcd7c504b582dd5e099))
74
+
75
+ ## [1.6.6](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.5...@entur/typography@1.6.6) (2021-04-23)
76
+
77
+ ### Bug Fixes
78
+
79
+ - utilize new focus tokens ([17113ef](https://bitbucket.org/enturas/design-system/commits/17113ef3f791c86fa6e19e71680fd5acdbae4990))
80
+
81
+ ## [1.6.5](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.4...@entur/typography@1.6.5) (2021-03-02)
82
+
83
+ ### Bug Fixes
84
+
85
+ - updated styling for preformatted and code text ([e4db06b](https://bitbucket.org/enturas/design-system/commits/e4db06b135d90e5f337d252edc4654db8bb9565e))
86
+
87
+ ## [1.6.4](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.3...@entur/typography@1.6.4) (2021-02-17)
88
+
89
+ ### Bug Fixes
90
+
91
+ - **polymorphism:** update polymorphism dependency ([dc4c31d](https://bitbucket.org/enturas/design-system/commits/dc4c31d8e891a46c1f0c1fbd0a6a026c1638accc))
92
+ - update to improved polymorphism dependency ([d7d4bbe](https://bitbucket.org/enturas/design-system/commits/d7d4bbe471a526cbdd3c9829ebb54bbcc850aae8))
93
+
94
+ ## [1.6.3](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.2...@entur/typography@1.6.3) (2021-01-20)
95
+
96
+ **Note:** Version bump only for package @entur/typography
97
+
98
+ ## [1.6.2](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.1...@entur/typography@1.6.2) (2021-01-13)
99
+
100
+ ### Bug Fixes
101
+
102
+ - transpose grey colors for updated color tokens ([d6a444c](https://bitbucket.org/enturas/design-system/commits/d6a444c2c37339b9bac0702738ed52693367d344))
103
+
104
+ ## [1.6.1](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.6.0...@entur/typography@1.6.1) (2021-01-05)
105
+
106
+ ### Bug Fixes
107
+
108
+ - **heading 3-5:** fix wrong html element for headings ([905d947](https://bitbucket.org/enturas/design-system/commits/905d9474dc19edea4f83cd3d5b02c1e02693c1ae))
109
+
110
+ # [1.6.0](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.5.0...@entur/typography@1.6.0) (2020-12-04)
111
+
112
+ ### Features
113
+
114
+ - **typography:** add support for polymorphic component typings ([12f52e9](https://bitbucket.org/enturas/design-system/commits/12f52e937bc02d8cf9566162df96bec739c1b724))
115
+
116
+ # [1.5.0](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.4.1...@entur/typography@1.5.0) (2020-10-23)
117
+
118
+ ### Features
119
+
120
+ - **numbered list:** support prop \`type\` found on html-ol elements ([173eaa0](https://bitbucket.org/enturas/design-system/commits/173eaa020f204bfb35954b90ec577a3e203a2073))
121
+
122
+ ## [1.4.1](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.4.0...@entur/typography@1.4.1) (2020-10-09)
123
+
124
+ ### Bug Fixes
125
+
126
+ - **unordered list:** add new list item styling ([f12383f](https://bitbucket.org/enturas/design-system/commits/f12383fb2835e2089517476efa6b5f36f0932ebe))
127
+
128
+ # [1.4.0](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.3.0...@entur/typography@1.4.0) (2020-09-14)
129
+
130
+ ### Features
131
+
132
+ - **typography:** add margin prop for all typography components ([0d78a21](https://bitbucket.org/enturas/design-system/commits/0d78a216e09bab2b2802dfd8a6023c1ef73cbedf))
133
+
134
+ # [1.3.0](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.2.3...@entur/typography@1.3.0) (2020-09-02)
135
+
136
+ ### Features
137
+
138
+ - **heading4 to 6:** increase font size on heading 4 to 6 ([a84479c](https://bitbucket.org/enturas/design-system/commits/a84479c849ac0458a3cc26b4460e871f6df532fa))
139
+
140
+ ## [1.2.3](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.2.2...@entur/typography@1.2.3) (2020-08-19)
141
+
142
+ ### Bug Fixes
143
+
144
+ - **numbered list:** new styling for numbered lists ([0011f35](https://bitbucket.org/enturas/design-system/commits/0011f355039f6e1562eec2bf4a91979fb9482ca2))
145
+
146
+ ## [1.2.2](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.2.1...@entur/typography@1.2.2) (2020-08-11)
147
+
148
+ **Note:** Version bump only for package @entur/typography
149
+
150
+ ## [1.2.1](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.2.0...@entur/typography@1.2.1) (2020-07-03)
151
+
152
+ **Note:** Version bump only for package @entur/typography
153
+
154
+ # [1.2.0](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.1.8...@entur/typography@1.2.0) (2020-06-17)
155
+
156
+ ### Bug Fixes
157
+
158
+ - fix styling of link underline ([76a29d9](https://bitbucket.org/enturas/design-system/commits/76a29d92ee9099aba7457a8f845b254434d01ad5))
159
+
160
+ ### Features
161
+
162
+ - add blockquote and blockquote footer component ([b0c4b10](https://bitbucket.org/enturas/design-system/commits/b0c4b1097c6ed6911f5d0d1a82dbba1de21e4c0c))
163
+
164
+ ## [1.1.8](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.1.7...@entur/typography@1.1.8) (2020-05-27)
165
+
166
+ **Note:** Version bump only for package @entur/typography
167
+
168
+ ## [1.1.7](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.1.6...@entur/typography@1.1.7) (2020-05-26)
169
+
170
+ ### Bug Fixes
171
+
172
+ - fix timing for link underline animation ([c8c3df5](https://bitbucket.org/enturas/design-system/commits/c8c3df57553e77898b3935ccb42bc22c36a6b0d1))
173
+
174
+ ## [1.1.6](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.1.5...@entur/typography@1.1.6) (2020-05-20)
175
+
176
+ ### Bug Fixes
177
+
178
+ - fix underline bug for link ([634950e](https://bitbucket.org/enturas/design-system/commits/634950e4879c3623e5a92a6c3fa4b5fb2250226f))
179
+
180
+ ## [1.1.5](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.1.4...@entur/typography@1.1.5) (2020-04-27)
181
+
182
+ ### Bug Fixes
183
+
184
+ - restyle link underline, with hover animation ([4f103c3](https://bitbucket.org/enturas/design-system/commits/4f103c3a78a0913cd0c22f4a3c1c76173fd9e16d))
185
+
186
+ ## [1.1.4](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.1.3...@entur/typography@1.1.4) (2020-04-23)
187
+
188
+ ### Bug Fixes
189
+
190
+ - update link with new focus styling ([a95361f](https://bitbucket.org/enturas/design-system/commits/a95361fe075b9fa8e7f7af7ed0fcc03dd7eed3d7))
191
+
192
+ ## [1.1.3](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.1.2...@entur/typography@1.1.3) (2020-03-20)
193
+
194
+ **Note:** Version bump only for package @entur/typography
195
+
196
+ ## [1.1.2](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.1.1...@entur/typography@1.1.2) (2020-03-18)
197
+
198
+ **Note:** Version bump only for package @entur/typography
199
+
200
+ ## [1.1.1](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.1.0...@entur/typography@1.1.1) (2020-02-20)
201
+
202
+ ### Bug Fixes
203
+
204
+ - readjusting typography for small surfaces ([033ecaa](https://bitbucket.org/enturas/design-system/commits/033ecaad78be039b0290dbacba80604b502cd4cd))
205
+
206
+ # [1.1.0](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.0.3...@entur/typography@1.1.0) (2020-02-14)
207
+
208
+ ### Bug Fixes
209
+
210
+ - fix typo in fonts import ([f2430ab](https://bitbucket.org/enturas/design-system/commits/f2430abf8a2cc0e1def2dabd85068cf511236ba7))
211
+ - update fonts with new entur watermarked fonts ([97de7b7](https://bitbucket.org/enturas/design-system/commits/97de7b761ea044faafc8efc8f423bee92e94b279))
212
+
213
+ ### Features
214
+
215
+ - **fonts:** include web fonts in the typography package directly ([5043c27](https://bitbucket.org/enturas/design-system/commits/5043c27e88fc943d14b2950ac28d86b64eec819c))
216
+
217
+ ### Reverts
218
+
219
+ - revert config changes ([53076fd](https://bitbucket.org/enturas/design-system/commits/53076fd1ef1c02bbd1c426a172562091b585c88d))
220
+
221
+ ## [1.0.3](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.0.2...@entur/typography@1.0.3) (2020-02-10)
222
+
223
+ ### Bug Fixes
224
+
225
+ - better font sizes for smaller screens ([721fe06](https://bitbucket.org/enturas/design-system/commits/721fe062652df71c6520acd58a839310b2a4807f))
226
+ - update colors for preformatted and code text ([846d144](https://bitbucket.org/enturas/design-system/commits/846d144df0402bbc27bfd6997aba2db59303c85d))
227
+
228
+ ## [1.0.2](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.0.1...@entur/typography@1.0.2) (2020-02-05)
229
+
230
+ ### Bug Fixes
231
+
232
+ - remove test-files from build process ([e0b24af](https://bitbucket.org/enturas/design-system/commits/e0b24af05d5c2ad8de4ae587d83c389495235890))
233
+
234
+ ## [1.0.1](https://bitbucket.org/enturas/design-system/compare/@entur/typography@1.0.0...@entur/typography@1.0.1) (2020-01-28)
235
+
236
+ **Note:** Version bump only for package @entur/typography
237
+
238
+ # [1.0.0](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.7.4...@entur/typography@1.0.0) (2020-01-27)
239
+
240
+ ### Bug Fixes
241
+
242
+ - add marigin prop for paragraph component ([c7c932a](https://bitbucket.org/enturas/design-system/commits/c7c932ac057e9c393200b6f84093ea62966fa6bd))
243
+ - ensure proper usage of margin props for paragraph ([c3fd065](https://bitbucket.org/enturas/design-system/commits/c3fd06501973537c5b6318cdd6a6090f88bce33d))
244
+ - updating margins for header and paragraph components ([a7cc7a0](https://bitbucket.org/enturas/design-system/commits/a7cc7a0cb15100613e4edca89fa18424c59d7987))
245
+ - **types:** place types in the correct place ([acace09](https://bitbucket.org/enturas/design-system/commits/acace09ec0e258c5cff3a65e13ab29d6603780d9))
246
+ - updating marigins for all typography components ([29e9a27](https://bitbucket.org/enturas/design-system/commits/29e9a273c6c45a7a417f59b59e9ec91971d72e8a))
247
+
248
+ ### BREAKING CHANGES
249
+
250
+ - as some typography components now have either removed or added marign,
251
+ if these have been used directly in components or other places where
252
+ their margins were used for styling purposes, you may experience issues
253
+ with this. So doublecheck your usage of Heading1-6 and Paragraph in places
254
+ where their margins may be interferring
255
+
256
+ ## [0.7.4](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.7.3...@entur/typography@0.7.4) (2020-01-20)
257
+
258
+ ### Bug Fixes
259
+
260
+ - fixing use of fallback font, and adding font family as css variable ([a4d28c4](https://bitbucket.org/enturas/design-system/commits/a4d28c42768a2b8d6faee4565a9fe6b9be7034f9))
261
+
262
+ ## [0.7.3](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.7.2...@entur/typography@0.7.3) (2020-01-14)
263
+
264
+ **Note:** Version bump only for package @entur/typography
265
+
266
+ ## [0.7.2](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.7.1...@entur/typography@0.7.2) (2020-01-13)
267
+
268
+ ### Bug Fixes
269
+
270
+ - **Typography:** added var() ([02ea259](https://bitbucket.org/enturas/design-system/commits/02ea2594c9064484eebb06529887c4e34c8479c7))
271
+ - **Typography:** switched color: inherit with css prop ([ccd3a04](https://bitbucket.org/enturas/design-system/commits/ccd3a046b78be146f1b136211f4a3e92c7e31df9))
272
+
273
+ ## [0.7.1](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.7.0...@entur/typography@0.7.1) (2020-01-08)
274
+
275
+ ### Bug Fixes
276
+
277
+ - warn in development if the developer have forgotten the CSS ([e5c30fc](https://bitbucket.org/enturas/design-system/commits/e5c30fc08624ef22c02773892778abd92205c6b0))
278
+
279
+ # [0.7.0](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.6.1...@entur/typography@0.7.0) (2020-01-06)
280
+
281
+ ### Bug Fixes
282
+
283
+ - new styling for preformatted and code text ([c929097](https://bitbucket.org/enturas/design-system/commits/c9290975269797e8080362336b9d2cac65e028e9))
284
+
285
+ ### Features
286
+
287
+ - **UnorderedList, NumberedList, ListItem:** add new list components ([96de00e](https://bitbucket.org/enturas/design-system/commits/96de00e21d852702e1ab23d388a807d5ad035580))
288
+
289
+ ## [0.6.1](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.6.0...@entur/typography@0.6.1) (2019-12-10)
290
+
291
+ ### Bug Fixes
292
+
293
+ - fixing the api for the margin-prop, used in headers ([85e04d3](https://bitbucket.org/enturas/design-system/commits/85e04d3db248a66ec6b05ad85ba02ef7438f76e8))
294
+
295
+ # [0.6.0](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.5.0...@entur/typography@0.6.0) (2019-11-29)
296
+
297
+ ### Features
298
+
299
+ - **Heading1-6:** add margin prop to all headings ([a167485](https://bitbucket.org/enturas/design-system/commits/a1674852143e8a99bff7c2dbebf20ff09aeea977))
300
+
301
+ # [0.5.0](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.4.5...@entur/typography@0.5.0) (2019-11-22)
302
+
303
+ ### Features
304
+
305
+ - **types:** exporting all public types for public components ([4a277ab](https://bitbucket.org/enturas/design-system/commits/4a277ab266fdb32a6760821a07b1c6cc716bac85))
306
+
307
+ ## [0.4.5](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.4.4...@entur/typography@0.4.5) (2019-11-18)
308
+
309
+ ### Bug Fixes
310
+
311
+ - add custom styles for h6 headings ([4f8e643](https://bitbucket.org/enturas/design-system/commits/4f8e6433f05f51f3db3c2be2b6aeb08b52d94931))
312
+ - **type:** fix broken types due to duplicate declarations ([01e4e21](https://bitbucket.org/enturas/design-system/commits/01e4e215c57b3a812c79d69ded2834401c35d4fe))
313
+
314
+ ## [0.4.4](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.4.3...@entur/typography@0.4.4) (2019-11-14)
315
+
316
+ ### Bug Fixes
317
+
318
+ - fix lint errors ([8539282](https://bitbucket.org/enturas/design-system/commits/8539282c04b01cc1459109cbc9c4111dfcdaa5f4))
319
+ - **css classnames:** fixing naming collisions with CSS classes ([a93ca43](https://bitbucket.org/enturas/design-system/commits/a93ca435d3a01d61d8f02694a672686b9e943a66))
320
+ - **headings:** skip setting horizontal margins for headings ([a94f54a](https://bitbucket.org/enturas/design-system/commits/a94f54a92a65f2939438c6a8f8be895bd64a99d2))
321
+
322
+ ## [0.4.3](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.4.2...@entur/typography@0.4.3) (2019-11-07)
323
+
324
+ ### Bug Fixes
325
+
326
+ - fix issue where fallback font was used ([8c31176](https://bitbucket.org/enturas/design-system/commits/8c31176ded49432692820d6cbcfcf07d784e88fc))
327
+
328
+ ## [0.4.2](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.4.1...@entur/typography@0.4.2) (2019-11-06)
329
+
330
+ ### Bug Fixes
331
+
332
+ - **CodeText:** add border to inline code text component ([83b76ae](https://bitbucket.org/enturas/design-system/commits/83b76aefce6c8972208cae8652b89ae84c763b12))
333
+ - **PreformattedText:** add border ([8bc0b47](https://bitbucket.org/enturas/design-system/commits/8bc0b477b7a213f87aa1af169d6fa48363514419))
334
+
335
+ ## [0.4.1](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.4.0...@entur/typography@0.4.1) (2019-10-30)
336
+
337
+ ### Bug Fixes
338
+
339
+ - migrate to latest version of space tokens ([4330496](https://bitbucket.org/enturas/design-system/commits/4330496e269bf628f7b9b7aec75f704800201101))
340
+ - update all packages to use new tokens ([4847835](https://bitbucket.org/enturas/design-system/commits/48478359b0e562ba828e06d9b5c57239316805c2))
341
+ - **Link:** let links inherit the font-size ([83a2db5](https://bitbucket.org/enturas/design-system/commits/83a2db57c52c466f5c97d1a8f41d6315eb496bb1))
342
+
343
+ # [0.4.0](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.3.0...@entur/typography@0.4.0) (2019-10-22)
344
+
345
+ ### Features
346
+
347
+ - **docs:** added install and import code examples for components ([3947218](https://bitbucket.org/enturas/design-system/commits/394721862f307913a7e553ee9266ad335bb98d7d))
348
+ - **small typography:** added Small typography and documentation ([f2c6a0a](https://bitbucket.org/enturas/design-system/commits/f2c6a0a108b177efad32ca0fec0733a2072bd9d1))
349
+ - **typography:** add new component - CodeText ([474721d](https://bitbucket.org/enturas/design-system/commits/474721dac9ca84b0d1ecfb7a93ad339ba0653184))
350
+
351
+ # [0.3.0](https://bitbucket.org/enturas/design-system/compare/@entur/typography@0.2.0...@entur/typography@0.3.0) (2019-10-07)
352
+
353
+ ### Bug Fixes
354
+
355
+ - **typography:** add wildcard type definition to all typography types ([b2ebb9e](https://bitbucket.org/enturas/design-system/commits/b2ebb9e))
356
+
357
+ ### Features
358
+
359
+ - **typography:** add LeadParagraph component ([64a4352](https://bitbucket.org/enturas/design-system/commits/64a4352))
360
+ - **typography:** add new component \`PreformattedText\` ([6e8dc24](https://bitbucket.org/enturas/design-system/commits/6e8dc24))
361
+
362
+ # 0.2.0 (2019-09-25)
363
+
364
+ ### Features
365
+
366
+ - **typography:** add new package typography ([dca4b0c](https://bitbucket.org/enturas/design-system/commits/dca4b0c))
367
+ - **typography:** implement a basic typography package ([a1da1ae](https://bitbucket.org/enturas/design-system/commits/a1da1ae))
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  declare type BaseHeadingOwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres */
5
5
  as: string | React.ElementType;
@@ -13,6 +13,6 @@ declare type BaseHeadingOwnProps = {
13
13
  level: 1 | 2 | 3 | 4 | 5 | 6;
14
14
  };
15
15
  declare const defaultElement = "h1";
16
- export declare type BaseHeadingProps<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<BaseHeadingOwnProps, T>;
16
+ export declare type BaseHeadingProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, BaseHeadingOwnProps>;
17
17
  export declare const BaseHeading: <E extends React.ElementType<any> = "h1">({ className, level, margin, as, ...rest }: BaseHeadingProps<E>) => JSX.Element;
18
18
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type CodeTextOwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "code"
@@ -10,7 +10,7 @@ export declare type CodeTextOwnProps = {
10
10
  /** Innholdet */
11
11
  children: React.ReactNode;
12
12
  };
13
- export declare type CodeTextProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<CodeTextOwnProps, E>;
13
+ export declare type CodeTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, CodeTextOwnProps>;
14
14
  declare const defaultElement = "code";
15
15
  export declare const CodeText: <E extends React.ElementType<any> = "code">({ className, as, ...rest }: CodeTextProps<E>) => JSX.Element;
16
16
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type EmphasizedTextOwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "em"
@@ -14,7 +14,7 @@ export declare type EmphasizedTextOwnProps = {
14
14
  */
15
15
  margin?: 'top' | 'bottom' | 'both' | 'none';
16
16
  };
17
- export declare type EmphasizedTextProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<EmphasizedTextOwnProps, E>;
17
+ export declare type EmphasizedTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, EmphasizedTextOwnProps>;
18
18
  declare const defaultElement = "em";
19
19
  export declare const EmphasizedText: <E extends React.ElementType<any> = "em">({ className, margin, as, ...rest }: EmphasizedTextProps<E>) => JSX.Element;
20
20
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type Heading1OwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "h1"
@@ -15,6 +15,6 @@ export declare type Heading1OwnProps = {
15
15
  margin?: 'top' | 'bottom' | 'both' | 'none';
16
16
  };
17
17
  declare const defaultElement = "h1";
18
- export declare type Heading1Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading1OwnProps, T>;
18
+ export declare type Heading1Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading1OwnProps>;
19
19
  export declare const Heading1: <E extends React.ElementType<any> = "h1">({ margin, children, as, ...rest }: Heading1Props<E>) => JSX.Element;
20
20
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type Heading2OwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "h2"
@@ -14,7 +14,7 @@ export declare type Heading2OwnProps = {
14
14
  */
15
15
  margin?: 'top' | 'bottom' | 'both' | 'none';
16
16
  };
17
- export declare type Heading2Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading2OwnProps, T>;
17
+ export declare type Heading2Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading2OwnProps>;
18
18
  declare const defaultElement = "h2";
19
19
  export declare const Heading2: <E extends React.ElementType<any> = "h2">({ margin, children, as, ...rest }: Heading2Props<E>) => JSX.Element;
20
20
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type Heading3OwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "h3"
@@ -14,7 +14,7 @@ export declare type Heading3OwnProps = {
14
14
  */
15
15
  margin?: 'top' | 'bottom' | 'both' | 'none';
16
16
  };
17
- export declare type Heading3Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading3OwnProps, T>;
17
+ export declare type Heading3Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading3OwnProps>;
18
18
  declare const defaultElement = "h3";
19
19
  export declare const Heading3: <E extends React.ElementType<any> = "h3">({ margin, children, as, ...rest }: Heading3Props<E>) => JSX.Element;
20
20
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type Heading4OwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "h4"
@@ -14,7 +14,7 @@ export declare type Heading4OwnProps = {
14
14
  */
15
15
  margin?: 'top' | 'bottom' | 'both' | 'none';
16
16
  };
17
- export declare type Heading4Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading4OwnProps, T>;
17
+ export declare type Heading4Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading4OwnProps>;
18
18
  declare const defaultElement = "h4";
19
19
  export declare const Heading4: <E extends React.ElementType<any> = "h4">({ margin, children, as, ...rest }: Heading4Props<E>) => JSX.Element;
20
20
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type Heading5OwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "h5"
@@ -14,7 +14,7 @@ export declare type Heading5OwnProps = {
14
14
  */
15
15
  margin?: 'top' | 'bottom' | 'both' | 'none';
16
16
  };
17
- export declare type Heading5Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading5OwnProps, T>;
17
+ export declare type Heading5Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading5OwnProps>;
18
18
  declare const defaultElement = "h5";
19
19
  export declare const Heading5: <E extends React.ElementType<any> = "h5">({ margin, children, as, ...rest }: Heading5Props<E>) => JSX.Element;
20
20
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type Heading6OwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "h6"
@@ -14,7 +14,7 @@ export declare type Heading6OwnProps = {
14
14
  */
15
15
  margin?: 'top' | 'bottom' | 'both' | 'none';
16
16
  };
17
- export declare type Heading6Props<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<Heading6OwnProps, T>;
17
+ export declare type Heading6Props<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, Heading6OwnProps>;
18
18
  declare const defaultElement = "h6";
19
19
  export declare const Heading6: <E extends React.ElementType<any> = "h6">({ margin, children, as, ...rest }: Heading6Props<E>) => JSX.Element;
20
20
  export {};
package/dist/Label.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type LabelOwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "label"
@@ -14,7 +14,7 @@ export declare type LabelOwnProps = {
14
14
  */
15
15
  margin?: 'top' | 'bottom' | 'both' | 'none';
16
16
  };
17
- export declare type LabelProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<LabelOwnProps, E>;
17
+ export declare type LabelProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LabelOwnProps>;
18
18
  declare const defaultElement = "label";
19
19
  export declare const Label: <E extends React.ElementType<any> = "label">({ className, margin, as, ...rest }: LabelProps<E>) => JSX.Element;
20
20
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type LeadParagraphOwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "p"
@@ -14,7 +14,7 @@ export declare type LeadParagraphOwnProps = {
14
14
  */
15
15
  margin?: 'top' | 'bottom' | 'both' | 'none';
16
16
  };
17
- export declare type LeadParagraphProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<LeadParagraphOwnProps, E>;
17
+ export declare type LeadParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LeadParagraphOwnProps>;
18
18
  declare const defaultElement = "p";
19
19
  export declare const LeadParagraph: <E extends React.ElementType<any> = "p">({ className, margin, as, ...rest }: LeadParagraphProps<E>) => JSX.Element;
20
20
  export {};
package/dist/Link.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type LinkOwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "a"
@@ -14,7 +14,7 @@ export declare type LinkOwnProps = {
14
14
  */
15
15
  margin?: 'top' | 'bottom' | 'both' | 'none';
16
16
  };
17
- export declare type LinkProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<LinkOwnProps, E>;
17
+ export declare type LinkProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LinkOwnProps>;
18
18
  declare const defaultElement = "a";
19
19
  export declare const Link: <E extends React.ElementType<any> = "a">({ className, margin, as, ...rest }: LinkProps<E>) => JSX.Element;
20
20
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type ParagraphOwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "p"
@@ -14,7 +14,7 @@ export declare type ParagraphOwnProps = {
14
14
  */
15
15
  margin?: 'bottom' | 'none';
16
16
  };
17
- export declare type ParagraphProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<ParagraphOwnProps, E>;
17
+ export declare type ParagraphProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, ParagraphOwnProps>;
18
18
  declare const defaultElement = "p";
19
19
  export declare const Paragraph: <E extends React.ElementType<any> = "p">({ margin, className, as, ...rest }: ParagraphProps<E>) => JSX.Element;
20
20
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type PreformattedTextOwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "pre"
@@ -10,5 +10,5 @@ export declare type PreformattedTextOwnProps = {
10
10
  /** Innholdet */
11
11
  children: React.ReactNode;
12
12
  };
13
- export declare type PreformattedTextProps<E extends React.ElementType> = PolymorphicPropsWithoutRef<PreformattedTextOwnProps, E>;
13
+ export declare type PreformattedTextProps<T extends React.ElementType> = PolymorphicComponentProps<T, PreformattedTextOwnProps>;
14
14
  export declare const PreformattedText: <E extends React.ElementType<any> = "pre">({ className, as, ...rest }: PreformattedTextProps<E>) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type SmallTextOwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "span"
@@ -14,7 +14,7 @@ export declare type SmallTextOwnProps = {
14
14
  */
15
15
  margin?: 'top' | 'bottom' | 'both' | 'none';
16
16
  };
17
- export declare type SmallTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<SmallTextOwnProps, T>;
17
+ export declare type SmallTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, SmallTextOwnProps>;
18
18
  declare const defaultElement = "span";
19
19
  export declare const SmallText: <E extends React.ElementType<any> = "span">({ className, margin, as, ...rest }: SmallTextProps<E>) => JSX.Element;
20
20
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PolymorphicPropsWithoutRef } from '@entur/utils';
2
+ import { PolymorphicComponentProps } from '@entur/utils';
3
3
  export declare type StrongTextOwnProps = {
4
4
  /** HTML-elementet eller React-komponenten som rendres
5
5
  * @default "strong"
@@ -14,7 +14,7 @@ export declare type StrongTextOwnProps = {
14
14
  */
15
15
  margin?: 'top' | 'bottom' | 'both' | 'none';
16
16
  };
17
- export declare type StrongTextProps<E extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<StrongTextOwnProps, E>;
17
+ export declare type StrongTextProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, StrongTextOwnProps>;
18
18
  declare const defaultElement = "strong";
19
19
  export declare const StrongText: <E extends React.ElementType<any> = "strong">({ className, margin, as, ...rest }: StrongTextProps<E>) => JSX.Element;
20
20
  export {};