mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
breaking(types): remove unused type defs
This commit is contained in:
parent
6d45305615
commit
5b25aae8a6
7 changed files with 0 additions and 250 deletions
32
types/Copy/Copy.svelte.d.ts
vendored
32
types/Copy/Copy.svelte.d.ts
vendored
|
@ -1,32 +0,0 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface CopyProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["button"]> {
|
||||
/**
|
||||
* Set the feedback text shown after clicking the button
|
||||
* @default "Copied!"
|
||||
*/
|
||||
feedback?: string;
|
||||
|
||||
/**
|
||||
* Set the timeout duration (ms) to display feedback text
|
||||
* @default 2000
|
||||
*/
|
||||
feedbackTimeout?: number;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the button HTML element
|
||||
* @default null
|
||||
*/
|
||||
ref?: null | HTMLButtonElement;
|
||||
}
|
||||
|
||||
export default class Copy extends SvelteComponentTyped<
|
||||
CopyProps,
|
||||
{
|
||||
click: WindowEventMap["click"];
|
||||
animationend: WindowEventMap["animationend"];
|
||||
},
|
||||
{ default: {} }
|
||||
> {}
|
34
types/Icon/Icon.svelte.d.ts
vendored
34
types/Icon/Icon.svelte.d.ts
vendored
|
@ -1,34 +0,0 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
import { IconSkeletonProps } from "./IconSkeleton.svelte";
|
||||
|
||||
export interface IconProps
|
||||
extends IconSkeletonProps,
|
||||
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["svg"]> {
|
||||
/**
|
||||
* Specify the icon to render
|
||||
* @default undefined
|
||||
*/
|
||||
render?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Set to `true` to display the skeleton state
|
||||
* @default false
|
||||
*/
|
||||
skeleton?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated This component is deprecated.
|
||||
* Use icons from "carbon-icons-svelte" instead.
|
||||
*/
|
||||
export default class Icon extends SvelteComponentTyped<
|
||||
IconProps,
|
||||
{
|
||||
click: WindowEventMap["click"];
|
||||
mouseover: WindowEventMap["mouseover"];
|
||||
mouseenter: WindowEventMap["mouseenter"];
|
||||
mouseleave: WindowEventMap["mouseleave"];
|
||||
},
|
||||
{}
|
||||
> {}
|
25
types/Icon/IconSkeleton.svelte.d.ts
vendored
25
types/Icon/IconSkeleton.svelte.d.ts
vendored
|
@ -1,25 +0,0 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface IconSkeletonProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
/**
|
||||
* Set the size of the icon
|
||||
* @default 16
|
||||
*/
|
||||
size?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated This component is deprecated.
|
||||
*/
|
||||
export default class IconSkeleton extends SvelteComponentTyped<
|
||||
IconSkeletonProps,
|
||||
{
|
||||
click: WindowEventMap["click"];
|
||||
mouseover: WindowEventMap["mouseover"];
|
||||
mouseenter: WindowEventMap["mouseenter"];
|
||||
mouseleave: WindowEventMap["mouseleave"];
|
||||
},
|
||||
{}
|
||||
> {}
|
|
@ -1,37 +0,0 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface NotificationTextDetailsProps {
|
||||
/**
|
||||
* Set the type of notification
|
||||
* @default "toast"
|
||||
*/
|
||||
notificationType?: "toast" | "inline";
|
||||
|
||||
/**
|
||||
* Specify the title text
|
||||
* @default "Title"
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* Specify the subtitle text
|
||||
* @default ""
|
||||
*/
|
||||
subtitle?: string;
|
||||
|
||||
/**
|
||||
* Specify the caption text
|
||||
* @default "Caption"
|
||||
*/
|
||||
caption?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated This component is deprecated.
|
||||
*/
|
||||
export default class NotificationTextDetails extends SvelteComponentTyped<
|
||||
NotificationTextDetailsProps,
|
||||
{},
|
||||
{ default: {} }
|
||||
> {}
|
66
types/ToggleSmall/ToggleSmall.svelte.d.ts
vendored
66
types/ToggleSmall/ToggleSmall.svelte.d.ts
vendored
|
@ -1,66 +0,0 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface ToggleSmallProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
/**
|
||||
* Set to `true` to toggle the checkbox input
|
||||
* @default false
|
||||
*/
|
||||
toggled?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to disable checkbox input
|
||||
* @default false
|
||||
*/
|
||||
disabled?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the label for the untoggled state
|
||||
* @default "Off"
|
||||
*/
|
||||
labelA?: string;
|
||||
|
||||
/**
|
||||
* Specify the label for the toggled state
|
||||
* @default "On"
|
||||
*/
|
||||
labelB?: string;
|
||||
|
||||
/**
|
||||
* Specify the label text
|
||||
* @default ""
|
||||
*/
|
||||
labelText?: string;
|
||||
|
||||
/**
|
||||
* Set an id for the input element
|
||||
* @default "ccs-" + Math.random().toString(36)
|
||||
*/
|
||||
id?: string;
|
||||
|
||||
/**
|
||||
* Specify a name attribute for the checkbox input
|
||||
* @default undefined
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated This component is deprecated.
|
||||
* Use`<Toggle size="sm" />` instead.
|
||||
*/
|
||||
export default class ToggleSmall extends SvelteComponentTyped<
|
||||
ToggleSmallProps,
|
||||
{
|
||||
click: WindowEventMap["click"];
|
||||
mouseover: WindowEventMap["mouseover"];
|
||||
mouseenter: WindowEventMap["mouseenter"];
|
||||
mouseleave: WindowEventMap["mouseleave"];
|
||||
change: WindowEventMap["change"];
|
||||
keyup: WindowEventMap["keyup"];
|
||||
focus: WindowEventMap["focus"];
|
||||
blur: WindowEventMap["blur"];
|
||||
},
|
||||
{}
|
||||
> {}
|
|
@ -1,32 +0,0 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface ToggleSmallSkeletonProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
/**
|
||||
* Specify the label text
|
||||
* @default ""
|
||||
*/
|
||||
labelText?: string;
|
||||
|
||||
/**
|
||||
* Set an id for the input element
|
||||
* @default "ccs-" + Math.random().toString(36)
|
||||
*/
|
||||
id?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated This component is deprecated.
|
||||
* Use`<ToggleSkeleton size="sm" />` instead.
|
||||
*/
|
||||
export default class ToggleSmallSkeleton extends SvelteComponentTyped<
|
||||
ToggleSmallSkeletonProps,
|
||||
{
|
||||
click: WindowEventMap["click"];
|
||||
mouseover: WindowEventMap["mouseover"];
|
||||
mouseenter: WindowEventMap["mouseenter"];
|
||||
mouseleave: WindowEventMap["mouseleave"];
|
||||
},
|
||||
{}
|
||||
> {}
|
|
@ -1,24 +0,0 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface HeaderActionSearchProps {
|
||||
/**
|
||||
* Set to `true` to focus the search
|
||||
* @default false
|
||||
*/
|
||||
searchIsActive?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* This component is deprecated. Use `HeaderSearch` instead.
|
||||
*/
|
||||
export default class HeaderActionSearch extends SvelteComponentTyped<
|
||||
HeaderActionSearchProps,
|
||||
{
|
||||
inputSearch: CustomEvent<{ action: "search"; textInput: string }>;
|
||||
focusInputSearch: CustomEvent<any>;
|
||||
focusOutInputSearch: CustomEvent<any>;
|
||||
},
|
||||
{}
|
||||
> {}
|
Loading…
Add table
Add a link
Reference in a new issue