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 interface ProgressIndicatorProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["ul"]> {
@ -28,7 +28,7 @@ export interface ProgressIndicatorProps
preventChangeOnClick?: boolean;
}
export default class ProgressIndicator extends SvelteComponentTyped<
export default class ProgressIndicator extends SvelteComponent<
ProgressIndicatorProps,
{
change: CustomEvent<number>;

View file

@ -1,5 +1,5 @@
/// <reference types="svelte" />
import type { SvelteComponentTyped } from "svelte";
import type { SvelteComponent } from "svelte";
export interface ProgressIndicatorSkeletonProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["ul"]> {
@ -16,7 +16,7 @@ export interface ProgressIndicatorSkeletonProps
count?: number;
}
export default class ProgressIndicatorSkeleton extends SvelteComponentTyped<
export default class ProgressIndicatorSkeleton extends SvelteComponent<
ProgressIndicatorSkeletonProps,
{
click: WindowEventMap["click"];

View file

@ -1,5 +1,5 @@
/// <reference types="svelte" />
import type { SvelteComponentTyped } from "svelte";
import type { SvelteComponent } from "svelte";
export interface ProgressStepProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["li"]> {
@ -52,7 +52,7 @@ export interface ProgressStepProps
id?: string;
}
export default class ProgressStep extends SvelteComponentTyped<
export default class ProgressStep extends SvelteComponent<
ProgressStepProps,
{
click: WindowEventMap["click"];