@douyinfe/semi-ui 2.24.1 → 2.24.3
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/dist/umd/semi-ui.js +27 -12
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/form/hoc/withFormApi.d.ts +1 -1
- package/lib/cjs/form/hoc/withFormApi.js +15 -6
- package/lib/cjs/form/hoc/withFormState.d.ts +1 -1
- package/lib/cjs/form/hoc/withFormState.js +15 -6
- package/lib/cjs/navigation/index.d.ts +7 -7
- package/lib/cjs/slider/index.js +3 -1
- package/lib/es/form/hoc/withFormApi.d.ts +1 -1
- package/lib/es/form/hoc/withFormApi.js +12 -5
- package/lib/es/form/hoc/withFormState.d.ts +1 -1
- package/lib/es/form/hoc/withFormState.js +12 -5
- package/lib/es/navigation/index.d.ts +7 -7
- package/lib/es/slider/index.js +3 -1
- package/package.json +8 -8
package/dist/umd/semi-ui.js
CHANGED
|
@@ -71211,9 +71211,8 @@ class foundation_SelectFoundation extends foundation {
|
|
|
71211
71211
|
}
|
|
71212
71212
|
|
|
71213
71213
|
handleTriggerFocus(e) {
|
|
71214
|
-
this.bindKeyBoardEvent();
|
|
71215
|
-
|
|
71216
|
-
this._adapter.updateFocusState(true);
|
|
71214
|
+
this.bindKeyBoardEvent(); // close the tag in multiple select did not trigger select focus, but trigger TriggerFocus, so not need to updateFocusState in this function
|
|
71215
|
+
// this._adapter.updateFocusState(true);
|
|
71217
71216
|
|
|
71218
71217
|
this._adapter.setIsFocusInContainer(false);
|
|
71219
71218
|
}
|
|
@@ -78224,7 +78223,9 @@ class slider_Slider extends baseComponent_BaseComponent {
|
|
|
78224
78223
|
if (hasPropValueChange) {
|
|
78225
78224
|
const nextValue = this.props.value;
|
|
78226
78225
|
const prevValue = this.state.currentValue;
|
|
78227
|
-
this.foundation.handleValueChange(prevValue, nextValue);
|
|
78226
|
+
this.foundation.handleValueChange(prevValue, nextValue); // trigger onAfterChange when value is controlled and changed
|
|
78227
|
+
|
|
78228
|
+
this.props.onAfterChange(this.props.value);
|
|
78228
78229
|
}
|
|
78229
78230
|
}
|
|
78230
78231
|
|
|
@@ -100551,20 +100552,34 @@ function useFieldState(field) {
|
|
|
100551
100552
|
|
|
100552
100553
|
|
|
100553
100554
|
|
|
100554
|
-
|
|
100555
|
-
|
|
100556
|
-
|
|
100557
|
-
|
|
100555
|
+
function withFormState(Component) {
|
|
100556
|
+
let WithStateCom = (props, ref) => {
|
|
100557
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(FormStateContext.Consumer, null, formState => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, Object.assign({
|
|
100558
|
+
formState: formState,
|
|
100559
|
+
ref: ref
|
|
100560
|
+
}, props)));
|
|
100561
|
+
};
|
|
100562
|
+
|
|
100563
|
+
WithStateCom = /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["forwardRef"])(WithStateCom);
|
|
100564
|
+
return WithStateCom;
|
|
100565
|
+
}
|
|
100558
100566
|
|
|
100559
100567
|
/* harmony default export */ var hoc_withFormState = (withFormState);
|
|
100560
100568
|
// CONCATENATED MODULE: ./form/hoc/withFormApi.tsx
|
|
100561
100569
|
|
|
100562
100570
|
|
|
100563
100571
|
|
|
100564
|
-
|
|
100565
|
-
|
|
100566
|
-
|
|
100567
|
-
|
|
100572
|
+
function withFormApi(Component) {
|
|
100573
|
+
let WithApiCom = (props, ref) => {
|
|
100574
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(FormApiContext.Consumer, null, formApi => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, Object.assign({
|
|
100575
|
+
formApi: formApi,
|
|
100576
|
+
ref: ref
|
|
100577
|
+
}, props)));
|
|
100578
|
+
};
|
|
100579
|
+
|
|
100580
|
+
WithApiCom = /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["forwardRef"])(WithApiCom);
|
|
100581
|
+
return WithApiCom;
|
|
100582
|
+
}
|
|
100568
100583
|
|
|
100569
100584
|
/* harmony default export */ var hoc_withFormApi = (withFormApi);
|
|
100570
100585
|
// CONCATENATED MODULE: ./form/arrayField.tsx
|