This commit is contained in:
12
index.d.ts
vendored
12
index.d.ts
vendored
@@ -71,7 +71,7 @@ declare module 'sigpro-ui' {
|
||||
label?: string | (() => string);
|
||||
placeholder?: string | (() => string);
|
||||
}
|
||||
function Autocomplete(props: AutocompleteProps): HTMLElement;
|
||||
function autocomplete(props: AutocompleteProps): HTMLElement;
|
||||
|
||||
// Badge
|
||||
interface BadgeProps extends BaseProps, EventProps {}
|
||||
@@ -83,7 +83,7 @@ declare module 'sigpro-ui' {
|
||||
loading?: boolean | (() => boolean);
|
||||
icon?: string | (() => string) | HTMLElement;
|
||||
}
|
||||
function Button(props: ButtonProps, children: ComponentChildren): HTMLElement;
|
||||
function button(props: ButtonProps, children: ComponentChildren): HTMLElement;
|
||||
|
||||
// Checkbox
|
||||
interface CheckboxProps extends BaseProps, EventProps {
|
||||
@@ -160,7 +160,7 @@ declare module 'sigpro-ui' {
|
||||
interface FieldsetProps extends BaseProps, EventProps {
|
||||
legend?: string | (() => string);
|
||||
}
|
||||
function Fieldset(props: FieldsetProps, children: ComponentChildren): HTMLElement;
|
||||
function fieldset(props: FieldsetProps, children: ComponentChildren): HTMLElement;
|
||||
|
||||
// Fileinput
|
||||
interface FileinputProps extends BaseProps, EventProps {
|
||||
@@ -188,7 +188,7 @@ declare module 'sigpro-ui' {
|
||||
validate?: (value: string) => string | null | undefined;
|
||||
label?: string | (() => string);
|
||||
}
|
||||
function Input(props: InputProps): HTMLElement;
|
||||
function input(props: InputProps): HTMLElement;
|
||||
|
||||
// Label
|
||||
interface LabelProps extends BaseProps, EventProps {
|
||||
@@ -197,7 +197,7 @@ declare module 'sigpro-ui' {
|
||||
error?: string | (() => string);
|
||||
required?: boolean;
|
||||
}
|
||||
function Label(props: LabelProps, children: ComponentChildren): HTMLElement;
|
||||
function label(props: LabelProps, children: ComponentChildren): HTMLElement;
|
||||
|
||||
// List
|
||||
interface ListProps<T = any> extends BaseProps, EventProps {
|
||||
@@ -276,7 +276,7 @@ declare module 'sigpro-ui' {
|
||||
items?: SelectOption[] | (() => SelectOption[]);
|
||||
value?: Signal<string | number> | string | number;
|
||||
}
|
||||
function Select(props: SelectProps): HTMLElement;
|
||||
function select(props: SelectProps): HTMLElement;
|
||||
|
||||
// Stack
|
||||
interface StackProps extends BaseProps, EventProps {}
|
||||
|
||||
Reference in New Issue
Block a user