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
7
types/Tabs/Tab.svelte.d.ts
vendored
7
types/Tabs/Tab.svelte.d.ts
vendored
|
@ -1,8 +1,9 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
export interface TabProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["li"]> {
|
||||
type RestProps = SvelteHTMLElements["li"];
|
||||
|
||||
export interface TabProps extends RestProps {
|
||||
/**
|
||||
* Specify the tab label
|
||||
* Alternatively, use the default slot (e.g., <Tab><span>Label</span></Tab>)
|
||||
|
|
9
types/Tabs/TabContent.svelte.d.ts
vendored
9
types/Tabs/TabContent.svelte.d.ts
vendored
|
@ -1,8 +1,9 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
export interface TabContentProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
type RestProps = SvelteHTMLElements["div"];
|
||||
|
||||
export interface TabContentProps extends RestProps {
|
||||
/**
|
||||
* Set an id for the top-level element
|
||||
* @default "ccs-" + Math.random().toString(36)
|
||||
|
@ -14,6 +15,6 @@ export interface TabContentProps
|
|||
|
||||
export default class TabContent extends SvelteComponentTyped<
|
||||
TabContentProps,
|
||||
{},
|
||||
Record<string, any>,
|
||||
{ default: {} }
|
||||
> {}
|
||||
|
|
7
types/Tabs/Tabs.svelte.d.ts
vendored
7
types/Tabs/Tabs.svelte.d.ts
vendored
|
@ -1,8 +1,9 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
export interface TabsProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
type RestProps = SvelteHTMLElements["div"];
|
||||
|
||||
export interface TabsProps extends RestProps {
|
||||
/**
|
||||
* Specify the selected tab index
|
||||
* @default 0
|
||||
|
|
7
types/Tabs/TabsSkeleton.svelte.d.ts
vendored
7
types/Tabs/TabsSkeleton.svelte.d.ts
vendored
|
@ -1,8 +1,9 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
export interface TabsSkeletonProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
type RestProps = SvelteHTMLElements["div"];
|
||||
|
||||
export interface TabsSkeletonProps extends RestProps {
|
||||
/**
|
||||
* Specify the number of tabs to render
|
||||
* @default 4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue