funda-ui 4.7.515 → 4.7.525
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/CascadingSelect/index.css +105 -88
- package/CascadingSelect/index.js +23 -23
- package/CascadingSelectE2E/index.css +105 -88
- package/CascadingSelectE2E/index.js +24 -24
- package/Select/index.js +110 -88
- package/Tooltip/index.css +69 -68
- package/Tooltip/index.d.ts +15 -1
- package/Tooltip/index.js +153 -57
- package/lib/cjs/CascadingSelect/index.js +23 -23
- package/lib/cjs/CascadingSelectE2E/index.js +24 -24
- package/lib/cjs/Select/index.js +110 -88
- package/lib/cjs/Tooltip/index.d.ts +15 -1
- package/lib/cjs/Tooltip/index.js +153 -57
- package/lib/css/CascadingSelect/index.css +105 -88
- package/lib/css/CascadingSelectE2E/index.css +105 -88
- package/lib/css/Tooltip/index.css +69 -68
- package/lib/esm/CascadingSelect/Group.tsx +3 -5
- package/lib/esm/CascadingSelect/index.scss +89 -68
- package/lib/esm/CascadingSelect/index.tsx +21 -20
- package/lib/esm/CascadingSelectE2E/Group.tsx +4 -3
- package/lib/esm/CascadingSelectE2E/index.scss +83 -63
- package/lib/esm/CascadingSelectE2E/index.tsx +22 -21
- package/lib/esm/Select/index.tsx +165 -148
- package/lib/esm/Tooltip/index.scss +63 -60
- package/lib/esm/Tooltip/index.tsx +143 -44
- package/package.json +1 -1
package/Select/index.js
CHANGED
|
@@ -3703,54 +3703,92 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
3703
3703
|
var LIST_CONTAINER_MAX_HEIGHT = 300;
|
|
3704
3704
|
var keyboardSelectedItem = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
3705
3705
|
|
|
3706
|
+
// loading
|
|
3707
|
+
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
3708
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
3709
|
+
fetchLoading = _useState2[0],
|
|
3710
|
+
setFetchLoading = _useState2[1];
|
|
3711
|
+
var loadingOutput = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
3712
|
+
className: "cus-select-loader"
|
|
3713
|
+
}, loader || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("svg", {
|
|
3714
|
+
height: "12px",
|
|
3715
|
+
width: "12px",
|
|
3716
|
+
viewBox: "0 0 512 512"
|
|
3717
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("g", null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
3718
|
+
fill: "inherit",
|
|
3719
|
+
d: "M256,0c-23.357,0-42.297,18.932-42.297,42.288c0,23.358,18.94,42.288,42.297,42.288c23.357,0,42.279-18.93,42.279-42.288C298.279,18.932,279.357,0,256,0z"
|
|
3720
|
+
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
3721
|
+
fill: "inherit",
|
|
3722
|
+
d: "M256,427.424c-23.357,0-42.297,18.931-42.297,42.288C213.703,493.07,232.643,512,256,512c23.357,0,42.279-18.93,42.279-42.288C298.279,446.355,279.357,427.424,256,427.424z"
|
|
3723
|
+
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
3724
|
+
fill: "inherit",
|
|
3725
|
+
d: "M74.974,74.983c-16.52,16.511-16.52,43.286,0,59.806c16.52,16.52,43.287,16.52,59.806,0c16.52-16.511,16.52-43.286,0-59.806C118.261,58.463,91.494,58.463,74.974,74.983z"
|
|
3726
|
+
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
3727
|
+
fill: "inherit",
|
|
3728
|
+
d: "M377.203,377.211c-16.503,16.52-16.503,43.296,0,59.815c16.519,16.52,43.304,16.52,59.806,0c16.52-16.51,16.52-43.295,0-59.815C420.489,360.692,393.722,360.7,377.203,377.211z"
|
|
3729
|
+
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
3730
|
+
fill: "inherit",
|
|
3731
|
+
d: "M84.567,256c0.018-23.348-18.922-42.279-42.279-42.279c-23.357-0.009-42.297,18.932-42.279,42.288c-0.018,23.348,18.904,42.279,42.279,42.279C65.645,298.288,84.567,279.358,84.567,256z"
|
|
3732
|
+
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
3733
|
+
fill: "inherit",
|
|
3734
|
+
d: "M469.712,213.712c-23.357,0-42.279,18.941-42.297,42.288c0,23.358,18.94,42.288,42.297,42.297c23.357,0,42.297-18.94,42.279-42.297C512.009,232.652,493.069,213.712,469.712,213.712z"
|
|
3735
|
+
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
3736
|
+
fill: "inherit",
|
|
3737
|
+
d: "M74.991,377.22c-16.519,16.511-16.519,43.296,0,59.806c16.503,16.52,43.27,16.52,59.789,0c16.52-16.519,16.52-43.295,0-59.815C118.278,360.692,91.511,360.692,74.991,377.22z"
|
|
3738
|
+
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
3739
|
+
fill: "inherit",
|
|
3740
|
+
d: "M437.026,134.798c16.52-16.52,16.52-43.304,0-59.824c-16.519-16.511-43.304-16.52-59.823,0c-16.52,16.52-16.503,43.295,0,59.815C393.722,151.309,420.507,151.309,437.026,134.798z"
|
|
3741
|
+
})))));
|
|
3742
|
+
|
|
3706
3743
|
// return a array of options
|
|
3707
3744
|
var staticOptionsData = optionsRes;
|
|
3745
|
+
var hasDefaultOptions = staticOptionsData.length > 0;
|
|
3708
3746
|
|
|
3709
3747
|
//
|
|
3710
|
-
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(staticOptionsData),
|
|
3711
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
3712
|
-
orginalData = _useState2[0],
|
|
3713
|
-
setOrginalData = _useState2[1];
|
|
3714
3748
|
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(staticOptionsData),
|
|
3715
3749
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
3750
|
+
orginalData = _useState4[0],
|
|
3751
|
+
setOrginalData = _useState4[1];
|
|
3752
|
+
var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(staticOptionsData),
|
|
3719
3753
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
3720
|
-
|
|
3721
|
-
|
|
3754
|
+
optionsData = _useState6[0],
|
|
3755
|
+
setOptionsData = _useState6[1];
|
|
3756
|
+
var _useState7 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
3757
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
3758
|
+
hasErr = _useState8[0],
|
|
3759
|
+
setHasErr = _useState8[1];
|
|
3722
3760
|
|
|
3723
3761
|
// Set the final result
|
|
3724
|
-
var _useState7 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(''),
|
|
3725
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
3726
|
-
controlLabel = _useState8[0],
|
|
3727
|
-
setControlLabel = _useState8[1];
|
|
3728
3762
|
var _useState9 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(''),
|
|
3729
3763
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
3730
|
-
|
|
3731
|
-
|
|
3764
|
+
controlLabel = _useState10[0],
|
|
3765
|
+
setControlLabel = _useState10[1];
|
|
3766
|
+
var _useState11 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(''),
|
|
3767
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
3768
|
+
controlValue = _useState12[0],
|
|
3769
|
+
setControlValue = _useState12[1];
|
|
3732
3770
|
|
|
3733
3771
|
//
|
|
3734
|
-
var
|
|
3735
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
3736
|
-
controlTempValue = _useState12[0],
|
|
3737
|
-
setControlTempValue = _useState12[1]; // Storage for temporary input
|
|
3738
|
-
var _useState13 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
3772
|
+
var _useState13 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null),
|
|
3739
3773
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
var _useState15 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
3774
|
+
controlTempValue = _useState14[0],
|
|
3775
|
+
setControlTempValue = _useState14[1]; // Storage for temporary input
|
|
3776
|
+
var _useState15 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
3743
3777
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
var _useState17 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
3778
|
+
isOpen = _useState16[0],
|
|
3779
|
+
setIsOpen = _useState16[1];
|
|
3780
|
+
var _useState17 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null),
|
|
3747
3781
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
3748
|
-
|
|
3749
|
-
|
|
3782
|
+
incomingData = _useState18[0],
|
|
3783
|
+
setIncomingData = _useState18[1];
|
|
3750
3784
|
var _useState19 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
3751
3785
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
3752
|
-
|
|
3753
|
-
|
|
3786
|
+
firstRequestExecuted = _useState20[0],
|
|
3787
|
+
setFirstRequestExecuted = _useState20[1];
|
|
3788
|
+
var _useState21 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
3789
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
3790
|
+
handleFirstFetchCompleted = _useState22[0],
|
|
3791
|
+
setHandleFirstFetchCompleted = _useState22[1];
|
|
3754
3792
|
|
|
3755
3793
|
// Mark whether it is out of focus
|
|
3756
3794
|
// Fixed the issue that caused the pop-up window to still display due to
|
|
@@ -3758,25 +3796,25 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
3758
3796
|
var isBlurringRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
|
|
3759
3797
|
|
|
3760
3798
|
// filter status
|
|
3761
|
-
var
|
|
3762
|
-
|
|
3763
|
-
filterItemsHasNoMatchData =
|
|
3764
|
-
setFilterItemsHasNoMatchData =
|
|
3799
|
+
var _useState23 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
3800
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
3801
|
+
filterItemsHasNoMatchData = _useState24[0],
|
|
3802
|
+
setFilterItemsHasNoMatchData = _useState24[1];
|
|
3765
3803
|
|
|
3766
3804
|
// blinking cursor
|
|
3767
3805
|
var BLINKING_CURSOR_STR = '|';
|
|
3768
|
-
var
|
|
3769
|
-
|
|
3770
|
-
blinkingPosStart =
|
|
3771
|
-
setBlinkingPosStart =
|
|
3806
|
+
var _useState25 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
3807
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
3808
|
+
blinkingPosStart = _useState26[0],
|
|
3809
|
+
setBlinkingPosStart = _useState26[1];
|
|
3772
3810
|
var blinkingPosFauxRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
3773
3811
|
var blinkingCursorPosDivRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
3774
3812
|
|
|
3775
3813
|
// Select All status (for "Single selection")
|
|
3776
|
-
var
|
|
3777
|
-
|
|
3778
|
-
userInputboxIsAllSelected =
|
|
3779
|
-
setUserInputboxIsAllSelected =
|
|
3814
|
+
var _useState27 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
3815
|
+
_useState28 = _slicedToArray(_useState27, 2),
|
|
3816
|
+
userInputboxIsAllSelected = _useState28[0],
|
|
3817
|
+
setUserInputboxIsAllSelected = _useState28[1];
|
|
3780
3818
|
var selectedSign = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
|
|
3781
3819
|
var MULTI_SEL_VALID = multiSelect ? multiSelect.valid : false;
|
|
3782
3820
|
var MULTI_SEL_ENTIRE_AREA_TRIGGER = typeof multiSelectEntireAreaTrigger === 'undefined' ? true : multiSelectEntireAreaTrigger;
|
|
@@ -3787,13 +3825,13 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
3787
3825
|
allItemsLabel: 'All Content ({num})',
|
|
3788
3826
|
noneLabel: 'No items selected'
|
|
3789
3827
|
};
|
|
3790
|
-
var
|
|
3828
|
+
var _useState29 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({
|
|
3791
3829
|
labels: [],
|
|
3792
3830
|
values: []
|
|
3793
3831
|
}),
|
|
3794
|
-
|
|
3795
|
-
controlArr =
|
|
3796
|
-
setControlArr =
|
|
3832
|
+
_useState30 = _slicedToArray(_useState29, 2),
|
|
3833
|
+
controlArr = _useState30[0],
|
|
3834
|
+
setControlArr = _useState30[1];
|
|
3797
3835
|
|
|
3798
3836
|
// Only single symbols such as , #, and @ are allowed, and , a, a, , etc. are not allowed.
|
|
3799
3837
|
var isSingleSpecialChar = function isSingleSpecialChar(str) {
|
|
@@ -3943,6 +3981,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
3943
3981
|
|
|
3944
3982
|
//performance
|
|
3945
3983
|
var handleChangeFetchSafe = useDebounce_default()(function (val) {
|
|
3984
|
+
setFetchLoading(true);
|
|
3946
3985
|
if (fetchUpdate) {
|
|
3947
3986
|
// update filter status
|
|
3948
3987
|
setFilterItemsHasNoMatchData(false);
|
|
@@ -3954,6 +3993,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
3954
3993
|
popwinPosInit();
|
|
3955
3994
|
popwinFilterItems(val);
|
|
3956
3995
|
}, 0);
|
|
3996
|
+
setFetchLoading(false);
|
|
3957
3997
|
});
|
|
3958
3998
|
} else {
|
|
3959
3999
|
// pop win initalization
|
|
@@ -3961,6 +4001,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
3961
4001
|
popwinPosInit();
|
|
3962
4002
|
popwinFilterItems(val);
|
|
3963
4003
|
}, 0);
|
|
4004
|
+
setFetchLoading(false);
|
|
3964
4005
|
}
|
|
3965
4006
|
}, 350, [optionsData]);
|
|
3966
4007
|
function fetchData(_x2, _x3, _x4) {
|
|
@@ -4517,10 +4558,9 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
4517
4558
|
setIsOpen(false);
|
|
4518
4559
|
if (!MULTI_SEL_VALID) popwinPosHide();
|
|
4519
4560
|
if (MANUAL_REQ) {
|
|
4520
|
-
//
|
|
4521
|
-
setOptionsData(
|
|
4561
|
+
// restore to static data
|
|
4562
|
+
setOptionsData(staticOptionsData);
|
|
4522
4563
|
} else {
|
|
4523
|
-
// restore data
|
|
4524
4564
|
setOptionsData(orginalData);
|
|
4525
4565
|
}
|
|
4526
4566
|
|
|
@@ -4576,8 +4616,8 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
4576
4616
|
}, 500);
|
|
4577
4617
|
}
|
|
4578
4618
|
if (MANUAL_REQ) {
|
|
4579
|
-
//
|
|
4580
|
-
setOptionsData(
|
|
4619
|
+
// display static data
|
|
4620
|
+
setOptionsData(staticOptionsData);
|
|
4581
4621
|
} else {
|
|
4582
4622
|
// restore data
|
|
4583
4623
|
setOptionsData(orginalData);
|
|
@@ -4589,7 +4629,8 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
4589
4629
|
}
|
|
4590
4630
|
|
|
4591
4631
|
// Every time the input changes or the search button is clicked, a data request will be triggered
|
|
4592
|
-
|
|
4632
|
+
// !!! If the default data is empty, the pop-up window is not displayed
|
|
4633
|
+
if (MANUAL_REQ && (controlTempValue === '' || controlTempValue === null) && !hasDefaultOptions) {
|
|
4593
4634
|
setTimeout(function () {
|
|
4594
4635
|
popwinPosHide();
|
|
4595
4636
|
}, 0);
|
|
@@ -5098,18 +5139,21 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
5098
5139
|
while (1) switch (_context6.prev = _context6.next) {
|
|
5099
5140
|
case 0:
|
|
5100
5141
|
inputVal = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : null;
|
|
5142
|
+
setFetchLoading(true);
|
|
5143
|
+
|
|
5101
5144
|
// data init
|
|
5102
5145
|
searchStr = typeof inputVal === 'string' ? inputVal : controlTempValue || controlTempValue === '' ? controlTempValue : '';
|
|
5103
5146
|
_oparams = fetchFuncMethodParams || [];
|
|
5104
5147
|
_params = _oparams.map(function (item) {
|
|
5105
5148
|
return item !== '$QUERY_STRING' ? item : searchStr;
|
|
5106
5149
|
});
|
|
5107
|
-
_context6.next =
|
|
5150
|
+
_context6.next = 7;
|
|
5108
5151
|
return fetchData(_params.join(','), '', '', false);
|
|
5109
|
-
case
|
|
5152
|
+
case 7:
|
|
5110
5153
|
res = _context6.sent;
|
|
5154
|
+
setFetchLoading(false);
|
|
5111
5155
|
return _context6.abrupt("return", res);
|
|
5112
|
-
case
|
|
5156
|
+
case 10:
|
|
5113
5157
|
case "end":
|
|
5114
5158
|
return _context6.stop();
|
|
5115
5159
|
}
|
|
@@ -5904,7 +5948,15 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
5904
5948
|
__html: "".concat(CLEAR_TRIGGER_LABEL)
|
|
5905
5949
|
},
|
|
5906
5950
|
onClick: handleClearValue
|
|
5907
|
-
}))) : null) : null,
|
|
5951
|
+
}))) : null) : null, fetchLoading && MANUAL_REQ && hasDefaultOptions ?
|
|
5952
|
+
/*#__PURE__*/
|
|
5953
|
+
// only loading
|
|
5954
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", {
|
|
5955
|
+
tabIndex: -1,
|
|
5956
|
+
type: "button",
|
|
5957
|
+
className: "list-group-item list-group-item-action no-match border-0 custom-select-multi__control-option-item--nomatch",
|
|
5958
|
+
disabled: true
|
|
5959
|
+
}, loadingOutput)) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", {
|
|
5908
5960
|
tabIndex: -1,
|
|
5909
5961
|
type: "button",
|
|
5910
5962
|
className: "list-group-item list-group-item-action no-match border-0 custom-select-multi__control-option-item--nomatch hide",
|
|
@@ -5913,37 +5965,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
5913
5965
|
// (1) Handling async data with the click event
|
|
5914
5966
|
!FIRST_REQUEST_AUTO && !handleFirstFetchCompleted ||
|
|
5915
5967
|
// (2) Every time the input changes or the search button is clicked, a data request will be triggered
|
|
5916
|
-
fetchUpdate && !filterItemsHasNoMatchData && controlTempValue !== '' ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(
|
|
5917
|
-
className: "cus-select-loader"
|
|
5918
|
-
}, loader || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("svg", {
|
|
5919
|
-
height: "12px",
|
|
5920
|
-
width: "12px",
|
|
5921
|
-
viewBox: "0 0 512 512"
|
|
5922
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("g", null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
5923
|
-
fill: "inherit",
|
|
5924
|
-
d: "M256,0c-23.357,0-42.297,18.932-42.297,42.288c0,23.358,18.94,42.288,42.297,42.288c23.357,0,42.279-18.93,42.279-42.288C298.279,18.932,279.357,0,256,0z"
|
|
5925
|
-
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
5926
|
-
fill: "inherit",
|
|
5927
|
-
d: "M256,427.424c-23.357,0-42.297,18.931-42.297,42.288C213.703,493.07,232.643,512,256,512c23.357,0,42.279-18.93,42.279-42.288C298.279,446.355,279.357,427.424,256,427.424z"
|
|
5928
|
-
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
5929
|
-
fill: "inherit",
|
|
5930
|
-
d: "M74.974,74.983c-16.52,16.511-16.52,43.286,0,59.806c16.52,16.52,43.287,16.52,59.806,0c16.52-16.511,16.52-43.286,0-59.806C118.261,58.463,91.494,58.463,74.974,74.983z"
|
|
5931
|
-
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
5932
|
-
fill: "inherit",
|
|
5933
|
-
d: "M377.203,377.211c-16.503,16.52-16.503,43.296,0,59.815c16.519,16.52,43.304,16.52,59.806,0c16.52-16.51,16.52-43.295,0-59.815C420.489,360.692,393.722,360.7,377.203,377.211z"
|
|
5934
|
-
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
5935
|
-
fill: "inherit",
|
|
5936
|
-
d: "M84.567,256c0.018-23.348-18.922-42.279-42.279-42.279c-23.357-0.009-42.297,18.932-42.279,42.288c-0.018,23.348,18.904,42.279,42.279,42.279C65.645,298.288,84.567,279.358,84.567,256z"
|
|
5937
|
-
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
5938
|
-
fill: "inherit",
|
|
5939
|
-
d: "M469.712,213.712c-23.357,0-42.279,18.941-42.297,42.288c0,23.358,18.94,42.288,42.297,42.297c23.357,0,42.297-18.94,42.279-42.297C512.009,232.652,493.069,213.712,469.712,213.712z"
|
|
5940
|
-
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
5941
|
-
fill: "inherit",
|
|
5942
|
-
d: "M74.991,377.22c-16.519,16.511-16.519,43.296,0,59.806c16.503,16.52,43.27,16.52,59.789,0c16.52-16.519,16.52-43.295,0-59.815C118.278,360.692,91.511,360.692,74.991,377.22z"
|
|
5943
|
-
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
5944
|
-
fill: "inherit",
|
|
5945
|
-
d: "M437.026,134.798c16.52-16.52,16.52-43.304,0-59.824c-16.519-16.511-43.304-16.52-59.823,0c-16.52,16.52-16.503,43.295,0,59.815C393.722,151.309,420.507,151.309,437.026,134.798z"
|
|
5946
|
-
}))))) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, fetchNoneInfo)), optionsData ? optionsData.map(function (item, index) {
|
|
5968
|
+
fetchUpdate && !filterItemsHasNoMatchData && controlTempValue !== '' ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, loadingOutput) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, fetchNoneInfo)), optionsData ? optionsData.map(function (item, index) {
|
|
5947
5969
|
var startItemBorder = index === 0 ? 'border-top-0' : '';
|
|
5948
5970
|
var endItemBorder = index === optionsData.length - 1 ? 'border-bottom-0' : '';
|
|
5949
5971
|
|
|
@@ -6047,7 +6069,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
6047
6069
|
}
|
|
6048
6070
|
})));
|
|
6049
6071
|
}
|
|
6050
|
-
}) : null))))) : null));
|
|
6072
|
+
}) : null)))))) : null));
|
|
6051
6073
|
});
|
|
6052
6074
|
/* harmony default export */ const src = (Select);
|
|
6053
6075
|
})();
|
package/Tooltip/index.css
CHANGED
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
* 9. Position Modifiers - Right
|
|
14
14
|
* 10. Size
|
|
15
15
|
*/
|
|
16
|
-
.tooltip__wrapper {
|
|
17
|
-
--tooltip-box-shadow: 0 5px 15px 0 rgba(0,0,0,.07), 0 15px 35px 0 rgba(50,50,93,.1);
|
|
18
|
-
--tooltip-content-bg: rgba(17, 17, 17, 0.9);
|
|
19
|
-
--tooltip-content-color: #fff;
|
|
20
|
-
--tooltip-content-font-size: 0.75em;
|
|
21
|
-
--tooltip-content-padding-x: 1em;
|
|
22
|
-
--tooltip-content-padding-y: .5em;
|
|
23
|
-
--tooltip-content-line-height: 1.5;
|
|
24
|
-
--tooltip-arrow-bg-top: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
25
|
-
--tooltip-arrow-bg-bottom: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
26
|
-
--tooltip-arrow-bg-left: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
27
|
-
--tooltip-arrow-bg-right: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
28
|
-
--tooltip-arrow-width: 18px;
|
|
29
|
-
--tooltip-arrow-height: 6px;
|
|
16
|
+
.cus-tooltip__wrapper {
|
|
17
|
+
--cus-tooltip-box-shadow: 0 5px 15px 0 rgba(0,0,0,.07), 0 15px 35px 0 rgba(50,50,93,.1);
|
|
18
|
+
--cus-tooltip-content-bg: rgba(17, 17, 17, 0.9);
|
|
19
|
+
--cus-tooltip-content-color: #fff;
|
|
20
|
+
--cus-tooltip-content-font-size: 0.75em;
|
|
21
|
+
--cus-tooltip-content-padding-x: 1em;
|
|
22
|
+
--cus-tooltip-content-padding-y: .5em;
|
|
23
|
+
--cus-tooltip-content-line-height: 1.5;
|
|
24
|
+
--cus-tooltip-arrow-bg-top: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
25
|
+
--cus-tooltip-arrow-bg-bottom: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
26
|
+
--cus-tooltip-arrow-bg-left: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
27
|
+
--cus-tooltip-arrow-bg-right: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
28
|
+
--cus-tooltip-arrow-width: 18px;
|
|
29
|
+
--cus-tooltip-arrow-height: 6px;
|
|
30
30
|
position: absolute;
|
|
31
31
|
z-index: 1055; /* --bs-modal-zindex */
|
|
32
32
|
pointer-events: none;
|
|
@@ -73,125 +73,126 @@
|
|
|
73
73
|
---------------------------
|
|
74
74
|
*/
|
|
75
75
|
}
|
|
76
|
-
.tooltip__wrapper::before {
|
|
76
|
+
.cus-tooltip__wrapper::before {
|
|
77
77
|
background-size: 100% auto !important;
|
|
78
78
|
content: "";
|
|
79
79
|
position: absolute;
|
|
80
80
|
}
|
|
81
|
-
.tooltip__wrapper.active {
|
|
81
|
+
.cus-tooltip__wrapper.active {
|
|
82
82
|
display: block !important;
|
|
83
83
|
}
|
|
84
|
-
.tooltip__wrapper.active::before,
|
|
85
|
-
.tooltip__wrapper.active > .tooltip__content {
|
|
84
|
+
.cus-tooltip__wrapper.active::before,
|
|
85
|
+
.cus-tooltip__wrapper.active > .cus-tooltip__content {
|
|
86
86
|
opacity: 1;
|
|
87
87
|
}
|
|
88
|
-
.tooltip__wrapper:focus::before,
|
|
89
|
-
.tooltip__wrapper:focus > .tooltip__content {
|
|
88
|
+
.cus-tooltip__wrapper:focus::before,
|
|
89
|
+
.cus-tooltip__wrapper:focus > .cus-tooltip__content {
|
|
90
90
|
opacity: 1;
|
|
91
91
|
}
|
|
92
|
-
.tooltip__wrapper::before,
|
|
93
|
-
.tooltip__wrapper > .tooltip__content {
|
|
92
|
+
.cus-tooltip__wrapper::before,
|
|
93
|
+
.cus-tooltip__wrapper > .cus-tooltip__content {
|
|
94
94
|
backface-visibility: hidden;
|
|
95
95
|
will-change: transform;
|
|
96
96
|
opacity: 0;
|
|
97
97
|
box-sizing: border-box;
|
|
98
98
|
z-index: 10;
|
|
99
99
|
transform-origin: top;
|
|
100
|
-
box-shadow: var(--tooltip-box-shadow);
|
|
100
|
+
box-shadow: var(--cus-tooltip-box-shadow);
|
|
101
101
|
transition: none !important; /* Don't use transition if position is outside window */
|
|
102
102
|
}
|
|
103
|
-
.tooltip__wrapper > .tooltip__content {
|
|
104
|
-
|
|
103
|
+
.cus-tooltip__wrapper > .cus-tooltip__content {
|
|
104
|
+
pointer-events: auto;
|
|
105
|
+
background: var(--cus-tooltip-content-bg);
|
|
105
106
|
border-radius: 4px;
|
|
106
|
-
color: var(--tooltip-content-color);
|
|
107
|
+
color: var(--cus-tooltip-content-color);
|
|
107
108
|
content: attr(aria-label);
|
|
108
|
-
font-size: var(--tooltip-content-font-size);
|
|
109
|
+
font-size: var(--cus-tooltip-content-font-size);
|
|
109
110
|
font-weight: normal;
|
|
110
111
|
text-transform: none;
|
|
111
|
-
padding: var(--tooltip-content-padding-y) var(--tooltip-content-padding-x);
|
|
112
|
+
padding: var(--cus-tooltip-content-padding-y) var(--cus-tooltip-content-padding-x);
|
|
112
113
|
white-space: nowrap;
|
|
113
114
|
box-sizing: content-box;
|
|
114
|
-
line-height: var(--tooltip-content-line-height);
|
|
115
|
+
line-height: var(--cus-tooltip-content-line-height);
|
|
115
116
|
}
|
|
116
|
-
.tooltip__wrapper > .tooltip__content img {
|
|
117
|
+
.cus-tooltip__wrapper > .cus-tooltip__content img {
|
|
117
118
|
height: auto !important;
|
|
118
119
|
margin: 0.5rem 0;
|
|
119
120
|
}
|
|
120
|
-
.tooltip__wrapper[data-microtip-position|=top]::before {
|
|
121
|
-
background: var(--tooltip-arrow-bg-top);
|
|
122
|
-
height: var(--tooltip-arrow-height);
|
|
123
|
-
width: var(--tooltip-arrow-width);
|
|
121
|
+
.cus-tooltip__wrapper[data-microtip-position|=top]::before {
|
|
122
|
+
background: var(--cus-tooltip-arrow-bg-top);
|
|
123
|
+
height: var(--cus-tooltip-arrow-height);
|
|
124
|
+
width: var(--cus-tooltip-arrow-width);
|
|
124
125
|
}
|
|
125
|
-
.tooltip__wrapper[data-microtip-position|=top] > .tooltip__content {
|
|
126
|
-
margin-bottom: var(--tooltip-arrow-height);
|
|
126
|
+
.cus-tooltip__wrapper[data-microtip-position|=top] > .cus-tooltip__content {
|
|
127
|
+
margin-bottom: var(--cus-tooltip-arrow-height);
|
|
127
128
|
}
|
|
128
|
-
.tooltip__wrapper[data-microtip-position|=top]::before {
|
|
129
|
-
top: calc(100% - var(--tooltip-arrow-height));
|
|
130
|
-
left: calc(var(--tooltip-arrow-width) / 2 * -1);
|
|
129
|
+
.cus-tooltip__wrapper[data-microtip-position|=top]::before {
|
|
130
|
+
top: calc(100% - var(--cus-tooltip-arrow-height));
|
|
131
|
+
left: calc(var(--cus-tooltip-arrow-width) / 2 * -1);
|
|
131
132
|
}
|
|
132
|
-
.tooltip__wrapper[data-microtip-position|=top] > .tooltip__content {
|
|
133
|
-
bottom: calc(100% + var(--tooltip-arrow-height));
|
|
133
|
+
.cus-tooltip__wrapper[data-microtip-position|=top] > .cus-tooltip__content {
|
|
134
|
+
bottom: calc(100% + var(--cus-tooltip-arrow-height));
|
|
134
135
|
left: 50%;
|
|
135
136
|
transform: translateX(-50%);
|
|
136
137
|
}
|
|
137
|
-
.tooltip__wrapper[data-microtip-position=top-left] > .tooltip__content {
|
|
138
|
-
bottom: calc(100% + var(--tooltip-arrow-height));
|
|
138
|
+
.cus-tooltip__wrapper[data-microtip-position=top-left] > .cus-tooltip__content {
|
|
139
|
+
bottom: calc(100% + var(--cus-tooltip-arrow-height));
|
|
139
140
|
left: 50%;
|
|
140
|
-
transform: translateX(calc(-100% + var(--tooltip-arrow-width)));
|
|
141
|
+
transform: translateX(calc(-100% + var(--cus-tooltip-arrow-width)));
|
|
141
142
|
}
|
|
142
|
-
.tooltip__wrapper[data-microtip-position=top-right] > .tooltip__content {
|
|
143
|
-
bottom: calc(100% + var(--tooltip-arrow-height));
|
|
143
|
+
.cus-tooltip__wrapper[data-microtip-position=top-right] > .cus-tooltip__content {
|
|
144
|
+
bottom: calc(100% + var(--cus-tooltip-arrow-height));
|
|
144
145
|
left: 50%;
|
|
145
|
-
transform: translateX(calc(0% - var(--tooltip-arrow-width)));
|
|
146
|
+
transform: translateX(calc(0% - var(--cus-tooltip-arrow-width)));
|
|
146
147
|
}
|
|
147
|
-
.tooltip__wrapper[data-microtip-position|=bottom]::before {
|
|
148
|
-
background: var(--tooltip-arrow-bg-bottom);
|
|
149
|
-
height: var(--tooltip-arrow-height);
|
|
150
|
-
width: var(--tooltip-arrow-width);
|
|
148
|
+
.cus-tooltip__wrapper[data-microtip-position|=bottom]::before {
|
|
149
|
+
background: var(--cus-tooltip-arrow-bg-bottom);
|
|
150
|
+
height: var(--cus-tooltip-arrow-height);
|
|
151
|
+
width: var(--cus-tooltip-arrow-width);
|
|
151
152
|
margin-top: 5px;
|
|
152
153
|
margin-bottom: 0;
|
|
153
154
|
}
|
|
154
|
-
.tooltip__wrapper[data-microtip-position|=bottom] > .tooltip__content {
|
|
155
|
-
margin-top: var(--tooltip-arrow-height);
|
|
155
|
+
.cus-tooltip__wrapper[data-microtip-position|=bottom] > .cus-tooltip__content {
|
|
156
|
+
margin-top: var(--cus-tooltip-arrow-height);
|
|
156
157
|
}
|
|
157
|
-
.tooltip__wrapper[data-microtip-position|=bottom]::before {
|
|
158
|
-
bottom: calc(100% - var(--tooltip-arrow-height));
|
|
159
|
-
left: calc(var(--tooltip-arrow-width) / 2 * -1);
|
|
158
|
+
.cus-tooltip__wrapper[data-microtip-position|=bottom]::before {
|
|
159
|
+
bottom: calc(100% - var(--cus-tooltip-arrow-height));
|
|
160
|
+
left: calc(var(--cus-tooltip-arrow-width) / 2 * -1);
|
|
160
161
|
}
|
|
161
|
-
.tooltip__wrapper[data-microtip-position|=bottom] > .tooltip__content {
|
|
162
|
+
.cus-tooltip__wrapper[data-microtip-position|=bottom] > .cus-tooltip__content {
|
|
162
163
|
bottom: auto;
|
|
163
|
-
top: calc(100% + var(--tooltip-arrow-height));
|
|
164
|
+
top: calc(100% + var(--cus-tooltip-arrow-height));
|
|
164
165
|
left: 50%;
|
|
165
166
|
transform: translateX(-50%);
|
|
166
167
|
}
|
|
167
|
-
.tooltip__wrapper[data-microtip-position=bottom-left] > .tooltip__content {
|
|
168
|
+
.cus-tooltip__wrapper[data-microtip-position=bottom-left] > .cus-tooltip__content {
|
|
168
169
|
bottom: auto;
|
|
169
|
-
top: calc(100% + var(--tooltip-arrow-height));
|
|
170
|
+
top: calc(100% + var(--cus-tooltip-arrow-height));
|
|
170
171
|
left: 50%;
|
|
171
|
-
transform: translateX(calc(-100% + var(--tooltip-arrow-width)));
|
|
172
|
+
transform: translateX(calc(-100% + var(--cus-tooltip-arrow-width)));
|
|
172
173
|
}
|
|
173
|
-
.tooltip__wrapper[data-microtip-position=bottom-right] > .tooltip__content {
|
|
174
|
+
.cus-tooltip__wrapper[data-microtip-position=bottom-right] > .cus-tooltip__content {
|
|
174
175
|
bottom: auto;
|
|
175
|
-
top: calc(100% + var(--tooltip-arrow-height));
|
|
176
|
+
top: calc(100% + var(--cus-tooltip-arrow-height));
|
|
176
177
|
left: 50%;
|
|
177
|
-
transform: translateX(calc(0% - var(--tooltip-arrow-width)));
|
|
178
|
+
transform: translateX(calc(0% - var(--cus-tooltip-arrow-width)));
|
|
178
179
|
}
|
|
179
|
-
.tooltip__wrapper[data-microtip-size=auto].tooltip__content {
|
|
180
|
+
.cus-tooltip__wrapper[data-microtip-size=auto].cus-tooltip__content {
|
|
180
181
|
white-space: nowrap;
|
|
181
182
|
width: auto;
|
|
182
183
|
max-width: 530px;
|
|
183
184
|
overflow: hidden;
|
|
184
185
|
text-overflow: ellipsis;
|
|
185
186
|
}
|
|
186
|
-
.tooltip__wrapper[data-microtip-size=small].tooltip__content {
|
|
187
|
+
.cus-tooltip__wrapper[data-microtip-size=small].cus-tooltip__content {
|
|
187
188
|
white-space: initial;
|
|
188
189
|
width: 80px;
|
|
189
190
|
}
|
|
190
|
-
.tooltip__wrapper[data-microtip-size=medium].tooltip__content {
|
|
191
|
+
.cus-tooltip__wrapper[data-microtip-size=medium].cus-tooltip__content {
|
|
191
192
|
white-space: initial;
|
|
192
193
|
width: 150px;
|
|
193
194
|
}
|
|
194
|
-
.tooltip__wrapper[data-microtip-size=large].tooltip__content {
|
|
195
|
+
.cus-tooltip__wrapper[data-microtip-size=large].cus-tooltip__content {
|
|
195
196
|
white-space: initial;
|
|
196
197
|
width: 260px;
|
|
197
198
|
}
|
package/Tooltip/index.d.ts
CHANGED
|
@@ -16,9 +16,23 @@ export declare type TooltipProps = {
|
|
|
16
16
|
mouseOutDelay?: number;
|
|
17
17
|
/** Set a piece of text or HTML code */
|
|
18
18
|
content?: React.ReactNode;
|
|
19
|
+
/** If true, Tooltip is controlled by parent via ref, not by mouse events */
|
|
20
|
+
controlled?: boolean;
|
|
21
|
+
/** Custom color for the popup arrow */
|
|
22
|
+
popupArrowColor?: number[];
|
|
23
|
+
/** Custom style for the popup content */
|
|
24
|
+
popupContentStyle?: React.CSSProperties;
|
|
25
|
+
/** If true, tooltip closes only if mouse does not enter wrapper within timeout after leaving trigger */
|
|
26
|
+
delayedClose?: boolean;
|
|
27
|
+
/** Timeout in ms for delayed close (ms) */
|
|
28
|
+
delayedCloseTimeout?: number;
|
|
29
|
+
/** Called when mouse enters the tooltip wrapper */
|
|
30
|
+
onContentMouseEnter?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
31
|
+
/** Called when mouse leaves the tooltip wrapper */
|
|
32
|
+
onContentMouseLeave?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
19
33
|
/** -- */
|
|
20
34
|
id?: string;
|
|
21
35
|
children: React.ReactNode;
|
|
22
36
|
};
|
|
23
|
-
declare const Tooltip:
|
|
37
|
+
declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<any>>;
|
|
24
38
|
export default Tooltip;
|