@unifiedsoftware/react-ui 1.0.15 → 1.0.17
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.mts +114 -7
- package/dist/index.d.ts +114 -7
- package/dist/index.js +806 -399
- package/dist/index.mjs +751 -359
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -24,7 +24,7 @@ type NativeAttrs$6 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$6>;
|
|
|
24
24
|
type BadgeProps = Props$6 & NativeAttrs$6;
|
|
25
25
|
declare const Badge: React.FC<BadgeProps>;
|
|
26
26
|
|
|
27
|
-
type ButtonVariant = 'filled' | 'outlined' | '
|
|
27
|
+
type ButtonVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
28
28
|
type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
29
29
|
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
30
30
|
|
|
@@ -57,6 +57,7 @@ interface Props$5 {
|
|
|
57
57
|
* Content to display at the end of the button, after the button's text.
|
|
58
58
|
*/
|
|
59
59
|
endContent?: React.ReactNode;
|
|
60
|
+
block?: boolean;
|
|
60
61
|
/**
|
|
61
62
|
* Whether the button is in a loading state.
|
|
62
63
|
*/
|
|
@@ -70,6 +71,20 @@ type NativeAttrs$5 = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof P
|
|
|
70
71
|
type ButtonProps = Props$5 & NativeAttrs$5;
|
|
71
72
|
declare const Button: react.ForwardRefExoticComponent<Props$5 & NativeAttrs$5 & react.RefAttributes<HTMLButtonElement>>;
|
|
72
73
|
|
|
74
|
+
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
75
|
+
as?: React.ElementType;
|
|
76
|
+
}
|
|
77
|
+
declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
|
|
79
|
+
interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
80
|
+
as?: React.ElementType;
|
|
81
|
+
title: string;
|
|
82
|
+
subtitle?: string;
|
|
83
|
+
startContent?: React.ReactNode;
|
|
84
|
+
endContent?: React.ReactNode;
|
|
85
|
+
}
|
|
86
|
+
declare const CardHeader: react.ForwardRefExoticComponent<CardHeaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
87
|
+
|
|
73
88
|
type ChipVariant = 'filled' | 'outlined' | 'text';
|
|
74
89
|
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
75
90
|
type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -124,7 +139,7 @@ declare const useCollapse: () => CollapseContextValue;
|
|
|
124
139
|
interface CollapseTriggerProps {
|
|
125
140
|
children: react__default.ReactNode;
|
|
126
141
|
}
|
|
127
|
-
declare const CollapseTrigger: react__default.
|
|
142
|
+
declare const CollapseTrigger: react__default.ForwardRefExoticComponent<CollapseTriggerProps & react__default.RefAttributes<unknown>>;
|
|
128
143
|
|
|
129
144
|
type DrawerSize = 'sm' | 'md' | 'lg';
|
|
130
145
|
type DrawerPosition = 'top' | 'left' | 'right' | 'bottom';
|
|
@@ -173,9 +188,7 @@ interface Props$3 {
|
|
|
173
188
|
}
|
|
174
189
|
type NativeAttrs$3 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$3 | 'items'>;
|
|
175
190
|
type MenuItemProps = Props$3 & NativeAttrs$3;
|
|
176
|
-
declare const MenuItem: react.ForwardRefExoticComponent<Props$3 & NativeAttrs$3 &
|
|
177
|
-
children?: react.ReactNode;
|
|
178
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
191
|
+
declare const MenuItem: react.ForwardRefExoticComponent<Props$3 & NativeAttrs$3 & react.RefAttributes<HTMLDivElement>>;
|
|
179
192
|
|
|
180
193
|
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
181
194
|
items?: MenuItemType[];
|
|
@@ -237,7 +250,7 @@ interface Props$2 {
|
|
|
237
250
|
}
|
|
238
251
|
type NativeAttrs$2 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$2 | 'items'>;
|
|
239
252
|
type MenuProps = Props$2 & NativeAttrs$2 & {
|
|
240
|
-
items
|
|
253
|
+
items?: MenuItemType[];
|
|
241
254
|
};
|
|
242
255
|
declare const Menu: React.FC<MenuProps>;
|
|
243
256
|
|
|
@@ -259,6 +272,39 @@ declare const useMenuItemValue: () => string[];
|
|
|
259
272
|
|
|
260
273
|
declare const getOpenValuesByPathname: (pathname: string) => string[];
|
|
261
274
|
|
|
275
|
+
type AccordionProps = React.HTMLAttributes<HTMLDivElement>;
|
|
276
|
+
declare const Accordion: react.ForwardRefExoticComponent<AccordionProps & react.RefAttributes<HTMLDivElement>>;
|
|
277
|
+
|
|
278
|
+
interface AccordionItemContextValue {
|
|
279
|
+
value: string;
|
|
280
|
+
}
|
|
281
|
+
declare const useAccordionItem: () => AccordionItemContextValue;
|
|
282
|
+
type AccordionItemProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
283
|
+
value?: any;
|
|
284
|
+
};
|
|
285
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & {
|
|
286
|
+
value?: any;
|
|
287
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
288
|
+
|
|
289
|
+
type AccordionHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
290
|
+
title: string;
|
|
291
|
+
subtitle?: string;
|
|
292
|
+
startContent?: React.ReactNode;
|
|
293
|
+
endContent?: React.ReactNode;
|
|
294
|
+
};
|
|
295
|
+
declare const AccordionHeader: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & {
|
|
296
|
+
title: string;
|
|
297
|
+
subtitle?: string | undefined;
|
|
298
|
+
startContent?: React.ReactNode;
|
|
299
|
+
endContent?: React.ReactNode;
|
|
300
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
301
|
+
|
|
302
|
+
type AccordionPanelProps = React.HTMLAttributes<HTMLDivElement>;
|
|
303
|
+
declare const AccordionPanel: react.ForwardRefExoticComponent<AccordionPanelProps & react.RefAttributes<HTMLDivElement>>;
|
|
304
|
+
|
|
305
|
+
type AccordionContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
306
|
+
declare const AccordionContent: react.ForwardRefExoticComponent<AccordionContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
307
|
+
|
|
262
308
|
interface PortalProps {
|
|
263
309
|
children: React.ReactNode;
|
|
264
310
|
}
|
|
@@ -339,6 +385,11 @@ interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
339
385
|
}
|
|
340
386
|
declare const Transition: react.ForwardRefExoticComponent<TransitionProps & react.RefAttributes<HTMLElement>>;
|
|
341
387
|
|
|
388
|
+
interface ScrollAreaProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
389
|
+
direction?: 'vertical' | 'horizontal';
|
|
390
|
+
}
|
|
391
|
+
declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaProps & react.RefAttributes<HTMLDivElement>>;
|
|
392
|
+
|
|
342
393
|
type SelectItem = {
|
|
343
394
|
key: any;
|
|
344
395
|
text: string;
|
|
@@ -384,6 +435,14 @@ type SelectProps<TSelectItem = SelectItem> = SelectClientProps<TSelectItem> | Se
|
|
|
384
435
|
|
|
385
436
|
declare const Select: (props: SelectProps) => react_jsx_runtime.JSX.Element;
|
|
386
437
|
|
|
438
|
+
type SwitchProps = {
|
|
439
|
+
value?: boolean;
|
|
440
|
+
defaultValue?: boolean;
|
|
441
|
+
error?: boolean;
|
|
442
|
+
onChange?: (value: boolean) => void;
|
|
443
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'>;
|
|
444
|
+
declare const Switch: React.FC<SwitchProps>;
|
|
445
|
+
|
|
387
446
|
type MultiSelectItem = {
|
|
388
447
|
value: any;
|
|
389
448
|
label: string;
|
|
@@ -429,6 +488,45 @@ type MultiSelectProps<TMultiSelectItem = MultiSelectItem> = MultiSelectClientPro
|
|
|
429
488
|
|
|
430
489
|
declare const MultiSelect: (props: MultiSelectProps) => react_jsx_runtime.JSX.Element;
|
|
431
490
|
|
|
491
|
+
interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
492
|
+
label: string;
|
|
493
|
+
}
|
|
494
|
+
declare const Field: react.ForwardRefExoticComponent<FieldProps & react.RefAttributes<HTMLDivElement>>;
|
|
495
|
+
|
|
496
|
+
interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
497
|
+
as?: React.ElementType;
|
|
498
|
+
}
|
|
499
|
+
declare const List: react.ForwardRefExoticComponent<ListProps & react.RefAttributes<HTMLDivElement>>;
|
|
500
|
+
|
|
501
|
+
interface ListItemProps extends react__default.HTMLAttributes<HTMLDivElement> {
|
|
502
|
+
as?: react__default.ElementType;
|
|
503
|
+
title: string;
|
|
504
|
+
startContent?: react__default.ReactNode;
|
|
505
|
+
endContent?: react__default.ReactNode;
|
|
506
|
+
level?: number;
|
|
507
|
+
hoverable?: boolean;
|
|
508
|
+
selected?: boolean;
|
|
509
|
+
disabled?: boolean;
|
|
510
|
+
}
|
|
511
|
+
declare const ListItem: react__default.ForwardRefExoticComponent<ListItemProps & react__default.RefAttributes<HTMLDivElement>>;
|
|
512
|
+
|
|
513
|
+
type ListGroupProps = ListItemProps & {
|
|
514
|
+
expandVisible?: boolean;
|
|
515
|
+
expandPosition?: 'start' | 'end';
|
|
516
|
+
isOpen?: boolean;
|
|
517
|
+
onOpen?: () => void;
|
|
518
|
+
onClose?: () => void;
|
|
519
|
+
onToggle?: () => void;
|
|
520
|
+
};
|
|
521
|
+
declare const ListGroup: react.ForwardRefExoticComponent<ListItemProps & {
|
|
522
|
+
expandVisible?: boolean | undefined;
|
|
523
|
+
expandPosition?: "end" | "start" | undefined;
|
|
524
|
+
isOpen?: boolean | undefined;
|
|
525
|
+
onOpen?: (() => void) | undefined;
|
|
526
|
+
onClose?: (() => void) | undefined;
|
|
527
|
+
onToggle?: (() => void) | undefined;
|
|
528
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
529
|
+
|
|
432
530
|
declare global {
|
|
433
531
|
interface WindowEventMap {
|
|
434
532
|
'local-storage': CustomEvent;
|
|
@@ -451,6 +549,15 @@ declare function useLocalStorage<T>(key: string, initialValue: T): [T, SetValue<
|
|
|
451
549
|
*/
|
|
452
550
|
declare const usePrevious: (value: any) => undefined;
|
|
453
551
|
|
|
552
|
+
declare const useDisclosure: ({ defaultValue }?: {
|
|
553
|
+
defaultValue?: boolean | undefined;
|
|
554
|
+
}) => {
|
|
555
|
+
isOpen: boolean;
|
|
556
|
+
onOpen: () => void;
|
|
557
|
+
onClose: () => void;
|
|
558
|
+
onToggle: () => void;
|
|
559
|
+
};
|
|
560
|
+
|
|
454
561
|
interface Helpers {
|
|
455
562
|
goToNextStep: () => void;
|
|
456
563
|
goToPrevStep: () => void;
|
|
@@ -467,4 +574,4 @@ interface Helpers {
|
|
|
467
574
|
*/
|
|
468
575
|
declare const useStep: (maxStep: number) => [number, Helpers];
|
|
469
576
|
|
|
470
|
-
export { Backdrop, BackdropProps, Badge, BadgeProps, Button, ButtonColor, ButtonProps, ButtonSize, ButtonVariant, Chip, ChipProps, Collapse, CollapseContent, CollapseContentProps, CollapseContext, CollapseContextValue, CollapseProps, CollapseTrigger, CollapseTriggerProps, Drawer, DrawerPosition, DrawerProps, DrawerSize, Icon, IconProps, Menu, MenuContext, MenuContextValue, MenuGroup, MenuGroupItemType, MenuGroupProps, MenuItem, MenuItemProps, MenuItemType, MenuProps, MenuSubmenu, MenuSubmenuProps, MenuValueContext, MultiSelect, MultiSelectData, MultiSelectItem, MultiSelectProps, MultiSelectState, Portal, PortalProps, Select, SelectData, SelectItem, SelectProps, SelectState, Tab, TabProps, Tabs, TabsAlignmet, TabsProps, Toolbar, ToolbarProps, ToolbarSize, Transition, TransitionProps, getOpenValuesByPathname, useCollapse, useLocalStorage, useMenu, useMenuItemValue, usePrevious, useStep };
|
|
577
|
+
export { Accordion, AccordionContent, AccordionContentProps, AccordionHeader, AccordionHeaderProps, AccordionItem, AccordionItemProps, AccordionPanel, AccordionPanelProps, AccordionProps, Backdrop, BackdropProps, Badge, BadgeProps, Button, ButtonColor, ButtonProps, ButtonSize, ButtonVariant, Card, CardHeader, CardHeaderProps, CardProps, Chip, ChipProps, Collapse, CollapseContent, CollapseContentProps, CollapseContext, CollapseContextValue, CollapseProps, CollapseTrigger, CollapseTriggerProps, Drawer, DrawerPosition, DrawerProps, DrawerSize, Field, FieldProps, Icon, IconProps, List, ListGroup, ListGroupProps, ListItem, ListItemProps, ListProps, Menu, MenuContext, MenuContextValue, MenuGroup, MenuGroupItemType, MenuGroupProps, MenuItem, MenuItemProps, MenuItemType, MenuProps, MenuSubmenu, MenuSubmenuProps, MenuValueContext, MultiSelect, MultiSelectData, MultiSelectItem, MultiSelectProps, MultiSelectState, Portal, PortalProps, ScrollArea, ScrollAreaProps, Select, SelectData, SelectItem, SelectProps, SelectState, Switch, SwitchProps, Tab, TabProps, Tabs, TabsAlignmet, TabsProps, Toolbar, ToolbarProps, ToolbarSize, Transition, TransitionProps, getOpenValuesByPathname, useAccordionItem, useCollapse, useDisclosure, useLocalStorage, useMenu, useMenuItemValue, usePrevious, useStep };
|
package/dist/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ type NativeAttrs$6 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$6>;
|
|
|
24
24
|
type BadgeProps = Props$6 & NativeAttrs$6;
|
|
25
25
|
declare const Badge: React.FC<BadgeProps>;
|
|
26
26
|
|
|
27
|
-
type ButtonVariant = 'filled' | 'outlined' | '
|
|
27
|
+
type ButtonVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
28
28
|
type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
29
29
|
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
30
30
|
|
|
@@ -57,6 +57,7 @@ interface Props$5 {
|
|
|
57
57
|
* Content to display at the end of the button, after the button's text.
|
|
58
58
|
*/
|
|
59
59
|
endContent?: React.ReactNode;
|
|
60
|
+
block?: boolean;
|
|
60
61
|
/**
|
|
61
62
|
* Whether the button is in a loading state.
|
|
62
63
|
*/
|
|
@@ -70,6 +71,20 @@ type NativeAttrs$5 = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof P
|
|
|
70
71
|
type ButtonProps = Props$5 & NativeAttrs$5;
|
|
71
72
|
declare const Button: react.ForwardRefExoticComponent<Props$5 & NativeAttrs$5 & react.RefAttributes<HTMLButtonElement>>;
|
|
72
73
|
|
|
74
|
+
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
75
|
+
as?: React.ElementType;
|
|
76
|
+
}
|
|
77
|
+
declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
|
|
79
|
+
interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
80
|
+
as?: React.ElementType;
|
|
81
|
+
title: string;
|
|
82
|
+
subtitle?: string;
|
|
83
|
+
startContent?: React.ReactNode;
|
|
84
|
+
endContent?: React.ReactNode;
|
|
85
|
+
}
|
|
86
|
+
declare const CardHeader: react.ForwardRefExoticComponent<CardHeaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
87
|
+
|
|
73
88
|
type ChipVariant = 'filled' | 'outlined' | 'text';
|
|
74
89
|
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
75
90
|
type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -124,7 +139,7 @@ declare const useCollapse: () => CollapseContextValue;
|
|
|
124
139
|
interface CollapseTriggerProps {
|
|
125
140
|
children: react__default.ReactNode;
|
|
126
141
|
}
|
|
127
|
-
declare const CollapseTrigger: react__default.
|
|
142
|
+
declare const CollapseTrigger: react__default.ForwardRefExoticComponent<CollapseTriggerProps & react__default.RefAttributes<unknown>>;
|
|
128
143
|
|
|
129
144
|
type DrawerSize = 'sm' | 'md' | 'lg';
|
|
130
145
|
type DrawerPosition = 'top' | 'left' | 'right' | 'bottom';
|
|
@@ -173,9 +188,7 @@ interface Props$3 {
|
|
|
173
188
|
}
|
|
174
189
|
type NativeAttrs$3 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$3 | 'items'>;
|
|
175
190
|
type MenuItemProps = Props$3 & NativeAttrs$3;
|
|
176
|
-
declare const MenuItem: react.ForwardRefExoticComponent<Props$3 & NativeAttrs$3 &
|
|
177
|
-
children?: react.ReactNode;
|
|
178
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
191
|
+
declare const MenuItem: react.ForwardRefExoticComponent<Props$3 & NativeAttrs$3 & react.RefAttributes<HTMLDivElement>>;
|
|
179
192
|
|
|
180
193
|
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
181
194
|
items?: MenuItemType[];
|
|
@@ -237,7 +250,7 @@ interface Props$2 {
|
|
|
237
250
|
}
|
|
238
251
|
type NativeAttrs$2 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$2 | 'items'>;
|
|
239
252
|
type MenuProps = Props$2 & NativeAttrs$2 & {
|
|
240
|
-
items
|
|
253
|
+
items?: MenuItemType[];
|
|
241
254
|
};
|
|
242
255
|
declare const Menu: React.FC<MenuProps>;
|
|
243
256
|
|
|
@@ -259,6 +272,39 @@ declare const useMenuItemValue: () => string[];
|
|
|
259
272
|
|
|
260
273
|
declare const getOpenValuesByPathname: (pathname: string) => string[];
|
|
261
274
|
|
|
275
|
+
type AccordionProps = React.HTMLAttributes<HTMLDivElement>;
|
|
276
|
+
declare const Accordion: react.ForwardRefExoticComponent<AccordionProps & react.RefAttributes<HTMLDivElement>>;
|
|
277
|
+
|
|
278
|
+
interface AccordionItemContextValue {
|
|
279
|
+
value: string;
|
|
280
|
+
}
|
|
281
|
+
declare const useAccordionItem: () => AccordionItemContextValue;
|
|
282
|
+
type AccordionItemProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
283
|
+
value?: any;
|
|
284
|
+
};
|
|
285
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & {
|
|
286
|
+
value?: any;
|
|
287
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
288
|
+
|
|
289
|
+
type AccordionHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
290
|
+
title: string;
|
|
291
|
+
subtitle?: string;
|
|
292
|
+
startContent?: React.ReactNode;
|
|
293
|
+
endContent?: React.ReactNode;
|
|
294
|
+
};
|
|
295
|
+
declare const AccordionHeader: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & {
|
|
296
|
+
title: string;
|
|
297
|
+
subtitle?: string | undefined;
|
|
298
|
+
startContent?: React.ReactNode;
|
|
299
|
+
endContent?: React.ReactNode;
|
|
300
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
301
|
+
|
|
302
|
+
type AccordionPanelProps = React.HTMLAttributes<HTMLDivElement>;
|
|
303
|
+
declare const AccordionPanel: react.ForwardRefExoticComponent<AccordionPanelProps & react.RefAttributes<HTMLDivElement>>;
|
|
304
|
+
|
|
305
|
+
type AccordionContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
306
|
+
declare const AccordionContent: react.ForwardRefExoticComponent<AccordionContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
307
|
+
|
|
262
308
|
interface PortalProps {
|
|
263
309
|
children: React.ReactNode;
|
|
264
310
|
}
|
|
@@ -339,6 +385,11 @@ interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
339
385
|
}
|
|
340
386
|
declare const Transition: react.ForwardRefExoticComponent<TransitionProps & react.RefAttributes<HTMLElement>>;
|
|
341
387
|
|
|
388
|
+
interface ScrollAreaProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
389
|
+
direction?: 'vertical' | 'horizontal';
|
|
390
|
+
}
|
|
391
|
+
declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaProps & react.RefAttributes<HTMLDivElement>>;
|
|
392
|
+
|
|
342
393
|
type SelectItem = {
|
|
343
394
|
key: any;
|
|
344
395
|
text: string;
|
|
@@ -384,6 +435,14 @@ type SelectProps<TSelectItem = SelectItem> = SelectClientProps<TSelectItem> | Se
|
|
|
384
435
|
|
|
385
436
|
declare const Select: (props: SelectProps) => react_jsx_runtime.JSX.Element;
|
|
386
437
|
|
|
438
|
+
type SwitchProps = {
|
|
439
|
+
value?: boolean;
|
|
440
|
+
defaultValue?: boolean;
|
|
441
|
+
error?: boolean;
|
|
442
|
+
onChange?: (value: boolean) => void;
|
|
443
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'>;
|
|
444
|
+
declare const Switch: React.FC<SwitchProps>;
|
|
445
|
+
|
|
387
446
|
type MultiSelectItem = {
|
|
388
447
|
value: any;
|
|
389
448
|
label: string;
|
|
@@ -429,6 +488,45 @@ type MultiSelectProps<TMultiSelectItem = MultiSelectItem> = MultiSelectClientPro
|
|
|
429
488
|
|
|
430
489
|
declare const MultiSelect: (props: MultiSelectProps) => react_jsx_runtime.JSX.Element;
|
|
431
490
|
|
|
491
|
+
interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
492
|
+
label: string;
|
|
493
|
+
}
|
|
494
|
+
declare const Field: react.ForwardRefExoticComponent<FieldProps & react.RefAttributes<HTMLDivElement>>;
|
|
495
|
+
|
|
496
|
+
interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
497
|
+
as?: React.ElementType;
|
|
498
|
+
}
|
|
499
|
+
declare const List: react.ForwardRefExoticComponent<ListProps & react.RefAttributes<HTMLDivElement>>;
|
|
500
|
+
|
|
501
|
+
interface ListItemProps extends react__default.HTMLAttributes<HTMLDivElement> {
|
|
502
|
+
as?: react__default.ElementType;
|
|
503
|
+
title: string;
|
|
504
|
+
startContent?: react__default.ReactNode;
|
|
505
|
+
endContent?: react__default.ReactNode;
|
|
506
|
+
level?: number;
|
|
507
|
+
hoverable?: boolean;
|
|
508
|
+
selected?: boolean;
|
|
509
|
+
disabled?: boolean;
|
|
510
|
+
}
|
|
511
|
+
declare const ListItem: react__default.ForwardRefExoticComponent<ListItemProps & react__default.RefAttributes<HTMLDivElement>>;
|
|
512
|
+
|
|
513
|
+
type ListGroupProps = ListItemProps & {
|
|
514
|
+
expandVisible?: boolean;
|
|
515
|
+
expandPosition?: 'start' | 'end';
|
|
516
|
+
isOpen?: boolean;
|
|
517
|
+
onOpen?: () => void;
|
|
518
|
+
onClose?: () => void;
|
|
519
|
+
onToggle?: () => void;
|
|
520
|
+
};
|
|
521
|
+
declare const ListGroup: react.ForwardRefExoticComponent<ListItemProps & {
|
|
522
|
+
expandVisible?: boolean | undefined;
|
|
523
|
+
expandPosition?: "end" | "start" | undefined;
|
|
524
|
+
isOpen?: boolean | undefined;
|
|
525
|
+
onOpen?: (() => void) | undefined;
|
|
526
|
+
onClose?: (() => void) | undefined;
|
|
527
|
+
onToggle?: (() => void) | undefined;
|
|
528
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
529
|
+
|
|
432
530
|
declare global {
|
|
433
531
|
interface WindowEventMap {
|
|
434
532
|
'local-storage': CustomEvent;
|
|
@@ -451,6 +549,15 @@ declare function useLocalStorage<T>(key: string, initialValue: T): [T, SetValue<
|
|
|
451
549
|
*/
|
|
452
550
|
declare const usePrevious: (value: any) => undefined;
|
|
453
551
|
|
|
552
|
+
declare const useDisclosure: ({ defaultValue }?: {
|
|
553
|
+
defaultValue?: boolean | undefined;
|
|
554
|
+
}) => {
|
|
555
|
+
isOpen: boolean;
|
|
556
|
+
onOpen: () => void;
|
|
557
|
+
onClose: () => void;
|
|
558
|
+
onToggle: () => void;
|
|
559
|
+
};
|
|
560
|
+
|
|
454
561
|
interface Helpers {
|
|
455
562
|
goToNextStep: () => void;
|
|
456
563
|
goToPrevStep: () => void;
|
|
@@ -467,4 +574,4 @@ interface Helpers {
|
|
|
467
574
|
*/
|
|
468
575
|
declare const useStep: (maxStep: number) => [number, Helpers];
|
|
469
576
|
|
|
470
|
-
export { Backdrop, BackdropProps, Badge, BadgeProps, Button, ButtonColor, ButtonProps, ButtonSize, ButtonVariant, Chip, ChipProps, Collapse, CollapseContent, CollapseContentProps, CollapseContext, CollapseContextValue, CollapseProps, CollapseTrigger, CollapseTriggerProps, Drawer, DrawerPosition, DrawerProps, DrawerSize, Icon, IconProps, Menu, MenuContext, MenuContextValue, MenuGroup, MenuGroupItemType, MenuGroupProps, MenuItem, MenuItemProps, MenuItemType, MenuProps, MenuSubmenu, MenuSubmenuProps, MenuValueContext, MultiSelect, MultiSelectData, MultiSelectItem, MultiSelectProps, MultiSelectState, Portal, PortalProps, Select, SelectData, SelectItem, SelectProps, SelectState, Tab, TabProps, Tabs, TabsAlignmet, TabsProps, Toolbar, ToolbarProps, ToolbarSize, Transition, TransitionProps, getOpenValuesByPathname, useCollapse, useLocalStorage, useMenu, useMenuItemValue, usePrevious, useStep };
|
|
577
|
+
export { Accordion, AccordionContent, AccordionContentProps, AccordionHeader, AccordionHeaderProps, AccordionItem, AccordionItemProps, AccordionPanel, AccordionPanelProps, AccordionProps, Backdrop, BackdropProps, Badge, BadgeProps, Button, ButtonColor, ButtonProps, ButtonSize, ButtonVariant, Card, CardHeader, CardHeaderProps, CardProps, Chip, ChipProps, Collapse, CollapseContent, CollapseContentProps, CollapseContext, CollapseContextValue, CollapseProps, CollapseTrigger, CollapseTriggerProps, Drawer, DrawerPosition, DrawerProps, DrawerSize, Field, FieldProps, Icon, IconProps, List, ListGroup, ListGroupProps, ListItem, ListItemProps, ListProps, Menu, MenuContext, MenuContextValue, MenuGroup, MenuGroupItemType, MenuGroupProps, MenuItem, MenuItemProps, MenuItemType, MenuProps, MenuSubmenu, MenuSubmenuProps, MenuValueContext, MultiSelect, MultiSelectData, MultiSelectItem, MultiSelectProps, MultiSelectState, Portal, PortalProps, ScrollArea, ScrollAreaProps, Select, SelectData, SelectItem, SelectProps, SelectState, Switch, SwitchProps, Tab, TabProps, Tabs, TabsAlignmet, TabsProps, Toolbar, ToolbarProps, ToolbarSize, Transition, TransitionProps, getOpenValuesByPathname, useAccordionItem, useCollapse, useDisclosure, useLocalStorage, useMenu, useMenuItemValue, usePrevious, useStep };
|