@deix/rossini-core 3.0.4 → 3.0.6
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/lib/components/buttons/LanguageSelect/LanguageSelect.d.ts.map +1 -1
- package/lib/components/buttons/LanguageSelect/LanguageSelect.js +4 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/helpers/stringHelpers.d.ts.map +1 -1
- package/lib/utils/helpers/stringHelpers.js +0 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringHelpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers/stringHelpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,gBAAiB,MAAM,KAAG,MAC0B,CAAC;AAE9E,eAAO,MAAM,YAAY,gBAAiB,MAAM,KAAG,MAGhD,CAAC;AAEJ,eAAO,MAAM,WAAW,gBAAiB,MAAM,mBAAc,MAI/C,CAAC;AAEf,eAAO,MAAM,aAAa,WAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"stringHelpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers/stringHelpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,gBAAiB,MAAM,KAAG,MAC0B,CAAC;AAE9E,eAAO,MAAM,YAAY,gBAAiB,MAAM,KAAG,MAGhD,CAAC;AAEJ,eAAO,MAAM,WAAW,gBAAiB,MAAM,mBAAc,MAI/C,CAAC;AAEf,eAAO,MAAM,aAAa,WAAY,MAAM,WAgB3C,CAAC;AAEF,eAAO,MAAM,WAAW,YAAa,MAAM,EAAE,WAS5C,CAAC;AAIF,eAAO,MAAM,WAAW,aACZ,MAAM,UACR,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WAO/B,CAAC"}
|
|
@@ -7,7 +7,6 @@ export const toTitleCase = (inputString, sep = '_') => inputString
|
|
|
7
7
|
export const stringToColor = (string) => {
|
|
8
8
|
let hash = 0;
|
|
9
9
|
let i;
|
|
10
|
-
/* eslint-disable no-bitwise */
|
|
11
10
|
for (i = 0; i < string.length; i += 1) {
|
|
12
11
|
hash = string.charCodeAt(i) + ((hash << 5) - hash);
|
|
13
12
|
}
|
|
@@ -16,7 +15,6 @@ export const stringToColor = (string) => {
|
|
|
16
15
|
const value = (hash >> (i * 8)) & 0xff;
|
|
17
16
|
color += `00${value.toString(16)}`.slice(-2);
|
|
18
17
|
}
|
|
19
|
-
/* eslint-enable no-bitwise */
|
|
20
18
|
return color;
|
|
21
19
|
};
|
|
22
20
|
export const commonStart = (strings) => {
|