mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(types): use type alias instead of interface for $$restProps
This commit is contained in:
parent
57e99f3a4c
commit
6fbd8ae6a9
165 changed files with 752 additions and 463 deletions
4
types/Accordion/Accordion.svelte.d.ts
vendored
4
types/Accordion/Accordion.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/Accordion/AccordionItem.svelte.d.ts
vendored
8
types/Accordion/AccordionItem.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/AspectRatio/AspectRatio.svelte.d.ts
vendored
8
types/AspectRatio/AspectRatio.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
4
types/Breadcrumb/Breadcrumb.svelte.d.ts
vendored
4
types/Breadcrumb/Breadcrumb.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/Breadcrumb/BreadcrumbItem.svelte.d.ts
vendored
8
types/Breadcrumb/BreadcrumbItem.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
4
types/Breakpoint/Breakpoint.svelte.d.ts
vendored
4
types/Breakpoint/Breakpoint.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/Button/Button.svelte.d.ts
vendored
8
types/Button/Button.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/Button/ButtonSet.svelte.d.ts
vendored
8
types/Button/ButtonSet.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/Button/ButtonSkeleton.svelte.d.ts
vendored
8
types/Button/ButtonSkeleton.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/Checkbox/Checkbox.svelte.d.ts
vendored
8
types/Checkbox/Checkbox.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/Checkbox/CheckboxSkeleton.svelte.d.ts
vendored
8
types/Checkbox/CheckboxSkeleton.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
4
types/CodeSnippet/CodeSnippet.svelte.d.ts
vendored
4
types/CodeSnippet/CodeSnippet.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/ComboBox/ComboBox.svelte.d.ts
vendored
8
types/ComboBox/ComboBox.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/ComposedModal/ModalBody.svelte.d.ts
vendored
8
types/ComposedModal/ModalBody.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/ComposedModal/ModalFooter.svelte.d.ts
vendored
8
types/ComposedModal/ModalFooter.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/ComposedModal/ModalHeader.svelte.d.ts
vendored
8
types/ComposedModal/ModalHeader.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/ContentSwitcher/Switch.svelte.d.ts
vendored
8
types/ContentSwitcher/Switch.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/ContextMenu/ContextMenu.svelte.d.ts
vendored
8
types/ContextMenu/ContextMenu.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface ContextMenuDividerProps {}
|
||||
export type ContextMenuDividerProps = {};
|
||||
|
||||
export default class ContextMenuDivider extends SvelteComponentTyped<
|
||||
ContextMenuDividerProps,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/CopyButton/CopyButton.svelte.d.ts
vendored
8
types/CopyButton/CopyButton.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/DataTable/DataTable.svelte.d.ts
vendored
8
types/DataTable/DataTable.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/DataTable/Table.svelte.d.ts
vendored
8
types/DataTable/Table.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/DataTable/TableBody.svelte.d.ts
vendored
8
types/DataTable/TableBody.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/DataTable/TableCell.svelte.d.ts
vendored
8
types/DataTable/TableCell.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/DataTable/TableContainer.svelte.d.ts
vendored
8
types/DataTable/TableContainer.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/DataTable/TableHead.svelte.d.ts
vendored
8
types/DataTable/TableHead.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/DataTable/TableHeader.svelte.d.ts
vendored
8
types/DataTable/TableHeader.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/DataTable/TableRow.svelte.d.ts
vendored
8
types/DataTable/TableRow.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/DataTable/Toolbar.svelte.d.ts
vendored
8
types/DataTable/Toolbar.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
2
types/DataTable/ToolbarContent.svelte.d.ts
vendored
2
types/DataTable/ToolbarContent.svelte.d.ts
vendored
|
@ -1,6 +1,6 @@
|
|||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface ToolbarContentProps {}
|
||||
export type ToolbarContentProps = {};
|
||||
|
||||
export default class ToolbarContent extends SvelteComponentTyped<
|
||||
ToolbarContentProps,
|
||||
|
|
2
types/DataTable/ToolbarMenu.svelte.d.ts
vendored
2
types/DataTable/ToolbarMenu.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
2
types/DataTable/ToolbarMenuItem.svelte.d.ts
vendored
2
types/DataTable/ToolbarMenuItem.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/DataTable/ToolbarSearch.svelte.d.ts
vendored
8
types/DataTable/ToolbarSearch.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/DatePicker/DatePicker.svelte.d.ts
vendored
8
types/DatePicker/DatePicker.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/DatePicker/DatePickerInput.svelte.d.ts
vendored
8
types/DatePicker/DatePickerInput.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/Dropdown/Dropdown.svelte.d.ts
vendored
8
types/Dropdown/Dropdown.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/Dropdown/DropdownSkeleton.svelte.d.ts
vendored
8
types/Dropdown/DropdownSkeleton.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/FileUploader/FileUploader.svelte.d.ts
vendored
8
types/FileUploader/FileUploader.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/FileUploader/Filename.svelte.d.ts
vendored
8
types/FileUploader/Filename.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/FluidForm/FluidForm.svelte.d.ts
vendored
8
types/FluidForm/FluidForm.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/Form/Form.svelte.d.ts
vendored
8
types/Form/Form.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/FormGroup/FormGroup.svelte.d.ts
vendored
8
types/FormGroup/FormGroup.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/FormItem/FormItem.svelte.d.ts
vendored
8
types/FormItem/FormItem.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/FormLabel/FormLabel.svelte.d.ts
vendored
8
types/FormLabel/FormLabel.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/Grid/Column.svelte.d.ts
vendored
8
types/Grid/Column.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/Grid/Grid.svelte.d.ts
vendored
8
types/Grid/Grid.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/Grid/Row.svelte.d.ts
vendored
8
types/Grid/Row.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/ImageLoader/ImageLoader.svelte.d.ts
vendored
8
types/ImageLoader/ImageLoader.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/Link/Link.svelte.d.ts
vendored
8
types/Link/Link.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
2
types/Link/OutboundLink.svelte.d.ts
vendored
2
types/Link/OutboundLink.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/ListBox/ListBox.svelte.d.ts
vendored
8
types/ListBox/ListBox.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/ListBox/ListBoxField.svelte.d.ts
vendored
8
types/ListBox/ListBoxField.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/ListBox/ListBoxMenu.svelte.d.ts
vendored
8
types/ListBox/ListBoxMenu.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/ListBox/ListBoxMenuIcon.svelte.d.ts
vendored
8
types/ListBox/ListBoxMenuIcon.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/ListBox/ListBoxMenuItem.svelte.d.ts
vendored
8
types/ListBox/ListBoxMenuItem.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/ListBox/ListBoxSelection.svelte.d.ts
vendored
8
types/ListBox/ListBoxSelection.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/ListItem/ListItem.svelte.d.ts
vendored
8
types/ListItem/ListItem.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/Loading/Loading.svelte.d.ts
vendored
8
types/Loading/Loading.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
4
types/LocalStorage/LocalStorage.svelte.d.ts
vendored
4
types/LocalStorage/LocalStorage.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/Modal/Modal.svelte.d.ts
vendored
8
types/Modal/Modal.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/MultiSelect/MultiSelect.svelte.d.ts
vendored
8
types/MultiSelect/MultiSelect.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/NumberInput/NumberInput.svelte.d.ts
vendored
8
types/NumberInput/NumberInput.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/OrderedList/OrderedList.svelte.d.ts
vendored
8
types/OrderedList/OrderedList.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/OverflowMenu/OverflowMenu.svelte.d.ts
vendored
8
types/OverflowMenu/OverflowMenu.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/Pagination/Pagination.svelte.d.ts
vendored
8
types/Pagination/Pagination.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/Popover/Popover.svelte.d.ts
vendored
8
types/Popover/Popover.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
8
types/ProgressBar/ProgressBar.svelte.d.ts
vendored
8
types/ProgressBar/ProgressBar.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/RadioButton/RadioButton.svelte.d.ts
vendored
8
types/RadioButton/RadioButton.svelte.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
8
types/Search/Search.svelte.d.ts
vendored
8
types/Search/Search.svelte.d.ts
vendored
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue