@navegarti/rn-design-system 0.8.3 → 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 +10 -32
- 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
|
@@ -11,8 +11,10 @@ export const DefaultButtonStyle = styled.TouchableOpacity(({
|
|
|
11
11
|
flexDirection: 'row',
|
|
12
12
|
alignItems: 'center',
|
|
13
13
|
justifyContent: 'center',
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
paddingLeft: paddingHorizontal ?? 20,
|
|
15
|
+
paddingRight: paddingHorizontal ?? 20,
|
|
16
|
+
paddingTop: paddingVertical ?? 14,
|
|
17
|
+
paddingBottom: paddingVertical ?? 14,
|
|
16
18
|
gap: 8,
|
|
17
19
|
backgroundColor: color ?? '#333',
|
|
18
20
|
margin
|
|
@@ -31,11 +31,14 @@ export const InputControlContainer = styled.Pressable(({
|
|
|
31
31
|
borderColor: getInputBorderColor(!!hasError, isFocused),
|
|
32
32
|
borderRadius: 4,
|
|
33
33
|
boxShadow: getInputShadow(!!hasError, isFocused),
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
paddingLeft: 8,
|
|
35
|
+
paddingRight: 8,
|
|
36
|
+
paddingTop: 4,
|
|
37
|
+
paddingBottom: 4,
|
|
36
38
|
backgroundColor: disabled ? '#f2f2f2' : '#fff'
|
|
37
39
|
}));
|
|
38
40
|
export const InputIconContainer = styled.View({
|
|
39
|
-
|
|
41
|
+
marginLeft: 4,
|
|
42
|
+
marginRight: 4
|
|
40
43
|
});
|
|
41
44
|
//# sourceMappingURL=styles.js.map
|
|
@@ -5,11 +5,9 @@ export const Margin = styled.View(({
|
|
|
5
5
|
insets
|
|
6
6
|
}) => ({
|
|
7
7
|
margin: insets.all,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
marginRight: insets.right,
|
|
13
|
-
marginTop: insets.top
|
|
8
|
+
marginTop: insets.vertical ?? insets.top,
|
|
9
|
+
marginBottom: insets.vertical ?? insets.bottom,
|
|
10
|
+
marginLeft: insets.horizontal ?? insets.left,
|
|
11
|
+
marginRight: insets.horizontal ?? insets.right
|
|
14
12
|
}));
|
|
15
13
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,83 +1,66 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { Flex } from "../Flex/index.js";
|
|
5
|
-
import { InputBox } from "./styles.js";
|
|
3
|
+
import { OtpInput as OtpEntry } from 'react-native-otp-entry';
|
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
5
|
export const OTPInput = ({
|
|
8
6
|
length = 6,
|
|
9
|
-
defaultValue = '',
|
|
10
7
|
onComplete,
|
|
11
|
-
hasError = false,
|
|
12
8
|
disabled = false,
|
|
13
9
|
autoFocus = false,
|
|
14
10
|
onlyNumbers = true,
|
|
15
11
|
containerProps,
|
|
16
12
|
...props
|
|
17
13
|
}) => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
alignContent: "center",
|
|
55
|
-
gap: 8,
|
|
56
|
-
flexWrap: "wrap",
|
|
57
|
-
flexDirection: "row",
|
|
58
|
-
...containerProps,
|
|
59
|
-
children: Array.from({
|
|
60
|
-
length
|
|
61
|
-
}).map((_, index) => /*#__PURE__*/_jsx(InputBox, {
|
|
62
|
-
ref: ref => {
|
|
63
|
-
inputRefs.current[index] = ref;
|
|
14
|
+
return /*#__PURE__*/_jsx(OtpEntry, {
|
|
15
|
+
numberOfDigits: length,
|
|
16
|
+
focusColor: "rgb(0, 140, 255)",
|
|
17
|
+
onFilled: onComplete,
|
|
18
|
+
disabled: disabled,
|
|
19
|
+
autoFocus: autoFocus,
|
|
20
|
+
type: "alphanumeric",
|
|
21
|
+
blurOnFilled: true,
|
|
22
|
+
textInputProps: {
|
|
23
|
+
accessibilityLabel: 'Código de verificação'
|
|
24
|
+
},
|
|
25
|
+
textProps: {
|
|
26
|
+
accessibilityRole: 'text',
|
|
27
|
+
accessibilityLabel: 'Dígito do código de verificação',
|
|
28
|
+
allowFontScaling: false
|
|
29
|
+
},
|
|
30
|
+
theme: {
|
|
31
|
+
containerStyle: {
|
|
32
|
+
gap: 10,
|
|
33
|
+
justifyContent: 'flex-start'
|
|
34
|
+
},
|
|
35
|
+
pinCodeContainerStyle: {
|
|
36
|
+
backgroundColor: 'rgb(242,242,242)',
|
|
37
|
+
borderWidth: 1,
|
|
38
|
+
borderRadius: 4,
|
|
39
|
+
width: 50,
|
|
40
|
+
height: 50,
|
|
41
|
+
borderColor: 'transparent'
|
|
42
|
+
},
|
|
43
|
+
pinCodeTextStyle: {
|
|
44
|
+
color: disabled ? '#555' : '#333',
|
|
45
|
+
fontSize: 20,
|
|
46
|
+
fontWeight: 500
|
|
47
|
+
},
|
|
48
|
+
focusedPinCodeContainerStyle: {
|
|
49
|
+
borderColor: 'rgb(50,50,50)'
|
|
64
50
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
cursorColor: "#000",
|
|
79
|
-
...props
|
|
80
|
-
}, index))
|
|
51
|
+
focusStickStyle: {
|
|
52
|
+
backgroundColor: '#555',
|
|
53
|
+
height: 24
|
|
54
|
+
},
|
|
55
|
+
disabledPinCodeContainerStyle: {
|
|
56
|
+
backgroundColor: 'rgb(220,220,220)',
|
|
57
|
+
borderColor: 'rgb(100,100,100)'
|
|
58
|
+
},
|
|
59
|
+
filledPinCodeContainerStyle: {
|
|
60
|
+
borderColor: 'transparent'
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
...props
|
|
81
64
|
});
|
|
82
65
|
};
|
|
83
66
|
//# sourceMappingURL=index.js.map
|
|
@@ -5,11 +5,9 @@ export const Padding = styled.View(({
|
|
|
5
5
|
insets
|
|
6
6
|
}) => ({
|
|
7
7
|
padding: insets.all,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
paddingRight: insets.right,
|
|
13
|
-
paddingTop: insets.top
|
|
8
|
+
paddingTop: insets.vertical ?? insets.top,
|
|
9
|
+
paddingBottom: insets.vertical ?? insets.bottom,
|
|
10
|
+
paddingLeft: insets.horizontal ?? insets.left,
|
|
11
|
+
paddingRight: insets.horizontal ?? insets.right
|
|
14
12
|
}));
|
|
15
13
|
//# sourceMappingURL=styles.js.map
|
|
@@ -10,10 +10,12 @@ export const Text = styled.Text(({
|
|
|
10
10
|
width,
|
|
11
11
|
textTransform,
|
|
12
12
|
textDecorationLine,
|
|
13
|
-
margin
|
|
13
|
+
margin,
|
|
14
|
+
fontFamily
|
|
14
15
|
}) => ({
|
|
15
16
|
fontSize: size ? size : 14,
|
|
16
17
|
fontWeight: weight ?? 'semibold',
|
|
18
|
+
fontFamily,
|
|
17
19
|
color: color ?? '#333',
|
|
18
20
|
textAlign,
|
|
19
21
|
flex,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type { ButtonProps } from './
|
|
1
|
+
import type { ButtonProps } from './types';
|
|
2
|
+
export type { ButtonProps } from './types';
|
|
3
3
|
declare const Button: ((props: ButtonProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
4
4
|
Square: import("@emotion/native").StyledComponent<{
|
|
5
5
|
color?: string;
|
|
@@ -390,85 +390,7 @@ declare const Button: ((props: ButtonProps) => import("react/jsx-runtime").JSX.E
|
|
|
390
390
|
} & {
|
|
391
391
|
theme?: import("@emotion/react").Theme;
|
|
392
392
|
as?: React.ElementType;
|
|
393
|
-
} &
|
|
394
|
-
onPointerEnter?: (event: import("react-native").PointerEvent) => void;
|
|
395
|
-
onPointerLeave?: (event: import("react-native").PointerEvent) => void;
|
|
396
|
-
onPointerMove?: (event: import("react-native").PointerEvent) => void;
|
|
397
|
-
}>, "adjustsFontSizeToFit" | "dynamicTypeRamp" | "suppressHighlighting" | "lineBreakStrategyIOS" | "disabled" | "selectionColor" | "dataDetectorType" | "textBreakStrategy" | "minimumFontScale" | "onAccessibilityAction" | "allowFontScaling" | "android_hyphenationFrequency" | "children" | "ellipsizeMode" | "id" | "maxFontSizeMultiplier" | "nativeID" | "numberOfLines" | "onLayout" | "onLongPress" | "onPress" | "onPressIn" | "onPressOut" | "onResponderGrant" | "onResponderMove" | "onResponderRelease" | "onResponderTerminate" | "onResponderTerminationRequest" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onTextLayout" | "pressRetentionOffset" | "role" | "selectable" | "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"> & Omit<import("react-native/types_generated/Libraries/Text/TextProps").TextPropsIOS, keyof import("react-native/types_generated/Libraries/Text/TextProps").TextPropsAndroid | "onAccessibilityAction" | "allowFontScaling" | "android_hyphenationFrequency" | "children" | "ellipsizeMode" | "id" | "maxFontSizeMultiplier" | "nativeID" | "numberOfLines" | "onLayout" | "onLongPress" | "onPress" | "onPressIn" | "onPressOut" | "onResponderGrant" | "onResponderMove" | "onResponderRelease" | "onResponderTerminate" | "onResponderTerminationRequest" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onTextLayout" | "pressRetentionOffset" | "role" | "selectable" | "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"> & Omit<import("react-native/types_generated/Libraries/Text/TextProps").TextPropsAndroid, "onAccessibilityAction" | "allowFontScaling" | "android_hyphenationFrequency" | "children" | "ellipsizeMode" | "id" | "maxFontSizeMultiplier" | "nativeID" | "numberOfLines" | "onLayout" | "onLongPress" | "onPress" | "onPressIn" | "onPressOut" | "onResponderGrant" | "onResponderMove" | "onResponderRelease" | "onResponderTerminate" | "onResponderTerminationRequest" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onTextLayout" | "pressRetentionOffset" | "role" | "selectable" | "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"> & Omit<Readonly<{
|
|
398
|
-
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => unknown) | undefined;
|
|
399
|
-
allowFontScaling?: boolean | undefined;
|
|
400
|
-
android_hyphenationFrequency?: ("normal" | "none" | "full") | undefined;
|
|
401
|
-
children?: React.ReactNode | undefined;
|
|
402
|
-
ellipsizeMode?: ("clip" | "head" | "middle" | "tail") | undefined;
|
|
403
|
-
id?: string;
|
|
404
|
-
maxFontSizeMultiplier?: number | undefined;
|
|
405
|
-
nativeID?: string | undefined;
|
|
406
|
-
numberOfLines?: number | undefined;
|
|
407
|
-
onLayout?: ((event: import("react-native").LayoutChangeEvent) => unknown) | undefined;
|
|
408
|
-
onLongPress?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
409
|
-
onPress?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
410
|
-
onPressIn?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
411
|
-
onPressOut?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
412
|
-
onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
413
|
-
onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
414
|
-
onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
415
|
-
onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
416
|
-
onResponderTerminationRequest?: (() => boolean) | undefined;
|
|
417
|
-
onStartShouldSetResponder?: (() => boolean) | undefined;
|
|
418
|
-
onMoveShouldSetResponder?: (() => boolean) | undefined;
|
|
419
|
-
onTextLayout?: ((event: import("react-native").TextLayoutEvent) => unknown) | undefined;
|
|
420
|
-
pressRetentionOffset?: import("react-native/types_generated/Libraries/Text/TextProps").PressRetentionOffset | undefined;
|
|
421
|
-
role?: import("react-native").Role | undefined;
|
|
422
|
-
selectable?: boolean | undefined;
|
|
423
|
-
style?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheet").TextStyleProp | undefined;
|
|
424
|
-
testID?: string | undefined;
|
|
425
|
-
}>, "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" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable"> & Omit<Readonly<Omit<Readonly<{
|
|
426
|
-
accessibilityLabelledBy?: (string | undefined) | (Array<string> | undefined);
|
|
427
|
-
"aria-labelledby"?: string | undefined;
|
|
428
|
-
accessibilityLiveRegion?: ("none" | "polite" | "assertive") | undefined;
|
|
429
|
-
"aria-live"?: ("polite" | "assertive" | "off") | undefined;
|
|
430
|
-
importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
|
|
431
|
-
screenReaderFocusable?: boolean;
|
|
432
|
-
}>, "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<{
|
|
433
|
-
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
434
|
-
accessibilityViewIsModal?: boolean | undefined;
|
|
435
|
-
accessibilityShowsLargeContentViewer?: boolean | undefined;
|
|
436
|
-
accessibilityLargeContentTitle?: string | undefined;
|
|
437
|
-
"aria-modal"?: boolean | undefined;
|
|
438
|
-
accessibilityElementsHidden?: boolean | undefined;
|
|
439
|
-
accessibilityLanguage?: string | undefined;
|
|
440
|
-
accessibilityRespondsToUserInteraction?: boolean | undefined;
|
|
441
|
-
}>, "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"> & {
|
|
442
|
-
accessible?: boolean | undefined;
|
|
443
|
-
accessibilityLabel?: string | undefined;
|
|
444
|
-
accessibilityHint?: string | undefined;
|
|
445
|
-
"aria-label"?: string | undefined;
|
|
446
|
-
accessibilityRole?: import("react-native").AccessibilityRole | undefined;
|
|
447
|
-
role?: import("react-native").Role | undefined;
|
|
448
|
-
accessibilityState?: import("react-native").AccessibilityState | undefined;
|
|
449
|
-
accessibilityValue?: import("react-native").AccessibilityValue | undefined;
|
|
450
|
-
"aria-valuemax"?: import("react-native").AccessibilityValue["max"] | undefined;
|
|
451
|
-
"aria-valuemin"?: import("react-native").AccessibilityValue["min"] | undefined;
|
|
452
|
-
"aria-valuenow"?: import("react-native").AccessibilityValue["now"] | undefined;
|
|
453
|
-
"aria-valuetext"?: import("react-native").AccessibilityValue["text"] | undefined;
|
|
454
|
-
accessibilityActions?: ReadonlyArray<import("react-native/types_generated/Libraries/Components/View/ViewAccessibility").AccessibilityActionInfo> | undefined;
|
|
455
|
-
"aria-busy"?: boolean | undefined;
|
|
456
|
-
"aria-checked"?: (boolean | undefined) | "mixed";
|
|
457
|
-
"aria-disabled"?: boolean | undefined;
|
|
458
|
-
"aria-expanded"?: boolean | undefined;
|
|
459
|
-
"aria-selected"?: boolean | undefined;
|
|
460
|
-
"aria-hidden"?: boolean | undefined;
|
|
461
|
-
}>, never>> & {
|
|
462
|
-
flex?: number;
|
|
463
|
-
weight?: "light" | "regular" | "medium" | "bold";
|
|
464
|
-
size?: number;
|
|
465
|
-
margin?: import("react-native").DimensionValue | string;
|
|
466
|
-
width?: string;
|
|
467
|
-
color?: string;
|
|
468
|
-
textAlign?: "left" | "center" | "right" | "justify";
|
|
469
|
-
textTransform?: "none" | "uppercase" | "capitalize" | "lowercase";
|
|
470
|
-
textDecorationLine?: "none" | "underline" | "line-through";
|
|
471
|
-
} & {
|
|
393
|
+
} & import("../Text").TextStyleProps & {
|
|
472
394
|
ref?: import("react").Ref<any> | undefined;
|
|
473
395
|
} & {
|
|
474
396
|
theme?: import("@emotion/react").Theme;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type { DimensionValue, TouchableOpacityProps } from 'react-native';
|
|
2
|
-
export type ButtonProps = {
|
|
3
|
-
color?: string;
|
|
4
|
-
paddingVertical?: number;
|
|
5
|
-
paddingHorizontal?: number;
|
|
6
|
-
margin?: DimensionValue;
|
|
7
|
-
} & TouchableOpacityProps;
|
|
8
1
|
export declare const DefaultButtonStyle: import("@emotion/native").StyledComponent<Omit<Readonly<Omit<Readonly<{
|
|
9
2
|
children?: React.ReactNode | undefined;
|
|
10
3
|
delayLongPress?: number | undefined;
|
|
@@ -84,7 +77,7 @@ export declare const DefaultButtonStyle: import("@emotion/native").StyledCompone
|
|
|
84
77
|
color?: string;
|
|
85
78
|
paddingVertical?: number;
|
|
86
79
|
paddingHorizontal?: number;
|
|
87
|
-
margin?: DimensionValue;
|
|
80
|
+
margin?: import("react-native").DimensionValue;
|
|
88
81
|
} & Readonly<Omit<Readonly<{
|
|
89
82
|
children?: React.ReactNode | undefined;
|
|
90
83
|
delayLongPress?: number | undefined;
|
|
@@ -231,85 +224,7 @@ export declare const ButtonText: import("@emotion/native").StyledComponent<Omit<
|
|
|
231
224
|
} & {
|
|
232
225
|
theme?: import("@emotion/react").Theme;
|
|
233
226
|
as?: React.ElementType;
|
|
234
|
-
} &
|
|
235
|
-
onPointerEnter?: (event: import("react-native").PointerEvent) => void;
|
|
236
|
-
onPointerLeave?: (event: import("react-native").PointerEvent) => void;
|
|
237
|
-
onPointerMove?: (event: import("react-native").PointerEvent) => void;
|
|
238
|
-
}>, "adjustsFontSizeToFit" | "dynamicTypeRamp" | "suppressHighlighting" | "lineBreakStrategyIOS" | "disabled" | "selectionColor" | "dataDetectorType" | "textBreakStrategy" | "minimumFontScale" | "onAccessibilityAction" | "allowFontScaling" | "android_hyphenationFrequency" | "children" | "ellipsizeMode" | "id" | "maxFontSizeMultiplier" | "nativeID" | "numberOfLines" | "onLayout" | "onLongPress" | "onPress" | "onPressIn" | "onPressOut" | "onResponderGrant" | "onResponderMove" | "onResponderRelease" | "onResponderTerminate" | "onResponderTerminationRequest" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onTextLayout" | "pressRetentionOffset" | "role" | "selectable" | "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"> & Omit<import("react-native/types_generated/Libraries/Text/TextProps").TextPropsIOS, keyof import("react-native/types_generated/Libraries/Text/TextProps").TextPropsAndroid | "onAccessibilityAction" | "allowFontScaling" | "android_hyphenationFrequency" | "children" | "ellipsizeMode" | "id" | "maxFontSizeMultiplier" | "nativeID" | "numberOfLines" | "onLayout" | "onLongPress" | "onPress" | "onPressIn" | "onPressOut" | "onResponderGrant" | "onResponderMove" | "onResponderRelease" | "onResponderTerminate" | "onResponderTerminationRequest" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onTextLayout" | "pressRetentionOffset" | "role" | "selectable" | "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"> & Omit<import("react-native/types_generated/Libraries/Text/TextProps").TextPropsAndroid, "onAccessibilityAction" | "allowFontScaling" | "android_hyphenationFrequency" | "children" | "ellipsizeMode" | "id" | "maxFontSizeMultiplier" | "nativeID" | "numberOfLines" | "onLayout" | "onLongPress" | "onPress" | "onPressIn" | "onPressOut" | "onResponderGrant" | "onResponderMove" | "onResponderRelease" | "onResponderTerminate" | "onResponderTerminationRequest" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onTextLayout" | "pressRetentionOffset" | "role" | "selectable" | "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"> & Omit<Readonly<{
|
|
239
|
-
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => unknown) | undefined;
|
|
240
|
-
allowFontScaling?: boolean | undefined;
|
|
241
|
-
android_hyphenationFrequency?: ("normal" | "none" | "full") | undefined;
|
|
242
|
-
children?: React.ReactNode | undefined;
|
|
243
|
-
ellipsizeMode?: ("clip" | "head" | "middle" | "tail") | undefined;
|
|
244
|
-
id?: string;
|
|
245
|
-
maxFontSizeMultiplier?: number | undefined;
|
|
246
|
-
nativeID?: string | undefined;
|
|
247
|
-
numberOfLines?: number | undefined;
|
|
248
|
-
onLayout?: ((event: import("react-native").LayoutChangeEvent) => unknown) | undefined;
|
|
249
|
-
onLongPress?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
250
|
-
onPress?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
251
|
-
onPressIn?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
252
|
-
onPressOut?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
253
|
-
onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
254
|
-
onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
255
|
-
onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
256
|
-
onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
257
|
-
onResponderTerminationRequest?: (() => boolean) | undefined;
|
|
258
|
-
onStartShouldSetResponder?: (() => boolean) | undefined;
|
|
259
|
-
onMoveShouldSetResponder?: (() => boolean) | undefined;
|
|
260
|
-
onTextLayout?: ((event: import("react-native").TextLayoutEvent) => unknown) | undefined;
|
|
261
|
-
pressRetentionOffset?: import("react-native/types_generated/Libraries/Text/TextProps").PressRetentionOffset | undefined;
|
|
262
|
-
role?: import("react-native").Role | undefined;
|
|
263
|
-
selectable?: boolean | undefined;
|
|
264
|
-
style?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheet").TextStyleProp | undefined;
|
|
265
|
-
testID?: string | undefined;
|
|
266
|
-
}>, "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" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable"> & Omit<Readonly<Omit<Readonly<{
|
|
267
|
-
accessibilityLabelledBy?: (string | undefined) | (Array<string> | undefined);
|
|
268
|
-
"aria-labelledby"?: string | undefined;
|
|
269
|
-
accessibilityLiveRegion?: ("none" | "polite" | "assertive") | undefined;
|
|
270
|
-
"aria-live"?: ("polite" | "assertive" | "off") | undefined;
|
|
271
|
-
importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
|
|
272
|
-
screenReaderFocusable?: boolean;
|
|
273
|
-
}>, "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<{
|
|
274
|
-
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
275
|
-
accessibilityViewIsModal?: boolean | undefined;
|
|
276
|
-
accessibilityShowsLargeContentViewer?: boolean | undefined;
|
|
277
|
-
accessibilityLargeContentTitle?: string | undefined;
|
|
278
|
-
"aria-modal"?: boolean | undefined;
|
|
279
|
-
accessibilityElementsHidden?: boolean | undefined;
|
|
280
|
-
accessibilityLanguage?: string | undefined;
|
|
281
|
-
accessibilityRespondsToUserInteraction?: boolean | undefined;
|
|
282
|
-
}>, "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"> & {
|
|
283
|
-
accessible?: boolean | undefined;
|
|
284
|
-
accessibilityLabel?: string | undefined;
|
|
285
|
-
accessibilityHint?: string | undefined;
|
|
286
|
-
"aria-label"?: string | undefined;
|
|
287
|
-
accessibilityRole?: import("react-native").AccessibilityRole | undefined;
|
|
288
|
-
role?: import("react-native").Role | undefined;
|
|
289
|
-
accessibilityState?: import("react-native").AccessibilityState | undefined;
|
|
290
|
-
accessibilityValue?: import("react-native").AccessibilityValue | undefined;
|
|
291
|
-
"aria-valuemax"?: import("react-native").AccessibilityValue["max"] | undefined;
|
|
292
|
-
"aria-valuemin"?: import("react-native").AccessibilityValue["min"] | undefined;
|
|
293
|
-
"aria-valuenow"?: import("react-native").AccessibilityValue["now"] | undefined;
|
|
294
|
-
"aria-valuetext"?: import("react-native").AccessibilityValue["text"] | undefined;
|
|
295
|
-
accessibilityActions?: ReadonlyArray<import("react-native/types_generated/Libraries/Components/View/ViewAccessibility").AccessibilityActionInfo> | undefined;
|
|
296
|
-
"aria-busy"?: boolean | undefined;
|
|
297
|
-
"aria-checked"?: (boolean | undefined) | "mixed";
|
|
298
|
-
"aria-disabled"?: boolean | undefined;
|
|
299
|
-
"aria-expanded"?: boolean | undefined;
|
|
300
|
-
"aria-selected"?: boolean | undefined;
|
|
301
|
-
"aria-hidden"?: boolean | undefined;
|
|
302
|
-
}>, never>> & {
|
|
303
|
-
flex?: number;
|
|
304
|
-
weight?: "light" | "regular" | "medium" | "bold";
|
|
305
|
-
size?: number;
|
|
306
|
-
margin?: DimensionValue | string;
|
|
307
|
-
width?: string;
|
|
308
|
-
color?: string;
|
|
309
|
-
textAlign?: "left" | "center" | "right" | "justify";
|
|
310
|
-
textTransform?: "none" | "uppercase" | "capitalize" | "lowercase";
|
|
311
|
-
textDecorationLine?: "none" | "underline" | "line-through";
|
|
312
|
-
} & {
|
|
227
|
+
} & import("../Text").TextStyleProps & {
|
|
313
228
|
ref?: import("react").Ref<any> | undefined;
|
|
314
229
|
} & {
|
|
315
230
|
theme?: import("@emotion/react").Theme;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DimensionValue, TouchableOpacityProps } from 'react-native';
|
|
2
|
+
export type ButtonProps = {
|
|
3
|
+
color?: string;
|
|
4
|
+
paddingVertical?: number;
|
|
5
|
+
paddingHorizontal?: number;
|
|
6
|
+
margin?: DimensionValue;
|
|
7
|
+
} & TouchableOpacityProps;
|
|
8
|
+
//# sourceMappingURL=types.d.ts.map
|