shineout 3.6.0-beta.26 → 3.6.0-beta.27
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 +97 -23
- 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
|
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
514
514
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
515
515
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
516
516
|
var _default = exports.default = {
|
|
517
|
-
version: '3.6.0-beta.
|
|
517
|
+
version: '3.6.0-beta.27'
|
|
518
518
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -7074,6 +7074,9 @@ var config = {
|
|
|
7074
7074
|
Next: icons.ArrowRight,
|
|
7075
7075
|
CollapseArrow: icons.ArrowLeft
|
|
7076
7076
|
},
|
|
7077
|
+
textarea: {
|
|
7078
|
+
Close: icons.CloseFill
|
|
7079
|
+
},
|
|
7077
7080
|
transfer: {
|
|
7078
7081
|
DeleteAll: icons.Delete,
|
|
7079
7082
|
DeleteItem: icons.Close,
|
|
@@ -12136,7 +12139,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12136
12139
|
};
|
|
12137
12140
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12138
12141
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12139
|
-
/* harmony default export */ var version = ('3.6.0-beta.
|
|
12142
|
+
/* harmony default export */ var version = ('3.6.0-beta.27');
|
|
12140
12143
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12141
12144
|
|
|
12142
12145
|
|
|
@@ -13166,24 +13169,24 @@ var cardTokens = {
|
|
|
13166
13169
|
cardBorderRadius: 'Radius-default',
|
|
13167
13170
|
cardFontColor: 'Neutral-text-5',
|
|
13168
13171
|
cardFontSize: 'Font-14',
|
|
13169
|
-
cardPaddingX: 'Spacing-
|
|
13172
|
+
cardPaddingX: 'Spacing-12',
|
|
13170
13173
|
cardPaddingY: 'Spacing-12',
|
|
13171
13174
|
cardTitleFontColor: 'Neutral-text-5',
|
|
13172
13175
|
cardTitleFontSize: 'Font-16',
|
|
13173
13176
|
cardTitleFontWeight: 'Weight-medium',
|
|
13174
13177
|
cardHeaderGap: '8px',
|
|
13175
|
-
cardHeaderExtraMarginX: 'Spacing-
|
|
13176
|
-
cardHeaderPaddingX: 'Spacing-
|
|
13178
|
+
cardHeaderExtraMarginX: 'Spacing-12',
|
|
13179
|
+
cardHeaderPaddingX: 'Spacing-12',
|
|
13177
13180
|
cardHeaderPaddingY: 'Spacing-12',
|
|
13178
13181
|
cardIndicatorSize: 'Size-7',
|
|
13179
13182
|
cardIndicatorColor: 'Neutral-text-4',
|
|
13180
|
-
cardBodyPaddingX: 'Spacing-
|
|
13183
|
+
cardBodyPaddingX: 'Spacing-12',
|
|
13181
13184
|
cardBodyPaddingY: 'Spacing-12',
|
|
13182
13185
|
cardBodyFontSize: 'Font-14',
|
|
13183
13186
|
cardBodyFontColor: 'Neutral-text-5',
|
|
13184
13187
|
cardBodyFontWeight: 'Weight-regular',
|
|
13185
13188
|
cardBodyBorderColor: 'Neutral-border-1',
|
|
13186
|
-
cardFooterPaddingX: 'Spacing-
|
|
13189
|
+
cardFooterPaddingX: 'Spacing-12',
|
|
13187
13190
|
cardFooterPaddingY: 'Spacing-12',
|
|
13188
13191
|
cardFooterBorderColor: 'Neutral-border-1'
|
|
13189
13192
|
};
|
|
@@ -15001,7 +15004,12 @@ var textareaTokens = {
|
|
|
15001
15004
|
textareaInfoBorderColor: 'Neutral-border-2',
|
|
15002
15005
|
textareaInfoErrorFontColor: 'Danger-6',
|
|
15003
15006
|
textareaInfoErrorBackgroundColor: 'Danger-1',
|
|
15004
|
-
textareaInfoErrorBorderColor: 'Danger-6'
|
|
15007
|
+
textareaInfoErrorBorderColor: 'Danger-6',
|
|
15008
|
+
textareaLimitFontColor: 'Neutral-text-3',
|
|
15009
|
+
textareaLimitFontSize: 'Font-12',
|
|
15010
|
+
textareaClearColor: 'Neutral-text-3',
|
|
15011
|
+
textareaClearSize: 'Size-7',
|
|
15012
|
+
textareaClearHoverColor: 'Neutral-text-4'
|
|
15005
15013
|
};
|
|
15006
15014
|
/* harmony default export */ var textarea_textarea = (textareaTokens);
|
|
15007
15015
|
;// CONCATENATED MODULE: ../theme/src/textarea/index.ts
|
|
@@ -23124,7 +23132,10 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
23124
23132
|
borderRadius: src.selectPanelRadius,
|
|
23125
23133
|
transformOrigin: '0 0',
|
|
23126
23134
|
border: "1px solid ".concat(src.selectPanelBorder),
|
|
23127
|
-
cursor: 'initial'
|
|
23135
|
+
cursor: 'initial',
|
|
23136
|
+
'& [data-soui-role="scroll"]': {
|
|
23137
|
+
overscrollBehavior: 'none'
|
|
23138
|
+
}
|
|
23128
23139
|
},
|
|
23129
23140
|
pickerSmall: {
|
|
23130
23141
|
'& $optionInner': {
|
|
@@ -27255,6 +27266,37 @@ var textarea_input = objectSpread2_default()(objectSpread2_default()(objectSprea
|
|
|
27255
27266
|
borderRadius: 0,
|
|
27256
27267
|
width: '100%',
|
|
27257
27268
|
boxSizing: 'border-box'
|
|
27269
|
+
},
|
|
27270
|
+
limit: {
|
|
27271
|
+
position: 'absolute',
|
|
27272
|
+
right: 12,
|
|
27273
|
+
bottom: 6,
|
|
27274
|
+
color: src.textareaLimitFontColor,
|
|
27275
|
+
fontSize: src.textareaLimitFontSize,
|
|
27276
|
+
'$resize + &': {
|
|
27277
|
+
right: 16
|
|
27278
|
+
}
|
|
27279
|
+
},
|
|
27280
|
+
clear: {
|
|
27281
|
+
position: 'absolute',
|
|
27282
|
+
right: src.textareaPaddingX,
|
|
27283
|
+
top: src.textareaPaddingY,
|
|
27284
|
+
cursor: 'pointer',
|
|
27285
|
+
padding: 4,
|
|
27286
|
+
color: src.textareaClearColor,
|
|
27287
|
+
'&:hover': {
|
|
27288
|
+
color: src.textareaClearHoverColor
|
|
27289
|
+
},
|
|
27290
|
+
'& > svg': {
|
|
27291
|
+
display: 'block',
|
|
27292
|
+
width: src.textareaClearSize,
|
|
27293
|
+
height: src.textareaClearSize
|
|
27294
|
+
}
|
|
27295
|
+
},
|
|
27296
|
+
wrapperWithClear: {
|
|
27297
|
+
'&& $textarea': {
|
|
27298
|
+
paddingRight: "calc(".concat(src.textareaPaddingX, " * 4)")
|
|
27299
|
+
}
|
|
27258
27300
|
}
|
|
27259
27301
|
});
|
|
27260
27302
|
/* harmony default export */ var src_textarea_textarea = (textarea_input);
|
|
@@ -28265,7 +28307,10 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
28265
28307
|
transformOrigin: '0 0',
|
|
28266
28308
|
width: 'max-content',
|
|
28267
28309
|
maxWidth: '640px',
|
|
28268
|
-
cursor: 'initial'
|
|
28310
|
+
cursor: 'initial',
|
|
28311
|
+
'& $tree': {
|
|
28312
|
+
overscrollBehavior: 'none'
|
|
28313
|
+
}
|
|
28269
28314
|
},
|
|
28270
28315
|
iconWrapper: {
|
|
28271
28316
|
display: 'flex',
|
|
@@ -48138,7 +48183,8 @@ var useTextarea = function useTextarea(props) {
|
|
|
48138
48183
|
|
|
48139
48184
|
|
|
48140
48185
|
|
|
48141
|
-
var simple_textarea_excluded = ["jssStyle", "className", "style", "status", "size", "prefix", "suffix", "underline", "autosize", "border", "resize", "onEnterPress", "
|
|
48186
|
+
var simple_textarea_excluded = ["jssStyle", "className", "style", "status", "size", "prefix", "suffix", "underline", "autosize", "border", "resize", "onEnterPress", "onStatusChange", "renderTextarea", "limit", "clearable"];
|
|
48187
|
+
|
|
48142
48188
|
|
|
48143
48189
|
|
|
48144
48190
|
|
|
@@ -48161,8 +48207,10 @@ var Textarea = function Textarea(props) {
|
|
|
48161
48207
|
_props$resize = props.resize,
|
|
48162
48208
|
resize = _props$resize === void 0 ? false : _props$resize,
|
|
48163
48209
|
_onEnterPress = props.onEnterPress,
|
|
48164
|
-
|
|
48210
|
+
onStatusChange = props.onStatusChange,
|
|
48165
48211
|
renderTextarea = props.renderTextarea,
|
|
48212
|
+
limit = props.limit,
|
|
48213
|
+
clearable = props.clearable,
|
|
48166
48214
|
rest = objectWithoutProperties_default()(props, simple_textarea_excluded);
|
|
48167
48215
|
var textareaClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$textarea = jssStyle.textarea) === null || _jssStyle$textarea === void 0 ? void 0 : _jssStyle$textarea.call(jssStyle);
|
|
48168
48216
|
var _useTextarea = use_textarea(objectSpread2_default()({}, rest)),
|
|
@@ -48188,8 +48236,8 @@ var Textarea = function Textarea(props) {
|
|
|
48188
48236
|
onKeyUp: onKeyUp
|
|
48189
48237
|
});
|
|
48190
48238
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
48191
|
-
if (
|
|
48192
|
-
|
|
48239
|
+
if (onStatusChange) {
|
|
48240
|
+
onStatusChange({
|
|
48193
48241
|
focused: focused
|
|
48194
48242
|
});
|
|
48195
48243
|
}
|
|
@@ -48198,13 +48246,32 @@ var Textarea = function Textarea(props) {
|
|
|
48198
48246
|
if (typeof renderTextarea === 'function') {
|
|
48199
48247
|
textareaEl = renderTextarea(textareaEl);
|
|
48200
48248
|
}
|
|
48249
|
+
var limitEl = null;
|
|
48250
|
+
if (limit) {
|
|
48251
|
+
var _props$value;
|
|
48252
|
+
limitEl = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
48253
|
+
className: textareaClasses === null || textareaClasses === void 0 ? void 0 : textareaClasses.limit,
|
|
48254
|
+
children: typeof limit === 'number' ? "".concat(((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) || 0, "/").concat(limit) : limit(props.value)
|
|
48255
|
+
});
|
|
48256
|
+
}
|
|
48257
|
+
var clearEl = null;
|
|
48258
|
+
if (clearable && props.value) {
|
|
48259
|
+
clearEl = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
48260
|
+
className: textareaClasses === null || textareaClasses === void 0 ? void 0 : textareaClasses.clear,
|
|
48261
|
+
onClick: function onClick() {
|
|
48262
|
+
var _props$onChange;
|
|
48263
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, '');
|
|
48264
|
+
},
|
|
48265
|
+
children: icons_config.textarea.Close
|
|
48266
|
+
});
|
|
48267
|
+
}
|
|
48201
48268
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
48202
48269
|
id: fieldId
|
|
48203
48270
|
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getRootProps({
|
|
48204
48271
|
className: rootClass,
|
|
48205
48272
|
style: style
|
|
48206
48273
|
})), {}, {
|
|
48207
|
-
children: [prefix, textareaEl, suffix]
|
|
48274
|
+
children: [prefix, textareaEl, suffix, limitEl, clearEl]
|
|
48208
48275
|
}));
|
|
48209
48276
|
};
|
|
48210
48277
|
/* harmony default export */ var simple_textarea = (Textarea);
|
|
@@ -48303,7 +48370,7 @@ var useAutoSize = function useAutoSize(props) {
|
|
|
48303
48370
|
|
|
48304
48371
|
|
|
48305
48372
|
|
|
48306
|
-
var textarea_excluded = ["info", "suffix", "renderFooter", "width", "style", "jssStyle", "onBlur", "status", "trim", "delay"];
|
|
48373
|
+
var textarea_excluded = ["info", "suffix", "renderFooter", "width", "style", "jssStyle", "onBlur", "status", "limit", "trim", "delay"];
|
|
48307
48374
|
|
|
48308
48375
|
|
|
48309
48376
|
|
|
@@ -48332,6 +48399,7 @@ var textarea_Textarea = function Textarea(props0) {
|
|
|
48332
48399
|
jssStyle = props.jssStyle,
|
|
48333
48400
|
onBlur = props.onBlur,
|
|
48334
48401
|
status = props.status,
|
|
48402
|
+
limit = props.limit,
|
|
48335
48403
|
trimProps = props.trim,
|
|
48336
48404
|
delayProps = props.delay,
|
|
48337
48405
|
resetProps = objectWithoutProperties_default()(props, textarea_excluded);
|
|
@@ -48363,7 +48431,12 @@ var textarea_Textarea = function Textarea(props0) {
|
|
|
48363
48431
|
var inputAbleParams = {
|
|
48364
48432
|
value: resetProps.value,
|
|
48365
48433
|
onChange: resetProps.onChange,
|
|
48366
|
-
beforeChange:
|
|
48434
|
+
beforeChange: typeof limit === 'number' ? function (v) {
|
|
48435
|
+
var _resetProps$beforeCha;
|
|
48436
|
+
if (v.length > limit) return v.slice(0, limit);
|
|
48437
|
+
if (resetProps.beforeChange) (_resetProps$beforeCha = resetProps.beforeChange) === null || _resetProps$beforeCha === void 0 || _resetProps$beforeCha.call(resetProps, v);
|
|
48438
|
+
return v;
|
|
48439
|
+
} : resetProps.beforeChange,
|
|
48367
48440
|
defaultValue: resetProps.defaultValue,
|
|
48368
48441
|
delay: delay
|
|
48369
48442
|
};
|
|
@@ -48472,13 +48545,14 @@ var textarea_Textarea = function Textarea(props0) {
|
|
|
48472
48545
|
rows: 4,
|
|
48473
48546
|
jssStyle: jssStyle
|
|
48474
48547
|
}, forwardProps), formatProps), {}, {
|
|
48475
|
-
className: classnames_default()(innerTitleProps.innerTitle && (textareaClasses === null || textareaClasses === void 0 ? void 0 : textareaClasses.wrapperInnerTitle), resetProps.className),
|
|
48548
|
+
className: classnames_default()(innerTitleProps.innerTitle && (textareaClasses === null || textareaClasses === void 0 ? void 0 : textareaClasses.wrapperInnerTitle), props.clearable && (textareaClasses === null || textareaClasses === void 0 ? void 0 : textareaClasses.wrapperWithClear), resetProps.className),
|
|
48476
48549
|
renderTextarea: renderTextarea,
|
|
48550
|
+
limit: limit,
|
|
48477
48551
|
status: tipProps.error ? 'error' : status,
|
|
48552
|
+
onStatusChange: onStatusChange,
|
|
48478
48553
|
value: inputAbleProps.value || '',
|
|
48479
48554
|
suffix: mergeSuffix,
|
|
48480
48555
|
style: mergeStyle,
|
|
48481
|
-
getStatus: onStatusChange,
|
|
48482
48556
|
rootRef: rootRef,
|
|
48483
48557
|
autosize: props.autosize
|
|
48484
48558
|
}));
|
|
@@ -49887,6 +49961,8 @@ var Tooltip = function Tooltip(props) {
|
|
|
49887
49961
|
className = props.className,
|
|
49888
49962
|
style = props.style,
|
|
49889
49963
|
zIndex = props.zIndex,
|
|
49964
|
+
_props$showArrow = props.showArrow,
|
|
49965
|
+
showArrow = _props$showArrow === void 0 ? true : _props$showArrow,
|
|
49890
49966
|
persistentProp = props.persistent,
|
|
49891
49967
|
_props$type = props.type,
|
|
49892
49968
|
type = _props$type === void 0 ? 'default' : _props$type,
|
|
@@ -49984,7 +50060,7 @@ var Tooltip = function Tooltip(props) {
|
|
|
49984
50060
|
ref: popupRef,
|
|
49985
50061
|
onMouseLeave: events.onMouseLeave,
|
|
49986
50062
|
dir: config.direction,
|
|
49987
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", objectSpread2_default()({
|
|
50063
|
+
children: [showArrow && /*#__PURE__*/(0,jsx_runtime.jsx)("span", objectSpread2_default()({
|
|
49988
50064
|
ref: arrowRef,
|
|
49989
50065
|
className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.arrow
|
|
49990
50066
|
}, getDataAttribute({
|
|
@@ -61276,9 +61352,7 @@ var Colgroup = function Colgroup(props) {
|
|
|
61276
61352
|
if (minWidth) {
|
|
61277
61353
|
style.minWidth = minWidth;
|
|
61278
61354
|
}
|
|
61279
|
-
|
|
61280
|
-
style.width = width;
|
|
61281
|
-
}
|
|
61355
|
+
style.width = width;
|
|
61282
61356
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("col", {
|
|
61283
61357
|
style: style
|
|
61284
61358
|
}, columns[index].key);
|
|
@@ -69509,7 +69583,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
69509
69583
|
|
|
69510
69584
|
|
|
69511
69585
|
/* harmony default export */ var src_0 = ({
|
|
69512
|
-
version: '3.6.0-beta.
|
|
69586
|
+
version: '3.6.0-beta.27'
|
|
69513
69587
|
});
|
|
69514
69588
|
}();
|
|
69515
69589
|
/******/ return __webpack_exports__;
|