shineout 3.8.3-beta.7 → 3.8.3-fix.1
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 +12 -12
- 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
|
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
522
522
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
523
523
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
524
524
|
var _default = exports.default = {
|
|
525
|
-
version: '3.8.3-
|
|
525
|
+
version: '3.8.3-fix.1'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12386
12386
|
};
|
|
12387
12387
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12388
12388
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12389
|
-
/* harmony default export */ var version = ('3.8.3-
|
|
12389
|
+
/* harmony default export */ var version = ('3.8.3-fix.1');
|
|
12390
12390
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12391
12391
|
|
|
12392
12392
|
|
|
@@ -36238,19 +36238,18 @@ function useInputAble(props) {
|
|
|
36238
36238
|
var render = useRender(syncValue);
|
|
36239
36239
|
var shouldUseState = delay || !control;
|
|
36240
36240
|
var value = shouldUseState ? stateValue : valuePo;
|
|
36241
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
36242
|
-
if (context.timer) {
|
|
36243
|
-
clearTimeout(context.timer);
|
|
36244
|
-
context.timer = null;
|
|
36245
|
-
}
|
|
36241
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
36246
36242
|
if (delay && control && props.value !== stateValue) {
|
|
36247
36243
|
changeStateValue(props.value);
|
|
36244
|
+
} else if (context.timer) {
|
|
36245
|
+
clearTimeout(context.timer);
|
|
36246
|
+
context.timer = null;
|
|
36248
36247
|
}
|
|
36249
36248
|
}, [props.value, delay, control]);
|
|
36250
36249
|
var forceDelayChange = use_persist_fn(function () {
|
|
36251
|
-
if (context.
|
|
36250
|
+
if (context.delayChange) context.delayChange();
|
|
36251
|
+
if (context.timer) {
|
|
36252
36252
|
clearTimeout(context.timer);
|
|
36253
|
-
context.delayChange();
|
|
36254
36253
|
context.timer = null;
|
|
36255
36254
|
context.delayChange = null;
|
|
36256
36255
|
}
|
|
@@ -36336,6 +36335,7 @@ var use_input_excluded = ["inputRef", "rootRef", "value", "onChange", "onFocus",
|
|
|
36336
36335
|
|
|
36337
36336
|
|
|
36338
36337
|
|
|
36338
|
+
|
|
36339
36339
|
/*
|
|
36340
36340
|
数据:
|
|
36341
36341
|
value focused disabled showClear
|
|
@@ -36465,7 +36465,7 @@ var useInput = function useInput(params) {
|
|
|
36465
36465
|
onMouseDown: handleClear(externalEventHandlers)
|
|
36466
36466
|
});
|
|
36467
36467
|
};
|
|
36468
|
-
var showClearValue = showClear !== undefined ? !!showClear : clearable && value;
|
|
36468
|
+
var showClearValue = showClear !== undefined ? !!showClear : clearable && !is_isEmpty(value);
|
|
36469
36469
|
return {
|
|
36470
36470
|
focused: focused,
|
|
36471
36471
|
disabled: disabled,
|
|
@@ -36514,7 +36514,7 @@ var simple_input_excluded = ["jssStyle", "className", "style", "status", "clearI
|
|
|
36514
36514
|
|
|
36515
36515
|
|
|
36516
36516
|
var Input = function Input(props) {
|
|
36517
|
-
var _jssStyle$input
|
|
36517
|
+
var _jssStyle$input;
|
|
36518
36518
|
var jssStyle = props.jssStyle,
|
|
36519
36519
|
className = props.className,
|
|
36520
36520
|
style = props.style,
|
|
@@ -36594,7 +36594,7 @@ var Input = function Input(props) {
|
|
|
36594
36594
|
if (typeof renderInput === 'function') {
|
|
36595
36595
|
inputEl = renderInput(inputEl);
|
|
36596
36596
|
}
|
|
36597
|
-
var rootClass = classnames_default()(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.rootClass, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapper, !!focused && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperFocus), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperDisabled), status === 'error' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperError), size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperLarge), !!underline && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperUnderline), !border && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperNoBorder), hasSuffix && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.password), showClearFromProp && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperShowClear), showClearFromProp && (
|
|
36597
|
+
var rootClass = classnames_default()(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.rootClass, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapper, !!focused && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperFocus), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperDisabled), status === 'error' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperError), size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperLarge), !!underline && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperUnderline), !border && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperNoBorder), hasSuffix && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.password), showClearFromProp && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperShowClear), showClearFromProp && !is_isEmpty(inputElProps.value) && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperHasValue));
|
|
36598
36598
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
36599
36599
|
id: fieldId
|
|
36600
36600
|
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getRootProps({
|
|
@@ -73172,7 +73172,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
73172
73172
|
|
|
73173
73173
|
|
|
73174
73174
|
/* harmony default export */ var src_0 = ({
|
|
73175
|
-
version: '3.8.3-
|
|
73175
|
+
version: '3.8.3-fix.1'
|
|
73176
73176
|
});
|
|
73177
73177
|
}();
|
|
73178
73178
|
/******/ return __webpack_exports__;
|