@unifiedsoftware/react-ui 2.0.0-beta.9 → 2.0.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +585 -244
- package/dist/index.js +33 -1
- package/package.json +12 -9
package/dist/index.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ 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
5
|
import { FloatingRootContext } from '@floating-ui/react';
|
|
6
6
|
|
|
7
|
-
interface Props$
|
|
7
|
+
interface Props$O {
|
|
8
8
|
}
|
|
9
|
-
type NativeAttrs$
|
|
10
|
-
type DividerProps = Props$
|
|
11
|
-
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>>;
|
|
12
12
|
|
|
13
13
|
type BoxShadow = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
14
14
|
type BorderRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -36,7 +36,7 @@ interface AccordionArrow {
|
|
|
36
36
|
position?: 'start' | 'end';
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
interface Props$
|
|
39
|
+
interface Props$N {
|
|
40
40
|
value?: any[];
|
|
41
41
|
defaultValue?: any[];
|
|
42
42
|
expandMode?: 'single' | 'multiple';
|
|
@@ -53,9 +53,9 @@ interface Props$M {
|
|
|
53
53
|
}) => React.ReactNode;
|
|
54
54
|
onChange?: (value: any[]) => void;
|
|
55
55
|
}
|
|
56
|
-
type NativeAttrs$
|
|
57
|
-
type AccordionProps = Props$
|
|
58
|
-
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>>;
|
|
59
59
|
|
|
60
60
|
interface AccordionItemContextValue {
|
|
61
61
|
value: string;
|
|
@@ -64,7 +64,7 @@ interface AccordionItemContextValue {
|
|
|
64
64
|
}) => React.ReactNode;
|
|
65
65
|
}
|
|
66
66
|
declare const useAccordionItem: () => AccordionItemContextValue;
|
|
67
|
-
interface Props$
|
|
67
|
+
interface Props$M {
|
|
68
68
|
value?: any;
|
|
69
69
|
variant?: AccordionVariant;
|
|
70
70
|
color?: AccordionColor;
|
|
@@ -72,11 +72,11 @@ interface Props$L {
|
|
|
72
72
|
isOpen: boolean;
|
|
73
73
|
}) => React.ReactNode;
|
|
74
74
|
}
|
|
75
|
-
type NativeAttrs$
|
|
76
|
-
type AccordionItemProps = Props$
|
|
77
|
-
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>>;
|
|
78
78
|
|
|
79
|
-
interface Props$
|
|
79
|
+
interface Props$L {
|
|
80
80
|
as?: React.ElementType;
|
|
81
81
|
title?: React.ReactNode;
|
|
82
82
|
subtitle?: React.ReactNode;
|
|
@@ -94,9 +94,9 @@ interface Props$K {
|
|
|
94
94
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
type NativeAttrs$
|
|
98
|
-
type AccordionHeaderProps = Props$
|
|
99
|
-
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>>;
|
|
100
100
|
|
|
101
101
|
type AccordionBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
102
102
|
declare const AccordionBody: react.ForwardRefExoticComponent<AccordionBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -401,21 +401,17 @@ interface UseContainerMediaQueryOptions<TElement extends HTMLElement = HTMLEleme
|
|
|
401
401
|
}
|
|
402
402
|
declare function useContainerMediaQuery<TElement extends HTMLElement = HTMLElement>(options: UseContainerMediaQueryOptions<TElement>): ContainerMediaQuery | undefined;
|
|
403
403
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
format?: 'datetime' | 'short datetime' | 'date' | 'time';
|
|
416
|
-
locales?: Intl.LocalesArgument;
|
|
417
|
-
options?: Intl.DateTimeFormatOptions;
|
|
418
|
-
}
|
|
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
|
+
|
|
419
415
|
interface FormatBooleanOptions {
|
|
420
416
|
type: 'boolean';
|
|
421
417
|
value?: boolean | null;
|
|
@@ -424,6 +420,7 @@ interface FormatBooleanOptions {
|
|
|
424
420
|
false?: string;
|
|
425
421
|
};
|
|
426
422
|
}
|
|
423
|
+
|
|
427
424
|
interface FormatCurrencyOptions {
|
|
428
425
|
type: 'currency';
|
|
429
426
|
value?: number | bigint | Intl.StringNumericLiteral | null;
|
|
@@ -431,6 +428,43 @@ interface FormatCurrencyOptions {
|
|
|
431
428
|
locales?: Intl.LocalesArgument;
|
|
432
429
|
options?: Intl.NumberFormatOptions;
|
|
433
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
|
+
|
|
434
468
|
interface FormatPercentOptions {
|
|
435
469
|
type: 'percent';
|
|
436
470
|
value?: number | string | null;
|
|
@@ -438,13 +472,79 @@ interface FormatPercentOptions {
|
|
|
438
472
|
locales?: Intl.LocalesArgument;
|
|
439
473
|
options?: Intl.NumberFormatOptions;
|
|
440
474
|
}
|
|
441
|
-
|
|
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;
|
|
442
522
|
|
|
443
523
|
declare function useFormat(options: FormatOptions): {
|
|
444
524
|
value: string | undefined;
|
|
445
525
|
getValue: (value: any) => string | undefined;
|
|
446
526
|
};
|
|
447
527
|
|
|
528
|
+
type TimerMode = 'up' | 'down';
|
|
529
|
+
interface UseTimerOptions {
|
|
530
|
+
mode: TimerMode;
|
|
531
|
+
initialSeconds: number;
|
|
532
|
+
maxSeconds?: number;
|
|
533
|
+
onTick?: (seconds: number) => void;
|
|
534
|
+
onComplete?: () => void;
|
|
535
|
+
}
|
|
536
|
+
declare const useTimer: ({ mode, initialSeconds, maxSeconds, onTick, onComplete }: UseTimerOptions) => {
|
|
537
|
+
seconds: number;
|
|
538
|
+
formattedTime: string;
|
|
539
|
+
isRunning: boolean;
|
|
540
|
+
isCompleted: boolean;
|
|
541
|
+
start: () => void;
|
|
542
|
+
pause: () => void;
|
|
543
|
+
reset: (newSeconds?: number) => void;
|
|
544
|
+
stop: () => void;
|
|
545
|
+
};
|
|
546
|
+
type Timer = ReturnType<typeof useTimer>;
|
|
547
|
+
|
|
448
548
|
type ColorScheme = 'default' | 'light' | 'dark';
|
|
449
549
|
|
|
450
550
|
type MediaQuery = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
@@ -475,37 +575,26 @@ type Responsive<T> = T | {
|
|
|
475
575
|
'2xl'?: T;
|
|
476
576
|
};
|
|
477
577
|
|
|
478
|
-
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];
|
|
479
|
-
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;
|
|
480
|
-
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;
|
|
481
|
-
interface SelectionProps<TItem extends Record<string, any>, TKeyField extends keyof TItem, TMultiple extends boolean | undefined, TClearable extends boolean | undefined> {
|
|
482
|
-
data: TItem[];
|
|
483
|
-
isMultiple?: TMultiple;
|
|
484
|
-
clearable?: TClearable;
|
|
485
|
-
keyField?: TKeyField;
|
|
486
|
-
value?: SelectionValue<TItem, TKeyField, TMultiple, TClearable>;
|
|
487
|
-
onChange?: SelectionOnChange<TItem, TKeyField, TMultiple, TClearable>;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
578
|
type InputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
491
579
|
type InputColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'dark' | 'light';
|
|
492
580
|
type InputVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
493
581
|
|
|
494
|
-
interface Props$
|
|
582
|
+
interface Props$K {
|
|
495
583
|
}
|
|
496
|
-
type NativeAttrs$
|
|
497
|
-
type InputGroupProps = Props$
|
|
498
|
-
declare const InputGroup: react.ForwardRefExoticComponent<Props$
|
|
584
|
+
type NativeAttrs$M = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$K>;
|
|
585
|
+
type InputGroupProps = Props$K & NativeAttrs$M;
|
|
586
|
+
declare const InputGroup: react.ForwardRefExoticComponent<Props$K & NativeAttrs$M & react.RefAttributes<HTMLDivElement>>;
|
|
499
587
|
|
|
500
588
|
type ListSize = 'sm' | 'md' | 'lg';
|
|
501
589
|
|
|
502
590
|
interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
503
591
|
as?: React.ElementType;
|
|
504
592
|
size?: ListSize;
|
|
593
|
+
divider?: boolean;
|
|
505
594
|
}
|
|
506
595
|
declare const List: react.ForwardRefExoticComponent<ListProps & react.RefAttributes<HTMLDivElement>>;
|
|
507
596
|
|
|
508
|
-
interface Props$
|
|
597
|
+
interface Props$J {
|
|
509
598
|
as?: react__default.ElementType;
|
|
510
599
|
title?: react__default.ReactNode;
|
|
511
600
|
subtitle?: react__default.ReactNode;
|
|
@@ -523,11 +612,11 @@ interface Props$I {
|
|
|
523
612
|
subtitle?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
524
613
|
};
|
|
525
614
|
}
|
|
526
|
-
type NativeAttrs$
|
|
527
|
-
type ListItemProps = Props$
|
|
528
|
-
declare const ListItem: react__default.ForwardRefExoticComponent<Props$
|
|
615
|
+
type NativeAttrs$L = Omit<react__default.HTMLAttributes<HTMLDivElement>, keyof Props$J>;
|
|
616
|
+
type ListItemProps = Props$J & NativeAttrs$L;
|
|
617
|
+
declare const ListItem: react__default.ForwardRefExoticComponent<Props$J & NativeAttrs$L & react__default.RefAttributes<HTMLDivElement>>;
|
|
529
618
|
|
|
530
|
-
interface Props$
|
|
619
|
+
interface Props$I {
|
|
531
620
|
expandVisible?: boolean;
|
|
532
621
|
expandPosition?: 'start' | 'end';
|
|
533
622
|
isOpen?: boolean;
|
|
@@ -535,9 +624,9 @@ interface Props$H {
|
|
|
535
624
|
onClose?: () => void;
|
|
536
625
|
onToggle?: () => void;
|
|
537
626
|
}
|
|
538
|
-
type NativeAttrs$
|
|
539
|
-
type ListGroupProps = Props$
|
|
540
|
-
declare const ListGroup: react.ForwardRefExoticComponent<Props$
|
|
627
|
+
type NativeAttrs$K = Omit<ListItemProps, keyof Props$I>;
|
|
628
|
+
type ListGroupProps = Props$I & NativeAttrs$K;
|
|
629
|
+
declare const ListGroup: react.ForwardRefExoticComponent<Props$I & NativeAttrs$K & react.RefAttributes<HTMLDivElement>>;
|
|
541
630
|
|
|
542
631
|
interface ListSubheaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
543
632
|
as?: React.ElementType;
|
|
@@ -567,7 +656,7 @@ declare const Result: React.FC<ResultProps>;
|
|
|
567
656
|
|
|
568
657
|
type AutocompleteMultiple = false;
|
|
569
658
|
type AutocompleteClearable = true;
|
|
570
|
-
type NativeAttrs$
|
|
659
|
+
type NativeAttrs$J<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$H<TItem, TKeyField>>;
|
|
571
660
|
type BaseProps$1<TItem extends Record<string, any>> = {
|
|
572
661
|
textField?: keyof TItem;
|
|
573
662
|
placeholder?: string;
|
|
@@ -587,8 +676,8 @@ type BaseProps$1<TItem extends Record<string, any>> = {
|
|
|
587
676
|
renderItem?: (item: TItem, props: ListItemProps) => React.ReactNode;
|
|
588
677
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
589
678
|
};
|
|
590
|
-
type Props$
|
|
591
|
-
type AutocompleteProps<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key', TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = Props$
|
|
679
|
+
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>;
|
|
680
|
+
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>;
|
|
592
681
|
|
|
593
682
|
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;
|
|
594
683
|
|
|
@@ -611,7 +700,7 @@ declare const useAutocomplete: () => AutocompleteContextValue<Record<string, any
|
|
|
611
700
|
type BackdropPlacement = 'top' | 'left' | 'center' | 'right' | 'bottom';
|
|
612
701
|
type BackdropVariant = 'opaque' | 'blur' | 'transparent';
|
|
613
702
|
|
|
614
|
-
interface Props$
|
|
703
|
+
interface Props$G {
|
|
615
704
|
isOpen: boolean;
|
|
616
705
|
closable?: boolean;
|
|
617
706
|
placement?: BackdropPlacement;
|
|
@@ -620,14 +709,14 @@ interface Props$F {
|
|
|
620
709
|
scrollArea?: boolean;
|
|
621
710
|
onClose(): void;
|
|
622
711
|
}
|
|
623
|
-
type NativeAttrs$
|
|
624
|
-
type BackdropProps = Props$
|
|
625
|
-
declare const Backdrop: react.ForwardRefExoticComponent<Props$
|
|
712
|
+
type NativeAttrs$I = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$G>;
|
|
713
|
+
type BackdropProps = Props$G & NativeAttrs$I;
|
|
714
|
+
declare const Backdrop: react.ForwardRefExoticComponent<Props$G & NativeAttrs$I & react.RefAttributes<HTMLDivElement>>;
|
|
626
715
|
|
|
627
716
|
type BadgeColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
628
717
|
type BadgePlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
629
718
|
|
|
630
|
-
interface Props$
|
|
719
|
+
interface Props$F {
|
|
631
720
|
/**
|
|
632
721
|
* The placement of the badge relative to its content.
|
|
633
722
|
*/
|
|
@@ -645,8 +734,8 @@ interface Props$E {
|
|
|
645
734
|
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
646
735
|
};
|
|
647
736
|
}
|
|
648
|
-
type NativeAttrs$
|
|
649
|
-
type BadgeProps = Props$
|
|
737
|
+
type NativeAttrs$H = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$F>;
|
|
738
|
+
type BadgeProps = Props$F & NativeAttrs$H;
|
|
650
739
|
declare const Badge: React.FC<BadgeProps>;
|
|
651
740
|
|
|
652
741
|
type DataListItem = Record<string, any>;
|
|
@@ -663,7 +752,7 @@ interface DataListMultipleProps<TDataListItem extends DataListItem, TDataListKey
|
|
|
663
752
|
onChange?: (value: TDataListItem[]) => void;
|
|
664
753
|
onValueChange?: (value: TDataListItem[TDataListKeyField][]) => void;
|
|
665
754
|
}
|
|
666
|
-
type Props$
|
|
755
|
+
type Props$E<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = {
|
|
667
756
|
data: TDataListItem[];
|
|
668
757
|
keyField?: TDataListKeyField;
|
|
669
758
|
textField?: keyof DataListItem;
|
|
@@ -678,8 +767,8 @@ type Props$D<TDataListItem extends DataListItem, TDataListKeyField extends DataL
|
|
|
678
767
|
renderItem?: (item: TDataListItem, props: ListItemProps$1) => React.ReactNode;
|
|
679
768
|
renderNoData?: (props: ResultProps$1) => React.ReactNode;
|
|
680
769
|
} & (DataListSingleProps<TDataListItem, TDataListKeyField> | DataListMultipleProps<TDataListItem, TDataListKeyField>);
|
|
681
|
-
type NativeAttrs$
|
|
682
|
-
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$
|
|
770
|
+
type NativeAttrs$G<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$E<TDataListItem, TDataListKeyField>>;
|
|
771
|
+
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$E<TDataListItem, TDataListKeyField> & NativeAttrs$G<TDataListItem, TDataListKeyField>;
|
|
683
772
|
|
|
684
773
|
declare const DataList: <TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = "key">(props: DataListProps<TDataListItem, TDataListKeyField>) => react_jsx_runtime.JSX.Element;
|
|
685
774
|
|
|
@@ -688,7 +777,7 @@ type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'd
|
|
|
688
777
|
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
689
778
|
type ButtonGroupDirection = 'row' | 'col';
|
|
690
779
|
|
|
691
|
-
interface Props$
|
|
780
|
+
interface Props$D {
|
|
692
781
|
/**
|
|
693
782
|
* The HTML element type or React component to render as the button.
|
|
694
783
|
*/
|
|
@@ -733,20 +822,20 @@ interface Props$C {
|
|
|
733
822
|
fontStyle?: React.CSSProperties['fontStyle'];
|
|
734
823
|
};
|
|
735
824
|
}
|
|
736
|
-
type NativeAttrs$
|
|
737
|
-
type ButtonProps = Props$
|
|
738
|
-
declare const Button: react.ForwardRefExoticComponent<Props$
|
|
825
|
+
type NativeAttrs$F = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof Props$D>;
|
|
826
|
+
type ButtonProps = Props$D & NativeAttrs$F;
|
|
827
|
+
declare const Button: react.ForwardRefExoticComponent<Props$D & NativeAttrs$F & react.RefAttributes<HTMLButtonElement>>;
|
|
739
828
|
|
|
740
|
-
interface Props$
|
|
829
|
+
interface Props$C {
|
|
741
830
|
direction?: ButtonGroupDirection;
|
|
742
831
|
variant?: ButtonVariant;
|
|
743
832
|
color?: ButtonColor;
|
|
744
833
|
size?: ButtonSize;
|
|
745
834
|
disabled?: boolean;
|
|
746
835
|
}
|
|
747
|
-
type NativeAttrs$
|
|
748
|
-
type ButtonGroupProps = Props$
|
|
749
|
-
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$
|
|
836
|
+
type NativeAttrs$E = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$C>;
|
|
837
|
+
type ButtonGroupProps = Props$C & NativeAttrs$E;
|
|
838
|
+
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$C & NativeAttrs$E & react.RefAttributes<HTMLDivElement>>;
|
|
750
839
|
|
|
751
840
|
interface ButtonGroupContextValue {
|
|
752
841
|
direction: ButtonGroupDirection;
|
|
@@ -760,7 +849,7 @@ declare const useButtonGroup: () => ButtonGroupContextValue | null;
|
|
|
760
849
|
|
|
761
850
|
type CardSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
762
851
|
|
|
763
|
-
interface Props$
|
|
852
|
+
interface Props$B {
|
|
764
853
|
as?: React.ElementType;
|
|
765
854
|
size?: CardSize;
|
|
766
855
|
hoverable?: boolean;
|
|
@@ -770,14 +859,14 @@ interface Props$A {
|
|
|
770
859
|
divider?: boolean;
|
|
771
860
|
css?: BoxCSS;
|
|
772
861
|
}
|
|
773
|
-
type NativeAttrs$
|
|
774
|
-
type CardProps = Props$
|
|
775
|
-
declare const Card: react.ForwardRefExoticComponent<Props$
|
|
862
|
+
type NativeAttrs$D = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$B>;
|
|
863
|
+
type CardProps = Props$B & NativeAttrs$D;
|
|
864
|
+
declare const Card: react.ForwardRefExoticComponent<Props$B & NativeAttrs$D & react.RefAttributes<HTMLDivElement>>;
|
|
776
865
|
|
|
777
866
|
type CardBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
778
867
|
declare const CardBody: react.ForwardRefExoticComponent<CardBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
779
868
|
|
|
780
|
-
interface Props$
|
|
869
|
+
interface Props$A {
|
|
781
870
|
as?: React.ElementType;
|
|
782
871
|
title?: React.ReactNode;
|
|
783
872
|
subtitle?: React.ReactNode;
|
|
@@ -803,11 +892,11 @@ interface Props$z {
|
|
|
803
892
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
804
893
|
};
|
|
805
894
|
}
|
|
806
|
-
type NativeAttrs$
|
|
807
|
-
type CardHeaderProps = Props$
|
|
808
|
-
declare const CardHeader: react.ForwardRefExoticComponent<Props$
|
|
895
|
+
type NativeAttrs$C = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$A>;
|
|
896
|
+
type CardHeaderProps = Props$A & NativeAttrs$C;
|
|
897
|
+
declare const CardHeader: react.ForwardRefExoticComponent<Props$A & NativeAttrs$C & react.RefAttributes<HTMLDivElement>>;
|
|
809
898
|
|
|
810
|
-
interface Props$
|
|
899
|
+
interface Props$z {
|
|
811
900
|
as?: React.ElementType;
|
|
812
901
|
/**
|
|
813
902
|
* @deprecated Use `underlined` instead
|
|
@@ -815,9 +904,9 @@ interface Props$y {
|
|
|
815
904
|
bordered?: boolean;
|
|
816
905
|
underlined?: boolean;
|
|
817
906
|
}
|
|
818
|
-
type NativeAttrs$
|
|
819
|
-
type CardFooterProps = Props$
|
|
820
|
-
declare const CardFooter: react.ForwardRefExoticComponent<Props$
|
|
907
|
+
type NativeAttrs$B = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$z>;
|
|
908
|
+
type CardFooterProps = Props$z & NativeAttrs$B;
|
|
909
|
+
declare const CardFooter: react.ForwardRefExoticComponent<Props$z & NativeAttrs$B & react.RefAttributes<HTMLDivElement>>;
|
|
821
910
|
|
|
822
911
|
type CardMediaProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
823
912
|
topLeftContent?: React.ReactNode;
|
|
@@ -828,28 +917,28 @@ declare const CardMedia: react.ForwardRefExoticComponent<react.HTMLAttributes<HT
|
|
|
828
917
|
topRightContent?: React.ReactNode;
|
|
829
918
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
830
919
|
|
|
831
|
-
interface Props$
|
|
920
|
+
interface Props$y {
|
|
832
921
|
as?: React.ElementType;
|
|
833
922
|
centered?: boolean;
|
|
834
923
|
css?: BoxCSS;
|
|
835
924
|
}
|
|
836
|
-
type NativeAttrs$
|
|
837
|
-
type CardTitleProps = Props$
|
|
838
|
-
declare const CardTitle: react.ForwardRefExoticComponent<Props$
|
|
925
|
+
type NativeAttrs$A = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$y>;
|
|
926
|
+
type CardTitleProps = Props$y & NativeAttrs$A;
|
|
927
|
+
declare const CardTitle: react.ForwardRefExoticComponent<Props$y & NativeAttrs$A & react.RefAttributes<HTMLDivElement>>;
|
|
839
928
|
|
|
840
|
-
interface Props$
|
|
929
|
+
interface Props$x {
|
|
841
930
|
as?: React.ElementType;
|
|
842
931
|
css?: BoxCSS;
|
|
843
932
|
}
|
|
844
|
-
type NativeAttrs$
|
|
845
|
-
type CardSubtitleProps = Props$
|
|
846
|
-
declare const CardSubtitle: react.ForwardRefExoticComponent<Props$
|
|
933
|
+
type NativeAttrs$z = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$x>;
|
|
934
|
+
type CardSubtitleProps = Props$x & NativeAttrs$z;
|
|
935
|
+
declare const CardSubtitle: react.ForwardRefExoticComponent<Props$x & NativeAttrs$z & react.RefAttributes<HTMLDivElement>>;
|
|
847
936
|
|
|
848
937
|
type ChipVariant = 'filled' | 'outlined' | 'flat' | 'text' | 'plain' | 'bordered';
|
|
849
938
|
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
850
939
|
type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
851
940
|
|
|
852
|
-
interface Props$
|
|
941
|
+
interface Props$w {
|
|
853
942
|
/**
|
|
854
943
|
* The HTML element type or React component to render as the chip.
|
|
855
944
|
*/
|
|
@@ -887,9 +976,9 @@ interface Props$v {
|
|
|
887
976
|
};
|
|
888
977
|
onClose?: () => void;
|
|
889
978
|
}
|
|
890
|
-
type NativeAttrs$
|
|
891
|
-
type ChipProps = Props$
|
|
892
|
-
declare const Chip: react.ForwardRefExoticComponent<Props$
|
|
979
|
+
type NativeAttrs$y = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$w>;
|
|
980
|
+
type ChipProps = Props$w & NativeAttrs$y;
|
|
981
|
+
declare const Chip: react.ForwardRefExoticComponent<Props$w & NativeAttrs$y & react.RefAttributes<HTMLDivElement>>;
|
|
893
982
|
|
|
894
983
|
interface CollapseProps {
|
|
895
984
|
children: React.ReactNode;
|
|
@@ -934,7 +1023,7 @@ interface DrawerClose {
|
|
|
934
1023
|
}
|
|
935
1024
|
type DrawerBackdrop = BackdropVariant;
|
|
936
1025
|
|
|
937
|
-
interface Props$
|
|
1026
|
+
interface Props$v {
|
|
938
1027
|
isOpen: boolean;
|
|
939
1028
|
size?: DrawerSize;
|
|
940
1029
|
backdrop?: DrawerBackdrop;
|
|
@@ -951,11 +1040,11 @@ interface Props$u {
|
|
|
951
1040
|
onClose: () => void;
|
|
952
1041
|
onAfterClose?: () => void;
|
|
953
1042
|
}
|
|
954
|
-
type NativeAttrs$
|
|
955
|
-
type DrawerProps = Props$
|
|
956
|
-
declare const Drawer: react.ForwardRefExoticComponent<Props$
|
|
1043
|
+
type NativeAttrs$x = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$v>;
|
|
1044
|
+
type DrawerProps = Props$v & NativeAttrs$x;
|
|
1045
|
+
declare const Drawer: react.ForwardRefExoticComponent<Props$v & NativeAttrs$x & react.RefAttributes<HTMLDivElement>>;
|
|
957
1046
|
|
|
958
|
-
interface Props$
|
|
1047
|
+
interface Props$u {
|
|
959
1048
|
as?: React.ElementType;
|
|
960
1049
|
title?: React.ReactNode;
|
|
961
1050
|
subtitle?: React.ReactNode;
|
|
@@ -971,20 +1060,20 @@ interface Props$t {
|
|
|
971
1060
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
972
1061
|
};
|
|
973
1062
|
}
|
|
974
|
-
type NativeAttrs$
|
|
975
|
-
type DrawerHeaderProps = Props$
|
|
976
|
-
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$
|
|
1063
|
+
type NativeAttrs$w = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$u>;
|
|
1064
|
+
type DrawerHeaderProps = Props$u & NativeAttrs$w;
|
|
1065
|
+
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$u & NativeAttrs$w & react.RefAttributes<HTMLDivElement>>;
|
|
977
1066
|
|
|
978
1067
|
type DrawerBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
979
1068
|
declare const DrawerBody: react.ForwardRefExoticComponent<DrawerBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
980
1069
|
|
|
981
|
-
interface Props$
|
|
1070
|
+
interface Props$t {
|
|
982
1071
|
as?: React.ElementType;
|
|
983
1072
|
bordered?: boolean;
|
|
984
1073
|
}
|
|
985
|
-
type NativeAttrs$
|
|
986
|
-
type DrawerFooterProps = Props$
|
|
987
|
-
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$
|
|
1074
|
+
type NativeAttrs$v = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$t>;
|
|
1075
|
+
type DrawerFooterProps = Props$t & NativeAttrs$v;
|
|
1076
|
+
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$t & NativeAttrs$v & react.RefAttributes<HTMLDivElement>>;
|
|
988
1077
|
|
|
989
1078
|
interface DrawerContextValue {
|
|
990
1079
|
isOpen: boolean;
|
|
@@ -999,16 +1088,27 @@ interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
999
1088
|
declare const Field: react.ForwardRefExoticComponent<FieldProps & react.RefAttributes<HTMLDivElement>>;
|
|
1000
1089
|
|
|
1001
1090
|
type IconColor = 'inherit' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
1002
|
-
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1091
|
+
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
1003
1092
|
|
|
1004
1093
|
interface IconProps {
|
|
1005
1094
|
children: React.ReactNode;
|
|
1006
1095
|
color?: IconColor;
|
|
1007
1096
|
size?: IconSize;
|
|
1097
|
+
className?: string;
|
|
1098
|
+
style?: React.CSSProperties;
|
|
1099
|
+
cssVars?: {
|
|
1100
|
+
color?: string;
|
|
1101
|
+
fontSize?: number | string;
|
|
1102
|
+
};
|
|
1103
|
+
cssUtils?: {
|
|
1104
|
+
opacity?: number;
|
|
1105
|
+
pointer?: boolean;
|
|
1106
|
+
hoverOpacity?: number;
|
|
1107
|
+
};
|
|
1008
1108
|
}
|
|
1009
1109
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<unknown>>;
|
|
1010
1110
|
|
|
1011
|
-
interface Props$
|
|
1111
|
+
interface Props$s {
|
|
1012
1112
|
/**
|
|
1013
1113
|
* The HTML element type or React component to render as the menu item.
|
|
1014
1114
|
*/
|
|
@@ -1034,9 +1134,9 @@ interface Props$r {
|
|
|
1034
1134
|
*/
|
|
1035
1135
|
disabled?: boolean;
|
|
1036
1136
|
}
|
|
1037
|
-
type NativeAttrs$
|
|
1038
|
-
type MenuItemProps = Props$
|
|
1039
|
-
declare const MenuItem: react.ForwardRefExoticComponent<Props$
|
|
1137
|
+
type NativeAttrs$u = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$s | 'items'>;
|
|
1138
|
+
type MenuItemProps = Props$s & NativeAttrs$u;
|
|
1139
|
+
declare const MenuItem: react.ForwardRefExoticComponent<Props$s & NativeAttrs$u & react.RefAttributes<HTMLDivElement>>;
|
|
1040
1140
|
|
|
1041
1141
|
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
1042
1142
|
items?: MenuItemType[];
|
|
@@ -1060,7 +1160,7 @@ type MenuItemType = (MenuGroupProps & {
|
|
|
1060
1160
|
}) | (MenuItemProps & {
|
|
1061
1161
|
type?: 'item';
|
|
1062
1162
|
});
|
|
1063
|
-
interface Props$
|
|
1163
|
+
interface Props$r {
|
|
1064
1164
|
/**
|
|
1065
1165
|
* The currently selected value of the menu.
|
|
1066
1166
|
*/
|
|
@@ -1096,8 +1196,8 @@ interface Props$q {
|
|
|
1096
1196
|
*/
|
|
1097
1197
|
onItemSelect?: (props: MenuItemProps) => void;
|
|
1098
1198
|
}
|
|
1099
|
-
type NativeAttrs$
|
|
1100
|
-
type MenuProps = Props$
|
|
1199
|
+
type NativeAttrs$t = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$r | 'items'>;
|
|
1200
|
+
type MenuProps = Props$r & NativeAttrs$t & {
|
|
1101
1201
|
items?: MenuItemType[];
|
|
1102
1202
|
};
|
|
1103
1203
|
declare const Menu: React.FC<MenuProps>;
|
|
@@ -1134,6 +1234,7 @@ declare const Popover: React.FC<PopoverProps>;
|
|
|
1134
1234
|
|
|
1135
1235
|
interface PopoverContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1136
1236
|
sectionValue?: string;
|
|
1237
|
+
excludeTargets?: string[];
|
|
1137
1238
|
}
|
|
1138
1239
|
declare const PopoverContent: react.ForwardRefExoticComponent<PopoverContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
1139
1240
|
|
|
@@ -1172,7 +1273,7 @@ declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaProps & reac
|
|
|
1172
1273
|
|
|
1173
1274
|
type SelectMultiple = false;
|
|
1174
1275
|
type SelectClearable = false;
|
|
1175
|
-
type NativeAttrs$
|
|
1276
|
+
type NativeAttrs$s<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$q<TItem, TKeyField>>;
|
|
1176
1277
|
type BaseProps<TItem extends Record<string, any>> = {
|
|
1177
1278
|
textField?: keyof TItem;
|
|
1178
1279
|
placeholder?: string;
|
|
@@ -1190,8 +1291,8 @@ type BaseProps<TItem extends Record<string, any>> = {
|
|
|
1190
1291
|
renderItem?: (item: TItem, props: ListItemProps) => React.ReactNode;
|
|
1191
1292
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
1192
1293
|
};
|
|
1193
|
-
type Props$
|
|
1194
|
-
type SelectProps<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key', TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = Props$
|
|
1294
|
+
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>;
|
|
1295
|
+
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>;
|
|
1195
1296
|
|
|
1196
1297
|
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;
|
|
1197
1298
|
|
|
@@ -1215,20 +1316,21 @@ type SwitchSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
1215
1316
|
type SwitchLabelPlacement = 'before' | 'after';
|
|
1216
1317
|
type SwitchColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'dark' | 'light';
|
|
1217
1318
|
|
|
1218
|
-
interface Props$
|
|
1319
|
+
interface Props$p {
|
|
1219
1320
|
size?: SwitchSize;
|
|
1220
1321
|
labelPlacement?: SwitchLabelPlacement;
|
|
1221
1322
|
color?: SwitchColor;
|
|
1222
1323
|
}
|
|
1223
|
-
type NativeAttrs$
|
|
1224
|
-
type SwitchProps = Props$
|
|
1225
|
-
declare const Switch: react.ForwardRefExoticComponent<Props$
|
|
1324
|
+
type NativeAttrs$r = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$p | 'value' | 'defaultValue'>;
|
|
1325
|
+
type SwitchProps = Props$p & NativeAttrs$r;
|
|
1326
|
+
declare const Switch: react.ForwardRefExoticComponent<Props$p & NativeAttrs$r & react.RefAttributes<HTMLInputElement>>;
|
|
1226
1327
|
|
|
1227
1328
|
type TabsVariant = 'underlined' | 'outlined' | 'pills';
|
|
1228
1329
|
type TabValue = string | number | symbol;
|
|
1229
1330
|
type TabsAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1331
|
+
type TabsSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1230
1332
|
|
|
1231
|
-
interface Props$
|
|
1333
|
+
interface Props$o<TTabValue extends TabValue = TabValue> {
|
|
1232
1334
|
/**
|
|
1233
1335
|
* The HTML element type or React component to render as the tab.
|
|
1234
1336
|
*/
|
|
@@ -1254,11 +1356,11 @@ interface Props$n<TTabValue extends TabValue = TabValue> {
|
|
|
1254
1356
|
*/
|
|
1255
1357
|
endContent?: React.ReactNode;
|
|
1256
1358
|
}
|
|
1257
|
-
type NativeAttrs$
|
|
1258
|
-
type TabProps<TTabValue extends TabValue = TabValue> = Props$
|
|
1259
|
-
declare const Tab: react.ForwardRefExoticComponent<Props$
|
|
1359
|
+
type NativeAttrs$q = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$o>;
|
|
1360
|
+
type TabProps<TTabValue extends TabValue = TabValue> = Props$o<TTabValue> & NativeAttrs$q;
|
|
1361
|
+
declare const Tab: react.ForwardRefExoticComponent<Props$o<TabValue> & NativeAttrs$q & react.RefAttributes<HTMLDivElement>>;
|
|
1260
1362
|
|
|
1261
|
-
interface Props$
|
|
1363
|
+
interface Props$n<TTabValue extends TabValue = TabValue> {
|
|
1262
1364
|
/**
|
|
1263
1365
|
* The currently selected value of the tabs.
|
|
1264
1366
|
*/
|
|
@@ -1272,6 +1374,10 @@ interface Props$m<TTabValue extends TabValue = TabValue> {
|
|
|
1272
1374
|
* The alignment of the tabs.
|
|
1273
1375
|
*/
|
|
1274
1376
|
alignment?: TabsAlignment;
|
|
1377
|
+
/**
|
|
1378
|
+
* The size of the tabs.
|
|
1379
|
+
*/
|
|
1380
|
+
size?: TabsSize;
|
|
1275
1381
|
/**
|
|
1276
1382
|
* A callback function called when the selected tab value changes.
|
|
1277
1383
|
*/
|
|
@@ -1281,11 +1387,13 @@ interface Props$m<TTabValue extends TabValue = TabValue> {
|
|
|
1281
1387
|
*/
|
|
1282
1388
|
onClose?: (value: TTabValue) => void;
|
|
1283
1389
|
}
|
|
1284
|
-
type NativeAttrs$
|
|
1285
|
-
type TabsProps<TTabValue extends TabValue = TabValue> = Props$
|
|
1286
|
-
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$
|
|
1390
|
+
type NativeAttrs$p = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$n>;
|
|
1391
|
+
type TabsProps<TTabValue extends TabValue = TabValue> = Props$n<TTabValue> & NativeAttrs$p;
|
|
1392
|
+
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$n<TTabValue> & NativeAttrs$p & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1287
1393
|
|
|
1288
|
-
interface Props$
|
|
1394
|
+
interface Props$m {
|
|
1395
|
+
value?: string;
|
|
1396
|
+
defaultValue?: string;
|
|
1289
1397
|
inputRef?: React.RefObject<HTMLInputElement>;
|
|
1290
1398
|
variant?: InputVariant;
|
|
1291
1399
|
color?: InputColor;
|
|
@@ -1293,14 +1401,16 @@ interface Props$l {
|
|
|
1293
1401
|
startContent?: React.ReactNode;
|
|
1294
1402
|
endContent?: React.ReactNode;
|
|
1295
1403
|
css?: BoxCSS;
|
|
1404
|
+
rules?: StringRules;
|
|
1405
|
+
autoFormatRules?: boolean;
|
|
1296
1406
|
}
|
|
1297
|
-
type NativeAttrs$
|
|
1298
|
-
type TextInputProps = Props$
|
|
1299
|
-
declare const TextInput: react.ForwardRefExoticComponent<Props$
|
|
1407
|
+
type NativeAttrs$o = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$m>;
|
|
1408
|
+
type TextInputProps = Props$m & NativeAttrs$o;
|
|
1409
|
+
declare const TextInput: react.ForwardRefExoticComponent<Props$m & NativeAttrs$o & react.RefAttributes<HTMLInputElement>>;
|
|
1300
1410
|
|
|
1301
1411
|
type ToolbarSize = 'auto' | 'sm' | 'md' | 'lg';
|
|
1302
1412
|
|
|
1303
|
-
interface Props$
|
|
1413
|
+
interface Props$l {
|
|
1304
1414
|
size?: ToolbarSize;
|
|
1305
1415
|
title?: React.ReactNode;
|
|
1306
1416
|
subtitle?: React.ReactNode;
|
|
@@ -1322,8 +1432,8 @@ interface Props$k {
|
|
|
1322
1432
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1323
1433
|
};
|
|
1324
1434
|
}
|
|
1325
|
-
type NativeAttrs$
|
|
1326
|
-
type ToolbarProps = Props$
|
|
1435
|
+
type NativeAttrs$n = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$l>;
|
|
1436
|
+
type ToolbarProps = Props$l & NativeAttrs$n;
|
|
1327
1437
|
declare const Toolbar: React.FC<ToolbarProps>;
|
|
1328
1438
|
|
|
1329
1439
|
interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -1338,22 +1448,22 @@ interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
1338
1448
|
}
|
|
1339
1449
|
declare const Transition: React.FC<TransitionProps>;
|
|
1340
1450
|
|
|
1341
|
-
interface Props$
|
|
1451
|
+
interface Props$k {
|
|
1342
1452
|
/**
|
|
1343
1453
|
* The HTML element type or React component to render as the tab.
|
|
1344
1454
|
*/
|
|
1345
1455
|
as?: React.ElementType;
|
|
1346
1456
|
width?: number;
|
|
1347
1457
|
}
|
|
1348
|
-
type NativeAttrs$
|
|
1349
|
-
type SwipeItemProps = Props$
|
|
1350
|
-
declare const SwipeItem: react.ForwardRefExoticComponent<Props$
|
|
1458
|
+
type NativeAttrs$m = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$k>;
|
|
1459
|
+
type SwipeItemProps = Props$k & NativeAttrs$m;
|
|
1460
|
+
declare const SwipeItem: react.ForwardRefExoticComponent<Props$k & NativeAttrs$m & {
|
|
1351
1461
|
children?: react.ReactNode | undefined;
|
|
1352
1462
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1353
1463
|
|
|
1354
1464
|
type SwiperAlignmet = 'start' | 'center' | 'end';
|
|
1355
1465
|
|
|
1356
|
-
interface Props$
|
|
1466
|
+
interface Props$j {
|
|
1357
1467
|
gap?: number;
|
|
1358
1468
|
alignment?: SwiperAlignmet;
|
|
1359
1469
|
autoHide?: boolean;
|
|
@@ -1363,8 +1473,8 @@ interface Props$i {
|
|
|
1363
1473
|
arrowRightButton?: ButtonProps;
|
|
1364
1474
|
};
|
|
1365
1475
|
}
|
|
1366
|
-
type NativeAttrs$
|
|
1367
|
-
type SwipeProps = Props$
|
|
1476
|
+
type NativeAttrs$l = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$j>;
|
|
1477
|
+
type SwipeProps = Props$j & NativeAttrs$l;
|
|
1368
1478
|
declare const Swipe: React.FC<SwipeProps>;
|
|
1369
1479
|
|
|
1370
1480
|
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
@@ -1374,9 +1484,9 @@ interface ModalClose {
|
|
|
1374
1484
|
position?: 'start' | 'end';
|
|
1375
1485
|
}
|
|
1376
1486
|
type ModalScrollBehavior = 'inside' | 'outside';
|
|
1377
|
-
type ModalBackdrop = BackdropVariant;
|
|
1487
|
+
type ModalBackdrop = BackdropVariant | boolean;
|
|
1378
1488
|
|
|
1379
|
-
interface Props$
|
|
1489
|
+
interface Props$i {
|
|
1380
1490
|
isOpen: boolean;
|
|
1381
1491
|
size?: ModalSize;
|
|
1382
1492
|
backdrop?: ModalBackdrop;
|
|
@@ -1388,18 +1498,23 @@ interface Props$h {
|
|
|
1388
1498
|
slotProps?: {
|
|
1389
1499
|
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
1390
1500
|
};
|
|
1501
|
+
content?: boolean;
|
|
1391
1502
|
onClose: () => void;
|
|
1392
1503
|
onAfterClose?: () => void;
|
|
1393
1504
|
}
|
|
1394
|
-
type NativeAttrs$
|
|
1395
|
-
type ModalProps = Props$
|
|
1396
|
-
declare const Modal: react.ForwardRefExoticComponent<Props$
|
|
1505
|
+
type NativeAttrs$k = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$i>;
|
|
1506
|
+
type ModalProps = Props$i & NativeAttrs$k;
|
|
1507
|
+
declare const Modal: react.ForwardRefExoticComponent<Props$i & NativeAttrs$k & react.RefAttributes<HTMLDivElement>>;
|
|
1397
1508
|
|
|
1398
1509
|
type ModalBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
1399
1510
|
declare const ModalBody: React.FC<ModalBodyProps>;
|
|
1400
1511
|
|
|
1401
1512
|
interface ModalContextValue {
|
|
1513
|
+
nodeRef: React.MutableRefObject<null>;
|
|
1402
1514
|
isOpen: boolean;
|
|
1515
|
+
size: ModalSize;
|
|
1516
|
+
placement: ModalPlacement;
|
|
1517
|
+
fullscreen: boolean;
|
|
1403
1518
|
scrollBehavior: ModalScrollBehavior;
|
|
1404
1519
|
scrollArea: boolean;
|
|
1405
1520
|
closable: boolean;
|
|
@@ -1408,15 +1523,15 @@ interface ModalContextValue {
|
|
|
1408
1523
|
}
|
|
1409
1524
|
declare function useModal(): ModalContextValue;
|
|
1410
1525
|
|
|
1411
|
-
interface Props$
|
|
1526
|
+
interface Props$h {
|
|
1412
1527
|
as?: React.ElementType;
|
|
1413
1528
|
bordered?: boolean;
|
|
1414
1529
|
}
|
|
1415
|
-
type NativeAttrs$
|
|
1416
|
-
type ModalFooterProps = Props$
|
|
1417
|
-
declare const ModalFooter: react.ForwardRefExoticComponent<Props$
|
|
1530
|
+
type NativeAttrs$j = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$h>;
|
|
1531
|
+
type ModalFooterProps = Props$h & NativeAttrs$j;
|
|
1532
|
+
declare const ModalFooter: react.ForwardRefExoticComponent<Props$h & NativeAttrs$j & react.RefAttributes<HTMLDivElement>>;
|
|
1418
1533
|
|
|
1419
|
-
interface Props$
|
|
1534
|
+
interface Props$g {
|
|
1420
1535
|
as?: React.ElementType;
|
|
1421
1536
|
title?: React.ReactNode;
|
|
1422
1537
|
subtitle?: React.ReactNode;
|
|
@@ -1432,9 +1547,12 @@ interface Props$f {
|
|
|
1432
1547
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1433
1548
|
};
|
|
1434
1549
|
}
|
|
1435
|
-
type NativeAttrs$
|
|
1436
|
-
type ModalHeaderProps = Props$
|
|
1437
|
-
declare const ModalHeader: react.ForwardRefExoticComponent<Props$
|
|
1550
|
+
type NativeAttrs$i = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$g>;
|
|
1551
|
+
type ModalHeaderProps = Props$g & NativeAttrs$i;
|
|
1552
|
+
declare const ModalHeader: react.ForwardRefExoticComponent<Props$g & NativeAttrs$i & react.RefAttributes<HTMLDivElement>>;
|
|
1553
|
+
|
|
1554
|
+
type ModalContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
1555
|
+
declare const ModalContent: react.ForwardRefExoticComponent<ModalContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
1438
1556
|
|
|
1439
1557
|
type CheckboxValue = string | number | symbol;
|
|
1440
1558
|
type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -1443,18 +1561,18 @@ type CheckboxGroupDirection = 'row' | 'col';
|
|
|
1443
1561
|
type CheckboxGroupAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1444
1562
|
type CheckboxColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'dark' | 'light';
|
|
1445
1563
|
|
|
1446
|
-
interface Props$
|
|
1564
|
+
interface Props$f<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1447
1565
|
value?: TCheckboxValue;
|
|
1448
1566
|
size?: CheckboxSize;
|
|
1449
1567
|
labelPlacement?: CheckboxLabelPlacement;
|
|
1450
1568
|
color?: CheckboxColor;
|
|
1451
1569
|
indeterminate?: boolean;
|
|
1452
1570
|
}
|
|
1453
|
-
type NativeAttrs$
|
|
1454
|
-
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$
|
|
1455
|
-
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$
|
|
1571
|
+
type NativeAttrs$h = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$f | 'defaultValue'>;
|
|
1572
|
+
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$f<TCheckboxValue> & NativeAttrs$h;
|
|
1573
|
+
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$f<TCheckboxValue> & NativeAttrs$h & react.RefAttributes<HTMLInputElement>) => ReturnType<React.FunctionComponent>;
|
|
1456
1574
|
|
|
1457
|
-
interface Props$
|
|
1575
|
+
interface Props$e<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1458
1576
|
value?: TCheckboxValue[];
|
|
1459
1577
|
defaultValue?: TCheckboxValue[];
|
|
1460
1578
|
disabled?: boolean;
|
|
@@ -1466,9 +1584,9 @@ interface Props$d<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
|
1466
1584
|
color?: CheckboxColor;
|
|
1467
1585
|
onChange?: (value: TCheckboxValue[]) => void;
|
|
1468
1586
|
}
|
|
1469
|
-
type NativeAttrs$
|
|
1470
|
-
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$
|
|
1471
|
-
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$
|
|
1587
|
+
type NativeAttrs$g = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$e>;
|
|
1588
|
+
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$e<TCheckboxValue> & NativeAttrs$g;
|
|
1589
|
+
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$e<TCheckboxValue> & NativeAttrs$g & react.RefAttributes<HTMLTableElement>) => ReturnType<React.FunctionComponent>;
|
|
1472
1590
|
|
|
1473
1591
|
interface CheckboxGroupContextValue<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1474
1592
|
value: TCheckboxValue[];
|
|
@@ -1490,7 +1608,7 @@ type RadioGroupDirection = 'row' | 'col';
|
|
|
1490
1608
|
type RadioGroupAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1491
1609
|
type RadioColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'dark' | 'light';
|
|
1492
1610
|
|
|
1493
|
-
interface Props$
|
|
1611
|
+
interface Props$d<TRadioValue extends RadioValue = RadioValue> {
|
|
1494
1612
|
value?: TRadioValue;
|
|
1495
1613
|
disabled?: boolean;
|
|
1496
1614
|
readOnly?: boolean;
|
|
@@ -1498,11 +1616,11 @@ interface Props$c<TRadioValue extends RadioValue = RadioValue> {
|
|
|
1498
1616
|
labelPlacement?: RadioLabelPlacement;
|
|
1499
1617
|
colorScheme?: ColorScheme;
|
|
1500
1618
|
}
|
|
1501
|
-
type NativeAttrs$
|
|
1502
|
-
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$
|
|
1503
|
-
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$
|
|
1619
|
+
type NativeAttrs$f = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$d | 'defaultValue' | 'checked' | 'defaultChecked' | 'onChange'>;
|
|
1620
|
+
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$d<TRadioValue> & NativeAttrs$f;
|
|
1621
|
+
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$d<TRadioValue> & NativeAttrs$f & react.RefAttributes<HTMLInputElement>) => ReturnType<React.FunctionComponent>;
|
|
1504
1622
|
|
|
1505
|
-
interface Props$
|
|
1623
|
+
interface Props$c<TRadioValue extends RadioValue = RadioValue> {
|
|
1506
1624
|
name?: string;
|
|
1507
1625
|
value?: TRadioValue;
|
|
1508
1626
|
defaultValue?: TRadioValue;
|
|
@@ -1515,9 +1633,9 @@ interface Props$b<TRadioValue extends RadioValue = RadioValue> {
|
|
|
1515
1633
|
color?: RadioColor;
|
|
1516
1634
|
onChange?: (value: TRadioValue) => void;
|
|
1517
1635
|
}
|
|
1518
|
-
type NativeAttrs$
|
|
1519
|
-
type RadioGroupProps<TRadioValue extends RadioValue = RadioValue> = Props$
|
|
1520
|
-
declare const RadioGroup: <TRadioValue extends RadioValue = RadioValue>(props: Props$
|
|
1636
|
+
type NativeAttrs$e = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$c>;
|
|
1637
|
+
type RadioGroupProps<TRadioValue extends RadioValue = RadioValue> = Props$c<TRadioValue> & NativeAttrs$e;
|
|
1638
|
+
declare const RadioGroup: <TRadioValue extends RadioValue = RadioValue>(props: Props$c<TRadioValue> & NativeAttrs$e & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1521
1639
|
|
|
1522
1640
|
interface RadioGroupContextValue {
|
|
1523
1641
|
name: string;
|
|
@@ -1535,16 +1653,16 @@ declare const useRadioGroup: () => RadioGroupContextValue;
|
|
|
1535
1653
|
|
|
1536
1654
|
type NavRailPlacement = 'left' | 'right';
|
|
1537
1655
|
|
|
1538
|
-
interface Props$
|
|
1656
|
+
interface Props$b {
|
|
1539
1657
|
startContent?: React.ReactNode;
|
|
1540
1658
|
endContent?: React.ReactNode;
|
|
1541
1659
|
placement?: NavRailPlacement;
|
|
1542
1660
|
}
|
|
1543
|
-
type NativeAttrs$
|
|
1544
|
-
type NavRailProps = Props$
|
|
1661
|
+
type NativeAttrs$d = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$b>;
|
|
1662
|
+
type NavRailProps = Props$b & NativeAttrs$d;
|
|
1545
1663
|
declare const NavRail: React.FC<NavRailProps>;
|
|
1546
1664
|
|
|
1547
|
-
interface Props$
|
|
1665
|
+
interface Props$a {
|
|
1548
1666
|
as?: React.ElementType;
|
|
1549
1667
|
icon?: React.ReactNode;
|
|
1550
1668
|
media?: React.ReactNode;
|
|
@@ -1554,11 +1672,11 @@ interface Props$9 {
|
|
|
1554
1672
|
label?: React.HTMLAttributes<HTMLDivElement>;
|
|
1555
1673
|
};
|
|
1556
1674
|
}
|
|
1557
|
-
type NativeAttrs$
|
|
1558
|
-
type NavRailItemProps = Props$
|
|
1559
|
-
declare const NavRailItem: react.ForwardRefExoticComponent<Props$
|
|
1675
|
+
type NativeAttrs$c = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$a>;
|
|
1676
|
+
type NavRailItemProps = Props$a & NativeAttrs$c;
|
|
1677
|
+
declare const NavRailItem: react.ForwardRefExoticComponent<Props$a & NativeAttrs$c & react.RefAttributes<HTMLDivElement>>;
|
|
1560
1678
|
|
|
1561
|
-
type Props$
|
|
1679
|
+
type Props$9 = {
|
|
1562
1680
|
as?: React.ElementType;
|
|
1563
1681
|
label: React.ReactNode;
|
|
1564
1682
|
span?: Responsive<number>;
|
|
@@ -1574,20 +1692,20 @@ type Props$8 = {
|
|
|
1574
1692
|
mq: ContainerMediaQuery;
|
|
1575
1693
|
}) => React.ReactNode;
|
|
1576
1694
|
} & FormatOptions;
|
|
1577
|
-
type NativeAttrs$
|
|
1578
|
-
type DescriptionProps = Props$
|
|
1695
|
+
type NativeAttrs$b = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$9 | 'children'>;
|
|
1696
|
+
type DescriptionProps = Props$9 & NativeAttrs$b;
|
|
1579
1697
|
declare const Description: react.ForwardRefExoticComponent<DescriptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
1580
1698
|
|
|
1581
|
-
type NativeAttrs$
|
|
1582
|
-
type DescriptionEmptyProps = NativeAttrs$
|
|
1583
|
-
declare const DescriptionEmpty: react.ForwardRefExoticComponent<NativeAttrs$
|
|
1699
|
+
type NativeAttrs$a = React.HTMLAttributes<HTMLDivElement>;
|
|
1700
|
+
type DescriptionEmptyProps = NativeAttrs$a;
|
|
1701
|
+
declare const DescriptionEmpty: react.ForwardRefExoticComponent<NativeAttrs$a & react.RefAttributes<HTMLDivElement>>;
|
|
1584
1702
|
|
|
1585
1703
|
type DescriptionsLayout = 'row' | 'col';
|
|
1586
1704
|
type DescriptionsSize = 'sm' | 'md' | 'lg';
|
|
1587
1705
|
type DescriptionsAlign = React.CSSProperties['textAlign'];
|
|
1588
1706
|
type DescriptionsMode = 'container' | 'screen' | 'css';
|
|
1589
1707
|
|
|
1590
|
-
interface Props$
|
|
1708
|
+
interface Props$8 {
|
|
1591
1709
|
as?: React.ElementType;
|
|
1592
1710
|
mode?: DescriptionsMode;
|
|
1593
1711
|
items?: DescriptionProps[];
|
|
@@ -1598,9 +1716,9 @@ interface Props$7 {
|
|
|
1598
1716
|
labelAlign?: Responsive<DescriptionsAlign>;
|
|
1599
1717
|
contentAlign?: Responsive<DescriptionsAlign>;
|
|
1600
1718
|
}
|
|
1601
|
-
type NativeAttrs$
|
|
1602
|
-
type DescriptionsProps = Props$
|
|
1603
|
-
declare const Descriptions: react.ForwardRefExoticComponent<Props$
|
|
1719
|
+
type NativeAttrs$9 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$8 | 'children'>;
|
|
1720
|
+
type DescriptionsProps = Props$8 & NativeAttrs$9;
|
|
1721
|
+
declare const Descriptions: react.ForwardRefExoticComponent<Props$8 & NativeAttrs$9 & react.RefAttributes<HTMLDivElement>>;
|
|
1604
1722
|
|
|
1605
1723
|
interface DescriptionsContextValue {
|
|
1606
1724
|
mq: ContainerMediaQuery;
|
|
@@ -1613,9 +1731,9 @@ interface DescriptionsContextValue {
|
|
|
1613
1731
|
declare const DescriptionsContext: react.Context<DescriptionsContextValue | null>;
|
|
1614
1732
|
declare const useDescriptionsContext: () => DescriptionsContextValue;
|
|
1615
1733
|
|
|
1616
|
-
type NativeAttrs$
|
|
1617
|
-
type DescriptionTextProps = NativeAttrs$
|
|
1618
|
-
declare const DescriptionText: react.ForwardRefExoticComponent<NativeAttrs$
|
|
1734
|
+
type NativeAttrs$8 = React.HTMLAttributes<HTMLDivElement>;
|
|
1735
|
+
type DescriptionTextProps = NativeAttrs$8;
|
|
1736
|
+
declare const DescriptionText: react.ForwardRefExoticComponent<NativeAttrs$8 & react.RefAttributes<HTMLDivElement>>;
|
|
1619
1737
|
|
|
1620
1738
|
declare function reactNodeToText(node: React.ReactNode): string;
|
|
1621
1739
|
|
|
@@ -1635,14 +1753,14 @@ interface ResponsiveProps$2 {
|
|
|
1635
1753
|
justifyContent?: Responsive<React.CSSProperties['justifyContent']>;
|
|
1636
1754
|
alignItems?: Responsive<React.CSSProperties['alignItems']>;
|
|
1637
1755
|
}
|
|
1638
|
-
type Props$
|
|
1756
|
+
type Props$7 = {
|
|
1639
1757
|
as?: React.ElementType;
|
|
1640
1758
|
} & ResponsiveProps$2;
|
|
1641
|
-
type NativeAttrs$
|
|
1642
|
-
type GridItemProps = Props$
|
|
1759
|
+
type NativeAttrs$7 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$7>;
|
|
1760
|
+
type GridItemProps = Props$7 & NativeAttrs$7;
|
|
1643
1761
|
declare const GridItem: react.ForwardRefExoticComponent<{
|
|
1644
1762
|
as?: React.ElementType;
|
|
1645
|
-
} & ResponsiveProps$2 & NativeAttrs$
|
|
1763
|
+
} & ResponsiveProps$2 & NativeAttrs$7 & react.RefAttributes<HTMLDivElement>>;
|
|
1646
1764
|
|
|
1647
1765
|
interface ResponsiveProps$1 {
|
|
1648
1766
|
cols?: Responsive<number>;
|
|
@@ -1660,14 +1778,14 @@ interface ResponsiveProps$1 {
|
|
|
1660
1778
|
justifyContent?: Responsive<React.CSSProperties['justifyContent']>;
|
|
1661
1779
|
alignItems?: Responsive<React.CSSProperties['alignItems']>;
|
|
1662
1780
|
}
|
|
1663
|
-
type Props$
|
|
1781
|
+
type Props$6 = {
|
|
1664
1782
|
items?: GridItemProps[];
|
|
1665
1783
|
} & ResponsiveProps$1;
|
|
1666
|
-
type NativeAttrs$
|
|
1667
|
-
type GridSubProps = Props$
|
|
1784
|
+
type NativeAttrs$6 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$6>;
|
|
1785
|
+
type GridSubProps = Props$6 & NativeAttrs$6;
|
|
1668
1786
|
declare const GridSub: react.ForwardRefExoticComponent<{
|
|
1669
1787
|
items?: GridItemProps[];
|
|
1670
|
-
} & ResponsiveProps$1 & NativeAttrs$
|
|
1788
|
+
} & ResponsiveProps$1 & NativeAttrs$6 & react.RefAttributes<HTMLDivElement>>;
|
|
1671
1789
|
|
|
1672
1790
|
type GridMode = 'container' | 'screen' | 'css';
|
|
1673
1791
|
|
|
@@ -1689,16 +1807,16 @@ interface ResponsiveProps {
|
|
|
1689
1807
|
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
1690
1808
|
};
|
|
1691
1809
|
}
|
|
1692
|
-
type Props$
|
|
1810
|
+
type Props$5 = {
|
|
1693
1811
|
mode?: GridMode;
|
|
1694
1812
|
items?: (GridItemProps | GridSubProps)[];
|
|
1695
1813
|
} & ResponsiveProps;
|
|
1696
|
-
type NativeAttrs$
|
|
1697
|
-
type GridProps = Props$
|
|
1814
|
+
type NativeAttrs$5 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$5>;
|
|
1815
|
+
type GridProps = Props$5 & NativeAttrs$5;
|
|
1698
1816
|
declare const Grid: react.ForwardRefExoticComponent<{
|
|
1699
1817
|
mode?: GridMode;
|
|
1700
1818
|
items?: (GridItemProps | GridSubProps)[];
|
|
1701
|
-
} & ResponsiveProps & NativeAttrs$
|
|
1819
|
+
} & ResponsiveProps & NativeAttrs$5 & react.RefAttributes<HTMLDivElement>>;
|
|
1702
1820
|
|
|
1703
1821
|
interface GridContextValue {
|
|
1704
1822
|
mq: ContainerMediaQuery;
|
|
@@ -1718,7 +1836,7 @@ declare const Html: React.FC<HtmlProps>;
|
|
|
1718
1836
|
|
|
1719
1837
|
type StepColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
1720
1838
|
|
|
1721
|
-
interface Props$
|
|
1839
|
+
interface Props$4 {
|
|
1722
1840
|
value?: string | number | symbol;
|
|
1723
1841
|
title: React.ReactNode;
|
|
1724
1842
|
subtitle: React.ReactNode;
|
|
@@ -1726,18 +1844,18 @@ interface Props$3 {
|
|
|
1726
1844
|
color?: StepColor;
|
|
1727
1845
|
disabled?: boolean;
|
|
1728
1846
|
}
|
|
1729
|
-
type NativeAttrs$
|
|
1730
|
-
type StepProps = Props$
|
|
1847
|
+
type NativeAttrs$4 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$4>;
|
|
1848
|
+
type StepProps = Props$4 & NativeAttrs$4;
|
|
1731
1849
|
declare const Step: React.FC<StepProps>;
|
|
1732
1850
|
|
|
1733
|
-
interface Props$
|
|
1851
|
+
interface Props$3 {
|
|
1734
1852
|
direction?: 'horizontal' | 'vertical';
|
|
1735
1853
|
value?: number | string | symbol;
|
|
1736
1854
|
color?: StepColor;
|
|
1737
1855
|
markPreviousAsChecked?: boolean;
|
|
1738
1856
|
}
|
|
1739
|
-
type NativeAttrs$
|
|
1740
|
-
type StepsProps = Props$
|
|
1857
|
+
type NativeAttrs$3 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$3>;
|
|
1858
|
+
type StepsProps = Props$3 & NativeAttrs$3;
|
|
1741
1859
|
declare const Steps: React.FC<StepsProps>;
|
|
1742
1860
|
|
|
1743
1861
|
interface StepsContextValue {
|
|
@@ -1765,19 +1883,22 @@ interface TreeItemValue {
|
|
|
1765
1883
|
}
|
|
1766
1884
|
interface TreeItemBase {
|
|
1767
1885
|
value: string;
|
|
1886
|
+
icon?: React.ReactNode;
|
|
1768
1887
|
items?: TreeItemBase[];
|
|
1769
1888
|
}
|
|
1770
1889
|
interface TreeItemData {
|
|
1771
1890
|
value: string;
|
|
1772
1891
|
parents: string[];
|
|
1892
|
+
levelRaw: number;
|
|
1893
|
+
levelAlignment: number;
|
|
1773
1894
|
}
|
|
1774
1895
|
|
|
1775
|
-
interface Props$
|
|
1896
|
+
interface Props$2 extends TreeItemBase {
|
|
1776
1897
|
title: string;
|
|
1777
|
-
items?: Props$
|
|
1898
|
+
items?: Props$2[];
|
|
1778
1899
|
}
|
|
1779
|
-
type NativeAttrs$
|
|
1780
|
-
type TreeItemProps = Props$
|
|
1900
|
+
type NativeAttrs$2 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$2 | 'items'>;
|
|
1901
|
+
type TreeItemProps = Props$2 & NativeAttrs$2;
|
|
1781
1902
|
declare const TreeItem: (props: TreeItemProps) => react_jsx_runtime.JSX.Element;
|
|
1782
1903
|
|
|
1783
1904
|
interface TreeProps$1 {
|
|
@@ -1801,6 +1922,7 @@ declare const TreeContext: react.Context<TreeContextValue>;
|
|
|
1801
1922
|
interface TreeProps {
|
|
1802
1923
|
items?: TreeItemBase[];
|
|
1803
1924
|
value?: TreeItemValue[];
|
|
1925
|
+
checkable?: boolean;
|
|
1804
1926
|
onChange?: (value: TreeItemValue[]) => void;
|
|
1805
1927
|
onSelect?: (value: string) => void;
|
|
1806
1928
|
onUnselect?: (value: string) => void;
|
|
@@ -1816,9 +1938,22 @@ declare function useTree(props: TreeProps): {
|
|
|
1816
1938
|
};
|
|
1817
1939
|
|
|
1818
1940
|
declare function initializeTreeValues(items: TreeItemData[]): TreeItemValue[];
|
|
1819
|
-
declare function flattenTree(tree: TreeItemBase[], parents?: string[]
|
|
1941
|
+
declare function flattenTree(tree: TreeItemBase[], parents?: string[], levelRaw?: number, levelAlignment?: number, parentIndicators?: {
|
|
1942
|
+
icon: boolean;
|
|
1943
|
+
chevron: boolean;
|
|
1944
|
+
}, checkable?: boolean): TreeItemData[];
|
|
1820
1945
|
declare function updateTreeValues(values: TreeItemValue[], value: string, action: 'select' | 'unselect' | 'check' | 'uncheck', items: TreeItemData[]): TreeItemValue[];
|
|
1821
1946
|
|
|
1947
|
+
interface DropdownProps {
|
|
1948
|
+
isOpen?: boolean;
|
|
1949
|
+
onOpen?: () => void;
|
|
1950
|
+
onClose?: () => void;
|
|
1951
|
+
children: ((options: {
|
|
1952
|
+
isOpen: boolean;
|
|
1953
|
+
}) => React.ReactNode) | React.ReactNode;
|
|
1954
|
+
}
|
|
1955
|
+
declare const Dropdown: (props: DropdownProps) => react_jsx_runtime.JSX.Element;
|
|
1956
|
+
|
|
1822
1957
|
interface DropdownContentProps {
|
|
1823
1958
|
children: React.ReactNode;
|
|
1824
1959
|
}
|
|
@@ -1848,10 +1983,10 @@ interface DropdownContextValue {
|
|
|
1848
1983
|
declare const DropdownContext: react.Context<DropdownContextValue | null>;
|
|
1849
1984
|
declare const useDropdownContext: () => DropdownContextValue;
|
|
1850
1985
|
|
|
1851
|
-
interface Props {
|
|
1986
|
+
interface Props$1 {
|
|
1852
1987
|
}
|
|
1853
|
-
type NativeAttrs = Omit<ListItemProps, keyof Props>;
|
|
1854
|
-
type DropdownItemProps = Props & NativeAttrs;
|
|
1988
|
+
type NativeAttrs$1 = Omit<ListItemProps, keyof Props$1>;
|
|
1989
|
+
type DropdownItemProps = Props$1 & NativeAttrs$1;
|
|
1855
1990
|
declare const DropdownItem: (props: DropdownItemProps) => react_jsx_runtime.JSX.Element;
|
|
1856
1991
|
|
|
1857
1992
|
interface DropdownTriggerProps {
|
|
@@ -1859,27 +1994,233 @@ interface DropdownTriggerProps {
|
|
|
1859
1994
|
}
|
|
1860
1995
|
declare const DropdownTrigger: (props: DropdownTriggerProps) => react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
1861
1996
|
|
|
1862
|
-
|
|
1997
|
+
interface ListTreeItemIndentationProps {
|
|
1998
|
+
level: number;
|
|
1999
|
+
}
|
|
2000
|
+
declare const INDENT_SIZE = 18;
|
|
2001
|
+
declare const ListTreeItemIndentation: ({ level }: ListTreeItemIndentationProps) => react_jsx_runtime.JSX.Element;
|
|
2002
|
+
interface Props extends TreeItemBase {
|
|
2003
|
+
icon?: React.ReactNode;
|
|
2004
|
+
}
|
|
2005
|
+
type NativeAttrs = Omit<ListItemProps, keyof Props | 'items' | 'startContent'>;
|
|
2006
|
+
type ListTreeItemProps = Props & NativeAttrs & {
|
|
2007
|
+
items?: ListTreeItemProps[];
|
|
2008
|
+
};
|
|
2009
|
+
declare const ListTreeItem: (props: ListTreeItemProps) => react_jsx_runtime.JSX.Element;
|
|
1863
2010
|
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
2011
|
+
interface ListTreeProps {
|
|
2012
|
+
items?: ListTreeItemProps[];
|
|
2013
|
+
value?: TreeItemValue[];
|
|
2014
|
+
selectable?: boolean;
|
|
2015
|
+
checkable?: boolean;
|
|
2016
|
+
onChange?: (value: TreeItemValue[]) => void;
|
|
2017
|
+
onSelect?: (value: string) => void;
|
|
2018
|
+
onUnselect?: (value: string) => void;
|
|
2019
|
+
}
|
|
2020
|
+
declare const ListTree: (props: ListTreeProps) => react_jsx_runtime.JSX.Element;
|
|
1868
2021
|
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
2022
|
+
interface ListTreeContextValue {
|
|
2023
|
+
selectable: boolean;
|
|
2024
|
+
checkable: boolean;
|
|
2025
|
+
}
|
|
2026
|
+
declare const ListTreeContext: react.Context<ListTreeContextValue>;
|
|
1872
2027
|
|
|
1873
|
-
declare
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
declare
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
2028
|
+
declare const DraggableTrigger: ({ children }: {
|
|
2029
|
+
children: react__default.ReactNode;
|
|
2030
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2031
|
+
type DraggableContentProps = react__default.HTMLAttributes<HTMLDivElement>;
|
|
2032
|
+
declare const DraggableContent: (props: DraggableContentProps) => react_jsx_runtime.JSX.Element;
|
|
2033
|
+
type DraggableContent = react__default.HTMLAttributes<HTMLDivElement> & {
|
|
2034
|
+
bounces?: 'screen' | 'scroll';
|
|
2035
|
+
placement?: 'center';
|
|
2036
|
+
children: react__default.ReactNode;
|
|
2037
|
+
};
|
|
2038
|
+
declare const Draggable: ({ bounces: bouncesProp, placement, ...props }: DraggableContent) => react_jsx_runtime.JSX.Element;
|
|
1881
2039
|
|
|
1882
|
-
|
|
1883
|
-
|
|
2040
|
+
interface UploadFileData {
|
|
2041
|
+
id: string;
|
|
2042
|
+
name: string;
|
|
2043
|
+
size: number;
|
|
2044
|
+
file: File;
|
|
2045
|
+
}
|
|
1884
2046
|
|
|
1885
|
-
|
|
2047
|
+
interface UploadFileProps {
|
|
2048
|
+
data: UploadFileData[];
|
|
2049
|
+
readOnly?: boolean;
|
|
2050
|
+
accept?: string;
|
|
2051
|
+
max?: number;
|
|
2052
|
+
multiple?: boolean;
|
|
2053
|
+
disabled?: boolean;
|
|
2054
|
+
onChange: (value: UploadFileData[]) => void;
|
|
2055
|
+
}
|
|
2056
|
+
declare const UploadFiles: ({ data, max, readOnly, disabled, accept, multiple, onChange }: UploadFileProps) => react_jsx_runtime.JSX.Element;
|
|
2057
|
+
|
|
2058
|
+
type Rect = {
|
|
2059
|
+
x: number;
|
|
2060
|
+
y: number;
|
|
2061
|
+
width: number;
|
|
2062
|
+
height: number;
|
|
2063
|
+
};
|
|
2064
|
+
type Cursor = {
|
|
2065
|
+
x: number;
|
|
2066
|
+
y: number;
|
|
2067
|
+
};
|
|
2068
|
+
type StackMeta = {
|
|
2069
|
+
id: string;
|
|
2070
|
+
x: number;
|
|
2071
|
+
y: number;
|
|
2072
|
+
width: number;
|
|
2073
|
+
height: number;
|
|
2074
|
+
};
|
|
2075
|
+
type WindowMeta = {
|
|
2076
|
+
id: string;
|
|
2077
|
+
title: string;
|
|
2078
|
+
content?: react__default.ReactNode;
|
|
2079
|
+
x?: number;
|
|
2080
|
+
y?: number;
|
|
2081
|
+
width?: number;
|
|
2082
|
+
height?: number;
|
|
2083
|
+
minimized?: boolean;
|
|
2084
|
+
maximized?: boolean;
|
|
2085
|
+
snapped?: boolean;
|
|
2086
|
+
closed?: boolean;
|
|
2087
|
+
zIndex?: number;
|
|
2088
|
+
stackId?: string;
|
|
2089
|
+
};
|
|
2090
|
+
declare function useMove(props: {
|
|
2091
|
+
rect: Rect;
|
|
2092
|
+
minWidth?: number;
|
|
2093
|
+
minHeight?: number;
|
|
2094
|
+
maxWidth?: number;
|
|
2095
|
+
maxHeight?: number;
|
|
2096
|
+
initialWidth?: number;
|
|
2097
|
+
initialHeight?: number;
|
|
2098
|
+
initialX?: number;
|
|
2099
|
+
initialY?: number;
|
|
2100
|
+
x?: number;
|
|
2101
|
+
y?: number;
|
|
2102
|
+
width?: number;
|
|
2103
|
+
height?: number;
|
|
2104
|
+
onSize?: (rect: Rect & {
|
|
2105
|
+
maximized?: boolean;
|
|
2106
|
+
}) => void;
|
|
2107
|
+
onDrag?: (rect: Rect, cursor: Cursor) => void;
|
|
2108
|
+
onDragEnd?: (rect: Rect, cursor: Cursor) => void;
|
|
2109
|
+
visible?: boolean;
|
|
2110
|
+
parentRef: react__default.RefObject<HTMLDivElement | null>;
|
|
2111
|
+
useTransform?: boolean;
|
|
2112
|
+
prevBoundsRef: react__default.MutableRefObject<{
|
|
2113
|
+
x: number;
|
|
2114
|
+
y: number;
|
|
2115
|
+
width: number;
|
|
2116
|
+
height: number;
|
|
2117
|
+
} | null>;
|
|
2118
|
+
zIndex?: number;
|
|
2119
|
+
disabled?: boolean;
|
|
2120
|
+
}): {
|
|
2121
|
+
windowRef: react__default.MutableRefObject<HTMLDivElement | null>;
|
|
2122
|
+
rect: {
|
|
2123
|
+
x: number;
|
|
2124
|
+
y: number;
|
|
2125
|
+
width: number;
|
|
2126
|
+
height: number;
|
|
2127
|
+
};
|
|
2128
|
+
style: react__default.CSSProperties;
|
|
2129
|
+
visible: boolean;
|
|
2130
|
+
onPointerDown_drag: (e: react__default.PointerEvent) => void;
|
|
2131
|
+
positionStyles: react__default.CSSProperties;
|
|
2132
|
+
};
|
|
2133
|
+
declare function useResize({ parentRef, rect, disabled, minWidth, minHeight, maxWidth, maxHeight, onRect, }: {
|
|
2134
|
+
parentRef: react__default.RefObject<HTMLDivElement | null>;
|
|
2135
|
+
rect: Rect;
|
|
2136
|
+
minWidth?: number;
|
|
2137
|
+
maxWidth?: number;
|
|
2138
|
+
minHeight?: number;
|
|
2139
|
+
maxHeight?: number;
|
|
2140
|
+
disabled?: boolean;
|
|
2141
|
+
onRect: (rect: Rect) => void;
|
|
2142
|
+
}): {
|
|
2143
|
+
handles: string[];
|
|
2144
|
+
disabled: boolean | undefined;
|
|
2145
|
+
onResize: (e: react__default.PointerEvent, dir: string) => void;
|
|
2146
|
+
};
|
|
2147
|
+
declare function useSnapPreview({ parentRef, onDragEnd, }: {
|
|
2148
|
+
parentRef: react__default.RefObject<HTMLDivElement | null>;
|
|
2149
|
+
rect: Rect;
|
|
2150
|
+
onDragEnd: (rect: Rect, maximized: boolean, snapped: boolean) => void;
|
|
2151
|
+
}): {
|
|
2152
|
+
rect?: Rect | undefined;
|
|
2153
|
+
style?: {
|
|
2154
|
+
left: number;
|
|
2155
|
+
top: number;
|
|
2156
|
+
width: number;
|
|
2157
|
+
height: number;
|
|
2158
|
+
} | undefined;
|
|
2159
|
+
onDrag: (nx: number, ny: number, cursorX: number, cursorY: number) => void;
|
|
2160
|
+
onDragEnd: () => void;
|
|
2161
|
+
};
|
|
2162
|
+
declare function useWindow({ parentRef, prevBoundsRef, meta, parentRect, isMobile, initialWidth, initialHeight, initialX, initialY, onUpdate, }: {
|
|
2163
|
+
parentRef: react__default.RefObject<HTMLDivElement | null>;
|
|
2164
|
+
prevBoundsRef?: react__default.MutableRefObject<{
|
|
2165
|
+
x: number;
|
|
2166
|
+
y: number;
|
|
2167
|
+
width: number;
|
|
2168
|
+
height: number;
|
|
2169
|
+
} | null>;
|
|
2170
|
+
meta: WindowMeta;
|
|
2171
|
+
parentRect?: {
|
|
2172
|
+
width?: number;
|
|
2173
|
+
height?: number;
|
|
2174
|
+
};
|
|
2175
|
+
isMobile?: boolean;
|
|
2176
|
+
initialWidth?: number;
|
|
2177
|
+
initialHeight?: number;
|
|
2178
|
+
initialX?: number;
|
|
2179
|
+
initialY?: number;
|
|
2180
|
+
onUpdate: (patch: Partial<WindowMeta>) => void;
|
|
2181
|
+
}): {
|
|
2182
|
+
rect: {
|
|
2183
|
+
x: number;
|
|
2184
|
+
y: number;
|
|
2185
|
+
width: number;
|
|
2186
|
+
height: number;
|
|
2187
|
+
};
|
|
2188
|
+
setPos: react__default.Dispatch<react__default.SetStateAction<{
|
|
2189
|
+
x: number;
|
|
2190
|
+
y: number;
|
|
2191
|
+
}>>;
|
|
2192
|
+
setSize: react__default.Dispatch<react__default.SetStateAction<{
|
|
2193
|
+
width: number;
|
|
2194
|
+
height: number;
|
|
2195
|
+
}>>;
|
|
2196
|
+
onToggleMaximize: () => void;
|
|
2197
|
+
};
|
|
2198
|
+
declare function useWindowStack({ windows, setWindows, windowContainerRef, stackContainerRef, }: {
|
|
2199
|
+
windows: WindowMeta[];
|
|
2200
|
+
setWindows: react__default.Dispatch<react__default.SetStateAction<WindowMeta[]>>;
|
|
2201
|
+
windowContainerRef: react__default.RefObject<HTMLDivElement>;
|
|
2202
|
+
stackContainerRef: react__default.RefObject<HTMLDivElement>;
|
|
2203
|
+
}): {
|
|
2204
|
+
isMobile: boolean;
|
|
2205
|
+
windowContainerRect: Rect;
|
|
2206
|
+
stackContainerRect: Rect;
|
|
2207
|
+
activeWindow: WindowMeta | undefined;
|
|
2208
|
+
bringToFront: (id: string) => void;
|
|
2209
|
+
updateWindow: (id: string, patch: Partial<WindowMeta>) => void;
|
|
2210
|
+
closeWindow: (id: string) => void;
|
|
2211
|
+
minimizeWindow: (id: string) => void;
|
|
2212
|
+
};
|
|
2213
|
+
declare function WindowManager({ windowContainerRef: externalWindowContainerRef, stackContainerRef: externalStackContainerRef, windows, setWindows, stacks, children, }: {
|
|
2214
|
+
windows: WindowMeta[];
|
|
2215
|
+
setWindows: react__default.Dispatch<react__default.SetStateAction<WindowMeta[]>>;
|
|
2216
|
+
stacks: StackMeta[];
|
|
2217
|
+
setStacks: react__default.Dispatch<react__default.SetStateAction<StackMeta[]>>;
|
|
2218
|
+
windowContainerRef?: react__default.RefObject<HTMLDivElement>;
|
|
2219
|
+
stackContainerRef?: react__default.RefObject<HTMLDivElement>;
|
|
2220
|
+
children: react__default.ReactNode | ((options: {
|
|
2221
|
+
content: react__default.ReactNode;
|
|
2222
|
+
taskbar: react__default.ReactNode;
|
|
2223
|
+
}) => react__default.ReactNode);
|
|
2224
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2225
|
+
|
|
2226
|
+
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, type Cursor, 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 Rect, 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, type StackMeta, 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, type Timer, type TimerMode, 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, useMove, useMutation, useOnClickOutside, usePopover, usePrevious, useQuery, useRadioGroup, useResize, useResizeObserver, useSelect, useSnapPreview, useStep, useStepsContext, useTimer, useTree, useValueEffect, useVirtualizer, useWindow, useWindowStack, validateRules, valueToValues, valuesToValue };
|