@coreui/react 4.9.0-beta.2 → 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/dist/index.js CHANGED
@@ -4882,6 +4882,16 @@ CCardTitle.propTypes = {
4882
4882
  };
4883
4883
  CCardTitle.displayName = 'CCardTitle';
4884
4884
 
4885
+ var isRTL = function (element) {
4886
+ if (typeof document !== 'undefined' && document.documentElement.dir === 'rtl') {
4887
+ return true;
4888
+ }
4889
+ if (element) {
4890
+ return element.closest('[dir="rtl"]') !== null;
4891
+ }
4892
+ return false;
4893
+ };
4894
+
4885
4895
  var getRTLPlacement = function (placement, element) {
4886
4896
  switch (placement) {
4887
4897
  case 'right': {
@@ -4904,16 +4914,6 @@ var isInViewport = function (element) {
4904
4914
  Math.floor(rect.right) <= (window.innerWidth || document.documentElement.clientWidth));
4905
4915
  };
4906
4916
 
4907
- var isRTL = function (element) {
4908
- if (typeof document !== 'undefined' && document.documentElement.dir === 'rtl') {
4909
- return true;
4910
- }
4911
- if (element) {
4912
- return element.closest('[dir="rtl"]') !== null;
4913
- }
4914
- return false;
4915
- };
4916
-
4917
4917
  var CCarouselContext = React.createContext({});
4918
4918
  var CCarousel = React.forwardRef(function (_a, ref) {
4919
4919
  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"]);