shineout 3.5.0-beta.11 → 3.5.0-beta.12
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/cjs/index.js +1 -1
- package/dist/shineout.js +184 -120
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -500,5 +500,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
500
500
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
501
501
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
502
502
|
var _default = exports.default = {
|
|
503
|
-
version: '3.5.0-beta.
|
|
503
|
+
version: '3.5.0-beta.12'
|
|
504
504
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -6807,6 +6807,11 @@ var treeArrow = ['M18.2209 9.72141L12.6344 15.2952C12.2441 15.6847 11.6121 15.68
|
|
|
6807
6807
|
var treePlus = ['M19.5 2C20.8807 2 22 3.11929 22 4.5V19.5C22 20.8807 20.8807 22 19.5 22H4.5C3.11929 22 2 20.8807 2 19.5V4.5C2 3.11929 3.11929 2 4.5 2H19.5ZM19.5 4H4.5C4.22386 4 4 4.22386 4 4.5V19.5C4 19.7761 4.22386 20 4.5 20H19.5C19.7761 20 20 19.7761 20 19.5V4.5C20 4.22386 19.7761 4 19.5 4ZM12 7C12.5128 7 12.9355 7.38604 12.9933 7.88338L13 8V11H16C16.5523 11 17 11.4477 17 12C17 12.5128 16.614 12.9355 16.1166 12.9933L16 13H13V16C13 16.5523 12.5523 17 12 17C11.4872 17 11.0645 16.614 11.0067 16.1166L11 16V13H8C7.44772 13 7 12.5523 7 12C7 11.4872 7.38604 11.0645 7.88338 11.0067L8 11H11V8C11 7.44772 11.4477 7 12 7Z'];
|
|
6808
6808
|
var treeMinus = ['M22 4.5C22 3.11929 20.8807 2 19.5 2H4.5C3.11929 2 2 3.11929 2 4.5V19.5C2 20.8807 3.11929 22 4.5 22H19.5C20.8807 22 22 20.8807 22 19.5V4.5ZM4.5 4H19.5C19.7761 4 20 4.22386 20 4.5V19.5C20 19.7761 19.7761 20 19.5 20H4.5C4.22386 20 4 19.7761 4 19.5V4.5C4 4.22386 4.22386 4 4.5 4ZM8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13H16C16.5523 13 17 12.5523 17 12C17 11.4477 16.5523 11 16 11H8Z'];
|
|
6809
6809
|
var pcHelpCircleFill = ['M11 0C13.9562 0 16.7292 1.17289 18.7782 3.22183C20.8271 5.27079 22 8.04381 22 11C22 13.9562 20.8271 16.7292 18.7782 18.7782C16.7292 20.8271 13.9562 22 11 22C8.04381 22 5.27079 20.8271 3.22182 18.7782C1.17289 16.7292 0 13.9562 0 11C0 8.04381 1.17289 5.27079 3.22183 3.22182C5.27079 1.17289 8.04381 0 11 0ZM11 15.3125C10.3097 15.3125 9.75 15.8721 9.75 16.5625C9.75 17.2528 10.3097 17.8125 11 17.8125C11.6903 17.8125 12.25 17.2528 12.25 16.5625C12.25 15.8721 11.6903 15.3125 11 15.3125ZM11 4.31245C8.79086 4.31245 7 6.10332 7 8.31245C7 8.86474 7.44772 9.31245 8 9.31245C8.55229 9.31245 9 8.86474 9 8.31245C9 7.20789 9.89543 6.31245 11 6.31245C12.1046 6.31245 13 7.20789 13 8.31245C13 9.41702 12.1046 10.3125 11 10.3125L10.8834 10.3192C10.386 10.3769 10 10.7996 10 11.3125V13.3125L10.0067 13.4291C10.0645 13.9264 10.4872 14.3125 11 14.3125L11.1166 14.3057C11.614 14.248 12 13.8253 12 13.3125V12.185L12.1553 12.1431C13.8012 11.6474 15 10.1199 15 8.31245C15 6.10332 13.2091 4.31245 11 4.31245Z'];
|
|
6810
|
+
var pcHelpCircleOutline = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6811
|
+
fillRule: "evenodd",
|
|
6812
|
+
clipRule: "evenodd",
|
|
6813
|
+
d: "M12.002 1C18.0771 1 23.002 5.92487 23.002 12C23.002 18.0751 18.0771 23 12.002 23C5.92682 23 1.00195 18.0751 1.00195 12C1.00195 5.92487 5.92682 1 12.002 1ZM12.002 3C7.03139 3 3.00195 7.02944 3.00195 12C3.00195 16.9706 7.03139 21 12.002 21C16.9725 21 21.002 16.9706 21.002 12C21.002 7.02944 16.9725 3 12.002 3ZM12.002 16.0263C12.7225 16.0263 13.3066 16.6105 13.3066 17.331C13.3066 18.0516 12.7225 18.6357 12.002 18.6357C11.2814 18.6357 10.6973 18.0516 10.6973 17.331C10.6973 16.6105 11.2814 16.0263 12.002 16.0263ZM12.002 5.36428C14.0358 5.36428 15.6895 7.02546 15.6895 9.06758C15.6895 9.99304 15.2656 10.622 14.1552 11.7338C14.1184 11.7707 14.1184 11.7707 14.0815 11.8076C13.2372 12.65 12.9395 13.0376 12.9395 13.3995V14.5621C12.9395 15.0797 12.5195 15.5003 12.002 15.5003C11.4844 15.5003 11.0644 15.0803 11.0644 14.5628V13.4002C11.0644 12.3785 11.5209 11.715 12.7559 10.4811C12.783 10.454 12.783 10.454 12.81 10.4269L12.8599 10.3769L12.9277 10.3087C12.9406 10.2956 12.9562 10.2798 12.9769 10.2589C13.5549 9.67191 13.8144 9.31374 13.8144 9.06758C13.8144 8.05926 13.0006 7.23928 12.002 7.23928C10.9828 7.23928 10.1895 8.02064 10.1895 9.02083C10.1895 9.53842 9.76954 9.95831 9.25195 9.95831C8.73437 9.95831 8.31444 9.53839 8.31444 9.02083C8.31444 7.00396 9.96896 5.36428 12.002 5.36428Z"
|
|
6814
|
+
}, 0)];
|
|
6810
6815
|
var pcInfoCircleFill = ['M12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23ZM12 8C12.5523 8 13 7.55228 13 7C13 6.44772 12.5523 6 12 6C11.4477 6 11 6.44772 11 7C11 7.55228 11.4477 8 12 8ZM12 19C12.5523 19 13 18.5523 13 18V10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10V18C11 18.5523 11.4477 19 12 19Z'];
|
|
6811
6816
|
var search = ['M11 2C15.9706 2 20 6.02944 20 11C20 13.1248 19.2637 15.0776 18.0323 16.6172L21.1213 19.7071C21.5118 20.0976 21.5118 20.7308 21.1213 21.1213C20.7308 21.5118 20.0976 21.5118 19.7071 21.1213L16.6172 18.0323C15.0776 19.2637 13.1248 20 11 20C6.02944 20 2 15.9706 2 11C2 6.02944 6.02944 2 11 2ZM11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4Z'];
|
|
6812
6817
|
var icons_link = ['M8.83231 20.7322C7.27024 22.2943 4.73759 22.2943 3.17546 20.7322C1.66545 19.2222 1.61512 16.8053 3.02446 15.2347L3.17546 15.0754L12.6109 3.70711C14.7588 1.55923 18.2412 1.55923 20.3891 3.70711C22.4773 5.79532 22.5353 9.14496 20.5631 11.3032L20.3891 11.4853L12.3679 21.4393C11.9773 21.8299 11.3442 21.8299 10.9536 21.4394C10.5932 21.0789 10.5654 20.5116 10.8705 20.1193L10.9536 20.0251L18.9749 10.0711C20.3417 8.70423 20.3417 6.48814 18.9749 5.12132C17.6569 3.8033 15.5492 3.75623 14.1747 4.9801L14.0251 5.12132L4.58968 16.4896C3.80864 17.2706 3.80864 18.537 4.58966 19.318C5.32963 20.058 6.5051 20.0969 7.29088 19.4348L7.41809 19.318L16.8535 7.94978C17.0488 7.7545 17.0488 7.43787 16.8536 7.24262C16.68 7.06904 16.4106 7.04975 16.2157 7.18476L16.1464 7.24261L8.12521 17.1967C7.73468 17.5873 7.10152 17.5873 6.71099 17.1967C6.35051 16.8362 6.32277 16.269 6.6278 15.8767L6.71099 15.7825L14.7322 5.8284C15.7085 4.85208 17.2915 4.85208 18.2678 5.82843C19.2016 6.7623 19.2422 8.25112 18.3896 9.23328L18.2678 9.36397L8.83231 20.7322Z'];
|
|
@@ -6831,6 +6836,7 @@ var Icons = {
|
|
|
6831
6836
|
ArrowDown: icon(arrowDown),
|
|
6832
6837
|
PcArrowFillDown: icon(caretFill),
|
|
6833
6838
|
PcHelpCircleFill: icon(pcHelpCircleFill),
|
|
6839
|
+
PcHelpCircleOutline: icon(pcHelpCircleOutline),
|
|
6834
6840
|
PcInfoCircleFill: icon(pcInfoCircleFill),
|
|
6835
6841
|
PcCloseCircleFill: icon(danger),
|
|
6836
6842
|
PcWarningCircleFill: icon(pcAttentionCircleFill),
|
|
@@ -6870,6 +6876,9 @@ var config = {
|
|
|
6870
6876
|
Error: icons.PcWarningCircleFill,
|
|
6871
6877
|
Confirm: icons.PcHelpCircleFill
|
|
6872
6878
|
},
|
|
6879
|
+
form: {
|
|
6880
|
+
Tooltip: icons.PcHelpCircleOutline
|
|
6881
|
+
},
|
|
6873
6882
|
breadcrumb: {
|
|
6874
6883
|
DropdownArrow: icons.ArrowDown
|
|
6875
6884
|
},
|
|
@@ -11993,7 +12002,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11993
12002
|
};
|
|
11994
12003
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11995
12004
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11996
|
-
/* harmony default export */ var version = ('3.5.0-beta.
|
|
12005
|
+
/* harmony default export */ var version = ('3.5.0-beta.12');
|
|
11997
12006
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11998
12007
|
|
|
11999
12008
|
|
|
@@ -13541,6 +13550,9 @@ var emptyTokens = {
|
|
|
13541
13550
|
var formTokens = {
|
|
13542
13551
|
formItemFontSize: 'Font-14',
|
|
13543
13552
|
formItemFontColor: 'Neutral-text-5',
|
|
13553
|
+
formItemTooltipIconColor: 'Neutral-text-4',
|
|
13554
|
+
formItemTooltipIconFontSize: 'Font-14',
|
|
13555
|
+
formItemTooltipIconMarginXStart: 'Spacing-4',
|
|
13544
13556
|
formItemMarginYEnd: 'Spacing-12',
|
|
13545
13557
|
formItemMarginXEnd: 'Spacing-16',
|
|
13546
13558
|
formItemLabelWidth: '140px',
|
|
@@ -18918,6 +18930,18 @@ var formItemStyle = {
|
|
|
18918
18930
|
display: 'inline-block'
|
|
18919
18931
|
}
|
|
18920
18932
|
},
|
|
18933
|
+
labelTooltip: {
|
|
18934
|
+
display: 'inline-block',
|
|
18935
|
+
verticalAlign: 'middle',
|
|
18936
|
+
cursor: 'help',
|
|
18937
|
+
color: src.formItemTooltipIconColor,
|
|
18938
|
+
width: src.formItemTooltipIconFontSize,
|
|
18939
|
+
fontSize: src.formItemTooltipIconFontSize,
|
|
18940
|
+
marginLeft: src.formItemTooltipIconMarginXStart,
|
|
18941
|
+
'& svg': {
|
|
18942
|
+
width: '100%'
|
|
18943
|
+
}
|
|
18944
|
+
},
|
|
18921
18945
|
labelLeft: {
|
|
18922
18946
|
textAlign: 'start'
|
|
18923
18947
|
},
|
|
@@ -38587,6 +38611,14 @@ var result_Result = function Result(props) {
|
|
|
38587
38611
|
var empty = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
38588
38612
|
return isEmptyResult();
|
|
38589
38613
|
}, [props.value]);
|
|
38614
|
+
var basePlaceholder = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
38615
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
38616
|
+
className: classnames_default()(styles.placeholder, styles.ellipsis),
|
|
38617
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
38618
|
+
children: placeholder
|
|
38619
|
+
})
|
|
38620
|
+
});
|
|
38621
|
+
}, [placeholder]);
|
|
38590
38622
|
var isCompressedBound = function isCompressedBound() {
|
|
38591
38623
|
return compressedBound && result_isNumber(compressedBound) && compressedBound >= 1;
|
|
38592
38624
|
};
|
|
@@ -38604,7 +38636,9 @@ var result_Result = function Result(props) {
|
|
|
38604
38636
|
if (!multiple && valueProp && valueProp !== 0) {
|
|
38605
38637
|
var _result = getDataByValues(value);
|
|
38606
38638
|
_placeholder = renderResultContent(_result[0]);
|
|
38607
|
-
if (_placeholder === undefined)
|
|
38639
|
+
if (_placeholder === undefined) {
|
|
38640
|
+
return basePlaceholder;
|
|
38641
|
+
}
|
|
38608
38642
|
}
|
|
38609
38643
|
return /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
38610
38644
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(result_input, {
|
|
@@ -38689,12 +38723,7 @@ var result_Result = function Result(props) {
|
|
|
38689
38723
|
return renderInput();
|
|
38690
38724
|
}
|
|
38691
38725
|
if (!placeholder) return renderNbsp();
|
|
38692
|
-
return
|
|
38693
|
-
className: classnames_default()(styles.placeholder, styles.ellipsis),
|
|
38694
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
38695
|
-
children: placeholder
|
|
38696
|
-
})
|
|
38697
|
-
});
|
|
38726
|
+
return basePlaceholder;
|
|
38698
38727
|
};
|
|
38699
38728
|
var renderSingleResult = function renderSingleResult() {
|
|
38700
38729
|
if (isEmptyResult()) return renderNbsp();
|
|
@@ -47731,9 +47760,120 @@ var UseFormItem = function UseFormItem() {
|
|
|
47731
47760
|
};
|
|
47732
47761
|
};
|
|
47733
47762
|
/* harmony default export */ var use_form_item = (UseFormItem);
|
|
47763
|
+
;// CONCATENATED MODULE: ../base/src/tooltip/tooltip.tsx
|
|
47764
|
+
|
|
47765
|
+
|
|
47766
|
+
|
|
47767
|
+
|
|
47768
|
+
|
|
47769
|
+
|
|
47770
|
+
|
|
47771
|
+
|
|
47772
|
+
|
|
47773
|
+
var defaultDelay = 0;
|
|
47774
|
+
var Tooltip = function Tooltip(props) {
|
|
47775
|
+
var _jssStyle$tooltip;
|
|
47776
|
+
var _props$trigger = props.trigger,
|
|
47777
|
+
trigger = _props$trigger === void 0 ? 'hover' : _props$trigger,
|
|
47778
|
+
priorityDirection = props.priorityDirection,
|
|
47779
|
+
children = props.children,
|
|
47780
|
+
tip = props.tip,
|
|
47781
|
+
disabledChild = props.disabledChild,
|
|
47782
|
+
jssStyle = props.jssStyle,
|
|
47783
|
+
className = props.className,
|
|
47784
|
+
style = props.style,
|
|
47785
|
+
zIndex = props.zIndex,
|
|
47786
|
+
_props$type = props.type,
|
|
47787
|
+
type = _props$type === void 0 ? 'default' : _props$type,
|
|
47788
|
+
_props$position = props.position,
|
|
47789
|
+
popsitionProps = _props$position === void 0 ? 'auto' : _props$position;
|
|
47790
|
+
var arrowStyleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
|
|
47791
|
+
var tooltipClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$tooltip = jssStyle.tooltip) === null || _jssStyle$tooltip === void 0 ? void 0 : _jssStyle$tooltip.call(jssStyle);
|
|
47792
|
+
var config = useConfig();
|
|
47793
|
+
var childrenProps = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children) ? children === null || children === void 0 ? void 0 : children.props : {};
|
|
47794
|
+
var delay = props.delay || props.mouseEnterDelay || defaultDelay;
|
|
47795
|
+
var _usePopup = use_popup({
|
|
47796
|
+
position: popsitionProps,
|
|
47797
|
+
trigger: trigger,
|
|
47798
|
+
autoMode: 'popover',
|
|
47799
|
+
priorityDirection: priorityDirection,
|
|
47800
|
+
mouseEnterDelay: delay,
|
|
47801
|
+
targetEvents: disabledChild ? {} : childrenProps
|
|
47802
|
+
}),
|
|
47803
|
+
open = _usePopup.open,
|
|
47804
|
+
position = _usePopup.position,
|
|
47805
|
+
getTargetProps = _usePopup.getTargetProps,
|
|
47806
|
+
targetRef = _usePopup.targetRef,
|
|
47807
|
+
popupRef = _usePopup.popupRef,
|
|
47808
|
+
arrowRef = _usePopup.arrowRef;
|
|
47809
|
+
if (! /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children)) {
|
|
47810
|
+
console.error(new Error('Tooltip children expect a single ReactElement.'));
|
|
47811
|
+
return null;
|
|
47812
|
+
}
|
|
47813
|
+
if (!tip) return children;
|
|
47814
|
+
var inner = disabledChild ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
47815
|
+
className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.target,
|
|
47816
|
+
style: {
|
|
47817
|
+
cursor: 'not-allowed'
|
|
47818
|
+
},
|
|
47819
|
+
children: /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
|
|
47820
|
+
style: objectSpread2_default()(objectSpread2_default()({}, childrenProps.style), {}, {
|
|
47821
|
+
pointerEvents: 'none'
|
|
47822
|
+
})
|
|
47823
|
+
})
|
|
47824
|
+
}) : children;
|
|
47825
|
+
var events = getTargetProps();
|
|
47826
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
47827
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("noscript", {
|
|
47828
|
+
ref: function ref(el) {
|
|
47829
|
+
if (!el) return;
|
|
47830
|
+
var targetEl = el.nextElementSibling;
|
|
47831
|
+
if (!targetEl) return;
|
|
47832
|
+
if (targetRef.current === targetEl) return;
|
|
47833
|
+
targetRef.current = targetEl;
|
|
47834
|
+
}
|
|
47835
|
+
}, 'ns'), /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(inner, events), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
|
|
47836
|
+
focus: open,
|
|
47837
|
+
parentElRef: targetRef,
|
|
47838
|
+
popupElRef: popupRef,
|
|
47839
|
+
arrowRef: arrowRef,
|
|
47840
|
+
absolute: true,
|
|
47841
|
+
adjust: popsitionProps === 'auto',
|
|
47842
|
+
position: position,
|
|
47843
|
+
fixedWidth: false,
|
|
47844
|
+
popupGap: 0
|
|
47845
|
+
// arrowStyleRef={arrowStyleRef}
|
|
47846
|
+
,
|
|
47847
|
+
zIndex: zIndex,
|
|
47848
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
47849
|
+
className: classnames_default()(className, tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapper, open && (tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapperOpen))
|
|
47850
|
+
}, getDataAttribute({
|
|
47851
|
+
type: type,
|
|
47852
|
+
position: position
|
|
47853
|
+
})), {}, {
|
|
47854
|
+
ref: popupRef,
|
|
47855
|
+
onMouseLeave: events.onMouseLeave,
|
|
47856
|
+
dir: config.direction,
|
|
47857
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", objectSpread2_default()({
|
|
47858
|
+
ref: arrowRef,
|
|
47859
|
+
style: arrowStyleRef.current,
|
|
47860
|
+
className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.arrow
|
|
47861
|
+
}, getDataAttribute({
|
|
47862
|
+
role: 'arrow'
|
|
47863
|
+
}))), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
47864
|
+
style: style,
|
|
47865
|
+
className: classnames_default()(tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.content),
|
|
47866
|
+
children: tip
|
|
47867
|
+
})]
|
|
47868
|
+
}))
|
|
47869
|
+
})]
|
|
47870
|
+
});
|
|
47871
|
+
};
|
|
47872
|
+
/* harmony default export */ var src_tooltip_tooltip = (Tooltip);
|
|
47734
47873
|
;// CONCATENATED MODULE: ../base/src/form/form-item.tsx
|
|
47735
47874
|
|
|
47736
47875
|
|
|
47876
|
+
|
|
47737
47877
|
var form_item_excluded = ["children", "jssStyle", "className", "style", "label", "tip", "required"];
|
|
47738
47878
|
|
|
47739
47879
|
|
|
@@ -47741,6 +47881,10 @@ var form_item_excluded = ["children", "jssStyle", "className", "style", "label",
|
|
|
47741
47881
|
|
|
47742
47882
|
|
|
47743
47883
|
|
|
47884
|
+
|
|
47885
|
+
|
|
47886
|
+
|
|
47887
|
+
|
|
47744
47888
|
/* harmony default export */ var form_form_item = (function (props) {
|
|
47745
47889
|
var _jssStyle$formItem;
|
|
47746
47890
|
var children = props.children,
|
|
@@ -47765,6 +47909,36 @@ var form_item_excluded = ["children", "jssStyle", "className", "style", "label",
|
|
|
47765
47909
|
labelVerticalAlign = _labelConfig$rest.labelVerticalAlign,
|
|
47766
47910
|
inline = _labelConfig$rest.inline,
|
|
47767
47911
|
keepErrorHeight = _labelConfig$rest.keepErrorHeight;
|
|
47912
|
+
var renderLabel = function renderLabel() {
|
|
47913
|
+
if (label === undefined || label === null) return null;
|
|
47914
|
+
var $tooltip;
|
|
47915
|
+
if (typeof_default()(label) === 'object' && 'tooltip' in label && label.tooltip) {
|
|
47916
|
+
var _label$tooltip;
|
|
47917
|
+
var tooltipProps = objectSpread2_default()({
|
|
47918
|
+
jssStyle: {
|
|
47919
|
+
tooltip: useTooltipStyle
|
|
47920
|
+
}
|
|
47921
|
+
}, typeof_default()(label.tooltip) === 'object' && 'tip' in label.tooltip ? objectSpread2_default()(objectSpread2_default()({}, label.tooltip), {}, {
|
|
47922
|
+
tip: label.tooltip.tip,
|
|
47923
|
+
position: ((_label$tooltip = label.tooltip) === null || _label$tooltip === void 0 ? void 0 : _label$tooltip.position) || 'top'
|
|
47924
|
+
}) : {
|
|
47925
|
+
tip: label.tooltip,
|
|
47926
|
+
position: 'top'
|
|
47927
|
+
});
|
|
47928
|
+
$tooltip = /*#__PURE__*/(0,jsx_runtime.jsx)(src_tooltip_tooltip, objectSpread2_default()(objectSpread2_default()({}, tooltipProps), {}, {
|
|
47929
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
47930
|
+
className: formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.labelTooltip,
|
|
47931
|
+
children: tooltipProps.icon || icons_config.form.Tooltip
|
|
47932
|
+
})
|
|
47933
|
+
}));
|
|
47934
|
+
}
|
|
47935
|
+
if (typeof_default()(label) === 'object' && 'tooltip' in label) {
|
|
47936
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
47937
|
+
children: [label.content, $tooltip]
|
|
47938
|
+
});
|
|
47939
|
+
}
|
|
47940
|
+
return label;
|
|
47941
|
+
};
|
|
47768
47942
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
47769
47943
|
className: classnames_default()(className, formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapper, labelAlign === 'top' && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelTop), labelAlign !== 'top' && labelVerticalAlign === 'middle' && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelVerticalMiddle), labelAlign !== 'top' && labelVerticalAlign === 'bottom' && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperLabelVerticalBottom), inline && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperInline), keepErrorHeight && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperKeepHeight), required && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperRequired), (showError || tip) && (formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.wrapperTip))
|
|
47770
47944
|
}, attributes), {}, {
|
|
@@ -47774,7 +47948,7 @@ var form_item_excluded = ["children", "jssStyle", "className", "style", "label",
|
|
|
47774
47948
|
style: labelAlign !== 'top' || inline ? {
|
|
47775
47949
|
width: labelWidth
|
|
47776
47950
|
} : undefined,
|
|
47777
|
-
children:
|
|
47951
|
+
children: renderLabel()
|
|
47778
47952
|
}) : null, /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
47779
47953
|
className: formItemClasses === null || formItemClasses === void 0 ? void 0 : formItemClasses.control
|
|
47780
47954
|
}, getDataAttribute({
|
|
@@ -61029,116 +61203,6 @@ var BaseTextarea = function BaseTextarea(props) {
|
|
|
61029
61203
|
|
|
61030
61204
|
src_textarea_textarea_0.displayName = 'ShineoutTextarea';
|
|
61031
61205
|
/* harmony default export */ var src_textarea_0 = (src_textarea_textarea_0);
|
|
61032
|
-
;// CONCATENATED MODULE: ../base/src/tooltip/tooltip.tsx
|
|
61033
|
-
|
|
61034
|
-
|
|
61035
|
-
|
|
61036
|
-
|
|
61037
|
-
|
|
61038
|
-
|
|
61039
|
-
|
|
61040
|
-
|
|
61041
|
-
|
|
61042
|
-
var defaultDelay = 0;
|
|
61043
|
-
var Tooltip = function Tooltip(props) {
|
|
61044
|
-
var _jssStyle$tooltip;
|
|
61045
|
-
var _props$trigger = props.trigger,
|
|
61046
|
-
trigger = _props$trigger === void 0 ? 'hover' : _props$trigger,
|
|
61047
|
-
priorityDirection = props.priorityDirection,
|
|
61048
|
-
children = props.children,
|
|
61049
|
-
tip = props.tip,
|
|
61050
|
-
disabledChild = props.disabledChild,
|
|
61051
|
-
jssStyle = props.jssStyle,
|
|
61052
|
-
className = props.className,
|
|
61053
|
-
style = props.style,
|
|
61054
|
-
zIndex = props.zIndex,
|
|
61055
|
-
_props$type = props.type,
|
|
61056
|
-
type = _props$type === void 0 ? 'default' : _props$type,
|
|
61057
|
-
_props$position = props.position,
|
|
61058
|
-
popsitionProps = _props$position === void 0 ? 'auto' : _props$position;
|
|
61059
|
-
var arrowStyleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
|
|
61060
|
-
var tooltipClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$tooltip = jssStyle.tooltip) === null || _jssStyle$tooltip === void 0 ? void 0 : _jssStyle$tooltip.call(jssStyle);
|
|
61061
|
-
var config = useConfig();
|
|
61062
|
-
var childrenProps = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children) ? children === null || children === void 0 ? void 0 : children.props : {};
|
|
61063
|
-
var delay = props.delay || props.mouseEnterDelay || defaultDelay;
|
|
61064
|
-
var _usePopup = use_popup({
|
|
61065
|
-
position: popsitionProps,
|
|
61066
|
-
trigger: trigger,
|
|
61067
|
-
autoMode: 'popover',
|
|
61068
|
-
priorityDirection: priorityDirection,
|
|
61069
|
-
mouseEnterDelay: delay,
|
|
61070
|
-
targetEvents: disabledChild ? {} : childrenProps
|
|
61071
|
-
}),
|
|
61072
|
-
open = _usePopup.open,
|
|
61073
|
-
position = _usePopup.position,
|
|
61074
|
-
getTargetProps = _usePopup.getTargetProps,
|
|
61075
|
-
targetRef = _usePopup.targetRef,
|
|
61076
|
-
popupRef = _usePopup.popupRef,
|
|
61077
|
-
arrowRef = _usePopup.arrowRef;
|
|
61078
|
-
if (! /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children)) {
|
|
61079
|
-
console.error(new Error('Tooltip children expect a single ReactElement.'));
|
|
61080
|
-
return null;
|
|
61081
|
-
}
|
|
61082
|
-
if (!tip) return children;
|
|
61083
|
-
var inner = disabledChild ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
61084
|
-
className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.target,
|
|
61085
|
-
style: {
|
|
61086
|
-
cursor: 'not-allowed'
|
|
61087
|
-
},
|
|
61088
|
-
children: /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
|
|
61089
|
-
style: objectSpread2_default()(objectSpread2_default()({}, childrenProps.style), {}, {
|
|
61090
|
-
pointerEvents: 'none'
|
|
61091
|
-
})
|
|
61092
|
-
})
|
|
61093
|
-
}) : children;
|
|
61094
|
-
var events = getTargetProps();
|
|
61095
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
61096
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("noscript", {
|
|
61097
|
-
ref: function ref(el) {
|
|
61098
|
-
if (!el) return;
|
|
61099
|
-
var targetEl = el.nextElementSibling;
|
|
61100
|
-
if (!targetEl) return;
|
|
61101
|
-
if (targetRef.current === targetEl) return;
|
|
61102
|
-
targetRef.current = targetEl;
|
|
61103
|
-
}
|
|
61104
|
-
}, 'ns'), /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(inner, events), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
|
|
61105
|
-
focus: open,
|
|
61106
|
-
parentElRef: targetRef,
|
|
61107
|
-
popupElRef: popupRef,
|
|
61108
|
-
arrowRef: arrowRef,
|
|
61109
|
-
absolute: true,
|
|
61110
|
-
adjust: popsitionProps === 'auto',
|
|
61111
|
-
position: position,
|
|
61112
|
-
fixedWidth: false,
|
|
61113
|
-
popupGap: 0
|
|
61114
|
-
// arrowStyleRef={arrowStyleRef}
|
|
61115
|
-
,
|
|
61116
|
-
zIndex: zIndex,
|
|
61117
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
61118
|
-
className: classnames_default()(className, tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapper, open && (tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapperOpen))
|
|
61119
|
-
}, getDataAttribute({
|
|
61120
|
-
type: type,
|
|
61121
|
-
position: position
|
|
61122
|
-
})), {}, {
|
|
61123
|
-
ref: popupRef,
|
|
61124
|
-
onMouseLeave: events.onMouseLeave,
|
|
61125
|
-
dir: config.direction,
|
|
61126
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", objectSpread2_default()({
|
|
61127
|
-
ref: arrowRef,
|
|
61128
|
-
style: arrowStyleRef.current,
|
|
61129
|
-
className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.arrow
|
|
61130
|
-
}, getDataAttribute({
|
|
61131
|
-
role: 'arrow'
|
|
61132
|
-
}))), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
61133
|
-
style: style,
|
|
61134
|
-
className: classnames_default()(tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.content),
|
|
61135
|
-
children: tip
|
|
61136
|
-
})]
|
|
61137
|
-
}))
|
|
61138
|
-
})]
|
|
61139
|
-
});
|
|
61140
|
-
};
|
|
61141
|
-
/* harmony default export */ var src_tooltip_tooltip = (Tooltip);
|
|
61142
61206
|
;// CONCATENATED MODULE: ./src/tooltip/tooltip.tsx
|
|
61143
61207
|
|
|
61144
61208
|
|
|
@@ -66230,7 +66294,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
66230
66294
|
|
|
66231
66295
|
|
|
66232
66296
|
/* harmony default export */ var src_0 = ({
|
|
66233
|
-
version: '3.5.0-beta.
|
|
66297
|
+
version: '3.5.0-beta.12'
|
|
66234
66298
|
});
|
|
66235
66299
|
}();
|
|
66236
66300
|
/******/ return __webpack_exports__;
|