@landtrustinc/design-system 1.2.51-beta.3 → 1.2.52

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 CHANGED
@@ -1034,6 +1034,68 @@ type AddOnBlockProps = Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> & {
1034
1034
  };
1035
1035
  declare const AddOnBlock: FC<AddOnBlockProps>;
1036
1036
 
1037
+ type PackageCardItem = {
1038
+ /**
1039
+ * Unique identifier for the package
1040
+ */
1041
+ id: string;
1042
+ /**
1043
+ * Array of image URLs to display
1044
+ */
1045
+ images: string[];
1046
+ /**
1047
+ * Main title of the package
1048
+ */
1049
+ title: string;
1050
+ /**
1051
+ * Subtitle or description (e.g., location)
1052
+ */
1053
+ subtitle: string;
1054
+ /**
1055
+ * Starting price text (e.g., "$1,250")
1056
+ */
1057
+ startingPrice?: string;
1058
+ /**
1059
+ * URL to navigate to when the card is clicked (external link)
1060
+ */
1061
+ url?: string;
1062
+ };
1063
+ type PackageCardsProps = {
1064
+ /**
1065
+ * Title for the package cards section
1066
+ * @default "Related Packages"
1067
+ */
1068
+ title?: string;
1069
+ /**
1070
+ * Array of package card data (can be JSON string or array)
1071
+ */
1072
+ packages: PackageCardItem[] | string;
1073
+ /**
1074
+ * Width of each package card
1075
+ * @default "200px"
1076
+ */
1077
+ itemWidth?: string;
1078
+ /**
1079
+ * Gap between package cards
1080
+ * @default "var(--spacing-4)"
1081
+ */
1082
+ gap?: string;
1083
+ /**
1084
+ * Callback fired when the component is displayed
1085
+ * Useful for analytics tracking
1086
+ */
1087
+ onDisplay?: () => void;
1088
+ /**
1089
+ * Callback fired when a package card is clicked
1090
+ */
1091
+ onPackageClick?: (packageItem: PackageCardItem) => void;
1092
+ /**
1093
+ * Additional CSS class names
1094
+ */
1095
+ className?: string;
1096
+ };
1097
+ declare const PackageCards: FC<PackageCardsProps>;
1098
+
1037
1099
  type AIResponseProps = {
1038
1100
  /**
1039
1101
  * Optional title for the AI response
@@ -1096,8 +1158,17 @@ type AIResponseProps = {
1096
1158
  * Useful for analytics tracking (e.g., GTM events).
1097
1159
  */
1098
1160
  onContactLandownerDisplay?: () => void;
1161
+ /**
1162
+ * Callback fired when a PackageCards component is displayed in the response.
1163
+ * Useful for analytics tracking (e.g., GTM events).
1164
+ */
1165
+ onPackageCardsDisplay?: () => void;
1166
+ /**
1167
+ * Callback fired when a package card is clicked in the PackageCards component.
1168
+ */
1169
+ onPackageCardClick?: (packageItem: PackageCardItem) => void;
1099
1170
  };
1100
- declare const AIResponse: ({ title, showTitle, showDisclaimer, showHelpfulQuestion, className, children, onHelpfulYes, onHelpfulNo, variant, onErrorRetry, helpfulDebounceMs, markdown, enableCodeCopy, onContactLandownerDisplay, }: AIResponseProps) => _emotion_react_jsx_runtime.JSX.Element;
1171
+ declare const AIResponse: ({ title, showTitle, showDisclaimer, showHelpfulQuestion, className, children, onHelpfulYes, onHelpfulNo, variant, onErrorRetry, helpfulDebounceMs, markdown, enableCodeCopy, onContactLandownerDisplay, onPackageCardsDisplay, onPackageCardClick, }: AIResponseProps) => _emotion_react_jsx_runtime.JSX.Element;
1101
1172
 
1102
1173
  type ContactLandownerButtonProps = {
1103
1174
  /**
@@ -2541,8 +2612,14 @@ type PackageCardProps = {
2541
2612
  * When provided, displays an action menu in the top-right corner
2542
2613
  */
2543
2614
  actions?: (ActionMenuItem | 'divider')[];
2615
+ /**
2616
+ * Size variant of the card (default: 'md')
2617
+ * - 'xs': Compact size with square photo, no badges, smaller text
2618
+ * - 'md': Default size
2619
+ */
2620
+ size?: 'xs' | 'md';
2544
2621
  };
2545
- declare const PackageCard: ({ images, title, subtitle, startingPrice, isFavorited, onFavoriteClick, onClick, className, badges, availabilityBadges, id, hasContentBackground, orientation, actions, ...rest }: PackageCardProps) => _emotion_react_jsx_runtime.JSX.Element;
2622
+ 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;
2546
2623
 
2547
2624
  type PackageHeaderProps = {
2548
2625
  /**
@@ -2665,6 +2742,10 @@ type ScrollingCarouselStepProps = {
2665
2742
  * Click handler for the step
2666
2743
  */
2667
2744
  onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
2745
+ /**
2746
+ * Fixed width for the step (automatically provided by parent)
2747
+ */
2748
+ itemWidth?: string;
2668
2749
  };
2669
2750
  type ScrollingCarouselProps = {
2670
2751
  /**
@@ -2730,15 +2811,25 @@ type ScrollingCarouselProps = {
2730
2811
  * Unique identifier for the carousel (required for DOM queries)
2731
2812
  */
2732
2813
  id: string;
2814
+ /**
2815
+ * Fixed width for each carousel item (e.g., '200px', '300px')
2816
+ * When set, overrides the default 100% width to show multiple items
2817
+ */
2818
+ itemWidth?: string;
2819
+ /**
2820
+ * Gap between carousel items (CSS value, e.g., 'var(--spacing-4)', '16px')
2821
+ * @default '0'
2822
+ */
2823
+ gap?: string;
2733
2824
  };
2734
2825
 
2735
2826
  declare const ScrollingCarouselStep: {
2736
- ({ children, index, className, parentId, onClick, }: ScrollingCarouselStepProps): _emotion_react_jsx_runtime.JSX.Element;
2827
+ ({ children, index, className, parentId, onClick, itemWidth, }: ScrollingCarouselStepProps): _emotion_react_jsx_runtime.JSX.Element;
2737
2828
  displayName: string;
2738
2829
  };
2739
2830
 
2740
2831
  declare const ScrollingCarousel: {
2741
- ({ className, children, showButtons, showDots, dotsColor, numberOfDots, buttonsPosition, customLeftButton, infiniteScroll, customBackIcon, customNextIcon, showNavigationOnHover, id, current, }: ScrollingCarouselProps): _emotion_react_jsx_runtime.JSX.Element;
2832
+ ({ className, children, showButtons, showDots, dotsColor, numberOfDots, buttonsPosition, customLeftButton, infiniteScroll, customBackIcon, customNextIcon, showNavigationOnHover, id, current, itemWidth, gap, }: ScrollingCarouselProps): _emotion_react_jsx_runtime.JSX.Element;
2742
2833
  displayName: string;
2743
2834
  };
2744
2835
 
@@ -2903,4 +2994,4 @@ declare const Widget: React__default.FC<WidgetProps> & {
2903
2994
  }>;
2904
2995
  };
2905
2996
 
2906
- export { AIResponse, type AIResponseProps, ActionMenu, type ActionMenuItem, type ActionMenuProps, AddOnBlock, type AddOnBlockProps, AvailabilityBadge, type AvailabilityBadgeProps, type AvailabilityBadgeVariant, Avatar, type AvatarProps, type AvatarSize, type AvatarType, type BaseInputProps, Box, type BoxProps, Button, type ButtonProps, type ButtonVariants, BytescaleImage, type BytescaleImageProps, type CarouselPositions, ChatWidget, type ChatWidgetMessage, type ChatWidgetProps, Column, type ColumnProps, ContactLandownerButton, type ContactLandownerButtonProps, Container, CtaCard, type CtaCardProps, Divider, type DividerProps, type DotsColors, type EarlyAccessTimerConfig, type FeatureItem, FeatureList, FeatureListItem, type FeatureListItemProps, type FeatureListProps, type FeatureListSection, FieldNoteCard, type FieldNoteCardProps, FormField, type FormFieldProps, GlobalStyle, Grid, type GridBreakpoint, GridContainer, type GridContainerProps, type GridProps, Heading, type HeadingProps, HuntCard, type HuntCardProps, Icon, IconLabel, type IconLabelProps, type IconProps, type IconSize, IconSizeMap, type IconVariantTypes$1 as IconVariantTypes, type ImageGalleryItem, ImageGalleryModal, ImageGalleryModal as ImageGalleryModalComponent, type ImageGalleryModalProps, InfoBox, type InfoBoxProps, Input, type InputProps, type InputSize, type InputVariant, LandownerProfile, type LandownerProfileProps, LayoutTokens, ListingChat, type ListingChatProps, Logo, type LogoProps, type LogoTheme, type LogoVariant, MarkdownContent, type MarkdownContentProps, MessageBubble, type MessageBubbleProps, Modal, Modal as ModalComponent, type ModalProps, type ModalSize, type NavLink, Navigation, type NavigationProps, PackageCard, type PackageCardBadge, type PackageCardProps, PackageHeader, type PackageHeaderProps, ProgressBar, type ProgressBarProps, type ResponsiveValue, ReviewCard, type ReviewCardProps, Reviews, type ReviewsProps, ReviewsShowcase, ScrollingCarousel, type ScrollingCarouselProps, ScrollingCarouselStep, type ScrollingCarouselStepProps, Select, type SelectOption, type SelectProps, Spinner, type SpinnerProps, StarRating, type StarRatingProps, type SuggestedPrompt, type TFontWeight, type THeadingSize, type TTextAlign, type TTextSize, type TTextWrap, TagChip, type TagChipProps, type TagChipVariant, Text, TextArea, type TextProps, type TextareaProps, ThemeTokens, type TimeLeft, Timer, type TimerProps, Tooltip, type TooltipPosition, type TooltipProps, TopMatchingFieldNote, type TopMatchingFieldNoteProps, TopMatchingReview, type TopMatchingReviewProps, UserCard, type UserCardProps, Widget, WidgetPanel, type WidgetPanelProps, type WidgetProps, WidgetTrigger, type WidgetTriggerProps, globalStyles, styles };
2997
+ export { AIResponse, type AIResponseProps, ActionMenu, type ActionMenuItem, type ActionMenuProps, AddOnBlock, type AddOnBlockProps, AvailabilityBadge, type AvailabilityBadgeProps, type AvailabilityBadgeVariant, Avatar, type AvatarProps, type AvatarSize, type AvatarType, type BaseInputProps, Box, type BoxProps, Button, type ButtonProps, type ButtonVariants, BytescaleImage, type BytescaleImageProps, type CarouselPositions, ChatWidget, type ChatWidgetMessage, type ChatWidgetProps, Column, type ColumnProps, ContactLandownerButton, type ContactLandownerButtonProps, Container, CtaCard, type CtaCardProps, Divider, type DividerProps, type DotsColors, type EarlyAccessTimerConfig, type FeatureItem, FeatureList, FeatureListItem, type FeatureListItemProps, type FeatureListProps, type FeatureListSection, FieldNoteCard, type FieldNoteCardProps, FormField, type FormFieldProps, GlobalStyle, Grid, type GridBreakpoint, GridContainer, type GridContainerProps, type GridProps, Heading, type HeadingProps, HuntCard, type HuntCardProps, Icon, IconLabel, type IconLabelProps, type IconProps, type IconSize, IconSizeMap, type IconVariantTypes$1 as IconVariantTypes, type ImageGalleryItem, ImageGalleryModal, ImageGalleryModal as ImageGalleryModalComponent, type ImageGalleryModalProps, InfoBox, type InfoBoxProps, Input, type InputProps, type InputSize, type InputVariant, LandownerProfile, type LandownerProfileProps, LayoutTokens, ListingChat, type ListingChatProps, Logo, type LogoProps, type LogoTheme, type LogoVariant, MarkdownContent, type MarkdownContentProps, MessageBubble, type MessageBubbleProps, Modal, Modal as ModalComponent, type ModalProps, type ModalSize, type NavLink, Navigation, type NavigationProps, PackageCard, type PackageCardBadge, type PackageCardItem, type PackageCardProps, PackageCards, type PackageCardsProps, PackageHeader, type PackageHeaderProps, ProgressBar, type ProgressBarProps, type ResponsiveValue, ReviewCard, type ReviewCardProps, Reviews, type ReviewsProps, ReviewsShowcase, ScrollingCarousel, type ScrollingCarouselProps, ScrollingCarouselStep, type ScrollingCarouselStepProps, Select, type SelectOption, type SelectProps, Spinner, type SpinnerProps, StarRating, type StarRatingProps, type SuggestedPrompt, type TFontWeight, type THeadingSize, type TTextAlign, type TTextSize, type TTextWrap, TagChip, type TagChipProps, type TagChipVariant, Text, TextArea, type TextProps, type TextareaProps, ThemeTokens, type TimeLeft, Timer, type TimerProps, Tooltip, type TooltipPosition, type TooltipProps, TopMatchingFieldNote, type TopMatchingFieldNoteProps, TopMatchingReview, type TopMatchingReviewProps, UserCard, type UserCardProps, Widget, WidgetPanel, type WidgetPanelProps, type WidgetProps, WidgetTrigger, type WidgetTriggerProps, globalStyles, styles };