@unifiedsoftware/react-ui 1.1.8 → 2.0.0-alpha.10
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 +534 -156
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,42 +3,86 @@ 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$J {
|
|
7
|
+
}
|
|
8
|
+
type NativeAttrs$L = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$J>;
|
|
9
|
+
type DividerProps = Props$J & NativeAttrs$L;
|
|
10
|
+
declare const Divider: react.ForwardRefExoticComponent<Props$J & NativeAttrs$L & react.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
|
|
12
|
+
type BoxShadow = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
13
|
+
type BorderRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
14
|
+
type TransitionDuration = 0 | 100 | 200 | 300;
|
|
15
|
+
type TransitionProperty = 'none' | 'all' | 'shadow';
|
|
16
|
+
type BoxState = 'base' | 'hover' | 'active';
|
|
17
|
+
type BoxProperties = {
|
|
18
|
+
shadow?: BoxShadow;
|
|
19
|
+
rounded?: BorderRadius;
|
|
20
|
+
transitionProperty?: TransitionProperty;
|
|
21
|
+
transitionDuration?: TransitionDuration;
|
|
22
|
+
};
|
|
23
|
+
type BoxApplyState<T> = T | {
|
|
24
|
+
[K in BoxState]?: T;
|
|
25
|
+
};
|
|
26
|
+
type BoxCSS = {
|
|
27
|
+
[K in keyof BoxProperties]: BoxApplyState<BoxProperties[K]>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
type AccordionSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
31
|
+
type AccordionVariant = 'plain' | 'flat' | 'tonal' | 'filled';
|
|
32
|
+
type AccordionColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
7
33
|
interface AccordionArrow {
|
|
8
34
|
isVisible?: boolean;
|
|
9
35
|
position?: 'start' | 'end';
|
|
10
36
|
}
|
|
11
37
|
|
|
12
|
-
interface Props$
|
|
38
|
+
interface Props$I {
|
|
13
39
|
value?: any[];
|
|
14
40
|
defaultValue?: any[];
|
|
15
41
|
expandMode?: 'single' | 'multiple';
|
|
16
42
|
size?: AccordionSize;
|
|
17
43
|
arrow?: AccordionArrow;
|
|
44
|
+
variant?: AccordionVariant;
|
|
45
|
+
color?: AccordionColor;
|
|
46
|
+
splitted?: boolean;
|
|
47
|
+
bordered?: boolean;
|
|
48
|
+
centered?: boolean;
|
|
49
|
+
css?: BoxCSS;
|
|
50
|
+
indicator?: ({ isOpen }: {
|
|
51
|
+
isOpen: boolean;
|
|
52
|
+
}) => React.ReactNode;
|
|
18
53
|
onChange?: (value: any[]) => void;
|
|
19
54
|
}
|
|
20
|
-
type NativeAttrs$
|
|
21
|
-
type AccordionProps = Props$
|
|
22
|
-
declare const Accordion: react.ForwardRefExoticComponent<Props$
|
|
55
|
+
type NativeAttrs$K = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$I>;
|
|
56
|
+
type AccordionProps = Props$I & NativeAttrs$K;
|
|
57
|
+
declare const Accordion: react.ForwardRefExoticComponent<Props$I & NativeAttrs$K & react.RefAttributes<HTMLDivElement>>;
|
|
23
58
|
|
|
24
59
|
interface AccordionItemContextValue {
|
|
25
60
|
value: string;
|
|
61
|
+
indicator?: ({ isOpen }: {
|
|
62
|
+
isOpen: boolean;
|
|
63
|
+
}) => React.ReactNode;
|
|
26
64
|
}
|
|
27
65
|
declare const useAccordionItem: () => AccordionItemContextValue;
|
|
28
|
-
interface Props$
|
|
66
|
+
interface Props$H {
|
|
29
67
|
value?: any;
|
|
68
|
+
variant?: AccordionVariant;
|
|
69
|
+
color?: AccordionColor;
|
|
70
|
+
indicator?: ({ isOpen }: {
|
|
71
|
+
isOpen: boolean;
|
|
72
|
+
}) => React.ReactNode;
|
|
30
73
|
}
|
|
31
|
-
type NativeAttrs$
|
|
32
|
-
type AccordionItemProps = Props$
|
|
33
|
-
declare const AccordionItem: react.ForwardRefExoticComponent<Props$
|
|
74
|
+
type NativeAttrs$J = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$H>;
|
|
75
|
+
type AccordionItemProps = Props$H & NativeAttrs$J;
|
|
76
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<Props$H & NativeAttrs$J & react.RefAttributes<HTMLDivElement>>;
|
|
34
77
|
|
|
35
|
-
interface Props$
|
|
78
|
+
interface Props$G {
|
|
36
79
|
as?: React.ElementType;
|
|
37
80
|
title?: React.ReactNode;
|
|
38
81
|
subtitle?: React.ReactNode;
|
|
39
82
|
startContent?: React.ReactNode;
|
|
40
83
|
endContent?: React.ReactNode;
|
|
41
84
|
bordered?: boolean;
|
|
85
|
+
centered?: boolean;
|
|
42
86
|
collapsible?: boolean;
|
|
43
87
|
arrow?: AccordionArrow;
|
|
44
88
|
slotProps?: {
|
|
@@ -49,9 +93,9 @@ interface Props$w {
|
|
|
49
93
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
50
94
|
};
|
|
51
95
|
}
|
|
52
|
-
type NativeAttrs$
|
|
53
|
-
type AccordionHeaderProps = Props$
|
|
54
|
-
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$
|
|
96
|
+
type NativeAttrs$I = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$G>;
|
|
97
|
+
type AccordionHeaderProps = Props$G & NativeAttrs$I;
|
|
98
|
+
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$G & NativeAttrs$I & react.RefAttributes<HTMLDivElement>>;
|
|
55
99
|
|
|
56
100
|
type AccordionBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
57
101
|
declare const AccordionBody: react.ForwardRefExoticComponent<AccordionBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -68,6 +112,14 @@ interface AccordionContextValue {
|
|
|
68
112
|
value: any[];
|
|
69
113
|
expandMode: 'single' | 'multiple';
|
|
70
114
|
arrow: AccordionArrow;
|
|
115
|
+
variant: AccordionVariant;
|
|
116
|
+
color: AccordionColor;
|
|
117
|
+
splitted?: boolean;
|
|
118
|
+
centered?: boolean;
|
|
119
|
+
css?: BoxCSS;
|
|
120
|
+
indicator?: ({ isOpen }: {
|
|
121
|
+
isOpen: boolean;
|
|
122
|
+
}) => React.ReactNode;
|
|
71
123
|
onChange: (value: any[]) => void;
|
|
72
124
|
}
|
|
73
125
|
declare const AccordionContext: react.Context<AccordionContextValue | null>;
|
|
@@ -304,10 +356,104 @@ declare function useEffectEvent<T extends Function>(fn: T): T;
|
|
|
304
356
|
type SetValueAction<S> = (prev: S) => Generator<any, void, unknown>;
|
|
305
357
|
declare function useValueEffect<S>(defaultValue: S | (() => S)): [S, Dispatch<SetValueAction<S>>];
|
|
306
358
|
|
|
359
|
+
declare const defaultBreakpoints: {
|
|
360
|
+
readonly xs: 0;
|
|
361
|
+
readonly sm: 576;
|
|
362
|
+
readonly md: 768;
|
|
363
|
+
readonly lg: 992;
|
|
364
|
+
readonly xl: 1200;
|
|
365
|
+
readonly '2xl': 1400;
|
|
366
|
+
};
|
|
367
|
+
declare const breakpointsMap: readonly [{
|
|
368
|
+
readonly key: "2xl";
|
|
369
|
+
readonly mq: (typeof ContainerMediaQuery)["2XL"];
|
|
370
|
+
}, {
|
|
371
|
+
readonly key: "xl";
|
|
372
|
+
readonly mq: ContainerMediaQuery.XL;
|
|
373
|
+
}, {
|
|
374
|
+
readonly key: "lg";
|
|
375
|
+
readonly mq: ContainerMediaQuery.LG;
|
|
376
|
+
}, {
|
|
377
|
+
readonly key: "md";
|
|
378
|
+
readonly mq: ContainerMediaQuery.MD;
|
|
379
|
+
}, {
|
|
380
|
+
readonly key: "sm";
|
|
381
|
+
readonly mq: ContainerMediaQuery.SM;
|
|
382
|
+
}, {
|
|
383
|
+
readonly key: "xs";
|
|
384
|
+
readonly mq: ContainerMediaQuery.XS;
|
|
385
|
+
}];
|
|
386
|
+
|
|
387
|
+
declare enum ContainerMediaQuery {
|
|
388
|
+
XS = 0,
|
|
389
|
+
SM = 1,
|
|
390
|
+
MD = 2,
|
|
391
|
+
LG = 3,
|
|
392
|
+
XL = 4,
|
|
393
|
+
'2XL' = 5
|
|
394
|
+
}
|
|
395
|
+
type ContainerBreakpoints = typeof defaultBreakpoints;
|
|
396
|
+
|
|
397
|
+
interface UseContainerMediaQueryOptions<TElement extends HTMLElement = HTMLElement> {
|
|
398
|
+
ref: React.MutableRefObject<TElement | null>;
|
|
399
|
+
breakpoints?: Partial<ContainerBreakpoints>;
|
|
400
|
+
}
|
|
401
|
+
declare function useContainerMediaQuery<TElement extends HTMLElement = HTMLElement>(options: UseContainerMediaQueryOptions<TElement>): ContainerMediaQuery | undefined;
|
|
402
|
+
|
|
403
|
+
interface FormatStringOptions {
|
|
404
|
+
type?: 'string';
|
|
405
|
+
value?: string | null;
|
|
406
|
+
}
|
|
407
|
+
interface FormatNumberOptions {
|
|
408
|
+
type: 'number';
|
|
409
|
+
value?: number | string | null;
|
|
410
|
+
}
|
|
411
|
+
interface FormatDateOptions {
|
|
412
|
+
type: 'date';
|
|
413
|
+
value?: Date | string | number | null;
|
|
414
|
+
format?: 'datetime' | 'short datetime' | 'date' | 'time';
|
|
415
|
+
locales?: Intl.LocalesArgument;
|
|
416
|
+
options?: Intl.DateTimeFormatOptions;
|
|
417
|
+
}
|
|
418
|
+
interface FormatBooleanOptions {
|
|
419
|
+
type: 'boolean';
|
|
420
|
+
value?: boolean | null;
|
|
421
|
+
labels?: {
|
|
422
|
+
true?: string;
|
|
423
|
+
false?: string;
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
interface FormatCurrencyOptions {
|
|
427
|
+
type: 'currency';
|
|
428
|
+
value?: number | bigint | Intl.StringNumericLiteral | null;
|
|
429
|
+
currency?: string;
|
|
430
|
+
locales?: Intl.LocalesArgument;
|
|
431
|
+
options?: Intl.NumberFormatOptions;
|
|
432
|
+
}
|
|
433
|
+
interface FormatPercentOptions {
|
|
434
|
+
type: 'percent';
|
|
435
|
+
value?: number | string | null;
|
|
436
|
+
decimals?: number;
|
|
437
|
+
locales?: Intl.LocalesArgument;
|
|
438
|
+
options?: Intl.NumberFormatOptions;
|
|
439
|
+
}
|
|
440
|
+
type FormatOptions = FormatStringOptions | FormatNumberOptions | FormatDateOptions | FormatBooleanOptions | FormatCurrencyOptions | FormatPercentOptions;
|
|
441
|
+
|
|
442
|
+
declare function useFormat(options: FormatOptions): {
|
|
443
|
+
value: string | undefined;
|
|
444
|
+
getValue: (value: any) => string | undefined;
|
|
445
|
+
};
|
|
446
|
+
|
|
307
447
|
type InputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
308
448
|
type InputColor = 'light' | 'dark' | 'inherit';
|
|
309
449
|
type InputVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
310
450
|
|
|
451
|
+
interface Props$F {
|
|
452
|
+
}
|
|
453
|
+
type NativeAttrs$H = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$F>;
|
|
454
|
+
type InputGroupProps = Props$F & NativeAttrs$H;
|
|
455
|
+
declare const InputGroup: react.ForwardRefExoticComponent<Props$F & NativeAttrs$H & react.RefAttributes<HTMLDivElement>>;
|
|
456
|
+
|
|
311
457
|
type ListSize = 'sm' | 'md' | 'lg';
|
|
312
458
|
|
|
313
459
|
interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -316,7 +462,7 @@ interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
316
462
|
}
|
|
317
463
|
declare const List: react.ForwardRefExoticComponent<ListProps & react.RefAttributes<HTMLDivElement>>;
|
|
318
464
|
|
|
319
|
-
interface Props$
|
|
465
|
+
interface Props$E {
|
|
320
466
|
as?: react__default.ElementType;
|
|
321
467
|
title?: react__default.ReactNode;
|
|
322
468
|
subtitle?: react__default.ReactNode;
|
|
@@ -334,11 +480,11 @@ interface Props$v {
|
|
|
334
480
|
subtitle?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
335
481
|
};
|
|
336
482
|
}
|
|
337
|
-
type NativeAttrs$
|
|
338
|
-
type ListItemProps = Props$
|
|
339
|
-
declare const ListItem: react__default.ForwardRefExoticComponent<Props$
|
|
483
|
+
type NativeAttrs$G = Omit<react__default.HTMLAttributes<HTMLDivElement>, keyof Props$E>;
|
|
484
|
+
type ListItemProps = Props$E & NativeAttrs$G;
|
|
485
|
+
declare const ListItem: react__default.ForwardRefExoticComponent<Props$E & NativeAttrs$G & react__default.RefAttributes<HTMLDivElement>>;
|
|
340
486
|
|
|
341
|
-
interface Props$
|
|
487
|
+
interface Props$D {
|
|
342
488
|
expandVisible?: boolean;
|
|
343
489
|
expandPosition?: 'start' | 'end';
|
|
344
490
|
isOpen?: boolean;
|
|
@@ -346,9 +492,9 @@ interface Props$u {
|
|
|
346
492
|
onClose?: () => void;
|
|
347
493
|
onToggle?: () => void;
|
|
348
494
|
}
|
|
349
|
-
type NativeAttrs$
|
|
350
|
-
type ListGroupProps = Props$
|
|
351
|
-
declare const ListGroup: react.ForwardRefExoticComponent<Props$
|
|
495
|
+
type NativeAttrs$F = Omit<ListItemProps, keyof Props$D>;
|
|
496
|
+
type ListGroupProps = Props$D & NativeAttrs$F;
|
|
497
|
+
declare const ListGroup: react.ForwardRefExoticComponent<Props$D & NativeAttrs$F & react.RefAttributes<HTMLDivElement>>;
|
|
352
498
|
|
|
353
499
|
interface ListSubheaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
354
500
|
as?: React.ElementType;
|
|
@@ -390,8 +536,8 @@ interface AutocompleteMultipleProps<TAutocompleteItem extends AutocompleteItem,
|
|
|
390
536
|
onChange?: (value: TAutocompleteItem[]) => void;
|
|
391
537
|
onValueChange?: (value: TAutocompleteItem[TAutocompleteKeyField][]) => void;
|
|
392
538
|
}
|
|
393
|
-
type NativeAttrs$
|
|
394
|
-
type Props$
|
|
539
|
+
type NativeAttrs$E<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$C<TAutocompleteItem, TAutocompleteKeyField>>;
|
|
540
|
+
type Props$C<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = {
|
|
395
541
|
data: TAutocompleteItem[];
|
|
396
542
|
keyField?: TAutocompleteKeyField;
|
|
397
543
|
textField?: keyof TAutocompleteItem;
|
|
@@ -412,14 +558,14 @@ type Props$t<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField e
|
|
|
412
558
|
renderItem?: (item: TAutocompleteItem, props: ListItemProps) => React.ReactNode;
|
|
413
559
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
414
560
|
} & (AutocompleteSingleProps<TAutocompleteItem, TAutocompleteKeyField> | AutocompleteMultipleProps<TAutocompleteItem, TAutocompleteKeyField>);
|
|
415
|
-
type AutocompleteProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Props$
|
|
561
|
+
type AutocompleteProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Props$C<TAutocompleteItem, TAutocompleteKeyField> & NativeAttrs$E<TAutocompleteItem, TAutocompleteKeyField>;
|
|
416
562
|
|
|
417
563
|
declare const Autocomplete: <TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = "key">(props: AutocompleteProps<TAutocompleteItem, TAutocompleteKeyField>) => react_jsx_runtime.JSX.Element;
|
|
418
564
|
|
|
419
565
|
type BackdropPlacement = 'top' | 'left' | 'center' | 'right' | 'bottom';
|
|
420
566
|
type BackdropVariant = 'opaque' | 'blur' | 'transparent';
|
|
421
567
|
|
|
422
|
-
interface Props$
|
|
568
|
+
interface Props$B {
|
|
423
569
|
isOpen: boolean;
|
|
424
570
|
closable?: boolean;
|
|
425
571
|
placement?: BackdropPlacement;
|
|
@@ -428,14 +574,14 @@ interface Props$s {
|
|
|
428
574
|
scrollArea?: boolean;
|
|
429
575
|
onClose(): void;
|
|
430
576
|
}
|
|
431
|
-
type NativeAttrs$
|
|
432
|
-
type BackdropProps = Props$
|
|
433
|
-
declare const Backdrop: react.ForwardRefExoticComponent<Props$
|
|
577
|
+
type NativeAttrs$D = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$B>;
|
|
578
|
+
type BackdropProps = Props$B & NativeAttrs$D;
|
|
579
|
+
declare const Backdrop: react.ForwardRefExoticComponent<Props$B & NativeAttrs$D & react.RefAttributes<HTMLDivElement>>;
|
|
434
580
|
|
|
435
581
|
type BadgeColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
436
582
|
type BadgePlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
437
583
|
|
|
438
|
-
interface Props$
|
|
584
|
+
interface Props$A {
|
|
439
585
|
/**
|
|
440
586
|
* The placement of the badge relative to its content.
|
|
441
587
|
*/
|
|
@@ -453,8 +599,8 @@ interface Props$r {
|
|
|
453
599
|
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
454
600
|
};
|
|
455
601
|
}
|
|
456
|
-
type NativeAttrs$
|
|
457
|
-
type BadgeProps = Props$
|
|
602
|
+
type NativeAttrs$C = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$A>;
|
|
603
|
+
type BadgeProps = Props$A & NativeAttrs$C;
|
|
458
604
|
declare const Badge: React.FC<BadgeProps>;
|
|
459
605
|
|
|
460
606
|
type DataListItem = Record<string, any>;
|
|
@@ -471,7 +617,7 @@ interface DataListMultipleProps<TDataListItem extends DataListItem, TDataListKey
|
|
|
471
617
|
onChange?: (value: TDataListItem[]) => void;
|
|
472
618
|
onValueChange?: (value: TDataListItem[TDataListKeyField][]) => void;
|
|
473
619
|
}
|
|
474
|
-
type Props$
|
|
620
|
+
type Props$z<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = {
|
|
475
621
|
data: TDataListItem[];
|
|
476
622
|
keyField?: TDataListKeyField;
|
|
477
623
|
textField?: keyof DataListItem;
|
|
@@ -486,17 +632,17 @@ type Props$q<TDataListItem extends DataListItem, TDataListKeyField extends DataL
|
|
|
486
632
|
renderItem?: (item: TDataListItem, props: ListItemProps$1) => React.ReactNode;
|
|
487
633
|
renderNoData?: (props: ResultProps$1) => React.ReactNode;
|
|
488
634
|
} & (DataListSingleProps<TDataListItem, TDataListKeyField> | DataListMultipleProps<TDataListItem, TDataListKeyField>);
|
|
489
|
-
type NativeAttrs$
|
|
490
|
-
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$
|
|
635
|
+
type NativeAttrs$B<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$z<TDataListItem, TDataListKeyField>>;
|
|
636
|
+
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$z<TDataListItem, TDataListKeyField> & NativeAttrs$B<TDataListItem, TDataListKeyField>;
|
|
491
637
|
|
|
492
638
|
declare const DataList: <TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = "key">(props: DataListProps<TDataListItem, TDataListKeyField>) => react_jsx_runtime.JSX.Element;
|
|
493
639
|
|
|
494
640
|
type ButtonVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
495
641
|
type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inherit';
|
|
496
|
-
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
642
|
+
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
497
643
|
type ButtonGroupDirection = 'row' | 'col';
|
|
498
644
|
|
|
499
|
-
interface Props$
|
|
645
|
+
interface Props$y {
|
|
500
646
|
/**
|
|
501
647
|
* The HTML element type or React component to render as the button.
|
|
502
648
|
*/
|
|
@@ -541,20 +687,20 @@ interface Props$p {
|
|
|
541
687
|
fontStyle?: React.CSSProperties['fontStyle'];
|
|
542
688
|
};
|
|
543
689
|
}
|
|
544
|
-
type NativeAttrs$
|
|
545
|
-
type ButtonProps = Props$
|
|
546
|
-
declare const Button: react.ForwardRefExoticComponent<Props$
|
|
690
|
+
type NativeAttrs$A = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof Props$y>;
|
|
691
|
+
type ButtonProps = Props$y & NativeAttrs$A;
|
|
692
|
+
declare const Button: react.ForwardRefExoticComponent<Props$y & NativeAttrs$A & react.RefAttributes<HTMLButtonElement>>;
|
|
547
693
|
|
|
548
|
-
interface Props$
|
|
694
|
+
interface Props$x {
|
|
549
695
|
direction?: ButtonGroupDirection;
|
|
550
696
|
variant?: ButtonVariant;
|
|
551
697
|
color?: ButtonColor;
|
|
552
698
|
size?: ButtonSize;
|
|
553
699
|
disabled?: boolean;
|
|
554
700
|
}
|
|
555
|
-
type NativeAttrs$
|
|
556
|
-
type ButtonGroupProps = Props$
|
|
557
|
-
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$
|
|
701
|
+
type NativeAttrs$z = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$x>;
|
|
702
|
+
type ButtonGroupProps = Props$x & NativeAttrs$z;
|
|
703
|
+
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$x & NativeAttrs$z & react.RefAttributes<HTMLDivElement>>;
|
|
558
704
|
|
|
559
705
|
interface ButtonGroupContextValue {
|
|
560
706
|
direction: ButtonGroupDirection;
|
|
@@ -566,74 +712,95 @@ interface ButtonGroupContextValue {
|
|
|
566
712
|
declare const ButtonGroupContext: react.Context<ButtonGroupContextValue | null>;
|
|
567
713
|
declare const useButtonGroup: () => ButtonGroupContextValue | null;
|
|
568
714
|
|
|
569
|
-
type
|
|
570
|
-
type BorderRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
571
|
-
type TransitionDuration = 0 | 100 | 200 | 300;
|
|
572
|
-
type TransitionProperty = 'none' | 'all' | 'shadow';
|
|
573
|
-
type BoxState = 'base' | 'hover' | 'active';
|
|
574
|
-
type BoxProperties = {
|
|
575
|
-
shadow?: BoxShadow;
|
|
576
|
-
rounded?: BorderRadius;
|
|
577
|
-
transitionProperty?: TransitionProperty;
|
|
578
|
-
transitionDuration?: TransitionDuration;
|
|
579
|
-
};
|
|
580
|
-
type BoxApplyState<T> = T | {
|
|
581
|
-
[K in BoxState]?: T;
|
|
582
|
-
};
|
|
583
|
-
type BoxCSS = {
|
|
584
|
-
[K in keyof BoxProperties]: BoxApplyState<BoxProperties[K]>;
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
type CardSize = 'sm' | 'md' | 'lg';
|
|
715
|
+
type CardSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
588
716
|
|
|
589
|
-
interface Props$
|
|
717
|
+
interface Props$w {
|
|
590
718
|
as?: React.ElementType;
|
|
591
719
|
size?: CardSize;
|
|
592
720
|
hoverable?: boolean;
|
|
593
721
|
selected?: boolean;
|
|
594
722
|
disabled?: boolean;
|
|
595
723
|
bordered?: boolean;
|
|
724
|
+
divider?: boolean;
|
|
596
725
|
css?: BoxCSS;
|
|
597
726
|
}
|
|
598
|
-
type NativeAttrs$
|
|
599
|
-
type CardProps = Props$
|
|
600
|
-
declare const Card: react.ForwardRefExoticComponent<Props$
|
|
727
|
+
type NativeAttrs$y = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$w>;
|
|
728
|
+
type CardProps = Props$w & NativeAttrs$y;
|
|
729
|
+
declare const Card: react.ForwardRefExoticComponent<Props$w & NativeAttrs$y & react.RefAttributes<HTMLDivElement>>;
|
|
601
730
|
|
|
602
731
|
type CardBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
603
732
|
declare const CardBody: react.ForwardRefExoticComponent<CardBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
604
733
|
|
|
605
|
-
interface Props$
|
|
734
|
+
interface Props$v {
|
|
606
735
|
as?: React.ElementType;
|
|
607
736
|
title?: React.ReactNode;
|
|
608
737
|
subtitle?: React.ReactNode;
|
|
609
738
|
startContent?: React.ReactNode;
|
|
610
739
|
endContent?: React.ReactNode;
|
|
740
|
+
/**
|
|
741
|
+
* @deprecated Use `underlined` instead
|
|
742
|
+
*/
|
|
611
743
|
bordered?: boolean;
|
|
744
|
+
underlined?: boolean;
|
|
745
|
+
centered?: boolean;
|
|
612
746
|
slotProps?: {
|
|
613
747
|
startContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
614
|
-
content?: React.HTMLAttributes<HTMLDivElement
|
|
748
|
+
content?: React.HTMLAttributes<HTMLDivElement> & {
|
|
749
|
+
layout?: 'inline' | 'block';
|
|
750
|
+
gap?: boolean;
|
|
751
|
+
};
|
|
615
752
|
endContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
616
753
|
title?: React.HTMLAttributes<HTMLDivElement>;
|
|
617
754
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
618
755
|
};
|
|
619
756
|
}
|
|
620
|
-
type NativeAttrs$
|
|
621
|
-
type CardHeaderProps = Props$
|
|
622
|
-
declare const CardHeader: react.ForwardRefExoticComponent<Props$
|
|
757
|
+
type NativeAttrs$x = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$v>;
|
|
758
|
+
type CardHeaderProps = Props$v & NativeAttrs$x;
|
|
759
|
+
declare const CardHeader: react.ForwardRefExoticComponent<Props$v & NativeAttrs$x & react.RefAttributes<HTMLDivElement>>;
|
|
623
760
|
|
|
624
|
-
interface Props$
|
|
761
|
+
interface Props$u {
|
|
625
762
|
as?: React.ElementType;
|
|
763
|
+
/**
|
|
764
|
+
* @deprecated Use `underlined` instead
|
|
765
|
+
*/
|
|
626
766
|
bordered?: boolean;
|
|
767
|
+
underlined?: boolean;
|
|
768
|
+
}
|
|
769
|
+
type NativeAttrs$w = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$u>;
|
|
770
|
+
type CardFooterProps = Props$u & NativeAttrs$w;
|
|
771
|
+
declare const CardFooter: react.ForwardRefExoticComponent<Props$u & NativeAttrs$w & react.RefAttributes<HTMLDivElement>>;
|
|
772
|
+
|
|
773
|
+
type CardMediaProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
774
|
+
topLeftContent?: React.ReactNode;
|
|
775
|
+
topRightContent?: React.ReactNode;
|
|
776
|
+
};
|
|
777
|
+
declare const CardMedia: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & {
|
|
778
|
+
topLeftContent?: React.ReactNode;
|
|
779
|
+
topRightContent?: React.ReactNode;
|
|
780
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
781
|
+
|
|
782
|
+
interface Props$t {
|
|
783
|
+
as?: React.ElementType;
|
|
784
|
+
centered?: boolean;
|
|
785
|
+
css?: BoxCSS;
|
|
786
|
+
}
|
|
787
|
+
type NativeAttrs$v = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$t>;
|
|
788
|
+
type CardTitleProps = Props$t & NativeAttrs$v;
|
|
789
|
+
declare const CardTitle: react.ForwardRefExoticComponent<Props$t & NativeAttrs$v & react.RefAttributes<HTMLDivElement>>;
|
|
790
|
+
|
|
791
|
+
interface Props$s {
|
|
792
|
+
as?: React.ElementType;
|
|
793
|
+
css?: BoxCSS;
|
|
627
794
|
}
|
|
628
|
-
type NativeAttrs$
|
|
629
|
-
type
|
|
630
|
-
declare const
|
|
795
|
+
type NativeAttrs$u = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$s>;
|
|
796
|
+
type CardSubtitleProps = Props$s & NativeAttrs$u;
|
|
797
|
+
declare const CardSubtitle: react.ForwardRefExoticComponent<Props$s & NativeAttrs$u & react.RefAttributes<HTMLDivElement>>;
|
|
631
798
|
|
|
632
799
|
type ChipVariant = 'filled' | 'outlined' | 'flat' | 'text' | 'plain';
|
|
633
800
|
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
634
801
|
type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
635
802
|
|
|
636
|
-
interface Props$
|
|
803
|
+
interface Props$r {
|
|
637
804
|
/**
|
|
638
805
|
* The HTML element type or React component to render as the chip.
|
|
639
806
|
*/
|
|
@@ -671,9 +838,9 @@ interface Props$k {
|
|
|
671
838
|
};
|
|
672
839
|
onClose?: () => void;
|
|
673
840
|
}
|
|
674
|
-
type NativeAttrs$
|
|
675
|
-
type ChipProps = Props$
|
|
676
|
-
declare const Chip: react.ForwardRefExoticComponent<Props$
|
|
841
|
+
type NativeAttrs$t = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$r>;
|
|
842
|
+
type ChipProps = Props$r & NativeAttrs$t;
|
|
843
|
+
declare const Chip: react.ForwardRefExoticComponent<Props$r & NativeAttrs$t & react.RefAttributes<HTMLDivElement>>;
|
|
677
844
|
|
|
678
845
|
interface CollapseProps {
|
|
679
846
|
children: React.ReactNode;
|
|
@@ -717,7 +884,7 @@ interface DrawerClose {
|
|
|
717
884
|
}
|
|
718
885
|
type DrawerBackdrop = BackdropVariant;
|
|
719
886
|
|
|
720
|
-
interface Props$
|
|
887
|
+
interface Props$q {
|
|
721
888
|
isOpen: boolean;
|
|
722
889
|
size?: DrawerSize;
|
|
723
890
|
backdrop?: DrawerBackdrop;
|
|
@@ -734,11 +901,11 @@ interface Props$j {
|
|
|
734
901
|
onClose: () => void;
|
|
735
902
|
onAfterClose?: () => void;
|
|
736
903
|
}
|
|
737
|
-
type NativeAttrs$
|
|
738
|
-
type DrawerProps = Props$
|
|
739
|
-
declare const Drawer: react.ForwardRefExoticComponent<Props$
|
|
904
|
+
type NativeAttrs$s = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$q>;
|
|
905
|
+
type DrawerProps = Props$q & NativeAttrs$s;
|
|
906
|
+
declare const Drawer: react.ForwardRefExoticComponent<Props$q & NativeAttrs$s & react.RefAttributes<HTMLDivElement>>;
|
|
740
907
|
|
|
741
|
-
interface Props$
|
|
908
|
+
interface Props$p {
|
|
742
909
|
as?: React.ElementType;
|
|
743
910
|
title?: React.ReactNode;
|
|
744
911
|
subtitle?: React.ReactNode;
|
|
@@ -754,20 +921,20 @@ interface Props$i {
|
|
|
754
921
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
755
922
|
};
|
|
756
923
|
}
|
|
757
|
-
type NativeAttrs$
|
|
758
|
-
type DrawerHeaderProps = Props$
|
|
759
|
-
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$
|
|
924
|
+
type NativeAttrs$r = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$p>;
|
|
925
|
+
type DrawerHeaderProps = Props$p & NativeAttrs$r;
|
|
926
|
+
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$p & NativeAttrs$r & react.RefAttributes<HTMLDivElement>>;
|
|
760
927
|
|
|
761
928
|
type DrawerBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
762
929
|
declare const DrawerBody: react.ForwardRefExoticComponent<DrawerBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
763
930
|
|
|
764
|
-
interface Props$
|
|
931
|
+
interface Props$o {
|
|
765
932
|
as?: React.ElementType;
|
|
766
933
|
bordered?: boolean;
|
|
767
934
|
}
|
|
768
|
-
type NativeAttrs$
|
|
769
|
-
type DrawerFooterProps = Props$
|
|
770
|
-
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$
|
|
935
|
+
type NativeAttrs$q = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$o>;
|
|
936
|
+
type DrawerFooterProps = Props$o & NativeAttrs$q;
|
|
937
|
+
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$o & NativeAttrs$q & react.RefAttributes<HTMLDivElement>>;
|
|
771
938
|
|
|
772
939
|
interface DrawerContextValue {
|
|
773
940
|
isOpen: boolean;
|
|
@@ -791,7 +958,7 @@ interface IconProps {
|
|
|
791
958
|
}
|
|
792
959
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<unknown>>;
|
|
793
960
|
|
|
794
|
-
interface Props$
|
|
961
|
+
interface Props$n {
|
|
795
962
|
/**
|
|
796
963
|
* The HTML element type or React component to render as the menu item.
|
|
797
964
|
*/
|
|
@@ -817,9 +984,9 @@ interface Props$g {
|
|
|
817
984
|
*/
|
|
818
985
|
disabled?: boolean;
|
|
819
986
|
}
|
|
820
|
-
type NativeAttrs$
|
|
821
|
-
type MenuItemProps = Props$
|
|
822
|
-
declare const MenuItem: react.ForwardRefExoticComponent<Props$
|
|
987
|
+
type NativeAttrs$p = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$n | 'items'>;
|
|
988
|
+
type MenuItemProps = Props$n & NativeAttrs$p;
|
|
989
|
+
declare const MenuItem: react.ForwardRefExoticComponent<Props$n & NativeAttrs$p & react.RefAttributes<HTMLDivElement>>;
|
|
823
990
|
|
|
824
991
|
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
825
992
|
items?: MenuItemType[];
|
|
@@ -843,7 +1010,7 @@ type MenuItemType = (MenuGroupProps & {
|
|
|
843
1010
|
}) | (MenuItemProps & {
|
|
844
1011
|
type?: 'item';
|
|
845
1012
|
});
|
|
846
|
-
interface Props$
|
|
1013
|
+
interface Props$m {
|
|
847
1014
|
/**
|
|
848
1015
|
* The currently selected value of the menu.
|
|
849
1016
|
*/
|
|
@@ -879,8 +1046,8 @@ interface Props$f {
|
|
|
879
1046
|
*/
|
|
880
1047
|
onItemSelect?: (props: MenuItemProps) => void;
|
|
881
1048
|
}
|
|
882
|
-
type NativeAttrs$
|
|
883
|
-
type MenuProps = Props$
|
|
1049
|
+
type NativeAttrs$o = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$m | 'items'>;
|
|
1050
|
+
type MenuProps = Props$m & NativeAttrs$o & {
|
|
884
1051
|
items?: MenuItemType[];
|
|
885
1052
|
};
|
|
886
1053
|
declare const Menu: React.FC<MenuProps>;
|
|
@@ -967,8 +1134,8 @@ interface SelectMultipleProps<TSelectItem extends SelectItem, TSelectKeyField ex
|
|
|
967
1134
|
onChange?: (value: TSelectItem[]) => void;
|
|
968
1135
|
onValueChange?: (value: TSelectItem[TSelectKeyField][]) => void;
|
|
969
1136
|
}
|
|
970
|
-
type NativeAttrs$
|
|
971
|
-
type Props$
|
|
1137
|
+
type NativeAttrs$n<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$l<TSelectItem, TSelectKeyField>>;
|
|
1138
|
+
type Props$l<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = {
|
|
972
1139
|
data: TSelectItem[];
|
|
973
1140
|
keyField?: TSelectKeyField;
|
|
974
1141
|
textField?: keyof TSelectItem;
|
|
@@ -987,28 +1154,57 @@ type Props$e<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyFi
|
|
|
987
1154
|
renderItem?: (item: TSelectItem, props: ListItemProps) => React.ReactNode;
|
|
988
1155
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
989
1156
|
} & (SelectSingleProps<TSelectItem, TSelectKeyField> | SelectMultipleProps<TSelectItem, TSelectKeyField>);
|
|
990
|
-
type SelectProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Props$
|
|
1157
|
+
type SelectProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Props$l<TSelectItem, TSelectKeyField> & NativeAttrs$n<TSelectItem, TSelectKeyField>;
|
|
991
1158
|
|
|
992
1159
|
declare const Select: <TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = "key">(props: SelectProps<TSelectItem, TSelectKeyField>) => react_jsx_runtime.JSX.Element;
|
|
993
1160
|
|
|
994
1161
|
type ColorScheme = 'default' | 'light' | 'dark';
|
|
995
1162
|
|
|
1163
|
+
type MediaQuery = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
1164
|
+
type Responsive<T> = T | {
|
|
1165
|
+
/**
|
|
1166
|
+
* Minimum captured size: 0px
|
|
1167
|
+
*/
|
|
1168
|
+
xs?: T;
|
|
1169
|
+
/**
|
|
1170
|
+
* Minimum captured size: 576px
|
|
1171
|
+
*/
|
|
1172
|
+
sm?: T;
|
|
1173
|
+
/**
|
|
1174
|
+
* Minimum captured size: 768px
|
|
1175
|
+
*/
|
|
1176
|
+
md?: T;
|
|
1177
|
+
/**
|
|
1178
|
+
* Minimum captured size: 992px
|
|
1179
|
+
*/
|
|
1180
|
+
lg?: T;
|
|
1181
|
+
/**
|
|
1182
|
+
* Minimum captured size: 1200px
|
|
1183
|
+
*/
|
|
1184
|
+
xl?: T;
|
|
1185
|
+
/**
|
|
1186
|
+
* Minimum captured size: 1400px
|
|
1187
|
+
*/
|
|
1188
|
+
'2xl'?: T;
|
|
1189
|
+
};
|
|
1190
|
+
|
|
996
1191
|
type SwitchSize = 'sm' | 'md' | 'lg';
|
|
997
1192
|
type SwitchLabelPlacement = 'before' | 'after';
|
|
998
1193
|
|
|
999
|
-
interface Props$
|
|
1194
|
+
interface Props$k {
|
|
1000
1195
|
size?: SwitchSize;
|
|
1001
1196
|
labelPlacement?: SwitchLabelPlacement;
|
|
1002
1197
|
colorScheme?: ColorScheme;
|
|
1003
1198
|
}
|
|
1004
|
-
type NativeAttrs$
|
|
1005
|
-
type SwitchProps = Props$
|
|
1006
|
-
declare const Switch: react.ForwardRefExoticComponent<Props$
|
|
1199
|
+
type NativeAttrs$m = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$k | 'value' | 'defaultValue'>;
|
|
1200
|
+
type SwitchProps = Props$k & NativeAttrs$m;
|
|
1201
|
+
declare const Switch: react.ForwardRefExoticComponent<Props$k & NativeAttrs$m & react.RefAttributes<HTMLInputElement>>;
|
|
1007
1202
|
|
|
1203
|
+
type TabsVariant = 'underlined' | 'outlined' | 'pills';
|
|
1008
1204
|
type TabValue = string | number | symbol;
|
|
1009
1205
|
type TabsAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1010
1206
|
|
|
1011
|
-
interface Props$
|
|
1207
|
+
interface Props$j<TTabValue extends TabValue = TabValue> {
|
|
1012
1208
|
/**
|
|
1013
1209
|
* The HTML element type or React component to render as the tab.
|
|
1014
1210
|
*/
|
|
@@ -1034,11 +1230,11 @@ interface Props$c<TTabValue extends TabValue = TabValue> {
|
|
|
1034
1230
|
*/
|
|
1035
1231
|
endContent?: React.ReactNode;
|
|
1036
1232
|
}
|
|
1037
|
-
type NativeAttrs$
|
|
1038
|
-
type TabProps<TTabValue extends TabValue = TabValue> = Props$
|
|
1039
|
-
declare const Tab: react.ForwardRefExoticComponent<Props$
|
|
1233
|
+
type NativeAttrs$l = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$j>;
|
|
1234
|
+
type TabProps<TTabValue extends TabValue = TabValue> = Props$j<TTabValue> & NativeAttrs$l;
|
|
1235
|
+
declare const Tab: react.ForwardRefExoticComponent<Props$j<TabValue> & NativeAttrs$l & react.RefAttributes<HTMLDivElement>>;
|
|
1040
1236
|
|
|
1041
|
-
interface Props$
|
|
1237
|
+
interface Props$i<TTabValue extends TabValue = TabValue> {
|
|
1042
1238
|
/**
|
|
1043
1239
|
* The currently selected value of the tabs.
|
|
1044
1240
|
*/
|
|
@@ -1047,6 +1243,7 @@ interface Props$b<TTabValue extends TabValue = TabValue> {
|
|
|
1047
1243
|
* The default value of the tabs when initially rendered.
|
|
1048
1244
|
*/
|
|
1049
1245
|
defaultValue?: TTabValue;
|
|
1246
|
+
variant?: TabsVariant;
|
|
1050
1247
|
/**
|
|
1051
1248
|
* The alignment of the tabs.
|
|
1052
1249
|
*/
|
|
@@ -1060,11 +1257,11 @@ interface Props$b<TTabValue extends TabValue = TabValue> {
|
|
|
1060
1257
|
*/
|
|
1061
1258
|
onClose?: (value: TTabValue) => void;
|
|
1062
1259
|
}
|
|
1063
|
-
type NativeAttrs$
|
|
1064
|
-
type TabsProps<TTabValue extends TabValue = TabValue> = Props$
|
|
1065
|
-
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$
|
|
1260
|
+
type NativeAttrs$k = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$i>;
|
|
1261
|
+
type TabsProps<TTabValue extends TabValue = TabValue> = Props$i<TTabValue> & NativeAttrs$k;
|
|
1262
|
+
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$i<TTabValue> & NativeAttrs$k & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1066
1263
|
|
|
1067
|
-
interface Props$
|
|
1264
|
+
interface Props$h {
|
|
1068
1265
|
inputRef?: React.RefObject<HTMLInputElement>;
|
|
1069
1266
|
variant?: InputVariant;
|
|
1070
1267
|
color?: InputColor;
|
|
@@ -1073,13 +1270,13 @@ interface Props$a {
|
|
|
1073
1270
|
endContent?: React.ReactNode;
|
|
1074
1271
|
css?: BoxCSS;
|
|
1075
1272
|
}
|
|
1076
|
-
type NativeAttrs$
|
|
1077
|
-
type TextInputProps = Props$
|
|
1078
|
-
declare const TextInput: react.ForwardRefExoticComponent<Props$
|
|
1273
|
+
type NativeAttrs$j = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$h>;
|
|
1274
|
+
type TextInputProps = Props$h & NativeAttrs$j;
|
|
1275
|
+
declare const TextInput: react.ForwardRefExoticComponent<Props$h & NativeAttrs$j & react.RefAttributes<HTMLInputElement>>;
|
|
1079
1276
|
|
|
1080
1277
|
type ToolbarSize = 'auto' | 'sm' | 'md' | 'lg';
|
|
1081
1278
|
|
|
1082
|
-
interface Props$
|
|
1279
|
+
interface Props$g {
|
|
1083
1280
|
size?: ToolbarSize;
|
|
1084
1281
|
title?: React.ReactNode;
|
|
1085
1282
|
subtitle?: React.ReactNode;
|
|
@@ -1101,8 +1298,8 @@ interface Props$9 {
|
|
|
1101
1298
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1102
1299
|
};
|
|
1103
1300
|
}
|
|
1104
|
-
type NativeAttrs$
|
|
1105
|
-
type ToolbarProps = Props$
|
|
1301
|
+
type NativeAttrs$i = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$g>;
|
|
1302
|
+
type ToolbarProps = Props$g & NativeAttrs$i;
|
|
1106
1303
|
declare const Toolbar: React.FC<ToolbarProps>;
|
|
1107
1304
|
|
|
1108
1305
|
interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -1117,32 +1314,33 @@ interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
1117
1314
|
}
|
|
1118
1315
|
declare const Transition: react.ForwardRefExoticComponent<TransitionProps & react.RefAttributes<HTMLElement>>;
|
|
1119
1316
|
|
|
1120
|
-
interface Props$
|
|
1317
|
+
interface Props$f {
|
|
1121
1318
|
/**
|
|
1122
1319
|
* The HTML element type or React component to render as the tab.
|
|
1123
1320
|
*/
|
|
1124
1321
|
as?: React.ElementType;
|
|
1125
1322
|
width?: number;
|
|
1126
1323
|
}
|
|
1127
|
-
type NativeAttrs$
|
|
1128
|
-
type SwipeItemProps = Props$
|
|
1129
|
-
declare const SwipeItem: react.ForwardRefExoticComponent<Props$
|
|
1324
|
+
type NativeAttrs$h = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$f>;
|
|
1325
|
+
type SwipeItemProps = Props$f & NativeAttrs$h;
|
|
1326
|
+
declare const SwipeItem: react.ForwardRefExoticComponent<Props$f & NativeAttrs$h & {
|
|
1130
1327
|
children?: react.ReactNode | undefined;
|
|
1131
1328
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1132
1329
|
|
|
1133
1330
|
type SwiperAlignmet = 'start' | 'center' | 'end';
|
|
1134
1331
|
|
|
1135
|
-
interface Props$
|
|
1332
|
+
interface Props$e {
|
|
1136
1333
|
gap?: number;
|
|
1137
1334
|
alignment?: SwiperAlignmet;
|
|
1138
1335
|
autoHide?: boolean;
|
|
1139
1336
|
slotProps?: {
|
|
1337
|
+
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
1140
1338
|
arrowLeftButton?: ButtonProps;
|
|
1141
1339
|
arrowRightButton?: ButtonProps;
|
|
1142
1340
|
};
|
|
1143
1341
|
}
|
|
1144
|
-
type NativeAttrs$
|
|
1145
|
-
type SwipeProps = Props$
|
|
1342
|
+
type NativeAttrs$g = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$e>;
|
|
1343
|
+
type SwipeProps = Props$e & NativeAttrs$g;
|
|
1146
1344
|
declare const Swipe: React.FC<SwipeProps>;
|
|
1147
1345
|
|
|
1148
1346
|
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
@@ -1154,7 +1352,7 @@ interface ModalClose {
|
|
|
1154
1352
|
type ModalScrollBehavior = 'inside' | 'outside';
|
|
1155
1353
|
type ModalBackdrop = BackdropVariant;
|
|
1156
1354
|
|
|
1157
|
-
interface Props$
|
|
1355
|
+
interface Props$d {
|
|
1158
1356
|
isOpen: boolean;
|
|
1159
1357
|
size?: ModalSize;
|
|
1160
1358
|
backdrop?: ModalBackdrop;
|
|
@@ -1169,9 +1367,9 @@ interface Props$6 {
|
|
|
1169
1367
|
onClose: () => void;
|
|
1170
1368
|
onAfterClose?: () => void;
|
|
1171
1369
|
}
|
|
1172
|
-
type NativeAttrs$
|
|
1173
|
-
type ModalProps = Props$
|
|
1174
|
-
declare const Modal: react.ForwardRefExoticComponent<Props$
|
|
1370
|
+
type NativeAttrs$f = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$d>;
|
|
1371
|
+
type ModalProps = Props$d & NativeAttrs$f;
|
|
1372
|
+
declare const Modal: react.ForwardRefExoticComponent<Props$d & NativeAttrs$f & react.RefAttributes<HTMLDivElement>>;
|
|
1175
1373
|
|
|
1176
1374
|
type ModalBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
1177
1375
|
declare const ModalBody: React.FC<ModalBodyProps>;
|
|
@@ -1185,15 +1383,15 @@ interface ModalContextValue {
|
|
|
1185
1383
|
}
|
|
1186
1384
|
declare function useModal(): ModalContextValue;
|
|
1187
1385
|
|
|
1188
|
-
interface Props$
|
|
1386
|
+
interface Props$c {
|
|
1189
1387
|
as?: React.ElementType;
|
|
1190
1388
|
bordered?: boolean;
|
|
1191
1389
|
}
|
|
1192
|
-
type NativeAttrs$
|
|
1193
|
-
type ModalFooterProps = Props$
|
|
1194
|
-
declare const ModalFooter: react.ForwardRefExoticComponent<Props$
|
|
1390
|
+
type NativeAttrs$e = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$c>;
|
|
1391
|
+
type ModalFooterProps = Props$c & NativeAttrs$e;
|
|
1392
|
+
declare const ModalFooter: react.ForwardRefExoticComponent<Props$c & NativeAttrs$e & react.RefAttributes<HTMLDivElement>>;
|
|
1195
1393
|
|
|
1196
|
-
interface Props$
|
|
1394
|
+
interface Props$b {
|
|
1197
1395
|
as?: React.ElementType;
|
|
1198
1396
|
title?: React.ReactNode;
|
|
1199
1397
|
subtitle?: React.ReactNode;
|
|
@@ -1209,9 +1407,9 @@ interface Props$4 {
|
|
|
1209
1407
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1210
1408
|
};
|
|
1211
1409
|
}
|
|
1212
|
-
type NativeAttrs$
|
|
1213
|
-
type ModalHeaderProps = Props$
|
|
1214
|
-
declare const ModalHeader: react.ForwardRefExoticComponent<Props$
|
|
1410
|
+
type NativeAttrs$d = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$b>;
|
|
1411
|
+
type ModalHeaderProps = Props$b & NativeAttrs$d;
|
|
1412
|
+
declare const ModalHeader: react.ForwardRefExoticComponent<Props$b & NativeAttrs$d & react.RefAttributes<HTMLDivElement>>;
|
|
1215
1413
|
|
|
1216
1414
|
type CheckboxValue = string | number | symbol;
|
|
1217
1415
|
type CheckboxSize = 'sm' | 'md' | 'lg';
|
|
@@ -1219,17 +1417,17 @@ type CheckboxLabelPlacement = 'before' | 'after';
|
|
|
1219
1417
|
type CheckboxGroupDirection = 'row' | 'col';
|
|
1220
1418
|
type CheckboxGroupAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1221
1419
|
|
|
1222
|
-
interface Props$
|
|
1420
|
+
interface Props$a<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1223
1421
|
value?: TCheckboxValue;
|
|
1224
1422
|
size?: CheckboxSize;
|
|
1225
1423
|
labelPlacement?: CheckboxLabelPlacement;
|
|
1226
1424
|
colorScheme?: ColorScheme;
|
|
1227
1425
|
}
|
|
1228
|
-
type NativeAttrs$
|
|
1229
|
-
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$
|
|
1230
|
-
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$
|
|
1426
|
+
type NativeAttrs$c = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$a | 'defaultValue'>;
|
|
1427
|
+
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$a<TCheckboxValue> & NativeAttrs$c;
|
|
1428
|
+
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$a<TCheckboxValue> & NativeAttrs$c & react.RefAttributes<HTMLInputElement>) => ReturnType<React.FunctionComponent>;
|
|
1231
1429
|
|
|
1232
|
-
interface Props$
|
|
1430
|
+
interface Props$9<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1233
1431
|
value?: TCheckboxValue[];
|
|
1234
1432
|
defaultValue?: TCheckboxValue[];
|
|
1235
1433
|
disabled?: boolean;
|
|
@@ -1241,9 +1439,9 @@ interface Props$2<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
|
1241
1439
|
colorScheme?: ColorScheme;
|
|
1242
1440
|
onChange?: (value: TCheckboxValue[]) => void;
|
|
1243
1441
|
}
|
|
1244
|
-
type NativeAttrs$
|
|
1245
|
-
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$
|
|
1246
|
-
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$
|
|
1442
|
+
type NativeAttrs$b = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$9>;
|
|
1443
|
+
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$9<TCheckboxValue> & NativeAttrs$b;
|
|
1444
|
+
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$9<TCheckboxValue> & NativeAttrs$b & react.RefAttributes<HTMLTableElement>) => ReturnType<React.FunctionComponent>;
|
|
1247
1445
|
|
|
1248
1446
|
interface CheckboxGroupContextValue<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1249
1447
|
value: TCheckboxValue[];
|
|
@@ -1263,7 +1461,7 @@ type RadioLabelPlacement = 'before' | 'after';
|
|
|
1263
1461
|
type RadioGroupDirection = 'row' | 'col';
|
|
1264
1462
|
type RadioGroupAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1265
1463
|
|
|
1266
|
-
interface Props$
|
|
1464
|
+
interface Props$8<TRadioValue extends RadioValue = RadioValue> {
|
|
1267
1465
|
value?: TRadioValue;
|
|
1268
1466
|
disabled?: boolean;
|
|
1269
1467
|
readOnly?: boolean;
|
|
@@ -1271,11 +1469,11 @@ interface Props$1<TRadioValue extends RadioValue = RadioValue> {
|
|
|
1271
1469
|
labelPlacement?: RadioLabelPlacement;
|
|
1272
1470
|
colorScheme?: ColorScheme;
|
|
1273
1471
|
}
|
|
1274
|
-
type NativeAttrs$
|
|
1275
|
-
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$
|
|
1276
|
-
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$
|
|
1472
|
+
type NativeAttrs$a = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$8 | 'defaultValue' | 'checked' | 'defaultChecked' | 'onChange'>;
|
|
1473
|
+
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$8<TRadioValue> & NativeAttrs$a;
|
|
1474
|
+
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$8<TRadioValue> & NativeAttrs$a & react.RefAttributes<HTMLInputElement>) => ReturnType<React.FunctionComponent>;
|
|
1277
1475
|
|
|
1278
|
-
interface Props<TRadioValue extends RadioValue = RadioValue> {
|
|
1476
|
+
interface Props$7<TRadioValue extends RadioValue = RadioValue> {
|
|
1279
1477
|
name?: string;
|
|
1280
1478
|
value?: TRadioValue;
|
|
1281
1479
|
defaultValue?: TRadioValue;
|
|
@@ -1288,9 +1486,9 @@ interface Props<TRadioValue extends RadioValue = RadioValue> {
|
|
|
1288
1486
|
colorScheme?: ColorScheme;
|
|
1289
1487
|
onChange?: (value: TRadioValue) => void;
|
|
1290
1488
|
}
|
|
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>;
|
|
1489
|
+
type NativeAttrs$9 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$7>;
|
|
1490
|
+
type RadioGroupProps<TRadioValue extends RadioValue = RadioValue> = Props$7<TRadioValue> & NativeAttrs$9;
|
|
1491
|
+
declare const RadioGroup: <TRadioValue extends RadioValue = RadioValue>(props: Props$7<TRadioValue> & NativeAttrs$9 & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1294
1492
|
|
|
1295
1493
|
interface RadioGroupContextValue {
|
|
1296
1494
|
name: string;
|
|
@@ -1305,6 +1503,177 @@ interface RadioGroupContextValue {
|
|
|
1305
1503
|
}
|
|
1306
1504
|
declare const useRadioGroup: () => RadioGroupContextValue;
|
|
1307
1505
|
|
|
1506
|
+
type NavRailPlacement = 'left' | 'right';
|
|
1507
|
+
|
|
1508
|
+
interface Props$6 {
|
|
1509
|
+
startContent?: React.ReactNode;
|
|
1510
|
+
endContent?: React.ReactNode;
|
|
1511
|
+
placement?: NavRailPlacement;
|
|
1512
|
+
}
|
|
1513
|
+
type NativeAttrs$8 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$6>;
|
|
1514
|
+
type NavRailProps = Props$6 & NativeAttrs$8;
|
|
1515
|
+
declare const NavRail: React.FC<NavRailProps>;
|
|
1516
|
+
|
|
1517
|
+
interface Props$5 {
|
|
1518
|
+
as?: React.ElementType;
|
|
1519
|
+
icon?: React.ReactNode;
|
|
1520
|
+
media?: React.ReactNode;
|
|
1521
|
+
label?: React.ReactNode;
|
|
1522
|
+
selected?: boolean;
|
|
1523
|
+
}
|
|
1524
|
+
type NativeAttrs$7 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$5>;
|
|
1525
|
+
type NavRailItemProps = Props$5 & NativeAttrs$7;
|
|
1526
|
+
declare const NavRailItem: react.ForwardRefExoticComponent<Props$5 & NativeAttrs$7 & react.RefAttributes<HTMLDivElement>>;
|
|
1527
|
+
|
|
1528
|
+
type Props$4 = {
|
|
1529
|
+
as?: React.ElementType;
|
|
1530
|
+
label: React.ReactNode;
|
|
1531
|
+
span?: Responsive<number>;
|
|
1532
|
+
order?: Responsive<number>;
|
|
1533
|
+
labelStartContent?: React.ReactNode;
|
|
1534
|
+
labelEndContent?: React.ReactNode;
|
|
1535
|
+
valueStartContent?: React.ReactNode;
|
|
1536
|
+
valueEndContent?: React.ReactNode;
|
|
1537
|
+
hoverable?: boolean;
|
|
1538
|
+
render?: (options: {
|
|
1539
|
+
content: React.ReactNode;
|
|
1540
|
+
isEmpty: boolean;
|
|
1541
|
+
mq: ContainerMediaQuery;
|
|
1542
|
+
}) => React.ReactNode;
|
|
1543
|
+
} & FormatOptions;
|
|
1544
|
+
type NativeAttrs$6 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$4 | 'children'>;
|
|
1545
|
+
type DescriptionProps = Props$4 & NativeAttrs$6;
|
|
1546
|
+
declare const Description: react.ForwardRefExoticComponent<DescriptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
1547
|
+
|
|
1548
|
+
type NativeAttrs$5 = React.HTMLAttributes<HTMLDivElement>;
|
|
1549
|
+
type DescriptionEmptyProps = NativeAttrs$5;
|
|
1550
|
+
declare const DescriptionEmpty: react.ForwardRefExoticComponent<NativeAttrs$5 & react.RefAttributes<HTMLDivElement>>;
|
|
1551
|
+
|
|
1552
|
+
type DescriptionsLayout = 'row' | 'col';
|
|
1553
|
+
type DescriptionsSize = 'sm' | 'md' | 'lg';
|
|
1554
|
+
type DescriptionsAlign = React.CSSProperties['textAlign'];
|
|
1555
|
+
|
|
1556
|
+
interface Props$3 {
|
|
1557
|
+
as?: React.ElementType;
|
|
1558
|
+
items?: DescriptionProps[];
|
|
1559
|
+
layout?: Responsive<DescriptionsLayout>;
|
|
1560
|
+
size?: Responsive<DescriptionsSize>;
|
|
1561
|
+
cols?: Responsive<number>;
|
|
1562
|
+
align?: Responsive<DescriptionsAlign>;
|
|
1563
|
+
labelAlign?: Responsive<DescriptionsAlign>;
|
|
1564
|
+
contentAlign?: Responsive<DescriptionsAlign>;
|
|
1565
|
+
}
|
|
1566
|
+
type NativeAttrs$4 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$3 | 'children'>;
|
|
1567
|
+
type DescriptionsProps = Props$3 & NativeAttrs$4;
|
|
1568
|
+
declare const Descriptions: react.ForwardRefExoticComponent<Props$3 & NativeAttrs$4 & react.RefAttributes<HTMLDivElement>>;
|
|
1569
|
+
|
|
1570
|
+
interface DescriptionsContextValue {
|
|
1571
|
+
mq: ContainerMediaQuery;
|
|
1572
|
+
layout: DescriptionsLayout;
|
|
1573
|
+
size: DescriptionsSize;
|
|
1574
|
+
cols: number;
|
|
1575
|
+
labelAlign?: DescriptionsAlign;
|
|
1576
|
+
contentAlign?: DescriptionsAlign;
|
|
1577
|
+
}
|
|
1578
|
+
declare const DescriptionsContext: react.Context<DescriptionsContextValue | null>;
|
|
1579
|
+
declare const useDescriptionsContext: () => DescriptionsContextValue;
|
|
1580
|
+
|
|
1581
|
+
type NativeAttrs$3 = React.HTMLAttributes<HTMLDivElement>;
|
|
1582
|
+
type DescriptionTextProps = NativeAttrs$3;
|
|
1583
|
+
declare const DescriptionText: react.ForwardRefExoticComponent<NativeAttrs$3 & react.RefAttributes<HTMLDivElement>>;
|
|
1584
|
+
|
|
1585
|
+
declare function reactNodeToText(node: React.ReactNode): string;
|
|
1586
|
+
|
|
1587
|
+
interface ResponsiveProps$2 {
|
|
1588
|
+
span?: Responsive<number>;
|
|
1589
|
+
order?: Responsive<number>;
|
|
1590
|
+
p?: Responsive<React.CSSProperties['padding']>;
|
|
1591
|
+
py?: Responsive<React.CSSProperties['paddingBlock']>;
|
|
1592
|
+
px?: Responsive<React.CSSProperties['paddingInline']>;
|
|
1593
|
+
pt?: Responsive<React.CSSProperties['paddingTop']>;
|
|
1594
|
+
pb?: Responsive<React.CSSProperties['paddingBottom']>;
|
|
1595
|
+
pr?: Responsive<React.CSSProperties['paddingRight']>;
|
|
1596
|
+
pl?: Responsive<React.CSSProperties['paddingLeft']>;
|
|
1597
|
+
g?: Responsive<React.CSSProperties['gap']>;
|
|
1598
|
+
gy?: Responsive<React.CSSProperties['rowGap']>;
|
|
1599
|
+
gx?: Responsive<React.CSSProperties['columnGap']>;
|
|
1600
|
+
justifyContent?: Responsive<React.CSSProperties['justifyContent']>;
|
|
1601
|
+
alignItems?: Responsive<React.CSSProperties['alignItems']>;
|
|
1602
|
+
}
|
|
1603
|
+
type Props$2 = {
|
|
1604
|
+
as?: React.ElementType;
|
|
1605
|
+
} & ResponsiveProps$2;
|
|
1606
|
+
type NativeAttrs$2 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$2>;
|
|
1607
|
+
type GridItemProps = Props$2 & NativeAttrs$2;
|
|
1608
|
+
declare const GridItem: react.ForwardRefExoticComponent<{
|
|
1609
|
+
as?: React.ElementType;
|
|
1610
|
+
} & ResponsiveProps$2 & NativeAttrs$2 & react.RefAttributes<HTMLDivElement>>;
|
|
1611
|
+
|
|
1612
|
+
interface ResponsiveProps$1 {
|
|
1613
|
+
cols?: Responsive<number>;
|
|
1614
|
+
span?: Responsive<number>;
|
|
1615
|
+
p?: Responsive<React.CSSProperties['padding']>;
|
|
1616
|
+
py?: Responsive<React.CSSProperties['paddingBlock']>;
|
|
1617
|
+
px?: Responsive<React.CSSProperties['paddingInline']>;
|
|
1618
|
+
pt?: Responsive<React.CSSProperties['paddingTop']>;
|
|
1619
|
+
pb?: Responsive<React.CSSProperties['paddingBottom']>;
|
|
1620
|
+
pr?: Responsive<React.CSSProperties['paddingRight']>;
|
|
1621
|
+
pl?: Responsive<React.CSSProperties['paddingLeft']>;
|
|
1622
|
+
g?: Responsive<React.CSSProperties['gap']>;
|
|
1623
|
+
gy?: Responsive<React.CSSProperties['rowGap']>;
|
|
1624
|
+
gx?: Responsive<React.CSSProperties['columnGap']>;
|
|
1625
|
+
justifyContent?: Responsive<React.CSSProperties['justifyContent']>;
|
|
1626
|
+
alignItems?: Responsive<React.CSSProperties['alignItems']>;
|
|
1627
|
+
}
|
|
1628
|
+
type Props$1 = {
|
|
1629
|
+
items?: GridItemProps[];
|
|
1630
|
+
} & ResponsiveProps$1;
|
|
1631
|
+
type NativeAttrs$1 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$1>;
|
|
1632
|
+
type GridSubProps = Props$1 & NativeAttrs$1;
|
|
1633
|
+
declare const GridSub: react.ForwardRefExoticComponent<{
|
|
1634
|
+
items?: GridItemProps[];
|
|
1635
|
+
} & ResponsiveProps$1 & NativeAttrs$1 & react.RefAttributes<HTMLDivElement>>;
|
|
1636
|
+
|
|
1637
|
+
interface ResponsiveProps {
|
|
1638
|
+
cols?: Responsive<number>;
|
|
1639
|
+
p?: Responsive<React.CSSProperties['padding']>;
|
|
1640
|
+
py?: Responsive<React.CSSProperties['paddingBlock']>;
|
|
1641
|
+
px?: Responsive<React.CSSProperties['paddingInline']>;
|
|
1642
|
+
pt?: Responsive<React.CSSProperties['paddingTop']>;
|
|
1643
|
+
pb?: Responsive<React.CSSProperties['paddingBottom']>;
|
|
1644
|
+
pr?: Responsive<React.CSSProperties['paddingRight']>;
|
|
1645
|
+
pl?: Responsive<React.CSSProperties['paddingLeft']>;
|
|
1646
|
+
g?: Responsive<React.CSSProperties['gap']>;
|
|
1647
|
+
gy?: Responsive<React.CSSProperties['rowGap']>;
|
|
1648
|
+
gx?: Responsive<React.CSSProperties['columnGap']>;
|
|
1649
|
+
justifyContent?: Responsive<React.CSSProperties['justifyContent']>;
|
|
1650
|
+
alignItems?: Responsive<React.CSSProperties['alignItems']>;
|
|
1651
|
+
}
|
|
1652
|
+
type Props = {
|
|
1653
|
+
items?: (GridItemProps | GridSubProps)[];
|
|
1654
|
+
} & ResponsiveProps;
|
|
1655
|
+
type NativeAttrs = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props>;
|
|
1656
|
+
type GridProps = Props & NativeAttrs;
|
|
1657
|
+
declare const Grid: react.ForwardRefExoticComponent<{
|
|
1658
|
+
items?: (GridItemProps | GridSubProps)[];
|
|
1659
|
+
} & ResponsiveProps & NativeAttrs & react.RefAttributes<HTMLDivElement>>;
|
|
1660
|
+
|
|
1661
|
+
interface GridContextValue {
|
|
1662
|
+
mq: ContainerMediaQuery;
|
|
1663
|
+
}
|
|
1664
|
+
declare const GridContext: react.Context<GridContextValue | null>;
|
|
1665
|
+
declare const useGridContext: () => GridContextValue;
|
|
1666
|
+
|
|
1667
|
+
interface IframeProps extends React.IframeHTMLAttributes<HTMLIFrameElement> {
|
|
1668
|
+
anchorTarget?: React.HTMLAttributeAnchorTarget;
|
|
1669
|
+
anchorPreventDefault?: boolean;
|
|
1670
|
+
}
|
|
1671
|
+
declare const Iframe: React.FC<IframeProps>;
|
|
1672
|
+
|
|
1673
|
+
interface HtmlProps extends IframeProps {
|
|
1674
|
+
}
|
|
1675
|
+
declare const Html: React.FC<HtmlProps>;
|
|
1676
|
+
|
|
1308
1677
|
declare const scrollToItem: (parentElement: Element, currentElement: Element) => void;
|
|
1309
1678
|
|
|
1310
1679
|
type ClassDictionary = Record<string, any>;
|
|
@@ -1316,4 +1685,13 @@ type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>;
|
|
|
1316
1685
|
declare function assignRef<T = any>(ref: ReactRef<T> | null | undefined, value: T): void;
|
|
1317
1686
|
declare function mergeRefs<T>(...refs: (ReactRef<T> | null | undefined)[]): (node: T | null) => void;
|
|
1318
1687
|
|
|
1319
|
-
|
|
1688
|
+
declare function dateFormat(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1689
|
+
declare function formatDate(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1690
|
+
declare function formatDateTime(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1691
|
+
declare function formatShortDateTime(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1692
|
+
declare function formatTime(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1693
|
+
declare function formatCurrency(value: number | bigint | Intl.StringNumericLiteral, currency?: string, locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
|
1694
|
+
declare function formatPercent(value: any, decimals?: number, locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
|
1695
|
+
declare function format(options: FormatOptions): string | undefined;
|
|
1696
|
+
|
|
1697
|
+
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, DescriptionEmpty, type DescriptionEmptyProps, type DescriptionProps, DescriptionText, type DescriptionTextProps, Descriptions, type DescriptionsAlign, DescriptionsContext, type DescriptionsContextValue, type DescriptionsLayout, type DescriptionsProps, type DescriptionsSize, type Disclosure, Divider, type DividerProps, Drawer, type DrawerBackdrop, DrawerBody, type DrawerBodyProps, type DrawerClose, DrawerContext, type DrawerContextValue, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, type DrawerPosition, type DrawerProps, type DrawerSize, Field, type FieldProps, type FormatBooleanOptions, type FormatCurrencyOptions, type FormatDateOptions, type FormatNumberOptions, type FormatOptions, type FormatPercentOptions, type FormatStringOptions, Grid, GridContext, type GridContextValue, GridItem, type GridItemProps, type GridProps, GridSub, type GridSubProps, Html, type HtmlProps, Icon, type IconColor, type IconProps, type IconSize, Iframe, type IframeProps, type InfiniteData, type InfiniteQueryFunction, type InfiniteQueryOptions, type InfiniteQueryRefetchOptions, type InputColor, InputGroup, type InputGroupProps, type InputSize, type InputVariant, List, ListGroup, type ListGroupProps, ListItem, type ListItemProps, type ListProps, type ListSize, ListSubheader, type ListSubheaderProps, type MediaQuery, Menu, MenuContext, type MenuContextValue, MenuGroup, type MenuGroupItemType, type MenuGroupProps, MenuItem, type MenuItemProps, type MenuItemType, type MenuProps, MenuSubmenu, type MenuSubmenuProps, MenuValueContext, Modal, type ModalBackdrop, ModalBody, type ModalBodyProps, type ModalClose, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalPlacement, type ModalProps, type ModalScrollBehavior, type ModalSize, type MutationError, type MutationFunction, type MutationOK, type MutationResult, MutationStatus, NavRail, NavRailItem, type NavRailItemProps, type NavRailPlacement, type NavRailProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, type QueryFunction, QueryStatus, Radio, RadioGroup, type RadioGroupAlignment, type RadioGroupContextValue, type RadioGroupDirection, type RadioGroupProps, type RadioProps, type RadioSize, type RadioValue, type ReactRef, type Resize, type Responsive, Result, type ResultProps, type ResultStatus, type ScrollAlignment, ScrollArea, type ScrollAreaProps, type ScrollBehavior, type ScrollToOptions, Select, type 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, breakpointsMap, clsx, dateFormat, defaultBreakpoints, format, formatCurrency, formatDate, formatDateTime, formatPercent, formatShortDateTime, formatTime, getOpenValuesByPathname, hasResizeObserver, mergeRefs, reactNodeToText, scrollToItem, useAccordion, useAccordionItem, useButtonGroup, useCheckboxGroup, useCollapse, useContainerMediaQuery, useDebounce, useDescriptionsContext, useDisclosure, useDrawer, useEffectEvent, useElementSize, useFormat, useGridContext, useInfiniteQuery, useLocalStorage, useMediaQuery, useMenu, useMenuItemValue, useModal, useMutation, useOnClickOutside, usePopover, usePrevious, useQuery, useRadioGroup, useResizeObserver, useStep, useValueEffect, useVirtualizer };
|