mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(parse-component): parse ArrayExpression
This commit is contained in:
parent
1a809c9c3a
commit
77ebd0d1aa
4 changed files with 43 additions and 14 deletions
13
types/index.d.ts
vendored
13
types/index.d.ts
vendored
|
@ -564,6 +564,7 @@ export class ComboBox extends CarbonSvelteComponent {
|
|||
$$prop_def: {
|
||||
/**
|
||||
* Set the combobox items
|
||||
* @default []
|
||||
*/
|
||||
items?: ComboBoxItem[];
|
||||
|
||||
|
@ -784,12 +785,14 @@ export class DataTable extends CarbonSvelteComponent {
|
|||
$$prop_def: {
|
||||
/**
|
||||
* Specify the data table headers
|
||||
* @default []
|
||||
*/
|
||||
headers?: { key: string; value: string }[];
|
||||
|
||||
/**
|
||||
* Specify the rows the data table should render
|
||||
* keys defined in `headers` are used for the row ids
|
||||
* @default []
|
||||
*/
|
||||
rows?: Object[];
|
||||
|
||||
|
@ -837,6 +840,7 @@ export class DataTable extends CarbonSvelteComponent {
|
|||
|
||||
/**
|
||||
* Specify the row ids to be expanded
|
||||
* @default []
|
||||
*/
|
||||
expandedRowIds?: string[];
|
||||
|
||||
|
@ -884,6 +888,7 @@ export class DataTableSkeleton extends CarbonSvelteComponent {
|
|||
/**
|
||||
* Set the column headers
|
||||
* If `headers` has one more items, `count` is ignored
|
||||
* @default []
|
||||
*/
|
||||
headers?: string[];
|
||||
|
||||
|
@ -1066,6 +1071,7 @@ export class Dropdown extends CarbonSvelteComponent {
|
|||
$$prop_def: {
|
||||
/**
|
||||
* Set the dropdown items
|
||||
* @default []
|
||||
*/
|
||||
items?: DropdownItem[];
|
||||
|
||||
|
@ -1245,11 +1251,13 @@ export class FileUploader extends CarbonSvelteComponent {
|
|||
|
||||
/**
|
||||
* Specify the accepted file types
|
||||
* @default []
|
||||
*/
|
||||
accept?: string[];
|
||||
|
||||
/**
|
||||
* Obtain the uploaded file names
|
||||
* @default []
|
||||
*/
|
||||
files?: string[];
|
||||
|
||||
|
@ -1307,6 +1315,7 @@ export class FileUploaderButton extends CarbonSvelteComponent {
|
|||
$$prop_def: {
|
||||
/**
|
||||
* Specify the accepted file types
|
||||
* @default []
|
||||
*/
|
||||
accept?: string[];
|
||||
|
||||
|
@ -1377,6 +1386,7 @@ export class FileUploaderDropContainer extends CarbonSvelteComponent {
|
|||
$$prop_def: {
|
||||
/**
|
||||
* Specify the accepted file types
|
||||
* @default []
|
||||
*/
|
||||
accept?: string[];
|
||||
|
||||
|
@ -2454,6 +2464,7 @@ export class MultiSelect extends CarbonSvelteComponent {
|
|||
$$prop_def: {
|
||||
/**
|
||||
* Set the multiselect items
|
||||
* @default []
|
||||
*/
|
||||
items?: MultiSelectItem[];
|
||||
|
||||
|
@ -2464,6 +2475,7 @@ export class MultiSelect extends CarbonSvelteComponent {
|
|||
|
||||
/**
|
||||
* Set the selected ids
|
||||
* @default []
|
||||
*/
|
||||
selectedIds?: MultiSelectItemId[];
|
||||
|
||||
|
@ -3014,6 +3026,7 @@ export class Pagination extends CarbonSvelteComponent {
|
|||
|
||||
/**
|
||||
* Specify the available page sizes
|
||||
* @default [10]
|
||||
*/
|
||||
pageSizes?: number[];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue