@douyinfe/semi-ui 2.30.0-alpha.0 → 2.30.0-alpha.2

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.
Files changed (79) hide show
  1. package/dist/css/semi.css +41 -4
  2. package/dist/css/semi.min.css +1 -1
  3. package/dist/umd/semi-ui.js +79 -27
  4. package/dist/umd/semi-ui.js.map +1 -1
  5. package/dist/umd/semi-ui.min.js +1 -1
  6. package/dist/umd/semi-ui.min.js.map +1 -1
  7. package/lib/cjs/anchor/index.d.ts +1 -1
  8. package/lib/cjs/autoComplete/index.d.ts +1 -1
  9. package/lib/cjs/carousel/CarouselIndicator.d.ts +1 -1
  10. package/lib/cjs/carousel/index.d.ts +2 -2
  11. package/lib/cjs/datePicker/dateInput.d.ts +1 -1
  12. package/lib/cjs/datePicker/datePicker.d.ts +3 -3
  13. package/lib/cjs/datePicker/monthsGrid.d.ts +3 -3
  14. package/lib/cjs/datePicker/quickControl.d.ts +1 -1
  15. package/lib/cjs/datePicker/yearAndMonth.d.ts +1 -1
  16. package/lib/cjs/dropdown/index.d.ts +1 -1
  17. package/lib/cjs/form/baseForm.d.ts +4 -4
  18. package/lib/cjs/form/field.d.ts +4 -4
  19. package/lib/cjs/overflowList/index.d.ts +1 -1
  20. package/lib/cjs/popover/index.d.ts +1 -1
  21. package/lib/cjs/radio/radio.d.ts +1 -1
  22. package/lib/cjs/radio/radioGroup.d.ts +1 -1
  23. package/lib/cjs/select/index.d.ts +1 -1
  24. package/lib/cjs/steps/basicStep.d.ts +2 -1
  25. package/lib/cjs/steps/basicStep.js +5 -4
  26. package/lib/cjs/steps/basicSteps.js +6 -3
  27. package/lib/cjs/steps/fillStep.d.ts +2 -1
  28. package/lib/cjs/steps/fillStep.js +2 -1
  29. package/lib/cjs/steps/fillSteps.js +10 -11
  30. package/lib/cjs/steps/index.d.ts +59 -0
  31. package/lib/cjs/steps/index.js +9 -0
  32. package/lib/cjs/steps/navStep.d.ts +2 -1
  33. package/lib/cjs/steps/navStep.js +2 -2
  34. package/lib/cjs/steps/navSteps.js +4 -2
  35. package/lib/cjs/steps/step.d.ts +0 -1
  36. package/lib/cjs/steps/step.js +3 -2
  37. package/lib/cjs/table/Table.d.ts +2 -2
  38. package/lib/cjs/timeline/item.d.ts +7 -0
  39. package/lib/cjs/timeline/item.js +41 -3
  40. package/lib/cjs/tooltip/index.d.ts +1 -1
  41. package/lib/cjs/typography/numeral.d.ts +1 -1
  42. package/lib/cjs/typography/title.d.ts +1 -1
  43. package/lib/es/anchor/index.d.ts +1 -1
  44. package/lib/es/autoComplete/index.d.ts +1 -1
  45. package/lib/es/carousel/CarouselIndicator.d.ts +1 -1
  46. package/lib/es/carousel/index.d.ts +2 -2
  47. package/lib/es/datePicker/dateInput.d.ts +1 -1
  48. package/lib/es/datePicker/datePicker.d.ts +3 -3
  49. package/lib/es/datePicker/monthsGrid.d.ts +3 -3
  50. package/lib/es/datePicker/quickControl.d.ts +1 -1
  51. package/lib/es/datePicker/yearAndMonth.d.ts +1 -1
  52. package/lib/es/dropdown/index.d.ts +1 -1
  53. package/lib/es/form/baseForm.d.ts +4 -4
  54. package/lib/es/form/field.d.ts +4 -4
  55. package/lib/es/overflowList/index.d.ts +1 -1
  56. package/lib/es/popover/index.d.ts +1 -1
  57. package/lib/es/radio/radio.d.ts +1 -1
  58. package/lib/es/radio/radioGroup.d.ts +1 -1
  59. package/lib/es/select/index.d.ts +1 -1
  60. package/lib/es/steps/basicStep.d.ts +2 -1
  61. package/lib/es/steps/basicStep.js +5 -4
  62. package/lib/es/steps/basicSteps.js +6 -3
  63. package/lib/es/steps/fillStep.d.ts +2 -1
  64. package/lib/es/steps/fillStep.js +2 -1
  65. package/lib/es/steps/fillSteps.js +11 -11
  66. package/lib/es/steps/index.d.ts +59 -0
  67. package/lib/es/steps/index.js +6 -0
  68. package/lib/es/steps/navStep.d.ts +2 -1
  69. package/lib/es/steps/navStep.js +2 -2
  70. package/lib/es/steps/navSteps.js +4 -2
  71. package/lib/es/steps/step.d.ts +0 -1
  72. package/lib/es/steps/step.js +3 -2
  73. package/lib/es/table/Table.d.ts +2 -2
  74. package/lib/es/timeline/item.d.ts +7 -0
  75. package/lib/es/timeline/item.js +41 -3
  76. package/lib/es/tooltip/index.d.ts +1 -1
  77. package/lib/es/typography/numeral.d.ts +1 -1
  78. package/lib/es/typography/title.d.ts +1 -1
  79. package/package.json +8 -8
@@ -48,7 +48,7 @@ declare class Anchor extends BaseComponent<AnchorProps, AnchorState> {
48
48
  offsetTop: PropTypes.Requireable<number>;
49
49
  targetOffset: PropTypes.Requireable<number>;
50
50
  showTooltip: PropTypes.Requireable<boolean>;
51
- position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
51
+ position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
52
52
  maxWidth: PropTypes.Requireable<NonNullable<string | number>>;
53
53
  maxHeight: PropTypes.Requireable<NonNullable<string | number>>;
54
54
  getContainer: PropTypes.Requireable<(...args: any[]) => any>;
@@ -116,7 +116,7 @@ declare class AutoComplete<T extends AutoCompleteItems> extends BaseComponent<Au
116
116
  onFocus: PropTypes.Requireable<(...args: any[]) => any>;
117
117
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
118
118
  onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
119
- position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
119
+ position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
120
120
  placeholder: PropTypes.Requireable<string>;
121
121
  prefix: PropTypes.Requireable<PropTypes.ReactNodeLike>;
122
122
  onChangeWithObject: PropTypes.Requireable<boolean>;
@@ -8,7 +8,7 @@ declare class CarouselIndicator extends React.PureComponent<CarouselIndicatorPro
8
8
  position: PropTypes.Requireable<"left" | "right" | "center">;
9
9
  size: PropTypes.Requireable<"small" | "medium">;
10
10
  style: PropTypes.Requireable<object>;
11
- theme: PropTypes.Requireable<"primary" | "dark" | "light">;
11
+ theme: PropTypes.Requireable<"dark" | "light" | "primary">;
12
12
  total: PropTypes.Requireable<number>;
13
13
  onIndicatorChange: PropTypes.Requireable<(...args: any[]) => any>;
14
14
  type: PropTypes.Requireable<"line" | "dot" | "columnar">;
@@ -22,9 +22,9 @@ declare class Carousel extends BaseComponent<CarouselProps, CarouselState> {
22
22
  indicatorPosition: PropTypes.Requireable<"left" | "right" | "center">;
23
23
  indicatorSize: PropTypes.Requireable<"small" | "medium">;
24
24
  indicatorType: PropTypes.Requireable<"line" | "dot" | "columnar">;
25
- theme: PropTypes.Requireable<"primary" | "dark" | "light">;
25
+ theme: PropTypes.Requireable<"dark" | "light" | "primary">;
26
26
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
27
- arrowType: PropTypes.Requireable<"hover" | "always">;
27
+ arrowType: PropTypes.Requireable<"always" | "hover">;
28
28
  showArrow: PropTypes.Requireable<boolean>;
29
29
  showIndicator: PropTypes.Requireable<boolean>;
30
30
  slideDirection: PropTypes.Requireable<"left" | "right">;
@@ -26,7 +26,7 @@ export default class DateInput extends BaseComponent<DateInputProps, {}> {
26
26
  onFocus: PropTypes.Requireable<(...args: any[]) => any>;
27
27
  value: PropTypes.Requireable<any[]>;
28
28
  disabled: PropTypes.Requireable<boolean>;
29
- type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "dateTimeRange">;
29
+ type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "dateTimeRange">;
30
30
  showClear: PropTypes.Requireable<boolean>;
31
31
  format: PropTypes.Requireable<string>;
32
32
  inputStyle: PropTypes.Requireable<object>;
@@ -46,7 +46,7 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
46
46
  'aria-invalid': PropTypes.Requireable<boolean>;
47
47
  'aria-labelledby': PropTypes.Requireable<string>;
48
48
  'aria-required': PropTypes.Requireable<boolean>;
49
- type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "dateTimeRange">;
49
+ type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "dateTimeRange">;
50
50
  size: PropTypes.Requireable<"default" | "small" | "large">;
51
51
  clearIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
52
52
  density: PropTypes.Requireable<"default" | "compact">;
@@ -62,7 +62,7 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
62
62
  max: PropTypes.Requireable<number>;
63
63
  placeholder: PropTypes.Requireable<NonNullable<string | any[]>>;
64
64
  presets: PropTypes.Requireable<any[]>;
65
- presetPosition: PropTypes.Requireable<"top" | "left" | "right" | "bottom">;
65
+ presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
66
66
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
67
67
  onChangeWithDateFirst: PropTypes.Requireable<boolean>;
68
68
  weekStartsOn: PropTypes.Requireable<number>;
@@ -79,7 +79,7 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
79
79
  insetLabel: PropTypes.Requireable<PropTypes.ReactNodeLike>;
80
80
  insetLabelId: PropTypes.Requireable<string>;
81
81
  zIndex: PropTypes.Requireable<number>;
82
- position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
82
+ position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
83
83
  getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
84
84
  onCancel: PropTypes.Requireable<(...args: any[]) => any>;
85
85
  onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
@@ -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<"dateTime" | "date" | "month" | "dateRange" | "year" | "dateTimeRange">;
22
+ type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "dateTimeRange">;
23
23
  defaultValue: PropTypes.Requireable<any[]>;
24
24
  defaultPickerValue: PropTypes.Requireable<NonNullable<string | number | object>>;
25
25
  multiple: PropTypes.Requireable<boolean>;
@@ -51,7 +51,7 @@ export default class MonthsGrid extends BaseComponent<MonthsGridProps, MonthsGri
51
51
  onPanelChange: PropTypes.Requireable<(...args: any[]) => any>;
52
52
  focusRecordsRef: PropTypes.Requireable<object>;
53
53
  triggerRender: PropTypes.Requireable<(...args: any[]) => any>;
54
- presetPosition: PropTypes.Requireable<"top" | "left" | "right" | "bottom">;
54
+ presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
55
55
  renderQuickControls: PropTypes.Requireable<PropTypes.ReactNodeLike>;
56
56
  renderDateInput: PropTypes.Requireable<PropTypes.ReactNodeLike>;
57
57
  };
@@ -86,7 +86,7 @@ export default class MonthsGrid extends BaseComponent<MonthsGridProps, MonthsGri
86
86
  renderMonth(month: Date, panelType: PanelType): JSX.Element;
87
87
  handleWeeksRowNumChange: (weeksRowNum: number, panelType: PanelType) => void;
88
88
  reselect: () => void;
89
- getYAMOpenType: () => "left" | "right" | "none" | "both";
89
+ getYAMOpenType: () => "both" | "none" | "left" | "right";
90
90
  renderTimePicker(panelType: PanelType, panelDetail: MonthInfo): JSX.Element;
91
91
  renderYearAndMonth(panelType: PanelType, panelDetail: MonthInfo): JSX.Element;
92
92
  renderSwitch(panelType: PanelType): JSX.Element;
@@ -14,7 +14,7 @@ export interface QuickControlProps {
14
14
  declare class QuickControl extends PureComponent<QuickControlProps> {
15
15
  static propTypes: {
16
16
  presets: PropTypes.Requireable<any[]>;
17
- presetPosition: PropTypes.Requireable<"top" | "left" | "right" | "bottom">;
17
+ presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
18
18
  onPresetClick: PropTypes.Requireable<(...args: any[]) => any>;
19
19
  type: PropTypes.Requireable<string>;
20
20
  insetInput: PropTypes.Requireable<NonNullable<boolean | object>>;
@@ -20,7 +20,7 @@ declare class YearAndMonth extends BaseComponent<YearAndMonthProps, YearAndMonth
20
20
  noBackBtn: PropTypes.Requireable<boolean>;
21
21
  disabledDate: PropTypes.Requireable<(...args: any[]) => any>;
22
22
  density: PropTypes.Requireable<string>;
23
- presetPosition: PropTypes.Requireable<"top" | "left" | "right" | "bottom">;
23
+ presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
24
24
  renderQuickControls: PropTypes.Requireable<PropTypes.ReactNodeLike>;
25
25
  renderDateInput: PropTypes.Requireable<PropTypes.ReactNodeLike>;
26
26
  };
@@ -66,7 +66,7 @@ declare class Dropdown extends BaseComponent<DropdownProps, DropdownState> {
66
66
  motion: PropTypes.Requireable<NonNullable<boolean | object>>;
67
67
  onVisibleChange: PropTypes.Requireable<(...args: any[]) => any>;
68
68
  prefixCls: PropTypes.Requireable<string>;
69
- position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
69
+ position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
70
70
  rePosKey: PropTypes.Requireable<NonNullable<string | number>>;
71
71
  render: PropTypes.Requireable<PropTypes.ReactNodeLike>;
72
72
  spacing: PropTypes.Requireable<number>;
@@ -57,9 +57,9 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
57
57
  static Select: React.ComponentType<import("utility-types").Subtract<{
58
58
  'aria-describedby'?: string;
59
59
  'aria-errormessage'?: string;
60
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
60
+ 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling";
61
61
  'aria-labelledby'?: string;
62
- 'aria-required'?: boolean | "true" | "false";
62
+ 'aria-required'?: boolean | "false" | "true";
63
63
  id?: string;
64
64
  autoFocus?: boolean;
65
65
  autoClearSearchValue?: boolean;
@@ -82,7 +82,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
82
82
  expandRestTagsOnClick?: boolean;
83
83
  onDropdownVisibleChange?: (visible: boolean) => void;
84
84
  zIndex?: number;
85
- position?: "top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
85
+ position?: "left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
86
86
  onSearch?: (value: string) => void;
87
87
  dropdownClassName?: string;
88
88
  dropdownStyle?: React.CSSProperties;
@@ -137,7 +137,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
137
137
  preventScroll?: boolean;
138
138
  showRestTagsPopover?: boolean;
139
139
  restTagsPopoverProps?: import("../popover").PopoverProps;
140
- } & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "getPopupContainer" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay" | "motion"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
140
+ } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "motion" | "stopPropagation" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
141
141
  static Checkbox: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox").CheckboxProps & import("./interface").RCIncludeType>;
142
142
  static CheckboxGroup: React.ComponentType<import("utility-types").Subtract<import("../checkbox").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & React.RefAttributes<any>>;
143
143
  static Radio: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../radio").RadioProps & import("./interface").RCIncludeType>;
@@ -5,9 +5,9 @@ declare const FormTextArea: import("react").ComponentType<import("utility-types"
5
5
  declare const FormSelect: import("react").ComponentType<import("utility-types").Subtract<{
6
6
  'aria-describedby'?: string;
7
7
  'aria-errormessage'?: string;
8
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
8
+ 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling";
9
9
  'aria-labelledby'?: string;
10
- 'aria-required'?: boolean | "true" | "false";
10
+ 'aria-required'?: boolean | "false" | "true";
11
11
  id?: string;
12
12
  autoFocus?: boolean;
13
13
  autoClearSearchValue?: boolean;
@@ -30,7 +30,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
30
30
  expandRestTagsOnClick?: boolean;
31
31
  onDropdownVisibleChange?: (visible: boolean) => void;
32
32
  zIndex?: number;
33
- position?: "top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
33
+ position?: "left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
34
34
  onSearch?: (value: string) => void;
35
35
  dropdownClassName?: string;
36
36
  dropdownStyle?: import("react").CSSProperties;
@@ -85,7 +85,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
85
85
  preventScroll?: boolean;
86
86
  showRestTagsPopover?: boolean;
87
87
  restTagsPopoverProps?: import("../popover").PopoverProps;
88
- } & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "getPopupContainer" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay" | "motion"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
88
+ } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "motion" | "stopPropagation" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
89
89
  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
90
  declare const FormCheckbox: import("react").ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox/checkbox").CheckboxProps & import("./interface").RCIncludeType>;
91
91
  declare const FormRadioGroup: import("react").ComponentType<import("utility-types").Subtract<import("../radio/radioGroup").RadioGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & import("react").RefAttributes<any>>;
@@ -88,7 +88,7 @@ declare class OverflowList extends BaseComponent<OverflowListProps, OverflowList
88
88
  className: string;
89
89
  style: {
90
90
  maxWidth: string;
91
- visibility: "visible" | "hidden";
91
+ visibility: "hidden" | "visible";
92
92
  accentColor?: import("csstype").Property.AccentColor;
93
93
  alignContent?: import("csstype").Property.AlignContent;
94
94
  alignItems?: import("csstype").Property.AlignItems;
@@ -54,7 +54,7 @@ declare class Popover extends React.PureComponent<PopoverProps, PopoverState> {
54
54
  visible: PropTypes.Requireable<boolean>;
55
55
  autoAdjustOverflow: PropTypes.Requireable<boolean>;
56
56
  motion: PropTypes.Requireable<boolean>;
57
- position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
57
+ position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
58
58
  margin: PropTypes.Requireable<NonNullable<number | object>>;
59
59
  mouseEnterDelay: PropTypes.Requireable<number>;
60
60
  mouseLeaveDelay: PropTypes.Requireable<number>;
@@ -82,7 +82,7 @@ declare class Radio extends BaseComponent<RadioProps, RadioState> {
82
82
  prefixCls?: string;
83
83
  name?: string;
84
84
  onChange?: (e: RadioChangeEvent) => void;
85
- buttonSize?: "small" | "middle" | "large";
85
+ buttonSize?: "small" | "large" | "middle";
86
86
  isCardRadio?: boolean;
87
87
  isPureCardRadio?: boolean;
88
88
  };
@@ -48,7 +48,7 @@ declare class RadioGroup extends BaseComponent<RadioGroupProps, RadioGroupState>
48
48
  disabled: PropTypes.Requireable<boolean>;
49
49
  name: PropTypes.Requireable<string>;
50
50
  options: PropTypes.Requireable<any[]>;
51
- buttonSize: PropTypes.Requireable<"small" | "middle" | "large">;
51
+ buttonSize: PropTypes.Requireable<"small" | "large" | "middle">;
52
52
  type: PropTypes.Requireable<"default" | "button" | "card" | "pureCard">;
53
53
  value: PropTypes.Requireable<any>;
54
54
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
@@ -181,7 +181,7 @@ declare class Select extends BaseComponent<SelectProps, SelectState> {
181
181
  expandRestTagsOnClick: PropTypes.Requireable<boolean>;
182
182
  onDropdownVisibleChange: PropTypes.Requireable<(...args: any[]) => any>;
183
183
  zIndex: PropTypes.Requireable<number>;
184
- position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
184
+ position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
185
185
  onSearch: PropTypes.Requireable<(...args: any[]) => any>;
186
186
  getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
187
187
  dropdownClassName: PropTypes.Requireable<string>;
@@ -19,7 +19,7 @@ export interface BasicStepProps {
19
19
  onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
20
20
  "role"?: React.AriaRole;
21
21
  "aria-label"?: React.AriaAttributes["aria-label"];
22
- type?: string;
22
+ usedInC2D?: string;
23
23
  direction?: string;
24
24
  }
25
25
  export declare enum stepSizeMapIconSize {
@@ -47,5 +47,6 @@ declare const BasicStep: {
47
47
  status: string;
48
48
  className: string;
49
49
  };
50
+ elementType: string;
50
51
  };
51
52
  export default BasicStep;
@@ -43,8 +43,8 @@ const BasicStep = props => {
43
43
  onClick,
44
44
  onChange,
45
45
  onKeyDown,
46
- type: typeInProps,
47
- direction: directionInProps
46
+ usedInC2D,
47
+ direction: direction
48
48
  } = props;
49
49
 
50
50
  const renderIcon = () => {
@@ -106,8 +106,8 @@ const BasicStep = props => {
106
106
  const classString = (0, _classnames.default)(prefixCls, "".concat(prefixCls, "-").concat(status), {
107
107
  ["".concat(prefixCls, "-active")]: active,
108
108
  ["".concat(prefixCls, "-done")]: done,
109
- ["".concat(prefixCls, "-basic")]: typeInProps,
110
- ["".concat(prefixCls, "-").concat(directionInProps)]: directionInProps,
109
+ ["".concat(prefixCls, "-basic")]: usedInC2D,
110
+ ["".concat(prefixCls, "-").concat(direction)]: direction,
111
111
  ["".concat(prefixCls, "-small")]: size === 'small'
112
112
  }, className);
113
113
 
@@ -172,5 +172,6 @@ BasicStep.defaultProps = {
172
172
  status: 'wait',
173
173
  className: ''
174
174
  };
175
+ BasicStep.elementType = 'Steps.BasicStep';
175
176
  var _default = BasicStep;
176
177
  exports.default = _default;
@@ -42,10 +42,13 @@ const Steps = props => {
42
42
  }
43
43
 
44
44
  const stepNumber = initial + index;
45
- const childProps = Object.assign({
45
+ const childProps = Object.assign(Object.assign({
46
46
  stepNumber: "".concat(stepNumber + 1),
47
- size
48
- }, child.props);
47
+ size,
48
+ direction
49
+ }, child.props), {
50
+ total: filteredChildren.length
51
+ });
49
52
 
50
53
  if (status === 'error' && index === current - 1) {
51
54
  childProps.className = "".concat(prefixCls, "-next-error");
@@ -15,7 +15,7 @@ export interface FillStepProps {
15
15
  onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
16
16
  "role"?: React.AriaRole;
17
17
  "aria-label"?: React.AriaAttributes["aria-label"];
18
- type?: string;
18
+ usedInC2D?: boolean;
19
19
  }
20
20
  declare const FillStep: {
21
21
  (props: FillStepProps): JSX.Element;
@@ -34,5 +34,6 @@ declare const FillStep: {
34
34
  status: string;
35
35
  className: string;
36
36
  };
37
+ elementType: string;
37
38
  };
38
39
  export default FillStep;
@@ -112,7 +112,7 @@ const FillStep = props => {
112
112
  [prefixCls]: true,
113
113
  ["".concat(prefixCls, "-").concat(status)]: Boolean(status),
114
114
  ["".concat(prefixCls, "-clickable")]: onClick,
115
- ["".concat(prefixCls, "-fill")]: props.type === 'fill'
115
+ ["".concat(prefixCls, "-fill")]: props.usedInC2D
116
116
  }, className),
117
117
  style: style,
118
118
  onClick: e => {
@@ -147,5 +147,6 @@ FillStep.defaultProps = {
147
147
  status: 'wait',
148
148
  className: ''
149
149
  };
150
+ FillStep.elementType = 'Steps.FillStep';
150
151
  var _default = FillStep;
151
152
  exports.default = _default;
@@ -34,11 +34,8 @@ const Steps = props => {
34
34
  onChange
35
35
  } = props;
36
36
  const inner = (0, _react.useMemo)(() => {
37
- const filteredChildren = _react.Children.toArray(children).filter(c => /*#__PURE__*/(0, _react.isValidElement)(c));
37
+ const filteredChildren = _react.Children.toArray(children).filter(c => /*#__PURE__*/(0, _react.isValidElement)(c)); // const colStyle = direction === 'vertical' ? null : { width: `${100 / filteredChildren.length }%` };
38
38
 
39
- const colStyle = direction === 'vertical' ? null : {
40
- width: "".concat(100 / filteredChildren.length, "%")
41
- };
42
39
 
43
40
  const content = _react.Children.map(filteredChildren, (child, index) => {
44
41
  if (!child) {
@@ -46,9 +43,12 @@ const Steps = props => {
46
43
  }
47
44
 
48
45
  const stepNumber = initial + index;
49
- const childProps = Object.assign({
50
- stepNumber: "".concat(stepNumber + 1)
51
- }, child.props);
46
+ const childProps = Object.assign(Object.assign({
47
+ stepNumber: "".concat(stepNumber + 1),
48
+ direction
49
+ }, child.props), {
50
+ total: filteredChildren.length
51
+ });
52
52
 
53
53
  if (status === 'error' && index === current - 1) {
54
54
  childProps.className = "".concat(prefixCls, "-next-error");
@@ -68,11 +68,10 @@ const Steps = props => {
68
68
  if (index !== current) {
69
69
  onChange(index + initial);
70
70
  }
71
- };
71
+ }; // return <Col style={colStyle}>{cloneElement(child, { ...childProps })}</Col>;
72
72
 
73
- return /*#__PURE__*/_react.default.createElement(_grid.Col, {
74
- style: colStyle
75
- }, /*#__PURE__*/(0, _react.cloneElement)(child, Object.assign({}, childProps)));
73
+
74
+ return /*#__PURE__*/_react.default.createElement(_grid.Col, null, /*#__PURE__*/(0, _react.cloneElement)(child, Object.assign({}, childProps)));
76
75
  });
77
76
 
78
77
  return content;
@@ -26,6 +26,65 @@ declare class Steps extends Component<StepsProps> {
26
26
  (props: import("./step").StepProps): JSX.Element;
27
27
  elementType: string;
28
28
  };
29
+ static FillStep: {
30
+ (props: import("./fillStep").FillStepProps): JSX.Element;
31
+ propTypes: {
32
+ prefixCls: PropTypes.Requireable<string>;
33
+ description: PropTypes.Requireable<PropTypes.ReactNodeLike>;
34
+ icon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
35
+ status: PropTypes.Requireable<string>;
36
+ title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
37
+ className: PropTypes.Requireable<string>;
38
+ style: PropTypes.Requireable<object>;
39
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
40
+ };
41
+ defaultProps: {
42
+ prefixCls: string;
43
+ status: string;
44
+ className: string;
45
+ };
46
+ elementType: string;
47
+ };
48
+ static BasicStep: {
49
+ (props: import("./basicStep").BasicStepProps): JSX.Element;
50
+ propTypes: {
51
+ prefixCls: PropTypes.Requireable<string>;
52
+ description: PropTypes.Requireable<PropTypes.ReactNodeLike>;
53
+ icon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
54
+ status: PropTypes.Requireable<string>;
55
+ title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
56
+ className: PropTypes.Requireable<string>;
57
+ style: PropTypes.Requireable<object>;
58
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
59
+ active: PropTypes.Requireable<boolean>;
60
+ done: PropTypes.Requireable<boolean>;
61
+ };
62
+ defaultProps: {
63
+ prefixCls: string;
64
+ active: boolean;
65
+ done: boolean;
66
+ status: string;
67
+ className: string;
68
+ };
69
+ elementType: string;
70
+ };
71
+ static NavStep: {
72
+ (props: import("./navStep").NavStepProps): JSX.Element;
73
+ propTypes: {
74
+ prefixCls: PropTypes.Requireable<string>;
75
+ title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
76
+ className: PropTypes.Requireable<string>;
77
+ style: PropTypes.Requireable<object>;
78
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
79
+ active: PropTypes.Requireable<boolean>;
80
+ };
81
+ defaultProps: {
82
+ prefixCls: string;
83
+ active: boolean;
84
+ className: string;
85
+ };
86
+ elementType: string;
87
+ };
29
88
  static propTypes: {
30
89
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
31
90
  type: PropTypes.Requireable<string>;
@@ -21,6 +21,12 @@ var _basicSteps = _interopRequireDefault(require("./basicSteps"));
21
21
 
22
22
  var _navSteps = _interopRequireDefault(require("./navSteps"));
23
23
 
24
+ var _fillStep = _interopRequireDefault(require("./fillStep"));
25
+
26
+ var _basicStep = _interopRequireDefault(require("./basicStep"));
27
+
28
+ var _navStep = _interopRequireDefault(require("./navStep"));
29
+
24
30
  var _context = _interopRequireDefault(require("./context"));
25
31
 
26
32
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -77,6 +83,9 @@ class Steps extends _react.Component {
77
83
  }
78
84
 
79
85
  Steps.Step = _step.default;
86
+ Steps.FillStep = _fillStep.default;
87
+ Steps.BasicStep = _basicStep.default;
88
+ Steps.NavStep = _navStep.default;
80
89
  Steps.propTypes = {
81
90
  onChange: _propTypes.default.func,
82
91
  type: _propTypes.default.oneOf(['fill', 'basic', 'nav']),
@@ -13,7 +13,7 @@ export interface NavStepProps {
13
13
  onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
14
14
  "role"?: React.AriaRole;
15
15
  "aria-label"?: React.AriaAttributes["aria-label"];
16
- type?: string;
16
+ usedInC2D?: boolean;
17
17
  lastOne?: boolean;
18
18
  size?: string;
19
19
  }
@@ -32,5 +32,6 @@ declare const NavStep: {
32
32
  active: boolean;
33
33
  className: string;
34
34
  };
35
+ elementType: string;
35
36
  };
36
37
  export default NavStep;
@@ -38,12 +38,11 @@ const NavStep = props => {
38
38
  onKeyDown,
39
39
  onChange,
40
40
  lastOne,
41
- type,
42
41
  size
43
42
  } = props;
44
43
  const classString = (0, _classnames.default)(prefixCls, {
45
44
  ["".concat(prefixCls, "-active")]: active,
46
- ["".concat(prefixCls, "-nav")]: type,
45
+ ["".concat(prefixCls, "-nav")]: props.usedInC2D,
47
46
  ["".concat(prefixCls, "-small")]: size === 'small'
48
47
  }, className);
49
48
 
@@ -107,5 +106,6 @@ NavStep.defaultProps = {
107
106
  active: false,
108
107
  className: ''
109
108
  };
109
+ NavStep.elementType = 'Steps.NavStep';
110
110
  var _default = NavStep;
111
111
  exports.default = _default;
@@ -40,10 +40,12 @@ const Steps = props => {
40
40
  return null;
41
41
  }
42
42
 
43
- const childProps = Object.assign({
43
+ const childProps = Object.assign(Object.assign({
44
44
  index,
45
45
  total
46
- }, child.props);
46
+ }, child.props), {
47
+ size
48
+ });
47
49
  childProps.active = index === current;
48
50
 
49
51
  childProps.onChange = () => {
@@ -8,7 +8,6 @@ export interface StepProps {
8
8
  className?: string;
9
9
  style?: React.CSSProperties;
10
10
  onClick?: React.MouseEventHandler<HTMLDivElement>;
11
- type?: string;
12
11
  }
13
12
  declare const Step: {
14
13
  (props: StepProps): JSX.Element;
@@ -22,8 +22,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
22
22
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
23
 
24
24
  const Step = props => {
25
- const stepContext = (0, _react.useContext)(_context.default);
26
- const type = stepContext ? stepContext.type : props.type;
25
+ const {
26
+ type
27
+ } = (0, _react.useContext)(_context.default);
27
28
 
28
29
  const renderStep = () => {
29
30
  switch (type) {
@@ -280,7 +280,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
280
280
  * Combine pagination and table paging processing functions
281
281
  */
282
282
  mergePagination: (pagination: TablePaginationProps) => {
283
- position?: "top" | "bottom" | "both";
283
+ position?: "both" | "top" | "bottom";
284
284
  formatPageText?: import("./interface").FormatPageText;
285
285
  style?: React.CSSProperties;
286
286
  className?: string;
@@ -300,7 +300,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
300
300
  showSizeChanger?: boolean;
301
301
  showQuickJumper?: boolean;
302
302
  popoverZIndex?: number;
303
- popoverPosition?: "top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
303
+ popoverPosition?: "left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
304
304
  hideOnSinglePage?: boolean;
305
305
  hoverShowPageSelect?: boolean;
306
306
  };
@@ -12,8 +12,12 @@ export interface TimelineItemProps {
12
12
  className?: string;
13
13
  style?: React.CSSProperties;
14
14
  onClick?: React.MouseEventHandler<HTMLLIElement>;
15
+ mode?: 'left' | 'right' | 'center' | 'alternate';
16
+ oddIndex?: boolean;
17
+ lastOne?: boolean;
15
18
  }
16
19
  export default class Item extends PureComponent<TimelineItemProps> {
20
+ static elementType: string;
17
21
  static propTypes: {
18
22
  color: PropTypes.Requireable<string>;
19
23
  time: PropTypes.Requireable<PropTypes.ReactNodeLike>;
@@ -24,11 +28,14 @@ export default class Item extends PureComponent<TimelineItemProps> {
24
28
  className: PropTypes.Requireable<string>;
25
29
  style: PropTypes.Requireable<object>;
26
30
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
31
+ mode: PropTypes.Requireable<string>;
32
+ lastOne: PropTypes.Requireable<boolean>;
27
33
  };
28
34
  static defaultProps: {
29
35
  type: string;
30
36
  time: string;
31
37
  onClick: (...args: any[]) => void;
32
38
  };
39
+ getC2DCls: () => string;
33
40
  render(): JSX.Element;
34
41
  }