@towsila/expo-ui-library 4.16.0 → 4.17.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/package.json +1 -1
- package/src/assets/icons/home.svg +3 -0
- package/src/components/ui/mapHeader.tsx +43 -0
- package/src/index.ts +2 -1
package/package.json
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M11.9004 3.21711C11.6159 3.21711 11.3354 3.15091 11.0809 3.02376L7.21989 1.09326C6.96543 0.966099 6.68486 0.899902 6.40039 0.899902M11.9004 3.21711C12.1849 3.21711 12.4654 3.15091 12.7199 3.02376L16.074 1.34626C16.2138 1.27637 16.3692 1.24342 16.5254 1.25053C16.6816 1.25764 16.8334 1.30458 16.9663 1.38689C17.0992 1.4692 17.2089 1.58414 17.2849 1.72079C17.3609 1.85744 17.4006 2.01124 17.4004 2.16759V13.8679C17.4003 14.0381 17.3528 14.2049 17.2633 14.3497C17.1738 14.4944 17.0457 14.6113 16.8935 14.6874L12.7199 16.7747C12.4654 16.9018 12.1849 16.968 11.9004 16.968C11.6159 16.968 11.3354 16.9018 11.0809 16.7747L7.21989 14.8442C6.96543 14.717 6.68486 14.6508 6.40039 14.6508C6.11593 14.6508 5.83536 14.717 5.58089 14.8442L2.22681 16.5217C2.08688 16.5916 1.93139 16.6245 1.77513 16.6174C1.61887 16.6102 1.46704 16.5632 1.33408 16.4808C1.20113 16.3984 1.09148 16.2833 1.01557 16.1465C0.939657 16.0098 0.900007 15.8558 0.900393 15.6994V4.00001C0.900484 3.82982 0.947953 3.66301 1.03748 3.51827C1.12701 3.37354 1.25507 3.25658 1.40731 3.18051L5.58089 1.09326C5.83536 0.966099 6.11593 0.899902 6.40039 0.899902M11.9004 3.21711L11.9004 16.9666M6.40039 0.899902L6.40039 14.6499" stroke-width="1.8" stroke-linecap="round" stroke="currentColor"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { View, Text } from "react-native";
|
|
2
|
+
import { SafeAreaView } from "react-native-safe-area-context";
|
|
3
|
+
import MapIcon from "../../assets/icons/home.svg";
|
|
4
|
+
import { useAppTheme } from "../../context/ThemeContext";
|
|
5
|
+
import { useLanguage } from "../../context/LanguageContext";
|
|
6
|
+
import { Fonts, textSize } from "../../tokens/typography";
|
|
7
|
+
|
|
8
|
+
export default function MapHeader({title}:{title: string}){
|
|
9
|
+
const {isRTL} = useLanguage();
|
|
10
|
+
const {colors} = useAppTheme();
|
|
11
|
+
return(
|
|
12
|
+
<SafeAreaView
|
|
13
|
+
edges={["top"]}
|
|
14
|
+
pointerEvents="box-none"
|
|
15
|
+
style={{ position: "absolute", top: 0, left: 0, right: 0 }}
|
|
16
|
+
>
|
|
17
|
+
<View
|
|
18
|
+
style={{
|
|
19
|
+
flexDirection: isRTL ? "row-reverse" : "row",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
gap: 15,
|
|
22
|
+
backgroundColor: colors.background.card,
|
|
23
|
+
paddingVertical: 15,
|
|
24
|
+
paddingHorizontal: 14,
|
|
25
|
+
borderRadius: 10,
|
|
26
|
+
marginTop: 16,
|
|
27
|
+
marginHorizontal: 20,
|
|
28
|
+
}}
|
|
29
|
+
>
|
|
30
|
+
<MapIcon color={colors.primary + "80"} width={22} height={22} />
|
|
31
|
+
<Text
|
|
32
|
+
style={{
|
|
33
|
+
fontFamily: Fonts.montserrat.semiBold,
|
|
34
|
+
color: colors.text.primary,
|
|
35
|
+
fontSize: textSize.md,
|
|
36
|
+
}}
|
|
37
|
+
>
|
|
38
|
+
{title}
|
|
39
|
+
</Text>
|
|
40
|
+
</View>
|
|
41
|
+
</SafeAreaView>
|
|
42
|
+
)
|
|
43
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -89,4 +89,5 @@ export {default as RequestCardSkeleton} from "./components/ui/requestCardSkeleto
|
|
|
89
89
|
export {default as AppMap} from "./components/ui/appMap";
|
|
90
90
|
export {default as CustomMarker} from "./components/ui/customMarker";
|
|
91
91
|
export {default as PositionMarker} from "./components/ui/positionMarker";
|
|
92
|
-
export {default as MovingMarker} from "./components/ui/movingMarker";
|
|
92
|
+
export {default as MovingMarker} from "./components/ui/movingMarker";
|
|
93
|
+
export {default as MapHeader} from "./components/ui/mapHeader";
|