@coreui/react 4.9.0-rc.0 → 4.9.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/popover/CPopover.d.ts +3 -3
- package/dist/components/tooltip/CTooltip.d.ts +3 -3
- package/dist/index.es.js +10 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
- 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/utils/getRTLPlacement.ts +1 -1
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.9.0
|
|
49
|
+
- [Download the latest release](https://github.com/coreui/coreui-react/archive/v4.9.0.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`
|
|
@@ -4,7 +4,7 @@ export interface CPopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'tit
|
|
|
4
4
|
/**
|
|
5
5
|
* Apply a CSS fade transition to the popover.
|
|
6
6
|
*
|
|
7
|
-
* @since 4.9.0
|
|
7
|
+
* @since 4.9.0
|
|
8
8
|
*/
|
|
9
9
|
animation?: boolean;
|
|
10
10
|
/**
|
|
@@ -22,7 +22,7 @@ export interface CPopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'tit
|
|
|
22
22
|
/**
|
|
23
23
|
* 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 }`.
|
|
24
24
|
*
|
|
25
|
-
* @since 4.9.0
|
|
25
|
+
* @since 4.9.0
|
|
26
26
|
*/
|
|
27
27
|
delay?: number | {
|
|
28
28
|
show: number;
|
|
@@ -31,7 +31,7 @@ export interface CPopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'tit
|
|
|
31
31
|
/**
|
|
32
32
|
* Specify the desired order of fallback placements by providing a list of placements as an array. The placements should be prioritized based on preference.
|
|
33
33
|
*
|
|
34
|
-
* @since 4.9.0
|
|
34
|
+
* @since 4.9.0
|
|
35
35
|
*/
|
|
36
36
|
fallbackPlacements?: Placements | Placements[];
|
|
37
37
|
/**
|
|
@@ -4,7 +4,7 @@ export interface CTooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'con
|
|
|
4
4
|
/**
|
|
5
5
|
* Apply a CSS fade transition to the tooltip.
|
|
6
6
|
*
|
|
7
|
-
* @since 4.9.0
|
|
7
|
+
* @since 4.9.0
|
|
8
8
|
*/
|
|
9
9
|
animation?: boolean;
|
|
10
10
|
/**
|
|
@@ -18,7 +18,7 @@ export interface CTooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'con
|
|
|
18
18
|
/**
|
|
19
19
|
* 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 }`.
|
|
20
20
|
*
|
|
21
|
-
* @since 4.9.0
|
|
21
|
+
* @since 4.9.0
|
|
22
22
|
*/
|
|
23
23
|
delay?: number | {
|
|
24
24
|
show: number;
|
|
@@ -27,7 +27,7 @@ export interface CTooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'con
|
|
|
27
27
|
/**
|
|
28
28
|
* Specify the desired order of fallback placements by providing a list of placements as an array. The placements should be prioritized based on preference.
|
|
29
29
|
*
|
|
30
|
-
* @since 4.9.0
|
|
30
|
+
* @since 4.9.0
|
|
31
31
|
*/
|
|
32
32
|
fallbackPlacements?: Placements | Placements[];
|
|
33
33
|
/**
|
package/dist/index.es.js
CHANGED
|
@@ -4832,6 +4832,16 @@ CCardTitle.propTypes = {
|
|
|
4832
4832
|
};
|
|
4833
4833
|
CCardTitle.displayName = 'CCardTitle';
|
|
4834
4834
|
|
|
4835
|
+
var isRTL = function (element) {
|
|
4836
|
+
if (typeof document !== 'undefined' && document.documentElement.dir === 'rtl') {
|
|
4837
|
+
return true;
|
|
4838
|
+
}
|
|
4839
|
+
if (element) {
|
|
4840
|
+
return element.closest('[dir="rtl"]') !== null;
|
|
4841
|
+
}
|
|
4842
|
+
return false;
|
|
4843
|
+
};
|
|
4844
|
+
|
|
4835
4845
|
var getRTLPlacement = function (placement, element) {
|
|
4836
4846
|
switch (placement) {
|
|
4837
4847
|
case 'right': {
|
|
@@ -4854,16 +4864,6 @@ var isInViewport = function (element) {
|
|
|
4854
4864
|
Math.floor(rect.right) <= (window.innerWidth || document.documentElement.clientWidth));
|
|
4855
4865
|
};
|
|
4856
4866
|
|
|
4857
|
-
var isRTL = function (element) {
|
|
4858
|
-
if (typeof document !== 'undefined' && document.documentElement.dir === 'rtl') {
|
|
4859
|
-
return true;
|
|
4860
|
-
}
|
|
4861
|
-
if (element) {
|
|
4862
|
-
return element.closest('[dir="rtl"]') !== null;
|
|
4863
|
-
}
|
|
4864
|
-
return false;
|
|
4865
|
-
};
|
|
4866
|
-
|
|
4867
4867
|
var CCarouselContext = createContext({});
|
|
4868
4868
|
var CCarousel = forwardRef(function (_a, ref) {
|
|
4869
4869
|
var children = _a.children, _b = _a.activeIndex, activeIndex = _b === void 0 ? 0 : _b, className = _a.className, controls = _a.controls, dark = _a.dark, indicators = _a.indicators, _c = _a.interval, interval = _c === void 0 ? 5000 : _c, onSlid = _a.onSlid, onSlide = _a.onSlide, _d = _a.pause, pause = _d === void 0 ? 'hover' : _d, _e = _a.touch, touch = _e === void 0 ? true : _e, transition = _a.transition, _f = _a.wrap, wrap = _f === void 0 ? true : _f, rest = __rest(_a, ["children", "activeIndex", "className", "controls", "dark", "indicators", "interval", "onSlid", "onSlide", "pause", "touch", "transition", "wrap"]);
|