@deque/cauldron-react 5.7.1 → 5.8.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/lib/add-user.js +23 -8
- package/lib/arrow-circle.js +23 -8
- package/lib/arrow.js +23 -8
- package/lib/arrows-alt.js +23 -8
- package/lib/bolt.js +23 -8
- package/lib/caution.js +23 -8
- package/lib/check-circle.js +23 -8
- package/lib/check-shield.js +23 -8
- package/lib/check-solid.js +23 -8
- package/lib/check.js +23 -8
- package/lib/checkbox-checked.js +23 -8
- package/lib/checkbox-unchecked.js +23 -8
- package/lib/chevron-double.js +23 -8
- package/lib/chevron.js +23 -8
- package/lib/clipboard.js +23 -8
- package/lib/clock.js +39 -0
- package/lib/close.js +23 -8
- package/lib/code.js +23 -8
- package/lib/components/Accordion/Accordion.d.ts +4 -4
- package/lib/components/Address/index.d.ts +5 -5
- package/lib/components/Alert/index.d.ts +3 -3
- package/lib/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/lib/components/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/lib/components/Card/Card.d.ts +1 -1
- package/lib/components/Card/CardContent.d.ts +2 -2
- package/lib/components/Card/CardFooter.d.ts +2 -2
- package/lib/components/Card/CardHeader.d.ts +2 -2
- package/lib/components/Code/index.d.ts +1 -1
- package/lib/components/DescriptionList/index.d.ts +8 -8
- package/lib/components/Dialog/index.d.ts +5 -5
- package/lib/components/ExpandCollapsePanel/ExpandCollapsePanel.d.ts +3 -3
- package/lib/components/ExpandCollapsePanel/PanelTrigger.d.ts +2 -2
- package/lib/components/Icon/types.d.ts +1 -1
- package/lib/components/IconButton/index.d.ts +1 -1
- package/lib/components/IssuePanel/index.d.ts +2 -2
- package/lib/components/Layout/index.d.ts +4 -4
- package/lib/components/Line/index.d.ts +1 -1
- package/lib/components/Link/index.d.ts +3 -3
- package/lib/components/LoaderOverlay/axe-loader.d.ts +2 -1
- package/lib/components/Main/index.d.ts +4 -4
- package/lib/components/MenuBar/index.d.ts +2 -2
- package/lib/components/MenuItem/index.d.ts +4 -4
- package/lib/components/Modal/index.d.ts +3 -3
- package/lib/components/NavBar/NavBar.d.ts +2 -2
- package/lib/components/NavBar/NavItem.d.ts +1 -1
- package/lib/components/Offscreen/index.d.ts +2 -2
- package/lib/components/OptionsMenu/OptionsMenu.d.ts +5 -5
- package/lib/components/OptionsMenu/OptionsMenuList.d.ts +4 -4
- package/lib/components/OptionsMenu/OptionsMenuWrapper.d.ts +2 -2
- package/lib/components/Pointout/index.d.ts +6 -6
- package/lib/components/ProgressBar/index.d.ts +1 -1
- package/lib/components/RadioCardGroup/index.d.ts +1 -1
- package/lib/components/Scrim/index.d.ts +1 -1
- package/lib/components/Select/index.d.ts +1 -1
- package/lib/components/SideBar/SideBar.d.ts +2 -2
- package/lib/components/SkipLink/index.d.ts +1 -1
- package/lib/components/Stepper/index.d.ts +4 -4
- package/lib/components/Table/Table.d.ts +3 -3
- package/lib/components/Table/TableBody.d.ts +3 -3
- package/lib/components/Table/TableCell.d.ts +3 -3
- package/lib/components/Table/TableFooter.d.ts +3 -3
- package/lib/components/Table/TableHead.d.ts +3 -3
- package/lib/components/Table/TableHeader.d.ts +4 -4
- package/lib/components/Table/TableRow.d.ts +3 -3
- package/lib/components/Tabs/Tabs.d.ts +2 -2
- package/lib/components/Tag/index.d.ts +4 -4
- package/lib/components/TextField/index.d.ts +4 -4
- package/lib/components/Toast/index.d.ts +4 -4
- package/lib/components/Tooltip/index.d.ts +3 -3
- package/lib/components/TooltipTabstop/index.d.ts +2 -2
- package/lib/components/TopBar/TopBar.d.ts +1 -1
- package/lib/components/TopBar/TopBarMenu.d.ts +2 -2
- package/lib/components/TwoColumnPanel/ColumnGroupHeader.d.ts +1 -1
- package/lib/components/TwoColumnPanel/ColumnHeader.d.ts +1 -1
- package/lib/components/TwoColumnPanel/ColumnLeft.d.ts +1 -1
- package/lib/components/TwoColumnPanel/ColumnList.d.ts +1 -1
- package/lib/components/TwoColumnPanel/ColumnRight.d.ts +1 -1
- package/lib/components/Workspace/index.d.ts +6 -6
- package/lib/contexts/theme.d.ts +2 -2
- package/lib/copy.js +23 -8
- package/lib/download.js +23 -8
- package/lib/dropper.js +23 -8
- package/lib/exchange.js +23 -8
- package/lib/export-solid.js +23 -8
- package/lib/external-link.js +23 -8
- package/lib/eye.js +23 -8
- package/lib/filter-solid.js +23 -8
- package/lib/filter.js +23 -8
- package/lib/flag.js +23 -8
- package/lib/gears.js +23 -7
- package/lib/github.js +23 -8
- package/lib/grid.js +23 -8
- package/lib/hamburger-menu.js +26 -11
- package/lib/hashtag.js +23 -8
- package/lib/highlight.js +23 -8
- package/lib/index.js +875 -6084
- package/lib/info-circle-alt.js +23 -8
- package/lib/info-circle.js +23 -8
- package/lib/info-square.js +23 -8
- package/lib/kabob.js +23 -8
- package/lib/link.js +23 -8
- package/lib/linkedin.js +23 -8
- package/lib/list.js +29 -14
- package/lib/lock.js +23 -8
- package/lib/magnifying-glass.js +23 -8
- package/lib/menu.js +23 -8
- package/lib/minus.js +23 -8
- package/lib/new-releases.js +24 -9
- package/lib/new.js +23 -8
- package/lib/no.js +23 -8
- package/lib/pencil.js +23 -8
- package/lib/person-running.js +23 -8
- package/lib/play.js +23 -8
- package/lib/plus.js +23 -8
- package/lib/propTypes.d.ts +1 -1
- package/lib/question-circle-alt.js +23 -8
- package/lib/question-circle.js +23 -8
- package/lib/radio-checked.js +23 -8
- package/lib/radio-unchecked.js +23 -8
- package/lib/recycle-square.js +23 -8
- package/lib/recycle.js +23 -8
- package/lib/resend.js +23 -8
- package/lib/robot.js +24 -9
- package/lib/run-again.js +23 -8
- package/lib/save.js +23 -8
- package/lib/share-nodes.js +23 -8
- package/lib/share.js +23 -8
- package/lib/sort-triangle.js +23 -8
- package/lib/sort.js +23 -8
- package/lib/star.js +23 -8
- package/lib/sun.js +23 -8
- package/lib/table-sort-ascending.js +24 -9
- package/lib/table-sort-descending.js +24 -9
- package/lib/tag.js +23 -8
- package/lib/target.js +25 -10
- package/lib/trash.js +23 -8
- package/lib/triangle.js +23 -8
- package/lib/twitter.js +23 -8
- package/lib/types.d.ts +1 -1
- package/lib/upload.js +23 -8
- package/lib/utils/polymorphic-type/index.d.ts +4 -4
- package/package.json +9 -12
|
@@ -15,10 +15,10 @@ export default class MenuItem extends Component<MenuItemProps> {
|
|
|
15
15
|
autoClickLink: boolean;
|
|
16
16
|
};
|
|
17
17
|
static propTypes: {
|
|
18
|
-
children: PropTypes.Validator<
|
|
19
|
-
menuItemRef: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
18
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
19
|
+
menuItemRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
20
20
|
current: PropTypes.Requireable<any>;
|
|
21
|
-
}>>;
|
|
21
|
+
}> | null | undefined>>;
|
|
22
22
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
23
|
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
24
|
autoClickLink: PropTypes.Requireable<boolean>;
|
|
@@ -27,6 +27,6 @@ export default class MenuItem extends Component<MenuItemProps> {
|
|
|
27
27
|
constructor(props: MenuItemProps);
|
|
28
28
|
onClick(e: React.MouseEvent<HTMLLIElement>): void;
|
|
29
29
|
onKeyDown(e: React.KeyboardEvent<HTMLLIElement>): void;
|
|
30
|
-
render(): JSX.Element;
|
|
30
|
+
render(): React.JSX.Element;
|
|
31
31
|
}
|
|
32
32
|
export {};
|
|
@@ -3,9 +3,9 @@ import { DialogProps } from '../Dialog';
|
|
|
3
3
|
interface ModalProps extends Omit<DialogProps, 'forceAction'> {
|
|
4
4
|
variant?: 'info';
|
|
5
5
|
}
|
|
6
|
-
declare const Modal: ({ children, className, variant, ...other }: ModalProps) => JSX.Element;
|
|
6
|
+
declare const Modal: ({ children, className, variant, ...other }: ModalProps) => React.JSX.Element;
|
|
7
7
|
declare const ModalContent: {
|
|
8
|
-
({ children, className, ...other }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
8
|
+
({ children, className, ...other }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
9
9
|
displayName: string;
|
|
10
10
|
propTypes: {
|
|
11
11
|
className: import("prop-types").Requireable<string>;
|
|
@@ -13,7 +13,7 @@ declare const ModalContent: {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
declare const ModalFooter: {
|
|
16
|
-
({ children, className, ...other }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
16
|
+
({ children, className, ...other }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
propTypes: {
|
|
19
19
|
className: import("prop-types").Requireable<string>;
|
|
@@ -8,10 +8,10 @@ interface NavBarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
8
8
|
propId?: string;
|
|
9
9
|
}
|
|
10
10
|
declare const NavBar: {
|
|
11
|
-
({ children, className, collapsed, navTriggerLabel, propId, ...props }: NavBarProps): JSX.Element;
|
|
11
|
+
({ children, className, collapsed, navTriggerLabel, propId, ...props }: NavBarProps): React.JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
propTypes: {
|
|
14
|
-
children: PropTypes.Validator<
|
|
14
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
15
15
|
className: PropTypes.Requireable<string>;
|
|
16
16
|
collapsed: PropTypes.Requireable<boolean>;
|
|
17
17
|
navTriggerLabel: PropTypes.Requireable<string>;
|
|
@@ -9,7 +9,7 @@ declare const NavItem: {
|
|
|
9
9
|
({ children, active, "aria-current": ariaCurrent, ...other }: NavItemProps): JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
propTypes: {
|
|
12
|
-
children: PropTypes.Validator<
|
|
12
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
export default NavItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
declare const Offscreen: (props: OffscreenProps) => JSX.Element;
|
|
2
|
+
export type OffscreenProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
3
|
+
declare const Offscreen: (props: OffscreenProps) => React.JSX.Element;
|
|
4
4
|
export default Offscreen;
|
|
@@ -22,7 +22,7 @@ export interface OptionsMenuProps extends OptionsMenuAlignmentProps {
|
|
|
22
22
|
interface OptionsMenuState {
|
|
23
23
|
show: boolean;
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
type AllOptionsMenuProps = OptionsMenuProps & React.HTMLAttributes<HTMLLIElement>;
|
|
26
26
|
export default class OptionsMenu extends Component<AllOptionsMenuProps, OptionsMenuState> {
|
|
27
27
|
static defaultProps: {
|
|
28
28
|
onClose: () => void;
|
|
@@ -31,14 +31,14 @@ export default class OptionsMenu extends Component<AllOptionsMenuProps, OptionsM
|
|
|
31
31
|
};
|
|
32
32
|
static propTypes: {
|
|
33
33
|
trigger: PropTypes.Requireable<(...args: any[]) => any>;
|
|
34
|
-
children: PropTypes.Validator<
|
|
34
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
35
35
|
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
36
36
|
className: PropTypes.Requireable<string>;
|
|
37
37
|
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
38
38
|
closeOnSelect: PropTypes.Requireable<boolean>;
|
|
39
|
-
menuRef: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
39
|
+
menuRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
40
40
|
current: PropTypes.Requireable<any>;
|
|
41
|
-
}>>;
|
|
41
|
+
}> | null | undefined>>;
|
|
42
42
|
align: PropTypes.Requireable<string>;
|
|
43
43
|
};
|
|
44
44
|
private triggerRef;
|
|
@@ -46,6 +46,6 @@ export default class OptionsMenu extends Component<AllOptionsMenuProps, OptionsM
|
|
|
46
46
|
toggleMenu: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
47
47
|
handleClose: () => void;
|
|
48
48
|
handleTriggerKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
49
|
-
render(): JSX.Element;
|
|
49
|
+
render(): React.JSX.Element;
|
|
50
50
|
}
|
|
51
51
|
export {};
|
|
@@ -15,14 +15,14 @@ export default class OptionsMenuList extends React.Component<OptionsMenuListProp
|
|
|
15
15
|
};
|
|
16
16
|
static propTypes: {
|
|
17
17
|
show: PropTypes.Requireable<boolean>;
|
|
18
|
-
children: PropTypes.Validator<
|
|
18
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
19
19
|
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
20
|
className: PropTypes.Requireable<string>;
|
|
21
21
|
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
22
|
closeOnSelect: PropTypes.Requireable<boolean>;
|
|
23
|
-
menuRef: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
23
|
+
menuRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
24
24
|
current: PropTypes.Requireable<any>;
|
|
25
|
-
}>>;
|
|
25
|
+
}> | null | undefined>>;
|
|
26
26
|
};
|
|
27
27
|
private itemRefs;
|
|
28
28
|
private menuRef;
|
|
@@ -33,6 +33,6 @@ export default class OptionsMenuList extends React.Component<OptionsMenuListProp
|
|
|
33
33
|
private handleClickOutside;
|
|
34
34
|
componentDidMount(): void;
|
|
35
35
|
componentWillUnmount(): void;
|
|
36
|
-
render(): JSX.Element;
|
|
36
|
+
render(): React.JSX.Element;
|
|
37
37
|
}
|
|
38
38
|
export {};
|
|
@@ -7,9 +7,9 @@ export interface OptionsMenuWrapperProps extends React.HTMLAttributes<HTMLDivEle
|
|
|
7
7
|
* Wrapper / parent component for the <OptionsMenuTrigger /> and <OptionsMenu /> components
|
|
8
8
|
*/
|
|
9
9
|
declare const OptionsMenuWrapper: {
|
|
10
|
-
({ className, align, ...other }: OptionsMenuWrapperProps): JSX.Element;
|
|
10
|
+
({ className, align, ...other }: OptionsMenuWrapperProps): React.JSX.Element;
|
|
11
11
|
propTypes: {
|
|
12
|
-
children: PropTypes.Validator<
|
|
12
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
13
13
|
className: PropTypes.Requireable<string>;
|
|
14
14
|
align: PropTypes.Requireable<string>;
|
|
15
15
|
};
|
|
@@ -41,18 +41,18 @@ export default class Pointout extends React.Component<PointoutProps, PointoutSta
|
|
|
41
41
|
};
|
|
42
42
|
static propTypes: {
|
|
43
43
|
heading: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
44
|
-
children: PropTypes.Validator<
|
|
45
|
-
ftpRef: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
44
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
45
|
+
ftpRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
46
46
|
current: PropTypes.Requireable<any>;
|
|
47
|
-
}>>;
|
|
47
|
+
}> | null | undefined>>;
|
|
48
48
|
noArrow: (props: PointoutProps, propName: keyof PointoutProps) => Error | undefined;
|
|
49
49
|
arrowPosition: PropTypes.Requireable<string>;
|
|
50
50
|
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
51
51
|
dismissText: PropTypes.Requireable<string>;
|
|
52
52
|
className: PropTypes.Requireable<string>;
|
|
53
|
-
target: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
53
|
+
target: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
54
54
|
current: PropTypes.Requireable<any>;
|
|
55
|
-
}>>;
|
|
55
|
+
}> | null | undefined>>;
|
|
56
56
|
disableOffscreenPointout: PropTypes.Requireable<boolean>;
|
|
57
57
|
portal: PropTypes.Requireable<any>;
|
|
58
58
|
previousButtonProps: PropTypes.Requireable<any>;
|
|
@@ -76,7 +76,7 @@ export default class Pointout extends React.Component<PointoutProps, PointoutSta
|
|
|
76
76
|
handleOffscreenFocusOut: ({ target }: FocusEvent) => void;
|
|
77
77
|
positionRelativeToTarget: () => void;
|
|
78
78
|
componentDidUpdate(nextProps: PointoutProps): void;
|
|
79
|
-
render(): JSX.Element | null;
|
|
79
|
+
render(): React.JSX.Element | null;
|
|
80
80
|
onCloseClick(): void;
|
|
81
81
|
}
|
|
82
82
|
export {};
|
|
@@ -16,7 +16,7 @@ export interface RadioCardGroupProps {
|
|
|
16
16
|
onChange: (radio: RadioItem, input: HTMLElement) => void;
|
|
17
17
|
}
|
|
18
18
|
declare const RadioCardGroup: {
|
|
19
|
-
({ name, radios, defaultValue, value, onChange, className, ...other }: RadioCardGroupProps): JSX.Element;
|
|
19
|
+
({ name, radios, defaultValue, value, onChange, className, ...other }: RadioCardGroupProps): React.JSX.Element;
|
|
20
20
|
propTypes: {
|
|
21
21
|
name: PropTypes.Requireable<string>;
|
|
22
22
|
radios: PropTypes.Validator<(PropTypes.InferProps<{
|
|
@@ -16,5 +16,5 @@ export interface SelectProps extends Omit<React.HTMLProps<HTMLSelectElement>, 'c
|
|
|
16
16
|
defaultValue?: any;
|
|
17
17
|
onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
18
18
|
}
|
|
19
|
-
declare const Select: React.ForwardRefExoticComponent<
|
|
19
|
+
declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
|
|
20
20
|
export default Select;
|
|
@@ -17,7 +17,7 @@ export default class SideBar extends Component<SideBarProps, SideBarState> {
|
|
|
17
17
|
show: boolean;
|
|
18
18
|
};
|
|
19
19
|
static propTypes: {
|
|
20
|
-
children: PropTypes.Validator<
|
|
20
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
21
21
|
onDismiss: PropTypes.Validator<(...args: any[]) => any>;
|
|
22
22
|
className: PropTypes.Requireable<string>;
|
|
23
23
|
show: PropTypes.Requireable<boolean>;
|
|
@@ -33,6 +33,6 @@ export default class SideBar extends Component<SideBarProps, SideBarState> {
|
|
|
33
33
|
private handleClickOutside;
|
|
34
34
|
componentDidUpdate(prevProps: SideBarProps): void;
|
|
35
35
|
private animate;
|
|
36
|
-
render(): JSX.Element;
|
|
36
|
+
render(): React.JSX.Element;
|
|
37
37
|
}
|
|
38
38
|
export {};
|
|
@@ -22,7 +22,7 @@ export default class SkipLink extends React.Component<SkipLinkProps, SkipLinkSta
|
|
|
22
22
|
targetText: PropTypes.Requireable<string>;
|
|
23
23
|
};
|
|
24
24
|
constructor(props: SkipLinkProps);
|
|
25
|
-
render(): JSX.Element;
|
|
25
|
+
render(): React.JSX.Element;
|
|
26
26
|
private onClick;
|
|
27
27
|
private onFocus;
|
|
28
28
|
private onBlur;
|
|
@@ -10,9 +10,9 @@ interface StepWithTooltip extends BaseStepProps {
|
|
|
10
10
|
tooltip: React.ReactNode;
|
|
11
11
|
tooltipText: string;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
type StepProps = StepWithChildren | StepWithTooltip;
|
|
14
14
|
export declare const Step: {
|
|
15
|
-
(props: StepProps): JSX.Element;
|
|
15
|
+
(props: StepProps): React.JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
propTypes: {
|
|
18
18
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
@@ -26,10 +26,10 @@ interface StepperProps {
|
|
|
26
26
|
className?: string;
|
|
27
27
|
}
|
|
28
28
|
declare const Stepper: {
|
|
29
|
-
({ children, className, ...other }: StepperProps): JSX.Element;
|
|
29
|
+
({ children, className, ...other }: StepperProps): React.JSX.Element;
|
|
30
30
|
displayName: string;
|
|
31
31
|
propTypes: {
|
|
32
|
-
children: PropTypes.Validator<
|
|
32
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
33
33
|
className: PropTypes.Requireable<string>;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TableHTMLAttributes } from 'react';
|
|
1
|
+
import React, { TableHTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
4
4
|
variant?: 'border';
|
|
5
5
|
}
|
|
6
6
|
declare const Table: {
|
|
7
|
-
({ children, className, variant, ...other }: TableProps): JSX.Element;
|
|
7
|
+
({ children, className, variant, ...other }: TableProps): React.JSX.Element;
|
|
8
8
|
displayName: string;
|
|
9
9
|
propTypes: {
|
|
10
|
-
children: PropTypes.Validator<
|
|
10
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
11
11
|
className: PropTypes.Requireable<string>;
|
|
12
12
|
variant: PropTypes.Requireable<string>;
|
|
13
13
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare const TableBody: {
|
|
4
|
-
({ children, className, ...other }: HTMLAttributes<HTMLTableSectionElement>): JSX.Element;
|
|
4
|
+
({ children, className, ...other }: HTMLAttributes<HTMLTableSectionElement>): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
propTypes: {
|
|
7
|
-
children: PropTypes.Validator<
|
|
7
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
8
8
|
className: PropTypes.Requireable<string>;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TdHTMLAttributes } from 'react';
|
|
1
|
+
import React, { TdHTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare const TableCell: {
|
|
4
|
-
({ children, className, ...other }: TdHTMLAttributes<HTMLTableCellElement>): JSX.Element;
|
|
4
|
+
({ children, className, ...other }: TdHTMLAttributes<HTMLTableCellElement>): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
propTypes: {
|
|
7
|
-
children: PropTypes.Validator<
|
|
7
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
8
8
|
className: PropTypes.Requireable<string>;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare const TableFooter: {
|
|
4
|
-
({ children, className, ...other }: HTMLAttributes<HTMLTableSectionElement>): JSX.Element;
|
|
4
|
+
({ children, className, ...other }: HTMLAttributes<HTMLTableSectionElement>): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
propTypes: {
|
|
7
|
-
children: PropTypes.Validator<
|
|
7
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
8
8
|
className: PropTypes.Requireable<string>;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare const TableHead: {
|
|
4
|
-
({ children, className, ...other }: HTMLAttributes<HTMLTableSectionElement>): JSX.Element;
|
|
4
|
+
({ children, className, ...other }: HTMLAttributes<HTMLTableSectionElement>): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
propTypes: {
|
|
7
|
-
children: PropTypes.Validator<
|
|
7
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
8
8
|
className: PropTypes.Requireable<string>;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ThHTMLAttributes } from 'react';
|
|
1
|
+
import React, { ThHTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
|
|
3
|
+
type SortDirection = 'ascending' | 'descending' | 'none';
|
|
4
4
|
interface TableHeaderProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
5
5
|
sortDirection?: SortDirection;
|
|
6
6
|
onSort?: () => void;
|
|
@@ -8,10 +8,10 @@ interface TableHeaderProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
|
8
8
|
sortDescendingAnnouncement?: string;
|
|
9
9
|
}
|
|
10
10
|
declare const TableHeader: {
|
|
11
|
-
({ children, sortDirection, onSort, className, sortAscendingAnnouncement, sortDescendingAnnouncement, ...other }: TableHeaderProps): JSX.Element;
|
|
11
|
+
({ children, sortDirection, onSort, className, sortAscendingAnnouncement, sortDescendingAnnouncement, ...other }: TableHeaderProps): React.JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
propTypes: {
|
|
14
|
-
children: PropTypes.Validator<
|
|
14
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
15
15
|
sortDirection: PropTypes.Requireable<string>;
|
|
16
16
|
onSort: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
17
|
className: PropTypes.Requireable<string>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare const TableRow: {
|
|
4
|
-
({ children, className, ...other }: HTMLAttributes<HTMLTableRowElement>): JSX.Element;
|
|
4
|
+
({ children, className, ...other }: HTMLAttributes<HTMLTableRowElement>): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
propTypes: {
|
|
7
|
-
children: PropTypes.Validator<
|
|
7
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
8
8
|
className: PropTypes.Requireable<string>;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Cauldron } from '../../types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
|
|
4
|
+
type TabsProps = {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
initialActiveIndex?: number;
|
|
7
7
|
thin?: boolean;
|
|
@@ -16,7 +16,7 @@ declare const Tabs: {
|
|
|
16
16
|
({ children, thin, orientation, initialActiveIndex, className, onChange, ...labelProp }: TabsProps): JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
propTypes: {
|
|
19
|
-
children: PropTypes.Validator<
|
|
19
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
20
20
|
'aria-label': PropTypes.Requireable<string>;
|
|
21
21
|
'aria-labelledby': PropTypes.Requireable<string>;
|
|
22
22
|
initialActiveIndex: PropTypes.Requireable<number>;
|
|
@@ -5,18 +5,18 @@ interface TagProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const TagLabel: {
|
|
8
|
-
({ children, className, ...other }: TagProps): JSX.Element;
|
|
8
|
+
({ children, className, ...other }: TagProps): React.JSX.Element;
|
|
9
9
|
displayName: string;
|
|
10
10
|
propTypes: {
|
|
11
|
-
children: PropTypes.Validator<
|
|
11
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
12
12
|
className: PropTypes.Requireable<string>;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
declare const Tag: {
|
|
16
|
-
({ children, className, ...other }: TagProps): JSX.Element;
|
|
16
|
+
({ children, className, ...other }: TagProps): React.JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
propTypes: {
|
|
19
|
-
children: PropTypes.Validator<
|
|
19
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
20
20
|
className: PropTypes.Requireable<string>;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
@@ -24,15 +24,15 @@ export default class TextField extends React.Component<TextFieldProps, TextField
|
|
|
24
24
|
multiline: boolean;
|
|
25
25
|
};
|
|
26
26
|
static propTypes: {
|
|
27
|
-
label: PropTypes.Validator<
|
|
27
|
+
label: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
28
28
|
id: PropTypes.Requireable<string>;
|
|
29
29
|
error: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
30
30
|
defaultValue: PropTypes.Requireable<string>;
|
|
31
31
|
value: PropTypes.Requireable<string>;
|
|
32
32
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
|
-
fieldRef: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
33
|
+
fieldRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
34
34
|
current: PropTypes.Requireable<any>;
|
|
35
|
-
}>>;
|
|
35
|
+
}> | null | undefined>>;
|
|
36
36
|
required: PropTypes.Requireable<boolean>;
|
|
37
37
|
requiredText: PropTypes.Requireable<string>;
|
|
38
38
|
multiline: PropTypes.Requireable<boolean>;
|
|
@@ -42,7 +42,7 @@ export default class TextField extends React.Component<TextFieldProps, TextField
|
|
|
42
42
|
private errorId;
|
|
43
43
|
private input;
|
|
44
44
|
constructor(props: TextFieldProps);
|
|
45
|
-
render(): JSX.Element;
|
|
45
|
+
render(): React.JSX.Element;
|
|
46
46
|
onChange(e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>): void;
|
|
47
47
|
}
|
|
48
48
|
export {};
|
|
@@ -28,13 +28,13 @@ export default class Toast extends React.Component<ToastProps, ToastState> {
|
|
|
28
28
|
dismissible: boolean;
|
|
29
29
|
};
|
|
30
30
|
static propTypes: {
|
|
31
|
-
children: PropTypes.Validator<
|
|
31
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
32
32
|
type: PropTypes.Validator<string>;
|
|
33
33
|
onDismiss: PropTypes.Requireable<(...args: any[]) => any>;
|
|
34
34
|
dismissText: PropTypes.Requireable<string>;
|
|
35
|
-
toastRef: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
35
|
+
toastRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
36
36
|
current: PropTypes.Requireable<any>;
|
|
37
|
-
}>>;
|
|
37
|
+
}> | null | undefined>>;
|
|
38
38
|
focus: PropTypes.Requireable<boolean>;
|
|
39
39
|
show: PropTypes.Requireable<boolean>;
|
|
40
40
|
dismissible: PropTypes.Requireable<boolean>;
|
|
@@ -45,7 +45,7 @@ export default class Toast extends React.Component<ToastProps, ToastState> {
|
|
|
45
45
|
componentDidMount(): void;
|
|
46
46
|
componentDidUpdate(prevProps: ToastProps): void;
|
|
47
47
|
componentWillUnmount(): void;
|
|
48
|
-
render(): JSX.Element;
|
|
48
|
+
render(): React.JSX.Element;
|
|
49
49
|
dismissToast(): void;
|
|
50
50
|
showToast(): void;
|
|
51
51
|
}
|
|
@@ -15,7 +15,7 @@ declare function Tooltip({ id: propId, placement: initialPlacement, children, po
|
|
|
15
15
|
declare namespace Tooltip {
|
|
16
16
|
var displayName: string;
|
|
17
17
|
var propTypes: {
|
|
18
|
-
children: PropTypes.Validator<
|
|
18
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
19
19
|
target: PropTypes.Validator<any>;
|
|
20
20
|
association: PropTypes.Requireable<string>;
|
|
21
21
|
show: PropTypes.Requireable<boolean>;
|
|
@@ -26,13 +26,13 @@ declare namespace Tooltip {
|
|
|
26
26
|
}
|
|
27
27
|
export default Tooltip;
|
|
28
28
|
export declare const TooltipHead: {
|
|
29
|
-
({ className, ...other }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
29
|
+
({ className, ...other }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
30
30
|
propTypes: {
|
|
31
31
|
className: PropTypes.Requireable<string>;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
export declare const TooltipContent: {
|
|
35
|
-
({ className, ...other }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
35
|
+
({ className, ...other }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
36
36
|
propTypes: {
|
|
37
37
|
className: PropTypes.Requireable<string>;
|
|
38
38
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TooltipProps } from '../Tooltip';
|
|
3
|
-
|
|
3
|
+
type TooltipTabstopProps = Omit<TooltipProps, 'target'> & {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
tooltip: React.ReactNode;
|
|
6
6
|
} & React.HTMLAttributes<HTMLButtonElement>;
|
|
@@ -10,7 +10,7 @@ declare type TooltipTabstopProps = Omit<TooltipProps, 'target'> & {
|
|
|
10
10
|
* - Inform AT users that clicking the button does not perform any action
|
|
11
11
|
* - Is presented as a focusable control to trigger the associated tooltip
|
|
12
12
|
*/
|
|
13
|
-
declare function TooltipTabstop({ children, className, tooltip, variant, association, show, placement, portal, hideElementOnHidden, ...buttonProps }: TooltipTabstopProps): JSX.Element;
|
|
13
|
+
declare function TooltipTabstop({ children, className, tooltip, variant, association, show, placement, portal, hideElementOnHidden, ...buttonProps }: TooltipTabstopProps): React.JSX.Element;
|
|
14
14
|
declare namespace TooltipTabstop {
|
|
15
15
|
var displayName: string;
|
|
16
16
|
}
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
export interface TopBarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
}
|
|
5
|
-
declare const TopBar: (props: TopBarProps) => JSX.Element;
|
|
5
|
+
declare const TopBar: (props: TopBarProps) => React.JSX.Element;
|
|
6
6
|
export default TopBar;
|
|
@@ -14,7 +14,7 @@ export default class TopBarMenu extends React.Component<TopBarMenuProps, TopBarM
|
|
|
14
14
|
};
|
|
15
15
|
static propTypes: {
|
|
16
16
|
id: PropTypes.Validator<string>;
|
|
17
|
-
children: PropTypes.Validator<
|
|
17
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
18
18
|
};
|
|
19
19
|
state: TopBarMenuState;
|
|
20
20
|
private optionsMenuRef;
|
|
@@ -22,6 +22,6 @@ export default class TopBarMenu extends React.Component<TopBarMenuProps, TopBarM
|
|
|
22
22
|
private handleClick;
|
|
23
23
|
private handleClose;
|
|
24
24
|
private handleKeyDown;
|
|
25
|
-
render(): JSX.Element;
|
|
25
|
+
render(): React.JSX.Element;
|
|
26
26
|
}
|
|
27
27
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type ColumnGroupHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
3
3
|
declare const ColumnGroupHeader: React.ForwardRefExoticComponent<ColumnGroupHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default ColumnGroupHeader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type ColumnHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
3
3
|
declare const ColumnHeader: React.ForwardRefExoticComponent<ColumnHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default ColumnHeader;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Cauldron } from '../../types';
|
|
3
|
-
|
|
3
|
+
type ColumnLeftProps = React.HTMLAttributes<HTMLDivElement> & Cauldron.LabelProps;
|
|
4
4
|
declare const ColumnLeft: React.ForwardRefExoticComponent<ColumnLeftProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default ColumnLeft;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type ColumnListProps = React.HTMLAttributes<HTMLDivElement>;
|
|
3
3
|
declare const ColumnList: React.ForwardRefExoticComponent<ColumnListProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default ColumnList;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Cauldron } from '../../types';
|
|
3
|
-
|
|
3
|
+
type ColumnRightProps = React.HTMLAttributes<HTMLDivElement> & Cauldron.LabelProps;
|
|
4
4
|
declare const ColumnRight: React.ForwardRefExoticComponent<ColumnRightProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default ColumnRight;
|