@pagopa/io-app-design-system 1.36.15 → 1.38.0
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/lib/commonjs/components/avatar/Avatar.js +49 -10
- package/lib/commonjs/components/avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +118 -0
- package/lib/commonjs/components/avatar/__test__/avatar.test.js +16 -2
- package/lib/commonjs/components/avatar/__test__/avatar.test.js.map +1 -1
- package/lib/commonjs/components/avatar/placeholder/avatar-placeholder.png +0 -0
- package/lib/commonjs/components/buttons/ButtonSolid.js +2 -2
- package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/commonjs/components/divider/Divider.js +8 -31
- package/lib/commonjs/components/divider/Divider.js.map +1 -1
- package/lib/commonjs/components/index.js +11 -11
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/layout/HeaderSecondLevel.js +3 -1
- package/lib/commonjs/components/layout/HeaderSecondLevel.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemTransaction.js +2 -3
- package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/commonjs/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +4 -4
- package/lib/commonjs/components/pictograms/Pictogram.js +5 -1
- package/lib/commonjs/components/pictograms/Pictogram.js.map +1 -1
- package/lib/commonjs/components/pictograms/svg/PictogramBleedWorkInProgress.js +61 -0
- package/lib/commonjs/components/pictograms/svg/PictogramBleedWorkInProgress.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/PictogramWorkInProgress.js +61 -0
- package/lib/commonjs/components/pictograms/svg/PictogramWorkInProgress.js.map +1 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramBleedWorkInProgress.svg +1 -0
- package/lib/commonjs/components/pictograms/svg/originals/PictogramWorkInProgress.svg +1 -0
- package/lib/commonjs/components/searchInput/SearchInput.js +222 -0
- package/lib/commonjs/components/searchInput/SearchInput.js.map +1 -0
- package/lib/commonjs/components/{endOfPage → searchInput}/index.js +4 -4
- package/lib/commonjs/components/searchInput/index.js.map +1 -0
- package/lib/commonjs/images.d.js +2 -0
- package/lib/commonjs/images.d.js.map +1 -0
- package/lib/module/components/avatar/Avatar.js +40 -1
- package/lib/module/components/avatar/Avatar.js.map +1 -1
- package/lib/module/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +118 -0
- package/lib/module/components/avatar/__test__/avatar.test.js +17 -3
- package/lib/module/components/avatar/__test__/avatar.test.js.map +1 -1
- package/lib/module/components/avatar/placeholder/avatar-placeholder.png +0 -0
- package/lib/module/components/buttons/ButtonSolid.js +2 -2
- package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/module/components/divider/Divider.js +7 -29
- package/lib/module/components/divider/Divider.js.map +1 -1
- package/lib/module/components/index.js +1 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/HeaderSecondLevel.js +3 -1
- package/lib/module/components/layout/HeaderSecondLevel.js.map +1 -1
- package/lib/module/components/listitems/ListItemTransaction.js +2 -3
- package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/module/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +4 -4
- package/lib/module/components/pictograms/Pictogram.js +5 -1
- package/lib/module/components/pictograms/Pictogram.js.map +1 -1
- package/lib/module/components/pictograms/svg/PictogramBleedWorkInProgress.js +53 -0
- package/lib/module/components/pictograms/svg/PictogramBleedWorkInProgress.js.map +1 -0
- package/lib/module/components/pictograms/svg/PictogramWorkInProgress.js +53 -0
- package/lib/module/components/pictograms/svg/PictogramWorkInProgress.js.map +1 -0
- package/lib/module/components/pictograms/svg/originals/PictogramBleedWorkInProgress.svg +1 -0
- package/lib/module/components/pictograms/svg/originals/PictogramWorkInProgress.svg +1 -0
- package/lib/module/components/searchInput/SearchInput.js +213 -0
- package/lib/module/components/searchInput/SearchInput.js.map +1 -0
- package/lib/module/components/searchInput/index.js +2 -0
- package/lib/module/components/searchInput/index.js.map +1 -0
- package/lib/module/images.d.js +2 -0
- package/lib/module/images.d.js.map +1 -0
- package/lib/typescript/components/avatar/Avatar.d.ts +12 -6
- package/lib/typescript/components/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/components/divider/Divider.d.ts +1 -5
- package/lib/typescript/components/divider/Divider.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +1 -1
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/layout/HeaderSecondLevel.d.ts +3 -1
- package/lib/typescript/components/layout/HeaderSecondLevel.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/Pictogram.d.ts +2 -1
- package/lib/typescript/components/pictograms/Pictogram.d.ts.map +1 -1
- package/lib/typescript/components/pictograms/svg/PictogramBleedWorkInProgress.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramBleedWorkInProgress.d.ts.map +1 -0
- package/lib/typescript/components/pictograms/svg/PictogramWorkInProgress.d.ts +5 -0
- package/lib/typescript/components/pictograms/svg/PictogramWorkInProgress.d.ts.map +1 -0
- package/lib/typescript/components/searchInput/SearchInput.d.ts +25 -0
- package/lib/typescript/components/searchInput/SearchInput.d.ts.map +1 -0
- package/lib/typescript/components/searchInput/index.d.ts +2 -0
- package/lib/typescript/components/searchInput/index.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/avatar/Avatar.tsx +52 -5
- package/src/components/avatar/__test__/__snapshots__/avatar.test.tsx.snap +118 -0
- package/src/components/avatar/__test__/avatar.test.tsx +17 -3
- package/src/components/avatar/placeholder/avatar-placeholder.png +0 -0
- package/src/components/buttons/ButtonSolid.tsx +2 -2
- package/src/components/divider/Divider.tsx +11 -25
- package/src/components/index.tsx +1 -1
- package/src/components/layout/HeaderSecondLevel.tsx +4 -0
- package/src/components/listitems/ListItemTransaction.tsx +2 -2
- package/src/components/listitems/__test__/__snapshots__/listitem.test.tsx.snap +4 -4
- package/src/components/pictograms/Pictogram.tsx +7 -2
- package/src/components/pictograms/svg/PictogramBleedWorkInProgress.tsx +62 -0
- package/src/components/pictograms/svg/PictogramWorkInProgress.tsx +62 -0
- package/src/components/pictograms/svg/originals/PictogramBleedWorkInProgress.svg +1 -0
- package/src/components/pictograms/svg/originals/PictogramWorkInProgress.svg +1 -0
- package/src/components/searchInput/SearchInput.tsx +308 -0
- package/src/components/searchInput/index.tsx +1 -0
- package/src/images.d.ts +5 -0
- package/lib/commonjs/components/endOfPage/EndOfPage.js +0 -36
- package/lib/commonjs/components/endOfPage/EndOfPage.js.map +0 -1
- package/lib/commonjs/components/endOfPage/index.js.map +0 -1
- package/lib/module/components/endOfPage/EndOfPage.js +0 -28
- package/lib/module/components/endOfPage/EndOfPage.js.map +0 -1
- package/lib/module/components/endOfPage/index.js +0 -2
- package/lib/module/components/endOfPage/index.js.map +0 -1
- package/lib/typescript/components/endOfPage/EndOfPage.d.ts +0 -23
- package/lib/typescript/components/endOfPage/EndOfPage.d.ts.map +0 -1
- package/lib/typescript/components/endOfPage/index.d.ts +0 -2
- package/lib/typescript/components/endOfPage/index.d.ts.map +0 -1
- package/src/components/endOfPage/EndOfPage.tsx +0 -55
- package/src/components/endOfPage/index.tsx +0 -1
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/* eslint-disable functional/immutable-data */
|
|
2
|
+
import React, { useCallback, useMemo, useRef, useState } from "react";
|
|
3
|
+
import { Dimensions, Platform, Pressable, StyleSheet, TextInput, View } from "react-native";
|
|
4
|
+
import Animated, { Easing, Extrapolate, interpolate, interpolateColor, useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated";
|
|
5
|
+
import { IOColors, IOVisualCostants, useIOExperimentalDesign, useIOTheme } from "../../core";
|
|
6
|
+
import { makeFontStyleObject } from "../../utils/fonts";
|
|
7
|
+
import { ButtonLink } from "../buttons";
|
|
8
|
+
import { Icon } from "../icons";
|
|
9
|
+
|
|
10
|
+
/* Component visual attributes */
|
|
11
|
+
const inputPaddingHorizontal = 12;
|
|
12
|
+
const inputPaddingClearButton = 8;
|
|
13
|
+
const inputRadius = 8;
|
|
14
|
+
const inputBgColorDefault = IOColors["grey-50"];
|
|
15
|
+
const inputBgColorFocused = IOColors["grey-100"];
|
|
16
|
+
const inputColorPlaceholder = IOColors["grey-700"];
|
|
17
|
+
const iconMargin = 8;
|
|
18
|
+
const iconColor = "grey-700";
|
|
19
|
+
const iconSize = 16;
|
|
20
|
+
const iconCloseSize = 24;
|
|
21
|
+
const inputFontSizePlaceholder = 12;
|
|
22
|
+
const cancelButtonMargin = 16;
|
|
23
|
+
const inputTransitionDuration = 250;
|
|
24
|
+
const inputHeightIOS = 36;
|
|
25
|
+
const inputHeightAndroid = 42;
|
|
26
|
+
const AnimatedTextInput = Animated.createAnimatedComponent(TextInput);
|
|
27
|
+
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
28
|
+
const inputWithTimingConfig = {
|
|
29
|
+
duration: inputTransitionDuration,
|
|
30
|
+
easing: Easing.inOut(Easing.cubic)
|
|
31
|
+
};
|
|
32
|
+
export const SearchInput = _ref => {
|
|
33
|
+
let {
|
|
34
|
+
accessibilityLabel,
|
|
35
|
+
cancelButtonLabel,
|
|
36
|
+
clearAccessibilityLabel,
|
|
37
|
+
onChangeText,
|
|
38
|
+
placeholder,
|
|
39
|
+
value = "",
|
|
40
|
+
autoFocus,
|
|
41
|
+
pressable,
|
|
42
|
+
testID
|
|
43
|
+
} = _ref;
|
|
44
|
+
const searchInputRef = useRef(null);
|
|
45
|
+
|
|
46
|
+
/* Component visual attributes */
|
|
47
|
+
const theme = useIOTheme();
|
|
48
|
+
const {
|
|
49
|
+
isExperimental
|
|
50
|
+
} = useIOExperimentalDesign();
|
|
51
|
+
const inputCaretColor = IOColors[theme["interactiveElem-default"]];
|
|
52
|
+
|
|
53
|
+
/* Widths used for the transition:
|
|
54
|
+
- `SearchInput` entire width
|
|
55
|
+
- `Cancel` button */
|
|
56
|
+
const inputWidth = useMemo(() => Dimensions.get("window").width - IOVisualCostants.appMarginDefault * 2, []);
|
|
57
|
+
const [cancelButtonWidth, setCancelButtonWidth] = useState(0);
|
|
58
|
+
const getCancelButtonWidth = _ref2 => {
|
|
59
|
+
let {
|
|
60
|
+
nativeEvent
|
|
61
|
+
} = _ref2;
|
|
62
|
+
setCancelButtonWidth(nativeEvent.layout.width);
|
|
63
|
+
};
|
|
64
|
+
const inputWidthWithCancel = useMemo(() => inputWidth - cancelButtonWidth, [inputWidth, cancelButtonWidth]);
|
|
65
|
+
|
|
66
|
+
/* Reanimated styles */
|
|
67
|
+
const inputAnimatedWidth = useSharedValue(inputWidth);
|
|
68
|
+
const isFocused = useSharedValue(0);
|
|
69
|
+
|
|
70
|
+
/* Applied to the `SearchInput` */
|
|
71
|
+
const animatedStyle = useAnimatedStyle(() => ({
|
|
72
|
+
width: withTiming(inputAnimatedWidth.value, inputWithTimingConfig),
|
|
73
|
+
backgroundColor: interpolateColor(isFocused.value, [0, 1], [inputBgColorDefault, inputBgColorFocused])
|
|
74
|
+
}));
|
|
75
|
+
|
|
76
|
+
/* Applied to the `Cancel` button */
|
|
77
|
+
const cancelButtonAnimatedStyle = useAnimatedStyle(() => ({
|
|
78
|
+
transform: [{
|
|
79
|
+
translateX: interpolate(isFocused.value, [0, 1], [cancelButtonWidth + IOVisualCostants.appMarginDefault, 0], Extrapolate.CLAMP)
|
|
80
|
+
}],
|
|
81
|
+
opacity: interpolate(isFocused.value, [0, 1], [0.5, 1])
|
|
82
|
+
}));
|
|
83
|
+
|
|
84
|
+
/* Applied to the `Clear` button inside the `SearchInput` */
|
|
85
|
+
const clearButtonAnimatedStyle = useAnimatedStyle(() => {
|
|
86
|
+
const showClearButton = value.length > 0;
|
|
87
|
+
return {
|
|
88
|
+
transform: [{
|
|
89
|
+
scale: showClearButton ? withTiming(1, inputWithTimingConfig) : withTiming(0.5, inputWithTimingConfig)
|
|
90
|
+
}],
|
|
91
|
+
opacity: withTiming(showClearButton ? 1 : 0, inputWithTimingConfig)
|
|
92
|
+
};
|
|
93
|
+
}, [value]);
|
|
94
|
+
|
|
95
|
+
/* Related event handlers */
|
|
96
|
+
const handleFocus = () => {
|
|
97
|
+
isFocused.value = withTiming(1, inputWithTimingConfig);
|
|
98
|
+
inputAnimatedWidth.value = inputWidthWithCancel;
|
|
99
|
+
};
|
|
100
|
+
const handleBlur = () => {
|
|
101
|
+
isFocused.value = withTiming(0, inputWithTimingConfig);
|
|
102
|
+
inputAnimatedWidth.value = inputWidth;
|
|
103
|
+
};
|
|
104
|
+
const cancel = useCallback(() => {
|
|
105
|
+
var _searchInputRef$curre, _searchInputRef$curre2;
|
|
106
|
+
onChangeText === null || onChangeText === void 0 || onChangeText("");
|
|
107
|
+
(_searchInputRef$curre = searchInputRef.current) === null || _searchInputRef$curre === void 0 || _searchInputRef$curre.clear();
|
|
108
|
+
(_searchInputRef$curre2 = searchInputRef.current) === null || _searchInputRef$curre2 === void 0 || _searchInputRef$curre2.blur();
|
|
109
|
+
}, [onChangeText]);
|
|
110
|
+
const clear = useCallback(() => {
|
|
111
|
+
var _searchInputRef$curre3;
|
|
112
|
+
onChangeText === null || onChangeText === void 0 || onChangeText("");
|
|
113
|
+
(_searchInputRef$curre3 = searchInputRef.current) === null || _searchInputRef$curre3 === void 0 || _searchInputRef$curre3.clear();
|
|
114
|
+
}, [onChangeText]);
|
|
115
|
+
const handleChangeText = useCallback(text => onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(text), [onChangeText]);
|
|
116
|
+
const renderSearchBar = () => /*#__PURE__*/React.createElement(Animated.View, {
|
|
117
|
+
style: styles.searchBar
|
|
118
|
+
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
119
|
+
style: [styles.searchInput, animatedStyle],
|
|
120
|
+
pointerEvents: pressable ? "none" : "auto"
|
|
121
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
122
|
+
style: styles.iconContainer
|
|
123
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
124
|
+
name: "search",
|
|
125
|
+
size: iconSize,
|
|
126
|
+
color: iconColor
|
|
127
|
+
})), /*#__PURE__*/React.createElement(AnimatedTextInput, {
|
|
128
|
+
testID: testID,
|
|
129
|
+
ref: searchInputRef,
|
|
130
|
+
inputMode: "search",
|
|
131
|
+
returnKeyType: "search",
|
|
132
|
+
accessibilityRole: "search",
|
|
133
|
+
accessibilityLabel: accessibilityLabel,
|
|
134
|
+
style: [styles.textInput, Platform.OS === "ios" ? styles.textInputIOS : styles.textInputAndroid, isExperimental ? styles.placeholder : styles.placeholderLegacy],
|
|
135
|
+
selectionColor: inputCaretColor,
|
|
136
|
+
cursorColor: inputCaretColor,
|
|
137
|
+
placeholder: placeholder,
|
|
138
|
+
placeholderTextColor: inputColorPlaceholder,
|
|
139
|
+
onFocus: handleFocus,
|
|
140
|
+
onBlur: handleBlur,
|
|
141
|
+
onChangeText: handleChangeText,
|
|
142
|
+
value: value,
|
|
143
|
+
autoFocus: autoFocus
|
|
144
|
+
}), /*#__PURE__*/React.createElement(AnimatedPressable, {
|
|
145
|
+
style: [styles.clearButton, clearButtonAnimatedStyle],
|
|
146
|
+
onPress: clear,
|
|
147
|
+
accessibilityLabel: clearAccessibilityLabel,
|
|
148
|
+
accessibilityRole: "button",
|
|
149
|
+
hitSlop: 16
|
|
150
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
151
|
+
name: "closeSmall",
|
|
152
|
+
size: iconCloseSize,
|
|
153
|
+
color: iconColor
|
|
154
|
+
}))), /*#__PURE__*/React.createElement(Animated.View, {
|
|
155
|
+
onLayout: getCancelButtonWidth,
|
|
156
|
+
style: [styles.cancelButton, cancelButtonAnimatedStyle]
|
|
157
|
+
}, /*#__PURE__*/React.createElement(ButtonLink, {
|
|
158
|
+
label: cancelButtonLabel,
|
|
159
|
+
onPress: cancel
|
|
160
|
+
})));
|
|
161
|
+
return pressable ? /*#__PURE__*/React.createElement(Pressable, {
|
|
162
|
+
accessibilityRole: "button",
|
|
163
|
+
accessibilityLabel: placeholder,
|
|
164
|
+
onPress: pressable === null || pressable === void 0 ? void 0 : pressable.onPress
|
|
165
|
+
}, renderSearchBar()) : renderSearchBar();
|
|
166
|
+
};
|
|
167
|
+
const styles = StyleSheet.create({
|
|
168
|
+
searchBar: {
|
|
169
|
+
width: "100%",
|
|
170
|
+
flexDirection: "row",
|
|
171
|
+
justifyContent: "flex-start",
|
|
172
|
+
alignItems: "center"
|
|
173
|
+
},
|
|
174
|
+
searchInput: {
|
|
175
|
+
flexShrink: 0,
|
|
176
|
+
borderRadius: inputRadius,
|
|
177
|
+
borderCurve: "continuous",
|
|
178
|
+
flexDirection: "row",
|
|
179
|
+
alignItems: "center",
|
|
180
|
+
paddingLeft: inputPaddingHorizontal,
|
|
181
|
+
paddingRight: inputPaddingClearButton
|
|
182
|
+
},
|
|
183
|
+
textInput: {
|
|
184
|
+
flexShrink: 1,
|
|
185
|
+
flexGrow: 1
|
|
186
|
+
},
|
|
187
|
+
textInputIOS: {
|
|
188
|
+
height: inputHeightIOS
|
|
189
|
+
},
|
|
190
|
+
textInputAndroid: {
|
|
191
|
+
height: inputHeightAndroid
|
|
192
|
+
},
|
|
193
|
+
iconContainer: {
|
|
194
|
+
marginRight: iconMargin
|
|
195
|
+
},
|
|
196
|
+
placeholder: {
|
|
197
|
+
fontSize: inputFontSizePlaceholder,
|
|
198
|
+
...makeFontStyleObject("Regular", false, "ReadexPro")
|
|
199
|
+
},
|
|
200
|
+
placeholderLegacy: {
|
|
201
|
+
fontSize: inputFontSizePlaceholder,
|
|
202
|
+
...makeFontStyleObject("Regular", false, "TitilliumWeb")
|
|
203
|
+
},
|
|
204
|
+
cancelButton: {
|
|
205
|
+
position: "absolute",
|
|
206
|
+
right: 0,
|
|
207
|
+
paddingLeft: cancelButtonMargin
|
|
208
|
+
},
|
|
209
|
+
clearButton: {
|
|
210
|
+
marginLeft: iconMargin
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
//# sourceMappingURL=SearchInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","useRef","useState","Dimensions","Platform","Pressable","StyleSheet","TextInput","View","Animated","Easing","Extrapolate","interpolate","interpolateColor","useAnimatedStyle","useSharedValue","withTiming","IOColors","IOVisualCostants","useIOExperimentalDesign","useIOTheme","makeFontStyleObject","ButtonLink","Icon","inputPaddingHorizontal","inputPaddingClearButton","inputRadius","inputBgColorDefault","inputBgColorFocused","inputColorPlaceholder","iconMargin","iconColor","iconSize","iconCloseSize","inputFontSizePlaceholder","cancelButtonMargin","inputTransitionDuration","inputHeightIOS","inputHeightAndroid","AnimatedTextInput","createAnimatedComponent","AnimatedPressable","inputWithTimingConfig","duration","easing","inOut","cubic","SearchInput","_ref","accessibilityLabel","cancelButtonLabel","clearAccessibilityLabel","onChangeText","placeholder","value","autoFocus","pressable","testID","searchInputRef","theme","isExperimental","inputCaretColor","inputWidth","get","width","appMarginDefault","cancelButtonWidth","setCancelButtonWidth","getCancelButtonWidth","_ref2","nativeEvent","layout","inputWidthWithCancel","inputAnimatedWidth","isFocused","animatedStyle","backgroundColor","cancelButtonAnimatedStyle","transform","translateX","CLAMP","opacity","clearButtonAnimatedStyle","showClearButton","length","scale","handleFocus","handleBlur","cancel","_searchInputRef$curre","_searchInputRef$curre2","current","clear","blur","_searchInputRef$curre3","handleChangeText","text","renderSearchBar","createElement","style","styles","searchBar","searchInput","pointerEvents","iconContainer","name","size","color","ref","inputMode","returnKeyType","accessibilityRole","textInput","OS","textInputIOS","textInputAndroid","placeholderLegacy","selectionColor","cursorColor","placeholderTextColor","onFocus","onBlur","clearButton","onPress","hitSlop","onLayout","cancelButton","label","create","flexDirection","justifyContent","alignItems","flexShrink","borderRadius","borderCurve","paddingLeft","paddingRight","flexGrow","height","marginRight","fontSize","position","right","marginLeft"],"sourceRoot":"../../../../src","sources":["components/searchInput/SearchInput.tsx"],"mappings":"AAAA;AACA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,EAAEC,MA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ZwB,MAAM,EAAErG;EACV,CAAC;EACD8E,gBAAgB,EAAE;IAChBuB,MAAM,EAAEpG;EACV,CAAC;EACDkE,aAAa,EAAE;IACbmC,WAAW,EAAE7G;EACf,CAAC;EACDuB,WAAW,EAAE;IACXuF,QAAQ,EAAE1G,wBAAwB;IAClC,GAAGb,mBAAmB,CAAC,SAAS,EAAE,KAAK,EAAE,WAAW;EACtD,CAAC;EACD+F,iBAAiB,EAAE;IACjBwB,QAAQ,EAAE1G,wBAAwB;IAClC,GAAGb,mBAAmB,CAAC,SAAS,EAAE,KAAK,EAAE,cAAc;EACzD,CAAC;EACDyG,YAAY,EAAE;IACZe,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,CAAC;IACRP,WAAW,EAAEpG;EACf,CAAC;EACDuF,WAAW,EAAE;IACXqB,UAAU,EAAEjH;EACd;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/searchInput/index.tsx"],"mappings":"AAAA,cAAc,eAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["images.d.ts"],"mappings":""}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ImageRequireSource, ImageURISource } from "react-native";
|
|
1
|
+
import React, { ComponentProps } from "react";
|
|
2
|
+
import { Image, ImageRequireSource, ImageURISource } from "react-native";
|
|
3
3
|
type Avatar = {
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Only `square` shape variant accepted
|
|
6
|
-
*/
|
|
7
|
-
shape?: "circle" | "square";
|
|
8
4
|
size: "small" | "medium";
|
|
9
5
|
logoUri?: ImageRequireSource | ImageURISource | ReadonlyArray<ImageURISource>;
|
|
10
6
|
};
|
|
@@ -17,5 +13,15 @@ type Avatar = {
|
|
|
17
13
|
* @returns
|
|
18
14
|
*/
|
|
19
15
|
export declare const Avatar: ({ logoUri, size }: Avatar) => React.JSX.Element;
|
|
16
|
+
export type AvatarSearchProps = Pick<ComponentProps<typeof Image>, "source" | "defaultSource">;
|
|
17
|
+
/**
|
|
18
|
+
* AvatarSearch component is used to display the logo of an institution in the search results.
|
|
19
|
+
* A placeholder is displayed if the logo is not available.
|
|
20
|
+
* Note: On Android, the default source prop is ignored on debug builds.
|
|
21
|
+
*
|
|
22
|
+
* @param AvatarSearchProps
|
|
23
|
+
* @returns
|
|
24
|
+
*/
|
|
25
|
+
export declare const AvatarSearch: React.MemoExoticComponent<({ defaultSource, source }: AvatarSearchProps) => React.JSX.Element>;
|
|
20
26
|
export {};
|
|
21
27
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EACL,KAAK,EACL,kBAAkB,EAClB,cAAc,EAGf,MAAM,cAAc,CAAC;AAYtB,KAAK,MAAM,GAAG;IACZ,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,kBAAkB,GAAG,cAAc,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC;CAC/E,CAAC;AA0CF;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,sBAAuB,MAAM,sBAoE/C,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,cAAc,CAAC,OAAO,KAAK,CAAC,EAC5B,QAAQ,GAAG,eAAe,CAC3B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,wDACK,iBAAiB,uBAkC9C,CAAC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
/**
|
|
3
|
-
Horizontal Divider component
|
|
3
|
+
Horizontal `Divider` component
|
|
4
4
|
*/
|
|
5
5
|
export declare const Divider: () => React.JSX.Element;
|
|
6
|
-
/**
|
|
7
|
-
Vertical Divider component
|
|
8
|
-
*/
|
|
9
|
-
export declare const VDivider: () => React.JSX.Element;
|
|
10
6
|
//# sourceMappingURL=Divider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../../src/components/divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../../src/components/divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;GAEG;AACH,eAAO,MAAM,OAAO,yBAWnB,CAAC"}
|
|
@@ -8,7 +8,6 @@ export * from "./checkbox";
|
|
|
8
8
|
export * from "./codeInput";
|
|
9
9
|
export * from "./contentWrapper";
|
|
10
10
|
export * from "./divider";
|
|
11
|
-
export * from "./endOfPage";
|
|
12
11
|
export * from "./featureInfo";
|
|
13
12
|
export * from "./icons";
|
|
14
13
|
export * from "./image";
|
|
@@ -29,6 +28,7 @@ export * from "./switch";
|
|
|
29
28
|
export * from "./tabs";
|
|
30
29
|
export * from "./tag";
|
|
31
30
|
export * from "./textInput";
|
|
31
|
+
export * from "./searchInput";
|
|
32
32
|
export * from "./toast";
|
|
33
33
|
export * from "./typography";
|
|
34
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
|
|
@@ -9,9 +9,11 @@ type ScrollValues = {
|
|
|
9
9
|
type BackProps = {
|
|
10
10
|
goBack: () => void;
|
|
11
11
|
backAccessibilityLabel: string;
|
|
12
|
+
backTestID?: string;
|
|
12
13
|
} | {
|
|
13
14
|
goBack?: never;
|
|
14
15
|
backAccessibilityLabel?: never;
|
|
16
|
+
backTestID?: never;
|
|
15
17
|
};
|
|
16
18
|
type CommonProps = WithTestID<{
|
|
17
19
|
scrollValues?: ScrollValues;
|
|
@@ -49,6 +51,6 @@ export type HeaderSecondLevel = BackProps & (Base | OneAction | TwoActions | Thr
|
|
|
49
51
|
* @param {HeaderSecondLevel} props - The props of the component
|
|
50
52
|
* @returns React Element
|
|
51
53
|
*/
|
|
52
|
-
export declare const HeaderSecondLevel: ({ scrollValues, goBack, backAccessibilityLabel, title, type, transparent, isModal, testID, firstAction, secondAction, thirdAction }: HeaderSecondLevel) => React.JSX.Element;
|
|
54
|
+
export declare const HeaderSecondLevel: ({ scrollValues, goBack, backAccessibilityLabel, backTestID, title, type, transparent, isModal, testID, firstAction, secondAction, thirdAction }: HeaderSecondLevel) => React.JSX.Element;
|
|
53
55
|
export default HeaderSecondLevel;
|
|
54
56
|
//# sourceMappingURL=HeaderSecondLevel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSecondLevel.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/HeaderSecondLevel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,QAIN,MAAM,yBAAyB,CAAC;AAWjC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,KAAK,YAAY,GAAG;IAClB,cAAc,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,SAAS,GACV;IACE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,sBAAsB,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"HeaderSecondLevel.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/HeaderSecondLevel.tsx"],"names":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U,CAAC;IACzB,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB;AAED,UAAU,YAAa,SAAQ,WAAW;IACxC,IAAI,EAAE,cAAc,CAAC;IACrB,WAAW,EAAE,UAAU,CAAC;IACxB,YAAY,EAAE,UAAU,CAAC;IACzB,WAAW,EAAE,UAAU,CAAC;CACzB;AAED,MAAM,MAAM,iBAAiB,GAAG,SAAS,GACvC,CAAC,IAAI,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,CAAC,CAAC;AAiCjD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,oJAa3B,iBAAiB,sBA2HnB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -83,6 +83,7 @@ export declare const IOPictograms: {
|
|
|
83
83
|
hello: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
84
84
|
comunicationProblem: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
85
85
|
payments: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
86
|
+
workInProgress: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
86
87
|
ibanCard: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
87
88
|
followMessage: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
88
89
|
manual: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
@@ -99,7 +100,7 @@ type IOPictogramsProps = {
|
|
|
99
100
|
size?: IOPictogramSizeScale | "100%";
|
|
100
101
|
};
|
|
101
102
|
export declare const Pictogram: ({ name, color, pictogramStyle, size, ...props }: IOPictogramsProps) => React.JSX.Element;
|
|
102
|
-
export type IOPictogramsBleed = Extract<"empty" | "charity" | "attention" | "message" | "help" | "feedback" | "idea" | "itWallet" | "security" | "feature" | "cie" | "identity" | "identityAdd" | "identityCheck" | "identityRefresh" | "cameraRequest" | "cameraDenied" | "cardAdd" | "cardFavourite" | "cardQuestion" | "cardIssue" | "accessDenied" | "stopSecurity" | "time" | "pending" | "ended" | "timing" | "searchLens" | "passcode" | "success" | "fatalError" | "notification" | "star" | "doc" | "notification" | "star" | "qrCode" | "lostConnection" | "payments" | "activate" | "reactivate", IOPictograms>;
|
|
103
|
+
export type IOPictogramsBleed = Extract<"empty" | "charity" | "attention" | "message" | "help" | "feedback" | "idea" | "itWallet" | "security" | "feature" | "cie" | "identity" | "identityAdd" | "identityCheck" | "identityRefresh" | "cameraRequest" | "cameraDenied" | "cardAdd" | "cardFavourite" | "cardQuestion" | "cardIssue" | "accessDenied" | "stopSecurity" | "time" | "pending" | "ended" | "timing" | "searchLens" | "passcode" | "success" | "fatalError" | "notification" | "star" | "doc" | "notification" | "star" | "qrCode" | "lostConnection" | "payments" | "activate" | "reactivate" | "workInProgress", IOPictograms>;
|
|
103
104
|
export declare const IOPictogramsBleed: {
|
|
104
105
|
[key in IOPictogramsBleed]: ({ size }: SVGPictogramProps) => JSX.Element;
|
|
105
106
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pictogram.d.ts","sourceRoot":"","sources":["../../../../src/components/pictograms/Pictogram.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,QAAQ,EAAyC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Pictogram.d.ts","sourceRoot":"","sources":["../../../../src/components/pictograms/Pictogram.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,QAAQ,EAAyC,MAAM,YAAY,CAAC;AAqI7E,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAElE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FxB,CAAC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;;CA8BrB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SVGPictogramProps } from "../types";
|
|
3
|
+
declare const PictogramBleedWorkInProgress: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
4
|
+
export default PictogramBleedWorkInProgress;
|
|
5
|
+
//# sourceMappingURL=PictogramBleedWorkInProgress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictogramBleedWorkInProgress.d.ts","sourceRoot":"","sources":["../../../../../src/components/pictograms/svg/PictogramBleedWorkInProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,QAAA,MAAM,4BAA4B,oCAI/B,iBAAiB,sBAmDnB,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SVGPictogramProps } from "../types";
|
|
3
|
+
declare const PictogramWorkInProgress: ({ size, colorValues, ...props }: SVGPictogramProps) => React.JSX.Element;
|
|
4
|
+
export default PictogramWorkInProgress;
|
|
5
|
+
//# sourceMappingURL=PictogramWorkInProgress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictogramWorkInProgress.d.ts","sourceRoot":"","sources":["../../../../../src/components/pictograms/svg/PictogramWorkInProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,QAAA,MAAM,uBAAuB,oCAI1B,iBAAiB,sBAmDnB,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { GestureResponderEvent, TextInputProps } from "react-native";
|
|
3
|
+
import { WithTestID } from "src/utils/types";
|
|
4
|
+
type SearchInputPressableProps = {
|
|
5
|
+
onPress: (event: GestureResponderEvent) => void;
|
|
6
|
+
};
|
|
7
|
+
type SearchInputActionProps = {
|
|
8
|
+
pressable: SearchInputPressableProps;
|
|
9
|
+
onChangeText?: never;
|
|
10
|
+
value?: never;
|
|
11
|
+
} | {
|
|
12
|
+
pressable?: never;
|
|
13
|
+
onChangeText: (value: string) => void;
|
|
14
|
+
value: string;
|
|
15
|
+
};
|
|
16
|
+
type SearchInputProps = WithTestID<{
|
|
17
|
+
accessibilityLabel: TextInputProps["accessibilityLabel"];
|
|
18
|
+
cancelButtonLabel: string;
|
|
19
|
+
clearAccessibilityLabel: string;
|
|
20
|
+
placeholder: TextInputProps["placeholder"];
|
|
21
|
+
autoFocus?: TextInputProps["autoFocus"];
|
|
22
|
+
}> & SearchInputActionProps;
|
|
23
|
+
export declare const SearchInput: ({ accessibilityLabel, cancelButtonLabel, clearAccessibilityLabel, onChangeText, placeholder, value, autoFocus, pressable, testID }: SearchInputProps) => React.JSX.Element;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=SearchInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../src/components/searchInput/SearchInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,EAGL,qBAAqB,EAOrB,cAAc,EAEf,MAAM,cAAc,CAAC;AAUtB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AA6B7C,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACjD,CAAC;AAEF,KAAK,sBAAsB,GACvB;IACE,SAAS,EAAE,yBAAyB,CAAC;IACrC,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,GACD;IACE,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEN,KAAK,gBAAgB,GAAG,UAAU,CAAC;IACjC,kBAAkB,EAAE,cAAc,CAAC,oBAAoB,CAAC,CAAC;IACzD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,uBAAuB,EAAE,MAAM,CAAC;IAChC,WAAW,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;CACzC,CAAC,GACA,sBAAsB,CAAC;AAUzB,eAAO,MAAM,WAAW,uIAUrB,gBAAgB,sBAoKlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/searchInput/index.tsx"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { ComponentProps } from "react";
|
|
2
2
|
import {
|
|
3
3
|
Image,
|
|
4
4
|
ImageRequireSource,
|
|
@@ -15,12 +15,9 @@ import {
|
|
|
15
15
|
useIOTheme
|
|
16
16
|
} from "../../core";
|
|
17
17
|
import { addCacheTimestampToUri } from "../../utils/image";
|
|
18
|
+
import avatarSearchPlaceholder from "./placeholder/avatar-placeholder.png";
|
|
18
19
|
|
|
19
20
|
type Avatar = {
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Only `square` shape variant accepted
|
|
22
|
-
*/
|
|
23
|
-
shape?: "circle" | "square";
|
|
24
21
|
size: "small" | "medium";
|
|
25
22
|
logoUri?: ImageRequireSource | ImageURISource | ReadonlyArray<ImageURISource>;
|
|
26
23
|
};
|
|
@@ -142,3 +139,53 @@ export const Avatar = ({ logoUri, size }: Avatar) => {
|
|
|
142
139
|
</View>
|
|
143
140
|
);
|
|
144
141
|
};
|
|
142
|
+
|
|
143
|
+
export type AvatarSearchProps = Pick<
|
|
144
|
+
ComponentProps<typeof Image>,
|
|
145
|
+
"source" | "defaultSource"
|
|
146
|
+
>;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* AvatarSearch component is used to display the logo of an institution in the search results.
|
|
150
|
+
* A placeholder is displayed if the logo is not available.
|
|
151
|
+
* Note: On Android, the default source prop is ignored on debug builds.
|
|
152
|
+
*
|
|
153
|
+
* @param AvatarSearchProps
|
|
154
|
+
* @returns
|
|
155
|
+
*/
|
|
156
|
+
export const AvatarSearch = React.memo(
|
|
157
|
+
({ defaultSource, source }: AvatarSearchProps) => {
|
|
158
|
+
// Visual attributes
|
|
159
|
+
const avatarSize = dimensionsMap.small.size;
|
|
160
|
+
const borderRadius = dimensionsMap.small.radius;
|
|
161
|
+
const internalSpace = dimensionsMap.small.internalSpace;
|
|
162
|
+
const innerRadius = borderRadius - internalSpace;
|
|
163
|
+
|
|
164
|
+
return (
|
|
165
|
+
<View
|
|
166
|
+
accessibilityIgnoresInvertColors
|
|
167
|
+
style={[
|
|
168
|
+
styles.avatarWrapper,
|
|
169
|
+
{
|
|
170
|
+
borderRadius,
|
|
171
|
+
height: avatarSize,
|
|
172
|
+
width: avatarSize,
|
|
173
|
+
backgroundColor: IOColors.white,
|
|
174
|
+
padding: internalSpace
|
|
175
|
+
}
|
|
176
|
+
]}
|
|
177
|
+
>
|
|
178
|
+
<View
|
|
179
|
+
style={[styles.avatarInnerWrapper, { borderRadius: innerRadius }]}
|
|
180
|
+
>
|
|
181
|
+
<Image
|
|
182
|
+
accessibilityIgnoresInvertColors
|
|
183
|
+
source={source}
|
|
184
|
+
style={styles.avatarImage}
|
|
185
|
+
defaultSource={defaultSource ?? avatarSearchPlaceholder}
|
|
186
|
+
/>
|
|
187
|
+
</View>
|
|
188
|
+
</View>
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
);
|