shineout 3.0.0-rc.13 → 3.0.0-rc.14
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 +131 -41
- 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
|
@@ -481,5 +481,5 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
481
481
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
482
482
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
483
483
|
var _default = exports.default = {
|
|
484
|
-
version: '3.0.0-rc.
|
|
484
|
+
version: '3.0.0-rc.14'
|
|
485
485
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12020,7 +12020,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12020
12020
|
};
|
|
12021
12021
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12022
12022
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12023
|
-
/* harmony default export */ var version = ('3.0.0-rc.
|
|
12023
|
+
/* harmony default export */ var version = ('3.0.0-rc.14');
|
|
12024
12024
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12025
12025
|
|
|
12026
12026
|
|
|
@@ -12541,7 +12541,7 @@ var buttonTokens = {
|
|
|
12541
12541
|
buttonLinkFocusBorderColor: 'transparent',
|
|
12542
12542
|
buttonFontSize: '14/regular',
|
|
12543
12543
|
buttonBorderRadius: 'Radius-4',
|
|
12544
|
-
buttonPaddingX: 'Padding-
|
|
12544
|
+
buttonPaddingX: 'Padding-12',
|
|
12545
12545
|
buttonPaddingY: 'Padding-5',
|
|
12546
12546
|
buttonHeight: 'Size-16',
|
|
12547
12547
|
buttonFontWeight: 'Weight-regular',
|
|
@@ -12553,7 +12553,7 @@ var buttonTokens = {
|
|
|
12553
12553
|
buttonSmallFontWeight: 'Weight-regular',
|
|
12554
12554
|
buttonLargeFontSize: '16/regular',
|
|
12555
12555
|
buttonLargeBorderRadius: 'Radius-4',
|
|
12556
|
-
buttonLargePaddingX: 'Padding-
|
|
12556
|
+
buttonLargePaddingX: 'Padding-16',
|
|
12557
12557
|
buttonLargePaddingY: 'Padding-8',
|
|
12558
12558
|
buttonLargeHeight: 'Size-20',
|
|
12559
12559
|
buttonLargeFontWeight: 'Weight-regular',
|
|
@@ -20059,6 +20059,10 @@ function createHash(obj) {
|
|
|
20059
20059
|
var getExtraToken = function getExtraToken(prefix) {
|
|
20060
20060
|
return ["--primary-color: var(--".concat(prefix, "-brand-6)"), "--gray-500: var(--".concat(prefix, "-neutral-6)"), "--primary-color-fade-50: rgba(25,122,250,0.5)"];
|
|
20061
20061
|
};
|
|
20062
|
+
var replaceCssVarValue = function replaceCssVarValue(innerHTML, cssvar, targetValue) {
|
|
20063
|
+
var regex = new RegExp("(".concat(cssvar, ":.*?;)"));
|
|
20064
|
+
return innerHTML.replace(regex, "".concat(cssvar, ": ").concat(targetValue, ";"));
|
|
20065
|
+
};
|
|
20062
20066
|
var setToken = function setToken(options) {
|
|
20063
20067
|
var _ref = options || {},
|
|
20064
20068
|
_ref$tagName = _ref.tagName,
|
|
@@ -20070,6 +20074,7 @@ var setToken = function setToken(options) {
|
|
|
20070
20074
|
token = _ref.token,
|
|
20071
20075
|
attributes = _ref.attributes,
|
|
20072
20076
|
onlyExtra = _ref.onlyExtra,
|
|
20077
|
+
update = _ref.update,
|
|
20073
20078
|
customExtraToken = _ref.extraToken;
|
|
20074
20079
|
var _getConfig = getConfig(),
|
|
20075
20080
|
prefix = _getConfig.prefix;
|
|
@@ -20079,6 +20084,14 @@ var setToken = function setToken(options) {
|
|
|
20079
20084
|
var tokens = [];
|
|
20080
20085
|
var defaultToken = token || token_token;
|
|
20081
20086
|
var extraToken = getExtraToken(prefix);
|
|
20087
|
+
if (update && token) {
|
|
20088
|
+
Object.keys(token).forEach(function (key) {
|
|
20089
|
+
var cssvar = "--".concat(prefix, "-").concat(replaceNonAlphanumeric(key));
|
|
20090
|
+
var targetValue = token[key];
|
|
20091
|
+
tag.innerHTML = replaceCssVarValue(tag.innerHTML, cssvar, targetValue);
|
|
20092
|
+
});
|
|
20093
|
+
return;
|
|
20094
|
+
}
|
|
20082
20095
|
if (onlyExtra) {
|
|
20083
20096
|
Object.keys(defaultToken).filter(function (item) {
|
|
20084
20097
|
return (customExtraToken || ['Brand-6', 'Neutral-6']).includes(item);
|
|
@@ -20220,7 +20233,9 @@ var PaginationStyle = {
|
|
|
20220
20233
|
buttonItem: {
|
|
20221
20234
|
transition: 'none'
|
|
20222
20235
|
},
|
|
20223
|
-
sectionSize: {
|
|
20236
|
+
sectionSize: {
|
|
20237
|
+
padding: 0
|
|
20238
|
+
}
|
|
20224
20239
|
};
|
|
20225
20240
|
/* harmony default export */ var pagination_pagination = (PaginationStyle);
|
|
20226
20241
|
;// CONCATENATED MODULE: ../shineout-style/src/pagination/index.ts
|
|
@@ -23398,6 +23413,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
|
|
|
23398
23413
|
}
|
|
23399
23414
|
},
|
|
23400
23415
|
expandWrapper: {
|
|
23416
|
+
display: 'inline-block',
|
|
23401
23417
|
'& $iconWrapper': {
|
|
23402
23418
|
marginRight: '8px'
|
|
23403
23419
|
}
|
|
@@ -36511,6 +36527,15 @@ function useFormControl(props) {
|
|
|
36511
36527
|
var validateFiled = use_persist_fn(function (name, v, formV) {
|
|
36512
36528
|
var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
36513
36529
|
var validateProps = (getValidateProps === null || getValidateProps === void 0 ? void 0 : getValidateProps()) || {};
|
|
36530
|
+
if (config.type === 'forcePass') {
|
|
36531
|
+
if (inForm) {
|
|
36532
|
+
formFunc === null || formFunc === void 0 || formFunc.setError(name, undefined);
|
|
36533
|
+
} else {
|
|
36534
|
+
setErrorState(undefined);
|
|
36535
|
+
}
|
|
36536
|
+
onError === null || onError === void 0 || onError(undefined);
|
|
36537
|
+
return Promise.resolve(true);
|
|
36538
|
+
}
|
|
36514
36539
|
if (inForm) {
|
|
36515
36540
|
var bindValidate = function bindValidate() {
|
|
36516
36541
|
if (!config.ignoreBind && isArray(bind)) {
|
|
@@ -41277,8 +41302,11 @@ var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerat
|
|
|
41277
41302
|
|
|
41278
41303
|
|
|
41279
41304
|
|
|
41305
|
+
//https://github.com/react-component/util/blob/master/src/React/render.ts
|
|
41306
|
+
|
|
41307
|
+
|
|
41308
|
+
// Let compiler not to search module usage
|
|
41280
41309
|
var fullClone = objectSpread2_default()({}, external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_);
|
|
41281
|
-
var MARK = '__sheinout_root__';
|
|
41282
41310
|
var react_render_version = fullClone.version,
|
|
41283
41311
|
reactRender = fullClone.render,
|
|
41284
41312
|
unmountComponentAtNode = fullClone.unmountComponentAtNode;
|
|
@@ -41289,26 +41317,48 @@ try {
|
|
|
41289
41317
|
createRoot = fullClone.createRoot;
|
|
41290
41318
|
}
|
|
41291
41319
|
} catch (e) {
|
|
41292
|
-
//
|
|
41320
|
+
// Do nothing;
|
|
41293
41321
|
}
|
|
41294
|
-
|
|
41322
|
+
function toggleWarning(skip) {
|
|
41323
|
+
var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
41324
|
+
if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && typeof_default()(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === 'object') {
|
|
41325
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
|
|
41326
|
+
}
|
|
41327
|
+
}
|
|
41328
|
+
var MARK = '__rc_react_root__';
|
|
41329
|
+
|
|
41330
|
+
// ========================== Render ==========================
|
|
41331
|
+
|
|
41332
|
+
function modernRender(node, container) {
|
|
41333
|
+
toggleWarning(true);
|
|
41295
41334
|
var root = container[MARK] || createRoot(container);
|
|
41335
|
+
toggleWarning(false);
|
|
41296
41336
|
root.render(node);
|
|
41297
41337
|
container[MARK] = root;
|
|
41298
|
-
}
|
|
41299
|
-
|
|
41338
|
+
}
|
|
41339
|
+
function legacyRender(node, container) {
|
|
41300
41340
|
reactRender(node, container);
|
|
41301
|
-
}
|
|
41302
|
-
|
|
41341
|
+
}
|
|
41342
|
+
|
|
41343
|
+
/** @private Test usage. Not work in prod */
|
|
41344
|
+
function _r(node, container) {
|
|
41345
|
+
if (false) {}
|
|
41346
|
+
}
|
|
41347
|
+
function ReactRender(node, container) {
|
|
41303
41348
|
// @ts-ignore
|
|
41304
41349
|
if (createRoot) {
|
|
41305
41350
|
modernRender(node, container);
|
|
41306
41351
|
return;
|
|
41307
41352
|
}
|
|
41308
41353
|
legacyRender(node, container);
|
|
41309
|
-
}
|
|
41310
|
-
|
|
41311
|
-
|
|
41354
|
+
}
|
|
41355
|
+
|
|
41356
|
+
// ========================= Unmount ==========================
|
|
41357
|
+
function modernUnmount(_x) {
|
|
41358
|
+
return _modernUnmount.apply(this, arguments);
|
|
41359
|
+
}
|
|
41360
|
+
function _modernUnmount() {
|
|
41361
|
+
_modernUnmount = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(container) {
|
|
41312
41362
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
41313
41363
|
while (1) switch (_context.prev = _context.next) {
|
|
41314
41364
|
case 0:
|
|
@@ -41323,19 +41373,39 @@ var modernUnmount = /*#__PURE__*/function () {
|
|
|
41323
41373
|
}
|
|
41324
41374
|
}, _callee);
|
|
41325
41375
|
}));
|
|
41326
|
-
return
|
|
41327
|
-
|
|
41328
|
-
|
|
41329
|
-
}();
|
|
41330
|
-
var legacyUnmount = function legacyUnmount(container) {
|
|
41376
|
+
return _modernUnmount.apply(this, arguments);
|
|
41377
|
+
}
|
|
41378
|
+
function legacyUnmount(container) {
|
|
41331
41379
|
unmountComponentAtNode(container);
|
|
41332
|
-
}
|
|
41333
|
-
|
|
41334
|
-
|
|
41335
|
-
|
|
41336
|
-
}
|
|
41337
|
-
|
|
41338
|
-
|
|
41380
|
+
}
|
|
41381
|
+
|
|
41382
|
+
/** @private Test usage. Not work in prod */
|
|
41383
|
+
function _u(container) {
|
|
41384
|
+
if (false) {}
|
|
41385
|
+
}
|
|
41386
|
+
function ReactUnmount(_x2) {
|
|
41387
|
+
return _ReactUnmount.apply(this, arguments);
|
|
41388
|
+
}
|
|
41389
|
+
function _ReactUnmount() {
|
|
41390
|
+
_ReactUnmount = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(container) {
|
|
41391
|
+
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
41392
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
41393
|
+
case 0:
|
|
41394
|
+
if (!(createRoot !== undefined)) {
|
|
41395
|
+
_context2.next = 2;
|
|
41396
|
+
break;
|
|
41397
|
+
}
|
|
41398
|
+
return _context2.abrupt("return", modernUnmount(container));
|
|
41399
|
+
case 2:
|
|
41400
|
+
legacyUnmount(container);
|
|
41401
|
+
case 3:
|
|
41402
|
+
case "end":
|
|
41403
|
+
return _context2.stop();
|
|
41404
|
+
}
|
|
41405
|
+
}, _callee2);
|
|
41406
|
+
}));
|
|
41407
|
+
return _ReactUnmount.apply(this, arguments);
|
|
41408
|
+
}
|
|
41339
41409
|
;// CONCATENATED MODULE: ../base/src/modal/modal-content.tsx
|
|
41340
41410
|
|
|
41341
41411
|
|
|
@@ -43177,11 +43247,20 @@ var useForm = function useForm(props) {
|
|
|
43177
43247
|
var getErrors = use_persist_fn(function () {
|
|
43178
43248
|
return context.errors;
|
|
43179
43249
|
});
|
|
43180
|
-
var
|
|
43181
|
-
var keys = Object.keys(context.errors);
|
|
43182
|
-
|
|
43183
|
-
|
|
43184
|
-
|
|
43250
|
+
var clearValidate = use_persist_fn(function (names) {
|
|
43251
|
+
var keys = names || Object.keys(context.errors);
|
|
43252
|
+
validateFields(keys, {
|
|
43253
|
+
type: 'forcePass'
|
|
43254
|
+
}).then(function () {
|
|
43255
|
+
if (!names) {
|
|
43256
|
+
context.errors = {};
|
|
43257
|
+
context.serverErrors = {};
|
|
43258
|
+
} else {
|
|
43259
|
+
keys.forEach(function (key) {
|
|
43260
|
+
delete context.serverErrors[key];
|
|
43261
|
+
});
|
|
43262
|
+
}
|
|
43263
|
+
});
|
|
43185
43264
|
});
|
|
43186
43265
|
var setError = use_persist_fn(function (name, e) {
|
|
43187
43266
|
context.errors[name] = e;
|
|
@@ -43257,7 +43336,7 @@ var useForm = function useForm(props) {
|
|
|
43257
43336
|
var _props$onReset, _other$onReset;
|
|
43258
43337
|
if (disabled) return;
|
|
43259
43338
|
onChange(getDefaultValue());
|
|
43260
|
-
|
|
43339
|
+
clearValidate();
|
|
43261
43340
|
update();
|
|
43262
43341
|
context.resetTime = 1;
|
|
43263
43342
|
(_props$onReset = props.onReset) === null || _props$onReset === void 0 || _props$onReset.call(props);
|
|
@@ -43347,7 +43426,7 @@ var useForm = function useForm(props) {
|
|
|
43347
43426
|
reset: reset,
|
|
43348
43427
|
setError: setError,
|
|
43349
43428
|
getErrors: getErrors,
|
|
43350
|
-
|
|
43429
|
+
clearValidate: clearValidate,
|
|
43351
43430
|
validateFields: validateFields
|
|
43352
43431
|
});
|
|
43353
43432
|
var formConfig = external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo(function () {
|
|
@@ -43459,7 +43538,7 @@ var Form = function Form(props) {
|
|
|
43459
43538
|
return formFunc.validateFields(fileds).catch(function () {});
|
|
43460
43539
|
});
|
|
43461
43540
|
var formRefObj = useLatestObj({
|
|
43462
|
-
clearValidate: formFunc.
|
|
43541
|
+
clearValidate: formFunc.clearValidate,
|
|
43463
43542
|
getValue: formFunc.getValue,
|
|
43464
43543
|
reset: formFunc.reset,
|
|
43465
43544
|
submit: formFunc.submit,
|
|
@@ -48606,6 +48685,7 @@ var PaginationButton = function PaginationButton(props) {
|
|
|
48606
48685
|
moreType = props.moreType,
|
|
48607
48686
|
children = props.children,
|
|
48608
48687
|
className = props.className,
|
|
48688
|
+
style = props.style,
|
|
48609
48689
|
onClick = props.onClick,
|
|
48610
48690
|
onMouseEnter = props.onMouseEnter,
|
|
48611
48691
|
onMouseLeave = props.onMouseLeave;
|
|
@@ -48628,6 +48708,7 @@ var PaginationButton = function PaginationButton(props) {
|
|
|
48628
48708
|
type: type,
|
|
48629
48709
|
size: size,
|
|
48630
48710
|
mode: mode,
|
|
48711
|
+
style: style,
|
|
48631
48712
|
onClick: handleClick
|
|
48632
48713
|
};
|
|
48633
48714
|
if (moreType) {
|
|
@@ -48662,6 +48743,7 @@ var PaginationButtonNext = function PaginationButtonNext(props) {
|
|
|
48662
48743
|
current = props.current,
|
|
48663
48744
|
text = props.text,
|
|
48664
48745
|
size = props.size,
|
|
48746
|
+
style = props.style,
|
|
48665
48747
|
mode = props.mode,
|
|
48666
48748
|
onChange = props.onChange;
|
|
48667
48749
|
var paginationStyle = jssStyle === null || jssStyle === void 0 || (_jssStyle$pagination = jssStyle.pagination) === null || _jssStyle$pagination === void 0 ? void 0 : _jssStyle$pagination.call(jssStyle);
|
|
@@ -48675,7 +48757,10 @@ var PaginationButtonNext = function PaginationButtonNext(props) {
|
|
|
48675
48757
|
mode: mode,
|
|
48676
48758
|
page: next,
|
|
48677
48759
|
size: size,
|
|
48678
|
-
|
|
48760
|
+
style: style
|
|
48761
|
+
// shape={hasText ? undefined : 'square'}
|
|
48762
|
+
,
|
|
48763
|
+
shape: 'square',
|
|
48679
48764
|
disabled: disabled || next > max,
|
|
48680
48765
|
onClick: onChange,
|
|
48681
48766
|
children: hasText ? text.next : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
@@ -48709,8 +48794,10 @@ var PaginationButtonPrev = function PaginationButtonPrev(props) {
|
|
|
48709
48794
|
mode: mode,
|
|
48710
48795
|
disabled: disabled || prev < 1,
|
|
48711
48796
|
page: prev,
|
|
48712
|
-
size: size
|
|
48713
|
-
shape
|
|
48797
|
+
size: size
|
|
48798
|
+
// shape={hasText ? undefined : 'square'}
|
|
48799
|
+
,
|
|
48800
|
+
shape: "square",
|
|
48714
48801
|
onClick: onChange,
|
|
48715
48802
|
children: hasText ? text.prev : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
48716
48803
|
className: paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.icon,
|
|
@@ -48806,8 +48893,7 @@ var PaginationButtons = function PaginationButtons(props) {
|
|
|
48806
48893
|
mode: mode,
|
|
48807
48894
|
size: size,
|
|
48808
48895
|
jssStyle: jssStyle,
|
|
48809
|
-
disabled: disabled
|
|
48810
|
-
shape: 'square'
|
|
48896
|
+
disabled: disabled
|
|
48811
48897
|
};
|
|
48812
48898
|
};
|
|
48813
48899
|
var handleHoverMore = function handleHoverMore(type, is) {
|
|
@@ -48862,6 +48948,7 @@ var PaginationButtons = function PaginationButtons(props) {
|
|
|
48862
48948
|
mode: pageNum === current ? undefined : mode,
|
|
48863
48949
|
key: pageNum,
|
|
48864
48950
|
page: pageNum,
|
|
48951
|
+
shape: pageNum >= 100 ? undefined : 'square',
|
|
48865
48952
|
type: pageNum === current ? 'primary' : 'secondary',
|
|
48866
48953
|
onClick: onChange
|
|
48867
48954
|
}), pageNum);
|
|
@@ -48877,6 +48964,7 @@ var PaginationButtons = function PaginationButtons(props) {
|
|
|
48877
48964
|
onClick: onChange,
|
|
48878
48965
|
moreType: pageNum,
|
|
48879
48966
|
onMouseEnter: handleHoverMore,
|
|
48967
|
+
shape: "square",
|
|
48880
48968
|
onMouseLeave: handleHoverMore,
|
|
48881
48969
|
className: paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.sectionSize
|
|
48882
48970
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
@@ -56686,7 +56774,9 @@ var TransferOperate = function TransferOperate(props) {
|
|
|
56686
56774
|
var disabled = listDatum.getValueMap().size === 0 || listDatum.getVaildData().length === 0;
|
|
56687
56775
|
var style = operation ? {
|
|
56688
56776
|
width: '100%'
|
|
56689
|
-
} :
|
|
56777
|
+
} : {
|
|
56778
|
+
padding: 0
|
|
56779
|
+
};
|
|
56690
56780
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
56691
56781
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(base_src_button_button, {
|
|
56692
56782
|
size: size,
|
|
@@ -61082,7 +61172,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
61082
61172
|
|
|
61083
61173
|
|
|
61084
61174
|
/* harmony default export */ var src_0 = ({
|
|
61085
|
-
version: '3.0.0-rc.
|
|
61175
|
+
version: '3.0.0-rc.14'
|
|
61086
61176
|
});
|
|
61087
61177
|
}();
|
|
61088
61178
|
/******/ return __webpack_exports__;
|