@coreui/react 4.8.0 → 4.9.0-alpha.1
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/popover/CPopover.d.ts +1 -1
- package/dist/components/tooltip/CTooltip.d.ts +3 -3
- package/dist/index.es.js +739 -665
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +739 -665
- package/dist/index.js.map +1 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/isRTL.d.ts +2 -0
- package/package.json +11 -10
- package/src/components/dropdown/CDropdownMenu.tsx +5 -4
- package/src/components/form/CFormCheck.tsx +1 -1
- package/src/components/popover/CPopover.tsx +62 -26
- package/src/components/tooltip/CTooltip.tsx +66 -31
- package/src/utils/index.ts +2 -1
- package/src/utils/isRTL.ts +13 -0
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
Several quick start options are available:
|
|
48
48
|
|
|
49
|
-
- [Download the latest release](https://github.com/coreui/coreui-react/archive/v4.
|
|
49
|
+
- [Download the latest release](https://github.com/coreui/coreui-react/archive/v4.9.0-alpha.1.zip)
|
|
50
50
|
- Clone the repo: `git clone https://github.com/coreui/coreui-react.git`
|
|
51
51
|
- Install with [npm](https://www.npmjs.com/): `npm install @coreui/react`
|
|
52
52
|
- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/react`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import type { Triggers } from '../../types';
|
|
3
|
-
export interface CPopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
3
|
+
export interface CPopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'content'> {
|
|
4
4
|
/**
|
|
5
5
|
* A string of all className you want applied to the component.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import type { Triggers } from '../../types';
|
|
3
|
-
export interface CTooltipProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
export interface CTooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'content'> {
|
|
4
4
|
/**
|
|
5
5
|
* A string of all className you want applied to the component.
|
|
6
6
|
*/
|
|
@@ -10,7 +10,7 @@ export interface CTooltipProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
10
10
|
*/
|
|
11
11
|
content: ReactNode | string;
|
|
12
12
|
/**
|
|
13
|
-
* Offset of the
|
|
13
|
+
* Offset of the tooltip relative to its target.
|
|
14
14
|
*/
|
|
15
15
|
offset?: [number, number];
|
|
16
16
|
/**
|
|
@@ -32,7 +32,7 @@ export interface CTooltipProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
32
32
|
*/
|
|
33
33
|
placement?: 'auto' | 'top' | 'right' | 'bottom' | 'left';
|
|
34
34
|
/**
|
|
35
|
-
* Toggle the visibility of
|
|
35
|
+
* Toggle the visibility of tooltip component.
|
|
36
36
|
*/
|
|
37
37
|
visible?: boolean;
|
|
38
38
|
}
|