@deque/cauldron-react 5.7.1 → 5.8.0-canary.20933343
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/Combobox/Combobox.d.ts +30 -0
- package/lib/components/Combobox/ComboboxContext.d.ts +22 -0
- package/lib/components/Combobox/ComboboxGroup.d.ts +7 -0
- package/lib/components/Combobox/ComboboxOption.d.ts +12 -0
- package/lib/components/Combobox/index.d.ts +3 -0
- 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/Listbox/Listbox.d.ts +16 -0
- package/lib/components/Listbox/ListboxContext.d.ts +27 -0
- package/lib/components/Listbox/ListboxGroup.d.ts +9 -0
- package/lib/components/Listbox/ListboxOption.d.ts +10 -0
- package/lib/components/Listbox/index.d.ts +4 -0
- 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/Popover/index.d.ts +31 -0
- 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.d.ts +3 -0
- package/lib/index.js +1624 -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/lib/utils/useIntersectionRef.d.ts +12 -0
- package/package.json +11 -14
|
@@ -8,10 +8,10 @@ export default class Layout extends React.Component<LayoutProps> {
|
|
|
8
8
|
layoutRef: () => void;
|
|
9
9
|
};
|
|
10
10
|
static propTypes: {
|
|
11
|
-
children: PropTypes.Validator<
|
|
12
|
-
layoutRef: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
11
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
12
|
+
layoutRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
13
13
|
current: PropTypes.Requireable<any>;
|
|
14
|
-
}>>;
|
|
14
|
+
}> | null | undefined>>;
|
|
15
15
|
};
|
|
16
|
-
render(): JSX.Element;
|
|
16
|
+
render(): React.JSX.Element;
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare const Line: {
|
|
4
|
-
({ className, ...other }: React.HTMLAttributes<HTMLHRElement>): JSX.Element;
|
|
4
|
+
({ className, ...other }: React.HTMLAttributes<HTMLHRElement>): React.JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
className: PropTypes.Requireable<string>;
|
|
7
7
|
};
|
|
@@ -6,15 +6,15 @@ export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>
|
|
|
6
6
|
thin?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare const Link: {
|
|
9
|
-
({ children, linkRef, className, variant, thin, ...other }: LinkProps): JSX.Element;
|
|
9
|
+
({ children, linkRef, className, variant, thin, ...other }: LinkProps): React.JSX.Element;
|
|
10
10
|
propTypes: {
|
|
11
11
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
12
|
className: PropTypes.Requireable<string>;
|
|
13
13
|
variant: PropTypes.Requireable<string>;
|
|
14
14
|
thin: PropTypes.Requireable<boolean>;
|
|
15
|
-
linkRef: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
15
|
+
linkRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
16
16
|
current: PropTypes.Requireable<any>;
|
|
17
|
-
}>>;
|
|
17
|
+
}> | null | undefined>>;
|
|
18
18
|
};
|
|
19
19
|
displayName: string;
|
|
20
20
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ListboxOption } from './ListboxContext';
|
|
3
|
+
import type { ListboxValue } from './ListboxOption';
|
|
4
|
+
interface ListboxProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onSelect'> {
|
|
5
|
+
as?: React.ElementType | string;
|
|
6
|
+
value?: ListboxValue;
|
|
7
|
+
navigation?: 'cycle' | 'bound';
|
|
8
|
+
onSelectionChange?: <T extends HTMLElement = HTMLElement>({ value }: {
|
|
9
|
+
target: T;
|
|
10
|
+
previousValue: ListboxValue;
|
|
11
|
+
value: ListboxValue;
|
|
12
|
+
}) => void;
|
|
13
|
+
onActiveChange?: (option: ListboxOption) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const Listbox: React.ForwardRefExoticComponent<ListboxProps & React.RefAttributes<HTMLElement>>;
|
|
16
|
+
export default Listbox;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type UnknownElement<T> = T extends Element ? T : HTMLElement;
|
|
3
|
+
type UnknownValue<T> = T extends string ? T : number;
|
|
4
|
+
type ListboxOption<Element = HTMLElement, Value = string | number> = {
|
|
5
|
+
element: UnknownElement<Element>;
|
|
6
|
+
value?: UnknownValue<Value>;
|
|
7
|
+
};
|
|
8
|
+
type ListboxContext<T extends ListboxOption> = {
|
|
9
|
+
options: T[];
|
|
10
|
+
active: T | null;
|
|
11
|
+
selected: T | null;
|
|
12
|
+
setOptions: React.Dispatch<React.SetStateAction<T[]>>;
|
|
13
|
+
onSelect: (option: T) => void;
|
|
14
|
+
};
|
|
15
|
+
type ListboxProvider<T extends ListboxOption> = {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
} & ListboxContext<T>;
|
|
18
|
+
declare const ListboxContext: React.Context<{
|
|
19
|
+
options: never[];
|
|
20
|
+
active: null;
|
|
21
|
+
selected: null;
|
|
22
|
+
setOptions: () => null;
|
|
23
|
+
onSelect: () => null;
|
|
24
|
+
}>;
|
|
25
|
+
declare function ListboxProvider<T extends ListboxOption>({ options, active, selected, setOptions, onSelect, children }: ListboxProvider<T>): JSX.Element;
|
|
26
|
+
declare function useListboxContext<T extends ListboxOption>(): ListboxContext<T>;
|
|
27
|
+
export { ListboxProvider, useListboxContext, ListboxOption };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ContentNode } from '../../types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface ListboxGroupProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
as?: React.ElementType | string;
|
|
5
|
+
groupLabelProps?: React.HTMLAttributes<HTMLLIElement>;
|
|
6
|
+
label: ContentNode;
|
|
7
|
+
}
|
|
8
|
+
declare const ListboxGroup: React.ForwardRefExoticComponent<ListboxGroupProps & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
export default ListboxGroup;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ListboxValue = Readonly<string | number | undefined>;
|
|
3
|
+
interface ListboxOptionsProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
as?: React.ElementType | string;
|
|
5
|
+
value?: ListboxValue;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
activeClass?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ListboxOption: React.ForwardRefExoticComponent<ListboxOptionsProps & React.RefAttributes<HTMLElement>>;
|
|
10
|
+
export default ListboxOption;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function AxeLoader(): React.JSX.Element;
|
|
@@ -8,10 +8,10 @@ export default class Main extends Component<MainProps> {
|
|
|
8
8
|
mainRef: () => void;
|
|
9
9
|
};
|
|
10
10
|
static propTypes: {
|
|
11
|
-
children: PropTypes.Validator<
|
|
12
|
-
mainRef: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
11
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
12
|
+
mainRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
13
13
|
current: PropTypes.Requireable<any>;
|
|
14
|
-
}>>;
|
|
14
|
+
}> | null | undefined>>;
|
|
15
15
|
};
|
|
16
|
-
render(): JSX.Element;
|
|
16
|
+
render(): React.JSX.Element;
|
|
17
17
|
}
|
|
@@ -10,7 +10,7 @@ interface MenuBarState {
|
|
|
10
10
|
}
|
|
11
11
|
export default class TopBar extends React.Component<MenuBarProps, MenuBarState> {
|
|
12
12
|
static propTypes: {
|
|
13
|
-
children: PropTypes.Validator<
|
|
13
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
14
14
|
className: PropTypes.Requireable<string>;
|
|
15
15
|
thin: PropTypes.Requireable<boolean>;
|
|
16
16
|
hasTrigger: PropTypes.Requireable<boolean>;
|
|
@@ -28,6 +28,6 @@ export default class TopBar extends React.Component<MenuBarProps, MenuBarState>
|
|
|
28
28
|
private handleThin;
|
|
29
29
|
private renderChild;
|
|
30
30
|
onKeyDown(e: React.KeyboardEvent<HTMLElement>): void;
|
|
31
|
-
render(): JSX.Element;
|
|
31
|
+
render(): React.JSX.Element;
|
|
32
32
|
}
|
|
33
33
|
export {};
|
|
@@ -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 {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { Placement } from '@popperjs/core';
|
|
3
|
+
import { Cauldron } from '../../types';
|
|
4
|
+
export type PopoverVariant = 'prompt' | 'custom';
|
|
5
|
+
type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
target: React.RefObject<HTMLElement> | HTMLElement;
|
|
7
|
+
variant?: PopoverVariant;
|
|
8
|
+
show: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
placement?: Placement;
|
|
11
|
+
portal?: React.RefObject<HTMLElement> | HTMLElement;
|
|
12
|
+
};
|
|
13
|
+
type CustomProps = BaseProps & {
|
|
14
|
+
variant: 'custom';
|
|
15
|
+
applyButtonText?: string;
|
|
16
|
+
onApply?: () => void;
|
|
17
|
+
closeButtonText?: string;
|
|
18
|
+
infoText?: ReactNode;
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
} & Cauldron.LabelProps;
|
|
21
|
+
type PromptProps = BaseProps & {
|
|
22
|
+
variant: 'prompt';
|
|
23
|
+
applyButtonText?: string;
|
|
24
|
+
onApply: () => void;
|
|
25
|
+
closeButtonText?: string;
|
|
26
|
+
infoText: ReactNode;
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
};
|
|
29
|
+
export type PopoverProps = PromptProps | CustomProps;
|
|
30
|
+
declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
export default Popover;
|
|
@@ -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>;
|