nav-frontend-alertstriper
Advanced tools
Comparing version 3.0.8 to 3.0.9
@@ -29,14 +29,12 @@ "use strict"; | ||
var ikonKind = function ikonKind(type) { | ||
var kindMap = { | ||
'info-sirkel-fyll': type === 'info', | ||
'ok-sirkel-fyll': type === 'suksess', | ||
'advarsel-sirkel-fyll': type === 'advarsel', | ||
'feil-sirkel-fyll': type === 'feil' | ||
}; | ||
return Object.keys(kindMap).map(function (key) { | ||
return { key: key, predicate: kindMap[key] }; | ||
}).find(function (_ref) { | ||
var predicate = _ref.predicate; | ||
return predicate; | ||
}).key; | ||
switch (type) { | ||
case 'suksess': | ||
return 'ok-sirkel-fyll'; | ||
case 'advarsel': | ||
return 'advarsel-sirkel-fyll'; | ||
case 'feil': | ||
return 'feil-sirkel-fyll'; | ||
default: | ||
return 'info-sirkel-fyll'; | ||
} | ||
}; | ||
@@ -43,0 +41,0 @@ |
{ | ||
"name": "nav-frontend-alertstriper", | ||
"version": "3.0.8", | ||
"version": "3.0.9", | ||
"main": "lib/alertstripe.js", | ||
@@ -16,3 +16,2 @@ "types": "lib/alertstripe.d.ts", | ||
"peerDependencies": { | ||
"babel-polyfill": "^6.26.0", | ||
"classnames": "^2.2.5", | ||
@@ -19,0 +18,0 @@ "nav-frontend-alertstriper-style": "^2.0.7", |
@@ -6,3 +6,3 @@ # react-module: nav-frontend-alertstriper | ||
``` | ||
npm install babel-polyfill classnames nav-frontend-alertstriper nav-frontend-alertstriper-style nav-frontend-core nav-frontend-ikoner-assets nav-frontend-paneler-style nav-frontend-typografi nav-frontend-typografi-style prop-types react --save | ||
npm install classnames nav-frontend-alertstriper nav-frontend-alertstriper-style nav-frontend-core nav-frontend-ikoner-assets nav-frontend-paneler-style nav-frontend-typografi nav-frontend-typografi-style prop-types react --save | ||
``` | ||
@@ -9,0 +9,0 @@ <!-- AUTO-GENERATED-CONTENT:END *--> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6
45953
336