@sb1/ffe-cards-react 4.0.6 → 5.0.2

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