@onehat/ui 0.2.10 → 0.2.12

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": "@onehat/ui",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -49,7 +49,7 @@ const
49
49
  setCheckboxes(checkboxes);
50
50
  }, [value]);
51
51
 
52
- return <Checkbox.Group onChange={props.setValue} accessibilityLabel={props.name} {...props}>
52
+ return <Checkbox.Group onChange={props.setValue} accessibilityLabel={props.name} ref={props.outerRef} {...props}>
53
53
  {checkboxes}
54
54
  </Checkbox.Group>;
55
55
  },
@@ -50,7 +50,7 @@ const
50
50
  setRadioes(radios);
51
51
  }, [value]);
52
52
 
53
- return <Radio.Group onChange={props.setValue} accessibilityLabel={props.name} {...props}>
53
+ return <Radio.Group onChange={props.setValue} accessibilityLabel={props.name} ref={props.outerRef} {...props}>
54
54
  {radios}
55
55
  </Radio.Group>;
56
56
  },
@@ -42,7 +42,7 @@ export default function Header(props) {
42
42
  collapseBtn = null;
43
43
  if (isClosable) {
44
44
  closeBtn = <IconButton
45
- icon={<Icon as={Xmark} size={styles.PANEL_HEADER_ICON_SIZE} color={styles.HEADER_ICON_COLOR} />}
45
+ icon={<Icon as={Xmark} size={styles.PANEL_HEADER_ICON_SIZE} color={styles.PANEL_HEADER_ICON_COLOR} />}
46
46
  onPress={onClose}
47
47
  testID="closeBtn"
48
48
  alignSelf="center"
@@ -51,7 +51,7 @@ export default function Header(props) {
51
51
  }
52
52
  if (isCollapsible) {
53
53
  collapseBtn = <IconButton
54
- icon={isCollapsed ? <Icon as={Plus} size={styles.PANEL_HEADER_ICON_SIZE} color={styles.HEADER_ICON_COLOR} /> : <Icon as={Minus} size={styles.PANEL_HEADER_ICON_SIZE} color={styles.HEADER_ICON_COLOR} />}
54
+ icon={isCollapsed ? <Icon as={Plus} size={styles.PANEL_HEADER_ICON_SIZE} color={styles.PANEL_HEADER_ICON_COLOR} /> : <Icon as={Minus} size={styles.PANEL_HEADER_ICON_SIZE} color={styles.PANEL_HEADER_ICON_COLOR} />}
55
55
  onPress={onToggleCollapse}
56
56
  testID="collapseBtn"
57
57
  alignSelf="center"