related-ui-components 2.0.2 → 2.0.4
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/module/app.js +31 -147
- package/lib/module/app.js.map +1 -1
- package/lib/module/components/Card/templates/DealCardWithBackgroundImage.js +1 -1
- package/lib/module/components/Card/templates/DealCardWithBackgroundImage.js.map +1 -1
- package/lib/module/components/Card/templates/SelaDealCard.js +52 -92
- package/lib/module/components/Card/templates/SelaDealCard.js.map +1 -1
- package/lib/module/components/LockOverlay/LockOverlay.js +84 -33
- package/lib/module/components/LockOverlay/LockOverlay.js.map +1 -1
- package/lib/typescript/src/app.d.ts.map +1 -1
- package/lib/typescript/src/components/Card/templates/SelaDealCard.d.ts +3 -0
- package/lib/typescript/src/components/Card/templates/SelaDealCard.d.ts.map +1 -1
- package/lib/typescript/src/components/LockOverlay/LockOverlay.d.ts +10 -7
- package/lib/typescript/src/components/LockOverlay/LockOverlay.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/app.tsx +22 -119
- package/src/components/Card/templates/DealCardWithBackgroundImage.tsx +1 -1
- package/src/components/Card/templates/SelaDealCard.tsx +237 -259
- package/src/components/LockOverlay/LockOverlay.tsx +86 -35
package/lib/module/app.js
CHANGED
|
@@ -1,154 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { GestureHandlerRootView } from "react-native-gesture-handler";
|
|
9
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { SafeAreaView } from "react-native";
|
|
5
|
+
import { SelaDealCard } from "./components/index.js";
|
|
6
|
+
import { RelatedProvider } from "./theme/index.js";
|
|
7
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
8
|
const MyScreen = () => {
|
|
11
|
-
const [isFilterVisible, setIsFilterVisible] = useState(false);
|
|
12
|
-
const {
|
|
13
|
-
theme
|
|
14
|
-
} = useTheme();
|
|
15
|
-
const handleApplyFilters = result => {
|
|
16
|
-
console.log("Filters applied:", result);
|
|
17
|
-
// Process filter results...
|
|
18
|
-
};
|
|
19
|
-
const rewardsData = [{
|
|
20
|
-
icon: /*#__PURE__*/_jsx(Ionicons, {
|
|
21
|
-
name: "briefcase-outline",
|
|
22
|
-
size: 30,
|
|
23
|
-
color: theme.primary
|
|
24
|
-
}),
|
|
25
|
-
activeIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
26
|
-
name: "briefcase-outline",
|
|
27
|
-
size: 30,
|
|
28
|
-
color: theme.onPrimary
|
|
29
|
-
}),
|
|
30
|
-
title: "Aqua Guardian",
|
|
31
|
-
description: "Maintain water usage below the community average for a month.",
|
|
32
|
-
isActive: false,
|
|
33
|
-
status: "0/1",
|
|
34
|
-
statusBackgroundColor: "#FFCDD2",
|
|
35
|
-
statusTextColor: "#D32F2F"
|
|
36
|
-
}, {
|
|
37
|
-
icon: /*#__PURE__*/_jsx(Ionicons, {
|
|
38
|
-
name: "heart-outline",
|
|
39
|
-
size: 30,
|
|
40
|
-
color: theme.primary
|
|
41
|
-
}),
|
|
42
|
-
activeIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
43
|
-
name: "heart-outline",
|
|
44
|
-
size: 30,
|
|
45
|
-
color: theme.onPrimary
|
|
46
|
-
}),
|
|
47
|
-
title: "Wellness Warrior",
|
|
48
|
-
description: "Complete 30 days of healthy hydration tracking.",
|
|
49
|
-
isActive: true,
|
|
50
|
-
status: "15/30",
|
|
51
|
-
statusBackgroundColor: "#C8E6C9",
|
|
52
|
-
statusTextColor: "#388E3C"
|
|
53
|
-
}, {
|
|
54
|
-
icon: /*#__PURE__*/_jsx(Ionicons, {
|
|
55
|
-
name: "airplane-outline",
|
|
56
|
-
size: 24,
|
|
57
|
-
color: theme.helper
|
|
58
|
-
}),
|
|
59
|
-
activeIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
60
|
-
name: "airplane-outline",
|
|
61
|
-
size: 24,
|
|
62
|
-
color: theme.primary
|
|
63
|
-
}),
|
|
64
|
-
title: "Eco Traveler",
|
|
65
|
-
description: "Log 5 trips where you chose sustainable travel options.",
|
|
66
|
-
isActive: false,
|
|
67
|
-
status: "2/5",
|
|
68
|
-
statusBackgroundColor: theme.disabled,
|
|
69
|
-
statusTextColor: theme.text
|
|
70
|
-
}, {
|
|
71
|
-
icon: /*#__PURE__*/_jsx(Ionicons, {
|
|
72
|
-
name: "school-outline",
|
|
73
|
-
size: 24,
|
|
74
|
-
color: theme.helper
|
|
75
|
-
}),
|
|
76
|
-
activeIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
77
|
-
name: "school-outline",
|
|
78
|
-
size: 24,
|
|
79
|
-
color: theme.primary
|
|
80
|
-
}),
|
|
81
|
-
title: "Knowledge Seeker",
|
|
82
|
-
description: "Complete all water conservation learning modules.",
|
|
83
|
-
isActive: false,
|
|
84
|
-
status: "3/5",
|
|
85
|
-
statusBackgroundColor: theme.disabled,
|
|
86
|
-
statusTextColor: theme.text
|
|
87
|
-
}, {
|
|
88
|
-
icon: /*#__PURE__*/_jsx(Ionicons, {
|
|
89
|
-
name: "settings-outline",
|
|
90
|
-
size: 24,
|
|
91
|
-
color: theme.helper
|
|
92
|
-
}),
|
|
93
|
-
activeIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
94
|
-
name: "settings-outline",
|
|
95
|
-
size: 24,
|
|
96
|
-
color: theme.primary
|
|
97
|
-
}),
|
|
98
|
-
title: "Smart Saver",
|
|
99
|
-
description: "Set up and use all water-saving features in the app.",
|
|
100
|
-
isActive: true,
|
|
101
|
-
status: "4/4",
|
|
102
|
-
statusBackgroundColor: theme.primary,
|
|
103
|
-
statusTextColor: theme.background
|
|
104
|
-
}];
|
|
105
9
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
106
|
-
children: /*#__PURE__*/_jsx(
|
|
107
|
-
children: /*#__PURE__*/_jsx(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
children: /*#__PURE__*/_jsxs(ScratchCardContent, {
|
|
133
|
-
style: {
|
|
134
|
-
backgroundColor: "#FFD700"
|
|
135
|
-
},
|
|
136
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
137
|
-
style: {
|
|
138
|
-
fontSize: 24,
|
|
139
|
-
fontWeight: "bold",
|
|
140
|
-
color: "#000"
|
|
141
|
-
},
|
|
142
|
-
children: "50% OFF COUPON"
|
|
143
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
144
|
-
style: {
|
|
145
|
-
marginTop: 8,
|
|
146
|
-
color: "#333"
|
|
147
|
-
},
|
|
148
|
-
children: "Use code: SCRATCH50"
|
|
149
|
-
})]
|
|
150
|
-
})
|
|
151
|
-
})
|
|
10
|
+
children: /*#__PURE__*/_jsx(RelatedProvider, {
|
|
11
|
+
children: /*#__PURE__*/_jsx(SafeAreaView, {
|
|
12
|
+
style: {
|
|
13
|
+
padding: 50
|
|
14
|
+
},
|
|
15
|
+
children: /*#__PURE__*/_jsx(SelaDealCard, {
|
|
16
|
+
variant: "horizontal",
|
|
17
|
+
isRTL: true,
|
|
18
|
+
backgroundImage: require("./assets/images/namshi-banner.png") // Your image for the horizontal card
|
|
19
|
+
,
|
|
20
|
+
label: "Offer",
|
|
21
|
+
lockOverlay: true,
|
|
22
|
+
providerName: "Altanfeethi",
|
|
23
|
+
providerNameStyle: {
|
|
24
|
+
color: 'yellow'
|
|
25
|
+
} // Specific style for provider name
|
|
26
|
+
,
|
|
27
|
+
description: "1 Year Membership",
|
|
28
|
+
descriptionStyle: {
|
|
29
|
+
color: 'white'
|
|
30
|
+
},
|
|
31
|
+
price: "20,000 pts",
|
|
32
|
+
onPress: () => console.log("Horizontal Sela Card Pressed"),
|
|
33
|
+
width: 320 // Example width
|
|
34
|
+
,
|
|
35
|
+
height: 180 // Example height
|
|
152
36
|
})
|
|
153
37
|
})
|
|
154
38
|
})
|
package/lib/module/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","SafeAreaView","SelaDealCard","RelatedProvider","jsx","_jsx","Fragment","_Fragment","MyScreen","children","style","padding","variant","isRTL","backgroundImage","require","label","lockOverlay","providerName","providerNameStyle","color","description","descriptionStyle","price","onPress","console","log","width","height"],"sourceRoot":"..\\..\\src","sources":["app.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAoB,OAAO;AACvC,SAASC,YAAY,QAAc,cAAc;AACjD,SAASC,YAAY,QAAQ,uBAAc;AAC3C,SAASC,eAAe,QAAQ,kBAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA;AAE1C,MAAMC,QAAQ,GAAGA,CAAA,KAAM;EACrB,oBACEH,IAAA,CAAAE,SAAA;IAAAE,QAAA,eACEJ,IAAA,CAACF,eAAe;MAAAM,QAAA,eACdJ,IAAA,CAACJ,YAAY;QAACS,KAAK,EAAE;UAAEC,OAAO,EAAE;QAAG,CAAE;QAAAF,QAAA,eACnCJ,IAAA,CAACH,YAAY;UACXU,OAAO,EAAC,YAAY;UACpBC,KAAK;UACLC,eAAe,EAAEC,OAAO,CAAC,mCAAmC,CAAE,CAAC;UAAA;UAC/DC,KAAK,EAAC,OAAO;UACbC,WAAW;UACXC,YAAY,EAAC,aAAa;UAC1BC,iBAAiB,EAAE;YAAEC,KAAK,EAAE;UAAS,CAAE,CAAC;UAAA;UACxCC,WAAW,EAAC,mBAAmB;UAC/BC,gBAAgB,EAAE;YAAEF,KAAK,EAAE;UAAQ,CAAE;UACrCG,KAAK,EAAC,YAAY;UAClBC,OAAO,EAAEA,CAAA,KAAMC,OAAO,CAACC,GAAG,CAAC,8BAA8B,CAAE;UAC3DC,KAAK,EAAE,GAAI,CAAC;UAAA;UACZC,MAAM,EAAE,GAAI,CAAC;QAAA,CACd;MAAC,CACU;IAAC,CACA;EAAC,CAClB,CAAC;AAEP,CAAC;AAED,eAAepB,QAAQ","ignoreList":[]}
|
|
@@ -155,7 +155,7 @@ const DealCardWithBackgroundImage = ({
|
|
|
155
155
|
children: [/*#__PURE__*/_jsx(LockOverlay, {
|
|
156
156
|
visible: overlayVisible,
|
|
157
157
|
containerStyle: overlayStyle,
|
|
158
|
-
|
|
158
|
+
contentPosition: overlayCover == "background" ? "center" : "top-center",
|
|
159
159
|
onPress: onOverlayPress
|
|
160
160
|
}), /*#__PURE__*/_jsx(CardHeader, {
|
|
161
161
|
left: headerLeft,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","View","Text","TouchableOpacity","StyleSheet","Card","CardHeader","CardContent","useTheme","CardFooter","ProgressBar","LockOverlay","jsx","_jsx","jsxs","_jsxs","DealCardWithBackgroundImage","backgroundImage","onPress","label","labelContainerStyle","labelStyle","actionIconDefault","actionIconActive","onActionPress","innerCardStyle","dealDescription","dealDescriptionStyle","dealPrice","dealPriceStyle","dealProviderName","dealProviderNameStyle","progressBar","progressBarText","progressBarTextPosition","progressBarTextAlign","progressValue","progressHeight","progressWidth","remainingProgressColor","progressColor","innerCardVariant","style","width","isRTL","initialIsRTL","overlayVisible","overlayCover","borderRadius","onOverlayPress","theme","themeIsRTL","isActive","setIsActive","handleActionPress","labelContent","backgroundColor","surface","paddingVertical","paddingHorizontal","children","color","onSurface","actionContent","hitSlop","top","left","bottom","right","headerLeft","headerRight","mainCardBorderRadius","defaultInnerCardBorderRadius","defaultFloatingBottomOffset","flatInnerCardStyle","flatten","actualFloatingBottomOffset","getVariantStyle","position","marginHorizontal","marginVertical","paddingBottom","computedInnerCardStyle","finalInnerBorderRadius","overlayStyle","zIndex","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","overflow","height","source","resizeMode","visible","containerStyle","
|
|
1
|
+
{"version":3,"names":["React","useState","View","Text","TouchableOpacity","StyleSheet","Card","CardHeader","CardContent","useTheme","CardFooter","ProgressBar","LockOverlay","jsx","_jsx","jsxs","_jsxs","DealCardWithBackgroundImage","backgroundImage","onPress","label","labelContainerStyle","labelStyle","actionIconDefault","actionIconActive","onActionPress","innerCardStyle","dealDescription","dealDescriptionStyle","dealPrice","dealPriceStyle","dealProviderName","dealProviderNameStyle","progressBar","progressBarText","progressBarTextPosition","progressBarTextAlign","progressValue","progressHeight","progressWidth","remainingProgressColor","progressColor","innerCardVariant","style","width","isRTL","initialIsRTL","overlayVisible","overlayCover","borderRadius","onOverlayPress","theme","themeIsRTL","isActive","setIsActive","handleActionPress","labelContent","backgroundColor","surface","paddingVertical","paddingHorizontal","children","color","onSurface","actionContent","hitSlop","top","left","bottom","right","headerLeft","headerRight","mainCardBorderRadius","defaultInnerCardBorderRadius","defaultFloatingBottomOffset","flatInnerCardStyle","flatten","actualFloatingBottomOffset","getVariantStyle","position","marginHorizontal","marginVertical","paddingBottom","computedInnerCardStyle","finalInnerBorderRadius","overlayStyle","zIndex","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","overflow","height","source","resizeMode","visible","containerStyle","contentPosition","alignItems","flex","justifyContent","padding","variant","title","titleColor","text","titleStyle","fontSize","textAlign","subtitle","subtitleColor","helper","subtitleStyle","flexDirection","progress","remainingColor","textPosition","showText","textStyle","primary","fontWeight"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/Card/templates/DealCardWithBackgroundImage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,Q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/C,IAAA,CAACX,IAAI;gBACHwC,KAAK,EAAE,CACL;kBACEgE,QAAQ,EAAE,EAAE;kBACZ7C,KAAK,EAAEX,KAAK,CAACoE,OAAO;kBACpBC,UAAU,EAAE,MAAM;kBAClBZ,SAAS,EAAE/D,KAAK,GAAG,MAAM,GAAG;gBAC9B,CAAC,EACDf,cAAc,CACd;gBAAA+B,QAAA,EAEDhC;cAAS,CACN;YAAC,CACH,CAAC;UAAA,CACG,CACb;QAAA,CACG;MAAC,CACI;IAAC,CACV,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,eAAeZ,2BAA2B","ignoreList":[]}
|
|
@@ -5,6 +5,8 @@ import React from "react";
|
|
|
5
5
|
import { View, Text, StyleSheet } from "react-native";
|
|
6
6
|
import Card from "../Card.js"; // Adjust path to your Card component
|
|
7
7
|
import { useTheme } from "../../../theme/ThemeContext.js"; // Adjust path
|
|
8
|
+
|
|
9
|
+
import { LockOverlay } from "../../LockOverlay/index.js";
|
|
8
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
11
|
const SelaDealCard = ({
|
|
10
12
|
variant,
|
|
@@ -27,64 +29,29 @@ const SelaDealCard = ({
|
|
|
27
29
|
isRTL: propIsRTL,
|
|
28
30
|
borderRadius = 12,
|
|
29
31
|
// Default based on images
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
priceBackgroundColor,
|
|
34
|
-
priceTextColor
|
|
32
|
+
darkOverlayEnabled = true,
|
|
33
|
+
darkOverlayColor = "rgba(0, 0, 0, 0.3)",
|
|
34
|
+
lockOverlay = false
|
|
35
35
|
}) => {
|
|
36
36
|
const {
|
|
37
37
|
theme,
|
|
38
38
|
isRTL: themeIsRTL
|
|
39
39
|
} = useTheme();
|
|
40
40
|
const isRTL = propIsRTL !== undefined ? propIsRTL : themeIsRTL;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
// Image 1 (Horizontal "Offer"): White background, dark text.
|
|
49
|
-
// Image 2 (Vertical "Booking"): Appears to be a light text on image, no distinct bg.
|
|
50
|
-
// For consistency, let's assume label has a background.
|
|
51
|
-
const actualLabelBgColor = labelBackgroundColor || theme.surface;
|
|
52
|
-
const actualLabelTxtColor = labelTextColor || theme.onSurface;
|
|
53
|
-
const finalLabelContainerStyle = [styles.labelContainerBase, {
|
|
54
|
-
backgroundColor: actualLabelBgColor
|
|
55
|
-
}, labelContainerStyle];
|
|
56
|
-
const finalLabelStyle = [styles.labelTextBase, {
|
|
57
|
-
color: actualLabelTxtColor
|
|
58
|
-
}, labelStyle];
|
|
59
|
-
|
|
60
|
-
// --- Price Container Styles ---
|
|
61
|
-
// Horizontal (Image 1): Bright cyan/teal background, dark text.
|
|
62
|
-
const defaultHorizontalPriceBg = priceBackgroundColor || "#17D4C6";
|
|
63
|
-
const defaultHorizontalPriceText = priceTextColor || "#000000";
|
|
64
|
-
// Vertical (Image 2): Semi-transparent dark background, white text.
|
|
65
|
-
const defaultVerticalPriceBg = priceBackgroundColor || "rgba(0, 0, 0, 0.5)";
|
|
66
|
-
const defaultVerticalPriceText = priceTextColor || "#FFFFFF";
|
|
67
|
-
const actualPriceBgColor = variant === "horizontal" ? defaultHorizontalPriceBg : defaultVerticalPriceBg;
|
|
68
|
-
const actualPriceTxtColor = variant === "horizontal" ? defaultHorizontalPriceText : defaultVerticalPriceText;
|
|
69
|
-
const finalPriceContainerStyle = [styles.priceContainerBase, {
|
|
70
|
-
backgroundColor: actualPriceBgColor
|
|
71
|
-
}, variant === "horizontal" ? styles.priceContainerHorizontal : styles.priceContainerVertical, priceContainerStyle];
|
|
72
|
-
const finalPriceStyle = [styles.priceTextBase, {
|
|
73
|
-
color: actualPriceTxtColor
|
|
74
|
-
}, priceStyle];
|
|
75
|
-
|
|
76
|
-
// --- Text Styles for Content on Image ---
|
|
77
|
-
const providerTextStyle = [styles.providerNameBase,
|
|
78
|
-
// In images, provider name is often yellow. This can be set via providerNameStyle.
|
|
79
|
-
{
|
|
80
|
-
color: mainImageTextColor,
|
|
41
|
+
const styles = getStyles(theme, isRTL);
|
|
42
|
+
const finalLabelContainerStyle = [styles.labelContainerBase, labelContainerStyle];
|
|
43
|
+
const finalLabelStyle = [styles.labelTextBase, labelStyle];
|
|
44
|
+
const finalPriceContainerStyle = [styles.priceContainerBase, variant === "horizontal" ? styles.priceContainerHorizontal : styles.priceContainerVertical, priceContainerStyle];
|
|
45
|
+
const finalPriceStyle = [styles.priceTextBase, priceStyle];
|
|
46
|
+
const providerTextStyle = [styles.providerNameBase, {
|
|
47
|
+
color: theme.onSurface,
|
|
81
48
|
textAlign: isRTL ? "right" : "left"
|
|
82
49
|
}, providerNameStyle];
|
|
83
50
|
const descriptionTextStyle = [styles.descriptionBase, {
|
|
84
|
-
color:
|
|
51
|
+
color: theme.onSurface,
|
|
85
52
|
textAlign: isRTL ? "right" : "left"
|
|
86
53
|
}, descriptionStyle];
|
|
87
|
-
return /*#__PURE__*/
|
|
54
|
+
return /*#__PURE__*/_jsxs(Card, {
|
|
88
55
|
onPress: onPress,
|
|
89
56
|
style: [styles.cardBase, {
|
|
90
57
|
borderRadius,
|
|
@@ -95,13 +62,22 @@ const SelaDealCard = ({
|
|
|
95
62
|
source: backgroundImage,
|
|
96
63
|
resizeMode: "cover"
|
|
97
64
|
},
|
|
98
|
-
children: /*#__PURE__*/
|
|
65
|
+
children: [darkOverlayEnabled && /*#__PURE__*/_jsx(View, {
|
|
66
|
+
style: [StyleSheet.absoluteFill, {
|
|
67
|
+
backgroundColor: darkOverlayColor
|
|
68
|
+
}, {
|
|
69
|
+
borderRadius: borderRadius
|
|
70
|
+
}]
|
|
71
|
+
}), /*#__PURE__*/_jsx(LockOverlay, {
|
|
72
|
+
visible: lockOverlay,
|
|
73
|
+
contentPosition: variant == "horizontal" ? isRTL ? "top-left" : "top-right" : isRTL ? "top-right" : "top-left",
|
|
74
|
+
iconSize: 24,
|
|
75
|
+
text: "",
|
|
76
|
+
overlayOpacity: 0.4
|
|
77
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
99
78
|
style: styles.overlayContainer,
|
|
100
79
|
children: [/*#__PURE__*/_jsx(View, {
|
|
101
|
-
style: [styles.topSection,
|
|
102
|
-
// Horizontal: LTR=left, RTL=right
|
|
103
|
-
// Vertical: LTR=right, RTL=left
|
|
104
|
-
{
|
|
80
|
+
style: [styles.topSection, {
|
|
105
81
|
alignItems: variant === "horizontal" ? isRTL ? "flex-end" : "flex-start" : isRTL ? "flex-start" : "flex-end"
|
|
106
82
|
}],
|
|
107
83
|
children: label && /*#__PURE__*/_jsx(View, {
|
|
@@ -129,10 +105,7 @@ const SelaDealCard = ({
|
|
|
129
105
|
children: price
|
|
130
106
|
})
|
|
131
107
|
})]
|
|
132
|
-
}) :
|
|
133
|
-
/*#__PURE__*/
|
|
134
|
-
// Vertical Variant
|
|
135
|
-
_jsxs(View, {
|
|
108
|
+
}) : /*#__PURE__*/_jsxs(View, {
|
|
136
109
|
style: styles.bottomContentVertical,
|
|
137
110
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
138
111
|
style: styles.textBlockVertical,
|
|
@@ -151,82 +124,69 @@ const SelaDealCard = ({
|
|
|
151
124
|
})
|
|
152
125
|
})]
|
|
153
126
|
})]
|
|
154
|
-
})
|
|
127
|
+
})]
|
|
155
128
|
});
|
|
156
129
|
};
|
|
157
|
-
const
|
|
130
|
+
const getStyles = (theme, isRTL) => StyleSheet.create({
|
|
158
131
|
cardBase: {
|
|
159
132
|
overflow: "hidden",
|
|
160
|
-
// Ensures content respects borderRadius
|
|
161
133
|
position: "relative"
|
|
162
134
|
},
|
|
163
135
|
overlayContainer: {
|
|
164
136
|
flex: 1,
|
|
165
137
|
padding: 16,
|
|
166
|
-
|
|
167
|
-
justifyContent: "space-between" // Pushes top and bottom sections apart
|
|
168
|
-
// Optional: Add a LinearGradient here for a scrim if text readability is an issue
|
|
169
|
-
},
|
|
170
|
-
topSection: {
|
|
171
|
-
// This view ensures the label is positioned correctly (start/end)
|
|
172
|
-
// It will be at the top due to justifyContent: 'space-between' on overlayContainer
|
|
138
|
+
justifyContent: "space-between"
|
|
173
139
|
},
|
|
140
|
+
topSection: {},
|
|
174
141
|
labelContainerBase: {
|
|
175
142
|
paddingVertical: 6,
|
|
176
143
|
paddingHorizontal: 12,
|
|
177
|
-
borderRadius:
|
|
178
|
-
|
|
144
|
+
borderRadius: 8,
|
|
145
|
+
backgroundColor: theme.background
|
|
179
146
|
},
|
|
180
147
|
labelTextBase: {
|
|
181
148
|
fontWeight: "600",
|
|
182
|
-
fontSize: 13
|
|
149
|
+
fontSize: 13,
|
|
150
|
+
color: theme.onBackground
|
|
183
151
|
},
|
|
184
152
|
providerNameBase: {
|
|
185
|
-
// Example: Yellow text in images "Altanfeethi", "Riva Jeddah Yacht Club"
|
|
186
153
|
fontSize: 20,
|
|
187
|
-
|
|
188
|
-
|
|
154
|
+
marginBottom: 2,
|
|
155
|
+
color: theme.secondary
|
|
189
156
|
},
|
|
190
157
|
descriptionBase: {
|
|
191
|
-
|
|
192
|
-
|
|
158
|
+
fontSize: 14,
|
|
159
|
+
color: theme.helper
|
|
193
160
|
},
|
|
194
161
|
priceContainerBase: {
|
|
195
162
|
paddingVertical: 8,
|
|
196
163
|
paddingHorizontal: 16,
|
|
197
|
-
borderRadius: 10
|
|
164
|
+
borderRadius: 10,
|
|
165
|
+
backgroundColor: theme.primary
|
|
198
166
|
},
|
|
199
167
|
priceTextBase: {
|
|
200
|
-
|
|
201
|
-
|
|
168
|
+
fontSize: 16,
|
|
169
|
+
color: theme.onPrimary
|
|
202
170
|
},
|
|
203
|
-
// --- Horizontal Variant Layout ---
|
|
204
171
|
bottomContentHorizontal: {
|
|
205
|
-
flexDirection: "row",
|
|
172
|
+
flexDirection: isRTL ? "row-reverse" : "row",
|
|
206
173
|
justifyContent: "space-between",
|
|
207
|
-
alignItems: "flex-end"
|
|
174
|
+
alignItems: "flex-end"
|
|
208
175
|
},
|
|
209
176
|
textBlockHorizontal: {
|
|
210
177
|
flex: 1,
|
|
211
|
-
|
|
212
|
-
marginRight: 10 // Space between text content and price box
|
|
213
|
-
},
|
|
214
|
-
priceContainerHorizontal: {
|
|
215
|
-
// Specific styling for horizontal price box if needed (e.g., fixed width)
|
|
216
|
-
// Default is to wrap content.
|
|
178
|
+
marginRight: 10
|
|
217
179
|
},
|
|
218
|
-
|
|
180
|
+
priceContainerHorizontal: {},
|
|
219
181
|
bottomContentVertical: {
|
|
220
|
-
flexDirection: "column"
|
|
182
|
+
flexDirection: "column"
|
|
221
183
|
},
|
|
222
184
|
textBlockVertical: {
|
|
223
|
-
marginBottom: 12
|
|
224
|
-
// Text inside will align start/end based on isRTL and individual text styles
|
|
185
|
+
marginBottom: 12
|
|
225
186
|
},
|
|
226
187
|
priceContainerVertical: {
|
|
227
188
|
alignSelf: "stretch",
|
|
228
|
-
|
|
229
|
-
alignItems: "center" // Centers the price text within the wide box
|
|
189
|
+
alignItems: "center"
|
|
230
190
|
}
|
|
231
191
|
});
|
|
232
192
|
export default SelaDealCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","StyleSheet","Card","useTheme","jsx","_jsx","jsxs","_jsxs","SelaDealCard","variant","backgroundImage","label","labelStyle","labelContainerStyle","providerName","providerNameStyle","description","descriptionStyle","price","priceStyle","priceContainerStyle","onPress","style","width","height","isRTL","propIsRTL","borderRadius","
|
|
1
|
+
{"version":3,"names":["React","View","Text","StyleSheet","Card","useTheme","LockOverlay","jsx","_jsx","jsxs","_jsxs","SelaDealCard","variant","backgroundImage","label","labelStyle","labelContainerStyle","providerName","providerNameStyle","description","descriptionStyle","price","priceStyle","priceContainerStyle","onPress","style","width","height","isRTL","propIsRTL","borderRadius","darkOverlayEnabled","darkOverlayColor","lockOverlay","theme","themeIsRTL","undefined","styles","getStyles","finalLabelContainerStyle","labelContainerBase","finalLabelStyle","labelTextBase","finalPriceContainerStyle","priceContainerBase","priceContainerHorizontal","priceContainerVertical","finalPriceStyle","priceTextBase","providerTextStyle","providerNameBase","color","onSurface","textAlign","descriptionTextStyle","descriptionBase","cardBase","source","resizeMode","children","absoluteFill","backgroundColor","visible","contentPosition","iconSize","text","overlayOpacity","overlayContainer","topSection","alignItems","bottomContentHorizontal","textBlockHorizontal","bottomContentVertical","textBlockVertical","create","overflow","position","flex","padding","justifyContent","paddingVertical","paddingHorizontal","background","fontWeight","fontSize","onBackground","marginBottom","secondary","helper","primary","onPrimary","flexDirection","marginRight","alignSelf"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/Card/templates/SelaDealCard.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAIIC,IAAI,EACJC,IAAI,EAGJC,UAAU,QACP,cAAc;AACrB,OAAOC,IAAI,MAAM,YAAS,CAAC,CAAC;AAC5B,SAASC,QAAQ,QAAQ,gCAA6B,CAAC,CAAC;;AAExD,SAASC,WAAW,QAAQ,4BAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA+BhD,MAAMC,YAAyC,GAAGA,CAAC;EAC/CC,OAAO;EACPC,eAAe;EACfC,KAAK;EACLC,UAAU;EACVC,mBAAmB;EACnBC,YAAY;EACZC,iBAAiB;EACjBC,WAAW;EACXC,gBAAgB;EAChBC,KAAK;EACLC,UAAU;EACVC,mBAAmB;EACnBC,OAAO;EACPC,KAAK;EACLC,KAAK,GAAG,MAAM;EACdC,MAAM,GAAGf,OAAO,KAAK,YAAY,GAAG,GAAG,GAAG,GAAG;EAAE;EAC/CgB,KAAK,EAAEC,SAAS;EAChBC,YAAY,GAAG,EAAE;EAAE;EACnBC,kBAAkB,GAAG,IAAI;EACzBC,gBAAgB,GAAG,oBAAoB;EACvCC,WAAW,GAAG;AAClB,CAAC,KAAK;EACF,MAAM;IAAEC,KAAK;IAAEN,KAAK,EAAEO;EAAW,CAAC,GAAG9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