@landtrustinc/design-system 1.2.41 → 1.2.43

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
@@ -1992,6 +1992,65 @@ type InfoBoxProps = {
1992
1992
  };
1993
1993
  declare const InfoBox: FC<InfoBoxProps>;
1994
1994
 
1995
+ type TimeLeft = {
1996
+ days: number;
1997
+ hours: number;
1998
+ minutes: number;
1999
+ seconds: number;
2000
+ totalSeconds: number;
2001
+ };
2002
+ type TimerProps = {
2003
+ /**
2004
+ * Unix timestamp (in seconds) for when the timer expires
2005
+ */
2006
+ expirationTimestamp: number;
2007
+ /**
2008
+ * Callback fired every second with the remaining time
2009
+ */
2010
+ onTimeUpdate?: (timeLeft: TimeLeft) => void;
2011
+ /**
2012
+ * Callback fired when the timer reaches zero
2013
+ */
2014
+ onExpire?: () => void;
2015
+ /**
2016
+ * Additional CSS class names
2017
+ */
2018
+ className?: string;
2019
+ /**
2020
+ * Text to display before the time left
2021
+ */
2022
+ fontSize?: TTextSize;
2023
+ /**
2024
+ * Font weight of the text
2025
+ */
2026
+ fontWeight?: TFontWeight;
2027
+ /**
2028
+ * Color of the text
2029
+ */
2030
+ showSeconds?: boolean;
2031
+ };
2032
+ declare const Timer: FC<TimerProps>;
2033
+
2034
+ type EarlyAccessTimerConfig = {
2035
+ /**
2036
+ * Unix timestamp (in seconds) for when early access expires
2037
+ */
2038
+ expirationTimestamp: number;
2039
+ /**
2040
+ * Small label text (displayed in xs size)
2041
+ * e.g., "Early Access is available for LandTrust+ members only."
2042
+ */
2043
+ labelText: ReactNode;
2044
+ /**
2045
+ * Description text (displayed in sm size)
2046
+ * e.g., "You'll be able to message Donald in:"
2047
+ */
2048
+ descriptionText: ReactNode;
2049
+ /**
2050
+ * Total duration in seconds (for calculating progress)
2051
+ */
2052
+ totalDuration: number;
2053
+ };
1995
2054
  type LandownerProfileProps = {
1996
2055
  /**
1997
2056
  * Heading text for the profile
@@ -2041,6 +2100,19 @@ type LandownerProfileProps = {
2041
2100
  * Whether the message button is disabled
2042
2101
  */
2043
2102
  isMessageDisabled?: boolean;
2103
+ /**
2104
+ * Early access timer configuration.
2105
+ * When provided, shows a progress bar and countdown timer below the message button.
2106
+ */
2107
+ earlyAccessTimer?: EarlyAccessTimerConfig;
2108
+ /**
2109
+ * Callback fired when early access timer updates
2110
+ */
2111
+ onEarlyAccessTimeUpdate?: (timeLeft: TimeLeft) => void;
2112
+ /**
2113
+ * Callback fired when early access timer expires
2114
+ */
2115
+ onEarlyAccessExpire?: () => void;
2044
2116
  /**
2045
2117
  * Additional CSS class names
2046
2118
  */
@@ -2286,6 +2358,18 @@ type PackageHeaderProps = {
2286
2358
  };
2287
2359
  declare const PackageHeader: FC<PackageHeaderProps>;
2288
2360
 
2361
+ type ProgressBarProps = {
2362
+ /**
2363
+ * Progress value between 0 and 100
2364
+ */
2365
+ progress: number;
2366
+ /**
2367
+ * Additional CSS class names
2368
+ */
2369
+ className?: string;
2370
+ };
2371
+ declare const ProgressBar: FC<ProgressBarProps>;
2372
+
2289
2373
  type ReviewReplyProps = {
2290
2374
  avatarSrc?: string;
2291
2375
  name: string;
@@ -2605,4 +2689,4 @@ declare const Widget: React__default.FC<WidgetProps> & {
2605
2689
  }>;
2606
2690
  };
2607
2691
 
2608
- 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, Divider, type DividerProps, type DotsColors, 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, 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, type NavLink, Navigation, type NavigationProps, PackageCard, type PackageCardBadge, type PackageCardProps, PackageHeader, type PackageHeaderProps, 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, 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 };
2692
+ 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, 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, 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, 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 };