chore: migrate to svelte-4

- Use `SvelteComponent` instead of `SvelteComponentTyped`
- use `local` transitions for backwards-compatibility
This commit is contained in:
Enrico Sacchetti 2023-06-23 11:19:16 -04:00
commit 56488e7375
No known key found for this signature in database
GPG key ID: 3374B89ECA60D796
189 changed files with 508 additions and 377 deletions

View file

@ -1,5 +1,5 @@
/// <reference types="svelte" />
import type { SvelteComponentTyped } from "svelte";
import type { SvelteComponent } from "svelte";
export type CarbonTheme = "white" | "g10" | "g80" | "g90" | "g100";
@ -50,7 +50,7 @@ export interface ThemeProps {
select?: import("../Select/Select").SelectProps & { themes?: CarbonTheme[] };
}
export default class Theme extends SvelteComponentTyped<
export default class Theme extends SvelteComponent<
ThemeProps,
{ update: CustomEvent<{ theme: CarbonTheme }> },
{ default: { theme: CarbonTheme } }