@coreui/react 4.2.0 → 4.2.3
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 +113 -9
- package/dist/components/button/CButton.d.ts +1 -1
- package/dist/components/card/CCardImage.d.ts +2 -2
- package/dist/components/dropdown/CDropdownItem.d.ts +1 -1
- package/dist/components/form/CFormTextarea.d.ts +2 -2
- package/dist/components/link/CLink.d.ts +1 -1
- package/dist/components/list-group/CListGroupItem.d.ts +1 -1
- package/dist/components/nav/CNavLink.d.ts +1 -1
- package/dist/components/table/CTable.d.ts +1 -1
- package/dist/index.es.js +2666 -1879
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2661 -1874
- package/dist/index.js.map +1 -1
- package/package.json +14 -14
- package/src/components/card/CCardImage.tsx +2 -2
- package/src/components/close-button/CCloseButton.tsx +8 -1
- package/src/components/form/CFormTextarea.tsx +3 -3
- package/src/components/form/__tests__/CFormTextarea.spec.tsx +1 -0
- 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/src/components/table/CTable.tsx +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.3",
|
|
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.
|
|
41
|
-
"@rollup/plugin-typescript": "^8.3.
|
|
39
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
40
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
41
|
+
"@rollup/plugin-typescript": "^8.3.3",
|
|
42
42
|
"@testing-library/jest-dom": "^5.16.4",
|
|
43
|
-
"@testing-library/react": "^
|
|
44
|
-
"@types/react": "
|
|
45
|
-
"@types/react-dom": "^
|
|
46
|
-
"@types/react-transition-group": "^4.4.
|
|
43
|
+
"@testing-library/react": "^13.3.0",
|
|
44
|
+
"@types/react": "18.0.14",
|
|
45
|
+
"@types/react-dom": "^18.0.5",
|
|
46
|
+
"@types/react-transition-group": "^4.4.5",
|
|
47
47
|
"classnames": "^2.3.1",
|
|
48
48
|
"prop-types": "^15.8.1",
|
|
49
|
-
"react": "^
|
|
50
|
-
"react-dom": "^
|
|
49
|
+
"react": "^18.2.0",
|
|
50
|
+
"react-dom": "^18.2.0",
|
|
51
51
|
"react-popper": "^2.2.5",
|
|
52
52
|
"react-transition-group": "^4.4.2",
|
|
53
|
-
"rollup": "^2.
|
|
53
|
+
"rollup": "^2.75.7",
|
|
54
54
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
55
55
|
"tslib": "^2.4.0",
|
|
56
|
-
"typescript": "^4.
|
|
56
|
+
"typescript": "^4.7.4"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"react": "
|
|
60
|
-
"react-dom": "
|
|
59
|
+
"react": ">=17",
|
|
60
|
+
"react-dom": ">=17"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, { ElementType, forwardRef,
|
|
1
|
+
import React, { ElementType, forwardRef, ImgHTMLAttributes } from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import classNames from 'classnames'
|
|
4
4
|
|
|
5
5
|
export interface CCardImageProps
|
|
6
|
-
extends
|
|
6
|
+
extends ImgHTMLAttributes<HTMLImageElement | HTMLOrSVGElement | HTMLOrSVGImageElement> {
|
|
7
7
|
/**
|
|
8
8
|
* A string of all className you want applied to the base component.
|
|
9
9
|
*/
|
|
@@ -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
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ChangeEventHandler, forwardRef,
|
|
1
|
+
import React, { ChangeEventHandler, forwardRef, TextareaHTMLAttributes } from 'react'
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames'
|
|
4
4
|
import PropTypes from 'prop-types'
|
|
@@ -7,7 +7,7 @@ import { CFormControlWrapper, CFormControlWrapperProps } from './CFormControlWra
|
|
|
7
7
|
|
|
8
8
|
export interface CFormTextareaProps
|
|
9
9
|
extends CFormControlWrapperProps,
|
|
10
|
-
|
|
10
|
+
TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
11
11
|
/**
|
|
12
12
|
* A string of all className you want applied to the component.
|
|
13
13
|
*/
|
|
@@ -78,7 +78,7 @@ export const CFormTextarea = forwardRef<HTMLTextAreaElement, CFormTextareaProps>
|
|
|
78
78
|
tooltipFeedback={tooltipFeedback}
|
|
79
79
|
valid={valid}
|
|
80
80
|
>
|
|
81
|
-
<textarea className={_className} {...rest} ref={ref}>
|
|
81
|
+
<textarea className={_className} id={id} {...rest} ref={ref}>
|
|
82
82
|
{children}
|
|
83
83
|
</textarea>
|
|
84
84
|
</CFormControlWrapper>
|
|
@@ -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
|
}
|
|
@@ -4,7 +4,7 @@ import classNames from 'classnames'
|
|
|
4
4
|
|
|
5
5
|
import { Colors, colorPropType } from '../Types'
|
|
6
6
|
|
|
7
|
-
export interface CTableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
7
|
+
export interface CTableProps extends Omit<TableHTMLAttributes<HTMLTableElement>, 'align'> {
|
|
8
8
|
/**
|
|
9
9
|
* Set the vertical aligment.
|
|
10
10
|
*/
|