pebble-web 2.26.1-alpha.0 → 2.26.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pebble-web",
3
- "version": "2.26.1-alpha.0",
3
+ "version": "2.26.1",
4
4
  "author": "ritz078 <rkritesh078@gmail.com>",
5
5
  "license": "MIT",
6
6
  "main": "dist/pebble-web.js",
@@ -44,7 +44,7 @@
44
44
  "utility-types": "^3.10.0"
45
45
  },
46
46
  "devDependencies": {
47
- "pebble-shared": "^2.26.0"
47
+ "pebble-shared": "^2.26.1"
48
48
  },
49
49
  "greenkeeper": {
50
50
  "ignore": [
@@ -29,7 +29,7 @@ export default class RadioGroup<OptionType> extends React.PureComponent<
29
29
  testId
30
30
  } = this.props;
31
31
 
32
- const testIds = getTestIds(testId, getRadioGroupTestIds);
32
+ const { optionId } = getTestIds(testId, getRadioGroupTestIds);
33
33
 
34
34
  const _children = React.Children.map(children, (_radio, i) => {
35
35
  // `_radio as React.ReactElement<RadioProps>` is a hack
@@ -41,14 +41,17 @@ export default class RadioGroup<OptionType> extends React.PureComponent<
41
41
  onChange: this.handleChange,
42
42
  checked: selected === radio.props.value,
43
43
  disabled,
44
- testId: testIds.optionId
45
- ? getOptionTestId(testIds.optionId, i)
46
- : undefined
44
+ testId: optionId ? getOptionTestId(optionId, i) : undefined
47
45
  });
48
46
  });
49
47
 
50
48
  return (
51
- <div role="radiogroup" aria-label={name} className={className}>
49
+ <div
50
+ role="radiogroup"
51
+ aria-label={name}
52
+ className={className}
53
+ data-testid={testId}
54
+ >
52
55
  {_children}
53
56
  </div>
54
57
  );