@flood-md/react 0.2.3 → 0.2.5
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/README.md +398 -3
- package/dist/alert-dialog.d.ts +2 -0
- package/dist/alert-dialog.js +23 -0
- package/dist/avatar.d.ts +5 -0
- package/dist/avatar.js +8 -0
- package/dist/checkbox.d.ts +4 -0
- package/dist/checkbox.js +15 -0
- package/dist/combobox.d.ts +11 -0
- package/dist/combobox.js +301 -0
- package/dist/content-elements.d.ts +8 -0
- package/dist/content-elements.js +47 -0
- package/dist/data-display.d.ts +3 -0
- package/dist/data-display.js +11 -0
- package/dist/disclosure.js +2 -1
- package/dist/feedback-actions.d.ts +3 -0
- package/dist/feedback-actions.js +106 -0
- package/dist/feedback.d.ts +8 -0
- package/dist/feedback.js +29 -0
- package/dist/file-input.d.ts +8 -0
- package/dist/file-input.js +86 -0
- package/dist/focusable-hidden.d.ts +3 -0
- package/dist/focusable-hidden.js +99 -0
- package/dist/fonts/InterVariable-Italic.woff2 +0 -0
- package/dist/fonts/README.md +9 -5
- package/dist/form-controls.d.ts +6 -0
- package/dist/form-controls.js +250 -0
- package/dist/foundations.css +543 -12
- package/dist/index.d.ts +513 -2
- package/dist/index.js +223 -36
- package/dist/menu.d.ts +2 -0
- package/dist/menu.js +130 -0
- package/dist/navigation-layout.d.ts +7 -0
- package/dist/navigation-layout.js +77 -0
- package/dist/navigation.js +8 -8
- package/dist/numeric-input.d.ts +8 -0
- package/dist/numeric-input.js +68 -0
- package/dist/overlay-runtime.js +43 -16
- package/dist/overlays.d.ts +7 -1
- package/dist/overlays.js +17 -6
- package/dist/scroll-area.js +17 -2
- package/dist/select.js +96 -47
- package/dist/slider.d.ts +7 -0
- package/dist/slider.js +89 -0
- package/dist/styles.css +9 -0
- package/dist/text-inputs.d.ts +9 -0
- package/dist/text-inputs.js +45 -0
- package/dist/toolbar.d.ts +2 -0
- package/dist/toolbar.js +80 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ButtonHTMLAttributes, type InputHTMLAttributes, type TextareaHTMLAttributes, type SelectHTMLAttributes, type AnchorHTMLAttributes, type ReactNode, type HTMLAttributes, type LabelHTMLAttributes, type FieldsetHTMLAttributes, type RefCallback, type RefObject } from "react";
|
|
1
|
+
import { type ButtonHTMLAttributes, type InputHTMLAttributes, type TextareaHTMLAttributes, type SelectHTMLAttributes, type AnchorHTMLAttributes, type ReactNode, type HTMLAttributes, type CSSProperties, type LabelHTMLAttributes, type FieldsetHTMLAttributes, type RefCallback, type RefObject, type TableHTMLAttributes, type ImgHTMLAttributes, type BlockquoteHTMLAttributes } from "react";
|
|
2
2
|
export type ControlSize = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
3
3
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
4
|
variant?: "solid" | "subtle" | "outline" | "ghost";
|
|
@@ -7,6 +7,112 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
9
9
|
export type FieldStatus = "error" | "warning" | "success" | "info";
|
|
10
|
+
export type ContentSize = "sm" | "md" | "lg";
|
|
11
|
+
export interface TagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
12
|
+
size?: ContentSize;
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
onRemove?: () => void;
|
|
16
|
+
removeLabel?: string;
|
|
17
|
+
removeButtonProps?: Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "type" | "disabled" | "onClick" | "aria-label">;
|
|
18
|
+
}
|
|
19
|
+
/** @since 0.2.5 */
|
|
20
|
+
export declare const Tag: import("react").ForwardRefExoticComponent<TagProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
export interface KbdProps extends HTMLAttributes<HTMLElement> {
|
|
22
|
+
size?: ContentSize;
|
|
23
|
+
}
|
|
24
|
+
/** @since 0.2.4 */
|
|
25
|
+
export declare const Kbd: import("react").ForwardRefExoticComponent<KbdProps & import("react").RefAttributes<HTMLElement>>;
|
|
26
|
+
export interface ToolbarProps extends Omit<HTMLAttributes<HTMLDivElement>, "role"> {
|
|
27
|
+
label: string;
|
|
28
|
+
orientation?: "horizontal" | "vertical";
|
|
29
|
+
loop?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/** @since 0.2.4 */
|
|
32
|
+
export declare const Toolbar: import("react").ForwardRefExoticComponent<ToolbarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
33
|
+
export type DataDensity = "compact" | "comfortable";
|
|
34
|
+
export interface DescriptionItem {
|
|
35
|
+
id: string;
|
|
36
|
+
term: string;
|
|
37
|
+
description: ReactNode;
|
|
38
|
+
}
|
|
39
|
+
export interface DescriptionListProps extends Omit<HTMLAttributes<HTMLDListElement>, "children"> {
|
|
40
|
+
items: readonly DescriptionItem[];
|
|
41
|
+
layout?: "inline" | "stacked";
|
|
42
|
+
density?: DataDensity;
|
|
43
|
+
dividers?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/** @since 0.2.4 */
|
|
46
|
+
export declare const DescriptionList: import("react").ForwardRefExoticComponent<DescriptionListProps & import("react").RefAttributes<HTMLDListElement>>;
|
|
47
|
+
export interface TableProps extends Omit<TableHTMLAttributes<HTMLTableElement>, "children"> {
|
|
48
|
+
caption: string;
|
|
49
|
+
children: ReactNode;
|
|
50
|
+
hideCaption?: boolean;
|
|
51
|
+
density?: DataDensity;
|
|
52
|
+
striped?: boolean;
|
|
53
|
+
scrollLabel?: string;
|
|
54
|
+
}
|
|
55
|
+
/** @since 0.2.4 */
|
|
56
|
+
export declare const Table: import("react").ForwardRefExoticComponent<TableProps & import("react").RefAttributes<HTMLTableElement>>;
|
|
57
|
+
export type SemanticTone = "neutral" | "accent" | "error" | "warning" | "success" | "info";
|
|
58
|
+
export type BadgeTone = SemanticTone;
|
|
59
|
+
export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
60
|
+
size?: ContentSize;
|
|
61
|
+
tone?: BadgeTone;
|
|
62
|
+
variant?: "subtle" | "outline";
|
|
63
|
+
}
|
|
64
|
+
/** @since 0.2.4 */
|
|
65
|
+
export declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
66
|
+
export interface SpinnerProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children" | "role" | "aria-label" | "aria-hidden"> {
|
|
67
|
+
size?: ContentSize;
|
|
68
|
+
label?: string;
|
|
69
|
+
decorative?: boolean;
|
|
70
|
+
}
|
|
71
|
+
/** @since 0.2.4 */
|
|
72
|
+
export declare const Spinner: import("react").ForwardRefExoticComponent<SpinnerProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
73
|
+
export interface SkeletonProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children" | "role" | "tabIndex" | "aria-label" | "aria-hidden"> {
|
|
74
|
+
shape?: "text" | "rounded" | "circle";
|
|
75
|
+
width?: CSSProperties["width"];
|
|
76
|
+
height?: CSSProperties["height"];
|
|
77
|
+
animate?: boolean;
|
|
78
|
+
}
|
|
79
|
+
/** @since 0.2.4 */
|
|
80
|
+
export declare const Skeleton: import("react").ForwardRefExoticComponent<SkeletonProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
81
|
+
export interface AvatarProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children" | "role" | "aria-label" | "aria-hidden"> {
|
|
82
|
+
name: string;
|
|
83
|
+
src?: string;
|
|
84
|
+
fallback?: string;
|
|
85
|
+
size?: ContentSize;
|
|
86
|
+
shape?: "circle" | "rounded";
|
|
87
|
+
decorative?: boolean;
|
|
88
|
+
}
|
|
89
|
+
/** @since 0.2.4 */
|
|
90
|
+
export declare const Avatar: import("react").ForwardRefExoticComponent<AvatarProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
91
|
+
export interface ProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "role"> {
|
|
92
|
+
label: string;
|
|
93
|
+
value?: number;
|
|
94
|
+
max?: number;
|
|
95
|
+
valueText?: string;
|
|
96
|
+
size?: ContentSize;
|
|
97
|
+
tone?: SemanticTone;
|
|
98
|
+
hideLabel?: boolean;
|
|
99
|
+
}
|
|
100
|
+
/** @since 0.2.4 */
|
|
101
|
+
export declare const Progress: import("react").ForwardRefExoticComponent<ProgressProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
102
|
+
export interface MeterProps extends Omit<ProgressProps, "value"> {
|
|
103
|
+
value: number;
|
|
104
|
+
min?: number;
|
|
105
|
+
}
|
|
106
|
+
/** @since 0.2.4 */
|
|
107
|
+
export declare const Meter: import("react").ForwardRefExoticComponent<MeterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
108
|
+
export interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, "title" | "role" | "aria-live"> {
|
|
109
|
+
title?: string;
|
|
110
|
+
tone?: "neutral" | FieldStatus;
|
|
111
|
+
icon?: ReactNode;
|
|
112
|
+
announcement?: "off" | "polite" | "assertive";
|
|
113
|
+
}
|
|
114
|
+
/** @since 0.2.4 */
|
|
115
|
+
export declare const Alert: import("react").ForwardRefExoticComponent<AlertProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
116
|
export interface TabItem {
|
|
11
117
|
value: string;
|
|
12
118
|
label: string;
|
|
@@ -54,6 +160,35 @@ export declare const Pagination: import("react").ForwardRefExoticComponent<Pagin
|
|
|
54
160
|
export interface OverlayTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
55
161
|
ref: RefCallback<HTMLButtonElement>;
|
|
56
162
|
}
|
|
163
|
+
export interface MenuActionItem {
|
|
164
|
+
id: string;
|
|
165
|
+
type?: "item";
|
|
166
|
+
label: string;
|
|
167
|
+
icon?: ReactNode;
|
|
168
|
+
shortcut?: string;
|
|
169
|
+
disabled?: boolean;
|
|
170
|
+
tone?: "default" | "danger";
|
|
171
|
+
}
|
|
172
|
+
export interface MenuSeparator {
|
|
173
|
+
id: string;
|
|
174
|
+
type: "separator";
|
|
175
|
+
}
|
|
176
|
+
export type MenuItem = MenuActionItem | MenuSeparator;
|
|
177
|
+
export interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "role"> {
|
|
178
|
+
label: string;
|
|
179
|
+
trigger: (props: OverlayTriggerProps) => ReactNode;
|
|
180
|
+
items: readonly MenuItem[];
|
|
181
|
+
onAction?: (id: string) => void;
|
|
182
|
+
open?: boolean;
|
|
183
|
+
defaultOpen?: boolean;
|
|
184
|
+
onOpenChange?: (open: boolean) => void;
|
|
185
|
+
disabled?: boolean;
|
|
186
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
187
|
+
align?: "start" | "center" | "end";
|
|
188
|
+
controlSize?: "sm" | "md" | "lg" | "xl";
|
|
189
|
+
}
|
|
190
|
+
/** @since 0.2.4 */
|
|
191
|
+
export declare const Menu: import("react").ForwardRefExoticComponent<MenuProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
57
192
|
export interface TooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "content" | "title" | "role"> {
|
|
58
193
|
content: string;
|
|
59
194
|
trigger: (props: OverlayTriggerProps) => ReactNode;
|
|
@@ -91,6 +226,21 @@ export interface DialogProps extends Omit<HTMLAttributes<HTMLDialogElement>, "ch
|
|
|
91
226
|
initialFocusRef?: RefObject<HTMLElement | null>;
|
|
92
227
|
}
|
|
93
228
|
export declare const Dialog: import("react").ForwardRefExoticComponent<DialogProps & import("react").RefAttributes<HTMLDialogElement>>;
|
|
229
|
+
export interface DrawerProps extends DialogProps {
|
|
230
|
+
side?: "start" | "end" | "top" | "bottom";
|
|
231
|
+
size?: "sm" | "md" | "lg";
|
|
232
|
+
footer?: ReactNode;
|
|
233
|
+
}
|
|
234
|
+
export declare const Drawer: import("react").ForwardRefExoticComponent<DrawerProps & import("react").RefAttributes<HTMLDialogElement>>;
|
|
235
|
+
export interface AlertDialogProps extends Omit<DialogProps, "children" | "role" | "description" | "closeLabel" | "closeOnOutsideClick" | "initialFocusRef"> {
|
|
236
|
+
description: string;
|
|
237
|
+
confirmLabel?: string;
|
|
238
|
+
cancelLabel?: string;
|
|
239
|
+
confirmDisabled?: boolean;
|
|
240
|
+
onConfirm: () => void;
|
|
241
|
+
onCancel?: () => void;
|
|
242
|
+
}
|
|
243
|
+
export declare const AlertDialog: import("react").ForwardRefExoticComponent<AlertDialogProps & import("react").RefAttributes<HTMLDialogElement>>;
|
|
94
244
|
export interface CollapsibleProps extends Omit<HTMLAttributes<HTMLDivElement>, "title" | "onChange"> {
|
|
95
245
|
title: string;
|
|
96
246
|
open?: boolean;
|
|
@@ -167,6 +317,83 @@ export interface InputGroupProps extends Omit<InputProps, "children" | "type"> {
|
|
|
167
317
|
}
|
|
168
318
|
/** One real Input with host-owned logical start/end adornments. Ref and native attributes target the input. */
|
|
169
319
|
export declare const InputGroup: import("react").ForwardRefExoticComponent<InputGroupProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
320
|
+
export interface FileInputProps extends Omit<InputProps, "type" | "value" | "defaultValue" | "children" | "readOnly"> {
|
|
321
|
+
clearable?: boolean;
|
|
322
|
+
clearLabel?: string;
|
|
323
|
+
selectionLabel?: string;
|
|
324
|
+
removeFileLabel?: string;
|
|
325
|
+
onFilesChange?: (files: readonly File[]) => void;
|
|
326
|
+
}
|
|
327
|
+
export declare const FileInput: import("react").ForwardRefExoticComponent<FileInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
328
|
+
export interface SearchInputProps extends Omit<InputProps, "type" | "children"> {
|
|
329
|
+
clearable?: boolean;
|
|
330
|
+
clearLabel?: string;
|
|
331
|
+
}
|
|
332
|
+
export declare const SearchInput: import("react").ForwardRefExoticComponent<SearchInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
333
|
+
export interface PasswordInputProps extends Omit<InputProps, "type" | "children"> {
|
|
334
|
+
visible?: boolean;
|
|
335
|
+
defaultVisible?: boolean;
|
|
336
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
337
|
+
showPasswordLabel?: string;
|
|
338
|
+
hidePasswordLabel?: string;
|
|
339
|
+
}
|
|
340
|
+
export declare const PasswordInput: import("react").ForwardRefExoticComponent<PasswordInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
341
|
+
export interface ComboboxOption {
|
|
342
|
+
value: string;
|
|
343
|
+
label: string;
|
|
344
|
+
description?: string;
|
|
345
|
+
keywords?: readonly string[];
|
|
346
|
+
disabled?: boolean;
|
|
347
|
+
}
|
|
348
|
+
export interface ComboboxProps extends Omit<InputProps, "type" | "value" | "defaultValue" | "onChange" | "children"> {
|
|
349
|
+
options: readonly ComboboxOption[];
|
|
350
|
+
value?: string;
|
|
351
|
+
defaultValue?: string;
|
|
352
|
+
onValueChange?: (value: string) => void;
|
|
353
|
+
clearable?: boolean;
|
|
354
|
+
emptyMessage?: string;
|
|
355
|
+
listLabel?: string;
|
|
356
|
+
toggleLabel?: string;
|
|
357
|
+
clearLabel?: string;
|
|
358
|
+
invalidSelectionMessage?: string;
|
|
359
|
+
}
|
|
360
|
+
/** @since 0.2.5 */
|
|
361
|
+
export declare const Combobox: import("react").ForwardRefExoticComponent<ComboboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
362
|
+
export interface MultiSelectProps extends Omit<ComboboxProps, "value" | "defaultValue" | "onValueChange"> {
|
|
363
|
+
value?: readonly string[];
|
|
364
|
+
defaultValue?: readonly string[];
|
|
365
|
+
onValueChange?: (value: string[]) => void;
|
|
366
|
+
removeItemLabel?: string;
|
|
367
|
+
}
|
|
368
|
+
/** @since 0.2.5 */
|
|
369
|
+
export declare const MultiSelect: import("react").ForwardRefExoticComponent<MultiSelectProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
370
|
+
export interface NumberInputProps extends Omit<InputProps, "type" | "value" | "defaultValue" | "onChange" | "min" | "max" | "step" | "children"> {
|
|
371
|
+
value?: number | null;
|
|
372
|
+
defaultValue?: number | null;
|
|
373
|
+
onValueChange?: (value: number | null) => void;
|
|
374
|
+
min?: number;
|
|
375
|
+
max?: number;
|
|
376
|
+
step?: number;
|
|
377
|
+
decreaseLabel?: string;
|
|
378
|
+
increaseLabel?: string;
|
|
379
|
+
}
|
|
380
|
+
/** @since 0.2.5 */
|
|
381
|
+
export declare const NumberInput: import("react").ForwardRefExoticComponent<NumberInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
382
|
+
export interface SliderProps extends Omit<FieldsetProps, "legend" | "children" | "defaultValue" | "onChange"> {
|
|
383
|
+
label: string;
|
|
384
|
+
value?: readonly number[];
|
|
385
|
+
defaultValue?: readonly number[];
|
|
386
|
+
onValueChange?: (value: number[]) => void;
|
|
387
|
+
min?: number;
|
|
388
|
+
max?: number;
|
|
389
|
+
step?: number;
|
|
390
|
+
thumbLabels?: readonly string[];
|
|
391
|
+
showValue?: boolean;
|
|
392
|
+
readOnly?: boolean;
|
|
393
|
+
controlSize?: "sm" | "md" | "lg" | "xl";
|
|
394
|
+
}
|
|
395
|
+
/** @since 0.2.5 */
|
|
396
|
+
export declare const Slider: import("react").ForwardRefExoticComponent<SliderProps & import("react").RefAttributes<HTMLFieldSetElement>>;
|
|
170
397
|
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
171
398
|
status?: FieldStatus;
|
|
172
399
|
invalid?: boolean;
|
|
@@ -183,7 +410,10 @@ export declare const Select: import("react").ForwardRefExoticComponent<SelectPro
|
|
|
183
410
|
export interface ChoiceProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
|
|
184
411
|
label: ReactNode;
|
|
185
412
|
}
|
|
186
|
-
export
|
|
413
|
+
export interface CheckboxProps extends ChoiceProps {
|
|
414
|
+
indeterminate?: boolean;
|
|
415
|
+
}
|
|
416
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
187
417
|
export declare const Radio: import("react").ForwardRefExoticComponent<ChoiceProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
188
418
|
export declare const Switch: import("react").ForwardRefExoticComponent<ChoiceProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
189
419
|
export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
@@ -288,6 +518,66 @@ export interface SurfaceProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
288
518
|
padding?: Space;
|
|
289
519
|
}
|
|
290
520
|
export declare const Surface: import("react").ForwardRefExoticComponent<SurfaceProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
521
|
+
export interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
522
|
+
size?: "sm" | "md" | "lg" | "full";
|
|
523
|
+
gutter?: Space;
|
|
524
|
+
}
|
|
525
|
+
/** Centered content with logical gutters; max width includes padding. @since 0.2.4 */
|
|
526
|
+
export declare const Container: import("react").ForwardRefExoticComponent<ContainerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
527
|
+
export interface GridProps extends HTMLAttributes<HTMLDivElement> {
|
|
528
|
+
columns?: 1 | 2 | 3 | 4 | 6 | 12;
|
|
529
|
+
minItemWidth?: string;
|
|
530
|
+
gap?: Space;
|
|
531
|
+
}
|
|
532
|
+
/** Auto-fit by default; explicit columns retain their count at every width. @since 0.2.4 */
|
|
533
|
+
export declare const Grid: import("react").ForwardRefExoticComponent<GridProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
534
|
+
export interface VisuallyHiddenProps extends HTMLAttributes<HTMLElement> {
|
|
535
|
+
as?: "span" | "div";
|
|
536
|
+
focusable?: boolean;
|
|
537
|
+
}
|
|
538
|
+
/** Nonvisual content, with optional reveal when a descendant receives focus. @since 0.2.4 */
|
|
539
|
+
export declare const VisuallyHidden: import("react").ForwardRefExoticComponent<VisuallyHiddenProps & import("react").RefAttributes<HTMLElement>>;
|
|
540
|
+
export interface AspectRatioProps extends HTMLAttributes<HTMLDivElement> {
|
|
541
|
+
ratio?: number;
|
|
542
|
+
}
|
|
543
|
+
/** Reserve media geometry. Child content may overflow rather than being clipped. @since 0.2.4 */
|
|
544
|
+
export declare const AspectRatio: import("react").ForwardRefExoticComponent<AspectRatioProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
545
|
+
export interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, "alt"> {
|
|
546
|
+
alt: string;
|
|
547
|
+
fit?: "cover" | "contain";
|
|
548
|
+
}
|
|
549
|
+
/** Native image semantics, explicit alternative text and bounded media fitting. @since 0.2.4 */
|
|
550
|
+
export declare const Image: import("react").ForwardRefExoticComponent<ImageProps & import("react").RefAttributes<HTMLImageElement>>;
|
|
551
|
+
export interface ListProps extends Omit<HTMLAttributes<HTMLUListElement | HTMLOListElement>, "role"> {
|
|
552
|
+
ordered?: boolean;
|
|
553
|
+
start?: number;
|
|
554
|
+
reversed?: boolean;
|
|
555
|
+
marker?: boolean;
|
|
556
|
+
gap?: Space;
|
|
557
|
+
}
|
|
558
|
+
/** Native list items supplied by the host; hidden markers retain list semantics. @since 0.2.4 */
|
|
559
|
+
export declare const List: import("react").ForwardRefExoticComponent<ListProps & import("react").RefAttributes<HTMLOListElement | HTMLUListElement>>;
|
|
560
|
+
export interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, "title" | "children"> {
|
|
561
|
+
title: string;
|
|
562
|
+
description?: ReactNode;
|
|
563
|
+
icon?: ReactNode;
|
|
564
|
+
actions?: ReactNode;
|
|
565
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
566
|
+
density?: "compact" | "comfortable";
|
|
567
|
+
}
|
|
568
|
+
/** Static empty content, not loading, an error boundary or a live announcement. @since 0.2.4 */
|
|
569
|
+
export declare const EmptyState: import("react").ForwardRefExoticComponent<EmptyStateProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
570
|
+
export interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
571
|
+
title?: ReactNode;
|
|
572
|
+
description?: ReactNode;
|
|
573
|
+
actions?: ReactNode;
|
|
574
|
+
footer?: ReactNode;
|
|
575
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
576
|
+
density?: "compact" | "comfortable";
|
|
577
|
+
elevation?: "default" | "raised";
|
|
578
|
+
}
|
|
579
|
+
/** A structured content surface, not an interactive wrapper. @since 0.2.4 */
|
|
580
|
+
export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
291
581
|
export interface IconSlotProps extends HTMLAttributes<HTMLSpanElement> {
|
|
292
582
|
size?: ControlSize;
|
|
293
583
|
label?: string;
|
|
@@ -301,6 +591,7 @@ export declare const IconButton: import("react").ForwardRefExoticComponent<IconB
|
|
|
301
591
|
export declare const Divider: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLHRElement> & import("react").RefAttributes<HTMLHRElement>>;
|
|
302
592
|
export interface CodeSnippetProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
303
593
|
code: string;
|
|
594
|
+
codeDirection?: "ltr" | "rtl" | "auto";
|
|
304
595
|
action?: ReactNode;
|
|
305
596
|
}
|
|
306
597
|
/** Selectable code with an optional host-owned action; no clipboard side effects. */
|
|
@@ -311,3 +602,223 @@ export interface ScrollAreaProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
311
602
|
}
|
|
312
603
|
/** Native scrolling with inset overlay tracks; the ref targets the scrollable viewport. */
|
|
313
604
|
export declare const ScrollArea: import("react").ForwardRefExoticComponent<ScrollAreaProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
605
|
+
export interface CopyButtonProps extends Omit<ButtonProps, "children" | "value" | "type" | "onClick" | "loading"> {
|
|
606
|
+
value: string;
|
|
607
|
+
copyLabel?: string;
|
|
608
|
+
copiedLabel?: string;
|
|
609
|
+
errorLabel?: string;
|
|
610
|
+
resetDelay?: number;
|
|
611
|
+
onCopied?: () => void;
|
|
612
|
+
onCopyError?: (error: unknown) => void;
|
|
613
|
+
}
|
|
614
|
+
export declare const CopyButton: import("react").ForwardRefExoticComponent<CopyButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
615
|
+
export interface ToastItem {
|
|
616
|
+
id: string;
|
|
617
|
+
title: string;
|
|
618
|
+
description?: string;
|
|
619
|
+
status?: FieldStatus | "neutral";
|
|
620
|
+
duration?: number;
|
|
621
|
+
action?: {
|
|
622
|
+
label: string;
|
|
623
|
+
onClick: () => void;
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
export interface ToastRegionProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "role"> {
|
|
627
|
+
items: readonly ToastItem[];
|
|
628
|
+
onDismiss: (id: string) => void;
|
|
629
|
+
label?: string;
|
|
630
|
+
closeLabel?: string;
|
|
631
|
+
placement?: "top-start" | "top-end" | "bottom-start" | "bottom-end";
|
|
632
|
+
limit?: number;
|
|
633
|
+
inline?: boolean;
|
|
634
|
+
hotkey?: boolean;
|
|
635
|
+
}
|
|
636
|
+
export declare const ToastRegion: import("react").ForwardRefExoticComponent<ToastRegionProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
637
|
+
export interface AvatarGroupItem {
|
|
638
|
+
id: string;
|
|
639
|
+
name: string;
|
|
640
|
+
src?: string;
|
|
641
|
+
fallback?: string;
|
|
642
|
+
}
|
|
643
|
+
export interface AvatarGroupProps extends Omit<HTMLAttributes<HTMLUListElement>, "children"> {
|
|
644
|
+
items: readonly AvatarGroupItem[];
|
|
645
|
+
label: string;
|
|
646
|
+
max?: number;
|
|
647
|
+
size?: ContentSize;
|
|
648
|
+
overflowLabel?: string;
|
|
649
|
+
}
|
|
650
|
+
export declare const AvatarGroup: import("react").ForwardRefExoticComponent<AvatarGroupProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
651
|
+
export interface StatusIndicatorProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
652
|
+
label: string;
|
|
653
|
+
tone?: SemanticTone;
|
|
654
|
+
size?: ContentSize;
|
|
655
|
+
announce?: boolean;
|
|
656
|
+
}
|
|
657
|
+
export declare const StatusIndicator: import("react").ForwardRefExoticComponent<StatusIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
658
|
+
export interface FigureProps extends HTMLAttributes<HTMLElement> {
|
|
659
|
+
caption?: ReactNode;
|
|
660
|
+
captionPosition?: "before" | "after";
|
|
661
|
+
}
|
|
662
|
+
export declare const Figure: import("react").ForwardRefExoticComponent<FigureProps & import("react").RefAttributes<HTMLElement>>;
|
|
663
|
+
export interface BlockquoteProps extends BlockquoteHTMLAttributes<HTMLQuoteElement> {
|
|
664
|
+
attribution?: ReactNode;
|
|
665
|
+
}
|
|
666
|
+
export declare const Blockquote: import("react").ForwardRefExoticComponent<BlockquoteProps & import("react").RefAttributes<HTMLQuoteElement>>;
|
|
667
|
+
export interface InlineCodeProps extends HTMLAttributes<HTMLElement> {
|
|
668
|
+
size?: ContentSize;
|
|
669
|
+
wrap?: boolean;
|
|
670
|
+
}
|
|
671
|
+
export declare const InlineCode: import("react").ForwardRefExoticComponent<InlineCodeProps & import("react").RefAttributes<HTMLElement>>;
|
|
672
|
+
export interface MetricTrend {
|
|
673
|
+
label: string;
|
|
674
|
+
direction: "up" | "down" | "flat";
|
|
675
|
+
tone?: SemanticTone;
|
|
676
|
+
}
|
|
677
|
+
export interface MetricProps extends Omit<HTMLAttributes<HTMLDListElement>, "children"> {
|
|
678
|
+
label: string;
|
|
679
|
+
value: ReactNode;
|
|
680
|
+
hint?: ReactNode;
|
|
681
|
+
trend?: MetricTrend;
|
|
682
|
+
size?: ContentSize;
|
|
683
|
+
}
|
|
684
|
+
export declare const Metric: import("react").ForwardRefExoticComponent<MetricProps & import("react").RefAttributes<HTMLDListElement>>;
|
|
685
|
+
export interface TimelineItem {
|
|
686
|
+
id: string;
|
|
687
|
+
title: string;
|
|
688
|
+
description?: ReactNode;
|
|
689
|
+
state?: "complete" | "current" | "upcoming";
|
|
690
|
+
dateTime?: string;
|
|
691
|
+
timeLabel?: string;
|
|
692
|
+
icon?: ReactNode;
|
|
693
|
+
}
|
|
694
|
+
export interface TimelineProps extends Omit<HTMLAttributes<HTMLOListElement>, "children"> {
|
|
695
|
+
label: string;
|
|
696
|
+
items: readonly TimelineItem[];
|
|
697
|
+
stateLabels?: {
|
|
698
|
+
complete?: string;
|
|
699
|
+
current?: string;
|
|
700
|
+
upcoming?: string;
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
export declare const Timeline: import("react").ForwardRefExoticComponent<TimelineProps & import("react").RefAttributes<HTMLOListElement>>;
|
|
704
|
+
export interface NavigationListItem {
|
|
705
|
+
value: string;
|
|
706
|
+
label: string;
|
|
707
|
+
href: string;
|
|
708
|
+
description?: string;
|
|
709
|
+
icon?: ReactNode;
|
|
710
|
+
group?: string;
|
|
711
|
+
linkProps?: Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "children" | "aria-current">;
|
|
712
|
+
}
|
|
713
|
+
export interface NavigationListProps extends Omit<HTMLAttributes<HTMLElement>, "children" | "role" | "aria-label"> {
|
|
714
|
+
label: string;
|
|
715
|
+
items: readonly NavigationListItem[];
|
|
716
|
+
currentValue?: string;
|
|
717
|
+
size?: ContentSize;
|
|
718
|
+
}
|
|
719
|
+
export declare const NavigationList: import("react").ForwardRefExoticComponent<NavigationListProps & import("react").RefAttributes<HTMLElement>>;
|
|
720
|
+
export interface StepItem {
|
|
721
|
+
value: string;
|
|
722
|
+
title: string;
|
|
723
|
+
description?: string;
|
|
724
|
+
status?: "complete" | "upcoming" | "error";
|
|
725
|
+
disabled?: boolean;
|
|
726
|
+
}
|
|
727
|
+
export interface StepsProps extends Omit<HTMLAttributes<HTMLOListElement>, "children" | "role" | "aria-label"> {
|
|
728
|
+
label: string;
|
|
729
|
+
items: readonly StepItem[];
|
|
730
|
+
currentValue?: string;
|
|
731
|
+
orientation?: "horizontal" | "vertical";
|
|
732
|
+
onStepChange?: (value: string) => void;
|
|
733
|
+
statusLabels?: {
|
|
734
|
+
complete: string;
|
|
735
|
+
current: string;
|
|
736
|
+
upcoming: string;
|
|
737
|
+
error: string;
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
export declare const Steps: import("react").ForwardRefExoticComponent<StepsProps & import("react").RefAttributes<HTMLOListElement>>;
|
|
741
|
+
export interface SectionProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
|
|
742
|
+
title: string;
|
|
743
|
+
description?: ReactNode;
|
|
744
|
+
actions?: ReactNode;
|
|
745
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
746
|
+
headingSize?: "display" | "large" | "page" | "section";
|
|
747
|
+
}
|
|
748
|
+
export declare const Section: import("react").ForwardRefExoticComponent<SectionProps & import("react").RefAttributes<HTMLElement>>;
|
|
749
|
+
export interface SplitProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
750
|
+
main: ReactNode;
|
|
751
|
+
aside: ReactNode;
|
|
752
|
+
side?: "start" | "end";
|
|
753
|
+
ratio?: "balanced" | "main" | "aside";
|
|
754
|
+
collapseAt?: "sm" | "md" | "lg" | "never";
|
|
755
|
+
gap?: Space;
|
|
756
|
+
}
|
|
757
|
+
export declare const Split: import("react").ForwardRefExoticComponent<SplitProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
758
|
+
export interface CenterProps extends HTMLAttributes<HTMLDivElement> {
|
|
759
|
+
inline?: boolean;
|
|
760
|
+
maxWidth?: string;
|
|
761
|
+
minHeight?: string;
|
|
762
|
+
}
|
|
763
|
+
export declare const Center: import("react").ForwardRefExoticComponent<CenterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
764
|
+
export interface SkipLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> {
|
|
765
|
+
href: string;
|
|
766
|
+
}
|
|
767
|
+
export declare const SkipLink: import("react").ForwardRefExoticComponent<SkipLinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
768
|
+
export interface ListBoxProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "role" | "defaultValue" | "onChange"> {
|
|
769
|
+
label: string;
|
|
770
|
+
hideLabel?: boolean;
|
|
771
|
+
options: readonly ComboboxOption[];
|
|
772
|
+
value?: string | readonly string[];
|
|
773
|
+
defaultValue?: string | readonly string[];
|
|
774
|
+
onValueChange?: (value: string | string[]) => void;
|
|
775
|
+
multiple?: boolean;
|
|
776
|
+
disabled?: boolean;
|
|
777
|
+
readOnly?: boolean;
|
|
778
|
+
name?: string;
|
|
779
|
+
form?: string;
|
|
780
|
+
controlSize?: "sm" | "md" | "lg" | "xl";
|
|
781
|
+
}
|
|
782
|
+
export declare const ListBox: import("react").ForwardRefExoticComponent<ListBoxProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
783
|
+
export interface PinInputProps extends Omit<InputProps, "type" | "children" | "value" | "defaultValue" | "onChange" | "pattern" | "size"> {
|
|
784
|
+
label: string;
|
|
785
|
+
hideLabel?: boolean;
|
|
786
|
+
length?: number;
|
|
787
|
+
value?: string;
|
|
788
|
+
defaultValue?: string;
|
|
789
|
+
onValueChange?: (value: string) => void;
|
|
790
|
+
mode?: "numeric" | "alphanumeric";
|
|
791
|
+
mask?: boolean;
|
|
792
|
+
}
|
|
793
|
+
export declare const PinInput: import("react").ForwardRefExoticComponent<PinInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
794
|
+
export interface RatingProps extends Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>, "children" | "onChange" | "defaultValue"> {
|
|
795
|
+
label: string;
|
|
796
|
+
hideLabel?: boolean;
|
|
797
|
+
value?: number;
|
|
798
|
+
defaultValue?: number;
|
|
799
|
+
max?: number;
|
|
800
|
+
onValueChange?: (value: number) => void;
|
|
801
|
+
getValueLabel?: (value: number, max: number) => string;
|
|
802
|
+
readOnly?: boolean;
|
|
803
|
+
required?: boolean;
|
|
804
|
+
name: string;
|
|
805
|
+
form?: string;
|
|
806
|
+
size?: ContentSize;
|
|
807
|
+
}
|
|
808
|
+
export declare const Rating: import("react").ForwardRefExoticComponent<RatingProps & import("react").RefAttributes<HTMLFieldSetElement>>;
|
|
809
|
+
export interface DropzoneProps extends Omit<FileInputProps, "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop"> {
|
|
810
|
+
label: string;
|
|
811
|
+
description?: string;
|
|
812
|
+
}
|
|
813
|
+
export declare const Dropzone: import("react").ForwardRefExoticComponent<DropzoneProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
814
|
+
export interface CharacterCountProps extends HTMLAttributes<HTMLOutputElement> {
|
|
815
|
+
value?: string;
|
|
816
|
+
count?: number;
|
|
817
|
+
max?: number;
|
|
818
|
+
mode?: "count" | "remaining";
|
|
819
|
+
label?: string;
|
|
820
|
+
overLimitLabel?: string;
|
|
821
|
+
htmlFor?: string;
|
|
822
|
+
form?: string;
|
|
823
|
+
}
|
|
824
|
+
export declare const CharacterCount: import("react").ForwardRefExoticComponent<CharacterCountProps & import("react").RefAttributes<HTMLOutputElement>>;
|