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