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
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponent } from "svelte";
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface InlineNotificationProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
|
@ -62,9 +62,11 @@ export interface InlineNotificationProps
|
|||
* @default "Close notification"
|
||||
*/
|
||||
closeButtonDescription?: string;
|
||||
|
||||
[key: `data-${string}`]: any;
|
||||
}
|
||||
|
||||
export default class InlineNotification extends SvelteComponent<
|
||||
export default class InlineNotification extends SvelteComponentTyped<
|
||||
InlineNotificationProps,
|
||||
{
|
||||
close: CustomEvent<{ timeout: boolean }>;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponent } from "svelte";
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { ButtonProps } from "../Button/Button.svelte";
|
||||
|
||||
export interface NotificationActionButtonProps extends ButtonProps {}
|
||||
|
||||
export default class NotificationActionButton extends SvelteComponent<
|
||||
export default class NotificationActionButton extends SvelteComponentTyped<
|
||||
NotificationActionButtonProps,
|
||||
{
|
||||
click: WindowEventMap["click"];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponent } from "svelte";
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface NotificationButtonProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["button"]> {
|
||||
|
@ -13,7 +13,7 @@ export interface NotificationButtonProps
|
|||
* Specify the icon to render
|
||||
* @default undefined
|
||||
*/
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
icon?: typeof import("svelte").SvelteComponent<any>;
|
||||
|
||||
/**
|
||||
* Specify the title of the icon
|
||||
|
@ -26,9 +26,11 @@ export interface NotificationButtonProps
|
|||
* @default "Close icon"
|
||||
*/
|
||||
iconDescription?: string;
|
||||
|
||||
[key: `data-${string}`]: any;
|
||||
}
|
||||
|
||||
export default class NotificationButton extends SvelteComponent<
|
||||
export default class NotificationButton extends SvelteComponentTyped<
|
||||
NotificationButtonProps,
|
||||
{
|
||||
click: WindowEventMap["click"];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponent } from "svelte";
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface NotificationIconProps {
|
||||
/**
|
||||
|
@ -27,7 +27,7 @@ export interface NotificationIconProps {
|
|||
iconDescription: undefined;
|
||||
}
|
||||
|
||||
export default class NotificationIcon extends SvelteComponent<
|
||||
export default class NotificationIcon extends SvelteComponentTyped<
|
||||
NotificationIconProps,
|
||||
{},
|
||||
{}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponent } from "svelte";
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface ToastNotificationProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
|
@ -75,9 +75,11 @@ export interface ToastNotificationProps
|
|||
* @default false
|
||||
*/
|
||||
fullWidth?: boolean;
|
||||
|
||||
[key: `data-${string}`]: any;
|
||||
}
|
||||
|
||||
export default class ToastNotification extends SvelteComponent<
|
||||
export default class ToastNotification extends SvelteComponentTyped<
|
||||
ToastNotificationProps,
|
||||
{
|
||||
close: CustomEvent<{ timeout: boolean }>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue