@swan-io/lake 8.10.3 → 8.10.4
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 +10 -11
- package/src/components/AutoWidthImage.d.ts +16 -20
- package/src/components/Avatar.d.ts +0 -1
- package/src/components/Box.d.ts +6 -6
- package/src/components/Card3dPreview.d.ts +0 -1
- package/src/components/Form.d.ts +21 -24
- package/src/components/Icon.d.ts +0 -1
- package/src/components/LakeHeading.d.ts +42 -23
- package/src/components/LakeTagInput.d.ts +25 -29
- package/src/components/LakeText.d.ts +18 -19
- package/src/components/LakeTextInput.d.ts +46 -49
- package/src/components/LakeTooltip.d.ts +3 -2
- package/src/components/Link.d.ts +28 -32
- package/src/components/LoadingView.d.ts +0 -1
- package/src/components/MultiSelect.d.ts +0 -1
- package/src/components/PlainListView.js +1 -0
- package/src/components/Pressable.d.ts +5 -317
- package/src/components/ScrollView.d.ts +4 -5
- package/src/components/Stack.d.ts +8 -8
- package/src/components/Svg.d.ts +5 -5
- package/src/components/Switch.d.ts +0 -1
- package/src/hooks/useBoolean.d.ts +5 -8
- package/src/hooks/useDisclosure.d.ts +5 -8
- package/src/utils/__tests__/rifm.test.js +2 -1
- package/src/utils/function.d.ts +1 -1
- package/src/utils/nullish.d.ts +1 -1
|
@@ -64,8 +64,8 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
|
|
|
64
64
|
end?: number | undefined;
|
|
65
65
|
} | undefined;
|
|
66
66
|
selectionColor?: import("react-native").ColorValue | undefined;
|
|
67
|
-
style?: import("react-native").StyleProp<import("react-native").TextStyle
|
|
68
|
-
textAlign?: "left" | "
|
|
67
|
+
style?: import("react-native").StyleProp<import("react-native").TextStyle> | undefined;
|
|
68
|
+
textAlign?: "left" | "center" | "right" | undefined;
|
|
69
69
|
testID?: string | undefined;
|
|
70
70
|
inputAccessoryViewID?: string | undefined;
|
|
71
71
|
value?: string | undefined;
|
|
@@ -73,21 +73,21 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
|
|
|
73
73
|
role?: import("react-native").WebRole | undefined;
|
|
74
74
|
lang?: string | undefined;
|
|
75
75
|
initialValue?: string | undefined;
|
|
76
|
-
autoComplete?: "
|
|
77
|
-
enterKeyHint?: "enter" | "
|
|
76
|
+
autoComplete?: ("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" | "email" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "impp" | "language" | "name" | "new-password" | "nickname" | "off" | "on" | "one-time-code" | "organization" | "organization-title" | "postal-code" | "sex" | "street-address" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-national" | "transaction-amount" | "transaction-currency" | "url" | "username") | undefined;
|
|
77
|
+
enterKeyHint?: ("enter" | "done" | "go" | "next" | "previous" | "search" | "send") | undefined;
|
|
78
78
|
rows?: number | undefined;
|
|
79
79
|
readOnly?: boolean | undefined;
|
|
80
|
-
children?: ReactNode;
|
|
80
|
+
children?: ReactNode | undefined;
|
|
81
81
|
hitSlop?: import("react-native").Insets | undefined;
|
|
82
82
|
id?: string | undefined;
|
|
83
83
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
|
|
84
|
-
pointerEvents?: "
|
|
84
|
+
pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
|
|
85
85
|
removeClippedSubviews?: boolean | undefined;
|
|
86
86
|
nativeID?: string | undefined;
|
|
87
|
-
onKeyDown?: ((event: NativeSyntheticEvent<
|
|
88
|
-
onKeyDownCapture?: ((event: NativeSyntheticEvent<
|
|
89
|
-
onKeyUp?: ((event: NativeSyntheticEvent<
|
|
90
|
-
onKeyUpCapture?: ((event: NativeSyntheticEvent<
|
|
87
|
+
onKeyDown?: ((event: NativeSyntheticEvent<React.KeyboardEvent>) => void) | undefined;
|
|
88
|
+
onKeyDownCapture?: ((event: NativeSyntheticEvent<React.KeyboardEvent>) => void) | undefined;
|
|
89
|
+
onKeyUp?: ((event: NativeSyntheticEvent<React.KeyboardEvent>) => void) | undefined;
|
|
90
|
+
onKeyUpCapture?: ((event: NativeSyntheticEvent<React.KeyboardEvent>) => void) | undefined;
|
|
91
91
|
collapsable?: boolean | undefined;
|
|
92
92
|
needsOffscreenAlphaCompositing?: boolean | undefined;
|
|
93
93
|
renderToHardwareTextureAndroid?: boolean | undefined;
|
|
@@ -130,10 +130,7 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
|
|
|
130
130
|
onPointerUp?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
131
131
|
onPointerUpCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
132
132
|
accessible?: boolean | undefined;
|
|
133
|
-
accessibilityActions?: readonly
|
|
134
|
-
name: string;
|
|
135
|
-
label?: string | undefined;
|
|
136
|
-
}>[] | undefined;
|
|
133
|
+
accessibilityActions?: readonly import("react-native").AccessibilityActionInfo[] | undefined;
|
|
137
134
|
accessibilityLabel?: string | undefined;
|
|
138
135
|
"aria-label"?: string | undefined;
|
|
139
136
|
accessibilityRole?: import("react-native").AccessibilityRole | undefined;
|
|
@@ -146,14 +143,14 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
|
|
|
146
143
|
"aria-labelledby"?: string | undefined;
|
|
147
144
|
accessibilityHint?: string | undefined;
|
|
148
145
|
accessibilityValue?: import("react-native").AccessibilityValue | undefined;
|
|
149
|
-
"aria-valuemax"?:
|
|
150
|
-
"aria-valuemin"?:
|
|
151
|
-
"aria-valuenow"?:
|
|
152
|
-
"aria-valuetext"?:
|
|
146
|
+
"aria-valuemax"?: import("react-native").AccessibilityValue["max"] | undefined;
|
|
147
|
+
"aria-valuemin"?: import("react-native").AccessibilityValue["min"] | undefined;
|
|
148
|
+
"aria-valuenow"?: import("react-native").AccessibilityValue["now"] | undefined;
|
|
149
|
+
"aria-valuetext"?: import("react-native").AccessibilityValue["text"] | undefined;
|
|
153
150
|
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
|
|
154
|
-
importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
|
|
151
|
+
importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
|
|
155
152
|
"aria-hidden"?: boolean | undefined;
|
|
156
|
-
"aria-live"?: "polite" | "assertive" | "off" | undefined;
|
|
153
|
+
"aria-live"?: ("polite" | "assertive" | "off") | undefined;
|
|
157
154
|
"aria-modal"?: boolean | undefined;
|
|
158
155
|
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
159
156
|
accessibilityLabelledBy?: string | string[] | undefined;
|
|
@@ -164,7 +161,7 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
|
|
|
164
161
|
onMagicTap?: (() => void) | undefined;
|
|
165
162
|
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
166
163
|
accessibilityLanguage?: string | undefined;
|
|
167
|
-
tabIndex?: 0 | -1 | undefined;
|
|
164
|
+
tabIndex?: (0 | -1) | undefined;
|
|
168
165
|
"aria-activedescendant"?: string | undefined;
|
|
169
166
|
"aria-atomic"?: boolean | undefined;
|
|
170
167
|
"aria-autocomplete"?: string | undefined;
|
|
@@ -172,7 +169,7 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
|
|
|
172
169
|
"aria-colindex"?: number | undefined;
|
|
173
170
|
"aria-colspan"?: number | undefined;
|
|
174
171
|
"aria-controls"?: string | undefined;
|
|
175
|
-
"aria-current"?: boolean | "
|
|
172
|
+
"aria-current"?: (boolean | "page" | "step" | "location" | "date" | "time") | undefined;
|
|
176
173
|
"aria-describedby"?: string | undefined;
|
|
177
174
|
"aria-details"?: string | undefined;
|
|
178
175
|
"aria-errormessage"?: string | undefined;
|
|
@@ -183,7 +180,7 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
|
|
|
183
180
|
"aria-level"?: number | undefined;
|
|
184
181
|
"aria-multiline"?: boolean | undefined;
|
|
185
182
|
"aria-multiselectable"?: boolean | undefined;
|
|
186
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
183
|
+
"aria-orientation"?: ("horizontal" | "vertical") | undefined;
|
|
187
184
|
"aria-owns"?: string | undefined;
|
|
188
185
|
"aria-placeholder"?: string | undefined;
|
|
189
186
|
"aria-posinset"?: number | undefined;
|
|
@@ -195,7 +192,7 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
|
|
|
195
192
|
"aria-rowindex"?: number | undefined;
|
|
196
193
|
"aria-rowspan"?: number | undefined;
|
|
197
194
|
"aria-setsize"?: number | undefined;
|
|
198
|
-
"aria-sort"?: "
|
|
195
|
+
"aria-sort"?: ("ascending" | "descending" | "none" | "other") | undefined;
|
|
199
196
|
clearButtonMode?: "never" | "while-editing" | "unless-editing" | "always" | undefined;
|
|
200
197
|
clearTextOnFocus?: boolean | undefined;
|
|
201
198
|
dataDetectorTypes?: import("react-native").DataDetectorTypes | import("react-native").DataDetectorTypes[] | undefined;
|
|
@@ -205,11 +202,11 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
|
|
|
205
202
|
rejectResponderTermination?: boolean | null | undefined;
|
|
206
203
|
selectionState?: import("react-native").DocumentSelectionState | undefined;
|
|
207
204
|
spellCheck?: boolean | undefined;
|
|
208
|
-
textContentType?: "none" | "
|
|
205
|
+
textContentType?: "none" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "name" | "namePrefix" | "nameSuffix" | "nickname" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "username" | "password" | "newPassword" | "oneTimeCode" | undefined;
|
|
209
206
|
scrollEnabled?: boolean | undefined;
|
|
210
207
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
211
208
|
cursorColor?: import("react-native").ColorValue | null | undefined;
|
|
212
|
-
importantForAutofill?: "auto" | "
|
|
209
|
+
importantForAutofill?: "auto" | "no" | "noExcludeDescendants" | "yes" | "yesExcludeDescendants" | undefined;
|
|
213
210
|
disableFullscreenUI?: boolean | undefined;
|
|
214
211
|
inlineImageLeft?: string | undefined;
|
|
215
212
|
inlineImagePadding?: number | undefined;
|
|
@@ -217,33 +214,33 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
|
|
|
217
214
|
returnKeyLabel?: string | undefined;
|
|
218
215
|
textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
|
|
219
216
|
underlineColorAndroid?: import("react-native").ColorValue | undefined;
|
|
220
|
-
textAlignVertical?: "
|
|
217
|
+
textAlignVertical?: "auto" | "top" | "bottom" | "center" | undefined;
|
|
221
218
|
showSoftInputOnFocus?: boolean | undefined;
|
|
222
|
-
verticalAlign?: "
|
|
219
|
+
verticalAlign?: "auto" | "top" | "bottom" | "middle" | undefined;
|
|
223
220
|
} & {
|
|
224
|
-
ariaExpanded?: boolean
|
|
225
|
-
ariaControls?: string
|
|
226
|
-
error?: string
|
|
227
|
-
readOnly?: boolean
|
|
228
|
-
validating?: boolean
|
|
229
|
-
valid?: boolean
|
|
230
|
-
disabled?: boolean
|
|
231
|
-
color?:
|
|
232
|
-
multiline?: boolean
|
|
233
|
-
icon?:
|
|
234
|
-
unit?: string
|
|
235
|
-
units?: string[]
|
|
221
|
+
ariaExpanded?: boolean;
|
|
222
|
+
ariaControls?: string;
|
|
223
|
+
error?: string;
|
|
224
|
+
readOnly?: boolean;
|
|
225
|
+
validating?: boolean;
|
|
226
|
+
valid?: boolean;
|
|
227
|
+
disabled?: boolean;
|
|
228
|
+
color?: ColorVariants;
|
|
229
|
+
multiline?: boolean;
|
|
230
|
+
icon?: IconName;
|
|
231
|
+
unit?: string;
|
|
232
|
+
units?: string[];
|
|
236
233
|
inputMode?: TextInputProps["inputMode"];
|
|
237
|
-
pattern?: string
|
|
234
|
+
pattern?: string;
|
|
238
235
|
children?: ReactNode;
|
|
239
|
-
hideErrors?: boolean
|
|
236
|
+
hideErrors?: boolean;
|
|
240
237
|
style?: TextInputProps["style"];
|
|
241
238
|
containerStyle?: ViewProps["style"];
|
|
242
|
-
onChange?: ChangeEventHandler<HTMLInputElement
|
|
243
|
-
onUnitChange?: (
|
|
244
|
-
maxCharCount?: number
|
|
245
|
-
help?: string
|
|
246
|
-
warning?: boolean
|
|
247
|
-
renderEnd?: (
|
|
248
|
-
containerRef?: Ref<View
|
|
239
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
240
|
+
onUnitChange?: (value: string) => void;
|
|
241
|
+
maxCharCount?: number;
|
|
242
|
+
help?: string;
|
|
243
|
+
warning?: boolean;
|
|
244
|
+
renderEnd?: () => ReactNode;
|
|
245
|
+
containerRef?: Ref<View>;
|
|
249
246
|
} & import("react").RefAttributes<TextInput | null>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { ViewProps } from "react-native";
|
|
3
|
+
import { IconName } from "./Icon";
|
|
3
4
|
type Props = {
|
|
4
5
|
children: ReactNode;
|
|
5
6
|
content: ReactNode;
|
|
@@ -22,7 +23,7 @@ export type TooltipRef = {
|
|
|
22
23
|
export declare const LakeTooltip: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<TooltipRef>>;
|
|
23
24
|
export declare const InformationTooltip: import("react").ForwardRefExoticComponent<{
|
|
24
25
|
text: string;
|
|
25
|
-
icon?:
|
|
26
|
-
iconSize?: number
|
|
26
|
+
icon?: IconName;
|
|
27
|
+
iconSize?: number;
|
|
27
28
|
} & import("react").RefAttributes<TooltipRef>>;
|
|
28
29
|
export {};
|
package/src/components/Link.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { HrefAttrs, PressableStateCallbackType, Text, TextProps } from "react-native";
|
|
3
2
|
import { Except } from "type-fest";
|
|
4
3
|
import { PressableTextProps } from "./Pressable";
|
|
@@ -19,9 +18,9 @@ export type LinkProps = Except<PressableTextProps, "hrefAttrs" | "style" | "onPr
|
|
|
19
18
|
};
|
|
20
19
|
export declare const Link: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
21
20
|
allowFontScaling?: boolean | undefined;
|
|
22
|
-
ellipsizeMode?: "
|
|
21
|
+
ellipsizeMode?: "head" | "middle" | "tail" | "clip" | undefined;
|
|
23
22
|
id?: string | undefined;
|
|
24
|
-
lineBreakMode?: "
|
|
23
|
+
lineBreakMode?: "head" | "middle" | "tail" | "clip" | undefined;
|
|
25
24
|
numberOfLines?: number | undefined;
|
|
26
25
|
onTextLayout?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TextLayoutEventData>) => void) | undefined;
|
|
27
26
|
testID?: string | undefined;
|
|
@@ -31,20 +30,17 @@ export declare const Link: import("react").MemoExoticComponent<import("react").F
|
|
|
31
30
|
href?: string | undefined;
|
|
32
31
|
lang?: string | undefined;
|
|
33
32
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
34
|
-
dynamicTypeRamp?: "
|
|
33
|
+
dynamicTypeRamp?: "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "body" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
35
34
|
minimumFontScale?: number | undefined;
|
|
36
35
|
suppressHighlighting?: boolean | undefined;
|
|
37
36
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
38
37
|
selectable?: boolean | undefined;
|
|
39
38
|
selectionColor?: import("react-native").ColorValue | undefined;
|
|
40
39
|
textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
|
|
41
|
-
dataDetectorType?:
|
|
40
|
+
dataDetectorType?: null | "phoneNumber" | "link" | "email" | "none" | "all" | undefined;
|
|
42
41
|
android_hyphenationFrequency?: "normal" | "none" | "full" | undefined;
|
|
43
42
|
accessible?: boolean | undefined;
|
|
44
|
-
accessibilityActions?: readonly
|
|
45
|
-
name: string;
|
|
46
|
-
label?: string | undefined;
|
|
47
|
-
}>[] | undefined;
|
|
43
|
+
accessibilityActions?: readonly import("react-native").AccessibilityActionInfo[] | undefined;
|
|
48
44
|
accessibilityLabel?: string | undefined;
|
|
49
45
|
"aria-label"?: string | undefined;
|
|
50
46
|
accessibilityRole?: import("react-native").AccessibilityRole | undefined;
|
|
@@ -57,14 +53,14 @@ export declare const Link: import("react").MemoExoticComponent<import("react").F
|
|
|
57
53
|
"aria-labelledby"?: string | undefined;
|
|
58
54
|
accessibilityHint?: string | undefined;
|
|
59
55
|
accessibilityValue?: import("react-native").AccessibilityValue | undefined;
|
|
60
|
-
"aria-valuemax"?:
|
|
61
|
-
"aria-valuemin"?:
|
|
62
|
-
"aria-valuenow"?:
|
|
63
|
-
"aria-valuetext"?:
|
|
56
|
+
"aria-valuemax"?: import("react-native").AccessibilityValue["max"] | undefined;
|
|
57
|
+
"aria-valuemin"?: import("react-native").AccessibilityValue["min"] | undefined;
|
|
58
|
+
"aria-valuenow"?: import("react-native").AccessibilityValue["now"] | undefined;
|
|
59
|
+
"aria-valuetext"?: import("react-native").AccessibilityValue["text"] | undefined;
|
|
64
60
|
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
|
|
65
|
-
importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
|
|
61
|
+
importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
|
|
66
62
|
"aria-hidden"?: boolean | undefined;
|
|
67
|
-
"aria-live"?: "polite" | "assertive" | "off" | undefined;
|
|
63
|
+
"aria-live"?: ("polite" | "assertive" | "off") | undefined;
|
|
68
64
|
"aria-modal"?: boolean | undefined;
|
|
69
65
|
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
70
66
|
accessibilityLabelledBy?: string | string[] | undefined;
|
|
@@ -75,7 +71,7 @@ export declare const Link: import("react").MemoExoticComponent<import("react").F
|
|
|
75
71
|
onMagicTap?: (() => void) | undefined;
|
|
76
72
|
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
77
73
|
accessibilityLanguage?: string | undefined;
|
|
78
|
-
tabIndex?: 0 | -1 | undefined;
|
|
74
|
+
tabIndex?: (0 | -1) | undefined;
|
|
79
75
|
"aria-activedescendant"?: string | undefined;
|
|
80
76
|
"aria-atomic"?: boolean | undefined;
|
|
81
77
|
"aria-autocomplete"?: string | undefined;
|
|
@@ -83,7 +79,7 @@ export declare const Link: import("react").MemoExoticComponent<import("react").F
|
|
|
83
79
|
"aria-colindex"?: number | undefined;
|
|
84
80
|
"aria-colspan"?: number | undefined;
|
|
85
81
|
"aria-controls"?: string | undefined;
|
|
86
|
-
"aria-current"?: boolean | "
|
|
82
|
+
"aria-current"?: (boolean | "page" | "step" | "location" | "date" | "time") | undefined;
|
|
87
83
|
"aria-describedby"?: string | undefined;
|
|
88
84
|
"aria-details"?: string | undefined;
|
|
89
85
|
"aria-errormessage"?: string | undefined;
|
|
@@ -94,7 +90,7 @@ export declare const Link: import("react").MemoExoticComponent<import("react").F
|
|
|
94
90
|
"aria-level"?: number | undefined;
|
|
95
91
|
"aria-multiline"?: boolean | undefined;
|
|
96
92
|
"aria-multiselectable"?: boolean | undefined;
|
|
97
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
93
|
+
"aria-orientation"?: ("horizontal" | "vertical") | undefined;
|
|
98
94
|
"aria-owns"?: string | undefined;
|
|
99
95
|
"aria-placeholder"?: string | undefined;
|
|
100
96
|
"aria-posinset"?: number | undefined;
|
|
@@ -106,35 +102,35 @@ export declare const Link: import("react").MemoExoticComponent<import("react").F
|
|
|
106
102
|
"aria-rowindex"?: number | undefined;
|
|
107
103
|
"aria-rowspan"?: number | undefined;
|
|
108
104
|
"aria-setsize"?: number | undefined;
|
|
109
|
-
"aria-sort"?: "
|
|
105
|
+
"aria-sort"?: ("ascending" | "descending" | "none" | "other") | undefined;
|
|
110
106
|
delayLongPress?: number | undefined;
|
|
111
107
|
delayPressIn?: number | undefined;
|
|
112
108
|
delayPressOut?: number | undefined;
|
|
113
109
|
disabled?: boolean | undefined;
|
|
114
|
-
onBlur?: ((event: import("react-native").NativeSyntheticEvent<
|
|
115
|
-
onContextMenu?: ((event: import("react-native").NativeSyntheticEvent<
|
|
116
|
-
onFocus?: ((event: import("react-native").NativeSyntheticEvent<
|
|
110
|
+
onBlur?: ((event: import("react-native").NativeSyntheticEvent<React.FocusEvent>) => void) | undefined;
|
|
111
|
+
onContextMenu?: ((event: import("react-native").NativeSyntheticEvent<React.SyntheticEvent>) => void) | undefined;
|
|
112
|
+
onFocus?: ((event: import("react-native").NativeSyntheticEvent<React.FocusEvent>) => void) | undefined;
|
|
117
113
|
onHoverIn?: ((event: unknown) => void) | undefined;
|
|
118
114
|
onHoverOut?: ((event: unknown) => void) | undefined;
|
|
119
|
-
onKeyDown?: ((event: import("react-native").NativeSyntheticEvent<
|
|
115
|
+
onKeyDown?: ((event: import("react-native").NativeSyntheticEvent<React.KeyboardEvent>) => void) | undefined;
|
|
120
116
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
|
|
121
|
-
onLongPress?: (
|
|
122
|
-
onPressIn?: (
|
|
123
|
-
onPressMove?: (
|
|
124
|
-
onPressOut?: (
|
|
117
|
+
onLongPress?: import("../hooks/usePressEvents").PressResponderConfig["onLongPress"];
|
|
118
|
+
onPressIn?: import("../hooks/usePressEvents").PressResponderConfig["onPressStart"];
|
|
119
|
+
onPressMove?: import("../hooks/usePressEvents").PressResponderConfig["onPressMove"];
|
|
120
|
+
onPressOut?: import("../hooks/usePressEvents").PressResponderConfig["onPressEnd"];
|
|
125
121
|
testOnly_hovered?: boolean | undefined;
|
|
126
122
|
testOnly_pressed?: boolean | undefined;
|
|
127
123
|
} & {
|
|
128
124
|
to: string;
|
|
129
|
-
replace?: boolean
|
|
130
|
-
disabled?: boolean
|
|
131
|
-
download?: boolean
|
|
125
|
+
replace?: boolean;
|
|
126
|
+
disabled?: boolean;
|
|
127
|
+
download?: boolean;
|
|
132
128
|
target?: NonNullable<HrefAttrs>["target"];
|
|
133
129
|
style?: TextProps["style"] | ((state: PressableStateCallbackType & {
|
|
134
130
|
active: boolean;
|
|
135
131
|
}) => TextProps["style"]);
|
|
136
|
-
ariaCurrentValue?: "page" | "location"
|
|
137
|
-
onPress?: (
|
|
132
|
+
ariaCurrentValue?: "page" | "location";
|
|
133
|
+
onPress?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
138
134
|
children?: TextProps["children"] | ((state: PressableStateCallbackType & {
|
|
139
135
|
active: boolean;
|
|
140
136
|
}) => TextProps["children"]);
|
|
@@ -197,6 +197,7 @@ export const PlainListView = ({ data: originalData, keyExtractor, rowHeight, gro
|
|
|
197
197
|
large && styles.stickyHeaderLarge,
|
|
198
198
|
{
|
|
199
199
|
height: groupHeaderHeight,
|
|
200
|
+
paddingTop: groupHeaderHeight / 4,
|
|
200
201
|
top: stickyOffset + (large ? headerHeight : 0),
|
|
201
202
|
},
|
|
202
203
|
], children: _jsx(LakeHeading, { level: 3, variant: "h3", children: groupName }) })) : null, items.map((item, index) => {
|