fix(theme): Theme correctly imports toggle, select props

Fixes #2018
This commit is contained in:
metonym 2024-10-25 14:53:25 -07:00
commit b7130bd906
4 changed files with 17 additions and 15 deletions

View file

@ -38,7 +38,7 @@ export interface ThemeProps {
* Override the default toggle props
* @default { themes: ["white", "g100"], labelA: "", labelB: "", labelText: "Dark mode", hideLabel: false, }
*/
toggle?: import("../Toggle/Toggle").ToggleProps & {
toggle?: import("../Toggle/Toggle.svelte").ToggleProps & {
themes?: [labelA: CarbonTheme, labelB: CarbonTheme];
};
@ -46,7 +46,9 @@ export interface ThemeProps {
* Override the default select props
* @default { themes: themeKeys, labelText: "Themes", hideLabel: false, }
*/
select?: import("../Select/Select").SelectProps & { themes?: CarbonTheme[] };
select?: import("../Select/Select.svelte").SelectProps & {
themes?: CarbonTheme[];
};
}
export default class Theme extends SvelteComponentTyped<