@deque/cauldron-react 5.13.0 → 6.0.0-canary.6cb7e9c4
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/lib/__tests__/setupTests.d.ts +2 -0
- package/lib/index.js +58 -944
- package/lib/src/axe.d.ts +3 -0
- package/lib/{components → src/components}/Accordion/Accordion.d.ts +0 -15
- package/lib/{components → src/components}/Address/index.d.ts +3 -16
- package/lib/{components → src/components}/Alert/index.d.ts +0 -10
- package/lib/src/components/Breadcrumb/BreadcrumbItem.d.ts +5 -0
- package/lib/src/components/Button/index.test.d.ts +1 -0
- package/lib/{components → src/components}/ClickOutsideListener/index.d.ts +0 -8
- package/lib/{components → src/components}/DescriptionList/index.d.ts +0 -17
- package/lib/{components → src/components}/Dialog/index.d.ts +6 -25
- package/lib/{components → src/components}/ExpandCollapsePanel/ExpandCollapsePanel.d.ts +0 -8
- package/lib/{components → src/components}/ExpandCollapsePanel/PanelTrigger.d.ts +0 -10
- package/lib/src/components/Layout/index.d.ts +10 -0
- package/lib/src/components/Line/index.d.ts +9 -0
- package/lib/src/components/Link/index.d.ts +11 -0
- package/lib/{components → src/components}/Loader/index.d.ts +0 -1
- package/lib/{components → src/components}/LoaderOverlay/index.d.ts +0 -1
- package/lib/src/components/Main/index.d.ts +10 -0
- package/lib/{components → src/components}/MenuBar/index.d.ts +0 -7
- package/lib/{components → src/components}/MenuItem/index.d.ts +0 -10
- package/lib/{components → src/components}/Modal/index.d.ts +0 -10
- package/lib/{components → src/components}/NavBar/NavBar.d.ts +0 -8
- package/lib/{components → src/components}/NavBar/NavItem.d.ts +0 -4
- package/lib/{components → src/components}/OptionsMenu/OptionsMenu.d.ts +1 -13
- package/lib/{components → src/components}/OptionsMenu/OptionsMenuList.d.ts +0 -12
- package/lib/src/components/OptionsMenu/OptionsMenuWrapper.d.ts +9 -0
- package/lib/src/components/RadioCardGroup/index.d.ts +21 -0
- package/lib/{components → src/components}/Scrim/index.d.ts +0 -4
- package/lib/{components → src/components}/SideBar/SideBar.d.ts +0 -7
- package/lib/{components → src/components}/SideBar/SideBarItem.d.ts +1 -0
- package/lib/{components → src/components}/SkipLink/index.d.ts +0 -6
- package/lib/{components → src/components}/Stepper/index.d.ts +0 -11
- package/lib/{components → src/components}/Table/Table.d.ts +0 -6
- package/lib/{components → src/components}/Table/TableBody.d.ts +0 -5
- package/lib/{components → src/components}/Table/TableCell.d.ts +0 -5
- package/lib/{components → src/components}/Table/TableFooter.d.ts +0 -5
- package/lib/{components → src/components}/Table/TableHead.d.ts +0 -5
- package/lib/{components → src/components}/Table/TableHeader.d.ts +0 -9
- package/lib/{components → src/components}/Table/TableRow.d.ts +0 -5
- package/lib/{components → src/components}/Tabs/Tabs.d.ts +0 -10
- package/lib/{components → src/components}/Tag/index.d.ts +0 -9
- package/lib/{components → src/components}/TextField/index.d.ts +0 -16
- package/lib/{components → src/components}/Toast/index.d.ts +0 -13
- package/lib/src/components/Tooltip/index.d.ts +26 -0
- package/lib/{components → src/components}/TopBar/TopBarMenu.d.ts +0 -5
- package/lib/{components → src/components}/TopBar/TopBarTrigger.d.ts +1 -0
- package/lib/src/components/TwoColumnPanel/ColumnGroupHeader.d.ts +5 -0
- package/lib/src/components/TwoColumnPanel/ColumnHeader.d.ts +5 -0
- package/lib/src/components/TwoColumnPanel/ColumnList.d.ts +5 -0
- package/lib/src/components/Workspace/index.d.ts +17 -0
- package/lib/{contexts → src/contexts}/theme.d.ts +1 -8
- package/lib/{index.d.ts → src/index.d.ts} +0 -3
- package/package.json +9 -5
- package/lib/components/Breadcrumb/BreadcrumbItem.d.ts +0 -4
- package/lib/components/Card/Card.d.ts +0 -14
- package/lib/components/Card/CardContent.d.ts +0 -11
- package/lib/components/Card/CardFooter.d.ts +0 -11
- package/lib/components/Card/CardHeader.d.ts +0 -11
- package/lib/components/Card/index.d.ts +0 -4
- package/lib/components/IssuePanel/index.d.ts +0 -17
- package/lib/components/Layout/index.d.ts +0 -17
- package/lib/components/Line/index.d.ts +0 -10
- package/lib/components/Link/index.d.ts +0 -21
- package/lib/components/Main/index.d.ts +0 -17
- package/lib/components/OptionsMenu/OptionsMenuWrapper.d.ts +0 -17
- package/lib/components/Pointout/index.d.ts +0 -82
- package/lib/components/RadioCardGroup/index.d.ts +0 -38
- package/lib/components/Tooltip/index.d.ts +0 -39
- package/lib/components/TwoColumnPanel/ColumnGroupHeader.d.ts +0 -4
- package/lib/components/TwoColumnPanel/ColumnHeader.d.ts +0 -4
- package/lib/components/TwoColumnPanel/ColumnList.d.ts +0 -4
- package/lib/components/Workspace/index.d.ts +0 -28
- package/lib/propTypes.d.ts +0 -6
- /package/lib/{components → src/components}/Accordion/index.d.ts +0 -0
- /package/lib/{components → src/components}/Breadcrumb/Breadcrumb.d.ts +0 -0
- /package/lib/{components → src/components}/Breadcrumb/BreadcrumbLink.d.ts +0 -0
- /package/lib/{components → src/components}/Breadcrumb/index.d.ts +0 -0
- /package/lib/{components → src/components}/Button/index.d.ts +0 -0
- /package/lib/{components → src/components}/Checkbox/index.d.ts +0 -0
- /package/lib/{components → src/components}/Code/index.d.ts +0 -0
- /package/lib/{components → src/components}/Combobox/Combobox.d.ts +0 -0
- /package/lib/{components → src/components}/Combobox/ComboboxContext.d.ts +0 -0
- /package/lib/{components → src/components}/Combobox/ComboboxGroup.d.ts +0 -0
- /package/lib/{components → src/components}/Combobox/ComboboxOption.d.ts +0 -0
- /package/lib/{components → src/components}/Combobox/index.d.ts +0 -0
- /package/lib/{components → src/components}/ExpandCollapsePanel/index.d.ts +0 -0
- /package/lib/{components → src/components}/FieldWrap/index.d.ts +0 -0
- /package/lib/{components → src/components}/Icon/index.d.ts +0 -0
- /package/lib/{components → src/components}/Icon/types.d.ts +0 -0
- /package/lib/{components → src/components}/IconButton/index.d.ts +0 -0
- /package/lib/{components → src/components}/Listbox/Listbox.d.ts +0 -0
- /package/lib/{components → src/components}/Listbox/ListboxContext.d.ts +0 -0
- /package/lib/{components → src/components}/Listbox/ListboxGroup.d.ts +0 -0
- /package/lib/{components → src/components}/Listbox/ListboxOption.d.ts +0 -0
- /package/lib/{components → src/components}/Listbox/index.d.ts +0 -0
- /package/lib/{components → src/components}/LoaderOverlay/axe-loader.d.ts +0 -0
- /package/lib/{components → src/components}/MenuItem/click-link.d.ts +0 -0
- /package/lib/{components → src/components}/NavBar/index.d.ts +0 -0
- /package/lib/{components → src/components}/Notice/index.d.ts +0 -0
- /package/lib/{components → src/components}/Offscreen/index.d.ts +0 -0
- /package/lib/{components → src/components}/OptionsMenu/OptionsMenuItem.d.ts +0 -0
- /package/lib/{components → src/components}/OptionsMenu/OptionsMenuTrigger.d.ts +0 -0
- /package/lib/{components → src/components}/OptionsMenu/index.d.ts +0 -0
- /package/lib/{components → src/components}/Pagination/Pagination.d.ts +0 -0
- /package/lib/{components → src/components}/Pagination/index.d.ts +0 -0
- /package/lib/{components → src/components}/Pagination/usePagination.d.ts +0 -0
- /package/lib/{components → src/components}/Panel/Panel.d.ts +0 -0
- /package/lib/{components → src/components}/Panel/PanelContent.d.ts +0 -0
- /package/lib/{components → src/components}/Panel/PanelHeader.d.ts +0 -0
- /package/lib/{components → src/components}/Panel/index.d.ts +0 -0
- /package/lib/{components → src/components}/Popover/index.d.ts +0 -0
- /package/lib/{components → src/components}/ProgressBar/index.d.ts +0 -0
- /package/lib/{components → src/components}/RadioGroup/index.d.ts +0 -0
- /package/lib/{components → src/components}/Select/index.d.ts +0 -0
- /package/lib/{components → src/components}/SideBar/index.d.ts +0 -0
- /package/lib/{components → src/components}/Table/index.d.ts +0 -0
- /package/lib/{components → src/components}/Tabs/Tab.d.ts +0 -0
- /package/lib/{components → src/components}/Tabs/TabPanel.d.ts +0 -0
- /package/lib/{components → src/components}/Tabs/index.d.ts +0 -0
- /package/lib/{components → src/components}/TagButton/index.d.ts +0 -0
- /package/lib/{components → src/components}/Toast/utils.d.ts +0 -0
- /package/lib/{components → src/components}/TooltipTabstop/index.d.ts +0 -0
- /package/lib/{components → src/components}/TopBar/TopBar.d.ts +0 -0
- /package/lib/{components → src/components}/TopBar/index.d.ts +0 -0
- /package/lib/{components → src/components}/TwoColumnPanel/ColumnLeft.d.ts +0 -0
- /package/lib/{components → src/components}/TwoColumnPanel/ColumnRight.d.ts +0 -0
- /package/lib/{components → src/components}/TwoColumnPanel/TwoColumnPanel.d.ts +0 -0
- /package/lib/{components → src/components}/TwoColumnPanel/index.d.ts +0 -0
- /package/lib/{constants.d.ts → src/constants.d.ts} +0 -0
- /package/lib/{types.d.ts → src/types.d.ts} +0 -0
- /package/lib/{utils → src/utils}/aria-isolate/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/focusable-selector/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/is-browser/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/polymorphic-type/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/query-all/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/remove-ids/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/rndid/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/setRef.d.ts +0 -0
- /package/lib/{utils → src/utils}/stylesheets/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/token-list/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/use-did-update/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/useIntersectionRef.d.ts +0 -0
- /package/lib/{utils → src/utils}/useSharedRef.d.ts +0 -0
- /package/lib/{utils → src/utils}/viewport/index.d.ts +0 -0
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React, { TdHTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
declare const TableCell: {
|
|
4
3
|
({ children, className, ...other }: TdHTMLAttributes<HTMLTableCellElement>): React.JSX.Element;
|
|
5
4
|
displayName: string;
|
|
6
|
-
propTypes: {
|
|
7
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
8
|
-
className: PropTypes.Requireable<string>;
|
|
9
|
-
};
|
|
10
5
|
};
|
|
11
6
|
export default TableCell;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
declare const TableFooter: {
|
|
4
3
|
({ children, className, ...other }: HTMLAttributes<HTMLTableSectionElement>): React.JSX.Element;
|
|
5
4
|
displayName: string;
|
|
6
|
-
propTypes: {
|
|
7
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
8
|
-
className: PropTypes.Requireable<string>;
|
|
9
|
-
};
|
|
10
5
|
};
|
|
11
6
|
export default TableFooter;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
declare const TableHead: {
|
|
4
3
|
({ children, className, ...other }: HTMLAttributes<HTMLTableSectionElement>): React.JSX.Element;
|
|
5
4
|
displayName: string;
|
|
6
|
-
propTypes: {
|
|
7
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
8
|
-
className: PropTypes.Requireable<string>;
|
|
9
|
-
};
|
|
10
5
|
};
|
|
11
6
|
export default TableHead;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { ThHTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
type SortDirection = 'ascending' | 'descending' | 'none';
|
|
4
3
|
interface TableHeaderProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
5
4
|
sortDirection?: SortDirection;
|
|
@@ -10,13 +9,5 @@ interface TableHeaderProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
|
10
9
|
declare const TableHeader: {
|
|
11
10
|
({ children, sortDirection, onSort, className, sortAscendingAnnouncement, sortDescendingAnnouncement, ...other }: TableHeaderProps): React.JSX.Element;
|
|
12
11
|
displayName: string;
|
|
13
|
-
propTypes: {
|
|
14
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
15
|
-
sortDirection: PropTypes.Requireable<string>;
|
|
16
|
-
onSort: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
-
className: PropTypes.Requireable<string>;
|
|
18
|
-
sortAscendingAnnouncement: PropTypes.Requireable<string>;
|
|
19
|
-
sortDescendingAnnouncement: PropTypes.Requireable<string>;
|
|
20
|
-
};
|
|
21
12
|
};
|
|
22
13
|
export default TableHeader;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
declare const TableRow: {
|
|
4
3
|
({ children, className, ...other }: HTMLAttributes<HTMLTableRowElement>): React.JSX.Element;
|
|
5
4
|
displayName: string;
|
|
6
|
-
propTypes: {
|
|
7
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
8
|
-
className: PropTypes.Requireable<string>;
|
|
9
|
-
};
|
|
10
5
|
};
|
|
11
6
|
export default TableRow;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Cauldron } from '../../types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
type TabsProps = {
|
|
5
4
|
children: React.ReactNode;
|
|
6
5
|
initialActiveIndex?: number;
|
|
@@ -15,14 +14,5 @@ type TabsProps = {
|
|
|
15
14
|
declare const Tabs: {
|
|
16
15
|
({ children, thin, orientation, initialActiveIndex, className, onChange, ...labelProp }: TabsProps): JSX.Element;
|
|
17
16
|
displayName: string;
|
|
18
|
-
propTypes: {
|
|
19
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
20
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
21
|
-
'aria-labelledby': PropTypes.Requireable<string>;
|
|
22
|
-
initialActiveIndex: PropTypes.Requireable<number>;
|
|
23
|
-
thin: PropTypes.Requireable<boolean>;
|
|
24
|
-
orientation: PropTypes.Requireable<string>;
|
|
25
|
-
className: PropTypes.Requireable<string>;
|
|
26
|
-
};
|
|
27
17
|
};
|
|
28
18
|
export default Tabs;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
interface TagProps {
|
|
4
3
|
children: React.ReactNode;
|
|
5
4
|
className?: string;
|
|
@@ -7,17 +6,9 @@ interface TagProps {
|
|
|
7
6
|
export declare const TagLabel: {
|
|
8
7
|
({ children, className, ...other }: TagProps): React.JSX.Element;
|
|
9
8
|
displayName: string;
|
|
10
|
-
propTypes: {
|
|
11
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
12
|
-
className: PropTypes.Requireable<string>;
|
|
13
|
-
};
|
|
14
9
|
};
|
|
15
10
|
declare const Tag: {
|
|
16
11
|
({ children, className, ...other }: TagProps): React.JSX.Element;
|
|
17
12
|
displayName: string;
|
|
18
|
-
propTypes: {
|
|
19
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
20
|
-
className: PropTypes.Requireable<string>;
|
|
21
|
-
};
|
|
22
13
|
};
|
|
23
14
|
export default Tag;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { ChangeEvent } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
export interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
4
3
|
label: React.ReactNode;
|
|
5
4
|
error?: React.ReactNode;
|
|
@@ -23,21 +22,6 @@ export default class TextField extends React.Component<TextFieldProps, TextField
|
|
|
23
22
|
requiredText: string;
|
|
24
23
|
multiline: boolean;
|
|
25
24
|
};
|
|
26
|
-
static propTypes: {
|
|
27
|
-
label: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
28
|
-
id: PropTypes.Requireable<string>;
|
|
29
|
-
error: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
30
|
-
defaultValue: PropTypes.Requireable<string>;
|
|
31
|
-
value: PropTypes.Requireable<string>;
|
|
32
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
|
-
fieldRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
34
|
-
current: PropTypes.Requireable<any>;
|
|
35
|
-
}> | null | undefined>>;
|
|
36
|
-
required: PropTypes.Requireable<boolean>;
|
|
37
|
-
requiredText: PropTypes.Requireable<string>;
|
|
38
|
-
multiline: PropTypes.Requireable<boolean>;
|
|
39
|
-
'aria-describedby': PropTypes.Requireable<string>;
|
|
40
|
-
};
|
|
41
25
|
private inputId;
|
|
42
26
|
private errorId;
|
|
43
27
|
private input;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import AriaIsolate from '../../utils/aria-isolate';
|
|
4
3
|
export interface ToastProps {
|
|
5
4
|
type: 'confirmation' | 'caution' | 'error' | 'action-needed' | 'info';
|
|
@@ -27,18 +26,6 @@ export default class Toast extends React.Component<ToastProps, ToastState> {
|
|
|
27
26
|
show: boolean;
|
|
28
27
|
dismissible: boolean;
|
|
29
28
|
};
|
|
30
|
-
static propTypes: {
|
|
31
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
32
|
-
type: PropTypes.Validator<string>;
|
|
33
|
-
onDismiss: PropTypes.Requireable<(...args: any[]) => any>;
|
|
34
|
-
dismissText: PropTypes.Requireable<string>;
|
|
35
|
-
toastRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
36
|
-
current: PropTypes.Requireable<any>;
|
|
37
|
-
}> | null | undefined>>;
|
|
38
|
-
focus: PropTypes.Requireable<boolean>;
|
|
39
|
-
show: PropTypes.Requireable<boolean>;
|
|
40
|
-
dismissible: PropTypes.Requireable<boolean>;
|
|
41
|
-
};
|
|
42
29
|
static displayName: string;
|
|
43
30
|
private el;
|
|
44
31
|
constructor(props: ToastProps);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Placement } from '@popperjs/core';
|
|
3
|
+
export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
target: React.RefObject<HTMLElement> | HTMLElement;
|
|
7
|
+
variant?: 'text' | 'info' | 'big';
|
|
8
|
+
association?: 'aria-labelledby' | 'aria-describedby';
|
|
9
|
+
show?: boolean | undefined;
|
|
10
|
+
placement?: Placement;
|
|
11
|
+
portal?: React.RefObject<HTMLElement> | HTMLElement;
|
|
12
|
+
hideElementOnHidden?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare function Tooltip({ id: propId, placement: initialPlacement, children, portal, target, association, variant, show: initialShow, hideElementOnHidden, className, ...props }: TooltipProps): JSX.Element;
|
|
15
|
+
declare namespace Tooltip {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
18
|
+
export default Tooltip;
|
|
19
|
+
interface TooltipHeadProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const TooltipHead: ({ className, ...other }: TooltipHeadProps) => React.JSX.Element;
|
|
23
|
+
interface TooltipContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const TooltipContent: ({ className, ...other }: TooltipContentProps) => React.JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
export interface TopBarMenuProps extends Pick<React.HTMLAttributes<HTMLLIElement>, Exclude<keyof React.HTMLAttributes<HTMLLIElement>, 'onKeyDown'>> {
|
|
4
3
|
onKeyDown: (e: React.KeyboardEvent<HTMLLIElement>) => void;
|
|
5
4
|
menuItemRef: React.Ref<HTMLLIElement>;
|
|
@@ -12,10 +11,6 @@ export default class TopBarMenu extends React.Component<TopBarMenuProps, TopBarM
|
|
|
12
11
|
onKeyDown: () => void;
|
|
13
12
|
menuItemRef: () => void;
|
|
14
13
|
};
|
|
15
|
-
static propTypes: {
|
|
16
|
-
id: PropTypes.Validator<string>;
|
|
17
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
18
|
-
};
|
|
19
14
|
state: TopBarMenuState;
|
|
20
15
|
private optionsMenuRef;
|
|
21
16
|
private menuItemRef;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface TopBarTriggerProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
4
5
|
}
|
|
5
6
|
declare const TopBarTrigger: React.ComponentType<React.PropsWithChildren<TopBarTriggerProps>>;
|
|
6
7
|
export default TopBarTrigger;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface WorkspaceProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
workspaceRef: React.Ref<HTMLDivElement>;
|
|
4
|
+
layoutRef: React.Ref<HTMLDivElement>;
|
|
5
|
+
noSideBar: boolean;
|
|
6
|
+
}
|
|
7
|
+
export default class Workspace extends React.Component<WorkspaceProps> {
|
|
8
|
+
static defaultProps: {
|
|
9
|
+
workspaceRef: () => void;
|
|
10
|
+
layoutRef: () => void;
|
|
11
|
+
noSideBar: boolean;
|
|
12
|
+
};
|
|
13
|
+
componentDidMount(): void;
|
|
14
|
+
componentDidUpdate(prevProps: WorkspaceProps): void;
|
|
15
|
+
componentWillUnmount(): void;
|
|
16
|
+
render(): React.JSX.Element;
|
|
17
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
type Theme = 'light' | 'dark';
|
|
4
3
|
interface ProviderProps {
|
|
5
4
|
children: React.ReactNode;
|
|
@@ -13,12 +12,6 @@ interface Methods {
|
|
|
13
12
|
toggleTheme: () => void;
|
|
14
13
|
}
|
|
15
14
|
declare const ThemeContext: React.Context<State & Methods>;
|
|
16
|
-
declare const ThemeProvider: {
|
|
17
|
-
({ children, context, initialTheme }: ProviderProps): React.JSX.Element;
|
|
18
|
-
propTypes: {
|
|
19
|
-
children: PropTypes.Requireable<any>;
|
|
20
|
-
initialTheme: PropTypes.Requireable<string>;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
15
|
+
declare const ThemeProvider: ({ children, context, initialTheme }: ProviderProps) => React.JSX.Element;
|
|
23
16
|
declare function useThemeContext(): State & Methods;
|
|
24
17
|
export { ThemeContext, ThemeProvider, useThemeContext };
|
|
@@ -19,7 +19,6 @@ export { default as Modal, ModalContent, ModalFooter } from './components/Modal'
|
|
|
19
19
|
export { default as SkipLink } from './components/SkipLink';
|
|
20
20
|
export { default as Button } from './components/Button';
|
|
21
21
|
export { default as IconButton } from './components/IconButton';
|
|
22
|
-
export { default as Pointout } from './components/Pointout';
|
|
23
22
|
export { default as Toast } from './components/Toast';
|
|
24
23
|
export { default as Link } from './components/Link';
|
|
25
24
|
export { default as Loader } from './components/Loader';
|
|
@@ -30,7 +29,6 @@ export { default as RadioCardGroup } from './components/RadioCardGroup';
|
|
|
30
29
|
export { default as Checkbox } from './components/Checkbox';
|
|
31
30
|
export { default as Tooltip, TooltipHead, TooltipContent } from './components/Tooltip';
|
|
32
31
|
export { default as TooltipTabstop } from './components/TooltipTabstop';
|
|
33
|
-
export { default as Card, CardHeader, CardContent, CardFooter } from './components/Card';
|
|
34
32
|
export { default as TextField } from './components/TextField';
|
|
35
33
|
export { default as ClickOutsideListener } from './components/ClickOutsideListener';
|
|
36
34
|
export { default as ExpandCollapsePanel, PanelTrigger } from './components/ExpandCollapsePanel';
|
|
@@ -45,7 +43,6 @@ export { default as Tabs, Tab, TabPanel } from './components/Tabs';
|
|
|
45
43
|
export { DescriptionList, DescriptionListItem, DescriptionTerm, DescriptionDetails } from './components/DescriptionList';
|
|
46
44
|
export { default as Stepper, Step } from './components/Stepper';
|
|
47
45
|
export { default as Panel, PanelHeader, PanelContent } from './components/Panel';
|
|
48
|
-
export { default as IssuePanel } from './components/IssuePanel';
|
|
49
46
|
export { default as ProgressBar } from './components/ProgressBar';
|
|
50
47
|
export { Address, AddressLine, AddressCityStateZip } from './components/Address';
|
|
51
48
|
export { default as Pagination, usePagination } from './components/Pagination';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-canary.6cb7e9c4",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Fully accessible react components library for Deque Cauldron",
|
|
6
6
|
"homepage": "https://cauldron.dequelabs.com/",
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"focus-trap-react": "8",
|
|
29
29
|
"focusable": "^2.3.0",
|
|
30
30
|
"keyname": "^0.1.0",
|
|
31
|
-
"prop-types": "^15.6.0",
|
|
32
31
|
"react-id-generator": "^3.0.1",
|
|
33
32
|
"react-popper": "^2.2.4",
|
|
34
33
|
"react-syntax-highlighter": "^15.5.0",
|
|
@@ -44,12 +43,16 @@
|
|
|
44
43
|
"@rollup/plugin-dynamic-import-vars": "^1.4.2",
|
|
45
44
|
"@rollup/plugin-typescript": "^11.1.2",
|
|
46
45
|
"@svgr/rollup": "^6.1.2",
|
|
46
|
+
"@testing-library/react": "11.1.2",
|
|
47
|
+
"@testing-library/jest-dom": "^6.1.3",
|
|
47
48
|
"@types/classnames": "^2.2.10",
|
|
48
49
|
"@types/node": "^17.0.42",
|
|
49
|
-
"@types/prop-types": "^15.7.3",
|
|
50
50
|
"@types/react": "^18.0.12",
|
|
51
51
|
"@types/react-dom": "^18.0.5",
|
|
52
|
+
"@types/jest-axe": "^3.5.4",
|
|
53
|
+
"@types/jest": "^24.7.1",
|
|
52
54
|
"@types/react-syntax-highlighter": "^15.5.2",
|
|
55
|
+
"@types/enzyme-adapter-react-16": "^1.0.9",
|
|
53
56
|
"autoprefixer": "^9.7.6",
|
|
54
57
|
"babel-plugin-module-resolver": "^4.0.0",
|
|
55
58
|
"babel-plugin-transform-export-extensions": "^6.22.0",
|
|
@@ -94,11 +97,12 @@
|
|
|
94
97
|
},
|
|
95
98
|
"jest": {
|
|
96
99
|
"setupFilesAfterEnv": [
|
|
97
|
-
"<rootDir>__tests__/setupTests.
|
|
100
|
+
"<rootDir>__tests__/setupTests.ts"
|
|
98
101
|
],
|
|
99
102
|
"testMatch": [
|
|
100
103
|
"**/__tests__/src/**/*.js",
|
|
101
|
-
"**/__tests__/demo/**/*.js"
|
|
104
|
+
"**/__tests__/demo/**/*.js",
|
|
105
|
+
"**/src/components/**/*.test.tsx"
|
|
102
106
|
],
|
|
103
107
|
"collectCoverageFrom": [
|
|
104
108
|
"**/src/**/*.{ts,tsx}"
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
variant?: 'simple';
|
|
5
|
-
}
|
|
6
|
-
declare const Card: {
|
|
7
|
-
({ className, variant, ...other }: CardProps): React.JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
propTypes: {
|
|
10
|
-
className: PropTypes.Requireable<string>;
|
|
11
|
-
variant: PropTypes.Requireable<string>;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default Card;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export type CardContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
4
|
-
declare const CardContent: {
|
|
5
|
-
({ className, ...other }: CardContentProps): React.JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
propTypes: {
|
|
8
|
-
className: PropTypes.Requireable<string>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default CardContent;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export type CardFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
4
|
-
declare const CardFooter: {
|
|
5
|
-
({ className, ...other }: CardFooterProps): React.JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
propTypes: {
|
|
8
|
-
className: PropTypes.Requireable<string>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default CardFooter;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export type CardHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
4
|
-
declare const CardHeader: {
|
|
5
|
-
({ className, ...other }: CardHeaderProps): React.JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
propTypes: {
|
|
8
|
-
className: PropTypes.Requireable<string>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default CardHeader;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import IconButton from '../IconButton';
|
|
4
|
-
declare const IssuePanel: {
|
|
5
|
-
({ className, title, actions, children }: {
|
|
6
|
-
className?: string | undefined;
|
|
7
|
-
title?: string | undefined;
|
|
8
|
-
actions?: import("../../utils/polymorphic-type").ForwardRefComponent<"button", import("../IconButton").IconButtonOwnProps>[] | undefined;
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
}): React.JSX.Element;
|
|
11
|
-
displayName: string;
|
|
12
|
-
propTypes: {
|
|
13
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
14
|
-
className: PropTypes.Requireable<string>;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default IssuePanel;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export interface LayoutProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
layoutRef?: React.Ref<HTMLDivElement>;
|
|
5
|
-
}
|
|
6
|
-
export default class Layout extends React.Component<LayoutProps> {
|
|
7
|
-
static defaultProps: {
|
|
8
|
-
layoutRef: () => void;
|
|
9
|
-
};
|
|
10
|
-
static propTypes: {
|
|
11
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
12
|
-
layoutRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
13
|
-
current: PropTypes.Requireable<any>;
|
|
14
|
-
}> | null | undefined>>;
|
|
15
|
-
};
|
|
16
|
-
render(): React.JSX.Element;
|
|
17
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
declare const Line: {
|
|
4
|
-
({ className, ...other }: React.HTMLAttributes<HTMLHRElement>): React.JSX.Element;
|
|
5
|
-
propTypes: {
|
|
6
|
-
className: PropTypes.Requireable<string>;
|
|
7
|
-
};
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
10
|
-
export default Line;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
-
linkRef?: React.Ref<HTMLAnchorElement>;
|
|
5
|
-
variant?: 'button' | 'button-secondary';
|
|
6
|
-
thin?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const Link: {
|
|
9
|
-
({ children, linkRef, className, variant, thin, ...other }: LinkProps): React.JSX.Element;
|
|
10
|
-
propTypes: {
|
|
11
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
|
-
className: PropTypes.Requireable<string>;
|
|
13
|
-
variant: PropTypes.Requireable<string>;
|
|
14
|
-
thin: PropTypes.Requireable<boolean>;
|
|
15
|
-
linkRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
16
|
-
current: PropTypes.Requireable<any>;
|
|
17
|
-
}> | null | undefined>>;
|
|
18
|
-
};
|
|
19
|
-
displayName: string;
|
|
20
|
-
};
|
|
21
|
-
export default Link;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export interface MainProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
mainRef?: React.Ref<HTMLDivElement>;
|
|
5
|
-
}
|
|
6
|
-
export default class Main extends Component<MainProps> {
|
|
7
|
-
static defaultProps: {
|
|
8
|
-
mainRef: () => void;
|
|
9
|
-
};
|
|
10
|
-
static propTypes: {
|
|
11
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
12
|
-
mainRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
13
|
-
current: PropTypes.Requireable<any>;
|
|
14
|
-
}> | null | undefined>>;
|
|
15
|
-
};
|
|
16
|
-
render(): React.JSX.Element;
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { OptionsMenuAlignmentProps } from './OptionsMenu';
|
|
4
|
-
export interface OptionsMenuWrapperProps extends React.HTMLAttributes<HTMLDivElement>, OptionsMenuAlignmentProps {
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Wrapper / parent component for the <OptionsMenuTrigger /> and <OptionsMenu /> components
|
|
8
|
-
*/
|
|
9
|
-
declare const OptionsMenuWrapper: {
|
|
10
|
-
({ className, align, ...other }: OptionsMenuWrapperProps): React.JSX.Element;
|
|
11
|
-
propTypes: {
|
|
12
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
13
|
-
className: PropTypes.Requireable<string>;
|
|
14
|
-
align: PropTypes.Requireable<string>;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default OptionsMenuWrapper;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import React, { ButtonHTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export interface PointoutProps {
|
|
4
|
-
arrowPosition: 'top-left' | 'top-right' | 'right-top' | 'right-bottom' | 'bottom-right' | 'bottom-left' | 'left-bottom' | 'left-top';
|
|
5
|
-
position: 'start' | 'center' | 'end';
|
|
6
|
-
heading?: React.ReactNode;
|
|
7
|
-
className?: string;
|
|
8
|
-
headerId: string;
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
ftpoRef: React.Ref<HTMLDivElement>;
|
|
11
|
-
noArrow?: boolean;
|
|
12
|
-
onClose: () => void;
|
|
13
|
-
dismissText?: string;
|
|
14
|
-
nextText?: string;
|
|
15
|
-
previousText?: string;
|
|
16
|
-
showNext?: boolean;
|
|
17
|
-
showPrevious?: boolean;
|
|
18
|
-
disableOffscreenPointout?: boolean;
|
|
19
|
-
target?: React.RefObject<HTMLElement> | HTMLElement;
|
|
20
|
-
portal?: React.RefObject<HTMLElement> | HTMLElement;
|
|
21
|
-
previousButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
22
|
-
nextButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
23
|
-
closeButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
24
|
-
}
|
|
25
|
-
interface PointoutState {
|
|
26
|
-
show: boolean;
|
|
27
|
-
style: React.CSSProperties;
|
|
28
|
-
headingId?: string;
|
|
29
|
-
offscreenContentFocus?: boolean;
|
|
30
|
-
}
|
|
31
|
-
export default class Pointout extends React.Component<PointoutProps, PointoutState> {
|
|
32
|
-
static defaultProps: {
|
|
33
|
-
ftpoRef: () => void;
|
|
34
|
-
noArrow: boolean;
|
|
35
|
-
onClose: () => void;
|
|
36
|
-
dismissText: string;
|
|
37
|
-
previousText: string;
|
|
38
|
-
nextText: string;
|
|
39
|
-
arrowPosition: string;
|
|
40
|
-
position: string;
|
|
41
|
-
};
|
|
42
|
-
static propTypes: {
|
|
43
|
-
heading: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
44
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
45
|
-
ftpRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
46
|
-
current: PropTypes.Requireable<any>;
|
|
47
|
-
}> | null | undefined>>;
|
|
48
|
-
noArrow: (props: PointoutProps, propName: keyof PointoutProps) => Error | undefined;
|
|
49
|
-
arrowPosition: PropTypes.Requireable<string>;
|
|
50
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
51
|
-
dismissText: PropTypes.Requireable<string>;
|
|
52
|
-
className: PropTypes.Requireable<string>;
|
|
53
|
-
target: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
54
|
-
current: PropTypes.Requireable<any>;
|
|
55
|
-
}> | null | undefined>>;
|
|
56
|
-
disableOffscreenPointout: PropTypes.Requireable<boolean>;
|
|
57
|
-
portal: PropTypes.Requireable<any>;
|
|
58
|
-
previousButtonProps: PropTypes.Requireable<any>;
|
|
59
|
-
nextButtonProps: PropTypes.Requireable<any>;
|
|
60
|
-
closeButtonProps: PropTypes.Requireable<any>;
|
|
61
|
-
};
|
|
62
|
-
private resizeDebounceId;
|
|
63
|
-
private resizeDebounce;
|
|
64
|
-
private offscreenRef;
|
|
65
|
-
private offscreenContentRef;
|
|
66
|
-
private visibleRef;
|
|
67
|
-
constructor(props: PointoutProps);
|
|
68
|
-
getFocusableElements(root: HTMLElement | null): Element[];
|
|
69
|
-
componentDidMount(): void;
|
|
70
|
-
forceUpdate(): void;
|
|
71
|
-
componentWillUnmount(): void;
|
|
72
|
-
attachOffscreenListeners: () => void;
|
|
73
|
-
handleOffscreenContentFocusIn: ({ target }: FocusEvent) => void;
|
|
74
|
-
handleOffscreenContentFocusOut: ({ target }: FocusEvent) => void;
|
|
75
|
-
handleOffscreenFocusIn: ({ target }: FocusEvent) => void;
|
|
76
|
-
handleOffscreenFocusOut: ({ target }: FocusEvent) => void;
|
|
77
|
-
positionRelativeToTarget: () => void;
|
|
78
|
-
componentDidUpdate(nextProps: PointoutProps): void;
|
|
79
|
-
render(): React.JSX.Element | null;
|
|
80
|
-
onCloseClick(): void;
|
|
81
|
-
}
|
|
82
|
-
export {};
|