@ledgerhq/native-ui 0.20.5-next.0 → 0.20.5-nightly.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.
@@ -8,6 +8,7 @@ type BaseElementProps<V> = {
8
8
  value?: V;
9
9
  onPress?: ((event: GestureResponderEvent) => void) | undefined;
10
10
  Icon?: IconType;
11
+ testID?: string;
11
12
  };
12
13
  export type ElementProps<V> = React.PropsWithChildren<BaseElementProps<V> & {
13
14
  /**
@@ -8,8 +8,8 @@ const ElementContainer = styled(Flex).attrs({
8
8
  accessibilityRole: "radio",
9
9
  }) ``;
10
10
  function Element(props) {
11
- const { first, value, selected, disabled, onPress, children, Icon, renderRight: RenderRight, } = props;
12
- return (React.createElement(TouchableOpacity, { onPress: onPress, disabled: disabled },
11
+ const { first, value, selected, disabled, onPress, children, Icon, renderRight: RenderRight, testID, } = props;
12
+ return (React.createElement(TouchableOpacity, { onPress: onPress, disabled: disabled, testID: testID },
13
13
  React.createElement(ElementContainer, { p: 6, mt: first ? 0 : 4, backgroundColor: selected ? "primary.c20" : "transparent", border: "1px solid", borderColor: selected ? "primary.c50" : "neutral.c40", borderRadius: 1, flexDirection: "row", alignItems: "center" },
14
14
  Icon && (React.createElement(Flex, { mr: 6, flexShrink: 0 },
15
15
  React.createElement(Icon, { size: 24, color: disabled ? "neutral.c50" : selected ? "primary.c90" : "neutral.c100" }))),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/native-ui",
3
- "version": "0.20.5-next.0",
3
+ "version": "0.20.5-nightly.1",
4
4
  "description": "Ledger Live - Mobile UI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,7 +47,7 @@
47
47
  "styled-system": "^5.1.5",
48
48
  "victory-native": "^35.5.5",
49
49
  "@ledgerhq/crypto-icons-ui": "^0.5.1",
50
- "@ledgerhq/icons-ui": "^0.4.4-next.0",
50
+ "@ledgerhq/icons-ui": "^0.4.4-nightly.0",
51
51
  "@ledgerhq/ui-shared": "^0.2.1"
52
52
  },
53
53
  "peerDependencies": {
@@ -84,16 +84,16 @@
84
84
  "@storybook/addon-controls": "^6.5.16",
85
85
  "@storybook/addon-essentials": "^6.5.16",
86
86
  "@storybook/addon-links": "^6.5.16",
87
- "@storybook/addon-ondevice-actions": "6.5.5",
88
- "@storybook/addon-ondevice-backgrounds": "6.5.5",
89
- "@storybook/addon-ondevice-controls": "6.5.5",
90
- "@storybook/addon-ondevice-notes": "6.5.5",
87
+ "@storybook/addon-ondevice-actions": "6.5.6",
88
+ "@storybook/addon-ondevice-backgrounds": "6.5.6",
89
+ "@storybook/addon-ondevice-controls": "6.5.6",
90
+ "@storybook/addon-ondevice-notes": "6.5.6",
91
91
  "@storybook/addon-react-native-web": "^0.0.19",
92
92
  "@storybook/builder-webpack5": "^6.5.14",
93
93
  "@storybook/docs-tools": "^6.5.16",
94
94
  "@storybook/manager-webpack5": "^6.5.14",
95
95
  "@storybook/react": "^6.5.16",
96
- "@storybook/react-native": "6.5.5",
96
+ "@storybook/react-native": "6.5.6",
97
97
  "@svgr/core": "^5.5.0",
98
98
  "@svgr/plugin-jsx": "^5.5.0",
99
99
  "@svgr/plugin-svgo": "^5.5.0",