kupos-ui-components-lib 9.10.4 → 9.10.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.
|
@@ -89,7 +89,6 @@ const ANIMATION_MAP = {
|
|
|
89
89
|
};
|
|
90
90
|
function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, children, busStage, serviceDetailsLoading, cityOrigin, cityDestination, translation, orignLabel, destinationLabel, currencySign, isCiva, showRating, showLastSeats, removeArrivalTime, removeDuplicateSeats, isPeruSites, showAvailableSeats, isSeatIcon, isLinatal, isPeru, t = (key) => key, siteType, isAllinBus, isExpand, setIsExpand, coachKey, viewersConfig, isNewUi, showLoginModal, isLoggedIn, showLoginOption, isFeatureDropDownExpand, setIsFeatureDropDownExpand, ticketQuantity, onIncreaseTicketQuantity, onDecreaseTicketQuantity, onRemateUiButtonClick, selectedTimeSlot, onTimeSlotChange, isTimeDropdownOpen, onTimeDropdownToggle, wowDealData, isFlores, }) {
|
|
91
91
|
var _a, _b, _c;
|
|
92
|
-
console.log("🚀 ~ ServiceItemPB ~ serviceItem:", serviceItem);
|
|
93
92
|
const getAnimationIcon = (icon) => {
|
|
94
93
|
var _a;
|
|
95
94
|
const animation = ANIMATION_MAP[icon];
|
package/dist/ui/OfferBanner.js
CHANGED
|
@@ -24,11 +24,12 @@ const NewUiOfferBanner = ({ offerText, isLoggedIn, showLoginModal, showLoginOpti
|
|
|
24
24
|
React.createElement("span", { className: "bold-text", style: { marginLeft: offerText ? "6px" : "3px" } },
|
|
25
25
|
truncateOfferText(offerText),
|
|
26
26
|
" ",
|
|
27
|
-
!hideRegister &&
|
|
27
|
+
!hideRegister &&
|
|
28
|
+
(isLoggedIn && showLoginOption ? null : (React.createElement("span", { onClick: showLoginModal, className: "cursor-pointer" }, "- registro"))),
|
|
28
29
|
" ",
|
|
29
30
|
"\u00A0"),
|
|
30
31
|
" ",
|
|
31
|
-
offerText ? "|" : "",
|
|
32
|
+
offerText ? "| " : "",
|
|
32
33
|
"Termina en\u00A0",
|
|
33
34
|
React.createElement("span", { className: "bold-text text-end", ref: (node) => CommonService.startCountdown(node, 599), style: { fontVariantNumeric: "tabular-nums", display: "inline-block" } }))));
|
|
34
35
|
const LegacyOfferBanner = ({ offerText, getAnimationIcon, }) => (React.createElement("div", { className: "flex items-center" },
|
package/package.json
CHANGED
|
@@ -144,7 +144,6 @@ function ServiceItemPB({
|
|
|
144
144
|
wowDealData,
|
|
145
145
|
isFlores,
|
|
146
146
|
}: ServiceItemProps & { currencySign?: string }): React.ReactElement {
|
|
147
|
-
console.log("🚀 ~ ServiceItemPB ~ serviceItem:", serviceItem);
|
|
148
147
|
const getAnimationIcon = (icon: string) => {
|
|
149
148
|
const animation = ANIMATION_MAP[icon];
|
|
150
149
|
if (!animation) return null;
|
package/src/ui/OfferBanner.tsx
CHANGED
|
@@ -106,14 +106,15 @@ const NewUiOfferBanner: React.FC<NewUiOfferBannerProps> = ({
|
|
|
106
106
|
style={{ marginLeft: offerText ? "6px" : "3px" }}
|
|
107
107
|
>
|
|
108
108
|
{truncateOfferText(offerText)}{" "}
|
|
109
|
-
{!hideRegister &&
|
|
110
|
-
|
|
111
|
-
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
{!hideRegister &&
|
|
110
|
+
(isLoggedIn && showLoginOption ? null : (
|
|
111
|
+
<span onClick={showLoginModal} className="cursor-pointer">
|
|
112
|
+
- registro
|
|
113
|
+
</span>
|
|
114
|
+
))}{" "}
|
|
114
115
|
|
|
115
116
|
</span>{" "}
|
|
116
|
-
{offerText ? "|" : ""}
|
|
117
|
+
{offerText ? "| " : ""}
|
|
117
118
|
Termina en
|
|
118
119
|
<span
|
|
119
120
|
className="bold-text text-end"
|
|
@@ -220,7 +221,7 @@ const OfferBanner: React.FC<OfferBannerProps> = ({
|
|
|
220
221
|
if (isDpEnabledWithoutDiscounts) {
|
|
221
222
|
return <PopularServiceBanner getAnimationIcon={getAnimationIcon} />;
|
|
222
223
|
}
|
|
223
|
-
|
|
224
|
+
|
|
224
225
|
const hasDp = hasDpDiscounts(serviceItem);
|
|
225
226
|
|
|
226
227
|
if (hasDp || (isNewUiEnabled && serviceItem?.offer_text)) {
|