@deque/cauldron-react 6.10.1 → 6.11.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/components/Combobox/Combobox.d.ts +1 -1
- package/lib/components/Combobox/ComboboxContext.d.ts +1 -1
- package/lib/components/Dialog/index.d.ts +1 -1
- package/lib/components/Listbox/ListboxContext.d.ts +1 -1
- package/lib/components/NavBar/NavItem.d.ts +1 -1
- package/lib/components/RadioCardGroup/index.d.ts +1 -1
- package/lib/components/Tabs/Tabs.d.ts +1 -1
- package/lib/components/Timeline/Timeline.d.ts +1 -1
- package/lib/components/Timeline/TimelineItem.d.ts +1 -1
- package/lib/components/Tooltip/index.d.ts +1 -1
- package/package.json +6 -5
|
@@ -24,7 +24,7 @@ interface ComboboxProps extends React.InputHTMLAttributes<Omit<HTMLInputElement,
|
|
|
24
24
|
previousValue: ComboboxValue;
|
|
25
25
|
}) => void;
|
|
26
26
|
onActiveChange?: (option: ListboxOption) => void;
|
|
27
|
-
renderNoResults?: (() => JSX.Element) | React.ReactElement;
|
|
27
|
+
renderNoResults?: (() => React.JSX.Element) | React.ReactElement;
|
|
28
28
|
portal?: React.RefObject<HTMLElement> | HTMLElement;
|
|
29
29
|
inputRef?: React.Ref<HTMLInputElement>;
|
|
30
30
|
}
|
|
@@ -19,6 +19,6 @@ type ComboboxProvider = {
|
|
|
19
19
|
matches: ((inputValue: string, value: string) => boolean) | boolean;
|
|
20
20
|
} & Omit<ComboboxContext, 'matches'>;
|
|
21
21
|
declare const ComboboxContext: React.Context<ComboboxContext>;
|
|
22
|
-
declare function ComboboxProvider({ autocomplete, inputValue, formValue, selectedValue, matches, matchingOptions, setMatchingOptions, setFormValue, children }: ComboboxProvider): JSX.Element;
|
|
22
|
+
declare function ComboboxProvider({ autocomplete, inputValue, formValue, selectedValue, matches, matchingOptions, setMatchingOptions, setFormValue, children }: ComboboxProvider): React.JSX.Element;
|
|
23
23
|
declare function useComboboxContext(): ComboboxContext;
|
|
24
24
|
export { ComboboxProvider, useComboboxContext };
|
|
@@ -31,7 +31,7 @@ export default class Dialog extends React.Component<DialogProps, DialogState> {
|
|
|
31
31
|
componentWillUnmount(): void;
|
|
32
32
|
componentDidUpdate(prevProps: DialogProps): void;
|
|
33
33
|
private attachIsolator;
|
|
34
|
-
render(): JSX.Element | null;
|
|
34
|
+
render(): React.JSX.Element | null;
|
|
35
35
|
close(): void;
|
|
36
36
|
handleClickOutside(): void;
|
|
37
37
|
focusHeading(): void;
|
|
@@ -22,6 +22,6 @@ declare const ListboxContext: React.Context<{
|
|
|
22
22
|
setOptions: () => null;
|
|
23
23
|
onSelect: () => null;
|
|
24
24
|
}>;
|
|
25
|
-
declare function ListboxProvider<T extends ListboxOption>({ options, active, selected, setOptions, onSelect, children }: ListboxProvider<T>): JSX.Element;
|
|
25
|
+
declare function ListboxProvider<T extends ListboxOption>({ options, active, selected, setOptions, onSelect, children }: ListboxProvider<T>): React.JSX.Element;
|
|
26
26
|
declare function useListboxContext<T extends ListboxOption>(): ListboxContext<T>;
|
|
27
27
|
export { ListboxProvider, useListboxContext, ListboxOption };
|
|
@@ -5,7 +5,7 @@ interface NavItemProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
|
5
5
|
'aria-current'?: 'page' | 'step' | 'location' | true | false;
|
|
6
6
|
}
|
|
7
7
|
declare const NavItem: {
|
|
8
|
-
({ children, active, "aria-current": ariaCurrent, ...other }: NavItemProps): JSX.Element;
|
|
8
|
+
({ children, active, "aria-current": ariaCurrent, ...other }: NavItemProps): React.JSX.Element;
|
|
9
9
|
displayName: string;
|
|
10
10
|
};
|
|
11
11
|
export default NavItem;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { IconType } from '../Icon';
|
|
3
3
|
export interface RadioItem extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
4
|
label: React.ReactNode;
|
|
5
|
-
cardImg: JSX.Element;
|
|
5
|
+
cardImg: React.JSX.Element;
|
|
6
6
|
cardIcon: IconType;
|
|
7
7
|
value?: string;
|
|
8
8
|
}
|
|
@@ -12,7 +12,7 @@ type TabsProps = {
|
|
|
12
12
|
}) => void;
|
|
13
13
|
} & Cauldron.LabelProps;
|
|
14
14
|
declare const Tabs: {
|
|
15
|
-
({ children, thin, orientation, initialActiveIndex, className, onChange, ...labelProp }: TabsProps): JSX.Element;
|
|
15
|
+
({ children, thin, orientation, initialActiveIndex, className, onChange, ...labelProp }: TabsProps): React.JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
18
|
export default Tabs;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
interface TimelineProps extends React.HTMLAttributes<HTMLOListElement> {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
export default function Timeline({ className, children, ...props }: TimelineProps): JSX.Element;
|
|
5
|
+
export default function Timeline({ className, children, ...props }: TimelineProps): React.JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
interface TimelineItemProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
3
3
|
icon?: React.ReactElement;
|
|
4
4
|
}
|
|
5
|
-
export default function TimelineItem({ className, children, icon, ...props }: TimelineItemProps): JSX.Element;
|
|
5
|
+
export default function TimelineItem({ className, children, icon, ...props }: TimelineItemProps): React.JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -12,7 +12,7 @@ export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
12
12
|
portal?: React.RefObject<HTMLElement> | HTMLElement;
|
|
13
13
|
hideElementOnHidden?: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare function Tooltip({ id: propId, placement: initialPlacement, children, portal, target, association, variant, show: showProp, defaultShow, hideElementOnHidden, className, ...props }: TooltipProps): JSX.Element;
|
|
15
|
+
declare function Tooltip({ id: propId, placement: initialPlacement, children, portal, target, association, variant, show: showProp, defaultShow, hideElementOnHidden, className, ...props }: TooltipProps): React.JSX.Element;
|
|
16
16
|
declare namespace Tooltip {
|
|
17
17
|
var displayName: string;
|
|
18
18
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-react",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.11.0",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Fully accessible react components library for Deque Cauldron",
|
|
6
6
|
"homepage": "https://cauldron.dequelabs.com/",
|
|
@@ -43,8 +43,9 @@
|
|
|
43
43
|
"@rollup/plugin-dynamic-import-vars": "^1.4.2",
|
|
44
44
|
"@rollup/plugin-typescript": "^11.1.2",
|
|
45
45
|
"@svgr/rollup": "^6.1.2",
|
|
46
|
-
"@testing-library/
|
|
47
|
-
"@testing-library/
|
|
46
|
+
"@testing-library/dom": "^10.4.0",
|
|
47
|
+
"@testing-library/jest-dom": "^6.6.2",
|
|
48
|
+
"@testing-library/react": "^16.0.1",
|
|
48
49
|
"@testing-library/user-event": "^14.5.2",
|
|
49
50
|
"@types/classnames": "^2.2.10",
|
|
50
51
|
"@types/jest": "^29.5.11",
|
|
@@ -66,8 +67,8 @@
|
|
|
66
67
|
"postcss-import": "^12.0.1",
|
|
67
68
|
"postcss-loader": "^3.0.0",
|
|
68
69
|
"prop-types": "^15.8.1",
|
|
69
|
-
"react": "^
|
|
70
|
-
"react-dom": "^
|
|
70
|
+
"react": "^18",
|
|
71
|
+
"react-dom": "^18",
|
|
71
72
|
"rollup": "^2.23.0",
|
|
72
73
|
"sinon": "^10.0.0",
|
|
73
74
|
"ts-node": "^10.9.2",
|