mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { AccordionSkeletonProps } from "./AccordionSkeleton.svelte";
|
import type { AccordionSkeletonProps } from "./AccordionSkeleton.svelte";
|
||||||
|
|
||||||
export interface AccordionProps extends AccordionSkeletonProps {
|
export type AccordionProps = AccordionSkeletonProps & {
|
||||||
/**
|
/**
|
||||||
* Specify alignment of accordion item chevron icon
|
* Specify alignment of accordion item chevron icon
|
||||||
* @default "end"
|
* @default "end"
|
||||||
|
@ -25,7 +25,7 @@ export interface AccordionProps extends AccordionSkeletonProps {
|
||||||
* @default false
|
* @default false
|
||||||
*/
|
*/
|
||||||
skeleton?: boolean;
|
skeleton?: boolean;
|
||||||
}
|
};
|
||||||
|
|
||||||
export default class Accordion extends SvelteComponentTyped<
|
export default class Accordion extends SvelteComponentTyped<
|
||||||
AccordionProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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.
|
* Specify the title of the accordion item heading.
|
||||||
* Alternatively, use the "title" slot (e.g., `<div slot="title">...</div>`)
|
* Alternatively, use the "title" slot (e.g., `<div slot="title">...</div>`)
|
||||||
|
@ -30,7 +30,9 @@ export interface AccordionItemProps extends RestProps {
|
||||||
iconDescription?: string;
|
iconDescription?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type AccordionItemProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class AccordionItem extends SvelteComponentTyped<
|
export default class AccordionItem extends SvelteComponentTyped<
|
||||||
AccordionItemProps,
|
AccordionItemProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the number of accordion items to render
|
||||||
* @default 4
|
* @default 4
|
||||||
|
@ -29,7 +29,9 @@ export interface AccordionSkeletonProps extends RestProps {
|
||||||
open?: boolean;
|
open?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type AccordionSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class AccordionSkeleton extends SvelteComponentTyped<
|
export default class AccordionSkeleton extends SvelteComponentTyped<
|
||||||
AccordionSkeletonProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the aspect ratio
|
||||||
* @default "2x1"
|
* @default "2x1"
|
||||||
|
@ -20,7 +20,9 @@ export interface AspectRatioProps extends RestProps {
|
||||||
| "1x2";
|
| "1x2";
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type AspectRatioProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class AspectRatio extends SvelteComponentTyped<
|
export default class AspectRatio extends SvelteComponentTyped<
|
||||||
AspectRatioProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { BreadcrumbSkeletonProps } from "./BreadcrumbSkeleton.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
|
* Set to `true` to hide the breadcrumb trailing slash
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -13,7 +13,7 @@ export interface BreadcrumbProps extends BreadcrumbSkeletonProps {
|
||||||
* @default false
|
* @default false
|
||||||
*/
|
*/
|
||||||
skeleton?: boolean;
|
skeleton?: boolean;
|
||||||
}
|
};
|
||||||
|
|
||||||
export default class Breadcrumb extends SvelteComponentTyped<
|
export default class Breadcrumb extends SvelteComponentTyped<
|
||||||
BreadcrumbProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set the `href` to use an anchor link
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
@ -17,7 +17,9 @@ export interface BreadcrumbItemProps extends RestProps {
|
||||||
isCurrentPage?: boolean;
|
isCurrentPage?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type BreadcrumbItemProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class BreadcrumbItem extends SvelteComponentTyped<
|
export default class BreadcrumbItem extends SvelteComponentTyped<
|
||||||
BreadcrumbItemProps,
|
BreadcrumbItemProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set to `true` to hide the breadcrumb trailing slash
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -17,7 +17,9 @@ export interface BreadcrumbSkeletonProps extends RestProps {
|
||||||
count?: number;
|
count?: number;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type BreadcrumbSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class BreadcrumbSkeleton extends SvelteComponentTyped<
|
export default class BreadcrumbSkeleton extends SvelteComponentTyped<
|
||||||
BreadcrumbSkeletonProps,
|
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 type BreakpointValue = 320 | 672 | 1056 | 1312 | 1584;
|
||||||
|
|
||||||
export interface BreakpointProps {
|
export type BreakpointProps = {
|
||||||
/**
|
/**
|
||||||
* Determine the current Carbon grid breakpoint size
|
* Determine the current Carbon grid breakpoint size
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
@ -16,7 +16,7 @@ export interface BreakpointProps {
|
||||||
* @default { sm: false, md: false, lg: false, xlg: false, max: false, }
|
* @default { sm: false, md: false, lg: false, xlg: false, max: false, }
|
||||||
*/
|
*/
|
||||||
sizes?: Record<BreakpointSize, boolean>;
|
sizes?: Record<BreakpointSize, boolean>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export default class Breakpoint extends SvelteComponentTyped<
|
export default class Breakpoint extends SvelteComponentTyped<
|
||||||
BreakpointProps,
|
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";
|
import type { ButtonSkeletonProps } from "./ButtonSkeleton.svelte";
|
||||||
|
|
||||||
type RestProps = SvelteHTMLElements["button"] &
|
type $RestProps = SvelteHTMLElements["button"] &
|
||||||
SvelteHTMLElements["a"] &
|
SvelteHTMLElements["a"] &
|
||||||
SvelteHTMLElements["div"];
|
SvelteHTMLElements["div"];
|
||||||
|
|
||||||
export interface ButtonProps extends ButtonSkeletonProps, RestProps {
|
type $Props = {
|
||||||
/**
|
/**
|
||||||
* Specify the kind of button
|
* Specify the kind of button
|
||||||
* @default "primary"
|
* @default "primary"
|
||||||
|
@ -109,7 +109,9 @@ export interface ButtonProps extends ButtonSkeletonProps, RestProps {
|
||||||
ref?: null | HTMLAnchorElement | HTMLButtonElement;
|
ref?: null | HTMLAnchorElement | HTMLButtonElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ButtonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Button extends SvelteComponentTyped<
|
export default class Button extends SvelteComponentTyped<
|
||||||
ButtonProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set to `true` to stack the buttons vertically
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -11,7 +11,9 @@ export interface ButtonSetProps extends RestProps {
|
||||||
stacked?: boolean;
|
stacked?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ButtonSetProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ButtonSet extends SvelteComponentTyped<
|
export default class ButtonSet extends SvelteComponentTyped<
|
||||||
ButtonSetProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set the `href` to use an anchor link
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
@ -17,7 +17,9 @@ export interface ButtonSkeletonProps extends RestProps {
|
||||||
size?: "default" | "field" | "small" | "lg" | "xl";
|
size?: "default" | "field" | "small" | "lg" | "xl";
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ButtonSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ButtonSkeleton extends SvelteComponentTyped<
|
export default class ButtonSkeleton extends SvelteComponentTyped<
|
||||||
ButtonSkeletonProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the value of the checkbox
|
||||||
* @default ""
|
* @default ""
|
||||||
|
@ -89,7 +89,9 @@ export interface CheckboxProps extends RestProps {
|
||||||
ref?: null | HTMLInputElement;
|
ref?: null | HTMLInputElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type CheckboxProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Checkbox extends SvelteComponentTyped<
|
export default class Checkbox extends SvelteComponentTyped<
|
||||||
CheckboxProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type CheckboxSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class CheckboxSkeleton extends SvelteComponentTyped<
|
export default class CheckboxSkeleton extends SvelteComponentTyped<
|
||||||
CheckboxSkeletonProps,
|
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";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
|
|
||||||
export interface CodeSnippetProps {
|
export type CodeSnippetProps = {
|
||||||
/**
|
/**
|
||||||
* Set the type of code snippet
|
* Set the type of code snippet
|
||||||
* @default "single"
|
* @default "single"
|
||||||
|
@ -122,7 +122,7 @@ export interface CodeSnippetProps {
|
||||||
* @default null
|
* @default null
|
||||||
*/
|
*/
|
||||||
ref?: null | HTMLPreElement;
|
ref?: null | HTMLPreElement;
|
||||||
}
|
};
|
||||||
|
|
||||||
export default class CodeSnippet extends SvelteComponentTyped<
|
export default class CodeSnippet extends SvelteComponentTyped<
|
||||||
CodeSnippetProps,
|
CodeSnippetProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set the type of code snippet
|
||||||
* @default "single"
|
* @default "single"
|
||||||
|
@ -11,7 +11,9 @@ export interface CodeSnippetSkeletonProps extends RestProps {
|
||||||
type?: "single" | "multi";
|
type?: "single" | "multi";
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type CodeSnippetSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class CodeSnippetSkeleton extends SvelteComponentTyped<
|
export default class CodeSnippetSkeleton extends SvelteComponentTyped<
|
||||||
CodeSnippetSkeletonProps,
|
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;
|
disabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
type RestProps = SvelteHTMLElements["input"];
|
type $RestProps = SvelteHTMLElements["input"];
|
||||||
|
|
||||||
export interface ComboBoxProps extends RestProps {
|
type $Props = {
|
||||||
/**
|
/**
|
||||||
* Set the combobox items
|
* Set the combobox items
|
||||||
* @default []
|
* @default []
|
||||||
|
@ -155,7 +155,9 @@ export interface ComboBoxProps extends RestProps {
|
||||||
listRef?: null | HTMLDivElement;
|
listRef?: null | HTMLDivElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ComboBoxProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ComboBox extends SvelteComponentTyped<
|
export default class ComboBox extends SvelteComponentTyped<
|
||||||
ComboBoxProps,
|
ComboBoxProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set the size of the composed modal
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
@ -47,7 +47,9 @@ export interface ComposedModalProps extends RestProps {
|
||||||
ref?: null | HTMLDivElement;
|
ref?: null | HTMLDivElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ComposedModalProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ComposedModal extends SvelteComponentTyped<
|
export default class ComposedModal extends SvelteComponentTyped<
|
||||||
ComposedModalProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set to `true` if the modal contains form elements
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -17,7 +17,9 @@ export interface ModalBodyProps extends RestProps {
|
||||||
hasScrollingContent?: boolean;
|
hasScrollingContent?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ModalBodyProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ModalBody extends SvelteComponentTyped<
|
export default class ModalBody extends SvelteComponentTyped<
|
||||||
ModalBodyProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the primary button text
|
||||||
* @default ""
|
* @default ""
|
||||||
|
@ -54,7 +54,9 @@ export interface ModalFooterProps extends RestProps {
|
||||||
danger?: boolean;
|
danger?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ModalFooterProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ModalFooter extends SvelteComponentTyped<
|
export default class ModalFooter extends SvelteComponentTyped<
|
||||||
ModalFooterProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the modal title
|
||||||
* @default ""
|
* @default ""
|
||||||
|
@ -47,7 +47,9 @@ export interface ModalHeaderProps extends RestProps {
|
||||||
iconDescription?: string;
|
iconDescription?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ModalHeaderProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ModalHeader extends SvelteComponentTyped<
|
export default class ModalHeader extends SvelteComponentTyped<
|
||||||
ModalHeaderProps,
|
ModalHeaderProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set the selected index of the switch item
|
||||||
* @default 0
|
* @default 0
|
||||||
|
@ -17,7 +17,9 @@ export interface ContentSwitcherProps extends RestProps {
|
||||||
size?: "sm" | "xl";
|
size?: "sm" | "xl";
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ContentSwitcherProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ContentSwitcher extends SvelteComponentTyped<
|
export default class ContentSwitcher extends SvelteComponentTyped<
|
||||||
ContentSwitcherProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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.
|
* Specify the switch text.
|
||||||
* Alternatively, use the "text" slot (e.g., `<span slot="text">...</span>`)
|
* Alternatively, use the "text" slot (e.g., `<span slot="text">...</span>`)
|
||||||
|
@ -36,7 +36,9 @@ export interface SwitchProps extends RestProps {
|
||||||
ref?: null | HTMLButtonElement;
|
ref?: null | HTMLButtonElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type SwitchProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Switch extends SvelteComponentTyped<
|
export default class Switch extends SvelteComponentTyped<
|
||||||
SwitchProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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.
|
* 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
|
* 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;
|
ref?: null | HTMLUListElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ContextMenuProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ContextMenu extends SvelteComponentTyped<
|
export default class ContextMenu extends SvelteComponentTyped<
|
||||||
ContextMenuProps,
|
ContextMenuProps,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
|
|
||||||
export interface ContextMenuDividerProps {}
|
export type ContextMenuDividerProps = {};
|
||||||
|
|
||||||
export default class ContextMenuDivider extends SvelteComponentTyped<
|
export default class ContextMenuDivider extends SvelteComponentTyped<
|
||||||
ContextMenuDividerProps,
|
ContextMenuDividerProps,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
|
|
||||||
export interface ContextMenuGroupProps {
|
export type ContextMenuGroupProps = {
|
||||||
/**
|
/**
|
||||||
* @default []
|
* @default []
|
||||||
*/
|
*/
|
||||||
|
@ -11,7 +11,7 @@ export interface ContextMenuGroupProps {
|
||||||
* @default ""
|
* @default ""
|
||||||
*/
|
*/
|
||||||
labelText?: string;
|
labelText?: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
export default class ContextMenuGroup extends SvelteComponentTyped<
|
export default class ContextMenuGroup extends SvelteComponentTyped<
|
||||||
ContextMenuGroupProps,
|
ContextMenuGroupProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the kind of option
|
||||||
* @default "default"
|
* @default "default"
|
||||||
|
@ -70,7 +70,9 @@ export interface ContextMenuOptionProps extends RestProps {
|
||||||
ref?: null | HTMLLIElement;
|
ref?: null | HTMLLIElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ContextMenuOptionProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ContextMenuOption extends SvelteComponentTyped<
|
export default class ContextMenuOption extends SvelteComponentTyped<
|
||||||
ContextMenuOptionProps,
|
ContextMenuOptionProps,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
|
|
||||||
export interface ContextMenuRadioGroupProps {
|
export type ContextMenuRadioGroupProps = {
|
||||||
/**
|
/**
|
||||||
* Set the selected radio group id
|
* Set the selected radio group id
|
||||||
* @default ""
|
* @default ""
|
||||||
|
@ -12,7 +12,7 @@ export interface ContextMenuRadioGroupProps {
|
||||||
* @default ""
|
* @default ""
|
||||||
*/
|
*/
|
||||||
labelText?: string;
|
labelText?: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
export default class ContextMenuRadioGroup extends SvelteComponentTyped<
|
export default class ContextMenuRadioGroup extends SvelteComponentTyped<
|
||||||
ContextMenuRadioGroupProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set the feedback text shown after clicking the button
|
||||||
* @default "Copied!"
|
* @default "Copied!"
|
||||||
|
@ -35,7 +35,9 @@ export interface CopyButtonProps extends RestProps {
|
||||||
copy?: (text: string) => void;
|
copy?: (text: string) => void;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type CopyButtonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class CopyButton extends SvelteComponentTyped<
|
export default class CopyButton extends SvelteComponentTyped<
|
||||||
CopyButtonProps,
|
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;
|
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
|
* Specify the data table headers
|
||||||
* @default []
|
* @default []
|
||||||
|
@ -179,7 +179,9 @@ export interface DataTableProps extends RestProps {
|
||||||
page?: number;
|
page?: number;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type DataTableProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class DataTable extends SvelteComponentTyped<
|
export default class DataTable extends SvelteComponentTyped<
|
||||||
DataTableProps,
|
DataTableProps,
|
||||||
|
|
|
@ -3,9 +3,9 @@ import type { SvelteHTMLElements } from "svelte/elements";
|
||||||
|
|
||||||
import type { DataTableHeader } from "./DataTable.svelte";
|
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
|
* Specify the number of columns
|
||||||
* Superseded by `headers` if `headers` is a non-empty array
|
* Superseded by `headers` if `headers` is a non-empty array
|
||||||
|
@ -51,7 +51,9 @@ export interface DataTableSkeletonProps extends DataTableHeader, RestProps {
|
||||||
showToolbar?: boolean;
|
showToolbar?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type DataTableSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class DataTableSkeleton extends SvelteComponentTyped<
|
export default class DataTableSkeleton extends SvelteComponentTyped<
|
||||||
DataTableSkeletonProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set the size of the table
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
@ -41,7 +41,9 @@ export interface TableProps extends RestProps {
|
||||||
tableStyle?: string;
|
tableStyle?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type TableProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Table extends SvelteComponentTyped<
|
export default class Table extends SvelteComponentTyped<
|
||||||
TableProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type TableBodyProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class TableBody extends SvelteComponentTyped<
|
export default class TableBody extends SvelteComponentTyped<
|
||||||
TableBodyProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type TableCellProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class TableCell extends SvelteComponentTyped<
|
export default class TableCell extends SvelteComponentTyped<
|
||||||
TableCellProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the title of the data table
|
||||||
* @default ""
|
* @default ""
|
||||||
|
@ -29,7 +29,9 @@ export interface TableContainerProps extends RestProps {
|
||||||
useStaticWidth?: boolean;
|
useStaticWidth?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type TableContainerProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class TableContainer extends SvelteComponentTyped<
|
export default class TableContainer extends SvelteComponentTyped<
|
||||||
TableContainerProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type TableHeadProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class TableHead extends SvelteComponentTyped<
|
export default class TableHead extends SvelteComponentTyped<
|
||||||
TableHeadProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set to `true` for the sortable variant
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -41,7 +41,9 @@ export interface TableHeaderProps extends RestProps {
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type TableHeaderProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class TableHeader extends SvelteComponentTyped<
|
export default class TableHeader extends SvelteComponentTyped<
|
||||||
TableHeaderProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type TableRowProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class TableRow extends SvelteComponentTyped<
|
export default class TableRow extends SvelteComponentTyped<
|
||||||
TableRowProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the toolbar size
|
||||||
* @default "default"
|
* @default "default"
|
||||||
|
@ -11,7 +11,9 @@ export interface ToolbarProps extends RestProps {
|
||||||
size?: "sm" | "default";
|
size?: "sm" | "default";
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ToolbarProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Toolbar extends SvelteComponentTyped<
|
export default class Toolbar extends SvelteComponentTyped<
|
||||||
ToolbarProps,
|
ToolbarProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Override the total items selected text
|
||||||
* @default (totalSelected) => `${totalSelected} item${totalSelected === 1 ? "" : "s"} selected`
|
* @default (totalSelected) => `${totalSelected} item${totalSelected === 1 ? "" : "s"} selected`
|
||||||
|
@ -17,7 +17,9 @@ export interface ToolbarBatchActionsProps extends RestProps {
|
||||||
active?: undefined | boolean;
|
active?: undefined | boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ToolbarBatchActionsProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ToolbarBatchActions extends SvelteComponentTyped<
|
export default class ToolbarBatchActions extends SvelteComponentTyped<
|
||||||
ToolbarBatchActionsProps,
|
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";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
|
|
||||||
export interface ToolbarContentProps {}
|
export type ToolbarContentProps = {};
|
||||||
|
|
||||||
export default class ToolbarContent extends SvelteComponentTyped<
|
export default class ToolbarContent extends SvelteComponentTyped<
|
||||||
ToolbarContentProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { OverflowMenuProps } from "../OverflowMenu/OverflowMenu.svelte";
|
import type { OverflowMenuProps } from "../OverflowMenu/OverflowMenu.svelte";
|
||||||
|
|
||||||
export interface ToolbarMenuProps extends OverflowMenuProps {}
|
export type ToolbarMenuProps = OverflowMenuProps & {};
|
||||||
|
|
||||||
export default class ToolbarMenu extends SvelteComponentTyped<
|
export default class ToolbarMenu extends SvelteComponentTyped<
|
||||||
ToolbarMenuProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { OverflowMenuItemProps } from "../OverflowMenu/OverflowMenuItem.svelte";
|
import type { OverflowMenuItemProps } from "../OverflowMenu/OverflowMenuItem.svelte";
|
||||||
|
|
||||||
export interface ToolbarMenuItemProps extends OverflowMenuItemProps {}
|
export type ToolbarMenuItemProps = OverflowMenuItemProps & {};
|
||||||
|
|
||||||
export default class ToolbarMenuItem extends SvelteComponentTyped<
|
export default class ToolbarMenuItem extends SvelteComponentTyped<
|
||||||
ToolbarMenuItemProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the value of the search input
|
||||||
* @default ""
|
* @default ""
|
||||||
|
@ -64,7 +64,9 @@ export interface ToolbarSearchProps extends RestProps {
|
||||||
ref?: null | HTMLInputElement;
|
ref?: null | HTMLInputElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ToolbarSearchProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ToolbarSearch extends SvelteComponentTyped<
|
export default class ToolbarSearch extends SvelteComponentTyped<
|
||||||
ToolbarSearchProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the date picker type
|
||||||
* @default "simple"
|
* @default "simple"
|
||||||
|
@ -82,7 +82,9 @@ export interface DatePickerProps extends RestProps {
|
||||||
flatpickrProps?: import("flatpickr/dist/types/options").Options;
|
flatpickrProps?: import("flatpickr/dist/types/options").Options;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type DatePickerProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class DatePicker extends SvelteComponentTyped<
|
export default class DatePicker extends SvelteComponentTyped<
|
||||||
DatePickerProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set the size of the input
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
@ -101,7 +101,9 @@ export interface DatePickerInputProps extends RestProps {
|
||||||
ref?: null | HTMLInputElement;
|
ref?: null | HTMLInputElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type DatePickerInputProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class DatePickerInput extends SvelteComponentTyped<
|
export default class DatePickerInput extends SvelteComponentTyped<
|
||||||
DatePickerInputProps,
|
DatePickerInputProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set to `true` to use the range variant
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -17,7 +17,9 @@ export interface DatePickerSkeletonProps extends RestProps {
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type DatePickerSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class DatePickerSkeleton extends SvelteComponentTyped<
|
export default class DatePickerSkeleton extends SvelteComponentTyped<
|
||||||
DatePickerSkeletonProps,
|
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;
|
disabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
type RestProps = SvelteHTMLElements["div"];
|
type $RestProps = SvelteHTMLElements["div"];
|
||||||
|
|
||||||
export interface DropdownProps extends RestProps {
|
type $Props = {
|
||||||
/**
|
/**
|
||||||
* Set the dropdown items
|
* Set the dropdown items
|
||||||
* @default []
|
* @default []
|
||||||
|
@ -144,7 +144,9 @@ export interface DropdownProps extends RestProps {
|
||||||
ref?: null | HTMLButtonElement;
|
ref?: null | HTMLButtonElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type DropdownProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Dropdown extends SvelteComponentTyped<
|
export default class Dropdown extends SvelteComponentTyped<
|
||||||
DropdownProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set to `true` to use the inline variant
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -11,7 +11,9 @@ export interface DropdownSkeletonProps extends RestProps {
|
||||||
inline?: boolean;
|
inline?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type DropdownSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class DropdownSkeleton extends SvelteComponentTyped<
|
export default class DropdownSkeleton extends SvelteComponentTyped<
|
||||||
DropdownSkeletonProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the file uploader status
|
||||||
* @default "uploading"
|
* @default "uploading"
|
||||||
|
@ -79,7 +79,9 @@ export interface FileUploaderProps extends RestProps {
|
||||||
name?: string;
|
name?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type FileUploaderProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class FileUploader extends SvelteComponentTyped<
|
export default class FileUploader extends SvelteComponentTyped<
|
||||||
FileUploaderProps,
|
FileUploaderProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the accepted file types
|
||||||
* @default []
|
* @default []
|
||||||
|
@ -83,7 +83,9 @@ export interface FileUploaderButtonProps extends RestProps {
|
||||||
ref?: null | HTMLInputElement;
|
ref?: null | HTMLInputElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type FileUploaderButtonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class FileUploaderButton extends SvelteComponentTyped<
|
export default class FileUploaderButton extends SvelteComponentTyped<
|
||||||
FileUploaderButtonProps,
|
FileUploaderButtonProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the accepted file types
|
||||||
* @default []
|
* @default []
|
||||||
|
@ -72,7 +72,10 @@ export interface FileUploaderDropContainerProps extends RestProps {
|
||||||
ref?: null | HTMLInputElement;
|
ref?: null | HTMLInputElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type FileUploaderDropContainerProps = Omit<$RestProps, keyof $Props> &
|
||||||
|
$Props;
|
||||||
|
|
||||||
export default class FileUploaderDropContainer extends SvelteComponentTyped<
|
export default class FileUploaderDropContainer extends SvelteComponentTyped<
|
||||||
FileUploaderDropContainerProps,
|
FileUploaderDropContainerProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the file uploader status
|
||||||
* @default "uploading"
|
* @default "uploading"
|
||||||
|
@ -53,7 +53,9 @@ export interface FileUploaderItemProps extends RestProps {
|
||||||
name?: string;
|
name?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type FileUploaderItemProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class FileUploaderItem extends SvelteComponentTyped<
|
export default class FileUploaderItem extends SvelteComponentTyped<
|
||||||
FileUploaderItemProps,
|
FileUploaderItemProps,
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type FileUploaderSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class FileUploaderSkeleton extends SvelteComponentTyped<
|
export default class FileUploaderSkeleton extends SvelteComponentTyped<
|
||||||
FileUploaderSkeletonProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
import type { SvelteHTMLElements } from "svelte/elements";
|
||||||
|
|
||||||
type RestProps = SvelteHTMLElements["div"] &
|
type $RestProps = SvelteHTMLElements["div"] &
|
||||||
SvelteHTMLElements["button"] &
|
SvelteHTMLElements["button"] &
|
||||||
SvelteHTMLElements["svg"];
|
SvelteHTMLElements["svg"];
|
||||||
|
|
||||||
export interface FilenameProps extends RestProps {
|
type $Props = {
|
||||||
/**
|
/**
|
||||||
* Specify the file name status
|
* Specify the file name status
|
||||||
* @default "uploading"
|
* @default "uploading"
|
||||||
|
@ -25,7 +25,9 @@ export interface FilenameProps extends RestProps {
|
||||||
invalid?: boolean;
|
invalid?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type FilenameProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Filename extends SvelteComponentTyped<
|
export default class Filename extends SvelteComponentTyped<
|
||||||
FilenameProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type FluidFormProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class FluidForm extends SvelteComponentTyped<
|
export default class FluidForm extends SvelteComponentTyped<
|
||||||
FluidFormProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Obtain a reference to the form element
|
||||||
* @default null
|
* @default null
|
||||||
|
@ -11,7 +11,9 @@ export interface FormProps extends RestProps {
|
||||||
ref?: null | HTMLFormElement;
|
ref?: null | HTMLFormElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type FormProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Form extends SvelteComponentTyped<
|
export default class Form extends SvelteComponentTyped<
|
||||||
FormProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set to `true` for to remove the bottom margin
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -41,7 +41,9 @@ export interface FormGroupProps extends RestProps {
|
||||||
legendId?: string;
|
legendId?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type FormGroupProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class FormGroup extends SvelteComponentTyped<
|
export default class FormGroup extends SvelteComponentTyped<
|
||||||
FormGroupProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type FormItemProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class FormItem extends SvelteComponentTyped<
|
export default class FormItem extends SvelteComponentTyped<
|
||||||
FormItemProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set an id to be used by the label element
|
||||||
* @default "ccs-" + Math.random().toString(36)
|
* @default "ccs-" + Math.random().toString(36)
|
||||||
|
@ -11,7 +11,9 @@ export interface FormLabelProps extends RestProps {
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type FormLabelProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class FormLabel extends SvelteComponentTyped<
|
export default class FormLabel extends SvelteComponentTyped<
|
||||||
FormLabelProps,
|
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;
|
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
|
* 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>)
|
* 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;
|
max?: ColumnBreakpoint;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ColumnProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Column extends SvelteComponentTyped<
|
export default class Column extends SvelteComponentTyped<
|
||||||
ColumnProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* 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>)
|
* 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;
|
padding?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type GridProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Grid extends SvelteComponentTyped<
|
export default class Grid extends SvelteComponentTyped<
|
||||||
GridProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* 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>)
|
* 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;
|
padding?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type RowProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Row extends SvelteComponentTyped<
|
export default class Row extends SvelteComponentTyped<
|
||||||
RowProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the image source
|
||||||
* @default ""
|
* @default ""
|
||||||
|
@ -48,7 +48,9 @@ export interface ImageLoaderProps extends RestProps {
|
||||||
fadeIn?: boolean;
|
fadeIn?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ImageLoaderProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ImageLoader extends SvelteComponentTyped<
|
export default class ImageLoader extends SvelteComponentTyped<
|
||||||
ImageLoaderProps,
|
ImageLoaderProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set the loading status
|
||||||
* @default "active"
|
* @default "active"
|
||||||
|
@ -30,7 +30,9 @@ export interface InlineLoadingProps extends RestProps {
|
||||||
successDelay?: number;
|
successDelay?: number;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type InlineLoadingProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class InlineLoading extends SvelteComponentTyped<
|
export default class InlineLoading extends SvelteComponentTyped<
|
||||||
InlineLoadingProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the size of the link
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
@ -48,7 +48,9 @@ export interface LinkProps extends RestProps {
|
||||||
ref?: null | HTMLAnchorElement;
|
ref?: null | HTMLAnchorElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type LinkProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Link extends SvelteComponentTyped<
|
export default class Link extends SvelteComponentTyped<
|
||||||
LinkProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { LinkProps } from "./Link.svelte";
|
import type { LinkProps } from "./Link.svelte";
|
||||||
|
|
||||||
export interface OutboundLinkProps extends LinkProps {}
|
export type OutboundLinkProps = LinkProps & {};
|
||||||
|
|
||||||
export default class OutboundLink extends SvelteComponentTyped<
|
export default class OutboundLink extends SvelteComponentTyped<
|
||||||
OutboundLinkProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set the size of the list box
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
@ -59,7 +59,9 @@ export interface ListBoxProps extends RestProps {
|
||||||
warnText?: string;
|
warnText?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ListBoxProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ListBox extends SvelteComponentTyped<
|
export default class ListBox extends SvelteComponentTyped<
|
||||||
ListBoxProps,
|
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";
|
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
|
* Set to `true` to disable the list box field
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -43,7 +43,9 @@ export interface ListBoxFieldProps extends RestProps {
|
||||||
ref?: null | HTMLDivElement;
|
ref?: null | HTMLDivElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ListBoxFieldProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ListBoxField extends SvelteComponentTyped<
|
export default class ListBoxField extends SvelteComponentTyped<
|
||||||
ListBoxFieldProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set an id for the top-level element
|
||||||
* @default "ccs-" + Math.random().toString(36)
|
* @default "ccs-" + Math.random().toString(36)
|
||||||
|
@ -17,7 +17,9 @@ export interface ListBoxMenuProps extends RestProps {
|
||||||
ref?: null | HTMLDivElement;
|
ref?: null | HTMLDivElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ListBoxMenuProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ListBoxMenu extends SvelteComponentTyped<
|
export default class ListBoxMenu extends SvelteComponentTyped<
|
||||||
ListBoxMenuProps,
|
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";
|
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
|
* Set to `true` to open the list box menu icon
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -19,7 +19,9 @@ export interface ListBoxMenuIconProps extends RestProps {
|
||||||
translateWithId?: (id: ListBoxMenuIconTranslationId) => string;
|
translateWithId?: (id: ListBoxMenuIconTranslationId) => string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ListBoxMenuIconProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ListBoxMenuIcon extends SvelteComponentTyped<
|
export default class ListBoxMenuIcon extends SvelteComponentTyped<
|
||||||
ListBoxMenuIconProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set to `true` to enable the active state
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -23,7 +23,9 @@ export interface ListBoxMenuItemProps extends RestProps {
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ListBoxMenuItemProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ListBoxMenuItem extends SvelteComponentTyped<
|
export default class ListBoxMenuItem extends SvelteComponentTyped<
|
||||||
ListBoxMenuItemProps,
|
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";
|
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
|
* Specify the number of selected items
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
@ -31,7 +31,9 @@ export interface ListBoxSelectionProps extends RestProps {
|
||||||
ref?: null | HTMLDivElement;
|
ref?: null | HTMLDivElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ListBoxSelectionProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ListBoxSelection extends SvelteComponentTyped<
|
export default class ListBoxSelection extends SvelteComponentTyped<
|
||||||
ListBoxSelectionProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ListItemProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ListItem extends SvelteComponentTyped<
|
export default class ListItem extends SvelteComponentTyped<
|
||||||
ListItemProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set to `true` to use the small variant
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -29,7 +29,9 @@ export interface LoadingProps extends RestProps {
|
||||||
description?: string;
|
description?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type LoadingProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Loading extends SvelteComponentTyped<
|
export default class Loading extends SvelteComponentTyped<
|
||||||
LoadingProps,
|
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";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
|
|
||||||
export interface LocalStorageProps {
|
export type LocalStorageProps = {
|
||||||
/**
|
/**
|
||||||
* Specify the local storage key
|
* Specify the local storage key
|
||||||
* @default "local-storage-key"
|
* @default "local-storage-key"
|
||||||
|
@ -12,7 +12,7 @@ export interface LocalStorageProps {
|
||||||
* @default ""
|
* @default ""
|
||||||
*/
|
*/
|
||||||
value?: any;
|
value?: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
export default class LocalStorage extends SvelteComponentTyped<
|
export default class LocalStorage extends SvelteComponentTyped<
|
||||||
LocalStorageProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set the size of the modal
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
@ -133,7 +133,9 @@ export interface ModalProps extends RestProps {
|
||||||
ref?: null | HTMLDivElement;
|
ref?: null | HTMLDivElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ModalProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Modal extends SvelteComponentTyped<
|
export default class Modal extends SvelteComponentTyped<
|
||||||
ModalProps,
|
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;
|
disabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
type RestProps = SvelteHTMLElements["input"];
|
type $RestProps = SvelteHTMLElements["input"];
|
||||||
|
|
||||||
export interface MultiSelectProps extends RestProps {
|
type $Props = {
|
||||||
/**
|
/**
|
||||||
* Set the multiselect items
|
* Set the multiselect items
|
||||||
* @default []
|
* @default []
|
||||||
|
@ -240,7 +240,9 @@ export interface MultiSelectProps extends RestProps {
|
||||||
highlightedId?: null | MultiSelectItemId;
|
highlightedId?: null | MultiSelectItemId;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type MultiSelectProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class MultiSelect extends SvelteComponentTyped<
|
export default class MultiSelect extends SvelteComponentTyped<
|
||||||
MultiSelectProps,
|
MultiSelectProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the kind of notification
|
||||||
* @default "error"
|
* @default "error"
|
||||||
|
@ -65,7 +65,9 @@ export interface InlineNotificationProps extends RestProps {
|
||||||
closeButtonDescription?: string;
|
closeButtonDescription?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type InlineNotificationProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class InlineNotification extends SvelteComponentTyped<
|
export default class InlineNotification extends SvelteComponentTyped<
|
||||||
InlineNotificationProps,
|
InlineNotificationProps,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { ButtonProps } from "../Button/Button.svelte";
|
import type { ButtonProps } from "../Button/Button.svelte";
|
||||||
|
|
||||||
export interface NotificationActionButtonProps extends ButtonProps {}
|
export type NotificationActionButtonProps = ButtonProps & {};
|
||||||
|
|
||||||
export default class NotificationActionButton extends SvelteComponentTyped<
|
export default class NotificationActionButton extends SvelteComponentTyped<
|
||||||
NotificationActionButtonProps,
|
NotificationActionButtonProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set the type of notification
|
||||||
* @default "toast"
|
* @default "toast"
|
||||||
|
@ -29,7 +29,9 @@ export interface NotificationButtonProps extends RestProps {
|
||||||
iconDescription?: string;
|
iconDescription?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type NotificationButtonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class NotificationButton extends SvelteComponentTyped<
|
export default class NotificationButton extends SvelteComponentTyped<
|
||||||
NotificationButtonProps,
|
NotificationButtonProps,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
|
|
||||||
export interface NotificationIconProps {
|
export type NotificationIconProps = {
|
||||||
/**
|
/**
|
||||||
* Specify the kind of notification icon
|
* Specify the kind of notification icon
|
||||||
* @default "error"
|
* @default "error"
|
||||||
|
@ -24,7 +24,7 @@ export interface NotificationIconProps {
|
||||||
* @default undefined
|
* @default undefined
|
||||||
*/
|
*/
|
||||||
iconDescription: undefined;
|
iconDescription: undefined;
|
||||||
}
|
};
|
||||||
|
|
||||||
export default class NotificationIcon extends SvelteComponentTyped<
|
export default class NotificationIcon extends SvelteComponentTyped<
|
||||||
NotificationIconProps,
|
NotificationIconProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the kind of notification
|
||||||
* @default "error"
|
* @default "error"
|
||||||
|
@ -78,7 +78,9 @@ export interface ToastNotificationProps extends RestProps {
|
||||||
fullWidth?: boolean;
|
fullWidth?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ToastNotificationProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ToastNotification extends SvelteComponentTyped<
|
export default class ToastNotification extends SvelteComponentTyped<
|
||||||
ToastNotificationProps,
|
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";
|
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
|
* Set the size of the input
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
@ -140,7 +140,9 @@ export interface NumberInputProps extends RestProps {
|
||||||
ref?: null | HTMLInputElement;
|
ref?: null | HTMLInputElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type NumberInputProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class NumberInput extends SvelteComponentTyped<
|
export default class NumberInput extends SvelteComponentTyped<
|
||||||
NumberInputProps,
|
NumberInputProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set to `true` to hide the label text
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -11,7 +11,9 @@ export interface NumberInputSkeletonProps extends RestProps {
|
||||||
hideLabel?: boolean;
|
hideLabel?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type NumberInputSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class NumberInputSkeleton extends SvelteComponentTyped<
|
export default class NumberInputSkeleton extends SvelteComponentTyped<
|
||||||
NumberInputSkeletonProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set to `true` to use the nested variant
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -23,7 +23,9 @@ export interface OrderedListProps extends RestProps {
|
||||||
expressive?: boolean;
|
expressive?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type OrderedListProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class OrderedList extends SvelteComponentTyped<
|
export default class OrderedList extends SvelteComponentTyped<
|
||||||
OrderedListProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the size of the overflow menu
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
@ -78,7 +78,9 @@ export interface OverflowMenuProps extends RestProps {
|
||||||
menuRef?: null | HTMLUListElement;
|
menuRef?: null | HTMLUListElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type OverflowMenuProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class OverflowMenu extends SvelteComponentTyped<
|
export default class OverflowMenu extends SvelteComponentTyped<
|
||||||
OverflowMenuProps,
|
OverflowMenuProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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.
|
* Specify the item text.
|
||||||
* Alternatively, use the default slot
|
* Alternatively, use the default slot
|
||||||
|
@ -60,7 +60,9 @@ export interface OverflowMenuItemProps extends RestProps {
|
||||||
ref?: null | HTMLAnchorElement | HTMLButtonElement;
|
ref?: null | HTMLAnchorElement | HTMLButtonElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type OverflowMenuItemProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class OverflowMenuItem extends SvelteComponentTyped<
|
export default class OverflowMenuItem extends SvelteComponentTyped<
|
||||||
OverflowMenuItemProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the current page index
|
||||||
* @default 1
|
* @default 1
|
||||||
|
@ -101,7 +101,9 @@ export interface PaginationProps extends RestProps {
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type PaginationProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Pagination extends SvelteComponentTyped<
|
export default class Pagination extends SvelteComponentTyped<
|
||||||
PaginationProps,
|
PaginationProps,
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type PaginationSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class PaginationSkeleton extends SvelteComponentTyped<
|
export default class PaginationSkeleton extends SvelteComponentTyped<
|
||||||
PaginationSkeletonProps,
|
PaginationSkeletonProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the current page index
|
||||||
* @default 1
|
* @default 1
|
||||||
|
@ -47,7 +47,9 @@ export interface PaginationNavProps extends RestProps {
|
||||||
tooltipPosition?: "top" | "right" | "bottom" | "left" | "outside" | "inside";
|
tooltipPosition?: "top" | "right" | "bottom" | "left" | "outside" | "inside";
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type PaginationNavProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class PaginationNav extends SvelteComponentTyped<
|
export default class PaginationNav extends SvelteComponentTyped<
|
||||||
PaginationNavProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set to `true` to display the popover
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -59,7 +59,9 @@ export interface PopoverProps extends RestProps {
|
||||||
relative?: boolean;
|
relative?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type PopoverProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Popover extends SvelteComponentTyped<
|
export default class Popover extends SvelteComponentTyped<
|
||||||
PopoverProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the current value
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
@ -59,7 +59,9 @@ export interface ProgressBarProps extends RestProps {
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ProgressBarProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ProgressBar extends SvelteComponentTyped<
|
export default class ProgressBar extends SvelteComponentTyped<
|
||||||
ProgressBarProps,
|
ProgressBarProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the current step index
|
||||||
* @default 0
|
* @default 0
|
||||||
|
@ -29,7 +29,9 @@ export interface ProgressIndicatorProps extends RestProps {
|
||||||
preventChangeOnClick?: boolean;
|
preventChangeOnClick?: boolean;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ProgressIndicatorProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ProgressIndicator extends SvelteComponentTyped<
|
export default class ProgressIndicator extends SvelteComponentTyped<
|
||||||
ProgressIndicatorProps,
|
ProgressIndicatorProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set to `true` to use the vertical variant
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -17,7 +17,10 @@ export interface ProgressIndicatorSkeletonProps extends RestProps {
|
||||||
count?: number;
|
count?: number;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ProgressIndicatorSkeletonProps = Omit<$RestProps, keyof $Props> &
|
||||||
|
$Props;
|
||||||
|
|
||||||
export default class ProgressIndicatorSkeleton extends SvelteComponentTyped<
|
export default class ProgressIndicatorSkeleton extends SvelteComponentTyped<
|
||||||
ProgressIndicatorSkeletonProps,
|
ProgressIndicatorSkeletonProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set to `true` for the complete variant
|
||||||
* @default false
|
* @default false
|
||||||
|
@ -53,7 +53,9 @@ export interface ProgressStepProps extends RestProps {
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type ProgressStepProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class ProgressStep extends SvelteComponentTyped<
|
export default class ProgressStep extends SvelteComponentTyped<
|
||||||
ProgressStepProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the value of the radio button
|
||||||
* @default ""
|
* @default ""
|
||||||
|
@ -65,7 +65,9 @@ export interface RadioButtonProps extends RestProps {
|
||||||
ref?: null | HTMLInputElement;
|
ref?: null | HTMLInputElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type RadioButtonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class RadioButton extends SvelteComponentTyped<
|
export default class RadioButton extends SvelteComponentTyped<
|
||||||
RadioButtonProps,
|
RadioButtonProps,
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type RadioButtonSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class RadioButtonSkeleton extends SvelteComponentTyped<
|
export default class RadioButtonSkeleton extends SvelteComponentTyped<
|
||||||
RadioButtonSkeletonProps,
|
RadioButtonSkeletonProps,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Set the selected radio button value
|
||||||
* @default undefined
|
* @default undefined
|
||||||
|
@ -59,7 +59,9 @@ export interface RadioButtonGroupProps extends RestProps {
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type RadioButtonGroupProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class RadioButtonGroup extends SvelteComponentTyped<
|
export default class RadioButtonGroup extends SvelteComponentTyped<
|
||||||
RadioButtonGroupProps,
|
RadioButtonGroupProps,
|
||||||
|
|
|
@ -7,9 +7,9 @@ export interface RecursiveListNode {
|
||||||
html?: string;
|
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
|
* Specify the children to render
|
||||||
* @default []
|
* @default []
|
||||||
|
@ -23,7 +23,9 @@ export interface RecursiveListProps extends RestProps {
|
||||||
type?: "unordered" | "ordered" | "ordered-native";
|
type?: "unordered" | "ordered" | "ordered-native";
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type RecursiveListProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class RecursiveList extends SvelteComponentTyped<
|
export default class RecursiveList extends SvelteComponentTyped<
|
||||||
RecursiveListProps,
|
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 { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
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
|
* Specify the value of the search input
|
||||||
* @default ""
|
* @default ""
|
||||||
|
@ -102,7 +102,9 @@ export interface SearchProps extends RestProps {
|
||||||
ref?: null | HTMLInputElement;
|
ref?: null | HTMLInputElement;
|
||||||
|
|
||||||
[key: `data-${string}`]: any;
|
[key: `data-${string}`]: any;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export type SearchProps = Omit<$RestProps, keyof $Props> & $Props;
|
||||||
|
|
||||||
export default class Search extends SvelteComponentTyped<
|
export default class Search extends SvelteComponentTyped<
|
||||||
SearchProps,
|
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