@planetaexo/design-system 0.50.0 → 0.50.1
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/dist/index.cjs +28 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +28 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2885,8 +2885,21 @@ interface TripPageProps {
|
|
|
2885
2885
|
weather?: React.ReactNode;
|
|
2886
2886
|
optionalExtras?: React.ReactNode;
|
|
2887
2887
|
accommodation?: React.ReactNode;
|
|
2888
|
+
/**
|
|
2889
|
+
* Photos rendered inside the Accommodation accordion below the WYSIWYG
|
|
2890
|
+
* body. Same shape as the main full-width `gallery` prop. When provided
|
|
2891
|
+
* with `accommodation` omitted, the accordion still opens to show just
|
|
2892
|
+
* the photos.
|
|
2893
|
+
*/
|
|
2894
|
+
accommodationGallery?: PhotoGalleryPhoto[];
|
|
2888
2895
|
whenItOperates?: React.ReactNode;
|
|
2889
2896
|
food?: React.ReactNode;
|
|
2897
|
+
/**
|
|
2898
|
+
* Photos rendered inside the Food accordion below the WYSIWYG body.
|
|
2899
|
+
* Same shape as the main full-width `gallery` prop. When provided with
|
|
2900
|
+
* `food` omitted, the accordion still opens to show just the photos.
|
|
2901
|
+
*/
|
|
2902
|
+
foodGallery?: PhotoGalleryPhoto[];
|
|
2890
2903
|
termsAndConditions?: React.ReactNode;
|
|
2891
2904
|
meetingPoints?: TripMeetingPoint[];
|
|
2892
2905
|
/**
|
|
@@ -2955,7 +2968,7 @@ interface TripPageProps {
|
|
|
2955
2968
|
features?: Record<string, boolean>;
|
|
2956
2969
|
className?: string;
|
|
2957
2970
|
}
|
|
2958
|
-
declare function TripPage({ title, tagline, destination, duration, images, videoUrl, breadcrumb, chips, highlights, howToGetThere, recommendedFor, overview, overviewHighlights, itinerary, itineraryDays, gallery, included, notIncluded, whatToBring, weather, optionalExtras, accommodation, whenItOperates, food, termsAndConditions, meetingPoints, meetingPoint, faqs, faqInitialCount, sectionIcons, labels, reviews, trustpilot, trustpilotMini, trustpilotHero, priceFrom, currency, season, departureTimes, benefits, currencyEstimates, priceInfo, onBook, bookLabel, siteHeader, uiVariant, features, className, }: TripPageProps): react_jsx_runtime.JSX.Element;
|
|
2971
|
+
declare function TripPage({ title, tagline, destination, duration, images, videoUrl, breadcrumb, chips, highlights, howToGetThere, recommendedFor, overview, overviewHighlights, itinerary, itineraryDays, gallery, included, notIncluded, whatToBring, weather, optionalExtras, accommodation, accommodationGallery, whenItOperates, food, foodGallery, termsAndConditions, meetingPoints, meetingPoint, faqs, faqInitialCount, sectionIcons, labels, reviews, trustpilot, trustpilotMini, trustpilotHero, priceFrom, currency, season, departureTimes, benefits, currencyEstimates, priceInfo, onBook, bookLabel, siteHeader, uiVariant, features, className, }: TripPageProps): react_jsx_runtime.JSX.Element;
|
|
2959
2972
|
|
|
2960
2973
|
type ActivityCardSize = "sm" | "md" | "lg";
|
|
2961
2974
|
interface ActivityCardProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -2885,8 +2885,21 @@ interface TripPageProps {
|
|
|
2885
2885
|
weather?: React.ReactNode;
|
|
2886
2886
|
optionalExtras?: React.ReactNode;
|
|
2887
2887
|
accommodation?: React.ReactNode;
|
|
2888
|
+
/**
|
|
2889
|
+
* Photos rendered inside the Accommodation accordion below the WYSIWYG
|
|
2890
|
+
* body. Same shape as the main full-width `gallery` prop. When provided
|
|
2891
|
+
* with `accommodation` omitted, the accordion still opens to show just
|
|
2892
|
+
* the photos.
|
|
2893
|
+
*/
|
|
2894
|
+
accommodationGallery?: PhotoGalleryPhoto[];
|
|
2888
2895
|
whenItOperates?: React.ReactNode;
|
|
2889
2896
|
food?: React.ReactNode;
|
|
2897
|
+
/**
|
|
2898
|
+
* Photos rendered inside the Food accordion below the WYSIWYG body.
|
|
2899
|
+
* Same shape as the main full-width `gallery` prop. When provided with
|
|
2900
|
+
* `food` omitted, the accordion still opens to show just the photos.
|
|
2901
|
+
*/
|
|
2902
|
+
foodGallery?: PhotoGalleryPhoto[];
|
|
2890
2903
|
termsAndConditions?: React.ReactNode;
|
|
2891
2904
|
meetingPoints?: TripMeetingPoint[];
|
|
2892
2905
|
/**
|
|
@@ -2955,7 +2968,7 @@ interface TripPageProps {
|
|
|
2955
2968
|
features?: Record<string, boolean>;
|
|
2956
2969
|
className?: string;
|
|
2957
2970
|
}
|
|
2958
|
-
declare function TripPage({ title, tagline, destination, duration, images, videoUrl, breadcrumb, chips, highlights, howToGetThere, recommendedFor, overview, overviewHighlights, itinerary, itineraryDays, gallery, included, notIncluded, whatToBring, weather, optionalExtras, accommodation, whenItOperates, food, termsAndConditions, meetingPoints, meetingPoint, faqs, faqInitialCount, sectionIcons, labels, reviews, trustpilot, trustpilotMini, trustpilotHero, priceFrom, currency, season, departureTimes, benefits, currencyEstimates, priceInfo, onBook, bookLabel, siteHeader, uiVariant, features, className, }: TripPageProps): react_jsx_runtime.JSX.Element;
|
|
2971
|
+
declare function TripPage({ title, tagline, destination, duration, images, videoUrl, breadcrumb, chips, highlights, howToGetThere, recommendedFor, overview, overviewHighlights, itinerary, itineraryDays, gallery, included, notIncluded, whatToBring, weather, optionalExtras, accommodation, accommodationGallery, whenItOperates, food, foodGallery, termsAndConditions, meetingPoints, meetingPoint, faqs, faqInitialCount, sectionIcons, labels, reviews, trustpilot, trustpilotMini, trustpilotHero, priceFrom, currency, season, departureTimes, benefits, currencyEstimates, priceInfo, onBook, bookLabel, siteHeader, uiVariant, features, className, }: TripPageProps): react_jsx_runtime.JSX.Element;
|
|
2959
2972
|
|
|
2960
2973
|
type ActivityCardSize = "sm" | "md" | "lg";
|
|
2961
2974
|
interface ActivityCardProps {
|
package/dist/index.js
CHANGED
|
@@ -12857,8 +12857,10 @@ function TripPage({
|
|
|
12857
12857
|
weather,
|
|
12858
12858
|
optionalExtras,
|
|
12859
12859
|
accommodation,
|
|
12860
|
+
accommodationGallery,
|
|
12860
12861
|
whenItOperates,
|
|
12861
12862
|
food,
|
|
12863
|
+
foodGallery,
|
|
12862
12864
|
termsAndConditions,
|
|
12863
12865
|
meetingPoints,
|
|
12864
12866
|
meetingPoint,
|
|
@@ -12926,7 +12928,7 @@ function TripPage({
|
|
|
12926
12928
|
{ id: "included", label: (_c2 = labels == null ? void 0 : labels.whatIsIncluded) != null ? _c2 : "What is Included", show: !!(included == null ? void 0 : included.length) },
|
|
12927
12929
|
{ id: "what-to-bring", label: (_d2 = labels == null ? void 0 : labels.whatToBring) != null ? _d2 : "What to Bring", show: !!(whatToBring == null ? void 0 : whatToBring.length) },
|
|
12928
12930
|
{ id: "when-it-operates", label: (_e2 = labels == null ? void 0 : labels.whenItOperates) != null ? _e2 : "When this tour operates", show: !!whenItOperates },
|
|
12929
|
-
{ id: "accommodation", label: (_f2 = labels == null ? void 0 : labels.accommodation) != null ? _f2 : "Accommodation", show: !!accommodation },
|
|
12931
|
+
{ id: "accommodation", label: (_f2 = labels == null ? void 0 : labels.accommodation) != null ? _f2 : "Accommodation", show: !!(accommodation || (accommodationGallery == null ? void 0 : accommodationGallery.length)) },
|
|
12930
12932
|
{ id: "terms", label: (_g2 = labels == null ? void 0 : labels.terms) != null ? _g2 : "Terms", show: !!termsAndConditions },
|
|
12931
12933
|
{ id: "faq", label: (_h2 = labels == null ? void 0 : labels.faq) != null ? _h2 : "FAQ", show: !!(faqs == null ? void 0 : faqs.length) },
|
|
12932
12934
|
{ id: "reviews", label: (_i2 = labels == null ? void 0 : labels.reviews) != null ? _i2 : "Reviews", show: !!(trustpilot || (reviews == null ? void 0 : reviews.length)) }
|
|
@@ -13137,7 +13139,7 @@ function TripPage({
|
|
|
13137
13139
|
}
|
|
13138
13140
|
)
|
|
13139
13141
|
] }),
|
|
13140
|
-
(howToGetThere || (whatToBring == null ? void 0 : whatToBring.length) || weather || optionalExtras || accommodation || food || (meetingPoints == null ? void 0 : meetingPoints.length) || meetingPoint || termsAndConditions || whenItOperates) && /* @__PURE__ */ jsxs(
|
|
13142
|
+
(howToGetThere || (whatToBring == null ? void 0 : whatToBring.length) || weather || optionalExtras || accommodation || (accommodationGallery == null ? void 0 : accommodationGallery.length) || food || (foodGallery == null ? void 0 : foodGallery.length) || (meetingPoints == null ? void 0 : meetingPoints.length) || meetingPoint || termsAndConditions || whenItOperates) && /* @__PURE__ */ jsxs(
|
|
13141
13143
|
Accordion,
|
|
13142
13144
|
{
|
|
13143
13145
|
multiple: false,
|
|
@@ -13160,7 +13162,7 @@ function TripPage({
|
|
|
13160
13162
|
]
|
|
13161
13163
|
}
|
|
13162
13164
|
),
|
|
13163
|
-
accommodation && /* @__PURE__ */ jsxs(
|
|
13165
|
+
(accommodation || accommodationGallery && accommodationGallery.length > 0) && /* @__PURE__ */ jsxs(
|
|
13164
13166
|
AccordionItem,
|
|
13165
13167
|
{
|
|
13166
13168
|
value: "accommodation",
|
|
@@ -13171,11 +13173,21 @@ function TripPage({
|
|
|
13171
13173
|
(sectionIcons == null ? void 0 : sectionIcons.accommodation) ? /* @__PURE__ */ jsx("span", { className: "text-primary [&>svg]:h-5 [&>svg]:w-5", children: sectionIcons.accommodation }) : /* @__PURE__ */ jsx(BedDoubleIcon, { className: "h-5 w-5 text-primary" }),
|
|
13172
13174
|
(_g = labels == null ? void 0 : labels.accommodation) != null ? _g : "Accommodation"
|
|
13173
13175
|
] }) }),
|
|
13174
|
-
/* @__PURE__ */
|
|
13176
|
+
/* @__PURE__ */ jsxs(AccordionContent, { className: "pb-6", children: [
|
|
13177
|
+
accommodation && /* @__PURE__ */ jsx("div", { className: "text-base text-foreground leading-relaxed space-y-3 [&_strong]:font-semibold [&_a]:text-primary [&_a]:underline", children: accommodation }),
|
|
13178
|
+
accommodationGallery && accommodationGallery.length > 0 && /* @__PURE__ */ jsx("div", { className: cn(accommodation && "mt-6"), children: /* @__PURE__ */ jsx(
|
|
13179
|
+
PhotoGallery,
|
|
13180
|
+
{
|
|
13181
|
+
photos: accommodationGallery,
|
|
13182
|
+
variant: "gridCompact",
|
|
13183
|
+
initialVisible: 6
|
|
13184
|
+
}
|
|
13185
|
+
) })
|
|
13186
|
+
] })
|
|
13175
13187
|
]
|
|
13176
13188
|
}
|
|
13177
13189
|
),
|
|
13178
|
-
food && /* @__PURE__ */ jsxs(
|
|
13190
|
+
(food || foodGallery && foodGallery.length > 0) && /* @__PURE__ */ jsxs(
|
|
13179
13191
|
AccordionItem,
|
|
13180
13192
|
{
|
|
13181
13193
|
value: "food",
|
|
@@ -13186,7 +13198,17 @@ function TripPage({
|
|
|
13186
13198
|
(sectionIcons == null ? void 0 : sectionIcons.food) ? /* @__PURE__ */ jsx("span", { className: "text-primary [&>svg]:h-5 [&>svg]:w-5", children: sectionIcons.food }) : /* @__PURE__ */ jsx(UtensilsIcon, { className: "h-5 w-5 text-primary" }),
|
|
13187
13199
|
(_h = labels == null ? void 0 : labels.food) != null ? _h : "Food"
|
|
13188
13200
|
] }) }),
|
|
13189
|
-
/* @__PURE__ */
|
|
13201
|
+
/* @__PURE__ */ jsxs(AccordionContent, { className: "pb-6", children: [
|
|
13202
|
+
food && /* @__PURE__ */ jsx("div", { className: "text-base text-foreground leading-relaxed space-y-3 [&_strong]:font-semibold [&_a]:text-primary [&_a]:underline", children: food }),
|
|
13203
|
+
foodGallery && foodGallery.length > 0 && /* @__PURE__ */ jsx("div", { className: cn(food && "mt-6"), children: /* @__PURE__ */ jsx(
|
|
13204
|
+
PhotoGallery,
|
|
13205
|
+
{
|
|
13206
|
+
photos: foodGallery,
|
|
13207
|
+
variant: "gridCompact",
|
|
13208
|
+
initialVisible: 6
|
|
13209
|
+
}
|
|
13210
|
+
) })
|
|
13211
|
+
] })
|
|
13190
13212
|
]
|
|
13191
13213
|
}
|
|
13192
13214
|
),
|