mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
Upgrade sveld to v0.10 (#856)
* chore(deps-dev): upgrade sveld to v0.10.2 * feat(types): regenerate types using sveld@0.10.2 * fix(types): update @extends to use .svelte extension
This commit is contained in:
parent
c6fc8548d3
commit
3203e7a61f
190 changed files with 345 additions and 263 deletions
83
types/Tile/ExpandableTile.svelte.d.ts
vendored
Normal file
83
types/Tile/ExpandableTile.svelte.d.ts
vendored
Normal file
|
@ -0,0 +1,83 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface ExpandableTileProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["button"]> {
|
||||
/**
|
||||
* Set to `true` to expand the tile
|
||||
* @default false
|
||||
*/
|
||||
expanded?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to enable the light variant
|
||||
* @default false
|
||||
*/
|
||||
light?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the max height of the tile (number of pixels)
|
||||
* @default 0
|
||||
*/
|
||||
tileMaxHeight?: number;
|
||||
|
||||
/**
|
||||
* Specify the padding of the tile (number of pixels)
|
||||
* @default 0
|
||||
*/
|
||||
tilePadding?: number;
|
||||
|
||||
/**
|
||||
* Specify the icon text of the collapsed tile
|
||||
* @default "Interact to expand Tile"
|
||||
*/
|
||||
tileCollapsedIconText?: string;
|
||||
|
||||
/**
|
||||
* Specify the icon text of the expanded tile
|
||||
* @default "Interact to collapse Tile"
|
||||
*/
|
||||
tileExpandedIconText?: string;
|
||||
|
||||
/**
|
||||
* Specify the icon label of the expanded tile
|
||||
* @default ""
|
||||
*/
|
||||
tileExpandedLabel?: string;
|
||||
|
||||
/**
|
||||
* Specify the icon label of the collapsed tile
|
||||
* @default ""
|
||||
*/
|
||||
tileCollapsedLabel?: string;
|
||||
|
||||
/**
|
||||
* Specify the tabindex
|
||||
* @default "0"
|
||||
*/
|
||||
tabindex?: string;
|
||||
|
||||
/**
|
||||
* Set an id for the top-level div element
|
||||
* @default "ccs-" + Math.random().toString(36)
|
||||
*/
|
||||
id?: string;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the top-level element
|
||||
* @default null
|
||||
*/
|
||||
ref?: null | HTMLButtonElement;
|
||||
}
|
||||
|
||||
export default class ExpandableTile extends SvelteComponentTyped<
|
||||
ExpandableTileProps,
|
||||
{
|
||||
click: WindowEventMap["click"];
|
||||
keypress: WindowEventMap["keypress"];
|
||||
mouseover: WindowEventMap["mouseover"];
|
||||
mouseenter: WindowEventMap["mouseenter"];
|
||||
mouseleave: WindowEventMap["mouseleave"];
|
||||
},
|
||||
{ above: {}; below: {} }
|
||||
> {}
|
Loading…
Add table
Add a link
Reference in a new issue