@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/dist/index.js
CHANGED
|
@@ -4834,6 +4834,16 @@ CCardTitle.propTypes = {
|
|
|
4834
4834
|
};
|
|
4835
4835
|
CCardTitle.displayName = 'CCardTitle';
|
|
4836
4836
|
|
|
4837
|
+
var isRTL = function (element) {
|
|
4838
|
+
if (typeof document !== 'undefined' && document.documentElement.dir === 'rtl') {
|
|
4839
|
+
return true;
|
|
4840
|
+
}
|
|
4841
|
+
if (element) {
|
|
4842
|
+
return element.closest('[dir="rtl"]') !== null;
|
|
4843
|
+
}
|
|
4844
|
+
return false;
|
|
4845
|
+
};
|
|
4846
|
+
|
|
4837
4847
|
var getRTLPlacement = function (placement, element) {
|
|
4838
4848
|
switch (placement) {
|
|
4839
4849
|
case 'right': {
|
|
@@ -4856,16 +4866,6 @@ var isInViewport = function (element) {
|
|
|
4856
4866
|
Math.floor(rect.right) <= (window.innerWidth || document.documentElement.clientWidth));
|
|
4857
4867
|
};
|
|
4858
4868
|
|
|
4859
|
-
var isRTL = function (element) {
|
|
4860
|
-
if (typeof document !== 'undefined' && document.documentElement.dir === 'rtl') {
|
|
4861
|
-
return true;
|
|
4862
|
-
}
|
|
4863
|
-
if (element) {
|
|
4864
|
-
return element.closest('[dir="rtl"]') !== null;
|
|
4865
|
-
}
|
|
4866
|
-
return false;
|
|
4867
|
-
};
|
|
4868
|
-
|
|
4869
4869
|
var CCarouselContext = React.createContext({});
|
|
4870
4870
|
var CCarousel = React.forwardRef(function (_a, ref) {
|
|
4871
4871
|
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"]);
|