@hig/avatar
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1665,2 +1665,4 @@ import React, { Component } from 'react'; | ||
var COLOR_VARIANT_COUNT = 7; | ||
/** | ||
@@ -1681,3 +1683,3 @@ * @param {number} value | ||
function backgroundIdFromName(name) { | ||
return convertRanges(name.charCodeAt(0) - 65, [0, 26], [1, 8]); | ||
return convertRanges(name.charCodeAt(0) - 65, [0, 26], [1, COLOR_VARIANT_COUNT]); | ||
} | ||
@@ -1684,0 +1686,0 @@ |
@@ -1672,2 +1672,4 @@ 'use strict'; | ||
var COLOR_VARIANT_COUNT = 7; | ||
/** | ||
@@ -1688,3 +1690,3 @@ * @param {number} value | ||
function backgroundIdFromName(name) { | ||
return convertRanges(name.charCodeAt(0) - 65, [0, 26], [1, 8]); | ||
return convertRanges(name.charCodeAt(0) - 65, [0, 26], [1, COLOR_VARIANT_COUNT]); | ||
} | ||
@@ -1691,0 +1693,0 @@ |
@@ -0,1 +1,8 @@ | ||
# [@hig/avatar-v1.0.2](https://github.com/Autodesk/hig/compare/@hig/avatar@1.0.1...@hig/avatar@1.0.2) (2019-01-09) | ||
### Bug Fixes | ||
* Shows a bg color for names starting w/ Z ([9745ec3](https://github.com/Autodesk/hig/commit/9745ec3)) | ||
# [@hig/avatar-v1.0.1](https://github.com/Autodesk/hig/compare/@hig/avatar@1.0.0...@hig/avatar@1.0.1) (2019-01-04) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@hig/avatar", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "HIG Avatar", | ||
@@ -20,2 +20,3 @@ "author": "Autodesk Inc.", | ||
"dependencies": { | ||
"@hig/theme-context": "^1.0.1", | ||
"classnames": "^2.2.5", | ||
@@ -22,0 +23,0 @@ "prop-types": "^15.6.1", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
126781
3341
0
5
+ Added@hig/theme-context@^1.0.1
+ Added@hig/theme-context@1.0.1(transitive)
+ Added@hig/theme-data@1.6.0(transitive)
+ Addedasap@2.0.6(transitive)
+ Addedcore-js@1.2.7(transitive)
+ Addedcreate-react-context@0.2.3(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addedfbjs@0.8.18(transitive)
+ Addedgud@1.0.0(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisomorphic-fetch@2.2.1(transitive)
+ Addednode-fetch@1.7.3(transitive)
+ Addedpromise@7.3.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsetimmediate@1.0.5(transitive)
+ Addedtinycolor2@1.6.0(transitive)
+ Addedua-parser-js@0.7.39(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)