@unifiedsoftware/react-ui 2.0.0-beta.8 → 2.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +505 -330
- package/dist/index.js +33 -1
- package/package.json +13 -10
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,13 @@ import * as react from 'react';
|
|
|
2
2
|
import react__default, { Dispatch, SetStateAction } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { VirtualizerOptions as VirtualizerOptions$1, Virtualizer as Virtualizer$1, ListItemProps as ListItemProps$1, ResultProps as ResultProps$1 } from '@unifiedsoftware/react-ui';
|
|
5
|
+
import { FloatingRootContext } from '@floating-ui/react';
|
|
5
6
|
|
|
6
|
-
interface Props$
|
|
7
|
+
interface Props$O {
|
|
7
8
|
}
|
|
8
|
-
type NativeAttrs$
|
|
9
|
-
type DividerProps = Props$
|
|
10
|
-
declare const Divider: react.ForwardRefExoticComponent<Props$
|
|
9
|
+
type NativeAttrs$Q = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$O>;
|
|
10
|
+
type DividerProps = Props$O & NativeAttrs$Q;
|
|
11
|
+
declare const Divider: react.ForwardRefExoticComponent<Props$O & NativeAttrs$Q & react.RefAttributes<HTMLDivElement>>;
|
|
11
12
|
|
|
12
13
|
type BoxShadow = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
13
14
|
type BorderRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -35,7 +36,7 @@ interface AccordionArrow {
|
|
|
35
36
|
position?: 'start' | 'end';
|
|
36
37
|
}
|
|
37
38
|
|
|
38
|
-
interface Props$
|
|
39
|
+
interface Props$N {
|
|
39
40
|
value?: any[];
|
|
40
41
|
defaultValue?: any[];
|
|
41
42
|
expandMode?: 'single' | 'multiple';
|
|
@@ -52,9 +53,9 @@ interface Props$M {
|
|
|
52
53
|
}) => React.ReactNode;
|
|
53
54
|
onChange?: (value: any[]) => void;
|
|
54
55
|
}
|
|
55
|
-
type NativeAttrs$
|
|
56
|
-
type AccordionProps = Props$
|
|
57
|
-
declare const Accordion: react.ForwardRefExoticComponent<Props$
|
|
56
|
+
type NativeAttrs$P = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$N>;
|
|
57
|
+
type AccordionProps = Props$N & NativeAttrs$P;
|
|
58
|
+
declare const Accordion: react.ForwardRefExoticComponent<Props$N & NativeAttrs$P & react.RefAttributes<HTMLDivElement>>;
|
|
58
59
|
|
|
59
60
|
interface AccordionItemContextValue {
|
|
60
61
|
value: string;
|
|
@@ -63,7 +64,7 @@ interface AccordionItemContextValue {
|
|
|
63
64
|
}) => React.ReactNode;
|
|
64
65
|
}
|
|
65
66
|
declare const useAccordionItem: () => AccordionItemContextValue;
|
|
66
|
-
interface Props$
|
|
67
|
+
interface Props$M {
|
|
67
68
|
value?: any;
|
|
68
69
|
variant?: AccordionVariant;
|
|
69
70
|
color?: AccordionColor;
|
|
@@ -71,11 +72,11 @@ interface Props$L {
|
|
|
71
72
|
isOpen: boolean;
|
|
72
73
|
}) => React.ReactNode;
|
|
73
74
|
}
|
|
74
|
-
type NativeAttrs$
|
|
75
|
-
type AccordionItemProps = Props$
|
|
76
|
-
declare const AccordionItem: react.ForwardRefExoticComponent<Props$
|
|
75
|
+
type NativeAttrs$O = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$M>;
|
|
76
|
+
type AccordionItemProps = Props$M & NativeAttrs$O;
|
|
77
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<Props$M & NativeAttrs$O & react.RefAttributes<HTMLDivElement>>;
|
|
77
78
|
|
|
78
|
-
interface Props$
|
|
79
|
+
interface Props$L {
|
|
79
80
|
as?: React.ElementType;
|
|
80
81
|
title?: React.ReactNode;
|
|
81
82
|
subtitle?: React.ReactNode;
|
|
@@ -93,9 +94,9 @@ interface Props$K {
|
|
|
93
94
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
94
95
|
};
|
|
95
96
|
}
|
|
96
|
-
type NativeAttrs$
|
|
97
|
-
type AccordionHeaderProps = Props$
|
|
98
|
-
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$
|
|
97
|
+
type NativeAttrs$N = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$L>;
|
|
98
|
+
type AccordionHeaderProps = Props$L & NativeAttrs$N;
|
|
99
|
+
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$L & NativeAttrs$N & react.RefAttributes<HTMLDivElement>>;
|
|
99
100
|
|
|
100
101
|
type AccordionBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
101
102
|
declare const AccordionBody: react.ForwardRefExoticComponent<AccordionBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -400,21 +401,17 @@ interface UseContainerMediaQueryOptions<TElement extends HTMLElement = HTMLEleme
|
|
|
400
401
|
}
|
|
401
402
|
declare function useContainerMediaQuery<TElement extends HTMLElement = HTMLElement>(options: UseContainerMediaQueryOptions<TElement>): ContainerMediaQuery | undefined;
|
|
402
403
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
format?: 'datetime' | 'short datetime' | 'date' | 'time';
|
|
415
|
-
locales?: Intl.LocalesArgument;
|
|
416
|
-
options?: Intl.DateTimeFormatOptions;
|
|
417
|
-
}
|
|
404
|
+
declare const scrollToItem: (parentElement: Element, currentElement: Element) => void;
|
|
405
|
+
|
|
406
|
+
type ClassDictionary = Record<string, any>;
|
|
407
|
+
type ClassArray = ClassValue[];
|
|
408
|
+
type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined;
|
|
409
|
+
declare function clsx(...inputs: ClassValue[]): string;
|
|
410
|
+
|
|
411
|
+
type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>;
|
|
412
|
+
declare function assignRef<T = any>(ref: ReactRef<T> | null | undefined, value: T): void;
|
|
413
|
+
declare function mergeRefs<T>(...refs: (ReactRef<T> | null | undefined)[]): (node: T | null) => void;
|
|
414
|
+
|
|
418
415
|
interface FormatBooleanOptions {
|
|
419
416
|
type: 'boolean';
|
|
420
417
|
value?: boolean | null;
|
|
@@ -423,6 +420,7 @@ interface FormatBooleanOptions {
|
|
|
423
420
|
false?: string;
|
|
424
421
|
};
|
|
425
422
|
}
|
|
423
|
+
|
|
426
424
|
interface FormatCurrencyOptions {
|
|
427
425
|
type: 'currency';
|
|
428
426
|
value?: number | bigint | Intl.StringNumericLiteral | null;
|
|
@@ -430,6 +428,43 @@ interface FormatCurrencyOptions {
|
|
|
430
428
|
locales?: Intl.LocalesArgument;
|
|
431
429
|
options?: Intl.NumberFormatOptions;
|
|
432
430
|
}
|
|
431
|
+
declare function formatCurrency(value: number | bigint | Intl.StringNumericLiteral, currency?: string, locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
|
432
|
+
|
|
433
|
+
interface FormatDateOptions {
|
|
434
|
+
type: 'date';
|
|
435
|
+
value?: Date | string | number | null;
|
|
436
|
+
format?: 'datetime' | 'short datetime' | 'date' | 'time';
|
|
437
|
+
locales?: Intl.LocalesArgument;
|
|
438
|
+
options?: Intl.DateTimeFormatOptions;
|
|
439
|
+
}
|
|
440
|
+
declare function formatDate(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
441
|
+
declare function formatDateTime(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
442
|
+
declare function formatShortDateTime(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
443
|
+
declare function formatTime(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
444
|
+
|
|
445
|
+
type UnitSystem = 'si' | 'iec';
|
|
446
|
+
type ForcedUnit = 'B' | 'KB' | 'MB' | 'GB' | 'TB' | 'PB' | 'EB' | 'ZB' | 'YB' | 'KiB' | 'MiB' | 'GiB' | 'TiB' | 'PiB' | 'EiB' | 'ZiB' | 'YiB';
|
|
447
|
+
interface FileSizeFormatOptions {
|
|
448
|
+
system?: UnitSystem;
|
|
449
|
+
maximumFractionDigits?: number;
|
|
450
|
+
minimumFractionDigits?: number;
|
|
451
|
+
unit?: ForcedUnit;
|
|
452
|
+
spacer?: string;
|
|
453
|
+
lowercase?: boolean;
|
|
454
|
+
}
|
|
455
|
+
interface FormatFileSizeOptions {
|
|
456
|
+
type: 'file-size';
|
|
457
|
+
value?: number;
|
|
458
|
+
locales?: Intl.LocalesArgument;
|
|
459
|
+
options?: FileSizeFormatOptions;
|
|
460
|
+
}
|
|
461
|
+
declare function formatFileSize(bytes: number, locales?: Intl.LocalesArgument, { system, maximumFractionDigits, minimumFractionDigits, unit, spacer, lowercase, }?: FileSizeFormatOptions): string;
|
|
462
|
+
|
|
463
|
+
interface FormatNumberOptions {
|
|
464
|
+
type: 'number';
|
|
465
|
+
value?: number | string | null;
|
|
466
|
+
}
|
|
467
|
+
|
|
433
468
|
interface FormatPercentOptions {
|
|
434
469
|
type: 'percent';
|
|
435
470
|
value?: number | string | null;
|
|
@@ -437,7 +472,53 @@ interface FormatPercentOptions {
|
|
|
437
472
|
locales?: Intl.LocalesArgument;
|
|
438
473
|
options?: Intl.NumberFormatOptions;
|
|
439
474
|
}
|
|
440
|
-
|
|
475
|
+
declare function formatPercent(value: any, decimals?: number, locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
|
476
|
+
|
|
477
|
+
interface FormatStringOptions {
|
|
478
|
+
type?: 'string';
|
|
479
|
+
value?: string | null;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
type FormatOptions = FormatStringOptions | FormatNumberOptions | FormatDateOptions | FormatBooleanOptions | FormatCurrencyOptions | FormatPercentOptions | FormatFileSizeOptions;
|
|
483
|
+
declare function format(options: FormatOptions): string | undefined;
|
|
484
|
+
|
|
485
|
+
type SelectionValue<TItem extends Record<string, any>, TKeyField extends keyof TItem, TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = TMultiple extends true ? TClearable extends true ? TItem[TKeyField][] | null : TItem[TKeyField][] : TClearable extends true ? TItem[TKeyField] | null : TItem[TKeyField];
|
|
486
|
+
type SelectionItem<TData extends Record<string, any>, TMultiple extends boolean | undefined, TClearable extends boolean | undefined> = TMultiple extends true ? TClearable extends true ? TData[] | null : TData[] : TClearable extends true ? TData | null : TData;
|
|
487
|
+
type SelectionOnChange<TData extends Record<string, any>, TKeyField extends keyof TData, TMultiple extends boolean | undefined, TClearable extends boolean | undefined> = (value: SelectionValue<TData, TKeyField, TMultiple, TClearable>, item: SelectionItem<TData, TMultiple, TClearable>) => void;
|
|
488
|
+
interface SelectionProps<TItem extends Record<string, any>, TKeyField extends keyof TItem, TMultiple extends boolean | undefined, TClearable extends boolean | undefined> {
|
|
489
|
+
data: TItem[];
|
|
490
|
+
isMultiple?: TMultiple;
|
|
491
|
+
clearable?: TClearable;
|
|
492
|
+
keyField?: TKeyField;
|
|
493
|
+
value?: SelectionValue<TItem, TKeyField, TMultiple, TClearable>;
|
|
494
|
+
onChange?: SelectionOnChange<TItem, TKeyField, TMultiple, TClearable>;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
declare const valueToValues: <TItem extends Record<string, any>, TKeyField extends keyof TItem, TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false>(value?: SelectionValue<TItem, TKeyField, TMultiple, TClearable>) => TItem[TKeyField][];
|
|
498
|
+
declare const valuesToValue: <TItem extends Record<string, any>, TKeyField extends keyof TItem>(values: TItem[TKeyField][]) => TItem[TKeyField] | null;
|
|
499
|
+
|
|
500
|
+
declare function areArraysEqual<T extends string | number | symbol>(arr1: T[], arr2: T[]): boolean;
|
|
501
|
+
|
|
502
|
+
declare function toLocalDateString(date: Date): string;
|
|
503
|
+
declare function toLocalDateTimeString(date: Date): string;
|
|
504
|
+
declare function toAlphaString(value: string): string;
|
|
505
|
+
declare function toNumericString(value: string): string;
|
|
506
|
+
declare function toAlphanumericString(value: string): string;
|
|
507
|
+
declare function toPlainTextString(value: string): string;
|
|
508
|
+
declare function toNotEmojisString(value: string): string;
|
|
509
|
+
declare const STRING_RULES: readonly ["allow-emojis", "not-allow-emojis", "only-alpha", "only-numeric", "only-alphanumeric", "only-plain-text"];
|
|
510
|
+
type StringRules = Array<(typeof STRING_RULES)[number]>;
|
|
511
|
+
declare function toRulesString(rules: StringRules, value: string): string;
|
|
512
|
+
|
|
513
|
+
declare function isEmpty<T>(value?: T | null): value is null | undefined;
|
|
514
|
+
declare function isEmptyString(value?: string | null): value is null | undefined;
|
|
515
|
+
declare function isNumeric(value: string): boolean;
|
|
516
|
+
declare function isAlphanumeric(value: string): boolean;
|
|
517
|
+
declare function containsPlainText(value: string): boolean;
|
|
518
|
+
declare function doesNotContainEmojis(value: string): boolean;
|
|
519
|
+
declare function validateRules(rules: StringRules, value: string): string | boolean;
|
|
520
|
+
|
|
521
|
+
declare function generateId(): string;
|
|
441
522
|
|
|
442
523
|
declare function useFormat(options: FormatOptions): {
|
|
443
524
|
value: string | undefined;
|
|
@@ -474,37 +555,26 @@ type Responsive<T> = T | {
|
|
|
474
555
|
'2xl'?: T;
|
|
475
556
|
};
|
|
476
557
|
|
|
477
|
-
type SelectionValue<TItem extends Record<string, any>, TKeyField extends keyof TItem, TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = TMultiple extends true ? TClearable extends true ? TItem[TKeyField][] | null : TItem[TKeyField][] : TClearable extends true ? TItem[TKeyField] | null : TItem[TKeyField];
|
|
478
|
-
type SelectionItem<TData extends Record<string, any>, TMultiple extends boolean | undefined, TClearable extends boolean | undefined> = TMultiple extends true ? TClearable extends true ? TData[] | null : TData[] : TClearable extends true ? TData | null : TData;
|
|
479
|
-
type SelectionOnChange<TData extends Record<string, any>, TKeyField extends keyof TData, TMultiple extends boolean | undefined, TClearable extends boolean | undefined> = (value: SelectionValue<TData, TKeyField, TMultiple, TClearable>, item: SelectionItem<TData, TMultiple, TClearable>) => void;
|
|
480
|
-
interface SelectionProps<TItem extends Record<string, any>, TKeyField extends keyof TItem, TMultiple extends boolean | undefined, TClearable extends boolean | undefined> {
|
|
481
|
-
data: TItem[];
|
|
482
|
-
isMultiple?: TMultiple;
|
|
483
|
-
clearable?: TClearable;
|
|
484
|
-
keyField?: TKeyField;
|
|
485
|
-
value?: SelectionValue<TItem, TKeyField, TMultiple, TClearable>;
|
|
486
|
-
onChange?: SelectionOnChange<TItem, TKeyField, TMultiple, TClearable>;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
558
|
type InputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
490
559
|
type InputColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'dark' | 'light';
|
|
491
560
|
type InputVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
492
561
|
|
|
493
|
-
interface Props$
|
|
562
|
+
interface Props$K {
|
|
494
563
|
}
|
|
495
|
-
type NativeAttrs$
|
|
496
|
-
type InputGroupProps = Props$
|
|
497
|
-
declare const InputGroup: react.ForwardRefExoticComponent<Props$
|
|
564
|
+
type NativeAttrs$M = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$K>;
|
|
565
|
+
type InputGroupProps = Props$K & NativeAttrs$M;
|
|
566
|
+
declare const InputGroup: react.ForwardRefExoticComponent<Props$K & NativeAttrs$M & react.RefAttributes<HTMLDivElement>>;
|
|
498
567
|
|
|
499
568
|
type ListSize = 'sm' | 'md' | 'lg';
|
|
500
569
|
|
|
501
570
|
interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
502
571
|
as?: React.ElementType;
|
|
503
572
|
size?: ListSize;
|
|
573
|
+
divider?: boolean;
|
|
504
574
|
}
|
|
505
575
|
declare const List: react.ForwardRefExoticComponent<ListProps & react.RefAttributes<HTMLDivElement>>;
|
|
506
576
|
|
|
507
|
-
interface Props$
|
|
577
|
+
interface Props$J {
|
|
508
578
|
as?: react__default.ElementType;
|
|
509
579
|
title?: react__default.ReactNode;
|
|
510
580
|
subtitle?: react__default.ReactNode;
|
|
@@ -522,11 +592,11 @@ interface Props$I {
|
|
|
522
592
|
subtitle?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
523
593
|
};
|
|
524
594
|
}
|
|
525
|
-
type NativeAttrs$
|
|
526
|
-
type ListItemProps = Props$
|
|
527
|
-
declare const ListItem: react__default.ForwardRefExoticComponent<Props$
|
|
595
|
+
type NativeAttrs$L = Omit<react__default.HTMLAttributes<HTMLDivElement>, keyof Props$J>;
|
|
596
|
+
type ListItemProps = Props$J & NativeAttrs$L;
|
|
597
|
+
declare const ListItem: react__default.ForwardRefExoticComponent<Props$J & NativeAttrs$L & react__default.RefAttributes<HTMLDivElement>>;
|
|
528
598
|
|
|
529
|
-
interface Props$
|
|
599
|
+
interface Props$I {
|
|
530
600
|
expandVisible?: boolean;
|
|
531
601
|
expandPosition?: 'start' | 'end';
|
|
532
602
|
isOpen?: boolean;
|
|
@@ -534,9 +604,9 @@ interface Props$H {
|
|
|
534
604
|
onClose?: () => void;
|
|
535
605
|
onToggle?: () => void;
|
|
536
606
|
}
|
|
537
|
-
type NativeAttrs$
|
|
538
|
-
type ListGroupProps = Props$
|
|
539
|
-
declare const ListGroup: react.ForwardRefExoticComponent<Props$
|
|
607
|
+
type NativeAttrs$K = Omit<ListItemProps, keyof Props$I>;
|
|
608
|
+
type ListGroupProps = Props$I & NativeAttrs$K;
|
|
609
|
+
declare const ListGroup: react.ForwardRefExoticComponent<Props$I & NativeAttrs$K & react.RefAttributes<HTMLDivElement>>;
|
|
540
610
|
|
|
541
611
|
interface ListSubheaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
542
612
|
as?: React.ElementType;
|
|
@@ -566,7 +636,7 @@ declare const Result: React.FC<ResultProps>;
|
|
|
566
636
|
|
|
567
637
|
type AutocompleteMultiple = false;
|
|
568
638
|
type AutocompleteClearable = true;
|
|
569
|
-
type NativeAttrs$
|
|
639
|
+
type NativeAttrs$J<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$H<TItem, TKeyField>>;
|
|
570
640
|
type BaseProps$1<TItem extends Record<string, any>> = {
|
|
571
641
|
textField?: keyof TItem;
|
|
572
642
|
placeholder?: string;
|
|
@@ -586,8 +656,8 @@ type BaseProps$1<TItem extends Record<string, any>> = {
|
|
|
586
656
|
renderItem?: (item: TItem, props: ListItemProps) => React.ReactNode;
|
|
587
657
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
588
658
|
};
|
|
589
|
-
type Props$
|
|
590
|
-
type AutocompleteProps<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key', TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = Props$
|
|
659
|
+
type Props$H<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key', TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = BaseProps$1<TItem> & SelectionProps<TItem, TKeyField, TMultiple, TClearable>;
|
|
660
|
+
type AutocompleteProps<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key', TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = Props$H<TItem, TKeyField, TMultiple, TClearable> & NativeAttrs$J<TItem, TKeyField>;
|
|
591
661
|
|
|
592
662
|
declare const Autocomplete: <TItem extends Record<string, any>, TKeyField extends keyof TItem = "key", TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = true>(props: AutocompleteProps<TItem, TKeyField, TMultiple, TClearable>) => react_jsx_runtime.JSX.Element;
|
|
593
663
|
|
|
@@ -610,7 +680,7 @@ declare const useAutocomplete: () => AutocompleteContextValue<Record<string, any
|
|
|
610
680
|
type BackdropPlacement = 'top' | 'left' | 'center' | 'right' | 'bottom';
|
|
611
681
|
type BackdropVariant = 'opaque' | 'blur' | 'transparent';
|
|
612
682
|
|
|
613
|
-
interface Props$
|
|
683
|
+
interface Props$G {
|
|
614
684
|
isOpen: boolean;
|
|
615
685
|
closable?: boolean;
|
|
616
686
|
placement?: BackdropPlacement;
|
|
@@ -619,14 +689,14 @@ interface Props$F {
|
|
|
619
689
|
scrollArea?: boolean;
|
|
620
690
|
onClose(): void;
|
|
621
691
|
}
|
|
622
|
-
type NativeAttrs$
|
|
623
|
-
type BackdropProps = Props$
|
|
624
|
-
declare const Backdrop: react.ForwardRefExoticComponent<Props$
|
|
692
|
+
type NativeAttrs$I = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$G>;
|
|
693
|
+
type BackdropProps = Props$G & NativeAttrs$I;
|
|
694
|
+
declare const Backdrop: react.ForwardRefExoticComponent<Props$G & NativeAttrs$I & react.RefAttributes<HTMLDivElement>>;
|
|
625
695
|
|
|
626
696
|
type BadgeColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
627
697
|
type BadgePlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
628
698
|
|
|
629
|
-
interface Props$
|
|
699
|
+
interface Props$F {
|
|
630
700
|
/**
|
|
631
701
|
* The placement of the badge relative to its content.
|
|
632
702
|
*/
|
|
@@ -644,8 +714,8 @@ interface Props$E {
|
|
|
644
714
|
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
645
715
|
};
|
|
646
716
|
}
|
|
647
|
-
type NativeAttrs$
|
|
648
|
-
type BadgeProps = Props$
|
|
717
|
+
type NativeAttrs$H = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$F>;
|
|
718
|
+
type BadgeProps = Props$F & NativeAttrs$H;
|
|
649
719
|
declare const Badge: React.FC<BadgeProps>;
|
|
650
720
|
|
|
651
721
|
type DataListItem = Record<string, any>;
|
|
@@ -662,7 +732,7 @@ interface DataListMultipleProps<TDataListItem extends DataListItem, TDataListKey
|
|
|
662
732
|
onChange?: (value: TDataListItem[]) => void;
|
|
663
733
|
onValueChange?: (value: TDataListItem[TDataListKeyField][]) => void;
|
|
664
734
|
}
|
|
665
|
-
type Props$
|
|
735
|
+
type Props$E<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = {
|
|
666
736
|
data: TDataListItem[];
|
|
667
737
|
keyField?: TDataListKeyField;
|
|
668
738
|
textField?: keyof DataListItem;
|
|
@@ -677,8 +747,8 @@ type Props$D<TDataListItem extends DataListItem, TDataListKeyField extends DataL
|
|
|
677
747
|
renderItem?: (item: TDataListItem, props: ListItemProps$1) => React.ReactNode;
|
|
678
748
|
renderNoData?: (props: ResultProps$1) => React.ReactNode;
|
|
679
749
|
} & (DataListSingleProps<TDataListItem, TDataListKeyField> | DataListMultipleProps<TDataListItem, TDataListKeyField>);
|
|
680
|
-
type NativeAttrs$
|
|
681
|
-
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$
|
|
750
|
+
type NativeAttrs$G<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$E<TDataListItem, TDataListKeyField>>;
|
|
751
|
+
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$E<TDataListItem, TDataListKeyField> & NativeAttrs$G<TDataListItem, TDataListKeyField>;
|
|
682
752
|
|
|
683
753
|
declare const DataList: <TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = "key">(props: DataListProps<TDataListItem, TDataListKeyField>) => react_jsx_runtime.JSX.Element;
|
|
684
754
|
|
|
@@ -687,7 +757,7 @@ type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'd
|
|
|
687
757
|
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
688
758
|
type ButtonGroupDirection = 'row' | 'col';
|
|
689
759
|
|
|
690
|
-
interface Props$
|
|
760
|
+
interface Props$D {
|
|
691
761
|
/**
|
|
692
762
|
* The HTML element type or React component to render as the button.
|
|
693
763
|
*/
|
|
@@ -732,20 +802,20 @@ interface Props$C {
|
|
|
732
802
|
fontStyle?: React.CSSProperties['fontStyle'];
|
|
733
803
|
};
|
|
734
804
|
}
|
|
735
|
-
type NativeAttrs$
|
|
736
|
-
type ButtonProps = Props$
|
|
737
|
-
declare const Button: react.ForwardRefExoticComponent<Props$
|
|
805
|
+
type NativeAttrs$F = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof Props$D>;
|
|
806
|
+
type ButtonProps = Props$D & NativeAttrs$F;
|
|
807
|
+
declare const Button: react.ForwardRefExoticComponent<Props$D & NativeAttrs$F & react.RefAttributes<HTMLButtonElement>>;
|
|
738
808
|
|
|
739
|
-
interface Props$
|
|
809
|
+
interface Props$C {
|
|
740
810
|
direction?: ButtonGroupDirection;
|
|
741
811
|
variant?: ButtonVariant;
|
|
742
812
|
color?: ButtonColor;
|
|
743
813
|
size?: ButtonSize;
|
|
744
814
|
disabled?: boolean;
|
|
745
815
|
}
|
|
746
|
-
type NativeAttrs$
|
|
747
|
-
type ButtonGroupProps = Props$
|
|
748
|
-
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$
|
|
816
|
+
type NativeAttrs$E = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$C>;
|
|
817
|
+
type ButtonGroupProps = Props$C & NativeAttrs$E;
|
|
818
|
+
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$C & NativeAttrs$E & react.RefAttributes<HTMLDivElement>>;
|
|
749
819
|
|
|
750
820
|
interface ButtonGroupContextValue {
|
|
751
821
|
direction: ButtonGroupDirection;
|
|
@@ -759,7 +829,7 @@ declare const useButtonGroup: () => ButtonGroupContextValue | null;
|
|
|
759
829
|
|
|
760
830
|
type CardSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
761
831
|
|
|
762
|
-
interface Props$
|
|
832
|
+
interface Props$B {
|
|
763
833
|
as?: React.ElementType;
|
|
764
834
|
size?: CardSize;
|
|
765
835
|
hoverable?: boolean;
|
|
@@ -769,14 +839,14 @@ interface Props$A {
|
|
|
769
839
|
divider?: boolean;
|
|
770
840
|
css?: BoxCSS;
|
|
771
841
|
}
|
|
772
|
-
type NativeAttrs$
|
|
773
|
-
type CardProps = Props$
|
|
774
|
-
declare const Card: react.ForwardRefExoticComponent<Props$
|
|
842
|
+
type NativeAttrs$D = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$B>;
|
|
843
|
+
type CardProps = Props$B & NativeAttrs$D;
|
|
844
|
+
declare const Card: react.ForwardRefExoticComponent<Props$B & NativeAttrs$D & react.RefAttributes<HTMLDivElement>>;
|
|
775
845
|
|
|
776
846
|
type CardBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
777
847
|
declare const CardBody: react.ForwardRefExoticComponent<CardBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
778
848
|
|
|
779
|
-
interface Props$
|
|
849
|
+
interface Props$A {
|
|
780
850
|
as?: React.ElementType;
|
|
781
851
|
title?: React.ReactNode;
|
|
782
852
|
subtitle?: React.ReactNode;
|
|
@@ -802,11 +872,11 @@ interface Props$z {
|
|
|
802
872
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
803
873
|
};
|
|
804
874
|
}
|
|
805
|
-
type NativeAttrs$
|
|
806
|
-
type CardHeaderProps = Props$
|
|
807
|
-
declare const CardHeader: react.ForwardRefExoticComponent<Props$
|
|
875
|
+
type NativeAttrs$C = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$A>;
|
|
876
|
+
type CardHeaderProps = Props$A & NativeAttrs$C;
|
|
877
|
+
declare const CardHeader: react.ForwardRefExoticComponent<Props$A & NativeAttrs$C & react.RefAttributes<HTMLDivElement>>;
|
|
808
878
|
|
|
809
|
-
interface Props$
|
|
879
|
+
interface Props$z {
|
|
810
880
|
as?: React.ElementType;
|
|
811
881
|
/**
|
|
812
882
|
* @deprecated Use `underlined` instead
|
|
@@ -814,9 +884,9 @@ interface Props$y {
|
|
|
814
884
|
bordered?: boolean;
|
|
815
885
|
underlined?: boolean;
|
|
816
886
|
}
|
|
817
|
-
type NativeAttrs$
|
|
818
|
-
type CardFooterProps = Props$
|
|
819
|
-
declare const CardFooter: react.ForwardRefExoticComponent<Props$
|
|
887
|
+
type NativeAttrs$B = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$z>;
|
|
888
|
+
type CardFooterProps = Props$z & NativeAttrs$B;
|
|
889
|
+
declare const CardFooter: react.ForwardRefExoticComponent<Props$z & NativeAttrs$B & react.RefAttributes<HTMLDivElement>>;
|
|
820
890
|
|
|
821
891
|
type CardMediaProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
822
892
|
topLeftContent?: React.ReactNode;
|
|
@@ -827,28 +897,28 @@ declare const CardMedia: react.ForwardRefExoticComponent<react.HTMLAttributes<HT
|
|
|
827
897
|
topRightContent?: React.ReactNode;
|
|
828
898
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
829
899
|
|
|
830
|
-
interface Props$
|
|
900
|
+
interface Props$y {
|
|
831
901
|
as?: React.ElementType;
|
|
832
902
|
centered?: boolean;
|
|
833
903
|
css?: BoxCSS;
|
|
834
904
|
}
|
|
835
|
-
type NativeAttrs$
|
|
836
|
-
type CardTitleProps = Props$
|
|
837
|
-
declare const CardTitle: react.ForwardRefExoticComponent<Props$
|
|
905
|
+
type NativeAttrs$A = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$y>;
|
|
906
|
+
type CardTitleProps = Props$y & NativeAttrs$A;
|
|
907
|
+
declare const CardTitle: react.ForwardRefExoticComponent<Props$y & NativeAttrs$A & react.RefAttributes<HTMLDivElement>>;
|
|
838
908
|
|
|
839
|
-
interface Props$
|
|
909
|
+
interface Props$x {
|
|
840
910
|
as?: React.ElementType;
|
|
841
911
|
css?: BoxCSS;
|
|
842
912
|
}
|
|
843
|
-
type NativeAttrs$
|
|
844
|
-
type CardSubtitleProps = Props$
|
|
845
|
-
declare const CardSubtitle: react.ForwardRefExoticComponent<Props$
|
|
913
|
+
type NativeAttrs$z = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$x>;
|
|
914
|
+
type CardSubtitleProps = Props$x & NativeAttrs$z;
|
|
915
|
+
declare const CardSubtitle: react.ForwardRefExoticComponent<Props$x & NativeAttrs$z & react.RefAttributes<HTMLDivElement>>;
|
|
846
916
|
|
|
847
917
|
type ChipVariant = 'filled' | 'outlined' | 'flat' | 'text' | 'plain' | 'bordered';
|
|
848
918
|
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
849
919
|
type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
850
920
|
|
|
851
|
-
interface Props$
|
|
921
|
+
interface Props$w {
|
|
852
922
|
/**
|
|
853
923
|
* The HTML element type or React component to render as the chip.
|
|
854
924
|
*/
|
|
@@ -886,9 +956,9 @@ interface Props$v {
|
|
|
886
956
|
};
|
|
887
957
|
onClose?: () => void;
|
|
888
958
|
}
|
|
889
|
-
type NativeAttrs$
|
|
890
|
-
type ChipProps = Props$
|
|
891
|
-
declare const Chip: react.ForwardRefExoticComponent<Props$
|
|
959
|
+
type NativeAttrs$y = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$w>;
|
|
960
|
+
type ChipProps = Props$w & NativeAttrs$y;
|
|
961
|
+
declare const Chip: react.ForwardRefExoticComponent<Props$w & NativeAttrs$y & react.RefAttributes<HTMLDivElement>>;
|
|
892
962
|
|
|
893
963
|
interface CollapseProps {
|
|
894
964
|
children: React.ReactNode;
|
|
@@ -933,7 +1003,7 @@ interface DrawerClose {
|
|
|
933
1003
|
}
|
|
934
1004
|
type DrawerBackdrop = BackdropVariant;
|
|
935
1005
|
|
|
936
|
-
interface Props$
|
|
1006
|
+
interface Props$v {
|
|
937
1007
|
isOpen: boolean;
|
|
938
1008
|
size?: DrawerSize;
|
|
939
1009
|
backdrop?: DrawerBackdrop;
|
|
@@ -950,11 +1020,11 @@ interface Props$u {
|
|
|
950
1020
|
onClose: () => void;
|
|
951
1021
|
onAfterClose?: () => void;
|
|
952
1022
|
}
|
|
953
|
-
type NativeAttrs$
|
|
954
|
-
type DrawerProps = Props$
|
|
955
|
-
declare const Drawer: react.ForwardRefExoticComponent<Props$
|
|
1023
|
+
type NativeAttrs$x = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$v>;
|
|
1024
|
+
type DrawerProps = Props$v & NativeAttrs$x;
|
|
1025
|
+
declare const Drawer: react.ForwardRefExoticComponent<Props$v & NativeAttrs$x & react.RefAttributes<HTMLDivElement>>;
|
|
956
1026
|
|
|
957
|
-
interface Props$
|
|
1027
|
+
interface Props$u {
|
|
958
1028
|
as?: React.ElementType;
|
|
959
1029
|
title?: React.ReactNode;
|
|
960
1030
|
subtitle?: React.ReactNode;
|
|
@@ -970,20 +1040,20 @@ interface Props$t {
|
|
|
970
1040
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
971
1041
|
};
|
|
972
1042
|
}
|
|
973
|
-
type NativeAttrs$
|
|
974
|
-
type DrawerHeaderProps = Props$
|
|
975
|
-
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$
|
|
1043
|
+
type NativeAttrs$w = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$u>;
|
|
1044
|
+
type DrawerHeaderProps = Props$u & NativeAttrs$w;
|
|
1045
|
+
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$u & NativeAttrs$w & react.RefAttributes<HTMLDivElement>>;
|
|
976
1046
|
|
|
977
1047
|
type DrawerBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
978
1048
|
declare const DrawerBody: react.ForwardRefExoticComponent<DrawerBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
979
1049
|
|
|
980
|
-
interface Props$
|
|
1050
|
+
interface Props$t {
|
|
981
1051
|
as?: React.ElementType;
|
|
982
1052
|
bordered?: boolean;
|
|
983
1053
|
}
|
|
984
|
-
type NativeAttrs$
|
|
985
|
-
type DrawerFooterProps = Props$
|
|
986
|
-
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$
|
|
1054
|
+
type NativeAttrs$v = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$t>;
|
|
1055
|
+
type DrawerFooterProps = Props$t & NativeAttrs$v;
|
|
1056
|
+
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$t & NativeAttrs$v & react.RefAttributes<HTMLDivElement>>;
|
|
987
1057
|
|
|
988
1058
|
interface DrawerContextValue {
|
|
989
1059
|
isOpen: boolean;
|
|
@@ -998,16 +1068,27 @@ interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
998
1068
|
declare const Field: react.ForwardRefExoticComponent<FieldProps & react.RefAttributes<HTMLDivElement>>;
|
|
999
1069
|
|
|
1000
1070
|
type IconColor = 'inherit' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
1001
|
-
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1071
|
+
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
1002
1072
|
|
|
1003
1073
|
interface IconProps {
|
|
1004
1074
|
children: React.ReactNode;
|
|
1005
1075
|
color?: IconColor;
|
|
1006
1076
|
size?: IconSize;
|
|
1077
|
+
className?: string;
|
|
1078
|
+
style?: React.CSSProperties;
|
|
1079
|
+
cssVars?: {
|
|
1080
|
+
color?: string;
|
|
1081
|
+
fontSize?: number | string;
|
|
1082
|
+
};
|
|
1083
|
+
cssUtils?: {
|
|
1084
|
+
opacity?: number;
|
|
1085
|
+
pointer?: boolean;
|
|
1086
|
+
hoverOpacity?: number;
|
|
1087
|
+
};
|
|
1007
1088
|
}
|
|
1008
1089
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<unknown>>;
|
|
1009
1090
|
|
|
1010
|
-
interface Props$
|
|
1091
|
+
interface Props$s {
|
|
1011
1092
|
/**
|
|
1012
1093
|
* The HTML element type or React component to render as the menu item.
|
|
1013
1094
|
*/
|
|
@@ -1033,9 +1114,9 @@ interface Props$r {
|
|
|
1033
1114
|
*/
|
|
1034
1115
|
disabled?: boolean;
|
|
1035
1116
|
}
|
|
1036
|
-
type NativeAttrs$
|
|
1037
|
-
type MenuItemProps = Props$
|
|
1038
|
-
declare const MenuItem: react.ForwardRefExoticComponent<Props$
|
|
1117
|
+
type NativeAttrs$u = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$s | 'items'>;
|
|
1118
|
+
type MenuItemProps = Props$s & NativeAttrs$u;
|
|
1119
|
+
declare const MenuItem: react.ForwardRefExoticComponent<Props$s & NativeAttrs$u & react.RefAttributes<HTMLDivElement>>;
|
|
1039
1120
|
|
|
1040
1121
|
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
1041
1122
|
items?: MenuItemType[];
|
|
@@ -1059,7 +1140,7 @@ type MenuItemType = (MenuGroupProps & {
|
|
|
1059
1140
|
}) | (MenuItemProps & {
|
|
1060
1141
|
type?: 'item';
|
|
1061
1142
|
});
|
|
1062
|
-
interface Props$
|
|
1143
|
+
interface Props$r {
|
|
1063
1144
|
/**
|
|
1064
1145
|
* The currently selected value of the menu.
|
|
1065
1146
|
*/
|
|
@@ -1095,8 +1176,8 @@ interface Props$q {
|
|
|
1095
1176
|
*/
|
|
1096
1177
|
onItemSelect?: (props: MenuItemProps) => void;
|
|
1097
1178
|
}
|
|
1098
|
-
type NativeAttrs$
|
|
1099
|
-
type MenuProps = Props$
|
|
1179
|
+
type NativeAttrs$t = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$r | 'items'>;
|
|
1180
|
+
type MenuProps = Props$r & NativeAttrs$t & {
|
|
1100
1181
|
items?: MenuItemType[];
|
|
1101
1182
|
};
|
|
1102
1183
|
declare const Menu: React.FC<MenuProps>;
|
|
@@ -1133,6 +1214,7 @@ declare const Popover: React.FC<PopoverProps>;
|
|
|
1133
1214
|
|
|
1134
1215
|
interface PopoverContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1135
1216
|
sectionValue?: string;
|
|
1217
|
+
excludeTargets?: string[];
|
|
1136
1218
|
}
|
|
1137
1219
|
declare const PopoverContent: react.ForwardRefExoticComponent<PopoverContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
1138
1220
|
|
|
@@ -1171,7 +1253,7 @@ declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaProps & reac
|
|
|
1171
1253
|
|
|
1172
1254
|
type SelectMultiple = false;
|
|
1173
1255
|
type SelectClearable = false;
|
|
1174
|
-
type NativeAttrs$
|
|
1256
|
+
type NativeAttrs$s<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$q<TItem, TKeyField>>;
|
|
1175
1257
|
type BaseProps<TItem extends Record<string, any>> = {
|
|
1176
1258
|
textField?: keyof TItem;
|
|
1177
1259
|
placeholder?: string;
|
|
@@ -1189,8 +1271,8 @@ type BaseProps<TItem extends Record<string, any>> = {
|
|
|
1189
1271
|
renderItem?: (item: TItem, props: ListItemProps) => React.ReactNode;
|
|
1190
1272
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
1191
1273
|
};
|
|
1192
|
-
type Props$
|
|
1193
|
-
type SelectProps<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key', TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = Props$
|
|
1274
|
+
type Props$q<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key', TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = BaseProps<TItem> & SelectionProps<TItem, TKeyField, TMultiple, TClearable>;
|
|
1275
|
+
type SelectProps<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key', TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = Props$q<TItem, TKeyField, TMultiple, TClearable> & NativeAttrs$s<TItem, TKeyField>;
|
|
1194
1276
|
|
|
1195
1277
|
declare const Select: <TItem extends Record<string, any>, TKeyField extends keyof TItem = "key", TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false>(props: SelectProps<TItem, TKeyField, TMultiple, TClearable>) => react_jsx_runtime.JSX.Element;
|
|
1196
1278
|
|
|
@@ -1214,20 +1296,21 @@ type SwitchSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
1214
1296
|
type SwitchLabelPlacement = 'before' | 'after';
|
|
1215
1297
|
type SwitchColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'dark' | 'light';
|
|
1216
1298
|
|
|
1217
|
-
interface Props$
|
|
1299
|
+
interface Props$p {
|
|
1218
1300
|
size?: SwitchSize;
|
|
1219
1301
|
labelPlacement?: SwitchLabelPlacement;
|
|
1220
1302
|
color?: SwitchColor;
|
|
1221
1303
|
}
|
|
1222
|
-
type NativeAttrs$
|
|
1223
|
-
type SwitchProps = Props$
|
|
1224
|
-
declare const Switch: react.ForwardRefExoticComponent<Props$
|
|
1304
|
+
type NativeAttrs$r = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$p | 'value' | 'defaultValue'>;
|
|
1305
|
+
type SwitchProps = Props$p & NativeAttrs$r;
|
|
1306
|
+
declare const Switch: react.ForwardRefExoticComponent<Props$p & NativeAttrs$r & react.RefAttributes<HTMLInputElement>>;
|
|
1225
1307
|
|
|
1226
1308
|
type TabsVariant = 'underlined' | 'outlined' | 'pills';
|
|
1227
1309
|
type TabValue = string | number | symbol;
|
|
1228
1310
|
type TabsAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1311
|
+
type TabsSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1229
1312
|
|
|
1230
|
-
interface Props$
|
|
1313
|
+
interface Props$o<TTabValue extends TabValue = TabValue> {
|
|
1231
1314
|
/**
|
|
1232
1315
|
* The HTML element type or React component to render as the tab.
|
|
1233
1316
|
*/
|
|
@@ -1253,11 +1336,11 @@ interface Props$n<TTabValue extends TabValue = TabValue> {
|
|
|
1253
1336
|
*/
|
|
1254
1337
|
endContent?: React.ReactNode;
|
|
1255
1338
|
}
|
|
1256
|
-
type NativeAttrs$
|
|
1257
|
-
type TabProps<TTabValue extends TabValue = TabValue> = Props$
|
|
1258
|
-
declare const Tab: react.ForwardRefExoticComponent<Props$
|
|
1339
|
+
type NativeAttrs$q = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$o>;
|
|
1340
|
+
type TabProps<TTabValue extends TabValue = TabValue> = Props$o<TTabValue> & NativeAttrs$q;
|
|
1341
|
+
declare const Tab: react.ForwardRefExoticComponent<Props$o<TabValue> & NativeAttrs$q & react.RefAttributes<HTMLDivElement>>;
|
|
1259
1342
|
|
|
1260
|
-
interface Props$
|
|
1343
|
+
interface Props$n<TTabValue extends TabValue = TabValue> {
|
|
1261
1344
|
/**
|
|
1262
1345
|
* The currently selected value of the tabs.
|
|
1263
1346
|
*/
|
|
@@ -1271,6 +1354,10 @@ interface Props$m<TTabValue extends TabValue = TabValue> {
|
|
|
1271
1354
|
* The alignment of the tabs.
|
|
1272
1355
|
*/
|
|
1273
1356
|
alignment?: TabsAlignment;
|
|
1357
|
+
/**
|
|
1358
|
+
* The size of the tabs.
|
|
1359
|
+
*/
|
|
1360
|
+
size?: TabsSize;
|
|
1274
1361
|
/**
|
|
1275
1362
|
* A callback function called when the selected tab value changes.
|
|
1276
1363
|
*/
|
|
@@ -1280,11 +1367,13 @@ interface Props$m<TTabValue extends TabValue = TabValue> {
|
|
|
1280
1367
|
*/
|
|
1281
1368
|
onClose?: (value: TTabValue) => void;
|
|
1282
1369
|
}
|
|
1283
|
-
type NativeAttrs$
|
|
1284
|
-
type TabsProps<TTabValue extends TabValue = TabValue> = Props$
|
|
1285
|
-
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$
|
|
1370
|
+
type NativeAttrs$p = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$n>;
|
|
1371
|
+
type TabsProps<TTabValue extends TabValue = TabValue> = Props$n<TTabValue> & NativeAttrs$p;
|
|
1372
|
+
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$n<TTabValue> & NativeAttrs$p & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1286
1373
|
|
|
1287
|
-
interface Props$
|
|
1374
|
+
interface Props$m {
|
|
1375
|
+
value?: string;
|
|
1376
|
+
defaultValue?: string;
|
|
1288
1377
|
inputRef?: React.RefObject<HTMLInputElement>;
|
|
1289
1378
|
variant?: InputVariant;
|
|
1290
1379
|
color?: InputColor;
|
|
@@ -1292,14 +1381,16 @@ interface Props$l {
|
|
|
1292
1381
|
startContent?: React.ReactNode;
|
|
1293
1382
|
endContent?: React.ReactNode;
|
|
1294
1383
|
css?: BoxCSS;
|
|
1384
|
+
rules?: StringRules;
|
|
1385
|
+
autoFormatRules?: boolean;
|
|
1295
1386
|
}
|
|
1296
|
-
type NativeAttrs$
|
|
1297
|
-
type TextInputProps = Props$
|
|
1298
|
-
declare const TextInput: react.ForwardRefExoticComponent<Props$
|
|
1387
|
+
type NativeAttrs$o = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$m>;
|
|
1388
|
+
type TextInputProps = Props$m & NativeAttrs$o;
|
|
1389
|
+
declare const TextInput: react.ForwardRefExoticComponent<Props$m & NativeAttrs$o & react.RefAttributes<HTMLInputElement>>;
|
|
1299
1390
|
|
|
1300
1391
|
type ToolbarSize = 'auto' | 'sm' | 'md' | 'lg';
|
|
1301
1392
|
|
|
1302
|
-
interface Props$
|
|
1393
|
+
interface Props$l {
|
|
1303
1394
|
size?: ToolbarSize;
|
|
1304
1395
|
title?: React.ReactNode;
|
|
1305
1396
|
subtitle?: React.ReactNode;
|
|
@@ -1321,8 +1412,8 @@ interface Props$k {
|
|
|
1321
1412
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1322
1413
|
};
|
|
1323
1414
|
}
|
|
1324
|
-
type NativeAttrs$
|
|
1325
|
-
type ToolbarProps = Props$
|
|
1415
|
+
type NativeAttrs$n = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$l>;
|
|
1416
|
+
type ToolbarProps = Props$l & NativeAttrs$n;
|
|
1326
1417
|
declare const Toolbar: React.FC<ToolbarProps>;
|
|
1327
1418
|
|
|
1328
1419
|
interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -1337,22 +1428,22 @@ interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
1337
1428
|
}
|
|
1338
1429
|
declare const Transition: React.FC<TransitionProps>;
|
|
1339
1430
|
|
|
1340
|
-
interface Props$
|
|
1431
|
+
interface Props$k {
|
|
1341
1432
|
/**
|
|
1342
1433
|
* The HTML element type or React component to render as the tab.
|
|
1343
1434
|
*/
|
|
1344
1435
|
as?: React.ElementType;
|
|
1345
1436
|
width?: number;
|
|
1346
1437
|
}
|
|
1347
|
-
type NativeAttrs$
|
|
1348
|
-
type SwipeItemProps = Props$
|
|
1349
|
-
declare const SwipeItem: react.ForwardRefExoticComponent<Props$
|
|
1438
|
+
type NativeAttrs$m = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$k>;
|
|
1439
|
+
type SwipeItemProps = Props$k & NativeAttrs$m;
|
|
1440
|
+
declare const SwipeItem: react.ForwardRefExoticComponent<Props$k & NativeAttrs$m & {
|
|
1350
1441
|
children?: react.ReactNode | undefined;
|
|
1351
1442
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1352
1443
|
|
|
1353
1444
|
type SwiperAlignmet = 'start' | 'center' | 'end';
|
|
1354
1445
|
|
|
1355
|
-
interface Props$
|
|
1446
|
+
interface Props$j {
|
|
1356
1447
|
gap?: number;
|
|
1357
1448
|
alignment?: SwiperAlignmet;
|
|
1358
1449
|
autoHide?: boolean;
|
|
@@ -1362,8 +1453,8 @@ interface Props$i {
|
|
|
1362
1453
|
arrowRightButton?: ButtonProps;
|
|
1363
1454
|
};
|
|
1364
1455
|
}
|
|
1365
|
-
type NativeAttrs$
|
|
1366
|
-
type SwipeProps = Props$
|
|
1456
|
+
type NativeAttrs$l = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$j>;
|
|
1457
|
+
type SwipeProps = Props$j & NativeAttrs$l;
|
|
1367
1458
|
declare const Swipe: React.FC<SwipeProps>;
|
|
1368
1459
|
|
|
1369
1460
|
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
@@ -1373,9 +1464,9 @@ interface ModalClose {
|
|
|
1373
1464
|
position?: 'start' | 'end';
|
|
1374
1465
|
}
|
|
1375
1466
|
type ModalScrollBehavior = 'inside' | 'outside';
|
|
1376
|
-
type ModalBackdrop = BackdropVariant;
|
|
1467
|
+
type ModalBackdrop = BackdropVariant | boolean;
|
|
1377
1468
|
|
|
1378
|
-
interface Props$
|
|
1469
|
+
interface Props$i {
|
|
1379
1470
|
isOpen: boolean;
|
|
1380
1471
|
size?: ModalSize;
|
|
1381
1472
|
backdrop?: ModalBackdrop;
|
|
@@ -1387,18 +1478,23 @@ interface Props$h {
|
|
|
1387
1478
|
slotProps?: {
|
|
1388
1479
|
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
1389
1480
|
};
|
|
1481
|
+
content?: boolean;
|
|
1390
1482
|
onClose: () => void;
|
|
1391
1483
|
onAfterClose?: () => void;
|
|
1392
1484
|
}
|
|
1393
|
-
type NativeAttrs$
|
|
1394
|
-
type ModalProps = Props$
|
|
1395
|
-
declare const Modal: react.ForwardRefExoticComponent<Props$
|
|
1485
|
+
type NativeAttrs$k = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$i>;
|
|
1486
|
+
type ModalProps = Props$i & NativeAttrs$k;
|
|
1487
|
+
declare const Modal: react.ForwardRefExoticComponent<Props$i & NativeAttrs$k & react.RefAttributes<HTMLDivElement>>;
|
|
1396
1488
|
|
|
1397
1489
|
type ModalBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
1398
1490
|
declare const ModalBody: React.FC<ModalBodyProps>;
|
|
1399
1491
|
|
|
1400
1492
|
interface ModalContextValue {
|
|
1493
|
+
nodeRef: React.MutableRefObject<null>;
|
|
1401
1494
|
isOpen: boolean;
|
|
1495
|
+
size: ModalSize;
|
|
1496
|
+
placement: ModalPlacement;
|
|
1497
|
+
fullscreen: boolean;
|
|
1402
1498
|
scrollBehavior: ModalScrollBehavior;
|
|
1403
1499
|
scrollArea: boolean;
|
|
1404
1500
|
closable: boolean;
|
|
@@ -1407,15 +1503,15 @@ interface ModalContextValue {
|
|
|
1407
1503
|
}
|
|
1408
1504
|
declare function useModal(): ModalContextValue;
|
|
1409
1505
|
|
|
1410
|
-
interface Props$
|
|
1506
|
+
interface Props$h {
|
|
1411
1507
|
as?: React.ElementType;
|
|
1412
1508
|
bordered?: boolean;
|
|
1413
1509
|
}
|
|
1414
|
-
type NativeAttrs$
|
|
1415
|
-
type ModalFooterProps = Props$
|
|
1416
|
-
declare const ModalFooter: react.ForwardRefExoticComponent<Props$
|
|
1510
|
+
type NativeAttrs$j = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$h>;
|
|
1511
|
+
type ModalFooterProps = Props$h & NativeAttrs$j;
|
|
1512
|
+
declare const ModalFooter: react.ForwardRefExoticComponent<Props$h & NativeAttrs$j & react.RefAttributes<HTMLDivElement>>;
|
|
1417
1513
|
|
|
1418
|
-
interface Props$
|
|
1514
|
+
interface Props$g {
|
|
1419
1515
|
as?: React.ElementType;
|
|
1420
1516
|
title?: React.ReactNode;
|
|
1421
1517
|
subtitle?: React.ReactNode;
|
|
@@ -1431,9 +1527,12 @@ interface Props$f {
|
|
|
1431
1527
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1432
1528
|
};
|
|
1433
1529
|
}
|
|
1434
|
-
type NativeAttrs$
|
|
1435
|
-
type ModalHeaderProps = Props$
|
|
1436
|
-
declare const ModalHeader: react.ForwardRefExoticComponent<Props$
|
|
1530
|
+
type NativeAttrs$i = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$g>;
|
|
1531
|
+
type ModalHeaderProps = Props$g & NativeAttrs$i;
|
|
1532
|
+
declare const ModalHeader: react.ForwardRefExoticComponent<Props$g & NativeAttrs$i & react.RefAttributes<HTMLDivElement>>;
|
|
1533
|
+
|
|
1534
|
+
type ModalContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
1535
|
+
declare const ModalContent: react.ForwardRefExoticComponent<ModalContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
1437
1536
|
|
|
1438
1537
|
type CheckboxValue = string | number | symbol;
|
|
1439
1538
|
type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -1442,17 +1541,18 @@ type CheckboxGroupDirection = 'row' | 'col';
|
|
|
1442
1541
|
type CheckboxGroupAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1443
1542
|
type CheckboxColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'dark' | 'light';
|
|
1444
1543
|
|
|
1445
|
-
interface Props$
|
|
1544
|
+
interface Props$f<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1446
1545
|
value?: TCheckboxValue;
|
|
1447
1546
|
size?: CheckboxSize;
|
|
1448
1547
|
labelPlacement?: CheckboxLabelPlacement;
|
|
1449
1548
|
color?: CheckboxColor;
|
|
1549
|
+
indeterminate?: boolean;
|
|
1450
1550
|
}
|
|
1451
|
-
type NativeAttrs$
|
|
1452
|
-
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$
|
|
1453
|
-
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$
|
|
1551
|
+
type NativeAttrs$h = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$f | 'defaultValue'>;
|
|
1552
|
+
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$f<TCheckboxValue> & NativeAttrs$h;
|
|
1553
|
+
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$f<TCheckboxValue> & NativeAttrs$h & react.RefAttributes<HTMLInputElement>) => ReturnType<React.FunctionComponent>;
|
|
1454
1554
|
|
|
1455
|
-
interface Props$
|
|
1555
|
+
interface Props$e<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1456
1556
|
value?: TCheckboxValue[];
|
|
1457
1557
|
defaultValue?: TCheckboxValue[];
|
|
1458
1558
|
disabled?: boolean;
|
|
@@ -1464,9 +1564,9 @@ interface Props$d<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
|
1464
1564
|
color?: CheckboxColor;
|
|
1465
1565
|
onChange?: (value: TCheckboxValue[]) => void;
|
|
1466
1566
|
}
|
|
1467
|
-
type NativeAttrs$
|
|
1468
|
-
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$
|
|
1469
|
-
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$
|
|
1567
|
+
type NativeAttrs$g = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$e>;
|
|
1568
|
+
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$e<TCheckboxValue> & NativeAttrs$g;
|
|
1569
|
+
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$e<TCheckboxValue> & NativeAttrs$g & react.RefAttributes<HTMLTableElement>) => ReturnType<React.FunctionComponent>;
|
|
1470
1570
|
|
|
1471
1571
|
interface CheckboxGroupContextValue<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1472
1572
|
value: TCheckboxValue[];
|
|
@@ -1488,7 +1588,7 @@ type RadioGroupDirection = 'row' | 'col';
|
|
|
1488
1588
|
type RadioGroupAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1489
1589
|
type RadioColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'dark' | 'light';
|
|
1490
1590
|
|
|
1491
|
-
interface Props$
|
|
1591
|
+
interface Props$d<TRadioValue extends RadioValue = RadioValue> {
|
|
1492
1592
|
value?: TRadioValue;
|
|
1493
1593
|
disabled?: boolean;
|
|
1494
1594
|
readOnly?: boolean;
|
|
@@ -1496,11 +1596,11 @@ interface Props$c<TRadioValue extends RadioValue = RadioValue> {
|
|
|
1496
1596
|
labelPlacement?: RadioLabelPlacement;
|
|
1497
1597
|
colorScheme?: ColorScheme;
|
|
1498
1598
|
}
|
|
1499
|
-
type NativeAttrs$
|
|
1500
|
-
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$
|
|
1501
|
-
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$
|
|
1599
|
+
type NativeAttrs$f = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$d | 'defaultValue' | 'checked' | 'defaultChecked' | 'onChange'>;
|
|
1600
|
+
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$d<TRadioValue> & NativeAttrs$f;
|
|
1601
|
+
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$d<TRadioValue> & NativeAttrs$f & react.RefAttributes<HTMLInputElement>) => ReturnType<React.FunctionComponent>;
|
|
1502
1602
|
|
|
1503
|
-
interface Props$
|
|
1603
|
+
interface Props$c<TRadioValue extends RadioValue = RadioValue> {
|
|
1504
1604
|
name?: string;
|
|
1505
1605
|
value?: TRadioValue;
|
|
1506
1606
|
defaultValue?: TRadioValue;
|
|
@@ -1513,9 +1613,9 @@ interface Props$b<TRadioValue extends RadioValue = RadioValue> {
|
|
|
1513
1613
|
color?: RadioColor;
|
|
1514
1614
|
onChange?: (value: TRadioValue) => void;
|
|
1515
1615
|
}
|
|
1516
|
-
type NativeAttrs$
|
|
1517
|
-
type RadioGroupProps<TRadioValue extends RadioValue = RadioValue> = Props$
|
|
1518
|
-
declare const RadioGroup: <TRadioValue extends RadioValue = RadioValue>(props: Props$
|
|
1616
|
+
type NativeAttrs$e = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$c>;
|
|
1617
|
+
type RadioGroupProps<TRadioValue extends RadioValue = RadioValue> = Props$c<TRadioValue> & NativeAttrs$e;
|
|
1618
|
+
declare const RadioGroup: <TRadioValue extends RadioValue = RadioValue>(props: Props$c<TRadioValue> & NativeAttrs$e & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1519
1619
|
|
|
1520
1620
|
interface RadioGroupContextValue {
|
|
1521
1621
|
name: string;
|
|
@@ -1533,16 +1633,16 @@ declare const useRadioGroup: () => RadioGroupContextValue;
|
|
|
1533
1633
|
|
|
1534
1634
|
type NavRailPlacement = 'left' | 'right';
|
|
1535
1635
|
|
|
1536
|
-
interface Props$
|
|
1636
|
+
interface Props$b {
|
|
1537
1637
|
startContent?: React.ReactNode;
|
|
1538
1638
|
endContent?: React.ReactNode;
|
|
1539
1639
|
placement?: NavRailPlacement;
|
|
1540
1640
|
}
|
|
1541
|
-
type NativeAttrs$
|
|
1542
|
-
type NavRailProps = Props$
|
|
1641
|
+
type NativeAttrs$d = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$b>;
|
|
1642
|
+
type NavRailProps = Props$b & NativeAttrs$d;
|
|
1543
1643
|
declare const NavRail: React.FC<NavRailProps>;
|
|
1544
1644
|
|
|
1545
|
-
interface Props$
|
|
1645
|
+
interface Props$a {
|
|
1546
1646
|
as?: React.ElementType;
|
|
1547
1647
|
icon?: React.ReactNode;
|
|
1548
1648
|
media?: React.ReactNode;
|
|
@@ -1552,11 +1652,11 @@ interface Props$9 {
|
|
|
1552
1652
|
label?: React.HTMLAttributes<HTMLDivElement>;
|
|
1553
1653
|
};
|
|
1554
1654
|
}
|
|
1555
|
-
type NativeAttrs$
|
|
1556
|
-
type NavRailItemProps = Props$
|
|
1557
|
-
declare const NavRailItem: react.ForwardRefExoticComponent<Props$
|
|
1655
|
+
type NativeAttrs$c = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$a>;
|
|
1656
|
+
type NavRailItemProps = Props$a & NativeAttrs$c;
|
|
1657
|
+
declare const NavRailItem: react.ForwardRefExoticComponent<Props$a & NativeAttrs$c & react.RefAttributes<HTMLDivElement>>;
|
|
1558
1658
|
|
|
1559
|
-
type Props$
|
|
1659
|
+
type Props$9 = {
|
|
1560
1660
|
as?: React.ElementType;
|
|
1561
1661
|
label: React.ReactNode;
|
|
1562
1662
|
span?: Responsive<number>;
|
|
@@ -1572,20 +1672,20 @@ type Props$8 = {
|
|
|
1572
1672
|
mq: ContainerMediaQuery;
|
|
1573
1673
|
}) => React.ReactNode;
|
|
1574
1674
|
} & FormatOptions;
|
|
1575
|
-
type NativeAttrs$
|
|
1576
|
-
type DescriptionProps = Props$
|
|
1675
|
+
type NativeAttrs$b = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$9 | 'children'>;
|
|
1676
|
+
type DescriptionProps = Props$9 & NativeAttrs$b;
|
|
1577
1677
|
declare const Description: react.ForwardRefExoticComponent<DescriptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
1578
1678
|
|
|
1579
|
-
type NativeAttrs$
|
|
1580
|
-
type DescriptionEmptyProps = NativeAttrs$
|
|
1581
|
-
declare const DescriptionEmpty: react.ForwardRefExoticComponent<NativeAttrs$
|
|
1679
|
+
type NativeAttrs$a = React.HTMLAttributes<HTMLDivElement>;
|
|
1680
|
+
type DescriptionEmptyProps = NativeAttrs$a;
|
|
1681
|
+
declare const DescriptionEmpty: react.ForwardRefExoticComponent<NativeAttrs$a & react.RefAttributes<HTMLDivElement>>;
|
|
1582
1682
|
|
|
1583
1683
|
type DescriptionsLayout = 'row' | 'col';
|
|
1584
1684
|
type DescriptionsSize = 'sm' | 'md' | 'lg';
|
|
1585
1685
|
type DescriptionsAlign = React.CSSProperties['textAlign'];
|
|
1586
1686
|
type DescriptionsMode = 'container' | 'screen' | 'css';
|
|
1587
1687
|
|
|
1588
|
-
interface Props$
|
|
1688
|
+
interface Props$8 {
|
|
1589
1689
|
as?: React.ElementType;
|
|
1590
1690
|
mode?: DescriptionsMode;
|
|
1591
1691
|
items?: DescriptionProps[];
|
|
@@ -1596,9 +1696,9 @@ interface Props$7 {
|
|
|
1596
1696
|
labelAlign?: Responsive<DescriptionsAlign>;
|
|
1597
1697
|
contentAlign?: Responsive<DescriptionsAlign>;
|
|
1598
1698
|
}
|
|
1599
|
-
type NativeAttrs$
|
|
1600
|
-
type DescriptionsProps = Props$
|
|
1601
|
-
declare const Descriptions: react.ForwardRefExoticComponent<Props$
|
|
1699
|
+
type NativeAttrs$9 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$8 | 'children'>;
|
|
1700
|
+
type DescriptionsProps = Props$8 & NativeAttrs$9;
|
|
1701
|
+
declare const Descriptions: react.ForwardRefExoticComponent<Props$8 & NativeAttrs$9 & react.RefAttributes<HTMLDivElement>>;
|
|
1602
1702
|
|
|
1603
1703
|
interface DescriptionsContextValue {
|
|
1604
1704
|
mq: ContainerMediaQuery;
|
|
@@ -1611,9 +1711,9 @@ interface DescriptionsContextValue {
|
|
|
1611
1711
|
declare const DescriptionsContext: react.Context<DescriptionsContextValue | null>;
|
|
1612
1712
|
declare const useDescriptionsContext: () => DescriptionsContextValue;
|
|
1613
1713
|
|
|
1614
|
-
type NativeAttrs$
|
|
1615
|
-
type DescriptionTextProps = NativeAttrs$
|
|
1616
|
-
declare const DescriptionText: react.ForwardRefExoticComponent<NativeAttrs$
|
|
1714
|
+
type NativeAttrs$8 = React.HTMLAttributes<HTMLDivElement>;
|
|
1715
|
+
type DescriptionTextProps = NativeAttrs$8;
|
|
1716
|
+
declare const DescriptionText: react.ForwardRefExoticComponent<NativeAttrs$8 & react.RefAttributes<HTMLDivElement>>;
|
|
1617
1717
|
|
|
1618
1718
|
declare function reactNodeToText(node: React.ReactNode): string;
|
|
1619
1719
|
|
|
@@ -1633,14 +1733,14 @@ interface ResponsiveProps$2 {
|
|
|
1633
1733
|
justifyContent?: Responsive<React.CSSProperties['justifyContent']>;
|
|
1634
1734
|
alignItems?: Responsive<React.CSSProperties['alignItems']>;
|
|
1635
1735
|
}
|
|
1636
|
-
type Props$
|
|
1736
|
+
type Props$7 = {
|
|
1637
1737
|
as?: React.ElementType;
|
|
1638
1738
|
} & ResponsiveProps$2;
|
|
1639
|
-
type NativeAttrs$
|
|
1640
|
-
type GridItemProps = Props$
|
|
1739
|
+
type NativeAttrs$7 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$7>;
|
|
1740
|
+
type GridItemProps = Props$7 & NativeAttrs$7;
|
|
1641
1741
|
declare const GridItem: react.ForwardRefExoticComponent<{
|
|
1642
1742
|
as?: React.ElementType;
|
|
1643
|
-
} & ResponsiveProps$2 & NativeAttrs$
|
|
1743
|
+
} & ResponsiveProps$2 & NativeAttrs$7 & react.RefAttributes<HTMLDivElement>>;
|
|
1644
1744
|
|
|
1645
1745
|
interface ResponsiveProps$1 {
|
|
1646
1746
|
cols?: Responsive<number>;
|
|
@@ -1658,14 +1758,14 @@ interface ResponsiveProps$1 {
|
|
|
1658
1758
|
justifyContent?: Responsive<React.CSSProperties['justifyContent']>;
|
|
1659
1759
|
alignItems?: Responsive<React.CSSProperties['alignItems']>;
|
|
1660
1760
|
}
|
|
1661
|
-
type Props$
|
|
1761
|
+
type Props$6 = {
|
|
1662
1762
|
items?: GridItemProps[];
|
|
1663
1763
|
} & ResponsiveProps$1;
|
|
1664
|
-
type NativeAttrs$
|
|
1665
|
-
type GridSubProps = Props$
|
|
1764
|
+
type NativeAttrs$6 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$6>;
|
|
1765
|
+
type GridSubProps = Props$6 & NativeAttrs$6;
|
|
1666
1766
|
declare const GridSub: react.ForwardRefExoticComponent<{
|
|
1667
1767
|
items?: GridItemProps[];
|
|
1668
|
-
} & ResponsiveProps$1 & NativeAttrs$
|
|
1768
|
+
} & ResponsiveProps$1 & NativeAttrs$6 & react.RefAttributes<HTMLDivElement>>;
|
|
1669
1769
|
|
|
1670
1770
|
type GridMode = 'container' | 'screen' | 'css';
|
|
1671
1771
|
|
|
@@ -1687,16 +1787,16 @@ interface ResponsiveProps {
|
|
|
1687
1787
|
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
1688
1788
|
};
|
|
1689
1789
|
}
|
|
1690
|
-
type Props$
|
|
1790
|
+
type Props$5 = {
|
|
1691
1791
|
mode?: GridMode;
|
|
1692
1792
|
items?: (GridItemProps | GridSubProps)[];
|
|
1693
1793
|
} & ResponsiveProps;
|
|
1694
|
-
type NativeAttrs$
|
|
1695
|
-
type GridProps = Props$
|
|
1794
|
+
type NativeAttrs$5 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$5>;
|
|
1795
|
+
type GridProps = Props$5 & NativeAttrs$5;
|
|
1696
1796
|
declare const Grid: react.ForwardRefExoticComponent<{
|
|
1697
1797
|
mode?: GridMode;
|
|
1698
1798
|
items?: (GridItemProps | GridSubProps)[];
|
|
1699
|
-
} & ResponsiveProps & NativeAttrs$
|
|
1799
|
+
} & ResponsiveProps & NativeAttrs$5 & react.RefAttributes<HTMLDivElement>>;
|
|
1700
1800
|
|
|
1701
1801
|
interface GridContextValue {
|
|
1702
1802
|
mq: ContainerMediaQuery;
|
|
@@ -1716,7 +1816,7 @@ declare const Html: React.FC<HtmlProps>;
|
|
|
1716
1816
|
|
|
1717
1817
|
type StepColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
1718
1818
|
|
|
1719
|
-
interface Props$
|
|
1819
|
+
interface Props$4 {
|
|
1720
1820
|
value?: string | number | symbol;
|
|
1721
1821
|
title: React.ReactNode;
|
|
1722
1822
|
subtitle: React.ReactNode;
|
|
@@ -1724,18 +1824,18 @@ interface Props$3 {
|
|
|
1724
1824
|
color?: StepColor;
|
|
1725
1825
|
disabled?: boolean;
|
|
1726
1826
|
}
|
|
1727
|
-
type NativeAttrs$
|
|
1728
|
-
type StepProps = Props$
|
|
1827
|
+
type NativeAttrs$4 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$4>;
|
|
1828
|
+
type StepProps = Props$4 & NativeAttrs$4;
|
|
1729
1829
|
declare const Step: React.FC<StepProps>;
|
|
1730
1830
|
|
|
1731
|
-
interface Props$
|
|
1831
|
+
interface Props$3 {
|
|
1732
1832
|
direction?: 'horizontal' | 'vertical';
|
|
1733
1833
|
value?: number | string | symbol;
|
|
1734
1834
|
color?: StepColor;
|
|
1735
1835
|
markPreviousAsChecked?: boolean;
|
|
1736
1836
|
}
|
|
1737
|
-
type NativeAttrs$
|
|
1738
|
-
type StepsProps = Props$
|
|
1837
|
+
type NativeAttrs$3 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$3>;
|
|
1838
|
+
type StepsProps = Props$3 & NativeAttrs$3;
|
|
1739
1839
|
declare const Steps: React.FC<StepsProps>;
|
|
1740
1840
|
|
|
1741
1841
|
interface StepsContextValue {
|
|
@@ -1755,132 +1855,207 @@ interface StepsContextValue {
|
|
|
1755
1855
|
declare const StepsContext: react.Context<StepsContextValue | null>;
|
|
1756
1856
|
declare const useStepsContext: () => StepsContextValue;
|
|
1757
1857
|
|
|
1758
|
-
interface
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
value?: any;
|
|
1767
|
-
/**
|
|
1768
|
-
* The title to display for the menu item.
|
|
1769
|
-
*/
|
|
1770
|
-
title: string;
|
|
1771
|
-
/**
|
|
1772
|
-
* Optional icon to display with the menu item.
|
|
1773
|
-
*/
|
|
1858
|
+
interface TreeItemValue {
|
|
1859
|
+
value: string;
|
|
1860
|
+
selected: boolean;
|
|
1861
|
+
checked: boolean;
|
|
1862
|
+
indeterminate: boolean;
|
|
1863
|
+
}
|
|
1864
|
+
interface TreeItemBase {
|
|
1865
|
+
value: string;
|
|
1774
1866
|
icon?: React.ReactNode;
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
disabled?: boolean;
|
|
1867
|
+
items?: TreeItemBase[];
|
|
1868
|
+
}
|
|
1869
|
+
interface TreeItemData {
|
|
1870
|
+
value: string;
|
|
1871
|
+
parents: string[];
|
|
1872
|
+
levelRaw: number;
|
|
1873
|
+
levelAlignment: number;
|
|
1783
1874
|
}
|
|
1784
|
-
type NativeAttrs$1 = Omit<React.HTMLAttributes<HTMLElement>, keyof Props$1 | 'items'>;
|
|
1785
|
-
type TreeItemProps = Props$1 & NativeAttrs$1;
|
|
1786
|
-
declare const TreeItem: react.ForwardRefExoticComponent<Props$1 & NativeAttrs$1 & react.RefAttributes<HTMLElement>>;
|
|
1787
1875
|
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1876
|
+
interface Props$2 extends TreeItemBase {
|
|
1877
|
+
title: string;
|
|
1878
|
+
items?: Props$2[];
|
|
1879
|
+
}
|
|
1880
|
+
type NativeAttrs$2 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$2 | 'items'>;
|
|
1881
|
+
type TreeItemProps = Props$2 & NativeAttrs$2;
|
|
1882
|
+
declare const TreeItem: (props: TreeItemProps) => react_jsx_runtime.JSX.Element;
|
|
1792
1883
|
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
|
|
1884
|
+
interface TreeProps$1 {
|
|
1885
|
+
items?: TreeItemProps[];
|
|
1886
|
+
value?: TreeItemValue[];
|
|
1887
|
+
onChange?: (value: TreeItemValue[]) => void;
|
|
1888
|
+
}
|
|
1889
|
+
declare const Tree: (props: TreeProps$1) => react_jsx_runtime.JSX.Element;
|
|
1890
|
+
|
|
1891
|
+
interface TreeContextValue {
|
|
1892
|
+
items: TreeItemData[];
|
|
1893
|
+
values: TreeItemValue[];
|
|
1894
|
+
setValues: (value: TreeItemValue[]) => void;
|
|
1895
|
+
selectValue: (value: string) => void;
|
|
1896
|
+
unselectValue: (value: string) => void;
|
|
1897
|
+
checkValue: (value: string) => void;
|
|
1898
|
+
uncheckValue: (value: string) => void;
|
|
1899
|
+
}
|
|
1900
|
+
declare const TreeContext: react.Context<TreeContextValue>;
|
|
1901
|
+
|
|
1902
|
+
interface TreeProps {
|
|
1903
|
+
items?: TreeItemBase[];
|
|
1904
|
+
value?: TreeItemValue[];
|
|
1905
|
+
checkable?: boolean;
|
|
1906
|
+
onChange?: (value: TreeItemValue[]) => void;
|
|
1907
|
+
onSelect?: (value: string) => void;
|
|
1908
|
+
onUnselect?: (value: string) => void;
|
|
1909
|
+
}
|
|
1910
|
+
declare function useTree(props: TreeProps): {
|
|
1911
|
+
items: TreeItemData[];
|
|
1912
|
+
values: TreeItemValue[];
|
|
1913
|
+
setValues: react.Dispatch<react.SetStateAction<TreeItemValue[]>>;
|
|
1914
|
+
selectValue: (value: string) => void;
|
|
1915
|
+
unselectValue: (value: string) => void;
|
|
1916
|
+
checkValue: (value: string) => void;
|
|
1917
|
+
uncheckValue: (value: string) => void;
|
|
1800
1918
|
};
|
|
1801
|
-
declare const TreeGroup: React.FC<TreeGroupProps>;
|
|
1802
1919
|
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
}
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
interface
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
*/
|
|
1818
|
-
openValues?: any[];
|
|
1819
|
-
expandedValues?: any[];
|
|
1820
|
-
selectedValues?: any[];
|
|
1821
|
-
checkedValues?: any[];
|
|
1822
|
-
/**
|
|
1823
|
-
* The nav mode of the menu, which can be 'manual' or 'automatic'.
|
|
1824
|
-
* Search for the last level of the menu and validate if the value matches.
|
|
1825
|
-
*/
|
|
1826
|
-
navMode?: 'manual' | 'automatic';
|
|
1827
|
-
/**
|
|
1828
|
-
* A callback function called when the selected values of the menu change.
|
|
1829
|
-
*/
|
|
1830
|
-
onChange?: (value: any[]) => void;
|
|
1831
|
-
/**
|
|
1832
|
-
* A callback function called when submenus are opened.
|
|
1833
|
-
*/
|
|
1834
|
-
onOpen?: (values: any[]) => void;
|
|
1835
|
-
/**
|
|
1836
|
-
* A callback function called when a menu item is selected.
|
|
1837
|
-
* @param {TreeItemProps} props - The properties of the selected menu item.
|
|
1838
|
-
*/
|
|
1839
|
-
onItemSelect?: (props: TreeItemProps) => void;
|
|
1920
|
+
declare function initializeTreeValues(items: TreeItemData[]): TreeItemValue[];
|
|
1921
|
+
declare function flattenTree(tree: TreeItemBase[], parents?: string[], levelRaw?: number, levelAlignment?: number, parentIndicators?: {
|
|
1922
|
+
icon: boolean;
|
|
1923
|
+
chevron: boolean;
|
|
1924
|
+
}, checkable?: boolean): TreeItemData[];
|
|
1925
|
+
declare function updateTreeValues(values: TreeItemValue[], value: string, action: 'select' | 'unselect' | 'check' | 'uncheck', items: TreeItemData[]): TreeItemValue[];
|
|
1926
|
+
|
|
1927
|
+
interface DropdownProps {
|
|
1928
|
+
isOpen?: boolean;
|
|
1929
|
+
onOpen?: () => void;
|
|
1930
|
+
onClose?: () => void;
|
|
1931
|
+
children: ((options: {
|
|
1932
|
+
isOpen: boolean;
|
|
1933
|
+
}) => React.ReactNode) | React.ReactNode;
|
|
1840
1934
|
}
|
|
1841
|
-
|
|
1842
|
-
type TreeProps = Props & NativeAttrs & {
|
|
1843
|
-
items?: TreeItemType[];
|
|
1844
|
-
};
|
|
1845
|
-
declare const Tree: React.FC<TreeProps>;
|
|
1935
|
+
declare const Dropdown: (props: DropdownProps) => react_jsx_runtime.JSX.Element;
|
|
1846
1936
|
|
|
1847
|
-
interface
|
|
1848
|
-
|
|
1849
|
-
originalValue: any[];
|
|
1850
|
-
openValues: any[];
|
|
1851
|
-
expandMode: 'single' | 'multiple';
|
|
1852
|
-
navMode: 'manual' | 'automatic';
|
|
1853
|
-
onChange: (value: any[]) => void;
|
|
1854
|
-
onOpen: (values: any[]) => void;
|
|
1855
|
-
onItemSelect: (props: TreeItemProps) => void;
|
|
1937
|
+
interface DropdownContentProps {
|
|
1938
|
+
children: React.ReactNode;
|
|
1856
1939
|
}
|
|
1857
|
-
declare const
|
|
1858
|
-
declare const useTree: () => TreeContextValue;
|
|
1940
|
+
declare const DropdownContent: (props: DropdownContentProps) => react_jsx_runtime.JSX.Element;
|
|
1859
1941
|
|
|
1860
|
-
|
|
1861
|
-
|
|
1942
|
+
interface DropdownContextValue {
|
|
1943
|
+
isOpen: boolean;
|
|
1944
|
+
onClose(): void;
|
|
1945
|
+
onOpen(): void;
|
|
1946
|
+
onToggle(): void;
|
|
1947
|
+
floatingRootContext: FloatingRootContext;
|
|
1948
|
+
triggerElement: Element | null;
|
|
1949
|
+
setTriggerElement(el: Element | null): void;
|
|
1950
|
+
getTriggerProps(externalProps?: React.HTMLAttributes<any> & {
|
|
1951
|
+
ref?: React.Ref<any> | undefined;
|
|
1952
|
+
}): React.HTMLAttributes<any> & {
|
|
1953
|
+
ref?: React.Ref<any> | undefined;
|
|
1954
|
+
};
|
|
1955
|
+
contentElement: Element | null;
|
|
1956
|
+
setContentElement(el: HTMLElement | null): void;
|
|
1957
|
+
getContentProps(externalProps?: React.HTMLAttributes<any> & {
|
|
1958
|
+
ref?: React.Ref<any> | undefined;
|
|
1959
|
+
}): React.HTMLAttributes<any> & {
|
|
1960
|
+
ref?: React.Ref<any> | undefined;
|
|
1961
|
+
};
|
|
1962
|
+
}
|
|
1963
|
+
declare const DropdownContext: react.Context<DropdownContextValue | null>;
|
|
1964
|
+
declare const useDropdownContext: () => DropdownContextValue;
|
|
1862
1965
|
|
|
1863
|
-
|
|
1966
|
+
interface Props$1 {
|
|
1967
|
+
}
|
|
1968
|
+
type NativeAttrs$1 = Omit<ListItemProps, keyof Props$1>;
|
|
1969
|
+
type DropdownItemProps = Props$1 & NativeAttrs$1;
|
|
1970
|
+
declare const DropdownItem: (props: DropdownItemProps) => react_jsx_runtime.JSX.Element;
|
|
1864
1971
|
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
declare
|
|
1972
|
+
interface DropdownTriggerProps {
|
|
1973
|
+
children: React.ReactNode;
|
|
1974
|
+
}
|
|
1975
|
+
declare const DropdownTrigger: (props: DropdownTriggerProps) => react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
1869
1976
|
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1977
|
+
interface ListTreeItemIndentationProps {
|
|
1978
|
+
level: number;
|
|
1979
|
+
}
|
|
1980
|
+
declare const INDENT_SIZE = 18;
|
|
1981
|
+
declare const ListTreeItemIndentation: ({ level }: ListTreeItemIndentationProps) => react_jsx_runtime.JSX.Element;
|
|
1982
|
+
interface Props extends TreeItemBase {
|
|
1983
|
+
icon?: React.ReactNode;
|
|
1984
|
+
}
|
|
1985
|
+
type NativeAttrs = Omit<ListItemProps, keyof Props | 'items' | 'startContent'>;
|
|
1986
|
+
type ListTreeItemProps = Props & NativeAttrs & {
|
|
1987
|
+
items?: ListTreeItemProps[];
|
|
1988
|
+
};
|
|
1989
|
+
declare const ListTreeItem: (props: ListTreeItemProps) => react_jsx_runtime.JSX.Element;
|
|
1873
1990
|
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1991
|
+
interface ListTreeProps {
|
|
1992
|
+
items?: ListTreeItemProps[];
|
|
1993
|
+
value?: TreeItemValue[];
|
|
1994
|
+
selectable?: boolean;
|
|
1995
|
+
checkable?: boolean;
|
|
1996
|
+
onChange?: (value: TreeItemValue[]) => void;
|
|
1997
|
+
onSelect?: (value: string) => void;
|
|
1998
|
+
onUnselect?: (value: string) => void;
|
|
1999
|
+
}
|
|
2000
|
+
declare const ListTree: (props: ListTreeProps) => react_jsx_runtime.JSX.Element;
|
|
1882
2001
|
|
|
1883
|
-
|
|
1884
|
-
|
|
2002
|
+
interface ListTreeContextValue {
|
|
2003
|
+
selectable: boolean;
|
|
2004
|
+
checkable: boolean;
|
|
2005
|
+
}
|
|
2006
|
+
declare const ListTreeContext: react.Context<ListTreeContextValue>;
|
|
2007
|
+
|
|
2008
|
+
declare const DraggableTrigger: ({ children }: {
|
|
2009
|
+
children: react__default.ReactNode;
|
|
2010
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2011
|
+
type DraggableContentProps = react__default.HTMLAttributes<HTMLDivElement>;
|
|
2012
|
+
declare const DraggableContent: (props: DraggableContentProps) => react_jsx_runtime.JSX.Element;
|
|
2013
|
+
type DraggableContent = react__default.HTMLAttributes<HTMLDivElement> & {
|
|
2014
|
+
bounces?: 'screen' | 'scroll';
|
|
2015
|
+
placement?: 'center';
|
|
2016
|
+
children: react__default.ReactNode;
|
|
2017
|
+
};
|
|
2018
|
+
declare const Draggable: ({ bounces: bouncesProp, placement, ...props }: DraggableContent) => react_jsx_runtime.JSX.Element;
|
|
2019
|
+
|
|
2020
|
+
interface UploadFileData {
|
|
2021
|
+
id: string;
|
|
2022
|
+
name: string;
|
|
2023
|
+
size: number;
|
|
2024
|
+
file: File;
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
interface UploadFileProps {
|
|
2028
|
+
data: UploadFileData[];
|
|
2029
|
+
readOnly?: boolean;
|
|
2030
|
+
accept?: string;
|
|
2031
|
+
max?: number;
|
|
2032
|
+
multiple?: boolean;
|
|
2033
|
+
disabled?: boolean;
|
|
2034
|
+
onChange: (value: UploadFileData[]) => void;
|
|
2035
|
+
}
|
|
2036
|
+
declare const UploadFiles: ({ data, max, readOnly, disabled, accept, multiple, onChange }: UploadFileProps) => react_jsx_runtime.JSX.Element;
|
|
2037
|
+
|
|
2038
|
+
type WindowMeta = {
|
|
2039
|
+
id: string;
|
|
2040
|
+
title: string;
|
|
2041
|
+
content?: react__default.ReactNode;
|
|
2042
|
+
x?: number;
|
|
2043
|
+
y?: number;
|
|
2044
|
+
width?: number;
|
|
2045
|
+
height?: number;
|
|
2046
|
+
minimized?: boolean;
|
|
2047
|
+
maximized?: boolean;
|
|
2048
|
+
closed?: boolean;
|
|
2049
|
+
};
|
|
2050
|
+
type DesktopWindowSystemProps = {
|
|
2051
|
+
windows: WindowMeta[];
|
|
2052
|
+
onChange: (windows: WindowMeta[]) => void;
|
|
2053
|
+
parentRef?: react__default.RefObject<HTMLDivElement>;
|
|
2054
|
+
children: react__default.ReactNode | ((options: {
|
|
2055
|
+
content: react__default.ReactNode;
|
|
2056
|
+
taskbar: react__default.ReactNode;
|
|
2057
|
+
}) => react__default.ReactNode);
|
|
2058
|
+
};
|
|
2059
|
+
declare function WindowManager({ parentRef: externalParentRef, windows, onChange, children }: DesktopWindowSystemProps): react_jsx_runtime.JSX.Element;
|
|
1885
2060
|
|
|
1886
|
-
export { Accordion, type AccordionArrow, AccordionBody, type AccordionBodyProps, type AccordionColor, AccordionContent, type AccordionContentProps, AccordionContext, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionSize, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, Autocomplete, type AutocompleteClearable, AutocompleteContext, type AutocompleteContextValue, type AutocompleteMultiple, type AutocompleteProps, Backdrop, type BackdropPlacement, type BackdropProps, type BackdropVariant, Badge, type BadgeProps, Button, type ButtonColor, ButtonGroup, ButtonGroupContext, type ButtonGroupContextValue, type ButtonGroupDirection, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps, CardSubtitle, type CardSubtitleProps, CardTitle, type CardTitleProps, Checkbox, type CheckboxColor, CheckboxGroup, type CheckboxGroupAlignment, CheckboxGroupContext, type CheckboxGroupContextValue, type CheckboxGroupDirection, type CheckboxGroupProps, type CheckboxLabelPlacement, type CheckboxProps, type CheckboxSize, type CheckboxValue, Chip, type ChipProps, Collapse, CollapseContent, type CollapseContentProps, CollapseContext, type CollapseContextValue, type CollapseProps, CollapseTrigger, type CollapseTriggerProps, type ColorScheme, type ContainerBreakpoints, ContainerMediaQuery, DataList, type DataListItem, type DataListKeyField, type DataListMultipleProps, type DataListProps, type DataListSingleProps, Description, DescriptionEmpty, type DescriptionEmptyProps, type DescriptionProps, DescriptionText, type DescriptionTextProps, Descriptions, type DescriptionsAlign, DescriptionsContext, type DescriptionsContextValue, type DescriptionsLayout, type DescriptionsMode, type DescriptionsProps, type DescriptionsSize, type Disclosure, Divider, type DividerProps, Drawer, type DrawerBackdrop, DrawerBody, type DrawerBodyProps, type DrawerClose, DrawerContext, type DrawerContextValue, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, type DrawerPosition, type DrawerProps, type DrawerSize, Field, type FieldProps, type FormatBooleanOptions, type FormatCurrencyOptions, type FormatDateOptions, type FormatNumberOptions, type FormatOptions, type FormatPercentOptions, type FormatStringOptions, Grid, GridContext, type GridContextValue, GridItem, type GridItemProps, type GridMode, type GridProps, GridSub, type GridSubProps, Html, type HtmlProps, Icon, type IconColor, type IconProps, type IconSize, Iframe, type IframeProps, type InfiniteData, type InfiniteQueryFunction, type InfiniteQueryOptions, type InfiniteQueryRefetchOptions, type InputColor, InputGroup, type InputGroupProps, type InputSize, type InputVariant, List, ListGroup, type ListGroupProps, ListItem, type ListItemProps, type ListProps, type ListSize, ListSubheader, type ListSubheaderProps, type MediaQuery, Menu, MenuContext, type MenuContextValue, MenuGroup, type MenuGroupItemType, type MenuGroupProps, MenuItem, type MenuItemProps, type MenuItemType, type MenuProps, MenuSubmenu, type MenuSubmenuProps, MenuValueContext, Modal, type ModalBackdrop, ModalBody, type ModalBodyProps, type ModalClose, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalPlacement, type ModalProps, type ModalScrollBehavior, type ModalSize, type MutationError, type MutationFunction, type MutationOK, type MutationResult, MutationStatus, NavRail, NavRailItem, type NavRailItemProps, type NavRailPlacement, type NavRailProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, type QueryFunction, QueryStatus, Radio, type RadioColor, RadioGroup, type RadioGroupAlignment, RadioGroupContext, type RadioGroupContextValue, type RadioGroupDirection, type RadioGroupProps, type RadioLabelPlacement, type RadioProps, type RadioSize, type RadioValue, type ReactRef, type Resize, type Responsive, Result, type ResultProps, type ResultStatus, type ScrollAlignment, ScrollArea, type ScrollAreaProps, type ScrollBehavior, type ScrollToOptions, Select, type SelectClearable, SelectContext, type SelectContextValue, type SelectMultiple, type SelectProps, type SelectionItem, type SelectionOnChange, type SelectionProps, type SelectionValue, Step, type StepColor, type StepProps, Steps, StepsContext, type StepsContextValue, type StepsProps, Swipe, SwipeItem, type SwipeItemProps, type SwipeProps, Switch, type SwitchColor, type SwitchLabelPlacement, type SwitchProps, type SwitchSize, Tab, type TabProps, Tabs, type TabsAlignment, type TabsProps, type TabsVariant, TextInput, type TextInputProps, Toolbar, type ToolbarProps, type ToolbarSize, Transition, type TransitionProps, Tree, TreeContext, type TreeContextValue,
|
|
2061
|
+
export { Accordion, type AccordionArrow, AccordionBody, type AccordionBodyProps, type AccordionColor, AccordionContent, type AccordionContentProps, AccordionContext, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionSize, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, Autocomplete, type AutocompleteClearable, AutocompleteContext, type AutocompleteContextValue, type AutocompleteMultiple, type AutocompleteProps, Backdrop, type BackdropPlacement, type BackdropProps, type BackdropVariant, Badge, type BadgeProps, Button, type ButtonColor, ButtonGroup, ButtonGroupContext, type ButtonGroupContextValue, type ButtonGroupDirection, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps, CardSubtitle, type CardSubtitleProps, CardTitle, type CardTitleProps, Checkbox, type CheckboxColor, CheckboxGroup, type CheckboxGroupAlignment, CheckboxGroupContext, type CheckboxGroupContextValue, type CheckboxGroupDirection, type CheckboxGroupProps, type CheckboxLabelPlacement, type CheckboxProps, type CheckboxSize, type CheckboxValue, Chip, type ChipProps, Collapse, CollapseContent, type CollapseContentProps, CollapseContext, type CollapseContextValue, type CollapseProps, CollapseTrigger, type CollapseTriggerProps, type ColorScheme, type ContainerBreakpoints, ContainerMediaQuery, DataList, type DataListItem, type DataListKeyField, type DataListMultipleProps, type DataListProps, type DataListSingleProps, Description, DescriptionEmpty, type DescriptionEmptyProps, type DescriptionProps, DescriptionText, type DescriptionTextProps, Descriptions, type DescriptionsAlign, DescriptionsContext, type DescriptionsContextValue, type DescriptionsLayout, type DescriptionsMode, type DescriptionsProps, type DescriptionsSize, type Disclosure, Divider, type DividerProps, Draggable, DraggableContent, type DraggableContentProps, DraggableTrigger, Drawer, type DrawerBackdrop, DrawerBody, type DrawerBodyProps, type DrawerClose, DrawerContext, type DrawerContextValue, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, type DrawerPosition, type DrawerProps, type DrawerSize, Dropdown, DropdownContent, type DropdownContentProps, DropdownContext, type DropdownContextValue, DropdownItem, type DropdownItemProps, type DropdownProps, DropdownTrigger, type DropdownTriggerProps, Field, type FieldProps, type FormatBooleanOptions, type FormatCurrencyOptions, type FormatDateOptions, type FormatFileSizeOptions, type FormatNumberOptions, type FormatOptions, type FormatPercentOptions, type FormatStringOptions, Grid, GridContext, type GridContextValue, GridItem, type GridItemProps, type GridMode, type GridProps, GridSub, type GridSubProps, Html, type HtmlProps, INDENT_SIZE, Icon, type IconColor, type IconProps, type IconSize, Iframe, type IframeProps, type InfiniteData, type InfiniteQueryFunction, type InfiniteQueryOptions, type InfiniteQueryRefetchOptions, type InputColor, InputGroup, type InputGroupProps, type InputSize, type InputVariant, List, ListGroup, type ListGroupProps, ListItem, type ListItemProps, type ListProps, type ListSize, ListSubheader, type ListSubheaderProps, ListTree, ListTreeContext, type ListTreeContextValue, ListTreeItem, ListTreeItemIndentation, type ListTreeItemProps, type ListTreeProps, type MediaQuery, Menu, MenuContext, type MenuContextValue, MenuGroup, type MenuGroupItemType, type MenuGroupProps, MenuItem, type MenuItemProps, type MenuItemType, type MenuProps, MenuSubmenu, type MenuSubmenuProps, MenuValueContext, Modal, type ModalBackdrop, ModalBody, type ModalBodyProps, type ModalClose, ModalContent, type ModalContentProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalPlacement, type ModalProps, type ModalScrollBehavior, type ModalSize, type MutationError, type MutationFunction, type MutationOK, type MutationResult, MutationStatus, NavRail, NavRailItem, type NavRailItemProps, type NavRailPlacement, type NavRailProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, type QueryFunction, QueryStatus, Radio, type RadioColor, RadioGroup, type RadioGroupAlignment, RadioGroupContext, type RadioGroupContextValue, type RadioGroupDirection, type RadioGroupProps, type RadioLabelPlacement, type RadioProps, type RadioSize, type RadioValue, type ReactRef, type Resize, type Responsive, Result, type ResultProps, type ResultStatus, STRING_RULES, type ScrollAlignment, ScrollArea, type ScrollAreaProps, type ScrollBehavior, type ScrollToOptions, Select, type SelectClearable, SelectContext, type SelectContextValue, type SelectMultiple, type SelectProps, type SelectionItem, type SelectionOnChange, type SelectionProps, type SelectionValue, Step, type StepColor, type StepProps, Steps, StepsContext, type StepsContextValue, type StepsProps, type StringRules, Swipe, SwipeItem, type SwipeItemProps, type SwipeProps, Switch, type SwitchColor, type SwitchLabelPlacement, type SwitchProps, type SwitchSize, Tab, type TabProps, Tabs, type TabsAlignment, type TabsProps, type TabsVariant, TextInput, type TextInputProps, Toolbar, type ToolbarProps, type ToolbarSize, Transition, type TransitionProps, Tree, TreeContext, type TreeContextValue, TreeItem, type TreeItemBase, type TreeItemData, type TreeItemProps, type TreeItemValue, type TreeProps$1 as TreeProps, type UploadFileData, type UploadFileProps, UploadFiles, type UseContainerMediaQueryOptions, type UseInfiniteQueryOptions, type UseInfiniteQueryResult, type UseMutationOptions, type UseMutationResult, type UseQueryOptions, type UseQueryResult, type UseResizeObserverOptions, type VirtualItem, type Virtualizer, type VirtualizerOptions, WindowManager, type WindowMeta, areArraysEqual, assignRef, breakpointsMap, clsx, containsPlainText, defaultBreakpoints, doesNotContainEmojis, flattenTree, format, formatCurrency, formatDate, formatDateTime, formatFileSize, formatPercent, formatShortDateTime, formatTime, generateId, getOpenValuesByPathname, hasResizeObserver, initializeTreeValues, isAlphanumeric, isEmpty, isEmptyString, isNumeric, mergeRefs, reactNodeToText, scrollToItem, toAlphaString, toAlphanumericString, toLocalDateString, toLocalDateTimeString, toNotEmojisString, toNumericString, toPlainTextString, toRulesString, updateTreeValues, useAccordion, useAccordionItem, useAutocomplete, useButtonGroup, useCheckboxGroup, useCollapse, useContainerMediaQuery, useDebounce, useDescriptionsContext, useDisclosure, useDrawer, useDropdownContext, useEffectEvent, useElementSize, useFormat, useGridContext, useInfiniteQuery, useLocalStorage, useMediaQuery, useMenu, useMenuItemValue, useModal, useMutation, useOnClickOutside, usePopover, usePrevious, useQuery, useRadioGroup, useResizeObserver, useSelect, useStep, useStepsContext, useTree, useValueEffect, useVirtualizer, validateRules, valueToValues, valuesToValue };
|