@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/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-beta.2.zip)
49
+ - [Download the latest release](https://github.com/coreui/coreui-react/archive/v5.0.0-alpha.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`
@@ -53,7 +53,7 @@ export interface CDropdownProps extends HTMLAttributes<HTMLDivElement | HTMLLIEl
53
53
  /**
54
54
  * Callback fired when the component requests to be hidden.
55
55
  *
56
- * @since 4.9.0-beta.2
56
+ * @since 4.9.0
57
57
  */
58
58
  onHide?: () => void;
59
59
  /**
@@ -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-beta.2
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-beta.2
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-beta.2
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-beta.2
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-beta.2
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-beta.2
30
+ * @since 4.9.0
31
31
  */
32
32
  fallbackPlacements?: Placements | Placements[];
33
33
  /**
package/dist/index.es.js CHANGED
@@ -4880,6 +4880,16 @@ CCardTitle.propTypes = {
4880
4880
  };
4881
4881
  CCardTitle.displayName = 'CCardTitle';
4882
4882
 
4883
+ var isRTL = function (element) {
4884
+ if (typeof document !== 'undefined' && document.documentElement.dir === 'rtl') {
4885
+ return true;
4886
+ }
4887
+ if (element) {
4888
+ return element.closest('[dir="rtl"]') !== null;
4889
+ }
4890
+ return false;
4891
+ };
4892
+
4883
4893
  var getRTLPlacement = function (placement, element) {
4884
4894
  switch (placement) {
4885
4895
  case 'right': {
@@ -4902,16 +4912,6 @@ var isInViewport = function (element) {
4902
4912
  Math.floor(rect.right) <= (window.innerWidth || document.documentElement.clientWidth));
4903
4913
  };
4904
4914
 
4905
- var isRTL = function (element) {
4906
- if (typeof document !== 'undefined' && document.documentElement.dir === 'rtl') {
4907
- return true;
4908
- }
4909
- if (element) {
4910
- return element.closest('[dir="rtl"]') !== null;
4911
- }
4912
- return false;
4913
- };
4914
-
4915
4915
  var CCarouselContext = createContext({});
4916
4916
  var CCarousel = forwardRef(function (_a, ref) {
4917
4917
  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"]);