mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +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
6
types/ContextMenu/ContextMenu.svelte.d.ts
vendored
6
types/ContextMenu/ContextMenu.svelte.d.ts
vendored
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponent } from "svelte";
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface ContextMenuProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["ul"]> {
|
||||
|
@ -34,9 +34,11 @@ export interface ContextMenuProps
|
|||
* @default null
|
||||
*/
|
||||
ref?: null | HTMLUListElement;
|
||||
|
||||
[key: `data-${string}`]: any;
|
||||
}
|
||||
|
||||
export default class ContextMenu extends SvelteComponent<
|
||||
export default class ContextMenu extends SvelteComponentTyped<
|
||||
ContextMenuProps,
|
||||
{
|
||||
open: CustomEvent<HTMLElement>;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponent } from "svelte";
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface ContextMenuDividerProps {}
|
||||
|
||||
export default class ContextMenuDivider extends SvelteComponent<
|
||||
export default class ContextMenuDivider extends SvelteComponentTyped<
|
||||
ContextMenuDividerProps,
|
||||
{},
|
||||
{}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponent } from "svelte";
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface ContextMenuGroupProps {
|
||||
/**
|
||||
|
@ -14,7 +14,7 @@ export interface ContextMenuGroupProps {
|
|||
labelText?: string;
|
||||
}
|
||||
|
||||
export default class ContextMenuGroup extends SvelteComponent<
|
||||
export default class ContextMenuGroup extends SvelteComponentTyped<
|
||||
ContextMenuGroupProps,
|
||||
{},
|
||||
{ default: {} }
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponent } from "svelte";
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface ContextMenuOptionProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["li"]> {
|
||||
|
@ -26,7 +26,7 @@ export interface ContextMenuOptionProps
|
|||
* Icon is rendered to the left of the label text
|
||||
* @default undefined
|
||||
*/
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
icon?: typeof import("svelte").SvelteComponent<any>;
|
||||
|
||||
/**
|
||||
* Specify the label text
|
||||
|
@ -67,9 +67,11 @@ export interface ContextMenuOptionProps
|
|||
* @default null
|
||||
*/
|
||||
ref?: null | HTMLLIElement;
|
||||
|
||||
[key: `data-${string}`]: any;
|
||||
}
|
||||
|
||||
export default class ContextMenuOption extends SvelteComponent<
|
||||
export default class ContextMenuOption extends SvelteComponentTyped<
|
||||
ContextMenuOptionProps,
|
||||
{
|
||||
keydown: WindowEventMap["keydown"];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponent } from "svelte";
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface ContextMenuRadioGroupProps {
|
||||
/**
|
||||
|
@ -15,7 +15,7 @@ export interface ContextMenuRadioGroupProps {
|
|||
labelText?: string;
|
||||
}
|
||||
|
||||
export default class ContextMenuRadioGroup extends SvelteComponent<
|
||||
export default class ContextMenuRadioGroup extends SvelteComponentTyped<
|
||||
ContextMenuRadioGroupProps,
|
||||
{},
|
||||
{ default: {} }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue