@douyinfe/semi-ui 2.24.2 → 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 +24 -11
- 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/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/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
|
}
|
|
@@ -100553,20 +100552,34 @@ function useFieldState(field) {
|
|
|
100553
100552
|
|
|
100554
100553
|
|
|
100555
100554
|
|
|
100556
|
-
|
|
100557
|
-
|
|
100558
|
-
|
|
100559
|
-
|
|
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
|
+
}
|
|
100560
100566
|
|
|
100561
100567
|
/* harmony default export */ var hoc_withFormState = (withFormState);
|
|
100562
100568
|
// CONCATENATED MODULE: ./form/hoc/withFormApi.tsx
|
|
100563
100569
|
|
|
100564
100570
|
|
|
100565
100571
|
|
|
100566
|
-
|
|
100567
|
-
|
|
100568
|
-
|
|
100569
|
-
|
|
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
|
+
}
|
|
100570
100583
|
|
|
100571
100584
|
/* harmony default export */ var hoc_withFormApi = (withFormApi);
|
|
100572
100585
|
// CONCATENATED MODULE: ./form/arrayField.tsx
|