@elliemae/ds-form 2.0.2 → 2.1.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/cjs/Checkbox/DSCheckbox.js +2 -2
  2. package/cjs/MenuItem/components/Section/styled.js +2 -2
  3. package/cjs/MenuItem/components/Separator/styled.js +2 -2
  4. package/cjs/MenuItem/components/SubmenuItem/index.js +1 -1
  5. package/cjs/MenuItem/components/styled.js +4 -9
  6. package/cjs/Radio/DSRadio.js +9 -4
  7. package/esm/Checkbox/DSCheckbox.js +2 -2
  8. package/esm/MenuItem/components/Section/styled.js +2 -2
  9. package/esm/MenuItem/components/Separator/styled.js +2 -2
  10. package/esm/MenuItem/components/SubmenuItem/index.js +1 -1
  11. package/esm/MenuItem/components/styled.js +5 -9
  12. package/esm/Radio/DSRadio.js +9 -4
  13. package/package.json +23 -23
  14. package/types/Checkbox/DSCheckbox.d.ts +36 -47
  15. package/types/Checkbox/props.d.ts +14 -14
  16. package/types/CheckboxGroup/DSCheckboxGroup.d.ts +12 -12
  17. package/types/CheckboxGroup/props.d.ts +12 -12
  18. package/types/ComboBox/v3/ComboBox.d.ts +2 -2
  19. package/types/ComboBox/v3/propTypes.d.ts +2 -2
  20. package/types/DateInput/DSDateInput.d.ts +32 -32
  21. package/types/DateInput/props.d.ts +64 -32
  22. package/types/DateInputV2/components/DSDateInput.d.ts +20 -20
  23. package/types/DateInputV2/components/props.d.ts +20 -20
  24. package/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +38 -38
  25. package/types/FormItem/DSFormItemLayout.d.ts +112 -112
  26. package/types/FormItem/Error/DSError.d.ts +4 -4
  27. package/types/FormItem/defaultProps.d.ts +38 -38
  28. package/types/FormItem/props.d.ts +74 -74
  29. package/types/InputGroup/DSInputGroup.d.ts +14 -14
  30. package/types/InputGroup/props.d.ts +14 -14
  31. package/types/InputMask/DSInputMask.d.ts +54 -54
  32. package/types/InputMask/props.d.ts +54 -54
  33. package/types/InputProtected/DSInputProtected.d.ts +12 -12
  34. package/types/InputProtected/props.d.ts +12 -12
  35. package/types/LargeInputText/DSLargeInputText.d.ts +54 -54
  36. package/types/LargeInputText/props.d.ts +54 -54
  37. package/types/MenuItem/components/SubmenuItem/styled.d.ts +1 -1
  38. package/types/MenuItem/components/styled.d.ts +5 -3
  39. package/types/MenuItem/props.d.ts +3 -3
  40. package/types/Radio/DSRadio.d.ts +56 -46
  41. package/types/RadioGroup/DSRadioGroup.d.ts +12 -12
  42. package/types/RadioGroup/props.d.ts +12 -12
  43. package/types/SearchBox/DSSearchBox.d.ts +40 -40
  44. package/types/SearchBox/NavSearchBox.d.ts +24 -7
  45. package/types/SearchBox/SButton.d.ts +4 -4
  46. package/types/SearchBox/props.d.ts +44 -44
  47. package/types/TextBox/DSTextBox.d.ts +38 -38
  48. package/types/TimeInput/DSTimeInput.d.ts +22 -22
  49. package/types/Toggle/DSToggle.d.ts +22 -22
@@ -1,6 +1,6 @@
1
1
  /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
2
2
  /// <reference types="react" />
3
- import { LayoutProps } from 'styled-system';
3
+ import { SizingProps } from '@xstyled/styled-components';
4
4
  export interface MenuItemT {
5
5
  dsId: string;
6
6
  value: string;
@@ -21,8 +21,8 @@ export interface MenuItemT {
21
21
  onKeyDown?: React.KeyboardEventHandler;
22
22
  wrapperStyles?: Record<string, unknown>;
23
23
  withVirtualization?: boolean;
24
- minWidth?: LayoutProps['minWidth'];
25
- maxHeight?: LayoutProps['maxHeight'];
24
+ minWidth?: SizingProps['minWidth'];
25
+ maxHeight?: SizingProps['maxHeight'];
26
26
  render?: (props: MenuItemT) => JSX.Element;
27
27
  dataTestid: string;
28
28
  }
@@ -1,23 +1,29 @@
1
1
  /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
2
- /// <reference types="react" />
2
+ import React from 'react';
3
+ import * as CSS from 'csstype';
4
+ interface DSRadioT {
5
+ [x: string]: unknown;
6
+ innerRef?: React.MutableRefObject<HTMLInputElement>;
7
+ containerProps?: {
8
+ [x: string]: unknown;
9
+ };
10
+ className?: string;
11
+ style?: CSS.Properties;
12
+ labelText?: string;
13
+ htmlFor?: string;
14
+ hasError?: boolean;
15
+ readOnly?: boolean;
16
+ disabled?: boolean;
17
+ checked?: boolean;
18
+ value?: string;
19
+ name?: string;
20
+ onKeyDown?: React.KeyboardEventHandler<HTMLSpanElement>;
21
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
22
+ children?: React.ReactNode | React.ReactNode[];
23
+ tabIndex?: number;
24
+ }
3
25
  declare const DSRadio: {
4
- ({ containerProps, className, style, labelText, htmlFor, hasError, readOnly, disabled, checked, value, name, onChange, children, tabIndex, ...otherProps }: {
5
- [x: string]: any;
6
- containerProps: any;
7
- className: any;
8
- style: any;
9
- labelText: any;
10
- htmlFor: any;
11
- hasError: any;
12
- readOnly: any;
13
- disabled: any;
14
- checked: any;
15
- value: any;
16
- name: any;
17
- onChange: any;
18
- children: any;
19
- tabIndex: any;
20
- }): JSX.Element;
26
+ ({ containerProps, className, style, labelText, htmlFor, hasError, readOnly, disabled, checked, value, name, onChange, children, tabIndex, ...otherProps }: DSRadioT): JSX.Element;
21
27
  defaultProps: {
22
28
  containerProps: {};
23
29
  className: string;
@@ -33,115 +39,119 @@ declare const DSRadio: {
33
39
  propTypes: {
34
40
  /** Injected props to wrapper element of component */
35
41
  containerProps: {
36
- defaultValue<T = unknown>(arg: T): {
42
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
37
43
  deprecated: import("react-desc").PropTypesDescValidator;
38
44
  };
39
- isRequired: import("react-desc").PropTypesDescValidator;
45
+ isRequired: import("react-desc").PropTypesDescValue;
40
46
  };
41
47
  /** css class prop */
42
48
  className: {
43
- defaultValue<T = unknown>(arg: T): {
49
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
44
50
  deprecated: import("react-desc").PropTypesDescValidator;
45
51
  };
46
- isRequired: import("react-desc").PropTypesDescValidator;
52
+ isRequired: import("react-desc").PropTypesDescValue;
47
53
  };
48
54
  /** name property to manage form */
49
55
  name: {
50
- defaultValue<T = unknown>(arg: T): {
56
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
51
57
  deprecated: import("react-desc").PropTypesDescValidator;
52
58
  };
53
- isRequired: import("react-desc").PropTypesDescValidator;
59
+ isRequired: import("react-desc").PropTypesDescValue;
54
60
  };
55
61
  /**
56
62
  * Displayable label for the radio
57
63
  */
58
64
  labelText: {
59
- defaultValue<T = unknown>(arg: T): {
65
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
60
66
  deprecated: import("react-desc").PropTypesDescValidator;
61
67
  };
62
- isRequired: import("react-desc").PropTypesDescValidator;
68
+ isRequired: import("react-desc").PropTypesDescValue;
63
69
  };
64
70
  /** HTMLFOR property to manage form */
65
71
  htmlFor: {
66
- defaultValue<T = unknown>(arg: T): {
72
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
67
73
  deprecated: import("react-desc").PropTypesDescValidator;
68
74
  };
69
- isRequired: import("react-desc").PropTypesDescValidator;
75
+ isRequired: import("react-desc").PropTypesDescValue;
70
76
  };
71
77
  /**
72
78
  * Whether the radio has error or not
73
79
  */
74
80
  hasError: {
75
- defaultValue<T = unknown>(arg: T): {
81
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
76
82
  deprecated: import("react-desc").PropTypesDescValidator;
77
83
  };
78
- isRequired: import("react-desc").PropTypesDescValidator;
84
+ isRequired: import("react-desc").PropTypesDescValue;
79
85
  };
80
86
  /**
81
87
  * Whether the radio is read only or not
82
88
  */
83
89
  readOnly: {
84
- defaultValue<T = unknown>(arg: T): {
90
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
85
91
  deprecated: import("react-desc").PropTypesDescValidator;
86
92
  };
87
- isRequired: import("react-desc").PropTypesDescValidator;
93
+ isRequired: import("react-desc").PropTypesDescValue;
88
94
  };
89
95
  /**
90
96
  * Whether the radio is disabled or not
91
97
  */
92
98
  disabled: {
93
- defaultValue<T = unknown>(arg: T): {
99
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
94
100
  deprecated: import("react-desc").PropTypesDescValidator;
95
101
  };
96
- isRequired: import("react-desc").PropTypesDescValidator;
102
+ isRequired: import("react-desc").PropTypesDescValue;
97
103
  };
98
104
  /**
99
105
  * Whether the radio is checked or not
100
106
  */
101
107
  checked: {
102
- defaultValue<T = unknown>(arg: T): {
108
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
103
109
  deprecated: import("react-desc").PropTypesDescValidator;
104
110
  };
105
- isRequired: import("react-desc").PropTypesDescValidator;
111
+ isRequired: import("react-desc").PropTypesDescValue;
106
112
  };
107
113
  /**
108
114
  * Value that takes the checkbox if it is checked
109
115
  */
110
- value: any;
116
+ value: import("react-desc").PropTypesDescValue;
111
117
  /**
112
118
  * Allows a function that is triggered once the radio changes
113
119
  */
114
120
  onChange: {
115
- defaultValue<T = unknown>(arg: T): {
121
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
116
122
  deprecated: import("react-desc").PropTypesDescValidator;
117
123
  };
118
- isRequired: import("react-desc").PropTypesDescValidator;
124
+ isRequired: import("react-desc").PropTypesDescValue;
119
125
  };
120
126
  /**
121
127
  * Optional, if you want a checkbox customized
122
128
  */
123
129
  children: {
124
- defaultValue<T = unknown>(arg: T): {
130
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
125
131
  deprecated: import("react-desc").PropTypesDescValidator;
126
132
  };
127
- isRequired: import("react-desc").PropTypesDescValidator;
133
+ isRequired: import("react-desc").PropTypesDescValue;
128
134
  };
129
135
  /** HTML tabindex to manage focus */
130
136
  tabIndex: {
131
- defaultValue<T = unknown>(arg: T): {
137
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
132
138
  deprecated: import("react-desc").PropTypesDescValidator;
133
139
  };
134
- isRequired: import("react-desc").PropTypesDescValidator;
140
+ isRequired: import("react-desc").PropTypesDescValue;
135
141
  };
136
142
  /** style override object */
137
143
  style: {
138
- defaultValue<T = unknown>(arg: T): {
144
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
139
145
  deprecated: import("react-desc").PropTypesDescValidator;
140
146
  };
141
- isRequired: import("react-desc").PropTypesDescValidator;
147
+ isRequired: import("react-desc").PropTypesDescValue;
142
148
  };
143
149
  };
144
150
  };
145
- declare const DSRadioWithSchema: any;
151
+ declare const DSRadioWithSchema: {
152
+ (props?: DSRadioT | undefined): JSX.Element;
153
+ propTypes: unknown;
154
+ toTypescript: () => import("react-desc").TypescriptSchema;
155
+ };
146
156
  export { DSRadioWithSchema };
147
157
  export default DSRadio;
@@ -13,41 +13,41 @@ declare const DSRadioGroup: {
13
13
  }): JSX.Element;
14
14
  propTypes: {
15
15
  containerProps: {
16
- defaultValue<T = unknown>(arg: T): {
16
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
17
17
  deprecated: import("react-desc").PropTypesDescValidator;
18
18
  };
19
- isRequired: import("react-desc").PropTypesDescValidator;
19
+ isRequired: import("react-desc").PropTypesDescValue;
20
20
  };
21
21
  onChange: {
22
- defaultValue<T = unknown>(arg: T): {
22
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
23
23
  deprecated: import("react-desc").PropTypesDescValidator;
24
24
  };
25
- isRequired: import("react-desc").PropTypesDescValidator;
25
+ isRequired: import("react-desc").PropTypesDescValue;
26
26
  };
27
27
  activeValue: {
28
- defaultValue<T = unknown>(arg: T): {
28
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
29
29
  deprecated: import("react-desc").PropTypesDescValidator;
30
30
  };
31
- isRequired: import("react-desc").PropTypesDescValidator;
31
+ isRequired: import("react-desc").PropTypesDescValue;
32
32
  };
33
33
  children: any;
34
34
  orientation: {
35
- defaultValue<T = unknown>(arg: T): {
35
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
36
36
  deprecated: import("react-desc").PropTypesDescValidator;
37
37
  };
38
- isRequired: import("react-desc").PropTypesDescValidator;
38
+ isRequired: import("react-desc").PropTypesDescValue;
39
39
  };
40
40
  disabled: {
41
- defaultValue<T = unknown>(arg: T): {
41
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
42
42
  deprecated: import("react-desc").PropTypesDescValidator;
43
43
  };
44
- isRequired: import("react-desc").PropTypesDescValidator;
44
+ isRequired: import("react-desc").PropTypesDescValue;
45
45
  };
46
46
  labelProps: {
47
- defaultValue<T = unknown>(arg: T): {
47
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
48
48
  deprecated: import("react-desc").PropTypesDescValidator;
49
49
  };
50
- isRequired: import("react-desc").PropTypesDescValidator;
50
+ isRequired: import("react-desc").PropTypesDescValue;
51
51
  };
52
52
  };
53
53
  defaultProps: {
@@ -2,28 +2,28 @@
2
2
  export declare const props: {
3
3
  /** Inject props to component wrapper */
4
4
  containerProps: {
5
- defaultValue<T = unknown>(arg: T): {
5
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
6
6
  deprecated: import("react-desc").PropTypesDescValidator;
7
7
  };
8
- isRequired: import("react-desc").PropTypesDescValidator;
8
+ isRequired: import("react-desc").PropTypesDescValue;
9
9
  };
10
10
  /**
11
11
  * Allows a function that is triggered once the radio group changes
12
12
  */
13
13
  onChange: {
14
- defaultValue<T = unknown>(arg: T): {
14
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
15
15
  deprecated: import("react-desc").PropTypesDescValidator;
16
16
  };
17
- isRequired: import("react-desc").PropTypesDescValidator;
17
+ isRequired: import("react-desc").PropTypesDescValue;
18
18
  };
19
19
  /**
20
20
  * Selected default active value
21
21
  */
22
22
  activeValue: {
23
- defaultValue<T = unknown>(arg: T): {
23
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
24
24
  deprecated: import("react-desc").PropTypesDescValidator;
25
25
  };
26
- isRequired: import("react-desc").PropTypesDescValidator;
26
+ isRequired: import("react-desc").PropTypesDescValue;
27
27
  };
28
28
  /**
29
29
  * Radio group items to show of type DSRadio
@@ -33,24 +33,24 @@ export declare const props: {
33
33
  * ['horizontal', 'vertical']
34
34
  */
35
35
  orientation: {
36
- defaultValue<T = unknown>(arg: T): {
36
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
37
37
  deprecated: import("react-desc").PropTypesDescValidator;
38
38
  };
39
- isRequired: import("react-desc").PropTypesDescValidator;
39
+ isRequired: import("react-desc").PropTypesDescValue;
40
40
  };
41
41
  /**
42
42
  * Whether the radio group is disabled or not
43
43
  */
44
44
  disabled: {
45
- defaultValue<T = unknown>(arg: T): {
45
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
46
46
  deprecated: import("react-desc").PropTypesDescValidator;
47
47
  };
48
- isRequired: import("react-desc").PropTypesDescValidator;
48
+ isRequired: import("react-desc").PropTypesDescValue;
49
49
  };
50
50
  labelProps: {
51
- defaultValue<T = unknown>(arg: T): {
51
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
52
52
  deprecated: import("react-desc").PropTypesDescValidator;
53
53
  };
54
- isRequired: import("react-desc").PropTypesDescValidator;
54
+ isRequired: import("react-desc").PropTypesDescValue;
55
55
  };
56
56
  };
@@ -24,124 +24,124 @@ declare const DSSearchBox: {
24
24
  }): JSX.Element;
25
25
  propTypes: {
26
26
  containerProps: {
27
- defaultValue<T = unknown>(arg: T): {
27
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
28
28
  deprecated: import("react-desc").PropTypesDescValidator;
29
29
  };
30
- isRequired: import("react-desc").PropTypesDescValidator;
30
+ isRequired: import("react-desc").PropTypesDescValue;
31
31
  };
32
32
  className: {
33
- defaultValue<T = unknown>(arg: T): {
33
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
34
34
  deprecated: import("react-desc").PropTypesDescValidator;
35
35
  };
36
- isRequired: import("react-desc").PropTypesDescValidator;
36
+ isRequired: import("react-desc").PropTypesDescValue;
37
37
  };
38
38
  innerRef: {
39
- defaultValue<T = unknown>(arg: T): {
39
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
40
40
  deprecated: import("react-desc").PropTypesDescValidator;
41
41
  };
42
- isRequired: import("react-desc").PropTypesDescValidator;
42
+ isRequired: import("react-desc").PropTypesDescValue;
43
43
  };
44
44
  style: {
45
- defaultValue<T = unknown>(arg: T): {
45
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
46
46
  deprecated: import("react-desc").PropTypesDescValidator;
47
47
  };
48
- isRequired: import("react-desc").PropTypesDescValidator;
48
+ isRequired: import("react-desc").PropTypesDescValue;
49
49
  };
50
50
  property: {
51
- defaultValue<T = unknown>(arg: T): {
51
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
52
52
  deprecated: import("react-desc").PropTypesDescValidator;
53
53
  };
54
- isRequired: import("react-desc").PropTypesDescValidator;
54
+ isRequired: import("react-desc").PropTypesDescValue;
55
55
  };
56
56
  placeholder: {
57
- defaultValue<T = unknown>(arg: T): {
57
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
58
58
  deprecated: import("react-desc").PropTypesDescValidator;
59
59
  };
60
- isRequired: import("react-desc").PropTypesDescValidator;
60
+ isRequired: import("react-desc").PropTypesDescValue;
61
61
  };
62
62
  searchOnEnter: {
63
- defaultValue<T = unknown>(arg: T): {
63
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
64
64
  deprecated: import("react-desc").PropTypesDescValidator;
65
65
  };
66
- isRequired: import("react-desc").PropTypesDescValidator;
66
+ isRequired: import("react-desc").PropTypesDescValue;
67
67
  };
68
68
  clearOnSearch: {
69
- defaultValue<T = unknown>(arg: T): {
69
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
70
70
  deprecated: import("react-desc").PropTypesDescValidator;
71
71
  };
72
- isRequired: import("react-desc").PropTypesDescValidator;
72
+ isRequired: import("react-desc").PropTypesDescValue;
73
73
  };
74
74
  onClearButtonClick: {
75
- defaultValue<T = unknown>(arg: T): {
75
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
76
76
  deprecated: import("react-desc").PropTypesDescValidator;
77
77
  };
78
- isRequired: import("react-desc").PropTypesDescValidator;
78
+ isRequired: import("react-desc").PropTypesDescValue;
79
79
  };
80
80
  onKeyUp: {
81
- defaultValue<T = unknown>(arg: T): {
81
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
82
82
  deprecated: import("react-desc").PropTypesDescValidator;
83
83
  };
84
- isRequired: import("react-desc").PropTypesDescValidator;
84
+ isRequired: import("react-desc").PropTypesDescValue;
85
85
  };
86
86
  onSearch: {
87
- defaultValue<T = unknown>(arg: T): {
87
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
88
88
  deprecated: import("react-desc").PropTypesDescValidator;
89
89
  };
90
- isRequired: import("react-desc").PropTypesDescValidator;
90
+ isRequired: import("react-desc").PropTypesDescValue;
91
91
  };
92
92
  onSearchButtonClick: {
93
- defaultValue<T = unknown>(arg: T): {
93
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
94
94
  deprecated: import("react-desc").PropTypesDescValidator;
95
95
  };
96
- isRequired: import("react-desc").PropTypesDescValidator;
96
+ isRequired: import("react-desc").PropTypesDescValue;
97
97
  };
98
98
  onChange: {
99
- defaultValue<T = unknown>(arg: T): {
99
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
100
100
  deprecated: import("react-desc").PropTypesDescValidator;
101
101
  };
102
- isRequired: import("react-desc").PropTypesDescValidator;
102
+ isRequired: import("react-desc").PropTypesDescValue;
103
103
  };
104
104
  onBlur: {
105
- defaultValue<T = unknown>(arg: T): {
105
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
106
106
  deprecated: import("react-desc").PropTypesDescValidator;
107
107
  };
108
- isRequired: import("react-desc").PropTypesDescValidator;
108
+ isRequired: import("react-desc").PropTypesDescValue;
109
109
  };
110
110
  value: {
111
- defaultValue<T = unknown>(arg: T): {
111
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
112
112
  deprecated: import("react-desc").PropTypesDescValidator;
113
113
  };
114
- isRequired: import("react-desc").PropTypesDescValidator;
114
+ isRequired: import("react-desc").PropTypesDescValue;
115
115
  };
116
116
  showIcon: {
117
- defaultValue<T = unknown>(arg: T): {
117
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
118
118
  deprecated: import("react-desc").PropTypesDescValidator;
119
119
  };
120
- isRequired: import("react-desc").PropTypesDescValidator;
120
+ isRequired: import("react-desc").PropTypesDescValue;
121
121
  };
122
122
  disabled: {
123
- defaultValue<T = unknown>(arg: T): {
123
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
124
124
  deprecated: import("react-desc").PropTypesDescValidator;
125
125
  };
126
- isRequired: import("react-desc").PropTypesDescValidator;
126
+ isRequired: import("react-desc").PropTypesDescValue;
127
127
  };
128
128
  disableButton: {
129
- defaultValue<T = unknown>(arg: T): {
129
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
130
130
  deprecated: import("react-desc").PropTypesDescValidator;
131
131
  };
132
- isRequired: import("react-desc").PropTypesDescValidator;
132
+ isRequired: import("react-desc").PropTypesDescValue;
133
133
  };
134
134
  readOnly: {
135
- defaultValue<T = unknown>(arg: T): {
135
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
136
136
  deprecated: import("react-desc").PropTypesDescValidator;
137
137
  };
138
- isRequired: import("react-desc").PropTypesDescValidator;
138
+ isRequired: import("react-desc").PropTypesDescValue;
139
139
  };
140
140
  clearable: {
141
- defaultValue<T = unknown>(arg: T): {
141
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
142
142
  deprecated: import("react-desc").PropTypesDescValidator;
143
143
  };
144
- isRequired: import("react-desc").PropTypesDescValidator;
144
+ isRequired: import("react-desc").PropTypesDescValue;
145
145
  };
146
146
  };
147
147
  defaultProps: {
@@ -1,15 +1,32 @@
1
1
  /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
2
- /// <reference types="react" />
2
+ import React from 'react';
3
+ interface PropsT {
4
+ value: string;
5
+ onChange: (val: string) => void;
6
+ onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
7
+ onNext: () => void;
8
+ onPrevious: () => void;
9
+ onClear: () => void;
10
+ currentResultIndex: number;
11
+ totalResults: number;
12
+ placeholder: {
13
+ defaultValue(arg: import('react-desc').ReactDescPossibleDefaultValues): {
14
+ deprecated: import('react-desc').PropTypesDescValidator;
15
+ };
16
+ isRequired: import('react-desc').PropTypesDescValue;
17
+ };
18
+ autoFocus: boolean;
19
+ }
3
20
  declare const NavSearchBox: {
4
- (props: any): JSX.Element;
21
+ (props: PropsT): JSX.Element;
5
22
  propTypes: {
6
23
  value: any;
7
24
  onChange: any;
8
25
  onBlur: {
9
- defaultValue<T = unknown>(arg: T): {
26
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
10
27
  deprecated: import("react-desc").PropTypesDescValidator;
11
28
  };
12
- isRequired: import("react-desc").PropTypesDescValidator;
29
+ isRequired: import("react-desc").PropTypesDescValue;
13
30
  };
14
31
  onNext: any;
15
32
  onPrevious: any;
@@ -17,10 +34,10 @@ declare const NavSearchBox: {
17
34
  currentResultIndex: any;
18
35
  totalResults: any;
19
36
  placeholder: {
20
- defaultValue<T = unknown>(arg: T): {
37
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
21
38
  deprecated: import("react-desc").PropTypesDescValidator;
22
39
  };
23
- isRequired: import("react-desc").PropTypesDescValidator;
40
+ isRequired: import("react-desc").PropTypesDescValue;
24
41
  };
25
42
  };
26
43
  defaultProps: {
@@ -29,7 +46,7 @@ declare const NavSearchBox: {
29
46
  };
30
47
  };
31
48
  declare const DSNavSearchBoxWithSchema: {
32
- (props?: any): JSX.Element;
49
+ (props?: PropsT | undefined): JSX.Element;
33
50
  propTypes: unknown;
34
51
  toTypescript: () => import("react-desc").TypescriptSchema;
35
52
  };
@@ -14,16 +14,16 @@ declare const SButton: {
14
14
  icon: any;
15
15
  /** disable button */
16
16
  disabled: {
17
- defaultValue<T = unknown>(arg: T): {
17
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
18
18
  deprecated: import("react-desc").PropTypesDescValidator;
19
19
  };
20
- isRequired: import("react-desc").PropTypesDescValidator;
20
+ isRequired: import("react-desc").PropTypesDescValue;
21
21
  };
22
22
  dataTestid: {
23
- defaultValue<T = unknown>(arg: T): {
23
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
24
24
  deprecated: import("react-desc").PropTypesDescValidator;
25
25
  };
26
- isRequired: import("react-desc").PropTypesDescValidator;
26
+ isRequired: import("react-desc").PropTypesDescValue;
27
27
  };
28
28
  };
29
29
  };