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

This commit is contained in:
Corentin Thomasset 2023-05-07 23:31:10 +02:00 committed by Corentin THOMASSET
parent 401f13f7e3
commit aad8d84e13
14 changed files with 428 additions and 21 deletions

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,
};