@bixlab/mtone 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +446 -48
- package/dist/index.js +3945 -1645
- package/dist/styles.css +1 -1
- package/llms.txt +592 -136
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,70 @@ import * as _rc_component_table_es_Footer_Summary from '@rc-component/table/es/F
|
|
|
8
8
|
import { TableProps as TableProps$1, ColumnType, ExpandableConfig, Reference } from '@rc-component/table';
|
|
9
9
|
import { ToastManagerAddOptions, ToastManagerUpdateOptions, ToastObject } from '@base-ui/react/toast';
|
|
10
10
|
|
|
11
|
+
interface InputOTPProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
12
|
+
/** Number of cells, clamped to 1–32. */
|
|
13
|
+
length?: number;
|
|
14
|
+
value?: string;
|
|
15
|
+
defaultValue?: string;
|
|
16
|
+
onValueChange?: (value: string) => void;
|
|
17
|
+
onComplete?: (value: string) => void;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
readOnly?: boolean;
|
|
20
|
+
name?: string;
|
|
21
|
+
form?: string;
|
|
22
|
+
mask?: boolean;
|
|
23
|
+
inputMode?: React.HTMLAttributes<HTMLInputElement>["inputMode"];
|
|
24
|
+
controlSize?: "sm" | "md" | "lg";
|
|
25
|
+
separator?: React.ReactNode;
|
|
26
|
+
autoFocus?: boolean;
|
|
27
|
+
autoComplete?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type InputVariant = "outlined" | "filled" | "borderless" | "underlined";
|
|
31
|
+
type InputControlSize = "sm" | "md" | "lg";
|
|
32
|
+
interface InputAppearance {
|
|
33
|
+
controlSize?: InputControlSize;
|
|
34
|
+
variant?: InputVariant;
|
|
35
|
+
status?: "error" | "warning";
|
|
36
|
+
showCount?: boolean;
|
|
37
|
+
countCharacters?: (value: string) => number;
|
|
38
|
+
}
|
|
39
|
+
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "prefix">, InputAppearance {
|
|
40
|
+
prefix?: React.ReactNode;
|
|
41
|
+
suffix?: React.ReactNode;
|
|
42
|
+
allowClear?: boolean;
|
|
43
|
+
onClear?: () => void;
|
|
44
|
+
clearLabel?: string;
|
|
45
|
+
/** Class on the stable wrapper. className/style still target the native input. */
|
|
46
|
+
wrapperClassName?: string;
|
|
47
|
+
}
|
|
48
|
+
interface InputSearchProps extends InputProps {
|
|
49
|
+
onSearch?: (value: string) => void;
|
|
50
|
+
searchButton?: React.ReactNode;
|
|
51
|
+
loading?: boolean;
|
|
52
|
+
}
|
|
53
|
+
declare const SearchInput: React.ForwardRefExoticComponent<InputSearchProps & React.RefAttributes<HTMLInputElement>>;
|
|
54
|
+
interface InputPasswordProps extends Omit<InputProps, "type"> {
|
|
55
|
+
visible?: boolean;
|
|
56
|
+
defaultVisible?: boolean;
|
|
57
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
58
|
+
}
|
|
59
|
+
interface InputTextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, InputAppearance {
|
|
60
|
+
autoSize?: boolean | {
|
|
61
|
+
minRows?: number;
|
|
62
|
+
maxRows?: number;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
declare const Textarea: React.ForwardRefExoticComponent<InputTextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
66
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>> & {
|
|
67
|
+
Search: React.ForwardRefExoticComponent<InputSearchProps & React.RefAttributes<HTMLInputElement>>;
|
|
68
|
+
TextArea: React.ForwardRefExoticComponent<InputTextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
69
|
+
Password: React.ForwardRefExoticComponent<InputPasswordProps & React.RefAttributes<HTMLInputElement>>;
|
|
70
|
+
OTP: React.ForwardRefExoticComponent<InputOTPProps & React.RefAttributes<HTMLInputElement>> & {
|
|
71
|
+
formValueType: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
|
|
11
75
|
type FormValues = Record<string, unknown>;
|
|
12
76
|
interface FormRule {
|
|
13
77
|
required?: boolean;
|
|
@@ -113,6 +177,113 @@ declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAtt
|
|
|
113
177
|
Group: typeof AvatarGroup;
|
|
114
178
|
};
|
|
115
179
|
|
|
180
|
+
type ProgressType = "line" | "circle" | "dashboard";
|
|
181
|
+
type ProgressStatus = "normal" | "active" | "success" | "exception";
|
|
182
|
+
type ProgressColor = string | {
|
|
183
|
+
from: string;
|
|
184
|
+
to: string;
|
|
185
|
+
};
|
|
186
|
+
interface ProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "color"> {
|
|
187
|
+
value: number;
|
|
188
|
+
label?: string;
|
|
189
|
+
type?: ProgressType;
|
|
190
|
+
status?: ProgressStatus;
|
|
191
|
+
showInfo?: boolean;
|
|
192
|
+
format?: (value: number, successValue: number) => React.ReactNode;
|
|
193
|
+
size?: "small" | "medium" | number;
|
|
194
|
+
strokeWidth?: number;
|
|
195
|
+
strokeLinecap?: "round" | "butt" | "square";
|
|
196
|
+
color?: ProgressColor;
|
|
197
|
+
trackColor?: string;
|
|
198
|
+
success?: {
|
|
199
|
+
value: number;
|
|
200
|
+
color?: string;
|
|
201
|
+
};
|
|
202
|
+
steps?: number | {
|
|
203
|
+
count: number;
|
|
204
|
+
gap?: number;
|
|
205
|
+
};
|
|
206
|
+
gapDegree?: number;
|
|
207
|
+
gapPosition?: "top" | "bottom" | "left" | "right";
|
|
208
|
+
}
|
|
209
|
+
/** Compact progress indicator. Numeric size is line height or circular diameter in px. */
|
|
210
|
+
declare function Progress({ value, label, type, status, showInfo, format, size, strokeWidth, strokeLinecap, color, trackColor, success, steps, gapDegree, gapPosition, className, style, ...props }: ProgressProps): React.JSX.Element;
|
|
211
|
+
|
|
212
|
+
type TypographyTone = "secondary" | "success" | "warning" | "danger";
|
|
213
|
+
interface TypographyCopyable {
|
|
214
|
+
text?: string | (() => string | Promise<string>);
|
|
215
|
+
onCopy?: () => void;
|
|
216
|
+
onError?: (error: unknown) => void;
|
|
217
|
+
label?: string;
|
|
218
|
+
}
|
|
219
|
+
interface TypographyEditable {
|
|
220
|
+
text?: string;
|
|
221
|
+
editing?: boolean;
|
|
222
|
+
onEditingChange?: (editing: boolean) => void;
|
|
223
|
+
onChange?: (text: string) => void;
|
|
224
|
+
onStart?: () => void;
|
|
225
|
+
onCancel?: () => void;
|
|
226
|
+
maxLength?: number;
|
|
227
|
+
label?: string;
|
|
228
|
+
}
|
|
229
|
+
interface TypographyEllipsis {
|
|
230
|
+
rows?: number;
|
|
231
|
+
expandable?: boolean;
|
|
232
|
+
expanded?: boolean;
|
|
233
|
+
defaultExpanded?: boolean;
|
|
234
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
235
|
+
expandLabel?: string;
|
|
236
|
+
collapseLabel?: string;
|
|
237
|
+
}
|
|
238
|
+
interface TextProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
239
|
+
muted?: boolean;
|
|
240
|
+
type?: TypographyTone;
|
|
241
|
+
disabled?: boolean;
|
|
242
|
+
strong?: boolean;
|
|
243
|
+
italic?: boolean;
|
|
244
|
+
underline?: boolean;
|
|
245
|
+
delete?: boolean;
|
|
246
|
+
mark?: boolean;
|
|
247
|
+
code?: boolean;
|
|
248
|
+
keyboard?: boolean;
|
|
249
|
+
copyable?: boolean | TypographyCopyable;
|
|
250
|
+
editable?: boolean | TypographyEditable;
|
|
251
|
+
ellipsis?: boolean | TypographyEllipsis;
|
|
252
|
+
}
|
|
253
|
+
interface TitleProps extends TextProps {
|
|
254
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
255
|
+
}
|
|
256
|
+
type ParagraphProps = TextProps;
|
|
257
|
+
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
258
|
+
muted?: boolean;
|
|
259
|
+
type?: TypographyTone;
|
|
260
|
+
disabled?: boolean;
|
|
261
|
+
}
|
|
262
|
+
declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
263
|
+
declare const Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
264
|
+
declare const Paragraph: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
265
|
+
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
266
|
+
interface BlockquoteProps extends Omit<React.BlockquoteHTMLAttributes<HTMLQuoteElement>, "cite" | "color"> {
|
|
267
|
+
/** Visible attribution; use citeUrl for the HTML source URL. */
|
|
268
|
+
cite?: React.ReactNode;
|
|
269
|
+
citeUrl?: string;
|
|
270
|
+
/** Decorative icon. Keep interactive controls in children or cite instead. */
|
|
271
|
+
icon?: React.ReactNode;
|
|
272
|
+
iconSize?: number | string;
|
|
273
|
+
/** Any CSS color value, including a theme variable. */
|
|
274
|
+
color?: React.CSSProperties["color"];
|
|
275
|
+
radius?: React.CSSProperties["borderRadius"];
|
|
276
|
+
textWrap?: React.CSSProperties["textWrap"];
|
|
277
|
+
}
|
|
278
|
+
declare const Blockquote: React.ForwardRefExoticComponent<BlockquoteProps & React.RefAttributes<HTMLQuoteElement>>;
|
|
279
|
+
declare const Typography: {
|
|
280
|
+
Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
281
|
+
Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
282
|
+
Paragraph: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
283
|
+
Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
284
|
+
Blockquote: React.ForwardRefExoticComponent<BlockquoteProps & React.RefAttributes<HTMLQuoteElement>>;
|
|
285
|
+
};
|
|
286
|
+
|
|
116
287
|
interface DividerProps extends React.HTMLAttributes<HTMLElement> {
|
|
117
288
|
orientation?: "horizontal" | "vertical";
|
|
118
289
|
variant?: "solid" | "dashed" | "dotted";
|
|
@@ -125,6 +296,21 @@ interface DividerProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
125
296
|
/** A non-interactive separator. Titles are supported in horizontal orientation only. */
|
|
126
297
|
declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement | HTMLHRElement>>;
|
|
127
298
|
|
|
299
|
+
type DropdownAlign = "start" | "end" | "left" | "right";
|
|
300
|
+
interface DropdownLayoutProps {
|
|
301
|
+
/** Content-sized by default. Numbers are CSS pixels; strings are CSS widths. */
|
|
302
|
+
width?: React__default.CSSProperties["width"];
|
|
303
|
+
/** start/end are logical; left/right are physical even in RTL. */
|
|
304
|
+
align?: DropdownAlign;
|
|
305
|
+
}
|
|
306
|
+
interface DropdownProps extends OpenProps, DropdownLayoutProps {
|
|
307
|
+
trigger: React__default.ReactElement;
|
|
308
|
+
content: React__default.ReactNode;
|
|
309
|
+
/** Accessible name for the nonmodal dialog. */
|
|
310
|
+
label?: string;
|
|
311
|
+
}
|
|
312
|
+
declare function Dropdown({ trigger, content, width, align, label, ...props }: DropdownProps): React__default.JSX.Element;
|
|
313
|
+
|
|
128
314
|
interface TabItem {
|
|
129
315
|
value: string;
|
|
130
316
|
label: React__default.ReactNode;
|
|
@@ -277,6 +463,7 @@ declare function NumberInput({ label, className, ...props }: NumberInputProps):
|
|
|
277
463
|
|
|
278
464
|
declare function Segmented({ options, label, className, ...props }: RadioGroupProps): React__default.JSX.Element;
|
|
279
465
|
interface MenuItem {
|
|
466
|
+
type?: "item";
|
|
280
467
|
icon?: React__default.ReactNode;
|
|
281
468
|
key: string;
|
|
282
469
|
label: React__default.ReactNode;
|
|
@@ -284,14 +471,67 @@ interface MenuItem {
|
|
|
284
471
|
danger?: boolean;
|
|
285
472
|
shortcut?: string;
|
|
286
473
|
onSelect?: () => void;
|
|
474
|
+
/** Nonempty children open a submenu; parent callbacks are not invoked. */
|
|
475
|
+
children?: MenuEntry[];
|
|
476
|
+
}
|
|
477
|
+
interface MenuGroup {
|
|
478
|
+
type: "group";
|
|
479
|
+
key: string;
|
|
480
|
+
label: React__default.ReactNode;
|
|
481
|
+
children: MenuEntry[];
|
|
482
|
+
}
|
|
483
|
+
interface MenuDivider {
|
|
484
|
+
type: "divider";
|
|
485
|
+
key: string;
|
|
287
486
|
}
|
|
288
|
-
interface
|
|
487
|
+
interface MenuCheckboxItem extends Omit<MenuItem, "type" | "children" | "onSelect"> {
|
|
488
|
+
type: "checkbox";
|
|
489
|
+
checked?: boolean;
|
|
490
|
+
defaultChecked?: boolean;
|
|
491
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
492
|
+
closeOnClick?: boolean;
|
|
493
|
+
}
|
|
494
|
+
interface MenuRadioGroup {
|
|
495
|
+
type: "radio-group";
|
|
496
|
+
key: string;
|
|
497
|
+
label: React__default.ReactNode;
|
|
498
|
+
value?: string;
|
|
499
|
+
defaultValue?: string;
|
|
500
|
+
onValueChange?: (value: string) => void;
|
|
501
|
+
children: Omit<MenuItem, "type" | "children" | "onSelect">[];
|
|
502
|
+
}
|
|
503
|
+
type MenuEntry = MenuItem | MenuGroup | MenuDivider | MenuCheckboxItem | MenuRadioGroup;
|
|
504
|
+
interface MenuProps extends OpenProps, DropdownLayoutProps {
|
|
289
505
|
trigger: React__default.ReactElement;
|
|
290
|
-
items:
|
|
506
|
+
items: MenuEntry[];
|
|
291
507
|
onSelect?: (key: string) => void;
|
|
292
508
|
}
|
|
293
|
-
declare function
|
|
294
|
-
|
|
509
|
+
declare function Menu({ trigger, items, onSelect, width, align, ...props }: MenuProps): React__default.JSX.Element;
|
|
510
|
+
/** A top-level application menu. Keys must be unique within the bar. */
|
|
511
|
+
interface MenubarMenu extends DropdownLayoutProps {
|
|
512
|
+
key: string;
|
|
513
|
+
label: React__default.ReactNode;
|
|
514
|
+
icon?: React__default.ReactNode;
|
|
515
|
+
disabled?: boolean;
|
|
516
|
+
items: MenuEntry[];
|
|
517
|
+
}
|
|
518
|
+
interface MenubarProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, "onSelect" | "children">, DropdownLayoutProps {
|
|
519
|
+
menus: MenubarMenu[];
|
|
520
|
+
openKey?: string | null;
|
|
521
|
+
defaultOpenKey?: string | null;
|
|
522
|
+
onOpenChange?: (key: string | null) => void;
|
|
523
|
+
onSelect?: (itemKey: string, menuKey: string) => void;
|
|
524
|
+
disabled?: boolean;
|
|
525
|
+
loop?: boolean;
|
|
526
|
+
trigger?: "click" | "hover";
|
|
527
|
+
}
|
|
528
|
+
/** Coordinated command menus, sharing Menu items and Dropdown surfaces. */
|
|
529
|
+
declare function Menubar({ menus, openKey, defaultOpenKey, onOpenChange, onSelect, disabled, loop, trigger, width, align, className, ...props }: MenubarProps): React__default.JSX.Element;
|
|
530
|
+
/** @deprecated Use MenuProps instead. */
|
|
531
|
+
type DropdownMenuProps = MenuProps;
|
|
532
|
+
/** @deprecated Use Menu instead. */
|
|
533
|
+
declare const DropdownMenu: typeof Menu;
|
|
534
|
+
declare function ContextMenu({ children, items, onSelect, width, ...props }: Omit<MenuProps, "trigger" | "align"> & {
|
|
295
535
|
children: React__default.ReactNode;
|
|
296
536
|
}): React__default.JSX.Element;
|
|
297
537
|
interface PopoverProps extends OpenProps {
|
|
@@ -398,6 +638,58 @@ declare const Card: typeof CardRoot & {
|
|
|
398
638
|
Grid: typeof CardGrid;
|
|
399
639
|
};
|
|
400
640
|
|
|
641
|
+
type ListScrollTarget = number | {
|
|
642
|
+
top?: number;
|
|
643
|
+
left?: number;
|
|
644
|
+
} | {
|
|
645
|
+
key: React__default.Key;
|
|
646
|
+
align?: "start" | "center" | "end" | "auto";
|
|
647
|
+
offset?: number;
|
|
648
|
+
} | {
|
|
649
|
+
index: number;
|
|
650
|
+
align?: "start" | "center" | "end" | "auto";
|
|
651
|
+
offset?: number;
|
|
652
|
+
} | {
|
|
653
|
+
group: React__default.Key;
|
|
654
|
+
align?: "start" | "center" | "end" | "auto";
|
|
655
|
+
offset?: number;
|
|
656
|
+
};
|
|
657
|
+
interface ListHandle {
|
|
658
|
+
readonly element: HTMLUListElement | null;
|
|
659
|
+
scrollTo(target: ListScrollTarget): void;
|
|
660
|
+
}
|
|
661
|
+
interface ListProps<T = unknown> extends Omit<React__default.HTMLAttributes<HTMLUListElement>, "children"> {
|
|
662
|
+
children?: React__default.ReactNode;
|
|
663
|
+
items?: readonly T[];
|
|
664
|
+
getKey?: (item: T, index: number) => React__default.Key;
|
|
665
|
+
/** Render row content, not a li/ListItem. The List owns the row element. */
|
|
666
|
+
renderItem?: (item: T, index: number) => React__default.ReactNode;
|
|
667
|
+
groupBy?: (item: T) => React__default.Key;
|
|
668
|
+
renderGroup?: (key: React__default.Key, items: readonly T[]) => React__default.ReactNode;
|
|
669
|
+
stickyGroups?: boolean;
|
|
670
|
+
height?: number;
|
|
671
|
+
contentWidth?: React__default.CSSProperties["minWidth"];
|
|
672
|
+
virtual?: boolean;
|
|
673
|
+
estimatedItemHeight?: number;
|
|
674
|
+
estimatedGroupHeight?: number;
|
|
675
|
+
overscan?: number;
|
|
676
|
+
hoverable?: boolean;
|
|
677
|
+
emptyContent?: React__default.ReactNode;
|
|
678
|
+
loading?: boolean;
|
|
679
|
+
loadingContent?: React__default.ReactNode;
|
|
680
|
+
onEndReached?: () => void;
|
|
681
|
+
endThreshold?: number;
|
|
682
|
+
ref?: React__default.Ref<ListHandle>;
|
|
683
|
+
}
|
|
684
|
+
/** Compact native list, with optional grouped and windowed data rendering. */
|
|
685
|
+
declare function List<T = unknown>({ children, items, getKey, renderItem, groupBy, renderGroup, stickyGroups, height, contentWidth, virtual, estimatedItemHeight, estimatedGroupHeight, overscan, hoverable, emptyContent, loading, loadingContent, onEndReached, endThreshold, ref, className, style, onScroll, ...props }: ListProps<T>): React__default.JSX.Element;
|
|
686
|
+
interface ListItemProps extends React__default.LiHTMLAttributes<HTMLLIElement> {
|
|
687
|
+
icon?: React__default.ReactNode;
|
|
688
|
+
description?: React__default.ReactNode;
|
|
689
|
+
actions?: React__default.ReactNode;
|
|
690
|
+
}
|
|
691
|
+
declare function ListItem({ children, icon, description, actions, ...props }: ListItemProps): React__default.JSX.Element;
|
|
692
|
+
|
|
401
693
|
declare const cn: (...v: (string | false | null | undefined)[]) => string;
|
|
402
694
|
type Locale = "zh" | "en";
|
|
403
695
|
type Tokens = React.CSSProperties & Record<`--mt-${string}`, string | number>;
|
|
@@ -437,10 +729,11 @@ declare const IconButton: React.ForwardRefExoticComponent<Omit<Omit<Omit<_base_u
|
|
|
437
729
|
} & {
|
|
438
730
|
"aria-label": string;
|
|
439
731
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
732
|
+
type ButtonGroupProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
733
|
+
/** Join adjacent buttons, keeping only the outside corners rounded. */
|
|
734
|
+
connected?: boolean;
|
|
735
|
+
};
|
|
736
|
+
declare const ButtonGroup: ({ className, connected, ...p }: ButtonGroupProps) => React.JSX.Element;
|
|
444
737
|
|
|
445
738
|
type Tone = "neutral" | "blue" | "green" | "orange" | "red" | "purple";
|
|
446
739
|
declare function Badge({ children, tone, onRemove, className, ...p }: React.HTMLAttributes<HTMLSpanElement> & {
|
|
@@ -452,20 +745,6 @@ declare const Status: ({ children, tone, }: {
|
|
|
452
745
|
tone?: Tone;
|
|
453
746
|
}) => React.JSX.Element;
|
|
454
747
|
|
|
455
|
-
declare function Progress({ value, label }: {
|
|
456
|
-
value: number;
|
|
457
|
-
label?: string;
|
|
458
|
-
}): React.JSX.Element;
|
|
459
|
-
declare const Text: ({ muted, className, ...p }: React.HTMLAttributes<HTMLSpanElement> & {
|
|
460
|
-
muted?: boolean;
|
|
461
|
-
}) => React.JSX.Element;
|
|
462
|
-
|
|
463
|
-
declare const List: ({ className, ...p }: React.HTMLAttributes<HTMLUListElement>) => React.JSX.Element;
|
|
464
|
-
declare function ListItem({ children, icon, description, actions, ...p }: React.LiHTMLAttributes<HTMLLIElement> & {
|
|
465
|
-
icon?: React.ReactNode;
|
|
466
|
-
description?: React.ReactNode;
|
|
467
|
-
actions?: React.ReactNode;
|
|
468
|
-
}): React.JSX.Element;
|
|
469
748
|
type DocumentItem = {
|
|
470
749
|
id: string;
|
|
471
750
|
title: string;
|
|
@@ -521,13 +800,25 @@ declare function NavGroup({ label, children, }: {
|
|
|
521
800
|
label?: React.ReactNode;
|
|
522
801
|
children: React.ReactNode;
|
|
523
802
|
}): React.JSX.Element;
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
803
|
+
interface BreadcrumbItem {
|
|
804
|
+
key?: React.Key;
|
|
805
|
+
label: React.ReactNode;
|
|
806
|
+
icon?: React.ReactNode;
|
|
807
|
+
href?: string;
|
|
808
|
+
target?: React.HTMLAttributeAnchorTarget;
|
|
809
|
+
rel?: string;
|
|
810
|
+
disabled?: boolean;
|
|
529
811
|
"aria-label"?: string;
|
|
530
|
-
|
|
812
|
+
/** Separator after this item; null hides it. */
|
|
813
|
+
separator?: React.ReactNode;
|
|
814
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement | HTMLButtonElement>;
|
|
815
|
+
menu?: Omit<MenuProps, "trigger">;
|
|
816
|
+
}
|
|
817
|
+
interface BreadcrumbProps extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
|
|
818
|
+
items: BreadcrumbItem[];
|
|
819
|
+
separator?: React.ReactNode;
|
|
820
|
+
}
|
|
821
|
+
declare function Breadcrumb({ items, separator, "aria-label": label, ...props }: BreadcrumbProps): React.JSX.Element;
|
|
531
822
|
declare function FilterChip({ children, onRemove, }: {
|
|
532
823
|
children: React.ReactNode;
|
|
533
824
|
onRemove: () => void;
|
|
@@ -980,11 +1271,11 @@ type UploadProps = {
|
|
|
980
1271
|
declare function Upload({ upload, accept, maxSize, multiple, disabled, onChange, className, children, }: UploadProps): React.JSX.Element;
|
|
981
1272
|
declare const Dropzone: typeof Upload;
|
|
982
1273
|
|
|
983
|
-
type
|
|
1274
|
+
type AdminLayoutProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
984
1275
|
hasSider?: boolean;
|
|
985
1276
|
fullHeight?: boolean;
|
|
986
1277
|
};
|
|
987
|
-
type
|
|
1278
|
+
type AdminLayoutSiderProps = Omit<SidebarProps, "header" | "footer" | "collapsePlacement"> & {
|
|
988
1279
|
logo?: React.ReactNode;
|
|
989
1280
|
version?: React.ReactNode;
|
|
990
1281
|
collapsedLogo?: React.ReactNode;
|
|
@@ -993,24 +1284,24 @@ type LayoutSiderProps = Omit<SidebarProps, "header" | "footer" | "collapsePlacem
|
|
|
993
1284
|
breakpoint?: number;
|
|
994
1285
|
onBreakpoint?: (broken: boolean) => void;
|
|
995
1286
|
};
|
|
996
|
-
declare function
|
|
997
|
-
type
|
|
1287
|
+
declare function AdminLayoutSider({ logo, version, collapsedLogo, width, collapsedWidth, breakpoint, onBreakpoint, collapsed, defaultCollapsed, onCollapsedChange, collapsible, className, style, ...props }: AdminLayoutSiderProps): React.JSX.Element;
|
|
1288
|
+
type AdminLayoutHeaderProps = React.HTMLAttributes<HTMLElement> & {
|
|
998
1289
|
breadcrumb?: React.ReactNode;
|
|
999
1290
|
extra?: React.ReactNode;
|
|
1000
1291
|
};
|
|
1001
|
-
declare function
|
|
1002
|
-
type
|
|
1292
|
+
declare function AdminLayoutHeader({ breadcrumb, extra, children, className, ...props }: AdminLayoutHeaderProps): React.JSX.Element;
|
|
1293
|
+
type AdminLayoutContentProps = React.HTMLAttributes<HTMLElement> & {
|
|
1003
1294
|
as?: "main" | "section" | "div";
|
|
1004
1295
|
};
|
|
1005
|
-
declare function
|
|
1006
|
-
declare function
|
|
1007
|
-
declare function
|
|
1008
|
-
/** Compose nested layouts with the familiar
|
|
1009
|
-
declare const
|
|
1010
|
-
Sider: typeof
|
|
1011
|
-
Header: typeof
|
|
1012
|
-
Content: typeof
|
|
1013
|
-
Footer: typeof
|
|
1296
|
+
declare function AdminLayoutContent({ as: Element, className, ...props }: AdminLayoutContentProps): React.JSX.Element;
|
|
1297
|
+
declare function AdminLayoutFooter({ className, ...props }: React.HTMLAttributes<HTMLElement>): React.JSX.Element;
|
|
1298
|
+
declare function AdminLayoutRoot({ hasSider, fullHeight, className, children, ...props }: AdminLayoutProps): React.JSX.Element;
|
|
1299
|
+
/** Compose nested layouts with the familiar AdminLayout.Sider/Header/Content/Footer API. */
|
|
1300
|
+
declare const AdminLayout: typeof AdminLayoutRoot & {
|
|
1301
|
+
Sider: typeof AdminLayoutSider;
|
|
1302
|
+
Header: typeof AdminLayoutHeader;
|
|
1303
|
+
Content: typeof AdminLayoutContent;
|
|
1304
|
+
Footer: typeof AdminLayoutFooter;
|
|
1014
1305
|
};
|
|
1015
1306
|
|
|
1016
1307
|
interface SpotlightAction {
|
|
@@ -1135,7 +1426,7 @@ type MentionsProps = Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "va
|
|
|
1135
1426
|
classNames?: Partial<Record<MentionsSemantic, string>>;
|
|
1136
1427
|
styles?: Partial<Record<MentionsSemantic, React.CSSProperties>>;
|
|
1137
1428
|
};
|
|
1138
|
-
declare const Mentions: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "
|
|
1429
|
+
declare const Mentions: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "children" | "defaultValue" | "prefix" | "onChange" | "onSelect" | "value"> & {
|
|
1139
1430
|
value?: string;
|
|
1140
1431
|
defaultValue?: string;
|
|
1141
1432
|
onChange?: (value: string) => void;
|
|
@@ -1167,7 +1458,7 @@ declare const Mentions: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLA
|
|
|
1167
1458
|
classNames?: Partial<Record<MentionsSemantic, string>>;
|
|
1168
1459
|
styles?: Partial<Record<MentionsSemantic, React.CSSProperties>>;
|
|
1169
1460
|
} & React.RefAttributes<MentionsRef>>;
|
|
1170
|
-
declare const Mention: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "
|
|
1461
|
+
declare const Mention: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "children" | "defaultValue" | "prefix" | "onChange" | "onSelect" | "value"> & {
|
|
1171
1462
|
value?: string;
|
|
1172
1463
|
defaultValue?: string;
|
|
1173
1464
|
onChange?: (value: string) => void;
|
|
@@ -1321,7 +1612,7 @@ interface TimelineProps extends Omit<React.HTMLAttributes<HTMLOListElement>, "ch
|
|
|
1321
1612
|
orientation?: "vertical" | "horizontal";
|
|
1322
1613
|
reverse?: boolean;
|
|
1323
1614
|
variant?: "outlined" | "filled";
|
|
1324
|
-
/** Title column width. A number is pixels, not
|
|
1615
|
+
/** Title column width. A number is pixels, not a grid-column span. */
|
|
1325
1616
|
titleSpan?: number | string;
|
|
1326
1617
|
/** Compatibility ghost item. Prefer an explicit item with loading=true. */
|
|
1327
1618
|
pending?: React.ReactNode;
|
|
@@ -1476,7 +1767,7 @@ type AutoCompleteProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size
|
|
|
1476
1767
|
popupWidth?: number;
|
|
1477
1768
|
};
|
|
1478
1769
|
/** Free text input with optional suggestions; ref points to the native input. */
|
|
1479
|
-
declare const AutoComplete: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
1770
|
+
declare const AutoComplete: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "children" | "defaultValue" | "prefix" | "onChange" | "onSelect" | "value" | "size"> & {
|
|
1480
1771
|
options?: (AutoCompleteOption | AutoCompleteGroup)[];
|
|
1481
1772
|
value?: string;
|
|
1482
1773
|
defaultValue?: string;
|
|
@@ -1618,4 +1909,111 @@ interface TransferProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onCh
|
|
|
1618
1909
|
}
|
|
1619
1910
|
declare const Transfer: React.ForwardRefExoticComponent<TransferProps & React.RefAttributes<HTMLDivElement>>;
|
|
1620
1911
|
|
|
1621
|
-
|
|
1912
|
+
interface LoadingOverlayProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
1913
|
+
/** Whether to mount the local overlay. Defaults to false. */
|
|
1914
|
+
visible?: boolean;
|
|
1915
|
+
/** Optional visible text, also used to name the loading status. */
|
|
1916
|
+
label?: string;
|
|
1917
|
+
/** Replaces the default Spinner; null intentionally hides the spinner. */
|
|
1918
|
+
loader?: React.ReactNode;
|
|
1919
|
+
overlayColor?: string;
|
|
1920
|
+
/** Surface opacity only; clamped to 0–1. */
|
|
1921
|
+
opacity?: number;
|
|
1922
|
+
/** Background blur in pixels. */
|
|
1923
|
+
blur?: number;
|
|
1924
|
+
radius?: React.CSSProperties["borderRadius"];
|
|
1925
|
+
zIndex?: number;
|
|
1926
|
+
}
|
|
1927
|
+
/** Place inside a positioned parent. Blocks pointers, not keyboard focus. */
|
|
1928
|
+
declare const LoadingOverlay: React.ForwardRefExoticComponent<LoadingOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
1929
|
+
|
|
1930
|
+
interface HoverCardProps {
|
|
1931
|
+
/** Use a focusable element; custom components must forward refs and props. */
|
|
1932
|
+
trigger: React__default.ReactElement;
|
|
1933
|
+
content: React__default.ReactNode;
|
|
1934
|
+
title?: React__default.ReactNode;
|
|
1935
|
+
open?: boolean;
|
|
1936
|
+
defaultOpen?: boolean;
|
|
1937
|
+
onOpenChange?: (open: boolean) => void;
|
|
1938
|
+
openDelay?: number;
|
|
1939
|
+
closeDelay?: number;
|
|
1940
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
1941
|
+
align?: "start" | "center" | "end";
|
|
1942
|
+
sideOffset?: number;
|
|
1943
|
+
width?: React__default.CSSProperties["width"];
|
|
1944
|
+
withArrow?: boolean;
|
|
1945
|
+
disabled?: boolean;
|
|
1946
|
+
}
|
|
1947
|
+
/** Supplemental rich preview. Essential actions and forms belong in Popover. */
|
|
1948
|
+
declare function HoverCard({ trigger, content, title, open, defaultOpen, onOpenChange, openDelay, closeDelay, side, align, sideOffset, width, withArrow, disabled, }: HoverCardProps): React__default.JSX.Element;
|
|
1949
|
+
|
|
1950
|
+
interface FieldsetProps extends React.FieldsetHTMLAttributes<HTMLFieldSetElement> {
|
|
1951
|
+
legend?: React.ReactNode;
|
|
1952
|
+
variant?: "default" | "filled" | "unstyled";
|
|
1953
|
+
radius?: React.CSSProperties["borderRadius"];
|
|
1954
|
+
}
|
|
1955
|
+
/** Semantic grouping for related form controls. Not a form or validation boundary. */
|
|
1956
|
+
declare const Fieldset: React.ForwardRefExoticComponent<FieldsetProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
1957
|
+
|
|
1958
|
+
interface TreeSelectCommonProps {
|
|
1959
|
+
items: TreeItem[];
|
|
1960
|
+
disabled?: boolean;
|
|
1961
|
+
readOnly?: boolean;
|
|
1962
|
+
searchable?: boolean;
|
|
1963
|
+
searchValue?: string;
|
|
1964
|
+
defaultSearchValue?: string;
|
|
1965
|
+
onSearchChange?: (value: string) => void;
|
|
1966
|
+
/** Use textValue on a node to search a non-text label. */
|
|
1967
|
+
filterNode?: (query: string, node: TreeItem) => boolean;
|
|
1968
|
+
open?: boolean;
|
|
1969
|
+
defaultOpen?: boolean;
|
|
1970
|
+
onOpenChange?: (open: boolean) => void;
|
|
1971
|
+
placeholder?: string;
|
|
1972
|
+
searchPlaceholder?: string;
|
|
1973
|
+
emptyContent?: React.ReactNode;
|
|
1974
|
+
allowClear?: boolean;
|
|
1975
|
+
onClear?: () => void;
|
|
1976
|
+
checkStrictly?: boolean;
|
|
1977
|
+
/** Display only; onValueChange always returns all checked keys. */
|
|
1978
|
+
showCheckedStrategy?: "all" | "parent" | "leaf";
|
|
1979
|
+
maxTagCount?: number;
|
|
1980
|
+
renderValue?: (node: TreeItem) => React.ReactNode;
|
|
1981
|
+
expandedKeys?: TreeKey[];
|
|
1982
|
+
defaultExpandedKeys?: TreeKey[];
|
|
1983
|
+
defaultExpandAll?: boolean;
|
|
1984
|
+
onExpand?: TreeProps["onExpand"];
|
|
1985
|
+
loadData?: TreeProps["loadData"];
|
|
1986
|
+
onLoadError?: TreeProps["onLoadError"];
|
|
1987
|
+
loadedKeys?: TreeKey[];
|
|
1988
|
+
onLoad?: TreeProps["onLoad"];
|
|
1989
|
+
showLine?: boolean;
|
|
1990
|
+
showIcon?: boolean;
|
|
1991
|
+
titleRender?: TreeProps["titleRender"];
|
|
1992
|
+
height?: number;
|
|
1993
|
+
virtual?: boolean;
|
|
1994
|
+
size?: "sm" | "md" | "lg";
|
|
1995
|
+
status?: "error" | "warning";
|
|
1996
|
+
placement?: "bottom-start" | "bottom-end" | "top-start" | "top-end";
|
|
1997
|
+
dropdownWidth?: React.CSSProperties["width"];
|
|
1998
|
+
prefix?: React.ReactNode;
|
|
1999
|
+
name?: string;
|
|
2000
|
+
id?: string;
|
|
2001
|
+
className?: string;
|
|
2002
|
+
style?: React.CSSProperties;
|
|
2003
|
+
"aria-label"?: string;
|
|
2004
|
+
"aria-labelledby"?: string;
|
|
2005
|
+
}
|
|
2006
|
+
type TreeSelectProps = TreeSelectCommonProps & ({
|
|
2007
|
+
multiple?: false;
|
|
2008
|
+
value?: TreeKey | null;
|
|
2009
|
+
defaultValue?: TreeKey | null;
|
|
2010
|
+
onValueChange?: (value: TreeKey | null, nodes: TreeItem[]) => void;
|
|
2011
|
+
} | {
|
|
2012
|
+
multiple: true;
|
|
2013
|
+
value?: TreeKey[];
|
|
2014
|
+
defaultValue?: TreeKey[];
|
|
2015
|
+
onValueChange?: (value: TreeKey[], nodes: TreeItem[]) => void;
|
|
2016
|
+
});
|
|
2017
|
+
declare const TreeSelect: React.ForwardRefExoticComponent<TreeSelectProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2018
|
+
|
|
2019
|
+
export { AdminLayout, type AdminLayoutContentProps, type AdminLayoutHeaderProps, type AdminLayoutProps, type AdminLayoutSiderProps, Affix, type AffixProps, Alert, AutoComplete, type AutoCompleteGroup, type AutoCompleteOption, type AutoCompleteProps, Avatar, type AvatarBreakpoint, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Badge, Blockquote, type BlockquoteProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarCellInfo, type CalendarHeaderInfo, type CalendarMode, type CalendarProps, type CalendarSelectInfo, type CalendarSemanticSlot, Card, type CardGridProps, type CardMetaProps, type CardMetaSemantic, type CardProps, type CardSemantic, type CardTabItem, type CardTokens, Cascader, type CascaderKey, type CascaderOption, CascaderPanel, type CascaderPanelProps, type CascaderPath, type CascaderProps, Checkbox, type CheckboxProps, ConfirmDialog, type ConfirmDialogProps, ContextMenu, DatePicker, type DatePickerProps, Dialog, type DialogProps, DirectoryTree, Divider, type DividerProps, DocumentCard, type DocumentItem, DocumentList, Drawer, Dropdown, type DropdownAlign, type DropdownLayoutProps, DropdownMenu, type DropdownMenuProps, type DropdownProps, Dropzone, Empty, Fieldset, type FieldsetProps, FilterBar, FilterChip, Form, FormField, type FormFieldProps, type FormInstance, type FormProps, type FormRule, type FormValidateTrigger, type FormValidationError, type FormValues, HoverCard, type HoverCardProps, IconButton, Image, ImageGroup, type ImageGroupProps, type ImageItem, ImagePreview, type ImagePreviewProps, type ImageProps, Input, type InputControlSize, type InputOTPProps, type InputPasswordProps, type InputProps, type InputSearchProps, type InputTextAreaProps, type InputVariant, Link, type LinkProps, List, type ListHandle, ListItem, type ListItemProps, type ListProps, type ListScrollTarget, LoadingOverlay, type LoadingOverlayProps, type Locale, Mention, type MentionOption, Mentions, type MentionsProps, type MentionsRef, type MentionsSemantic, Menu, type MenuCheckboxItem, type MenuDivider, type MenuEntry, type MenuGroup, type MenuItem, type MenuProps, type MenuRadioGroup, Menubar, type MenubarMenu, type MenubarProps, Modal, type ModalProps, MtoneProvider, MtoneScope, MultiSelect, type MultiSelectProps, NavGroup, NavItem, NumberInput, type NumberInputProps, type OpenProps, type Option, Pagination, type PaginationProps, Paragraph, type ParagraphProps, Popconfirm, type PopconfirmPlacement, type PopconfirmProps, Popover, type PopoverProps, Progress, type ProgressColor, type ProgressProps, type ProgressStatus, type ProgressType, PropertyItem, PropertyList, RadioGroup, type RadioGroupProps, Rate, type RateCharacterInfo, type RateProps, Result, type ResultProps, type ResultSemantic, type ResultStatus, SearchInput, Segmented, Select, type SelectProps, Sidebar, type SidebarProps, Skeleton, Slider, type SliderProps, type SortOrder, Spinner, Splitter, type SplitterPanelProps, type SplitterProps, type SplitterSize, Spotlight, type SpotlightAction, type SpotlightProps, Status, Switch, type TabItem, Table, type TableClassNames, type TableColumn, type TableColumnTitleProps, type TableColumnsType, type TableExpandableConfig, type TableFilterDropdownProps, type TableFilterItem, type TableFilterValue, type TableFilters, type TableLocale, TableOfContents, type TableOfContentsHandle, type TableOfContentsItem, type TableOfContentsProps, type TablePagination, type TableProps, type TableRef, type TableRowSelection, type TableSelectionType, type TableSortResult, type TableState, type TableStyles, Tabs, type TabsProps, Text, type TextProps, Textarea, Timeline, type TimelineItem, type TimelinePlacement, type TimelineProps, type TimelineSemantic, Title, type TitleProps, Toast, type ToastOptions, type ToastPosition, type ToastPromiseOptions, ToastProvider, type ToastProviderProps, type ToastType, type ToastUpdateOptions, type Tokens, type Tone, Tooltip, Transfer, type TransferDirection, type TransferItem, type TransferListContext, type TransferProps, Tree, type TreeCheckedKeys, type TreeDropInfo, type TreeItem, type TreeKey, type TreeNode, type TreeNodeInfo, type TreeProps, type TreeRef, TreeSelect, type TreeSelectCommonProps, type TreeSelectProps, Typography, type TypographyCopyable, type TypographyEditable, type TypographyEllipsis, type TypographyTone, Upload, type UploadAdapter, type UploadContext, type UploadFile, type UploadProps, cn, getMentions, useMtone, useToast };
|