@compa11y/react 0.1.0
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/LICENSE +21 -0
- package/README.md +252 -0
- package/dist/chunk-2S4C6FGA.js +380 -0
- package/dist/chunk-2S4C6FGA.js.map +1 -0
- package/dist/chunk-52J4Z3QD.cjs +45 -0
- package/dist/chunk-52J4Z3QD.cjs.map +1 -0
- package/dist/chunk-C7QK2I7H.js +373 -0
- package/dist/chunk-C7QK2I7H.js.map +1 -0
- package/dist/chunk-D2UMS62N.cjs +245 -0
- package/dist/chunk-D2UMS62N.cjs.map +1 -0
- package/dist/chunk-E265U2RK.js +234 -0
- package/dist/chunk-E265U2RK.js.map +1 -0
- package/dist/chunk-E4XJRXWM.js +215 -0
- package/dist/chunk-E4XJRXWM.js.map +1 -0
- package/dist/chunk-GDLOJH6K.cjs +110 -0
- package/dist/chunk-GDLOJH6K.cjs.map +1 -0
- package/dist/chunk-IR46CNNY.cjs +329 -0
- package/dist/chunk-IR46CNNY.cjs.map +1 -0
- package/dist/chunk-JXYOE7SH.js +103 -0
- package/dist/chunk-JXYOE7SH.js.map +1 -0
- package/dist/chunk-O3YYQZ5O.js +317 -0
- package/dist/chunk-O3YYQZ5O.js.map +1 -0
- package/dist/chunk-OIVTOU4Z.cjs +386 -0
- package/dist/chunk-OIVTOU4Z.cjs.map +1 -0
- package/dist/chunk-OND5B7UG.js +85 -0
- package/dist/chunk-OND5B7UG.js.map +1 -0
- package/dist/chunk-R4FR6M6I.cjs +383 -0
- package/dist/chunk-R4FR6M6I.cjs.map +1 -0
- package/dist/chunk-RBDQCIS7.cjs +89 -0
- package/dist/chunk-RBDQCIS7.cjs.map +1 -0
- package/dist/chunk-SOBS7MIH.cjs +220 -0
- package/dist/chunk-SOBS7MIH.cjs.map +1 -0
- package/dist/chunk-WURPAE3R.js +41 -0
- package/dist/chunk-WURPAE3R.js.map +1 -0
- package/dist/components/combobox/index.cjs +31 -0
- package/dist/components/combobox/index.cjs.map +1 -0
- package/dist/components/combobox/index.d.cts +55 -0
- package/dist/components/combobox/index.d.ts +55 -0
- package/dist/components/combobox/index.js +6 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/dialog/index.cjs +46 -0
- package/dist/components/dialog/index.cjs.map +1 -0
- package/dist/components/dialog/index.d.cts +84 -0
- package/dist/components/dialog/index.d.ts +84 -0
- package/dist/components/dialog/index.js +5 -0
- package/dist/components/dialog/index.js.map +1 -0
- package/dist/components/menu/index.cjs +46 -0
- package/dist/components/menu/index.cjs.map +1 -0
- package/dist/components/menu/index.d.cts +80 -0
- package/dist/components/menu/index.d.ts +80 -0
- package/dist/components/menu/index.js +5 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/tabs/index.cjs +35 -0
- package/dist/components/tabs/index.cjs.map +1 -0
- package/dist/components/tabs/index.d.cts +65 -0
- package/dist/components/tabs/index.d.ts +65 -0
- package/dist/components/tabs/index.js +6 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/toast/index.cjs +24 -0
- package/dist/components/toast/index.cjs.map +1 -0
- package/dist/components/toast/index.d.cts +49 -0
- package/dist/components/toast/index.d.ts +49 -0
- package/dist/components/toast/index.js +3 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/index.cjs +702 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +402 -0
- package/dist/index.d.ts +402 -0
- package/dist/index.js +430 -0
- package/dist/index.js.map +1 -0
- package/package.json +99 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
interface DialogProps {
|
|
4
|
+
/** Whether the dialog is open */
|
|
5
|
+
open: boolean;
|
|
6
|
+
/** Called when the dialog should close */
|
|
7
|
+
onOpenChange: (open: boolean) => void;
|
|
8
|
+
/** The dialog content */
|
|
9
|
+
children: React__default.ReactNode;
|
|
10
|
+
/** Custom class name */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Element to focus when dialog opens */
|
|
13
|
+
initialFocus?: React__default.RefObject<HTMLElement>;
|
|
14
|
+
/** Whether clicking outside closes the dialog */
|
|
15
|
+
closeOnOutsideClick?: boolean;
|
|
16
|
+
/** Whether pressing Escape closes the dialog */
|
|
17
|
+
closeOnEscape?: boolean;
|
|
18
|
+
/** Portal container (defaults to document.body) */
|
|
19
|
+
container?: HTMLElement;
|
|
20
|
+
/** Accessible label (required if no DialogTitle) */
|
|
21
|
+
'aria-label'?: string;
|
|
22
|
+
/** ID of element that labels the dialog */
|
|
23
|
+
'aria-labelledby'?: string;
|
|
24
|
+
/** Remove default styles to allow full customization via className */
|
|
25
|
+
unstyled?: boolean;
|
|
26
|
+
}
|
|
27
|
+
declare function Dialog({ open, onOpenChange, children, className, initialFocus, closeOnOutsideClick, closeOnEscape, container, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, unstyled, }: DialogProps): React__default.ReactPortal | null;
|
|
28
|
+
interface DialogTriggerProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
29
|
+
children: React__default.ReactNode;
|
|
30
|
+
}
|
|
31
|
+
declare const DialogTrigger: React__default.ForwardRefExoticComponent<DialogTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
32
|
+
interface DialogTitleProps extends React__default.HTMLAttributes<HTMLHeadingElement> {
|
|
33
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
34
|
+
children: React__default.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
declare const DialogTitle: React__default.ForwardRefExoticComponent<DialogTitleProps & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
37
|
+
interface DialogDescriptionProps extends React__default.HTMLAttributes<HTMLParagraphElement> {
|
|
38
|
+
children: React__default.ReactNode;
|
|
39
|
+
}
|
|
40
|
+
declare const DialogDescription: React__default.ForwardRefExoticComponent<DialogDescriptionProps & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
41
|
+
interface DialogCloseProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
42
|
+
children?: React__default.ReactNode;
|
|
43
|
+
}
|
|
44
|
+
declare const DialogClose: React__default.ForwardRefExoticComponent<DialogCloseProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
45
|
+
interface DialogContentProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
46
|
+
children: React__default.ReactNode;
|
|
47
|
+
}
|
|
48
|
+
declare const DialogContent: React__default.ForwardRefExoticComponent<DialogContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
interface DialogActionsProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
50
|
+
children: React__default.ReactNode;
|
|
51
|
+
}
|
|
52
|
+
declare const DialogActions: React__default.ForwardRefExoticComponent<DialogActionsProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
declare const DialogCompound: typeof Dialog & {
|
|
54
|
+
Trigger: React__default.ForwardRefExoticComponent<DialogTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
55
|
+
Title: React__default.ForwardRefExoticComponent<DialogTitleProps & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
56
|
+
Description: React__default.ForwardRefExoticComponent<DialogDescriptionProps & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
57
|
+
Close: React__default.ForwardRefExoticComponent<DialogCloseProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
58
|
+
Content: React__default.ForwardRefExoticComponent<DialogContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
Actions: React__default.ForwardRefExoticComponent<DialogActionsProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
interface DialogContextValue {
|
|
63
|
+
/** Whether the dialog is open */
|
|
64
|
+
isOpen: boolean;
|
|
65
|
+
/** Close the dialog */
|
|
66
|
+
close: () => void;
|
|
67
|
+
/** ID for the dialog element */
|
|
68
|
+
dialogId: string;
|
|
69
|
+
/** ID for the title element */
|
|
70
|
+
titleId: string;
|
|
71
|
+
/** ID for the description element */
|
|
72
|
+
descriptionId: string;
|
|
73
|
+
/** Whether the dialog has a visible title */
|
|
74
|
+
hasTitle: boolean;
|
|
75
|
+
/** Whether the dialog has a visible description */
|
|
76
|
+
hasDescription: boolean;
|
|
77
|
+
/** Set whether title is rendered */
|
|
78
|
+
setHasTitle: (value: boolean) => void;
|
|
79
|
+
/** Set whether description is rendered */
|
|
80
|
+
setHasDescription: (value: boolean) => void;
|
|
81
|
+
}
|
|
82
|
+
declare function useDialogContext(): DialogContextValue;
|
|
83
|
+
|
|
84
|
+
export { Dialog, DialogActions, type DialogActionsProps, DialogClose, type DialogCloseProps, DialogCompound, DialogContent, type DialogContentProps, type DialogContextValue, DialogDescription, type DialogDescriptionProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, useDialogContext };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Dialog, DialogActions, DialogClose, DialogCompound, DialogContent, DialogDescription, DialogTitle, DialogTrigger, useDialogContext } from '../../chunk-O3YYQZ5O.js';
|
|
2
|
+
import '../../chunk-OND5B7UG.js';
|
|
3
|
+
import '../../chunk-WURPAE3R.js';
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkR4FR6M6I_cjs = require('../../chunk-R4FR6M6I.cjs');
|
|
4
|
+
require('../../chunk-GDLOJH6K.cjs');
|
|
5
|
+
require('../../chunk-52J4Z3QD.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "ActionMenu", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkR4FR6M6I_cjs.ActionMenu; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "ActionMenuCompound", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkR4FR6M6I_cjs.ActionMenuCompound; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "ActionMenuContent", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkR4FR6M6I_cjs.ActionMenuContent; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "ActionMenuItem", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkR4FR6M6I_cjs.ActionMenuItem; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "ActionMenuLabel", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkR4FR6M6I_cjs.ActionMenuLabel; }
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "ActionMenuProvider", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return chunkR4FR6M6I_cjs.ActionMenuProvider; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "ActionMenuSeparator", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return chunkR4FR6M6I_cjs.ActionMenuSeparator; }
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "ActionMenuTrigger", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return chunkR4FR6M6I_cjs.ActionMenuTrigger; }
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "useActionMenuContext", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return chunkR4FR6M6I_cjs.useActionMenuContext; }
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=index.cjs.map
|
|
46
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
|
|
5
|
+
interface ActionMenuProps {
|
|
6
|
+
/** Whether the menu is initially open */
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
/** Controlled open state */
|
|
9
|
+
open?: boolean;
|
|
10
|
+
/** Called when open state changes */
|
|
11
|
+
onOpenChange?: (open: boolean) => void;
|
|
12
|
+
/** Menu content */
|
|
13
|
+
children: React__default.ReactNode;
|
|
14
|
+
/** Remove default styles to allow full customization via className */
|
|
15
|
+
unstyled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare function ActionMenu({ defaultOpen, open: controlledOpen, onOpenChange, children, unstyled, }: ActionMenuProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
interface ActionMenuTriggerProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
19
|
+
children: React__default.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
declare const ActionMenuTrigger: React__default.ForwardRefExoticComponent<ActionMenuTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
interface ActionMenuContentProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
23
|
+
children: React__default.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
declare const ActionMenuContent: React__default.ForwardRefExoticComponent<ActionMenuContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
interface ActionMenuItemProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
27
|
+
/** Whether the item is disabled */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Called when item is selected */
|
|
30
|
+
onSelect?: () => void;
|
|
31
|
+
children: React__default.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
declare const ActionMenuItem: React__default.ForwardRefExoticComponent<ActionMenuItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
interface ActionMenuSeparatorProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
35
|
+
}
|
|
36
|
+
declare const ActionMenuSeparator: React__default.ForwardRefExoticComponent<ActionMenuSeparatorProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
interface ActionMenuLabelProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
38
|
+
children: React__default.ReactNode;
|
|
39
|
+
}
|
|
40
|
+
declare const ActionMenuLabel: React__default.ForwardRefExoticComponent<ActionMenuLabelProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
declare const ActionMenuCompound: typeof ActionMenu & {
|
|
42
|
+
Trigger: React__default.ForwardRefExoticComponent<ActionMenuTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
43
|
+
Content: React__default.ForwardRefExoticComponent<ActionMenuContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
Item: React__default.ForwardRefExoticComponent<ActionMenuItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
Separator: React__default.ForwardRefExoticComponent<ActionMenuSeparatorProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
Label: React__default.ForwardRefExoticComponent<ActionMenuLabelProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
interface ActionMenuContextValue {
|
|
50
|
+
/** Whether the menu is open */
|
|
51
|
+
isOpen: boolean;
|
|
52
|
+
/** Open the menu */
|
|
53
|
+
open: () => void;
|
|
54
|
+
/** Close the menu */
|
|
55
|
+
close: () => void;
|
|
56
|
+
/** Toggle the menu */
|
|
57
|
+
toggle: () => void;
|
|
58
|
+
/** Currently highlighted item index */
|
|
59
|
+
highlightedIndex: number;
|
|
60
|
+
/** Set highlighted item */
|
|
61
|
+
setHighlightedIndex: (index: number) => void;
|
|
62
|
+
/** ID for the menu element */
|
|
63
|
+
menuId: string;
|
|
64
|
+
/** ID for the trigger element */
|
|
65
|
+
triggerId: string;
|
|
66
|
+
/** Register a menu item */
|
|
67
|
+
registerItem: (id: string) => number;
|
|
68
|
+
/** Unregister a menu item */
|
|
69
|
+
unregisterItem: (id: string) => void;
|
|
70
|
+
/** Get item count */
|
|
71
|
+
getItemCount: () => number;
|
|
72
|
+
/** Select an item */
|
|
73
|
+
selectItem: (index: number) => void;
|
|
74
|
+
/** Whether default styles are disabled */
|
|
75
|
+
unstyled: boolean;
|
|
76
|
+
}
|
|
77
|
+
declare function useActionMenuContext(): ActionMenuContextValue;
|
|
78
|
+
declare const ActionMenuProvider: React.Provider<ActionMenuContextValue | null>;
|
|
79
|
+
|
|
80
|
+
export { ActionMenu, ActionMenuCompound, ActionMenuContent, type ActionMenuContentProps, type ActionMenuContextValue, ActionMenuItem, type ActionMenuItemProps, ActionMenuLabel, type ActionMenuLabelProps, type ActionMenuProps, ActionMenuProvider, ActionMenuSeparator, type ActionMenuSeparatorProps, ActionMenuTrigger, type ActionMenuTriggerProps, useActionMenuContext };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
|
|
5
|
+
interface ActionMenuProps {
|
|
6
|
+
/** Whether the menu is initially open */
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
/** Controlled open state */
|
|
9
|
+
open?: boolean;
|
|
10
|
+
/** Called when open state changes */
|
|
11
|
+
onOpenChange?: (open: boolean) => void;
|
|
12
|
+
/** Menu content */
|
|
13
|
+
children: React__default.ReactNode;
|
|
14
|
+
/** Remove default styles to allow full customization via className */
|
|
15
|
+
unstyled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare function ActionMenu({ defaultOpen, open: controlledOpen, onOpenChange, children, unstyled, }: ActionMenuProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
interface ActionMenuTriggerProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
19
|
+
children: React__default.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
declare const ActionMenuTrigger: React__default.ForwardRefExoticComponent<ActionMenuTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
interface ActionMenuContentProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
23
|
+
children: React__default.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
declare const ActionMenuContent: React__default.ForwardRefExoticComponent<ActionMenuContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
interface ActionMenuItemProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
27
|
+
/** Whether the item is disabled */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Called when item is selected */
|
|
30
|
+
onSelect?: () => void;
|
|
31
|
+
children: React__default.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
declare const ActionMenuItem: React__default.ForwardRefExoticComponent<ActionMenuItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
interface ActionMenuSeparatorProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
35
|
+
}
|
|
36
|
+
declare const ActionMenuSeparator: React__default.ForwardRefExoticComponent<ActionMenuSeparatorProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
interface ActionMenuLabelProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
38
|
+
children: React__default.ReactNode;
|
|
39
|
+
}
|
|
40
|
+
declare const ActionMenuLabel: React__default.ForwardRefExoticComponent<ActionMenuLabelProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
declare const ActionMenuCompound: typeof ActionMenu & {
|
|
42
|
+
Trigger: React__default.ForwardRefExoticComponent<ActionMenuTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
43
|
+
Content: React__default.ForwardRefExoticComponent<ActionMenuContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
Item: React__default.ForwardRefExoticComponent<ActionMenuItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
Separator: React__default.ForwardRefExoticComponent<ActionMenuSeparatorProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
Label: React__default.ForwardRefExoticComponent<ActionMenuLabelProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
interface ActionMenuContextValue {
|
|
50
|
+
/** Whether the menu is open */
|
|
51
|
+
isOpen: boolean;
|
|
52
|
+
/** Open the menu */
|
|
53
|
+
open: () => void;
|
|
54
|
+
/** Close the menu */
|
|
55
|
+
close: () => void;
|
|
56
|
+
/** Toggle the menu */
|
|
57
|
+
toggle: () => void;
|
|
58
|
+
/** Currently highlighted item index */
|
|
59
|
+
highlightedIndex: number;
|
|
60
|
+
/** Set highlighted item */
|
|
61
|
+
setHighlightedIndex: (index: number) => void;
|
|
62
|
+
/** ID for the menu element */
|
|
63
|
+
menuId: string;
|
|
64
|
+
/** ID for the trigger element */
|
|
65
|
+
triggerId: string;
|
|
66
|
+
/** Register a menu item */
|
|
67
|
+
registerItem: (id: string) => number;
|
|
68
|
+
/** Unregister a menu item */
|
|
69
|
+
unregisterItem: (id: string) => void;
|
|
70
|
+
/** Get item count */
|
|
71
|
+
getItemCount: () => number;
|
|
72
|
+
/** Select an item */
|
|
73
|
+
selectItem: (index: number) => void;
|
|
74
|
+
/** Whether default styles are disabled */
|
|
75
|
+
unstyled: boolean;
|
|
76
|
+
}
|
|
77
|
+
declare function useActionMenuContext(): ActionMenuContextValue;
|
|
78
|
+
declare const ActionMenuProvider: React.Provider<ActionMenuContextValue | null>;
|
|
79
|
+
|
|
80
|
+
export { ActionMenu, ActionMenuCompound, ActionMenuContent, type ActionMenuContentProps, type ActionMenuContextValue, ActionMenuItem, type ActionMenuItemProps, ActionMenuLabel, type ActionMenuLabelProps, type ActionMenuProps, ActionMenuProvider, ActionMenuSeparator, type ActionMenuSeparatorProps, ActionMenuTrigger, type ActionMenuTriggerProps, useActionMenuContext };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ActionMenu, ActionMenuCompound, ActionMenuContent, ActionMenuItem, ActionMenuLabel, ActionMenuProvider, ActionMenuSeparator, ActionMenuTrigger, useActionMenuContext } from '../../chunk-C7QK2I7H.js';
|
|
2
|
+
import '../../chunk-JXYOE7SH.js';
|
|
3
|
+
import '../../chunk-WURPAE3R.js';
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkD2UMS62N_cjs = require('../../chunk-D2UMS62N.cjs');
|
|
4
|
+
require('../../chunk-RBDQCIS7.cjs');
|
|
5
|
+
require('../../chunk-GDLOJH6K.cjs');
|
|
6
|
+
require('../../chunk-52J4Z3QD.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "Tab", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkD2UMS62N_cjs.Tab; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "TabList", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkD2UMS62N_cjs.TabList; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "TabPanel", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkD2UMS62N_cjs.TabPanel; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "Tabs", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunkD2UMS62N_cjs.Tabs; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "TabsCompound", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunkD2UMS62N_cjs.TabsCompound; }
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "useTabsContext", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return chunkD2UMS62N_cjs.useTabsContext; }
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=index.cjs.map
|
|
35
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
interface TabsProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** Default selected tab value */
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
/** Controlled selected value */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** Called when selection changes */
|
|
9
|
+
onValueChange?: (value: string) => void;
|
|
10
|
+
/** Orientation of tabs */
|
|
11
|
+
orientation?: 'horizontal' | 'vertical';
|
|
12
|
+
/** Activation mode */
|
|
13
|
+
activationMode?: 'automatic' | 'manual';
|
|
14
|
+
children: React__default.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
declare const Tabs: React__default.ForwardRefExoticComponent<TabsProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
interface TabListProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
18
|
+
/** Accessible label for the tab list */
|
|
19
|
+
'aria-label'?: string;
|
|
20
|
+
children: React__default.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
declare const TabList: React__default.ForwardRefExoticComponent<TabListProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
interface TabProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
|
|
24
|
+
/** Value identifying this tab */
|
|
25
|
+
value: string;
|
|
26
|
+
/** Whether the tab is disabled */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
children: React__default.ReactNode;
|
|
29
|
+
}
|
|
30
|
+
declare const Tab: React__default.ForwardRefExoticComponent<TabProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
interface TabPanelProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
/** Value identifying this panel (must match a Tab value) */
|
|
33
|
+
value: string;
|
|
34
|
+
/** Whether to keep panel mounted when not selected */
|
|
35
|
+
forceMount?: boolean;
|
|
36
|
+
children: React__default.ReactNode;
|
|
37
|
+
}
|
|
38
|
+
declare const TabPanel: React__default.ForwardRefExoticComponent<TabPanelProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
declare const TabsCompound: React__default.ForwardRefExoticComponent<TabsProps & React__default.RefAttributes<HTMLDivElement>> & {
|
|
40
|
+
List: React__default.ForwardRefExoticComponent<TabListProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
Tab: React__default.ForwardRefExoticComponent<TabProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
42
|
+
Panel: React__default.ForwardRefExoticComponent<TabPanelProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
interface TabsContextValue {
|
|
46
|
+
/** Currently selected tab value */
|
|
47
|
+
selectedValue: string;
|
|
48
|
+
/** Change selected tab */
|
|
49
|
+
setSelectedValue: (value: string) => void;
|
|
50
|
+
/** Base ID for ARIA relationships */
|
|
51
|
+
baseId: string;
|
|
52
|
+
/** Orientation of tabs */
|
|
53
|
+
orientation: 'horizontal' | 'vertical';
|
|
54
|
+
/** Whether tabs are activated on focus or on click */
|
|
55
|
+
activationMode: 'automatic' | 'manual';
|
|
56
|
+
/** Register a tab */
|
|
57
|
+
registerTab: (value: string) => void;
|
|
58
|
+
/** Unregister a tab */
|
|
59
|
+
unregisterTab: (value: string) => void;
|
|
60
|
+
/** Get all tab values */
|
|
61
|
+
getTabValues: () => string[];
|
|
62
|
+
}
|
|
63
|
+
declare function useTabsContext(): TabsContextValue;
|
|
64
|
+
|
|
65
|
+
export { Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, TabsCompound, type TabsContextValue, type TabsProps, useTabsContext };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
interface TabsProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** Default selected tab value */
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
/** Controlled selected value */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** Called when selection changes */
|
|
9
|
+
onValueChange?: (value: string) => void;
|
|
10
|
+
/** Orientation of tabs */
|
|
11
|
+
orientation?: 'horizontal' | 'vertical';
|
|
12
|
+
/** Activation mode */
|
|
13
|
+
activationMode?: 'automatic' | 'manual';
|
|
14
|
+
children: React__default.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
declare const Tabs: React__default.ForwardRefExoticComponent<TabsProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
interface TabListProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
18
|
+
/** Accessible label for the tab list */
|
|
19
|
+
'aria-label'?: string;
|
|
20
|
+
children: React__default.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
declare const TabList: React__default.ForwardRefExoticComponent<TabListProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
interface TabProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
|
|
24
|
+
/** Value identifying this tab */
|
|
25
|
+
value: string;
|
|
26
|
+
/** Whether the tab is disabled */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
children: React__default.ReactNode;
|
|
29
|
+
}
|
|
30
|
+
declare const Tab: React__default.ForwardRefExoticComponent<TabProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
interface TabPanelProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
/** Value identifying this panel (must match a Tab value) */
|
|
33
|
+
value: string;
|
|
34
|
+
/** Whether to keep panel mounted when not selected */
|
|
35
|
+
forceMount?: boolean;
|
|
36
|
+
children: React__default.ReactNode;
|
|
37
|
+
}
|
|
38
|
+
declare const TabPanel: React__default.ForwardRefExoticComponent<TabPanelProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
declare const TabsCompound: React__default.ForwardRefExoticComponent<TabsProps & React__default.RefAttributes<HTMLDivElement>> & {
|
|
40
|
+
List: React__default.ForwardRefExoticComponent<TabListProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
Tab: React__default.ForwardRefExoticComponent<TabProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
42
|
+
Panel: React__default.ForwardRefExoticComponent<TabPanelProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
interface TabsContextValue {
|
|
46
|
+
/** Currently selected tab value */
|
|
47
|
+
selectedValue: string;
|
|
48
|
+
/** Change selected tab */
|
|
49
|
+
setSelectedValue: (value: string) => void;
|
|
50
|
+
/** Base ID for ARIA relationships */
|
|
51
|
+
baseId: string;
|
|
52
|
+
/** Orientation of tabs */
|
|
53
|
+
orientation: 'horizontal' | 'vertical';
|
|
54
|
+
/** Whether tabs are activated on focus or on click */
|
|
55
|
+
activationMode: 'automatic' | 'manual';
|
|
56
|
+
/** Register a tab */
|
|
57
|
+
registerTab: (value: string) => void;
|
|
58
|
+
/** Unregister a tab */
|
|
59
|
+
unregisterTab: (value: string) => void;
|
|
60
|
+
/** Get all tab values */
|
|
61
|
+
getTabValues: () => string[];
|
|
62
|
+
}
|
|
63
|
+
declare function useTabsContext(): TabsContextValue;
|
|
64
|
+
|
|
65
|
+
export { Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, TabsCompound, type TabsContextValue, type TabsProps, useTabsContext };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Tab, TabList, TabPanel, Tabs, TabsCompound, useTabsContext } from '../../chunk-E265U2RK.js';
|
|
2
|
+
import '../../chunk-OND5B7UG.js';
|
|
3
|
+
import '../../chunk-JXYOE7SH.js';
|
|
4
|
+
import '../../chunk-WURPAE3R.js';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkSOBS7MIH_cjs = require('../../chunk-SOBS7MIH.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "ToastProvider", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkSOBS7MIH_cjs.ToastProvider; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "ToastViewport", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkSOBS7MIH_cjs.ToastViewport; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "useToast", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkSOBS7MIH_cjs.useToast; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "useToastHelpers", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkSOBS7MIH_cjs.useToastHelpers; }
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.cjs.map
|
|
24
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
type ToastType = 'info' | 'success' | 'warning' | 'error';
|
|
5
|
+
interface Toast {
|
|
6
|
+
id: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
type: ToastType;
|
|
10
|
+
duration?: number;
|
|
11
|
+
action?: {
|
|
12
|
+
label: string;
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
interface ToastContextValue {
|
|
17
|
+
toasts: Toast[];
|
|
18
|
+
addToast: (toast: Omit<Toast, 'id'>) => string;
|
|
19
|
+
removeToast: (id: string) => void;
|
|
20
|
+
updateToast: (id: string, toast: Partial<Omit<Toast, 'id'>>) => void;
|
|
21
|
+
}
|
|
22
|
+
declare function useToast(): ToastContextValue;
|
|
23
|
+
interface ToastProviderProps {
|
|
24
|
+
children: React__default.ReactNode;
|
|
25
|
+
/** Default duration for toasts in ms */
|
|
26
|
+
duration?: number;
|
|
27
|
+
/** Maximum number of visible toasts */
|
|
28
|
+
maxToasts?: number;
|
|
29
|
+
}
|
|
30
|
+
declare function ToastProvider({ children, duration, maxToasts, }: ToastProviderProps): react_jsx_runtime.JSX.Element;
|
|
31
|
+
interface ToastViewportProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
/** Position of the toast container */
|
|
33
|
+
position?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
34
|
+
/** Label for screen readers */
|
|
35
|
+
label?: string;
|
|
36
|
+
}
|
|
37
|
+
declare const ToastViewport: React__default.ForwardRefExoticComponent<ToastViewportProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
/**
|
|
39
|
+
* Hook for common toast patterns
|
|
40
|
+
*/
|
|
41
|
+
declare function useToastHelpers(): {
|
|
42
|
+
toast: (toast: Omit<Toast, "id">) => string;
|
|
43
|
+
success: (title: string, description?: string) => string;
|
|
44
|
+
error: (title: string, description?: string) => string;
|
|
45
|
+
warning: (title: string, description?: string) => string;
|
|
46
|
+
info: (title: string, description?: string) => string;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export { type Toast, ToastProvider, type ToastProviderProps, type ToastType, ToastViewport, type ToastViewportProps, useToast, useToastHelpers };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
type ToastType = 'info' | 'success' | 'warning' | 'error';
|
|
5
|
+
interface Toast {
|
|
6
|
+
id: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
type: ToastType;
|
|
10
|
+
duration?: number;
|
|
11
|
+
action?: {
|
|
12
|
+
label: string;
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
interface ToastContextValue {
|
|
17
|
+
toasts: Toast[];
|
|
18
|
+
addToast: (toast: Omit<Toast, 'id'>) => string;
|
|
19
|
+
removeToast: (id: string) => void;
|
|
20
|
+
updateToast: (id: string, toast: Partial<Omit<Toast, 'id'>>) => void;
|
|
21
|
+
}
|
|
22
|
+
declare function useToast(): ToastContextValue;
|
|
23
|
+
interface ToastProviderProps {
|
|
24
|
+
children: React__default.ReactNode;
|
|
25
|
+
/** Default duration for toasts in ms */
|
|
26
|
+
duration?: number;
|
|
27
|
+
/** Maximum number of visible toasts */
|
|
28
|
+
maxToasts?: number;
|
|
29
|
+
}
|
|
30
|
+
declare function ToastProvider({ children, duration, maxToasts, }: ToastProviderProps): react_jsx_runtime.JSX.Element;
|
|
31
|
+
interface ToastViewportProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
/** Position of the toast container */
|
|
33
|
+
position?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
34
|
+
/** Label for screen readers */
|
|
35
|
+
label?: string;
|
|
36
|
+
}
|
|
37
|
+
declare const ToastViewport: React__default.ForwardRefExoticComponent<ToastViewportProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
/**
|
|
39
|
+
* Hook for common toast patterns
|
|
40
|
+
*/
|
|
41
|
+
declare function useToastHelpers(): {
|
|
42
|
+
toast: (toast: Omit<Toast, "id">) => string;
|
|
43
|
+
success: (title: string, description?: string) => string;
|
|
44
|
+
error: (title: string, description?: string) => string;
|
|
45
|
+
warning: (title: string, description?: string) => string;
|
|
46
|
+
info: (title: string, description?: string) => string;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export { type Toast, ToastProvider, type ToastProviderProps, type ToastType, ToastViewport, type ToastViewportProps, useToast, useToastHelpers };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|