@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreui/react-pro",
3
- "version": "4.12.0-beta.3",
3
+ "version": "5.0.0-alpha.0",
4
4
  "description": "UI Components Library for React.js",
5
5
  "keywords": [
6
6
  "react",
@@ -40,31 +40,31 @@
40
40
  "@coreui/icons": "^3.0.1",
41
41
  "@coreui/icons-react": "^2.1.0",
42
42
  "@popperjs/core": "^2.11.8",
43
- "@rollup/plugin-commonjs": "^25.0.1",
43
+ "@rollup/plugin-commonjs": "^25.0.2",
44
44
  "@rollup/plugin-node-resolve": "^15.1.0",
45
- "@rollup/plugin-typescript": "^11.1.1",
45
+ "@rollup/plugin-typescript": "^11.1.2",
46
46
  "@testing-library/jest-dom": "^5.16.5",
47
47
  "@testing-library/react": "^14.0.0",
48
- "@types/react": "18.2.12",
49
- "@types/react-dom": "^18.2.5",
48
+ "@types/react": "18.2.14",
49
+ "@types/react-dom": "^18.2.6",
50
50
  "@types/react-transition-group": "^4.4.6",
51
51
  "classnames": "^2.3.2",
52
52
  "date-fns": "^2.30.0",
53
- "jest": "^29.5.0",
54
- "jest-environment-jsdom": "^29.5.0",
53
+ "jest": "^29.6.0",
54
+ "jest-environment-jsdom": "^29.6.0",
55
55
  "prop-types": "^15.8.1",
56
56
  "react": "^18.2.0",
57
57
  "react-device-detect": "^2.2.3",
58
58
  "react-dom": "^18.2.0",
59
59
  "react-popper": "^2.3.0",
60
60
  "react-transition-group": "^4.4.5",
61
- "rollup": "^3.25.1",
62
- "ts-jest": "^29.1.0",
63
- "tslib": "^2.5.3",
64
- "typescript": "^4.9.5"
61
+ "rollup": "^3.26.1",
62
+ "ts-jest": "^29.1.1",
63
+ "tslib": "^2.6.0",
64
+ "typescript": "^5.1.6"
65
65
  },
66
66
  "peerDependencies": {
67
- "@coreui/coreui-pro": ">=4.6.0-beta.0",
67
+ "@coreui/coreui-pro": ">=5.0.0-alpha.0",
68
68
  "react": ">=17",
69
69
  "react-dom": ">=17"
70
70
  }
@@ -66,7 +66,7 @@ export interface CDropdownProps extends HTMLAttributes<HTMLDivElement | HTMLLIEl
66
66
  /**
67
67
  * Callback fired when the component requests to be hidden.
68
68
  *
69
- * @since 4.9.0-beta.1
69
+ * @since 4.9.0
70
70
  */
71
71
  onHide?: () => void
72
72
  /**
@@ -102,13 +102,13 @@ export interface CMultiSelectProps
102
102
  /**
103
103
  * Custom template for options.
104
104
  *
105
- * @since 4.12.0-beta.3
105
+ * @since 4.12.0
106
106
  */
107
107
  optionsTemplate?: (option: Option) => ReactNode
108
108
  /**
109
109
  * Custom template for options groups.
110
110
  *
111
- * @since 4.12.0-beta.3
111
+ * @since 4.12.0
112
112
  */
113
113
  optionsGroupsTemplate?: (option: OptionsGroup) => ReactNode
114
114
  /**
@@ -13,7 +13,7 @@ export interface CPopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'tit
13
13
  /**
14
14
  * Apply a CSS fade transition to the popover.
15
15
  *
16
- * @since 4.9.0-beta.1
16
+ * @since 4.9.0
17
17
  */
18
18
  animation?: boolean
19
19
  /**
@@ -31,13 +31,13 @@ export interface CPopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'tit
31
31
  /**
32
32
  * 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 }`.
33
33
  *
34
- * @since 4.9.0-beta.1
34
+ * @since 4.9.0
35
35
  */
36
36
  delay?: number | { show: number; hide: number }
37
37
  /**
38
38
  * Specify the desired order of fallback placements by providing a list of placements as an array. The placements should be prioritized based on preference.
39
39
  *
40
- * @since 4.9.0-beta.1
40
+ * @since 4.9.0
41
41
  */
42
42
  fallbackPlacements?: Placements | Placements[]
43
43
  /**
@@ -13,7 +13,7 @@ export interface CTooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'con
13
13
  /**
14
14
  * Apply a CSS fade transition to the tooltip.
15
15
  *
16
- * @since 4.9.0-beta.1
16
+ * @since 4.9.0
17
17
  */
18
18
  animation?: boolean
19
19
  /**
@@ -27,13 +27,13 @@ export interface CTooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'con
27
27
  /**
28
28
  * 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 }`.
29
29
  *
30
- * @since 4.9.0-beta.1
30
+ * @since 4.9.0
31
31
  */
32
32
  delay?: number | { show: number; hide: number }
33
33
  /**
34
34
  * Specify the desired order of fallback placements by providing a list of placements as an array. The placements should be prioritized based on preference.
35
35
  *
36
- * @since 4.9.0-beta.1
36
+ * @since 4.9.0
37
37
  */
38
38
  fallbackPlacements?: Placements | Placements[]
39
39
  /**
@@ -1,5 +1,5 @@
1
1
  import { Placement } from '@popperjs/core'
2
- import { isRTL } from '../utils'
2
+ import isRTL from './isRTL'
3
3
 
4
4
  const getRTLPlacement = (placement: string, element: HTMLDivElement | null): Placement => {
5
5
  switch (placement) {