fix(types): use type alias instead of interface for $$restProps

This commit is contained in:
metonym 2024-10-25 16:30:10 -07:00 committed by Eric Liu
commit 6fbd8ae6a9
165 changed files with 752 additions and 463 deletions

View file

@ -1,7 +1,7 @@
import type { SvelteComponentTyped } from "svelte";
import type { AccordionSkeletonProps } from "./AccordionSkeleton.svelte";
export interface AccordionProps extends AccordionSkeletonProps {
export type AccordionProps = AccordionSkeletonProps & {
/**
* Specify alignment of accordion item chevron icon
* @default "end"
@ -25,7 +25,7 @@ export interface AccordionProps extends AccordionSkeletonProps {
* @default false
*/
skeleton?: boolean;
}
};
export default class Accordion extends SvelteComponentTyped<
AccordionProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["li"];
type $RestProps = SvelteHTMLElements["li"];
export interface AccordionItemProps extends RestProps {
type $Props = {
/**
* Specify the title of the accordion item heading.
* Alternatively, use the "title" slot (e.g., `<div slot="title">...</div>`)
@ -30,7 +30,9 @@ export interface AccordionItemProps extends RestProps {
iconDescription?: string;
[key: `data-${string}`]: any;
}
};
export type AccordionItemProps = Omit<$RestProps, keyof $Props> & $Props;
export default class AccordionItem extends SvelteComponentTyped<
AccordionItemProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["ul"];
type $RestProps = SvelteHTMLElements["ul"];
export interface AccordionSkeletonProps extends RestProps {
type $Props = {
/**
* Specify the number of accordion items to render
* @default 4
@ -29,7 +29,9 @@ export interface AccordionSkeletonProps extends RestProps {
open?: boolean;
[key: `data-${string}`]: any;
}
};
export type AccordionSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class AccordionSkeleton extends SvelteComponentTyped<
AccordionSkeletonProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface AspectRatioProps extends RestProps {
type $Props = {
/**
* Specify the aspect ratio
* @default "2x1"
@ -20,7 +20,9 @@ export interface AspectRatioProps extends RestProps {
| "1x2";
[key: `data-${string}`]: any;
}
};
export type AspectRatioProps = Omit<$RestProps, keyof $Props> & $Props;
export default class AspectRatio extends SvelteComponentTyped<
AspectRatioProps,

View file

@ -1,7 +1,7 @@
import type { SvelteComponentTyped } from "svelte";
import type { BreadcrumbSkeletonProps } from "./BreadcrumbSkeleton.svelte";
export interface BreadcrumbProps extends BreadcrumbSkeletonProps {
export type BreadcrumbProps = BreadcrumbSkeletonProps & {
/**
* Set to `true` to hide the breadcrumb trailing slash
* @default false
@ -13,7 +13,7 @@ export interface BreadcrumbProps extends BreadcrumbSkeletonProps {
* @default false
*/
skeleton?: boolean;
}
};
export default class Breadcrumb extends SvelteComponentTyped<
BreadcrumbProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["li"];
type $RestProps = SvelteHTMLElements["li"];
export interface BreadcrumbItemProps extends RestProps {
type $Props = {
/**
* Set the `href` to use an anchor link
* @default undefined
@ -17,7 +17,9 @@ export interface BreadcrumbItemProps extends RestProps {
isCurrentPage?: boolean;
[key: `data-${string}`]: any;
}
};
export type BreadcrumbItemProps = Omit<$RestProps, keyof $Props> & $Props;
export default class BreadcrumbItem extends SvelteComponentTyped<
BreadcrumbItemProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface BreadcrumbSkeletonProps extends RestProps {
type $Props = {
/**
* Set to `true` to hide the breadcrumb trailing slash
* @default false
@ -17,7 +17,9 @@ export interface BreadcrumbSkeletonProps extends RestProps {
count?: number;
[key: `data-${string}`]: any;
}
};
export type BreadcrumbSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class BreadcrumbSkeleton extends SvelteComponentTyped<
BreadcrumbSkeletonProps,

View file

@ -4,7 +4,7 @@ export type BreakpointSize = "sm" | "md" | "lg" | "xlg" | "max";
export type BreakpointValue = 320 | 672 | 1056 | 1312 | 1584;
export interface BreakpointProps {
export type BreakpointProps = {
/**
* Determine the current Carbon grid breakpoint size
* @default undefined
@ -16,7 +16,7 @@ export interface BreakpointProps {
* @default { sm: false, md: false, lg: false, xlg: false, max: false, }
*/
sizes?: Record<BreakpointSize, boolean>;
}
};
export default class Breakpoint extends SvelteComponentTyped<
BreakpointProps,

View file

@ -3,11 +3,11 @@ import type { SvelteHTMLElements } from "svelte/elements";
import type { ButtonSkeletonProps } from "./ButtonSkeleton.svelte";
type RestProps = SvelteHTMLElements["button"] &
type $RestProps = SvelteHTMLElements["button"] &
SvelteHTMLElements["a"] &
SvelteHTMLElements["div"];
export interface ButtonProps extends ButtonSkeletonProps, RestProps {
type $Props = {
/**
* Specify the kind of button
* @default "primary"
@ -109,7 +109,9 @@ export interface ButtonProps extends ButtonSkeletonProps, RestProps {
ref?: null | HTMLAnchorElement | HTMLButtonElement;
[key: `data-${string}`]: any;
}
};
export type ButtonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Button extends SvelteComponentTyped<
ButtonProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ButtonSetProps extends RestProps {
type $Props = {
/**
* Set to `true` to stack the buttons vertically
* @default false
@ -11,7 +11,9 @@ export interface ButtonSetProps extends RestProps {
stacked?: boolean;
[key: `data-${string}`]: any;
}
};
export type ButtonSetProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ButtonSet extends SvelteComponentTyped<
ButtonSetProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["a"];
type $RestProps = SvelteHTMLElements["a"];
export interface ButtonSkeletonProps extends RestProps {
type $Props = {
/**
* Set the `href` to use an anchor link
* @default undefined
@ -17,7 +17,9 @@ export interface ButtonSkeletonProps extends RestProps {
size?: "default" | "field" | "small" | "lg" | "xl";
[key: `data-${string}`]: any;
}
};
export type ButtonSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ButtonSkeleton extends SvelteComponentTyped<
ButtonSkeletonProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface CheckboxProps extends RestProps {
type $Props = {
/**
* Specify the value of the checkbox
* @default ""
@ -89,7 +89,9 @@ export interface CheckboxProps extends RestProps {
ref?: null | HTMLInputElement;
[key: `data-${string}`]: any;
}
};
export type CheckboxProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Checkbox extends SvelteComponentTyped<
CheckboxProps,

View file

@ -1,11 +1,13 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface CheckboxSkeletonProps extends RestProps {
type $Props = {
[key: `data-${string}`]: any;
}
};
export type CheckboxSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class CheckboxSkeleton extends SvelteComponentTyped<
CheckboxSkeletonProps,

View file

@ -1,6 +1,6 @@
import type { SvelteComponentTyped } from "svelte";
export interface CodeSnippetProps {
export type CodeSnippetProps = {
/**
* Set the type of code snippet
* @default "single"
@ -122,7 +122,7 @@ export interface CodeSnippetProps {
* @default null
*/
ref?: null | HTMLPreElement;
}
};
export default class CodeSnippet extends SvelteComponentTyped<
CodeSnippetProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface CodeSnippetSkeletonProps extends RestProps {
type $Props = {
/**
* Set the type of code snippet
* @default "single"
@ -11,7 +11,9 @@ export interface CodeSnippetSkeletonProps extends RestProps {
type?: "single" | "multi";
[key: `data-${string}`]: any;
}
};
export type CodeSnippetSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class CodeSnippetSkeleton extends SvelteComponentTyped<
CodeSnippetSkeletonProps,

View file

@ -9,9 +9,9 @@ export interface ComboBoxItem {
disabled?: boolean;
}
type RestProps = SvelteHTMLElements["input"];
type $RestProps = SvelteHTMLElements["input"];
export interface ComboBoxProps extends RestProps {
type $Props = {
/**
* Set the combobox items
* @default []
@ -155,7 +155,9 @@ export interface ComboBoxProps extends RestProps {
listRef?: null | HTMLDivElement;
[key: `data-${string}`]: any;
}
};
export type ComboBoxProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ComboBox extends SvelteComponentTyped<
ComboBoxProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ComposedModalProps extends RestProps {
type $Props = {
/**
* Set the size of the composed modal
* @default undefined
@ -47,7 +47,9 @@ export interface ComposedModalProps extends RestProps {
ref?: null | HTMLDivElement;
[key: `data-${string}`]: any;
}
};
export type ComposedModalProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ComposedModal extends SvelteComponentTyped<
ComposedModalProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ModalBodyProps extends RestProps {
type $Props = {
/**
* Set to `true` if the modal contains form elements
* @default false
@ -17,7 +17,9 @@ export interface ModalBodyProps extends RestProps {
hasScrollingContent?: boolean;
[key: `data-${string}`]: any;
}
};
export type ModalBodyProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ModalBody extends SvelteComponentTyped<
ModalBodyProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ModalFooterProps extends RestProps {
type $Props = {
/**
* Specify the primary button text
* @default ""
@ -54,7 +54,9 @@ export interface ModalFooterProps extends RestProps {
danger?: boolean;
[key: `data-${string}`]: any;
}
};
export type ModalFooterProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ModalFooter extends SvelteComponentTyped<
ModalFooterProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ModalHeaderProps extends RestProps {
type $Props = {
/**
* Specify the modal title
* @default ""
@ -47,7 +47,9 @@ export interface ModalHeaderProps extends RestProps {
iconDescription?: string;
[key: `data-${string}`]: any;
}
};
export type ModalHeaderProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ModalHeader extends SvelteComponentTyped<
ModalHeaderProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ContentSwitcherProps extends RestProps {
type $Props = {
/**
* Set the selected index of the switch item
* @default 0
@ -17,7 +17,9 @@ export interface ContentSwitcherProps extends RestProps {
size?: "sm" | "xl";
[key: `data-${string}`]: any;
}
};
export type ContentSwitcherProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ContentSwitcher extends SvelteComponentTyped<
ContentSwitcherProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["button"];
type $RestProps = SvelteHTMLElements["button"];
export interface SwitchProps extends RestProps {
type $Props = {
/**
* Specify the switch text.
* Alternatively, use the "text" slot (e.g., `<span slot="text">...</span>`)
@ -36,7 +36,9 @@ export interface SwitchProps extends RestProps {
ref?: null | HTMLButtonElement;
[key: `data-${string}`]: any;
}
};
export type SwitchProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Switch extends SvelteComponentTyped<
SwitchProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["ul"];
type $RestProps = SvelteHTMLElements["ul"];
export interface ContextMenuProps extends RestProps {
type $Props = {
/**
* Specify an element or list of elements to trigger the context menu.
* If no element is specified, the context menu applies to the entire window
@ -37,7 +37,9 @@ export interface ContextMenuProps extends RestProps {
ref?: null | HTMLUListElement;
[key: `data-${string}`]: any;
}
};
export type ContextMenuProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ContextMenu extends SvelteComponentTyped<
ContextMenuProps,

View file

@ -1,6 +1,6 @@
import type { SvelteComponentTyped } from "svelte";
export interface ContextMenuDividerProps {}
export type ContextMenuDividerProps = {};
export default class ContextMenuDivider extends SvelteComponentTyped<
ContextMenuDividerProps,

View file

@ -1,6 +1,6 @@
import type { SvelteComponentTyped } from "svelte";
export interface ContextMenuGroupProps {
export type ContextMenuGroupProps = {
/**
* @default []
*/
@ -11,7 +11,7 @@ export interface ContextMenuGroupProps {
* @default ""
*/
labelText?: string;
}
};
export default class ContextMenuGroup extends SvelteComponentTyped<
ContextMenuGroupProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["li"];
type $RestProps = SvelteHTMLElements["li"];
export interface ContextMenuOptionProps extends RestProps {
type $Props = {
/**
* Specify the kind of option
* @default "default"
@ -70,7 +70,9 @@ export interface ContextMenuOptionProps extends RestProps {
ref?: null | HTMLLIElement;
[key: `data-${string}`]: any;
}
};
export type ContextMenuOptionProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ContextMenuOption extends SvelteComponentTyped<
ContextMenuOptionProps,

View file

@ -1,6 +1,6 @@
import type { SvelteComponentTyped } from "svelte";
export interface ContextMenuRadioGroupProps {
export type ContextMenuRadioGroupProps = {
/**
* Set the selected radio group id
* @default ""
@ -12,7 +12,7 @@ export interface ContextMenuRadioGroupProps {
* @default ""
*/
labelText?: string;
}
};
export default class ContextMenuRadioGroup extends SvelteComponentTyped<
ContextMenuRadioGroupProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["button"];
type $RestProps = SvelteHTMLElements["button"];
export interface CopyButtonProps extends RestProps {
type $Props = {
/**
* Set the feedback text shown after clicking the button
* @default "Copied!"
@ -35,7 +35,9 @@ export interface CopyButtonProps extends RestProps {
copy?: (text: string) => void;
[key: `data-${string}`]: any;
}
};
export type CopyButtonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class CopyButton extends SvelteComponentTyped<
CopyButtonProps,

View file

@ -40,9 +40,9 @@ export interface DataTableCell {
display?: (item: DataTableValue, row: DataTableRow) => DataTableValue;
}
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface DataTableProps extends RestProps {
type $Props = {
/**
* Specify the data table headers
* @default []
@ -179,7 +179,9 @@ export interface DataTableProps extends RestProps {
page?: number;
[key: `data-${string}`]: any;
}
};
export type DataTableProps = Omit<$RestProps, keyof $Props> & $Props;
export default class DataTable extends SvelteComponentTyped<
DataTableProps,

View file

@ -3,9 +3,9 @@ import type { SvelteHTMLElements } from "svelte/elements";
import type { DataTableHeader } from "./DataTable.svelte";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface DataTableSkeletonProps extends DataTableHeader, RestProps {
type $Props = {
/**
* Specify the number of columns
* Superseded by `headers` if `headers` is a non-empty array
@ -51,7 +51,9 @@ export interface DataTableSkeletonProps extends DataTableHeader, RestProps {
showToolbar?: boolean;
[key: `data-${string}`]: any;
}
};
export type DataTableSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class DataTableSkeleton extends SvelteComponentTyped<
DataTableSkeletonProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["section"];
type $RestProps = SvelteHTMLElements["section"];
export interface TableProps extends RestProps {
type $Props = {
/**
* Set the size of the table
* @default undefined
@ -41,7 +41,9 @@ export interface TableProps extends RestProps {
tableStyle?: string;
[key: `data-${string}`]: any;
}
};
export type TableProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Table extends SvelteComponentTyped<
TableProps,

View file

@ -1,11 +1,13 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["tbody"];
type $RestProps = SvelteHTMLElements["tbody"];
export interface TableBodyProps extends RestProps {
type $Props = {
[key: `data-${string}`]: any;
}
};
export type TableBodyProps = Omit<$RestProps, keyof $Props> & $Props;
export default class TableBody extends SvelteComponentTyped<
TableBodyProps,

View file

@ -1,11 +1,13 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["td"];
type $RestProps = SvelteHTMLElements["td"];
export interface TableCellProps extends RestProps {
type $Props = {
[key: `data-${string}`]: any;
}
};
export type TableCellProps = Omit<$RestProps, keyof $Props> & $Props;
export default class TableCell extends SvelteComponentTyped<
TableCellProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface TableContainerProps extends RestProps {
type $Props = {
/**
* Specify the title of the data table
* @default ""
@ -29,7 +29,9 @@ export interface TableContainerProps extends RestProps {
useStaticWidth?: boolean;
[key: `data-${string}`]: any;
}
};
export type TableContainerProps = Omit<$RestProps, keyof $Props> & $Props;
export default class TableContainer extends SvelteComponentTyped<
TableContainerProps,

View file

@ -1,11 +1,13 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["thead"];
type $RestProps = SvelteHTMLElements["thead"];
export interface TableHeadProps extends RestProps {
type $Props = {
[key: `data-${string}`]: any;
}
};
export type TableHeadProps = Omit<$RestProps, keyof $Props> & $Props;
export default class TableHead extends SvelteComponentTyped<
TableHeadProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["th"];
type $RestProps = SvelteHTMLElements["th"];
export interface TableHeaderProps extends RestProps {
type $Props = {
/**
* Set to `true` for the sortable variant
* @default false
@ -41,7 +41,9 @@ export interface TableHeaderProps extends RestProps {
id?: string;
[key: `data-${string}`]: any;
}
};
export type TableHeaderProps = Omit<$RestProps, keyof $Props> & $Props;
export default class TableHeader extends SvelteComponentTyped<
TableHeaderProps,

View file

@ -1,11 +1,13 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["tr"];
type $RestProps = SvelteHTMLElements["tr"];
export interface TableRowProps extends RestProps {
type $Props = {
[key: `data-${string}`]: any;
}
};
export type TableRowProps = Omit<$RestProps, keyof $Props> & $Props;
export default class TableRow extends SvelteComponentTyped<
TableRowProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["section"];
type $RestProps = SvelteHTMLElements["section"];
export interface ToolbarProps extends RestProps {
type $Props = {
/**
* Specify the toolbar size
* @default "default"
@ -11,7 +11,9 @@ export interface ToolbarProps extends RestProps {
size?: "sm" | "default";
[key: `data-${string}`]: any;
}
};
export type ToolbarProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Toolbar extends SvelteComponentTyped<
ToolbarProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ToolbarBatchActionsProps extends RestProps {
type $Props = {
/**
* Override the total items selected text
* @default (totalSelected) => `${totalSelected} item${totalSelected === 1 ? "" : "s"} selected`
@ -17,7 +17,9 @@ export interface ToolbarBatchActionsProps extends RestProps {
active?: undefined | boolean;
[key: `data-${string}`]: any;
}
};
export type ToolbarBatchActionsProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ToolbarBatchActions extends SvelteComponentTyped<
ToolbarBatchActionsProps,

View file

@ -1,6 +1,6 @@
import type { SvelteComponentTyped } from "svelte";
export interface ToolbarContentProps {}
export type ToolbarContentProps = {};
export default class ToolbarContent extends SvelteComponentTyped<
ToolbarContentProps,

View file

@ -1,7 +1,7 @@
import type { SvelteComponentTyped } from "svelte";
import type { OverflowMenuProps } from "../OverflowMenu/OverflowMenu.svelte";
export interface ToolbarMenuProps extends OverflowMenuProps {}
export type ToolbarMenuProps = OverflowMenuProps & {};
export default class ToolbarMenu extends SvelteComponentTyped<
ToolbarMenuProps,

View file

@ -1,7 +1,7 @@
import type { SvelteComponentTyped } from "svelte";
import type { OverflowMenuItemProps } from "../OverflowMenu/OverflowMenuItem.svelte";
export interface ToolbarMenuItemProps extends OverflowMenuItemProps {}
export type ToolbarMenuItemProps = OverflowMenuItemProps & {};
export default class ToolbarMenuItem extends SvelteComponentTyped<
ToolbarMenuItemProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["input"];
type $RestProps = SvelteHTMLElements["input"];
export interface ToolbarSearchProps extends RestProps {
type $Props = {
/**
* Specify the value of the search input
* @default ""
@ -64,7 +64,9 @@ export interface ToolbarSearchProps extends RestProps {
ref?: null | HTMLInputElement;
[key: `data-${string}`]: any;
}
};
export type ToolbarSearchProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ToolbarSearch extends SvelteComponentTyped<
ToolbarSearchProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface DatePickerProps extends RestProps {
type $Props = {
/**
* Specify the date picker type
* @default "simple"
@ -82,7 +82,9 @@ export interface DatePickerProps extends RestProps {
flatpickrProps?: import("flatpickr/dist/types/options").Options;
[key: `data-${string}`]: any;
}
};
export type DatePickerProps = Omit<$RestProps, keyof $Props> & $Props;
export default class DatePicker extends SvelteComponentTyped<
DatePickerProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["input"];
type $RestProps = SvelteHTMLElements["input"];
export interface DatePickerInputProps extends RestProps {
type $Props = {
/**
* Set the size of the input
* @default undefined
@ -101,7 +101,9 @@ export interface DatePickerInputProps extends RestProps {
ref?: null | HTMLInputElement;
[key: `data-${string}`]: any;
}
};
export type DatePickerInputProps = Omit<$RestProps, keyof $Props> & $Props;
export default class DatePickerInput extends SvelteComponentTyped<
DatePickerInputProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface DatePickerSkeletonProps extends RestProps {
type $Props = {
/**
* Set to `true` to use the range variant
* @default false
@ -17,7 +17,9 @@ export interface DatePickerSkeletonProps extends RestProps {
id?: string;
[key: `data-${string}`]: any;
}
};
export type DatePickerSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class DatePickerSkeleton extends SvelteComponentTyped<
DatePickerSkeletonProps,

View file

@ -11,9 +11,9 @@ export interface DropdownItem {
disabled?: boolean;
}
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface DropdownProps extends RestProps {
type $Props = {
/**
* Set the dropdown items
* @default []
@ -144,7 +144,9 @@ export interface DropdownProps extends RestProps {
ref?: null | HTMLButtonElement;
[key: `data-${string}`]: any;
}
};
export type DropdownProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Dropdown extends SvelteComponentTyped<
DropdownProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface DropdownSkeletonProps extends RestProps {
type $Props = {
/**
* Set to `true` to use the inline variant
* @default false
@ -11,7 +11,9 @@ export interface DropdownSkeletonProps extends RestProps {
inline?: boolean;
[key: `data-${string}`]: any;
}
};
export type DropdownSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class DropdownSkeleton extends SvelteComponentTyped<
DropdownSkeletonProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface FileUploaderProps extends RestProps {
type $Props = {
/**
* Specify the file uploader status
* @default "uploading"
@ -79,7 +79,9 @@ export interface FileUploaderProps extends RestProps {
name?: string;
[key: `data-${string}`]: any;
}
};
export type FileUploaderProps = Omit<$RestProps, keyof $Props> & $Props;
export default class FileUploader extends SvelteComponentTyped<
FileUploaderProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["input"];
type $RestProps = SvelteHTMLElements["input"];
export interface FileUploaderButtonProps extends RestProps {
type $Props = {
/**
* Specify the accepted file types
* @default []
@ -83,7 +83,9 @@ export interface FileUploaderButtonProps extends RestProps {
ref?: null | HTMLInputElement;
[key: `data-${string}`]: any;
}
};
export type FileUploaderButtonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class FileUploaderButton extends SvelteComponentTyped<
FileUploaderButtonProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface FileUploaderDropContainerProps extends RestProps {
type $Props = {
/**
* Specify the accepted file types
* @default []
@ -72,7 +72,10 @@ export interface FileUploaderDropContainerProps extends RestProps {
ref?: null | HTMLInputElement;
[key: `data-${string}`]: any;
}
};
export type FileUploaderDropContainerProps = Omit<$RestProps, keyof $Props> &
$Props;
export default class FileUploaderDropContainer extends SvelteComponentTyped<
FileUploaderDropContainerProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["span"];
type $RestProps = SvelteHTMLElements["span"];
export interface FileUploaderItemProps extends RestProps {
type $Props = {
/**
* Specify the file uploader status
* @default "uploading"
@ -53,7 +53,9 @@ export interface FileUploaderItemProps extends RestProps {
name?: string;
[key: `data-${string}`]: any;
}
};
export type FileUploaderItemProps = Omit<$RestProps, keyof $Props> & $Props;
export default class FileUploaderItem extends SvelteComponentTyped<
FileUploaderItemProps,

View file

@ -1,11 +1,13 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface FileUploaderSkeletonProps extends RestProps {
type $Props = {
[key: `data-${string}`]: any;
}
};
export type FileUploaderSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class FileUploaderSkeleton extends SvelteComponentTyped<
FileUploaderSkeletonProps,

View file

@ -1,11 +1,11 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"] &
type $RestProps = SvelteHTMLElements["div"] &
SvelteHTMLElements["button"] &
SvelteHTMLElements["svg"];
export interface FilenameProps extends RestProps {
type $Props = {
/**
* Specify the file name status
* @default "uploading"
@ -25,7 +25,9 @@ export interface FilenameProps extends RestProps {
invalid?: boolean;
[key: `data-${string}`]: any;
}
};
export type FilenameProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Filename extends SvelteComponentTyped<
FilenameProps,

View file

@ -1,11 +1,13 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["form"];
type $RestProps = SvelteHTMLElements["form"];
export interface FluidFormProps extends RestProps {
type $Props = {
[key: `data-${string}`]: any;
}
};
export type FluidFormProps = Omit<$RestProps, keyof $Props> & $Props;
export default class FluidForm extends SvelteComponentTyped<
FluidFormProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["form"];
type $RestProps = SvelteHTMLElements["form"];
export interface FormProps extends RestProps {
type $Props = {
/**
* Obtain a reference to the form element
* @default null
@ -11,7 +11,9 @@ export interface FormProps extends RestProps {
ref?: null | HTMLFormElement;
[key: `data-${string}`]: any;
}
};
export type FormProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Form extends SvelteComponentTyped<
FormProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["fieldset"];
type $RestProps = SvelteHTMLElements["fieldset"];
export interface FormGroupProps extends RestProps {
type $Props = {
/**
* Set to `true` for to remove the bottom margin
* @default false
@ -41,7 +41,9 @@ export interface FormGroupProps extends RestProps {
legendId?: string;
[key: `data-${string}`]: any;
}
};
export type FormGroupProps = Omit<$RestProps, keyof $Props> & $Props;
export default class FormGroup extends SvelteComponentTyped<
FormGroupProps,

View file

@ -1,11 +1,13 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface FormItemProps extends RestProps {
type $Props = {
[key: `data-${string}`]: any;
}
};
export type FormItemProps = Omit<$RestProps, keyof $Props> & $Props;
export default class FormItem extends SvelteComponentTyped<
FormItemProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["label"];
type $RestProps = SvelteHTMLElements["label"];
export interface FormLabelProps extends RestProps {
type $Props = {
/**
* Set an id to be used by the label element
* @default "ccs-" + Math.random().toString(36)
@ -11,7 +11,9 @@ export interface FormLabelProps extends RestProps {
id?: string;
[key: `data-${string}`]: any;
}
};
export type FormLabelProps = Omit<$RestProps, keyof $Props> & $Props;
export default class FormLabel extends SvelteComponentTyped<
FormLabelProps,

View file

@ -10,9 +10,9 @@ export interface ColumnSizeDescriptor {
export type ColumnBreakpoint = ColumnSize | ColumnSizeDescriptor;
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ColumnProps extends RestProps {
type $Props = {
/**
* Set to `true` to render a custom HTML element
* Props are destructured as `props` in the default slot (e.g., <Column let:props><article {...props}>...</article></Column>)
@ -81,7 +81,9 @@ export interface ColumnProps extends RestProps {
max?: ColumnBreakpoint;
[key: `data-${string}`]: any;
}
};
export type ColumnProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Column extends SvelteComponentTyped<
ColumnProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface GridProps extends RestProps {
type $Props = {
/**
* Set to `true` to render a custom HTML element
* Props are destructured as `props` in the default slot (e.g., <Grid let:props><header {...props}>...</header></Grid>)
@ -54,7 +54,9 @@ export interface GridProps extends RestProps {
padding?: boolean;
[key: `data-${string}`]: any;
}
};
export type GridProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Grid extends SvelteComponentTyped<
GridProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface RowProps extends RestProps {
type $Props = {
/**
* Set to `true` to render a custom HTML element
* Props are destructured as `props` in the default slot (e.g., <Row let:props><section {...props}>...</section></Row>)
@ -48,7 +48,9 @@ export interface RowProps extends RestProps {
padding?: boolean;
[key: `data-${string}`]: any;
}
};
export type RowProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Row extends SvelteComponentTyped<
RowProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["img"];
type $RestProps = SvelteHTMLElements["img"];
export interface ImageLoaderProps extends RestProps {
type $Props = {
/**
* Specify the image source
* @default ""
@ -48,7 +48,9 @@ export interface ImageLoaderProps extends RestProps {
fadeIn?: boolean;
[key: `data-${string}`]: any;
}
};
export type ImageLoaderProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ImageLoader extends SvelteComponentTyped<
ImageLoaderProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface InlineLoadingProps extends RestProps {
type $Props = {
/**
* Set the loading status
* @default "active"
@ -30,7 +30,9 @@ export interface InlineLoadingProps extends RestProps {
successDelay?: number;
[key: `data-${string}`]: any;
}
};
export type InlineLoadingProps = Omit<$RestProps, keyof $Props> & $Props;
export default class InlineLoading extends SvelteComponentTyped<
InlineLoadingProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["a"];
type $RestProps = SvelteHTMLElements["a"];
export interface LinkProps extends RestProps {
type $Props = {
/**
* Specify the size of the link
* @default undefined
@ -48,7 +48,9 @@ export interface LinkProps extends RestProps {
ref?: null | HTMLAnchorElement;
[key: `data-${string}`]: any;
}
};
export type LinkProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Link extends SvelteComponentTyped<
LinkProps,

View file

@ -1,7 +1,7 @@
import type { SvelteComponentTyped } from "svelte";
import type { LinkProps } from "./Link.svelte";
export interface OutboundLinkProps extends LinkProps {}
export type OutboundLinkProps = LinkProps & {};
export default class OutboundLink extends SvelteComponentTyped<
OutboundLinkProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ListBoxProps extends RestProps {
type $Props = {
/**
* Set the size of the list box
* @default undefined
@ -59,7 +59,9 @@ export interface ListBoxProps extends RestProps {
warnText?: string;
[key: `data-${string}`]: any;
}
};
export type ListBoxProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ListBox extends SvelteComponentTyped<
ListBoxProps,

View file

@ -3,9 +3,9 @@ import type { SvelteHTMLElements } from "svelte/elements";
export type ListBoxFieldTranslationId = "close" | "open";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ListBoxFieldProps extends RestProps {
type $Props = {
/**
* Set to `true` to disable the list box field
* @default false
@ -43,7 +43,9 @@ export interface ListBoxFieldProps extends RestProps {
ref?: null | HTMLDivElement;
[key: `data-${string}`]: any;
}
};
export type ListBoxFieldProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ListBoxField extends SvelteComponentTyped<
ListBoxFieldProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ListBoxMenuProps extends RestProps {
type $Props = {
/**
* Set an id for the top-level element
* @default "ccs-" + Math.random().toString(36)
@ -17,7 +17,9 @@ export interface ListBoxMenuProps extends RestProps {
ref?: null | HTMLDivElement;
[key: `data-${string}`]: any;
}
};
export type ListBoxMenuProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ListBoxMenu extends SvelteComponentTyped<
ListBoxMenuProps,

View file

@ -3,9 +3,9 @@ import type { SvelteHTMLElements } from "svelte/elements";
export type ListBoxMenuIconTranslationId = "close" | "open";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ListBoxMenuIconProps extends RestProps {
type $Props = {
/**
* Set to `true` to open the list box menu icon
* @default false
@ -19,7 +19,9 @@ export interface ListBoxMenuIconProps extends RestProps {
translateWithId?: (id: ListBoxMenuIconTranslationId) => string;
[key: `data-${string}`]: any;
}
};
export type ListBoxMenuIconProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ListBoxMenuIcon extends SvelteComponentTyped<
ListBoxMenuIconProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ListBoxMenuItemProps extends RestProps {
type $Props = {
/**
* Set to `true` to enable the active state
* @default false
@ -23,7 +23,9 @@ export interface ListBoxMenuItemProps extends RestProps {
disabled?: boolean;
[key: `data-${string}`]: any;
}
};
export type ListBoxMenuItemProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ListBoxMenuItem extends SvelteComponentTyped<
ListBoxMenuItemProps,

View file

@ -3,9 +3,9 @@ import type { SvelteHTMLElements } from "svelte/elements";
export type ListBoxSelectionTranslationId = "clearAll" | "clearSelection";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ListBoxSelectionProps extends RestProps {
type $Props = {
/**
* Specify the number of selected items
* @default undefined
@ -31,7 +31,9 @@ export interface ListBoxSelectionProps extends RestProps {
ref?: null | HTMLDivElement;
[key: `data-${string}`]: any;
}
};
export type ListBoxSelectionProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ListBoxSelection extends SvelteComponentTyped<
ListBoxSelectionProps,

View file

@ -1,11 +1,13 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["li"];
type $RestProps = SvelteHTMLElements["li"];
export interface ListItemProps extends RestProps {
type $Props = {
[key: `data-${string}`]: any;
}
};
export type ListItemProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ListItem extends SvelteComponentTyped<
ListItemProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface LoadingProps extends RestProps {
type $Props = {
/**
* Set to `true` to use the small variant
* @default false
@ -29,7 +29,9 @@ export interface LoadingProps extends RestProps {
description?: string;
[key: `data-${string}`]: any;
}
};
export type LoadingProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Loading extends SvelteComponentTyped<
LoadingProps,

View file

@ -1,6 +1,6 @@
import type { SvelteComponentTyped } from "svelte";
export interface LocalStorageProps {
export type LocalStorageProps = {
/**
* Specify the local storage key
* @default "local-storage-key"
@ -12,7 +12,7 @@ export interface LocalStorageProps {
* @default ""
*/
value?: any;
}
};
export default class LocalStorage extends SvelteComponentTyped<
LocalStorageProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ModalProps extends RestProps {
type $Props = {
/**
* Set the size of the modal
* @default undefined
@ -133,7 +133,9 @@ export interface ModalProps extends RestProps {
ref?: null | HTMLDivElement;
[key: `data-${string}`]: any;
}
};
export type ModalProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Modal extends SvelteComponentTyped<
ModalProps,

View file

@ -11,9 +11,9 @@ export interface MultiSelectItem {
disabled?: boolean;
}
type RestProps = SvelteHTMLElements["input"];
type $RestProps = SvelteHTMLElements["input"];
export interface MultiSelectProps extends RestProps {
type $Props = {
/**
* Set the multiselect items
* @default []
@ -240,7 +240,9 @@ export interface MultiSelectProps extends RestProps {
highlightedId?: null | MultiSelectItemId;
[key: `data-${string}`]: any;
}
};
export type MultiSelectProps = Omit<$RestProps, keyof $Props> & $Props;
export default class MultiSelect extends SvelteComponentTyped<
MultiSelectProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface InlineNotificationProps extends RestProps {
type $Props = {
/**
* Specify the kind of notification
* @default "error"
@ -65,7 +65,9 @@ export interface InlineNotificationProps extends RestProps {
closeButtonDescription?: string;
[key: `data-${string}`]: any;
}
};
export type InlineNotificationProps = Omit<$RestProps, keyof $Props> & $Props;
export default class InlineNotification extends SvelteComponentTyped<
InlineNotificationProps,

View file

@ -1,7 +1,7 @@
import type { SvelteComponentTyped } from "svelte";
import type { ButtonProps } from "../Button/Button.svelte";
export interface NotificationActionButtonProps extends ButtonProps {}
export type NotificationActionButtonProps = ButtonProps & {};
export default class NotificationActionButton extends SvelteComponentTyped<
NotificationActionButtonProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["button"];
type $RestProps = SvelteHTMLElements["button"];
export interface NotificationButtonProps extends RestProps {
type $Props = {
/**
* Set the type of notification
* @default "toast"
@ -29,7 +29,9 @@ export interface NotificationButtonProps extends RestProps {
iconDescription?: string;
[key: `data-${string}`]: any;
}
};
export type NotificationButtonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class NotificationButton extends SvelteComponentTyped<
NotificationButtonProps,

View file

@ -1,6 +1,6 @@
import type { SvelteComponentTyped } from "svelte";
export interface NotificationIconProps {
export type NotificationIconProps = {
/**
* Specify the kind of notification icon
* @default "error"
@ -24,7 +24,7 @@ export interface NotificationIconProps {
* @default undefined
*/
iconDescription: undefined;
}
};
export default class NotificationIcon extends SvelteComponentTyped<
NotificationIconProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ToastNotificationProps extends RestProps {
type $Props = {
/**
* Specify the kind of notification
* @default "error"
@ -78,7 +78,9 @@ export interface ToastNotificationProps extends RestProps {
fullWidth?: boolean;
[key: `data-${string}`]: any;
}
};
export type ToastNotificationProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ToastNotification extends SvelteComponentTyped<
ToastNotificationProps,

View file

@ -3,9 +3,9 @@ import type { SvelteHTMLElements } from "svelte/elements";
export type NumberInputTranslationId = "increment" | "decrement";
type RestProps = SvelteHTMLElements["input"];
type $RestProps = SvelteHTMLElements["input"];
export interface NumberInputProps extends RestProps {
type $Props = {
/**
* Set the size of the input
* @default undefined
@ -140,7 +140,9 @@ export interface NumberInputProps extends RestProps {
ref?: null | HTMLInputElement;
[key: `data-${string}`]: any;
}
};
export type NumberInputProps = Omit<$RestProps, keyof $Props> & $Props;
export default class NumberInput extends SvelteComponentTyped<
NumberInputProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface NumberInputSkeletonProps extends RestProps {
type $Props = {
/**
* Set to `true` to hide the label text
* @default false
@ -11,7 +11,9 @@ export interface NumberInputSkeletonProps extends RestProps {
hideLabel?: boolean;
[key: `data-${string}`]: any;
}
};
export type NumberInputSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class NumberInputSkeleton extends SvelteComponentTyped<
NumberInputSkeletonProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["ol"];
type $RestProps = SvelteHTMLElements["ol"];
export interface OrderedListProps extends RestProps {
type $Props = {
/**
* Set to `true` to use the nested variant
* @default false
@ -23,7 +23,9 @@ export interface OrderedListProps extends RestProps {
expressive?: boolean;
[key: `data-${string}`]: any;
}
};
export type OrderedListProps = Omit<$RestProps, keyof $Props> & $Props;
export default class OrderedList extends SvelteComponentTyped<
OrderedListProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["button"];
type $RestProps = SvelteHTMLElements["button"];
export interface OverflowMenuProps extends RestProps {
type $Props = {
/**
* Specify the size of the overflow menu
* @default undefined
@ -78,7 +78,9 @@ export interface OverflowMenuProps extends RestProps {
menuRef?: null | HTMLUListElement;
[key: `data-${string}`]: any;
}
};
export type OverflowMenuProps = Omit<$RestProps, keyof $Props> & $Props;
export default class OverflowMenu extends SvelteComponentTyped<
OverflowMenuProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["li"];
type $RestProps = SvelteHTMLElements["li"];
export interface OverflowMenuItemProps extends RestProps {
type $Props = {
/**
* Specify the item text.
* Alternatively, use the default slot
@ -60,7 +60,9 @@ export interface OverflowMenuItemProps extends RestProps {
ref?: null | HTMLAnchorElement | HTMLButtonElement;
[key: `data-${string}`]: any;
}
};
export type OverflowMenuItemProps = Omit<$RestProps, keyof $Props> & $Props;
export default class OverflowMenuItem extends SvelteComponentTyped<
OverflowMenuItemProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface PaginationProps extends RestProps {
type $Props = {
/**
* Specify the current page index
* @default 1
@ -101,7 +101,9 @@ export interface PaginationProps extends RestProps {
id?: string;
[key: `data-${string}`]: any;
}
};
export type PaginationProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Pagination extends SvelteComponentTyped<
PaginationProps,

View file

@ -1,11 +1,13 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface PaginationSkeletonProps extends RestProps {
type $Props = {
[key: `data-${string}`]: any;
}
};
export type PaginationSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class PaginationSkeleton extends SvelteComponentTyped<
PaginationSkeletonProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["nav"];
type $RestProps = SvelteHTMLElements["nav"];
export interface PaginationNavProps extends RestProps {
type $Props = {
/**
* Specify the current page index
* @default 1
@ -47,7 +47,9 @@ export interface PaginationNavProps extends RestProps {
tooltipPosition?: "top" | "right" | "bottom" | "left" | "outside" | "inside";
[key: `data-${string}`]: any;
}
};
export type PaginationNavProps = Omit<$RestProps, keyof $Props> & $Props;
export default class PaginationNav extends SvelteComponentTyped<
PaginationNavProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface PopoverProps extends RestProps {
type $Props = {
/**
* Set to `true` to display the popover
* @default false
@ -59,7 +59,9 @@ export interface PopoverProps extends RestProps {
relative?: boolean;
[key: `data-${string}`]: any;
}
};
export type PopoverProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Popover extends SvelteComponentTyped<
PopoverProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface ProgressBarProps extends RestProps {
type $Props = {
/**
* Specify the current value
* @default undefined
@ -59,7 +59,9 @@ export interface ProgressBarProps extends RestProps {
id?: string;
[key: `data-${string}`]: any;
}
};
export type ProgressBarProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ProgressBar extends SvelteComponentTyped<
ProgressBarProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["ul"];
type $RestProps = SvelteHTMLElements["ul"];
export interface ProgressIndicatorProps extends RestProps {
type $Props = {
/**
* Specify the current step index
* @default 0
@ -29,7 +29,9 @@ export interface ProgressIndicatorProps extends RestProps {
preventChangeOnClick?: boolean;
[key: `data-${string}`]: any;
}
};
export type ProgressIndicatorProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ProgressIndicator extends SvelteComponentTyped<
ProgressIndicatorProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["ul"];
type $RestProps = SvelteHTMLElements["ul"];
export interface ProgressIndicatorSkeletonProps extends RestProps {
type $Props = {
/**
* Set to `true` to use the vertical variant
* @default false
@ -17,7 +17,10 @@ export interface ProgressIndicatorSkeletonProps extends RestProps {
count?: number;
[key: `data-${string}`]: any;
}
};
export type ProgressIndicatorSkeletonProps = Omit<$RestProps, keyof $Props> &
$Props;
export default class ProgressIndicatorSkeleton extends SvelteComponentTyped<
ProgressIndicatorSkeletonProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["li"];
type $RestProps = SvelteHTMLElements["li"];
export interface ProgressStepProps extends RestProps {
type $Props = {
/**
* Set to `true` for the complete variant
* @default false
@ -53,7 +53,9 @@ export interface ProgressStepProps extends RestProps {
id?: string;
[key: `data-${string}`]: any;
}
};
export type ProgressStepProps = Omit<$RestProps, keyof $Props> & $Props;
export default class ProgressStep extends SvelteComponentTyped<
ProgressStepProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface RadioButtonProps extends RestProps {
type $Props = {
/**
* Specify the value of the radio button
* @default ""
@ -65,7 +65,9 @@ export interface RadioButtonProps extends RestProps {
ref?: null | HTMLInputElement;
[key: `data-${string}`]: any;
}
};
export type RadioButtonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class RadioButton extends SvelteComponentTyped<
RadioButtonProps,

View file

@ -1,11 +1,13 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface RadioButtonSkeletonProps extends RestProps {
type $Props = {
[key: `data-${string}`]: any;
}
};
export type RadioButtonSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class RadioButtonSkeleton extends SvelteComponentTyped<
RadioButtonSkeletonProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type $RestProps = SvelteHTMLElements["div"];
export interface RadioButtonGroupProps extends RestProps {
type $Props = {
/**
* Set the selected radio button value
* @default undefined
@ -59,7 +59,9 @@ export interface RadioButtonGroupProps extends RestProps {
id?: string;
[key: `data-${string}`]: any;
}
};
export type RadioButtonGroupProps = Omit<$RestProps, keyof $Props> & $Props;
export default class RadioButtonGroup extends SvelteComponentTyped<
RadioButtonGroupProps,

View file

@ -7,9 +7,9 @@ export interface RecursiveListNode {
html?: string;
}
type RestProps = SvelteHTMLElements["ul"] & SvelteHTMLElements["ol"];
type $RestProps = SvelteHTMLElements["ul"] & SvelteHTMLElements["ol"];
export interface RecursiveListProps extends RestProps {
type $Props = {
/**
* Specify the children to render
* @default []
@ -23,7 +23,9 @@ export interface RecursiveListProps extends RestProps {
type?: "unordered" | "ordered" | "ordered-native";
[key: `data-${string}`]: any;
}
};
export type RecursiveListProps = Omit<$RestProps, keyof $Props> & $Props;
export default class RecursiveList extends SvelteComponentTyped<
RecursiveListProps,

View file

@ -1,9 +1,9 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["input"];
type $RestProps = SvelteHTMLElements["input"];
export interface SearchProps extends RestProps {
type $Props = {
/**
* Specify the value of the search input
* @default ""
@ -102,7 +102,9 @@ export interface SearchProps extends RestProps {
ref?: null | HTMLInputElement;
[key: `data-${string}`]: any;
}
};
export type SearchProps = Omit<$RestProps, keyof $Props> & $Props;
export default class Search extends SvelteComponentTyped<
SearchProps,

Some files were not shown because too many files have changed in this diff Show more