@landtrustinc/design-system 1.1.5 → 1.1.7
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 +141 -1
- package/dist/index.js +793 -362
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -586,6 +586,36 @@ type AvailabilityChipProps = {
|
|
|
586
586
|
};
|
|
587
587
|
declare const AvailabilityChip: FC<PropsWithChildren<AvailabilityChipProps>>;
|
|
588
588
|
|
|
589
|
+
type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
590
|
+
type AvatarType = 'image' | 'text';
|
|
591
|
+
type AvatarProps = {
|
|
592
|
+
/**
|
|
593
|
+
* Type of avatar - image or text initials
|
|
594
|
+
*/
|
|
595
|
+
type?: AvatarType;
|
|
596
|
+
/**
|
|
597
|
+
* Source URL of the avatar image (required for type="image")
|
|
598
|
+
*/
|
|
599
|
+
src?: string;
|
|
600
|
+
/**
|
|
601
|
+
* Text to generate initials from (required for type="text")
|
|
602
|
+
*/
|
|
603
|
+
text?: string;
|
|
604
|
+
/**
|
|
605
|
+
* Alt text for the avatar
|
|
606
|
+
*/
|
|
607
|
+
alt: string;
|
|
608
|
+
/**
|
|
609
|
+
* Size of the avatar
|
|
610
|
+
*/
|
|
611
|
+
size?: AvatarSize;
|
|
612
|
+
/**
|
|
613
|
+
* Additional CSS class names
|
|
614
|
+
*/
|
|
615
|
+
className?: string;
|
|
616
|
+
};
|
|
617
|
+
declare const Avatar: FC<AvatarProps>;
|
|
618
|
+
|
|
589
619
|
type BoxProps = HTMLAttributes<HTMLDivElement> & BorderProps & SpaceProps & ColorProps & FlexboxProps & GridProps$1 & LayoutProps & PositionProps & TypographyProps & WidthProps & {
|
|
590
620
|
children?: React.ReactNode;
|
|
591
621
|
gap?: unknown;
|
|
@@ -1154,6 +1184,48 @@ type DividerProps = React__default.HTMLAttributes<HTMLHRElement> & SpaceProps &
|
|
|
1154
1184
|
};
|
|
1155
1185
|
declare const Divider: React__default.FC<DividerProps>;
|
|
1156
1186
|
|
|
1187
|
+
type FeatureListItemProps = {
|
|
1188
|
+
/**
|
|
1189
|
+
* Icon variant to display
|
|
1190
|
+
*/
|
|
1191
|
+
variant: IconVariantTypes$1;
|
|
1192
|
+
/**
|
|
1193
|
+
* Main label text
|
|
1194
|
+
*/
|
|
1195
|
+
label: string;
|
|
1196
|
+
/**
|
|
1197
|
+
* Optional subtitle/description text
|
|
1198
|
+
*/
|
|
1199
|
+
subtitle?: string;
|
|
1200
|
+
/**
|
|
1201
|
+
* Size of the icon
|
|
1202
|
+
*/
|
|
1203
|
+
iconSize?: keyof typeof space;
|
|
1204
|
+
/**
|
|
1205
|
+
* Additional CSS class names
|
|
1206
|
+
*/
|
|
1207
|
+
className?: string;
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
type FeatureItem = Omit<FeatureListItemProps, 'className'>;
|
|
1211
|
+
type FeatureListSection = {
|
|
1212
|
+
/**
|
|
1213
|
+
* Optional heading for this feature list section
|
|
1214
|
+
*/
|
|
1215
|
+
heading?: string;
|
|
1216
|
+
/**
|
|
1217
|
+
* Array of feature items for this section
|
|
1218
|
+
*/
|
|
1219
|
+
items: FeatureItem[];
|
|
1220
|
+
};
|
|
1221
|
+
type FeatureListProps = FeatureListSection & {
|
|
1222
|
+
/**
|
|
1223
|
+
* Additional CSS class names
|
|
1224
|
+
*/
|
|
1225
|
+
className?: string;
|
|
1226
|
+
};
|
|
1227
|
+
declare const FeatureList: FC<FeatureListProps>;
|
|
1228
|
+
|
|
1157
1229
|
type FieldNoteCardProps = {
|
|
1158
1230
|
/**
|
|
1159
1231
|
* URL of the background image
|
|
@@ -1504,6 +1576,22 @@ type IconLabelProps = {
|
|
|
1504
1576
|
};
|
|
1505
1577
|
declare const IconLabel: ({ variant, label, iconSize, className, ...rest }: IconLabelProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1506
1578
|
|
|
1579
|
+
type InfoBoxProps = {
|
|
1580
|
+
/**
|
|
1581
|
+
* Heading text for the info box
|
|
1582
|
+
*/
|
|
1583
|
+
heading: string;
|
|
1584
|
+
/**
|
|
1585
|
+
* Array of feature list sections to display
|
|
1586
|
+
*/
|
|
1587
|
+
features: FeatureListSection[];
|
|
1588
|
+
/**
|
|
1589
|
+
* Additional CSS class names
|
|
1590
|
+
*/
|
|
1591
|
+
className?: string;
|
|
1592
|
+
};
|
|
1593
|
+
declare const InfoBox: FC<InfoBoxProps>;
|
|
1594
|
+
|
|
1507
1595
|
type ListingChatProps = {
|
|
1508
1596
|
/**
|
|
1509
1597
|
* Called when the user submits text
|
|
@@ -1661,6 +1749,31 @@ type PackageCardProps = {
|
|
|
1661
1749
|
};
|
|
1662
1750
|
declare const PackageCard: ({ images, title, subtitle, startingPrice, tripsLeft, isFavorited, onFavoriteClick, onClick, className, days, guests, hasLodging, ...rest }: PackageCardProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1663
1751
|
|
|
1752
|
+
type ReviewReplyProps = {
|
|
1753
|
+
avatarSrc: string;
|
|
1754
|
+
name: string;
|
|
1755
|
+
date: string;
|
|
1756
|
+
content: string;
|
|
1757
|
+
label?: string;
|
|
1758
|
+
rating: number;
|
|
1759
|
+
};
|
|
1760
|
+
|
|
1761
|
+
type ReviewCardProps = {
|
|
1762
|
+
avatarSrc: string;
|
|
1763
|
+
name: string;
|
|
1764
|
+
date: string;
|
|
1765
|
+
rating: number;
|
|
1766
|
+
availabilityChip?: {
|
|
1767
|
+
variant: 'primary' | 'error' | 'action' | 'warning' | 'neutral';
|
|
1768
|
+
text: string;
|
|
1769
|
+
};
|
|
1770
|
+
content: string;
|
|
1771
|
+
images?: string[];
|
|
1772
|
+
replies?: ReviewReplyProps[];
|
|
1773
|
+
className?: string;
|
|
1774
|
+
};
|
|
1775
|
+
declare const ReviewCard: FC<ReviewCardProps>;
|
|
1776
|
+
|
|
1664
1777
|
type ReviewItemProps = {
|
|
1665
1778
|
/**
|
|
1666
1779
|
* Label for the review item (e.g., "Communication", "Property", "Lodging")
|
|
@@ -1710,6 +1823,23 @@ type SpinnerProps = {
|
|
|
1710
1823
|
};
|
|
1711
1824
|
declare const Spinner: ({ size, className, fill }: SpinnerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1712
1825
|
|
|
1826
|
+
type StarSizeVariant = 'sm' | 'md';
|
|
1827
|
+
type StarRatingProps = {
|
|
1828
|
+
/**
|
|
1829
|
+
* Rating value from 1 to 5
|
|
1830
|
+
*/
|
|
1831
|
+
rating: number;
|
|
1832
|
+
/**
|
|
1833
|
+
* Additional CSS class names
|
|
1834
|
+
*/
|
|
1835
|
+
className?: string;
|
|
1836
|
+
/**
|
|
1837
|
+
* Size of the star icons
|
|
1838
|
+
*/
|
|
1839
|
+
size?: StarSizeVariant;
|
|
1840
|
+
};
|
|
1841
|
+
declare const StarRating: FC<StarRatingProps>;
|
|
1842
|
+
|
|
1713
1843
|
type TagChipVariant = 'primary' | 'success' | 'warning' | 'error';
|
|
1714
1844
|
|
|
1715
1845
|
type TagChipProps = HTMLAttributes<HTMLSpanElement> & {
|
|
@@ -1802,6 +1932,16 @@ type TextProps = HTMLAttributes<HTMLElement> & {
|
|
|
1802
1932
|
};
|
|
1803
1933
|
declare const Text: FC<PropsWithChildren<TextProps>>;
|
|
1804
1934
|
|
|
1935
|
+
type UserCardProps = {
|
|
1936
|
+
avatarSrc: string;
|
|
1937
|
+
title: string;
|
|
1938
|
+
subtitle?: string;
|
|
1939
|
+
rating?: number;
|
|
1940
|
+
showRating?: boolean;
|
|
1941
|
+
className?: string;
|
|
1942
|
+
};
|
|
1943
|
+
declare const UserCard: FC<UserCardProps>;
|
|
1944
|
+
|
|
1805
1945
|
type IconVariantTypes = Parameters<typeof Icon>[0]['variant'];
|
|
1806
1946
|
type WidgetProps = {
|
|
1807
1947
|
/**
|
|
@@ -1872,4 +2012,4 @@ declare const Widget: React__default.FC<WidgetProps> & {
|
|
|
1872
2012
|
}>;
|
|
1873
2013
|
};
|
|
1874
2014
|
|
|
1875
|
-
export { AIResponse, type AIResponseProps, AvailabilityChip, type AvailabilityChipProps, type AvailabilityChipVariant, type BaseInputProps, Box, type BoxProps, Button, type ButtonProps, type ButtonVariants, ChatWidget, type ChatWidgetMessage, type ChatWidgetProps, Column, type ColumnProps, Container, Divider, type DividerProps, 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 IconVariantTypes$1 as IconVariantTypes, Input, type InputProps, type InputSize, type InputVariant, LayoutTokens, ListingChat, type ListingChatProps, Logo, type LogoProps, type LogoTheme, type LogoVariant, MessageBubble, type MessageBubbleProps, type NavLink, Navigation, type NavigationProps, PackageCard, type PackageCardProps, type ResponsiveValue, Reviews, type ReviewsProps, ReviewsShowcase, Select, type SelectOption, type SelectProps, Spinner, type SpinnerProps, type TFontWeight, type THeadingSize, type TTextAlign, type TTextSize, type TTextWrap, TagChip, type TagChipProps, type TagChipVariant, Text, TextArea, type TextProps, type TextareaProps, ThemeTokens, Widget, WidgetPanel, type WidgetPanelProps, type WidgetProps, WidgetTrigger, type WidgetTriggerProps, globalStyles, styles };
|
|
2015
|
+
export { AIResponse, type AIResponseProps, AvailabilityChip, type AvailabilityChipProps, type AvailabilityChipVariant, Avatar, type AvatarProps, type AvatarSize, type AvatarType, type BaseInputProps, Box, type BoxProps, Button, type ButtonProps, type ButtonVariants, ChatWidget, type ChatWidgetMessage, type ChatWidgetProps, Column, type ColumnProps, Container, Divider, type DividerProps, type FeatureItem, FeatureList, 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 IconVariantTypes$1 as IconVariantTypes, InfoBox, type InfoBoxProps, Input, type InputProps, type InputSize, type InputVariant, LayoutTokens, ListingChat, type ListingChatProps, Logo, type LogoProps, type LogoTheme, type LogoVariant, MessageBubble, type MessageBubbleProps, type NavLink, Navigation, type NavigationProps, PackageCard, type PackageCardProps, type ResponsiveValue, ReviewCard, type ReviewCardProps, Reviews, type ReviewsProps, ReviewsShowcase, Select, type SelectOption, type SelectProps, Spinner, type SpinnerProps, StarRating, type StarRatingProps, type TFontWeight, type THeadingSize, type TTextAlign, type TTextSize, type TTextWrap, TagChip, type TagChipProps, type TagChipVariant, Text, TextArea, type TextProps, type TextareaProps, ThemeTokens, UserCard, type UserCardProps, Widget, WidgetPanel, type WidgetPanelProps, type WidgetProps, WidgetTrigger, type WidgetTriggerProps, globalStyles, styles };
|