@coreui/react-pro 5.0.0-rc.3 → 5.0.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/README.md +1 -1
- package/dist/cjs/components/badge/CBadge.d.ts +1 -1
- package/dist/cjs/components/calendar/CCalendar.d.ts +3 -3
- package/dist/cjs/components/card/CCard.d.ts +1 -1
- package/dist/cjs/components/date-range-picker/CDateRangePicker.d.ts +3 -3
- package/dist/cjs/components/dropdown/CDropdownToggle.d.ts +1 -1
- package/dist/cjs/components/nav/CNavGroup.d.ts +1 -1
- package/dist/cjs/components/nav/CNavGroupItems.d.ts +1 -1
- package/dist/cjs/components/nav/CNavItem.d.ts +1 -1
- package/dist/cjs/components/sidebar/CSidebarBrand.d.ts +1 -1
- package/dist/cjs/components/sidebar/CSidebarNav.d.ts +1 -1
- package/dist/cjs/components/time-picker/CTimePicker.d.ts +3 -3
- package/dist/esm/components/badge/CBadge.d.ts +1 -1
- package/dist/esm/components/calendar/CCalendar.d.ts +3 -3
- package/dist/esm/components/card/CCard.d.ts +1 -1
- package/dist/esm/components/date-range-picker/CDateRangePicker.d.ts +3 -3
- package/dist/esm/components/dropdown/CDropdownToggle.d.ts +1 -1
- package/dist/esm/components/nav/CNavGroup.d.ts +1 -1
- package/dist/esm/components/nav/CNavGroupItems.d.ts +1 -1
- package/dist/esm/components/nav/CNavItem.d.ts +1 -1
- package/dist/esm/components/sidebar/CSidebarBrand.d.ts +1 -1
- package/dist/esm/components/sidebar/CSidebarNav.d.ts +1 -1
- package/dist/esm/components/time-picker/CTimePicker.d.ts +3 -3
- package/package.json +4 -4
- package/src/components/badge/CBadge.tsx +1 -1
- package/src/components/calendar/CCalendar.tsx +3 -3
- package/src/components/card/CCard.tsx +1 -1
- package/src/components/date-range-picker/CDateRangePicker.tsx +3 -3
- package/src/components/dropdown/CDropdownToggle.tsx +1 -1
- package/src/components/nav/CNavGroup.tsx +1 -1
- package/src/components/nav/CNavGroupItems.tsx +1 -1
- package/src/components/nav/CNavItem.tsx +1 -1
- package/src/components/sidebar/CSidebarBrand.tsx +1 -1
- package/src/components/sidebar/CSidebarNav.tsx +1 -1
- package/src/components/time-picker/CTimePicker.tsx +3 -3
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
Several quick start options are available:
|
|
44
44
|
|
|
45
|
-
- [Download the latest release](https://github.com/coreui/coreui-react-pro/archive/v5.0.0
|
|
45
|
+
- [Download the latest release](https://github.com/coreui/coreui-react-pro/archive/v5.0.0.zip)
|
|
46
46
|
- Clone the repo: `git clone https://github.com/coreui/coreui-react.git`
|
|
47
47
|
- Install with [npm](https://www.npmjs.com/): `npm install @coreui/react`
|
|
48
48
|
- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/react`
|
|
@@ -34,7 +34,7 @@ export interface CBadgeProps extends HTMLAttributes<HTMLDivElement | HTMLSpanEle
|
|
|
34
34
|
* Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility.
|
|
35
35
|
*
|
|
36
36
|
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
|
|
37
|
-
* @since 5.0.0
|
|
37
|
+
* @since 5.0.0
|
|
38
38
|
*/
|
|
39
39
|
textBgColor?: Colors;
|
|
40
40
|
/**
|
|
@@ -99,7 +99,7 @@ export interface CCalendarProps {
|
|
|
99
99
|
/**
|
|
100
100
|
* Set whether to display week numbers in the calendar.
|
|
101
101
|
*
|
|
102
|
-
* @since 5.0.0
|
|
102
|
+
* @since 5.0.0
|
|
103
103
|
*/
|
|
104
104
|
showWeekNumber?: boolean;
|
|
105
105
|
/**
|
|
@@ -109,7 +109,7 @@ export interface CCalendarProps {
|
|
|
109
109
|
/**
|
|
110
110
|
* Specify the type of date selection as day, week, month, or year.
|
|
111
111
|
*
|
|
112
|
-
* @since 5.0.0
|
|
112
|
+
* @since 5.0.0
|
|
113
113
|
*/
|
|
114
114
|
selectionType?: 'day' | 'week' | 'month' | 'year';
|
|
115
115
|
/**
|
|
@@ -125,7 +125,7 @@ export interface CCalendarProps {
|
|
|
125
125
|
/**
|
|
126
126
|
* Label displayed over week numbers in the calendar.
|
|
127
127
|
*
|
|
128
|
-
* @since 5.0.0
|
|
128
|
+
* @since 5.0.0
|
|
129
129
|
*/
|
|
130
130
|
weekNumbersLabel?: string;
|
|
131
131
|
/**
|
|
@@ -21,7 +21,7 @@ export interface CCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
21
21
|
* Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility.
|
|
22
22
|
*
|
|
23
23
|
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
|
|
24
|
-
* @since 5.0.0
|
|
24
|
+
* @since 5.0.0
|
|
25
25
|
*/
|
|
26
26
|
textBgColor?: Colors;
|
|
27
27
|
}
|
|
@@ -85,19 +85,19 @@ export interface CDateRangePickerProps extends Omit<CFormControlWrapperProps, 'f
|
|
|
85
85
|
/**
|
|
86
86
|
* Custom function to format the selected date into a string according to a custom format.
|
|
87
87
|
*
|
|
88
|
-
* @since
|
|
88
|
+
* @since 5.0.0
|
|
89
89
|
*/
|
|
90
90
|
inputDateFormat?: (date: Date) => string;
|
|
91
91
|
/**
|
|
92
92
|
* Custom function to parse the input value into a valid Date object.
|
|
93
93
|
*
|
|
94
|
-
* @since
|
|
94
|
+
* @since 5.0.0
|
|
95
95
|
*/
|
|
96
96
|
inputDateParse?: (date: string | Date) => Date;
|
|
97
97
|
/**
|
|
98
98
|
* Defines the delay (in milliseconds) for the input field's onChange event.
|
|
99
99
|
*
|
|
100
|
-
* @since
|
|
100
|
+
* @since 5.0.0
|
|
101
101
|
*/
|
|
102
102
|
inputOnChangeDelay?: number;
|
|
103
103
|
/**
|
|
@@ -13,7 +13,7 @@ export interface CDropdownToggleProps extends Omit<CButtonProps, 'type'> {
|
|
|
13
13
|
/**
|
|
14
14
|
* If a dropdown `variant` is set to `nav-item` then render the toggler as a link instead of a button.
|
|
15
15
|
*
|
|
16
|
-
* @since
|
|
16
|
+
* @since 5.0.0
|
|
17
17
|
*/
|
|
18
18
|
navLink?: boolean;
|
|
19
19
|
/**
|
|
@@ -59,7 +59,7 @@ export interface CTimePickerProps extends Omit<CFormControlWrapperProps, 'floati
|
|
|
59
59
|
/**
|
|
60
60
|
* Specify a list of available hours using an array, or customize the filtering of hours through a function.
|
|
61
61
|
*
|
|
62
|
-
* @since 5.0.0
|
|
62
|
+
* @since 5.0.0
|
|
63
63
|
*/
|
|
64
64
|
hours?: number[] | ((hour: number) => number[]);
|
|
65
65
|
/**
|
|
@@ -69,7 +69,7 @@ export interface CTimePickerProps extends Omit<CFormControlWrapperProps, 'floati
|
|
|
69
69
|
/**
|
|
70
70
|
* Defines the delay (in milliseconds) for the input field's onChange event.
|
|
71
71
|
*
|
|
72
|
-
* @since
|
|
72
|
+
* @since 5.0.0
|
|
73
73
|
*/
|
|
74
74
|
inputOnChangeDelay?: number;
|
|
75
75
|
/**
|
|
@@ -83,7 +83,7 @@ export interface CTimePickerProps extends Omit<CFormControlWrapperProps, 'floati
|
|
|
83
83
|
/**
|
|
84
84
|
* Toggle the display of minutes, specify a list of available minutes using an array, or customize the filtering of minutes through a function.
|
|
85
85
|
*
|
|
86
|
-
* @since 5.0.0
|
|
86
|
+
* @since 5.0.0
|
|
87
87
|
*/
|
|
88
88
|
minutes?: boolean | number[] | ((minute: number) => number[]);
|
|
89
89
|
/**
|
|
@@ -34,7 +34,7 @@ export interface CBadgeProps extends HTMLAttributes<HTMLDivElement | HTMLSpanEle
|
|
|
34
34
|
* Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility.
|
|
35
35
|
*
|
|
36
36
|
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
|
|
37
|
-
* @since 5.0.0
|
|
37
|
+
* @since 5.0.0
|
|
38
38
|
*/
|
|
39
39
|
textBgColor?: Colors;
|
|
40
40
|
/**
|
|
@@ -99,7 +99,7 @@ export interface CCalendarProps {
|
|
|
99
99
|
/**
|
|
100
100
|
* Set whether to display week numbers in the calendar.
|
|
101
101
|
*
|
|
102
|
-
* @since 5.0.0
|
|
102
|
+
* @since 5.0.0
|
|
103
103
|
*/
|
|
104
104
|
showWeekNumber?: boolean;
|
|
105
105
|
/**
|
|
@@ -109,7 +109,7 @@ export interface CCalendarProps {
|
|
|
109
109
|
/**
|
|
110
110
|
* Specify the type of date selection as day, week, month, or year.
|
|
111
111
|
*
|
|
112
|
-
* @since 5.0.0
|
|
112
|
+
* @since 5.0.0
|
|
113
113
|
*/
|
|
114
114
|
selectionType?: 'day' | 'week' | 'month' | 'year';
|
|
115
115
|
/**
|
|
@@ -125,7 +125,7 @@ export interface CCalendarProps {
|
|
|
125
125
|
/**
|
|
126
126
|
* Label displayed over week numbers in the calendar.
|
|
127
127
|
*
|
|
128
|
-
* @since 5.0.0
|
|
128
|
+
* @since 5.0.0
|
|
129
129
|
*/
|
|
130
130
|
weekNumbersLabel?: string;
|
|
131
131
|
/**
|
|
@@ -21,7 +21,7 @@ export interface CCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
21
21
|
* Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility.
|
|
22
22
|
*
|
|
23
23
|
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
|
|
24
|
-
* @since 5.0.0
|
|
24
|
+
* @since 5.0.0
|
|
25
25
|
*/
|
|
26
26
|
textBgColor?: Colors;
|
|
27
27
|
}
|
|
@@ -85,19 +85,19 @@ export interface CDateRangePickerProps extends Omit<CFormControlWrapperProps, 'f
|
|
|
85
85
|
/**
|
|
86
86
|
* Custom function to format the selected date into a string according to a custom format.
|
|
87
87
|
*
|
|
88
|
-
* @since
|
|
88
|
+
* @since 5.0.0
|
|
89
89
|
*/
|
|
90
90
|
inputDateFormat?: (date: Date) => string;
|
|
91
91
|
/**
|
|
92
92
|
* Custom function to parse the input value into a valid Date object.
|
|
93
93
|
*
|
|
94
|
-
* @since
|
|
94
|
+
* @since 5.0.0
|
|
95
95
|
*/
|
|
96
96
|
inputDateParse?: (date: string | Date) => Date;
|
|
97
97
|
/**
|
|
98
98
|
* Defines the delay (in milliseconds) for the input field's onChange event.
|
|
99
99
|
*
|
|
100
|
-
* @since
|
|
100
|
+
* @since 5.0.0
|
|
101
101
|
*/
|
|
102
102
|
inputOnChangeDelay?: number;
|
|
103
103
|
/**
|
|
@@ -13,7 +13,7 @@ export interface CDropdownToggleProps extends Omit<CButtonProps, 'type'> {
|
|
|
13
13
|
/**
|
|
14
14
|
* If a dropdown `variant` is set to `nav-item` then render the toggler as a link instead of a button.
|
|
15
15
|
*
|
|
16
|
-
* @since
|
|
16
|
+
* @since 5.0.0
|
|
17
17
|
*/
|
|
18
18
|
navLink?: boolean;
|
|
19
19
|
/**
|
|
@@ -59,7 +59,7 @@ export interface CTimePickerProps extends Omit<CFormControlWrapperProps, 'floati
|
|
|
59
59
|
/**
|
|
60
60
|
* Specify a list of available hours using an array, or customize the filtering of hours through a function.
|
|
61
61
|
*
|
|
62
|
-
* @since 5.0.0
|
|
62
|
+
* @since 5.0.0
|
|
63
63
|
*/
|
|
64
64
|
hours?: number[] | ((hour: number) => number[]);
|
|
65
65
|
/**
|
|
@@ -69,7 +69,7 @@ export interface CTimePickerProps extends Omit<CFormControlWrapperProps, 'floati
|
|
|
69
69
|
/**
|
|
70
70
|
* Defines the delay (in milliseconds) for the input field's onChange event.
|
|
71
71
|
*
|
|
72
|
-
* @since
|
|
72
|
+
* @since 5.0.0
|
|
73
73
|
*/
|
|
74
74
|
inputOnChangeDelay?: number;
|
|
75
75
|
/**
|
|
@@ -83,7 +83,7 @@ export interface CTimePickerProps extends Omit<CFormControlWrapperProps, 'floati
|
|
|
83
83
|
/**
|
|
84
84
|
* Toggle the display of minutes, specify a list of available minutes using an array, or customize the filtering of minutes through a function.
|
|
85
85
|
*
|
|
86
|
-
* @since 5.0.0
|
|
86
|
+
* @since 5.0.0
|
|
87
87
|
*/
|
|
88
88
|
minutes?: boolean | number[] | ((minute: number) => number[]);
|
|
89
89
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coreui/react-pro",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "UI Components Library for React.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"test:update": "jest --coverage --updateSnapshot"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@coreui/coreui-pro": "^5.0.0
|
|
44
|
+
"@coreui/coreui-pro": "^5.0.0",
|
|
45
45
|
"@popperjs/core": "^2.11.8",
|
|
46
46
|
"prop-types": "^15.8.1"
|
|
47
47
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@testing-library/jest-dom": "^6.4.2",
|
|
53
53
|
"@testing-library/react": "^14.2.2",
|
|
54
54
|
"@types/jest": "^29.5.12",
|
|
55
|
-
"@types/react": "18.2.
|
|
55
|
+
"@types/react": "18.2.73",
|
|
56
56
|
"@types/react-dom": "^18.2.22",
|
|
57
57
|
"@types/react-transition-group": "^4.4.10",
|
|
58
58
|
"classnames": "^2.5.1",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"react-device-detect": "^2.2.3",
|
|
64
64
|
"react-dom": "^18.2.0",
|
|
65
65
|
"react-transition-group": "^4.4.5",
|
|
66
|
-
"rollup": "^4.13.
|
|
66
|
+
"rollup": "^4.13.1",
|
|
67
67
|
"ts-jest": "^29.1.2",
|
|
68
68
|
"tslib": "^2.6.2",
|
|
69
69
|
"typescript": "^5.4.3"
|
|
@@ -39,7 +39,7 @@ export interface CBadgeProps extends HTMLAttributes<HTMLDivElement | HTMLSpanEle
|
|
|
39
39
|
* Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility.
|
|
40
40
|
*
|
|
41
41
|
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
|
|
42
|
-
* @since 5.0.0
|
|
42
|
+
* @since 5.0.0
|
|
43
43
|
*/
|
|
44
44
|
textBgColor?: Colors
|
|
45
45
|
/**
|
|
@@ -122,7 +122,7 @@ export interface CCalendarProps {
|
|
|
122
122
|
/**
|
|
123
123
|
* Set whether to display week numbers in the calendar.
|
|
124
124
|
*
|
|
125
|
-
* @since 5.0.0
|
|
125
|
+
* @since 5.0.0
|
|
126
126
|
*/
|
|
127
127
|
showWeekNumber?: boolean
|
|
128
128
|
/**
|
|
@@ -132,7 +132,7 @@ export interface CCalendarProps {
|
|
|
132
132
|
/**
|
|
133
133
|
* Specify the type of date selection as day, week, month, or year.
|
|
134
134
|
*
|
|
135
|
-
* @since 5.0.0
|
|
135
|
+
* @since 5.0.0
|
|
136
136
|
*/
|
|
137
137
|
selectionType?: 'day' | 'week' | 'month' | 'year'
|
|
138
138
|
/**
|
|
@@ -148,7 +148,7 @@ export interface CCalendarProps {
|
|
|
148
148
|
/**
|
|
149
149
|
* Label displayed over week numbers in the calendar.
|
|
150
150
|
*
|
|
151
|
-
* @since 5.0.0
|
|
151
|
+
* @since 5.0.0
|
|
152
152
|
*/
|
|
153
153
|
weekNumbersLabel?: string
|
|
154
154
|
/**
|
|
@@ -26,7 +26,7 @@ export interface CCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
26
26
|
* Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility.
|
|
27
27
|
*
|
|
28
28
|
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
|
|
29
|
-
* @since 5.0.0
|
|
29
|
+
* @since 5.0.0
|
|
30
30
|
*/
|
|
31
31
|
textBgColor?: Colors
|
|
32
32
|
}
|
|
@@ -99,19 +99,19 @@ export interface CDateRangePickerProps
|
|
|
99
99
|
/**
|
|
100
100
|
* Custom function to format the selected date into a string according to a custom format.
|
|
101
101
|
*
|
|
102
|
-
* @since
|
|
102
|
+
* @since 5.0.0
|
|
103
103
|
*/
|
|
104
104
|
inputDateFormat?: (date: Date) => string
|
|
105
105
|
/**
|
|
106
106
|
* Custom function to parse the input value into a valid Date object.
|
|
107
107
|
*
|
|
108
|
-
* @since
|
|
108
|
+
* @since 5.0.0
|
|
109
109
|
*/
|
|
110
110
|
inputDateParse?: (date: string | Date) => Date
|
|
111
111
|
/**
|
|
112
112
|
* Defines the delay (in milliseconds) for the input field's onChange event.
|
|
113
113
|
*
|
|
114
|
-
* @since
|
|
114
|
+
* @since 5.0.0
|
|
115
115
|
*/
|
|
116
116
|
inputOnChangeDelay?: number
|
|
117
117
|
/**
|
|
@@ -21,7 +21,7 @@ export interface CDropdownToggleProps extends Omit<CButtonProps, 'type'> {
|
|
|
21
21
|
/**
|
|
22
22
|
* If a dropdown `variant` is set to `nav-item` then render the toggler as a link instead of a button.
|
|
23
23
|
*
|
|
24
|
-
* @since
|
|
24
|
+
* @since 5.0.0
|
|
25
25
|
*/
|
|
26
26
|
navLink?: boolean
|
|
27
27
|
/**
|
|
@@ -81,7 +81,7 @@ export interface CTimePickerProps
|
|
|
81
81
|
/**
|
|
82
82
|
* Specify a list of available hours using an array, or customize the filtering of hours through a function.
|
|
83
83
|
*
|
|
84
|
-
* @since 5.0.0
|
|
84
|
+
* @since 5.0.0
|
|
85
85
|
*/
|
|
86
86
|
hours?: number[] | ((hour: number) => number[])
|
|
87
87
|
/**
|
|
@@ -91,7 +91,7 @@ export interface CTimePickerProps
|
|
|
91
91
|
/**
|
|
92
92
|
* Defines the delay (in milliseconds) for the input field's onChange event.
|
|
93
93
|
*
|
|
94
|
-
* @since
|
|
94
|
+
* @since 5.0.0
|
|
95
95
|
*/
|
|
96
96
|
inputOnChangeDelay?: number
|
|
97
97
|
/**
|
|
@@ -105,7 +105,7 @@ export interface CTimePickerProps
|
|
|
105
105
|
/**
|
|
106
106
|
* Toggle the display of minutes, specify a list of available minutes using an array, or customize the filtering of minutes through a function.
|
|
107
107
|
*
|
|
108
|
-
* @since 5.0.0
|
|
108
|
+
* @since 5.0.0
|
|
109
109
|
*/
|
|
110
110
|
minutes?: boolean | number[] | ((minute: number) => number[])
|
|
111
111
|
/**
|