@landtrustinc/design-system 1.2.40 → 1.2.42
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/README.md +5 -1
- package/dist/index.d.ts +74 -2
- package/dist/index.js +422 -258
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Design system components for LandTrust applications.
|
|
4
4
|
|
|
5
|
-
[Storybook](https://
|
|
5
|
+
[Storybook](https://design.landtrust.com)
|
|
6
6
|
|
|
7
7
|
## 📦 Installation
|
|
8
8
|
|
|
@@ -75,3 +75,7 @@ npm build
|
|
|
75
75
|
npm version patch/minor/major
|
|
76
76
|
npm publish
|
|
77
77
|
```
|
|
78
|
+
|
|
79
|
+
## 📝 TODO
|
|
80
|
+
|
|
81
|
+
- [ ] **Migrate to Changesets** - Replace manual version bumping with [Changesets](https://github.com/changesets/changesets) for automated versioning and changelog generation. This would prevent version conflicts and streamline the release process.
|
package/dist/index.d.ts
CHANGED
|
@@ -1992,6 +1992,53 @@ 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
|
+
declare const Timer: FC<TimerProps>;
|
|
2021
|
+
|
|
2022
|
+
type EarlyAccessTimerConfig = {
|
|
2023
|
+
/**
|
|
2024
|
+
* Unix timestamp (in seconds) for when early access expires
|
|
2025
|
+
*/
|
|
2026
|
+
expirationTimestamp: number;
|
|
2027
|
+
/**
|
|
2028
|
+
* Small label text (displayed in xs size)
|
|
2029
|
+
* e.g., "Early Access is available for LandTrust+ members only."
|
|
2030
|
+
*/
|
|
2031
|
+
labelText: ReactNode;
|
|
2032
|
+
/**
|
|
2033
|
+
* Description text (displayed in sm size)
|
|
2034
|
+
* e.g., "You'll be able to message Donald in:"
|
|
2035
|
+
*/
|
|
2036
|
+
descriptionText: ReactNode;
|
|
2037
|
+
/**
|
|
2038
|
+
* Total duration in seconds (for calculating progress)
|
|
2039
|
+
*/
|
|
2040
|
+
totalDuration: number;
|
|
2041
|
+
};
|
|
1995
2042
|
type LandownerProfileProps = {
|
|
1996
2043
|
/**
|
|
1997
2044
|
* Heading text for the profile
|
|
@@ -2041,6 +2088,19 @@ type LandownerProfileProps = {
|
|
|
2041
2088
|
* Whether the message button is disabled
|
|
2042
2089
|
*/
|
|
2043
2090
|
isMessageDisabled?: boolean;
|
|
2091
|
+
/**
|
|
2092
|
+
* Early access timer configuration.
|
|
2093
|
+
* When provided, shows a progress bar and countdown timer below the message button.
|
|
2094
|
+
*/
|
|
2095
|
+
earlyAccessTimer?: EarlyAccessTimerConfig;
|
|
2096
|
+
/**
|
|
2097
|
+
* Callback fired when early access timer updates
|
|
2098
|
+
*/
|
|
2099
|
+
onEarlyAccessTimeUpdate?: (timeLeft: TimeLeft) => void;
|
|
2100
|
+
/**
|
|
2101
|
+
* Callback fired when early access timer expires
|
|
2102
|
+
*/
|
|
2103
|
+
onEarlyAccessExpire?: () => void;
|
|
2044
2104
|
/**
|
|
2045
2105
|
* Additional CSS class names
|
|
2046
2106
|
*/
|
|
@@ -2197,7 +2257,7 @@ type PackageCardProps = {
|
|
|
2197
2257
|
/**
|
|
2198
2258
|
* Starting price text
|
|
2199
2259
|
*/
|
|
2200
|
-
startingPrice
|
|
2260
|
+
startingPrice?: string;
|
|
2201
2261
|
/**
|
|
2202
2262
|
* Whether the package is favorited
|
|
2203
2263
|
*/
|
|
@@ -2286,6 +2346,18 @@ type PackageHeaderProps = {
|
|
|
2286
2346
|
};
|
|
2287
2347
|
declare const PackageHeader: FC<PackageHeaderProps>;
|
|
2288
2348
|
|
|
2349
|
+
type ProgressBarProps = {
|
|
2350
|
+
/**
|
|
2351
|
+
* Progress value between 0 and 100
|
|
2352
|
+
*/
|
|
2353
|
+
progress: number;
|
|
2354
|
+
/**
|
|
2355
|
+
* Additional CSS class names
|
|
2356
|
+
*/
|
|
2357
|
+
className?: string;
|
|
2358
|
+
};
|
|
2359
|
+
declare const ProgressBar: FC<ProgressBarProps>;
|
|
2360
|
+
|
|
2289
2361
|
type ReviewReplyProps = {
|
|
2290
2362
|
avatarSrc?: string;
|
|
2291
2363
|
name: string;
|
|
@@ -2605,4 +2677,4 @@ declare const Widget: React__default.FC<WidgetProps> & {
|
|
|
2605
2677
|
}>;
|
|
2606
2678
|
};
|
|
2607
2679
|
|
|
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 };
|
|
2680
|
+
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 };
|