@momo-kits/step 0.0.59-beta.7 → 0.0.59-beta.8

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.
@@ -1,7 +1,7 @@
1
1
  import { Colors, IconSource, Image, Text } from '@momo-kits/core';
2
2
  import PropTypes from 'prop-types';
3
3
  import React, { Component } from 'react';
4
- import { View, StyleSheet, Dimensions, ScrollView } from 'react-native';
4
+ import { Dimensions, StyleSheet, View } from 'react-native';
5
5
  import { IS_VALID_URL } from './Step.constants';
6
6
 
7
7
  const CIRCLE_SIZE = 24;
@@ -300,7 +300,7 @@ export default class HorizontalStep extends Component {
300
300
  let textFontStyle = styles.titleDefault;
301
301
  let lineActive = lineColorInActive || Colors.black_04;
302
302
  let minHeight = !isVertical && styles.minHeight;
303
-
303
+ let accessibilityLabel = 'uncheck';
304
304
  let tintColor = '#ffd6e7';
305
305
 
306
306
  // This is all properties in active state
@@ -309,6 +309,7 @@ export default class HorizontalStep extends Component {
309
309
  circleColor = circleColorActive || '#d82d8b';
310
310
  circleBorderColor = circleBorderColorActive || Colors.pink_09;
311
311
  textFontStyle = styles.titleActive;
312
+ accessibilityLabel = 'checking';
312
313
  }
313
314
 
314
315
  if (circleChecked) {
@@ -316,6 +317,7 @@ export default class HorizontalStep extends Component {
316
317
  lineActive = lineColorActive || tintColor;
317
318
  circleColor = circleColorChecked || '#ffadd2';
318
319
  circleBorderColor = circleBorderColorChecked || Colors.pink_09;
320
+ accessibilityLabel = 'checked';
319
321
  }
320
322
 
321
323
  if (circleUnchecked) {
@@ -335,8 +337,10 @@ export default class HorizontalStep extends Component {
335
337
  flex: 1,
336
338
  justifyContent: 'center',
337
339
  width: lineWidth,
340
+ // backgroundColor: 'red'
338
341
  }}>
339
342
  <View
343
+ accessibilityLabel={accessibilityLabel}
340
344
  style={{
341
345
  flexDirection: 'column',
342
346
  alignItems: 'center',
@@ -388,7 +392,7 @@ export default class HorizontalStep extends Component {
388
392
  };
389
393
 
390
394
  render() {
391
- const { style = {}, scrollEnable = false } = this.props;
395
+ const { style = {} } = this.props;
392
396
  return (
393
397
  <View style={[style]} onLayout={this.onLayout}>
394
398
  <View
package/Step.js CHANGED
@@ -3,7 +3,8 @@ import PropTypes from 'prop-types';
3
3
  import HorizontalStep from './Step.horizontal';
4
4
  import VerticalStep from './Step.vertical';
5
5
 
6
- import { Colors, IconSource } from '@momo-kits/core';
6
+ import { Colors } from '@momo-kits/core';
7
+
7
8
  export default class Step extends Component {
8
9
  constructor(props) {
9
10
  super(props);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/step",
3
- "version": "0.0.59-beta.7",
3
+ "version": "0.0.59-beta.8",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "dependencies": {},