@unifiedsoftware/react-ui 1.1.8 → 2.0.0-alpha.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 +319 -138
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,36 +3,53 @@ 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
5
|
|
|
6
|
-
|
|
6
|
+
interface Props$D {
|
|
7
|
+
}
|
|
8
|
+
type NativeAttrs$D = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$D>;
|
|
9
|
+
type DividerProps = Props$D & NativeAttrs$D;
|
|
10
|
+
declare const Divider: react.ForwardRefExoticComponent<Props$D & NativeAttrs$D & react.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
|
|
12
|
+
type AccordionSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
13
|
+
type AccordionVariant = 'plain' | 'flat' | 'tonal' | 'filled';
|
|
14
|
+
type AccordionColor = 'primary' | 'secondary';
|
|
7
15
|
interface AccordionArrow {
|
|
8
16
|
isVisible?: boolean;
|
|
9
17
|
position?: 'start' | 'end';
|
|
10
18
|
}
|
|
11
19
|
|
|
12
|
-
interface Props$
|
|
20
|
+
interface Props$C {
|
|
13
21
|
value?: any[];
|
|
14
22
|
defaultValue?: any[];
|
|
15
23
|
expandMode?: 'single' | 'multiple';
|
|
16
24
|
size?: AccordionSize;
|
|
17
25
|
arrow?: AccordionArrow;
|
|
26
|
+
variant?: AccordionVariant;
|
|
27
|
+
color?: AccordionColor;
|
|
28
|
+
splitted?: boolean;
|
|
29
|
+
bordered?: boolean;
|
|
30
|
+
shadow?: boolean;
|
|
31
|
+
headerProps?: {
|
|
32
|
+
variant?: AccordionVariant;
|
|
33
|
+
color?: AccordionColor;
|
|
34
|
+
};
|
|
18
35
|
onChange?: (value: any[]) => void;
|
|
19
36
|
}
|
|
20
|
-
type NativeAttrs$
|
|
21
|
-
type AccordionProps = Props$
|
|
22
|
-
declare const Accordion: react.ForwardRefExoticComponent<Props$
|
|
37
|
+
type NativeAttrs$C = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$C>;
|
|
38
|
+
type AccordionProps = Props$C & NativeAttrs$C;
|
|
39
|
+
declare const Accordion: react.ForwardRefExoticComponent<Props$C & NativeAttrs$C & react.RefAttributes<HTMLDivElement>>;
|
|
23
40
|
|
|
24
41
|
interface AccordionItemContextValue {
|
|
25
42
|
value: string;
|
|
26
43
|
}
|
|
27
44
|
declare const useAccordionItem: () => AccordionItemContextValue;
|
|
28
|
-
interface Props$
|
|
45
|
+
interface Props$B {
|
|
29
46
|
value?: any;
|
|
30
47
|
}
|
|
31
|
-
type NativeAttrs$
|
|
32
|
-
type AccordionItemProps = Props$
|
|
33
|
-
declare const AccordionItem: react.ForwardRefExoticComponent<Props$
|
|
48
|
+
type NativeAttrs$B = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$B>;
|
|
49
|
+
type AccordionItemProps = Props$B & NativeAttrs$B;
|
|
50
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<Props$B & NativeAttrs$B & react.RefAttributes<HTMLDivElement>>;
|
|
34
51
|
|
|
35
|
-
interface Props$
|
|
52
|
+
interface Props$A {
|
|
36
53
|
as?: React.ElementType;
|
|
37
54
|
title?: React.ReactNode;
|
|
38
55
|
subtitle?: React.ReactNode;
|
|
@@ -41,6 +58,8 @@ interface Props$w {
|
|
|
41
58
|
bordered?: boolean;
|
|
42
59
|
collapsible?: boolean;
|
|
43
60
|
arrow?: AccordionArrow;
|
|
61
|
+
variant?: AccordionVariant;
|
|
62
|
+
color?: AccordionColor;
|
|
44
63
|
slotProps?: {
|
|
45
64
|
startContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
46
65
|
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -49,9 +68,9 @@ interface Props$w {
|
|
|
49
68
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
50
69
|
};
|
|
51
70
|
}
|
|
52
|
-
type NativeAttrs$
|
|
53
|
-
type AccordionHeaderProps = Props$
|
|
54
|
-
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$
|
|
71
|
+
type NativeAttrs$A = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$A>;
|
|
72
|
+
type AccordionHeaderProps = Props$A & NativeAttrs$A;
|
|
73
|
+
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$A & NativeAttrs$A & react.RefAttributes<HTMLDivElement>>;
|
|
55
74
|
|
|
56
75
|
type AccordionBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
57
76
|
declare const AccordionBody: react.ForwardRefExoticComponent<AccordionBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -68,6 +87,12 @@ interface AccordionContextValue {
|
|
|
68
87
|
value: any[];
|
|
69
88
|
expandMode: 'single' | 'multiple';
|
|
70
89
|
arrow: AccordionArrow;
|
|
90
|
+
variant: AccordionVariant;
|
|
91
|
+
color: AccordionColor;
|
|
92
|
+
headerProps: {
|
|
93
|
+
variant: AccordionVariant;
|
|
94
|
+
color: AccordionColor;
|
|
95
|
+
};
|
|
71
96
|
onChange: (value: any[]) => void;
|
|
72
97
|
}
|
|
73
98
|
declare const AccordionContext: react.Context<AccordionContextValue | null>;
|
|
@@ -304,6 +329,31 @@ declare function useEffectEvent<T extends Function>(fn: T): T;
|
|
|
304
329
|
type SetValueAction<S> = (prev: S) => Generator<any, void, unknown>;
|
|
305
330
|
declare function useValueEffect<S>(defaultValue: S | (() => S)): [S, Dispatch<SetValueAction<S>>];
|
|
306
331
|
|
|
332
|
+
declare const defaultBreakpoints: {
|
|
333
|
+
xs: number;
|
|
334
|
+
sm: number;
|
|
335
|
+
md: number;
|
|
336
|
+
lg: number;
|
|
337
|
+
xl: number;
|
|
338
|
+
xxl: number;
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
declare enum ContainerMediaQuery {
|
|
342
|
+
XS = 0,
|
|
343
|
+
SM = 1,
|
|
344
|
+
MD = 2,
|
|
345
|
+
LG = 3,
|
|
346
|
+
XL = 4,
|
|
347
|
+
XXL = 5
|
|
348
|
+
}
|
|
349
|
+
type ContainerBreakpoints = typeof defaultBreakpoints;
|
|
350
|
+
|
|
351
|
+
interface UseContainerMediaQueryOptions<TElement extends HTMLElement = HTMLElement> {
|
|
352
|
+
ref: React.MutableRefObject<TElement | null>;
|
|
353
|
+
breakpoints?: Partial<ContainerBreakpoints>;
|
|
354
|
+
}
|
|
355
|
+
declare function useContainerMediaQuery<TElement extends HTMLElement = HTMLElement>(options: UseContainerMediaQueryOptions<TElement>): ContainerMediaQuery | undefined;
|
|
356
|
+
|
|
307
357
|
type InputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
308
358
|
type InputColor = 'light' | 'dark' | 'inherit';
|
|
309
359
|
type InputVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
@@ -316,7 +366,7 @@ interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
316
366
|
}
|
|
317
367
|
declare const List: react.ForwardRefExoticComponent<ListProps & react.RefAttributes<HTMLDivElement>>;
|
|
318
368
|
|
|
319
|
-
interface Props$
|
|
369
|
+
interface Props$z {
|
|
320
370
|
as?: react__default.ElementType;
|
|
321
371
|
title?: react__default.ReactNode;
|
|
322
372
|
subtitle?: react__default.ReactNode;
|
|
@@ -334,11 +384,11 @@ interface Props$v {
|
|
|
334
384
|
subtitle?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
335
385
|
};
|
|
336
386
|
}
|
|
337
|
-
type NativeAttrs$
|
|
338
|
-
type ListItemProps = Props$
|
|
339
|
-
declare const ListItem: react__default.ForwardRefExoticComponent<Props$
|
|
387
|
+
type NativeAttrs$z = Omit<react__default.HTMLAttributes<HTMLDivElement>, keyof Props$z>;
|
|
388
|
+
type ListItemProps = Props$z & NativeAttrs$z;
|
|
389
|
+
declare const ListItem: react__default.ForwardRefExoticComponent<Props$z & NativeAttrs$z & react__default.RefAttributes<HTMLDivElement>>;
|
|
340
390
|
|
|
341
|
-
interface Props$
|
|
391
|
+
interface Props$y {
|
|
342
392
|
expandVisible?: boolean;
|
|
343
393
|
expandPosition?: 'start' | 'end';
|
|
344
394
|
isOpen?: boolean;
|
|
@@ -346,9 +396,9 @@ interface Props$u {
|
|
|
346
396
|
onClose?: () => void;
|
|
347
397
|
onToggle?: () => void;
|
|
348
398
|
}
|
|
349
|
-
type NativeAttrs$
|
|
350
|
-
type ListGroupProps = Props$
|
|
351
|
-
declare const ListGroup: react.ForwardRefExoticComponent<Props$
|
|
399
|
+
type NativeAttrs$y = Omit<ListItemProps, keyof Props$y>;
|
|
400
|
+
type ListGroupProps = Props$y & NativeAttrs$y;
|
|
401
|
+
declare const ListGroup: react.ForwardRefExoticComponent<Props$y & NativeAttrs$y & react.RefAttributes<HTMLDivElement>>;
|
|
352
402
|
|
|
353
403
|
interface ListSubheaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
354
404
|
as?: React.ElementType;
|
|
@@ -390,8 +440,8 @@ interface AutocompleteMultipleProps<TAutocompleteItem extends AutocompleteItem,
|
|
|
390
440
|
onChange?: (value: TAutocompleteItem[]) => void;
|
|
391
441
|
onValueChange?: (value: TAutocompleteItem[TAutocompleteKeyField][]) => void;
|
|
392
442
|
}
|
|
393
|
-
type NativeAttrs$
|
|
394
|
-
type Props$
|
|
443
|
+
type NativeAttrs$x<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$x<TAutocompleteItem, TAutocompleteKeyField>>;
|
|
444
|
+
type Props$x<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = {
|
|
395
445
|
data: TAutocompleteItem[];
|
|
396
446
|
keyField?: TAutocompleteKeyField;
|
|
397
447
|
textField?: keyof TAutocompleteItem;
|
|
@@ -412,14 +462,14 @@ type Props$t<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField e
|
|
|
412
462
|
renderItem?: (item: TAutocompleteItem, props: ListItemProps) => React.ReactNode;
|
|
413
463
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
414
464
|
} & (AutocompleteSingleProps<TAutocompleteItem, TAutocompleteKeyField> | AutocompleteMultipleProps<TAutocompleteItem, TAutocompleteKeyField>);
|
|
415
|
-
type AutocompleteProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Props$
|
|
465
|
+
type AutocompleteProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Props$x<TAutocompleteItem, TAutocompleteKeyField> & NativeAttrs$x<TAutocompleteItem, TAutocompleteKeyField>;
|
|
416
466
|
|
|
417
467
|
declare const Autocomplete: <TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = "key">(props: AutocompleteProps<TAutocompleteItem, TAutocompleteKeyField>) => react_jsx_runtime.JSX.Element;
|
|
418
468
|
|
|
419
469
|
type BackdropPlacement = 'top' | 'left' | 'center' | 'right' | 'bottom';
|
|
420
470
|
type BackdropVariant = 'opaque' | 'blur' | 'transparent';
|
|
421
471
|
|
|
422
|
-
interface Props$
|
|
472
|
+
interface Props$w {
|
|
423
473
|
isOpen: boolean;
|
|
424
474
|
closable?: boolean;
|
|
425
475
|
placement?: BackdropPlacement;
|
|
@@ -428,14 +478,14 @@ interface Props$s {
|
|
|
428
478
|
scrollArea?: boolean;
|
|
429
479
|
onClose(): void;
|
|
430
480
|
}
|
|
431
|
-
type NativeAttrs$
|
|
432
|
-
type BackdropProps = Props$
|
|
433
|
-
declare const Backdrop: react.ForwardRefExoticComponent<Props$
|
|
481
|
+
type NativeAttrs$w = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$w>;
|
|
482
|
+
type BackdropProps = Props$w & NativeAttrs$w;
|
|
483
|
+
declare const Backdrop: react.ForwardRefExoticComponent<Props$w & NativeAttrs$w & react.RefAttributes<HTMLDivElement>>;
|
|
434
484
|
|
|
435
485
|
type BadgeColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
436
486
|
type BadgePlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
437
487
|
|
|
438
|
-
interface Props$
|
|
488
|
+
interface Props$v {
|
|
439
489
|
/**
|
|
440
490
|
* The placement of the badge relative to its content.
|
|
441
491
|
*/
|
|
@@ -453,8 +503,8 @@ interface Props$r {
|
|
|
453
503
|
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
454
504
|
};
|
|
455
505
|
}
|
|
456
|
-
type NativeAttrs$
|
|
457
|
-
type BadgeProps = Props$
|
|
506
|
+
type NativeAttrs$v = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$v>;
|
|
507
|
+
type BadgeProps = Props$v & NativeAttrs$v;
|
|
458
508
|
declare const Badge: React.FC<BadgeProps>;
|
|
459
509
|
|
|
460
510
|
type DataListItem = Record<string, any>;
|
|
@@ -471,7 +521,7 @@ interface DataListMultipleProps<TDataListItem extends DataListItem, TDataListKey
|
|
|
471
521
|
onChange?: (value: TDataListItem[]) => void;
|
|
472
522
|
onValueChange?: (value: TDataListItem[TDataListKeyField][]) => void;
|
|
473
523
|
}
|
|
474
|
-
type Props$
|
|
524
|
+
type Props$u<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = {
|
|
475
525
|
data: TDataListItem[];
|
|
476
526
|
keyField?: TDataListKeyField;
|
|
477
527
|
textField?: keyof DataListItem;
|
|
@@ -486,17 +536,17 @@ type Props$q<TDataListItem extends DataListItem, TDataListKeyField extends DataL
|
|
|
486
536
|
renderItem?: (item: TDataListItem, props: ListItemProps$1) => React.ReactNode;
|
|
487
537
|
renderNoData?: (props: ResultProps$1) => React.ReactNode;
|
|
488
538
|
} & (DataListSingleProps<TDataListItem, TDataListKeyField> | DataListMultipleProps<TDataListItem, TDataListKeyField>);
|
|
489
|
-
type NativeAttrs$
|
|
490
|
-
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$
|
|
539
|
+
type NativeAttrs$u<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$u<TDataListItem, TDataListKeyField>>;
|
|
540
|
+
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$u<TDataListItem, TDataListKeyField> & NativeAttrs$u<TDataListItem, TDataListKeyField>;
|
|
491
541
|
|
|
492
542
|
declare const DataList: <TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = "key">(props: DataListProps<TDataListItem, TDataListKeyField>) => react_jsx_runtime.JSX.Element;
|
|
493
543
|
|
|
494
544
|
type ButtonVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
495
545
|
type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inherit';
|
|
496
|
-
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
546
|
+
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
497
547
|
type ButtonGroupDirection = 'row' | 'col';
|
|
498
548
|
|
|
499
|
-
interface Props$
|
|
549
|
+
interface Props$t {
|
|
500
550
|
/**
|
|
501
551
|
* The HTML element type or React component to render as the button.
|
|
502
552
|
*/
|
|
@@ -541,20 +591,20 @@ interface Props$p {
|
|
|
541
591
|
fontStyle?: React.CSSProperties['fontStyle'];
|
|
542
592
|
};
|
|
543
593
|
}
|
|
544
|
-
type NativeAttrs$
|
|
545
|
-
type ButtonProps = Props$
|
|
546
|
-
declare const Button: react.ForwardRefExoticComponent<Props$
|
|
594
|
+
type NativeAttrs$t = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof Props$t>;
|
|
595
|
+
type ButtonProps = Props$t & NativeAttrs$t;
|
|
596
|
+
declare const Button: react.ForwardRefExoticComponent<Props$t & NativeAttrs$t & react.RefAttributes<HTMLButtonElement>>;
|
|
547
597
|
|
|
548
|
-
interface Props$
|
|
598
|
+
interface Props$s {
|
|
549
599
|
direction?: ButtonGroupDirection;
|
|
550
600
|
variant?: ButtonVariant;
|
|
551
601
|
color?: ButtonColor;
|
|
552
602
|
size?: ButtonSize;
|
|
553
603
|
disabled?: boolean;
|
|
554
604
|
}
|
|
555
|
-
type NativeAttrs$
|
|
556
|
-
type ButtonGroupProps = Props$
|
|
557
|
-
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$
|
|
605
|
+
type NativeAttrs$s = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$s>;
|
|
606
|
+
type ButtonGroupProps = Props$s & NativeAttrs$s;
|
|
607
|
+
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$s & NativeAttrs$s & react.RefAttributes<HTMLDivElement>>;
|
|
558
608
|
|
|
559
609
|
interface ButtonGroupContextValue {
|
|
560
610
|
direction: ButtonGroupDirection;
|
|
@@ -584,56 +634,95 @@ type BoxCSS = {
|
|
|
584
634
|
[K in keyof BoxProperties]: BoxApplyState<BoxProperties[K]>;
|
|
585
635
|
};
|
|
586
636
|
|
|
587
|
-
type CardSize = 'sm' | 'md' | 'lg';
|
|
637
|
+
type CardSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
588
638
|
|
|
589
|
-
interface Props$
|
|
639
|
+
interface Props$r {
|
|
590
640
|
as?: React.ElementType;
|
|
591
641
|
size?: CardSize;
|
|
592
642
|
hoverable?: boolean;
|
|
593
643
|
selected?: boolean;
|
|
594
644
|
disabled?: boolean;
|
|
595
645
|
bordered?: boolean;
|
|
646
|
+
underlined?: boolean;
|
|
596
647
|
css?: BoxCSS;
|
|
597
648
|
}
|
|
598
|
-
type NativeAttrs$
|
|
599
|
-
type CardProps = Props$
|
|
600
|
-
declare const Card: react.ForwardRefExoticComponent<Props$
|
|
649
|
+
type NativeAttrs$r = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$r>;
|
|
650
|
+
type CardProps = Props$r & NativeAttrs$r;
|
|
651
|
+
declare const Card: react.ForwardRefExoticComponent<Props$r & NativeAttrs$r & react.RefAttributes<HTMLDivElement>>;
|
|
601
652
|
|
|
602
653
|
type CardBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
603
654
|
declare const CardBody: react.ForwardRefExoticComponent<CardBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
604
655
|
|
|
605
|
-
interface Props$
|
|
656
|
+
interface Props$q {
|
|
606
657
|
as?: React.ElementType;
|
|
607
658
|
title?: React.ReactNode;
|
|
608
659
|
subtitle?: React.ReactNode;
|
|
609
660
|
startContent?: React.ReactNode;
|
|
610
661
|
endContent?: React.ReactNode;
|
|
662
|
+
/**
|
|
663
|
+
* @deprecated Use `underlined` instead
|
|
664
|
+
*/
|
|
611
665
|
bordered?: boolean;
|
|
666
|
+
underlined?: boolean;
|
|
667
|
+
centered?: boolean;
|
|
612
668
|
slotProps?: {
|
|
613
669
|
startContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
614
|
-
content?: React.HTMLAttributes<HTMLDivElement
|
|
670
|
+
content?: React.HTMLAttributes<HTMLDivElement> & {
|
|
671
|
+
layout?: 'inline' | 'block';
|
|
672
|
+
gap?: boolean;
|
|
673
|
+
};
|
|
615
674
|
endContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
616
675
|
title?: React.HTMLAttributes<HTMLDivElement>;
|
|
617
676
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
618
677
|
};
|
|
619
678
|
}
|
|
620
|
-
type NativeAttrs$
|
|
621
|
-
type CardHeaderProps = Props$
|
|
622
|
-
declare const CardHeader: react.ForwardRefExoticComponent<Props$
|
|
679
|
+
type NativeAttrs$q = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$q>;
|
|
680
|
+
type CardHeaderProps = Props$q & NativeAttrs$q;
|
|
681
|
+
declare const CardHeader: react.ForwardRefExoticComponent<Props$q & NativeAttrs$q & react.RefAttributes<HTMLDivElement>>;
|
|
623
682
|
|
|
624
|
-
interface Props$
|
|
683
|
+
interface Props$p {
|
|
625
684
|
as?: React.ElementType;
|
|
685
|
+
/**
|
|
686
|
+
* @deprecated Use `underlined` instead
|
|
687
|
+
*/
|
|
626
688
|
bordered?: boolean;
|
|
689
|
+
underlined?: boolean;
|
|
627
690
|
}
|
|
628
|
-
type NativeAttrs$
|
|
629
|
-
type CardFooterProps = Props$
|
|
630
|
-
declare const CardFooter: react.ForwardRefExoticComponent<Props$
|
|
691
|
+
type NativeAttrs$p = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$p>;
|
|
692
|
+
type CardFooterProps = Props$p & NativeAttrs$p;
|
|
693
|
+
declare const CardFooter: react.ForwardRefExoticComponent<Props$p & NativeAttrs$p & react.RefAttributes<HTMLDivElement>>;
|
|
694
|
+
|
|
695
|
+
type CardMediaProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
696
|
+
topLeftContent?: React.ReactNode;
|
|
697
|
+
topRightContent?: React.ReactNode;
|
|
698
|
+
};
|
|
699
|
+
declare const CardMedia: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & {
|
|
700
|
+
topLeftContent?: React.ReactNode;
|
|
701
|
+
topRightContent?: React.ReactNode;
|
|
702
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
703
|
+
|
|
704
|
+
interface Props$o {
|
|
705
|
+
as?: React.ElementType;
|
|
706
|
+
centered?: boolean;
|
|
707
|
+
css?: BoxCSS;
|
|
708
|
+
}
|
|
709
|
+
type NativeAttrs$o = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$o>;
|
|
710
|
+
type CardTitleProps = Props$o & NativeAttrs$o;
|
|
711
|
+
declare const CardTitle: react.ForwardRefExoticComponent<Props$o & NativeAttrs$o & react.RefAttributes<HTMLDivElement>>;
|
|
712
|
+
|
|
713
|
+
interface Props$n {
|
|
714
|
+
as?: React.ElementType;
|
|
715
|
+
css?: BoxCSS;
|
|
716
|
+
}
|
|
717
|
+
type NativeAttrs$n = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$n>;
|
|
718
|
+
type CardSubtitleProps = Props$n & NativeAttrs$n;
|
|
719
|
+
declare const CardSubtitle: react.ForwardRefExoticComponent<Props$n & NativeAttrs$n & react.RefAttributes<HTMLDivElement>>;
|
|
631
720
|
|
|
632
721
|
type ChipVariant = 'filled' | 'outlined' | 'flat' | 'text' | 'plain';
|
|
633
722
|
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
634
723
|
type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
635
724
|
|
|
636
|
-
interface Props$
|
|
725
|
+
interface Props$m {
|
|
637
726
|
/**
|
|
638
727
|
* The HTML element type or React component to render as the chip.
|
|
639
728
|
*/
|
|
@@ -671,9 +760,9 @@ interface Props$k {
|
|
|
671
760
|
};
|
|
672
761
|
onClose?: () => void;
|
|
673
762
|
}
|
|
674
|
-
type NativeAttrs$
|
|
675
|
-
type ChipProps = Props$
|
|
676
|
-
declare const Chip: react.ForwardRefExoticComponent<Props$
|
|
763
|
+
type NativeAttrs$m = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$m>;
|
|
764
|
+
type ChipProps = Props$m & NativeAttrs$m;
|
|
765
|
+
declare const Chip: react.ForwardRefExoticComponent<Props$m & NativeAttrs$m & react.RefAttributes<HTMLDivElement>>;
|
|
677
766
|
|
|
678
767
|
interface CollapseProps {
|
|
679
768
|
children: React.ReactNode;
|
|
@@ -717,7 +806,7 @@ interface DrawerClose {
|
|
|
717
806
|
}
|
|
718
807
|
type DrawerBackdrop = BackdropVariant;
|
|
719
808
|
|
|
720
|
-
interface Props$
|
|
809
|
+
interface Props$l {
|
|
721
810
|
isOpen: boolean;
|
|
722
811
|
size?: DrawerSize;
|
|
723
812
|
backdrop?: DrawerBackdrop;
|
|
@@ -734,11 +823,11 @@ interface Props$j {
|
|
|
734
823
|
onClose: () => void;
|
|
735
824
|
onAfterClose?: () => void;
|
|
736
825
|
}
|
|
737
|
-
type NativeAttrs$
|
|
738
|
-
type DrawerProps = Props$
|
|
739
|
-
declare const Drawer: react.ForwardRefExoticComponent<Props$
|
|
826
|
+
type NativeAttrs$l = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$l>;
|
|
827
|
+
type DrawerProps = Props$l & NativeAttrs$l;
|
|
828
|
+
declare const Drawer: react.ForwardRefExoticComponent<Props$l & NativeAttrs$l & react.RefAttributes<HTMLDivElement>>;
|
|
740
829
|
|
|
741
|
-
interface Props$
|
|
830
|
+
interface Props$k {
|
|
742
831
|
as?: React.ElementType;
|
|
743
832
|
title?: React.ReactNode;
|
|
744
833
|
subtitle?: React.ReactNode;
|
|
@@ -754,20 +843,20 @@ interface Props$i {
|
|
|
754
843
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
755
844
|
};
|
|
756
845
|
}
|
|
757
|
-
type NativeAttrs$
|
|
758
|
-
type DrawerHeaderProps = Props$
|
|
759
|
-
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$
|
|
846
|
+
type NativeAttrs$k = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$k>;
|
|
847
|
+
type DrawerHeaderProps = Props$k & NativeAttrs$k;
|
|
848
|
+
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$k & NativeAttrs$k & react.RefAttributes<HTMLDivElement>>;
|
|
760
849
|
|
|
761
850
|
type DrawerBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
762
851
|
declare const DrawerBody: react.ForwardRefExoticComponent<DrawerBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
763
852
|
|
|
764
|
-
interface Props$
|
|
853
|
+
interface Props$j {
|
|
765
854
|
as?: React.ElementType;
|
|
766
855
|
bordered?: boolean;
|
|
767
856
|
}
|
|
768
|
-
type NativeAttrs$
|
|
769
|
-
type DrawerFooterProps = Props$
|
|
770
|
-
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$
|
|
857
|
+
type NativeAttrs$j = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$j>;
|
|
858
|
+
type DrawerFooterProps = Props$j & NativeAttrs$j;
|
|
859
|
+
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$j & NativeAttrs$j & react.RefAttributes<HTMLDivElement>>;
|
|
771
860
|
|
|
772
861
|
interface DrawerContextValue {
|
|
773
862
|
isOpen: boolean;
|
|
@@ -791,7 +880,7 @@ interface IconProps {
|
|
|
791
880
|
}
|
|
792
881
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<unknown>>;
|
|
793
882
|
|
|
794
|
-
interface Props$
|
|
883
|
+
interface Props$i {
|
|
795
884
|
/**
|
|
796
885
|
* The HTML element type or React component to render as the menu item.
|
|
797
886
|
*/
|
|
@@ -817,9 +906,9 @@ interface Props$g {
|
|
|
817
906
|
*/
|
|
818
907
|
disabled?: boolean;
|
|
819
908
|
}
|
|
820
|
-
type NativeAttrs$
|
|
821
|
-
type MenuItemProps = Props$
|
|
822
|
-
declare const MenuItem: react.ForwardRefExoticComponent<Props$
|
|
909
|
+
type NativeAttrs$i = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$i | 'items'>;
|
|
910
|
+
type MenuItemProps = Props$i & NativeAttrs$i;
|
|
911
|
+
declare const MenuItem: react.ForwardRefExoticComponent<Props$i & NativeAttrs$i & react.RefAttributes<HTMLDivElement>>;
|
|
823
912
|
|
|
824
913
|
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
825
914
|
items?: MenuItemType[];
|
|
@@ -843,7 +932,7 @@ type MenuItemType = (MenuGroupProps & {
|
|
|
843
932
|
}) | (MenuItemProps & {
|
|
844
933
|
type?: 'item';
|
|
845
934
|
});
|
|
846
|
-
interface Props$
|
|
935
|
+
interface Props$h {
|
|
847
936
|
/**
|
|
848
937
|
* The currently selected value of the menu.
|
|
849
938
|
*/
|
|
@@ -879,8 +968,8 @@ interface Props$f {
|
|
|
879
968
|
*/
|
|
880
969
|
onItemSelect?: (props: MenuItemProps) => void;
|
|
881
970
|
}
|
|
882
|
-
type NativeAttrs$
|
|
883
|
-
type MenuProps = Props$
|
|
971
|
+
type NativeAttrs$h = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$h | 'items'>;
|
|
972
|
+
type MenuProps = Props$h & NativeAttrs$h & {
|
|
884
973
|
items?: MenuItemType[];
|
|
885
974
|
};
|
|
886
975
|
declare const Menu: React.FC<MenuProps>;
|
|
@@ -967,8 +1056,8 @@ interface SelectMultipleProps<TSelectItem extends SelectItem, TSelectKeyField ex
|
|
|
967
1056
|
onChange?: (value: TSelectItem[]) => void;
|
|
968
1057
|
onValueChange?: (value: TSelectItem[TSelectKeyField][]) => void;
|
|
969
1058
|
}
|
|
970
|
-
type NativeAttrs$
|
|
971
|
-
type Props$
|
|
1059
|
+
type NativeAttrs$g<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$g<TSelectItem, TSelectKeyField>>;
|
|
1060
|
+
type Props$g<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = {
|
|
972
1061
|
data: TSelectItem[];
|
|
973
1062
|
keyField?: TSelectKeyField;
|
|
974
1063
|
textField?: keyof TSelectItem;
|
|
@@ -987,7 +1076,7 @@ type Props$e<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyFi
|
|
|
987
1076
|
renderItem?: (item: TSelectItem, props: ListItemProps) => React.ReactNode;
|
|
988
1077
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
989
1078
|
} & (SelectSingleProps<TSelectItem, TSelectKeyField> | SelectMultipleProps<TSelectItem, TSelectKeyField>);
|
|
990
|
-
type SelectProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Props$
|
|
1079
|
+
type SelectProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Props$g<TSelectItem, TSelectKeyField> & NativeAttrs$g<TSelectItem, TSelectKeyField>;
|
|
991
1080
|
|
|
992
1081
|
declare const Select: <TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = "key">(props: SelectProps<TSelectItem, TSelectKeyField>) => react_jsx_runtime.JSX.Element;
|
|
993
1082
|
|
|
@@ -996,19 +1085,20 @@ type ColorScheme = 'default' | 'light' | 'dark';
|
|
|
996
1085
|
type SwitchSize = 'sm' | 'md' | 'lg';
|
|
997
1086
|
type SwitchLabelPlacement = 'before' | 'after';
|
|
998
1087
|
|
|
999
|
-
interface Props$
|
|
1088
|
+
interface Props$f {
|
|
1000
1089
|
size?: SwitchSize;
|
|
1001
1090
|
labelPlacement?: SwitchLabelPlacement;
|
|
1002
1091
|
colorScheme?: ColorScheme;
|
|
1003
1092
|
}
|
|
1004
|
-
type NativeAttrs$
|
|
1005
|
-
type SwitchProps = Props$
|
|
1006
|
-
declare const Switch: react.ForwardRefExoticComponent<Props$
|
|
1093
|
+
type NativeAttrs$f = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$f | 'value' | 'defaultValue'>;
|
|
1094
|
+
type SwitchProps = Props$f & NativeAttrs$f;
|
|
1095
|
+
declare const Switch: react.ForwardRefExoticComponent<Props$f & NativeAttrs$f & react.RefAttributes<HTMLInputElement>>;
|
|
1007
1096
|
|
|
1097
|
+
type TabsVariant = 'underlined' | 'outlined' | 'pills';
|
|
1008
1098
|
type TabValue = string | number | symbol;
|
|
1009
1099
|
type TabsAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1010
1100
|
|
|
1011
|
-
interface Props$
|
|
1101
|
+
interface Props$e<TTabValue extends TabValue = TabValue> {
|
|
1012
1102
|
/**
|
|
1013
1103
|
* The HTML element type or React component to render as the tab.
|
|
1014
1104
|
*/
|
|
@@ -1034,11 +1124,11 @@ interface Props$c<TTabValue extends TabValue = TabValue> {
|
|
|
1034
1124
|
*/
|
|
1035
1125
|
endContent?: React.ReactNode;
|
|
1036
1126
|
}
|
|
1037
|
-
type NativeAttrs$
|
|
1038
|
-
type TabProps<TTabValue extends TabValue = TabValue> = Props$
|
|
1039
|
-
declare const Tab: react.ForwardRefExoticComponent<Props$
|
|
1127
|
+
type NativeAttrs$e = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$e>;
|
|
1128
|
+
type TabProps<TTabValue extends TabValue = TabValue> = Props$e<TTabValue> & NativeAttrs$e;
|
|
1129
|
+
declare const Tab: react.ForwardRefExoticComponent<Props$e<TabValue> & NativeAttrs$e & react.RefAttributes<HTMLDivElement>>;
|
|
1040
1130
|
|
|
1041
|
-
interface Props$
|
|
1131
|
+
interface Props$d<TTabValue extends TabValue = TabValue> {
|
|
1042
1132
|
/**
|
|
1043
1133
|
* The currently selected value of the tabs.
|
|
1044
1134
|
*/
|
|
@@ -1047,6 +1137,7 @@ interface Props$b<TTabValue extends TabValue = TabValue> {
|
|
|
1047
1137
|
* The default value of the tabs when initially rendered.
|
|
1048
1138
|
*/
|
|
1049
1139
|
defaultValue?: TTabValue;
|
|
1140
|
+
variant?: TabsVariant;
|
|
1050
1141
|
/**
|
|
1051
1142
|
* The alignment of the tabs.
|
|
1052
1143
|
*/
|
|
@@ -1060,11 +1151,11 @@ interface Props$b<TTabValue extends TabValue = TabValue> {
|
|
|
1060
1151
|
*/
|
|
1061
1152
|
onClose?: (value: TTabValue) => void;
|
|
1062
1153
|
}
|
|
1063
|
-
type NativeAttrs$
|
|
1064
|
-
type TabsProps<TTabValue extends TabValue = TabValue> = Props$
|
|
1065
|
-
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$
|
|
1154
|
+
type NativeAttrs$d = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$d>;
|
|
1155
|
+
type TabsProps<TTabValue extends TabValue = TabValue> = Props$d<TTabValue> & NativeAttrs$d;
|
|
1156
|
+
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$d<TTabValue> & NativeAttrs$d & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1066
1157
|
|
|
1067
|
-
interface Props$
|
|
1158
|
+
interface Props$c {
|
|
1068
1159
|
inputRef?: React.RefObject<HTMLInputElement>;
|
|
1069
1160
|
variant?: InputVariant;
|
|
1070
1161
|
color?: InputColor;
|
|
@@ -1073,13 +1164,13 @@ interface Props$a {
|
|
|
1073
1164
|
endContent?: React.ReactNode;
|
|
1074
1165
|
css?: BoxCSS;
|
|
1075
1166
|
}
|
|
1076
|
-
type NativeAttrs$
|
|
1077
|
-
type TextInputProps = Props$
|
|
1078
|
-
declare const TextInput: react.ForwardRefExoticComponent<Props$
|
|
1167
|
+
type NativeAttrs$c = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$c>;
|
|
1168
|
+
type TextInputProps = Props$c & NativeAttrs$c;
|
|
1169
|
+
declare const TextInput: react.ForwardRefExoticComponent<Props$c & NativeAttrs$c & react.RefAttributes<HTMLInputElement>>;
|
|
1079
1170
|
|
|
1080
1171
|
type ToolbarSize = 'auto' | 'sm' | 'md' | 'lg';
|
|
1081
1172
|
|
|
1082
|
-
interface Props$
|
|
1173
|
+
interface Props$b {
|
|
1083
1174
|
size?: ToolbarSize;
|
|
1084
1175
|
title?: React.ReactNode;
|
|
1085
1176
|
subtitle?: React.ReactNode;
|
|
@@ -1101,8 +1192,8 @@ interface Props$9 {
|
|
|
1101
1192
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1102
1193
|
};
|
|
1103
1194
|
}
|
|
1104
|
-
type NativeAttrs$
|
|
1105
|
-
type ToolbarProps = Props$
|
|
1195
|
+
type NativeAttrs$b = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$b>;
|
|
1196
|
+
type ToolbarProps = Props$b & NativeAttrs$b;
|
|
1106
1197
|
declare const Toolbar: React.FC<ToolbarProps>;
|
|
1107
1198
|
|
|
1108
1199
|
interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -1117,32 +1208,33 @@ interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
1117
1208
|
}
|
|
1118
1209
|
declare const Transition: react.ForwardRefExoticComponent<TransitionProps & react.RefAttributes<HTMLElement>>;
|
|
1119
1210
|
|
|
1120
|
-
interface Props$
|
|
1211
|
+
interface Props$a {
|
|
1121
1212
|
/**
|
|
1122
1213
|
* The HTML element type or React component to render as the tab.
|
|
1123
1214
|
*/
|
|
1124
1215
|
as?: React.ElementType;
|
|
1125
1216
|
width?: number;
|
|
1126
1217
|
}
|
|
1127
|
-
type NativeAttrs$
|
|
1128
|
-
type SwipeItemProps = Props$
|
|
1129
|
-
declare const SwipeItem: react.ForwardRefExoticComponent<Props$
|
|
1218
|
+
type NativeAttrs$a = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$a>;
|
|
1219
|
+
type SwipeItemProps = Props$a & NativeAttrs$a;
|
|
1220
|
+
declare const SwipeItem: react.ForwardRefExoticComponent<Props$a & NativeAttrs$a & {
|
|
1130
1221
|
children?: react.ReactNode | undefined;
|
|
1131
1222
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1132
1223
|
|
|
1133
1224
|
type SwiperAlignmet = 'start' | 'center' | 'end';
|
|
1134
1225
|
|
|
1135
|
-
interface Props$
|
|
1226
|
+
interface Props$9 {
|
|
1136
1227
|
gap?: number;
|
|
1137
1228
|
alignment?: SwiperAlignmet;
|
|
1138
1229
|
autoHide?: boolean;
|
|
1139
1230
|
slotProps?: {
|
|
1231
|
+
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
1140
1232
|
arrowLeftButton?: ButtonProps;
|
|
1141
1233
|
arrowRightButton?: ButtonProps;
|
|
1142
1234
|
};
|
|
1143
1235
|
}
|
|
1144
|
-
type NativeAttrs$
|
|
1145
|
-
type SwipeProps = Props$
|
|
1236
|
+
type NativeAttrs$9 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$9>;
|
|
1237
|
+
type SwipeProps = Props$9 & NativeAttrs$9;
|
|
1146
1238
|
declare const Swipe: React.FC<SwipeProps>;
|
|
1147
1239
|
|
|
1148
1240
|
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
@@ -1154,7 +1246,7 @@ interface ModalClose {
|
|
|
1154
1246
|
type ModalScrollBehavior = 'inside' | 'outside';
|
|
1155
1247
|
type ModalBackdrop = BackdropVariant;
|
|
1156
1248
|
|
|
1157
|
-
interface Props$
|
|
1249
|
+
interface Props$8 {
|
|
1158
1250
|
isOpen: boolean;
|
|
1159
1251
|
size?: ModalSize;
|
|
1160
1252
|
backdrop?: ModalBackdrop;
|
|
@@ -1169,9 +1261,9 @@ interface Props$6 {
|
|
|
1169
1261
|
onClose: () => void;
|
|
1170
1262
|
onAfterClose?: () => void;
|
|
1171
1263
|
}
|
|
1172
|
-
type NativeAttrs$
|
|
1173
|
-
type ModalProps = Props$
|
|
1174
|
-
declare const Modal: react.ForwardRefExoticComponent<Props$
|
|
1264
|
+
type NativeAttrs$8 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$8>;
|
|
1265
|
+
type ModalProps = Props$8 & NativeAttrs$8;
|
|
1266
|
+
declare const Modal: react.ForwardRefExoticComponent<Props$8 & NativeAttrs$8 & react.RefAttributes<HTMLDivElement>>;
|
|
1175
1267
|
|
|
1176
1268
|
type ModalBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
1177
1269
|
declare const ModalBody: React.FC<ModalBodyProps>;
|
|
@@ -1185,15 +1277,15 @@ interface ModalContextValue {
|
|
|
1185
1277
|
}
|
|
1186
1278
|
declare function useModal(): ModalContextValue;
|
|
1187
1279
|
|
|
1188
|
-
interface Props$
|
|
1280
|
+
interface Props$7 {
|
|
1189
1281
|
as?: React.ElementType;
|
|
1190
1282
|
bordered?: boolean;
|
|
1191
1283
|
}
|
|
1192
|
-
type NativeAttrs$
|
|
1193
|
-
type ModalFooterProps = Props$
|
|
1194
|
-
declare const ModalFooter: react.ForwardRefExoticComponent<Props$
|
|
1284
|
+
type NativeAttrs$7 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$7>;
|
|
1285
|
+
type ModalFooterProps = Props$7 & NativeAttrs$7;
|
|
1286
|
+
declare const ModalFooter: react.ForwardRefExoticComponent<Props$7 & NativeAttrs$7 & react.RefAttributes<HTMLDivElement>>;
|
|
1195
1287
|
|
|
1196
|
-
interface Props$
|
|
1288
|
+
interface Props$6 {
|
|
1197
1289
|
as?: React.ElementType;
|
|
1198
1290
|
title?: React.ReactNode;
|
|
1199
1291
|
subtitle?: React.ReactNode;
|
|
@@ -1209,9 +1301,9 @@ interface Props$4 {
|
|
|
1209
1301
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1210
1302
|
};
|
|
1211
1303
|
}
|
|
1212
|
-
type NativeAttrs$
|
|
1213
|
-
type ModalHeaderProps = Props$
|
|
1214
|
-
declare const ModalHeader: react.ForwardRefExoticComponent<Props$
|
|
1304
|
+
type NativeAttrs$6 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$6>;
|
|
1305
|
+
type ModalHeaderProps = Props$6 & NativeAttrs$6;
|
|
1306
|
+
declare const ModalHeader: react.ForwardRefExoticComponent<Props$6 & NativeAttrs$6 & react.RefAttributes<HTMLDivElement>>;
|
|
1215
1307
|
|
|
1216
1308
|
type CheckboxValue = string | number | symbol;
|
|
1217
1309
|
type CheckboxSize = 'sm' | 'md' | 'lg';
|
|
@@ -1219,17 +1311,17 @@ type CheckboxLabelPlacement = 'before' | 'after';
|
|
|
1219
1311
|
type CheckboxGroupDirection = 'row' | 'col';
|
|
1220
1312
|
type CheckboxGroupAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1221
1313
|
|
|
1222
|
-
interface Props$
|
|
1314
|
+
interface Props$5<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1223
1315
|
value?: TCheckboxValue;
|
|
1224
1316
|
size?: CheckboxSize;
|
|
1225
1317
|
labelPlacement?: CheckboxLabelPlacement;
|
|
1226
1318
|
colorScheme?: ColorScheme;
|
|
1227
1319
|
}
|
|
1228
|
-
type NativeAttrs$
|
|
1229
|
-
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$
|
|
1230
|
-
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$
|
|
1320
|
+
type NativeAttrs$5 = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$5 | 'defaultValue'>;
|
|
1321
|
+
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$5<TCheckboxValue> & NativeAttrs$5;
|
|
1322
|
+
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$5<TCheckboxValue> & NativeAttrs$5 & react.RefAttributes<HTMLInputElement>) => ReturnType<React.FunctionComponent>;
|
|
1231
1323
|
|
|
1232
|
-
interface Props$
|
|
1324
|
+
interface Props$4<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1233
1325
|
value?: TCheckboxValue[];
|
|
1234
1326
|
defaultValue?: TCheckboxValue[];
|
|
1235
1327
|
disabled?: boolean;
|
|
@@ -1241,9 +1333,9 @@ interface Props$2<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
|
1241
1333
|
colorScheme?: ColorScheme;
|
|
1242
1334
|
onChange?: (value: TCheckboxValue[]) => void;
|
|
1243
1335
|
}
|
|
1244
|
-
type NativeAttrs$
|
|
1245
|
-
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$
|
|
1246
|
-
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$
|
|
1336
|
+
type NativeAttrs$4 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$4>;
|
|
1337
|
+
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$4<TCheckboxValue> & NativeAttrs$4;
|
|
1338
|
+
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$4<TCheckboxValue> & NativeAttrs$4 & react.RefAttributes<HTMLTableElement>) => ReturnType<React.FunctionComponent>;
|
|
1247
1339
|
|
|
1248
1340
|
interface CheckboxGroupContextValue<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1249
1341
|
value: TCheckboxValue[];
|
|
@@ -1263,7 +1355,7 @@ type RadioLabelPlacement = 'before' | 'after';
|
|
|
1263
1355
|
type RadioGroupDirection = 'row' | 'col';
|
|
1264
1356
|
type RadioGroupAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1265
1357
|
|
|
1266
|
-
interface Props$
|
|
1358
|
+
interface Props$3<TRadioValue extends RadioValue = RadioValue> {
|
|
1267
1359
|
value?: TRadioValue;
|
|
1268
1360
|
disabled?: boolean;
|
|
1269
1361
|
readOnly?: boolean;
|
|
@@ -1271,11 +1363,11 @@ interface Props$1<TRadioValue extends RadioValue = RadioValue> {
|
|
|
1271
1363
|
labelPlacement?: RadioLabelPlacement;
|
|
1272
1364
|
colorScheme?: ColorScheme;
|
|
1273
1365
|
}
|
|
1274
|
-
type NativeAttrs$
|
|
1275
|
-
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$
|
|
1276
|
-
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$
|
|
1366
|
+
type NativeAttrs$3 = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$3 | 'defaultValue' | 'checked' | 'defaultChecked' | 'onChange'>;
|
|
1367
|
+
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$3<TRadioValue> & NativeAttrs$3;
|
|
1368
|
+
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$3<TRadioValue> & NativeAttrs$3 & react.RefAttributes<HTMLInputElement>) => ReturnType<React.FunctionComponent>;
|
|
1277
1369
|
|
|
1278
|
-
interface Props<TRadioValue extends RadioValue = RadioValue> {
|
|
1370
|
+
interface Props$2<TRadioValue extends RadioValue = RadioValue> {
|
|
1279
1371
|
name?: string;
|
|
1280
1372
|
value?: TRadioValue;
|
|
1281
1373
|
defaultValue?: TRadioValue;
|
|
@@ -1288,9 +1380,9 @@ interface Props<TRadioValue extends RadioValue = RadioValue> {
|
|
|
1288
1380
|
colorScheme?: ColorScheme;
|
|
1289
1381
|
onChange?: (value: TRadioValue) => void;
|
|
1290
1382
|
}
|
|
1291
|
-
type NativeAttrs = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props>;
|
|
1292
|
-
type RadioGroupProps<TRadioValue extends RadioValue = RadioValue> = Props<TRadioValue> & NativeAttrs;
|
|
1293
|
-
declare const RadioGroup: <TRadioValue extends RadioValue = RadioValue>(props: Props<TRadioValue> & NativeAttrs & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1383
|
+
type NativeAttrs$2 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$2>;
|
|
1384
|
+
type RadioGroupProps<TRadioValue extends RadioValue = RadioValue> = Props$2<TRadioValue> & NativeAttrs$2;
|
|
1385
|
+
declare const RadioGroup: <TRadioValue extends RadioValue = RadioValue>(props: Props$2<TRadioValue> & NativeAttrs$2 & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1294
1386
|
|
|
1295
1387
|
interface RadioGroupContextValue {
|
|
1296
1388
|
name: string;
|
|
@@ -1305,6 +1397,88 @@ interface RadioGroupContextValue {
|
|
|
1305
1397
|
}
|
|
1306
1398
|
declare const useRadioGroup: () => RadioGroupContextValue;
|
|
1307
1399
|
|
|
1400
|
+
type NavRailPlacement = 'left' | 'right';
|
|
1401
|
+
|
|
1402
|
+
interface Props$1 {
|
|
1403
|
+
startContent?: React.ReactNode;
|
|
1404
|
+
endContent?: React.ReactNode;
|
|
1405
|
+
placement?: NavRailPlacement;
|
|
1406
|
+
}
|
|
1407
|
+
type NativeAttrs$1 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$1>;
|
|
1408
|
+
type NavRailProps = Props$1 & NativeAttrs$1;
|
|
1409
|
+
declare const NavRail: React.FC<NavRailProps>;
|
|
1410
|
+
|
|
1411
|
+
interface Props {
|
|
1412
|
+
as?: React.ElementType;
|
|
1413
|
+
icon?: React.ReactNode;
|
|
1414
|
+
media?: React.ReactNode;
|
|
1415
|
+
label?: React.ReactNode;
|
|
1416
|
+
selected?: boolean;
|
|
1417
|
+
}
|
|
1418
|
+
type NativeAttrs = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props>;
|
|
1419
|
+
type NavRailItemProps = Props & NativeAttrs;
|
|
1420
|
+
declare const NavRailItem: react.ForwardRefExoticComponent<Props & NativeAttrs & react.RefAttributes<HTMLDivElement>>;
|
|
1421
|
+
|
|
1422
|
+
type DescriptionSpan = {
|
|
1423
|
+
xs?: number;
|
|
1424
|
+
sm?: number;
|
|
1425
|
+
md?: number;
|
|
1426
|
+
lg?: number;
|
|
1427
|
+
xl?: number;
|
|
1428
|
+
xxl?: number;
|
|
1429
|
+
};
|
|
1430
|
+
interface DescriptionItemString {
|
|
1431
|
+
type: 'string';
|
|
1432
|
+
value?: string;
|
|
1433
|
+
}
|
|
1434
|
+
interface DescriptionItemNumber {
|
|
1435
|
+
type: 'number';
|
|
1436
|
+
value?: number | string;
|
|
1437
|
+
}
|
|
1438
|
+
interface DescriptionItemDate {
|
|
1439
|
+
type: 'date';
|
|
1440
|
+
value?: Date | string | number;
|
|
1441
|
+
format?: 'date' | 'datetime' | 'time';
|
|
1442
|
+
locales?: Intl.LocalesArgument;
|
|
1443
|
+
options?: Intl.DateTimeFormatOptions;
|
|
1444
|
+
}
|
|
1445
|
+
interface DescriptionItemBoolean {
|
|
1446
|
+
type: 'boolean';
|
|
1447
|
+
value?: boolean;
|
|
1448
|
+
labels?: {
|
|
1449
|
+
true?: string;
|
|
1450
|
+
false?: string;
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
interface DescriptionItemCurrency {
|
|
1454
|
+
type: 'currency';
|
|
1455
|
+
value?: number | bigint | Intl.StringNumericLiteral;
|
|
1456
|
+
currency?: string;
|
|
1457
|
+
locales?: Intl.LocalesArgument;
|
|
1458
|
+
options?: Intl.NumberFormatOptions;
|
|
1459
|
+
}
|
|
1460
|
+
interface DescriptionItemPercent {
|
|
1461
|
+
type: 'percent';
|
|
1462
|
+
value?: number | string;
|
|
1463
|
+
decimals?: number;
|
|
1464
|
+
locales?: Intl.LocalesArgument;
|
|
1465
|
+
options?: Intl.NumberFormatOptions;
|
|
1466
|
+
}
|
|
1467
|
+
type DescriptionItem = {
|
|
1468
|
+
name: React.ReactNode;
|
|
1469
|
+
span?: number | DescriptionSpan;
|
|
1470
|
+
} & (DescriptionItemString | DescriptionItemNumber | DescriptionItemDate | DescriptionItemBoolean | DescriptionItemCurrency | DescriptionItemPercent);
|
|
1471
|
+
|
|
1472
|
+
interface DescriptionsProps {
|
|
1473
|
+
items: DescriptionItem[];
|
|
1474
|
+
}
|
|
1475
|
+
declare const Descriptions: React.FC<DescriptionsProps>;
|
|
1476
|
+
|
|
1477
|
+
interface DescriptionProps {
|
|
1478
|
+
item: DescriptionItem;
|
|
1479
|
+
}
|
|
1480
|
+
declare const Description: React.FC<DescriptionProps>;
|
|
1481
|
+
|
|
1308
1482
|
declare const scrollToItem: (parentElement: Element, currentElement: Element) => void;
|
|
1309
1483
|
|
|
1310
1484
|
type ClassDictionary = Record<string, any>;
|
|
@@ -1316,4 +1490,11 @@ type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>;
|
|
|
1316
1490
|
declare function assignRef<T = any>(ref: ReactRef<T> | null | undefined, value: T): void;
|
|
1317
1491
|
declare function mergeRefs<T>(...refs: (ReactRef<T> | null | undefined)[]): (node: T | null) => void;
|
|
1318
1492
|
|
|
1319
|
-
|
|
1493
|
+
declare function formatDate(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1494
|
+
declare function formatFullDataTime(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1495
|
+
declare function formatShortDateTime(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1496
|
+
declare function formatShortDate(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1497
|
+
declare function formatCurrency(value: number | bigint | Intl.StringNumericLiteral, currency?: string, locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
|
1498
|
+
declare function formatPercent(value: any, decimals?: number, locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
|
1499
|
+
|
|
1500
|
+
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 AutocompleteItem, type AutocompleteKeyField, type AutocompleteMultipleProps, type AutocompleteProps, type AutocompleteSingleProps, 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, CheckboxGroup, type CheckboxGroupAlignment, 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, type DescriptionItem, type DescriptionProps, type DescriptionSpan, Descriptions, type DescriptionsProps, 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, Icon, type IconColor, type IconProps, type IconSize, type InfiniteData, type InfiniteQueryFunction, type InfiniteQueryOptions, type InfiniteQueryRefetchOptions, type InputColor, type InputSize, type InputVariant, List, ListGroup, type ListGroupProps, ListItem, type ListItemProps, type ListProps, type ListSize, ListSubheader, type ListSubheaderProps, 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, RadioGroup, type RadioGroupAlignment, type RadioGroupContextValue, type RadioGroupDirection, type RadioGroupProps, type RadioProps, type RadioSize, type RadioValue, type ReactRef, type Resize, Result, type ResultProps, type ResultStatus, type ScrollAlignment, ScrollArea, type ScrollAreaProps, type ScrollBehavior, type ScrollToOptions, Select, type SelectItem, type SelectKeyField, type SelectMultipleProps, type SelectProps, type SelectSingleProps, Swipe, SwipeItem, type SwipeItemProps, type SwipeProps, Switch, 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, type UseContainerMediaQueryOptions, type UseInfiniteQueryOptions, type UseInfiniteQueryResult, type UseMutationOptions, type UseMutationResult, type UseQueryOptions, type UseQueryResult, type UseResizeObserverOptions, type VirtualItem, type Virtualizer, type VirtualizerOptions, assignRef, clsx, formatCurrency, formatDate, formatFullDataTime, formatPercent, formatShortDate, formatShortDateTime, getOpenValuesByPathname, hasResizeObserver, mergeRefs, scrollToItem, useAccordion, useAccordionItem, useButtonGroup, useCheckboxGroup, useCollapse, useContainerMediaQuery, useDebounce, useDisclosure, useDrawer, useEffectEvent, useElementSize, useInfiniteQuery, useLocalStorage, useMediaQuery, useMenu, useMenuItemValue, useModal, useMutation, useOnClickOutside, usePopover, usePrevious, useQuery, useRadioGroup, useResizeObserver, useStep, useValueEffect, useVirtualizer };
|