@coreui/react-pro 4.12.0-beta.3 → 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
@@ -17,7 +17,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
17
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
18
  PERFORMANCE OF THIS SOFTWARE.
19
19
  ***************************************************************************** */
20
- /* global Reflect, Promise */
20
+ /* global Reflect, Promise, SuppressedError, Symbol */
21
21
 
22
22
 
23
23
  var __assign$1 = function() {
@@ -51,7 +51,12 @@ function __spreadArray(to, from, pack) {
51
51
  }
52
52
  }
53
53
  return to.concat(ar || Array.prototype.slice.call(from));
54
- }
54
+ }
55
+
56
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
57
+ var e = new Error(message);
58
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
59
+ };
55
60
 
56
61
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
57
62
 
@@ -4898,6 +4903,16 @@ CCardTitle.propTypes = {
4898
4903
  };
4899
4904
  CCardTitle.displayName = 'CCardTitle';
4900
4905
 
4906
+ var isRTL = function (element) {
4907
+ if (typeof document !== 'undefined' && document.documentElement.dir === 'rtl') {
4908
+ return true;
4909
+ }
4910
+ if (element) {
4911
+ return element.closest('[dir="rtl"]') !== null;
4912
+ }
4913
+ return false;
4914
+ };
4915
+
4901
4916
  var getRTLPlacement = function (placement, element) {
4902
4917
  switch (placement) {
4903
4918
  case 'right': {
@@ -4934,16 +4949,6 @@ var isObjectInArray = function (array, item, ignore) {
4934
4949
  });
4935
4950
  };
4936
4951
 
4937
- var isRTL = function (element) {
4938
- if (typeof document !== 'undefined' && document.documentElement.dir === 'rtl') {
4939
- return true;
4940
- }
4941
- if (element) {
4942
- return element.closest('[dir="rtl"]') !== null;
4943
- }
4944
- return false;
4945
- };
4946
-
4947
4952
  var CCarouselContext = React$1.createContext({});
4948
4953
  var CCarousel = React$1.forwardRef(function (_a, ref) {
4949
4954
  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$1(_a, ["children", "activeIndex", "className", "controls", "dark", "indicators", "interval", "onSlid", "onSlide", "pause", "touch", "transition", "wrap"]);