-
-
-
-
- with text
-
-
-
-
- {tokens.map((token) => (
-
- ))}
-
-
- );
-};
-
-export const Default = DefaultTemplate.bind({});
diff --git a/src/hooks/useGeneratorColor/__stories__/constants.ts b/src/hooks/useGeneratorColor/__stories__/constants.ts
deleted file mode 100644
index 5d132b0c76..0000000000
--- a/src/hooks/useGeneratorColor/__stories__/constants.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export const colorModes = [
- {value: 'unsaturated', content: 'unsaturated'},
- {value: 'saturated', content: 'saturated'},
- {value: 'bright', content: 'bright'},
-];
diff --git a/src/hooks/useGeneratorColor/index.ts b/src/hooks/useGeneratorColor/index.ts
deleted file mode 100644
index f3ae79e8aa..0000000000
--- a/src/hooks/useGeneratorColor/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export {useGeneratorColor} from './useGeneratorColor';
-export type {UseGeneratorColorProps} from './types';
diff --git a/src/hooks/useGeneratorColor/utils/getHue.ts b/src/hooks/useGeneratorColor/utils/getHue.ts
deleted file mode 100644
index 9f293ec44c..0000000000
--- a/src/hooks/useGeneratorColor/utils/getHue.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/* eslint-disable no-bitwise */
-import {mathFrac} from './mathFrac';
-
-export const getHue = (hash: number) => {
- const sin = Math.sin(hash); // 0.12345678910 or -0.12345678910
- const fr = sin < 0 ? mathFrac(sin * 1000) : mathFrac(sin * 10_000); // 5678910
-
- return ~~(Math.abs(fr) * 360);
-};
diff --git a/src/hooks/useGeneratorColor/utils/hashFnv32a.ts b/src/hooks/useGeneratorColor/utils/hashFnv32a.ts
deleted file mode 100644
index 58d8a4e082..0000000000
--- a/src/hooks/useGeneratorColor/utils/hashFnv32a.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/* eslint-disable no-bitwise */
-// hash in [-2^31, 2^31 - 1]
-export const hashFnv32a = (token: string, start: number) => {
- let hval = start;
-
- for (let index = 0; index < token.length; index++) {
- hval ^= token.charCodeAt(index);
- hval += (hval << 1) + (hval << 4) + (hval << 7) + (hval << 8) + (hval << 24);
- }
-
- return hval >>> 0;
-};
diff --git a/src/hooks/useGeneratorColor/utils/mathFrac.ts b/src/hooks/useGeneratorColor/utils/mathFrac.ts
deleted file mode 100644
index 60b5ef06ee..0000000000
--- a/src/hooks/useGeneratorColor/utils/mathFrac.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-/* eslint-disable no-bitwise */
-export const mathFrac = (x: number) => x - ~~x;
diff --git a/src/hooks/useGeneratorColor/utils/normalizeHash.ts b/src/hooks/useGeneratorColor/utils/normalizeHash.ts
deleted file mode 100644
index 322c5f7ce0..0000000000
--- a/src/hooks/useGeneratorColor/utils/normalizeHash.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-export const normalizeHash = (hash: number, min: number, max: number) => {
- hash = Math.abs(hash);
-
- const normalizedHash = Math.floor((hash % (max - min + 1)) + min);
-
- return normalizedHash;
-};
diff --git a/src/hooks/useGeneratorColor/utils/randomIndex.ts b/src/hooks/useGeneratorColor/utils/randomIndex.ts
deleted file mode 100644
index 34d4ba6207..0000000000
--- a/src/hooks/useGeneratorColor/utils/randomIndex.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/* eslint-disable no-bitwise */
-export const getHash = (token: string) => {
- let hash = 0;
-
- for (let index = 0; index < token.length; index++) {
- hash = token.charCodeAt(index) + ((hash << 5) - hash);
- }
-
- return hash;
-};
-
-export const randomIndex = (token: string, max: number) => {
- const hash = getHash(token);
-
- const number = Math.abs(hash) % max;
-
- return number;
-};