mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 11:59:34 +00:00
chore: change peerDependencies
- use Svelte 3.55.0 since that's the minimum target for SvelteKit and svelte-check - revert to using SvelteComponentTyped for high compatibility. We'll migrate to SvelteComponent after dropping Svelte 3
This commit is contained in:
parent
0ac2faa8bc
commit
f014b9d7a0
168 changed files with 804 additions and 516 deletions
8
types/Search/Search.svelte.d.ts
vendored
8
types/Search/Search.svelte.d.ts
vendored
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponent } from "svelte";
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface SearchProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["input"]> {
|
||||
|
@ -86,7 +86,7 @@ export interface SearchProps
|
|||
* Defaults to `<Search />`
|
||||
* @default undefined
|
||||
*/
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
icon?: typeof import("svelte").SvelteComponent<any>;
|
||||
|
||||
/**
|
||||
* Set an id for the input element
|
||||
|
@ -99,9 +99,11 @@ export interface SearchProps
|
|||
* @default null
|
||||
*/
|
||||
ref?: null | HTMLInputElement;
|
||||
|
||||
[key: `data-${string}`]: any;
|
||||
}
|
||||
|
||||
export default class Search extends SvelteComponent<
|
||||
export default class Search extends SvelteComponentTyped<
|
||||
SearchProps,
|
||||
{
|
||||
expand: CustomEvent<null>;
|
||||
|
|
6
types/Search/SearchSkeleton.svelte.d.ts
vendored
6
types/Search/SearchSkeleton.svelte.d.ts
vendored
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponent } from "svelte";
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface SearchSkeletonProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
|
@ -8,9 +8,11 @@ export interface SearchSkeletonProps
|
|||
* @default "xl"
|
||||
*/
|
||||
size?: "sm" | "lg" | "xl";
|
||||
|
||||
[key: `data-${string}`]: any;
|
||||
}
|
||||
|
||||
export default class SearchSkeleton extends SvelteComponent<
|
||||
export default class SearchSkeleton extends SvelteComponentTyped<
|
||||
SearchSkeletonProps,
|
||||
{
|
||||
click: WindowEventMap["click"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue