From 8fe121951b43a0b84dc69d31e8121efd9321b34b Mon Sep 17 00:00:00 2001 From: Matthew Ellison Date: Mon, 16 Mar 2026 23:36:38 -0400 Subject: [PATCH] Update package layout --- lib/component/input/index.ts | 1 + lib/component/input/text/TextArea.tsx | 6 +- lib/component/input/text/TextInput.tsx | 6 +- lib/component/nav/DarkModeSwitch.tsx | 2 +- lib/component/theme/index.ts | 1 - lib/component/toaster/index.ts | 1 - lib/index.ts | 5 +- lib/provider/axios/AxiosProvider.tsx | 93 +++++++++++++ lib/provider/axios/axios.d.ts | 8 ++ lib/provider/axios/index.ts | 1 + .../theme/ThemeProvider.tsx | 0 lib/provider/theme/index.ts | 1 + .../toaster/ToasterProvider.tsx | 0 lib/provider/toaster/index.ts | 1 + lib/provider/token/TokenProvider.tsx | 77 +++++++++++ lib/provider/token/TokenUtils.ts | 52 ++++++++ lib/provider/token/index.ts | 1 + lib/types/InputTypes.ts | 14 +- package-lock.json | 125 +++++++++++++++--- package.json | 9 ++ src/main.tsx | 4 +- src/routes/modal/index.tsx | 2 +- src/util/InputUtils.tsx | 6 +- vite.config.ts | 6 +- 24 files changed, 383 insertions(+), 39 deletions(-) delete mode 100644 lib/component/theme/index.ts create mode 100644 lib/provider/axios/AxiosProvider.tsx create mode 100644 lib/provider/axios/axios.d.ts create mode 100644 lib/provider/axios/index.ts rename lib/{providers => provider}/theme/ThemeProvider.tsx (100%) create mode 100644 lib/provider/theme/index.ts rename lib/{providers => provider}/toaster/ToasterProvider.tsx (100%) create mode 100644 lib/provider/toaster/index.ts create mode 100644 lib/provider/token/TokenProvider.tsx create mode 100644 lib/provider/token/TokenUtils.ts create mode 100644 lib/provider/token/index.ts diff --git a/lib/component/input/index.ts b/lib/component/input/index.ts index 9524ca3..98a95f5 100644 --- a/lib/component/input/index.ts +++ b/lib/component/input/index.ts @@ -47,6 +47,7 @@ export { default as DragAndDropFileInput } from "./file/DragAndDropFileInput"; export { default as FileInput } from "./file/FileInput"; export { default as NumberInput } from "./number/NumberInput"; export { default as OptionInput } from "./text/OptionInput"; +export { default as PhoneInput } from "./text/PhoneInput"; export { default as SelectInput } from "./text/SelectInput"; export { default as TextArea } from "./text/TextArea"; export { default as TextInput } from "./text/TextInput"; diff --git a/lib/component/input/text/TextArea.tsx b/lib/component/input/text/TextArea.tsx index 05cc6f0..7b6f05e 100644 --- a/lib/component/input/text/TextArea.tsx +++ b/lib/component/input/text/TextArea.tsx @@ -16,6 +16,7 @@ export default function TextArea({ placeholder, value, onChange, + onKeyDown, disabled }: Readonly){ const componentId = useId(); @@ -44,14 +45,15 @@ export default function TextArea({ rows={rows} cols={cols} value={value} - onChange={onChange} + onChange={(e) => onChange?.(e.target.value)} + onKeyDown={onKeyDown} disabled={disabled} spellCheck={spellCheck} />