@navegarti/rn-design-system 0.8.3 → 0.8.6

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.
Files changed (119) hide show
  1. package/lib/module/components/Button/styles.js +4 -2
  2. package/lib/module/components/Button/types.js +4 -0
  3. package/lib/module/components/Checkbox/types.js +4 -0
  4. package/lib/module/components/FAB/types.js +4 -0
  5. package/lib/module/components/Flex/types.js +4 -0
  6. package/lib/module/components/FormLabel/types.js +4 -0
  7. package/lib/module/components/Input/styles.js +6 -3
  8. package/lib/module/components/Input/types.js +4 -0
  9. package/lib/module/components/Margin/styles.js +4 -6
  10. package/lib/module/components/Margin/types.js +2 -0
  11. package/lib/module/components/OTPInput/index.js +64 -67
  12. package/lib/module/components/OTPInput/types.js +4 -0
  13. package/lib/module/components/Padding/styles.js +4 -6
  14. package/lib/module/components/Padding/types.js +2 -0
  15. package/lib/module/components/Radio/types.js +4 -0
  16. package/lib/module/components/Select/types.js +4 -0
  17. package/lib/module/components/Skeleton/types.js +4 -0
  18. package/lib/module/components/Switch/types.js +4 -0
  19. package/lib/module/components/Text/styles.js +3 -1
  20. package/lib/module/components/Text/types.js +4 -0
  21. package/lib/typescript/src/components/Button/index.d.ts +3 -81
  22. package/lib/typescript/src/components/Button/styles.d.ts +2 -87
  23. package/lib/typescript/src/components/Button/types.d.ts +8 -0
  24. package/lib/typescript/src/components/Card/index.d.ts +55 -322
  25. package/lib/typescript/src/components/Card/styles.d.ts +55 -322
  26. package/lib/typescript/src/components/Carousel/index.d.ts +10 -17
  27. package/lib/typescript/src/components/Checkbox/index.d.ts +3 -8
  28. package/lib/typescript/src/components/Checkbox/styles.d.ts +9 -4
  29. package/lib/typescript/src/components/Checkbox/types.d.ts +8 -0
  30. package/lib/typescript/src/components/FAB/components/extended-fab.d.ts +1 -1
  31. package/lib/typescript/src/components/FAB/index.d.ts +3 -3
  32. package/lib/typescript/src/components/FAB/styles.d.ts +9 -103
  33. package/lib/typescript/src/components/FAB/types.d.ts +16 -0
  34. package/lib/typescript/src/components/Flex/index.d.ts +1 -0
  35. package/lib/typescript/src/components/Flex/styles.d.ts +10 -7
  36. package/lib/typescript/src/components/Flex/types.d.ts +3 -0
  37. package/lib/typescript/src/components/FormLabel/index.d.ts +3 -2
  38. package/lib/typescript/src/components/FormLabel/styles.d.ts +1 -79
  39. package/lib/typescript/src/components/FormLabel/types.d.ts +3 -0
  40. package/lib/typescript/src/components/Input/components/input-field.d.ts +2 -6
  41. package/lib/typescript/src/components/Input/components/input-root.d.ts +1 -7
  42. package/lib/typescript/src/components/Input/index.d.ts +3 -9
  43. package/lib/typescript/src/components/Input/styles.d.ts +29 -170
  44. package/lib/typescript/src/components/Input/types.d.ts +11 -0
  45. package/lib/typescript/src/components/Margin/index.d.ts +1 -0
  46. package/lib/typescript/src/components/Margin/styles.d.ts +11 -17
  47. package/lib/typescript/src/components/Margin/types.d.ts +12 -0
  48. package/lib/typescript/src/components/OTPInput/index.d.ts +3 -15
  49. package/lib/typescript/src/components/OTPInput/types.d.ts +12 -0
  50. package/lib/typescript/src/components/Padding/index.d.ts +1 -0
  51. package/lib/typescript/src/components/Padding/styles.d.ts +11 -17
  52. package/lib/typescript/src/components/Padding/types.d.ts +12 -0
  53. package/lib/typescript/src/components/Radio/components/radio-item.d.ts +1 -6
  54. package/lib/typescript/src/components/Radio/index.d.ts +3 -83
  55. package/lib/typescript/src/components/Radio/styles.d.ts +18 -8
  56. package/lib/typescript/src/components/Radio/types.d.ts +12 -0
  57. package/lib/typescript/src/components/Select/components/select-field.d.ts +2 -4
  58. package/lib/typescript/src/components/Select/index.d.ts +3 -6
  59. package/lib/typescript/src/components/Select/styles.d.ts +2 -158
  60. package/lib/typescript/src/components/Select/types.d.ts +7 -0
  61. package/lib/typescript/src/components/Skeleton/index.d.ts +2 -9
  62. package/lib/typescript/src/components/Skeleton/types.d.ts +9 -0
  63. package/lib/typescript/src/components/Switch/index.d.ts +2 -9
  64. package/lib/typescript/src/components/Switch/styles.d.ts +18 -8
  65. package/lib/typescript/src/components/Switch/types.d.ts +9 -0
  66. package/lib/typescript/src/components/Text/index.d.ts +1 -1
  67. package/lib/typescript/src/components/Text/styles.d.ts +2 -93
  68. package/lib/typescript/src/components/Text/types.d.ts +15 -0
  69. package/lib/typescript/src/components.d.ts +11 -0
  70. package/lib/typescript/src/index.d.ts +11 -0
  71. package/package.json +10 -32
  72. package/src/components/Button/index.tsx +3 -2
  73. package/src/components/Button/styles.ts +6 -10
  74. package/src/components/Button/types.ts +8 -0
  75. package/src/components/Checkbox/index.tsx +3 -8
  76. package/src/components/Checkbox/types.ts +8 -0
  77. package/src/components/FAB/components/extended-fab.tsx +2 -5
  78. package/src/components/FAB/index.tsx +3 -2
  79. package/src/components/FAB/styles.ts +2 -24
  80. package/src/components/FAB/types.ts +18 -0
  81. package/src/components/Flex/index.tsx +1 -0
  82. package/src/components/Flex/styles.ts +1 -15
  83. package/src/components/Flex/types.ts +16 -0
  84. package/src/components/FormLabel/index.tsx +4 -2
  85. package/src/components/FormLabel/types.ts +3 -0
  86. package/src/components/Input/components/input-field.tsx +2 -6
  87. package/src/components/Input/components/input-root.tsx +1 -7
  88. package/src/components/Input/index.tsx +2 -0
  89. package/src/components/Input/styles.ts +6 -3
  90. package/src/components/Input/types.ts +12 -0
  91. package/src/components/Margin/index.tsx +1 -0
  92. package/src/components/Margin/styles.ts +6 -18
  93. package/src/components/Margin/types.ts +11 -0
  94. package/src/components/OTPInput/index.tsx +68 -99
  95. package/src/components/OTPInput/types.ts +13 -0
  96. package/src/components/Padding/index.tsx +1 -0
  97. package/src/components/Padding/styles.ts +6 -18
  98. package/src/components/Padding/types.ts +11 -0
  99. package/src/components/Radio/components/radio-item.tsx +1 -7
  100. package/src/components/Radio/index.tsx +2 -8
  101. package/src/components/Radio/types.ts +14 -0
  102. package/src/components/Select/components/select-field.tsx +2 -4
  103. package/src/components/Select/index.tsx +2 -4
  104. package/src/components/Select/types.ts +8 -0
  105. package/src/components/Skeleton/index.tsx +6 -9
  106. package/src/components/Skeleton/types.ts +9 -0
  107. package/src/components/Switch/index.tsx +3 -9
  108. package/src/components/Switch/types.ts +10 -0
  109. package/src/components/Text/index.tsx +1 -1
  110. package/src/components/Text/styles.ts +3 -18
  111. package/src/components/Text/types.ts +16 -0
  112. package/src/components.tsx +11 -0
  113. package/src/index.tsx +11 -0
  114. package/lib/module/components/OTPInput/styles.js +0 -23
  115. package/lib/module/components/OTPInput/utils.js +0 -24
  116. package/lib/typescript/src/components/OTPInput/styles.d.ts +0 -214
  117. package/lib/typescript/src/components/OTPInput/utils.d.ts +0 -3
  118. package/src/components/OTPInput/styles.ts +0 -23
  119. 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
- paddingHorizontal: paddingHorizontal ?? 20,
15
- paddingVertical: paddingVertical ?? 14,
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
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -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
- paddingInline: 8,
35
- paddingBlock: 4,
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
- marginInline: 4
41
+ marginLeft: 4,
42
+ marginRight: 4
40
43
  });
41
44
  //# sourceMappingURL=styles.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -5,11 +5,9 @@ export const Margin = styled.View(({
5
5
  insets
6
6
  }) => ({
7
7
  margin: insets.all,
8
- marginBlock: insets.block,
9
- marginInline: insets.inline,
10
- marginBottom: insets.bottom,
11
- marginLeft: insets.left,
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
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=types.js.map
@@ -1,83 +1,80 @@
1
1
  "use strict";
2
2
 
3
- import { useEffect, useRef, useState } from 'react';
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,
12
+ theme,
16
13
  ...props
17
14
  }) => {
18
- const [otp, setOtp] = useState(Array(length).fill('').map((_, i) => defaultValue[i] || ''));
19
- const [focusedIndex, setFocusedIndex] = useState(autoFocus ? 0 : null);
20
- const inputRefs = useRef([]);
21
- const handleChangeText = (text, index) => {
22
- if (disabled) return;
23
- setOtp(prevOtp => {
24
- const newOtp = [...prevOtp];
25
- newOtp[index] = text;
26
- const newOtpLength = newOtp.join('').length;
27
- if (newOtpLength === length) {
28
- onComplete(newOtp);
29
- inputRefs.current[index]?.blur();
30
- }
31
- return newOtp;
32
- });
33
- if (index < length - 1 && text) {
34
- inputRefs.current[index + 1]?.focus();
35
- }
36
- };
37
- const handleKeyPress = (e, index) => {
38
- if (e.nativeEvent.key === 'Backspace' && !otp[index] && index > 0) {
39
- inputRefs.current[index - 1]?.focus();
40
- }
41
- };
42
- const handleFocus = index => {
43
- setFocusedIndex(index);
44
- };
45
- const handleBlur = () => {
46
- setFocusedIndex(null);
47
- };
48
- useEffect(() => {
49
- if (autoFocus && inputRefs.current[0]) {
50
- inputRefs.current[0]?.focus();
51
- }
52
- }, [autoFocus]);
53
- return /*#__PURE__*/_jsx(Flex, {
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;
15
+ return /*#__PURE__*/_jsx(OtpEntry, {
16
+ numberOfDigits: length,
17
+ focusColor: "rgb(0, 140, 255)",
18
+ onFilled: onComplete,
19
+ disabled: disabled,
20
+ autoFocus: autoFocus,
21
+ type: "alphanumeric",
22
+ blurOnFilled: true,
23
+ textInputProps: {
24
+ accessibilityLabel: 'Código de verificação',
25
+ ...props.textInputProps
26
+ },
27
+ textProps: {
28
+ accessibilityRole: 'text',
29
+ accessibilityLabel: 'Dígito do código de verificação',
30
+ allowFontScaling: false,
31
+ ...props.textProps
32
+ },
33
+ theme: {
34
+ containerStyle: {
35
+ gap: 4,
36
+ justifyContent: 'flex-start',
37
+ flexWrap: 'wrap',
38
+ ...theme?.containerStyle
39
+ },
40
+ pinCodeContainerStyle: {
41
+ backgroundColor: 'rgb(242,242,242)',
42
+ borderWidth: 1,
43
+ borderRadius: 4,
44
+ width: 50,
45
+ height: 50,
46
+ borderColor: 'transparent',
47
+ ...theme?.pinCodeContainerStyle
48
+ },
49
+ pinCodeTextStyle: {
50
+ color: disabled ? '#555' : '#333',
51
+ fontSize: 20,
52
+ fontWeight: 500,
53
+ ...theme?.pinCodeTextStyle
54
+ },
55
+ focusedPinCodeContainerStyle: {
56
+ borderColor: 'rgb(50,50,50)',
57
+ ...theme?.focusedPinCodeContainerStyle
64
58
  },
65
- value: otp[index],
66
- onChangeText: text => handleChangeText(text, index),
67
- onKeyPress: e => handleKeyPress(e, index),
68
- onFocus: () => handleFocus(index),
69
- onBlur: handleBlur,
70
- isFocused: focusedIndex === index,
71
- hasError: hasError,
72
- disabled: disabled,
73
- hasValue: !!otp[index],
74
- keyboardType: onlyNumbers ? 'number-pad' : 'default',
75
- maxLength: 1,
76
- selectTextOnFocus: true,
77
- editable: !disabled,
78
- cursorColor: "#000",
79
- ...props
80
- }, index))
59
+ focusStickStyle: {
60
+ backgroundColor: '#555',
61
+ height: 24,
62
+ ...theme?.focusStickStyle
63
+ },
64
+ disabledPinCodeContainerStyle: {
65
+ backgroundColor: 'rgb(220,220,220)',
66
+ borderColor: 'rgb(100,100,100)',
67
+ ...theme?.disabledPinCodeContainerStyle
68
+ },
69
+ filledPinCodeContainerStyle: {
70
+ borderColor: 'transparent',
71
+ ...theme?.filledPinCodeContainerStyle
72
+ },
73
+ placeholderTextStyle: {
74
+ ...theme?.placeholderTextStyle
75
+ }
76
+ },
77
+ ...props
81
78
  });
82
79
  };
83
80
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -5,11 +5,9 @@ export const Padding = styled.View(({
5
5
  insets
6
6
  }) => ({
7
7
  padding: insets.all,
8
- paddingBlock: insets.block,
9
- paddingInline: insets.inline,
10
- paddingBottom: insets.bottom,
11
- paddingLeft: insets.left,
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
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.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,
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -1,5 +1,5 @@
1
- import { type ButtonProps } from './styles';
2
- export type { ButtonProps } from './styles';
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
- } & Readonly<Omit<Readonly<{
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
- } & Readonly<Omit<Readonly<{
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