@transferwise/icons 2.13.0 → 2.17.0
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/README.md +11 -0
- package/lib/angular/components/auto-convert-icon.component.d.ts +6 -0
- package/lib/angular/components/delivery-icon.component.d.ts +6 -0
- package/lib/angular/components/leaf-icon.component.d.ts +6 -0
- package/lib/angular/components/request-receive-icon.component.d.ts +6 -0
- package/lib/angular/index.js +1 -1
- package/lib/components/auto-convert.d.ts +9 -0
- package/lib/components/delivery.d.ts +9 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/leaf.d.ts +9 -0
- package/lib/components/request-receive.d.ts +9 -0
- package/lib/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -487
package/README.md
CHANGED
@@ -47,6 +47,17 @@ will result in
|
|
47
47
|
</span>
|
48
48
|
```
|
49
49
|
|
50
|
+
map of all icons (useful for dynamic icon pick up):
|
51
|
+
|
52
|
+
```ts
|
53
|
+
import * as icons from '@transferwise/icons';
|
54
|
+
|
55
|
+
const AchIcon = icons['Ach'];
|
56
|
+
|
57
|
+
<AchIcon />
|
58
|
+
<icons.Bank />
|
59
|
+
```
|
60
|
+
|
50
61
|
Each component has `className` property as well, so you can avoid wrapping your component in extra parent elements.
|
51
62
|
```jsx
|
52
63
|
<BankIcon size={24} filled className="bank-profile-icon" />
|