@deque/cauldron-react 6.0.0-canary.bdf14131 → 6.0.0-canary.ca3aa821
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/__tests__/setupTests.d.ts +2 -0
- package/lib/index.js +10 -7
- package/lib/src/axe.d.ts +3 -0
- package/lib/src/components/Button/index.test.d.ts +1 -0
- package/lib/src/components/Combobox/Combobox.test.d.ts +1 -0
- package/lib/{components → src/components}/IconButton/index.d.ts +1 -0
- package/package.json +12 -5
- /package/lib/{components → src/components}/Accordion/Accordion.d.ts +0 -0
- /package/lib/{components → src/components}/Accordion/index.d.ts +0 -0
- /package/lib/{components → src/components}/Address/index.d.ts +0 -0
- /package/lib/{components → src/components}/Alert/index.d.ts +0 -0
- /package/lib/{components → src/components}/Breadcrumb/Breadcrumb.d.ts +0 -0
- /package/lib/{components → src/components}/Breadcrumb/BreadcrumbItem.d.ts +0 -0
- /package/lib/{components → src/components}/Breadcrumb/BreadcrumbLink.d.ts +0 -0
- /package/lib/{components → src/components}/Breadcrumb/index.d.ts +0 -0
- /package/lib/{components → src/components}/Button/index.d.ts +0 -0
- /package/lib/{components → src/components}/Checkbox/index.d.ts +0 -0
- /package/lib/{components → src/components}/ClickOutsideListener/index.d.ts +0 -0
- /package/lib/{components → src/components}/Code/index.d.ts +0 -0
- /package/lib/{components → src/components}/Combobox/Combobox.d.ts +0 -0
- /package/lib/{components → src/components}/Combobox/ComboboxContext.d.ts +0 -0
- /package/lib/{components → src/components}/Combobox/ComboboxGroup.d.ts +0 -0
- /package/lib/{components → src/components}/Combobox/ComboboxOption.d.ts +0 -0
- /package/lib/{components → src/components}/Combobox/index.d.ts +0 -0
- /package/lib/{components → src/components}/DescriptionList/index.d.ts +0 -0
- /package/lib/{components → src/components}/Dialog/index.d.ts +0 -0
- /package/lib/{components → src/components}/ExpandCollapsePanel/ExpandCollapsePanel.d.ts +0 -0
- /package/lib/{components → src/components}/ExpandCollapsePanel/PanelTrigger.d.ts +0 -0
- /package/lib/{components → src/components}/ExpandCollapsePanel/index.d.ts +0 -0
- /package/lib/{components → src/components}/FieldWrap/index.d.ts +0 -0
- /package/lib/{components → src/components}/Icon/index.d.ts +0 -0
- /package/lib/{components → src/components}/Icon/types.d.ts +0 -0
- /package/lib/{components → src/components}/Layout/index.d.ts +0 -0
- /package/lib/{components → src/components}/Line/index.d.ts +0 -0
- /package/lib/{components → src/components}/Link/index.d.ts +0 -0
- /package/lib/{components → src/components}/Listbox/Listbox.d.ts +0 -0
- /package/lib/{components → src/components}/Listbox/ListboxContext.d.ts +0 -0
- /package/lib/{components → src/components}/Listbox/ListboxGroup.d.ts +0 -0
- /package/lib/{components → src/components}/Listbox/ListboxOption.d.ts +0 -0
- /package/lib/{components → src/components}/Listbox/index.d.ts +0 -0
- /package/lib/{components → src/components}/Loader/index.d.ts +0 -0
- /package/lib/{components → src/components}/LoaderOverlay/axe-loader.d.ts +0 -0
- /package/lib/{components → src/components}/LoaderOverlay/index.d.ts +0 -0
- /package/lib/{components → src/components}/Main/index.d.ts +0 -0
- /package/lib/{components → src/components}/MenuBar/index.d.ts +0 -0
- /package/lib/{components → src/components}/MenuItem/click-link.d.ts +0 -0
- /package/lib/{components → src/components}/MenuItem/index.d.ts +0 -0
- /package/lib/{components → src/components}/Modal/index.d.ts +0 -0
- /package/lib/{components → src/components}/NavBar/NavBar.d.ts +0 -0
- /package/lib/{components → src/components}/NavBar/NavItem.d.ts +0 -0
- /package/lib/{components → src/components}/NavBar/index.d.ts +0 -0
- /package/lib/{components → src/components}/Notice/index.d.ts +0 -0
- /package/lib/{components → src/components}/Offscreen/index.d.ts +0 -0
- /package/lib/{components → src/components}/OptionsMenu/OptionsMenu.d.ts +0 -0
- /package/lib/{components → src/components}/OptionsMenu/OptionsMenuItem.d.ts +0 -0
- /package/lib/{components → src/components}/OptionsMenu/OptionsMenuList.d.ts +0 -0
- /package/lib/{components → src/components}/OptionsMenu/OptionsMenuTrigger.d.ts +0 -0
- /package/lib/{components → src/components}/OptionsMenu/OptionsMenuWrapper.d.ts +0 -0
- /package/lib/{components → src/components}/OptionsMenu/index.d.ts +0 -0
- /package/lib/{components → src/components}/Pagination/Pagination.d.ts +0 -0
- /package/lib/{components → src/components}/Pagination/index.d.ts +0 -0
- /package/lib/{components → src/components}/Pagination/usePagination.d.ts +0 -0
- /package/lib/{components → src/components}/Panel/Panel.d.ts +0 -0
- /package/lib/{components → src/components}/Panel/PanelContent.d.ts +0 -0
- /package/lib/{components → src/components}/Panel/PanelHeader.d.ts +0 -0
- /package/lib/{components → src/components}/Panel/index.d.ts +0 -0
- /package/lib/{components → src/components}/Popover/index.d.ts +0 -0
- /package/lib/{components → src/components}/ProgressBar/index.d.ts +0 -0
- /package/lib/{components → src/components}/RadioCardGroup/index.d.ts +0 -0
- /package/lib/{components → src/components}/RadioGroup/index.d.ts +0 -0
- /package/lib/{components → src/components}/Scrim/index.d.ts +0 -0
- /package/lib/{components → src/components}/Select/index.d.ts +0 -0
- /package/lib/{components → src/components}/SideBar/SideBar.d.ts +0 -0
- /package/lib/{components → src/components}/SideBar/SideBarItem.d.ts +0 -0
- /package/lib/{components → src/components}/SideBar/index.d.ts +0 -0
- /package/lib/{components → src/components}/SkipLink/index.d.ts +0 -0
- /package/lib/{components → src/components}/Stepper/index.d.ts +0 -0
- /package/lib/{components → src/components}/Table/Table.d.ts +0 -0
- /package/lib/{components → src/components}/Table/TableBody.d.ts +0 -0
- /package/lib/{components → src/components}/Table/TableCell.d.ts +0 -0
- /package/lib/{components → src/components}/Table/TableFooter.d.ts +0 -0
- /package/lib/{components → src/components}/Table/TableHead.d.ts +0 -0
- /package/lib/{components → src/components}/Table/TableHeader.d.ts +0 -0
- /package/lib/{components → src/components}/Table/TableRow.d.ts +0 -0
- /package/lib/{components → src/components}/Table/index.d.ts +0 -0
- /package/lib/{components → src/components}/Tabs/Tab.d.ts +0 -0
- /package/lib/{components → src/components}/Tabs/TabPanel.d.ts +0 -0
- /package/lib/{components → src/components}/Tabs/Tabs.d.ts +0 -0
- /package/lib/{components → src/components}/Tabs/index.d.ts +0 -0
- /package/lib/{components → src/components}/Tag/index.d.ts +0 -0
- /package/lib/{components → src/components}/TagButton/index.d.ts +0 -0
- /package/lib/{components → src/components}/TextField/index.d.ts +0 -0
- /package/lib/{components → src/components}/Toast/index.d.ts +0 -0
- /package/lib/{components → src/components}/Toast/utils.d.ts +0 -0
- /package/lib/{components → src/components}/Tooltip/index.d.ts +0 -0
- /package/lib/{components → src/components}/TooltipTabstop/index.d.ts +0 -0
- /package/lib/{components → src/components}/TopBar/TopBar.d.ts +0 -0
- /package/lib/{components → src/components}/TopBar/TopBarMenu.d.ts +0 -0
- /package/lib/{components → src/components}/TopBar/TopBarTrigger.d.ts +0 -0
- /package/lib/{components → src/components}/TopBar/index.d.ts +0 -0
- /package/lib/{components → src/components}/TwoColumnPanel/ColumnGroupHeader.d.ts +0 -0
- /package/lib/{components → src/components}/TwoColumnPanel/ColumnHeader.d.ts +0 -0
- /package/lib/{components → src/components}/TwoColumnPanel/ColumnLeft.d.ts +0 -0
- /package/lib/{components → src/components}/TwoColumnPanel/ColumnList.d.ts +0 -0
- /package/lib/{components → src/components}/TwoColumnPanel/ColumnRight.d.ts +0 -0
- /package/lib/{components → src/components}/TwoColumnPanel/TwoColumnPanel.d.ts +0 -0
- /package/lib/{components → src/components}/TwoColumnPanel/index.d.ts +0 -0
- /package/lib/{components → src/components}/Workspace/index.d.ts +0 -0
- /package/lib/{constants.d.ts → src/constants.d.ts} +0 -0
- /package/lib/{contexts → src/contexts}/theme.d.ts +0 -0
- /package/lib/{index.d.ts → src/index.d.ts} +0 -0
- /package/lib/{types.d.ts → src/types.d.ts} +0 -0
- /package/lib/{utils → src/utils}/aria-isolate/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/focusable-selector/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/is-browser/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/polymorphic-type/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/query-all/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/remove-ids/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/rndid/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/setRef.d.ts +0 -0
- /package/lib/{utils → src/utils}/stylesheets/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/token-list/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/use-did-update/index.d.ts +0 -0
- /package/lib/{utils → src/utils}/useIntersectionRef.d.ts +0 -0
- /package/lib/{utils → src/utils}/useSharedRef.d.ts +0 -0
- /package/lib/{utils → src/utils}/viewport/index.d.ts +0 -0
package/lib/index.js
CHANGED
|
@@ -1756,7 +1756,7 @@ var TooltipContent = function (_a) {
|
|
|
1756
1756
|
*/
|
|
1757
1757
|
// eslint-disable-next-line react/display-name
|
|
1758
1758
|
var IconButton = React.forwardRef(function (_a, ref) {
|
|
1759
|
-
var _b = _a.as, Component = _b === void 0 ? 'button' : _b, icon = _a.icon, label = _a.label, _c = _a.tooltipPlacement, tooltipPlacement = _c === void 0 ? 'auto' : _c, tooltipVariant = _a.tooltipVariant, tooltipPortal = _a.tooltipPortal, className = _a.className, _d = _a.variant, variant = _d === void 0 ? 'secondary' : _d, disabled = _a.disabled, _e = _a.tabIndex, tabIndex = _e === void 0 ? 0 : _e, other = tslib.__rest(_a, ["as", "icon", "label", "tooltipPlacement", "tooltipVariant", "tooltipPortal", "className", "variant", "disabled", "tabIndex"]);
|
|
1759
|
+
var _b = _a.as, Component = _b === void 0 ? 'button' : _b, icon = _a.icon, label = _a.label, _c = _a.tooltipPlacement, tooltipPlacement = _c === void 0 ? 'auto' : _c, tooltipVariant = _a.tooltipVariant, tooltipPortal = _a.tooltipPortal, className = _a.className, _d = _a.variant, variant = _d === void 0 ? 'secondary' : _d, disabled = _a.disabled, _e = _a.tabIndex, tabIndex = _e === void 0 ? 0 : _e, large = _a.large, other = tslib.__rest(_a, ["as", "icon", "label", "tooltipPlacement", "tooltipVariant", "tooltipPortal", "className", "variant", "disabled", "tabIndex", "large"]);
|
|
1760
1760
|
var internalRef = React.useRef();
|
|
1761
1761
|
React.useImperativeHandle(ref, function () { return internalRef.current; });
|
|
1762
1762
|
// Configure additional properties based on the type of the Component
|
|
@@ -1779,7 +1779,8 @@ var IconButton = React.forwardRef(function (_a, ref) {
|
|
|
1779
1779
|
IconButton: true,
|
|
1780
1780
|
'IconButton--primary': variant === 'primary',
|
|
1781
1781
|
'IconButton--secondary': variant === 'secondary',
|
|
1782
|
-
'IconButton--error': variant === 'error'
|
|
1782
|
+
'IconButton--error': variant === 'error',
|
|
1783
|
+
'IconButton--large': large
|
|
1783
1784
|
}), ref: internalRef, disabled: disabled, tabIndex: disabled ? -1 : tabIndex }, accessibilityProps, other),
|
|
1784
1785
|
React__default["default"].createElement(Icon, { type: icon }),
|
|
1785
1786
|
disabled && React__default["default"].createElement(Offscreen, null, label)),
|
|
@@ -2751,7 +2752,7 @@ var Step = function (props) {
|
|
|
2751
2752
|
liProps = other;
|
|
2752
2753
|
}
|
|
2753
2754
|
return (React__default["default"].createElement("li", tslib.__assign({ className: classNames__default["default"]('Stepper__step', "Stepper__step--".concat(status), className), "aria-current": status === 'current' ? 'step' : 'false' }, liProps),
|
|
2754
|
-
React__default["default"].createElement("div", { className: "Stepper__step-line" }),
|
|
2755
|
+
React__default["default"].createElement("div", { className: classNames__default["default"]('Stepper__step-line', "Stepper__step--".concat(status, "-line")) }),
|
|
2755
2756
|
React__default["default"].createElement("div", { className: "Stepper__step-content" }, isTooltip ? (React__default["default"].createElement(TooltipTabstop, { placement: "bottom", tooltip: tooltip,
|
|
2756
2757
|
// the pseudo content (ex: "1") is conveyed
|
|
2757
2758
|
// by the list item's position in the set of
|
|
@@ -2759,9 +2760,9 @@ var Step = function (props) {
|
|
|
2759
2760
|
// it with the contents of the tooltip in the
|
|
2760
2761
|
// tab stop's accessible name.
|
|
2761
2762
|
association: "aria-labelledby", "aria-label": tooltipText },
|
|
2762
|
-
React__default["default"].createElement("div", { className: "Stepper__step-indicator" }))) : (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
2763
|
-
React__default["default"].createElement("div", { className: "Stepper__step-indicator" }),
|
|
2764
|
-
children ? (React__default["default"].createElement("div", { className: "Stepper__step-label" }, children)) : null)))));
|
|
2763
|
+
React__default["default"].createElement("div", { className: classNames__default["default"]('Stepper__step-indicator', "Stepper__step--".concat(status, "-indicator")) }, status === 'complete' && React__default["default"].createElement(Icon, { type: 'check' })))) : (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
2764
|
+
React__default["default"].createElement("div", { className: classNames__default["default"]('Stepper__step-indicator', "Stepper__step--".concat(status, "-indicator")) }, status === 'complete' && React__default["default"].createElement(Icon, { type: 'check' })),
|
|
2765
|
+
children ? (React__default["default"].createElement("div", { className: classNames__default["default"]('Stepper__step-label', "Stepper__step--".concat(status, "-label")) }, children)) : null)))));
|
|
2765
2766
|
};
|
|
2766
2767
|
Step.displayName = 'Step';
|
|
2767
2768
|
var Stepper = function (_a) {
|
|
@@ -3588,7 +3589,9 @@ var Combobox = React.forwardRef(function (_a, ref) {
|
|
|
3588
3589
|
var handleComboboxOptionClick = React.useCallback(function () {
|
|
3589
3590
|
var _a;
|
|
3590
3591
|
// maintain focus on the input
|
|
3591
|
-
(
|
|
3592
|
+
if (inputRef.current !== document.activeElement) {
|
|
3593
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
3594
|
+
}
|
|
3592
3595
|
}, []);
|
|
3593
3596
|
var handleBlur = React.useCallback(function (event) {
|
|
3594
3597
|
var _a;
|
package/lib/src/axe.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export interface IconButtonOwnProps {
|
|
|
15
15
|
tooltipVariant?: TooltipProps['variant'];
|
|
16
16
|
tooltipPortal?: TooltipProps['portal'];
|
|
17
17
|
variant?: 'primary' | 'secondary' | 'error';
|
|
18
|
+
large?: boolean;
|
|
18
19
|
}
|
|
19
20
|
type PolymorphicIconButton = Polymorphic.ForwardRefComponent<'button', IconButtonOwnProps>;
|
|
20
21
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-react",
|
|
3
|
-
"version": "6.0.0-canary.
|
|
3
|
+
"version": "6.0.0-canary.ca3aa821",
|
|
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,11 +43,17 @@
|
|
|
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/jest-dom": "^6.1.3",
|
|
47
|
+
"@testing-library/react": "11.1.2",
|
|
46
48
|
"@types/classnames": "^2.2.10",
|
|
49
|
+
"@types/enzyme-adapter-react-16": "^1.0.9",
|
|
50
|
+
"@types/jest": "^24.7.1",
|
|
51
|
+
"@types/jest-axe": "^3.5.4",
|
|
47
52
|
"@types/node": "^17.0.42",
|
|
48
53
|
"@types/react": "^18.0.12",
|
|
49
54
|
"@types/react-dom": "^18.0.5",
|
|
50
55
|
"@types/react-syntax-highlighter": "^15.5.2",
|
|
56
|
+
"@types/sinon": "^10",
|
|
51
57
|
"autoprefixer": "^9.7.6",
|
|
52
58
|
"babel-plugin-module-resolver": "^4.0.0",
|
|
53
59
|
"babel-plugin-transform-export-extensions": "^6.22.0",
|
|
@@ -85,21 +91,22 @@
|
|
|
85
91
|
"functions": 85,
|
|
86
92
|
"lines": 85,
|
|
87
93
|
"exclude": [
|
|
88
|
-
"
|
|
94
|
+
"lib",
|
|
89
95
|
"coverage",
|
|
90
96
|
"test/**/*.js"
|
|
91
97
|
]
|
|
92
98
|
},
|
|
93
99
|
"jest": {
|
|
94
100
|
"setupFilesAfterEnv": [
|
|
95
|
-
"<rootDir>__tests__/setupTests.
|
|
101
|
+
"<rootDir>__tests__/setupTests.ts"
|
|
96
102
|
],
|
|
97
103
|
"testMatch": [
|
|
98
104
|
"**/__tests__/src/**/*.js",
|
|
99
|
-
"**/__tests__/demo/**/*.js"
|
|
105
|
+
"**/__tests__/demo/**/*.js",
|
|
106
|
+
"**/src/components/**/*.test.tsx"
|
|
100
107
|
],
|
|
101
108
|
"collectCoverageFrom": [
|
|
102
|
-
"
|
|
109
|
+
"src/**/*.{ts,tsx}"
|
|
103
110
|
],
|
|
104
111
|
"moduleNameMapper": {
|
|
105
112
|
"\\.(css|less)$": "<rootDir>/__tests__/styleMock.js",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|