@navegarti/rn-design-system 0.8.2 → 0.8.5
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/lib/module/components/Button/styles.js +4 -2
- package/lib/module/components/Button/types.js +4 -0
- package/lib/module/components/Checkbox/types.js +4 -0
- package/lib/module/components/FAB/types.js +4 -0
- package/lib/module/components/Flex/types.js +4 -0
- package/lib/module/components/FormLabel/types.js +4 -0
- package/lib/module/components/Input/styles.js +6 -3
- package/lib/module/components/Input/types.js +4 -0
- package/lib/module/components/Margin/styles.js +4 -6
- package/lib/module/components/Margin/types.js +2 -0
- package/lib/module/components/OTPInput/index.js +50 -67
- package/lib/module/components/OTPInput/types.js +4 -0
- package/lib/module/components/Padding/styles.js +4 -6
- package/lib/module/components/Padding/types.js +2 -0
- package/lib/module/components/Radio/types.js +4 -0
- package/lib/module/components/Select/types.js +4 -0
- package/lib/module/components/Skeleton/types.js +4 -0
- package/lib/module/components/Switch/types.js +4 -0
- package/lib/module/components/Text/styles.js +3 -1
- package/lib/module/components/Text/types.js +4 -0
- package/lib/typescript/src/components/Button/index.d.ts +3 -81
- package/lib/typescript/src/components/Button/styles.d.ts +2 -87
- package/lib/typescript/src/components/Button/types.d.ts +8 -0
- package/lib/typescript/src/components/Card/index.d.ts +55 -322
- package/lib/typescript/src/components/Card/styles.d.ts +55 -322
- package/lib/typescript/src/components/Carousel/index.d.ts +10 -17
- package/lib/typescript/src/components/Checkbox/index.d.ts +3 -8
- package/lib/typescript/src/components/Checkbox/styles.d.ts +9 -4
- package/lib/typescript/src/components/Checkbox/types.d.ts +8 -0
- package/lib/typescript/src/components/FAB/components/extended-fab.d.ts +1 -1
- package/lib/typescript/src/components/FAB/index.d.ts +3 -3
- package/lib/typescript/src/components/FAB/styles.d.ts +9 -103
- package/lib/typescript/src/components/FAB/types.d.ts +16 -0
- package/lib/typescript/src/components/Flex/index.d.ts +1 -0
- package/lib/typescript/src/components/Flex/styles.d.ts +10 -7
- package/lib/typescript/src/components/Flex/types.d.ts +3 -0
- package/lib/typescript/src/components/FormLabel/index.d.ts +3 -2
- package/lib/typescript/src/components/FormLabel/styles.d.ts +1 -79
- package/lib/typescript/src/components/FormLabel/types.d.ts +3 -0
- package/lib/typescript/src/components/Input/components/input-field.d.ts +2 -6
- package/lib/typescript/src/components/Input/components/input-root.d.ts +1 -7
- package/lib/typescript/src/components/Input/index.d.ts +3 -9
- package/lib/typescript/src/components/Input/styles.d.ts +29 -170
- package/lib/typescript/src/components/Input/types.d.ts +11 -0
- package/lib/typescript/src/components/Margin/index.d.ts +1 -0
- package/lib/typescript/src/components/Margin/styles.d.ts +11 -17
- package/lib/typescript/src/components/Margin/types.d.ts +12 -0
- package/lib/typescript/src/components/OTPInput/index.d.ts +3 -15
- package/lib/typescript/src/components/OTPInput/types.d.ts +12 -0
- package/lib/typescript/src/components/Padding/index.d.ts +1 -0
- package/lib/typescript/src/components/Padding/styles.d.ts +11 -17
- package/lib/typescript/src/components/Padding/types.d.ts +12 -0
- package/lib/typescript/src/components/Radio/components/radio-item.d.ts +1 -6
- package/lib/typescript/src/components/Radio/index.d.ts +3 -83
- package/lib/typescript/src/components/Radio/styles.d.ts +18 -8
- package/lib/typescript/src/components/Radio/types.d.ts +12 -0
- package/lib/typescript/src/components/Select/components/select-field.d.ts +2 -4
- package/lib/typescript/src/components/Select/index.d.ts +3 -6
- package/lib/typescript/src/components/Select/styles.d.ts +2 -158
- package/lib/typescript/src/components/Select/types.d.ts +7 -0
- package/lib/typescript/src/components/Skeleton/index.d.ts +2 -9
- package/lib/typescript/src/components/Skeleton/types.d.ts +9 -0
- package/lib/typescript/src/components/Switch/index.d.ts +2 -9
- package/lib/typescript/src/components/Switch/styles.d.ts +18 -8
- package/lib/typescript/src/components/Switch/types.d.ts +9 -0
- package/lib/typescript/src/components/Text/index.d.ts +1 -1
- package/lib/typescript/src/components/Text/styles.d.ts +2 -93
- package/lib/typescript/src/components/Text/types.d.ts +15 -0
- package/lib/typescript/src/components.d.ts +11 -0
- package/lib/typescript/src/index.d.ts +11 -0
- package/package.json +16 -38
- package/src/components/Button/index.tsx +3 -2
- package/src/components/Button/styles.ts +6 -10
- package/src/components/Button/types.ts +8 -0
- package/src/components/Checkbox/index.tsx +3 -8
- package/src/components/Checkbox/types.ts +8 -0
- package/src/components/FAB/components/extended-fab.tsx +2 -5
- package/src/components/FAB/index.tsx +3 -2
- package/src/components/FAB/styles.ts +2 -24
- package/src/components/FAB/types.ts +18 -0
- package/src/components/Flex/index.tsx +1 -0
- package/src/components/Flex/styles.ts +1 -15
- package/src/components/Flex/types.ts +16 -0
- package/src/components/FormLabel/index.tsx +4 -2
- package/src/components/FormLabel/types.ts +3 -0
- package/src/components/Input/components/input-field.tsx +2 -6
- package/src/components/Input/components/input-root.tsx +1 -7
- package/src/components/Input/index.tsx +2 -0
- package/src/components/Input/styles.ts +6 -3
- package/src/components/Input/types.ts +12 -0
- package/src/components/Margin/index.tsx +1 -0
- package/src/components/Margin/styles.ts +6 -18
- package/src/components/Margin/types.ts +11 -0
- package/src/components/OTPInput/index.tsx +54 -99
- package/src/components/OTPInput/types.ts +13 -0
- package/src/components/Padding/index.tsx +1 -0
- package/src/components/Padding/styles.ts +6 -18
- package/src/components/Padding/types.ts +11 -0
- package/src/components/Radio/components/radio-item.tsx +1 -7
- package/src/components/Radio/index.tsx +2 -8
- package/src/components/Radio/types.ts +14 -0
- package/src/components/Select/components/select-field.tsx +2 -4
- package/src/components/Select/index.tsx +2 -4
- package/src/components/Select/types.ts +8 -0
- package/src/components/Skeleton/index.tsx +6 -9
- package/src/components/Skeleton/types.ts +9 -0
- package/src/components/Switch/index.tsx +3 -9
- package/src/components/Switch/types.ts +10 -0
- package/src/components/Text/index.tsx +1 -1
- package/src/components/Text/styles.ts +3 -18
- package/src/components/Text/types.ts +16 -0
- package/src/components.tsx +11 -0
- package/src/index.tsx +11 -0
- package/lib/module/components/OTPInput/styles.js +0 -23
- package/lib/module/components/OTPInput/utils.js +0 -24
- package/lib/typescript/src/components/OTPInput/styles.d.ts +0 -214
- package/lib/typescript/src/components/OTPInput/utils.d.ts +0 -3
- package/src/components/OTPInput/styles.ts +0 -23
- package/src/components/OTPInput/utils.ts +0 -31
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { TouchableOpacityProps } from 'react-native';
|
|
3
|
+
|
|
4
|
+
export type SwitchProps = PropsWithChildren<{
|
|
5
|
+
value: boolean;
|
|
6
|
+
onValueChange: (value: boolean) => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
hasError?: boolean;
|
|
9
|
+
}> &
|
|
10
|
+
Omit<TouchableOpacityProps, 'onPress'>;
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
|
-
import type {
|
|
3
|
-
DimensionValue,
|
|
4
|
-
TextProps as RNTextProps,
|
|
5
|
-
TextProps,
|
|
6
|
-
} from 'react-native';
|
|
7
2
|
|
|
8
|
-
|
|
9
|
-
flex?: number;
|
|
10
|
-
weight?: 'light' | 'regular' | 'medium' | 'bold';
|
|
11
|
-
size?: number;
|
|
12
|
-
margin?: DimensionValue | string;
|
|
13
|
-
width?: string;
|
|
14
|
-
color?: string;
|
|
15
|
-
textAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
16
|
-
textTransform?: 'none' | 'uppercase' | 'capitalize' | 'lowercase';
|
|
17
|
-
textDecorationLine?: 'none' | 'underline' | 'line-through';
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export interface TextComponentProps extends RNTextProps, TextStyleProps {}
|
|
3
|
+
import type { TextStyleProps } from './types';
|
|
21
4
|
|
|
22
5
|
export const Text = styled.Text<TextStyleProps>(
|
|
23
6
|
({
|
|
@@ -30,9 +13,11 @@ export const Text = styled.Text<TextStyleProps>(
|
|
|
30
13
|
textTransform,
|
|
31
14
|
textDecorationLine,
|
|
32
15
|
margin,
|
|
16
|
+
fontFamily,
|
|
33
17
|
}) => ({
|
|
34
18
|
fontSize: size ? size : 14,
|
|
35
19
|
fontWeight: weight ?? 'semibold',
|
|
20
|
+
fontFamily,
|
|
36
21
|
color: color ?? '#333',
|
|
37
22
|
textAlign,
|
|
38
23
|
flex,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DimensionValue, TextProps } from 'react-native';
|
|
2
|
+
|
|
3
|
+
export type TextStyleProps = {
|
|
4
|
+
flex?: number;
|
|
5
|
+
weight?: 'light' | 'regular' | 'medium' | 'bold';
|
|
6
|
+
size?: number;
|
|
7
|
+
margin?: DimensionValue;
|
|
8
|
+
width?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
textAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
11
|
+
textTransform?: 'none' | 'uppercase' | 'capitalize' | 'lowercase';
|
|
12
|
+
textDecorationLine?: 'none' | 'underline' | 'line-through';
|
|
13
|
+
fontFamily?: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type TextComponentProps = TextStyleProps & TextProps;
|
package/src/components.tsx
CHANGED
|
@@ -10,19 +10,30 @@ export { Card } from './components/Card';
|
|
|
10
10
|
export type { CarouselRootProps } from './components/Carousel';
|
|
11
11
|
export { Carousel } from './components/Carousel';
|
|
12
12
|
|
|
13
|
+
export type { CheckboxProps } from './components/Checkbox';
|
|
13
14
|
export { Checkbox } from './components/Checkbox';
|
|
14
15
|
export type { ExtendedFABProps, FABProps } from './components/FAB';
|
|
15
16
|
export { FAB } from './components/FAB';
|
|
16
17
|
|
|
18
|
+
export type { FlexProps } from './components/Flex';
|
|
17
19
|
export { Flex } from './components/Flex';
|
|
20
|
+
export type { FormLabelProps } from './components/FormLabel';
|
|
18
21
|
export { FormLabel } from './components/FormLabel';
|
|
22
|
+
export type { InputFieldProps, InputRootProps } from './components/Input';
|
|
19
23
|
export { Input } from './components/Input';
|
|
24
|
+
export type { MarginProps } from './components/Margin';
|
|
20
25
|
export { Margin } from './components/Margin';
|
|
26
|
+
export type { OTPInputProps } from './components/OTPInput';
|
|
21
27
|
export { OTPInput } from './components/OTPInput';
|
|
28
|
+
export type { PaddingProps } from './components/Padding';
|
|
22
29
|
export { Padding } from './components/Padding';
|
|
30
|
+
export type { RadioGroupProps, RadioItemProps } from './components/Radio';
|
|
23
31
|
export { Radio } from './components/Radio';
|
|
32
|
+
export type { SelectFieldProps, SelectRootProps } from './components/Select';
|
|
24
33
|
export { Select } from './components/Select';
|
|
34
|
+
export type { SkeletonProps } from './components/Skeleton';
|
|
25
35
|
export { Skeleton } from './components/Skeleton';
|
|
36
|
+
export type { SwitchProps } from './components/Switch';
|
|
26
37
|
export { Switch } from './components/Switch';
|
|
27
38
|
export type { TextComponentProps, TextStyleProps } from './components/Text';
|
|
28
39
|
export { Text } from './components/Text';
|
package/src/index.tsx
CHANGED
|
@@ -32,19 +32,30 @@ export { Card } from './components/Card';
|
|
|
32
32
|
export type { CarouselRootProps } from './components/Carousel';
|
|
33
33
|
export { Carousel } from './components/Carousel';
|
|
34
34
|
|
|
35
|
+
export type { CheckboxProps } from './components/Checkbox';
|
|
35
36
|
export { Checkbox } from './components/Checkbox';
|
|
36
37
|
export type { ExtendedFABProps, FABProps } from './components/FAB';
|
|
37
38
|
export { FAB } from './components/FAB';
|
|
38
39
|
|
|
40
|
+
export type { FlexProps } from './components/Flex';
|
|
39
41
|
export { Flex } from './components/Flex';
|
|
42
|
+
export type { FormLabelProps } from './components/FormLabel';
|
|
40
43
|
export { FormLabel } from './components/FormLabel';
|
|
44
|
+
export type { InputFieldProps, InputRootProps } from './components/Input';
|
|
41
45
|
export { Input } from './components/Input';
|
|
46
|
+
export type { MarginProps } from './components/Margin';
|
|
42
47
|
export { Margin } from './components/Margin';
|
|
48
|
+
export type { OTPInputProps } from './components/OTPInput';
|
|
43
49
|
export { OTPInput } from './components/OTPInput';
|
|
50
|
+
export type { PaddingProps } from './components/Padding';
|
|
44
51
|
export { Padding } from './components/Padding';
|
|
52
|
+
export type { RadioGroupProps, RadioItemProps } from './components/Radio';
|
|
45
53
|
export { Radio } from './components/Radio';
|
|
54
|
+
export type { SelectFieldProps, SelectRootProps } from './components/Select';
|
|
46
55
|
export { Select } from './components/Select';
|
|
56
|
+
export type { SkeletonProps } from './components/Skeleton';
|
|
47
57
|
export { Skeleton } from './components/Skeleton';
|
|
58
|
+
export type { SwitchProps } from './components/Switch';
|
|
48
59
|
export { Switch } from './components/Switch';
|
|
49
60
|
export type { TextComponentProps, TextStyleProps } from './components/Text';
|
|
50
61
|
export { Text } from './components/Text';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import styled from '@emotion/native';
|
|
4
|
-
import { getInputBorderColor, getInputShadow } from "./utils.js";
|
|
5
|
-
export const InputBox = styled.TextInput(({
|
|
6
|
-
isFocused,
|
|
7
|
-
hasError,
|
|
8
|
-
disabled,
|
|
9
|
-
hasValue
|
|
10
|
-
}) => ({
|
|
11
|
-
width: 48,
|
|
12
|
-
height: 56,
|
|
13
|
-
borderWidth: isFocused || hasError ? 1.5 : 1,
|
|
14
|
-
borderColor: getInputBorderColor(!!hasError, isFocused, hasValue),
|
|
15
|
-
borderRadius: 8,
|
|
16
|
-
textAlign: 'center',
|
|
17
|
-
fontSize: 24,
|
|
18
|
-
fontWeight: '600',
|
|
19
|
-
color: disabled ? '#888' : '#000',
|
|
20
|
-
backgroundColor: disabled ? '#f2f2f2' : '#fff',
|
|
21
|
-
boxShadow: getInputShadow(!!hasError, isFocused)
|
|
22
|
-
}));
|
|
23
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
export const getInputBorderColor = (hasError, isFocused, hasValue) => {
|
|
4
|
-
if (hasError) {
|
|
5
|
-
return '#d13033';
|
|
6
|
-
}
|
|
7
|
-
if (isFocused) {
|
|
8
|
-
return 'rgb(0, 140, 255)';
|
|
9
|
-
}
|
|
10
|
-
if (hasValue) {
|
|
11
|
-
return '#666';
|
|
12
|
-
}
|
|
13
|
-
return '#ccc';
|
|
14
|
-
};
|
|
15
|
-
export const getInputShadow = (hasError, isFocused) => {
|
|
16
|
-
if (hasError) {
|
|
17
|
-
return '0px 0px 3px 0px rgba(255,0,0,0.5)';
|
|
18
|
-
}
|
|
19
|
-
if (isFocused) {
|
|
20
|
-
return '0px 0px 3px 0px rgba(0,4,255,0.5)';
|
|
21
|
-
}
|
|
22
|
-
return 'none';
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
export declare const InputBox: import("@emotion/native").StyledComponent<Omit<Readonly<Omit<Omit<Readonly<Omit<Readonly<{
|
|
2
|
-
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => unknown) | undefined;
|
|
3
|
-
onAccessibilityTap?: (() => unknown) | undefined;
|
|
4
|
-
onLayout?: ((event: import("react-native").LayoutChangeEvent) => unknown) | undefined;
|
|
5
|
-
onMagicTap?: (() => unknown) | undefined;
|
|
6
|
-
onAccessibilityEscape?: (() => unknown) | undefined;
|
|
7
|
-
}>, "children" | "id" | "nativeID" | "onResponderGrant" | "onResponderMove" | "onResponderRelease" | "onResponderTerminate" | "onResponderTerminationRequest" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "role" | "style" | "testID" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "pointerEvents" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "hitSlop" | "onBlur" | "onFocus" | "onMoveShouldSetResponderCapture" | "onResponderReject" | "onResponderStart" | "onResponderEnd" | "onStartShouldSetResponderCapture" | "onMouseEnter" | "onMouseLeave" | "onClick" | "onClickCapture" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlurCapture" | "onFocusCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "tabIndex" | "shouldRasterizeIOS" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
8
|
-
onMoveShouldSetResponder?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
9
|
-
onMoveShouldSetResponderCapture?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
10
|
-
onResponderGrant?: ((e: import("react-native").GestureResponderEvent) => void | boolean) | undefined;
|
|
11
|
-
onResponderMove?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
12
|
-
onResponderReject?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
13
|
-
onResponderRelease?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
14
|
-
onResponderStart?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
15
|
-
onResponderEnd?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
16
|
-
onResponderTerminate?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
17
|
-
onResponderTerminationRequest?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
18
|
-
onStartShouldSetResponder?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
19
|
-
onStartShouldSetResponderCapture?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
20
|
-
}>, "children" | "id" | "nativeID" | "role" | "style" | "testID" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "pointerEvents" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "hitSlop" | "onBlur" | "onFocus" | "onMouseEnter" | "onMouseLeave" | "onClick" | "onClickCapture" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlurCapture" | "onFocusCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "tabIndex" | "shouldRasterizeIOS" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
21
|
-
onMouseEnter?: ((event: import("react-native").MouseEvent) => void) | undefined;
|
|
22
|
-
onMouseLeave?: ((event: import("react-native").MouseEvent) => void) | undefined;
|
|
23
|
-
}>, "children" | "id" | "nativeID" | "role" | "style" | "testID" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "pointerEvents" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "hitSlop" | "onBlur" | "onFocus" | "onClick" | "onClickCapture" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlurCapture" | "onFocusCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "tabIndex" | "shouldRasterizeIOS" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
24
|
-
onClick?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
25
|
-
onClickCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
26
|
-
onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
27
|
-
onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
28
|
-
onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
29
|
-
onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
30
|
-
onPointerMove?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
31
|
-
onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
32
|
-
onPointerCancel?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
33
|
-
onPointerCancelCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
34
|
-
onPointerDown?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
35
|
-
onPointerDownCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
36
|
-
onPointerUp?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
37
|
-
onPointerUpCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
38
|
-
onPointerOver?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
39
|
-
onPointerOverCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
40
|
-
onPointerOut?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
41
|
-
onPointerOutCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
42
|
-
onGotPointerCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
43
|
-
onGotPointerCaptureCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
44
|
-
onLostPointerCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
45
|
-
onLostPointerCaptureCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
46
|
-
}>, "children" | "id" | "nativeID" | "role" | "style" | "testID" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "pointerEvents" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "hitSlop" | "onBlur" | "onFocus" | "onClick" | "onBlurCapture" | "onFocusCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "tabIndex" | "shouldRasterizeIOS" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
47
|
-
onBlur?: ((event: import("react-native").BlurEvent) => void) | undefined;
|
|
48
|
-
onBlurCapture?: ((event: import("react-native").BlurEvent) => void) | undefined;
|
|
49
|
-
onFocus?: ((event: import("react-native").FocusEvent) => void) | undefined;
|
|
50
|
-
onFocusCapture?: ((event: import("react-native").FocusEvent) => void) | undefined;
|
|
51
|
-
}>, "children" | "id" | "nativeID" | "role" | "style" | "testID" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "pointerEvents" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "hitSlop" | "onClick" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "tabIndex" | "shouldRasterizeIOS" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
52
|
-
onTouchCancel?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
53
|
-
onTouchCancelCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
54
|
-
onTouchEnd?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
55
|
-
onTouchEndCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
56
|
-
onTouchMove?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
57
|
-
onTouchMoveCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
58
|
-
onTouchStart?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
59
|
-
onTouchStartCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
60
|
-
}>, "children" | "id" | "nativeID" | "role" | "style" | "testID" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "pointerEvents" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "hitSlop" | "onClick" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "tabIndex" | "shouldRasterizeIOS" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
61
|
-
nativeBackgroundAndroid?: import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").AndroidDrawable | undefined;
|
|
62
|
-
nativeForegroundAndroid?: import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").AndroidDrawable | undefined;
|
|
63
|
-
renderToHardwareTextureAndroid?: boolean | undefined;
|
|
64
|
-
hasTVPreferredFocus?: boolean | undefined;
|
|
65
|
-
nextFocusDown?: number | undefined;
|
|
66
|
-
nextFocusForward?: number | undefined;
|
|
67
|
-
nextFocusLeft?: number | undefined;
|
|
68
|
-
nextFocusRight?: number | undefined;
|
|
69
|
-
nextFocusUp?: number | undefined;
|
|
70
|
-
focusable?: boolean | undefined;
|
|
71
|
-
tabIndex?: 0 | -1;
|
|
72
|
-
onClick?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
73
|
-
}>, "children" | "id" | "nativeID" | "role" | "style" | "testID" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "pointerEvents" | "hitSlop" | "shouldRasterizeIOS" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
74
|
-
shouldRasterizeIOS?: boolean | undefined;
|
|
75
|
-
}>, "children" | "id" | "nativeID" | "role" | "style" | "testID" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "pointerEvents" | "hitSlop" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<Omit<Readonly<{
|
|
76
|
-
accessibilityLabelledBy?: (string | undefined) | (Array<string> | undefined);
|
|
77
|
-
"aria-labelledby"?: string | undefined;
|
|
78
|
-
accessibilityLiveRegion?: ("none" | "polite" | "assertive") | undefined;
|
|
79
|
-
"aria-live"?: ("polite" | "assertive" | "off") | undefined;
|
|
80
|
-
importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
|
|
81
|
-
screenReaderFocusable?: boolean;
|
|
82
|
-
}>, "role" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden"> & Omit<Readonly<{
|
|
83
|
-
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
84
|
-
accessibilityViewIsModal?: boolean | undefined;
|
|
85
|
-
accessibilityShowsLargeContentViewer?: boolean | undefined;
|
|
86
|
-
accessibilityLargeContentTitle?: string | undefined;
|
|
87
|
-
"aria-modal"?: boolean | undefined;
|
|
88
|
-
accessibilityElementsHidden?: boolean | undefined;
|
|
89
|
-
accessibilityLanguage?: string | undefined;
|
|
90
|
-
accessibilityRespondsToUserInteraction?: boolean | undefined;
|
|
91
|
-
}>, "role" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden"> & {
|
|
92
|
-
accessible?: boolean | undefined;
|
|
93
|
-
accessibilityLabel?: string | undefined;
|
|
94
|
-
accessibilityHint?: string | undefined;
|
|
95
|
-
"aria-label"?: string | undefined;
|
|
96
|
-
accessibilityRole?: import("react-native").AccessibilityRole | undefined;
|
|
97
|
-
role?: import("react-native").Role | undefined;
|
|
98
|
-
accessibilityState?: import("react-native").AccessibilityState | undefined;
|
|
99
|
-
accessibilityValue?: import("react-native").AccessibilityValue | undefined;
|
|
100
|
-
"aria-valuemax"?: import("react-native").AccessibilityValue["max"] | undefined;
|
|
101
|
-
"aria-valuemin"?: import("react-native").AccessibilityValue["min"] | undefined;
|
|
102
|
-
"aria-valuenow"?: import("react-native").AccessibilityValue["now"] | undefined;
|
|
103
|
-
"aria-valuetext"?: import("react-native").AccessibilityValue["text"] | undefined;
|
|
104
|
-
accessibilityActions?: ReadonlyArray<import("react-native/types_generated/Libraries/Components/View/ViewAccessibility").AccessibilityActionInfo> | undefined;
|
|
105
|
-
"aria-busy"?: boolean | undefined;
|
|
106
|
-
"aria-checked"?: (boolean | undefined) | "mixed";
|
|
107
|
-
"aria-disabled"?: boolean | undefined;
|
|
108
|
-
"aria-expanded"?: boolean | undefined;
|
|
109
|
-
"aria-selected"?: boolean | undefined;
|
|
110
|
-
"aria-hidden"?: boolean | undefined;
|
|
111
|
-
}>, "children" | "id" | "nativeID" | "style" | "testID" | "pointerEvents" | "hitSlop" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
112
|
-
children?: React.ReactNode;
|
|
113
|
-
style?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheet").ViewStyleProp | undefined;
|
|
114
|
-
collapsable?: boolean | undefined;
|
|
115
|
-
collapsableChildren?: boolean | undefined;
|
|
116
|
-
id?: string;
|
|
117
|
-
testID?: string | undefined;
|
|
118
|
-
nativeID?: string | undefined;
|
|
119
|
-
needsOffscreenAlphaCompositing?: boolean | undefined;
|
|
120
|
-
hitSlop?: import("react-native/types_generated/Libraries/StyleSheet/EdgeInsetsPropType").EdgeInsetsOrSizeProp | undefined;
|
|
121
|
-
pointerEvents?: ("auto" | "box-none" | "box-only" | "none") | undefined;
|
|
122
|
-
removeClippedSubviews?: boolean | undefined;
|
|
123
|
-
experimental_accessibilityOrder?: Array<string> | undefined;
|
|
124
|
-
}>, never>>, "style" | "experimental_accessibilityOrder">, "lineBreakStrategyIOS" | "selectionColor" | "textBreakStrategy" | "allowFontScaling" | "maxFontSizeMultiplier" | "numberOfLines" | "onPress" | "onPressIn" | "onPressOut" | "style" | "textAlign" | "onBlur" | "onFocus" | "rejectResponderTermination" | "onScroll" | "onContentSizeChange" | "scrollEnabled" | "rows" | "value" | "onChange" | "disableKeyboardShortcuts" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "inputAccessoryViewID" | "inputAccessoryViewButtonLabel" | "keyboardAppearance" | "passwordRules" | "spellCheck" | "textContentType" | "lineBreakModeIOS" | "smartInsertDelete" | "cursorColor" | "selectionHandleColor" | "disableFullscreenUI" | "importantForAutofill" | "inlineImageLeft" | "inlineImagePadding" | "returnKeyLabel" | "showSoftInputOnFocus" | "underlineColorAndroid" | "experimental_acceptDragAndDropTypes" | "autoCapitalize" | "autoComplete" | "autoCorrect" | "autoFocus" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "forwardedRef" | "enterKeyHint" | "inputMode" | "keyboardType" | "maxLength" | "multiline" | "onChangeText" | "onEndEditing" | "onKeyPress" | "onSelectionChange" | "onSubmitEditing" | "placeholder" | "placeholderTextColor" | "readOnly" | "returnKeyType" | "secureTextEntry" | "selection" | "selectTextOnFocus" | "blurOnSubmit" | "submitBehavior"> & Omit<Readonly<{
|
|
125
|
-
disableKeyboardShortcuts?: boolean | undefined;
|
|
126
|
-
clearButtonMode?: ("never" | "while-editing" | "unless-editing" | "always") | undefined;
|
|
127
|
-
clearTextOnFocus?: boolean | undefined;
|
|
128
|
-
dataDetectorTypes?: (import("react-native/types_generated/Libraries/Components/TextInput/TextInput.flow").DataDetectorTypesType | undefined) | ReadonlyArray<import("react-native/types_generated/Libraries/Components/TextInput/TextInput.flow").DataDetectorTypesType>;
|
|
129
|
-
enablesReturnKeyAutomatically?: boolean | undefined;
|
|
130
|
-
inputAccessoryViewID?: string | undefined;
|
|
131
|
-
inputAccessoryViewButtonLabel?: string | undefined;
|
|
132
|
-
keyboardAppearance?: ("default" | "light" | "dark") | undefined;
|
|
133
|
-
passwordRules?: import("react-native/types_generated/Libraries/Components/TextInput/TextInput.flow").PasswordRules | undefined;
|
|
134
|
-
rejectResponderTermination?: boolean | undefined;
|
|
135
|
-
scrollEnabled?: boolean | undefined;
|
|
136
|
-
spellCheck?: boolean | undefined;
|
|
137
|
-
textContentType?: import("react-native").TextContentType | undefined;
|
|
138
|
-
lineBreakStrategyIOS?: ("none" | "standard" | "hangul-word" | "push-out") | undefined;
|
|
139
|
-
lineBreakModeIOS?: ("wordWrapping" | "char" | "clip" | "head" | "middle" | "tail") | undefined;
|
|
140
|
-
smartInsertDelete?: boolean | undefined;
|
|
141
|
-
}>, "selectionColor" | "textBreakStrategy" | "allowFontScaling" | "maxFontSizeMultiplier" | "numberOfLines" | "onPress" | "onPressIn" | "onPressOut" | "style" | "textAlign" | "onBlur" | "onFocus" | "onScroll" | "onContentSizeChange" | "rows" | "value" | "onChange" | "cursorColor" | "selectionHandleColor" | "disableFullscreenUI" | "importantForAutofill" | "inlineImageLeft" | "inlineImagePadding" | "returnKeyLabel" | "showSoftInputOnFocus" | "underlineColorAndroid" | "experimental_acceptDragAndDropTypes" | "autoCapitalize" | "autoComplete" | "autoCorrect" | "autoFocus" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "forwardedRef" | "enterKeyHint" | "inputMode" | "keyboardType" | "maxLength" | "multiline" | "onChangeText" | "onEndEditing" | "onKeyPress" | "onSelectionChange" | "onSubmitEditing" | "placeholder" | "placeholderTextColor" | "readOnly" | "returnKeyType" | "secureTextEntry" | "selection" | "selectTextOnFocus" | "blurOnSubmit" | "submitBehavior"> & Omit<Readonly<{
|
|
142
|
-
cursorColor?: import("react-native").ColorValue | undefined;
|
|
143
|
-
selectionHandleColor?: import("react-native").ColorValue | undefined;
|
|
144
|
-
disableFullscreenUI?: boolean | undefined;
|
|
145
|
-
importantForAutofill?: ("auto" | "no" | "noExcludeDescendants" | "yes" | "yesExcludeDescendants") | undefined;
|
|
146
|
-
inlineImageLeft?: string | undefined;
|
|
147
|
-
inlineImagePadding?: number | undefined;
|
|
148
|
-
numberOfLines?: number | undefined;
|
|
149
|
-
returnKeyLabel?: string | undefined;
|
|
150
|
-
rows?: number | undefined;
|
|
151
|
-
showSoftInputOnFocus?: boolean | undefined;
|
|
152
|
-
textBreakStrategy?: ("simple" | "highQuality" | "balanced") | undefined;
|
|
153
|
-
underlineColorAndroid?: import("react-native").ColorValue | undefined;
|
|
154
|
-
}>, "selectionColor" | "allowFontScaling" | "maxFontSizeMultiplier" | "onPress" | "onPressIn" | "onPressOut" | "style" | "textAlign" | "onBlur" | "onFocus" | "onScroll" | "onContentSizeChange" | "value" | "onChange" | "experimental_acceptDragAndDropTypes" | "autoCapitalize" | "autoComplete" | "autoCorrect" | "autoFocus" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "forwardedRef" | "enterKeyHint" | "inputMode" | "keyboardType" | "maxLength" | "multiline" | "onChangeText" | "onEndEditing" | "onKeyPress" | "onSelectionChange" | "onSubmitEditing" | "placeholder" | "placeholderTextColor" | "readOnly" | "returnKeyType" | "secureTextEntry" | "selection" | "selectTextOnFocus" | "blurOnSubmit" | "submitBehavior"> & Omit<Readonly<{
|
|
155
|
-
experimental_acceptDragAndDropTypes?: ReadonlyArray<string> | undefined;
|
|
156
|
-
autoCapitalize?: import("react-native").AutoCapitalize | undefined;
|
|
157
|
-
autoComplete?: ("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" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "email" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name" | "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" | "tel-country-code" | "tel-national" | "tel-device" | "url" | "username" | "username-new" | "off") | undefined;
|
|
158
|
-
autoCorrect?: boolean | undefined;
|
|
159
|
-
autoFocus?: boolean | undefined;
|
|
160
|
-
allowFontScaling?: boolean | undefined;
|
|
161
|
-
caretHidden?: boolean | undefined;
|
|
162
|
-
contextMenuHidden?: boolean | undefined;
|
|
163
|
-
defaultValue?: string | undefined;
|
|
164
|
-
editable?: boolean | undefined;
|
|
165
|
-
forwardedRef?: React.Ref<import("react-native/types_generated/Libraries/Components/TextInput/TextInput.flow").TextInputInstance> | undefined;
|
|
166
|
-
enterKeyHint?: import("react-native").EnterKeyHintTypeOptions | undefined;
|
|
167
|
-
inputMode?: import("react-native").InputModeOptions | undefined;
|
|
168
|
-
keyboardType?: import("react-native").KeyboardTypeOptions | undefined;
|
|
169
|
-
maxFontSizeMultiplier?: number | undefined;
|
|
170
|
-
maxLength?: number | undefined;
|
|
171
|
-
multiline?: boolean | undefined;
|
|
172
|
-
onBlur?: ((e: import("react-native/types_generated/Libraries/Components/TextInput/TextInput.flow").TextInputBlurEvent) => unknown) | undefined;
|
|
173
|
-
onChange?: ((e: import("react-native").TextInputChangeEvent) => unknown) | undefined;
|
|
174
|
-
onChangeText?: ((text: string) => unknown) | undefined;
|
|
175
|
-
onContentSizeChange?: ((e: import("react-native").TextInputContentSizeChangeEvent) => unknown) | undefined;
|
|
176
|
-
onEndEditing?: ((e: import("react-native").TextInputEndEditingEvent) => unknown) | undefined;
|
|
177
|
-
onFocus?: ((e: import("react-native").TextInputFocusEvent) => unknown) | undefined;
|
|
178
|
-
onKeyPress?: ((e: import("react-native").TextInputKeyPressEvent) => unknown) | undefined;
|
|
179
|
-
onPress?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
180
|
-
onPressIn?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
181
|
-
onPressOut?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
182
|
-
onSelectionChange?: ((e: import("react-native").TextInputSelectionChangeEvent) => unknown) | undefined;
|
|
183
|
-
onSubmitEditing?: ((e: import("react-native").TextInputSubmitEditingEvent) => unknown) | undefined;
|
|
184
|
-
onScroll?: ((e: import("react-native").ScrollEvent) => unknown) | undefined;
|
|
185
|
-
placeholder?: string | undefined;
|
|
186
|
-
placeholderTextColor?: import("react-native").ColorValue | undefined;
|
|
187
|
-
readOnly?: boolean | undefined;
|
|
188
|
-
returnKeyType?: import("react-native").ReturnKeyTypeOptions | undefined;
|
|
189
|
-
secureTextEntry?: boolean | undefined;
|
|
190
|
-
selection?: Readonly<{
|
|
191
|
-
start: number;
|
|
192
|
-
end?: number | undefined;
|
|
193
|
-
}> | undefined;
|
|
194
|
-
selectionColor?: import("react-native").ColorValue | undefined;
|
|
195
|
-
selectTextOnFocus?: boolean | undefined;
|
|
196
|
-
blurOnSubmit?: boolean | undefined;
|
|
197
|
-
submitBehavior?: import("react-native").SubmitBehavior | undefined;
|
|
198
|
-
style?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheet").TextStyleProp | undefined;
|
|
199
|
-
value?: string | undefined;
|
|
200
|
-
textAlign?: ("left" | "center" | "right") | undefined;
|
|
201
|
-
}>, never>>, "ref"> & {
|
|
202
|
-
ref?: React.Ref<import("react-native/types_generated/Libraries/Components/TextInput/TextInput.flow").TextInputInstance>;
|
|
203
|
-
} & {
|
|
204
|
-
theme?: import("@emotion/react").Theme;
|
|
205
|
-
as?: React.ElementType;
|
|
206
|
-
} & {
|
|
207
|
-
isFocused: boolean;
|
|
208
|
-
hasError?: boolean;
|
|
209
|
-
disabled?: boolean;
|
|
210
|
-
hasValue: boolean;
|
|
211
|
-
}, {}, {
|
|
212
|
-
ref?: import("react").Ref<any> | undefined;
|
|
213
|
-
}>;
|
|
214
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const getInputBorderColor: (hasError: boolean, isFocused: boolean, hasValue: boolean) => "#666" | "rgb(0, 140, 255)" | "#ccc" | "#d13033";
|
|
2
|
-
export declare const getInputShadow: (hasError: boolean, isFocused: boolean) => "none" | "0px 0px 3px 0px rgba(255,0,0,0.5)" | "0px 0px 3px 0px rgba(0,4,255,0.5)";
|
|
3
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import styled from '@emotion/native';
|
|
2
|
-
|
|
3
|
-
import { getInputBorderColor, getInputShadow } from './utils';
|
|
4
|
-
|
|
5
|
-
export const InputBox = styled.TextInput<{
|
|
6
|
-
isFocused: boolean;
|
|
7
|
-
hasError?: boolean;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
hasValue: boolean;
|
|
10
|
-
}>(({ isFocused, hasError, disabled, hasValue }) => ({
|
|
11
|
-
width: 48,
|
|
12
|
-
height: 56,
|
|
13
|
-
borderWidth: isFocused || hasError ? 1.5 : 1,
|
|
14
|
-
borderColor: getInputBorderColor(!!hasError, isFocused, hasValue),
|
|
15
|
-
borderRadius: 8,
|
|
16
|
-
textAlign: 'center',
|
|
17
|
-
fontSize: 24,
|
|
18
|
-
fontWeight: '600',
|
|
19
|
-
color: disabled ? '#888' : '#000',
|
|
20
|
-
backgroundColor: disabled ? '#f2f2f2' : '#fff',
|
|
21
|
-
|
|
22
|
-
boxShadow: getInputShadow(!!hasError, isFocused),
|
|
23
|
-
}));
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export const getInputBorderColor = (
|
|
2
|
-
hasError: boolean,
|
|
3
|
-
isFocused: boolean,
|
|
4
|
-
hasValue: boolean,
|
|
5
|
-
) => {
|
|
6
|
-
if (hasError) {
|
|
7
|
-
return '#d13033';
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
if (isFocused) {
|
|
11
|
-
return 'rgb(0, 140, 255)';
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
if (hasValue) {
|
|
15
|
-
return '#666';
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return '#ccc';
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const getInputShadow = (hasError: boolean, isFocused: boolean) => {
|
|
22
|
-
if (hasError) {
|
|
23
|
-
return '0px 0px 3px 0px rgba(255,0,0,0.5)';
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
if (isFocused) {
|
|
27
|
-
return '0px 0px 3px 0px rgba(0,4,255,0.5)';
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return 'none';
|
|
31
|
-
};
|