@landtrustinc/design-system 1.2.25 → 1.2.26
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.d.ts +7 -1
- package/dist/index.js +79 -68
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2107,8 +2107,14 @@ type PackageCardProps = {
|
|
|
2107
2107
|
* When false, only shows top padding without background
|
|
2108
2108
|
*/
|
|
2109
2109
|
hasContentBackground?: boolean;
|
|
2110
|
+
/**
|
|
2111
|
+
* Orientation of the card (default: 'vertical')
|
|
2112
|
+
* - 'vertical': Image on top, content below
|
|
2113
|
+
* - 'horizontal': Image on left, content on right
|
|
2114
|
+
*/
|
|
2115
|
+
orientation?: 'vertical' | 'horizontal';
|
|
2110
2116
|
};
|
|
2111
|
-
declare const PackageCard: ({ images, title, subtitle, startingPrice, isFavorited, onFavoriteClick, onClick, className, badges, availabilityBadges, id, hasContentBackground, ...rest }: PackageCardProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2117
|
+
declare const PackageCard: ({ images, title, subtitle, startingPrice, isFavorited, onFavoriteClick, onClick, className, badges, availabilityBadges, id, hasContentBackground, orientation, ...rest }: PackageCardProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2112
2118
|
|
|
2113
2119
|
type PackageHeaderProps = {
|
|
2114
2120
|
/**
|
package/dist/index.js
CHANGED
|
@@ -8529,16 +8529,7 @@ var cardContainerStyles3 = import_react54.css`
|
|
|
8529
8529
|
overflow: hidden;
|
|
8530
8530
|
transition: all 0.2s ease;
|
|
8531
8531
|
`;
|
|
8532
|
-
var imageContainerStyles = import_react54.css`
|
|
8533
|
-
position: relative;
|
|
8534
|
-
width: 100%;
|
|
8535
|
-
height: 260px;
|
|
8536
|
-
overflow: hidden;
|
|
8537
|
-
border-radius: var(--spacing-4);
|
|
8538
|
-
`;
|
|
8539
8532
|
var imageStyles2 = import_react54.css`
|
|
8540
|
-
width: 100%;
|
|
8541
|
-
height: 260px;
|
|
8542
8533
|
background-size: cover;
|
|
8543
8534
|
background-position: center;
|
|
8544
8535
|
background-repeat: no-repeat;
|
|
@@ -8580,11 +8571,11 @@ var heartIconStyles = import_react54.css`
|
|
|
8580
8571
|
}
|
|
8581
8572
|
`;
|
|
8582
8573
|
var contentWithBackgroundStyles = import_react54.css`
|
|
8583
|
-
padding:
|
|
8574
|
+
padding: 0 var(--spacing-3) var(--spacing-4) var(--spacing-3);
|
|
8584
8575
|
background-color: var(--surface-page);
|
|
8585
8576
|
`;
|
|
8586
8577
|
var contentWithoutBackgroundStyles = import_react54.css`
|
|
8587
|
-
padding-top: var(--spacing-2);
|
|
8578
|
+
padding-top: 0 var(--spacing-2) var(--spacing-2) var(--spacing-2);
|
|
8588
8579
|
`;
|
|
8589
8580
|
var overlayStyles = import_react54.css`
|
|
8590
8581
|
position: absolute;
|
|
@@ -8614,6 +8605,7 @@ var PackageCard = ({
|
|
|
8614
8605
|
availabilityBadges,
|
|
8615
8606
|
id,
|
|
8616
8607
|
hasContentBackground = false,
|
|
8608
|
+
orientation = "vertical",
|
|
8617
8609
|
...rest
|
|
8618
8610
|
}) => {
|
|
8619
8611
|
const carouselId = id || `package-card-${title.replace(/\s+/g, "-")}`;
|
|
@@ -8623,80 +8615,99 @@ var PackageCard = ({
|
|
|
8623
8615
|
return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8624
8616
|
Box_default,
|
|
8625
8617
|
{
|
|
8618
|
+
display: "flex",
|
|
8619
|
+
flexDirection: orientation === "horizontal" ? "row" : "column",
|
|
8620
|
+
gap: orientation === "horizontal" ? "var(--spacing-4)" : "var(--spacing-2)",
|
|
8626
8621
|
css: cardContainerStyles3,
|
|
8627
8622
|
className,
|
|
8628
8623
|
...rest,
|
|
8629
8624
|
borderRadius: hasContentBackground ? "var(--spacing-4)" : "var(--spacing-4) var(--spacing-4) 0 0",
|
|
8630
8625
|
children: [
|
|
8631
|
-
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8643
|
-
ScrollingCarousel,
|
|
8644
|
-
{
|
|
8645
|
-
showDots: images.length > 1,
|
|
8646
|
-
showNavigationOnHover: true,
|
|
8647
|
-
id: carouselId,
|
|
8648
|
-
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8649
|
-
ScrollingCarouselStep,
|
|
8626
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8627
|
+
Box_default,
|
|
8628
|
+
{
|
|
8629
|
+
position: "relative",
|
|
8630
|
+
width: orientation === "horizontal" ? "40%" : "100%",
|
|
8631
|
+
height: orientation === "horizontal" ? "200px" : "260px",
|
|
8632
|
+
overflow: "hidden",
|
|
8633
|
+
borderRadius: "var(--spacing-4)",
|
|
8634
|
+
children: [
|
|
8635
|
+
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8636
|
+
AvailabilityBadge_default,
|
|
8650
8637
|
{
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
children:
|
|
8654
|
-
|
|
8638
|
+
variant: badge2.variant,
|
|
8639
|
+
css: badge2.position === "bottom-right" ? badgeBottomRightStyles : badgeTopLeftStyles,
|
|
8640
|
+
children: badge2.text
|
|
8641
|
+
},
|
|
8642
|
+
`availability-${index}`
|
|
8643
|
+
)),
|
|
8644
|
+
shouldShowOverlay && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { css: overlayStyles }),
|
|
8645
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8646
|
+
ScrollingCarousel,
|
|
8647
|
+
{
|
|
8648
|
+
showDots: images.length > 1,
|
|
8649
|
+
showNavigationOnHover: true,
|
|
8650
|
+
id: carouselId,
|
|
8651
|
+
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8652
|
+
ScrollingCarouselStep,
|
|
8655
8653
|
{
|
|
8656
|
-
|
|
8657
|
-
|
|
8654
|
+
parentId: carouselId,
|
|
8655
|
+
onClick,
|
|
8656
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8657
|
+
Box_default,
|
|
8658
8658
|
{
|
|
8659
|
-
|
|
8659
|
+
width: "100%",
|
|
8660
|
+
height: orientation === "horizontal" ? "200px" : "260px",
|
|
8661
|
+
css: [
|
|
8662
|
+
imageStyles2,
|
|
8663
|
+
{
|
|
8664
|
+
backgroundImage: `linear-gradient(181deg, rgba(0, 0, 0, 0.00) 75.32%, rgba(0, 0, 0, 0.40) 99.41%), url(${image})`
|
|
8665
|
+
}
|
|
8666
|
+
]
|
|
8660
8667
|
}
|
|
8661
|
-
|
|
8662
|
-
}
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
`image-${index}`
|
|
8666
|
-
))
|
|
8667
|
-
}
|
|
8668
|
-
),
|
|
8669
|
-
onFavoriteClick && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8670
|
-
Box_default,
|
|
8671
|
-
{
|
|
8672
|
-
css: heartIconStyles,
|
|
8673
|
-
onClick: (e) => {
|
|
8674
|
-
e.preventDefault();
|
|
8675
|
-
e.stopPropagation();
|
|
8676
|
-
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
8677
|
-
},
|
|
8678
|
-
children: isFavorited ? /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8679
|
-
Icon_default,
|
|
8680
|
-
{
|
|
8681
|
-
variant: "HeartSolid",
|
|
8682
|
-
size: "small",
|
|
8683
|
-
fill: "var(--color-error-500)"
|
|
8668
|
+
)
|
|
8669
|
+
},
|
|
8670
|
+
`image-${index}`
|
|
8671
|
+
))
|
|
8684
8672
|
}
|
|
8685
|
-
)
|
|
8686
|
-
|
|
8673
|
+
),
|
|
8674
|
+
onFavoriteClick && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8675
|
+
Box_default,
|
|
8687
8676
|
{
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8677
|
+
css: heartIconStyles,
|
|
8678
|
+
onClick: (e) => {
|
|
8679
|
+
e.preventDefault();
|
|
8680
|
+
e.stopPropagation();
|
|
8681
|
+
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
8682
|
+
},
|
|
8683
|
+
children: isFavorited ? /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8684
|
+
Icon_default,
|
|
8685
|
+
{
|
|
8686
|
+
variant: "HeartSolid",
|
|
8687
|
+
size: "small",
|
|
8688
|
+
fill: "var(--color-error-500)"
|
|
8689
|
+
}
|
|
8690
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8691
|
+
Icon_default,
|
|
8692
|
+
{
|
|
8693
|
+
variant: "Heart",
|
|
8694
|
+
size: "small",
|
|
8695
|
+
fill: "var(--color-base-black)"
|
|
8696
|
+
}
|
|
8697
|
+
)
|
|
8691
8698
|
}
|
|
8692
8699
|
)
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
|
|
8700
|
+
]
|
|
8701
|
+
}
|
|
8702
|
+
),
|
|
8696
8703
|
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8697
8704
|
Box_default,
|
|
8698
8705
|
{
|
|
8699
8706
|
css: hasContentBackground ? contentWithBackgroundStyles : contentWithoutBackgroundStyles,
|
|
8707
|
+
width: orientation === "horizontal" ? "60%" : "100%",
|
|
8708
|
+
display: "flex",
|
|
8709
|
+
flexDirection: "column",
|
|
8710
|
+
justifyContent: orientation === "horizontal" ? "center" : "flex-start",
|
|
8700
8711
|
children: [
|
|
8701
8712
|
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8702
8713
|
Box_default,
|