idea-react 3.0.0-beta.5 → 3.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +5 -3
- package/ReadMe.md +71 -65
- package/dist/index.d.mts +894 -929
- package/dist/index.d.ts +894 -929
- package/dist/index.js +16 -16
- package/dist/index.mjs +15 -15
- package/dist/style.css +2 -2
- package/package.json +3 -7
- package/source/{Accordion.tsx → Base/Accordion.tsx} +2 -2
- package/source/{Alert.tsx → Base/Alert.tsx} +1 -1
- package/source/{Avatar.tsx → Base/Avatar.tsx} +1 -1
- package/source/{Badge.tsx → Base/Badge.tsx} +1 -1
- package/source/{Breadcrumb.tsx → Base/Breadcrumb.tsx} +1 -1
- package/source/{Button.tsx → Base/Button.tsx} +1 -1
- package/source/{ButtonGroup.tsx → Base/ButtonGroup.tsx} +1 -1
- package/source/{Card.tsx → Base/Card.tsx} +1 -1
- package/source/{Carousel → Base/Carousel}/index.tsx +2 -2
- package/source/{CloseButton.tsx → Base/CloseButton.tsx} +1 -1
- package/source/{Collapse.tsx → Base/Collapse.tsx} +1 -1
- package/source/{Drawer.tsx → Base/Drawer.tsx} +2 -2
- package/source/{ListGroup.tsx → Base/ListGroup.tsx} +2 -2
- package/source/{Menu.tsx → Base/Menu.tsx} +4 -4
- package/source/{NativeDialog → Base/NativeDialog}/index.tsx +2 -2
- package/source/{Nav.tsx → Base/Nav.tsx} +2 -1
- package/source/{NavOverflow → Base/NavOverflow}/index.tsx +2 -2
- package/source/{Navbar.tsx → Base/Navbar.tsx} +1 -1
- package/source/{Pagination.tsx → Base/Pagination.tsx} +1 -1
- package/source/{Placeholder.tsx → Base/Placeholder.tsx} +1 -1
- package/source/{Popover.tsx → Base/Popover.tsx} +6 -2
- package/source/{Progress → Base/Progress}/index.tsx +1 -1
- package/source/{ScrollSpy → Base/ScrollSpy}/index.tsx +1 -1
- package/source/{Spinner.tsx → Base/Spinner.tsx} +2 -2
- package/source/{Stack.tsx → Base/Stack.tsx} +1 -1
- package/source/{Stepper.tsx → Base/Stepper.tsx} +2 -2
- package/source/{Tab.tsx → Base/Tab.tsx} +60 -47
- package/source/{Toast.tsx → Base/Toast.tsx} +1 -1
- package/source/{ToggleButton.tsx → Base/ToggleButton.tsx} +2 -2
- package/source/{Toggler.tsx → Base/Toggler.tsx} +1 -1
- package/source/{Tooltip.tsx → Base/Tooltip.tsx} +6 -2
- package/source/Base/index.ts +31 -0
- package/source/Content/Images.tsx +29 -0
- package/source/{Table.tsx → Content/Tables.tsx} +2 -2
- package/source/Content/index.ts +2 -0
- package/source/Extension/ClickBoundary.tsx +1 -1
- package/source/Extension/CodeBlock.tsx +1 -1
- package/source/Extension/Countdown.tsx +1 -1
- package/source/Extension/HorizontalMarquee/index.tsx +1 -1
- package/source/Extension/Icon.tsx +1 -1
- package/source/Extension/Loading.tsx +2 -2
- package/source/Extension/MarkdownView.tsx +23 -0
- package/source/Extension/MonthCalendar.tsx +4 -4
- package/source/Extension/Nameplate.tsx +1 -1
- package/source/Extension/OverlayBox.tsx +9 -4
- package/source/Extension/PageNav.tsx +2 -2
- package/source/Extension/ScrollNav/Scroller.tsx +1 -1
- package/source/Extension/ScrollNav/index.tsx +2 -2
- package/source/Extension/ShareBox.tsx +1 -1
- package/source/Extension/SpinnerButton.tsx +3 -3
- package/source/Extension/TableSpinner.tsx +2 -2
- package/source/Extension/TextTruncate/index.tsx +1 -1
- package/source/Extension/Time.tsx +1 -1
- package/source/Extension/TimeDistance.tsx +1 -1
- package/source/Extension/Timeline/index.tsx +2 -2
- package/source/Extension/TypeEcho/Content.tsx +1 -1
- package/source/Extension/TypeEcho/index.tsx +1 -1
- package/source/Extension/UserRank/Address.tsx +1 -1
- package/source/Extension/UserRank/index.tsx +5 -5
- package/source/Extension/VerticalMarquee/index.tsx +1 -1
- package/source/Extension/ZodiacBar.tsx +1 -1
- package/source/Extension/index.ts +1 -3
- package/source/Form/Adorn.tsx +1 -1
- package/source/Form/Checkbox.tsx +2 -2
- package/source/Form/{Chips.tsx → Chip.tsx} +4 -11
- package/source/Form/ChipInput.tsx +2 -2
- package/source/Form/Combobox.tsx +2 -2
- package/source/Form/Control.tsx +1 -1
- package/source/Form/DatePicker.tsx +2 -2
- package/source/Form/Feedback.tsx +1 -1
- package/source/Form/FloatingLabel.tsx +1 -1
- package/source/Form/InputGroup.tsx +3 -3
- package/source/Form/OTP.tsx +1 -1
- package/source/Form/Primitives.tsx +8 -1
- package/source/Form/Radio.tsx +2 -2
- package/source/Form/Range.tsx +2 -2
- package/source/Form/Switch.tsx +2 -2
- package/source/Form/index.ts +1 -1
- package/source/{Overlay.ts → Helper/Overlay.ts} +1 -1
- package/source/{color.ts → Helper/color.ts} +1 -1
- package/source/Helper/index.ts +4 -0
- package/source/{Grid.tsx → Layout/Grid.tsx} +1 -1
- package/source/Layout/index.ts +1 -0
- package/source/index.ts +4 -38
- package/source/Extension/Editor.tsx +0 -78
- package/source/Extension/EditorHTML.tsx +0 -20
- package/source/Extension/Select.tsx +0 -128
- package/source/Image.tsx +0 -19
- /package/source/{Carousel → Base/Carousel}/model.ts +0 -0
- /package/source/{Carousel → Base/Carousel}/scroll.ts +0 -0
- /package/source/{Carousel → Base/Carousel}/style.module.css +0 -0
- /package/source/{NativeDialog → Base/NativeDialog}/style.module.css +0 -0
- /package/source/{NavOverflow → Base/NavOverflow}/model.ts +0 -0
- /package/source/{ScrollSpy → Base/ScrollSpy}/model.ts +0 -0
- /package/source/{Polymorphic.ts → Helper/Polymorphic.ts} +0 -0
- /package/source/{animate.ts → Helper/animate.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, CSSProperties, Component, ComponentPropsWithRef, ComponentPropsWithoutRef, DetailedHTMLProps, DialogHTMLAttributes, ElementType, FC, FocusEvent, HTMLAttributes, KeyboardEvent, KeyboardEventHandler, MouseEvent as MouseEvent$1, PropsWithChildren, PropsWithoutRef, PureComponent, ReactElement, ReactNode, Ref, RefCallback, SyntheticEvent, TimeHTMLAttributes, TransitionEvent } from "react";
|
|
2
|
-
import { ObservedComponent } from "mobx-react-helper";
|
|
3
2
|
import { TimeData, Timestamp } from "web-utility";
|
|
3
|
+
import { ObservedComponent } from "mobx-react-helper";
|
|
4
4
|
import { Defer } from "iterable-observer";
|
|
5
|
-
import { EditorCore, WrapperProps } from "@react-editor-js/core";
|
|
6
|
-
import { OutputData } from "@editorjs/editorjs";
|
|
7
5
|
import { LiveProvider } from "react-live";
|
|
8
6
|
import { DatepickerConfig } from "bootstrap/js/src/datepicker.js";
|
|
9
7
|
export interface AsProps<T extends ElementType = ElementType> {
|
|
@@ -109,7 +107,6 @@ export declare class Alert<T extends ElementType | undefined = 'div'> extends Co
|
|
|
109
107
|
}
|
|
110
108
|
export declare const AlertLink: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>>;
|
|
111
109
|
export declare const AlertHeading: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>>;
|
|
112
|
-
export declare function animate(name: string): RefCallback<Element>;
|
|
113
110
|
export type AvatarSize = 'xs' | 'sm' | 'lg' | 'xl';
|
|
114
111
|
export type AvatarStatus = 'online' | 'offline' | 'busy' | 'away';
|
|
115
112
|
export interface AvatarProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -320,9 +317,6 @@ export declare class CollapseToggle<T extends ElementType | undefined = 'button'
|
|
|
320
317
|
handleClick: (event: MouseEvent$1<HTMLElement>) => void;
|
|
321
318
|
render(): import("react").JSX.Element;
|
|
322
319
|
}
|
|
323
|
-
export type VariantColor = ComponentTheme;
|
|
324
|
-
export declare const VariantColors: VariantColor[];
|
|
325
|
-
export declare function text2color(raw: string, excludeColors?: VariantColor[]): ComponentTheme;
|
|
326
320
|
export type Breakpoint = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
327
321
|
export type ColSize = number | 'auto';
|
|
328
322
|
export type BreakpointColSize = ColSize | true;
|
|
@@ -424,138 +418,44 @@ export declare class Drawer<T extends ElementType | undefined = 'dialog'> extend
|
|
|
424
418
|
handleClose: () => void;
|
|
425
419
|
render(): import("react").JSX.Element;
|
|
426
420
|
}
|
|
427
|
-
export type
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
readonly props: PolymorphicClassProps<T, ClickBoundaryProps>;
|
|
433
|
-
protected get componentProps(): Readonly<ClickBoundaryProps & AsProps>;
|
|
434
|
-
root: import("react").RefObject<HTMLDivElement | null>;
|
|
435
|
-
switchClick: (event: MouseEvent) => void;
|
|
436
|
-
componentDidMount(): void;
|
|
437
|
-
componentWillUnmount(): void;
|
|
438
|
-
render(): import("react").JSX.Element;
|
|
439
|
-
}
|
|
440
|
-
export interface CodeBlockProps extends HTMLAttributes<HTMLPreElement> {
|
|
441
|
-
language: string;
|
|
442
|
-
header?: ReactNode;
|
|
443
|
-
}
|
|
444
|
-
export declare const CodeBlock: PolymorphicComponent<CodeBlockProps>;
|
|
445
|
-
export interface TimeUnit {
|
|
446
|
-
scale: number;
|
|
447
|
-
label: string;
|
|
448
|
-
}
|
|
449
|
-
interface TimeSection {
|
|
450
|
-
value: number;
|
|
451
|
-
label: string;
|
|
452
|
-
}
|
|
453
|
-
export interface CountdownProps extends HTMLAttributes<HTMLOListElement> {
|
|
454
|
-
units: TimeUnit[];
|
|
455
|
-
endTime: TimeData;
|
|
456
|
-
itemClassName?: string;
|
|
457
|
-
onEnd?: (endTime: TimeData) => unknown;
|
|
458
|
-
}
|
|
459
|
-
/**
|
|
460
|
-
* Migrate from https://bootstrap.web-cell.dev/#Calendar/CountDown
|
|
461
|
-
*/
|
|
462
|
-
export declare class Countdown<T extends ElementType | undefined = 'ol'> extends ObservedComponent<PolymorphicClassProps<T, CountdownProps>> {
|
|
463
|
-
readonly props: PolymorphicClassProps<T, CountdownProps>;
|
|
464
|
-
protected get componentProps(): CountdownProps & AsProps;
|
|
465
|
-
static displayName: string;
|
|
466
|
-
accessor rest: number;
|
|
467
|
-
private timer;
|
|
468
|
-
get endTimestamp(): number;
|
|
469
|
-
get timeSections(): TimeSection[];
|
|
470
|
-
tick: () => void;
|
|
471
|
-
stop(): void;
|
|
472
|
-
componentDidMount(): void;
|
|
473
|
-
initTimer(): void;
|
|
474
|
-
componentWillUnmount(): void;
|
|
475
|
-
render(): import("react").JSX.Element;
|
|
476
|
-
}
|
|
477
|
-
export declare class DialogClose extends Error {
|
|
478
|
-
constructor(message?: string);
|
|
479
|
-
}
|
|
480
|
-
export interface DialogProps<T = unknown> {
|
|
481
|
-
defer?: Defer<T>;
|
|
482
|
-
}
|
|
483
|
-
export declare class Dialog<I extends object = {}, O = unknown> {
|
|
484
|
-
accessor input: I;
|
|
485
|
-
accessor defer: Defer<O> | undefined;
|
|
486
|
-
Component: FC<I>;
|
|
487
|
-
constructor(Factory: FC<I & DialogProps<O>>);
|
|
488
|
-
open(input?: I): Promise<O>;
|
|
421
|
+
export type ListGroupHorizontal = boolean | Breakpoint;
|
|
422
|
+
interface ListGroupStyleProps {
|
|
423
|
+
flush?: boolean;
|
|
424
|
+
numbered?: boolean;
|
|
425
|
+
horizontal?: ListGroupHorizontal;
|
|
489
426
|
}
|
|
490
|
-
export type
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
427
|
+
export type ListGroupProps = ListGroupStyleProps & ((ComponentPropsWithRef<'ul'> & {
|
|
428
|
+
as?: 'ul';
|
|
429
|
+
}) | (ComponentPropsWithRef<'ol'> & {
|
|
430
|
+
as: 'ol';
|
|
431
|
+
}) | (ComponentPropsWithRef<'div'> & {
|
|
432
|
+
as: 'div';
|
|
433
|
+
}));
|
|
434
|
+
export declare const ListGroup: PolymorphicComponent<ListGroupStyleProps & import("react").ClassAttributes<HTMLUListElement> & import("react").HTMLAttributes<HTMLUListElement>>;
|
|
435
|
+
interface ListGroupItemStyleProps {
|
|
436
|
+
theme?: ComponentTheme;
|
|
437
|
+
action?: boolean;
|
|
438
|
+
active?: boolean;
|
|
439
|
+
disabled?: boolean;
|
|
501
440
|
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
parseBlock: (block: import("@editorjs/editorjs").OutputBlockData) => {} | undefined;
|
|
441
|
+
type ListGroupItemLinkAttributes = ComponentPropsWithRef<'a'> & {
|
|
442
|
+
href: string;
|
|
505
443
|
};
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
444
|
+
type ListGroupItemButtonAttributes = ComponentPropsWithRef<'button'> & {
|
|
445
|
+
href?: never;
|
|
446
|
+
};
|
|
447
|
+
type ListGroupItemAttributes = ComponentPropsWithRef<'li'> & {
|
|
448
|
+
href?: never;
|
|
449
|
+
type?: never;
|
|
450
|
+
};
|
|
451
|
+
type ListGroupItemElementAttributes = ListGroupItemLinkAttributes | ListGroupItemButtonAttributes | ListGroupItemAttributes;
|
|
452
|
+
export type ListGroupItemProps = ListGroupItemStyleProps & ListGroupItemElementAttributes;
|
|
453
|
+
export declare const ListGroupItem: PolymorphicComponent<ListGroupItemProps>;
|
|
513
454
|
export type IconProps = ComponentPropsWithRef<'span'> & {
|
|
514
455
|
name: string;
|
|
515
456
|
size?: number;
|
|
516
457
|
};
|
|
517
458
|
export declare const Icon: PolymorphicComponent<IconProps>;
|
|
518
|
-
export type LiveTSXProps = Pick<Parameters<typeof LiveProvider>[0], 'scope' | 'children'>;
|
|
519
|
-
export declare const LiveTSX: FC<LiveTSXProps>;
|
|
520
|
-
export interface LoadingProps extends HTMLAttributes<HTMLDivElement> {
|
|
521
|
-
opacity?: number;
|
|
522
|
-
}
|
|
523
|
-
export declare const Loading: PolymorphicComponent<LoadingProps>;
|
|
524
|
-
export interface DateData {
|
|
525
|
-
date: TimeData;
|
|
526
|
-
content: ReactNode;
|
|
527
|
-
link?: string;
|
|
528
|
-
}
|
|
529
|
-
export interface MonthCalendarProps extends Omit<HTMLAttributes<HTMLTableElement>, 'onChange' | 'onSelect'> {
|
|
530
|
-
locale?: Navigator['language'];
|
|
531
|
-
theme?: ComponentTheme;
|
|
532
|
-
value?: DateData[];
|
|
533
|
-
onSelect?: (value: DateData) => unknown;
|
|
534
|
-
onChange?: (date: Date) => void;
|
|
535
|
-
}
|
|
536
|
-
/**
|
|
537
|
-
* Re-implement from https://github.com/EasyWebApp/BootCell/blob/3d30027a97fe0a8c4ab8fabc8dfef22aede04de7/source/Calendar/MonthCalendar.tsx
|
|
538
|
-
*/
|
|
539
|
-
export declare class MonthCalendar<T extends ElementType | undefined = 'table'> extends ObservedComponent<PolymorphicClassProps<T, MonthCalendarProps>> {
|
|
540
|
-
readonly props: PolymorphicClassProps<T, MonthCalendarProps>;
|
|
541
|
-
protected get componentProps(): Readonly<MonthCalendarProps & AsProps>;
|
|
542
|
-
protected get observedComponentProps(): MonthCalendarProps & AsProps;
|
|
543
|
-
static displayName: string;
|
|
544
|
-
get weekFormatter(): Intl.DateTimeFormat;
|
|
545
|
-
accessor currentDate: Date;
|
|
546
|
-
get dateGrid(): Date[][];
|
|
547
|
-
changeMonth(delta: number): void;
|
|
548
|
-
changePreviousMonth: () => void;
|
|
549
|
-
changeNextMonth: () => void;
|
|
550
|
-
handleCellClick: ({ target, currentTarget }: MouseEvent$1<HTMLTableCellElement>) => void;
|
|
551
|
-
renderDate: (date: Date) => import("react").JSX.Element;
|
|
552
|
-
render(): import("react").JSX.Element;
|
|
553
|
-
}
|
|
554
|
-
export type NameplateProps = PropsWithoutRef<{
|
|
555
|
-
avatar: string;
|
|
556
|
-
name: string;
|
|
557
|
-
}>;
|
|
558
|
-
export declare const Nameplate: FC<NameplateProps>;
|
|
559
459
|
export type OverlayPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
560
460
|
export type FloatingPlacement = OverlayPlacement | `${OverlayPlacement}-${'start' | 'end'}`;
|
|
561
461
|
export type OverlayOffset = number | readonly [number, number];
|
|
@@ -587,53 +487,95 @@ export interface OverlayTriggerProps extends ComponentPropsWithRef<'div'> {
|
|
|
587
487
|
}
|
|
588
488
|
export declare const OVERLAY_DIRECTIONS: Record<OverlayPlacement, string>;
|
|
589
489
|
export declare const OVERLAY_ARROW_POSITIONS: Record<OverlayPlacement, string>;
|
|
590
|
-
export type
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
490
|
+
export type MenuItemProps = ButtonProps & {
|
|
491
|
+
active?: boolean;
|
|
492
|
+
selected?: boolean;
|
|
493
|
+
};
|
|
494
|
+
export declare const MenuItem: PolymorphicComponent<MenuItemProps>;
|
|
495
|
+
export interface MenuPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
496
|
+
theme?: 'light' | 'dark';
|
|
497
|
+
translucent?: boolean;
|
|
498
|
+
scrollable?: boolean;
|
|
499
|
+
show?: boolean;
|
|
500
|
+
}
|
|
501
|
+
export declare const MenuPanel: PolymorphicComponent<MenuPanelProps>;
|
|
502
|
+
export declare const MenuItemIcon: PolymorphicComponent<IconProps>;
|
|
503
|
+
export declare const MenuItemCheck: PolymorphicComponent<Omit<IconProps, "name">>;
|
|
504
|
+
export declare const MenuText: PolymorphicComponent<HTMLAttributes<HTMLSpanElement>>;
|
|
505
|
+
export declare const MenuHeader: PolymorphicComponent<HTMLAttributes<HTMLHeadingElement>>;
|
|
506
|
+
export declare const MenuDivider: PolymorphicComponent<HTMLAttributes<HTMLHRElement>>;
|
|
507
|
+
export declare const MenuItemContent: PolymorphicComponent<HTMLAttributes<HTMLSpanElement>>;
|
|
508
|
+
export declare const MenuItemDescription: PolymorphicComponent<HTMLAttributes<HTMLElement>>;
|
|
509
|
+
export interface MenuSubmenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
510
|
+
label: ReactNode;
|
|
511
|
+
className?: string;
|
|
512
|
+
}
|
|
513
|
+
export declare class MenuSubmenu<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, MenuSubmenuProps>> {
|
|
514
|
+
static displayName: string;
|
|
515
|
+
readonly props: PolymorphicClassProps<T, MenuSubmenuProps>;
|
|
516
|
+
protected get componentProps(): Readonly<MenuSubmenuProps & AsProps>;
|
|
517
|
+
accessor open: boolean;
|
|
518
|
+
panel: import("react").RefObject<HTMLDivElement | null>;
|
|
519
|
+
trigger: import("react").RefObject<HTMLButtonElement | null>;
|
|
520
|
+
position: FloatingPosition;
|
|
521
|
+
componentDidUpdate(): void;
|
|
522
|
+
componentWillUnmount(): void;
|
|
523
|
+
setOpen: (open: boolean) => boolean;
|
|
524
|
+
handleClick: () => boolean;
|
|
525
|
+
handleMouseEnter: (event: MouseEvent$1<HTMLDivElement>) => void;
|
|
526
|
+
handleMouseLeave: (event: MouseEvent$1<HTMLDivElement>) => void;
|
|
527
|
+
handleKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
528
|
+
render(): import("react").JSX.Element;
|
|
529
|
+
}
|
|
530
|
+
export interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
531
|
+
label: ReactNode;
|
|
532
|
+
autoClose?: boolean | 'inside' | 'outside';
|
|
533
|
+
align?: 'start' | 'end';
|
|
534
|
+
menuClassName?: string;
|
|
535
|
+
placement?: MenuPlacement;
|
|
536
|
+
responsivePlacement?: Partial<Record<Breakpoint, MenuPlacement>>;
|
|
537
|
+
theme?: 'light' | 'dark';
|
|
538
|
+
translucent?: boolean;
|
|
539
|
+
scrollable?: boolean;
|
|
540
|
+
split?: boolean;
|
|
541
|
+
nav?: boolean;
|
|
597
542
|
offset?: FloatingOptions['offset'];
|
|
598
543
|
padding?: number;
|
|
599
544
|
flip?: boolean;
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
};
|
|
605
|
-
overlayClassName?: string;
|
|
606
|
-
children: ReactElement<{
|
|
607
|
-
'aria-describedby'?: string;
|
|
608
|
-
}>;
|
|
545
|
+
toggleProps?: Omit<Extract<ButtonProps, {
|
|
546
|
+
href?: never;
|
|
547
|
+
}>, 'children' | 'onClick' | 'onKeyDown'>;
|
|
548
|
+
onOpenChange?: (open: boolean) => unknown;
|
|
609
549
|
}
|
|
610
|
-
export
|
|
611
|
-
|
|
612
|
-
protected get componentProps(): Readonly<OverlayBoxProps & AsProps>;
|
|
550
|
+
export type MenuPlacement = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
551
|
+
export declare class Menu<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, MenuProps>> {
|
|
613
552
|
static displayName: string;
|
|
553
|
+
readonly props: PolymorphicClassProps<T, MenuProps>;
|
|
554
|
+
protected get componentProps(): Readonly<MenuProps & AsProps>;
|
|
614
555
|
accessor open: boolean;
|
|
615
|
-
|
|
616
|
-
root: import("react").RefObject<
|
|
617
|
-
|
|
556
|
+
accessor responsiveDirection: MenuPlacement | undefined;
|
|
557
|
+
root: import("react").RefObject<HTMLDivElement | null>;
|
|
558
|
+
trigger: import("react").RefObject<HTMLButtonElement | null>;
|
|
559
|
+
panel: import("react").RefObject<HTMLDivElement | null>;
|
|
560
|
+
media: {
|
|
561
|
+
query: MediaQueryList;
|
|
562
|
+
placement: MenuPlacement;
|
|
563
|
+
}[];
|
|
618
564
|
position: FloatingPosition;
|
|
619
|
-
timer?: ReturnType<typeof setTimeout>;
|
|
620
|
-
setOpen: (open: boolean) => boolean;
|
|
621
|
-
hide: () => void;
|
|
622
|
-
setOpenAfterDelay: (open: boolean) => boolean | undefined;
|
|
623
|
-
componentWillUnmount(): void;
|
|
624
565
|
componentDidMount(): void;
|
|
625
|
-
componentDidUpdate(
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
handleFocus: (event: FocusEvent<HTMLSpanElement>) => void;
|
|
631
|
-
handleBlur: (event: FocusEvent<HTMLSpanElement>) => void;
|
|
632
|
-
handleClick: (event: MouseEvent$1<HTMLSpanElement>) => void;
|
|
566
|
+
componentDidUpdate({ responsivePlacement }: MenuProps): void;
|
|
567
|
+
componentWillUnmount(): void;
|
|
568
|
+
observePlacement: () => void;
|
|
569
|
+
handlePlacement: () => MenuPlacement | undefined;
|
|
570
|
+
setOpen: (open: boolean) => void;
|
|
633
571
|
handleOutside: ({ target }: PointerEvent) => void;
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
572
|
+
items(panel?: HTMLElement | null): HTMLElement[];
|
|
573
|
+
handleKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
574
|
+
handleBlur: (event: FocusEvent<HTMLDivElement>) => void;
|
|
575
|
+
handleToggle: () => void;
|
|
576
|
+
handleSelect: ({ target, defaultPrevented }: MouseEvent$1<HTMLDivElement>) => void;
|
|
577
|
+
render(): import("react").JSX.Element;
|
|
578
|
+
}
|
|
637
579
|
export interface NavProps extends ComponentPropsWithRef<'nav'> {
|
|
638
580
|
variant?: 'tabs' | 'pills' | 'underline';
|
|
639
581
|
vertical?: boolean;
|
|
@@ -649,68 +591,158 @@ export interface NavLinkProps extends ComponentPropsWithRef<'a'> {
|
|
|
649
591
|
active?: boolean;
|
|
650
592
|
}
|
|
651
593
|
export declare const NavLink: PolymorphicComponent<NavLinkProps>;
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
rootSelector?: string;
|
|
657
|
-
onItemClick?: (item: HeadingMeta) => void;
|
|
594
|
+
export interface NavbarProps extends ComponentPropsWithRef<'nav'> {
|
|
595
|
+
theme?: 'light' | 'dark';
|
|
596
|
+
expand?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
597
|
+
translucent?: boolean;
|
|
658
598
|
}
|
|
659
|
-
export declare
|
|
660
|
-
|
|
661
|
-
|
|
599
|
+
export declare const Navbar: PolymorphicComponent<NavbarProps>;
|
|
600
|
+
export type NavbarBrandProps = (ComponentPropsWithRef<'a'> & {
|
|
601
|
+
as?: 'a';
|
|
602
|
+
}) | (ComponentPropsWithRef<'span'> & {
|
|
603
|
+
as: 'span';
|
|
604
|
+
});
|
|
605
|
+
export declare const NavbarBrand: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>>;
|
|
606
|
+
export interface NavbarNavProps extends ComponentPropsWithRef<'ul'> {
|
|
607
|
+
variant?: 'tabs' | 'pills' | 'underline';
|
|
608
|
+
nav?: boolean;
|
|
609
|
+
}
|
|
610
|
+
export declare const NavbarNav: PolymorphicComponent<NavbarNavProps>;
|
|
611
|
+
export declare const NavbarText: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
612
|
+
export interface NavbarTogglerProps extends Omit<ComponentPropsWithRef<'button'>, 'children' | 'type'> {
|
|
613
|
+
expanded?: boolean;
|
|
614
|
+
}
|
|
615
|
+
export declare const NavbarToggler: PolymorphicComponent<NavbarTogglerProps>;
|
|
616
|
+
declare class NavOverflowModel {
|
|
617
|
+
accessor initialized: boolean;
|
|
618
|
+
accessor open: boolean;
|
|
619
|
+
accessor overflowIndices: number[];
|
|
620
|
+
setOpen: (open: boolean) => boolean;
|
|
621
|
+
toggle: () => boolean;
|
|
622
|
+
setOverflowIndices: (indices: number[]) => void;
|
|
623
|
+
}
|
|
624
|
+
export interface NavOverflowProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'children'>, Pick<NavProps, 'variant' | 'fill' | 'justified'> {
|
|
625
|
+
children: ReactNode;
|
|
626
|
+
collapseBelow?: number | string;
|
|
627
|
+
id: string;
|
|
628
|
+
iconPlacement?: 'start' | 'end';
|
|
629
|
+
menuPlacement?: string;
|
|
630
|
+
menuStrategy?: 'absolute' | 'fixed';
|
|
631
|
+
minimumVisibleItems?: number;
|
|
632
|
+
moreIcon?: ReactNode;
|
|
633
|
+
moreText?: string | false;
|
|
634
|
+
onOverflowChange?: (overflowCount: number, visibleCount: number) => unknown;
|
|
635
|
+
threshold?: number;
|
|
636
|
+
}
|
|
637
|
+
export declare class NavOverflow<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, NavOverflowProps>> {
|
|
638
|
+
readonly props: PolymorphicClassProps<T, NavOverflowProps>;
|
|
639
|
+
protected get componentProps(): Readonly<NavOverflowProps & AsProps>;
|
|
662
640
|
static displayName: string;
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
641
|
+
root: import("react").RefObject<HTMLDivElement | null>;
|
|
642
|
+
nav: import("react").RefObject<HTMLElement | null>;
|
|
643
|
+
toggleButton: import("react").RefObject<HTMLButtonElement | null>;
|
|
644
|
+
store: NavOverflowModel;
|
|
645
|
+
private resizeObserver?;
|
|
667
646
|
componentDidMount(): void;
|
|
668
|
-
|
|
669
|
-
initList(): void;
|
|
647
|
+
componentDidUpdate(): void;
|
|
670
648
|
componentWillUnmount(): void;
|
|
671
|
-
|
|
672
|
-
|
|
649
|
+
updateOverflow: () => void;
|
|
650
|
+
private getCollapseBelow;
|
|
651
|
+
handleClick: (event: MouseEvent$1<HTMLDivElement>) => void;
|
|
652
|
+
handleKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
653
|
+
handleOutside: (event: PointerEvent) => void;
|
|
654
|
+
renderChild: (child: ReactNode, index: number, overflow?: boolean) => import("react").JSX.Element;
|
|
673
655
|
render(): import("react").JSX.Element;
|
|
674
656
|
}
|
|
675
|
-
export
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
* Automatically shows scroll arrow buttons when nav items overflow the container width.
|
|
679
|
-
*
|
|
680
|
-
* @see {@link https://github.com/twbs/bootstrap/blob/main/site/src/assets/examples/offcanvas-navbar/index.astro#L50-L65}
|
|
681
|
-
*/
|
|
682
|
-
export declare const ScrollNav: PolymorphicComponent<NavProps>;
|
|
683
|
-
export interface OptionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
684
|
-
value?: string;
|
|
657
|
+
export interface PaginationProps extends ComponentPropsWithRef<'ul'> {
|
|
658
|
+
theme?: ComponentTheme;
|
|
659
|
+
size?: 'sm' | 'lg';
|
|
685
660
|
}
|
|
686
|
-
export declare const
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
static displayName: string;
|
|
699
|
-
private handleSelect;
|
|
700
|
-
private renderOption;
|
|
701
|
-
render(): import("react").JSX.Element;
|
|
661
|
+
export declare const Pagination: PolymorphicComponent<PaginationProps>;
|
|
662
|
+
type PageState = Partial<Record<'active' | 'disabled', boolean>>;
|
|
663
|
+
export type PageItemProps = ComponentPropsWithRef<'li'> & PageState;
|
|
664
|
+
export declare const PageItem: PolymorphicComponent<PageItemProps>;
|
|
665
|
+
export type PageLinkProps = ComponentPropsWithRef<'a'> & PageState;
|
|
666
|
+
export declare const PageLink: PolymorphicComponent<PageLinkProps>;
|
|
667
|
+
export declare const PageText: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
668
|
+
export interface PlaceholderProps extends ComponentPropsWithRef<'span'> {
|
|
669
|
+
size?: 'xs' | 'sm' | 'lg';
|
|
670
|
+
animation?: 'wave' | 'pulse' | 'glow';
|
|
671
|
+
theme?: ComponentTheme;
|
|
672
|
+
width?: CSSProperties['width'];
|
|
702
673
|
}
|
|
703
|
-
export declare
|
|
704
|
-
export
|
|
705
|
-
|
|
674
|
+
export declare const Placeholder: PolymorphicComponent<PlaceholderProps>;
|
|
675
|
+
export interface PlaceholderAnimationProps extends ComponentPropsWithRef<'div'> {
|
|
676
|
+
animation?: PlaceholderProps['animation'];
|
|
677
|
+
}
|
|
678
|
+
export declare const PlaceholderAnimation: PolymorphicComponent<PlaceholderAnimationProps>;
|
|
679
|
+
export type PlaceholderButtonProps = ButtonProps;
|
|
680
|
+
export declare const PlaceholderButton: PolymorphicComponent<ButtonProps>;
|
|
681
|
+
export interface PopoverProps extends Omit<OverlayTriggerProps, 'title'> {
|
|
682
|
+
title?: ReactNode;
|
|
683
|
+
}
|
|
684
|
+
export declare const Popover: PolymorphicComponent<PopoverProps>;
|
|
685
|
+
export interface ProgressProps extends ComponentPropsWithRef<'div'> {
|
|
686
|
+
value: number;
|
|
687
|
+
min?: number;
|
|
688
|
+
max?: number;
|
|
689
|
+
theme?: ComponentTheme;
|
|
690
|
+
striped?: boolean;
|
|
691
|
+
animated?: boolean;
|
|
692
|
+
barProps?: ComponentPropsWithRef<'div'>;
|
|
693
|
+
}
|
|
694
|
+
export declare const Progress: PolymorphicComponent<ProgressProps>;
|
|
695
|
+
export declare const ProgressStack: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
696
|
+
declare class ScrollSpyModel {
|
|
697
|
+
accessor activeId: string;
|
|
698
|
+
accessor guides: (Record<'top' | 'left' | 'width' | 'height' | 'line', number> & {
|
|
699
|
+
atBottom: boolean;
|
|
700
|
+
}) | undefined;
|
|
701
|
+
setGuides: (guides: ScrollSpyModel["guides"]) => (Record<"line" | "width" | "height" | "top" | "left", number> & {
|
|
702
|
+
atBottom: boolean;
|
|
703
|
+
}) | undefined;
|
|
704
|
+
setActiveId: (id: string) => string;
|
|
705
|
+
}
|
|
706
|
+
export interface ScrollSpyProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'children'> {
|
|
707
|
+
children: ReactNode;
|
|
708
|
+
debug?: boolean;
|
|
709
|
+
onActiveChange?: (id: string) => unknown;
|
|
710
|
+
rootMargin?: string | null;
|
|
711
|
+
scrollRoot?: 'self' | 'window';
|
|
712
|
+
smoothScroll?: boolean;
|
|
713
|
+
target?: string;
|
|
714
|
+
threshold?: number[];
|
|
715
|
+
topMargin?: string;
|
|
716
|
+
}
|
|
717
|
+
export declare class ScrollSpy<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, ScrollSpyProps>> {
|
|
718
|
+
readonly props: PolymorphicClassProps<T, ScrollSpyProps>;
|
|
719
|
+
protected get componentProps(): Readonly<ScrollSpyProps & AsProps>;
|
|
706
720
|
static displayName: string;
|
|
707
721
|
root: import("react").RefObject<HTMLDivElement | null>;
|
|
708
|
-
|
|
709
|
-
|
|
722
|
+
store: ScrollSpyModel;
|
|
723
|
+
private entries;
|
|
724
|
+
private observer?;
|
|
725
|
+
private bottomObserver?;
|
|
726
|
+
private intersecting;
|
|
727
|
+
private atBottom;
|
|
728
|
+
private mounted;
|
|
729
|
+
sentinel: import("react").RefObject<HTMLDivElement | null>;
|
|
710
730
|
componentDidMount(): void;
|
|
731
|
+
componentDidUpdate(previous: ScrollSpyProps): void;
|
|
711
732
|
componentWillUnmount(): void;
|
|
712
|
-
|
|
713
|
-
|
|
733
|
+
refresh: () => void;
|
|
734
|
+
handleResize: () => void;
|
|
735
|
+
handleScroll: () => (Record<"line" | "width" | "height" | "top" | "left", number> & {
|
|
736
|
+
atBottom: boolean;
|
|
737
|
+
}) | undefined;
|
|
738
|
+
private getRootHeight;
|
|
739
|
+
private getRootMargin;
|
|
740
|
+
private rebuildObservers;
|
|
741
|
+
handleNavigationClick: (event: globalThis.MouseEvent) => void;
|
|
742
|
+
private getActivationLine;
|
|
743
|
+
private updateGuides;
|
|
744
|
+
private updateActive;
|
|
745
|
+
renderDebug: () => import("react").ReactPortal | null;
|
|
714
746
|
render(): import("react").JSX.Element;
|
|
715
747
|
}
|
|
716
748
|
export type SpinnerAnimation = 'border' | 'grow';
|
|
@@ -721,797 +753,730 @@ export interface SpinnerProps extends ComponentPropsWithRef<'span'> {
|
|
|
721
753
|
}
|
|
722
754
|
export declare const Spinner: PolymorphicComponent<SpinnerProps>;
|
|
723
755
|
export declare const SpinnerIcon: PolymorphicComponent<IconProps>;
|
|
724
|
-
export type
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
export interface TableSpinnerProps extends HTMLAttributes<HTMLTableRowElement>, Pick<SpinnerProps, 'animation' | 'theme' | 'size'> {
|
|
729
|
-
colSpan: number;
|
|
730
|
-
}
|
|
731
|
-
export declare const TableSpinner: PolymorphicComponent<TableSpinnerProps>;
|
|
732
|
-
export interface TextTruncateProps extends HTMLAttributes<HTMLDivElement> {
|
|
733
|
-
rows?: number;
|
|
734
|
-
expandText?: ReactNode;
|
|
735
|
-
collapseText?: ReactNode;
|
|
756
|
+
export type StackDirection = 'horizontal' | 'vertical';
|
|
757
|
+
export interface StackProps extends ComponentPropsWithRef<'div'> {
|
|
758
|
+
direction?: StackDirection;
|
|
759
|
+
gap?: number;
|
|
736
760
|
}
|
|
737
|
-
export declare const
|
|
738
|
-
export interface
|
|
739
|
-
|
|
740
|
-
format?: string;
|
|
761
|
+
export declare const Stack: PolymorphicComponent<StackProps>;
|
|
762
|
+
export interface StepperProps extends ComponentPropsWithRef<'ol'> {
|
|
763
|
+
horizontal?: boolean | Breakpoint;
|
|
741
764
|
}
|
|
742
|
-
export declare const
|
|
743
|
-
export interface
|
|
744
|
-
|
|
745
|
-
unitWords?: Record<string, string>;
|
|
746
|
-
beforeWord?: string;
|
|
747
|
-
afterWord?: string;
|
|
765
|
+
export declare const Stepper: PolymorphicComponent<StepperProps>;
|
|
766
|
+
export interface StepperNavProps extends ComponentPropsWithRef<'nav'> {
|
|
767
|
+
horizontal?: StepperProps['horizontal'];
|
|
748
768
|
}
|
|
749
|
-
export declare const
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
time: [TimeData, TimeData?];
|
|
754
|
-
link?: string;
|
|
755
|
-
people?: NameplateProps[];
|
|
769
|
+
export declare const StepperNav: PolymorphicComponent<StepperNavProps>;
|
|
770
|
+
interface StepStyle {
|
|
771
|
+
active?: boolean;
|
|
772
|
+
theme?: ComponentTheme;
|
|
756
773
|
}
|
|
757
|
-
export
|
|
758
|
-
|
|
759
|
-
|
|
774
|
+
export type StepperItemProps = ComponentPropsWithRef<'li'> & StepStyle;
|
|
775
|
+
export declare const StepperItem: PolymorphicComponent<StepperItemProps>;
|
|
776
|
+
export type StepperLinkProps = ComponentPropsWithRef<'a'> & StepStyle;
|
|
777
|
+
export declare const StepperLink: PolymorphicComponent<StepperLinkProps>;
|
|
778
|
+
export type StepperButtonProps = ComponentPropsWithRef<'button'> & StepStyle;
|
|
779
|
+
export declare const StepperButton: PolymorphicComponent<StepperButtonProps>;
|
|
780
|
+
export declare const StepperOverflow: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
781
|
+
export interface TabProps extends ComponentPropsWithRef<'div'> {
|
|
782
|
+
eventKey: string;
|
|
783
|
+
label: ReactNode;
|
|
784
|
+
disabled?: boolean;
|
|
760
785
|
}
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
786
|
+
export declare const Tab: PolymorphicComponent<TabProps>;
|
|
787
|
+
export interface TabsProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange'>, Pick<NavProps, 'vertical' | 'fill' | 'justified' | 'cardHeader' | 'navbar'> {
|
|
788
|
+
activeKey?: string;
|
|
789
|
+
defaultActiveKey?: string;
|
|
790
|
+
fade?: boolean;
|
|
791
|
+
id: string;
|
|
792
|
+
onChange?: (key: string) => unknown;
|
|
793
|
+
orientation?: 'horizontal' | 'vertical';
|
|
794
|
+
variant?: 'tabs' | 'pills' | 'underline' | 'list-group';
|
|
768
795
|
}
|
|
769
|
-
export declare
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
796
|
+
export declare class Tabs<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, TabsProps>> {
|
|
797
|
+
static displayName: string;
|
|
798
|
+
readonly props: PolymorphicClassProps<T, TabsProps>;
|
|
799
|
+
protected get componentProps(): Readonly<TabsProps & AsProps>;
|
|
800
|
+
get tabs(): import("react").ReactElement<TabProps, string | import("react").JSXElementConstructor<any>>[];
|
|
801
|
+
root: import("react").RefObject<HTMLDivElement | null>;
|
|
802
|
+
accessor selectedKey: string;
|
|
803
|
+
get activeKey(): string;
|
|
804
|
+
get orientation(): "vertical" | "horizontal";
|
|
805
|
+
handleClick: (event: MouseEvent$1<HTMLDivElement>) => void;
|
|
806
|
+
handleKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
807
|
+
activate: (key: string) => void;
|
|
808
|
+
tabId: (key: string) => string;
|
|
809
|
+
panelId: (key: string) => string;
|
|
810
|
+
renderTabs: () => import("react").JSX.Element;
|
|
811
|
+
renderPanels: () => import("react").JSX.Element;
|
|
812
|
+
render(): import("react").JSX.Element;
|
|
781
813
|
}
|
|
782
|
-
export
|
|
783
|
-
export interface
|
|
784
|
-
|
|
814
|
+
export type ToastPosition = 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
|
|
815
|
+
export interface ToastMessage extends Pick<ToastItemProps, 'theme' | 'translucent' | 'instant' | 'role'> {
|
|
816
|
+
id?: string;
|
|
817
|
+
title?: ReactNode;
|
|
818
|
+
body: ReactNode;
|
|
819
|
+
delay?: number;
|
|
785
820
|
}
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
startYear: number;
|
|
792
|
-
endYear?: number;
|
|
793
|
-
itemOf?: (year: number, zodiac: string) => {
|
|
794
|
-
link?: string;
|
|
795
|
-
title?: ReactNode;
|
|
796
|
-
};
|
|
821
|
+
interface ToastEntry extends ToastMessage {
|
|
822
|
+
openedAt: number;
|
|
823
|
+
closedAt?: number;
|
|
824
|
+
timer?: ReturnType<typeof setTimeout>;
|
|
825
|
+
resolve?: (value: ToastEntry) => void;
|
|
797
826
|
}
|
|
798
|
-
export
|
|
799
|
-
|
|
800
|
-
validated?: boolean;
|
|
801
|
-
};
|
|
802
|
-
export declare const Form: PolymorphicComponent<FormProps>;
|
|
803
|
-
export type FormFieldsetProps = ComponentPropsWithRef<'fieldset'>;
|
|
804
|
-
export declare const FormFieldset: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>>;
|
|
805
|
-
export type FormFieldProps = ComponentPropsWithRef<'div'> & {
|
|
806
|
-
card?: boolean;
|
|
807
|
-
};
|
|
808
|
-
export declare const FormField: PolymorphicComponent<FormFieldProps>;
|
|
809
|
-
export type FormGroupProps = ComponentPropsWithRef<'div'>;
|
|
810
|
-
export declare const FormGroup: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
811
|
-
export type FormFieldContentProps = ComponentPropsWithRef<'div'>;
|
|
812
|
-
export declare const FormFieldContent: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
813
|
-
export interface FormValidationProps {
|
|
814
|
-
validation?: 'valid' | 'invalid';
|
|
827
|
+
export interface ToastContainerProps extends ComponentPropsWithRef<'div'> {
|
|
828
|
+
position?: ToastPosition | 'static';
|
|
815
829
|
}
|
|
816
|
-
export
|
|
817
|
-
|
|
818
|
-
column?: boolean;
|
|
819
|
-
controlSize?: 'sm' | 'lg';
|
|
820
|
-
};
|
|
821
|
-
export declare const FormLabel: PolymorphicComponent<FormLabelProps>;
|
|
822
|
-
export type FormLegendProps = ComponentPropsWithRef<'legend'> & Pick<FormLabelProps, 'column' | 'controlSize'>;
|
|
823
|
-
export declare const FormLegend: PolymorphicComponent<FormLegendProps>;
|
|
824
|
-
export type FormAdornmentProps = Omit<ComponentPropsWithRef<'label'>, 'htmlFor'> & FormValidationProps & {
|
|
825
|
-
end?: boolean;
|
|
826
|
-
size?: 'sm' | 'lg';
|
|
827
|
-
htmlFor?: string;
|
|
828
|
-
};
|
|
829
|
-
export declare const FormAdornment: PolymorphicComponent<FormAdornmentProps>;
|
|
830
|
-
export type FormAdornmentTextProps = ComponentPropsWithRef<'span'>;
|
|
831
|
-
export declare const FormAdornmentText: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
832
|
-
export declare const FormAdornmentIcon: PolymorphicComponent<IconProps>;
|
|
833
|
-
export type FormGhostProps = ComponentPropsWithRef<'input'> & FormValidationProps;
|
|
834
|
-
export declare const FormGhost: PolymorphicComponent<FormGhostProps>;
|
|
835
|
-
export type CheckboxProps = Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'size'> & FormValidationProps & {
|
|
836
|
-
size?: 'sm' | 'lg';
|
|
837
|
-
theme?: ComponentTheme;
|
|
838
|
-
indeterminate?: boolean;
|
|
839
|
-
};
|
|
840
|
-
export declare const Checkbox: PolymorphicComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type" | "size"> & FormValidationProps & {
|
|
841
|
-
size?: "sm" | "lg";
|
|
830
|
+
export declare const ToastContainer: PolymorphicComponent<ToastContainerProps>;
|
|
831
|
+
export interface ToastItemProps extends ComponentPropsWithRef<'div'> {
|
|
842
832
|
theme?: ComponentTheme;
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
}
|
|
847
|
-
export
|
|
833
|
+
show?: boolean;
|
|
834
|
+
translucent?: boolean;
|
|
835
|
+
instant?: boolean;
|
|
836
|
+
}
|
|
837
|
+
export declare const ToastItem: PolymorphicComponent<ToastItemProps>;
|
|
838
|
+
export declare const ToastHeader: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
839
|
+
export declare const ToastBody: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
840
|
+
export declare class Toast {
|
|
841
|
+
TimeScalar: typeof Timestamp;
|
|
842
|
+
accessor messages: ToastEntry[];
|
|
843
|
+
Component: FC<{
|
|
844
|
+
position?: ToastPosition;
|
|
845
|
+
}>;
|
|
846
|
+
renderMessage: ({ id, openedAt, title, body, theme, translucent, instant, role, delay }: ToastEntry) => import("react").JSX.Element;
|
|
847
|
+
handleDismiss: ({ target }: MouseEvent$1<HTMLDivElement>) => void;
|
|
848
|
+
constructor(TimeScalar?: typeof Timestamp);
|
|
849
|
+
open(message: ToastMessage): Promise<ToastEntry>;
|
|
850
|
+
close(id: string): void;
|
|
851
|
+
}
|
|
852
|
+
type NativeInputProps$1 = Omit<ComponentPropsWithRef<'input'>, 'ref' | 'type' | 'size'>;
|
|
853
|
+
export type ToggleButtonProps = Omit<ComponentPropsWithRef<'label'>, keyof NativeInputProps$1 | 'onChange'> & NativeInputProps$1 & {
|
|
854
|
+
type?: 'checkbox' | 'radio';
|
|
855
|
+
variant?: 'solid' | 'outline' | 'subtle' | 'text';
|
|
848
856
|
theme?: ComponentTheme;
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
dismissible?: boolean;
|
|
854
|
-
placeholder?: string;
|
|
855
|
-
onValuesChange?: (values: string[]) => unknown;
|
|
857
|
+
size?: 'xs' | 'sm' | 'lg';
|
|
858
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
859
|
+
inputClassName?: string;
|
|
860
|
+
inputStyle?: CSSProperties;
|
|
856
861
|
};
|
|
857
|
-
export declare const
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
dismissible?: boolean;
|
|
864
|
-
placeholder?: string;
|
|
865
|
-
onValuesChange?: (values: string[]) => unknown;
|
|
866
|
-
} & {
|
|
867
|
-
ref?: Ref<HTMLDivElement>;
|
|
868
|
-
}>;
|
|
869
|
-
export type ChipProps = ComponentPropsWithRef<'button'> & {
|
|
870
|
-
active?: boolean;
|
|
862
|
+
export declare const ToggleButton: PolymorphicComponent<ToggleButtonProps>;
|
|
863
|
+
export interface TogglerProps extends Omit<ButtonHTMLAttributes<HTMLElement>, 'value'> {
|
|
864
|
+
as?: 'button' | 'div' | 'span';
|
|
865
|
+
target?: string;
|
|
866
|
+
attribute?: string;
|
|
867
|
+
value?: string | number | boolean | null;
|
|
871
868
|
theme?: ComponentTheme;
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
export declare const ChipIcon: PolymorphicComponent<IconProps>;
|
|
875
|
-
export declare const ChipImage: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>>;
|
|
876
|
-
export declare const ChipDismiss: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>;
|
|
877
|
-
export type ChipTokenProps = ComponentPropsWithRef<'span'> & Pick<ChipProps, 'active' | 'theme'>;
|
|
878
|
-
export declare const ChipToken: PolymorphicComponent<ChipTokenProps>;
|
|
879
|
-
export declare const ChipInputLabel: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>>;
|
|
880
|
-
export interface ComboboxOptionProps extends ComponentPropsWithRef<'button'> {
|
|
881
|
-
value: string;
|
|
882
|
-
description?: ReactNode;
|
|
883
|
-
icon?: string;
|
|
884
|
-
checkedIcon?: boolean;
|
|
885
|
-
searchText?: string;
|
|
869
|
+
variant?: 'solid' | 'outline' | 'subtle' | 'text' | 'link';
|
|
870
|
+
onToggled?: (targets: HTMLElement[]) => unknown;
|
|
886
871
|
}
|
|
887
|
-
export declare
|
|
888
|
-
|
|
889
|
-
|
|
872
|
+
export declare class Toggler<T extends ElementType | undefined = 'button'> extends Component<PolymorphicClassProps<T, TogglerProps>> {
|
|
873
|
+
static displayName: string;
|
|
874
|
+
readonly props: PolymorphicClassProps<T, TogglerProps>;
|
|
875
|
+
protected get componentProps(): Readonly<Omit<TogglerProps, 'as'> & AsProps>;
|
|
876
|
+
handleClick: (event: MouseEvent$1<HTMLElement>) => void;
|
|
877
|
+
handleKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
878
|
+
render(): import("react").JSX.Element;
|
|
890
879
|
}
|
|
891
|
-
export
|
|
892
|
-
export
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
menuClassName?: string;
|
|
899
|
-
disabled?: boolean;
|
|
900
|
-
controlSize?: 'sm' | 'lg';
|
|
901
|
-
search?: boolean;
|
|
902
|
-
searchNormalize?: boolean;
|
|
903
|
-
searchPlaceholder?: string;
|
|
904
|
-
noResultsText?: string;
|
|
905
|
-
onChange?: (value: string | string[]) => unknown;
|
|
880
|
+
export type TooltipProps = OverlayTriggerProps;
|
|
881
|
+
export declare const Tooltip: PolymorphicComponent<OverlayTriggerProps>;
|
|
882
|
+
export interface ImageProps extends ComponentPropsWithRef<'img'> {
|
|
883
|
+
fluid?: boolean;
|
|
884
|
+
thumbnail?: boolean;
|
|
885
|
+
rounded?: boolean;
|
|
886
|
+
roundedCircle?: boolean;
|
|
906
887
|
}
|
|
907
|
-
export declare
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
888
|
+
export declare const Image: PolymorphicComponent<ImageProps>;
|
|
889
|
+
export interface TableProps extends ComponentPropsWithRef<'table'> {
|
|
890
|
+
striped?: boolean;
|
|
891
|
+
stripedColumns?: boolean;
|
|
892
|
+
hover?: boolean;
|
|
893
|
+
bordered?: boolean;
|
|
894
|
+
borderless?: boolean;
|
|
895
|
+
small?: boolean;
|
|
896
|
+
responsive?: boolean | Breakpoint;
|
|
897
|
+
}
|
|
898
|
+
export declare const Table: PolymorphicComponent<TableProps>;
|
|
899
|
+
export type ClickBoundaryProps = PropsWithChildren<{
|
|
900
|
+
onInnerClick?: (event: MouseEvent) => unknown;
|
|
901
|
+
onOuterClick?: (event: MouseEvent) => unknown;
|
|
902
|
+
} & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
903
|
+
export declare class ClickBoundary<T extends ElementType | undefined = 'div'> extends PureComponent<PolymorphicClassProps<T, ClickBoundaryProps>> {
|
|
904
|
+
readonly props: PolymorphicClassProps<T, ClickBoundaryProps>;
|
|
905
|
+
protected get componentProps(): Readonly<ClickBoundaryProps & AsProps>;
|
|
906
|
+
root: import("react").RefObject<HTMLDivElement | null>;
|
|
907
|
+
switchClick: (event: MouseEvent) => void;
|
|
918
908
|
componentDidMount(): void;
|
|
919
|
-
componentDidUpdate(): void;
|
|
920
909
|
componentWillUnmount(): void;
|
|
921
|
-
private updateAccessibility;
|
|
922
|
-
private setCurrent;
|
|
923
|
-
private handleSearch;
|
|
924
|
-
private handleClick;
|
|
925
|
-
private normalize;
|
|
926
|
-
private matches;
|
|
927
|
-
private renderChild;
|
|
928
|
-
private renderHiddenInput;
|
|
929
910
|
render(): import("react").JSX.Element;
|
|
930
911
|
}
|
|
931
|
-
export
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
caret?: boolean;
|
|
935
|
-
color?: boolean;
|
|
936
|
-
controlSize?: 'sm' | 'lg';
|
|
937
|
-
};
|
|
938
|
-
export declare const FormControl: PolymorphicComponent<FormControlProps>;
|
|
939
|
-
export type FormTextAreaProps = ComponentPropsWithRef<'textarea'> & FormValidationProps & {
|
|
940
|
-
controlSize?: 'sm' | 'lg';
|
|
941
|
-
};
|
|
942
|
-
export declare const FormTextArea: PolymorphicComponent<FormTextAreaProps>;
|
|
943
|
-
export type FormSelectProps = ComponentPropsWithRef<'select'> & FormValidationProps & {
|
|
944
|
-
controlSize?: 'sm' | 'lg';
|
|
945
|
-
};
|
|
946
|
-
export declare const FormSelect: PolymorphicComponent<FormSelectProps>;
|
|
947
|
-
export type DatePickerOptions = Partial<DatepickerConfig>;
|
|
948
|
-
interface DatePickerSettings {
|
|
949
|
-
options?: DatePickerOptions;
|
|
950
|
-
inline?: boolean;
|
|
951
|
-
selectionMode?: DatepickerConfig['selectionMode'];
|
|
952
|
-
displayMonthsCount?: DatepickerConfig['displayMonthsCount'];
|
|
953
|
-
selectedDates?: string[];
|
|
954
|
-
firstWeekday?: DatepickerConfig['firstWeekday'];
|
|
955
|
-
placement?: DatepickerConfig['placement'];
|
|
956
|
-
datepickerTheme?: string;
|
|
957
|
-
onDatesChange?: (dates: string[]) => unknown;
|
|
912
|
+
export interface CodeBlockProps extends HTMLAttributes<HTMLPreElement> {
|
|
913
|
+
language: string;
|
|
914
|
+
header?: ReactNode;
|
|
958
915
|
}
|
|
959
|
-
export
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
};
|
|
964
|
-
export type DatePickerButtonProps = Extract<ButtonProps, {
|
|
965
|
-
href?: never;
|
|
966
|
-
}> & DatePickerSettings & {
|
|
967
|
-
leadingIcon?: string;
|
|
968
|
-
};
|
|
969
|
-
export type DatePickerInlineProps = ComponentPropsWithoutRef<'div'> & DatePickerSettings;
|
|
970
|
-
export declare const DatePicker: PolymorphicComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type"> & DatePickerSettings & FormValidationProps & {
|
|
971
|
-
enhanced?: boolean;
|
|
972
|
-
ghost?: boolean;
|
|
973
|
-
controlSize?: "sm" | "lg";
|
|
974
|
-
} & {
|
|
975
|
-
ref?: Ref<HTMLInputElement>;
|
|
976
|
-
}>;
|
|
977
|
-
export declare const DatePickerButton: PolymorphicComponent<DatePickerButtonProps & {
|
|
978
|
-
ref?: Ref<HTMLButtonElement>;
|
|
979
|
-
}>;
|
|
980
|
-
export declare const DatePickerInline: PolymorphicComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & DatePickerSettings & {
|
|
981
|
-
ref?: Ref<HTMLDivElement>;
|
|
982
|
-
}>;
|
|
983
|
-
export type FormTextProps = ComponentPropsWithRef<'small'> & {
|
|
984
|
-
block?: boolean;
|
|
985
|
-
};
|
|
986
|
-
export declare const FormText: PolymorphicComponent<FormTextProps>;
|
|
987
|
-
export type FormFeedbackProps = Omit<ComponentPropsWithRef<'div'>, 'type'> & {
|
|
988
|
-
type?: 'valid' | 'invalid';
|
|
989
|
-
tooltip?: boolean;
|
|
990
|
-
};
|
|
991
|
-
export declare const FormFeedback: PolymorphicComponent<FormFeedbackProps>;
|
|
992
|
-
export type FormFloatingLabelProps = ComponentPropsWithRef<'div'> & {
|
|
993
|
-
always?: boolean;
|
|
994
|
-
};
|
|
995
|
-
export declare const FormFloatingLabel: PolymorphicComponent<FormFloatingLabelProps>;
|
|
996
|
-
export type MenuItemProps = ButtonProps & {
|
|
997
|
-
active?: boolean;
|
|
998
|
-
selected?: boolean;
|
|
999
|
-
};
|
|
1000
|
-
export declare const MenuItem: PolymorphicComponent<MenuItemProps>;
|
|
1001
|
-
export interface MenuPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
1002
|
-
theme?: 'light' | 'dark';
|
|
1003
|
-
translucent?: boolean;
|
|
1004
|
-
scrollable?: boolean;
|
|
1005
|
-
show?: boolean;
|
|
916
|
+
export declare const CodeBlock: PolymorphicComponent<CodeBlockProps>;
|
|
917
|
+
export interface TimeUnit {
|
|
918
|
+
scale: number;
|
|
919
|
+
label: string;
|
|
1006
920
|
}
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
export declare const MenuText: PolymorphicComponent<HTMLAttributes<HTMLSpanElement>>;
|
|
1011
|
-
export declare const MenuHeader: PolymorphicComponent<HTMLAttributes<HTMLHeadingElement>>;
|
|
1012
|
-
export declare const MenuDivider: PolymorphicComponent<HTMLAttributes<HTMLHRElement>>;
|
|
1013
|
-
export declare const MenuItemContent: PolymorphicComponent<HTMLAttributes<HTMLSpanElement>>;
|
|
1014
|
-
export declare const MenuItemDescription: PolymorphicComponent<HTMLAttributes<HTMLElement>>;
|
|
1015
|
-
export interface MenuSubmenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
1016
|
-
label: ReactNode;
|
|
1017
|
-
className?: string;
|
|
921
|
+
interface TimeSection {
|
|
922
|
+
value: number;
|
|
923
|
+
label: string;
|
|
1018
924
|
}
|
|
1019
|
-
export
|
|
925
|
+
export interface CountdownProps extends HTMLAttributes<HTMLOListElement> {
|
|
926
|
+
units: TimeUnit[];
|
|
927
|
+
endTime: TimeData;
|
|
928
|
+
itemClassName?: string;
|
|
929
|
+
onEnd?: (endTime: TimeData) => unknown;
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Migrate from https://bootstrap.web-cell.dev/#Calendar/CountDown
|
|
933
|
+
*/
|
|
934
|
+
export declare class Countdown<T extends ElementType | undefined = 'ol'> extends ObservedComponent<PolymorphicClassProps<T, CountdownProps>> {
|
|
935
|
+
readonly props: PolymorphicClassProps<T, CountdownProps>;
|
|
936
|
+
protected get componentProps(): CountdownProps & AsProps;
|
|
1020
937
|
static displayName: string;
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
938
|
+
accessor rest: number;
|
|
939
|
+
private timer;
|
|
940
|
+
get endTimestamp(): number;
|
|
941
|
+
get timeSections(): TimeSection[];
|
|
942
|
+
tick: () => void;
|
|
943
|
+
stop(): void;
|
|
944
|
+
componentDidMount(): void;
|
|
945
|
+
initTimer(): void;
|
|
1028
946
|
componentWillUnmount(): void;
|
|
1029
|
-
setOpen: (open: boolean) => boolean;
|
|
1030
|
-
handleClick: () => boolean;
|
|
1031
|
-
handleMouseEnter: (event: MouseEvent$1<HTMLDivElement>) => void;
|
|
1032
|
-
handleMouseLeave: (event: MouseEvent$1<HTMLDivElement>) => void;
|
|
1033
|
-
handleKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
1034
947
|
render(): import("react").JSX.Element;
|
|
1035
948
|
}
|
|
1036
|
-
export
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
949
|
+
export declare class DialogClose extends Error {
|
|
950
|
+
constructor(message?: string);
|
|
951
|
+
}
|
|
952
|
+
export interface DialogProps<T = unknown> {
|
|
953
|
+
defer?: Defer<T>;
|
|
954
|
+
}
|
|
955
|
+
export declare class Dialog<I extends object = {}, O = unknown> {
|
|
956
|
+
accessor input: I;
|
|
957
|
+
accessor defer: Defer<O> | undefined;
|
|
958
|
+
Component: FC<I>;
|
|
959
|
+
constructor(Factory: FC<I & DialogProps<O>>);
|
|
960
|
+
open(input?: I): Promise<O>;
|
|
961
|
+
}
|
|
962
|
+
export type HorizontalMarqueeProps = HTMLAttributes<HTMLDivElement> & Partial<Record<'maxWidth' | 'duration' | 'height', string>>;
|
|
963
|
+
export declare const HorizontalMarquee: PolymorphicComponent<HorizontalMarqueeProps>;
|
|
964
|
+
export declare const HorizontalMarqueeBox: PolymorphicComponent<HorizontalMarqueeProps>;
|
|
965
|
+
export type LiveTSXProps = Pick<Parameters<typeof LiveProvider>[0], 'scope' | 'children'>;
|
|
966
|
+
export declare const LiveTSX: FC<LiveTSXProps>;
|
|
967
|
+
export interface LoadingProps extends HTMLAttributes<HTMLDivElement> {
|
|
968
|
+
opacity?: number;
|
|
969
|
+
}
|
|
970
|
+
export declare const Loading: PolymorphicComponent<LoadingProps>;
|
|
971
|
+
export type MarkdownViewProps = Omit<ComponentPropsWithRef<'article'>, 'children' | 'dangerouslySetInnerHTML'> & {
|
|
972
|
+
children: string;
|
|
973
|
+
};
|
|
974
|
+
export declare const MarkdownView: PolymorphicComponent<MarkdownViewProps>;
|
|
975
|
+
export interface DateData {
|
|
976
|
+
date: TimeData;
|
|
977
|
+
content: ReactNode;
|
|
978
|
+
link?: string;
|
|
979
|
+
}
|
|
980
|
+
export interface MonthCalendarProps extends Omit<HTMLAttributes<HTMLTableElement>, 'onChange' | 'onSelect'> {
|
|
981
|
+
locale?: Navigator['language'];
|
|
982
|
+
theme?: ComponentTheme;
|
|
983
|
+
value?: DateData[];
|
|
984
|
+
onSelect?: (value: DateData) => unknown;
|
|
985
|
+
onChange?: (date: Date) => void;
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* Re-implement from https://github.com/EasyWebApp/BootCell/blob/3d30027a97fe0a8c4ab8fabc8dfef22aede04de7/source/Calendar/MonthCalendar.tsx
|
|
989
|
+
*/
|
|
990
|
+
export declare class MonthCalendar<T extends ElementType | undefined = 'table'> extends ObservedComponent<PolymorphicClassProps<T, MonthCalendarProps>> {
|
|
991
|
+
readonly props: PolymorphicClassProps<T, MonthCalendarProps>;
|
|
992
|
+
protected get componentProps(): Readonly<MonthCalendarProps & AsProps>;
|
|
993
|
+
protected get observedComponentProps(): MonthCalendarProps & AsProps;
|
|
994
|
+
static displayName: string;
|
|
995
|
+
get weekFormatter(): Intl.DateTimeFormat;
|
|
996
|
+
accessor currentDate: Date;
|
|
997
|
+
get dateGrid(): Date[][];
|
|
998
|
+
changeMonth(delta: number): void;
|
|
999
|
+
changePreviousMonth: () => void;
|
|
1000
|
+
changeNextMonth: () => void;
|
|
1001
|
+
handleCellClick: ({ target, currentTarget }: MouseEvent$1<HTMLTableCellElement>) => void;
|
|
1002
|
+
renderDate: (date: Date) => import("react").JSX.Element;
|
|
1003
|
+
render(): import("react").JSX.Element;
|
|
1004
|
+
}
|
|
1005
|
+
export type NameplateProps = PropsWithoutRef<{
|
|
1006
|
+
avatar: string;
|
|
1007
|
+
name: string;
|
|
1008
|
+
}>;
|
|
1009
|
+
export declare const Nameplate: FC<NameplateProps>;
|
|
1010
|
+
export type OverlayTrigger = 'click' | 'focus' | 'hover';
|
|
1011
|
+
export interface OverlayBoxProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children' | 'title'> {
|
|
1012
|
+
title: ReactNode;
|
|
1013
|
+
detail?: ReactNode;
|
|
1014
|
+
placement?: OverlayPlacement;
|
|
1015
|
+
responsivePlacement?: FloatingOptions['responsivePlacement'];
|
|
1016
|
+
container?: OverlayContainer;
|
|
1048
1017
|
offset?: FloatingOptions['offset'];
|
|
1049
1018
|
padding?: number;
|
|
1050
1019
|
flip?: boolean;
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1020
|
+
trigger?: OverlayTrigger | OverlayTrigger[];
|
|
1021
|
+
delay?: number | {
|
|
1022
|
+
show: number;
|
|
1023
|
+
hide: number;
|
|
1024
|
+
};
|
|
1025
|
+
overlayClassName?: string;
|
|
1026
|
+
children: ReactElement<{
|
|
1027
|
+
'aria-describedby'?: string;
|
|
1028
|
+
}>;
|
|
1055
1029
|
}
|
|
1056
|
-
export
|
|
1057
|
-
|
|
1030
|
+
export declare class OverlayBox<T extends ElementType | undefined = 'span'> extends Component<PolymorphicClassProps<T, OverlayBoxProps>> {
|
|
1031
|
+
readonly props: PolymorphicClassProps<T, OverlayBoxProps>;
|
|
1032
|
+
protected get componentProps(): Readonly<OverlayBoxProps & AsProps>;
|
|
1058
1033
|
static displayName: string;
|
|
1059
|
-
readonly props: PolymorphicClassProps<T, MenuProps>;
|
|
1060
|
-
protected get componentProps(): Readonly<MenuProps & AsProps>;
|
|
1061
1034
|
accessor open: boolean;
|
|
1062
|
-
|
|
1063
|
-
root: import("react").RefObject<
|
|
1064
|
-
|
|
1065
|
-
panel: import("react").RefObject<HTMLDivElement | null>;
|
|
1066
|
-
media: {
|
|
1067
|
-
query: MediaQueryList;
|
|
1068
|
-
placement: MenuPlacement;
|
|
1069
|
-
}[];
|
|
1035
|
+
id: string;
|
|
1036
|
+
root: import("react").RefObject<HTMLSpanElement | null>;
|
|
1037
|
+
overlay: import("react").RefObject<HTMLDivElement | null>;
|
|
1070
1038
|
position: FloatingPosition;
|
|
1071
|
-
|
|
1072
|
-
|
|
1039
|
+
timer?: ReturnType<typeof setTimeout>;
|
|
1040
|
+
setOpen: (open: boolean) => boolean;
|
|
1041
|
+
hide: () => void;
|
|
1042
|
+
setOpenAfterDelay: (open: boolean) => boolean | undefined;
|
|
1073
1043
|
componentWillUnmount(): void;
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1044
|
+
componentDidMount(): void;
|
|
1045
|
+
componentDidUpdate(previous: OverlayBoxProps): void;
|
|
1046
|
+
contains: (target: EventTarget | null) => boolean;
|
|
1047
|
+
hasTrigger: (trigger: OverlayTrigger) => boolean;
|
|
1048
|
+
handleMouseEnter: (event: MouseEvent$1<HTMLSpanElement>) => void;
|
|
1049
|
+
handleMouseLeave: (event: MouseEvent$1<HTMLSpanElement>) => void;
|
|
1050
|
+
handleFocus: (event: FocusEvent<HTMLSpanElement>) => void;
|
|
1051
|
+
handleBlur: (event: FocusEvent<HTMLSpanElement>) => void;
|
|
1052
|
+
handleClick: (event: MouseEvent$1<HTMLSpanElement>) => void;
|
|
1077
1053
|
handleOutside: ({ target }: PointerEvent) => void;
|
|
1078
|
-
|
|
1079
|
-
handleKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
1080
|
-
handleBlur: (event: FocusEvent<HTMLDivElement>) => void;
|
|
1081
|
-
handleToggle: () => void;
|
|
1082
|
-
handleSelect: ({ target, defaultPrevented }: MouseEvent$1<HTMLDivElement>) => void;
|
|
1054
|
+
handleKeyDown: (event: KeyboardEvent<HTMLSpanElement>) => void;
|
|
1083
1055
|
render(): import("react").JSX.Element;
|
|
1084
1056
|
}
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
}) | (ComponentPropsWithRef<'label'> & {
|
|
1092
|
-
htmlFor: string;
|
|
1093
|
-
});
|
|
1094
|
-
export declare const InputGroupText: PolymorphicComponent<InputGroupTextProps>;
|
|
1095
|
-
export type InputGroupButtonProps = ButtonProps;
|
|
1096
|
-
export declare const InputGroupButton: PolymorphicComponent<ButtonProps>;
|
|
1097
|
-
export interface InputGroupIgnoreProps {
|
|
1098
|
-
children: ReactElement<{
|
|
1099
|
-
className?: string;
|
|
1100
|
-
}>;
|
|
1057
|
+
type HeadingMeta = Record<'id' | 'text', string> & Record<'level' | 'top', number>;
|
|
1058
|
+
export interface PageNavProps extends Omit<NavProps, 'ref'> {
|
|
1059
|
+
depth?: number;
|
|
1060
|
+
minDepth?: number;
|
|
1061
|
+
rootSelector?: string;
|
|
1062
|
+
onItemClick?: (item: HeadingMeta) => void;
|
|
1101
1063
|
}
|
|
1102
|
-
export declare
|
|
1103
|
-
|
|
1104
|
-
|
|
1064
|
+
export declare class PageNav<T extends ElementType | undefined = 'nav'> extends Component<PolymorphicClassProps<T, PageNavProps>> {
|
|
1065
|
+
readonly props: PolymorphicClassProps<T, PageNavProps>;
|
|
1066
|
+
protected get componentProps(): Readonly<PageNavProps & AsProps>;
|
|
1067
|
+
static displayName: string;
|
|
1068
|
+
accessor list: HeadingMeta[];
|
|
1069
|
+
accessor scrollY: number;
|
|
1070
|
+
get currentActiveId(): string;
|
|
1071
|
+
updateScrollY: () => void;
|
|
1072
|
+
componentDidMount(): void;
|
|
1073
|
+
static slugOf(text: string): string;
|
|
1074
|
+
initList(): void;
|
|
1075
|
+
componentWillUnmount(): void;
|
|
1076
|
+
scrollTo: (meta: HeadingMeta) => () => void;
|
|
1077
|
+
renderLink: ({ id, level, text, top }: HeadingMeta) => false | import("react").JSX.Element;
|
|
1078
|
+
render(): import("react").JSX.Element;
|
|
1105
1079
|
}
|
|
1106
|
-
export
|
|
1107
|
-
|
|
1080
|
+
export type ScrollNavProps = NavProps;
|
|
1081
|
+
/**
|
|
1082
|
+
* A horizontal scrolling navigation bar based on Bootstrap's `nav-scroller` pattern.
|
|
1083
|
+
* Automatically shows scroll arrow buttons when nav items overflow the container width.
|
|
1084
|
+
*
|
|
1085
|
+
* @see {@link https://github.com/twbs/bootstrap/blob/main/site/src/assets/examples/offcanvas-navbar/index.astro#L50-L65}
|
|
1086
|
+
*/
|
|
1087
|
+
export declare const ScrollNav: PolymorphicComponent<NavProps>;
|
|
1088
|
+
export declare function elementToImage(element: HTMLElement, type?: string, quality?: number): Promise<string>;
|
|
1089
|
+
export type ShareBoxProps = HTMLAttributes<HTMLDivElement> & ShareData;
|
|
1090
|
+
export declare class ShareBox extends Component<ShareBoxProps> {
|
|
1108
1091
|
static displayName: string;
|
|
1092
|
+
root: import("react").RefObject<HTMLDivElement | null>;
|
|
1093
|
+
accessor loading: boolean;
|
|
1094
|
+
accessor imageURI: string;
|
|
1109
1095
|
componentDidMount(): void;
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1096
|
+
componentWillUnmount(): void;
|
|
1097
|
+
generateImage: () => Promise<void>;
|
|
1098
|
+
share: (event: MouseEvent$1<HTMLImageElement>) => Promise<void>;
|
|
1113
1099
|
render(): import("react").JSX.Element;
|
|
1114
1100
|
}
|
|
1115
|
-
export type
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1101
|
+
export type SpinnerButtonProps = ButtonProps & Pick<SpinnerProps, 'animation'> & {
|
|
1102
|
+
loading?: boolean;
|
|
1103
|
+
};
|
|
1104
|
+
export declare const SpinnerButton: PolymorphicComponent<SpinnerButtonProps>;
|
|
1105
|
+
export interface TableSpinnerProps extends HTMLAttributes<HTMLTableRowElement>, Pick<SpinnerProps, 'animation' | 'theme' | 'size'> {
|
|
1106
|
+
colSpan: number;
|
|
1107
|
+
}
|
|
1108
|
+
export declare const TableSpinner: PolymorphicComponent<TableSpinnerProps>;
|
|
1109
|
+
export interface TextTruncateProps extends HTMLAttributes<HTMLDivElement> {
|
|
1110
|
+
rows?: number;
|
|
1111
|
+
expandText?: ReactNode;
|
|
1112
|
+
collapseText?: ReactNode;
|
|
1113
|
+
}
|
|
1114
|
+
export declare const TextTruncate: PolymorphicComponent<TextTruncateProps>;
|
|
1115
|
+
export interface TimeProps extends Omit<TimeHTMLAttributes<HTMLTimeElement>, 'dateTime'> {
|
|
1116
|
+
dateTime: TimeData;
|
|
1117
|
+
format?: string;
|
|
1118
|
+
}
|
|
1119
|
+
export declare const Time: PolymorphicComponent<TimeProps>;
|
|
1120
|
+
export interface TimeDistanceProps extends HTMLAttributes<HTMLTimeElement> {
|
|
1121
|
+
date: TimeData;
|
|
1122
|
+
unitWords?: Record<string, string>;
|
|
1123
|
+
beforeWord?: string;
|
|
1124
|
+
afterWord?: string;
|
|
1125
|
+
}
|
|
1126
|
+
export declare const TimeDistance: PolymorphicComponent<TimeDistanceProps>;
|
|
1127
|
+
export interface TimelineEvent {
|
|
1128
|
+
title: string;
|
|
1129
|
+
summary?: string;
|
|
1130
|
+
time: [TimeData, TimeData?];
|
|
1131
|
+
link?: string;
|
|
1132
|
+
people?: NameplateProps[];
|
|
1133
|
+
}
|
|
1134
|
+
export interface TimelineProps extends HTMLAttributes<HTMLOListElement> {
|
|
1135
|
+
events: TimelineEvent[];
|
|
1136
|
+
timeFormat?: string;
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* @see {@link https://mdbootstrap.com/docs/standard/extended/timeline/#section-timeline-gradient-bg}
|
|
1140
|
+
*/
|
|
1141
|
+
export declare const Timeline: PolymorphicComponent<TimelineProps>;
|
|
1142
|
+
export interface TypeEchoProps extends ComponentPropsWithRef<'pre'> {
|
|
1143
|
+
text: string;
|
|
1144
|
+
intervals?: number;
|
|
1145
|
+
}
|
|
1146
|
+
export declare const TypeEcho: PolymorphicComponent<TypeEchoProps>;
|
|
1147
|
+
type UserAddressProps = Partial<Record<'email' | 'website', string>>;
|
|
1148
|
+
export interface UserRank extends UserAddressProps {
|
|
1149
|
+
id: number | string;
|
|
1150
|
+
name: string;
|
|
1151
|
+
avatar?: string;
|
|
1152
|
+
score: number;
|
|
1153
|
+
}
|
|
1154
|
+
export interface UserRankViewProps extends HTMLAttributes<HTMLDivElement> {
|
|
1155
|
+
title: string;
|
|
1156
|
+
rank: UserRank[];
|
|
1157
|
+
linkOf?: (user: UserRank) => string;
|
|
1158
|
+
}
|
|
1159
|
+
export declare const UserRankView: PolymorphicComponent<UserRankViewProps>;
|
|
1160
|
+
export interface VerticalMarqueeProps extends HTMLAttributes<HTMLDivElement> {
|
|
1161
|
+
duration?: string;
|
|
1162
|
+
}
|
|
1163
|
+
export declare const VerticalMarquee: PolymorphicComponent<VerticalMarqueeProps>;
|
|
1164
|
+
export declare const ZodiacSigns: string[];
|
|
1165
|
+
export declare const zodiacOf: (year: number) => string;
|
|
1166
|
+
export interface ZodiacBarProps extends HTMLAttributes<HTMLOListElement> {
|
|
1167
|
+
itemClassName?: string;
|
|
1168
|
+
startYear: number;
|
|
1169
|
+
endYear?: number;
|
|
1170
|
+
itemOf?: (year: number, zodiac: string) => {
|
|
1171
|
+
link?: string;
|
|
1172
|
+
title?: ReactNode;
|
|
1173
|
+
};
|
|
1174
|
+
}
|
|
1175
|
+
export declare const ZodiacBar: PolymorphicComponent<ZodiacBarProps>;
|
|
1176
|
+
export type FormProps = ComponentPropsWithRef<'form'> & {
|
|
1177
|
+
validated?: boolean;
|
|
1178
|
+
};
|
|
1179
|
+
export declare const Form: PolymorphicComponent<FormProps>;
|
|
1180
|
+
export type FormFieldsetProps = ComponentPropsWithRef<'fieldset'>;
|
|
1181
|
+
export declare const FormFieldset: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>>;
|
|
1182
|
+
export type FormFieldProps = ComponentPropsWithRef<'div'> & {
|
|
1183
|
+
card?: boolean;
|
|
1184
|
+
};
|
|
1185
|
+
export declare const FormField: PolymorphicComponent<FormFieldProps>;
|
|
1186
|
+
export type FormGroupProps = ComponentPropsWithRef<'div'>;
|
|
1187
|
+
export declare const FormGroup: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
1188
|
+
export type FormFieldContentProps = ComponentPropsWithRef<'div'>;
|
|
1189
|
+
export declare const FormFieldContent: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
1190
|
+
export interface FormValidationProps {
|
|
1191
|
+
validation?: 'valid' | 'invalid';
|
|
1192
|
+
}
|
|
1193
|
+
export type FormLabelProps = ComponentPropsWithRef<'label'> & {
|
|
1194
|
+
plain?: boolean;
|
|
1195
|
+
column?: boolean;
|
|
1196
|
+
controlSize?: 'sm' | 'lg';
|
|
1197
|
+
};
|
|
1198
|
+
export declare const FormLabel: PolymorphicComponent<FormLabelProps>;
|
|
1199
|
+
export declare const ChipInputLabel: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>>;
|
|
1200
|
+
export type FormLegendProps = ComponentPropsWithRef<'legend'> & Pick<FormLabelProps, 'column' | 'controlSize'>;
|
|
1201
|
+
export declare const FormLegend: PolymorphicComponent<FormLegendProps>;
|
|
1202
|
+
export type FormAdornmentProps = Omit<ComponentPropsWithRef<'label'>, 'htmlFor'> & FormValidationProps & {
|
|
1203
|
+
end?: boolean;
|
|
1122
1204
|
size?: 'sm' | 'lg';
|
|
1123
|
-
|
|
1124
|
-
onComplete?: (value: string) => unknown;
|
|
1125
|
-
onValueChange?: (value: string) => unknown;
|
|
1205
|
+
htmlFor?: string;
|
|
1126
1206
|
};
|
|
1127
|
-
export declare const
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1207
|
+
export declare const FormAdornment: PolymorphicComponent<FormAdornmentProps>;
|
|
1208
|
+
export type FormAdornmentTextProps = ComponentPropsWithRef<'span'>;
|
|
1209
|
+
export declare const FormAdornmentText: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
1210
|
+
export declare const FormAdornmentIcon: PolymorphicComponent<IconProps>;
|
|
1211
|
+
export type FormGhostProps = ComponentPropsWithRef<'input'> & FormValidationProps;
|
|
1212
|
+
export declare const FormGhost: PolymorphicComponent<FormGhostProps>;
|
|
1213
|
+
export type CheckboxProps = Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'size'> & FormValidationProps & {
|
|
1214
|
+
size?: 'sm' | 'lg';
|
|
1215
|
+
theme?: ComponentTheme;
|
|
1216
|
+
indeterminate?: boolean;
|
|
1217
|
+
};
|
|
1218
|
+
export declare const Checkbox: PolymorphicComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "type"> & FormValidationProps & {
|
|
1134
1219
|
size?: "sm" | "lg";
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
onValueChange?: (value: string) => unknown;
|
|
1220
|
+
theme?: ComponentTheme;
|
|
1221
|
+
indeterminate?: boolean;
|
|
1138
1222
|
} & {
|
|
1139
1223
|
ref?: Ref<HTMLInputElement>;
|
|
1140
1224
|
}>;
|
|
1141
|
-
export type
|
|
1142
|
-
|
|
1143
|
-
input?: string | HTMLInputElement | null;
|
|
1144
|
-
variant?: 'segments' | 'bar';
|
|
1145
|
-
minLength?: number;
|
|
1146
|
-
messages?: Partial<Record<PasswordStrengthLevel, string>>;
|
|
1147
|
-
weights?: Record<string, number>;
|
|
1148
|
-
thresholds?: number[];
|
|
1149
|
-
scorer?: (password: string) => number;
|
|
1150
|
-
strength?: PasswordStrengthLevel;
|
|
1151
|
-
showText?: boolean;
|
|
1152
|
-
}
|
|
1153
|
-
export declare const PasswordStrength: import("react").ForwardRefExoticComponent<PasswordStrengthProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1154
|
-
export type RadioProps = Omit<ComponentPropsWithRef<'input'>, 'type' | 'size'> & FormValidationProps & {
|
|
1155
|
-
size?: 'sm' | 'lg';
|
|
1225
|
+
export type ChipProps = ComponentPropsWithRef<'button'> & {
|
|
1226
|
+
active?: boolean;
|
|
1156
1227
|
theme?: ComponentTheme;
|
|
1157
1228
|
};
|
|
1158
|
-
export declare const
|
|
1159
|
-
export
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
export
|
|
1163
|
-
export
|
|
1164
|
-
|
|
1229
|
+
export declare const Chip: PolymorphicComponent<ChipProps>;
|
|
1230
|
+
export declare const ChipIcon: PolymorphicComponent<IconProps>;
|
|
1231
|
+
export declare const ChipImage: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>>;
|
|
1232
|
+
export declare const ChipDismiss: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>;
|
|
1233
|
+
export type ChipTokenProps = ComponentPropsWithRef<'span'> & Pick<ChipProps, 'active' | 'theme'>;
|
|
1234
|
+
export declare const ChipToken: PolymorphicComponent<ChipTokenProps>;
|
|
1235
|
+
export type ChipInputProps = ComponentPropsWithoutRef<'div'> & FormValidationProps & {
|
|
1165
1236
|
theme?: ComponentTheme;
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1237
|
+
separator?: string | null;
|
|
1238
|
+
allowDuplicates?: boolean;
|
|
1239
|
+
maxChips?: number | null;
|
|
1240
|
+
createOnBlur?: boolean;
|
|
1241
|
+
dismissible?: boolean;
|
|
1242
|
+
placeholder?: string;
|
|
1243
|
+
onValuesChange?: (values: string[]) => unknown;
|
|
1169
1244
|
};
|
|
1170
|
-
export declare const
|
|
1171
|
-
bubble?: boolean;
|
|
1245
|
+
export declare const ChipInput: PolymorphicComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & FormValidationProps & {
|
|
1172
1246
|
theme?: ComponentTheme;
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1247
|
+
separator?: string | null;
|
|
1248
|
+
allowDuplicates?: boolean;
|
|
1249
|
+
maxChips?: number | null;
|
|
1250
|
+
createOnBlur?: boolean;
|
|
1251
|
+
dismissible?: boolean;
|
|
1252
|
+
placeholder?: string;
|
|
1253
|
+
onValuesChange?: (values: string[]) => unknown;
|
|
1176
1254
|
} & {
|
|
1177
|
-
ref?: Ref<
|
|
1178
|
-
}>;
|
|
1179
|
-
type NativeInputProps$1 = Omit<ComponentPropsWithRef<'input'>, 'ref' | 'type' | 'size'>;
|
|
1180
|
-
export type FormSwitchProps = Omit<ComponentPropsWithRef<'label'>, keyof NativeInputProps$1 | 'children'> & PropsWithChildren<NativeInputProps$1 & FormValidationProps & {
|
|
1181
|
-
size?: 'sm' | 'lg';
|
|
1182
|
-
theme?: ComponentTheme;
|
|
1183
|
-
indicatorWidth?: string;
|
|
1184
|
-
inputRef?: Ref<HTMLInputElement>;
|
|
1185
|
-
inputId?: string;
|
|
1186
|
-
inputClassName?: string;
|
|
1187
|
-
inputStyle?: CSSProperties;
|
|
1255
|
+
ref?: Ref<HTMLDivElement>;
|
|
1188
1256
|
}>;
|
|
1189
|
-
export
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1257
|
+
export interface ComboboxOptionProps extends ComponentPropsWithRef<'button'> {
|
|
1258
|
+
value: string;
|
|
1259
|
+
description?: ReactNode;
|
|
1260
|
+
icon?: string;
|
|
1261
|
+
checkedIcon?: boolean;
|
|
1262
|
+
searchText?: string;
|
|
1193
1263
|
}
|
|
1194
|
-
export declare const
|
|
1195
|
-
export
|
|
1196
|
-
|
|
1197
|
-
flush?: boolean;
|
|
1198
|
-
numbered?: boolean;
|
|
1199
|
-
horizontal?: ListGroupHorizontal;
|
|
1264
|
+
export declare const ComboboxOption: PolymorphicComponent<ComboboxOptionProps>;
|
|
1265
|
+
export interface ComboboxGroupProps extends ComponentPropsWithRef<'div'> {
|
|
1266
|
+
label: ReactNode;
|
|
1200
1267
|
}
|
|
1201
|
-
export
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
interface ListGroupItemStyleProps {
|
|
1210
|
-
theme?: ComponentTheme;
|
|
1211
|
-
action?: boolean;
|
|
1212
|
-
active?: boolean;
|
|
1268
|
+
export declare const ComboboxGroup: PolymorphicComponent<ComboboxGroupProps>;
|
|
1269
|
+
export interface ComboboxProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'defaultValue'>, FormValidationProps {
|
|
1270
|
+
name: string;
|
|
1271
|
+
value?: string | string[];
|
|
1272
|
+
defaultValue?: string | string[];
|
|
1273
|
+
placeholder?: string;
|
|
1274
|
+
multiple?: boolean;
|
|
1275
|
+
menuClassName?: string;
|
|
1213
1276
|
disabled?: boolean;
|
|
1277
|
+
controlSize?: 'sm' | 'lg';
|
|
1278
|
+
search?: boolean;
|
|
1279
|
+
searchNormalize?: boolean;
|
|
1280
|
+
searchPlaceholder?: string;
|
|
1281
|
+
noResultsText?: string;
|
|
1282
|
+
onChange?: (value: string | string[]) => unknown;
|
|
1214
1283
|
}
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
type ListGroupItemButtonAttributes = ComponentPropsWithRef<'button'> & {
|
|
1219
|
-
href?: never;
|
|
1220
|
-
};
|
|
1221
|
-
type ListGroupItemAttributes = ComponentPropsWithRef<'li'> & {
|
|
1222
|
-
href?: never;
|
|
1223
|
-
type?: never;
|
|
1224
|
-
};
|
|
1225
|
-
type ListGroupItemElementAttributes = ListGroupItemLinkAttributes | ListGroupItemButtonAttributes | ListGroupItemAttributes;
|
|
1226
|
-
export type ListGroupItemProps = ListGroupItemStyleProps & ListGroupItemElementAttributes;
|
|
1227
|
-
export declare const ListGroupItem: PolymorphicComponent<ListGroupItemProps>;
|
|
1228
|
-
export interface NavbarProps extends ComponentPropsWithRef<'nav'> {
|
|
1229
|
-
theme?: 'light' | 'dark';
|
|
1230
|
-
expand?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
1231
|
-
translucent?: boolean;
|
|
1232
|
-
}
|
|
1233
|
-
export declare const Navbar: PolymorphicComponent<NavbarProps>;
|
|
1234
|
-
export type NavbarBrandProps = (ComponentPropsWithRef<'a'> & {
|
|
1235
|
-
as?: 'a';
|
|
1236
|
-
}) | (ComponentPropsWithRef<'span'> & {
|
|
1237
|
-
as: 'span';
|
|
1238
|
-
});
|
|
1239
|
-
export declare const NavbarBrand: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>>;
|
|
1240
|
-
export interface NavbarNavProps extends ComponentPropsWithRef<'ul'> {
|
|
1241
|
-
variant?: 'tabs' | 'pills' | 'underline';
|
|
1242
|
-
nav?: boolean;
|
|
1243
|
-
}
|
|
1244
|
-
export declare const NavbarNav: PolymorphicComponent<NavbarNavProps>;
|
|
1245
|
-
export declare const NavbarText: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
1246
|
-
export interface NavbarTogglerProps extends Omit<ComponentPropsWithRef<'button'>, 'children' | 'type'> {
|
|
1247
|
-
expanded?: boolean;
|
|
1248
|
-
}
|
|
1249
|
-
export declare const NavbarToggler: PolymorphicComponent<NavbarTogglerProps>;
|
|
1250
|
-
declare class NavOverflowModel {
|
|
1251
|
-
accessor initialized: boolean;
|
|
1252
|
-
accessor open: boolean;
|
|
1253
|
-
accessor overflowIndices: number[];
|
|
1254
|
-
setOpen: (open: boolean) => boolean;
|
|
1255
|
-
toggle: () => boolean;
|
|
1256
|
-
setOverflowIndices: (indices: number[]) => void;
|
|
1257
|
-
}
|
|
1258
|
-
export interface NavOverflowProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'children'>, Pick<NavProps, 'variant' | 'fill' | 'justified'> {
|
|
1259
|
-
children: ReactNode;
|
|
1260
|
-
collapseBelow?: number | string;
|
|
1261
|
-
id: string;
|
|
1262
|
-
iconPlacement?: 'start' | 'end';
|
|
1263
|
-
menuPlacement?: string;
|
|
1264
|
-
menuStrategy?: 'absolute' | 'fixed';
|
|
1265
|
-
minimumVisibleItems?: number;
|
|
1266
|
-
moreIcon?: ReactNode;
|
|
1267
|
-
moreText?: string | false;
|
|
1268
|
-
onOverflowChange?: (overflowCount: number, visibleCount: number) => unknown;
|
|
1269
|
-
threshold?: number;
|
|
1270
|
-
}
|
|
1271
|
-
export declare class NavOverflow<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, NavOverflowProps>> {
|
|
1272
|
-
readonly props: PolymorphicClassProps<T, NavOverflowProps>;
|
|
1273
|
-
protected get componentProps(): Readonly<NavOverflowProps & AsProps>;
|
|
1284
|
+
export declare class Combobox<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, ComboboxProps>> {
|
|
1285
|
+
readonly props: PolymorphicClassProps<T, ComboboxProps>;
|
|
1286
|
+
protected get componentProps(): Readonly<ComboboxProps & AsProps>;
|
|
1274
1287
|
static displayName: string;
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
private
|
|
1288
|
+
accessor query: string;
|
|
1289
|
+
accessor current: string | string[];
|
|
1290
|
+
accessor visibleOptionCount: number;
|
|
1291
|
+
accessor selectedLabel: string;
|
|
1292
|
+
private menu;
|
|
1293
|
+
private optionObserver?;
|
|
1294
|
+
get values(): string[];
|
|
1280
1295
|
componentDidMount(): void;
|
|
1281
1296
|
componentDidUpdate(): void;
|
|
1282
1297
|
componentWillUnmount(): void;
|
|
1283
|
-
|
|
1284
|
-
private
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1298
|
+
private updateAccessibility;
|
|
1299
|
+
private setCurrent;
|
|
1300
|
+
private handleSearch;
|
|
1301
|
+
private handleClick;
|
|
1302
|
+
private normalize;
|
|
1303
|
+
private matches;
|
|
1304
|
+
private renderChild;
|
|
1305
|
+
private renderHiddenInput;
|
|
1289
1306
|
render(): import("react").JSX.Element;
|
|
1290
1307
|
}
|
|
1291
|
-
export
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
export declare const
|
|
1299
|
-
export type
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
export
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
export declare const Popover: PolymorphicComponent<PopoverProps>;
|
|
1319
|
-
export interface ProgressProps extends ComponentPropsWithRef<'div'> {
|
|
1320
|
-
value: number;
|
|
1321
|
-
min?: number;
|
|
1322
|
-
max?: number;
|
|
1323
|
-
theme?: ComponentTheme;
|
|
1324
|
-
striped?: boolean;
|
|
1325
|
-
animated?: boolean;
|
|
1326
|
-
barProps?: ComponentPropsWithRef<'div'>;
|
|
1308
|
+
export type FormControlProps = Omit<ComponentPropsWithRef<'input'>, 'color'> & FormValidationProps & {
|
|
1309
|
+
plaintext?: boolean;
|
|
1310
|
+
ghost?: boolean;
|
|
1311
|
+
caret?: boolean;
|
|
1312
|
+
color?: boolean;
|
|
1313
|
+
controlSize?: 'sm' | 'lg';
|
|
1314
|
+
};
|
|
1315
|
+
export declare const FormControl: PolymorphicComponent<FormControlProps>;
|
|
1316
|
+
export type FormTextAreaProps = ComponentPropsWithRef<'textarea'> & FormValidationProps & {
|
|
1317
|
+
controlSize?: 'sm' | 'lg';
|
|
1318
|
+
};
|
|
1319
|
+
export declare const FormTextArea: PolymorphicComponent<FormTextAreaProps>;
|
|
1320
|
+
export type FormSelectProps = ComponentPropsWithRef<'select'> & FormValidationProps & {
|
|
1321
|
+
controlSize?: 'sm' | 'lg';
|
|
1322
|
+
};
|
|
1323
|
+
export declare const FormSelect: PolymorphicComponent<FormSelectProps>;
|
|
1324
|
+
export type DatePickerOptions = Partial<DatepickerConfig>;
|
|
1325
|
+
interface DatePickerSettings {
|
|
1326
|
+
options?: DatePickerOptions;
|
|
1327
|
+
inline?: boolean;
|
|
1328
|
+
selectionMode?: DatepickerConfig['selectionMode'];
|
|
1329
|
+
displayMonthsCount?: DatepickerConfig['displayMonthsCount'];
|
|
1330
|
+
selectedDates?: string[];
|
|
1331
|
+
firstWeekday?: DatepickerConfig['firstWeekday'];
|
|
1332
|
+
placement?: DatepickerConfig['placement'];
|
|
1333
|
+
datepickerTheme?: string;
|
|
1334
|
+
onDatesChange?: (dates: string[]) => unknown;
|
|
1327
1335
|
}
|
|
1328
|
-
export
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1336
|
+
export type DatePickerProps = Omit<ComponentPropsWithoutRef<'input'>, 'type'> & DatePickerSettings & FormValidationProps & {
|
|
1337
|
+
enhanced?: boolean;
|
|
1338
|
+
ghost?: boolean;
|
|
1339
|
+
controlSize?: 'sm' | 'lg';
|
|
1340
|
+
};
|
|
1341
|
+
export type DatePickerButtonProps = Extract<ButtonProps, {
|
|
1342
|
+
href?: never;
|
|
1343
|
+
}> & DatePickerSettings & {
|
|
1344
|
+
leadingIcon?: string;
|
|
1345
|
+
};
|
|
1346
|
+
export type DatePickerInlineProps = ComponentPropsWithoutRef<'div'> & DatePickerSettings;
|
|
1347
|
+
export declare const DatePicker: PolymorphicComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type"> & DatePickerSettings & FormValidationProps & {
|
|
1348
|
+
enhanced?: boolean;
|
|
1349
|
+
ghost?: boolean;
|
|
1350
|
+
controlSize?: "sm" | "lg";
|
|
1351
|
+
} & {
|
|
1352
|
+
ref?: Ref<HTMLInputElement>;
|
|
1353
|
+
}>;
|
|
1354
|
+
export declare const DatePickerButton: PolymorphicComponent<DatePickerButtonProps & {
|
|
1355
|
+
ref?: Ref<HTMLButtonElement>;
|
|
1356
|
+
}>;
|
|
1357
|
+
export declare const DatePickerInline: PolymorphicComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & DatePickerSettings & {
|
|
1358
|
+
ref?: Ref<HTMLDivElement>;
|
|
1359
|
+
}>;
|
|
1360
|
+
export type FormTextProps = ComponentPropsWithRef<'small'> & {
|
|
1361
|
+
block?: boolean;
|
|
1362
|
+
};
|
|
1363
|
+
export declare const FormText: PolymorphicComponent<FormTextProps>;
|
|
1364
|
+
export type FormFeedbackProps = Omit<ComponentPropsWithRef<'div'>, 'type'> & {
|
|
1365
|
+
type?: 'valid' | 'invalid';
|
|
1366
|
+
tooltip?: boolean;
|
|
1367
|
+
};
|
|
1368
|
+
export declare const FormFeedback: PolymorphicComponent<FormFeedbackProps>;
|
|
1369
|
+
export type FormFloatingLabelProps = ComponentPropsWithRef<'div'> & {
|
|
1370
|
+
always?: boolean;
|
|
1371
|
+
};
|
|
1372
|
+
export declare const FormFloatingLabel: PolymorphicComponent<FormFloatingLabelProps>;
|
|
1373
|
+
export type InputGroupProps = ComponentPropsWithRef<'div'> & {
|
|
1374
|
+
size?: 'sm' | 'lg';
|
|
1375
|
+
};
|
|
1376
|
+
export declare const InputGroup: PolymorphicComponent<InputGroupProps>;
|
|
1377
|
+
export type InputGroupTextProps = (ComponentPropsWithRef<'span'> & {
|
|
1378
|
+
htmlFor?: never;
|
|
1379
|
+
}) | (ComponentPropsWithRef<'label'> & {
|
|
1380
|
+
htmlFor: string;
|
|
1381
|
+
});
|
|
1382
|
+
export declare const InputGroupText: PolymorphicComponent<InputGroupTextProps>;
|
|
1383
|
+
export type InputGroupButtonProps = ButtonProps;
|
|
1384
|
+
export declare const InputGroupButton: PolymorphicComponent<ButtonProps>;
|
|
1385
|
+
export interface InputGroupIgnoreProps {
|
|
1386
|
+
children: ReactElement<{
|
|
1387
|
+
className?: string;
|
|
1388
|
+
}>;
|
|
1339
1389
|
}
|
|
1340
|
-
export
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
onActiveChange?: (id: string) => unknown;
|
|
1344
|
-
rootMargin?: string | null;
|
|
1345
|
-
scrollRoot?: 'self' | 'window';
|
|
1346
|
-
smoothScroll?: boolean;
|
|
1347
|
-
target?: string;
|
|
1348
|
-
threshold?: number[];
|
|
1349
|
-
topMargin?: string;
|
|
1390
|
+
export declare const InputGroupIgnore: PolymorphicComponent<InputGroupIgnoreProps>;
|
|
1391
|
+
export interface InputGroupMenuProps extends MenuProps {
|
|
1392
|
+
split?: boolean;
|
|
1350
1393
|
}
|
|
1351
|
-
export declare class
|
|
1352
|
-
|
|
1353
|
-
protected get componentProps(): Readonly<ScrollSpyProps & AsProps>;
|
|
1394
|
+
export declare class InputGroupMenu extends Menu {
|
|
1395
|
+
props: InputGroupMenuProps;
|
|
1354
1396
|
static displayName: string;
|
|
1355
|
-
root: import("react").RefObject<HTMLDivElement | null>;
|
|
1356
|
-
store: ScrollSpyModel;
|
|
1357
|
-
private entries;
|
|
1358
|
-
private observer?;
|
|
1359
|
-
private bottomObserver?;
|
|
1360
|
-
private intersecting;
|
|
1361
|
-
private atBottom;
|
|
1362
|
-
private mounted;
|
|
1363
|
-
sentinel: import("react").RefObject<HTMLDivElement | null>;
|
|
1364
1397
|
componentDidMount(): void;
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
handleResize: () => void;
|
|
1369
|
-
handleScroll: () => (Record<"line" | "top" | "height" | "width" | "left", number> & {
|
|
1370
|
-
atBottom: boolean;
|
|
1371
|
-
}) | undefined;
|
|
1372
|
-
private getRootHeight;
|
|
1373
|
-
private getRootMargin;
|
|
1374
|
-
private rebuildObservers;
|
|
1375
|
-
handleNavigationClick: (event: globalThis.MouseEvent) => void;
|
|
1376
|
-
private getActivationLine;
|
|
1377
|
-
private updateGuides;
|
|
1378
|
-
private updateActive;
|
|
1379
|
-
renderDebug: () => import("react").ReactPortal | null;
|
|
1398
|
+
handlePanelClick: ComponentPropsWithRef<'div'>['onClick'];
|
|
1399
|
+
handleTriggerKeyDown: KeyboardEventHandler<HTMLElement>;
|
|
1400
|
+
handleBlur: (event: FocusEvent<HTMLElement>) => void;
|
|
1380
1401
|
render(): import("react").JSX.Element;
|
|
1381
1402
|
}
|
|
1382
|
-
export type
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1403
|
+
export type OTPInputProps = Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'maxLength' | 'size'> & FormValidationProps & {
|
|
1404
|
+
length: number;
|
|
1405
|
+
type?: 'numeric' | 'alphanumeric' | 'alpha';
|
|
1406
|
+
mask?: boolean;
|
|
1407
|
+
groups?: number[];
|
|
1408
|
+
separator?: string;
|
|
1409
|
+
connected?: boolean;
|
|
1410
|
+
size?: 'sm' | 'lg';
|
|
1411
|
+
wrapperClassName?: string;
|
|
1412
|
+
onComplete?: (value: string) => unknown;
|
|
1413
|
+
onValueChange?: (value: string) => unknown;
|
|
1414
|
+
};
|
|
1415
|
+
export declare const OTPInput: PolymorphicComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "type" | "maxLength"> & FormValidationProps & {
|
|
1416
|
+
length: number;
|
|
1417
|
+
type?: "numeric" | "alphanumeric" | "alpha";
|
|
1418
|
+
mask?: boolean;
|
|
1419
|
+
groups?: number[];
|
|
1420
|
+
separator?: string;
|
|
1421
|
+
connected?: boolean;
|
|
1422
|
+
size?: "sm" | "lg";
|
|
1423
|
+
wrapperClassName?: string;
|
|
1424
|
+
onComplete?: (value: string) => unknown;
|
|
1425
|
+
onValueChange?: (value: string) => unknown;
|
|
1426
|
+
} & {
|
|
1427
|
+
ref?: Ref<HTMLInputElement>;
|
|
1428
|
+
}>;
|
|
1429
|
+
export type PasswordStrengthLevel = 'weak' | 'fair' | 'good' | 'strong';
|
|
1430
|
+
export interface PasswordStrengthProps extends ComponentPropsWithoutRef<'div'> {
|
|
1431
|
+
input?: string | HTMLInputElement | null;
|
|
1432
|
+
variant?: 'segments' | 'bar';
|
|
1433
|
+
minLength?: number;
|
|
1434
|
+
messages?: Partial<Record<PasswordStrengthLevel, string>>;
|
|
1435
|
+
weights?: Record<string, number>;
|
|
1436
|
+
thresholds?: number[];
|
|
1437
|
+
scorer?: (password: string) => number;
|
|
1438
|
+
strength?: PasswordStrengthLevel;
|
|
1439
|
+
showText?: boolean;
|
|
1394
1440
|
}
|
|
1395
|
-
export declare const
|
|
1396
|
-
|
|
1397
|
-
|
|
1441
|
+
export declare const PasswordStrength: import("react").ForwardRefExoticComponent<PasswordStrengthProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1442
|
+
export type RadioProps = Omit<ComponentPropsWithRef<'input'>, 'type' | 'size'> & FormValidationProps & {
|
|
1443
|
+
size?: 'sm' | 'lg';
|
|
1398
1444
|
theme?: ComponentTheme;
|
|
1399
|
-
}
|
|
1400
|
-
export
|
|
1401
|
-
export
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
export
|
|
1405
|
-
export
|
|
1406
|
-
|
|
1407
|
-
export interface TabProps extends ComponentPropsWithRef<'div'> {
|
|
1408
|
-
eventKey: string;
|
|
1409
|
-
label: ReactNode;
|
|
1410
|
-
disabled?: boolean;
|
|
1411
|
-
}
|
|
1412
|
-
export declare const Tab: PolymorphicComponent<TabProps>;
|
|
1413
|
-
export interface TabsProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange'> {
|
|
1414
|
-
activeKey?: string;
|
|
1415
|
-
defaultActiveKey?: string;
|
|
1416
|
-
fade?: boolean;
|
|
1417
|
-
id: string;
|
|
1418
|
-
onChange?: (key: string) => unknown;
|
|
1419
|
-
orientation?: 'horizontal' | 'vertical';
|
|
1420
|
-
variant?: 'tabs' | 'pills' | 'underline' | 'list-group';
|
|
1421
|
-
}
|
|
1422
|
-
export declare class Tabs<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, TabsProps>> {
|
|
1423
|
-
static displayName: string;
|
|
1424
|
-
readonly props: PolymorphicClassProps<T, TabsProps>;
|
|
1425
|
-
protected get componentProps(): Readonly<TabsProps & AsProps>;
|
|
1426
|
-
get tabs(): import("react").ReactElement<TabProps, string | import("react").JSXElementConstructor<any>>[];
|
|
1427
|
-
root: import("react").RefObject<HTMLDivElement | null>;
|
|
1428
|
-
accessor selectedKey: string;
|
|
1429
|
-
get activeKey(): string;
|
|
1430
|
-
handleClick: (event: MouseEvent$1<HTMLDivElement>) => void;
|
|
1431
|
-
handleKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
1432
|
-
activate: (key: string) => void;
|
|
1433
|
-
tabId: (key: string) => string;
|
|
1434
|
-
panelId: (key: string) => string;
|
|
1435
|
-
renderTabs: () => import("react").JSX.Element;
|
|
1436
|
-
renderPanels: () => import("react").JSX.Element;
|
|
1437
|
-
render(): import("react").JSX.Element;
|
|
1438
|
-
}
|
|
1439
|
-
export interface TableProps extends ComponentPropsWithRef<'table'> {
|
|
1440
|
-
striped?: boolean;
|
|
1441
|
-
stripedColumns?: boolean;
|
|
1442
|
-
hover?: boolean;
|
|
1443
|
-
bordered?: boolean;
|
|
1444
|
-
borderless?: boolean;
|
|
1445
|
-
small?: boolean;
|
|
1446
|
-
responsive?: boolean | Breakpoint;
|
|
1447
|
-
}
|
|
1448
|
-
export declare const Table: PolymorphicComponent<TableProps>;
|
|
1449
|
-
export type ToastPosition = 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
|
|
1450
|
-
export interface ToastMessage extends Pick<ToastItemProps, 'theme' | 'translucent' | 'instant' | 'role'> {
|
|
1451
|
-
id?: string;
|
|
1452
|
-
title?: ReactNode;
|
|
1453
|
-
body: ReactNode;
|
|
1454
|
-
delay?: number;
|
|
1455
|
-
}
|
|
1456
|
-
interface ToastEntry extends ToastMessage {
|
|
1457
|
-
openedAt: number;
|
|
1458
|
-
closedAt?: number;
|
|
1459
|
-
timer?: ReturnType<typeof setTimeout>;
|
|
1460
|
-
resolve?: (value: ToastEntry) => void;
|
|
1461
|
-
}
|
|
1462
|
-
export interface ToastContainerProps extends ComponentPropsWithRef<'div'> {
|
|
1463
|
-
position?: ToastPosition | 'static';
|
|
1464
|
-
}
|
|
1465
|
-
export declare const ToastContainer: PolymorphicComponent<ToastContainerProps>;
|
|
1466
|
-
export interface ToastItemProps extends ComponentPropsWithRef<'div'> {
|
|
1445
|
+
};
|
|
1446
|
+
export declare const Radio: PolymorphicComponent<RadioProps>;
|
|
1447
|
+
export type FormCheckProps = CheckboxProps & Pick<ComponentPropsWithRef<'input'>, 'ref'> & {
|
|
1448
|
+
type?: 'checkbox' | 'radio';
|
|
1449
|
+
};
|
|
1450
|
+
export declare const FormCheck: PolymorphicComponent<FormCheckProps>;
|
|
1451
|
+
export type FormRangeProps = Omit<ComponentPropsWithoutRef<'input'>, 'type'> & FormValidationProps & {
|
|
1452
|
+
bubble?: boolean;
|
|
1467
1453
|
theme?: ComponentTheme;
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
}
|
|
1472
|
-
export declare const
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
renderMessage: ({ id, openedAt, title, body, theme, translucent, instant, role, delay }: ToastEntry) => import("react").JSX.Element;
|
|
1482
|
-
handleDismiss: ({ target }: MouseEvent$1<HTMLDivElement>) => void;
|
|
1483
|
-
constructor(TimeScalar?: typeof Timestamp);
|
|
1484
|
-
open(message: ToastMessage): Promise<ToastEntry>;
|
|
1485
|
-
close(id: string): void;
|
|
1486
|
-
}
|
|
1454
|
+
formatter?: (value: number) => string;
|
|
1455
|
+
wrapperClassName?: string;
|
|
1456
|
+
onValueChange?: (value: number) => unknown;
|
|
1457
|
+
};
|
|
1458
|
+
export declare const FormRange: PolymorphicComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type"> & FormValidationProps & {
|
|
1459
|
+
bubble?: boolean;
|
|
1460
|
+
theme?: ComponentTheme;
|
|
1461
|
+
formatter?: (value: number) => string;
|
|
1462
|
+
wrapperClassName?: string;
|
|
1463
|
+
onValueChange?: (value: number) => unknown;
|
|
1464
|
+
} & {
|
|
1465
|
+
ref?: Ref<HTMLInputElement>;
|
|
1466
|
+
}>;
|
|
1487
1467
|
type NativeInputProps = Omit<ComponentPropsWithRef<'input'>, 'ref' | 'type' | 'size'>;
|
|
1488
|
-
export type
|
|
1489
|
-
|
|
1490
|
-
variant?: 'solid' | 'outline' | 'subtle' | 'text';
|
|
1468
|
+
export type FormSwitchProps = Omit<ComponentPropsWithRef<'label'>, keyof NativeInputProps | 'children'> & PropsWithChildren<NativeInputProps & FormValidationProps & {
|
|
1469
|
+
size?: 'sm' | 'lg';
|
|
1491
1470
|
theme?: ComponentTheme;
|
|
1492
|
-
|
|
1471
|
+
indicatorWidth?: string;
|
|
1493
1472
|
inputRef?: Ref<HTMLInputElement>;
|
|
1473
|
+
inputId?: string;
|
|
1494
1474
|
inputClassName?: string;
|
|
1495
1475
|
inputStyle?: CSSProperties;
|
|
1496
|
-
}
|
|
1497
|
-
export declare const
|
|
1498
|
-
export
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
value?: string | number | boolean | null;
|
|
1503
|
-
theme?: ComponentTheme;
|
|
1504
|
-
variant?: 'solid' | 'outline' | 'subtle' | 'text' | 'link';
|
|
1505
|
-
onToggled?: (targets: HTMLElement[]) => unknown;
|
|
1506
|
-
}
|
|
1507
|
-
export declare class Toggler<T extends ElementType | undefined = 'button'> extends Component<PolymorphicClassProps<T, TogglerProps>> {
|
|
1508
|
-
static displayName: string;
|
|
1509
|
-
readonly props: PolymorphicClassProps<T, TogglerProps>;
|
|
1510
|
-
protected get componentProps(): Readonly<Omit<TogglerProps, 'as'> & AsProps>;
|
|
1511
|
-
handleClick: (event: MouseEvent$1<HTMLElement>) => void;
|
|
1512
|
-
handleKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
1513
|
-
render(): import("react").JSX.Element;
|
|
1514
|
-
}
|
|
1515
|
-
export type TooltipProps = OverlayTriggerProps;
|
|
1516
|
-
export declare const Tooltip: PolymorphicComponent<OverlayTriggerProps>;
|
|
1476
|
+
}>;
|
|
1477
|
+
export declare const FormSwitch: PolymorphicComponent<FormSwitchProps>;
|
|
1478
|
+
export declare function animate(name: string): RefCallback<Element>;
|
|
1479
|
+
export type VariantColor = ComponentTheme;
|
|
1480
|
+
export declare const VariantColors: VariantColor[];
|
|
1481
|
+
export declare function text2color(raw: string, excludeColors?: VariantColor[]): ComponentTheme;
|
|
1517
1482
|
export {};
|