idea-react 3.0.0-beta.1 → 3.0.0-beta.2
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 +9 -1
- package/ReadMe.md +34 -6
- package/dist/index.d.mts +270 -186
- package/dist/index.d.ts +270 -186
- package/dist/index.js +16 -16
- package/dist/index.mjs +15 -15
- package/dist/style.css +0 -3
- package/package.json +1 -1
- package/source/Accordion.tsx +61 -37
- package/source/Alert.tsx +30 -15
- package/source/Avatar.tsx +55 -50
- package/source/Badge.tsx +16 -16
- package/source/Breadcrumb.tsx +36 -22
- package/source/Button.tsx +63 -69
- package/source/ButtonGroup.tsx +21 -25
- package/source/Card.tsx +67 -59
- package/source/Carousel/index.tsx +22 -21
- package/source/CloseButton.tsx +20 -15
- package/source/Collapse.tsx +74 -19
- package/source/Drawer.tsx +40 -17
- package/source/Extension/ClickBoundary.tsx +24 -5
- package/source/Extension/CodeBlock.tsx +64 -0
- package/source/Extension/Countdown.tsx +21 -9
- package/source/Extension/Editor.tsx +53 -18
- package/source/Extension/EditorHTML.tsx +7 -3
- package/source/Extension/HorizontalMarquee/index.tsx +69 -45
- package/source/Extension/Icon.tsx +15 -14
- package/source/Extension/Loading.tsx +20 -17
- package/source/Extension/MonthCalendar.tsx +26 -10
- package/source/Extension/OverlayBox.tsx +28 -15
- package/source/Extension/PageNav.tsx +16 -7
- package/source/Extension/ScrollNav/Scroller.tsx +21 -5
- package/source/Extension/ScrollNav/index.tsx +32 -7
- package/source/Extension/Select.tsx +12 -11
- package/source/Extension/SpinnerButton.tsx +19 -24
- package/source/Extension/TableSpinner.tsx +10 -14
- package/source/Extension/TextTruncate/index.tsx +17 -13
- package/source/Extension/Time.tsx +7 -5
- package/source/Extension/TimeDistance.tsx +22 -18
- package/source/Extension/Timeline/index.tsx +37 -34
- package/source/Extension/TypeEcho/Content.tsx +79 -14
- package/source/Extension/TypeEcho/index.tsx +13 -5
- package/source/Extension/UserRank/Address.tsx +17 -15
- package/source/Extension/UserRank/index.tsx +79 -84
- package/source/Extension/VerticalMarquee/index.tsx +14 -16
- package/source/Extension/ZodiacBar.tsx +40 -32
- package/source/Form/Adorn.tsx +30 -32
- package/source/Form/Checkbox.tsx +9 -5
- package/source/Form/ChipInput.tsx +9 -5
- package/source/Form/Chips.tsx +41 -39
- package/source/Form/Combobox.tsx +80 -61
- package/source/Form/Control.tsx +53 -58
- package/source/Form/DatePicker.tsx +74 -65
- package/source/Form/Feedback.tsx +18 -19
- package/source/Form/FloatingLabel.tsx +16 -19
- package/source/Form/InputGroup.tsx +27 -26
- package/source/Form/OTP.tsx +30 -12
- package/source/Form/Primitives.tsx +47 -39
- package/source/Form/Radio.tsx +25 -22
- package/source/Form/Range.tsx +30 -12
- package/source/Form/Switch.tsx +43 -40
- package/source/Grid.tsx +67 -59
- package/source/Image.tsx +10 -6
- package/source/ListGroup.tsx +57 -69
- package/source/Menu.tsx +128 -66
- package/source/NativeDialog/index.tsx +51 -29
- package/source/Nav.tsx +46 -46
- package/source/NavOverflow/index.tsx +26 -10
- package/source/Navbar.tsx +60 -55
- package/source/Pagination.tsx +63 -69
- package/source/Placeholder.tsx +47 -43
- package/source/Polymorphic.ts +57 -0
- package/source/Popover.tsx +34 -31
- package/source/Progress/index.tsx +59 -54
- package/source/ScrollSpy/index.tsx +48 -33
- package/source/Spinner.tsx +27 -23
- package/source/Stack.tsx +25 -0
- package/source/Stepper.tsx +46 -40
- package/source/Tab.tsx +40 -27
- package/source/Table.tsx +53 -42
- package/source/Toast.tsx +62 -47
- package/source/ToggleButton.tsx +40 -37
- package/source/Toggler.tsx +17 -8
- package/source/Tooltip.tsx +31 -29
- package/source/index.ts +2 -0
- package/source/Extension/CodeBlock/index.tsx +0 -58
- package/source/Extension/CodeBlock/style.module.css +0 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,34 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, CSSProperties, Component, ComponentPropsWithRef, ComponentPropsWithoutRef, DetailedHTMLProps, DialogHTMLAttributes, FC, FocusEvent, HTMLAttributes,
|
|
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
2
|
import { ObservedComponent } from "mobx-react-helper";
|
|
3
3
|
import { TimeData, Timestamp } from "web-utility";
|
|
4
4
|
import { Defer } from "iterable-observer";
|
|
5
5
|
import { LiveProvider } from "react-live";
|
|
6
6
|
import { DatepickerConfig } from "bootstrap/js/src/datepicker.js";
|
|
7
|
-
import { WrapperProps } from "@react-editor-js/core";
|
|
7
|
+
import { EditorCore, WrapperProps } from "@react-editor-js/core";
|
|
8
8
|
import { OutputData } from "@editorjs/editorjs";
|
|
9
|
+
export interface AsProps<T extends ElementType = ElementType> {
|
|
10
|
+
as?: T;
|
|
11
|
+
}
|
|
12
|
+
type RequiredKeys<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? never : K; }[keyof T];
|
|
13
|
+
type TargetProps<T, P extends object> = T extends unknown ? Omit<T, keyof P | 'as'> & Pick<T, Extract<RequiredKeys<T>, keyof P>> : never;
|
|
14
|
+
type ReadonlyTargetProps<T, P extends object> = T extends unknown ? Readonly<TargetProps<T, P>> : never;
|
|
15
|
+
type PolymorphicRef<T extends ElementType> = T extends unknown ? 'ref' extends keyof ComponentPropsWithRef<T> ? ComponentPropsWithRef<T>['ref'] : never : never;
|
|
16
|
+
export type PolymorphicProps<T extends ElementType, P extends object = {}> = P extends unknown ? Omit<P, 'as' | 'ref'> & TargetProps<ComponentPropsWithRef<T>, P> & {
|
|
17
|
+
ref?: NoInfer<PolymorphicRef<T>>;
|
|
18
|
+
} & AsProps<T> : never;
|
|
19
|
+
export type PolymorphicClassProps<T extends ElementType | undefined, P extends object = {}> = P extends unknown ? Readonly<Omit<P, 'as' | 'ref'> & {
|
|
20
|
+
as?: T;
|
|
21
|
+
}> & NoInfer<[T] extends [undefined] ? {} : ReadonlyTargetProps<ComponentPropsWithoutRef<Exclude<T, undefined>>, P>> : never;
|
|
22
|
+
export interface PolymorphicComponent<P extends object> {
|
|
23
|
+
<T extends ElementType | undefined>(props: {
|
|
24
|
+
as: T;
|
|
25
|
+
} & ([T] extends [undefined] ? P : NoInfer<PolymorphicProps<Exclude<T, undefined>, P>>)): ReactNode;
|
|
26
|
+
(props: P & {
|
|
27
|
+
as?: never;
|
|
28
|
+
}): ReactNode;
|
|
29
|
+
displayName?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const polymorphic: <P extends object>(component: FC<P & AsProps>) => PolymorphicComponent<P>;
|
|
9
32
|
export type ComponentTheme = 'primary' | 'accent' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | 'inverse';
|
|
10
33
|
interface ButtonStyleProps {
|
|
11
34
|
variant?: 'solid' | 'outline' | 'subtle' | 'text' | 'link' | false;
|
|
@@ -24,26 +47,28 @@ type ButtonAttributes = ComponentPropsWithRef<'button'> & {
|
|
|
24
47
|
};
|
|
25
48
|
type ButtonElementAttributes = ButtonAttributes | ButtonLinkAttributes;
|
|
26
49
|
export type ButtonProps = ButtonStyleProps & ButtonElementAttributes;
|
|
27
|
-
export declare const Button:
|
|
50
|
+
export declare const Button: PolymorphicComponent<ButtonProps>;
|
|
28
51
|
export type ButtonInputProps = Omit<ComponentPropsWithRef<'input'>, 'size'> & ButtonStyleProps;
|
|
29
|
-
export declare const ButtonInput:
|
|
52
|
+
export declare const ButtonInput: PolymorphicComponent<ButtonInputProps>;
|
|
30
53
|
export interface AccordionProps extends ComponentPropsWithRef<'div'> {
|
|
31
54
|
theme?: ComponentTheme;
|
|
32
55
|
size?: 'sm';
|
|
33
56
|
flush?: boolean;
|
|
34
57
|
gap?: boolean;
|
|
35
58
|
}
|
|
36
|
-
export declare const Accordion:
|
|
37
|
-
export declare const AccordionItem:
|
|
59
|
+
export declare const Accordion: PolymorphicComponent<AccordionProps>;
|
|
60
|
+
export declare const AccordionItem: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>>;
|
|
38
61
|
export interface AccordionHeaderProps extends ComponentPropsWithRef<'summary'> {
|
|
39
62
|
icon?: string | false;
|
|
40
63
|
}
|
|
41
|
-
export declare const AccordionHeader:
|
|
42
|
-
export declare const AccordionBody:
|
|
64
|
+
export declare const AccordionHeader: PolymorphicComponent<AccordionHeaderProps>;
|
|
65
|
+
export declare const AccordionBody: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
43
66
|
export interface AccordionToggleProps extends ComponentPropsWithoutRef<'button'>, Pick<ButtonProps, 'variant' | 'theme' | 'size' | 'styled' | 'icon'> {
|
|
44
67
|
target: string;
|
|
45
68
|
}
|
|
46
|
-
export declare class AccordionToggle extends Component<AccordionToggleProps
|
|
69
|
+
export declare class AccordionToggle<T extends ElementType | undefined = 'button'> extends Component<PolymorphicClassProps<T, AccordionToggleProps>> {
|
|
70
|
+
readonly props: PolymorphicClassProps<T, AccordionToggleProps>;
|
|
71
|
+
protected get componentProps(): Readonly<AccordionToggleProps & AsProps>;
|
|
47
72
|
static displayName: string;
|
|
48
73
|
accessor expanded: boolean;
|
|
49
74
|
names: Map<HTMLDetailsElement, string>;
|
|
@@ -64,7 +89,9 @@ export interface AlertProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
64
89
|
onClose?: () => unknown;
|
|
65
90
|
onClosed?: () => unknown;
|
|
66
91
|
}
|
|
67
|
-
export declare class Alert extends Component<AlertProps
|
|
92
|
+
export declare class Alert<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, AlertProps>> {
|
|
93
|
+
readonly props: PolymorphicClassProps<T, AlertProps>;
|
|
94
|
+
protected get componentProps(): Readonly<AlertProps & AsProps>;
|
|
68
95
|
static displayName: string;
|
|
69
96
|
accessor hiding: boolean;
|
|
70
97
|
accessor closed: boolean;
|
|
@@ -80,8 +107,8 @@ export declare class Alert extends Component<AlertProps> {
|
|
|
80
107
|
handleTransitionEnd: (event: TransitionEvent<HTMLDivElement>) => void;
|
|
81
108
|
render(): import("react").JSX.Element;
|
|
82
109
|
}
|
|
83
|
-
export declare const AlertLink:
|
|
84
|
-
export declare const AlertHeading:
|
|
110
|
+
export declare const AlertLink: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>>;
|
|
111
|
+
export declare const AlertHeading: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>>;
|
|
85
112
|
export declare function animate(name: string): RefCallback<Element>;
|
|
86
113
|
export type AvatarSize = 'xs' | 'sm' | 'lg' | 'xl';
|
|
87
114
|
export type AvatarStatus = 'online' | 'offline' | 'busy' | 'away';
|
|
@@ -98,12 +125,12 @@ export interface AvatarProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
98
125
|
status?: AvatarStatus;
|
|
99
126
|
statusLabel?: string;
|
|
100
127
|
}
|
|
101
|
-
export declare const Avatar:
|
|
128
|
+
export declare const Avatar: PolymorphicComponent<AvatarProps>;
|
|
102
129
|
export interface AvatarStackProps extends HTMLAttributes<HTMLDivElement> {
|
|
103
130
|
size?: AvatarSize;
|
|
104
131
|
}
|
|
105
|
-
export declare const AvatarImage:
|
|
106
|
-
export declare const AvatarStack:
|
|
132
|
+
export declare const AvatarImage: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>>;
|
|
133
|
+
export declare const AvatarStack: PolymorphicComponent<AvatarStackProps>;
|
|
107
134
|
interface BadgeStyleProps {
|
|
108
135
|
variant?: 'solid' | 'subtle' | 'outline';
|
|
109
136
|
theme?: ComponentTheme;
|
|
@@ -116,21 +143,21 @@ type BadgeElementAttributes = (ComponentPropsWithRef<'span'> & {
|
|
|
116
143
|
href?: never;
|
|
117
144
|
}) | BadgeLinkAttributes;
|
|
118
145
|
export type BadgeProps = BadgeStyleProps & BadgeElementAttributes;
|
|
119
|
-
export declare const Badge:
|
|
120
|
-
export declare const Breadcrumb:
|
|
121
|
-
export declare const BreadcrumbItem:
|
|
146
|
+
export declare const Badge: PolymorphicComponent<BadgeProps>;
|
|
147
|
+
export declare const Breadcrumb: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>>;
|
|
148
|
+
export declare const BreadcrumbItem: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>>;
|
|
122
149
|
export interface BreadcrumbLinkProps extends ComponentPropsWithRef<'a'> {
|
|
123
150
|
active?: boolean;
|
|
124
151
|
}
|
|
125
|
-
export declare const BreadcrumbLink:
|
|
126
|
-
export declare const BreadcrumbDivider:
|
|
152
|
+
export declare const BreadcrumbLink: PolymorphicComponent<BreadcrumbLinkProps>;
|
|
153
|
+
export declare const BreadcrumbDivider: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>>;
|
|
127
154
|
export interface ButtonGroupProps extends ComponentPropsWithRef<'div'> {
|
|
128
155
|
vertical?: boolean;
|
|
129
156
|
size?: 'xs' | 'sm' | 'lg';
|
|
130
157
|
divider?: boolean;
|
|
131
158
|
}
|
|
132
|
-
export declare const ButtonGroup:
|
|
133
|
-
export declare const ButtonToolbar:
|
|
159
|
+
export declare const ButtonGroup: PolymorphicComponent<ButtonGroupProps>;
|
|
160
|
+
export declare const ButtonToolbar: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
134
161
|
export interface CardProps extends ComponentPropsWithRef<'div'> {
|
|
135
162
|
row?: boolean;
|
|
136
163
|
body?: boolean;
|
|
@@ -138,22 +165,19 @@ export interface CardProps extends ComponentPropsWithRef<'div'> {
|
|
|
138
165
|
subtle?: boolean;
|
|
139
166
|
translucent?: boolean;
|
|
140
167
|
}
|
|
141
|
-
export declare const Card:
|
|
168
|
+
export declare const Card: PolymorphicComponent<CardProps>;
|
|
142
169
|
export interface CardImageProps extends ComponentPropsWithRef<'img'> {
|
|
143
170
|
placement?: 'top' | 'bottom' | 'start' | 'end';
|
|
144
171
|
}
|
|
145
|
-
export declare const CardImage:
|
|
146
|
-
export declare const CardSubtitle:
|
|
147
|
-
export declare const CardGroup:
|
|
148
|
-
export declare const CardImageOverlay:
|
|
149
|
-
export declare const CardHeader:
|
|
150
|
-
export declare const CardBody:
|
|
151
|
-
export declare const CardFooter:
|
|
152
|
-
export
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
export declare const CardTitle: FC<CardTitleProps>;
|
|
156
|
-
export declare const CardText: FC<ComponentPropsWithRef<'p'>>;
|
|
172
|
+
export declare const CardImage: PolymorphicComponent<CardImageProps>;
|
|
173
|
+
export declare const CardSubtitle: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>>;
|
|
174
|
+
export declare const CardGroup: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
175
|
+
export declare const CardImageOverlay: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
176
|
+
export declare const CardHeader: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
177
|
+
export declare const CardBody: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
178
|
+
export declare const CardFooter: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
179
|
+
export declare const CardTitle: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>>;
|
|
180
|
+
export declare const CardText: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>>;
|
|
157
181
|
type CarouselEnds = 'loop' | 'wrap' | 'stop';
|
|
158
182
|
declare class CarouselModel {
|
|
159
183
|
private count;
|
|
@@ -195,7 +219,7 @@ export interface CarouselSlideProps extends ComponentPropsWithRef<'div'> {
|
|
|
195
219
|
interval?: number;
|
|
196
220
|
active?: boolean;
|
|
197
221
|
}
|
|
198
|
-
export declare const CarouselSlide:
|
|
222
|
+
export declare const CarouselSlide: PolymorphicComponent<CarouselSlideProps>;
|
|
199
223
|
export interface CarouselProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange'> {
|
|
200
224
|
autoplay?: boolean;
|
|
201
225
|
center?: boolean;
|
|
@@ -214,7 +238,8 @@ export interface CarouselProps extends Omit<ComponentPropsWithRef<'div'>, 'onCha
|
|
|
214
238
|
pause?: boolean | 'hover';
|
|
215
239
|
playPause?: boolean;
|
|
216
240
|
}
|
|
217
|
-
export declare class Carousel extends Component<CarouselProps
|
|
241
|
+
export declare class Carousel<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, CarouselProps>> {
|
|
242
|
+
readonly props: PolymorphicClassProps<T, CarouselProps>;
|
|
218
243
|
static displayName: string;
|
|
219
244
|
root: import("react").RefObject<HTMLDivElement>;
|
|
220
245
|
track: import("react").RefObject<HTMLDivElement>;
|
|
@@ -244,7 +269,7 @@ export declare class Carousel extends Component<CarouselProps> {
|
|
|
244
269
|
export interface CloseButtonProps extends ComponentPropsWithRef<'button'> {
|
|
245
270
|
dismiss?: string;
|
|
246
271
|
}
|
|
247
|
-
export declare const CloseButton:
|
|
272
|
+
export declare const CloseButton: PolymorphicComponent<CloseButtonProps>;
|
|
248
273
|
export interface CollapseProps extends ComponentPropsWithoutRef<'div'> {
|
|
249
274
|
horizontal?: boolean;
|
|
250
275
|
open?: boolean;
|
|
@@ -252,7 +277,9 @@ export interface CollapseProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
252
277
|
parent?: string;
|
|
253
278
|
onOpenChange?: (open: boolean) => unknown;
|
|
254
279
|
}
|
|
255
|
-
export declare class Collapse extends Component<CollapseProps
|
|
280
|
+
export declare class Collapse<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, CollapseProps>> {
|
|
281
|
+
readonly props: PolymorphicClassProps<T, CollapseProps>;
|
|
282
|
+
protected get componentProps(): Readonly<CollapseProps & AsProps>;
|
|
256
283
|
static displayName: string;
|
|
257
284
|
accessor expanded: boolean;
|
|
258
285
|
root: import("react").RefObject<HTMLDivElement>;
|
|
@@ -272,7 +299,9 @@ export interface CollapseToggleProps extends HTMLAttributes<HTMLElement>, Pick<B
|
|
|
272
299
|
href?: string;
|
|
273
300
|
type?: 'button' | 'submit' | 'reset';
|
|
274
301
|
}
|
|
275
|
-
export declare class CollapseToggle extends Component<CollapseToggleProps
|
|
302
|
+
export declare class CollapseToggle<T extends ElementType | undefined = 'button'> extends Component<PolymorphicClassProps<T, CollapseToggleProps>> {
|
|
303
|
+
readonly props: PolymorphicClassProps<T, CollapseToggleProps>;
|
|
304
|
+
protected get componentProps(): Readonly<PolymorphicClassProps<T, CollapseToggleProps>>;
|
|
276
305
|
static displayName: string;
|
|
277
306
|
accessor expanded: boolean;
|
|
278
307
|
accessor controls: string;
|
|
@@ -294,7 +323,7 @@ export interface ContainerProps extends ComponentPropsWithRef<'div'> {
|
|
|
294
323
|
fluid?: boolean;
|
|
295
324
|
breakpoint?: Breakpoint;
|
|
296
325
|
}
|
|
297
|
-
export declare const Container:
|
|
326
|
+
export declare const Container: PolymorphicComponent<ContainerProps>;
|
|
298
327
|
export type RowCols = number | 'auto';
|
|
299
328
|
export interface RowProps extends ComponentPropsWithRef<'div'> {
|
|
300
329
|
cols?: RowCols;
|
|
@@ -304,7 +333,7 @@ export interface RowProps extends ComponentPropsWithRef<'div'> {
|
|
|
304
333
|
xl?: RowCols;
|
|
305
334
|
'2xl'?: RowCols;
|
|
306
335
|
}
|
|
307
|
-
export declare const Row:
|
|
336
|
+
export declare const Row: PolymorphicComponent<RowProps>;
|
|
308
337
|
export interface ColProps extends ComponentPropsWithRef<'div'> {
|
|
309
338
|
span?: ColSize;
|
|
310
339
|
sm?: BreakpointColSize;
|
|
@@ -313,7 +342,7 @@ export interface ColProps extends ComponentPropsWithRef<'div'> {
|
|
|
313
342
|
xl?: BreakpointColSize;
|
|
314
343
|
'2xl'?: BreakpointColSize;
|
|
315
344
|
}
|
|
316
|
-
export declare const Col:
|
|
345
|
+
export declare const Col: PolymorphicComponent<ColProps>;
|
|
317
346
|
export interface NativeDialogProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'open'> {
|
|
318
347
|
modal?: boolean;
|
|
319
348
|
dialog?: boolean;
|
|
@@ -327,12 +356,14 @@ export interface NativeDialogProps extends Omit<DialogHTMLAttributes<HTMLDialogE
|
|
|
327
356
|
animation?: 'fade' | 'instant' | 'slide-down' | 'slide-up';
|
|
328
357
|
scroll?: boolean;
|
|
329
358
|
}
|
|
330
|
-
export declare const DialogHeader:
|
|
331
|
-
export declare const DialogTitle:
|
|
332
|
-
export declare const DialogBody:
|
|
333
|
-
export declare const DialogFooter:
|
|
334
|
-
export declare class NativeDialog extends Component<NativeDialogProps
|
|
335
|
-
|
|
359
|
+
export declare const DialogHeader: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
360
|
+
export declare const DialogTitle: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>>;
|
|
361
|
+
export declare const DialogBody: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
362
|
+
export declare const DialogFooter: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
363
|
+
export declare class NativeDialog<T extends ElementType | undefined = 'dialog'> extends Component<PolymorphicClassProps<T, NativeDialogProps>> {
|
|
364
|
+
readonly props: PolymorphicClassProps<T, NativeDialogProps>;
|
|
365
|
+
protected get componentProps(): Readonly<NativeDialogProps & AsProps>;
|
|
366
|
+
static scrollLocks: Set<NativeDialog<ElementType>>;
|
|
336
367
|
static bodyOverflow: string;
|
|
337
368
|
element: import("react").RefObject<HTMLDialogElement>;
|
|
338
369
|
returnFocus?: HTMLElement;
|
|
@@ -354,10 +385,10 @@ export declare class NativeDialog extends Component<NativeDialogProps> {
|
|
|
354
385
|
render(): import("react").JSX.Element;
|
|
355
386
|
}
|
|
356
387
|
export type DrawerPlacement = 'start' | 'end' | 'top' | 'bottom';
|
|
357
|
-
export declare const DrawerHeader:
|
|
358
|
-
export declare const DrawerTitle:
|
|
359
|
-
export declare const DrawerBody:
|
|
360
|
-
export declare const DrawerFooter:
|
|
388
|
+
export declare const DrawerHeader: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
389
|
+
export declare const DrawerTitle: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>>;
|
|
390
|
+
export declare const DrawerBody: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
391
|
+
export declare const DrawerFooter: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
361
392
|
export interface DrawerProps extends Omit<NativeDialogProps, 'dialog' | 'onClose' | 'title' | 'animation' | 'fullscreen'> {
|
|
362
393
|
title?: ReactNode;
|
|
363
394
|
placement?: DrawerPlacement;
|
|
@@ -370,10 +401,12 @@ export interface DrawerProps extends Omit<NativeDialogProps, 'dialog' | 'onClose
|
|
|
370
401
|
animation?: 'slide' | 'instant';
|
|
371
402
|
onDismiss?: () => unknown;
|
|
372
403
|
}
|
|
373
|
-
export declare class Drawer extends Component<DrawerProps
|
|
404
|
+
export declare class Drawer<T extends ElementType | undefined = 'dialog'> extends Component<PolymorphicClassProps<T, DrawerProps>> {
|
|
405
|
+
readonly props: PolymorphicClassProps<T, DrawerProps>;
|
|
406
|
+
protected get componentProps(): Readonly<DrawerProps & AsProps>;
|
|
374
407
|
static displayName: string;
|
|
375
408
|
accessor expanded: boolean;
|
|
376
|
-
dialog: import("react").RefObject<NativeDialog
|
|
409
|
+
dialog: import("react").RefObject<NativeDialog<ElementType>>;
|
|
377
410
|
media?: MediaQueryList;
|
|
378
411
|
dismissed: boolean;
|
|
379
412
|
componentDidMount(): void;
|
|
@@ -389,7 +422,9 @@ export type ClickBoundaryProps = PropsWithChildren<{
|
|
|
389
422
|
onInnerClick?: (event: MouseEvent) => unknown;
|
|
390
423
|
onOuterClick?: (event: MouseEvent) => unknown;
|
|
391
424
|
} & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
392
|
-
export declare class ClickBoundary extends PureComponent<ClickBoundaryProps
|
|
425
|
+
export declare class ClickBoundary<T extends ElementType | undefined = 'div'> extends PureComponent<PolymorphicClassProps<T, ClickBoundaryProps>> {
|
|
426
|
+
readonly props: PolymorphicClassProps<T, ClickBoundaryProps>;
|
|
427
|
+
protected get componentProps(): Readonly<ClickBoundaryProps & AsProps>;
|
|
393
428
|
root: import("react").RefObject<HTMLDivElement>;
|
|
394
429
|
switchClick: (event: MouseEvent) => void;
|
|
395
430
|
componentDidMount(): void;
|
|
@@ -400,7 +435,7 @@ export interface CodeBlockProps extends HTMLAttributes<HTMLPreElement> {
|
|
|
400
435
|
language: string;
|
|
401
436
|
header?: ReactNode;
|
|
402
437
|
}
|
|
403
|
-
export declare const CodeBlock:
|
|
438
|
+
export declare const CodeBlock: PolymorphicComponent<CodeBlockProps>;
|
|
404
439
|
export interface TimeUnit {
|
|
405
440
|
scale: number;
|
|
406
441
|
label: string;
|
|
@@ -418,7 +453,9 @@ export interface CountdownProps extends HTMLAttributes<HTMLOListElement> {
|
|
|
418
453
|
/**
|
|
419
454
|
* Migrate from https://bootstrap.web-cell.dev/#Calendar/CountDown
|
|
420
455
|
*/
|
|
421
|
-
export declare class Countdown extends ObservedComponent<CountdownProps
|
|
456
|
+
export declare class Countdown<T extends ElementType | undefined = 'ol'> extends ObservedComponent<PolymorphicClassProps<T, CountdownProps>> {
|
|
457
|
+
readonly props: PolymorphicClassProps<T, CountdownProps>;
|
|
458
|
+
protected get componentProps(): CountdownProps & AsProps;
|
|
422
459
|
static displayName: string;
|
|
423
460
|
accessor rest: number;
|
|
424
461
|
private timer;
|
|
@@ -444,12 +481,16 @@ export declare class Dialog<I extends object = {}, O = unknown> {
|
|
|
444
481
|
constructor(Factory: FC<I & DialogProps<O>>);
|
|
445
482
|
open(input?: I): Promise<O>;
|
|
446
483
|
}
|
|
447
|
-
export type EditorProps =
|
|
448
|
-
export declare class Editor extends Component<EditorProps
|
|
484
|
+
export type EditorProps = WrapperProps & Pick<ComponentPropsWithRef<'input'>, 'name' | 'required'> & Pick<ComponentPropsWithRef<'div'>, 'className' | 'style' | 'tabIndex' | 'onBlur'>;
|
|
485
|
+
export declare class Editor<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, EditorProps>> {
|
|
486
|
+
readonly props: PolymorphicClassProps<T, EditorProps>;
|
|
487
|
+
protected get componentProps(): Readonly<EditorProps & AsProps>;
|
|
449
488
|
static displayName: string;
|
|
450
489
|
private core?;
|
|
451
490
|
accessor innerValue: import("@editorjs/editorjs").OutputData;
|
|
452
|
-
|
|
491
|
+
setInnerValue: (value: typeof this.innerValue) => import("@editorjs/editorjs").OutputData;
|
|
492
|
+
handleBlur: (event: FocusEvent<HTMLDivElement>) => Promise<void>;
|
|
493
|
+
initialize: (core: EditorCore) => void;
|
|
453
494
|
render(): import("react").JSX.Element;
|
|
454
495
|
}
|
|
455
496
|
export declare const parser: {
|
|
@@ -459,21 +500,21 @@ export declare const parser: {
|
|
|
459
500
|
export interface EditorHTMLProps extends HTMLAttributes<HTMLDivElement> {
|
|
460
501
|
data: OutputData;
|
|
461
502
|
}
|
|
462
|
-
export declare const EditorHTML:
|
|
503
|
+
export declare const EditorHTML: PolymorphicComponent<EditorHTMLProps>;
|
|
463
504
|
export type HorizontalMarqueeProps = HTMLAttributes<HTMLDivElement> & Partial<Record<'maxWidth' | 'duration' | 'height', string>>;
|
|
464
|
-
export declare const HorizontalMarquee:
|
|
465
|
-
export declare const HorizontalMarqueeBox:
|
|
466
|
-
export type IconProps =
|
|
505
|
+
export declare const HorizontalMarquee: PolymorphicComponent<HorizontalMarqueeProps>;
|
|
506
|
+
export declare const HorizontalMarqueeBox: PolymorphicComponent<HorizontalMarqueeProps>;
|
|
507
|
+
export type IconProps = ComponentPropsWithRef<'span'> & {
|
|
467
508
|
name: string;
|
|
468
509
|
size?: number;
|
|
469
|
-
}
|
|
470
|
-
export declare const Icon:
|
|
510
|
+
};
|
|
511
|
+
export declare const Icon: PolymorphicComponent<IconProps>;
|
|
471
512
|
export type LiveTSXProps = Pick<Parameters<typeof LiveProvider>[0], 'scope' | 'children'>;
|
|
472
513
|
export declare const LiveTSX: FC<LiveTSXProps>;
|
|
473
514
|
export interface LoadingProps extends HTMLAttributes<HTMLDivElement> {
|
|
474
515
|
opacity?: number;
|
|
475
516
|
}
|
|
476
|
-
export declare const Loading:
|
|
517
|
+
export declare const Loading: PolymorphicComponent<LoadingProps>;
|
|
477
518
|
export interface DateData {
|
|
478
519
|
date: TimeData;
|
|
479
520
|
content: ReactNode;
|
|
@@ -489,7 +530,10 @@ export interface MonthCalendarProps extends Omit<HTMLAttributes<HTMLTableElement
|
|
|
489
530
|
/**
|
|
490
531
|
* Re-implement from https://github.com/EasyWebApp/BootCell/blob/3d30027a97fe0a8c4ab8fabc8dfef22aede04de7/source/Calendar/MonthCalendar.tsx
|
|
491
532
|
*/
|
|
492
|
-
export declare class MonthCalendar extends ObservedComponent<MonthCalendarProps
|
|
533
|
+
export declare class MonthCalendar<T extends ElementType | undefined = 'table'> extends ObservedComponent<PolymorphicClassProps<T, MonthCalendarProps>> {
|
|
534
|
+
readonly props: PolymorphicClassProps<T, MonthCalendarProps>;
|
|
535
|
+
protected get componentProps(): Readonly<MonthCalendarProps & AsProps>;
|
|
536
|
+
protected get observedComponentProps(): MonthCalendarProps & AsProps;
|
|
493
537
|
static displayName: string;
|
|
494
538
|
get weekFormatter(): Intl.DateTimeFormat;
|
|
495
539
|
accessor currentDate: Date;
|
|
@@ -557,7 +601,9 @@ export interface OverlayBoxProps extends Omit<HTMLAttributes<HTMLSpanElement>, '
|
|
|
557
601
|
'aria-describedby'?: string;
|
|
558
602
|
}>;
|
|
559
603
|
}
|
|
560
|
-
export declare class OverlayBox extends Component<OverlayBoxProps
|
|
604
|
+
export declare class OverlayBox<T extends ElementType | undefined = 'span'> extends Component<PolymorphicClassProps<T, OverlayBoxProps>> {
|
|
605
|
+
readonly props: PolymorphicClassProps<T, OverlayBoxProps>;
|
|
606
|
+
protected get componentProps(): Readonly<OverlayBoxProps & AsProps>;
|
|
561
607
|
static displayName: string;
|
|
562
608
|
accessor open: boolean;
|
|
563
609
|
id: string;
|
|
@@ -590,13 +636,13 @@ export interface NavProps extends ComponentPropsWithRef<'nav'> {
|
|
|
590
636
|
cardHeader?: boolean;
|
|
591
637
|
navbar?: boolean;
|
|
592
638
|
}
|
|
593
|
-
export declare const Nav:
|
|
594
|
-
export declare const NavItem:
|
|
639
|
+
export declare const Nav: PolymorphicComponent<NavProps>;
|
|
640
|
+
export declare const NavItem: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>>;
|
|
595
641
|
export interface NavLinkProps extends ComponentPropsWithRef<'a'> {
|
|
596
642
|
disabled?: boolean;
|
|
597
643
|
active?: boolean;
|
|
598
644
|
}
|
|
599
|
-
export declare const NavLink:
|
|
645
|
+
export declare const NavLink: PolymorphicComponent<NavLinkProps>;
|
|
600
646
|
type HeadingMeta = Record<'id' | 'text', string> & Record<'level' | 'top', number>;
|
|
601
647
|
export interface PageNavProps extends Omit<NavProps, 'ref'> {
|
|
602
648
|
depth?: number;
|
|
@@ -604,7 +650,9 @@ export interface PageNavProps extends Omit<NavProps, 'ref'> {
|
|
|
604
650
|
rootSelector?: string;
|
|
605
651
|
onItemClick?: (item: HeadingMeta) => void;
|
|
606
652
|
}
|
|
607
|
-
export declare class PageNav extends Component<PageNavProps
|
|
653
|
+
export declare class PageNav<T extends ElementType | undefined = 'nav'> extends Component<PolymorphicClassProps<T, PageNavProps>> {
|
|
654
|
+
readonly props: PolymorphicClassProps<T, PageNavProps>;
|
|
655
|
+
protected get componentProps(): Readonly<PageNavProps & AsProps>;
|
|
608
656
|
static displayName: string;
|
|
609
657
|
accessor list: HeadingMeta[];
|
|
610
658
|
accessor scrollY: number;
|
|
@@ -625,11 +673,11 @@ export type ScrollNavProps = NavProps;
|
|
|
625
673
|
*
|
|
626
674
|
* @see {@link https://github.com/twbs/bootstrap/blob/main/site/src/assets/examples/offcanvas-navbar/index.astro#L50-L65}
|
|
627
675
|
*/
|
|
628
|
-
export declare const ScrollNav:
|
|
676
|
+
export declare const ScrollNav: PolymorphicComponent<NavProps>;
|
|
629
677
|
export interface OptionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
630
678
|
value?: string;
|
|
631
679
|
}
|
|
632
|
-
export declare const Option:
|
|
680
|
+
export declare const Option: PolymorphicComponent<OptionProps>;
|
|
633
681
|
export type SelectProps = Pick<ButtonProps, 'className' | 'style' | 'size' | 'theme' | 'variant' | 'disabled' | 'children'> & {
|
|
634
682
|
align?: 'start' | 'end';
|
|
635
683
|
menuClassName?: string;
|
|
@@ -665,34 +713,34 @@ export interface SpinnerProps extends ComponentPropsWithRef<'span'> {
|
|
|
665
713
|
size?: 'sm';
|
|
666
714
|
theme?: ComponentTheme;
|
|
667
715
|
}
|
|
668
|
-
export declare const Spinner:
|
|
669
|
-
export declare const SpinnerIcon:
|
|
716
|
+
export declare const Spinner: PolymorphicComponent<SpinnerProps>;
|
|
717
|
+
export declare const SpinnerIcon: PolymorphicComponent<IconProps>;
|
|
670
718
|
export type SpinnerButtonProps = ButtonProps & Pick<SpinnerProps, 'animation'> & {
|
|
671
719
|
loading?: boolean;
|
|
672
720
|
};
|
|
673
|
-
export declare const SpinnerButton:
|
|
721
|
+
export declare const SpinnerButton: PolymorphicComponent<SpinnerButtonProps>;
|
|
674
722
|
export interface TableSpinnerProps extends HTMLAttributes<HTMLTableRowElement>, Pick<SpinnerProps, 'animation' | 'theme' | 'size'> {
|
|
675
723
|
colSpan: number;
|
|
676
724
|
}
|
|
677
|
-
export declare const TableSpinner:
|
|
725
|
+
export declare const TableSpinner: PolymorphicComponent<TableSpinnerProps>;
|
|
678
726
|
export interface TextTruncateProps extends HTMLAttributes<HTMLDivElement> {
|
|
679
727
|
rows?: number;
|
|
680
728
|
expandText?: ReactNode;
|
|
681
729
|
collapseText?: ReactNode;
|
|
682
730
|
}
|
|
683
|
-
export declare const TextTruncate:
|
|
731
|
+
export declare const TextTruncate: PolymorphicComponent<TextTruncateProps>;
|
|
684
732
|
export interface TimeProps extends Omit<TimeHTMLAttributes<HTMLTimeElement>, 'dateTime'> {
|
|
685
733
|
dateTime: TimeData;
|
|
686
734
|
format?: string;
|
|
687
735
|
}
|
|
688
|
-
export declare const Time:
|
|
736
|
+
export declare const Time: PolymorphicComponent<TimeProps>;
|
|
689
737
|
export interface TimeDistanceProps extends HTMLAttributes<HTMLTimeElement> {
|
|
690
738
|
date: TimeData;
|
|
691
739
|
unitWords?: Record<string, string>;
|
|
692
740
|
beforeWord?: string;
|
|
693
741
|
afterWord?: string;
|
|
694
742
|
}
|
|
695
|
-
export declare const TimeDistance:
|
|
743
|
+
export declare const TimeDistance: PolymorphicComponent<TimeDistanceProps>;
|
|
696
744
|
export interface TimelineEvent {
|
|
697
745
|
title: string;
|
|
698
746
|
summary?: string;
|
|
@@ -707,12 +755,12 @@ export interface TimelineProps extends HTMLAttributes<HTMLOListElement> {
|
|
|
707
755
|
/**
|
|
708
756
|
* @see {@link https://mdbootstrap.com/docs/standard/extended/timeline/#section-timeline-gradient-bg}
|
|
709
757
|
*/
|
|
710
|
-
export declare const Timeline:
|
|
711
|
-
export interface TypeEchoProps extends
|
|
758
|
+
export declare const Timeline: PolymorphicComponent<TimelineProps>;
|
|
759
|
+
export interface TypeEchoProps extends ComponentPropsWithRef<'pre'> {
|
|
712
760
|
text: string;
|
|
713
761
|
intervals?: number;
|
|
714
762
|
}
|
|
715
|
-
export declare const TypeEcho:
|
|
763
|
+
export declare const TypeEcho: PolymorphicComponent<TypeEchoProps>;
|
|
716
764
|
type UserAddressProps = Partial<Record<'email' | 'website', string>>;
|
|
717
765
|
export interface UserRank extends UserAddressProps {
|
|
718
766
|
id: number | string;
|
|
@@ -725,11 +773,11 @@ export interface UserRankViewProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
725
773
|
rank: UserRank[];
|
|
726
774
|
linkOf?: (user: UserRank) => string;
|
|
727
775
|
}
|
|
728
|
-
export declare const UserRankView:
|
|
776
|
+
export declare const UserRankView: PolymorphicComponent<UserRankViewProps>;
|
|
729
777
|
export interface VerticalMarqueeProps extends HTMLAttributes<HTMLDivElement> {
|
|
730
778
|
duration?: string;
|
|
731
779
|
}
|
|
732
|
-
export declare const VerticalMarquee:
|
|
780
|
+
export declare const VerticalMarquee: PolymorphicComponent<VerticalMarqueeProps>;
|
|
733
781
|
export declare const ZodiacSigns: string[];
|
|
734
782
|
export declare const zodiacOf: (year: number) => string;
|
|
735
783
|
export interface ZodiacBarProps extends HTMLAttributes<HTMLOListElement> {
|
|
@@ -741,21 +789,21 @@ export interface ZodiacBarProps extends HTMLAttributes<HTMLOListElement> {
|
|
|
741
789
|
title?: ReactNode;
|
|
742
790
|
};
|
|
743
791
|
}
|
|
744
|
-
export declare const ZodiacBar:
|
|
792
|
+
export declare const ZodiacBar: PolymorphicComponent<ZodiacBarProps>;
|
|
745
793
|
export type FormProps = ComponentPropsWithRef<'form'> & {
|
|
746
794
|
validated?: boolean;
|
|
747
795
|
};
|
|
748
|
-
export declare const Form:
|
|
796
|
+
export declare const Form: PolymorphicComponent<FormProps>;
|
|
749
797
|
export type FormFieldsetProps = ComponentPropsWithRef<'fieldset'>;
|
|
750
|
-
export declare const FormFieldset:
|
|
798
|
+
export declare const FormFieldset: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>>;
|
|
751
799
|
export type FormFieldProps = ComponentPropsWithRef<'div'> & {
|
|
752
800
|
card?: boolean;
|
|
753
801
|
};
|
|
754
|
-
export declare const FormField:
|
|
802
|
+
export declare const FormField: PolymorphicComponent<FormFieldProps>;
|
|
755
803
|
export type FormGroupProps = ComponentPropsWithRef<'div'>;
|
|
756
|
-
export declare const FormGroup:
|
|
804
|
+
export declare const FormGroup: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
757
805
|
export type FormFieldContentProps = ComponentPropsWithRef<'div'>;
|
|
758
|
-
export declare const FormFieldContent:
|
|
806
|
+
export declare const FormFieldContent: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
759
807
|
export interface FormValidationProps {
|
|
760
808
|
validation?: 'valid' | 'invalid';
|
|
761
809
|
}
|
|
@@ -764,30 +812,32 @@ export type FormLabelProps = ComponentPropsWithRef<'label'> & {
|
|
|
764
812
|
column?: boolean;
|
|
765
813
|
controlSize?: 'sm' | 'lg';
|
|
766
814
|
};
|
|
767
|
-
export declare const FormLabel:
|
|
815
|
+
export declare const FormLabel: PolymorphicComponent<FormLabelProps>;
|
|
768
816
|
export type FormLegendProps = ComponentPropsWithRef<'legend'> & Pick<FormLabelProps, 'column' | 'controlSize'>;
|
|
769
|
-
export declare const FormLegend:
|
|
817
|
+
export declare const FormLegend: PolymorphicComponent<FormLegendProps>;
|
|
770
818
|
export type FormAdornmentProps = Omit<ComponentPropsWithRef<'label'>, 'htmlFor'> & FormValidationProps & {
|
|
771
819
|
end?: boolean;
|
|
772
820
|
size?: 'sm' | 'lg';
|
|
773
821
|
htmlFor?: string;
|
|
774
822
|
};
|
|
775
|
-
export declare const FormAdornment:
|
|
823
|
+
export declare const FormAdornment: PolymorphicComponent<FormAdornmentProps>;
|
|
776
824
|
export type FormAdornmentTextProps = ComponentPropsWithRef<'span'>;
|
|
777
|
-
export declare const FormAdornmentText:
|
|
778
|
-
export declare const FormAdornmentIcon:
|
|
825
|
+
export declare const FormAdornmentText: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
826
|
+
export declare const FormAdornmentIcon: PolymorphicComponent<IconProps>;
|
|
779
827
|
export type FormGhostProps = ComponentPropsWithRef<'input'> & FormValidationProps;
|
|
780
|
-
export declare const FormGhost:
|
|
828
|
+
export declare const FormGhost: PolymorphicComponent<FormGhostProps>;
|
|
781
829
|
export type CheckboxProps = Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'size'> & FormValidationProps & {
|
|
782
830
|
size?: 'sm' | 'lg';
|
|
783
831
|
theme?: ComponentTheme;
|
|
784
832
|
indeterminate?: boolean;
|
|
785
833
|
};
|
|
786
|
-
export declare const Checkbox:
|
|
834
|
+
export declare const Checkbox: PolymorphicComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type" | "size"> & FormValidationProps & {
|
|
787
835
|
size?: "sm" | "lg";
|
|
788
836
|
theme?: ComponentTheme;
|
|
789
837
|
indeterminate?: boolean;
|
|
790
|
-
} &
|
|
838
|
+
} & {
|
|
839
|
+
ref?: Ref<HTMLInputElement>;
|
|
840
|
+
}>;
|
|
791
841
|
export type ChipInputProps = ComponentPropsWithoutRef<'div'> & FormValidationProps & {
|
|
792
842
|
theme?: ComponentTheme;
|
|
793
843
|
separator?: string | null;
|
|
@@ -798,7 +848,7 @@ export type ChipInputProps = ComponentPropsWithoutRef<'div'> & FormValidationPro
|
|
|
798
848
|
placeholder?: string;
|
|
799
849
|
onValuesChange?: (values: string[]) => unknown;
|
|
800
850
|
};
|
|
801
|
-
export declare const ChipInput:
|
|
851
|
+
export declare const ChipInput: PolymorphicComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & FormValidationProps & {
|
|
802
852
|
theme?: ComponentTheme;
|
|
803
853
|
separator?: string | null;
|
|
804
854
|
allowDuplicates?: boolean;
|
|
@@ -807,18 +857,20 @@ export declare const ChipInput: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
807
857
|
dismissible?: boolean;
|
|
808
858
|
placeholder?: string;
|
|
809
859
|
onValuesChange?: (values: string[]) => unknown;
|
|
810
|
-
} &
|
|
860
|
+
} & {
|
|
861
|
+
ref?: Ref<HTMLDivElement>;
|
|
862
|
+
}>;
|
|
811
863
|
export type ChipProps = ComponentPropsWithRef<'button'> & {
|
|
812
864
|
active?: boolean;
|
|
813
865
|
theme?: ComponentTheme;
|
|
814
866
|
};
|
|
815
|
-
export declare const Chip:
|
|
816
|
-
export declare const ChipIcon:
|
|
817
|
-
export declare const ChipImage:
|
|
818
|
-
export declare const ChipDismiss:
|
|
867
|
+
export declare const Chip: PolymorphicComponent<ChipProps>;
|
|
868
|
+
export declare const ChipIcon: PolymorphicComponent<IconProps>;
|
|
869
|
+
export declare const ChipImage: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>>;
|
|
870
|
+
export declare const ChipDismiss: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>;
|
|
819
871
|
export type ChipTokenProps = ComponentPropsWithRef<'span'> & Pick<ChipProps, 'active' | 'theme'>;
|
|
820
|
-
export declare const ChipToken:
|
|
821
|
-
export declare const ChipInputLabel:
|
|
872
|
+
export declare const ChipToken: PolymorphicComponent<ChipTokenProps>;
|
|
873
|
+
export declare const ChipInputLabel: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>>;
|
|
822
874
|
export interface ComboboxOptionProps extends ComponentPropsWithRef<'button'> {
|
|
823
875
|
value: string;
|
|
824
876
|
description?: ReactNode;
|
|
@@ -826,11 +878,11 @@ export interface ComboboxOptionProps extends ComponentPropsWithRef<'button'> {
|
|
|
826
878
|
checkedIcon?: boolean;
|
|
827
879
|
searchText?: string;
|
|
828
880
|
}
|
|
829
|
-
export declare const ComboboxOption:
|
|
881
|
+
export declare const ComboboxOption: PolymorphicComponent<ComboboxOptionProps>;
|
|
830
882
|
export interface ComboboxGroupProps extends ComponentPropsWithRef<'div'> {
|
|
831
883
|
label: ReactNode;
|
|
832
884
|
}
|
|
833
|
-
export declare const ComboboxGroup:
|
|
885
|
+
export declare const ComboboxGroup: PolymorphicComponent<ComboboxGroupProps>;
|
|
834
886
|
export interface ComboboxProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'defaultValue'>, FormValidationProps {
|
|
835
887
|
name: string;
|
|
836
888
|
value?: string | string[];
|
|
@@ -846,7 +898,9 @@ export interface ComboboxProps extends Omit<ComponentPropsWithRef<'div'>, 'onCha
|
|
|
846
898
|
noResultsText?: string;
|
|
847
899
|
onChange?: (value: string | string[]) => unknown;
|
|
848
900
|
}
|
|
849
|
-
export declare class Combobox extends Component<ComboboxProps
|
|
901
|
+
export declare class Combobox<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, ComboboxProps>> {
|
|
902
|
+
readonly props: PolymorphicClassProps<T, ComboboxProps>;
|
|
903
|
+
protected get componentProps(): Readonly<ComboboxProps & AsProps>;
|
|
850
904
|
static displayName: string;
|
|
851
905
|
accessor query: string;
|
|
852
906
|
accessor current: string | string[];
|
|
@@ -875,15 +929,15 @@ export type FormControlProps = Omit<ComponentPropsWithRef<'input'>, 'color'> & F
|
|
|
875
929
|
color?: boolean;
|
|
876
930
|
controlSize?: 'sm' | 'lg';
|
|
877
931
|
};
|
|
878
|
-
export declare const FormControl:
|
|
932
|
+
export declare const FormControl: PolymorphicComponent<FormControlProps>;
|
|
879
933
|
export type FormTextAreaProps = ComponentPropsWithRef<'textarea'> & FormValidationProps & {
|
|
880
934
|
controlSize?: 'sm' | 'lg';
|
|
881
935
|
};
|
|
882
|
-
export declare const FormTextArea:
|
|
936
|
+
export declare const FormTextArea: PolymorphicComponent<FormTextAreaProps>;
|
|
883
937
|
export type FormSelectProps = ComponentPropsWithRef<'select'> & FormValidationProps & {
|
|
884
938
|
controlSize?: 'sm' | 'lg';
|
|
885
939
|
};
|
|
886
|
-
export declare const FormSelect:
|
|
940
|
+
export declare const FormSelect: PolymorphicComponent<FormSelectProps>;
|
|
887
941
|
export type DatePickerOptions = Partial<DatepickerConfig>;
|
|
888
942
|
interface DatePickerSettings {
|
|
889
943
|
options?: DatePickerOptions;
|
|
@@ -907,50 +961,59 @@ export type DatePickerButtonProps = Extract<ButtonProps, {
|
|
|
907
961
|
leadingIcon?: string;
|
|
908
962
|
};
|
|
909
963
|
export type DatePickerInlineProps = ComponentPropsWithoutRef<'div'> & DatePickerSettings;
|
|
910
|
-
export declare const DatePicker:
|
|
964
|
+
export declare const DatePicker: PolymorphicComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type"> & DatePickerSettings & FormValidationProps & {
|
|
911
965
|
enhanced?: boolean;
|
|
912
966
|
ghost?: boolean;
|
|
913
967
|
controlSize?: "sm" | "lg";
|
|
914
|
-
} &
|
|
915
|
-
|
|
916
|
-
|
|
968
|
+
} & {
|
|
969
|
+
ref?: Ref<HTMLInputElement>;
|
|
970
|
+
}>;
|
|
971
|
+
export declare const DatePickerButton: PolymorphicComponent<DatePickerButtonProps & {
|
|
972
|
+
ref?: Ref<HTMLButtonElement>;
|
|
973
|
+
}>;
|
|
974
|
+
export declare const DatePickerInline: PolymorphicComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & DatePickerSettings & {
|
|
975
|
+
ref?: Ref<HTMLDivElement>;
|
|
976
|
+
}>;
|
|
917
977
|
export type FormTextProps = ComponentPropsWithRef<'small'> & {
|
|
918
978
|
block?: boolean;
|
|
919
979
|
};
|
|
920
|
-
export declare const FormText:
|
|
980
|
+
export declare const FormText: PolymorphicComponent<FormTextProps>;
|
|
921
981
|
export type FormFeedbackProps = Omit<ComponentPropsWithRef<'div'>, 'type'> & {
|
|
922
982
|
type?: 'valid' | 'invalid';
|
|
923
983
|
tooltip?: boolean;
|
|
924
984
|
};
|
|
925
|
-
export declare const FormFeedback:
|
|
985
|
+
export declare const FormFeedback: PolymorphicComponent<FormFeedbackProps>;
|
|
926
986
|
export type FormFloatingLabelProps = ComponentPropsWithRef<'div'> & {
|
|
927
987
|
always?: boolean;
|
|
928
988
|
};
|
|
929
|
-
export declare const FormFloatingLabel:
|
|
989
|
+
export declare const FormFloatingLabel: PolymorphicComponent<FormFloatingLabelProps>;
|
|
930
990
|
export type MenuItemProps = ButtonProps & {
|
|
931
991
|
active?: boolean;
|
|
932
992
|
selected?: boolean;
|
|
933
993
|
};
|
|
934
|
-
export declare const MenuItem:
|
|
994
|
+
export declare const MenuItem: PolymorphicComponent<MenuItemProps>;
|
|
935
995
|
export interface MenuPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
936
996
|
theme?: 'light' | 'dark';
|
|
937
997
|
translucent?: boolean;
|
|
938
998
|
scrollable?: boolean;
|
|
939
999
|
show?: boolean;
|
|
940
1000
|
}
|
|
941
|
-
export declare const MenuPanel:
|
|
942
|
-
export declare const MenuItemIcon:
|
|
943
|
-
export declare const MenuItemCheck:
|
|
944
|
-
export declare const MenuText:
|
|
945
|
-
export declare const MenuHeader:
|
|
946
|
-
export declare const MenuDivider:
|
|
947
|
-
export declare const MenuItemContent:
|
|
948
|
-
export declare const MenuItemDescription:
|
|
949
|
-
export interface MenuSubmenuProps extends
|
|
1001
|
+
export declare const MenuPanel: PolymorphicComponent<MenuPanelProps>;
|
|
1002
|
+
export declare const MenuItemIcon: PolymorphicComponent<IconProps>;
|
|
1003
|
+
export declare const MenuItemCheck: PolymorphicComponent<Omit<IconProps, "name">>;
|
|
1004
|
+
export declare const MenuText: PolymorphicComponent<HTMLAttributes<HTMLSpanElement>>;
|
|
1005
|
+
export declare const MenuHeader: PolymorphicComponent<HTMLAttributes<HTMLHeadingElement>>;
|
|
1006
|
+
export declare const MenuDivider: PolymorphicComponent<HTMLAttributes<HTMLHRElement>>;
|
|
1007
|
+
export declare const MenuItemContent: PolymorphicComponent<HTMLAttributes<HTMLSpanElement>>;
|
|
1008
|
+
export declare const MenuItemDescription: PolymorphicComponent<HTMLAttributes<HTMLElement>>;
|
|
1009
|
+
export interface MenuSubmenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
950
1010
|
label: ReactNode;
|
|
951
1011
|
className?: string;
|
|
952
1012
|
}
|
|
953
|
-
export declare class MenuSubmenu extends Component<MenuSubmenuProps
|
|
1013
|
+
export declare class MenuSubmenu<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, MenuSubmenuProps>> {
|
|
1014
|
+
static displayName: string;
|
|
1015
|
+
readonly props: PolymorphicClassProps<T, MenuSubmenuProps>;
|
|
1016
|
+
protected get componentProps(): Readonly<MenuSubmenuProps & AsProps>;
|
|
954
1017
|
accessor open: boolean;
|
|
955
1018
|
panel: import("react").RefObject<HTMLDivElement>;
|
|
956
1019
|
trigger: import("react").RefObject<HTMLButtonElement>;
|
|
@@ -959,8 +1022,8 @@ export declare class MenuSubmenu extends Component<MenuSubmenuProps> {
|
|
|
959
1022
|
componentWillUnmount(): void;
|
|
960
1023
|
setOpen: (open: boolean) => boolean;
|
|
961
1024
|
handleClick: () => boolean;
|
|
962
|
-
handleMouseEnter: () =>
|
|
963
|
-
handleMouseLeave: () =>
|
|
1025
|
+
handleMouseEnter: (event: MouseEvent$1<HTMLDivElement>) => void;
|
|
1026
|
+
handleMouseLeave: (event: MouseEvent$1<HTMLDivElement>) => void;
|
|
964
1027
|
handleKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
965
1028
|
render(): import("react").JSX.Element;
|
|
966
1029
|
}
|
|
@@ -985,7 +1048,10 @@ export interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChang
|
|
|
985
1048
|
onOpenChange?: (open: boolean) => unknown;
|
|
986
1049
|
}
|
|
987
1050
|
export type MenuPlacement = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
988
|
-
export declare class Menu extends Component<MenuProps
|
|
1051
|
+
export declare class Menu<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, MenuProps>> {
|
|
1052
|
+
static displayName: string;
|
|
1053
|
+
readonly props: PolymorphicClassProps<T, MenuProps>;
|
|
1054
|
+
protected get componentProps(): Readonly<MenuProps & AsProps>;
|
|
989
1055
|
accessor open: boolean;
|
|
990
1056
|
accessor responsiveDirection: MenuPlacement | undefined;
|
|
991
1057
|
root: import("react").RefObject<HTMLDivElement>;
|
|
@@ -1013,21 +1079,21 @@ export declare class Menu extends Component<MenuProps> {
|
|
|
1013
1079
|
export type InputGroupProps = ComponentPropsWithRef<'div'> & {
|
|
1014
1080
|
size?: 'sm' | 'lg';
|
|
1015
1081
|
};
|
|
1016
|
-
export declare const InputGroup:
|
|
1082
|
+
export declare const InputGroup: PolymorphicComponent<InputGroupProps>;
|
|
1017
1083
|
export type InputGroupTextProps = (ComponentPropsWithRef<'span'> & {
|
|
1018
1084
|
htmlFor?: never;
|
|
1019
1085
|
}) | (ComponentPropsWithRef<'label'> & {
|
|
1020
1086
|
htmlFor: string;
|
|
1021
1087
|
});
|
|
1022
|
-
export declare const InputGroupText:
|
|
1088
|
+
export declare const InputGroupText: PolymorphicComponent<InputGroupTextProps>;
|
|
1023
1089
|
export type InputGroupButtonProps = ButtonProps;
|
|
1024
|
-
export declare const InputGroupButton:
|
|
1090
|
+
export declare const InputGroupButton: PolymorphicComponent<ButtonProps>;
|
|
1025
1091
|
export interface InputGroupIgnoreProps {
|
|
1026
1092
|
children: ReactElement<{
|
|
1027
1093
|
className?: string;
|
|
1028
1094
|
}>;
|
|
1029
1095
|
}
|
|
1030
|
-
export declare const InputGroupIgnore:
|
|
1096
|
+
export declare const InputGroupIgnore: PolymorphicComponent<InputGroupIgnoreProps>;
|
|
1031
1097
|
export interface InputGroupMenuProps extends MenuProps {
|
|
1032
1098
|
split?: boolean;
|
|
1033
1099
|
}
|
|
@@ -1052,7 +1118,7 @@ export type OTPInputProps = Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'ma
|
|
|
1052
1118
|
onComplete?: (value: string) => unknown;
|
|
1053
1119
|
onValueChange?: (value: string) => unknown;
|
|
1054
1120
|
};
|
|
1055
|
-
export declare const OTPInput:
|
|
1121
|
+
export declare const OTPInput: PolymorphicComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type" | "size" | "maxLength"> & FormValidationProps & {
|
|
1056
1122
|
length: number;
|
|
1057
1123
|
type?: "numeric" | "alphanumeric" | "alpha";
|
|
1058
1124
|
mask?: boolean;
|
|
@@ -1063,7 +1129,9 @@ export declare const OTPInput: import("react").ForwardRefExoticComponent<Omit<Om
|
|
|
1063
1129
|
wrapperClassName?: string;
|
|
1064
1130
|
onComplete?: (value: string) => unknown;
|
|
1065
1131
|
onValueChange?: (value: string) => unknown;
|
|
1066
|
-
} &
|
|
1132
|
+
} & {
|
|
1133
|
+
ref?: Ref<HTMLInputElement>;
|
|
1134
|
+
}>;
|
|
1067
1135
|
export type PasswordStrengthLevel = 'weak' | 'fair' | 'good' | 'strong';
|
|
1068
1136
|
export interface PasswordStrengthProps extends ComponentPropsWithoutRef<'div'> {
|
|
1069
1137
|
input?: string | HTMLInputElement | null;
|
|
@@ -1081,11 +1149,11 @@ export type RadioProps = Omit<ComponentPropsWithRef<'input'>, 'type' | 'size'> &
|
|
|
1081
1149
|
size?: 'sm' | 'lg';
|
|
1082
1150
|
theme?: ComponentTheme;
|
|
1083
1151
|
};
|
|
1084
|
-
export declare const Radio:
|
|
1152
|
+
export declare const Radio: PolymorphicComponent<RadioProps>;
|
|
1085
1153
|
export type FormCheckProps = CheckboxProps & Pick<ComponentPropsWithRef<'input'>, 'ref'> & {
|
|
1086
1154
|
type?: 'checkbox' | 'radio';
|
|
1087
1155
|
};
|
|
1088
|
-
export declare const FormCheck:
|
|
1156
|
+
export declare const FormCheck: PolymorphicComponent<FormCheckProps>;
|
|
1089
1157
|
export type FormRangeProps = Omit<ComponentPropsWithoutRef<'input'>, 'type'> & FormValidationProps & {
|
|
1090
1158
|
bubble?: boolean;
|
|
1091
1159
|
theme?: ComponentTheme;
|
|
@@ -1093,13 +1161,15 @@ export type FormRangeProps = Omit<ComponentPropsWithoutRef<'input'>, 'type'> & F
|
|
|
1093
1161
|
wrapperClassName?: string;
|
|
1094
1162
|
onValueChange?: (value: number) => unknown;
|
|
1095
1163
|
};
|
|
1096
|
-
export declare const FormRange:
|
|
1164
|
+
export declare const FormRange: PolymorphicComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type"> & FormValidationProps & {
|
|
1097
1165
|
bubble?: boolean;
|
|
1098
1166
|
theme?: ComponentTheme;
|
|
1099
1167
|
formatter?: (value: number) => string;
|
|
1100
1168
|
wrapperClassName?: string;
|
|
1101
1169
|
onValueChange?: (value: number) => unknown;
|
|
1102
|
-
} &
|
|
1170
|
+
} & {
|
|
1171
|
+
ref?: Ref<HTMLInputElement>;
|
|
1172
|
+
}>;
|
|
1103
1173
|
export type FormSwitchProps = Omit<ComponentPropsWithRef<'label'>, 'children'> & PropsWithChildren<FormValidationProps & {
|
|
1104
1174
|
inputProps?: Omit<ComponentPropsWithRef<'input'>, 'type'>;
|
|
1105
1175
|
size?: 'sm' | 'lg';
|
|
@@ -1107,12 +1177,12 @@ export type FormSwitchProps = Omit<ComponentPropsWithRef<'label'>, 'children'> &
|
|
|
1107
1177
|
width?: string;
|
|
1108
1178
|
indicatorWidth?: string;
|
|
1109
1179
|
}>;
|
|
1110
|
-
export declare const FormSwitch:
|
|
1180
|
+
export declare const FormSwitch: PolymorphicComponent<FormSwitchProps>;
|
|
1111
1181
|
export interface ImageProps extends ComponentPropsWithRef<'img'> {
|
|
1112
1182
|
fluid?: boolean;
|
|
1113
1183
|
thumbnail?: boolean;
|
|
1114
1184
|
}
|
|
1115
|
-
export declare const Image:
|
|
1185
|
+
export declare const Image: PolymorphicComponent<ImageProps>;
|
|
1116
1186
|
export type ListGroupHorizontal = boolean | Breakpoint;
|
|
1117
1187
|
interface ListGroupStyleProps {
|
|
1118
1188
|
flush?: boolean;
|
|
@@ -1126,7 +1196,7 @@ export type ListGroupProps = ListGroupStyleProps & ((ComponentPropsWithRef<'ul'>
|
|
|
1126
1196
|
}) | (ComponentPropsWithRef<'div'> & {
|
|
1127
1197
|
as: 'div';
|
|
1128
1198
|
}));
|
|
1129
|
-
export declare const ListGroup:
|
|
1199
|
+
export declare const ListGroup: PolymorphicComponent<ListGroupStyleProps & import("react").ClassAttributes<HTMLUListElement> & import("react").HTMLAttributes<HTMLUListElement>>;
|
|
1130
1200
|
interface ListGroupItemStyleProps {
|
|
1131
1201
|
theme?: ComponentTheme;
|
|
1132
1202
|
action?: boolean;
|
|
@@ -1145,29 +1215,29 @@ type ListGroupItemAttributes = ComponentPropsWithRef<'li'> & {
|
|
|
1145
1215
|
};
|
|
1146
1216
|
type ListGroupItemElementAttributes = ListGroupItemLinkAttributes | ListGroupItemButtonAttributes | ListGroupItemAttributes;
|
|
1147
1217
|
export type ListGroupItemProps = ListGroupItemStyleProps & ListGroupItemElementAttributes;
|
|
1148
|
-
export declare const ListGroupItem:
|
|
1218
|
+
export declare const ListGroupItem: PolymorphicComponent<ListGroupItemProps>;
|
|
1149
1219
|
export interface NavbarProps extends ComponentPropsWithRef<'nav'> {
|
|
1150
1220
|
theme?: 'light' | 'dark';
|
|
1151
1221
|
expand?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
1152
1222
|
translucent?: boolean;
|
|
1153
1223
|
}
|
|
1154
|
-
export declare const Navbar:
|
|
1224
|
+
export declare const Navbar: PolymorphicComponent<NavbarProps>;
|
|
1155
1225
|
export type NavbarBrandProps = (ComponentPropsWithRef<'a'> & {
|
|
1156
1226
|
as?: 'a';
|
|
1157
1227
|
}) | (ComponentPropsWithRef<'span'> & {
|
|
1158
1228
|
as: 'span';
|
|
1159
1229
|
});
|
|
1160
|
-
export declare const NavbarBrand:
|
|
1230
|
+
export declare const NavbarBrand: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>>;
|
|
1161
1231
|
export interface NavbarNavProps extends ComponentPropsWithRef<'ul'> {
|
|
1162
1232
|
variant?: 'tabs' | 'pills' | 'underline';
|
|
1163
1233
|
nav?: boolean;
|
|
1164
1234
|
}
|
|
1165
|
-
export declare const NavbarNav:
|
|
1166
|
-
export declare const NavbarText:
|
|
1235
|
+
export declare const NavbarNav: PolymorphicComponent<NavbarNavProps>;
|
|
1236
|
+
export declare const NavbarText: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
1167
1237
|
export interface NavbarTogglerProps extends Omit<ComponentPropsWithRef<'button'>, 'children' | 'type'> {
|
|
1168
1238
|
expanded?: boolean;
|
|
1169
1239
|
}
|
|
1170
|
-
export declare const NavbarToggler:
|
|
1240
|
+
export declare const NavbarToggler: PolymorphicComponent<NavbarTogglerProps>;
|
|
1171
1241
|
declare class NavOverflowModel {
|
|
1172
1242
|
accessor initialized: boolean;
|
|
1173
1243
|
accessor open: boolean;
|
|
@@ -1189,7 +1259,9 @@ export interface NavOverflowProps extends Omit<ComponentPropsWithRef<'div'>, 'on
|
|
|
1189
1259
|
onOverflowChange?: (overflowCount: number, visibleCount: number) => unknown;
|
|
1190
1260
|
threshold?: number;
|
|
1191
1261
|
}
|
|
1192
|
-
export declare class NavOverflow extends Component<NavOverflowProps
|
|
1262
|
+
export declare class NavOverflow<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, NavOverflowProps>> {
|
|
1263
|
+
readonly props: PolymorphicClassProps<T, NavOverflowProps>;
|
|
1264
|
+
protected get componentProps(): Readonly<NavOverflowProps & AsProps>;
|
|
1193
1265
|
static displayName: string;
|
|
1194
1266
|
root: import("react").RefObject<HTMLDivElement>;
|
|
1195
1267
|
nav: import("react").RefObject<HTMLElement>;
|
|
@@ -1211,30 +1283,30 @@ export interface PaginationProps extends ComponentPropsWithRef<'ul'> {
|
|
|
1211
1283
|
theme?: ComponentTheme;
|
|
1212
1284
|
size?: 'sm' | 'lg';
|
|
1213
1285
|
}
|
|
1214
|
-
export declare const Pagination:
|
|
1286
|
+
export declare const Pagination: PolymorphicComponent<PaginationProps>;
|
|
1215
1287
|
type PageState = Partial<Record<'active' | 'disabled', boolean>>;
|
|
1216
1288
|
export type PageItemProps = ComponentPropsWithRef<'li'> & PageState;
|
|
1217
|
-
export declare const PageItem:
|
|
1289
|
+
export declare const PageItem: PolymorphicComponent<PageItemProps>;
|
|
1218
1290
|
export type PageLinkProps = ComponentPropsWithRef<'a'> & PageState;
|
|
1219
|
-
export declare const PageLink:
|
|
1220
|
-
export declare const PageText:
|
|
1291
|
+
export declare const PageLink: PolymorphicComponent<PageLinkProps>;
|
|
1292
|
+
export declare const PageText: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
1221
1293
|
export interface PlaceholderProps extends ComponentPropsWithRef<'span'> {
|
|
1222
1294
|
size?: 'xs' | 'sm' | 'lg';
|
|
1223
1295
|
animation?: 'wave' | 'pulse' | 'glow';
|
|
1224
1296
|
theme?: ComponentTheme;
|
|
1225
1297
|
width?: CSSProperties['width'];
|
|
1226
1298
|
}
|
|
1227
|
-
export declare const Placeholder:
|
|
1299
|
+
export declare const Placeholder: PolymorphicComponent<PlaceholderProps>;
|
|
1228
1300
|
export interface PlaceholderAnimationProps extends ComponentPropsWithRef<'div'> {
|
|
1229
1301
|
animation?: PlaceholderProps['animation'];
|
|
1230
1302
|
}
|
|
1231
|
-
export declare const PlaceholderAnimation:
|
|
1303
|
+
export declare const PlaceholderAnimation: PolymorphicComponent<PlaceholderAnimationProps>;
|
|
1232
1304
|
export type PlaceholderButtonProps = ButtonProps;
|
|
1233
|
-
export declare const PlaceholderButton:
|
|
1305
|
+
export declare const PlaceholderButton: PolymorphicComponent<ButtonProps>;
|
|
1234
1306
|
export interface PopoverProps extends Omit<OverlayTriggerProps, 'title'> {
|
|
1235
1307
|
title?: ReactNode;
|
|
1236
1308
|
}
|
|
1237
|
-
export declare const Popover:
|
|
1309
|
+
export declare const Popover: PolymorphicComponent<PopoverProps>;
|
|
1238
1310
|
export interface ProgressProps extends ComponentPropsWithRef<'div'> {
|
|
1239
1311
|
value: number;
|
|
1240
1312
|
min?: number;
|
|
@@ -1244,14 +1316,14 @@ export interface ProgressProps extends ComponentPropsWithRef<'div'> {
|
|
|
1244
1316
|
animated?: boolean;
|
|
1245
1317
|
barProps?: ComponentPropsWithRef<'div'>;
|
|
1246
1318
|
}
|
|
1247
|
-
export declare const Progress:
|
|
1248
|
-
export declare const ProgressStack:
|
|
1319
|
+
export declare const Progress: PolymorphicComponent<ProgressProps>;
|
|
1320
|
+
export declare const ProgressStack: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
1249
1321
|
declare class ScrollSpyModel {
|
|
1250
1322
|
accessor activeId: string;
|
|
1251
1323
|
accessor guides: (Record<'top' | 'left' | 'width' | 'height' | 'line', number> & {
|
|
1252
1324
|
atBottom: boolean;
|
|
1253
1325
|
}) | undefined;
|
|
1254
|
-
setGuides: (guides: ScrollSpyModel["guides"]) => Record<"line" | "
|
|
1326
|
+
setGuides: (guides: ScrollSpyModel["guides"]) => Record<"line" | "top" | "height" | "width" | "left", number> & {
|
|
1255
1327
|
atBottom: boolean;
|
|
1256
1328
|
};
|
|
1257
1329
|
setActiveId: (id: string) => string;
|
|
@@ -1267,7 +1339,9 @@ export interface ScrollSpyProps extends Omit<ComponentPropsWithRef<'div'>, 'onCh
|
|
|
1267
1339
|
threshold?: number[];
|
|
1268
1340
|
topMargin?: string;
|
|
1269
1341
|
}
|
|
1270
|
-
export declare class ScrollSpy extends Component<ScrollSpyProps
|
|
1342
|
+
export declare class ScrollSpy<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, ScrollSpyProps>> {
|
|
1343
|
+
readonly props: PolymorphicClassProps<T, ScrollSpyProps>;
|
|
1344
|
+
protected get componentProps(): Readonly<ScrollSpyProps & AsProps>;
|
|
1271
1345
|
static displayName: string;
|
|
1272
1346
|
root: import("react").RefObject<HTMLDivElement>;
|
|
1273
1347
|
store: ScrollSpyModel;
|
|
@@ -1283,7 +1357,7 @@ export declare class ScrollSpy extends Component<ScrollSpyProps> {
|
|
|
1283
1357
|
componentWillUnmount(): void;
|
|
1284
1358
|
refresh: () => void;
|
|
1285
1359
|
handleResize: () => void;
|
|
1286
|
-
handleScroll: () => Record<"line" | "
|
|
1360
|
+
handleScroll: () => Record<"line" | "top" | "height" | "width" | "left", number> & {
|
|
1287
1361
|
atBottom: boolean;
|
|
1288
1362
|
};
|
|
1289
1363
|
private getRootHeight;
|
|
@@ -1296,31 +1370,37 @@ export declare class ScrollSpy extends Component<ScrollSpyProps> {
|
|
|
1296
1370
|
renderDebug: () => import("react").ReactPortal;
|
|
1297
1371
|
render(): import("react").JSX.Element;
|
|
1298
1372
|
}
|
|
1373
|
+
export type StackDirection = 'horizontal' | 'vertical';
|
|
1374
|
+
export interface StackProps extends ComponentPropsWithRef<'div'> {
|
|
1375
|
+
direction?: StackDirection;
|
|
1376
|
+
gap?: number;
|
|
1377
|
+
}
|
|
1378
|
+
export declare const Stack: PolymorphicComponent<StackProps>;
|
|
1299
1379
|
export interface StepperProps extends ComponentPropsWithRef<'ol'> {
|
|
1300
1380
|
horizontal?: boolean | Breakpoint;
|
|
1301
1381
|
}
|
|
1302
|
-
export declare const Stepper:
|
|
1382
|
+
export declare const Stepper: PolymorphicComponent<StepperProps>;
|
|
1303
1383
|
export interface StepperNavProps extends ComponentPropsWithRef<'nav'> {
|
|
1304
1384
|
horizontal?: StepperProps['horizontal'];
|
|
1305
1385
|
}
|
|
1306
|
-
export declare const StepperNav:
|
|
1386
|
+
export declare const StepperNav: PolymorphicComponent<StepperNavProps>;
|
|
1307
1387
|
interface StepStyle {
|
|
1308
1388
|
active?: boolean;
|
|
1309
1389
|
theme?: ComponentTheme;
|
|
1310
1390
|
}
|
|
1311
1391
|
export type StepperItemProps = ComponentPropsWithRef<'li'> & StepStyle;
|
|
1312
|
-
export declare const StepperItem:
|
|
1392
|
+
export declare const StepperItem: PolymorphicComponent<StepperItemProps>;
|
|
1313
1393
|
export type StepperLinkProps = ComponentPropsWithRef<'a'> & StepStyle;
|
|
1314
|
-
export declare const StepperLink:
|
|
1394
|
+
export declare const StepperLink: PolymorphicComponent<StepperLinkProps>;
|
|
1315
1395
|
export type StepperButtonProps = ComponentPropsWithRef<'button'> & StepStyle;
|
|
1316
|
-
export declare const StepperButton:
|
|
1317
|
-
export declare const StepperOverflow:
|
|
1396
|
+
export declare const StepperButton: PolymorphicComponent<StepperButtonProps>;
|
|
1397
|
+
export declare const StepperOverflow: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
1318
1398
|
export interface TabProps extends ComponentPropsWithRef<'div'> {
|
|
1319
1399
|
eventKey: string;
|
|
1320
1400
|
label: ReactNode;
|
|
1321
1401
|
disabled?: boolean;
|
|
1322
1402
|
}
|
|
1323
|
-
export declare const Tab:
|
|
1403
|
+
export declare const Tab: PolymorphicComponent<TabProps>;
|
|
1324
1404
|
export interface TabsProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange'> {
|
|
1325
1405
|
activeKey?: string;
|
|
1326
1406
|
defaultActiveKey?: string;
|
|
@@ -1330,8 +1410,10 @@ export interface TabsProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange'
|
|
|
1330
1410
|
orientation?: 'horizontal' | 'vertical';
|
|
1331
1411
|
variant?: 'tabs' | 'pills' | 'underline' | 'list-group';
|
|
1332
1412
|
}
|
|
1333
|
-
export declare class Tabs extends Component<TabsProps
|
|
1413
|
+
export declare class Tabs<T extends ElementType | undefined = 'div'> extends Component<PolymorphicClassProps<T, TabsProps>> {
|
|
1334
1414
|
static displayName: string;
|
|
1415
|
+
readonly props: PolymorphicClassProps<T, TabsProps>;
|
|
1416
|
+
protected get componentProps(): Readonly<TabsProps & AsProps>;
|
|
1335
1417
|
get tabs(): import("react").ReactElement<TabProps, string | import("react").JSXElementConstructor<any>>[];
|
|
1336
1418
|
root: import("react").RefObject<HTMLDivElement>;
|
|
1337
1419
|
accessor selectedKey: string;
|
|
@@ -1354,7 +1436,7 @@ export interface TableProps extends ComponentPropsWithRef<'table'> {
|
|
|
1354
1436
|
small?: boolean;
|
|
1355
1437
|
responsive?: boolean | Breakpoint;
|
|
1356
1438
|
}
|
|
1357
|
-
export declare const Table:
|
|
1439
|
+
export declare const Table: PolymorphicComponent<TableProps>;
|
|
1358
1440
|
export type ToastPosition = 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
|
|
1359
1441
|
export interface ToastMessage extends Pick<ToastItemProps, 'theme' | 'translucent' | 'instant' | 'role'> {
|
|
1360
1442
|
id?: string;
|
|
@@ -1371,16 +1453,16 @@ interface ToastEntry extends ToastMessage {
|
|
|
1371
1453
|
export interface ToastContainerProps extends ComponentPropsWithRef<'div'> {
|
|
1372
1454
|
position?: ToastPosition | 'static';
|
|
1373
1455
|
}
|
|
1374
|
-
export declare const ToastContainer:
|
|
1456
|
+
export declare const ToastContainer: PolymorphicComponent<ToastContainerProps>;
|
|
1375
1457
|
export interface ToastItemProps extends ComponentPropsWithRef<'div'> {
|
|
1376
1458
|
theme?: ComponentTheme;
|
|
1377
1459
|
show?: boolean;
|
|
1378
1460
|
translucent?: boolean;
|
|
1379
1461
|
instant?: boolean;
|
|
1380
1462
|
}
|
|
1381
|
-
export declare const ToastItem:
|
|
1382
|
-
export declare const ToastHeader:
|
|
1383
|
-
export declare const ToastBody:
|
|
1463
|
+
export declare const ToastItem: PolymorphicComponent<ToastItemProps>;
|
|
1464
|
+
export declare const ToastHeader: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
1465
|
+
export declare const ToastBody: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
1384
1466
|
export declare class Toast {
|
|
1385
1467
|
TimeScalar: typeof Timestamp;
|
|
1386
1468
|
accessor messages: ToastEntry[];
|
|
@@ -1407,7 +1489,7 @@ export interface ToggleButtonProps extends Omit<ComponentPropsWithRef<'label'>,
|
|
|
1407
1489
|
inputProps?: Omit<ComponentPropsWithRef<'input'>, 'type' | 'name' | 'value' | 'checked' | 'defaultChecked' | 'disabled' | 'required'>;
|
|
1408
1490
|
onChange?: ComponentPropsWithRef<'input'>['onChange'];
|
|
1409
1491
|
}
|
|
1410
|
-
export declare const ToggleButton:
|
|
1492
|
+
export declare const ToggleButton: PolymorphicComponent<ToggleButtonProps>;
|
|
1411
1493
|
export interface TogglerProps extends Omit<ButtonHTMLAttributes<HTMLElement>, 'value'> {
|
|
1412
1494
|
as?: 'button' | 'div' | 'span';
|
|
1413
1495
|
target?: string;
|
|
@@ -1417,12 +1499,14 @@ export interface TogglerProps extends Omit<ButtonHTMLAttributes<HTMLElement>, 'v
|
|
|
1417
1499
|
variant?: 'solid' | 'outline' | 'subtle' | 'text' | 'link';
|
|
1418
1500
|
onToggled?: (targets: HTMLElement[]) => unknown;
|
|
1419
1501
|
}
|
|
1420
|
-
export declare class Toggler extends Component<TogglerProps
|
|
1502
|
+
export declare class Toggler<T extends ElementType | undefined = 'button'> extends Component<PolymorphicClassProps<T, TogglerProps>> {
|
|
1421
1503
|
static displayName: string;
|
|
1504
|
+
readonly props: PolymorphicClassProps<T, TogglerProps>;
|
|
1505
|
+
protected get componentProps(): Readonly<Omit<TogglerProps, 'as'> & AsProps>;
|
|
1422
1506
|
handleClick: (event: MouseEvent$1<HTMLElement>) => void;
|
|
1423
1507
|
handleKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
1424
1508
|
render(): import("react").JSX.Element;
|
|
1425
1509
|
}
|
|
1426
1510
|
export type TooltipProps = OverlayTriggerProps;
|
|
1427
|
-
export declare const Tooltip:
|
|
1511
|
+
export declare const Tooltip: PolymorphicComponent<OverlayTriggerProps>;
|
|
1428
1512
|
export {};
|