@sb1/ffe-cards-react 4.0.7 → 5.0.3

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 DELETED
@@ -1,488 +0,0 @@
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
- ## [4.0.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@4.0.6...@sb1/ffe-cards-react@4.0.7) (2021-03-15)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * **ffe-cards-react:** broadens version of peer dependencies ([45f5004](https://github.com/SpareBank1/designsystem/commit/45f5004d24eb11d5743c73935c91f0efccee2cbd))
12
-
13
-
14
-
15
-
16
-
17
- ## [4.0.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@4.0.5...@sb1/ffe-cards-react@4.0.6) (2021-02-02)
18
-
19
-
20
- ### Bug Fixes
21
-
22
- * packages/ffe-cards-react/package.json to reduce vulnerabilities ([2fdb9c8](https://github.com/SpareBank1/designsystem/commit/2fdb9c8dd37b1aa005ed77f3009bb613dc1c0ab8))
23
-
24
-
25
-
26
-
27
-
28
- ## [4.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@4.0.4...@sb1/ffe-cards-react@4.0.5) (2021-02-02)
29
-
30
-
31
- ### Bug Fixes
32
-
33
- * **ffe-cards-react:** reduce vulnerabilities ([5d5b8c3](https://github.com/SpareBank1/designsystem/commit/5d5b8c36df973908e5823100f7a967f9fb0442bd))
34
-
35
-
36
-
37
-
38
-
39
- ## [4.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@4.0.3...@sb1/ffe-cards-react@4.0.4) (2020-11-18)
40
-
41
- **Note:** Version bump only for package @sb1/ffe-cards-react
42
-
43
-
44
-
45
-
46
-
47
- ## [4.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@4.0.2...@sb1/ffe-cards-react@4.0.3) (2020-09-28)
48
-
49
-
50
- ### Bug Fixes
51
-
52
- * **ffe-cards-react:** cardbase need to be able to be a button or anchor ([3cc02c1](https://github.com/SpareBank1/designsystem/commit/3cc02c181382593fb12958b9eb97a52d6a7e7715))
53
-
54
-
55
-
56
-
57
-
58
- ## [4.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@4.0.1...@sb1/ffe-cards-react@4.0.2) (2020-09-15)
59
-
60
- **Note:** Version bump only for package @sb1/ffe-cards-react
61
-
62
-
63
-
64
-
65
-
66
- ## [4.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@4.0.0...@sb1/ffe-cards-react@4.0.1) (2020-08-27)
67
-
68
- **Note:** Version bump only for package @sb1/ffe-cards-react
69
-
70
-
71
-
72
-
73
-
74
- # [4.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.1.5...@sb1/ffe-cards-react@4.0.0) (2020-08-12)
75
-
76
-
77
- ### Features
78
-
79
- * **ffe-cards-react:** forward ref ([08aacf1](https://github.com/SpareBank1/designsystem/commit/08aacf180574aa1bdde04e6af40a855e1f633db1))
80
-
81
-
82
- ### BREAKING CHANGES
83
-
84
- * **ffe-cards-react:** "When you start using forwardRef in a component library, you should treat it as a breaking change and release a new major version of your library. This is because your library likely has an observably different behavior (such as what refs get assigned to, and what types are exported), and this can break apps and other libraries that depend on the old behavior."
85
-
86
-
87
-
88
-
89
-
90
- ## [3.1.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.1.4...@sb1/ffe-cards-react@3.1.5) (2020-08-04)
91
-
92
- **Note:** Version bump only for package @sb1/ffe-cards-react
93
-
94
-
95
-
96
-
97
-
98
- ## [3.1.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.1.3...@sb1/ffe-cards-react@3.1.4) (2020-07-30)
99
-
100
- **Note:** Version bump only for package @sb1/ffe-cards-react
101
-
102
-
103
-
104
-
105
-
106
- ## [3.1.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.1.2...@sb1/ffe-cards-react@3.1.3) (2020-06-29)
107
-
108
- **Note:** Version bump only for package @sb1/ffe-cards-react
109
-
110
-
111
-
112
-
113
-
114
- ## [3.1.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.1.1...@sb1/ffe-cards-react@3.1.2) (2020-06-24)
115
-
116
- **Note:** Version bump only for package @sb1/ffe-cards-react
117
-
118
-
119
-
120
-
121
-
122
- ## [3.1.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.1.0...@sb1/ffe-cards-react@3.1.1) (2020-05-27)
123
-
124
- **Note:** Version bump only for package @sb1/ffe-cards-react
125
-
126
-
127
-
128
-
129
-
130
- # [3.1.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.14...@sb1/ffe-cards-react@3.1.0) (2020-04-23)
131
-
132
-
133
- ### Features
134
-
135
- * **ffe-cards-react:** add typescript types ([4781651](https://github.com/SpareBank1/designsystem/commit/47816514664d2da4d78c072fec8347b99bc35b8e))
136
-
137
-
138
-
139
-
140
-
141
- ## [3.0.14](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.13...@sb1/ffe-cards-react@3.0.14) (2020-03-31)
142
-
143
- **Note:** Version bump only for package @sb1/ffe-cards-react
144
-
145
- ## [3.0.13](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.12...@sb1/ffe-cards-react@3.0.13) (2020-03-18)
146
-
147
- **Note:** Version bump only for package @sb1/ffe-cards-react
148
-
149
- ## [3.0.12](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.11...@sb1/ffe-cards-react@3.0.12) (2020-03-16)
150
-
151
- **Note:** Version bump only for package @sb1/ffe-cards-react
152
-
153
- ## [3.0.11](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.10...@sb1/ffe-cards-react@3.0.11) (2020-03-13)
154
-
155
- **Note:** Version bump only for package @sb1/ffe-cards-react
156
-
157
- ## [3.0.10](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.9...@sb1/ffe-cards-react@3.0.10) (2020-03-10)
158
-
159
- **Note:** Version bump only for package @sb1/ffe-cards-react
160
-
161
- ## [3.0.9](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.8...@sb1/ffe-cards-react@3.0.9) (2020-03-06)
162
-
163
- **Note:** Version bump only for package @sb1/ffe-cards-react
164
-
165
- ## [3.0.8](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.7...@sb1/ffe-cards-react@3.0.8) (2020-02-26)
166
-
167
- **Note:** Version bump only for package @sb1/ffe-cards-react
168
-
169
- ## [3.0.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.6...@sb1/ffe-cards-react@3.0.7) (2020-02-26)
170
-
171
- **Note:** Version bump only for package @sb1/ffe-cards-react
172
-
173
- ## [3.0.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.4...@sb1/ffe-cards-react@3.0.6) (2020-02-26)
174
-
175
- **Note:** Version bump only for package @sb1/ffe-cards-react
176
-
177
- ## [3.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.4...@sb1/ffe-cards-react@3.0.5) (2020-02-25)
178
-
179
- **Note:** Version bump only for package @sb1/ffe-cards-react
180
-
181
- ## [3.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.3...@sb1/ffe-cards-react@3.0.4) (2019-11-20)
182
-
183
- **Note:** Version bump only for package @sb1/ffe-cards-react
184
-
185
- ## [3.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.2...@sb1/ffe-cards-react@3.0.3) (2019-10-28)
186
-
187
- **Note:** Version bump only for package @sb1/ffe-cards-react
188
-
189
- ## [3.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.1...@sb1/ffe-cards-react@3.0.2) (2019-10-09)
190
-
191
- ### Bug Fixes
192
-
193
- - **ffe-cards-react:** bump prop-types ([a6c0103](https://github.com/SpareBank1/designsystem/commit/a6c0103305944bca21f085b0fcb383fac5d5e0c9))
194
-
195
- ## [3.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@3.0.0...@sb1/ffe-cards-react@3.0.1) (2019-10-03)
196
-
197
- ### Bug Fixes
198
-
199
- - **ffe-cards-react:** element prop-type needs elementType ([fdff146](https://github.com/SpareBank1/designsystem/commit/fdff146))
200
-
201
- # [3.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.2.6...@sb1/ffe-cards-react@3.0.0) (2019-08-27)
202
-
203
- ### chore
204
-
205
- - bump React to 16.9 to allow for using hooks etc ([e3901f1](https://github.com/SpareBank1/designsystem/commit/e3901f1))
206
-
207
- ### BREAKING CHANGES
208
-
209
- - peerDep of React is raised to 16.9. While this in itself
210
- isn't a breaking change, it allows for the use of hooks in later releases.
211
- Such changes would just be a minor version, or even a patch, but without
212
- this major version bump it would result in a runtime error for consumers.
213
-
214
- ## [2.2.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.2.5...@sb1/ffe-cards-react@2.2.6) (2019-08-12)
215
-
216
- **Note:** Version bump only for package @sb1/ffe-cards-react
217
-
218
- ## [2.2.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.2.4...@sb1/ffe-cards-react@2.2.5) (2019-04-24)
219
-
220
- **Note:** Version bump only for package @sb1/ffe-cards-react
221
-
222
- ## [2.2.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.2.3...@sb1/ffe-cards-react@2.2.4) (2019-04-08)
223
-
224
- **Note:** Version bump only for package @sb1/ffe-cards-react
225
-
226
- ## [2.2.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.2.2...@sb1/ffe-cards-react@2.2.3) (2019-03-25)
227
-
228
- **Note:** Version bump only for package @sb1/ffe-cards-react
229
-
230
- ## [2.2.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.2.1...@sb1/ffe-cards-react@2.2.2) (2019-02-18)
231
-
232
- **Note:** Version bump only for package @sb1/ffe-cards-react
233
-
234
- ## [2.2.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.2.0...@sb1/ffe-cards-react@2.2.1) (2019-01-29)
235
-
236
- **Note:** Version bump only for package @sb1/ffe-cards-react
237
-
238
- # [2.2.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.1.5...@sb1/ffe-cards-react@2.2.0) (2019-01-10)
239
-
240
- ### Features
241
-
242
- - **ffe-cards-react:** left align text card and toggle title wrapping ([93f6454](https://github.com/SpareBank1/designsystem/commit/93f6454))
243
-
244
- ## [2.1.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.1.4...@sb1/ffe-cards-react@2.1.5) (2018-12-19)
245
-
246
- **Note:** Version bump only for package @sb1/ffe-cards-react
247
-
248
- ## [2.1.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.1.3...@sb1/ffe-cards-react@2.1.4) (2018-12-18)
249
-
250
- **Note:** Version bump only for package @sb1/ffe-cards-react
251
-
252
- ## [2.1.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.1.2...@sb1/ffe-cards-react@2.1.3) (2018-12-11)
253
-
254
- ### Bug Fixes
255
-
256
- - Build tree shakeable packages ([fb4a9ea](https://github.com/SpareBank1/designsystem/commit/fb4a9ea))
257
-
258
- ## [2.1.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.1.1...@sb1/ffe-cards-react@2.1.2) (2018-12-04)
259
-
260
- **Note:** Version bump only for package @sb1/ffe-cards-react
261
-
262
- ## [2.1.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.1.0...@sb1/ffe-cards-react@2.1.1) (2018-11-26)
263
-
264
- **Note:** Version bump only for package @sb1/ffe-cards-react
265
-
266
- # [2.1.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.15...@sb1/ffe-cards-react@2.1.0) (2018-11-19)
267
-
268
- ### Features
269
-
270
- - **ffe-cards-react:** add new card components ([d083b00](https://github.com/SpareBank1/designsystem/commit/d083b00))
271
-
272
- ## [2.0.15](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.14...@sb1/ffe-cards-react@2.0.15) (2018-11-16)
273
-
274
- **Note:** Version bump only for package @sb1/ffe-cards-react
275
-
276
- ## [2.0.14](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.13...@sb1/ffe-cards-react@2.0.14) (2018-11-13)
277
-
278
- **Note:** Version bump only for package @sb1/ffe-cards-react
279
-
280
- ## [2.0.13](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.12...@sb1/ffe-cards-react@2.0.13) (2018-10-17)
281
-
282
- **Note:** Version bump only for package @sb1/ffe-cards-react
283
-
284
- <a name="2.0.12"></a>
285
-
286
- ## [2.0.12](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.11...@sb1/ffe-cards-react@2.0.12) (2018-08-09)
287
-
288
- **Note:** Version bump only for package @sb1/ffe-cards-react
289
-
290
- <a name="2.0.11"></a>
291
-
292
- ## [2.0.11](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.10...@sb1/ffe-cards-react@2.0.11) (2018-06-14)
293
-
294
- **Note:** Version bump only for package @sb1/ffe-cards-react
295
-
296
- <a name="2.0.10"></a>
297
-
298
- ## [2.0.10](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.9...@sb1/ffe-cards-react@2.0.10) (2018-06-04)
299
-
300
- **Note:** Version bump only for package @sb1/ffe-cards-react
301
-
302
- <a name="2.0.9"></a>
303
-
304
- ## [2.0.9](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.8...@sb1/ffe-cards-react@2.0.9) (2018-06-04)
305
-
306
- **Note:** Version bump only for package @sb1/ffe-cards-react
307
-
308
- <a name="2.0.8"></a>
309
-
310
- ## [2.0.8](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.7...@sb1/ffe-cards-react@2.0.8) (2018-05-29)
311
-
312
- **Note:** Version bump only for package @sb1/ffe-cards-react
313
-
314
- <a name="2.0.7"></a>
315
-
316
- ## [2.0.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.6...@sb1/ffe-cards-react@2.0.7) (2018-05-04)
317
-
318
- **Note:** Version bump only for package @sb1/ffe-cards-react
319
-
320
- <a name="2.0.6"></a>
321
-
322
- ## [2.0.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.5...@sb1/ffe-cards-react@2.0.6) (2018-04-11)
323
-
324
- **Note:** Version bump only for package @sb1/ffe-cards-react
325
-
326
- <a name="2.0.5"></a>
327
-
328
- ## [2.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.4...@sb1/ffe-cards-react@2.0.5) (2018-04-06)
329
-
330
- **Note:** Version bump only for package @sb1/ffe-cards-react
331
-
332
- <a name="2.0.4"></a>
333
-
334
- ## [2.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.3...@sb1/ffe-cards-react@2.0.4) (2018-03-27)
335
-
336
- **Note:** Version bump only for package @sb1/ffe-cards-react
337
-
338
- <a name="2.0.3"></a>
339
-
340
- ## [2.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.2...@sb1/ffe-cards-react@2.0.3) (2018-03-13)
341
-
342
- **Note:** Version bump only for package @sb1/ffe-cards-react
343
-
344
- <a name="2.0.2"></a>
345
-
346
- ## [2.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.0...@sb1/ffe-cards-react@2.0.2) (2018-03-07)
347
-
348
- ### Bug Fixes
349
-
350
- - Correct peerDependencies after breaking change ([aab59ce](https://github.com/SpareBank1/designsystem/commit/aab59ce))
351
-
352
- <a name="2.0.1"></a>
353
-
354
- ## [2.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-cards-react@2.0.0...@sb1/ffe-cards-react@2.0.1) (2018-03-02)
355
-
356
- ### Bug Fixes
357
-
358
- - Correct peerDependencies after breaking change ([4318363](https://github.com/SpareBank1/designsystem/commit/4318363))
359
-
360
- <a name="2.0.0"></a>
361
-
362
- # 2.0.0 (2018-02-25)
363
-
364
- ### Bug Fixes
365
-
366
- - remove all references to internal system ([ff22340](https://github.com/SpareBank1/designsystem/commit/ff22340))
367
- - Update example imports with package scope ([a6d8f45](https://github.com/SpareBank1/designsystem/commit/a6d8f45))
368
-
369
- ### Chores
370
-
371
- - add [@sb1](https://github.com/sb1)/ scope to all packages ([37efbb4](https://github.com/SpareBank1/designsystem/commit/37efbb4))
372
-
373
- ### BREAKING CHANGES
374
-
375
- - All packages have been renamed to add the @sb1 scope.
376
-
377
- See links [1] and [2] to read more about package scopes.
378
-
379
- Unfortunately this requires you update both your dependencies in
380
- `package.json` and all `import` or `require` statements in your code.
381
- Also, you unfortunately have to upgrade all FFE packages at once due to
382
- dependency between packages. If you are on the latest version prior to
383
- this breaking change the upgrade should be a matter of updating
384
- `package.json` with new package names and versions, and updating your
385
- imports.
386
-
387
- To help find the proper package versions you can either browse to the
388
- packages you need or check out the list of Git tags either on
389
- Github [3] or by cloning the repository and running the `git tag`
390
- command. All package versions get a tag in the format
391
- _package@version_.
392
-
393
- Update your `package.json` with the latest package version and add the
394
- @sb1 scope to the package name:
395
-
396
- ```diff
397
- - "ffe-core": "11.0.2",
398
- + "@sb1/ffe-core": "11.0.2",
399
- ```
400
-
401
- Scoped packages all get put in a subdirectory in `node_modules/`. In our
402
- case packages will be put in the `node_modules/@sb1/` directory. If your
403
- build depends on file paths (for instance for copying fonts) you need to
404
- update that path to include the scope.
405
-
406
- The directory structure also means you have to update your imports, both
407
- in Less and in JavaScript.
408
-
409
- Using `less-plugin-npm-import`:
410
-
411
- ```diff
412
- - @import 'npm://ffe-core/less/ffe';
413
- + @import 'npm://@sb1/ffe-core/less/ffe';
414
- ```
415
-
416
- Using Webpack:
417
-
418
- ```diff
419
- - @import '~ffe-core/less/ffe';
420
- + @import '~@sb1/ffe-core/less/ffe';
421
- ```
422
-
423
- Using plain old paths:
424
-
425
- ```diff
426
- - @import '../path/to/node_modules/ffe-core/less/ffe';
427
- + @import '../path/to/node_modules/@sb1/ffe-core/less/ffe';
428
- ```
429
-
430
- JavaScript `import`:
431
-
432
- ```diff
433
- - import { ActionButton } from 'ffe-buttons-react';
434
- + import { ActionButton } from '@sb1/ffe-buttons-react';
435
- ```
436
-
437
- JavaScript `require`:
438
-
439
- ```diff
440
- - const { ActionButton } = require('ffe-buttons-react').default;
441
- + const { ActionButton } = require('@sb1/ffe-buttons-react').default;
442
- ```
443
-
444
- [1]: https://docs.npmjs.com/misc/scope
445
- [2]: https://docs.npmjs.com/getting-started/scoped-packages
446
- [3]: https://github.com/sparebank1/designsystem/tags
447
-
448
- <a name="1.0.7"></a>
449
-
450
- ## [1.0.7](https://github.com/SpareBank1/designsystem/compare/ffe-cards-react@1.0.6...ffe-cards-react@1.0.7) (2018-02-23)
451
-
452
- **Note:** Version bump only for package ffe-cards-react
453
-
454
- <a name="1.0.6"></a>
455
-
456
- ## [1.0.6](https://github.com/SpareBank1/designsystem/compare/ffe-cards-react@1.0.5...ffe-cards-react@1.0.6) (2018-02-22)
457
-
458
- **Note:** Version bump only for package ffe-cards-react
459
-
460
- <a name="1.0.5"></a>
461
-
462
- ## [1.0.5](https://github.com/SpareBank1/designsystem/compare/ffe-cards-react@1.0.4...ffe-cards-react@1.0.5) (2018-01-19)
463
-
464
- **Note:** Version bump only for package ffe-cards-react
465
-
466
- <a name="1.0.4"></a>
467
-
468
- ## [1.0.4](https://github.com/SpareBank1/designsystem/compare/ffe-cards-react@1.0.3...ffe-cards-react@1.0.4) (2018-01-10)
469
-
470
- **Note:** Version bump only for package ffe-cards-react
471
-
472
- <a name="1.0.3"></a>
473
-
474
- ## [1.0.3](https://github.com/SpareBank1/designsystem/compare/ffe-cards-react@1.0.2...ffe-cards-react@1.0.3) (2018-01-09)
475
-
476
- **Note:** Version bump only for package ffe-cards-react
477
-
478
- <a name="1.0.2"></a>
479
-
480
- ## [1.0.2](https://github.com/SpareBank1/designsystem/compare/ffe-cards-react@1.0.1...ffe-cards-react@1.0.2) (2018-01-05)
481
-
482
- **Note:** Version bump only for package ffe-cards-react
483
-
484
- <a name="1.0.1"></a>
485
-
486
- ## 1.0.1 (2018-01-04)
487
-
488
- **Note:** Version bump only for package ffe-cards-react
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import { shallow } from 'enzyme';
3
- import CardBase from './CardBase';
4
-
5
- var getWrapper = function getWrapper(props) {
6
- return shallow( /*#__PURE__*/React.createElement(CardBase, props));
7
- };
8
-
9
- var children = /*#__PURE__*/React.createElement("div", null, "Hello world");
10
- describe('CardBase', function () {
11
- it('should render a div element with correct class and children inside', function () {
12
- var wrapper = getWrapper({
13
- children: children
14
- });
15
- expect(wrapper.find('div').exists()).toBe(true);
16
- expect(wrapper.hasClass('ffe-card-base')).toBe(true);
17
- expect(wrapper.find('.ffe-card-base').children().first().getElement()).toEqual(children);
18
- });
19
- it('should render my custom element and custom class', function () {
20
- var wrapper = getWrapper({
21
- className: 'my-custom-class',
22
- element: 'article'
23
- });
24
- expect(wrapper.find('article').exists()).toBe(true);
25
- expect(wrapper.hasClass('my-custom-class')).toBe(true);
26
- });
27
- });
@@ -1,56 +0,0 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
- import React from 'react';
4
- import { shallow } from 'enzyme';
5
- import IconCard from './IconCard';
6
- import SparegrisIkon from '../../../ffe-icons-react/lib/sparegris-ikon';
7
- import { Text } from '../components';
8
-
9
- var getWrapper = function getWrapper(props) {
10
- return shallow( /*#__PURE__*/React.createElement(IconCard, _extends({
11
- icon: /*#__PURE__*/React.createElement(SparegrisIkon, null)
12
- }, props)));
13
- };
14
-
15
- var children = /*#__PURE__*/React.createElement("div", null, "Hello world");
16
- describe('IconCard', function () {
17
- it('should render correct class and contain a div with body class', function () {
18
- var wrapper = getWrapper({
19
- children: children
20
- });
21
- expect(wrapper.hasClass('ffe-icon-card')).toBe(true);
22
- expect(wrapper.find('.ffe-icon-card__body').exists()).toBe(true);
23
- expect(wrapper.find('.ffe-icon-card__body').children().first().getElement()).toEqual(children);
24
- });
25
- it('should render icon, with an added class', function () {
26
- var wrapper = getWrapper({
27
- icon: /*#__PURE__*/React.createElement(SparegrisIkon, {
28
- className: "my-custom-class"
29
- })
30
- });
31
- expect(wrapper.find(SparegrisIkon).hasClass('ffe-icon-card__icon')).toBe(true);
32
- expect(wrapper.find(SparegrisIkon).hasClass('my-custom-class')).toBe(true);
33
- });
34
- it('should add modifying classes when modifiers are given', function () {
35
- var wrapper = getWrapper({
36
- condensed: true,
37
- greyCharcoal: true
38
- });
39
- expect(wrapper.hasClass('ffe-icon-card--condensed')).toBe(true);
40
- expect(wrapper.hasClass('ffe-icon-card--grey-charcoal')).toBe(true);
41
- });
42
- it('should render children as a function', function () {
43
- var wrapper = getWrapper({
44
- children: function children(Components) {
45
- return /*#__PURE__*/React.createElement(Components.Text, null, "Hello world");
46
- }
47
- });
48
- expect(wrapper.find(Text).exists()).toBe(true);
49
- });
50
- it('should render my custom class', function () {
51
- var wrapper = getWrapper({
52
- className: 'my-custom-class'
53
- });
54
- expect(wrapper.hasClass('my-custom-class')).toBe(true);
55
- });
56
- });
@@ -1,50 +0,0 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
- import React from 'react';
4
- import { shallow } from 'enzyme';
5
- import ImageCard from './ImageCard';
6
- import { Text } from '../components';
7
- var image = /*#__PURE__*/React.createElement("img", {
8
- alt: ""
9
- });
10
-
11
- var getWrapper = function getWrapper(props) {
12
- return shallow( /*#__PURE__*/React.createElement(ImageCard, _extends({}, props, {
13
- image: image
14
- })));
15
- };
16
-
17
- var children = /*#__PURE__*/React.createElement("div", null, "Hello world");
18
- describe('ImageCard', function () {
19
- it('should render correct class and contain a div with image class', function () {
20
- var wrapper = getWrapper();
21
- expect(wrapper.hasClass('ffe-image-card')).toBe(true);
22
- expect(wrapper.find('div.ffe-image-card__image').exists()).toBe(true);
23
- });
24
- it('should render image and overlay alongside each other', function () {
25
- var wrapper = getWrapper();
26
- var imageEl = wrapper.find('.ffe-image-card__image');
27
- expect(imageEl.children().first().hasClass('ffe-image-card__image__overlay')).toBe(true);
28
- expect(imageEl.children().last().getElement()).toEqual(image);
29
- });
30
- it('should render children inside a div with body class', function () {
31
- var wrapper = getWrapper({
32
- children: children
33
- });
34
- expect(wrapper.find('.ffe-image-card__body').children().first().getElement()).toEqual(children);
35
- });
36
- it('should render children as a function', function () {
37
- var wrapper = getWrapper({
38
- children: function children(Components) {
39
- return /*#__PURE__*/React.createElement(Components.Text, null, "Hello world");
40
- }
41
- });
42
- expect(wrapper.find(Text).exists()).toBe(true);
43
- });
44
- it('should render my custom class', function () {
45
- var wrapper = getWrapper({
46
- className: 'my-custom-class'
47
- });
48
- expect(wrapper.hasClass('my-custom-class')).toBe(true);
49
- });
50
- });