mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
Added pointer events, updated skeleton TextInput v11 #1888
This commit is contained in:
parent
84ea2351fb
commit
630451c161
6 changed files with 75 additions and 48 deletions
7
types/TextInput/TextInput.svelte.d.ts
vendored
7
types/TextInput/TextInput.svelte.d.ts
vendored
|
@ -145,9 +145,10 @@ export default class TextInput extends SvelteComponentTyped<
|
|||
change: CustomEvent<null | number | string>;
|
||||
input: CustomEvent<null | number | string>;
|
||||
click: WindowEventMap["click"];
|
||||
mouseover: WindowEventMap["mouseover"];
|
||||
mouseenter: WindowEventMap["mouseenter"];
|
||||
mouseleave: WindowEventMap["mouseleave"];
|
||||
pointerup: WindowEventMap["pointerup"];
|
||||
pointerover: WindowEventMap["pointerover"];
|
||||
pointerenter: WindowEventMap["pointerenter"];
|
||||
pointerleave: WindowEventMap["pointerleave"];
|
||||
keydown: WindowEventMap["keydown"];
|
||||
keyup: WindowEventMap["keyup"];
|
||||
focus: WindowEventMap["focus"];
|
||||
|
|
18
types/TextInput/TextInputSkeleton.svelte.d.ts
vendored
18
types/TextInput/TextInputSkeleton.svelte.d.ts
vendored
|
@ -1,25 +1,27 @@
|
|||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
type RestProps = SvelteHTMLElements["div"];
|
||||
|
||||
export interface TextInputSkeletonProps extends RestProps {
|
||||
export interface TextInputSkeletonProps {
|
||||
/**
|
||||
* Set to `true` to hide the label text
|
||||
* @default false
|
||||
*/
|
||||
hideLabel?: boolean;
|
||||
|
||||
[key: `data-${string}`]: any;
|
||||
/**
|
||||
* Specify the div HTML attributes for the skeleton container
|
||||
* @default {}
|
||||
*/
|
||||
divAttributes?: Record<string, string>;
|
||||
}
|
||||
|
||||
export default class TextInputSkeleton extends SvelteComponentTyped<
|
||||
TextInputSkeletonProps,
|
||||
{
|
||||
click: WindowEventMap["click"];
|
||||
mouseover: WindowEventMap["mouseover"];
|
||||
mouseenter: WindowEventMap["mouseenter"];
|
||||
mouseleave: WindowEventMap["mouseleave"];
|
||||
pointerup: WindowEventMap["pointerup"];
|
||||
pointerover: WindowEventMap["pointerover"];
|
||||
pointerenter: WindowEventMap["pointerenter"];
|
||||
pointerleave: WindowEventMap["pointerleave"];
|
||||
},
|
||||
{}
|
||||
> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue