Update TS
Some checks failed
Publish to NPM / build (release) Failing after 10s

This commit is contained in:
2026-04-27 18:28:45 +02:00
parent 627bfd78ad
commit b992f4a0a4

695
index.d.ts vendored
View File

@@ -1,498 +1,535 @@
// sigpro-ui.d.ts
declare module 'sigpro-ui' {
// Tipos básicos
type Signal<T> = {
(): T;
(value: T | ((prev: T) => T)): void;
};
type ComponentFunction<P = {}> = (props?: P, children?: any) => HTMLElement | string | null;
type ComponentChild = HTMLElement | string | number | boolean | null | undefined;
type ComponentChildren = ComponentChild | ComponentChild[];
type ComponentChild = Node | string | number | boolean | null | undefined;
type ComponentChildren = ComponentChild | ComponentChild[] | (() => ComponentChild | ComponentChildren);
// Utils
function val<T>(value: T | (() => T)): T;
function ui(baseClass: string, ...additional: (string | (() => string) | undefined)[]): string | (() => string);
function getIcon(icon: string | (() => string) | HTMLElement | null | undefined): HTMLElement | null;
function tt(key: 'close' | 'confirm' | 'cancel' | 'search' | 'loading' | 'nodata'): () => string;
// Props comunes
interface BaseProps {
class?: string | (() => string);
style?: string | Record<string, string> | (() => string | Record<string, string>);
style?: string | (() => string);
id?: string | (() => string);
[key: string]: any;
}
interface EventProps {
onclick?: (event: MouseEvent) => void;
oninput?: (event: Event) => void;
onchange?: (event: Event) => void;
onblur?: (event: FocusEvent) => void;
onfocus?: (event: FocusEvent) => void;
onkeydown?: (event: KeyboardEvent) => void;
onkeyup?: (event: KeyboardEvent) => void;
onmouseenter?: (event: MouseEvent) => void;
onmouseleave?: (event: MouseEvent) => void;
onsubmit?: (event: Event) => void;
ondragover?: (event: DragEvent) => void;
ondragleave?: (event: DragEvent) => void;
ondrop?: (event: DragEvent) => void;
[key: `on${string}`]: ((event: any) => void) | undefined;
interface AccordionItem {
title?: string | (() => string);
content?: string | (() => string);
open?: boolean;
classTitle?: string;
classContent?: string;
}
// Accordion
interface AccordionProps extends BaseProps, EventProps {
title: string | (() => string);
interface AccordionProps extends BaseProps {
items: AccordionItem[] | (() => AccordionItem[]);
name?: string;
open?: boolean | (() => boolean);
}
function Accordion(props: AccordionProps, children: ComponentChildren): HTMLElement;
function Accordion(props: AccordionProps): Node;
// Alert
type AlertType = 'info' | 'success' | 'warning' | 'error';
interface AlertProps extends BaseProps, EventProps {
type?: AlertType;
soft?: boolean;
actions?: ComponentFunction | ComponentChildren;
message?: string | (() => string);
}
function Alert(props: AlertProps, children?: ComponentChildren): HTMLElement;
interface AlertProps extends BaseProps {}
function Alert(props: AlertProps, children?: ComponentChildren): Node;
// Autocomplete
interface AutocompleteOption {
label: string;
value: string;
}
interface AutocompleteProps extends BaseProps, EventProps {
items?: string[] | AutocompleteOption[] | (() => (string[] | AutocompleteOption[]));
interface AutocompleteProps extends BaseProps {
items: (string | { label: string; value?: string })[] | (() => (string | { label: string; value?: string })[]);
value?: Signal<string> | string;
onselect?: (option: string | AutocompleteOption) => void;
label?: string | (() => string);
placeholder?: string | (() => string);
onselect?: (item: string | { label: string; value?: string }) => void;
placeholder?: string;
}
function autocomplete(props: AutocompleteProps): HTMLElement;
function Autocomplete(props: AutocompleteProps): Node;
// Badge
interface BadgeProps extends BaseProps, EventProps {}
function Badge(props: BadgeProps, children: ComponentChildren): HTMLElement;
interface BadgeProps extends BaseProps {}
function Badge(props: BadgeProps, children?: ComponentChildren): Node;
// Button
interface ButtonProps extends BaseProps, EventProps {
disabled?: boolean | (() => boolean);
loading?: boolean | (() => boolean);
icon?: string | (() => string) | HTMLElement;
}
function button(props: ButtonProps, children: ComponentChildren): HTMLElement;
interface ButtonProps extends BaseProps {}
function Button(props: ButtonProps, children?: ComponentChildren): Node;
// Checkbox
interface CheckboxProps extends BaseProps, EventProps {
value?: Signal<boolean> | boolean;
label?: string | (() => string);
tooltip?: string | (() => string);
toggle?: boolean | (() => boolean);
}
function Checkbox(props: CheckboxProps): HTMLElement;
// Colorpicker
interface ColorpickerProps extends BaseProps, EventProps {
value?: Signal<string> | string;
label?: string | (() => string);
}
function Colorpicker(props: ColorpickerProps): HTMLElement;
// Datepicker
interface DateRange {
start: string;
end: string | null;
startHour?: number;
endHour?: number;
}
interface DatepickerProps extends BaseProps, EventProps {
interface CalendarProps extends BaseProps {
value?: Signal<string | DateRange> | string | DateRange;
range?: boolean | (() => boolean);
label?: string | (() => string);
placeholder?: string | (() => string);
hour?: boolean;
onChange?: (value: string | DateRange | null) => void;
onAccept?: () => void;
onCancel?: () => void;
}
function Datepicker(props: DatepickerProps): HTMLElement;
function Calendar(props: CalendarProps): Node;
// Drawer
interface DrawerProps extends BaseProps, EventProps {
id?: string;
open?: Signal<boolean> | boolean;
side: ComponentFunction | ComponentChildren;
content: ComponentFunction | ComponentChildren;
}
function Drawer(props: DrawerProps, children?: ComponentChildren): HTMLElement;
interface CardProps extends BaseProps {}
function Card(props: CardProps, children?: ComponentChildren): Node;
// Dropdown
interface DropdownItem {
label: string | (() => string);
icon?: string | HTMLElement | (() => string | HTMLElement);
onclick?: (event: MouseEvent) => void;
class?: string;
}
interface DropdownProps extends BaseProps, EventProps {
interface CardTitleProps extends BaseProps {}
function CardTitle(props: CardTitleProps, children?: ComponentChildren): Node;
interface CardBodyProps extends BaseProps {}
function CardBody(props: CardBodyProps, children?: ComponentChildren): Node;
interface CardActionsProps extends BaseProps {}
function CardActions(props: CardActionsProps, children?: ComponentChildren): Node;
interface CarouselProps extends BaseProps {}
function Carousel(props: CarouselProps, children?: ComponentChildren): Node;
interface CarouselItemProps extends BaseProps {}
function CarouselItem(props: CarouselItemProps, children?: ComponentChildren): Node;
interface ChatProps extends BaseProps {}
function Chat(props: ChatProps, children?: ComponentChildren): Node;
interface ChatBubbleProps extends BaseProps {}
function ChatBubble(props: ChatBubbleProps, children?: ComponentChildren): Node;
interface ChatFooterProps extends BaseProps {}
function ChatFooter(props: ChatFooterProps, children?: ComponentChildren): Node;
interface ChatHeaderProps extends BaseProps {}
function ChatHeader(props: ChatHeaderProps, children?: ComponentChildren): Node;
interface ChatImageProps extends BaseProps {}
function ChatImage(props: ChatImageProps, children?: ComponentChildren): Node;
interface CheckboxProps extends BaseProps {}
function Checkbox(props: CheckboxProps): Node;
interface ColorpickerProps extends BaseProps {
value?: Signal<string> | string;
label?: string | (() => string);
icon?: string | HTMLElement | (() => string | HTMLElement);
items?: DropdownItem[] | (() => DropdownItem[]);
onchange?: (color: string) => void;
}
function Dropdown(props: DropdownProps): HTMLElement;
function Colorpicker(props: ColorpickerProps): Node;
// Fab
interface FabAction {
label?: string;
icon?: string | HTMLElement;
text?: string;
onclick?: (event: MouseEvent) => void;
class?: string;
interface ColorPaletteProps extends BaseProps {
value?: Signal<string> | string;
onchange?: (color: string) => void;
}
interface FabProps extends BaseProps, EventProps {
icon?: string | HTMLElement;
label?: string;
actions?: FabAction[] | (() => FabAction[]);
position?: string;
}
function Fab(props: FabProps): HTMLElement;
function ColorPalette(props: ColorPaletteProps): Node;
// Fieldset
interface FieldsetProps extends BaseProps, EventProps {
legend?: string | (() => string);
interface DatepickerProps extends BaseProps {
value?: Signal<string | DateRange> | string | DateRange;
range?: boolean | (() => boolean);
hour?: boolean;
placeholder?: string;
onChange?: (value: string | DateRange | null) => void;
onAccept?: () => void;
onCancel?: () => void;
}
function fieldset(props: FieldsetProps, children: ComponentChildren): HTMLElement;
function Datepicker(props: DatepickerProps): Node;
// Fileinput
interface FileinputProps extends BaseProps, EventProps {
tooltip?: string;
interface DividerProps extends BaseProps {}
function Divider(props: DividerProps): Node;
interface DrawerProps extends BaseProps {}
function Drawer(props: DrawerProps, children?: ComponentChildren): Node;
interface DrawerToggleProps extends BaseProps {
checked?: Signal<boolean> | boolean;
}
function DrawerToggle(props: DrawerToggleProps): Node;
interface DrawerContentProps extends BaseProps {}
function DrawerContent(props: DrawerContentProps, children?: ComponentChildren): Node;
interface DrawerSideProps extends BaseProps {}
function DrawerSide(props: DrawerSideProps, children?: ComponentChildren): Node;
interface DrawerOverlayProps extends BaseProps {
for?: string;
}
function DrawerOverlay(props: DrawerOverlayProps): Node;
interface DropdownProps extends BaseProps {
open?: Signal<boolean>;
}
function Dropdown(props: DropdownProps, children?: ComponentChildren): Node;
interface DropdownButtonProps extends BaseProps {}
function DropdownButton(props: DropdownButtonProps, children?: ComponentChildren): Node;
interface DropdownContentProps extends BaseProps {}
function DropdownContent(props: DropdownContentProps, children?: ComponentChildren): Node;
interface FabProps extends BaseProps {
icon?: string;
}
function Fab(props: FabProps, children?: ComponentChildren): Node;
interface FieldsetProps extends BaseProps {
label?: string | (() => string);
}
function Fieldset(props: FieldsetProps, children?: ComponentChildren): Node;
interface FileinputProps extends BaseProps {
max?: number;
accept?: string;
onselect?: (files: File[]) => void;
value?: Signal<File[]>;
}
function Fileinput(props: FileinputProps): HTMLElement;
function Fileinput(props: FileinputProps): Node;
// Indicator
interface IndicatorProps extends BaseProps, EventProps {
value?: number | string | (() => number | string);
interface IconProps {
class?: string;
}
function Indicator(props: IndicatorProps, children: ComponentChildren): HTMLElement;
function Icon(props: string | IconProps): Node;
// Input
interface InputProps extends BaseProps, EventProps {
interface IndicatorProps extends BaseProps {
value?: string | number | (() => string | number);
}
function Indicator(props: IndicatorProps, children?: ComponentChildren): Node;
interface InputProps extends BaseProps {
value?: Signal<string> | string;
type?: string;
icon?: string | HTMLElement | (() => string | HTMLElement);
placeholder?: string | (() => string);
disabled?: boolean | (() => boolean);
size?: string;
validate?: (value: string) => string | null | undefined;
placeholder?: string;
label?: string | (() => string);
float?: boolean;
left?: ComponentChild;
right?: ComponentChild;
rule?: string;
hint?: string | (() => string);
}
function input(props: InputProps): HTMLElement;
function Input(props: InputProps): Node;
// Label
interface LabelProps extends BaseProps, EventProps {
value?: string | (() => string);
floating?: boolean;
error?: string | (() => string);
required?: boolean;
interface KbdProps extends BaseProps {}
function Kbd(props: KbdProps, children?: ComponentChildren): Node;
interface ListProps extends BaseProps {}
function List(props: ListProps, children?: ComponentChildren): Node;
interface ListRowsProps extends BaseProps {
items?: any[] | (() => any[]);
render?: (item: any, index: number) => ComponentChild;
}
function label(props: LabelProps, children: ComponentChildren): HTMLElement;
function ListRows(props: ListRowsProps): Node;
// List
interface ListProps<T = any> extends BaseProps, EventProps {
items: T[] | (() => T[]);
header?: string | HTMLElement | (() => string | HTMLElement);
render: (item: T, index: number) => ComponentChild;
keyFn?: (item: T, index: number) => string | number;
}
function List<T>(props: ListProps<T>): HTMLElement;
interface LoadingProps extends BaseProps {}
function Loading(props: LoadingProps, children?: ComponentChildren): Node;
// Menu
interface MenuItem {
label: string | (() => string);
icon?: string | HTMLElement;
onclick?: (event: MouseEvent) => void;
active?: boolean | (() => boolean);
children?: MenuItem[];
label?: string | (() => string);
href?: string;
onclick?: (e: MouseEvent) => void;
children?: MenuItem[] | (() => MenuItem[]);
open?: boolean;
}
interface MenuProps extends BaseProps, EventProps {
items: MenuItem[] | (() => MenuItem[]);
interface MenuProps extends BaseProps {
items?: MenuItem[] | (() => MenuItem[]);
children?: ComponentChildren;
}
function Menu(props: MenuProps): HTMLElement;
function Menu(props: MenuProps): Node;
// Modal
interface ModalProps extends BaseProps, EventProps {
interface ModalProps extends BaseProps {
open?: Signal<boolean> | boolean;
title?: string | HTMLElement | (() => string | HTMLElement);
buttons?: ComponentFunction | ComponentFunction[];
title?: string | (() => string);
actions?: ComponentChild;
}
function Modal(props: ModalProps, children: ComponentChildren): HTMLElement;
function Modal(props: ModalProps, children?: ComponentChildren): Node;
// Navbar
interface NavbarProps extends BaseProps, EventProps {}
function Navbar(props: NavbarProps, children: ComponentChildren): HTMLElement;
interface NavbarProps extends BaseProps {}
function Navbar(props: NavbarProps, children?: ComponentChildren): Node;
// Radio
interface RadioProps extends BaseProps, EventProps {
value?: Signal<any> | any;
inputValue?: any;
interface ProgressProps extends BaseProps {
value?: number | (() => number);
max?: number;
}
function Progress(props: ProgressProps): Node;
interface RadialProps extends BaseProps {
value?: number;
}
function Radial(props: RadialProps, children?: ComponentChildren): Node;
interface RadioProps extends BaseProps {
name?: string;
label?: string | (() => string);
tooltip?: string | (() => string);
checked?: boolean | (() => boolean);
}
function Radio(props: RadioProps): HTMLElement;
function Radio(props: RadioProps): Node;
// Range
interface RangeProps extends BaseProps, EventProps {
interface RangeProps extends BaseProps {
value?: Signal<number> | number;
label?: string | (() => string);
tooltip?: string | (() => string);
min?: number;
max?: number;
step?: number;
disabled?: boolean | (() => boolean);
}
function Range(props: RangeProps): HTMLElement;
function Range(props: RangeProps): Node;
// Rating
interface RatingProps extends BaseProps, EventProps {
interface RatingProps extends BaseProps {}
function Rating(props: RatingProps, children?: ComponentChildren): Node;
interface RatingItemsProps extends BaseProps {
count: number;
name?: string;
value?: Signal<number> | number;
count?: number | (() => number);
mask?: string;
readonly?: boolean | (() => boolean);
onchange?: (value: number) => void;
}
function Rating(props: RatingProps): HTMLElement;
function RatingItems(props: RatingItemsProps): Node;
// Select
interface SelectOption {
label: string;
value: string | number;
label?: string;
value?: string;
disabled?: boolean;
}
interface SelectProps extends BaseProps, EventProps {
label?: string | (() => string);
interface SelectProps extends BaseProps {
items?: SelectOption[] | (() => SelectOption[]);
value?: Signal<string | number> | string | number;
}
function select(props: SelectProps): HTMLElement;
// Stack
interface StackProps extends BaseProps, EventProps {}
function Stack(props: StackProps, children: ComponentChildren): HTMLElement;
// Stat
interface StatProps extends BaseProps, EventProps {
icon?: string | HTMLElement;
value?: Signal<string> | string;
placeholder?: string;
placeholderDisabled?: boolean;
label?: string | (() => string);
float?: boolean;
left?: ComponentChild;
right?: ComponentChild;
hint?: string | (() => string);
onchange?: (e: Event) => void;
}
function Select(props: SelectProps, children?: ComponentChildren): Node;
interface SkeletonProps extends BaseProps {}
function Skeleton(props: SkeletonProps): Node;
interface SkeletonTextProps extends BaseProps {}
function SkeletonText(props: SkeletonTextProps): Node;
interface StackProps extends BaseProps {}
function Stack(props: StackProps, children?: ComponentChildren): Node;
interface StatProps extends BaseProps {
title?: string | (() => string);
value?: string | number | (() => string | number);
desc?: string | (() => string);
}
function Stat(props: StatProps): HTMLElement;
function Stat(props: StatProps): Node;
// Swap
interface SwapProps extends BaseProps, EventProps {
value?: Signal<boolean> | boolean;
on: ComponentChildren;
off: ComponentChildren;
interface StatsProps extends BaseProps {}
function Stats(props: StatsProps, children?: ComponentChildren): Node;
interface StepsProps extends BaseProps {}
function Steps(props: StepsProps, children?: ComponentChildren): Node;
interface StepProps extends BaseProps {
dataContent?: string;
}
function Swap(props: SwapProps): HTMLElement;
function Step(props: StepProps, children?: ComponentChildren): Node;
// Table
interface TableColumn<T = any> {
label: string | (() => string);
key?: keyof T;
render?: (item: T, index: number) => ComponentChild;
interface SwapProps extends BaseProps {}
function Swap(props: SwapProps, children?: ComponentChildren): Node;
interface SwapToggleProps extends BaseProps {
value?: Signal<boolean> | boolean;
}
function SwapToggle(props: SwapToggleProps): Node;
interface SwapOnProps extends BaseProps {}
function SwapOn(props: SwapOnProps, children?: ComponentChildren): Node;
interface SwapOffProps extends BaseProps {}
function SwapOff(props: SwapOffProps, children?: ComponentChildren): Node;
interface TableProps extends BaseProps {}
function Table(props: TableProps, children?: ComponentChildren): Node;
interface TableColumn {
label?: string;
key?: string;
render?: (item: any, index: number) => ComponentChild;
class?: string;
}
interface TableProps<T = any> extends BaseProps, EventProps {
items: T[] | (() => T[]);
columns: TableColumn<T>[];
keyFn?: (item: T, index: number) => string | number;
zebra?: boolean | (() => boolean);
pinRows?: boolean | (() => boolean);
empty?: string | HTMLElement | (() => string | HTMLElement);
interface TableItemsProps extends BaseProps {
items?: any[] | (() => any[]);
columns?: TableColumn[];
header?: boolean;
}
function Table<T>(props: TableProps<T>): HTMLElement;
function TableItems(props: TableItemsProps): Node;
// Tabs
interface TabItem {
label: string | HTMLElement | (() => string | HTMLElement);
content: ComponentFunction | ComponentChildren;
active?: boolean | (() => boolean);
disabled?: boolean | (() => boolean);
onclick?: () => void;
label?: string | (() => string);
content?: ComponentChild | (() => ComponentChild);
class?: string;
closable?: boolean;
onclick?: (e: MouseEvent) => void;
}
interface TabsProps extends BaseProps, EventProps {
items: TabItem[] | (() => TabItem[]);
interface TabsProps extends BaseProps {
items?: TabItem[] | (() => TabItem[]);
activeIndex?: Signal<number>;
onClose?: (index: number, item: TabItem) => void;
children?: ComponentChildren;
}
function Tabs(props: TabsProps): HTMLElement;
function Tabs(props: TabsProps): Node;
// Timeline
interface TimelineItem {
title: string | HTMLElement | (() => string | HTMLElement);
detail: string | HTMLElement | (() => string | HTMLElement);
type?: 'info' | 'success' | 'warning' | 'error';
icon?: string | HTMLElement;
completed?: boolean | (() => boolean);
interface TextareaProps extends BaseProps {
value?: Signal<string> | string;
placeholder?: string;
}
interface TimelineProps extends BaseProps, EventProps {
items: TimelineItem[] | (() => TimelineItem[]);
vertical?: boolean | (() => boolean);
compact?: boolean | (() => boolean);
}
function Timeline(props: TimelineProps): HTMLElement;
function Textarea(props: TextareaProps): Node;
interface TextrotateProps extends BaseProps {}
function Textrotate(props: TextrotateProps, children?: ComponentChildren): Node;
interface TimelineProps extends BaseProps {}
function Timeline(props: TimelineProps, children?: ComponentChildren): Node;
// Toast
type ToastType = 'alert-info' | 'alert-success' | 'alert-warning' | 'alert-error';
function Toast(
message: string | (() => string),
type?: ToastType,
duration?: number
): () => void;
function Toast(message: string | (() => string), type?: ToastType, duration?: number): () => void;
// Tooltip
interface TooltipProps extends BaseProps, EventProps {
tip: string | (() => string);
ui?: string;
interface ToggleProps extends BaseProps {
checked?: Signal<boolean> | boolean;
}
function Tooltip(props: TooltipProps, children: ComponentChildren): HTMLElement;
function Toggle(props: ToggleProps): Node;
// Objeto principal
const SigProUI: {
interface TooltipProps extends BaseProps {
tip: string | (() => string);
}
function Tooltip(props: TooltipProps, children?: ComponentChildren): Node;
const Components: {
Accordion: typeof Accordion;
Alert: typeof Alert;
Autocomplete: typeof Autocomplete;
Badge: typeof Badge;
Button: typeof Button;
Calendar: typeof Calendar;
Card: typeof Card;
CardTitle: typeof CardTitle;
CardBody: typeof CardBody;
CardActions: typeof CardActions;
Carousel: typeof Carousel;
CarouselItem: typeof CarouselItem;
Chat: typeof Chat;
ChatBubble: typeof ChatBubble;
ChatFooter: typeof ChatFooter;
ChatHeader: typeof ChatHeader;
ChatImage: typeof ChatImage;
Checkbox: typeof Checkbox;
Colorpicker: typeof Colorpicker;
ColorPalette: typeof ColorPalette;
Datepicker: typeof Datepicker;
Divider: typeof Divider;
Drawer: typeof Drawer;
DrawerToggle: typeof DrawerToggle;
DrawerContent: typeof DrawerContent;
DrawerSide: typeof DrawerSide;
DrawerOverlay: typeof DrawerOverlay;
Dropdown: typeof Dropdown;
DropdownButton: typeof DropdownButton;
DropdownContent: typeof DropdownContent;
Fab: typeof Fab;
Fieldset: typeof Fieldset;
Fileinput: typeof Fileinput;
Icon: typeof Icon;
Indicator: typeof Indicator;
Input: typeof Input;
Label: typeof Label;
Kbd: typeof Kbd;
List: typeof List;
ListRows: typeof ListRows;
Loading: typeof Loading;
Menu: typeof Menu;
Modal: typeof Modal;
Navbar: typeof Navbar;
Progress: typeof Progress;
Radial: typeof Radial;
Radio: typeof Radio;
Range: typeof Range;
Rating: typeof Rating;
RatingItems: typeof RatingItems;
Select: typeof Select;
Skeleton: typeof Skeleton;
SkeletonText: typeof SkeletonText;
Stack: typeof Stack;
Stat: typeof Stat;
Stats: typeof Stats;
Steps: typeof Steps;
Step: typeof Step;
Swap: typeof Swap;
SwapToggle: typeof SwapToggle;
SwapOn: typeof SwapOn;
SwapOff: typeof SwapOff;
Table: typeof Table;
TableItems: typeof TableItems;
Tabs: typeof Tabs;
Textarea: typeof Textarea;
Textrotate: typeof Textrotate;
Timeline: typeof Timeline;
Toast: typeof Toast;
Toggle: typeof Toggle;
Tooltip: typeof Tooltip;
Utils: {
val: typeof val;
ui: typeof ui;
getIcon: typeof getIcon;
};
tt: typeof tt;
install: (target?: Window) => void;
};
export default SigProUI;
export {
Accordion, Alert, Autocomplete, Badge, Button, Checkbox, Colorpicker,
Datepicker, Drawer, Dropdown, Fab, Fieldset, Fileinput, Indicator,
Input, Label, List, Menu, Modal, Navbar, Radio, Range, Rating,
Select, Stack, Stat, Swap, Table, Tabs, Timeline, Toast, Tooltip,
val, ui, getIcon, tt,
// Tipos
AccordionProps, AlertProps, AutocompleteProps, BadgeProps, ButtonProps,
CheckboxProps, ColorpickerProps, DatepickerProps, DrawerProps, DropdownProps,
FabProps, FieldsetProps, FileinputProps, IndicatorProps, InputProps,
LabelProps, ListProps, MenuProps, ModalProps, NavbarProps, RadioProps,
RangeProps, RatingProps, SelectProps, StackProps, StatProps, SwapProps,
TableProps, TabsProps, TimelineProps, TooltipProps,
DateRange, AutocompleteOption, DropdownItem, FabAction, MenuItem,
SelectOption, TabItem, TableColumn, TimelineItem, ToastType, AlertType
};
export { Components };
export default Components;
}
// Declaraciones globales
declare global {
const Accordion: typeof import('sigpro-ui').Accordion;
const Alert: typeof import('sigpro-ui').Alert;
const Autocomplete: typeof import('sigpro-ui').Autocomplete;
const Badge: typeof import('sigpro-ui').Badge;
const Button: typeof import('sigpro-ui').Button;
const Calendar: typeof import('sigpro-ui').Calendar;
const Card: typeof import('sigpro-ui').Card;
const CardTitle: typeof import('sigpro-ui').CardTitle;
const CardBody: typeof import('sigpro-ui').CardBody;
const CardActions: typeof import('sigpro-ui').CardActions;
const Carousel: typeof import('sigpro-ui').Carousel;
const CarouselItem: typeof import('sigpro-ui').CarouselItem;
const Chat: typeof import('sigpro-ui').Chat;
const ChatBubble: typeof import('sigpro-ui').ChatBubble;
const ChatFooter: typeof import('sigpro-ui').ChatFooter;
const ChatHeader: typeof import('sigpro-ui').ChatHeader;
const ChatImage: typeof import('sigpro-ui').ChatImage;
const Checkbox: typeof import('sigpro-ui').Checkbox;
const Colorpicker: typeof import('sigpro-ui').Colorpicker;
const ColorPalette: typeof import('sigpro-ui').ColorPalette;
const Datepicker: typeof import('sigpro-ui').Datepicker;
const Divider: typeof import('sigpro-ui').Divider;
const Drawer: typeof import('sigpro-ui').Drawer;
const DrawerToggle: typeof import('sigpro-ui').DrawerToggle;
const DrawerContent: typeof import('sigpro-ui').DrawerContent;
const DrawerSide: typeof import('sigpro-ui').DrawerSide;
const DrawerOverlay: typeof import('sigpro-ui').DrawerOverlay;
const Dropdown: typeof import('sigpro-ui').Dropdown;
const DropdownButton: typeof import('sigpro-ui').DropdownButton;
const DropdownContent: typeof import('sigpro-ui').DropdownContent;
const Fab: typeof import('sigpro-ui').Fab;
const Fieldset: typeof import('sigpro-ui').Fieldset;
const Fileinput: typeof import('sigpro-ui').Fileinput;
const Icon: typeof import('sigpro-ui').Icon;
const Indicator: typeof import('sigpro-ui').Indicator;
const Input: typeof import('sigpro-ui').Input;
const Label: typeof import('sigpro-ui').Label;
const Kbd: typeof import('sigpro-ui').Kbd;
const List: typeof import('sigpro-ui').List;
const ListRows: typeof import('sigpro-ui').ListRows;
const Loading: typeof import('sigpro-ui').Loading;
const Menu: typeof import('sigpro-ui').Menu;
const Modal: typeof import('sigpro-ui').Modal;
const Navbar: typeof import('sigpro-ui').Navbar;
const Progress: typeof import('sigpro-ui').Progress;
const Radial: typeof import('sigpro-ui').Radial;
const Radio: typeof import('sigpro-ui').Radio;
const Range: typeof import('sigpro-ui').Range;
const Rating: typeof import('sigpro-ui').Rating;
const RatingItems: typeof import('sigpro-ui').RatingItems;
const Select: typeof import('sigpro-ui').Select;
const Skeleton: typeof import('sigpro-ui').Skeleton;
const SkeletonText: typeof import('sigpro-ui').SkeletonText;
const Stack: typeof import('sigpro-ui').Stack;
const Stat: typeof import('sigpro-ui').Stat;
const Stats: typeof import('sigpro-ui').Stats;
const Steps: typeof import('sigpro-ui').Steps;
const Step: typeof import('sigpro-ui').Step;
const Swap: typeof import('sigpro-ui').Swap;
const SwapToggle: typeof import('sigpro-ui').SwapToggle;
const SwapOn: typeof import('sigpro-ui').SwapOn;
const SwapOff: typeof import('sigpro-ui').SwapOff;
const Table: typeof import('sigpro-ui').Table;
const TableItems: typeof import('sigpro-ui').TableItems;
const Tabs: typeof import('sigpro-ui').Tabs;
const Textarea: typeof import('sigpro-ui').Textarea;
const Textrotate: typeof import('sigpro-ui').Textrotate;
const Timeline: typeof import('sigpro-ui').Timeline;
const Toast: typeof import('sigpro-ui').Toast;
const Toggle: typeof import('sigpro-ui').Toggle;
const Tooltip: typeof import('sigpro-ui').Tooltip;
const Utils: typeof import('sigpro-ui').Utils;
const tt: typeof import('sigpro-ui').tt;
interface Window {
Accordion: typeof Accordion;
Alert: typeof Alert;
Autocomplete: typeof Autocomplete;
Badge: typeof Badge;
Button: typeof Button;
Checkbox: typeof Checkbox;
Colorpicker: typeof Colorpicker;
Datepicker: typeof Datepicker;
Drawer: typeof Drawer;
Dropdown: typeof Dropdown;
Fab: typeof Fab;
Fieldset: typeof Fieldset;
Fileinput: typeof Fileinput;
Indicator: typeof Indicator;
Input: typeof Input;
Label: typeof Label;
List: typeof List;
Menu: typeof Menu;
Modal: typeof Modal;
Navbar: typeof Navbar;
Radio: typeof Radio;
Range: typeof Range;
Rating: typeof Rating;
Select: typeof Select;
Stack: typeof Stack;
Stat: typeof Stat;
Swap: typeof Swap;
Table: typeof Table;
Tabs: typeof Tabs;
Timeline: typeof Timeline;
Toast: typeof Toast;
Tooltip: typeof Tooltip;
Utils: typeof Utils;
tt: typeof tt;
SigProUI: typeof import('sigpro-ui').default;
}
const Components: typeof import('sigpro-ui').Components;
}