@coreui/react-pro 4.12.0-rc.0 → 4.12.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/components/dropdown/CDropdown.d.ts +1 -1
- package/dist/components/multi-select/CMultiSelect.d.ts +2 -2
- package/dist/components/popover/CPopover.d.ts +3 -3
- package/dist/components/tooltip/CTooltip.d.ts +3 -3
- package/dist/index.es.js +58 -49
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +58 -49
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
- package/src/components/date-range-picker/CDateRangePicker.tsx +6 -3
- package/src/components/dropdown/CDropdown.tsx +1 -1
- package/src/components/multi-select/CMultiSelect.tsx +2 -2
- package/src/components/popover/CPopover.tsx +3 -3
- package/src/components/time-picker/CTimePicker.tsx +5 -2
- package/src/components/tooltip/CTooltip.tsx +3 -3
- package/src/utils/getRTLPlacement.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coreui/react-pro",
|
|
3
|
-
"version": "4.12.0
|
|
3
|
+
"version": "4.12.0",
|
|
4
4
|
"description": "UI Components Library for React.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -40,27 +40,27 @@
|
|
|
40
40
|
"@coreui/icons": "^3.0.1",
|
|
41
41
|
"@coreui/icons-react": "^2.1.0",
|
|
42
42
|
"@popperjs/core": "^2.11.8",
|
|
43
|
-
"@rollup/plugin-commonjs": "^25.0.
|
|
43
|
+
"@rollup/plugin-commonjs": "^25.0.2",
|
|
44
44
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
45
|
-
"@rollup/plugin-typescript": "^11.1.
|
|
45
|
+
"@rollup/plugin-typescript": "^11.1.2",
|
|
46
46
|
"@testing-library/jest-dom": "^5.16.5",
|
|
47
47
|
"@testing-library/react": "^14.0.0",
|
|
48
|
-
"@types/react": "18.2.
|
|
49
|
-
"@types/react-dom": "^18.2.
|
|
48
|
+
"@types/react": "18.2.14",
|
|
49
|
+
"@types/react-dom": "^18.2.6",
|
|
50
50
|
"@types/react-transition-group": "^4.4.6",
|
|
51
51
|
"classnames": "^2.3.2",
|
|
52
52
|
"date-fns": "^2.30.0",
|
|
53
|
-
"jest": "^29.
|
|
54
|
-
"jest-environment-jsdom": "^29.
|
|
53
|
+
"jest": "^29.6.1",
|
|
54
|
+
"jest-environment-jsdom": "^29.6.1",
|
|
55
55
|
"prop-types": "^15.8.1",
|
|
56
56
|
"react": "^18.2.0",
|
|
57
57
|
"react-device-detect": "^2.2.3",
|
|
58
58
|
"react-dom": "^18.2.0",
|
|
59
59
|
"react-popper": "^2.3.0",
|
|
60
60
|
"react-transition-group": "^4.4.5",
|
|
61
|
-
"rollup": "^3.
|
|
62
|
-
"ts-jest": "^29.1.
|
|
63
|
-
"tslib": "^2.
|
|
61
|
+
"rollup": "^3.26.2",
|
|
62
|
+
"ts-jest": "^29.1.1",
|
|
63
|
+
"tslib": "^2.6.0",
|
|
64
64
|
"typescript": "^4.9.5"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
@@ -403,13 +403,16 @@ export const CDateRangePicker = forwardRef<HTMLDivElement | HTMLLIElement, CDate
|
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
const InputGroup = () => (
|
|
406
|
-
<div
|
|
406
|
+
<div
|
|
407
|
+
className={classNames('input-group', 'picker-input-group', {
|
|
408
|
+
[`input-group-${size}`]: size,
|
|
409
|
+
})}
|
|
410
|
+
>
|
|
407
411
|
<input
|
|
408
412
|
autoComplete="off"
|
|
409
413
|
className={classNames('form-control date-picker-input', {
|
|
410
414
|
hover: inputStartHoverValue,
|
|
411
415
|
})}
|
|
412
|
-
// delay={true}
|
|
413
416
|
disabled={disabled}
|
|
414
417
|
{...(id && { name: range ? `${id}-start-date` : `${id}-date` })}
|
|
415
418
|
placeholder={Array.isArray(placeholder) ? placeholder[0] : placeholder}
|
|
@@ -436,7 +439,7 @@ export const CDateRangePicker = forwardRef<HTMLDivElement | HTMLLIElement, CDate
|
|
|
436
439
|
className={classNames('form-control date-picker-input', {
|
|
437
440
|
hover: inputEndHoverValue,
|
|
438
441
|
})}
|
|
439
|
-
|
|
442
|
+
|
|
440
443
|
disabled={disabled}
|
|
441
444
|
{...(id && { name: `${id}-end-date` })}
|
|
442
445
|
placeholder={placeholder[1]}
|
|
@@ -102,13 +102,13 @@ export interface CMultiSelectProps
|
|
|
102
102
|
/**
|
|
103
103
|
* Custom template for options.
|
|
104
104
|
*
|
|
105
|
-
* @since 4.12.0
|
|
105
|
+
* @since 4.12.0
|
|
106
106
|
*/
|
|
107
107
|
optionsTemplate?: (option: Option) => ReactNode
|
|
108
108
|
/**
|
|
109
109
|
* Custom template for options groups.
|
|
110
110
|
*
|
|
111
|
-
* @since 4.12.0
|
|
111
|
+
* @since 4.12.0
|
|
112
112
|
*/
|
|
113
113
|
optionsGroupsTemplate?: (option: OptionsGroup) => ReactNode
|
|
114
114
|
/**
|
|
@@ -13,7 +13,7 @@ export interface CPopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'tit
|
|
|
13
13
|
/**
|
|
14
14
|
* Apply a CSS fade transition to the popover.
|
|
15
15
|
*
|
|
16
|
-
* @since 4.9.0
|
|
16
|
+
* @since 4.9.0
|
|
17
17
|
*/
|
|
18
18
|
animation?: boolean
|
|
19
19
|
/**
|
|
@@ -31,13 +31,13 @@ export interface CPopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'tit
|
|
|
31
31
|
/**
|
|
32
32
|
* The delay for displaying and hiding the popover (in milliseconds). When a numerical value is provided, the delay applies to both the hide and show actions. The object structure for specifying the delay is as follows: delay: `{ 'show': 500, 'hide': 100 }`.
|
|
33
33
|
*
|
|
34
|
-
* @since 4.9.0
|
|
34
|
+
* @since 4.9.0
|
|
35
35
|
*/
|
|
36
36
|
delay?: number | { show: number; hide: number }
|
|
37
37
|
/**
|
|
38
38
|
* Specify the desired order of fallback placements by providing a list of placements as an array. The placements should be prioritized based on preference.
|
|
39
39
|
*
|
|
40
|
-
* @since 4.9.0
|
|
40
|
+
* @since 4.9.0
|
|
41
41
|
*/
|
|
42
42
|
fallbackPlacements?: Placements | Placements[]
|
|
43
43
|
/**
|
|
@@ -272,11 +272,14 @@ export const CTimePicker = forwardRef<HTMLDivElement | HTMLLIElement, CTimePicke
|
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
const InputGroup = () => (
|
|
275
|
-
<div
|
|
275
|
+
<div
|
|
276
|
+
className={classNames('input-group', 'picker-input-group', {
|
|
277
|
+
[`input-group-${size}`]: size,
|
|
278
|
+
})}
|
|
279
|
+
>
|
|
276
280
|
<input
|
|
277
281
|
autoComplete="off"
|
|
278
282
|
className="form-control"
|
|
279
|
-
// delay={true}
|
|
280
283
|
disabled={disabled}
|
|
281
284
|
onChange={(event) =>
|
|
282
285
|
isValidTime(event.target.value) && setDate(convertTimeToDate(event.target.value))
|
|
@@ -13,7 +13,7 @@ export interface CTooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'con
|
|
|
13
13
|
/**
|
|
14
14
|
* Apply a CSS fade transition to the tooltip.
|
|
15
15
|
*
|
|
16
|
-
* @since 4.9.0
|
|
16
|
+
* @since 4.9.0
|
|
17
17
|
*/
|
|
18
18
|
animation?: boolean
|
|
19
19
|
/**
|
|
@@ -27,13 +27,13 @@ export interface CTooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'con
|
|
|
27
27
|
/**
|
|
28
28
|
* The delay for displaying and hiding the tooltip (in milliseconds). When a numerical value is provided, the delay applies to both the hide and show actions. The object structure for specifying the delay is as follows: delay: `{ 'show': 500, 'hide': 100 }`.
|
|
29
29
|
*
|
|
30
|
-
* @since 4.9.0
|
|
30
|
+
* @since 4.9.0
|
|
31
31
|
*/
|
|
32
32
|
delay?: number | { show: number; hide: number }
|
|
33
33
|
/**
|
|
34
34
|
* Specify the desired order of fallback placements by providing a list of placements as an array. The placements should be prioritized based on preference.
|
|
35
35
|
*
|
|
36
|
-
* @since 4.9.0
|
|
36
|
+
* @since 4.9.0
|
|
37
37
|
*/
|
|
38
38
|
fallbackPlacements?: Placements | Placements[]
|
|
39
39
|
/**
|