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