related-ui-components 1.9.4 → 1.9.5

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 (51) hide show
  1. package/lib/commonjs/components/BrandIcon/BrandIcon.js +3 -2
  2. package/lib/commonjs/components/BrandIcon/BrandIcon.js.map +1 -1
  3. package/lib/commonjs/components/Card/CardImage.js +2 -1
  4. package/lib/commonjs/components/Card/CardImage.js.map +1 -1
  5. package/lib/commonjs/components/Card/templates/DealCard.js +2 -1
  6. package/lib/commonjs/components/Card/templates/DealCard.js.map +1 -1
  7. package/lib/commonjs/components/Popup/Popup.js +3 -2
  8. package/lib/commonjs/components/Popup/Popup.js.map +1 -1
  9. package/lib/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.js +3 -2
  10. package/lib/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.js.map +1 -1
  11. package/lib/module/components/BrandIcon/BrandIcon.js +3 -2
  12. package/lib/module/components/BrandIcon/BrandIcon.js.map +1 -1
  13. package/lib/module/components/Card/CardImage.js +2 -1
  14. package/lib/module/components/Card/CardImage.js.map +1 -1
  15. package/lib/module/components/Card/templates/DealCard.js +2 -1
  16. package/lib/module/components/Card/templates/DealCard.js.map +1 -1
  17. package/lib/module/components/Popup/Popup.js +3 -2
  18. package/lib/module/components/Popup/Popup.js.map +1 -1
  19. package/lib/module/components/RedeemedVoucher/RedeemedVoucherSheet.js +2 -1
  20. package/lib/module/components/RedeemedVoucher/RedeemedVoucherSheet.js.map +1 -1
  21. package/lib/typescript/commonjs/components/BrandIcon/BrandIcon.d.ts +2 -1
  22. package/lib/typescript/commonjs/components/BrandIcon/BrandIcon.d.ts.map +1 -1
  23. package/lib/typescript/commonjs/components/Card/CardImage.d.ts.map +1 -1
  24. package/lib/typescript/commonjs/components/Card/templates/DealCard.d.ts.map +1 -1
  25. package/lib/typescript/commonjs/components/Card/types.d.ts +7 -6
  26. package/lib/typescript/commonjs/components/Card/types.d.ts.map +1 -1
  27. package/lib/typescript/commonjs/components/Popup/Popup.d.ts +2 -1
  28. package/lib/typescript/commonjs/components/Popup/Popup.d.ts.map +1 -1
  29. package/lib/typescript/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts.map +1 -1
  30. package/lib/typescript/commonjs/components/TravelBooking/CarRentalForm.d.ts +1 -1
  31. package/lib/typescript/commonjs/components/TravelBooking/HotelForm.d.ts +1 -1
  32. package/lib/typescript/module/components/BrandIcon/BrandIcon.d.ts +2 -1
  33. package/lib/typescript/module/components/BrandIcon/BrandIcon.d.ts.map +1 -1
  34. package/lib/typescript/module/components/Card/CardImage.d.ts.map +1 -1
  35. package/lib/typescript/module/components/Card/templates/DealCard.d.ts.map +1 -1
  36. package/lib/typescript/module/components/Card/types.d.ts +7 -6
  37. package/lib/typescript/module/components/Card/types.d.ts.map +1 -1
  38. package/lib/typescript/module/components/Popup/Popup.d.ts +2 -1
  39. package/lib/typescript/module/components/Popup/Popup.d.ts.map +1 -1
  40. package/lib/typescript/module/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts.map +1 -1
  41. package/lib/typescript/module/components/TravelBooking/CarRentalForm.d.ts +1 -1
  42. package/lib/typescript/module/components/TravelBooking/HotelForm.d.ts +1 -1
  43. package/package.json +124 -123
  44. package/src/components/BrandIcon/BrandIcon.tsx +2 -3
  45. package/src/components/Card/CardImage.tsx +3 -1
  46. package/src/components/Card/templates/DealCard.tsx +1 -1
  47. package/src/components/Card/types.ts +21 -10
  48. package/src/components/Popup/Popup.tsx +2 -3
  49. package/src/components/RedeemedVoucher/RedeemedVoucherSheet.tsx +1 -1
  50. package/src/components/TravelBooking/CarRentalForm.tsx +1 -1
  51. package/src/components/TravelBooking/HotelForm.tsx +1 -1
package/package.json CHANGED
@@ -1,123 +1,124 @@
1
- {
2
- "name": "related-ui-components",
3
- "main": "./src/index.ts",
4
- "version": "1.9.4",
5
- "scripts": {
6
- "start": "expo start",
7
- "reset-project": "node ./scripts/reset-project.js",
8
- "android": "expo start --android",
9
- "ios": "expo start --ios",
10
- "web": "expo start --web",
11
- "test": "jest --watchAll",
12
- "lint": "expo lint",
13
- "prepare": "bob build"
14
- },
15
- "jest": {
16
- "preset": "jest-expo",
17
- "modulePathIgnorePatterns": [
18
- "<rootDir>/lib/"
19
- ]
20
- },
21
- "dependencies": {
22
- "@expo/metro-runtime": "~4.0.1",
23
- "@expo/vector-icons": "^14.0.2",
24
- "@gorhom/bottom-sheet": "^5.1.2",
25
- "@ptomasroos/react-native-multi-slider": "^2.2.2",
26
- "@react-native-community/slider": "4.5.5",
27
- "@react-native-picker/picker": "2.9.0",
28
- "@react-navigation/native": "^7.0.14",
29
- "@shopify/react-native-skia": "1.5.0",
30
- "date-fns": "^4.1.0",
31
- "expo": "~52.0.46",
32
- "expo-checkbox": "^4.0.1",
33
- "expo-constants": "~17.0.7",
34
- "expo-font": "~13.0.4",
35
- "expo-linear-gradient": "~14.0.2",
36
- "expo-linking": "~7.0.5",
37
- "expo-splash-screen": "~0.29.24",
38
- "expo-status-bar": "~2.0.1",
39
- "react": "18.3.1",
40
- "react-dom": "18.3.1",
41
- "react-native": "0.76.9",
42
- "react-native-calendars": "^1.1310.0",
43
- "react-native-gesture-handler": "~2.20.2",
44
- "react-native-modal": "^14.0.0-rc.1",
45
- "react-native-qrcode-svg": "^6.3.15",
46
- "react-native-reanimated": "^3.16.1",
47
- "react-native-safe-area-context": "4.12.0",
48
- "react-native-screens": "~4.4.0",
49
- "react-native-svg": "15.8.0",
50
- "react-native-web": "~0.19.13",
51
- "react-native-webview": "13.12.5",
52
- "expo-clipboard": "~7.0.1"
53
- },
54
- "devDependencies": {
55
- "@babel/core": "^7.25.2",
56
- "@chromatic-com/storybook": "^3.2.5",
57
- "@react-native-async-storage/async-storage": "1.23.1",
58
- "@react-native-community/datetimepicker": "8.2.0",
59
- "@react-native-community/slider": "4.5.5",
60
- "@types/jest": "^29.5.12",
61
- "@types/react": "~18.3.12",
62
- "@types/react-test-renderer": "^18.3.0",
63
- "babel-loader": "^8.4.1",
64
- "jest": "^29.2.1",
65
- "jest-expo": "~52.0.4",
66
- "react-native-builder-bob": "^0.37.0",
67
- "react-test-renderer": "18.3.1",
68
- "storybook": "^8.6.4",
69
- "typescript": "^5.3.3",
70
- "vite": "^6.2.1"
71
- },
72
- "private": false,
73
- "source": "./src/index.ts",
74
- "module": "./lib/module/index.js",
75
- "types": "./lib/typescript/commonjs/index.d.ts",
76
- "exports": {
77
- ".": {
78
- "import": {
79
- "types": "./lib/typescript/module/index.d.ts",
80
- "default": "./lib/module/index.js"
81
- },
82
- "require": {
83
- "types": "./lib/typescript/commonjs/index.d.ts",
84
- "default": "./lib/commonjs/index.js"
85
- }
86
- }
87
- },
88
- "files": [
89
- "src",
90
- "lib",
91
- "!**/__tests__",
92
- "!**/__fixtures__",
93
- "!**/__mocks__"
94
- ],
95
- "react-native-builder-bob": {
96
- "source": "src",
97
- "output": "lib",
98
- "targets": [
99
- [
100
- "commonjs",
101
- {
102
- "esm": true
103
- }
104
- ],
105
- [
106
- "module",
107
- {
108
- "esm": true
109
- }
110
- ],
111
- [
112
- "typescript",
113
- {
114
- "esm": true
115
- }
116
- ]
117
- ]
118
- },
119
- "eslintIgnore": [
120
- "node_modules/",
121
- "lib/"
122
- ]
123
- }
1
+ {
2
+ "name": "related-ui-components",
3
+ "main": "./src/index.ts",
4
+ "version": "1.9.5",
5
+ "scripts": {
6
+ "start": "expo start",
7
+ "reset-project": "node ./scripts/reset-project.js",
8
+ "android": "expo start --android",
9
+ "ios": "expo start --ios",
10
+ "web": "expo start --web",
11
+ "test": "jest --watchAll",
12
+ "lint": "expo lint",
13
+ "prepare": "bob build"
14
+ },
15
+ "jest": {
16
+ "preset": "jest-expo",
17
+ "modulePathIgnorePatterns": [
18
+ "<rootDir>/lib/"
19
+ ]
20
+ },
21
+ "dependencies": {
22
+ "@expo/metro-runtime": "~4.0.1",
23
+ "@expo/vector-icons": "^14.0.2",
24
+ "@gorhom/bottom-sheet": "^5.1.2",
25
+ "@ptomasroos/react-native-multi-slider": "^2.2.2",
26
+ "@react-native-community/slider": "4.5.5",
27
+ "@react-native-picker/picker": "2.9.0",
28
+ "@react-navigation/native": "^7.0.14",
29
+ "@shopify/react-native-skia": "1.5.0",
30
+ "date-fns": "^4.1.0",
31
+ "expo": "~52.0.46",
32
+ "expo-checkbox": "^4.0.1",
33
+ "expo-constants": "~17.0.7",
34
+ "expo-font": "~13.0.4",
35
+ "expo-linear-gradient": "~14.0.2",
36
+ "expo-linking": "~7.0.5",
37
+ "expo-splash-screen": "~0.29.24",
38
+ "expo-status-bar": "~2.0.1",
39
+ "react": "18.3.1",
40
+ "react-dom": "18.3.1",
41
+ "react-native": "0.76.9",
42
+ "react-native-calendars": "^1.1310.0",
43
+ "react-native-gesture-handler": "~2.20.2",
44
+ "react-native-modal": "^14.0.0-rc.1",
45
+ "react-native-qrcode-svg": "^6.3.15",
46
+ "react-native-reanimated": "^3.16.1",
47
+ "react-native-safe-area-context": "4.12.0",
48
+ "react-native-screens": "~4.4.0",
49
+ "react-native-svg": "15.8.0",
50
+ "react-native-web": "~0.19.13",
51
+ "react-native-webview": "13.12.5",
52
+ "expo-clipboard": "~7.0.1",
53
+ "expo-image": "~2.0.7"
54
+ },
55
+ "devDependencies": {
56
+ "@babel/core": "^7.25.2",
57
+ "@chromatic-com/storybook": "^3.2.5",
58
+ "@react-native-async-storage/async-storage": "1.23.1",
59
+ "@react-native-community/datetimepicker": "8.2.0",
60
+ "@react-native-community/slider": "4.5.5",
61
+ "@types/jest": "^29.5.12",
62
+ "@types/react": "~18.3.12",
63
+ "@types/react-test-renderer": "^18.3.0",
64
+ "babel-loader": "^8.4.1",
65
+ "jest": "^29.2.1",
66
+ "jest-expo": "~52.0.4",
67
+ "react-native-builder-bob": "^0.37.0",
68
+ "react-test-renderer": "18.3.1",
69
+ "storybook": "^8.6.4",
70
+ "typescript": "^5.3.3",
71
+ "vite": "^6.2.1"
72
+ },
73
+ "private": false,
74
+ "source": "./src/index.ts",
75
+ "module": "./lib/module/index.js",
76
+ "types": "./lib/typescript/commonjs/index.d.ts",
77
+ "exports": {
78
+ ".": {
79
+ "import": {
80
+ "types": "./lib/typescript/module/index.d.ts",
81
+ "default": "./lib/module/index.js"
82
+ },
83
+ "require": {
84
+ "types": "./lib/typescript/commonjs/index.d.ts",
85
+ "default": "./lib/commonjs/index.js"
86
+ }
87
+ }
88
+ },
89
+ "files": [
90
+ "src",
91
+ "lib",
92
+ "!**/__tests__",
93
+ "!**/__fixtures__",
94
+ "!**/__mocks__"
95
+ ],
96
+ "react-native-builder-bob": {
97
+ "source": "src",
98
+ "output": "lib",
99
+ "targets": [
100
+ [
101
+ "commonjs",
102
+ {
103
+ "esm": true
104
+ }
105
+ ],
106
+ [
107
+ "module",
108
+ {
109
+ "esm": true
110
+ }
111
+ ],
112
+ [
113
+ "typescript",
114
+ {
115
+ "esm": true
116
+ }
117
+ ]
118
+ ]
119
+ },
120
+ "eslintIgnore": [
121
+ "node_modules/",
122
+ "lib/"
123
+ ]
124
+ }
@@ -2,16 +2,15 @@ import { useTheme, ThemeType } from "../../theme";
2
2
  import React from "react";
3
3
  import {
4
4
  View,
5
- Image,
6
5
  TouchableOpacity,
7
6
  StyleSheet,
8
7
  StyleProp,
9
8
  ViewStyle,
10
9
  ImageSourcePropType,
11
- ImageStyle,
12
10
  Text,
13
11
  TextStyle,
14
12
  } from "react-native";
13
+ import { Image, ImageStyle} from 'expo-image';
15
14
 
16
15
  interface BrandIconProps {
17
16
  brandLogo: ImageSourcePropType;
@@ -87,7 +86,7 @@ const BrandIcon: React.FC<BrandIconProps> = ({
87
86
  { width: size, height: size, borderRadius: size / 2 },
88
87
  imageStyle,
89
88
  ]}
90
- resizeMode="contain"
89
+ contentFit="contain"
91
90
  />
92
91
 
93
92
  {selected && (
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
- import { Image, View, StyleSheet } from 'react-native';
2
+ import { View, StyleSheet } from 'react-native';
3
3
  import { CardImageProps } from './types';
4
+ import { Image, ImageStyle} from 'expo-image';
5
+
4
6
 
5
7
  const CardImage: React.FC<CardImageProps> = ({
6
8
  source,
@@ -6,9 +6,9 @@ import {
6
6
  View,
7
7
  Text,
8
8
  TextStyle,
9
- Image,
10
9
  useWindowDimensions,
11
10
  } from "react-native";
11
+ import { Image } from 'expo-image';
12
12
  import Card from "../Card";
13
13
  import { useTheme } from "../../../theme/ThemeContext";
14
14
  import ProgressBar, {
@@ -1,6 +1,11 @@
1
- // Card/types.ts
2
- import { ReactNode } from 'react';
3
- import { StyleProp, ViewStyle, TextStyle, ImageStyle, ImageSourcePropType } from 'react-native';
1
+ import { ReactNode } from "react";
2
+ import {
3
+ StyleProp,
4
+ ViewStyle,
5
+ TextStyle,
6
+ ImageSourcePropType,
7
+ } from "react-native";
8
+ import { ImageStyle } from "expo-image";
4
9
 
5
10
  export interface CardProps {
6
11
  children?: ReactNode;
@@ -9,7 +14,7 @@ export interface CardProps {
9
14
  disabled?: boolean;
10
15
  elevation?: number;
11
16
  testID?: string;
12
- variant?: 'outlined' | 'elevated' | 'filled' | 'glass';
17
+ variant?: "outlined" | "elevated" | "filled" | "glass";
13
18
  backgroundColor?: string;
14
19
  borderColor?: string;
15
20
  borderRadius?: number;
@@ -17,12 +22,12 @@ export interface CardProps {
17
22
  padding?: number | { horizontal?: number; vertical?: number };
18
23
  backgroundImage?: {
19
24
  source: ImageSourcePropType;
20
- resizeMode?: 'cover' | 'contain' | 'stretch' | 'repeat' | 'center';
25
+ resizeMode?: "cover" | "contain" | "stretch" | "repeat" | "center";
21
26
  blurRadius?: number;
22
27
  opacity?: number;
23
28
  style?: StyleProp<ViewStyle>;
24
29
  imageStyle?: ImageStyle;
25
- },
30
+ };
26
31
  glassEffect?: {
27
32
  opacity?: number;
28
33
  blur?: number;
@@ -30,12 +35,12 @@ export interface CardProps {
30
35
  borderWidth?: number;
31
36
  borderColor?: string;
32
37
  };
33
- gradient? :{
38
+ gradient?: {
34
39
  colors: string[];
35
40
  start?: { x: number; y: number };
36
41
  end?: { x: number; y: number };
37
42
  style?: object;
38
- }
43
+ };
39
44
  }
40
45
 
41
46
  export interface CardHeaderProps {
@@ -60,7 +65,13 @@ export interface CardFooterProps {
60
65
  children: ReactNode;
61
66
  style?: StyleProp<ViewStyle>;
62
67
  inset?: boolean;
63
- justifyContent?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
68
+ justifyContent?:
69
+ | "flex-start"
70
+ | "center"
71
+ | "flex-end"
72
+ | "space-between"
73
+ | "space-around"
74
+ | "space-evenly";
64
75
  }
65
76
 
66
77
  export interface CardImageProps {
@@ -68,7 +79,7 @@ export interface CardImageProps {
68
79
  style?: StyleProp<ImageStyle>;
69
80
  height?: number | string;
70
81
  width?: number | string;
71
- resizeMode?: 'cover' | 'contain' | 'stretch' | 'repeat' | 'center';
82
+ resizeMode?: "cover" | "contain" | "stretch" | "repeat" | "center";
72
83
  borderRadius?: number;
73
84
  overlay?: ReactNode;
74
85
  }
@@ -12,13 +12,12 @@ import {
12
12
  TouchableWithoutFeedback,
13
13
  Platform,
14
14
  StatusBar,
15
- Image,
16
15
  TextStyle,
17
16
  ViewStyle,
18
- ImageStyle,
19
17
  Animated,
20
18
  Easing,
21
19
  } from "react-native";
20
+ import { Image, ImageStyle} from 'expo-image';
22
21
  import CloseIcon from "../CloseIcon/CloseIcon";
23
22
 
24
23
  interface PopupProps {
@@ -130,7 +129,7 @@ const Popup: FC<PopupProps> = ({
130
129
  <Image
131
130
  source={illustrationImage}
132
131
  style={[styles.illustrationImage, illustrationStyle]}
133
- resizeMode="contain"
132
+ contentFit="contain"
134
133
  />
135
134
  </View>
136
135
  )}
@@ -4,12 +4,12 @@ import {
4
4
  Text,
5
5
  StyleSheet,
6
6
  TouchableOpacity,
7
- Image,
8
7
  Pressable,
9
8
  ImageSourcePropType,
10
9
  StyleProp,
11
10
  ViewStyle,
12
11
  } from "react-native";
12
+ import { Image } from 'expo-image';
13
13
  import BottomSheet, {
14
14
  BottomSheetView,
15
15
  BottomSheetProps,
@@ -93,7 +93,7 @@ export interface CarRentalFormProps {
93
93
  agePickerWrapperStyle?: StyleProp<ViewStyle>;
94
94
  agePickerLabelStyle?: StyleProp<TextStyle>;
95
95
  pickerContainerStyle?: StyleProp<ViewStyle>;
96
- pickerStyle?: StyleProp<ViewStyle>;
96
+ pickerStyle?: StyleProp<TextStyle>;
97
97
  }
98
98
 
99
99
  // --- Component ---
@@ -79,7 +79,7 @@ export interface HotelFormProps {
79
79
  nationalityPickerWrapperStyle?: StyleProp<ViewStyle>;
80
80
  nationalityPickerLabelStyle?: StyleProp<TextStyle>;
81
81
  pickerContainerStyle?: StyleProp<ViewStyle>;
82
- pickerStyle?: StyleProp<ViewStyle>;
82
+ pickerStyle?: StyleProp<TextStyle>;
83
83
  }
84
84
 
85
85
  // Default Nationality Data (can be overridden by prop)