ui-lib(new-component): added text input component in the c-lib

This commit is contained in:
Corentin Thomasset authored and Corentin THOMASSET committed 2023-05-14 22:30:23 +02:00
1 parent 401f13f7e3
commit aad8d84e13
14 files changed
+428 -21

No files matched your search

+11 -1
View File
@@ -18,4 +18,14 @@ const shuffleArray = <T>(array: T[]): T[] => shuffleArrayMutate([...array]);
const shuffleString = (str: string, delimiter = ''): string => shuffleArrayMutate(str.split(delimiter)).join(delimiter);
export { randFromArray, randIntFromInterval, random, shuffleArray, shuffleArrayMutate, shuffleString };
const generateRandomId = () => `id-${random().toString(36).substring(2, 12)}`;
export {
randFromArray,
randIntFromInterval,
random,
shuffleArray,
shuffleArrayMutate,
shuffleString,
generateRandomId,
};