@momo-kits/stepper 0.92.6-rc.8 → 0.92.7

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/StepperButton.tsx CHANGED
@@ -8,8 +8,7 @@ const StepperButton: FC<StepperButtonProps> = ({
8
8
  disabled = false,
9
9
  sign = '+',
10
10
  size = 'large',
11
- onPress, accessibilityID
12
-
11
+ onPress,
13
12
  }) => {
14
13
  const ICON_SIZE = 12;
15
14
  const {theme} = useContext(ApplicationContext);
@@ -22,7 +21,7 @@ const StepperButton: FC<StepperButtonProps> = ({
22
21
  : theme.colors.primary;
23
22
 
24
23
  return (
25
- <TouchableOpacity {...accessibilityID} disabled={disabled} onPress={onPress} style={[sizeStyle]}>
24
+ <TouchableOpacity disabled={disabled} onPress={onPress} style={[sizeStyle]}>
26
25
  <Icon size={22} color={buttonColor} source={buttonIcon} />
27
26
  </TouchableOpacity>
28
27
  );
package/index.tsx CHANGED
@@ -4,7 +4,6 @@ import StepperButton from './StepperButton';
4
4
  import {DisabledStatus, StepperProps} from './types';
5
5
  import styles from './styles';
6
6
  import NumberView from './NumberView';
7
- import {getAccessibilityID} from "@momo-kits/foundation";
8
7
 
9
8
  const Stepper: FC<StepperProps> = ({
10
9
  size = 'large',
@@ -71,13 +70,10 @@ const Stepper: FC<StepperProps> = ({
71
70
  };
72
71
 
73
72
  const viewStatus = getViewDisabledStatus();
74
- const accessibilityPlusID = getAccessibilityID?.(`ic_stepper_${value}_plus`)
75
- const accessibilitySubtractID = getAccessibilityID?.(`ic_stepper_${value}_subtract`)
76
73
 
77
74
  return (
78
75
  <View style={styles.stepper}>
79
76
  <StepperButton
80
- accessibilityID = {accessibilitySubtractID}
81
77
  onPress={onMinus}
82
78
  sign={'-'}
83
79
  size={size}
@@ -90,9 +86,7 @@ const Stepper: FC<StepperProps> = ({
90
86
  disabled={viewStatus.number}
91
87
  editable={editable}
92
88
  />
93
- <StepperButton
94
- accessibilityID = {accessibilityPlusID}
95
- onPress={onPlus} size={size} disabled={viewStatus.plus} />
89
+ <StepperButton onPress={onPlus} size={size} disabled={viewStatus.plus} />
96
90
  </View>
97
91
  );
98
92
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/stepper",
3
- "version": "0.92.6-rc.8",
3
+ "version": "0.92.7",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "dependencies": {},
package/types.ts CHANGED
@@ -26,8 +26,6 @@ export type StepperButtonProps = {
26
26
  */
27
27
  onPress: () => void;
28
28
 
29
- accessibilityID: object
30
-
31
29
  };
32
30
 
33
31
  /**