@coreui/react 4.9.0-rc.0 → 5.0.0-alpha.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/accordion/CAccordionCollapse.d.ts +3 -0
- package/dist/components/dropdown/CDropdown.d.ts +1 -1
- package/dist/components/dropdown copy/CDropdown.d.ts +89 -0
- package/dist/components/dropdown copy/CDropdownDivider.d.ts +8 -0
- package/dist/components/dropdown copy/CDropdownHeader.d.ts +12 -0
- package/dist/components/dropdown copy/CDropdownItem.d.ts +13 -0
- package/dist/components/dropdown copy/CDropdownItemPlain.d.ts +12 -0
- package/dist/components/dropdown copy/CDropdownMenu.d.ts +13 -0
- package/dist/components/dropdown copy/CDropdownToggle.d.ts +24 -0
- package/dist/components/dropdown copy/index.d.ts +8 -0
- package/dist/components/popover/CPopover.d.ts +3 -3
- package/dist/components/tooltip/CTooltip.d.ts +3 -3
- package/dist/hooks/index.d.ts +2 -1
- package/dist/index.es.js +59 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +59 -10
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
- package/src/components/dropdown/CDropdown.tsx +1 -1
- package/src/components/popover/CPopover.tsx +3 -3
- package/src/components/tooltip/CTooltip.tsx +3 -3
- package/src/hooks/index.ts +2 -1
- package/src/utils/getRTLPlacement.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coreui/react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-alpha.0",
|
|
4
4
|
"description": "UI Components Library for React.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -38,29 +38,29 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@popperjs/core": "^2.11.8",
|
|
41
|
-
"@rollup/plugin-commonjs": "^25.0.
|
|
41
|
+
"@rollup/plugin-commonjs": "^25.0.2",
|
|
42
42
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
43
|
-
"@rollup/plugin-typescript": "^11.1.
|
|
43
|
+
"@rollup/plugin-typescript": "^11.1.2",
|
|
44
44
|
"@testing-library/jest-dom": "^5.16.5",
|
|
45
45
|
"@testing-library/react": "^14.0.0",
|
|
46
|
-
"@types/react": "18.2.
|
|
47
|
-
"@types/react-dom": "^18.2.
|
|
46
|
+
"@types/react": "18.2.14",
|
|
47
|
+
"@types/react-dom": "^18.2.6",
|
|
48
48
|
"@types/react-transition-group": "^4.4.6",
|
|
49
49
|
"classnames": "^2.3.2",
|
|
50
|
-
"jest": "^29.
|
|
51
|
-
"jest-environment-jsdom": "^29.
|
|
50
|
+
"jest": "^29.6.0",
|
|
51
|
+
"jest-environment-jsdom": "^29.6.0",
|
|
52
52
|
"prop-types": "^15.8.1",
|
|
53
53
|
"react": "^18.2.0",
|
|
54
54
|
"react-dom": "^18.2.0",
|
|
55
55
|
"react-popper": "^2.3.0",
|
|
56
56
|
"react-transition-group": "^4.4.5",
|
|
57
|
-
"rollup": "^3.
|
|
58
|
-
"ts-jest": "^29.1.
|
|
59
|
-
"tslib": "^2.
|
|
60
|
-
"typescript": "^
|
|
57
|
+
"rollup": "^3.26.1",
|
|
58
|
+
"ts-jest": "^29.1.1",
|
|
59
|
+
"tslib": "^2.6.0",
|
|
60
|
+
"typescript": "^5.1.6"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@coreui/coreui": "
|
|
63
|
+
"@coreui/coreui": "^5.0.0-alpha.0",
|
|
64
64
|
"react": ">=17",
|
|
65
65
|
"react-dom": ">=17"
|
|
66
66
|
}
|
|
@@ -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
|
/**
|
|
@@ -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
|
/**
|
package/src/hooks/index.ts
CHANGED