@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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/components/dropdown/CDropdown.d.ts +1 -1
- package/dist/components/multi-select/CMultiSelect.d.ts +2 -2
- package/dist/components/popover/CPopover.d.ts +3 -3
- package/dist/components/tooltip/CTooltip.d.ts +3 -3
- package/dist/index.es.js +17 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +17 -12
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
- package/src/components/dropdown/CDropdown.tsx +1 -1
- package/src/components/multi-select/CMultiSelect.tsx +2 -2
- package/src/components/popover/CPopover.tsx +3 -3
- package/src/components/tooltip/CTooltip.tsx +3 -3
- package/src/utils/getRTLPlacement.ts +1 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
Several quick start options are available:
|
|
44
44
|
|
|
45
|
-
- [Download the latest release](https://github.com/coreui/coreui-react-pro/archive/
|
|
45
|
+
- [Download the latest release](https://github.com/coreui/coreui-react-pro/archive/v5.0.0-alpha.0.zip)
|
|
46
46
|
- Clone the repo: `git clone https://github.com/coreui/coreui-react.git`
|
|
47
47
|
- Install with [npm](https://www.npmjs.com/): `npm install @coreui/react`
|
|
48
48
|
- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/react`
|
|
@@ -76,13 +76,13 @@ export interface CMultiSelectProps extends Omit<CFormControlWrapperProps, 'float
|
|
|
76
76
|
/**
|
|
77
77
|
* Custom template for options.
|
|
78
78
|
*
|
|
79
|
-
* @since 4.12.0
|
|
79
|
+
* @since 4.12.0
|
|
80
80
|
*/
|
|
81
81
|
optionsTemplate?: (option: Option) => ReactNode;
|
|
82
82
|
/**
|
|
83
83
|
* Custom template for options groups.
|
|
84
84
|
*
|
|
85
|
-
* @since 4.12.0
|
|
85
|
+
* @since 4.12.0
|
|
86
86
|
*/
|
|
87
87
|
optionsGroupsTemplate?: (option: OptionsGroup) => ReactNode;
|
|
88
88
|
/**
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
30
|
+
* @since 4.9.0
|
|
31
31
|
*/
|
|
32
32
|
fallbackPlacements?: Placements | Placements[];
|
|
33
33
|
/**
|
package/dist/index.es.js
CHANGED
|
@@ -15,7 +15,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
15
15
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
16
16
|
PERFORMANCE OF THIS SOFTWARE.
|
|
17
17
|
***************************************************************************** */
|
|
18
|
-
/* global Reflect, Promise */
|
|
18
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var __assign$1 = function() {
|
|
@@ -49,7 +49,12 @@ function __spreadArray(to, from, pack) {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
52
|
-
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
55
|
+
var e = new Error(message);
|
|
56
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
57
|
+
};
|
|
53
58
|
|
|
54
59
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
55
60
|
|
|
@@ -4896,6 +4901,16 @@ CCardTitle.propTypes = {
|
|
|
4896
4901
|
};
|
|
4897
4902
|
CCardTitle.displayName = 'CCardTitle';
|
|
4898
4903
|
|
|
4904
|
+
var isRTL = function (element) {
|
|
4905
|
+
if (typeof document !== 'undefined' && document.documentElement.dir === 'rtl') {
|
|
4906
|
+
return true;
|
|
4907
|
+
}
|
|
4908
|
+
if (element) {
|
|
4909
|
+
return element.closest('[dir="rtl"]') !== null;
|
|
4910
|
+
}
|
|
4911
|
+
return false;
|
|
4912
|
+
};
|
|
4913
|
+
|
|
4899
4914
|
var getRTLPlacement = function (placement, element) {
|
|
4900
4915
|
switch (placement) {
|
|
4901
4916
|
case 'right': {
|
|
@@ -4932,16 +4947,6 @@ var isObjectInArray = function (array, item, ignore) {
|
|
|
4932
4947
|
});
|
|
4933
4948
|
};
|
|
4934
4949
|
|
|
4935
|
-
var isRTL = function (element) {
|
|
4936
|
-
if (typeof document !== 'undefined' && document.documentElement.dir === 'rtl') {
|
|
4937
|
-
return true;
|
|
4938
|
-
}
|
|
4939
|
-
if (element) {
|
|
4940
|
-
return element.closest('[dir="rtl"]') !== null;
|
|
4941
|
-
}
|
|
4942
|
-
return false;
|
|
4943
|
-
};
|
|
4944
|
-
|
|
4945
4950
|
var CCarouselContext = createContext({});
|
|
4946
4951
|
var CCarousel = forwardRef(function (_a, ref) {
|
|
4947
4952
|
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"]);
|