@deque/cauldron-react 5.13.0 → 6.0.0-canary.b9914978
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/components/Accordion/Accordion.d.ts +0 -15
- package/lib/components/Address/index.d.ts +3 -16
- package/lib/components/Alert/index.d.ts +0 -10
- package/lib/components/Breadcrumb/BreadcrumbItem.d.ts +3 -2
- package/lib/components/ClickOutsideListener/index.d.ts +0 -8
- package/lib/components/DescriptionList/index.d.ts +0 -17
- package/lib/components/Dialog/index.d.ts +6 -25
- package/lib/components/ExpandCollapsePanel/ExpandCollapsePanel.d.ts +0 -8
- package/lib/components/ExpandCollapsePanel/PanelTrigger.d.ts +0 -10
- package/lib/components/Layout/index.d.ts +0 -7
- package/lib/components/Line/index.d.ts +4 -5
- package/lib/components/Link/index.d.ts +0 -10
- package/lib/components/Loader/index.d.ts +0 -1
- package/lib/components/LoaderOverlay/index.d.ts +0 -1
- package/lib/components/Main/index.d.ts +0 -7
- package/lib/components/MenuBar/index.d.ts +0 -7
- package/lib/components/MenuItem/index.d.ts +0 -10
- package/lib/components/Modal/index.d.ts +0 -10
- package/lib/components/NavBar/NavBar.d.ts +0 -8
- package/lib/components/NavBar/NavItem.d.ts +0 -4
- package/lib/components/OptionsMenu/OptionsMenu.d.ts +1 -13
- package/lib/components/OptionsMenu/OptionsMenuList.d.ts +0 -12
- package/lib/components/OptionsMenu/OptionsMenuWrapper.d.ts +1 -9
- package/lib/components/RadioCardGroup/index.d.ts +0 -17
- package/lib/components/Scrim/index.d.ts +0 -4
- package/lib/components/SideBar/SideBar.d.ts +0 -7
- package/lib/components/SideBar/SideBarItem.d.ts +1 -0
- package/lib/components/SkipLink/index.d.ts +0 -6
- package/lib/components/Stepper/index.d.ts +0 -11
- package/lib/components/Table/Table.d.ts +0 -6
- package/lib/components/Table/TableBody.d.ts +0 -5
- package/lib/components/Table/TableCell.d.ts +0 -5
- package/lib/components/Table/TableFooter.d.ts +0 -5
- package/lib/components/Table/TableHead.d.ts +0 -5
- package/lib/components/Table/TableHeader.d.ts +0 -9
- package/lib/components/Table/TableRow.d.ts +0 -5
- package/lib/components/Tabs/Tabs.d.ts +0 -10
- package/lib/components/Tag/index.d.ts +0 -9
- package/lib/components/TextField/index.d.ts +0 -16
- package/lib/components/Toast/index.d.ts +0 -13
- package/lib/components/Tooltip/index.d.ts +9 -22
- package/lib/components/TopBar/TopBarMenu.d.ts +0 -5
- package/lib/components/TopBar/TopBarTrigger.d.ts +1 -0
- package/lib/components/TwoColumnPanel/ColumnGroupHeader.d.ts +3 -2
- package/lib/components/TwoColumnPanel/ColumnHeader.d.ts +3 -2
- package/lib/components/TwoColumnPanel/ColumnList.d.ts +3 -2
- package/lib/components/Workspace/index.d.ts +0 -11
- package/lib/contexts/theme.d.ts +1 -8
- package/lib/index.d.ts +0 -3
- package/lib/index.js +58 -944
- package/package.json +1 -3
- 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/Pointout/index.d.ts +0 -82
- package/lib/propTypes.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-canary.b9914978",
|
|
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",
|
|
@@ -46,7 +45,6 @@
|
|
|
46
45
|
"@svgr/rollup": "^6.1.2",
|
|
47
46
|
"@types/classnames": "^2.2.10",
|
|
48
47
|
"@types/node": "^17.0.42",
|
|
49
|
-
"@types/prop-types": "^15.7.3",
|
|
50
48
|
"@types/react": "^18.0.12",
|
|
51
49
|
"@types/react-dom": "^18.0.5",
|
|
52
50
|
"@types/react-syntax-highlighter": "^15.5.2",
|
|
@@ -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,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 {};
|
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>>;
|