@sb1/ffe-icons-react 7.3.5 → 8.0.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 +3 -21
- package/es/{laptop-ikon.js → Icon.js} +31 -17
- package/es/index.js +2 -172
- package/lib/{pil-ned-ikon.js → Icon.js} +31 -18
- package/lib/index.js +3 -1200
- package/package.json +7 -10
- package/src/Icon.js +35 -0
- package/src/Icon.spec.js +28 -0
- package/src/index.d.ts +12 -0
- package/src/index.js +3 -0
- package/types/index.d.ts +8 -176
- package/es/atv-ikon.js +0 -23
- package/es/badekar-dusj-ikon.js +0 -23
- package/es/bamse-ikon.js +0 -23
- package/es/bankid-ikon.js +0 -27
- package/es/bat-liten-ikon.js +0 -23
- package/es/bat-stor-ikon.js +0 -23
- package/es/bestikk-ikon.js +0 -29
- package/es/beta-ikon.js +0 -25
- package/es/betaling-100-ikon.js +0 -23
- package/es/betaling-kontaktlos-ikon.js +0 -23
- package/es/betaling-kontaktlos-info-ikon.js +0 -23
- package/es/betalingskort-globus-ikon.js +0 -25
- package/es/betalingskort-hand-ikon.js +0 -25
- package/es/betalingskort-ikon.js +0 -23
- package/es/betalingskort-innpakket-ikon.js +0 -23
- package/es/betalingskort-kreditt-ikon.js +0 -23
- package/es/betalingskort-kryss-ikon.js +0 -23
- package/es/betalingskort-stjerne-ikon.js +0 -23
- package/es/bil-camping-ikon.js +0 -47
- package/es/bil-ikon.js +0 -23
- package/es/bil-pil-ikon.js +0 -27
- package/es/binders-ikon.js +0 -23
- package/es/blyant-ikon.js +0 -23
- package/es/boks-ikon.js +0 -23
- package/es/bsu-ikon.js +0 -23
- package/es/bygning-pluss-ikon.js +0 -23
- package/es/campingbil-ikon.js +0 -23
- package/es/campingvogn-ikon.js +0 -23
- package/es/chevron-ikon.js +0 -23
- package/es/dokument-avtalegiro-check-ikon.js +0 -25
- package/es/dokument-efaktura-ikon.js +0 -29
- package/es/dokument-hus-ikon.js +0 -23
- package/es/dokument-med-tekst-ikon.js +0 -23
- package/es/faks-printer-ikon.js +0 -23
- package/es/faks-printer-solid-ikon.js +0 -27
- package/es/familie-ikon.js +0 -23
- package/es/filter-ikon.js +0 -23
- package/es/flamme-ikon.js +0 -23
- package/es/fly-ikon.js +0 -23
- package/es/forstorrelsesglass-ikon-minus.js +0 -29
- package/es/forstorrelsesglass-ikon-pluss.js +0 -27
- package/es/forstorrelsesglass-ikon.js +0 -23
- package/es/fritidshus-ikon.js +0 -23
- package/es/gave-ikon.js +0 -23
- package/es/globe-ikon.js +0 -33
- package/es/graf-opp-enkel-ikon.js +0 -23
- package/es/graf-opp-ikon.js +0 -23
- package/es/gravemaskin-ikon.js +0 -25
- package/es/hake-ikon.js +0 -23
- package/es/hake-sirkel-ikon.js +0 -25
- package/es/hake-sirkel-solid-ikon.js +0 -23
- package/es/hake-stjerne-ikon.js +0 -23
- package/es/handlevogn-ikon.js +0 -23
- package/es/handlevogn-pakker-ikon.js +0 -50
- package/es/hengelas-ikon.js +0 -23
- package/es/hengelas-omriss-ikon.js +0 -23
- package/es/hjerte-ikon.js +0 -23
- package/es/hjerte-kardiograf-ikon.js +0 -23
- package/es/hus-enebolig-ikon.js +0 -23
- package/es/hus-hake-ikon.js +0 -23
- package/es/hus-hammer-ikon.js +0 -25
- package/es/hus-hjerte-ikon.js +0 -23
- package/es/hus-horisontaldelt-ikon.js +0 -23
- package/es/hus-ikon.js +0 -27
- package/es/hus-kjedet-ikon.js +0 -25
- package/es/hus-kr-ikon.js +0 -24
- package/es/hus-leilighet-ikon.js +0 -23
- package/es/hus-pil-opp-ikon.js +0 -23
- package/es/hus-pil-opp-ned-ikon.js +0 -24
- package/es/hus-pil-ut-ikon.js +0 -23
- package/es/hus-rekkehus-ikon.js +0 -23
- package/es/hus-stjerne-ikon.js +0 -26
- package/es/hus-tommer-ikon.js +0 -25
- package/es/hus-tre-ikon.js +0 -49
- package/es/hus-vertikaldelt-ikon.js +0 -25
- package/es/info-ikon.js +0 -25
- package/es/info-sirkel-ikon.js +0 -27
- package/es/info-sirkel-solid-ikon.js +0 -23
- package/es/kake-kvart-ikon.js +0 -25
- package/es/kakediagram-liten-bit-ikon.js +0 -24
- package/es/kalender-ikon.js +0 -25
- package/es/kalkulator-ikon.js +0 -23
- package/es/kartmarkor-ikon.js +0 -23
- package/es/katt-ikon.js +0 -23
- package/es/koffert-ikon.js +0 -23
- package/es/konfetti-ikon.js +0 -23
- package/es/kontorbygg-ikon.js +0 -23
- package/es/kontorbygg-solid-ikon.js +0 -23
- package/es/konvolutt-ikon.js +0 -23
- package/es/kopier-ikon.js +0 -25
- package/es/kr-armband-ikon.js +0 -23
- package/es/kr-hake-ikon.js +0 -23
- package/es/kr-klokke-ikon.js +0 -40
- package/es/kr-pil-ikon.js +0 -23
- package/es/kr-pil-solid-ikon.js +0 -27
- package/es/kr-pose-ikon.js +0 -23
- package/es/kr-sirkel-pil-ikon.js +0 -25
- package/es/kr-tannhjul-ikon.js +0 -23
- package/es/kryss-ikon.js +0 -23
- package/es/kryss-sirkel-ikon.js +0 -23
- package/es/kryss-sirkel-solid-ikon.js +0 -23
- package/es/lommebok-ikon.js +0 -29
- package/es/lys-mork-ikon.js +0 -39
- package/es/lyspare-ikon.js +0 -23
- package/es/mobil-a-b-c-ikon.js +0 -23
- package/es/mobil-ikon.js +0 -23
- package/es/mobil-snakkeboble-ikon.js +0 -23
- package/es/mobil-utropstegn-ikon.js +0 -23
- package/es/moped-ikon.js +0 -24
- package/es/motorsykkel-ikon.js +0 -33
- package/es/mynter-to-stabler-ikon.js +0 -23
- package/es/mynter-to-stabler-pluss-ikon.js +0 -23
- package/es/mynter-tre-stabler-ikon.js +0 -23
- package/es/nokkelhull-ikon.js +0 -23
- package/es/p-pose-ikon.js +0 -23
- package/es/p-pose-stjerne-ikon.js +0 -25
- package/es/paraply-ikon.js +0 -23
- package/es/pdf-ikon.js +0 -23
- package/es/person-brukket-arm-ikon.js +0 -23
- package/es/person-ikon.js +0 -23
- package/es/person-mikrofon-ikon.js +0 -23
- package/es/person-pluss-ikon.js +0 -23
- package/es/person-rullestol-ikon.js +0 -23
- package/es/person-slips-ikon.js +0 -23
- package/es/person-streker-ikon.js +0 -23
- package/es/personer-ikon.js +0 -23
- package/es/pil-ned-i-boks-ikon.js +0 -25
- package/es/pil-ned-ikon.js +0 -23
- package/es/pil-ut-av-boks-ikon.js +0 -23
- package/es/pil-ut-av-boks-skraa-ikon.js +0 -23
- package/es/piler-hoyre-venstre-ikon.js +0 -23
- package/es/plaster-ikon.js +0 -23
- package/es/pluss-ikon.js +0 -25
- package/es/pose-i-haand-ikon.js +0 -23
- package/es/pose-piler-hoyre-venstre-ikon.js +0 -28
- package/es/pose-trettien-ikon.js +0 -27
- package/es/robat-ikon.js +0 -23
- package/es/rundt-snakkeboble-ikon.js +0 -24
- package/es/seilbat-ikon.js +0 -23
- package/es/sirkel-1-2-3-ikon.js +0 -23
- package/es/skyskraper-ikon.js +0 -23
- package/es/snakkeboble-ikon.js +0 -23
- package/es/snoscooter-ikon.js +0 -23
- package/es/sofa-ikon.js +0 -38
- package/es/soppelkasse-ikon.js +0 -23
- package/es/soylediagram-ikon.js +0 -23
- package/es/soylediagram-med-pil-ikon.js +0 -23
- package/es/sparegris-ikon.js +0 -23
- package/es/spleis-ikon.js +0 -23
- package/es/sporsmalstegn-ikon.js +0 -25
- package/es/stetoskop-ikon.js +0 -23
- package/es/svar-pil-ikon.js +0 -23
- package/es/sykebil-ikon.js +0 -23
- package/es/tabell-kroner-ikon.js +0 -23
- package/es/taleassistent-ikon.js +0 -53
- package/es/tannhjul-ikon.js +0 -23
- package/es/tannhjul-solid-ikon.js +0 -23
- package/es/telefon-ikon.js +0 -23
- package/es/tommel-opp-ikon.js +0 -23
- package/es/traktor-ikon.js +0 -43
- package/es/tre-ikon.js +0 -25
- package/es/trillekoffert-ikon.js +0 -37
- package/es/understrek-1-2-3-ikon.js +0 -23
- package/es/ung-caps-ikon.js +0 -23
- package/es/ungdom-ikon.js +0 -27
- package/es/utropstegn-ikon.js +0 -23
- package/es/varebil-ikon.js +0 -23
- package/es/varsel-ikon.js +0 -27
- package/es/verktoy-skiftenokkel-ikon.js +0 -24
- package/es/widget-ikon.js +0 -30
- package/es/xls-ikon.js +0 -23
- package/lib/atv-ikon.js +0 -31
- package/lib/badekar-dusj-ikon.js +0 -31
- package/lib/bamse-ikon.js +0 -31
- package/lib/bankid-ikon.js +0 -35
- package/lib/bat-liten-ikon.js +0 -31
- package/lib/bat-stor-ikon.js +0 -31
- package/lib/bestikk-ikon.js +0 -37
- package/lib/beta-ikon.js +0 -33
- package/lib/betaling-100-ikon.js +0 -31
- package/lib/betaling-kontaktlos-ikon.js +0 -31
- package/lib/betaling-kontaktlos-info-ikon.js +0 -31
- package/lib/betalingskort-globus-ikon.js +0 -33
- package/lib/betalingskort-hand-ikon.js +0 -33
- package/lib/betalingskort-ikon.js +0 -31
- package/lib/betalingskort-innpakket-ikon.js +0 -31
- package/lib/betalingskort-kreditt-ikon.js +0 -31
- package/lib/betalingskort-kryss-ikon.js +0 -31
- package/lib/betalingskort-stjerne-ikon.js +0 -31
- package/lib/bil-camping-ikon.js +0 -55
- package/lib/bil-ikon.js +0 -31
- package/lib/bil-pil-ikon.js +0 -35
- package/lib/binders-ikon.js +0 -31
- package/lib/blyant-ikon.js +0 -31
- package/lib/boks-ikon.js +0 -31
- package/lib/bsu-ikon.js +0 -31
- package/lib/bygning-pluss-ikon.js +0 -31
- package/lib/campingbil-ikon.js +0 -31
- package/lib/campingvogn-ikon.js +0 -31
- package/lib/chevron-ikon.js +0 -31
- package/lib/dokument-avtalegiro-check-ikon.js +0 -33
- package/lib/dokument-efaktura-ikon.js +0 -37
- package/lib/dokument-hus-ikon.js +0 -31
- package/lib/dokument-med-tekst-ikon.js +0 -31
- package/lib/faks-printer-ikon.js +0 -31
- package/lib/faks-printer-solid-ikon.js +0 -35
- package/lib/familie-ikon.js +0 -31
- package/lib/filter-ikon.js +0 -31
- package/lib/flamme-ikon.js +0 -31
- package/lib/fly-ikon.js +0 -31
- package/lib/forstorrelsesglass-ikon-minus.js +0 -37
- package/lib/forstorrelsesglass-ikon-pluss.js +0 -35
- package/lib/forstorrelsesglass-ikon.js +0 -31
- package/lib/fritidshus-ikon.js +0 -31
- package/lib/gave-ikon.js +0 -31
- package/lib/globe-ikon.js +0 -41
- package/lib/graf-opp-enkel-ikon.js +0 -31
- package/lib/graf-opp-ikon.js +0 -31
- package/lib/gravemaskin-ikon.js +0 -33
- package/lib/hake-ikon.js +0 -31
- package/lib/hake-sirkel-ikon.js +0 -33
- package/lib/hake-sirkel-solid-ikon.js +0 -31
- package/lib/hake-stjerne-ikon.js +0 -31
- package/lib/handlevogn-ikon.js +0 -31
- package/lib/handlevogn-pakker-ikon.js +0 -58
- package/lib/hengelas-ikon.js +0 -31
- package/lib/hengelas-omriss-ikon.js +0 -31
- package/lib/hjerte-ikon.js +0 -31
- package/lib/hjerte-kardiograf-ikon.js +0 -31
- package/lib/hus-enebolig-ikon.js +0 -31
- package/lib/hus-hake-ikon.js +0 -31
- package/lib/hus-hammer-ikon.js +0 -33
- package/lib/hus-hjerte-ikon.js +0 -31
- package/lib/hus-horisontaldelt-ikon.js +0 -31
- package/lib/hus-ikon.js +0 -35
- package/lib/hus-kjedet-ikon.js +0 -33
- package/lib/hus-kr-ikon.js +0 -32
- package/lib/hus-leilighet-ikon.js +0 -31
- package/lib/hus-pil-opp-ikon.js +0 -31
- package/lib/hus-pil-opp-ned-ikon.js +0 -32
- package/lib/hus-pil-ut-ikon.js +0 -31
- package/lib/hus-rekkehus-ikon.js +0 -31
- package/lib/hus-stjerne-ikon.js +0 -34
- package/lib/hus-tommer-ikon.js +0 -33
- package/lib/hus-tre-ikon.js +0 -57
- package/lib/hus-vertikaldelt-ikon.js +0 -33
- package/lib/info-ikon.js +0 -33
- package/lib/info-sirkel-ikon.js +0 -35
- package/lib/info-sirkel-solid-ikon.js +0 -31
- package/lib/kake-kvart-ikon.js +0 -33
- package/lib/kakediagram-liten-bit-ikon.js +0 -32
- package/lib/kalender-ikon.js +0 -33
- package/lib/kalkulator-ikon.js +0 -31
- package/lib/kartmarkor-ikon.js +0 -31
- package/lib/katt-ikon.js +0 -31
- package/lib/koffert-ikon.js +0 -31
- package/lib/konfetti-ikon.js +0 -31
- package/lib/kontorbygg-ikon.js +0 -31
- package/lib/kontorbygg-solid-ikon.js +0 -31
- package/lib/konvolutt-ikon.js +0 -31
- package/lib/kopier-ikon.js +0 -33
- package/lib/kr-armband-ikon.js +0 -31
- package/lib/kr-hake-ikon.js +0 -31
- package/lib/kr-klokke-ikon.js +0 -48
- package/lib/kr-pil-ikon.js +0 -31
- package/lib/kr-pil-solid-ikon.js +0 -35
- package/lib/kr-pose-ikon.js +0 -31
- package/lib/kr-sirkel-pil-ikon.js +0 -33
- package/lib/kr-tannhjul-ikon.js +0 -31
- package/lib/kryss-ikon.js +0 -31
- package/lib/kryss-sirkel-ikon.js +0 -31
- package/lib/kryss-sirkel-solid-ikon.js +0 -31
- package/lib/laptop-ikon.js +0 -31
- package/lib/lommebok-ikon.js +0 -37
- package/lib/lys-mork-ikon.js +0 -47
- package/lib/lyspare-ikon.js +0 -31
- package/lib/mobil-a-b-c-ikon.js +0 -31
- package/lib/mobil-ikon.js +0 -31
- package/lib/mobil-snakkeboble-ikon.js +0 -31
- package/lib/mobil-utropstegn-ikon.js +0 -31
- package/lib/moped-ikon.js +0 -32
- package/lib/motorsykkel-ikon.js +0 -41
- package/lib/mynter-to-stabler-ikon.js +0 -31
- package/lib/mynter-to-stabler-pluss-ikon.js +0 -31
- package/lib/mynter-tre-stabler-ikon.js +0 -31
- package/lib/nokkelhull-ikon.js +0 -31
- package/lib/p-pose-ikon.js +0 -31
- package/lib/p-pose-stjerne-ikon.js +0 -33
- package/lib/paraply-ikon.js +0 -31
- package/lib/pdf-ikon.js +0 -31
- package/lib/person-brukket-arm-ikon.js +0 -31
- package/lib/person-ikon.js +0 -31
- package/lib/person-mikrofon-ikon.js +0 -31
- package/lib/person-pluss-ikon.js +0 -31
- package/lib/person-rullestol-ikon.js +0 -31
- package/lib/person-slips-ikon.js +0 -31
- package/lib/person-streker-ikon.js +0 -31
- package/lib/personer-ikon.js +0 -31
- package/lib/pil-ned-i-boks-ikon.js +0 -33
- package/lib/pil-ut-av-boks-ikon.js +0 -31
- package/lib/pil-ut-av-boks-skraa-ikon.js +0 -31
- package/lib/piler-hoyre-venstre-ikon.js +0 -31
- package/lib/plaster-ikon.js +0 -31
- package/lib/pluss-ikon.js +0 -33
- package/lib/pose-i-haand-ikon.js +0 -31
- package/lib/pose-piler-hoyre-venstre-ikon.js +0 -36
- package/lib/pose-trettien-ikon.js +0 -35
- package/lib/robat-ikon.js +0 -31
- package/lib/rundt-snakkeboble-ikon.js +0 -32
- package/lib/seilbat-ikon.js +0 -31
- package/lib/sirkel-1-2-3-ikon.js +0 -31
- package/lib/skyskraper-ikon.js +0 -31
- package/lib/snakkeboble-ikon.js +0 -31
- package/lib/snoscooter-ikon.js +0 -31
- package/lib/sofa-ikon.js +0 -46
- package/lib/soppelkasse-ikon.js +0 -31
- package/lib/soylediagram-ikon.js +0 -31
- package/lib/soylediagram-med-pil-ikon.js +0 -31
- package/lib/sparegris-ikon.js +0 -31
- package/lib/spleis-ikon.js +0 -31
- package/lib/sporsmalstegn-ikon.js +0 -33
- package/lib/stetoskop-ikon.js +0 -31
- package/lib/svar-pil-ikon.js +0 -31
- package/lib/sykebil-ikon.js +0 -31
- package/lib/tabell-kroner-ikon.js +0 -31
- package/lib/taleassistent-ikon.js +0 -61
- package/lib/tannhjul-ikon.js +0 -31
- package/lib/tannhjul-solid-ikon.js +0 -31
- package/lib/telefon-ikon.js +0 -31
- package/lib/tommel-opp-ikon.js +0 -31
- package/lib/traktor-ikon.js +0 -51
- package/lib/tre-ikon.js +0 -33
- package/lib/trillekoffert-ikon.js +0 -45
- package/lib/understrek-1-2-3-ikon.js +0 -31
- package/lib/ung-caps-ikon.js +0 -31
- package/lib/ungdom-ikon.js +0 -35
- package/lib/utropstegn-ikon.js +0 -31
- package/lib/varebil-ikon.js +0 -31
- package/lib/varsel-ikon.js +0 -35
- package/lib/verktoy-skiftenokkel-ikon.js +0 -32
- package/lib/widget-ikon.js +0 -38
- package/lib/xls-ikon.js +0 -31
package/README.md
CHANGED
|
@@ -1,25 +1,7 @@
|
|
|
1
1
|
# @sb1/ffe-icons-react
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Deprecated package
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
npm install --save @sb1/ffe-icons-react
|
|
7
|
-
```
|
|
5
|
+
This package is deprecated, and will be removed from the designsystem repo.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Full documentation on icon usage is available at https://design.sparebank1.no/komponenter/ikoner/.
|
|
12
|
-
|
|
13
|
-
## Development
|
|
14
|
-
|
|
15
|
-
To start a local development server, run the following from the designsystem root folder:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npm install
|
|
19
|
-
npm run build
|
|
20
|
-
npm start
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
A local instance of `component-overview` with live reloading will run at http://localhost:1234/.
|
|
24
|
-
|
|
25
|
-
Example implementations using the latest versions of all components are also available at https://sparebank1.github.io/designsystem.
|
|
7
|
+
To use the new set of icons, please refer to [ffe-symbols](https://github.com/SpareBank1/designsystem/tree/develop/packages/ffe-symbols) and/or [ffe-symbols-react](https://github.com/SpareBank1/designsystem/tree/develop/packages/ffe-symbols-react).
|
|
@@ -1,23 +1,37 @@
|
|
|
1
|
-
var _excluded = ["
|
|
1
|
+
var _excluded = ["filePath", "className", "ariaLabel", "size"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
import classNames from 'classnames';
|
|
7
|
+
import { string, oneOf } from 'prop-types';
|
|
8
|
+
var Icon = function Icon(props) {
|
|
9
|
+
var filePath = props.filePath,
|
|
10
|
+
className = props.className,
|
|
11
|
+
ariaLabel = props.ariaLabel,
|
|
12
|
+
size = props.size,
|
|
13
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
15
|
+
role: "img",
|
|
16
|
+
"aria-label": ariaLabel,
|
|
17
|
+
"aria-hidden": !ariaLabel,
|
|
18
|
+
className: classNames('ffe-icons', "ffe-icons--".concat(size), className),
|
|
19
|
+
style: {
|
|
20
|
+
maskImage: "url(".concat(filePath, ")")
|
|
21
|
+
}
|
|
22
|
+
}, rest));
|
|
17
23
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
title: PropTypes.string,
|
|
21
|
-
focusable: PropTypes.oneOf([true, false, 'true', 'false', 'auto', 'undefined'])
|
|
24
|
+
Icon.defaultProps = {
|
|
25
|
+
size: 'md'
|
|
22
26
|
};
|
|
23
|
-
|
|
27
|
+
Icon.propTypes = {
|
|
28
|
+
/** The path to the svg-file */
|
|
29
|
+
filePath: string.isRequired,
|
|
30
|
+
/** Additional classnames */
|
|
31
|
+
className: string,
|
|
32
|
+
/** Aria label, if ariaLabel is hull it'll sett aria-hidden to true */
|
|
33
|
+
ariaLabel: string,
|
|
34
|
+
/** Size of the container around the icon */
|
|
35
|
+
size: oneOf(['sm', 'md', 'lg', 'xl'])
|
|
36
|
+
};
|
|
37
|
+
export default Icon;
|
package/es/index.js
CHANGED
|
@@ -1,172 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
export { default as BamseIkon } from './bamse-ikon';
|
|
4
|
-
export { default as BankidIkon } from './bankid-ikon';
|
|
5
|
-
export { default as BatLitenIkon } from './bat-liten-ikon';
|
|
6
|
-
export { default as BatStorIkon } from './bat-stor-ikon';
|
|
7
|
-
export { default as BestikkIkon } from './bestikk-ikon';
|
|
8
|
-
export { default as BetaIkon } from './beta-ikon';
|
|
9
|
-
export { default as Betaling100Ikon } from './betaling-100-ikon';
|
|
10
|
-
export { default as BetalingKontaktlosIkon } from './betaling-kontaktlos-ikon';
|
|
11
|
-
export { default as BetalingKontaktlosInfoIkon } from './betaling-kontaktlos-info-ikon';
|
|
12
|
-
export { default as BetalingskortGlobusIkon } from './betalingskort-globus-ikon';
|
|
13
|
-
export { default as BetalingskortHandIkon } from './betalingskort-hand-ikon';
|
|
14
|
-
export { default as BetalingskortIkon } from './betalingskort-ikon';
|
|
15
|
-
export { default as BetalingskortInnpakketIkon } from './betalingskort-innpakket-ikon';
|
|
16
|
-
export { default as BetalingskortKredittIkon } from './betalingskort-kreditt-ikon';
|
|
17
|
-
export { default as BetalingskortKryssIkon } from './betalingskort-kryss-ikon';
|
|
18
|
-
export { default as BetalingskortStjerneIkon } from './betalingskort-stjerne-ikon';
|
|
19
|
-
export { default as BilCampingIkon } from './bil-camping-ikon';
|
|
20
|
-
export { default as BilIkon } from './bil-ikon';
|
|
21
|
-
export { default as BilPilIkon } from './bil-pil-ikon';
|
|
22
|
-
export { default as BindersIkon } from './binders-ikon';
|
|
23
|
-
export { default as BlyantIkon } from './blyant-ikon';
|
|
24
|
-
export { default as BoksIkon } from './boks-ikon';
|
|
25
|
-
export { default as BsuIkon } from './bsu-ikon';
|
|
26
|
-
export { default as BygningPlussIkon } from './bygning-pluss-ikon';
|
|
27
|
-
export { default as CampingbilIkon } from './campingbil-ikon';
|
|
28
|
-
export { default as CampingvognIkon } from './campingvogn-ikon';
|
|
29
|
-
export { default as ChevronIkon } from './chevron-ikon';
|
|
30
|
-
export { default as DokumentAvtalegiroCheckIkon } from './dokument-avtalegiro-check-ikon';
|
|
31
|
-
export { default as DokumentEfakturaIkon } from './dokument-efaktura-ikon';
|
|
32
|
-
export { default as DokumentHusIkon } from './dokument-hus-ikon';
|
|
33
|
-
export { default as DokumentMedTekstIkon } from './dokument-med-tekst-ikon';
|
|
34
|
-
export { default as FaksPrinterIkon } from './faks-printer-ikon';
|
|
35
|
-
export { default as FaksPrinterSolidIkon } from './faks-printer-solid-ikon';
|
|
36
|
-
export { default as FamilieIkon } from './familie-ikon';
|
|
37
|
-
export { default as FilterIkon } from './filter-ikon';
|
|
38
|
-
export { default as FlammeIkon } from './flamme-ikon';
|
|
39
|
-
export { default as FlyIkon } from './fly-ikon';
|
|
40
|
-
export { default as ForstorrelsesglassIkonMinus } from './forstorrelsesglass-ikon-minus';
|
|
41
|
-
export { default as ForstorrelsesglassIkonPluss } from './forstorrelsesglass-ikon-pluss';
|
|
42
|
-
export { default as ForstorrelsesglassIkon } from './forstorrelsesglass-ikon';
|
|
43
|
-
export { default as FritidshusIkon } from './fritidshus-ikon';
|
|
44
|
-
export { default as GaveIkon } from './gave-ikon';
|
|
45
|
-
export { default as GlobeIkon } from './globe-ikon';
|
|
46
|
-
export { default as GrafOppEnkelIkon } from './graf-opp-enkel-ikon';
|
|
47
|
-
export { default as GrafOppIkon } from './graf-opp-ikon';
|
|
48
|
-
export { default as GravemaskinIkon } from './gravemaskin-ikon';
|
|
49
|
-
export { default as HakeIkon } from './hake-ikon';
|
|
50
|
-
export { default as HakeSirkelIkon } from './hake-sirkel-ikon';
|
|
51
|
-
export { default as HakeSirkelSolidIkon } from './hake-sirkel-solid-ikon';
|
|
52
|
-
export { default as HakeStjerneIkon } from './hake-stjerne-ikon';
|
|
53
|
-
export { default as HandlevognIkon } from './handlevogn-ikon';
|
|
54
|
-
export { default as HandlevognPakkerIkon } from './handlevogn-pakker-ikon';
|
|
55
|
-
export { default as HengelasIkon } from './hengelas-ikon';
|
|
56
|
-
export { default as HengelasOmrissIkon } from './hengelas-omriss-ikon';
|
|
57
|
-
export { default as HjerteIkon } from './hjerte-ikon';
|
|
58
|
-
export { default as HjerteKardiografIkon } from './hjerte-kardiograf-ikon';
|
|
59
|
-
export { default as HusEneboligIkon } from './hus-enebolig-ikon';
|
|
60
|
-
export { default as HusHakeIkon } from './hus-hake-ikon';
|
|
61
|
-
export { default as HusHammerIkon } from './hus-hammer-ikon';
|
|
62
|
-
export { default as HusHjerteIkon } from './hus-hjerte-ikon';
|
|
63
|
-
export { default as HusHorisontaldeltIkon } from './hus-horisontaldelt-ikon';
|
|
64
|
-
export { default as HusIkon } from './hus-ikon';
|
|
65
|
-
export { default as HusKjedetIkon } from './hus-kjedet-ikon';
|
|
66
|
-
export { default as HusKrIkon } from './hus-kr-ikon';
|
|
67
|
-
export { default as HusLeilighetIkon } from './hus-leilighet-ikon';
|
|
68
|
-
export { default as HusPilOppIkon } from './hus-pil-opp-ikon';
|
|
69
|
-
export { default as HusPilOppNedIkon } from './hus-pil-opp-ned-ikon';
|
|
70
|
-
export { default as HusPilUtIkon } from './hus-pil-ut-ikon';
|
|
71
|
-
export { default as HusRekkehusIkon } from './hus-rekkehus-ikon';
|
|
72
|
-
export { default as HusStjerneIkon } from './hus-stjerne-ikon';
|
|
73
|
-
export { default as HusTommerIkon } from './hus-tommer-ikon';
|
|
74
|
-
export { default as HusTreIkon } from './hus-tre-ikon';
|
|
75
|
-
export { default as HusVertikaldeltIkon } from './hus-vertikaldelt-ikon';
|
|
76
|
-
export { default as InfoIkon } from './info-ikon';
|
|
77
|
-
export { default as InfoSirkelIkon } from './info-sirkel-ikon';
|
|
78
|
-
export { default as InfoSirkelSolidIkon } from './info-sirkel-solid-ikon';
|
|
79
|
-
export { default as KakeKvartIkon } from './kake-kvart-ikon';
|
|
80
|
-
export { default as KakediagramLitenBitIkon } from './kakediagram-liten-bit-ikon';
|
|
81
|
-
export { default as KalenderIkon } from './kalender-ikon';
|
|
82
|
-
export { default as KalkulatorIkon } from './kalkulator-ikon';
|
|
83
|
-
export { default as KartmarkorIkon } from './kartmarkor-ikon';
|
|
84
|
-
export { default as KattIkon } from './katt-ikon';
|
|
85
|
-
export { default as KoffertIkon } from './koffert-ikon';
|
|
86
|
-
export { default as KonfettiIkon } from './konfetti-ikon';
|
|
87
|
-
export { default as KontorbyggIkon } from './kontorbygg-ikon';
|
|
88
|
-
export { default as KontorbyggSolidIkon } from './kontorbygg-solid-ikon';
|
|
89
|
-
export { default as KonvoluttIkon } from './konvolutt-ikon';
|
|
90
|
-
export { default as KopierIkon } from './kopier-ikon';
|
|
91
|
-
export { default as KrArmbandIkon } from './kr-armband-ikon';
|
|
92
|
-
export { default as KrHakeIkon } from './kr-hake-ikon';
|
|
93
|
-
export { default as KrKlokkeIkon } from './kr-klokke-ikon';
|
|
94
|
-
export { default as KrPilIkon } from './kr-pil-ikon';
|
|
95
|
-
export { default as KrPilSolidIkon } from './kr-pil-solid-ikon';
|
|
96
|
-
export { default as KrPoseIkon } from './kr-pose-ikon';
|
|
97
|
-
export { default as KrSirkelPilIkon } from './kr-sirkel-pil-ikon';
|
|
98
|
-
export { default as KrTannhjulIkon } from './kr-tannhjul-ikon';
|
|
99
|
-
export { default as KryssIkon } from './kryss-ikon';
|
|
100
|
-
export { default as KryssSirkelIkon } from './kryss-sirkel-ikon';
|
|
101
|
-
export { default as KryssSirkelSolidIkon } from './kryss-sirkel-solid-ikon';
|
|
102
|
-
export { default as LaptopIkon } from './laptop-ikon';
|
|
103
|
-
export { default as LommebokIkon } from './lommebok-ikon';
|
|
104
|
-
export { default as LysMorkIkon } from './lys-mork-ikon';
|
|
105
|
-
export { default as LyspareIkon } from './lyspare-ikon';
|
|
106
|
-
export { default as MobilABCIkon } from './mobil-a-b-c-ikon';
|
|
107
|
-
export { default as MobilIkon } from './mobil-ikon';
|
|
108
|
-
export { default as MobilSnakkebobleIkon } from './mobil-snakkeboble-ikon';
|
|
109
|
-
export { default as MobilUtropstegnIkon } from './mobil-utropstegn-ikon';
|
|
110
|
-
export { default as MopedIkon } from './moped-ikon';
|
|
111
|
-
export { default as MotorsykkelIkon } from './motorsykkel-ikon';
|
|
112
|
-
export { default as MynterToStablerIkon } from './mynter-to-stabler-ikon';
|
|
113
|
-
export { default as MynterToStablerPlussIkon } from './mynter-to-stabler-pluss-ikon';
|
|
114
|
-
export { default as MynterTreStablerIkon } from './mynter-tre-stabler-ikon';
|
|
115
|
-
export { default as NokkelhullIkon } from './nokkelhull-ikon';
|
|
116
|
-
export { default as PPoseIkon } from './p-pose-ikon';
|
|
117
|
-
export { default as PPoseStjerneIkon } from './p-pose-stjerne-ikon';
|
|
118
|
-
export { default as ParaplyIkon } from './paraply-ikon';
|
|
119
|
-
export { default as PdfIkon } from './pdf-ikon';
|
|
120
|
-
export { default as PersonBrukketArmIkon } from './person-brukket-arm-ikon';
|
|
121
|
-
export { default as PersonIkon } from './person-ikon';
|
|
122
|
-
export { default as PersonMikrofonIkon } from './person-mikrofon-ikon';
|
|
123
|
-
export { default as PersonPlussIkon } from './person-pluss-ikon';
|
|
124
|
-
export { default as PersonRullestolIkon } from './person-rullestol-ikon';
|
|
125
|
-
export { default as PersonSlipsIkon } from './person-slips-ikon';
|
|
126
|
-
export { default as PersonStrekerIkon } from './person-streker-ikon';
|
|
127
|
-
export { default as PersonerIkon } from './personer-ikon';
|
|
128
|
-
export { default as PilNedIBoksIkon } from './pil-ned-i-boks-ikon';
|
|
129
|
-
export { default as PilNedIkon } from './pil-ned-ikon';
|
|
130
|
-
export { default as PilUtAvBoksIkon } from './pil-ut-av-boks-ikon';
|
|
131
|
-
export { default as PilUtAvBoksSkraaIkon } from './pil-ut-av-boks-skraa-ikon';
|
|
132
|
-
export { default as PilerHoyreVenstreIkon } from './piler-hoyre-venstre-ikon';
|
|
133
|
-
export { default as PlasterIkon } from './plaster-ikon';
|
|
134
|
-
export { default as PlussIkon } from './pluss-ikon';
|
|
135
|
-
export { default as PoseIHaandIkon } from './pose-i-haand-ikon';
|
|
136
|
-
export { default as PosePilerHoyreVenstreIkon } from './pose-piler-hoyre-venstre-ikon';
|
|
137
|
-
export { default as PoseTrettienIkon } from './pose-trettien-ikon';
|
|
138
|
-
export { default as RobatIkon } from './robat-ikon';
|
|
139
|
-
export { default as RundtSnakkebobleIkon } from './rundt-snakkeboble-ikon';
|
|
140
|
-
export { default as SeilbatIkon } from './seilbat-ikon';
|
|
141
|
-
export { default as Sirkel123Ikon } from './sirkel-1-2-3-ikon';
|
|
142
|
-
export { default as SkyskraperIkon } from './skyskraper-ikon';
|
|
143
|
-
export { default as SnakkebobleIkon } from './snakkeboble-ikon';
|
|
144
|
-
export { default as SnoscooterIkon } from './snoscooter-ikon';
|
|
145
|
-
export { default as SofaIkon } from './sofa-ikon';
|
|
146
|
-
export { default as SoppelkasseIkon } from './soppelkasse-ikon';
|
|
147
|
-
export { default as SoylediagramIkon } from './soylediagram-ikon';
|
|
148
|
-
export { default as SoylediagramMedPilIkon } from './soylediagram-med-pil-ikon';
|
|
149
|
-
export { default as SparegrisIkon } from './sparegris-ikon';
|
|
150
|
-
export { default as SpleisIkon } from './spleis-ikon';
|
|
151
|
-
export { default as SporsmalstegnIkon } from './sporsmalstegn-ikon';
|
|
152
|
-
export { default as StetoskopIkon } from './stetoskop-ikon';
|
|
153
|
-
export { default as SvarPilIkon } from './svar-pil-ikon';
|
|
154
|
-
export { default as SykebilIkon } from './sykebil-ikon';
|
|
155
|
-
export { default as TabellKronerIkon } from './tabell-kroner-ikon';
|
|
156
|
-
export { default as TaleassistentIkon } from './taleassistent-ikon';
|
|
157
|
-
export { default as TannhjulIkon } from './tannhjul-ikon';
|
|
158
|
-
export { default as TannhjulSolidIkon } from './tannhjul-solid-ikon';
|
|
159
|
-
export { default as TelefonIkon } from './telefon-ikon';
|
|
160
|
-
export { default as TommelOppIkon } from './tommel-opp-ikon';
|
|
161
|
-
export { default as TraktorIkon } from './traktor-ikon';
|
|
162
|
-
export { default as TreIkon } from './tre-ikon';
|
|
163
|
-
export { default as TrillekoffertIkon } from './trillekoffert-ikon';
|
|
164
|
-
export { default as Understrek123Ikon } from './understrek-1-2-3-ikon';
|
|
165
|
-
export { default as UngCapsIkon } from './ung-caps-ikon';
|
|
166
|
-
export { default as UngdomIkon } from './ungdom-ikon';
|
|
167
|
-
export { default as UtropstegnIkon } from './utropstegn-ikon';
|
|
168
|
-
export { default as VarebilIkon } from './varebil-ikon';
|
|
169
|
-
export { default as VarselIkon } from './varsel-ikon';
|
|
170
|
-
export { default as VerktoySkiftenokkelIkon } from './verktoy-skiftenokkel-ikon';
|
|
171
|
-
export { default as WidgetIkon } from './widget-ikon';
|
|
172
|
-
export { default as XlsIkon } from './xls-ikon';
|
|
1
|
+
import Icon from './Icon';
|
|
2
|
+
export { Icon };
|
|
@@ -5,27 +5,40 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
+
var _propTypes = require("prop-types");
|
|
10
|
+
var _excluded = ["filePath", "className", "ariaLabel", "size"];
|
|
10
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
12
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
12
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
13
14
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
var Icon = function Icon(props) {
|
|
16
|
+
var filePath = props.filePath,
|
|
17
|
+
className = props.className,
|
|
18
|
+
ariaLabel = props.ariaLabel,
|
|
19
|
+
size = props.size,
|
|
20
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement("span", _extends({
|
|
22
|
+
role: "img",
|
|
23
|
+
"aria-label": ariaLabel,
|
|
24
|
+
"aria-hidden": !ariaLabel,
|
|
25
|
+
className: (0, _classnames.default)('ffe-icons', "ffe-icons--".concat(size), className),
|
|
26
|
+
style: {
|
|
27
|
+
maskImage: "url(".concat(filePath, ")")
|
|
28
|
+
}
|
|
29
|
+
}, rest));
|
|
24
30
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
title: _propTypes.default.string,
|
|
28
|
-
focusable: _propTypes.default.oneOf([true, false, 'true', 'false', 'auto', 'undefined'])
|
|
31
|
+
Icon.defaultProps = {
|
|
32
|
+
size: 'md'
|
|
29
33
|
};
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
Icon.propTypes = {
|
|
35
|
+
/** The path to the svg-file */
|
|
36
|
+
filePath: _propTypes.string.isRequired,
|
|
37
|
+
/** Additional classnames */
|
|
38
|
+
className: _propTypes.string,
|
|
39
|
+
/** Aria label, if ariaLabel is hull it'll sett aria-hidden to true */
|
|
40
|
+
ariaLabel: _propTypes.string,
|
|
41
|
+
/** Size of the container around the icon */
|
|
42
|
+
size: (0, _propTypes.oneOf)(['sm', 'md', 'lg', 'xl'])
|
|
43
|
+
};
|
|
44
|
+
var _default = exports.default = Icon;
|