@procivis/one-react-native-components 0.3.99 → 0.3.106

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.
Files changed (190) hide show
  1. package/lib/commonjs/components/history/history-list-item-icon.js +5 -3
  2. package/lib/commonjs/components/history/history-list-item-icon.js.map +1 -1
  3. package/lib/commonjs/components/history/history-list-screen.js +1 -0
  4. package/lib/commonjs/components/history/history-list-screen.js.map +1 -1
  5. package/lib/commonjs/components/proof-request/v1/share-credential.js +2 -14
  6. package/lib/commonjs/components/proof-request/v1/share-credential.js.map +1 -1
  7. package/lib/commonjs/components/proof-request/v2/share-credential-v2-group.js +1 -0
  8. package/lib/commonjs/components/proof-request/v2/share-credential-v2-group.js.map +1 -1
  9. package/lib/commonjs/components/proof-request/v2/share-credential-v2.js +1 -0
  10. package/lib/commonjs/components/proof-request/v2/share-credential-v2.js.map +1 -1
  11. package/lib/commonjs/ui-components/buttons/connectivity-button.js +1 -0
  12. package/lib/commonjs/ui-components/buttons/connectivity-button.js.map +1 -1
  13. package/lib/commonjs/ui-components/buttons/filter-button.js +1 -0
  14. package/lib/commonjs/ui-components/buttons/filter-button.js.map +1 -1
  15. package/lib/commonjs/ui-components/buttons/ghost-button.js +1 -0
  16. package/lib/commonjs/ui-components/buttons/ghost-button.js.map +1 -1
  17. package/lib/commonjs/ui-components/buttons/hold-button.js +1 -0
  18. package/lib/commonjs/ui-components/buttons/hold-button.js.map +1 -1
  19. package/lib/commonjs/ui-components/buttons/scan-button.js +3 -0
  20. package/lib/commonjs/ui-components/buttons/scan-button.js.map +1 -1
  21. package/lib/commonjs/ui-components/buttons/share-button.js +1 -0
  22. package/lib/commonjs/ui-components/buttons/share-button.js.map +1 -1
  23. package/lib/commonjs/ui-components/control/checkbox.js +1 -0
  24. package/lib/commonjs/ui-components/control/checkbox.js.map +1 -1
  25. package/lib/commonjs/ui-components/credential/card/credential-card.js +1 -0
  26. package/lib/commonjs/ui-components/credential/card/credential-card.js.map +1 -1
  27. package/lib/commonjs/ui-components/credential/card/credential-details-card.js +3 -1
  28. package/lib/commonjs/ui-components/credential/card/credential-details-card.js.map +1 -1
  29. package/lib/commonjs/ui-components/credential/card/credential-details-list-item.js +1 -0
  30. package/lib/commonjs/ui-components/credential/card/credential-details-list-item.js.map +1 -1
  31. package/lib/commonjs/ui-components/credential/card/credential-header.js +1 -0
  32. package/lib/commonjs/ui-components/credential/card/credential-header.js.map +1 -1
  33. package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js +2 -0
  34. package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js.map +1 -1
  35. package/lib/commonjs/ui-components/credential/credential-attribute-item.js +1 -0
  36. package/lib/commonjs/ui-components/credential/credential-attribute-item.js.map +1 -1
  37. package/lib/commonjs/ui-components/credential/credential-carousel-images.js +2 -1
  38. package/lib/commonjs/ui-components/credential/credential-carousel-images.js.map +1 -1
  39. package/lib/commonjs/ui-components/credential/selector.js +1 -0
  40. package/lib/commonjs/ui-components/credential/selector.js.map +1 -1
  41. package/lib/commonjs/ui-components/entity/avatar.js +1 -0
  42. package/lib/commonjs/ui-components/entity/avatar.js.map +1 -1
  43. package/lib/commonjs/ui-components/header/foldable-header.js +26 -16
  44. package/lib/commonjs/ui-components/header/foldable-header.js.map +1 -1
  45. package/lib/commonjs/ui-components/header/navigation-header.js +1 -0
  46. package/lib/commonjs/ui-components/header/navigation-header.js.map +1 -1
  47. package/lib/commonjs/ui-components/history/history-details.js +3 -1
  48. package/lib/commonjs/ui-components/history/history-details.js.map +1 -1
  49. package/lib/commonjs/ui-components/icons/history.js +1 -0
  50. package/lib/commonjs/ui-components/icons/history.js.map +1 -1
  51. package/lib/commonjs/ui-components/index.js +11 -0
  52. package/lib/commonjs/ui-components/index.js.map +1 -1
  53. package/lib/commonjs/ui-components/notice/index.js +14 -0
  54. package/lib/commonjs/ui-components/notice/index.js.map +1 -0
  55. package/lib/commonjs/ui-components/notice/wallet-notice.js +80 -0
  56. package/lib/commonjs/ui-components/notice/wallet-notice.js.map +1 -0
  57. package/lib/commonjs/ui-components/pin/keypad.js +1 -0
  58. package/lib/commonjs/ui-components/pin/keypad.js.map +1 -1
  59. package/lib/commonjs/ui-components/pin/pins.js +1 -0
  60. package/lib/commonjs/ui-components/pin/pins.js.map +1 -1
  61. package/lib/commonjs/ui-components/settings/setting-item.js +1 -0
  62. package/lib/commonjs/ui-components/settings/setting-item.js.map +1 -1
  63. package/lib/commonjs/ui-components/settings/settings-button.js +1 -0
  64. package/lib/commonjs/ui-components/settings/settings-button.js.map +1 -1
  65. package/lib/commonjs/utils/hooks/core/proofs.js +12 -2
  66. package/lib/commonjs/utils/hooks/core/proofs.js.map +1 -1
  67. package/lib/commonjs/utils/parsers/credential-images.js +1 -1
  68. package/lib/commonjs/utils/parsers/credential-images.js.map +1 -1
  69. package/lib/commonjs/utils/parsers/credential-sharing-v2.js +1 -1
  70. package/lib/commonjs/utils/parsers/credential-sharing-v2.js.map +1 -1
  71. package/lib/commonjs/utils/parsers/credential-sharing.js +4 -10
  72. package/lib/commonjs/utils/parsers/credential-sharing.js.map +1 -1
  73. package/lib/commonjs/utils/parsers/credential.js.map +1 -1
  74. package/lib/module/components/history/history-list-item-icon.js +5 -3
  75. package/lib/module/components/history/history-list-item-icon.js.map +1 -1
  76. package/lib/module/components/history/history-list-screen.js +1 -0
  77. package/lib/module/components/history/history-list-screen.js.map +1 -1
  78. package/lib/module/components/proof-request/v1/share-credential.js +2 -14
  79. package/lib/module/components/proof-request/v1/share-credential.js.map +1 -1
  80. package/lib/module/components/proof-request/v2/share-credential-v2-group.js +1 -0
  81. package/lib/module/components/proof-request/v2/share-credential-v2-group.js.map +1 -1
  82. package/lib/module/components/proof-request/v2/share-credential-v2.js +1 -0
  83. package/lib/module/components/proof-request/v2/share-credential-v2.js.map +1 -1
  84. package/lib/module/ui-components/buttons/connectivity-button.js +1 -0
  85. package/lib/module/ui-components/buttons/connectivity-button.js.map +1 -1
  86. package/lib/module/ui-components/buttons/filter-button.js +1 -0
  87. package/lib/module/ui-components/buttons/filter-button.js.map +1 -1
  88. package/lib/module/ui-components/buttons/ghost-button.js +1 -0
  89. package/lib/module/ui-components/buttons/ghost-button.js.map +1 -1
  90. package/lib/module/ui-components/buttons/hold-button.js +1 -0
  91. package/lib/module/ui-components/buttons/hold-button.js.map +1 -1
  92. package/lib/module/ui-components/buttons/scan-button.js +3 -0
  93. package/lib/module/ui-components/buttons/scan-button.js.map +1 -1
  94. package/lib/module/ui-components/buttons/share-button.js +1 -0
  95. package/lib/module/ui-components/buttons/share-button.js.map +1 -1
  96. package/lib/module/ui-components/control/checkbox.js +1 -0
  97. package/lib/module/ui-components/control/checkbox.js.map +1 -1
  98. package/lib/module/ui-components/credential/card/credential-card.js +1 -0
  99. package/lib/module/ui-components/credential/card/credential-card.js.map +1 -1
  100. package/lib/module/ui-components/credential/card/credential-details-card.js +3 -1
  101. package/lib/module/ui-components/credential/card/credential-details-card.js.map +1 -1
  102. package/lib/module/ui-components/credential/card/credential-details-list-item.js +1 -0
  103. package/lib/module/ui-components/credential/card/credential-details-list-item.js.map +1 -1
  104. package/lib/module/ui-components/credential/card/credential-header.js +1 -0
  105. package/lib/module/ui-components/credential/card/credential-header.js.map +1 -1
  106. package/lib/module/ui-components/credential/card/credential-image-carousel.js +2 -0
  107. package/lib/module/ui-components/credential/card/credential-image-carousel.js.map +1 -1
  108. package/lib/module/ui-components/credential/credential-attribute-item.js +1 -0
  109. package/lib/module/ui-components/credential/credential-attribute-item.js.map +1 -1
  110. package/lib/module/ui-components/credential/credential-carousel-images.js +2 -1
  111. package/lib/module/ui-components/credential/credential-carousel-images.js.map +1 -1
  112. package/lib/module/ui-components/credential/selector.js +1 -0
  113. package/lib/module/ui-components/credential/selector.js.map +1 -1
  114. package/lib/module/ui-components/entity/avatar.js +1 -0
  115. package/lib/module/ui-components/entity/avatar.js.map +1 -1
  116. package/lib/module/ui-components/header/foldable-header.js +26 -16
  117. package/lib/module/ui-components/header/foldable-header.js.map +1 -1
  118. package/lib/module/ui-components/header/navigation-header.js +1 -0
  119. package/lib/module/ui-components/header/navigation-header.js.map +1 -1
  120. package/lib/module/ui-components/history/history-details.js +3 -1
  121. package/lib/module/ui-components/history/history-details.js.map +1 -1
  122. package/lib/module/ui-components/icons/history.js +1 -0
  123. package/lib/module/ui-components/icons/history.js.map +1 -1
  124. package/lib/module/ui-components/index.js +1 -0
  125. package/lib/module/ui-components/index.js.map +1 -1
  126. package/lib/module/ui-components/notice/index.js +3 -0
  127. package/lib/module/ui-components/notice/index.js.map +1 -0
  128. package/lib/module/ui-components/notice/wallet-notice.js +72 -0
  129. package/lib/module/ui-components/notice/wallet-notice.js.map +1 -0
  130. package/lib/module/ui-components/pin/keypad.js +1 -0
  131. package/lib/module/ui-components/pin/keypad.js.map +1 -1
  132. package/lib/module/ui-components/pin/pins.js +1 -0
  133. package/lib/module/ui-components/pin/pins.js.map +1 -1
  134. package/lib/module/ui-components/settings/setting-item.js +1 -0
  135. package/lib/module/ui-components/settings/setting-item.js.map +1 -1
  136. package/lib/module/ui-components/settings/settings-button.js +1 -0
  137. package/lib/module/ui-components/settings/settings-button.js.map +1 -1
  138. package/lib/module/utils/hooks/core/proofs.js +12 -2
  139. package/lib/module/utils/hooks/core/proofs.js.map +1 -1
  140. package/lib/module/utils/parsers/credential-images.js +1 -1
  141. package/lib/module/utils/parsers/credential-images.js.map +1 -1
  142. package/lib/module/utils/parsers/credential-sharing-v2.js +1 -1
  143. package/lib/module/utils/parsers/credential-sharing-v2.js.map +1 -1
  144. package/lib/module/utils/parsers/credential-sharing.js +4 -10
  145. package/lib/module/utils/parsers/credential-sharing.js.map +1 -1
  146. package/lib/module/utils/parsers/credential.js.map +1 -1
  147. package/lib/typescript/ui-components/index.d.ts +1 -0
  148. package/lib/typescript/ui-components/notice/index.d.ts +2 -0
  149. package/lib/typescript/ui-components/notice/wallet-notice.d.ts +11 -0
  150. package/lib/typescript/utils/hooks/core/proofs.d.ts +5 -3
  151. package/lib/typescript/utils/parsers/credential-sharing.d.ts +2 -2
  152. package/lib/typescript/utils/parsers/credential.d.ts +2 -29
  153. package/package.json +3 -3
  154. package/src/components/history/history-list-item-icon.tsx +4 -2
  155. package/src/components/history/history-list-screen.tsx +1 -0
  156. package/src/components/proof-request/v1/share-credential.tsx +1 -18
  157. package/src/components/proof-request/v2/share-credential-v2-group.tsx +1 -0
  158. package/src/components/proof-request/v2/share-credential-v2.tsx +1 -0
  159. package/src/ui-components/buttons/connectivity-button.tsx +1 -0
  160. package/src/ui-components/buttons/filter-button.tsx +1 -0
  161. package/src/ui-components/buttons/ghost-button.tsx +1 -0
  162. package/src/ui-components/buttons/hold-button.tsx +1 -0
  163. package/src/ui-components/buttons/scan-button.tsx +3 -0
  164. package/src/ui-components/buttons/share-button.tsx +1 -0
  165. package/src/ui-components/control/checkbox.tsx +1 -0
  166. package/src/ui-components/credential/card/credential-card.tsx +1 -0
  167. package/src/ui-components/credential/card/credential-details-card.tsx +2 -0
  168. package/src/ui-components/credential/card/credential-details-list-item.tsx +1 -0
  169. package/src/ui-components/credential/card/credential-header.tsx +1 -0
  170. package/src/ui-components/credential/card/credential-image-carousel.tsx +2 -2
  171. package/src/ui-components/credential/credential-attribute-item.tsx +1 -0
  172. package/src/ui-components/credential/credential-carousel-images.tsx +1 -0
  173. package/src/ui-components/credential/selector.tsx +1 -0
  174. package/src/ui-components/entity/avatar.tsx +1 -0
  175. package/src/ui-components/header/foldable-header.tsx +27 -20
  176. package/src/ui-components/header/navigation-header.tsx +1 -0
  177. package/src/ui-components/history/history-details.tsx +2 -0
  178. package/src/ui-components/icons/history.tsx +1 -0
  179. package/src/ui-components/index.ts +1 -0
  180. package/src/ui-components/notice/index.ts +3 -0
  181. package/src/ui-components/notice/wallet-notice.tsx +82 -0
  182. package/src/ui-components/pin/keypad.tsx +1 -0
  183. package/src/ui-components/pin/pins.tsx +1 -0
  184. package/src/ui-components/settings/setting-item.tsx +1 -0
  185. package/src/ui-components/settings/settings-button.tsx +1 -0
  186. package/src/utils/hooks/core/proofs.ts +10 -2
  187. package/src/utils/parsers/credential-images.tsx +1 -1
  188. package/src/utils/parsers/credential-sharing-v2.tsx +0 -1
  189. package/src/utils/parsers/credential-sharing.tsx +1 -10
  190. package/src/utils/parsers/credential.ts +2 -2
@@ -78,7 +78,7 @@ const CarouselComponent: FC<CarouselProps> = ({ carouselSize, imagesToRender, st
78
78
 
79
79
  const styles = StyleSheet.create({
80
80
  // eslint-disable-next-line react-native/no-unused-styles
81
- Barcode: { borderRadius: 4, height: '50%', width: '80%' },
81
+ Barcode: { borderRadius: 4, borderWidth: 0, height: '50%', width: '80%' },
82
82
  // eslint-disable-next-line react-native/no-unused-styles
83
83
  MRZ: {
84
84
  height: '50%',
@@ -94,7 +94,7 @@ const styles = StyleSheet.create({
94
94
  overflow: 'hidden',
95
95
  },
96
96
  // eslint-disable-next-line react-native/no-unused-styles
97
- QrCode: { aspectRatio: 1, borderRadius: 4, height: '70%' },
97
+ QrCode: { aspectRatio: 1, borderRadius: 4, borderWidth: 0, height: '70%' },
98
98
  carouselItem: {
99
99
  alignItems: 'center',
100
100
  height: '100%',
@@ -367,6 +367,7 @@ const styles = StyleSheet.create({
367
367
  },
368
368
  touchableAttribute: {
369
369
  borderRadius: 8,
370
+ borderWidth: 0,
370
371
  flex: 1,
371
372
  paddingVertical: 11,
372
373
  },
@@ -12,6 +12,7 @@ const styles = StyleSheet.create({
12
12
  alignSelf: 'center',
13
13
  backgroundColor: 'white',
14
14
  borderRadius: 5,
15
+ borderWidth: 0,
15
16
  },
16
17
  barcodeContent: {
17
18
  margin: 12,
@@ -55,6 +55,7 @@ const styles = StyleSheet.create({
55
55
  wrapper: {
56
56
  alignItems: 'center',
57
57
  borderRadius: 12,
58
+ borderWidth: 0,
58
59
  height: 24,
59
60
  justifyContent: 'center',
60
61
  width: 24,
@@ -86,6 +86,7 @@ const styles = StyleSheet.create({
86
86
  },
87
87
  imageWrapper: {
88
88
  borderRadius: 36,
89
+ borderWidth: 0,
89
90
  height: '100%',
90
91
  overflow: 'hidden',
91
92
  width: '100%',
@@ -27,8 +27,9 @@ const FoldableSearchHeader: FunctionComponent<FoldableHeaderProps> = ({
27
27
  const [collapsed, setCollapsed] = useState(header ? false : true);
28
28
  const [headerHeight, setHeaderHeight] = useState<number>();
29
29
 
30
+ const containerPaddingTop = withNotice ? 15 : safeAreaInsets.top;
30
31
  const containerPaddingStyle = {
31
- paddingTop: withNotice ? 15 : safeAreaInsets.top,
32
+ paddingTop: containerPaddingTop,
32
33
  };
33
34
 
34
35
  useEffect(() => {
@@ -52,11 +53,13 @@ const FoldableSearchHeader: FunctionComponent<FoldableHeaderProps> = ({
52
53
 
53
54
  const scrollHeaderAnimatedStyle: Animated.WithAnimatedObject<ViewStyle> | undefined = playHeaderFoldAnimation
54
55
  ? {
55
- paddingTop: scrollOffset.interpolate({
56
- extrapolate: 'clamp',
57
- inputRange: [0, headerHeight],
58
- outputRange: [headerHeight, 0],
59
- }),
56
+ transform: [{
57
+ translateY: scrollOffset.interpolate({
58
+ extrapolate: 'clamp',
59
+ inputRange: [0, headerHeight],
60
+ outputRange: [0, -headerHeight],
61
+ }),
62
+ }],
60
63
  }
61
64
  : undefined;
62
65
 
@@ -80,32 +83,36 @@ const FoldableSearchHeader: FunctionComponent<FoldableHeaderProps> = ({
80
83
  return (
81
84
  <Animated.View
82
85
  style={[styles.headerContainer, containerPaddingStyle, withNotice ? styles.noticeBorderRadius : undefined]}>
83
- <View style={[styles.blurWrapper, StyleSheet.absoluteFill]}>
84
- <BlurView
85
- blurStyle={'header'}
86
- color={colorScheme.background}
87
- style={[StyleSheet.absoluteFill, withNotice ? styles.noticeBorderRadius : undefined]}
88
- />
89
- </View>
90
- <View>
91
- <Animated.View style={scrollHeaderAnimatedStyle}>
92
- {searchBar && <AnimatedSearchBar {...searchBar} collapsed={collapsed} />}
93
- </Animated.View>
86
+ <Animated.View style={scrollHeaderAnimatedStyle}>
87
+ <View
88
+ style={[styles.blurFill, { top: -containerPaddingTop }]}>
89
+ <BlurView
90
+ blurStyle={'header'}
91
+ color={colorScheme.background}
92
+ style={[StyleSheet.absoluteFill, withNotice ? styles.noticeBorderRadius : undefined]}
93
+ />
94
+ </View>
94
95
  {header && (
95
- <Animated.View onLayout={onHeaderLayout} style={[styles.headerContainer, fadeHeaderOutAnimatedStyle]}>
96
+ <Animated.View onLayout={onHeaderLayout} style={fadeHeaderOutAnimatedStyle}>
96
97
  {header}
97
98
  </Animated.View>
98
99
  )}
99
- </View>
100
+ {searchBar && <AnimatedSearchBar {...searchBar} collapsed={collapsed} />}
101
+ </Animated.View>
100
102
  </Animated.View>
101
103
  );
102
104
  };
103
105
 
104
106
  const styles = StyleSheet.create({
105
- blurWrapper: {
107
+ blurFill: {
108
+ bottom: 0,
109
+ left: 0,
106
110
  overflow: 'hidden',
111
+ position: 'absolute',
112
+ right: 0,
107
113
  },
108
114
  headerContainer: {
115
+ overflow: 'hidden',
109
116
  position: 'absolute',
110
117
  width: '100%',
111
118
  },
@@ -129,6 +129,7 @@ const styles = StyleSheet.create({
129
129
  },
130
130
  modalHandle: {
131
131
  borderRadius: 2.5,
132
+ borderWidth: 0,
132
133
  height: 5,
133
134
  marginVertical: 5,
134
135
  width: 36,
@@ -222,6 +222,7 @@ export const HistoryDetailsView: FC<HistoryDetailsViewProps> = ({
222
222
  const styles = StyleSheet.create({
223
223
  assetsHeader: {
224
224
  borderRadius: 8,
225
+ borderWidth: 0,
225
226
  },
226
227
  content: {
227
228
  paddingHorizontal: 16,
@@ -242,6 +243,7 @@ const styles = StyleSheet.create({
242
243
  },
243
244
  section: {
244
245
  borderRadius: 8,
246
+ borderWidth: 0,
245
247
  marginBottom: 12,
246
248
  padding: 12,
247
249
  },
@@ -317,6 +317,7 @@ export const HistoryItemIcon: FC<HistoryItemIconProps> = (props) => {
317
317
  const styles = StyleSheet.create({
318
318
  round: {
319
319
  borderRadius: 24,
320
+ borderWidth: 0,
320
321
  overflow: 'hidden',
321
322
  },
322
323
  status: {
@@ -17,6 +17,7 @@ export * from './list';
17
17
  export * from './loader';
18
18
  export * from './nerd-view';
19
19
  export * from './nfc';
20
+ export * from './notice';
20
21
  export * from './pin';
21
22
  export * from './proof-request';
22
23
  export * from './screens';
@@ -0,0 +1,3 @@
1
+ import WalletNotice from './wallet-notice';
2
+
3
+ export { WalletNotice };
@@ -0,0 +1,82 @@
1
+ import React, { ComponentType, FunctionComponent, JSXElementConstructor, ReactElement, useMemo } from 'react';
2
+ import { StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
3
+
4
+ import { concatTestID } from '../../utils';
5
+ import { TouchableOpacity } from '../accessibility/accessibilityHistoryWrappers';
6
+ import { CloseIcon } from '../icons';
7
+ import { Typography } from '../text';
8
+ import { useAppColorScheme } from '../theme';
9
+
10
+ export type WalletNoticeProps = {
11
+ accessory?: ComponentType<any> | ReactElement;
12
+ icon?: ComponentType<any> | ReactElement;
13
+ onClose?: () => void;
14
+ style?: StyleProp<ViewStyle>;
15
+ text: string;
16
+ };
17
+
18
+ const testID = 'WalletNotice';
19
+
20
+ const WalletNotice: FunctionComponent<WalletNoticeProps> = ({ accessory, icon, style, text, onClose }) => {
21
+ const colorScheme = useAppColorScheme();
22
+
23
+ const iconView: React.ReactElement | undefined = useMemo(() => {
24
+ if (!icon) {
25
+ return undefined;
26
+ }
27
+ if (React.isValidElement(icon)) {
28
+ return icon;
29
+ } else {
30
+ const IconComponent = icon as JSXElementConstructor<any>;
31
+ return <IconComponent />;
32
+ }
33
+ }, [icon]);
34
+
35
+ const accessoryView: React.ReactElement | undefined = useMemo(() => {
36
+ if (!accessory) {
37
+ return undefined;
38
+ }
39
+ if (React.isValidElement(accessory)) {
40
+ return accessory;
41
+ } else {
42
+ const AccessoryComponent = accessory as JSXElementConstructor<any>;
43
+ return <AccessoryComponent />;
44
+ }
45
+ }, [accessory]);
46
+
47
+ return (
48
+ <View style={[styles.noticeContainer, style]}>
49
+ <View style={styles.title}>
50
+ {iconView}
51
+ <Typography color={colorScheme.white}>{text}</Typography>
52
+ {accessoryView}
53
+ </View>
54
+ {onClose && (
55
+ <TouchableOpacity onPress={onClose} style={styles.closeIcon} testID={concatTestID(testID, 'close')}>
56
+ <CloseIcon color="white" />
57
+ </TouchableOpacity>
58
+ )}
59
+ </View>
60
+ );
61
+ };
62
+
63
+ const styles = StyleSheet.create({
64
+ closeIcon: {
65
+ position: 'absolute',
66
+ right: 20,
67
+ top: 5,
68
+ },
69
+ noticeContainer: {
70
+ flexDirection: 'row',
71
+ justifyContent: 'center',
72
+ position: 'relative',
73
+ },
74
+ title: {
75
+ alignItems: 'center',
76
+ flexDirection: 'row',
77
+ gap: 5,
78
+ justifyContent: 'center',
79
+ },
80
+ });
81
+
82
+ export default WalletNotice;
@@ -155,6 +155,7 @@ const styles = StyleSheet.create({
155
155
  key: {
156
156
  alignItems: 'center',
157
157
  borderRadius: KEY_SIZE / 2,
158
+ borderWidth: 0,
158
159
  height: KEY_SIZE,
159
160
  justifyContent: 'center',
160
161
  width: KEY_SIZE,
@@ -37,6 +37,7 @@ export const Pins: FC<PinsProps> = ({ enteredLength, maxLength, style, ...props
37
37
  const styles = StyleSheet.create({
38
38
  pin: {
39
39
  borderRadius: 3,
40
+ borderWidth: 0,
40
41
  height: 10,
41
42
  width: 10,
42
43
  },
@@ -15,6 +15,7 @@ const styles = StyleSheet.create({
15
15
  icon: {
16
16
  alignItems: 'center',
17
17
  borderRadius: 18,
18
+ borderWidth: 0,
18
19
  height: 36,
19
20
  justifyContent: 'center',
20
21
  marginRight: 12,
@@ -14,6 +14,7 @@ const SettingsButton: FC<SettingsButtonProps> = ({ style, ...props }) => {
14
14
  const styles = StyleSheet.create({
15
15
  button: {
16
16
  borderRadius: 12,
17
+ borderWidth: 0,
17
18
  height: 68,
18
19
  marginHorizontal: 0,
19
20
  paddingHorizontal: 12,
@@ -151,7 +151,6 @@ export enum VerificationProtocol {
151
151
  OPENID4VP_DRAFT20 = 'OPENID4VP_DRAFT20',
152
152
  OPENID4VP_DRAFT25 = 'OPENID4VP_DRAFT25',
153
153
  OPENID4VP_PROXIMITY_DRAFT00 = 'OPENID4VP_PROXIMITY_DRAFT00',
154
- SCAN_TO_VERIFY = 'SCAN_TO_VERIFY',
155
154
  }
156
155
 
157
156
  export enum VerificationEngagement {
@@ -284,6 +283,15 @@ export const useProofForSchemaIdWithTransport = (
284
283
  setProofIdState(id);
285
284
  }, []);
286
285
 
286
+ const retract = useCallback(async () => {
287
+ const id = proofIdRef.current;
288
+ if (!id) {
289
+ return;
290
+ }
291
+ setProofId(undefined);
292
+ await deleteProof(id).catch(() => {});
293
+ }, [deleteProof, setProofId]);
294
+
287
295
  useEffect(() => {
288
296
  if (!proofIdRef.current) {
289
297
  return;
@@ -341,7 +349,7 @@ export const useProofForSchemaIdWithTransport = (
341
349
  .catch(() => {});
342
350
  }, [proofSchemaId, identifiers, identifierFilter, createProof, enabled, transport, proofId, setProofId, deleting]);
343
351
 
344
- return deleting ? undefined : proofId;
352
+ return { proofId: deleting ? undefined : proofId, retract };
345
353
  };
346
354
 
347
355
  export const useCleanupUnusedProofs = () => {
@@ -54,7 +54,7 @@ export const getCarouselImagesFromClaims = (
54
54
 
55
55
  let claimValue = '';
56
56
 
57
- if (claim && (claim.value.type_ === 'FLOAT' || claim.value.type_ === 'INTEGER')) {
57
+ if (claim && (claim.value.type_ === 'FLOAT' || claim.value.type_ === 'INTEGER' || claim.value.type_ === 'STRING')) {
58
58
  claimValue = String(claim.value.value);
59
59
  }
60
60
 
@@ -181,7 +181,6 @@ export const shareCredentialCardFromV2PresentationCredential = (
181
181
  ...credential,
182
182
  claims: [],
183
183
  },
184
- false,
185
184
  expanded,
186
185
  multipleCredentialsAvailable,
187
186
  config,
@@ -30,7 +30,6 @@ import {
30
30
 
31
31
  export const validityCheckedCardFromCredential = (
32
32
  credential: CredentialDetailBindingDto,
33
- invalidLVVC: boolean,
34
33
  expanded: boolean,
35
34
  multipleCredentialsAvailable: boolean,
36
35
  config: Config,
@@ -48,13 +47,7 @@ export const validityCheckedCardFromCredential = (
48
47
  | 'statusIcon'
49
48
  >
50
49
  | undefined;
51
- if (invalidLVVC) {
52
- credentialHeaderDetail = {
53
- credentialDetailErrorColor: true,
54
- credentialDetailPrimary: labels.revoked,
55
- credentialDetailTestID: concatTestID(testID, 'header.invalid'),
56
- };
57
- } else if (!expanded && multipleCredentialsAvailable) {
50
+ if (!expanded && multipleCredentialsAvailable) {
58
51
  credentialHeaderDetail = {
59
52
  credentialDetailPrimary: labels.multipleCredentials,
60
53
  credentialDetailTestID: concatTestID(testID, 'header.multiple'),
@@ -258,7 +251,6 @@ export type ShareCredentialCardLabels = CardLabels & {
258
251
 
259
252
  export const shareCredentialCardFromCredential = (
260
253
  credential: CredentialDetailBindingDto | undefined,
261
- invalidLVVC: boolean,
262
254
  expanded: boolean,
263
255
  multipleCredentialsAvailable: boolean,
264
256
  request: PresentationDefinitionRequestedCredentialBindingDto,
@@ -282,7 +274,6 @@ export const shareCredentialCardFromCredential = (
282
274
  const card = credential
283
275
  ? validityCheckedCardFromCredential(
284
276
  credential,
285
- invalidLVVC,
286
277
  expanded,
287
278
  multipleCredentialsAvailable,
288
279
  config,
@@ -3,7 +3,7 @@ import {
3
3
  Config,
4
4
  CredentialDetailBindingDto,
5
5
  CredentialListItemBindingDto,
6
- CredentialSchemaDetailBindingDto,
6
+ CredentialSchemaBindingDto,
7
7
  CredentialStateBindingEnum,
8
8
  DataTypeEnum,
9
9
  FormatFeatureEnum,
@@ -402,7 +402,7 @@ function parseBase64Image(image: string | undefined) {
402
402
  return image ? '__BASE64IMAGE__' : '';
403
403
  }
404
404
 
405
- export function getCredentialSchemaWithoutImages(credentialSchema: CredentialSchemaDetailBindingDto) {
405
+ export function getCredentialSchemaWithoutImages<T extends CredentialSchemaBindingDto>(credentialSchema: T): T {
406
406
  return {
407
407
  ...credentialSchema,
408
408
  layoutProperties: {