@coreui/react 4.2.1 → 4.2.2
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/README.md +1 -1
- package/dist/index.es.js +2665 -1878
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2660 -1873
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
- package/src/components/close-button/CCloseButton.tsx +8 -1
- package/src/components/modal/CModal.tsx +1 -1
- package/src/components/offcanvas/COffcanvas.tsx +1 -1
- package/src/components/popover/__tests__/__snapshots__/CPopover.spec.tsx.snap +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coreui/react",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "UI Components Library for React.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -36,27 +36,27 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@popperjs/core": "^2.11.5",
|
|
39
|
-
"@rollup/plugin-commonjs": "^
|
|
40
|
-
"@rollup/plugin-node-resolve": "^13.
|
|
39
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
40
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
41
41
|
"@rollup/plugin-typescript": "^8.3.1",
|
|
42
42
|
"@testing-library/jest-dom": "^5.16.4",
|
|
43
|
-
"@testing-library/react": "^
|
|
44
|
-
"@types/react": "
|
|
45
|
-
"@types/react-dom": "^
|
|
43
|
+
"@testing-library/react": "^13.2.0",
|
|
44
|
+
"@types/react": "18.0.9",
|
|
45
|
+
"@types/react-dom": "^18.0.4",
|
|
46
46
|
"@types/react-transition-group": "^4.4.4",
|
|
47
47
|
"classnames": "^2.3.1",
|
|
48
48
|
"prop-types": "^15.8.1",
|
|
49
|
-
"react": "^
|
|
50
|
-
"react-dom": "^
|
|
49
|
+
"react": "^18.1.0",
|
|
50
|
+
"react-dom": "^18.1.0",
|
|
51
51
|
"react-popper": "^2.2.5",
|
|
52
52
|
"react-transition-group": "^4.4.2",
|
|
53
|
-
"rollup": "^2.
|
|
53
|
+
"rollup": "^2.74.1",
|
|
54
54
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
55
55
|
"tslib": "^2.4.0",
|
|
56
|
-
"typescript": "^4.6.
|
|
56
|
+
"typescript": "^4.6.4"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"react": "
|
|
60
|
-
"react-dom": "
|
|
59
|
+
"react": ">=17",
|
|
60
|
+
"react-dom": ">=17"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -29,7 +29,14 @@ export const CCloseButton = forwardRef<HTMLButtonElement, CCloseButtonProps>(
|
|
|
29
29
|
className,
|
|
30
30
|
)
|
|
31
31
|
return (
|
|
32
|
-
<button
|
|
32
|
+
<button
|
|
33
|
+
type="button"
|
|
34
|
+
className={_className}
|
|
35
|
+
aria-label="Close"
|
|
36
|
+
disabled={disabled}
|
|
37
|
+
{...rest}
|
|
38
|
+
ref={ref}
|
|
39
|
+
/>
|
|
33
40
|
)
|
|
34
41
|
},
|
|
35
42
|
)
|
|
@@ -107,7 +107,7 @@ export const COffcanvas = forwardRef<HTMLDivElement, COffcanvasProps>(
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
const handleKeyDown = useCallback(
|
|
110
|
-
(event) => {
|
|
110
|
+
(event: React.KeyboardEvent<HTMLDivElement>) => {
|
|
111
111
|
if (event.key === 'Escape' && keyboard) {
|
|
112
112
|
return handleDismiss()
|
|
113
113
|
}
|