@douyinfe/semi-ui 2.32.1-alpha.2 → 2.33.0-beta.0
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/css/semi.css +187 -26
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +10874 -5562
- 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/anchor/index.d.ts +1 -1
- package/lib/cjs/autoComplete/index.d.ts +1 -1
- package/lib/cjs/button/Button.d.ts +1 -1
- package/lib/cjs/button/buttonGroup.d.ts +1 -1
- package/lib/cjs/button/index.d.ts +1 -1
- package/lib/cjs/cascader/index.d.ts +2 -0
- package/lib/cjs/cascader/index.js +5 -1
- package/lib/cjs/collapse/collapse-context.d.ts +1 -0
- package/lib/cjs/collapse/index.d.ts +2 -0
- package/lib/cjs/collapse/index.js +6 -2
- package/lib/cjs/collapse/item.d.ts +2 -0
- package/lib/cjs/collapse/item.js +13 -2
- package/lib/cjs/datePicker/dateInput.d.ts +3 -1
- package/lib/cjs/datePicker/dateInput.js +10 -3
- package/lib/cjs/datePicker/datePicker.d.ts +5 -3
- package/lib/cjs/datePicker/datePicker.js +20 -7
- package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
- package/lib/cjs/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/cjs/form/baseForm.d.ts +2 -1
- package/lib/cjs/form/field.d.ts +2 -1
- package/lib/cjs/iconButton/index.d.ts +1 -0
- package/lib/cjs/iconButton/index.js +1 -0
- package/lib/cjs/input/index.d.ts +4 -1
- package/lib/cjs/input/index.js +9 -5
- package/lib/cjs/input/inputGroup.d.ts +1 -1
- package/lib/cjs/input/textarea.d.ts +1 -0
- package/lib/cjs/input/textarea.js +6 -2
- package/lib/cjs/modal/confirm.d.ts +17 -17
- package/lib/cjs/navigation/Footer.d.ts +1 -0
- package/lib/cjs/navigation/Footer.js +2 -1
- package/lib/cjs/navigation/Header.d.ts +1 -0
- package/lib/cjs/navigation/Header.js +2 -1
- package/lib/cjs/navigation/index.js +2 -2
- package/lib/cjs/rating/index.d.ts +1 -1
- package/lib/cjs/rating/item.d.ts +1 -1
- package/lib/cjs/select/index.d.ts +2 -0
- package/lib/cjs/select/index.js +5 -1
- package/lib/cjs/switch/index.d.ts +1 -1
- package/lib/cjs/table/Column.d.ts +1 -0
- package/lib/cjs/table/Column.js +2 -1
- package/lib/cjs/table/Table.d.ts +2 -2
- package/lib/cjs/table/getColumns.js +1 -1
- package/lib/cjs/table/index.d.ts +1 -1
- package/lib/cjs/tagInput/index.d.ts +1 -1
- package/lib/cjs/timePicker/TimeInput.d.ts +3 -1
- package/lib/cjs/timePicker/TimeInput.js +2 -0
- package/lib/cjs/timePicker/TimePicker.d.ts +4 -1
- package/lib/cjs/timePicker/TimePicker.js +2 -0
- package/lib/cjs/timePicker/index.d.ts +3 -1
- package/lib/cjs/tooltip/index.js +1 -1
- package/lib/cjs/treeSelect/index.d.ts +1 -0
- package/lib/cjs/treeSelect/index.js +5 -1
- package/lib/cjs/typography/title.d.ts +1 -0
- package/lib/es/anchor/index.d.ts +1 -1
- package/lib/es/autoComplete/index.d.ts +1 -1
- package/lib/es/button/Button.d.ts +1 -1
- package/lib/es/button/buttonGroup.d.ts +1 -1
- package/lib/es/button/index.d.ts +1 -1
- package/lib/es/cascader/index.d.ts +2 -0
- package/lib/es/cascader/index.js +5 -1
- package/lib/es/collapse/collapse-context.d.ts +1 -0
- package/lib/es/collapse/index.d.ts +2 -0
- package/lib/es/collapse/index.js +6 -2
- package/lib/es/collapse/item.d.ts +2 -0
- package/lib/es/collapse/item.js +13 -2
- package/lib/es/datePicker/dateInput.d.ts +3 -1
- package/lib/es/datePicker/dateInput.js +10 -3
- package/lib/es/datePicker/datePicker.d.ts +5 -3
- package/lib/es/datePicker/datePicker.js +19 -7
- package/lib/es/datePicker/monthsGrid.d.ts +1 -1
- package/lib/es/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/es/form/baseForm.d.ts +2 -1
- package/lib/es/form/field.d.ts +2 -1
- package/lib/es/iconButton/index.d.ts +1 -0
- package/lib/es/iconButton/index.js +1 -0
- package/lib/es/input/index.d.ts +4 -1
- package/lib/es/input/index.js +9 -5
- package/lib/es/input/inputGroup.d.ts +1 -1
- package/lib/es/input/textarea.d.ts +1 -0
- package/lib/es/input/textarea.js +6 -2
- package/lib/es/modal/confirm.d.ts +17 -17
- package/lib/es/navigation/Footer.d.ts +1 -0
- package/lib/es/navigation/Footer.js +2 -1
- package/lib/es/navigation/Header.d.ts +1 -0
- package/lib/es/navigation/Header.js +2 -1
- package/lib/es/navigation/index.js +2 -2
- package/lib/es/rating/index.d.ts +1 -1
- package/lib/es/rating/item.d.ts +1 -1
- package/lib/es/select/index.d.ts +2 -0
- package/lib/es/select/index.js +5 -1
- package/lib/es/switch/index.d.ts +1 -1
- package/lib/es/table/Column.d.ts +1 -0
- package/lib/es/table/Column.js +2 -1
- package/lib/es/table/Table.d.ts +2 -2
- package/lib/es/table/getColumns.js +1 -1
- package/lib/es/table/index.d.ts +1 -1
- package/lib/es/tagInput/index.d.ts +1 -1
- package/lib/es/timePicker/TimeInput.d.ts +3 -1
- package/lib/es/timePicker/TimeInput.js +2 -0
- package/lib/es/timePicker/TimePicker.d.ts +4 -1
- package/lib/es/timePicker/TimePicker.js +2 -0
- package/lib/es/timePicker/index.d.ts +3 -1
- package/lib/es/tooltip/index.js +1 -1
- package/lib/es/treeSelect/index.d.ts +1 -0
- package/lib/es/treeSelect/index.js +5 -1
- package/lib/es/typography/title.d.ts +1 -0
- package/package.json +8 -8
package/lib/es/collapse/index.js
CHANGED
|
@@ -81,9 +81,10 @@ class Collapse extends BaseComponent {
|
|
|
81
81
|
expandIconPosition,
|
|
82
82
|
expandIcon,
|
|
83
83
|
collapseIcon,
|
|
84
|
-
children
|
|
84
|
+
children,
|
|
85
|
+
clickHeaderToExpand
|
|
85
86
|
} = _a,
|
|
86
|
-
rest = __rest(_a, ["defaultActiveKey", "accordion", "style", "motion", "className", "keepDOM", "expandIconPosition", "expandIcon", "collapseIcon", "children"]);
|
|
87
|
+
rest = __rest(_a, ["defaultActiveKey", "accordion", "style", "motion", "className", "keepDOM", "expandIconPosition", "expandIcon", "collapseIcon", "children", "clickHeaderToExpand"]);
|
|
87
88
|
|
|
88
89
|
const clsPrefix = cls(cssClasses.PREFIX, className);
|
|
89
90
|
const {
|
|
@@ -97,6 +98,7 @@ class Collapse extends BaseComponent {
|
|
|
97
98
|
activeSet,
|
|
98
99
|
expandIcon,
|
|
99
100
|
collapseIcon,
|
|
101
|
+
clickHeaderToExpand,
|
|
100
102
|
keepDOM,
|
|
101
103
|
expandIconPosition,
|
|
102
104
|
onClick: this.onChange,
|
|
@@ -112,6 +114,7 @@ Collapse.propTypes = {
|
|
|
112
114
|
activeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
|
|
113
115
|
defaultActiveKey: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
|
|
114
116
|
accordion: PropTypes.bool,
|
|
117
|
+
clickHeaderToExpand: PropTypes.bool,
|
|
115
118
|
onChange: PropTypes.func,
|
|
116
119
|
expandIcon: PropTypes.node,
|
|
117
120
|
collapseIcon: PropTypes.node,
|
|
@@ -123,6 +126,7 @@ Collapse.propTypes = {
|
|
|
123
126
|
};
|
|
124
127
|
Collapse.defaultProps = {
|
|
125
128
|
defaultActiveKey: '',
|
|
129
|
+
clickHeaderToExpand: true,
|
|
126
130
|
onChange: noop,
|
|
127
131
|
expandIconPosition: 'right'
|
|
128
132
|
};
|
|
@@ -14,6 +14,7 @@ export interface CollapsePanelProps {
|
|
|
14
14
|
}
|
|
15
15
|
export default class CollapsePanel extends PureComponent<CollapsePanelProps> {
|
|
16
16
|
static contextType: React.Context<CollapseContextType>;
|
|
17
|
+
headerExpandIconTriggerRef: React.RefObject<HTMLElement>;
|
|
17
18
|
static propTypes: {
|
|
18
19
|
itemKey: PropTypes.Requireable<string>;
|
|
19
20
|
extra: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
@@ -30,5 +31,6 @@ export default class CollapsePanel extends PureComponent<CollapsePanelProps> {
|
|
|
30
31
|
private ariaID;
|
|
31
32
|
context: CollapseContextType;
|
|
32
33
|
renderHeader(active: boolean, expandIconEnable?: boolean): JSX.Element;
|
|
34
|
+
handleClick: (itemKey: string, e: React.MouseEvent) => void;
|
|
33
35
|
render(): JSX.Element;
|
|
34
36
|
}
|
package/lib/es/collapse/item.js
CHANGED
|
@@ -20,7 +20,18 @@ import { getUuidShort } from '@douyinfe/semi-foundation/lib/es/utils/uuid';
|
|
|
20
20
|
export default class CollapsePanel extends PureComponent {
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
23
|
+
this.headerExpandIconTriggerRef = /*#__PURE__*/React.createRef();
|
|
23
24
|
this.ariaID = getUuidShort({});
|
|
25
|
+
|
|
26
|
+
this.handleClick = (itemKey, e) => {
|
|
27
|
+
var _a; // Judge user click Icon or Header
|
|
28
|
+
// Don't mount this func into icon span wrapper, or get triggered twice because of event propagation
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
if (this.context.clickHeaderToExpand || ((_a = this.headerExpandIconTriggerRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
|
|
32
|
+
this.context.onClick(itemKey, e);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
24
35
|
}
|
|
25
36
|
|
|
26
37
|
renderHeader(active) {
|
|
@@ -47,6 +58,7 @@ export default class CollapsePanel extends PureComponent {
|
|
|
47
58
|
}
|
|
48
59
|
|
|
49
60
|
const icon = /*#__PURE__*/React.createElement("span", {
|
|
61
|
+
ref: this.headerExpandIconTriggerRef,
|
|
50
62
|
"aria-hidden": 'true',
|
|
51
63
|
className: cls([`${cssClasses.PREFIX}-header-icon`, {
|
|
52
64
|
[`${cssClasses.PREFIX}-header-iconDisabled`]: !expandIconEnable
|
|
@@ -81,7 +93,6 @@ export default class CollapsePanel extends PureComponent {
|
|
|
81
93
|
keepDOM,
|
|
82
94
|
expandIconPosition,
|
|
83
95
|
activeSet,
|
|
84
|
-
onClick,
|
|
85
96
|
motion
|
|
86
97
|
} = this.context;
|
|
87
98
|
const active = activeSet.has(itemKey);
|
|
@@ -105,7 +116,7 @@ export default class CollapsePanel extends PureComponent {
|
|
|
105
116
|
"aria-disabled": disabled,
|
|
106
117
|
"aria-expanded": active ? 'true' : 'false',
|
|
107
118
|
"aria-owns": this.ariaID,
|
|
108
|
-
onClick: e => !disabled &&
|
|
119
|
+
onClick: e => !disabled && this.handleClick(itemKey, e)
|
|
109
120
|
}, this.renderHeader(active, children !== undefined && !disabled)), children && /*#__PURE__*/React.createElement(Collapsible, {
|
|
110
121
|
isOpen: active,
|
|
111
122
|
keepDOM: keepDOM,
|
|
@@ -21,6 +21,7 @@ export interface DateInputProps extends DateInputFoundationProps, BaseProps {
|
|
|
21
21
|
}
|
|
22
22
|
export default class DateInput extends BaseComponent<DateInputProps, {}> {
|
|
23
23
|
static propTypes: {
|
|
24
|
+
borderless: PropTypes.Requireable<boolean>;
|
|
24
25
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
25
26
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
27
|
onEnterPress: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -29,7 +30,7 @@ export default class DateInput extends BaseComponent<DateInputProps, {}> {
|
|
|
29
30
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
31
|
value: PropTypes.Requireable<any[]>;
|
|
31
32
|
disabled: PropTypes.Requireable<boolean>;
|
|
32
|
-
type: PropTypes.Requireable<"
|
|
33
|
+
type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
33
34
|
showClear: PropTypes.Requireable<boolean>;
|
|
34
35
|
format: PropTypes.Requireable<string>;
|
|
35
36
|
inputStyle: PropTypes.Requireable<object>;
|
|
@@ -49,6 +50,7 @@ export default class DateInput extends BaseComponent<DateInputProps, {}> {
|
|
|
49
50
|
defaultPickerValue: PropTypes.Requireable<NonNullable<string | number | object>>;
|
|
50
51
|
};
|
|
51
52
|
static defaultProps: {
|
|
53
|
+
borderless: boolean;
|
|
52
54
|
showClear: boolean;
|
|
53
55
|
onClick: typeof noop;
|
|
54
56
|
onChange: typeof noop;
|
|
@@ -214,7 +214,8 @@ export default class DateInput extends BaseComponent {
|
|
|
214
214
|
rangeInputEndRef,
|
|
215
215
|
rangeInputFocus,
|
|
216
216
|
prefixCls,
|
|
217
|
-
rangeSeparator
|
|
217
|
+
rangeSeparator,
|
|
218
|
+
borderless
|
|
218
219
|
} = rangeProps;
|
|
219
220
|
const [rangeStart, rangeEnd = ''] = text.split(rangeSeparator) || [];
|
|
220
221
|
const rangeSize = size === 'large' ? 'default' : 'small';
|
|
@@ -222,15 +223,18 @@ export default class DateInput extends BaseComponent {
|
|
|
222
223
|
const [rangeStartPlaceholder, rangeEndPlaceholder] = rangePlaceholder;
|
|
223
224
|
const inputLeftWrapperCls = cls(`${prefixCls}-range-input-wrapper-start`, `${prefixCls}-range-input-wrapper`, {
|
|
224
225
|
[`${prefixCls}-range-input-wrapper-active`]: rangeInputFocus === 'rangeStart' && !disabled,
|
|
225
|
-
[`${prefixCls}-range-input-wrapper-start-with-prefix`]: this.props.prefix || this.props.insetLabel
|
|
226
|
+
[`${prefixCls}-range-input-wrapper-start-with-prefix`]: this.props.prefix || this.props.insetLabel,
|
|
227
|
+
[`${prefixCls}-borderless`]: borderless
|
|
226
228
|
});
|
|
227
229
|
const inputRightWrapperCls = cls(`${prefixCls}-range-input-wrapper-end`, `${prefixCls}-range-input-wrapper`, {
|
|
228
|
-
[`${prefixCls}-range-input-wrapper-active`]: rangeInputFocus === 'rangeEnd' && !disabled
|
|
230
|
+
[`${prefixCls}-range-input-wrapper-active`]: rangeInputFocus === 'rangeEnd' && !disabled,
|
|
231
|
+
[`${prefixCls}-borderless`]: borderless
|
|
229
232
|
});
|
|
230
233
|
return /*#__PURE__*/React.createElement(React.Fragment, null, this.renderRangePrefix(), /*#__PURE__*/React.createElement("div", {
|
|
231
234
|
onClick: e => !disabled && this.handleRangeInputFocus(e, 'rangeStart'),
|
|
232
235
|
className: `${inputCls} ${inputLeftWrapperCls}`
|
|
233
236
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
237
|
+
borderless: borderless,
|
|
234
238
|
size: rangeSize,
|
|
235
239
|
style: inputStyle,
|
|
236
240
|
disabled: disabled,
|
|
@@ -248,6 +252,7 @@ export default class DateInput extends BaseComponent {
|
|
|
248
252
|
className: `${inputCls} ${inputRightWrapperCls}`,
|
|
249
253
|
onClick: e => !disabled && this.handleRangeInputFocus(e, 'rangeEnd')
|
|
250
254
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
255
|
+
borderless: borderless,
|
|
251
256
|
size: rangeSize,
|
|
252
257
|
style: inputStyle,
|
|
253
258
|
disabled: disabled,
|
|
@@ -438,6 +443,7 @@ export default class DateInput extends BaseComponent {
|
|
|
438
443
|
|
|
439
444
|
}
|
|
440
445
|
DateInput.propTypes = {
|
|
446
|
+
borderless: PropTypes.bool,
|
|
441
447
|
onClick: PropTypes.func,
|
|
442
448
|
onChange: PropTypes.func,
|
|
443
449
|
onEnterPress: PropTypes.func,
|
|
@@ -466,6 +472,7 @@ DateInput.propTypes = {
|
|
|
466
472
|
defaultPickerValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object, PropTypes.array])
|
|
467
473
|
};
|
|
468
474
|
DateInput.defaultProps = {
|
|
475
|
+
borderless: false,
|
|
469
476
|
showClear: true,
|
|
470
477
|
onClick: noop,
|
|
471
478
|
onChange: noop,
|
|
@@ -57,8 +57,9 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
|
|
|
57
57
|
'aria-invalid': PropTypes.Requireable<boolean>;
|
|
58
58
|
'aria-labelledby': PropTypes.Requireable<string>;
|
|
59
59
|
'aria-required': PropTypes.Requireable<boolean>;
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
borderless: PropTypes.Requireable<boolean>;
|
|
61
|
+
type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
62
|
+
size: PropTypes.Requireable<"default" | "small" | "large">;
|
|
62
63
|
clearIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
63
64
|
density: PropTypes.Requireable<"default" | "compact">;
|
|
64
65
|
defaultValue: PropTypes.Requireable<NonNullable<string | number | object>>;
|
|
@@ -128,6 +129,7 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
|
|
|
128
129
|
};
|
|
129
130
|
static defaultProps: {
|
|
130
131
|
onChangeWithDateFirst: boolean;
|
|
132
|
+
borderless: boolean;
|
|
131
133
|
autoAdjustOverflow: boolean;
|
|
132
134
|
stopPropagation: boolean;
|
|
133
135
|
motion: boolean;
|
|
@@ -227,7 +229,7 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
|
|
|
227
229
|
handleInsetDateFocus: (e: React.FocusEvent, rangeType: 'rangeStart' | 'rangeEnd') => void;
|
|
228
230
|
handleInsetTimeFocus: () => void;
|
|
229
231
|
handlePanelVisibleChange: (visible: boolean) => void;
|
|
230
|
-
renderInner(): JSX.Element;
|
|
232
|
+
renderInner(extraProps?: Partial<DatePickerProps>): JSX.Element;
|
|
231
233
|
handleConfirm: (e: React.MouseEvent) => void;
|
|
232
234
|
handleCancel: (e: React.MouseEvent) => void;
|
|
233
235
|
renderFooter: (locale: Locale['DatePicker'], localeCode: string) => JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _pick from "lodash/pick";
|
|
1
2
|
import _isEqual from "lodash/isEqual";
|
|
2
3
|
import _isFunction from "lodash/isFunction";
|
|
3
4
|
import _get from "lodash/get";
|
|
@@ -706,7 +707,7 @@ export default class DatePicker extends BaseComponent {
|
|
|
706
707
|
})) : null;
|
|
707
708
|
}
|
|
708
709
|
|
|
709
|
-
renderInner() {
|
|
710
|
+
renderInner(extraProps) {
|
|
710
711
|
const {
|
|
711
712
|
clearIcon,
|
|
712
713
|
type,
|
|
@@ -727,7 +728,8 @@ export default class DatePicker extends BaseComponent {
|
|
|
727
728
|
inputReadOnly,
|
|
728
729
|
rangeSeparator,
|
|
729
730
|
insetInput,
|
|
730
|
-
defaultPickerValue
|
|
731
|
+
defaultPickerValue,
|
|
732
|
+
borderless
|
|
731
733
|
} = this.props;
|
|
732
734
|
const {
|
|
733
735
|
value,
|
|
@@ -743,12 +745,13 @@ export default class DatePicker extends BaseComponent {
|
|
|
743
745
|
[`${cssClasses.PREFIX}-range-input-${size}`]: isRangeType && size,
|
|
744
746
|
[`${cssClasses.PREFIX}-range-input-active`]: isRangeType && rangeInputFocus && !inputDisabled,
|
|
745
747
|
[`${cssClasses.PREFIX}-range-input-disabled`]: isRangeType && inputDisabled,
|
|
746
|
-
[`${cssClasses.PREFIX}-range-input-${validateStatus}`]: isRangeType && validateStatus
|
|
748
|
+
[`${cssClasses.PREFIX}-range-input-${validateStatus}`]: isRangeType && validateStatus,
|
|
749
|
+
[`${cssClasses.PREFIX}-borderless`]: borderless
|
|
747
750
|
});
|
|
748
751
|
const phText = placeholder || locale.placeholder[type]; // i18n
|
|
749
752
|
// These values should be passed to triggerRender, do not delete any key if it is not necessary
|
|
750
753
|
|
|
751
|
-
const props = {
|
|
754
|
+
const props = Object.assign(Object.assign({}, extraProps), {
|
|
752
755
|
placeholder: phText,
|
|
753
756
|
clearIcon,
|
|
754
757
|
disabled: inputDisabled,
|
|
@@ -784,7 +787,7 @@ export default class DatePicker extends BaseComponent {
|
|
|
784
787
|
rangeInputStartRef: insetInput ? null : this.rangeInputStartRef,
|
|
785
788
|
rangeInputEndRef: insetInput ? null : this.rangeInputEndRef,
|
|
786
789
|
inputRef: this.inputRef
|
|
787
|
-
};
|
|
790
|
+
});
|
|
788
791
|
return /*#__PURE__*/React.createElement("div", {
|
|
789
792
|
// tooltip will mount a11y props to children
|
|
790
793
|
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
@@ -804,7 +807,8 @@ export default class DatePicker extends BaseComponent {
|
|
|
804
807
|
const {
|
|
805
808
|
style,
|
|
806
809
|
className,
|
|
807
|
-
prefixCls
|
|
810
|
+
prefixCls,
|
|
811
|
+
type
|
|
808
812
|
} = this.props;
|
|
809
813
|
const outerProps = {
|
|
810
814
|
style,
|
|
@@ -818,7 +822,13 @@ export default class DatePicker extends BaseComponent {
|
|
|
818
822
|
'aria-describedby': this.props['aria-describedby'],
|
|
819
823
|
'aria-required': this.props['aria-required']
|
|
820
824
|
};
|
|
821
|
-
const
|
|
825
|
+
const innerPropKeys = [];
|
|
826
|
+
|
|
827
|
+
if (!type.toLowerCase().includes("range")) {
|
|
828
|
+
innerPropKeys.push("borderless");
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
const inner = this.renderInner(_pick(this.props, innerPropKeys));
|
|
822
832
|
const wrappedInner = this.wrapPopover(inner);
|
|
823
833
|
return /*#__PURE__*/React.createElement("div", Object.assign({}, outerProps), wrappedInner);
|
|
824
834
|
}
|
|
@@ -831,6 +841,7 @@ DatePicker.propTypes = {
|
|
|
831
841
|
'aria-invalid': PropTypes.bool,
|
|
832
842
|
'aria-labelledby': PropTypes.string,
|
|
833
843
|
'aria-required': PropTypes.bool,
|
|
844
|
+
borderless: PropTypes.bool,
|
|
834
845
|
type: PropTypes.oneOf(strings.TYPE_SET),
|
|
835
846
|
size: PropTypes.oneOf(strings.SIZE_SET),
|
|
836
847
|
clearIcon: PropTypes.node,
|
|
@@ -904,6 +915,7 @@ DatePicker.propTypes = {
|
|
|
904
915
|
};
|
|
905
916
|
DatePicker.defaultProps = {
|
|
906
917
|
onChangeWithDateFirst: true,
|
|
918
|
+
borderless: false,
|
|
907
919
|
autoAdjustOverflow: true,
|
|
908
920
|
stopPropagation: true,
|
|
909
921
|
motion: true,
|
|
@@ -19,7 +19,7 @@ export interface MonthsGridProps extends MonthsGridFoundationProps, BaseProps {
|
|
|
19
19
|
export declare type MonthsGridState = MonthsGridFoundationState;
|
|
20
20
|
export default class MonthsGrid extends BaseComponent<MonthsGridProps, MonthsGridState> {
|
|
21
21
|
static propTypes: {
|
|
22
|
-
type: PropTypes.Requireable<"
|
|
22
|
+
type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
23
23
|
defaultValue: PropTypes.Requireable<any[]>;
|
|
24
24
|
defaultPickerValue: PropTypes.Requireable<NonNullable<string | number | object>>;
|
|
25
25
|
multiple: PropTypes.Requireable<boolean>;
|
|
@@ -24,7 +24,7 @@ declare class YearAndMonth extends BaseComponent<YearAndMonthProps, YearAndMonth
|
|
|
24
24
|
presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
|
|
25
25
|
renderQuickControls: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
26
26
|
renderDateInput: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
27
|
-
type: PropTypes.Requireable<"
|
|
27
|
+
type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
28
28
|
};
|
|
29
29
|
static defaultProps: {
|
|
30
30
|
disabledDate: {
|
|
@@ -64,6 +64,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
|
|
|
64
64
|
autoFocus?: boolean;
|
|
65
65
|
autoClearSearchValue?: boolean;
|
|
66
66
|
arrowIcon?: React.ReactNode;
|
|
67
|
+
borderless?: boolean;
|
|
67
68
|
clearIcon?: React.ReactNode;
|
|
68
69
|
defaultValue?: string | number | any[] | Record<string, any>;
|
|
69
70
|
value?: string | number | any[] | Record<string, any>;
|
|
@@ -137,7 +138,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
|
|
|
137
138
|
preventScroll?: boolean;
|
|
138
139
|
showRestTagsPopover?: boolean;
|
|
139
140
|
restTagsPopoverProps?: import("../popover").PopoverProps;
|
|
140
|
-
} & Pick<import("../tooltip").TooltipProps, "
|
|
141
|
+
} & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "motion" | "getPopupContainer" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
|
|
141
142
|
static Checkbox: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox").CheckboxProps & import("./interface").RCIncludeType>;
|
|
142
143
|
static CheckboxGroup: React.ComponentType<import("utility-types").Subtract<import("../checkbox").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & React.RefAttributes<any>>;
|
|
143
144
|
static Radio: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../radio").RadioProps & import("./interface").RCIncludeType>;
|
package/lib/es/form/field.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
|
|
|
12
12
|
autoFocus?: boolean;
|
|
13
13
|
autoClearSearchValue?: boolean;
|
|
14
14
|
arrowIcon?: import("react").ReactNode;
|
|
15
|
+
borderless?: boolean;
|
|
15
16
|
clearIcon?: import("react").ReactNode;
|
|
16
17
|
defaultValue?: string | number | any[] | Record<string, any>;
|
|
17
18
|
value?: string | number | any[] | Record<string, any>;
|
|
@@ -85,7 +86,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
|
|
|
85
86
|
preventScroll?: boolean;
|
|
86
87
|
showRestTagsPopover?: boolean;
|
|
87
88
|
restTagsPopoverProps?: import("../popover").PopoverProps;
|
|
88
|
-
} & Pick<import("../tooltip").TooltipProps, "
|
|
89
|
+
} & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "motion" | "getPopupContainer" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
|
|
89
90
|
declare const FormCheckboxGroup: import("react").ComponentType<import("utility-types").Subtract<import("../checkbox/checkboxGroup").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & import("react").RefAttributes<any>>;
|
|
90
91
|
declare const FormCheckbox: import("react").ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox/checkbox").CheckboxProps & import("./interface").RCIncludeType>;
|
|
91
92
|
declare const FormRadioGroup: import("react").ComponentType<import("utility-types").Subtract<import("../radio/radioGroup").RadioGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & import("react").RefAttributes<any>>;
|
|
@@ -26,6 +26,7 @@ declare class IconButton extends PureComponent<IconButtonProps> {
|
|
|
26
26
|
onMouseEnter: (...args: any[]) => void;
|
|
27
27
|
onMouseLeave: (...args: any[]) => void;
|
|
28
28
|
};
|
|
29
|
+
static elementType: string;
|
|
29
30
|
static propTypes: {
|
|
30
31
|
iconStyle: PropTypes.Requireable<object>;
|
|
31
32
|
style: PropTypes.Requireable<object>;
|
package/lib/es/input/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
|
|
|
17
17
|
'aria-required'?: React.AriaAttributes['aria-required'];
|
|
18
18
|
addonBefore?: React.ReactNode;
|
|
19
19
|
addonAfter?: React.ReactNode;
|
|
20
|
+
borderless?: boolean;
|
|
20
21
|
prefix?: React.ReactNode;
|
|
21
22
|
suffix?: React.ReactNode;
|
|
22
23
|
mode?: InputMode;
|
|
@@ -83,7 +84,7 @@ declare class Input extends BaseComponent<InputProps, InputState> {
|
|
|
83
84
|
showClear: PropTypes.Requireable<boolean>;
|
|
84
85
|
hideSuffix: PropTypes.Requireable<boolean>;
|
|
85
86
|
placeholder: PropTypes.Requireable<any>;
|
|
86
|
-
size: PropTypes.Requireable<"
|
|
87
|
+
size: PropTypes.Requireable<"default" | "small" | "large">;
|
|
87
88
|
className: PropTypes.Requireable<string>;
|
|
88
89
|
style: PropTypes.Requireable<object>;
|
|
89
90
|
validateStatus: PropTypes.Requireable<"default" | "error" | "warning" | "success">;
|
|
@@ -101,6 +102,7 @@ declare class Input extends BaseComponent<InputProps, InputState> {
|
|
|
101
102
|
inputStyle: PropTypes.Requireable<object>;
|
|
102
103
|
getValueLength: PropTypes.Requireable<(...args: any[]) => any>;
|
|
103
104
|
preventScroll: PropTypes.Requireable<boolean>;
|
|
105
|
+
borderless: PropTypes.Requireable<boolean>;
|
|
104
106
|
};
|
|
105
107
|
static defaultProps: {
|
|
106
108
|
addonBefore: string;
|
|
@@ -124,6 +126,7 @@ declare class Input extends BaseComponent<InputProps, InputState> {
|
|
|
124
126
|
onKeyPress: (...args: any[]) => void;
|
|
125
127
|
onEnterPress: (...args: any[]) => void;
|
|
126
128
|
validateStatus: string;
|
|
129
|
+
noBg: boolean;
|
|
127
130
|
};
|
|
128
131
|
inputRef: React.RefObject<HTMLInputElement>;
|
|
129
132
|
prefixRef: React.RefObject<React.ReactNode>;
|
package/lib/es/input/index.js
CHANGED
|
@@ -375,9 +375,10 @@ class Input extends BaseComponent {
|
|
|
375
375
|
forwardRef,
|
|
376
376
|
maxLength,
|
|
377
377
|
getValueLength,
|
|
378
|
-
preventScroll
|
|
378
|
+
preventScroll,
|
|
379
|
+
borderless
|
|
379
380
|
} = _a,
|
|
380
|
-
rest = __rest(_a, ["addonAfter", "addonBefore", "autofocus", "clearIcon", "className", "disabled", "defaultValue", "placeholder", "prefix", "mode", "insetLabel", "insetLabelId", "validateStatus", "type", "readonly", "size", "suffix", "style", "showClear", "onEnterPress", "onClear", "hideSuffix", "inputStyle", "forwardRef", "maxLength", "getValueLength", "preventScroll"]);
|
|
381
|
+
rest = __rest(_a, ["addonAfter", "addonBefore", "autofocus", "clearIcon", "className", "disabled", "defaultValue", "placeholder", "prefix", "mode", "insetLabel", "insetLabelId", "validateStatus", "type", "readonly", "size", "suffix", "style", "showClear", "onEnterPress", "onClear", "hideSuffix", "inputStyle", "forwardRef", "maxLength", "getValueLength", "preventScroll", "borderless"]);
|
|
381
382
|
|
|
382
383
|
const {
|
|
383
384
|
value,
|
|
@@ -405,7 +406,8 @@ class Input extends BaseComponent {
|
|
|
405
406
|
[`${wrapperPrefix}-clearable`]: showClear,
|
|
406
407
|
[`${wrapperPrefix}-modebtn`]: mode === 'password',
|
|
407
408
|
[`${wrapperPrefix}-hidden`]: type === 'hidden',
|
|
408
|
-
[`${wrapperPrefix}-${size}`]: size
|
|
409
|
+
[`${wrapperPrefix}-${size}`]: size,
|
|
410
|
+
[`${prefixCls}-borderless`]: borderless
|
|
409
411
|
});
|
|
410
412
|
const inputCls = cls(prefixCls, {
|
|
411
413
|
[`${prefixCls}-${size}`]: size,
|
|
@@ -500,7 +502,8 @@ Input.propTypes = {
|
|
|
500
502
|
insetLabelId: PropTypes.string,
|
|
501
503
|
inputStyle: PropTypes.object,
|
|
502
504
|
getValueLength: PropTypes.func,
|
|
503
|
-
preventScroll: PropTypes.bool
|
|
505
|
+
preventScroll: PropTypes.bool,
|
|
506
|
+
borderless: PropTypes.bool
|
|
504
507
|
};
|
|
505
508
|
Input.defaultProps = {
|
|
506
509
|
addonBefore: '',
|
|
@@ -523,7 +526,8 @@ Input.defaultProps = {
|
|
|
523
526
|
onKeyUp: _noop,
|
|
524
527
|
onKeyPress: _noop,
|
|
525
528
|
onEnterPress: _noop,
|
|
526
|
-
validateStatus: 'default'
|
|
529
|
+
validateStatus: 'default',
|
|
530
|
+
noBg: false
|
|
527
531
|
};
|
|
528
532
|
const ForwardInput = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(Input, Object.assign({}, props, {
|
|
529
533
|
forwardRef: ref
|
|
@@ -21,7 +21,7 @@ export default class inputGroup extends BaseComponent<InputGroupProps, InputGrou
|
|
|
21
21
|
static propTypes: {
|
|
22
22
|
className: PropTypes.Requireable<string>;
|
|
23
23
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
24
|
-
size: PropTypes.Requireable<"
|
|
24
|
+
size: PropTypes.Requireable<"default" | "small" | "large">;
|
|
25
25
|
style: PropTypes.Requireable<object>;
|
|
26
26
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
27
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -4,6 +4,7 @@ import '@douyinfe/semi-foundation/lib/es/input/textarea.css';
|
|
|
4
4
|
declare type OmitTextareaAttr = 'onChange' | 'onInput' | 'prefix' | 'size' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyPress' | 'onKeyUp';
|
|
5
5
|
export interface TextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, OmitTextareaAttr> {
|
|
6
6
|
autosize?: boolean;
|
|
7
|
+
borderless?: boolean;
|
|
7
8
|
placeholder?: string;
|
|
8
9
|
value?: string;
|
|
9
10
|
rows?: number;
|
package/lib/es/input/textarea.js
CHANGED
|
@@ -218,9 +218,10 @@ class TextArea extends BaseComponent {
|
|
|
218
218
|
getValueLength,
|
|
219
219
|
maxLength,
|
|
220
220
|
minLength,
|
|
221
|
-
showClear
|
|
221
|
+
showClear,
|
|
222
|
+
borderless
|
|
222
223
|
} = _a,
|
|
223
|
-
rest = __rest(_a, ["autosize", "placeholder", "onEnterPress", "onResize", "disabled", "readonly", "className", "showCounter", "validateStatus", "maxCount", "defaultValue", "style", "forwardRef", "getValueLength", "maxLength", "minLength", "showClear"]);
|
|
224
|
+
rest = __rest(_a, ["autosize", "placeholder", "onEnterPress", "onResize", "disabled", "readonly", "className", "showCounter", "validateStatus", "maxCount", "defaultValue", "style", "forwardRef", "getValueLength", "maxLength", "minLength", "showClear", "borderless"]);
|
|
224
225
|
|
|
225
226
|
const {
|
|
226
227
|
isFocus,
|
|
@@ -228,6 +229,7 @@ class TextArea extends BaseComponent {
|
|
|
228
229
|
minLength: stateMinLength
|
|
229
230
|
} = this.state;
|
|
230
231
|
const wrapperCls = cls(className, `${prefixCls}-textarea-wrapper`, {
|
|
232
|
+
[`${prefixCls}-textarea-borderless`]: borderless,
|
|
231
233
|
[`${prefixCls}-textarea-wrapper-disabled`]: disabled,
|
|
232
234
|
[`${prefixCls}-textarea-wrapper-readonly`]: readonly,
|
|
233
235
|
[`${prefixCls}-textarea-wrapper-${validateStatus}`]: Boolean(validateStatus),
|
|
@@ -275,6 +277,7 @@ class TextArea extends BaseComponent {
|
|
|
275
277
|
|
|
276
278
|
TextArea.propTypes = {
|
|
277
279
|
autosize: PropTypes.bool,
|
|
280
|
+
borderless: PropTypes.bool,
|
|
278
281
|
placeholder: PropTypes.string,
|
|
279
282
|
value: PropTypes.string,
|
|
280
283
|
rows: PropTypes.number,
|
|
@@ -293,6 +296,7 @@ TextArea.propTypes = {
|
|
|
293
296
|
};
|
|
294
297
|
TextArea.defaultProps = {
|
|
295
298
|
autosize: false,
|
|
299
|
+
borderless: false,
|
|
296
300
|
rows: 4,
|
|
297
301
|
cols: 20,
|
|
298
302
|
showCounter: false,
|
|
@@ -140,12 +140,12 @@ export declare function withWarning(props: ModalReactProps): {
|
|
|
140
140
|
type: "warning";
|
|
141
141
|
};
|
|
142
142
|
export declare function withError(props: ModalReactProps): {
|
|
143
|
-
children?: React.ReactNode;
|
|
144
|
-
motion?: boolean;
|
|
145
143
|
title?: React.ReactNode;
|
|
144
|
+
children?: React.ReactNode;
|
|
146
145
|
size?: import("@douyinfe/semi-foundation/lib/es/modal/modalFoundation").Size;
|
|
147
146
|
style?: React.CSSProperties;
|
|
148
147
|
className?: string;
|
|
148
|
+
motion?: boolean;
|
|
149
149
|
getPopupContainer?: () => HTMLElement;
|
|
150
150
|
footer?: React.ReactNode;
|
|
151
151
|
header?: React.ReactNode;
|
|
@@ -201,24 +201,34 @@ export declare function withError(props: ModalReactProps): {
|
|
|
201
201
|
onMouseEnter?: React.MouseEventHandler<HTMLButtonElement>;
|
|
202
202
|
onMouseLeave?: React.MouseEventHandler<HTMLButtonElement>;
|
|
203
203
|
'aria-label'?: string;
|
|
204
|
-
onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
205
|
-
onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
206
204
|
title?: string;
|
|
207
205
|
name?: string;
|
|
208
206
|
value?: string | number | readonly string[];
|
|
207
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
208
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
209
209
|
form?: string;
|
|
210
210
|
slot?: string;
|
|
211
211
|
hidden?: boolean;
|
|
212
212
|
color?: string;
|
|
213
|
+
onChange?: React.FormEventHandler<HTMLButtonElement>;
|
|
214
|
+
defaultChecked?: boolean;
|
|
213
215
|
defaultValue?: string | number | readonly string[];
|
|
216
|
+
suppressContentEditableWarning?: boolean;
|
|
217
|
+
suppressHydrationWarning?: boolean;
|
|
214
218
|
accessKey?: string;
|
|
219
|
+
autoFocus?: boolean;
|
|
220
|
+
formAction?: string;
|
|
221
|
+
formEncType?: string;
|
|
222
|
+
formMethod?: string;
|
|
223
|
+
formNoValidate?: boolean;
|
|
224
|
+
formTarget?: string;
|
|
215
225
|
dir?: string;
|
|
216
226
|
draggable?: boolean | "false" | "true";
|
|
217
227
|
lang?: string;
|
|
218
|
-
translate?: "
|
|
228
|
+
translate?: "no" | "yes";
|
|
219
229
|
prefix?: string;
|
|
220
230
|
contentEditable?: "inherit" | (boolean | "false" | "true");
|
|
221
|
-
inputMode?: "
|
|
231
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
222
232
|
tabIndex?: number;
|
|
223
233
|
role?: React.AriaRole;
|
|
224
234
|
onMouseOut?: React.MouseEventHandler<HTMLButtonElement>;
|
|
@@ -230,9 +240,6 @@ export declare function withError(props: ModalReactProps): {
|
|
|
230
240
|
'aria-haspopup'?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree";
|
|
231
241
|
'aria-controls'?: string;
|
|
232
242
|
'aria-describedby'?: string;
|
|
233
|
-
defaultChecked?: boolean;
|
|
234
|
-
suppressContentEditableWarning?: boolean;
|
|
235
|
-
suppressHydrationWarning?: boolean;
|
|
236
243
|
contextMenu?: string;
|
|
237
244
|
placeholder?: string;
|
|
238
245
|
spellCheck?: boolean | "false" | "true";
|
|
@@ -267,7 +274,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
267
274
|
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "location" | "step" | "date";
|
|
268
275
|
'aria-details'?: string;
|
|
269
276
|
'aria-disabled'?: boolean | "false" | "true";
|
|
270
|
-
'aria-dropeffect'?: "
|
|
277
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup";
|
|
271
278
|
'aria-errormessage'?: string;
|
|
272
279
|
'aria-flowto'?: string;
|
|
273
280
|
'aria-grabbed'?: boolean | "false" | "true";
|
|
@@ -316,7 +323,6 @@ export declare function withError(props: ModalReactProps): {
|
|
|
316
323
|
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLButtonElement>;
|
|
317
324
|
onFocusCapture?: React.FocusEventHandler<HTMLButtonElement>;
|
|
318
325
|
onBlurCapture?: React.FocusEventHandler<HTMLButtonElement>;
|
|
319
|
-
onChange?: React.FormEventHandler<HTMLButtonElement>;
|
|
320
326
|
onChangeCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
321
327
|
onBeforeInput?: React.FormEventHandler<HTMLButtonElement>;
|
|
322
328
|
onBeforeInputCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
@@ -451,12 +457,6 @@ export declare function withError(props: ModalReactProps): {
|
|
|
451
457
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
452
458
|
onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement>;
|
|
453
459
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement>;
|
|
454
|
-
autoFocus?: boolean;
|
|
455
|
-
formAction?: string;
|
|
456
|
-
formEncType?: string;
|
|
457
|
-
formMethod?: string;
|
|
458
|
-
formNoValidate?: boolean;
|
|
459
|
-
formTarget?: string;
|
|
460
460
|
};
|
|
461
461
|
};
|
|
462
462
|
export declare function withConfirm(props: ModalReactProps): {
|
|
@@ -26,6 +26,7 @@ export default class NavHeader extends PureComponent<NavHeaderProps> {
|
|
|
26
26
|
static defaultProps: {
|
|
27
27
|
prefixCls: string;
|
|
28
28
|
};
|
|
29
|
+
static elementType: string;
|
|
29
30
|
context: NavContextType;
|
|
30
31
|
renderLogo(logo: React.ReactNode): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
31
32
|
render(): JSX.Element;
|