@landtrustinc/design-system 1.2.57 → 1.2.58
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 +5 -1
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2654,8 +2654,12 @@ type PackageCardProps = {
|
|
|
2654
2654
|
* - 'md': Default size
|
|
2655
2655
|
*/
|
|
2656
2656
|
size?: 'xs' | 'md';
|
|
2657
|
+
/**
|
|
2658
|
+
* Loading state - shows skeleton placeholders when true
|
|
2659
|
+
*/
|
|
2660
|
+
isLoading?: boolean;
|
|
2657
2661
|
};
|
|
2658
|
-
declare const PackageCard: ({ images, title, subtitle, startingPrice, isFavorited, onFavoriteClick, onClick, className, badges, availabilityBadges, id, hasContentBackground, orientation, actions, size, ...rest }: PackageCardProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2662
|
+
declare const PackageCard: ({ images, title, subtitle, startingPrice, isFavorited, onFavoriteClick, onClick, className, badges, availabilityBadges, id, hasContentBackground, orientation, actions, size, isLoading, ...rest }: PackageCardProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2659
2663
|
|
|
2660
2664
|
type PackageHeaderProps = {
|
|
2661
2665
|
/**
|
package/dist/index.js
CHANGED
|
@@ -9876,6 +9876,9 @@ var Navigation = ({
|
|
|
9876
9876
|
};
|
|
9877
9877
|
var Navigation_default = Navigation;
|
|
9878
9878
|
|
|
9879
|
+
// src/PackageCard/PackageCard.tsx
|
|
9880
|
+
var import_react_loading_skeleton2 = __toESM(require("react-loading-skeleton"));
|
|
9881
|
+
|
|
9879
9882
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
9880
9883
|
var import_react68 = require("react");
|
|
9881
9884
|
var import_react_intersection_observer = require("react-intersection-observer");
|
|
@@ -10711,8 +10714,49 @@ var PackageCard = ({
|
|
|
10711
10714
|
orientation = "vertical",
|
|
10712
10715
|
actions,
|
|
10713
10716
|
size = "md",
|
|
10717
|
+
isLoading = false,
|
|
10714
10718
|
...rest
|
|
10715
10719
|
}) => {
|
|
10720
|
+
if (isLoading) {
|
|
10721
|
+
return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
|
|
10722
|
+
Box_default,
|
|
10723
|
+
{
|
|
10724
|
+
css: cardContainerStyles3(orientation, hasContentBackground, false),
|
|
10725
|
+
className,
|
|
10726
|
+
children: [
|
|
10727
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
10728
|
+
Box_default,
|
|
10729
|
+
{
|
|
10730
|
+
overflow: "hidden",
|
|
10731
|
+
borderRadius: "var(--spacing-4)",
|
|
10732
|
+
css: imageContainerStyles(orientation, size),
|
|
10733
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(import_react_loading_skeleton2.default, { width: "100%", height: "100%", borderRadius: 16 })
|
|
10734
|
+
}
|
|
10735
|
+
),
|
|
10736
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
10737
|
+
Box_default,
|
|
10738
|
+
{
|
|
10739
|
+
css: contentContainerStyles(orientation, hasContentBackground, size),
|
|
10740
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
|
|
10741
|
+
Box_default,
|
|
10742
|
+
{
|
|
10743
|
+
display: "flex",
|
|
10744
|
+
flexDirection: "column",
|
|
10745
|
+
gap: "var(--spacing-1)",
|
|
10746
|
+
mb: "var(--spacing-1)",
|
|
10747
|
+
children: [
|
|
10748
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(import_react_loading_skeleton2.default, { width: "80%", height: 16, borderRadius: 4 }),
|
|
10749
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(import_react_loading_skeleton2.default, { width: "60%", height: 14, borderRadius: 4 }),
|
|
10750
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(import_react_loading_skeleton2.default, { width: "40%", height: 14, borderRadius: 4 })
|
|
10751
|
+
]
|
|
10752
|
+
}
|
|
10753
|
+
)
|
|
10754
|
+
}
|
|
10755
|
+
)
|
|
10756
|
+
]
|
|
10757
|
+
}
|
|
10758
|
+
);
|
|
10759
|
+
}
|
|
10716
10760
|
const carouselId = id || `package-card-${title.replace(/\s+/g, "-")}`;
|
|
10717
10761
|
const shouldShowOverlay = availabilityBadges == null ? void 0 : availabilityBadges.some(
|
|
10718
10762
|
(badge2) => badge2.showOverlay
|