@douyinfe/semi-ui 2.1.4 → 2.1.5
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/button/Button.tsx +1 -0
- package/checkbox/checkbox.tsx +2 -0
- package/checkbox/checkboxGroup.tsx +3 -2
- package/dist/css/semi.css +7 -7
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +16 -10
- 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/form/hoc/withField.tsx +1 -1
- package/lib/cjs/_base/base.css +2 -2
- package/lib/cjs/button/Button.d.ts +1 -0
- package/lib/cjs/checkbox/checkbox.js +3 -1
- package/lib/cjs/checkbox/checkboxGroup.d.ts +1 -0
- package/lib/cjs/checkbox/checkboxGroup.js +3 -1
- package/lib/cjs/form/baseForm.d.ts +1 -0
- package/lib/cjs/form/field.d.ts +1 -0
- package/lib/cjs/form/hoc/withField.js +3 -1
- package/lib/cjs/modal/Modal.d.ts +2 -2
- package/lib/cjs/modal/Modal.js +2 -2
- package/lib/cjs/modal/confirm.d.ts +10 -10
- package/lib/cjs/navigation/index.d.ts +2 -2
- package/lib/cjs/select/index.d.ts +1 -0
- package/lib/cjs/select/index.js +2 -0
- package/lib/cjs/timeline/item.d.ts +2 -2
- package/lib/cjs/timeline/item.js +3 -3
- package/lib/cjs/tree/treeNode.js +0 -2
- package/lib/es/_base/base.css +2 -2
- package/lib/es/button/Button.d.ts +1 -0
- package/lib/es/checkbox/checkbox.js +3 -1
- package/lib/es/checkbox/checkboxGroup.d.ts +1 -0
- package/lib/es/checkbox/checkboxGroup.js +3 -1
- package/lib/es/form/baseForm.d.ts +1 -0
- package/lib/es/form/field.d.ts +1 -0
- package/lib/es/form/hoc/withField.js +3 -1
- package/lib/es/modal/Modal.d.ts +2 -2
- package/lib/es/modal/Modal.js +2 -2
- package/lib/es/modal/confirm.d.ts +10 -10
- package/lib/es/navigation/index.d.ts +2 -2
- package/lib/es/select/index.d.ts +1 -0
- package/lib/es/select/index.js +2 -0
- package/lib/es/timeline/item.d.ts +2 -2
- package/lib/es/timeline/item.js +3 -3
- package/lib/es/tree/treeNode.js +0 -2
- package/modal/Modal.tsx +4 -4
- package/navigation/index.tsx +2 -2
- package/package.json +8 -8
- package/radio/_story/radio.stories.js +12 -1
- package/select/index.tsx +3 -0
- package/timeline/__test__/timeline.test.js +17 -1
- package/timeline/item.tsx +4 -4
- package/tree/_story/tree.stories.js +2 -2
- package/tree/treeNode.tsx +0 -2
package/dist/umd/semi-ui.js
CHANGED
|
@@ -44824,7 +44824,8 @@ class checkbox_Checkbox extends baseComponent_BaseComponent {
|
|
|
44824
44824
|
onMouseEnter,
|
|
44825
44825
|
onMouseLeave,
|
|
44826
44826
|
extra,
|
|
44827
|
-
value
|
|
44827
|
+
value,
|
|
44828
|
+
id
|
|
44828
44829
|
} = this.props;
|
|
44829
44830
|
const {
|
|
44830
44831
|
checked
|
|
@@ -44882,6 +44883,7 @@ class checkbox_Checkbox extends baseComponent_BaseComponent {
|
|
|
44882
44883
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
|
44883
44884
|
style: style,
|
|
44884
44885
|
className: wrapper,
|
|
44886
|
+
id: id,
|
|
44885
44887
|
onMouseEnter: onMouseEnter,
|
|
44886
44888
|
onMouseLeave: onMouseLeave,
|
|
44887
44889
|
onClick: this.handleChange
|
|
@@ -45081,6 +45083,7 @@ class checkboxGroup_CheckboxGroup extends baseComponent_BaseComponent {
|
|
|
45081
45083
|
prefixCls,
|
|
45082
45084
|
direction,
|
|
45083
45085
|
className,
|
|
45086
|
+
id,
|
|
45084
45087
|
style,
|
|
45085
45088
|
type
|
|
45086
45089
|
} = this.props;
|
|
@@ -45132,7 +45135,8 @@ class checkboxGroup_CheckboxGroup extends baseComponent_BaseComponent {
|
|
|
45132
45135
|
|
|
45133
45136
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
45134
45137
|
className: prefixClsDisplay,
|
|
45135
|
-
style: style
|
|
45138
|
+
style: style,
|
|
45139
|
+
id: id
|
|
45136
45140
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Context.Provider, {
|
|
45137
45141
|
value: {
|
|
45138
45142
|
checkboxGroup: {
|
|
@@ -60752,8 +60756,8 @@ Modal_Modal.propTypes = {
|
|
|
60752
60756
|
closable: prop_types_default.a.bool,
|
|
60753
60757
|
centered: prop_types_default.a.bool,
|
|
60754
60758
|
visible: prop_types_default.a.bool,
|
|
60755
|
-
width: prop_types_default.a.number,
|
|
60756
|
-
height: prop_types_default.a.number,
|
|
60759
|
+
width: prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number]),
|
|
60760
|
+
height: prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number]),
|
|
60757
60761
|
confirmLoading: prop_types_default.a.bool,
|
|
60758
60762
|
cancelLoading: prop_types_default.a.bool,
|
|
60759
60763
|
okText: prop_types_default.a.string,
|
|
@@ -72768,6 +72772,7 @@ class select_Select extends baseComponent_BaseComponent {
|
|
|
72768
72772
|
multiple,
|
|
72769
72773
|
filter,
|
|
72770
72774
|
style,
|
|
72775
|
+
id,
|
|
72771
72776
|
size,
|
|
72772
72777
|
className,
|
|
72773
72778
|
validateStatus,
|
|
@@ -72841,6 +72846,7 @@ class select_Select extends baseComponent_BaseComponent {
|
|
|
72841
72846
|
ref: ref => this.triggerRef.current = ref,
|
|
72842
72847
|
onClick: e => this.foundation.handleClick(e),
|
|
72843
72848
|
style: style,
|
|
72849
|
+
id: id,
|
|
72844
72850
|
tabIndex: tabIndex,
|
|
72845
72851
|
onMouseEnter: this.onMouseEnter,
|
|
72846
72852
|
onMouseLeave: this.onMouseLeave,
|
|
@@ -86796,9 +86802,9 @@ class timeline_item_Item extends external_root_React_commonjs2_react_commonjs_re
|
|
|
86796
86802
|
className: dotCls
|
|
86797
86803
|
}, dotStyle), dot), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
86798
86804
|
className: "".concat(timeline_item_prefixCls, "-content")
|
|
86799
|
-
}, children, extra
|
|
86805
|
+
}, children, extra && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
86800
86806
|
className: "".concat(timeline_item_prefixCls, "-content-extra")
|
|
86801
|
-
}, extra)
|
|
86807
|
+
}, extra), time && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
86802
86808
|
className: "".concat(timeline_item_prefixCls, "-content-time")
|
|
86803
86809
|
}, time)));
|
|
86804
86810
|
}
|
|
@@ -86806,7 +86812,7 @@ class timeline_item_Item extends external_root_React_commonjs2_react_commonjs_re
|
|
|
86806
86812
|
}
|
|
86807
86813
|
timeline_item_Item.propTypes = {
|
|
86808
86814
|
color: prop_types_default.a.string,
|
|
86809
|
-
time: prop_types_default.a.
|
|
86815
|
+
time: prop_types_default.a.node,
|
|
86810
86816
|
type: prop_types_default.a.oneOf(timeline_constants_strings.ITEM_TYPE),
|
|
86811
86817
|
dot: prop_types_default.a.node,
|
|
86812
86818
|
extra: prop_types_default.a.node,
|
|
@@ -89937,8 +89943,6 @@ class treeNode_TreeNode extends external_root_React_commonjs2_react_commonjs_rea
|
|
|
89937
89943
|
const {
|
|
89938
89944
|
onNodeRightClick
|
|
89939
89945
|
} = this.context;
|
|
89940
|
-
e.stopPropagation();
|
|
89941
|
-
e.nativeEvent.stopImmediatePropagation();
|
|
89942
89946
|
onNodeRightClick(e, this.props);
|
|
89943
89947
|
};
|
|
89944
89948
|
|
|
@@ -99980,7 +99984,9 @@ function withField(Component, opts) {
|
|
|
99980
99984
|
// Return without injection, eg: <Checkbox> / <Radio> inside CheckboxGroup/RadioGroup
|
|
99981
99985
|
|
|
99982
99986
|
if (!shouldInject) {
|
|
99983
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, assign_default()({}, rest
|
|
99987
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, assign_default()({}, rest, {
|
|
99988
|
+
ref: ref
|
|
99989
|
+
}));
|
|
99984
99990
|
} // grab formState from context
|
|
99985
99991
|
|
|
99986
99992
|
|