From a30764eb1cae499f88f388364f528fbdaa3724ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Manuel=20Fuentes=20Trejo?= Date: Thu, 14 Nov 2024 17:10:24 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20chore:=20fix=20CI=20Build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/components/Autocomplete/Autocomplete.tsx | 14 ++++-- package.json | 11 +---- scripts/generate-exports.js | 50 ++++++++++++++++++++ tsup.config.ts | 10 ++-- 4 files changed, 69 insertions(+), 16 deletions(-) create mode 100644 scripts/generate-exports.js diff --git a/lib/components/Autocomplete/Autocomplete.tsx b/lib/components/Autocomplete/Autocomplete.tsx index 1b744c9..dde7250 100644 --- a/lib/components/Autocomplete/Autocomplete.tsx +++ b/lib/components/Autocomplete/Autocomplete.tsx @@ -6,6 +6,8 @@ import { useRef, } from 'react'; +import { useTheme } from '../../contexts'; + import { useAutocomplete } from './hooks'; import { List } from './components/List'; import { AutocompleteProps } from './Autocomplete.types'; @@ -32,6 +34,8 @@ const Autocomplete = forwardRef( const wrapperRef = useRef>(null); const inputRef = useRef>(null); const id = useId(); + const { theme: contextTheme } = useTheme(); + const inheritTheme = theme ?? contextTheme; useImperativeHandle(ref, () => inputRef.current!, [inputRef]); @@ -48,7 +52,7 @@ const Autocomplete = forwardRef(