mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
v0.14.0
This commit is contained in:
parent
ebf7afd9f9
commit
13ca3bb4c6
4 changed files with 113 additions and 38 deletions
50
types/index.d.ts
vendored
50
types/index.d.ts
vendored
|
@ -1,4 +1,4 @@
|
|||
// Type definitions for carbon-components-svelte 0.13.0
|
||||
// Type definitions for carbon-components-svelte 0.14.0
|
||||
// Project: https://github.com/IBM/carbon-components-svelte
|
||||
|
||||
export class CarbonSvelteComponent {
|
||||
|
@ -630,6 +630,12 @@ export class ComposedModal extends CarbonSvelteComponent {
|
|||
*/
|
||||
danger?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to prevent the modal from closing when clicking outside
|
||||
* @default false
|
||||
*/
|
||||
preventCloseOnClickOutside?: boolean;
|
||||
|
||||
/**
|
||||
* Specify a class for the inner modal
|
||||
* @default ""
|
||||
|
@ -794,11 +800,23 @@ export class DataTableSkeleton extends CarbonSvelteComponent {
|
|||
*/
|
||||
zebra?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `false` to hide the header
|
||||
* @default true
|
||||
*/
|
||||
showHeader?: boolean;
|
||||
|
||||
/**
|
||||
* Set the column headers
|
||||
* If `headers` has one more items, `count` is ignored
|
||||
*/
|
||||
headers?: string[];
|
||||
|
||||
/**
|
||||
* Set to `false` to hide the toolbar
|
||||
* @default true
|
||||
*/
|
||||
showToolbar?: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -2084,6 +2102,12 @@ export class Modal extends CarbonSvelteComponent {
|
|||
*/
|
||||
danger?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to enable alert mode
|
||||
* @default false
|
||||
*/
|
||||
alert?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to use the passive variant
|
||||
* @default false
|
||||
|
@ -2153,6 +2177,12 @@ export class Modal extends CarbonSvelteComponent {
|
|||
*/
|
||||
selectorPrimaryFocus?: string;
|
||||
|
||||
/**
|
||||
* Set to `true` to prevent the modal from closing when clicking outside
|
||||
* @default false
|
||||
*/
|
||||
preventCloseOnClickOutside?: boolean;
|
||||
|
||||
/**
|
||||
* Set an id for the top-level element
|
||||
*/
|
||||
|
@ -4428,6 +4458,18 @@ export class TextInput extends CarbonSvelteComponent {
|
|||
*/
|
||||
invalidText?: string;
|
||||
|
||||
/**
|
||||
* Set to `true` to indicate an warning state
|
||||
* @default false
|
||||
*/
|
||||
warn?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the warning state text
|
||||
* @default ""
|
||||
*/
|
||||
warnText?: string;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the input HTML element
|
||||
* @default null
|
||||
|
@ -4439,6 +4481,12 @@ export class TextInput extends CarbonSvelteComponent {
|
|||
* @default false
|
||||
*/
|
||||
required?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to use inline version
|
||||
* @default false
|
||||
*/
|
||||
inline?: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue