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:
Eric Liu 2021-10-16 12:34:29 -07:00 committed by GitHub
commit 3203e7a61f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
190 changed files with 345 additions and 263 deletions

89
types/Checkbox/Checkbox.svelte.d.ts vendored Normal file
View file

@ -0,0 +1,89 @@
/// <reference types="svelte" />
import { SvelteComponentTyped } from "svelte";
export interface CheckboxProps {
/**
* Specify the value of the checkbox
* @default ""
*/
value?: string;
/**
* Specify whether the checkbox is checked
* @default false
*/
checked?: boolean;
/**
* Specify whether the checkbox is indeterminate
* @default false
*/
indeterminate?: boolean;
/**
* Set to `true` to display the skeleton state
* @default false
*/
skeleton?: boolean;
/**
* Set to `true` for the checkbox to be read-only
* @default false
*/
readonly?: boolean;
/**
* Set to `true` to disable the checkbox
* @default false
*/
disabled?: boolean;
/**
* Specify the label text
* @default ""
*/
labelText?: string;
/**
* Set to `true` to visually hide the label text
* @default false
*/
hideLabel?: boolean;
/**
* Set a name for the input element
* @default ""
*/
name?: string;
/**
* Specify the title attribute for the label element
*/
title?: string;
/**
* Set an id for the input label
* @default "ccs-" + Math.random().toString(36)
*/
id?: string;
/**
* Obtain a reference to the input HTML element
* @default null
*/
ref?: null | HTMLInputElement;
}
export default class Checkbox extends SvelteComponentTyped<
CheckboxProps,
{
check: CustomEvent<boolean>;
click: WindowEventMap["click"];
mouseover: WindowEventMap["mouseover"];
mouseenter: WindowEventMap["mouseenter"];
mouseleave: WindowEventMap["mouseleave"];
change: WindowEventMap["change"];
blur: WindowEventMap["blur"];
},
{ labelText: {} }
> {}