mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +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 ComposedModalProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
type RestProps = SvelteHTMLElements["div"];
|
||||
|
||||
export interface ComposedModalProps extends RestProps {
|
||||
/**
|
||||
* Set the size of the composed modal
|
||||
* @default undefined
|
||||
|
|
9
types/ComposedModal/ModalBody.svelte.d.ts
vendored
9
types/ComposedModal/ModalBody.svelte.d.ts
vendored
|
@ -1,8 +1,9 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
export interface ModalBodyProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
type RestProps = SvelteHTMLElements["div"];
|
||||
|
||||
export interface ModalBodyProps extends RestProps {
|
||||
/**
|
||||
* Set to `true` if the modal contains form elements
|
||||
* @default false
|
||||
|
@ -20,6 +21,6 @@ export interface ModalBodyProps
|
|||
|
||||
export default class ModalBody extends SvelteComponentTyped<
|
||||
ModalBodyProps,
|
||||
{},
|
||||
Record<string, any>,
|
||||
{ default: {} }
|
||||
> {}
|
||||
|
|
9
types/ComposedModal/ModalFooter.svelte.d.ts
vendored
9
types/ComposedModal/ModalFooter.svelte.d.ts
vendored
|
@ -1,8 +1,9 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
export interface ModalFooterProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
type RestProps = SvelteHTMLElements["div"];
|
||||
|
||||
export interface ModalFooterProps extends RestProps {
|
||||
/**
|
||||
* Specify the primary button text
|
||||
* @default ""
|
||||
|
@ -13,7 +14,7 @@ export interface ModalFooterProps
|
|||
* Specify the primary button icon
|
||||
* @default undefined
|
||||
*/
|
||||
primaryButtonIcon?: typeof import("svelte").SvelteComponent;
|
||||
primaryButtonIcon?: typeof import("svelte").SvelteComponent<any>;
|
||||
|
||||
/**
|
||||
* Set to `true` to disable the primary button
|
||||
|
|
7
types/ComposedModal/ModalHeader.svelte.d.ts
vendored
7
types/ComposedModal/ModalHeader.svelte.d.ts
vendored
|
@ -1,8 +1,9 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
export interface ModalHeaderProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
type RestProps = SvelteHTMLElements["div"];
|
||||
|
||||
export interface ModalHeaderProps extends RestProps {
|
||||
/**
|
||||
* Specify the modal title
|
||||
* @default ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue