@deque/cauldron-react 5.13.0 → 6.0.0-canary.403a38d4
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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
interface BaseStepProps extends React.LiHTMLAttributes<HTMLLIElement> {
|
|
4
3
|
status: 'current' | 'complete' | 'future';
|
|
5
4
|
}
|
|
@@ -14,12 +13,6 @@ type StepProps = StepWithChildren | StepWithTooltip;
|
|
|
14
13
|
export declare const Step: {
|
|
15
14
|
(props: StepProps): React.JSX.Element;
|
|
16
15
|
displayName: string;
|
|
17
|
-
propTypes: {
|
|
18
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
19
|
-
tooltip: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
20
|
-
tooltipText: PropTypes.Requireable<string>;
|
|
21
|
-
className: PropTypes.Requireable<string>;
|
|
22
|
-
};
|
|
23
16
|
};
|
|
24
17
|
interface StepperProps {
|
|
25
18
|
children: React.ReactNode;
|
|
@@ -28,9 +21,5 @@ interface StepperProps {
|
|
|
28
21
|
declare const Stepper: {
|
|
29
22
|
({ children, className, ...other }: StepperProps): React.JSX.Element;
|
|
30
23
|
displayName: string;
|
|
31
|
-
propTypes: {
|
|
32
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
33
|
-
className: PropTypes.Requireable<string>;
|
|
34
|
-
};
|
|
35
24
|
};
|
|
36
25
|
export default Stepper;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import React, { TableHTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
4
3
|
variant?: 'border';
|
|
5
4
|
}
|
|
6
5
|
declare const Table: {
|
|
7
6
|
({ children, className, variant, ...other }: TableProps): React.JSX.Element;
|
|
8
7
|
displayName: string;
|
|
9
|
-
propTypes: {
|
|
10
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
11
|
-
className: PropTypes.Requireable<string>;
|
|
12
|
-
variant: PropTypes.Requireable<string>;
|
|
13
|
-
};
|
|
14
8
|
};
|
|
15
9
|
export default Table;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
declare const TableBody: {
|
|
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 TableBody;
|
|
@@ -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);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import { Placement } from '@popperjs/core';
|
|
4
3
|
export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
4
|
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
6
|
target: React.RefObject<HTMLElement> | HTMLElement;
|
|
7
7
|
variant?: 'text' | 'info' | 'big';
|
|
8
8
|
association?: 'aria-labelledby' | 'aria-describedby';
|
|
@@ -14,26 +14,13 @@ export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
14
14
|
declare function Tooltip({ id: propId, placement: initialPlacement, children, portal, target, association, variant, show: initialShow, hideElementOnHidden, className, ...props }: TooltipProps): JSX.Element;
|
|
15
15
|
declare namespace Tooltip {
|
|
16
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
17
|
}
|
|
27
18
|
export default Tooltip;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
propTypes: {
|
|
37
|
-
className: PropTypes.Requireable<string>;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
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;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare const ColumnGroupHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
className?: string | undefined;
|
|
4
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
4
5
|
export default ColumnGroupHeader;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare const ColumnHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
className?: string | undefined;
|
|
4
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
4
5
|
export default ColumnHeader;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare const ColumnList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
className?: string | undefined;
|
|
4
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
4
5
|
export default ColumnList;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
export interface WorkspaceProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
workspaceRef: React.Ref<HTMLDivElement>;
|
|
5
4
|
layoutRef: React.Ref<HTMLDivElement>;
|
|
@@ -11,16 +10,6 @@ export default class Workspace extends React.Component<WorkspaceProps> {
|
|
|
11
10
|
layoutRef: () => void;
|
|
12
11
|
noSideBar: boolean;
|
|
13
12
|
};
|
|
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
13
|
componentDidMount(): void;
|
|
25
14
|
componentDidUpdate(prevProps: WorkspaceProps): void;
|
|
26
15
|
componentWillUnmount(): void;
|
package/lib/contexts/theme.d.ts
CHANGED
|
@@ -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 };
|
package/lib/index.d.ts
CHANGED
|
@@ -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';
|