amis 1.9.1-beta.28 → 1.9.1-beta.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. package/lib/components/AnchorNav.d.ts +8 -2
  2. package/lib/components/AnchorNav.js +24 -5
  3. package/lib/components/AnchorNav.js.map +2 -2
  4. package/lib/components/DatePicker.d.ts +41 -40
  5. package/lib/components/DatePicker.js +2 -2
  6. package/lib/components/DatePicker.js.map +2 -2
  7. package/lib/components/DateRangePicker.d.ts +44 -41
  8. package/lib/components/DateRangePicker.js +25 -8
  9. package/lib/components/DateRangePicker.js.map +2 -2
  10. package/lib/components/MonthRangePicker.d.ts +41 -40
  11. package/lib/components/MonthRangePicker.js +2 -2
  12. package/lib/components/MonthRangePicker.js.map +2 -2
  13. package/lib/components/SearchBox.d.ts +124 -42
  14. package/lib/components/SearchBox.js +181 -19
  15. package/lib/components/SearchBox.js.map +2 -2
  16. package/lib/components/Tag.d.ts +12 -10
  17. package/lib/components/Tag.js +18 -7
  18. package/lib/components/Tag.js.map +2 -2
  19. package/lib/locale/de-DE.js +1 -0
  20. package/lib/locale/de-DE.js.map +2 -2
  21. package/lib/locale/en-US.js +1 -0
  22. package/lib/locale/en-US.js.map +2 -2
  23. package/lib/locale/zh-CN.js +1 -0
  24. package/lib/locale/zh-CN.js.map +2 -2
  25. package/lib/renderers/Card.d.ts +7 -2
  26. package/lib/renderers/Card.js +11 -7
  27. package/lib/renderers/Card.js.map +2 -2
  28. package/lib/renderers/Form/InputExcel.d.ts +1 -0
  29. package/lib/renderers/Form/InputExcel.js +5 -0
  30. package/lib/renderers/Form/InputExcel.js.map +2 -2
  31. package/lib/renderers/Form/InputFile.d.ts +2 -2
  32. package/lib/renderers/Form/InputFile.js +6 -5
  33. package/lib/renderers/Form/InputFile.js.map +2 -2
  34. package/lib/renderers/Form/InputText.d.ts +8 -0
  35. package/lib/renderers/Form/InputText.js +8 -8
  36. package/lib/renderers/Form/InputText.js.map +2 -2
  37. package/lib/renderers/Table/index.js +1 -1
  38. package/lib/renderers/Table/index.js.map +2 -2
  39. package/lib/renderers/Tag.js +2 -2
  40. package/lib/renderers/Tag.js.map +2 -2
  41. package/lib/renderers/Wizard.d.ts +1 -1
  42. package/lib/renderers/Wizard.js +72 -75
  43. package/lib/renderers/Wizard.js.map +2 -2
  44. package/lib/store/formItem.js +2 -1
  45. package/lib/store/formItem.js.map +2 -2
  46. package/lib/themes/ang-ie11.css +120 -15
  47. package/lib/themes/ang.css +124 -15
  48. package/lib/themes/ang.css.map +1 -1
  49. package/lib/themes/antd-ie11.css +120 -15
  50. package/lib/themes/antd.css +124 -15
  51. package/lib/themes/antd.css.map +1 -1
  52. package/lib/themes/cxd-ie11.css +120 -15
  53. package/lib/themes/cxd.css +124 -15
  54. package/lib/themes/cxd.css.map +1 -1
  55. package/lib/themes/dark-ie11.css +120 -15
  56. package/lib/themes/dark.css +124 -15
  57. package/lib/themes/dark.css.map +1 -1
  58. package/lib/themes/default-ie11.css +120 -15
  59. package/lib/themes/default.css +124 -15
  60. package/lib/themes/default.css.map +1 -1
  61. package/package.json +3 -3
  62. package/schema.json +35 -14
  63. package/scss/_properties.scss +5 -0
  64. package/scss/components/_anchor-nav.scss +1 -0
  65. package/scss/components/_calendar.scss +32 -14
  66. package/scss/components/_search-box.scss +116 -10
  67. package/scss/components/_tag.scss +12 -3
  68. package/scss/components/form/_date-range.scss +1 -1
  69. package/sdk/ang-ie11.css +131 -14
  70. package/sdk/ang.css +135 -14
  71. package/sdk/antd-ie11.css +131 -14
  72. package/sdk/antd.css +135 -14
  73. package/sdk/cxd-ie11.css +131 -14
  74. package/sdk/cxd.css +135 -14
  75. package/sdk/dark-ie11.css +131 -14
  76. package/sdk/dark.css +135 -14
  77. package/sdk/locale/de-DE.js +1 -0
  78. package/sdk/sdk-ie11.css +131 -14
  79. package/sdk/sdk.css +135 -14
  80. package/sdk/sdk.js +17 -17
  81. package/src/components/AnchorNav.tsx +40 -7
  82. package/src/components/DatePicker.tsx +8 -4
  83. package/src/components/DateRangePicker.tsx +34 -8
  84. package/src/components/MonthRangePicker.tsx +4 -2
  85. package/src/components/SearchBox.tsx +262 -29
  86. package/src/components/Tag.tsx +14 -3
  87. package/src/locale/de-DE.ts +1 -0
  88. package/src/locale/en-US.ts +1 -0
  89. package/src/locale/zh-CN.ts +1 -0
  90. package/src/renderers/Card.tsx +24 -12
  91. package/src/renderers/Form/InputExcel.tsx +6 -0
  92. package/src/renderers/Form/InputFile.tsx +19 -18
  93. package/src/renderers/Form/InputText.tsx +20 -5
  94. package/src/renderers/Table/index.tsx +1 -1
  95. package/src/renderers/Tag.tsx +2 -0
  96. package/src/renderers/Wizard.tsx +2 -1
  97. package/src/store/formItem.ts +4 -1
@@ -1,8 +1,24 @@
1
- /// <reference types="lodash" />
2
1
  /// <reference types="hoist-non-react-statics" />
3
2
  import React from 'react';
3
+ import _ from 'lodash';
4
4
  import { ThemeProps } from '../theme';
5
5
  import { LocaleProps } from '../locale';
6
+ export interface HistoryRecord {
7
+ /** 历史记录值 */
8
+ value: string;
9
+ /** 历史记录生成的unix时间戳 */
10
+ timestamp?: number;
11
+ }
12
+ export interface SearchHistoryOptions {
13
+ /** 是否开启历史记录 */
14
+ enable: boolean;
15
+ /** 本地存储历史记录的key */
16
+ key?: string;
17
+ /** 历史记录数量上限 */
18
+ limit?: number;
19
+ /** 历史记录下拉面板CSS类名 */
20
+ dropdownClassName?: string;
21
+ }
6
22
  export interface SearchBoxProps extends ThemeProps, LocaleProps {
7
23
  name?: string;
8
24
  disabled?: boolean;
@@ -19,9 +35,14 @@ export interface SearchBoxProps extends ThemeProps, LocaleProps {
19
35
  onActiveChange?: (active: boolean) => void;
20
36
  onSearch?: (value: string) => void;
21
37
  onCancel?: () => void;
38
+ /** 历史记录配置 */
39
+ history?: SearchHistoryOptions;
22
40
  }
23
41
  export interface SearchBoxState {
24
42
  isFocused: boolean;
43
+ isHistoryOpened: boolean;
44
+ inputValue: string;
45
+ historyRecords: HistoryRecord[];
25
46
  }
26
47
  export declare class SearchBox extends React.Component<SearchBoxProps, SearchBoxState> {
27
48
  inputRef: React.RefObject<HTMLInputElement>;
@@ -30,11 +51,16 @@ export declare class SearchBox extends React.Component<SearchBoxProps, SearchBox
30
51
  enhance: boolean;
31
52
  clearable: boolean;
32
53
  searchImediately: boolean;
54
+ history: Required<SearchHistoryOptions>;
33
55
  };
34
56
  state: {
57
+ isHistoryOpened: boolean;
35
58
  isFocused: boolean;
59
+ inputValue: string;
60
+ historyRecords: any[];
36
61
  };
37
- lazyEmitSearch: import("lodash").DebouncedFunc<() => void>;
62
+ lazyEmitSearch: _.DebouncedFunc<() => void>;
63
+ componentDidUpdate(prevProps: SearchBoxProps): void;
38
64
  componentWillUnmount(): void;
39
65
  handleActive(): void;
40
66
  handleCancel(): void;
@@ -42,14 +68,31 @@ export declare class SearchBox extends React.Component<SearchBoxProps, SearchBox
42
68
  handleSearch(): void;
43
69
  handleKeyDown(e: React.KeyboardEvent<any>): void;
44
70
  handleClear(): void;
71
+ handleFocus(): void;
72
+ handleBlur(e: React.FocusEvent<HTMLInputElement>): void;
73
+ handleHistoryRecordSelect(record: HistoryRecord): void;
74
+ /** 获取历史搜索配置 */
75
+ getHistoryOptions(): Required<SearchHistoryOptions>;
76
+ /** 获取历史记录 */
77
+ getHistoryRecords(): any[];
78
+ /** 清空历史记录 */
79
+ clearHistoryRecords(): HistoryRecord[];
80
+ /** 删除一条历史记录 */
81
+ removeHistoryRecord(record: HistoryRecord): HistoryRecord[];
82
+ /** 新增一条历史记录 */
83
+ insertHistoryRecord(value: string): HistoryRecord[];
84
+ renderInput(isHistoryMode?: boolean): JSX.Element;
85
+ renderTag(item: HistoryRecord, index: number): JSX.Element;
86
+ renderHitoryMode(): JSX.Element;
45
87
  render(): JSX.Element;
46
88
  }
47
89
  declare const _default: {
48
- new (props: Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
90
+ new (props: Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
49
91
  mini: boolean;
50
92
  enhance: boolean;
51
93
  clearable: boolean;
52
94
  searchImediately: boolean;
95
+ history: Required<SearchHistoryOptions>;
53
96
  }, never>> & {
54
97
  locale?: string | undefined;
55
98
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -59,21 +102,23 @@ declare const _default: {
59
102
  getWrappedInstance(): any;
60
103
  render(): JSX.Element;
61
104
  context: any;
62
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
105
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
63
106
  mini: boolean;
64
107
  enhance: boolean;
65
108
  clearable: boolean;
66
109
  searchImediately: boolean;
110
+ history: Required<SearchHistoryOptions>;
67
111
  }, never>> & {
68
112
  locale?: string | undefined;
69
113
  translate?: ((str: string, ...args: any[]) => string) | undefined;
70
114
  }, keyof ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
71
115
  forceUpdate(callback?: (() => void) | undefined): void;
72
- readonly props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
116
+ readonly props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
73
117
  mini: boolean;
74
118
  enhance: boolean;
75
119
  clearable: boolean;
76
120
  searchImediately: boolean;
121
+ history: Required<SearchHistoryOptions>;
77
122
  }, never>> & {
78
123
  locale?: string | undefined;
79
124
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -85,69 +130,76 @@ declare const _default: {
85
130
  [key: string]: React.ReactInstance;
86
131
  };
87
132
  componentDidMount?(): void;
88
- shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
133
+ shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
89
134
  mini: boolean;
90
135
  enhance: boolean;
91
136
  clearable: boolean;
92
137
  searchImediately: boolean;
138
+ history: Required<SearchHistoryOptions>;
93
139
  }, never>> & {
94
140
  locale?: string | undefined;
95
141
  translate?: ((str: string, ...args: any[]) => string) | undefined;
96
142
  }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
97
143
  componentWillUnmount?(): void;
98
144
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
99
- getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
145
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
100
146
  mini: boolean;
101
147
  enhance: boolean;
102
148
  clearable: boolean;
103
149
  searchImediately: boolean;
150
+ history: Required<SearchHistoryOptions>;
104
151
  }, never>> & {
105
152
  locale?: string | undefined;
106
153
  translate?: ((str: string, ...args: any[]) => string) | undefined;
107
154
  }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
108
- componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
155
+ componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
109
156
  mini: boolean;
110
157
  enhance: boolean;
111
158
  clearable: boolean;
112
159
  searchImediately: boolean;
160
+ history: Required<SearchHistoryOptions>;
113
161
  }, never>> & {
114
162
  locale?: string | undefined;
115
163
  translate?: ((str: string, ...args: any[]) => string) | undefined;
116
164
  }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
117
165
  componentWillMount?(): void;
118
166
  UNSAFE_componentWillMount?(): void;
119
- componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
167
+ componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
120
168
  mini: boolean;
121
169
  enhance: boolean;
122
170
  clearable: boolean;
123
171
  searchImediately: boolean;
172
+ history: Required<SearchHistoryOptions>;
124
173
  }, never>> & {
125
174
  locale?: string | undefined;
126
175
  translate?: ((str: string, ...args: any[]) => string) | undefined;
127
176
  }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
128
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
177
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
129
178
  mini: boolean;
130
179
  enhance: boolean;
131
180
  clearable: boolean;
132
181
  searchImediately: boolean;
182
+ history: Required<SearchHistoryOptions>;
133
183
  }, never>> & {
134
184
  locale?: string | undefined;
135
185
  translate?: ((str: string, ...args: any[]) => string) | undefined;
136
186
  }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
137
- componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
187
+ componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
138
188
  mini: boolean;
139
189
  enhance: boolean;
140
190
  clearable: boolean;
141
191
  searchImediately: boolean;
192
+ history: Required<SearchHistoryOptions>;
142
193
  }, never>> & {
143
194
  locale?: string | undefined;
144
195
  translate?: ((str: string, ...args: any[]) => string) | undefined;
145
196
  }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
146
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
197
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
147
198
  mini: boolean;
148
199
  enhance: boolean;
149
200
  clearable: boolean;
150
201
  searchImediately: boolean;
202
+ history: Required<SearchHistoryOptions>;
151
203
  }, never>> & {
152
204
  locale?: string | undefined;
153
205
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -156,11 +208,12 @@ declare const _default: {
156
208
  displayName: string;
157
209
  contextType: React.Context<string>;
158
210
  ComposedComponent: React.ComponentType<{
159
- new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
211
+ new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
160
212
  mini: boolean;
161
213
  enhance: boolean;
162
214
  clearable: boolean;
163
215
  searchImediately: boolean;
216
+ history: Required<SearchHistoryOptions>;
164
217
  }, never>> & {
165
218
  locale?: string | undefined;
166
219
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -170,21 +223,23 @@ declare const _default: {
170
223
  getWrappedInstance(): any;
171
224
  render(): JSX.Element;
172
225
  context: any;
173
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
226
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
174
227
  mini: boolean;
175
228
  enhance: boolean;
176
229
  clearable: boolean;
177
230
  searchImediately: boolean;
231
+ history: Required<SearchHistoryOptions>;
178
232
  }, never>> & {
179
233
  locale?: string | undefined;
180
234
  translate?: ((str: string, ...args: any[]) => string) | undefined;
181
235
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
182
236
  forceUpdate(callback?: (() => void) | undefined): void;
183
- readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
237
+ readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
184
238
  mini: boolean;
185
239
  enhance: boolean;
186
240
  clearable: boolean;
187
241
  searchImediately: boolean;
242
+ history: Required<SearchHistoryOptions>;
188
243
  }, never>> & {
189
244
  locale?: string | undefined;
190
245
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -196,69 +251,76 @@ declare const _default: {
196
251
  [key: string]: React.ReactInstance;
197
252
  };
198
253
  componentDidMount?(): void;
199
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
254
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
200
255
  mini: boolean;
201
256
  enhance: boolean;
202
257
  clearable: boolean;
203
258
  searchImediately: boolean;
259
+ history: Required<SearchHistoryOptions>;
204
260
  }, never>> & {
205
261
  locale?: string | undefined;
206
262
  translate?: ((str: string, ...args: any[]) => string) | undefined;
207
263
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
208
264
  componentWillUnmount?(): void;
209
265
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
210
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
266
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
211
267
  mini: boolean;
212
268
  enhance: boolean;
213
269
  clearable: boolean;
214
270
  searchImediately: boolean;
271
+ history: Required<SearchHistoryOptions>;
215
272
  }, never>> & {
216
273
  locale?: string | undefined;
217
274
  translate?: ((str: string, ...args: any[]) => string) | undefined;
218
275
  }>, prevState: Readonly<{}>): any;
219
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
276
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
220
277
  mini: boolean;
221
278
  enhance: boolean;
222
279
  clearable: boolean;
223
280
  searchImediately: boolean;
281
+ history: Required<SearchHistoryOptions>;
224
282
  }, never>> & {
225
283
  locale?: string | undefined;
226
284
  translate?: ((str: string, ...args: any[]) => string) | undefined;
227
285
  }>, prevState: Readonly<{}>, snapshot?: any): void;
228
286
  componentWillMount?(): void;
229
287
  UNSAFE_componentWillMount?(): void;
230
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
288
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
231
289
  mini: boolean;
232
290
  enhance: boolean;
233
291
  clearable: boolean;
234
292
  searchImediately: boolean;
293
+ history: Required<SearchHistoryOptions>;
235
294
  }, never>> & {
236
295
  locale?: string | undefined;
237
296
  translate?: ((str: string, ...args: any[]) => string) | undefined;
238
297
  }>, nextContext: any): void;
239
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
298
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
240
299
  mini: boolean;
241
300
  enhance: boolean;
242
301
  clearable: boolean;
243
302
  searchImediately: boolean;
303
+ history: Required<SearchHistoryOptions>;
244
304
  }, never>> & {
245
305
  locale?: string | undefined;
246
306
  translate?: ((str: string, ...args: any[]) => string) | undefined;
247
307
  }>, nextContext: any): void;
248
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
308
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
249
309
  mini: boolean;
250
310
  enhance: boolean;
251
311
  clearable: boolean;
252
312
  searchImediately: boolean;
313
+ history: Required<SearchHistoryOptions>;
253
314
  }, never>> & {
254
315
  locale?: string | undefined;
255
316
  translate?: ((str: string, ...args: any[]) => string) | undefined;
256
317
  }>, nextState: Readonly<{}>, nextContext: any): void;
257
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
318
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
258
319
  mini: boolean;
259
320
  enhance: boolean;
260
321
  clearable: boolean;
261
322
  searchImediately: boolean;
323
+ history: Required<SearchHistoryOptions>;
262
324
  }, never>> & {
263
325
  locale?: string | undefined;
264
326
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -271,11 +333,12 @@ declare const _default: {
271
333
  ComposedComponent: typeof SearchBox;
272
334
  }>;
273
335
  } & import("hoist-non-react-statics").NonReactStatics<{
274
- new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
336
+ new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
275
337
  mini: boolean;
276
338
  enhance: boolean;
277
339
  clearable: boolean;
278
340
  searchImediately: boolean;
341
+ history: Required<SearchHistoryOptions>;
279
342
  }, never>> & {
280
343
  locale?: string | undefined;
281
344
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -285,21 +348,23 @@ declare const _default: {
285
348
  getWrappedInstance(): any;
286
349
  render(): JSX.Element;
287
350
  context: any;
288
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
351
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
289
352
  mini: boolean;
290
353
  enhance: boolean;
291
354
  clearable: boolean;
292
355
  searchImediately: boolean;
356
+ history: Required<SearchHistoryOptions>;
293
357
  }, never>> & {
294
358
  locale?: string | undefined;
295
359
  translate?: ((str: string, ...args: any[]) => string) | undefined;
296
360
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
297
361
  forceUpdate(callback?: (() => void) | undefined): void;
298
- readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
362
+ readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
299
363
  mini: boolean;
300
364
  enhance: boolean;
301
365
  clearable: boolean;
302
366
  searchImediately: boolean;
367
+ history: Required<SearchHistoryOptions>;
303
368
  }, never>> & {
304
369
  locale?: string | undefined;
305
370
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -311,69 +376,76 @@ declare const _default: {
311
376
  [key: string]: React.ReactInstance;
312
377
  };
313
378
  componentDidMount?(): void;
314
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
379
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
315
380
  mini: boolean;
316
381
  enhance: boolean;
317
382
  clearable: boolean;
318
383
  searchImediately: boolean;
384
+ history: Required<SearchHistoryOptions>;
319
385
  }, never>> & {
320
386
  locale?: string | undefined;
321
387
  translate?: ((str: string, ...args: any[]) => string) | undefined;
322
388
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
323
389
  componentWillUnmount?(): void;
324
390
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
325
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
391
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
326
392
  mini: boolean;
327
393
  enhance: boolean;
328
394
  clearable: boolean;
329
395
  searchImediately: boolean;
396
+ history: Required<SearchHistoryOptions>;
330
397
  }, never>> & {
331
398
  locale?: string | undefined;
332
399
  translate?: ((str: string, ...args: any[]) => string) | undefined;
333
400
  }>, prevState: Readonly<{}>): any;
334
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
401
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
335
402
  mini: boolean;
336
403
  enhance: boolean;
337
404
  clearable: boolean;
338
405
  searchImediately: boolean;
406
+ history: Required<SearchHistoryOptions>;
339
407
  }, never>> & {
340
408
  locale?: string | undefined;
341
409
  translate?: ((str: string, ...args: any[]) => string) | undefined;
342
410
  }>, prevState: Readonly<{}>, snapshot?: any): void;
343
411
  componentWillMount?(): void;
344
412
  UNSAFE_componentWillMount?(): void;
345
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
413
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
346
414
  mini: boolean;
347
415
  enhance: boolean;
348
416
  clearable: boolean;
349
417
  searchImediately: boolean;
418
+ history: Required<SearchHistoryOptions>;
350
419
  }, never>> & {
351
420
  locale?: string | undefined;
352
421
  translate?: ((str: string, ...args: any[]) => string) | undefined;
353
422
  }>, nextContext: any): void;
354
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
423
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
355
424
  mini: boolean;
356
425
  enhance: boolean;
357
426
  clearable: boolean;
358
427
  searchImediately: boolean;
428
+ history: Required<SearchHistoryOptions>;
359
429
  }, never>> & {
360
430
  locale?: string | undefined;
361
431
  translate?: ((str: string, ...args: any[]) => string) | undefined;
362
432
  }>, nextContext: any): void;
363
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
433
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
364
434
  mini: boolean;
365
435
  enhance: boolean;
366
436
  clearable: boolean;
367
437
  searchImediately: boolean;
438
+ history: Required<SearchHistoryOptions>;
368
439
  }, never>> & {
369
440
  locale?: string | undefined;
370
441
  translate?: ((str: string, ...args: any[]) => string) | undefined;
371
442
  }>, nextState: Readonly<{}>, nextContext: any): void;
372
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
443
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
373
444
  mini: boolean;
374
445
  enhance: boolean;
375
446
  clearable: boolean;
376
447
  searchImediately: boolean;
448
+ history: Required<SearchHistoryOptions>;
377
449
  }, never>> & {
378
450
  locale?: string | undefined;
379
451
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -386,11 +458,12 @@ declare const _default: {
386
458
  ComposedComponent: typeof SearchBox;
387
459
  }, {}> & {
388
460
  ComposedComponent: {
389
- new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
461
+ new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
390
462
  mini: boolean;
391
463
  enhance: boolean;
392
464
  clearable: boolean;
393
465
  searchImediately: boolean;
466
+ history: Required<SearchHistoryOptions>;
394
467
  }, never>> & {
395
468
  locale?: string | undefined;
396
469
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -400,21 +473,23 @@ declare const _default: {
400
473
  getWrappedInstance(): any;
401
474
  render(): JSX.Element;
402
475
  context: any;
403
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
476
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
404
477
  mini: boolean;
405
478
  enhance: boolean;
406
479
  clearable: boolean;
407
480
  searchImediately: boolean;
481
+ history: Required<SearchHistoryOptions>;
408
482
  }, never>> & {
409
483
  locale?: string | undefined;
410
484
  translate?: ((str: string, ...args: any[]) => string) | undefined;
411
485
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
412
486
  forceUpdate(callback?: (() => void) | undefined): void;
413
- readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
487
+ readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
414
488
  mini: boolean;
415
489
  enhance: boolean;
416
490
  clearable: boolean;
417
491
  searchImediately: boolean;
492
+ history: Required<SearchHistoryOptions>;
418
493
  }, never>> & {
419
494
  locale?: string | undefined;
420
495
  translate?: ((str: string, ...args: any[]) => string) | undefined;
@@ -426,69 +501,76 @@ declare const _default: {
426
501
  [key: string]: React.ReactInstance;
427
502
  };
428
503
  componentDidMount?(): void;
429
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
504
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
430
505
  mini: boolean;
431
506
  enhance: boolean;
432
507
  clearable: boolean;
433
508
  searchImediately: boolean;
509
+ history: Required<SearchHistoryOptions>;
434
510
  }, never>> & {
435
511
  locale?: string | undefined;
436
512
  translate?: ((str: string, ...args: any[]) => string) | undefined;
437
513
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
438
514
  componentWillUnmount?(): void;
439
515
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
440
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
516
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
441
517
  mini: boolean;
442
518
  enhance: boolean;
443
519
  clearable: boolean;
444
520
  searchImediately: boolean;
521
+ history: Required<SearchHistoryOptions>;
445
522
  }, never>> & {
446
523
  locale?: string | undefined;
447
524
  translate?: ((str: string, ...args: any[]) => string) | undefined;
448
525
  }>, prevState: Readonly<{}>): any;
449
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
526
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
450
527
  mini: boolean;
451
528
  enhance: boolean;
452
529
  clearable: boolean;
453
530
  searchImediately: boolean;
531
+ history: Required<SearchHistoryOptions>;
454
532
  }, never>> & {
455
533
  locale?: string | undefined;
456
534
  translate?: ((str: string, ...args: any[]) => string) | undefined;
457
535
  }>, prevState: Readonly<{}>, snapshot?: any): void;
458
536
  componentWillMount?(): void;
459
537
  UNSAFE_componentWillMount?(): void;
460
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
538
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
461
539
  mini: boolean;
462
540
  enhance: boolean;
463
541
  clearable: boolean;
464
542
  searchImediately: boolean;
543
+ history: Required<SearchHistoryOptions>;
465
544
  }, never>> & {
466
545
  locale?: string | undefined;
467
546
  translate?: ((str: string, ...args: any[]) => string) | undefined;
468
547
  }>, nextContext: any): void;
469
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
548
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
470
549
  mini: boolean;
471
550
  enhance: boolean;
472
551
  clearable: boolean;
473
552
  searchImediately: boolean;
553
+ history: Required<SearchHistoryOptions>;
474
554
  }, never>> & {
475
555
  locale?: string | undefined;
476
556
  translate?: ((str: string, ...args: any[]) => string) | undefined;
477
557
  }>, nextContext: any): void;
478
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
558
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
479
559
  mini: boolean;
480
560
  enhance: boolean;
481
561
  clearable: boolean;
482
562
  searchImediately: boolean;
563
+ history: Required<SearchHistoryOptions>;
483
564
  }, never>> & {
484
565
  locale?: string | undefined;
485
566
  translate?: ((str: string, ...args: any[]) => string) | undefined;
486
567
  }>, nextState: Readonly<{}>, nextContext: any): void;
487
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "onActiveChange" | "defaultActive" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately">> & Partial<Pick<{
568
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
488
569
  mini: boolean;
489
570
  enhance: boolean;
490
571
  clearable: boolean;
491
572
  searchImediately: boolean;
573
+ history: Required<SearchHistoryOptions>;
492
574
  }, never>> & {
493
575
  locale?: string | undefined;
494
576
  translate?: ((str: string, ...args: any[]) => string) | undefined;