@coreui/react 4.2.2 → 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 +112 -8
- package/dist/components/button/CButton.d.ts +1 -1
- 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/package.json +10 -10
- package/src/components/form/CFormTextarea.tsx +2 -2
- package/src/components/form/__tests__/CFormTextarea.spec.tsx +1 -0
- package/src/components/table/CTable.tsx +1 -1
package/README.md
CHANGED
|
@@ -20,21 +20,24 @@
|
|
|
20
20
|
·
|
|
21
21
|
<a href="https://github.com/coreui/coreui-react/issues/new?template=feature_request.md">Request feature</a>
|
|
22
22
|
·
|
|
23
|
-
<a href="https://
|
|
23
|
+
<a href="https://coreui.io/blog/">Blog</a>
|
|
24
24
|
</p>
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
## Table of contents
|
|
28
28
|
|
|
29
29
|
- [Quick start](#quick-start)
|
|
30
|
+
- [Components](#components)
|
|
30
31
|
- [Status](#status)
|
|
31
|
-
- [What's included](#whats-included)
|
|
32
32
|
- [Bugs and feature requests](#bugs-and-feature-requests)
|
|
33
33
|
- [Documentation](#documentation)
|
|
34
|
+
- [Frameworks](#frameworks)
|
|
35
|
+
- [Templates](#templates)
|
|
34
36
|
- [Contributing](#contributing)
|
|
35
37
|
- [Community](#community)
|
|
36
38
|
- [Versioning](#versioning)
|
|
37
39
|
- [Creators](#creators)
|
|
40
|
+
- [Support CoreUI Development](#support-coreui-development)
|
|
38
41
|
- [Copyright and license](#copyright-and-license)
|
|
39
42
|
|
|
40
43
|
## Quick start
|
|
@@ -94,13 +97,58 @@ npm install bootstrap
|
|
|
94
97
|
import "bootstrap/dist/css/bootstrap.min.css";
|
|
95
98
|
```
|
|
96
99
|
|
|
100
|
+
## Components
|
|
101
|
+
|
|
102
|
+
- [React Accordion](https://coreui.io/react/docs/components/accordion/)
|
|
103
|
+
- [React Alert](https://coreui.io/react/docs/components/alert/)
|
|
104
|
+
- [React Avatar](https://coreui.io/react/docs/components/avatar/)
|
|
105
|
+
- [React Badge](https://coreui.io/react/docs/components/badge/)
|
|
106
|
+
- [React Breadcrumb](https://coreui.io/react/docs/components/breadcrumb/)
|
|
107
|
+
- [React Button](https://coreui.io/react/docs/components/button/)
|
|
108
|
+
- [React Button Group](https://coreui.io/react/docs/components/button-group/)
|
|
109
|
+
- [React Callout](https://coreui.io/react/docs/components/callout/)
|
|
110
|
+
- [React Card](https://coreui.io/react/docs/components/card/)
|
|
111
|
+
- [React Carousel](https://coreui.io/react/docs/components/carousel/)
|
|
112
|
+
- [React Checkbox](https://coreui.io/react/docs/forms/checkbox/)
|
|
113
|
+
- [React Close Button](https://coreui.io/react/docs/components/close-button/)
|
|
114
|
+
- [React Collapse](https://coreui.io/react/docs/components/collapse/)
|
|
115
|
+
- [React Date Picker](https://coreui.io/react/docs/forms/date-picker/) **PRO**
|
|
116
|
+
- [React Date Range Picker](https://coreui.io/react/docs/forms/date-range-picker/) **PRO**
|
|
117
|
+
- [React Dropdown](https://coreui.io/react/docs/components/dropdown/)
|
|
118
|
+
- [React Floating Labels](https://coreui.io/react/docs/forms/floating-labels/)
|
|
119
|
+
- [React Footer](https://coreui.io/react/docs/components/footer/)
|
|
120
|
+
- [React Header](https://coreui.io/react/docs/components/header/)
|
|
121
|
+
- [React Image](https://coreui.io/react/docs/components/image/)
|
|
122
|
+
- [React Input](https://coreui.io/react/docs/forms/input/)
|
|
123
|
+
- [React Input Group](https://coreui.io/react/docs/forms/input-group/)
|
|
124
|
+
- [React List Group](https://coreui.io/react/docs/components/list-group/)
|
|
125
|
+
- [React Loading Button](https://coreui.io/react/docs/components/loading-button/) **PRO**
|
|
126
|
+
- [React Modal](https://coreui.io/react/docs/components/modal/)
|
|
127
|
+
- [React Multi Select](https://coreui.io/react/docs/forms/multi-select/) **PRO**
|
|
128
|
+
- [React Navs & Tabs](https://coreui.io/react/docs/components/navs-tabs/)
|
|
129
|
+
- [React Navbar](https://coreui.io/react/docs/components/navbar/)
|
|
130
|
+
- [React Offcanvas](https://coreui.io/react/docs/components/offcanvas/)
|
|
131
|
+
- [React Pagination](https://coreui.io/react/docs/components/pagination/)
|
|
132
|
+
- [React Placeholder](https://coreui.io/react/docs/components/placeholder/)
|
|
133
|
+
- [React Popover](https://coreui.io/react/docs/components/popover/)
|
|
134
|
+
- [React Progress](https://coreui.io/react/docs/components/progress/)
|
|
135
|
+
- [React Radio](https://coreui.io/react/docs/forms/radio/)
|
|
136
|
+
- [React Range](https://coreui.io/react/docs/forms/range/)
|
|
137
|
+
- [React Select](https://coreui.io/react/docs/forms/select/)
|
|
138
|
+
- [React Sidebar](https://coreui.io/react/docs/components/sidebar/)
|
|
139
|
+
- [React Smart Pagination](https://coreui.io/react/docs/components/smart-pagination/) **PRO**
|
|
140
|
+
- [React Smart Table](https://coreui.io/react/docs/components/smart-table/) **PRO**
|
|
141
|
+
- [React Spinner](https://coreui.io/react/docs/components/spinner/)
|
|
142
|
+
- [React Switch](https://coreui.io/react/docs/forms/switch/)
|
|
143
|
+
- [React Table](https://coreui.io/react/docs/components/table/)
|
|
144
|
+
- [React Textarea](https://coreui.io/react/docs/forms/textarea/)
|
|
145
|
+
- [React Time Picker](https://coreui.io/react/docs/forms/time-picker/) **PRO**
|
|
146
|
+
- [React Toast](https://coreui.io/react/docs/components/toast/)
|
|
147
|
+
- [React Tooltip](https://coreui.io/react/docs/components/tooltip/)
|
|
148
|
+
|
|
97
149
|
## Status
|
|
98
150
|
|
|
99
|
-
[](https://github.com/coreui/coreui-react/actions?query=workflow%3AJS+Tests+branch%3Amain)
|
|
100
151
|
[](https://www.npmjs.com/package/@coreui/react)
|
|
101
|
-
[](https://david-dm.org/coreui/coreui?type=peer)
|
|
102
|
-
[](https://david-dm.org/coreui/coreui?type=dev)
|
|
103
|
-
[](https://coveralls.io/github/coreui/coreui-react?branch=v4)
|
|
104
152
|
|
|
105
153
|
## Bugs and feature requests
|
|
106
154
|
|
|
@@ -117,6 +165,24 @@ The documentation for the CoreUI & CoreUI PRO is hosted at our website [CoreUI f
|
|
|
117
165
|
3. From the root directory, run `yarn docs:dev` or `npm run docs:dev` (or a specific npm script) to rebuild distributed CSS and JavaScript files, as well as our docs assets.
|
|
118
166
|
4. Open `http://localhost:8000/` in your browser, and voilà.
|
|
119
167
|
|
|
168
|
+
## Frameworks
|
|
169
|
+
|
|
170
|
+
CoreUI supports most popular frameworks.
|
|
171
|
+
|
|
172
|
+
- [CoreUI for Angular](https://github.com/coreui/coreui-angular)
|
|
173
|
+
- [CoreUI for Bootstrap (Vanilla JS)](https://github.com/coreui/coreui)
|
|
174
|
+
- [CoreUI for React](https://github.com/coreui/coreui-react)
|
|
175
|
+
- [CoreUI for Vue](https://github.com/coreui/coreui-vue)
|
|
176
|
+
|
|
177
|
+
## Templates
|
|
178
|
+
|
|
179
|
+
Fully featured, out-of-the-box, templates for your application based on CoreUI.
|
|
180
|
+
|
|
181
|
+
- [Angular Admin Template](https://coreui.io/angular)
|
|
182
|
+
- [Bootstrap Admin Template](https://coreui.io/)
|
|
183
|
+
- [React Admin Template](https://coreui.io/react)
|
|
184
|
+
- [Vue Admin Template](https://coreui.io/vue)
|
|
185
|
+
|
|
120
186
|
## Contributing
|
|
121
187
|
|
|
122
188
|
Please read through our [contributing guidelines](https://github.com/coreui/coreui-react/blob/v4/.github/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
|
|
@@ -127,7 +193,7 @@ Editor preferences are available in the [editor config](https://github.com/coreu
|
|
|
127
193
|
|
|
128
194
|
Stay up to date on the development of CoreUI and reach out to the community with these helpful resources.
|
|
129
195
|
|
|
130
|
-
- Read and subscribe to [The Official CoreUI Blog](https://
|
|
196
|
+
- Read and subscribe to [The Official CoreUI Blog](https://coreui.io/blog/).
|
|
131
197
|
|
|
132
198
|
You can also follow [@core_ui on Twitter](https://twitter.com/core_ui).
|
|
133
199
|
|
|
@@ -152,6 +218,44 @@ See [the Releases section of our project](https://github.com/coreui/coreui-react
|
|
|
152
218
|
|
|
153
219
|
- <https://github.com/orgs/coreui/people>
|
|
154
220
|
|
|
221
|
+
## Support CoreUI Development
|
|
222
|
+
|
|
223
|
+
CoreUI is an MIT-licensed open source project and is completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing. You can support development by buying the [CoreUI PRO](https://coreui.io/pricing/) or by becoming a sponsor via [Open Collective](https://opencollective.com/coreui/).
|
|
224
|
+
|
|
225
|
+
<!--- StartOpenCollectiveBackers -->
|
|
226
|
+
|
|
227
|
+
### Platinum Sponsors
|
|
228
|
+
|
|
229
|
+
Support this project by [becoming a Platinum Sponsor](https://opencollective.com/coreui/contribute/platinum-sponsor-40959/). A large company logo will be added here with a link to your website.
|
|
230
|
+
|
|
231
|
+
<a href="https://opencollective.com/coreui/contribute/platinum-sponsor-40959/checkout"><img src="https://opencollective.com/coreui/tiers/platinum-sponsor/0/avatar.svg?avatarHeight=100"></a>
|
|
232
|
+
|
|
233
|
+
### Gold Sponsors
|
|
234
|
+
|
|
235
|
+
Support this project by [becoming a Gold Sponsor](https://opencollective.com/coreui/contribute/gold-sponsor-40960/). A big company logo will be added here with a link to your website.
|
|
236
|
+
|
|
237
|
+
<a href="https://opencollective.com/coreui/contribute/gold-sponsor-40960/checkout"><img src="https://opencollective.com/coreui/tiers/gold-sponsor/0/avatar.svg?avatarHeight=100"></a>
|
|
238
|
+
|
|
239
|
+
### Silver Sponsors
|
|
240
|
+
|
|
241
|
+
Support this project by [becoming a Silver Sponsor](https://opencollective.com/coreui/contribute/silver-sponsor-40967/). A medium company logo will be added here with a link to your website.
|
|
242
|
+
|
|
243
|
+
<a href="https://opencollective.com/coreui/contribute/silver-sponsor-40967/checkout"><img src="https://opencollective.com/coreui/tiers/gold-sponsor/0/avatar.svg?avatarHeight=100"></a>
|
|
244
|
+
|
|
245
|
+
### Bronze Sponsors
|
|
246
|
+
|
|
247
|
+
Support this project by [becoming a Bronze Sponsor](https://opencollective.com/coreui/contribute/bronze-sponsor-40966/). The company avatar will show up here with a link to your OpenCollective Profile.
|
|
248
|
+
|
|
249
|
+
<a href="https://opencollective.com/coreui/contribute/bronze-sponsor-40966/checkout"><img src="https://opencollective.com/coreui/tiers/bronze-sponsor/0/avatar.svg?avatarHeight=100"></a>
|
|
250
|
+
|
|
251
|
+
### Backers
|
|
252
|
+
|
|
253
|
+
Thanks to all the backers and sponsors! Support this project by [becoming a backer](https://opencollective.com/coreui/contribute/backer-40965/).
|
|
254
|
+
|
|
255
|
+
<a href="https://opencollective.com/coreui/contribute/backer-40965/checkout" target="_blank" rel="noopener"><img src="https://opencollective.com/coreui/backers.svg?width=890"></a>
|
|
256
|
+
|
|
257
|
+
<!--- EndOpenCollectiveBackers -->
|
|
258
|
+
|
|
155
259
|
## Copyright and license
|
|
156
260
|
|
|
157
|
-
Copyright
|
|
261
|
+
Copyright 2022 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-react/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
|
|
@@ -51,4 +51,4 @@ export interface CButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
51
51
|
*/
|
|
52
52
|
variant?: 'outline' | 'ghost';
|
|
53
53
|
}
|
|
54
|
-
export declare const CButton: React.ForwardRefExoticComponent<CButtonProps & React.RefAttributes<
|
|
54
|
+
export declare const CButton: React.ForwardRefExoticComponent<CButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
@@ -10,4 +10,4 @@ export interface CDropdownItemProps extends CLinkProps {
|
|
|
10
10
|
*/
|
|
11
11
|
component?: string | ElementType;
|
|
12
12
|
}
|
|
13
|
-
export declare const CDropdownItem: React.ForwardRefExoticComponent<CDropdownItemProps & React.RefAttributes<
|
|
13
|
+
export declare const CDropdownItem: React.ForwardRefExoticComponent<CDropdownItemProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ChangeEventHandler,
|
|
1
|
+
import React, { ChangeEventHandler, TextareaHTMLAttributes } from 'react';
|
|
2
2
|
import { CFormControlWrapperProps } from './CFormControlWrapper';
|
|
3
|
-
export interface CFormTextareaProps extends CFormControlWrapperProps,
|
|
3
|
+
export interface CFormTextareaProps extends CFormControlWrapperProps, TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
4
|
/**
|
|
5
5
|
* A string of all className you want applied to the component.
|
|
6
6
|
*/
|
|
@@ -21,4 +21,4 @@ export interface CLinkProps extends AllHTMLAttributes<HTMLElement> {
|
|
|
21
21
|
*/
|
|
22
22
|
href?: string;
|
|
23
23
|
}
|
|
24
|
-
export declare const CLink: React.ForwardRefExoticComponent<CLinkProps & React.RefAttributes<
|
|
24
|
+
export declare const CLink: React.ForwardRefExoticComponent<CLinkProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
@@ -24,4 +24,4 @@ export interface CListGroupItemProps extends HTMLAttributes<HTMLLIElement | HTML
|
|
|
24
24
|
*/
|
|
25
25
|
component?: string | ElementType;
|
|
26
26
|
}
|
|
27
|
-
export declare const CListGroupItem: React.ForwardRefExoticComponent<CListGroupItemProps & React.RefAttributes<
|
|
27
|
+
export declare const CListGroupItem: React.ForwardRefExoticComponent<CListGroupItemProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLLIElement>>;
|
|
@@ -26,4 +26,4 @@ export interface CNavLinkProps extends Omit<CLinkProps, 'idx'> {
|
|
|
26
26
|
*/
|
|
27
27
|
to?: string;
|
|
28
28
|
}
|
|
29
|
-
export declare const CNavLink: React.ForwardRefExoticComponent<CNavLinkProps & React.RefAttributes<
|
|
29
|
+
export declare const CNavLink: React.ForwardRefExoticComponent<CNavLinkProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLLIElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { TableHTMLAttributes } from 'react';
|
|
2
2
|
import { Colors } from '../Types';
|
|
3
|
-
export interface CTableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
3
|
+
export interface CTableProps extends Omit<TableHTMLAttributes<HTMLTableElement>, 'align'> {
|
|
4
4
|
/**
|
|
5
5
|
* Set the vertical aligment.
|
|
6
6
|
*/
|
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",
|
|
@@ -38,22 +38,22 @@
|
|
|
38
38
|
"@popperjs/core": "^2.11.5",
|
|
39
39
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
40
40
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
41
|
-
"@rollup/plugin-typescript": "^8.3.
|
|
41
|
+
"@rollup/plugin-typescript": "^8.3.3",
|
|
42
42
|
"@testing-library/jest-dom": "^5.16.4",
|
|
43
|
-
"@testing-library/react": "^13.
|
|
44
|
-
"@types/react": "18.0.
|
|
45
|
-
"@types/react-dom": "^18.0.
|
|
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": "^18.
|
|
50
|
-
"react-dom": "^18.
|
|
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
59
|
"react": ">=17",
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|