@deque/cauldron-react 5.13.0 → 6.0.0-canary.28b1eccb
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,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { IconType } from '../Icon';
|
|
4
|
-
export interface RadioItem extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
5
|
-
label: React.ReactNode;
|
|
6
|
-
cardImg: JSX.Element;
|
|
7
|
-
cardIcon: IconType;
|
|
8
|
-
value?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface RadioCardGroupProps {
|
|
11
|
-
name?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
radios: RadioItem[];
|
|
14
|
-
defaultValue?: string;
|
|
15
|
-
value?: any;
|
|
16
|
-
onChange: (radio: RadioItem, input: HTMLElement) => void;
|
|
17
|
-
}
|
|
18
|
-
declare const RadioCardGroup: {
|
|
19
|
-
({ name, radios, defaultValue, value, onChange, className, ...other }: RadioCardGroupProps): React.JSX.Element;
|
|
20
|
-
propTypes: {
|
|
21
|
-
name: PropTypes.Requireable<string>;
|
|
22
|
-
radios: PropTypes.Validator<(PropTypes.InferProps<{
|
|
23
|
-
value: PropTypes.Validator<string>;
|
|
24
|
-
id: PropTypes.Validator<string>;
|
|
25
|
-
label: PropTypes.Validator<string>;
|
|
26
|
-
cardImg: PropTypes.Validator<PropTypes.ReactElementLike>;
|
|
27
|
-
cardIcon: PropTypes.Validator<string>;
|
|
28
|
-
}> | null | undefined)[]>;
|
|
29
|
-
hasLabel: (props: {
|
|
30
|
-
[key: string]: string;
|
|
31
|
-
}, propName: string, componentName: string) => Error | undefined;
|
|
32
|
-
className: PropTypes.Requireable<string>;
|
|
33
|
-
defaultValue: PropTypes.Requireable<string>;
|
|
34
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
|
-
};
|
|
36
|
-
displayName: string;
|
|
37
|
-
};
|
|
38
|
-
export default RadioCardGroup;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { Placement } from '@popperjs/core';
|
|
4
|
-
export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
children: React.ReactNode;
|
|
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
|
-
var propTypes: {
|
|
18
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
19
|
-
target: PropTypes.Validator<any>;
|
|
20
|
-
association: PropTypes.Requireable<string>;
|
|
21
|
-
show: PropTypes.Requireable<boolean>;
|
|
22
|
-
placement: PropTypes.Requireable<string>;
|
|
23
|
-
variant: PropTypes.Requireable<string>;
|
|
24
|
-
portal: PropTypes.Requireable<any>;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export default Tooltip;
|
|
28
|
-
export declare const TooltipHead: {
|
|
29
|
-
({ className, ...other }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
30
|
-
propTypes: {
|
|
31
|
-
className: PropTypes.Requireable<string>;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export declare const TooltipContent: {
|
|
35
|
-
({ className, ...other }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
36
|
-
propTypes: {
|
|
37
|
-
className: PropTypes.Requireable<string>;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export interface WorkspaceProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
workspaceRef: React.Ref<HTMLDivElement>;
|
|
5
|
-
layoutRef: React.Ref<HTMLDivElement>;
|
|
6
|
-
noSideBar: boolean;
|
|
7
|
-
}
|
|
8
|
-
export default class Workspace extends React.Component<WorkspaceProps> {
|
|
9
|
-
static defaultProps: {
|
|
10
|
-
workspaceRef: () => void;
|
|
11
|
-
layoutRef: () => void;
|
|
12
|
-
noSideBar: boolean;
|
|
13
|
-
};
|
|
14
|
-
static propTypes: {
|
|
15
|
-
children: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
|
|
16
|
-
workspaceRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
17
|
-
current: PropTypes.Requireable<any>;
|
|
18
|
-
}> | null | undefined>>;
|
|
19
|
-
layoutRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
20
|
-
current: PropTypes.Requireable<any>;
|
|
21
|
-
}> | null | undefined>>;
|
|
22
|
-
noSideBar: PropTypes.Requireable<boolean>;
|
|
23
|
-
};
|
|
24
|
-
componentDidMount(): void;
|
|
25
|
-
componentDidUpdate(prevProps: WorkspaceProps): void;
|
|
26
|
-
componentWillUnmount(): void;
|
|
27
|
-
render(): React.JSX.Element;
|
|
28
|
-
}
|
package/lib/propTypes.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
/**
|
|
3
|
-
* This prop type is meant to ensure that a prop can actually be rendered as content.
|
|
4
|
-
* It should match the ContentNode type in types.ts
|
|
5
|
-
*/
|
|
6
|
-
export declare const contentNode: PropTypes.Requireable<NonNullable<string | number | PropTypes.ReactElementLike | null | undefined>>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|