mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
feat(typescript)!: support svelte 4 (#1773)
Closes #1753 The minimum Svelte version required for TypeScript users is now 3.55.
This commit is contained in:
parent
778b2c357f
commit
2f026f792a
192 changed files with 941 additions and 712 deletions
|
@ -1,8 +1,9 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
export interface InlineNotificationProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
type RestProps = SvelteHTMLElements["div"];
|
||||
|
||||
export interface InlineNotificationProps extends RestProps {
|
||||
/**
|
||||
* Specify the kind of notification
|
||||
* @default "error"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { ButtonProps } from "../Button/Button.svelte";
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
export interface NotificationButtonProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["button"]> {
|
||||
type RestProps = SvelteHTMLElements["button"];
|
||||
|
||||
export interface NotificationButtonProps extends RestProps {
|
||||
/**
|
||||
* Set the type of notification
|
||||
* @default "toast"
|
||||
|
@ -13,7 +14,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
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface NotificationIconProps {
|
||||
|
@ -29,6 +28,6 @@ export interface NotificationIconProps {
|
|||
|
||||
export default class NotificationIcon extends SvelteComponentTyped<
|
||||
NotificationIconProps,
|
||||
{},
|
||||
Record<string, any>,
|
||||
{}
|
||||
> {}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
export interface ToastNotificationProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
type RestProps = SvelteHTMLElements["div"];
|
||||
|
||||
export interface ToastNotificationProps extends RestProps {
|
||||
/**
|
||||
* Specify the kind of notification
|
||||
* @default "error"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue