@momo-kits/title 0.102.1-beta.2 → 0.102.3-beta.0

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/index.tsx CHANGED
@@ -28,11 +28,6 @@ const Title: FC<TitleProps> = ({
28
28
  buttonSize = 'small',
29
29
  textOnly = false,
30
30
  style,
31
- titleAccessibilityLabel,
32
- descriptionAccessibilityLabel,
33
- badgeAccessibilityLabel,
34
- actionRightAccessibilityLabel,
35
- actionLeftAccessibilityLabel,
36
31
  }) => {
37
32
  const {theme} = useContext(ApplicationContext);
38
33
  const [badgeWidth, setBadgeWidth] = useState(0);
@@ -80,7 +75,6 @@ const Title: FC<TitleProps> = ({
80
75
  }}
81
76
  style={[styles.iconLeftView, flexStyle]}>
82
77
  <RNText
83
- accessibilityLabel={titleAccessibilityLabel}
84
78
  numberOfLines={numberOfLines}
85
79
  style={[
86
80
  styleSheet[typography],
@@ -102,18 +96,13 @@ const Title: FC<TitleProps> = ({
102
96
  style={{
103
97
  alignItems: 'center',
104
98
  }}>
105
- <Badge
106
- style={styles.badge}
107
- label={badgeLabel}
108
- accessibilityLabel={badgeAccessibilityLabel}
109
- />
99
+ <Badge style={styles.badge} label={badgeLabel} />
110
100
  </View>
111
101
  )}
112
102
  {renderActionLeft()}
113
103
  </View>
114
104
  {!!description && (
115
105
  <Text
116
- accessibilityLabel={descriptionAccessibilityLabel}
117
106
  style={styles.description}
118
107
  color={theme.colors.text.secondary}
119
108
  typography={'description_default_regular'}>
@@ -127,7 +116,6 @@ const Title: FC<TitleProps> = ({
127
116
  const renderActionLeft = () => {
128
117
  return (
129
118
  <TouchableOpacity
130
- accessibilityLabel={actionLeftAccessibilityLabel}
131
119
  onPress={onPressTrailingAction}
132
120
  style={styles.iconLeftView}>
133
121
  {showTrailingAction && !showRightAction && (
@@ -164,7 +152,6 @@ const Title: FC<TitleProps> = ({
164
152
  }}>
165
153
  {!buttonTitle ? (
166
154
  <TouchableOpacity
167
- accessibilityLabel={actionRightAccessibilityLabel}
168
155
  onPress={onPressRightAction}
169
156
  style={[
170
157
  styles.iconRight,
@@ -179,9 +166,7 @@ const Title: FC<TitleProps> = ({
179
166
  />
180
167
  </TouchableOpacity>
181
168
  ) : (
182
- <TouchableOpacity
183
- onPress={onPressRightAction}
184
- accessibilityLabel={actionRightAccessibilityLabel}>
169
+ <TouchableOpacity onPress={onPressRightAction}>
185
170
  <Text color={theme.colors.primary} typography={buttonTypo}>
186
171
  {buttonTitle}
187
172
  </Text>
@@ -195,7 +180,6 @@ const Title: FC<TitleProps> = ({
195
180
  return (
196
181
  <View style={isSection && styles.margin}>
197
182
  <RNText
198
- accessibilityLabel={titleAccessibilityLabel}
199
183
  numberOfLines={numberOfLines}
200
184
  style={[styleSheet[typography], styles.title]}>
201
185
  {title}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/title",
3
- "version": "0.102.1-beta.2",
3
+ "version": "0.102.3-beta.0",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "dependencies": {},
@@ -14,4 +14,4 @@
14
14
  "@momo-platform/versions": "4.1.11"
15
15
  },
16
16
  "license": "MoMo"
17
- }
17
+ }
package/publish.sh CHANGED
@@ -8,15 +8,15 @@ cd dist
8
8
 
9
9
 
10
10
  if [ "$1" == "stable" ]; then
11
- npm version $(npm view @momo-kits/title@stable version)
12
- npm version patch
11
+ #npm version $(npm view @momo-kits/title@stable version)
12
+ #npm version patch
13
13
  npm publish --tag stable --access=public
14
14
  elif [ "$1" == "latest" ]; then
15
- npm version $(npm view @momo-kits/foundation@latest version)
15
+ #npm version $(npm view @momo-kits/foundation@latest version)
16
16
  npm publish --tag latest --access=public
17
17
  else
18
- npm version $(npm view @momo-kits/title@beta version)
19
- npm version prerelease --preid=beta
18
+ #npm version $(npm view @momo-kits/title@beta version)
19
+ #npm version prerelease --preid=beta
20
20
  npm publish --tag beta --access=public
21
21
  fi
22
22
 
package/types.ts CHANGED
@@ -17,10 +17,4 @@ export type TitleProps = {
17
17
  onPressTrailingAction?: () => void;
18
18
  textOnly?: boolean;
19
19
  style?: ViewStyle;
20
-
21
- titleAccessibilityLabel?: string;
22
- descriptionAccessibilityLabel?: string;
23
- badgeAccessibilityLabel?: string;
24
- actionRightAccessibilityLabel?: string;
25
- actionLeftAccessibilityLabel?: string;
26
20
  };