@codeleap/mobile 3.12.13 → 3.12.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable max-lines */
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
IconPlaceholder,
|
|
3
4
|
useDefaultComponentStyle,
|
|
4
5
|
TypeGuards,
|
|
5
6
|
useNestedStylesByKey,
|
|
@@ -32,7 +33,7 @@ const defaultFilterFunction = (search: string, options: FormTypes.Options<any>)
|
|
|
32
33
|
})
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
const OuterInput:ValueBoundSelectProps<any, boolean>['outerInputComponent'] = (props) => {
|
|
36
|
+
const OuterInput: ValueBoundSelectProps<any, boolean>['outerInputComponent'] = (props) => {
|
|
36
37
|
const {
|
|
37
38
|
currentValueLabel,
|
|
38
39
|
debugName,
|
|
@@ -43,9 +44,9 @@ const OuterInput:ValueBoundSelectProps<any, boolean>['outerInputComponent'] = (p
|
|
|
43
44
|
style,
|
|
44
45
|
placeholder,
|
|
45
46
|
disabled = false,
|
|
47
|
+
...rest
|
|
46
48
|
} = props
|
|
47
49
|
|
|
48
|
-
|
|
49
50
|
return <TextInput
|
|
50
51
|
value={TypeGuards.isString(currentValueLabel) ? currentValueLabel : null}
|
|
51
52
|
rightIcon={clearIcon}
|
|
@@ -59,10 +60,11 @@ const OuterInput:ValueBoundSelectProps<any, boolean>['outerInputComponent'] = (p
|
|
|
59
60
|
rippleDisabled: true,
|
|
60
61
|
}}
|
|
61
62
|
placeholder={placeholder as string}
|
|
63
|
+
{...rest}
|
|
62
64
|
/>
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
const defaultProps:Partial<SelectProps<any, boolean>> = {
|
|
67
|
+
const defaultProps: Partial<SelectProps<any, boolean>> = {
|
|
66
68
|
getLabel(option) {
|
|
67
69
|
|
|
68
70
|
if (TypeGuards.isArray(option)) {
|
|
@@ -82,7 +84,7 @@ const defaultProps:Partial<SelectProps<any, boolean>> = {
|
|
|
82
84
|
clearIconName: 'x' as IconPlaceholder,
|
|
83
85
|
}
|
|
84
86
|
|
|
85
|
-
export const Select = <T extends string|number = string, Multi extends boolean = false>(selectProps:SelectProps<T, Multi>) => {
|
|
87
|
+
export const Select = <T extends string | number = string, Multi extends boolean = false>(selectProps: SelectProps<T, Multi>) => {
|
|
86
88
|
const allProps = {
|
|
87
89
|
...defaultProps,
|
|
88
90
|
...selectProps,
|