@devtron-labs/devtron-fe-common-lib 0.0.42-beta-4 → 0.0.42-beta-5
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/dist/Common/Helper.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/Common/Helper.tsx +2 -2
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare function sortCallback(key: string, a: any, b: any, isCaseSensitiv
|
|
|
11
11
|
export declare const stopPropagation: (event: any) => void;
|
|
12
12
|
export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
|
|
13
13
|
export declare function getRandomColor(email: string): string;
|
|
14
|
-
export declare const getAlphabetIcon: (str: string) => JSX.Element;
|
|
14
|
+
export declare const getAlphabetIcon: (str: string, intialAlphabetClassName?: string) => JSX.Element;
|
|
15
15
|
export declare const getEmptyArrayOfLength: (length: number) => unknown[];
|
|
16
16
|
export declare function noop(...args: any[]): any;
|
|
17
17
|
export declare function not(e: any): boolean;
|
package/dist/index.js
CHANGED
|
@@ -9953,10 +9953,10 @@ function getRandomColor(email) {
|
|
|
9953
9953
|
}
|
|
9954
9954
|
return colors$1[sum % colors$1.length];
|
|
9955
9955
|
}
|
|
9956
|
-
var getAlphabetIcon = function (str) {
|
|
9956
|
+
var getAlphabetIcon = function (str, intialAlphabetClassName) {
|
|
9957
9957
|
if (!str)
|
|
9958
9958
|
return null;
|
|
9959
|
-
return (jsxRuntime.jsx("span", __assign({ className: "alphabet-icon__initial fs-13 icon-dim-20 flex cn-0 mr-8", style: { backgroundColor: getRandomColor(str) } }, { children: str[0] })));
|
|
9959
|
+
return (jsxRuntime.jsx("span", __assign({ className: "alphabet-icon__initial fs-13 icon-dim-20 flex cn-0 mr-8 ".concat(intialAlphabetClassName), style: { backgroundColor: getRandomColor(str) } }, { children: str[0] })));
|
|
9960
9960
|
};
|
|
9961
9961
|
var getEmptyArrayOfLength = function (length) {
|
|
9962
9962
|
return Array.from({ length: length });
|
package/package.json
CHANGED
package/src/Common/Helper.tsx
CHANGED
|
@@ -116,11 +116,11 @@ export function getRandomColor(email: string): string {
|
|
|
116
116
|
return colors[sum % colors.length]
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
export const getAlphabetIcon = (str: string) => {
|
|
119
|
+
export const getAlphabetIcon = (str: string, intialAlphabetClassName?: string) => {
|
|
120
120
|
if (!str) return null
|
|
121
121
|
return (
|
|
122
122
|
<span
|
|
123
|
-
className=
|
|
123
|
+
className={`alphabet-icon__initial fs-13 icon-dim-20 flex cn-0 mr-8 ${intialAlphabetClassName}`}
|
|
124
124
|
style={{ backgroundColor: getRandomColor(str) }}
|
|
125
125
|
>
|
|
126
126
|
{str[0]}
|