@swan-io/lake 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/src/components/AutoWidthImage.d.ts +9 -0
- package/src/components/Form.d.ts +2 -0
- package/src/components/Heading.d.ts +4 -0
- package/src/components/LakeHeading.d.ts +4 -0
- package/src/components/LakeSelect.js +4 -2
- package/src/components/LakeTextInput.d.ts +5 -2
- package/src/components/Link.d.ts +4 -0
- package/src/components/Pressable.d.ts +9 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swan-io/lake",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.0.0",
|
|
6
6
|
"yarn": "^1.20.0"
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@popperjs/core": "^2.11.7",
|
|
30
30
|
"@swan-io/boxed": "^1.0.2",
|
|
31
|
-
"@swan-io/chicane": "^1.
|
|
31
|
+
"@swan-io/chicane": "^1.4.0",
|
|
32
32
|
"dayjs": "^1.11.7",
|
|
33
33
|
"polished": "^4.2.2",
|
|
34
|
-
"prism-react-renderer": "^
|
|
34
|
+
"prism-react-renderer": "^2.0.4",
|
|
35
35
|
"react": "^18.2.0",
|
|
36
36
|
"react-atomic-state": "^1.2.7",
|
|
37
37
|
"react-dom": "^18.2.0",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"uuid": "^9.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@types/react": "^18.2.
|
|
48
|
+
"@types/react": "^18.2.7",
|
|
49
49
|
"@types/react-dom": "^18.2.4",
|
|
50
|
-
"@types/react-native": "^0.
|
|
50
|
+
"@types/react-native": "^0.72.1",
|
|
51
51
|
"@types/uuid": "^9.0.1",
|
|
52
52
|
"jsdom": "^22.0.0",
|
|
53
|
-
"type-fest": "^3.
|
|
53
|
+
"type-fest": "^3.11.0"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -19,10 +19,17 @@ export declare const AutoWidthImage: import("react").MemoExoticComponent<import(
|
|
|
19
19
|
borderBottomRightRadius?: number | undefined;
|
|
20
20
|
resizeMode?: import("react-native").ImageResizeMode | undefined;
|
|
21
21
|
resizeMethod?: "auto" | "resize" | "scale" | undefined;
|
|
22
|
+
src?: string | undefined;
|
|
23
|
+
srcSet?: string | undefined;
|
|
22
24
|
loadingIndicatorSource?: import("react-native").ImageURISource | undefined;
|
|
23
25
|
testID?: string | undefined;
|
|
24
26
|
nativeID?: string | undefined;
|
|
25
27
|
alt?: string | undefined;
|
|
28
|
+
height?: number | undefined;
|
|
29
|
+
width?: number | undefined;
|
|
30
|
+
crossOrigin?: "anonymous" | "use-credentials" | undefined;
|
|
31
|
+
tintColor?: import("react-native").ColorValue | undefined;
|
|
32
|
+
referrerPolicy?: "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url" | undefined;
|
|
26
33
|
blurRadius?: number | undefined;
|
|
27
34
|
capInsets?: import("react-native").Insets | undefined;
|
|
28
35
|
onProgress?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").ImageProgressEventDataIOS>) => void) | undefined;
|
|
@@ -55,12 +62,14 @@ export declare const AutoWidthImage: import("react").MemoExoticComponent<import(
|
|
|
55
62
|
'aria-live'?: "polite" | "assertive" | "off" | undefined;
|
|
56
63
|
'aria-modal'?: boolean | undefined;
|
|
57
64
|
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
65
|
+
accessibilityLabelledBy?: string | string[] | undefined;
|
|
58
66
|
accessibilityElementsHidden?: boolean | undefined;
|
|
59
67
|
accessibilityViewIsModal?: boolean | undefined;
|
|
60
68
|
onAccessibilityEscape?: (() => void) | undefined;
|
|
61
69
|
onAccessibilityTap?: (() => void) | undefined;
|
|
62
70
|
onMagicTap?: (() => void) | undefined;
|
|
63
71
|
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
72
|
+
accessibilityLanguage?: string | undefined;
|
|
64
73
|
tabIndex?: 0 | -1 | undefined;
|
|
65
74
|
"aria-activedescendant"?: string | undefined;
|
|
66
75
|
"aria-atomic"?: boolean | undefined;
|
package/src/components/Form.d.ts
CHANGED
|
@@ -82,12 +82,14 @@ export declare const Form: import("react").MemoExoticComponent<import("react").F
|
|
|
82
82
|
'aria-live'?: "polite" | "assertive" | "off" | undefined;
|
|
83
83
|
'aria-modal'?: boolean | undefined;
|
|
84
84
|
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
85
|
+
accessibilityLabelledBy?: string | string[] | undefined;
|
|
85
86
|
accessibilityElementsHidden?: boolean | undefined;
|
|
86
87
|
accessibilityViewIsModal?: boolean | undefined;
|
|
87
88
|
onAccessibilityEscape?: (() => void) | undefined;
|
|
88
89
|
onAccessibilityTap?: (() => void) | undefined;
|
|
89
90
|
onMagicTap?: (() => void) | undefined;
|
|
90
91
|
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
92
|
+
accessibilityLanguage?: string | undefined;
|
|
91
93
|
tabIndex?: 0 | -1 | undefined;
|
|
92
94
|
"aria-activedescendant"?: string | undefined;
|
|
93
95
|
"aria-atomic"?: boolean | undefined;
|
|
@@ -72,8 +72,10 @@ export declare const Heading: import("react").ForwardRefExoticComponent<{
|
|
|
72
72
|
hrefAttrs?: import("react-native").HrefAttrs | undefined;
|
|
73
73
|
lang?: string | undefined;
|
|
74
74
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
75
|
+
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
75
76
|
minimumFontScale?: number | undefined;
|
|
76
77
|
suppressHighlighting?: boolean | undefined;
|
|
78
|
+
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
77
79
|
disabled?: boolean | undefined;
|
|
78
80
|
selectable?: boolean | undefined;
|
|
79
81
|
selectionColor?: import("react-native").ColorValue | undefined;
|
|
@@ -107,12 +109,14 @@ export declare const Heading: import("react").ForwardRefExoticComponent<{
|
|
|
107
109
|
'aria-live'?: "polite" | "assertive" | "off" | undefined;
|
|
108
110
|
'aria-modal'?: boolean | undefined;
|
|
109
111
|
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
112
|
+
accessibilityLabelledBy?: string | string[] | undefined;
|
|
110
113
|
accessibilityElementsHidden?: boolean | undefined;
|
|
111
114
|
accessibilityViewIsModal?: boolean | undefined;
|
|
112
115
|
onAccessibilityEscape?: (() => void) | undefined;
|
|
113
116
|
onAccessibilityTap?: (() => void) | undefined;
|
|
114
117
|
onMagicTap?: (() => void) | undefined;
|
|
115
118
|
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
119
|
+
accessibilityLanguage?: string | undefined;
|
|
116
120
|
tabIndex?: 0 | -1 | undefined;
|
|
117
121
|
"aria-activedescendant"?: string | undefined;
|
|
118
122
|
"aria-atomic"?: boolean | undefined;
|
|
@@ -21,8 +21,10 @@ export declare const LakeHeading: import("react").ForwardRefExoticComponent<{
|
|
|
21
21
|
hrefAttrs?: import("react-native").HrefAttrs | undefined;
|
|
22
22
|
lang?: string | undefined;
|
|
23
23
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
24
|
+
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
24
25
|
minimumFontScale?: number | undefined;
|
|
25
26
|
suppressHighlighting?: boolean | undefined;
|
|
27
|
+
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
26
28
|
disabled?: boolean | undefined;
|
|
27
29
|
selectable?: boolean | undefined;
|
|
28
30
|
selectionColor?: import("react-native").ColorValue | undefined;
|
|
@@ -56,12 +58,14 @@ export declare const LakeHeading: import("react").ForwardRefExoticComponent<{
|
|
|
56
58
|
'aria-live'?: "polite" | "assertive" | "off" | undefined;
|
|
57
59
|
'aria-modal'?: boolean | undefined;
|
|
58
60
|
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
61
|
+
accessibilityLabelledBy?: string | string[] | undefined;
|
|
59
62
|
accessibilityElementsHidden?: boolean | undefined;
|
|
60
63
|
accessibilityViewIsModal?: boolean | undefined;
|
|
61
64
|
onAccessibilityEscape?: (() => void) | undefined;
|
|
62
65
|
onAccessibilityTap?: (() => void) | undefined;
|
|
63
66
|
onMagicTap?: (() => void) | undefined;
|
|
64
67
|
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
68
|
+
accessibilityLanguage?: string | undefined;
|
|
65
69
|
tabIndex?: 0 | -1 | undefined;
|
|
66
70
|
"aria-activedescendant"?: string | undefined;
|
|
67
71
|
"aria-atomic"?: boolean | undefined;
|
|
@@ -109,12 +109,14 @@ export function LakeSelect({ title, items, valueStyle, size, color = "current",
|
|
|
109
109
|
const typingTimeoutRef = useRef(undefined);
|
|
110
110
|
const currentlyTypedRef = useRef(undefined);
|
|
111
111
|
const listItemRefs = useRef(Array(items.length));
|
|
112
|
-
const [visible, { close,
|
|
112
|
+
const [visible, { close, open }] = useDisclosure(false);
|
|
113
113
|
const hasValue = isNotNullish(value);
|
|
114
114
|
const isSmall = size === "small";
|
|
115
115
|
const itemValue = items.find(i => i.value === value);
|
|
116
116
|
const onKeyDown = useCallback((event) => {
|
|
117
|
+
// this made a search not visible for user as the native select component
|
|
117
118
|
if (event.nativeEvent.key.length === 1) {
|
|
119
|
+
event.nativeEvent.stopPropagation();
|
|
118
120
|
const currentlyTyped = `${currentlyTypedRef.current ?? ""}${event.nativeEvent.key.toLowerCase()}`;
|
|
119
121
|
currentlyTypedRef.current = currentlyTyped;
|
|
120
122
|
const selectedIndex = items.findIndex(item => item.name.toLowerCase().startsWith(currentlyTyped));
|
|
@@ -148,7 +150,7 @@ export function LakeSelect({ title, items, valueStyle, size, color = "current",
|
|
|
148
150
|
mode !== "borderless" && error != null && styles.errorContainer,
|
|
149
151
|
(disabled || readOnly) && mode === "borderless" && styles.inputBorderlessDisabled,
|
|
150
152
|
style,
|
|
151
|
-
], onPress:
|
|
153
|
+
], onPress: open, onKeyDown: onKeyDown, "aria-errormessage": error, children: ({ hovered }) => (_jsxs(_Fragment, { children: [mode === "normal" && _jsx(View, { style: [styles.shadowed, hovered && styles.hovered] }), _jsxs(Box, { direction: "row", justifyContent: "spaceBetween", alignItems: "center", children: [_jsxs(Box, { direction: "row", alignItems: "center", style: commonStyles.fill, children: [icon && (_jsxs(_Fragment, { children: [_jsx(Icon, { color: colors[color].primary, name: icon, size: isSmall ? 16 : 18 }), _jsx(Space, { width: 8 })] })), hasValue ? (_jsxs(Box, { direction: "row", alignItems: "center", style: commonStyles.fill, children: [isNotNullish(itemValue?.icon) && (_jsxs(_Fragment, { children: [itemValue?.icon, _jsx(Space, { width: 12 })] })), _jsx(LakeText, { color: colors.gray[900], variant: isSmall ? "smallRegular" : "regular", style: [styles.itemText, valueStyle], children: name })] })) : (_jsx(LakeText, { style: [
|
|
152
154
|
styles.itemText,
|
|
153
155
|
styles.selectPlaceholder,
|
|
154
156
|
isSmall && styles.selectSmallPlaceholder,
|
|
@@ -27,7 +27,6 @@ export type LakeTextInputProps = Except<TextInputProps, "editable" | "keyboardTy
|
|
|
27
27
|
export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
|
|
28
28
|
allowFontScaling?: boolean | undefined;
|
|
29
29
|
autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
|
|
30
|
-
autoComplete?: "off" | "name" | "email" | "tel" | "url" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel-country-code" | "tel-national" | "tel-device" | "username" | "username-new" | undefined;
|
|
31
30
|
autoCorrect?: boolean | undefined;
|
|
32
31
|
autoFocus?: boolean | undefined;
|
|
33
32
|
blurOnSubmit?: boolean | undefined;
|
|
@@ -68,6 +67,7 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
|
|
|
68
67
|
role?: import("react-native").WebRole | undefined;
|
|
69
68
|
lang?: string | undefined;
|
|
70
69
|
initialValue?: string | undefined;
|
|
70
|
+
autoComplete?: "off" | "name" | "email" | "tel" | "url" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday" | "bday-day" | "bday-month" | "bday-year" | "cc-additional-name" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "impp" | "language" | "new-password" | "nickname" | "on" | "one-time-code" | "organization" | "organization-title" | "postal-code" | "sex" | "street-address" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-national" | "transaction-amount" | "transaction-currency" | "username" | undefined;
|
|
71
71
|
enterKeyHint?: "enter" | "search" | "done" | "go" | "next" | "send" | "previous" | undefined;
|
|
72
72
|
rows?: number | undefined;
|
|
73
73
|
readOnly?: boolean | undefined;
|
|
@@ -150,12 +150,14 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
|
|
|
150
150
|
'aria-live'?: "polite" | "assertive" | "off" | undefined;
|
|
151
151
|
'aria-modal'?: boolean | undefined;
|
|
152
152
|
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
153
|
+
accessibilityLabelledBy?: string | string[] | undefined;
|
|
153
154
|
accessibilityElementsHidden?: boolean | undefined;
|
|
154
155
|
accessibilityViewIsModal?: boolean | undefined;
|
|
155
156
|
onAccessibilityEscape?: (() => void) | undefined;
|
|
156
157
|
onAccessibilityTap?: (() => void) | undefined;
|
|
157
158
|
onMagicTap?: (() => void) | undefined;
|
|
158
159
|
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
160
|
+
accessibilityLanguage?: string | undefined;
|
|
159
161
|
tabIndex?: 0 | -1 | undefined;
|
|
160
162
|
"aria-activedescendant"?: string | undefined;
|
|
161
163
|
"aria-atomic"?: boolean | undefined;
|
|
@@ -197,8 +199,9 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
|
|
|
197
199
|
rejectResponderTermination?: boolean | null | undefined;
|
|
198
200
|
selectionState?: import("react-native").DocumentSelectionState | undefined;
|
|
199
201
|
spellCheck?: boolean | undefined;
|
|
200
|
-
textContentType?: "none" | "location" | "name" | "nickname" | "
|
|
202
|
+
textContentType?: "none" | "location" | "name" | "nickname" | "username" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "password" | "newPassword" | "oneTimeCode" | undefined;
|
|
201
203
|
scrollEnabled?: boolean | undefined;
|
|
204
|
+
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
202
205
|
cursorColor?: import("react-native").ColorValue | null | undefined;
|
|
203
206
|
importantForAutofill?: "auto" | "yes" | "no" | "noExcludeDescendants" | "yesExcludeDescendants" | undefined;
|
|
204
207
|
disableFullscreenUI?: boolean | undefined;
|
package/src/components/Link.d.ts
CHANGED
|
@@ -31,8 +31,10 @@ export declare const Link: import("react").MemoExoticComponent<import("react").F
|
|
|
31
31
|
href?: string | undefined;
|
|
32
32
|
lang?: string | undefined;
|
|
33
33
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
34
|
+
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
34
35
|
minimumFontScale?: number | undefined;
|
|
35
36
|
suppressHighlighting?: boolean | undefined;
|
|
37
|
+
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
36
38
|
selectable?: boolean | undefined;
|
|
37
39
|
selectionColor?: import("react-native").ColorValue | undefined;
|
|
38
40
|
textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
|
|
@@ -65,12 +67,14 @@ export declare const Link: import("react").MemoExoticComponent<import("react").F
|
|
|
65
67
|
'aria-live'?: "polite" | "assertive" | "off" | undefined;
|
|
66
68
|
'aria-modal'?: boolean | undefined;
|
|
67
69
|
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
70
|
+
accessibilityLabelledBy?: string | string[] | undefined;
|
|
68
71
|
accessibilityElementsHidden?: boolean | undefined;
|
|
69
72
|
accessibilityViewIsModal?: boolean | undefined;
|
|
70
73
|
onAccessibilityEscape?: (() => void) | undefined;
|
|
71
74
|
onAccessibilityTap?: (() => void) | undefined;
|
|
72
75
|
onMagicTap?: (() => void) | undefined;
|
|
73
76
|
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
77
|
+
accessibilityLanguage?: string | undefined;
|
|
74
78
|
tabIndex?: 0 | -1 | undefined;
|
|
75
79
|
"aria-activedescendant"?: string | undefined;
|
|
76
80
|
"aria-atomic"?: boolean | undefined;
|
|
@@ -56,8 +56,10 @@ export declare const PressableText: FC<{
|
|
|
56
56
|
hrefAttrs?: import("react-native").HrefAttrs | undefined;
|
|
57
57
|
lang?: string | undefined;
|
|
58
58
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
59
|
+
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
59
60
|
minimumFontScale?: number | undefined;
|
|
60
61
|
suppressHighlighting?: boolean | undefined;
|
|
62
|
+
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
61
63
|
selectable?: boolean | undefined;
|
|
62
64
|
selectionColor?: import("react-native").ColorValue | undefined;
|
|
63
65
|
textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
|
|
@@ -90,12 +92,14 @@ export declare const PressableText: FC<{
|
|
|
90
92
|
'aria-live'?: "polite" | "assertive" | "off" | undefined;
|
|
91
93
|
'aria-modal'?: boolean | undefined;
|
|
92
94
|
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
95
|
+
accessibilityLabelledBy?: string | string[] | undefined;
|
|
93
96
|
accessibilityElementsHidden?: boolean | undefined;
|
|
94
97
|
accessibilityViewIsModal?: boolean | undefined;
|
|
95
98
|
onAccessibilityEscape?: (() => void) | undefined;
|
|
96
99
|
onAccessibilityTap?: (() => void) | undefined;
|
|
97
100
|
onMagicTap?: (() => void) | undefined;
|
|
98
101
|
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
102
|
+
accessibilityLanguage?: string | undefined;
|
|
99
103
|
tabIndex?: 0 | -1 | undefined;
|
|
100
104
|
"aria-activedescendant"?: string | undefined;
|
|
101
105
|
"aria-atomic"?: boolean | undefined;
|
|
@@ -154,7 +158,6 @@ export declare const PressableText: FC<{
|
|
|
154
158
|
export declare const PressableTextInput: FC<{
|
|
155
159
|
allowFontScaling?: boolean | undefined;
|
|
156
160
|
autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
|
|
157
|
-
autoComplete?: "off" | "name" | "email" | "tel" | "url" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel-country-code" | "tel-national" | "tel-device" | "username" | "username-new" | undefined;
|
|
158
161
|
autoCorrect?: boolean | undefined;
|
|
159
162
|
autoFocus?: boolean | undefined;
|
|
160
163
|
blurOnSubmit?: boolean | undefined;
|
|
@@ -191,6 +194,7 @@ export declare const PressableTextInput: FC<{
|
|
|
191
194
|
role?: import("react-native").WebRole | undefined;
|
|
192
195
|
lang?: string | undefined;
|
|
193
196
|
initialValue?: string | undefined;
|
|
197
|
+
autoComplete?: "off" | "name" | "email" | "tel" | "url" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday" | "bday-day" | "bday-month" | "bday-year" | "cc-additional-name" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "impp" | "language" | "new-password" | "nickname" | "on" | "one-time-code" | "organization" | "organization-title" | "postal-code" | "sex" | "street-address" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-national" | "transaction-amount" | "transaction-currency" | "username" | undefined;
|
|
194
198
|
enterKeyHint?: "enter" | "search" | "done" | "go" | "next" | "send" | "previous" | undefined;
|
|
195
199
|
rows?: number | undefined;
|
|
196
200
|
readOnly?: boolean | undefined;
|
|
@@ -270,12 +274,14 @@ export declare const PressableTextInput: FC<{
|
|
|
270
274
|
'aria-live'?: "polite" | "assertive" | "off" | undefined;
|
|
271
275
|
'aria-modal'?: boolean | undefined;
|
|
272
276
|
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
277
|
+
accessibilityLabelledBy?: string | string[] | undefined;
|
|
273
278
|
accessibilityElementsHidden?: boolean | undefined;
|
|
274
279
|
accessibilityViewIsModal?: boolean | undefined;
|
|
275
280
|
onAccessibilityEscape?: (() => void) | undefined;
|
|
276
281
|
onAccessibilityTap?: (() => void) | undefined;
|
|
277
282
|
onMagicTap?: (() => void) | undefined;
|
|
278
283
|
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
284
|
+
accessibilityLanguage?: string | undefined;
|
|
279
285
|
tabIndex?: 0 | -1 | undefined;
|
|
280
286
|
"aria-activedescendant"?: string | undefined;
|
|
281
287
|
"aria-atomic"?: boolean | undefined;
|
|
@@ -317,8 +323,9 @@ export declare const PressableTextInput: FC<{
|
|
|
317
323
|
rejectResponderTermination?: boolean | null | undefined;
|
|
318
324
|
selectionState?: import("react-native").DocumentSelectionState | undefined;
|
|
319
325
|
spellCheck?: boolean | undefined;
|
|
320
|
-
textContentType?: "none" | "location" | "name" | "nickname" | "
|
|
326
|
+
textContentType?: "none" | "location" | "name" | "nickname" | "username" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "password" | "newPassword" | "oneTimeCode" | undefined;
|
|
321
327
|
scrollEnabled?: boolean | undefined;
|
|
328
|
+
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
322
329
|
cursorColor?: import("react-native").ColorValue | null | undefined;
|
|
323
330
|
importantForAutofill?: "auto" | "yes" | "no" | "noExcludeDescendants" | "yesExcludeDescendants" | undefined;
|
|
324
331
|
disableFullscreenUI?: boolean | undefined;
|