@landtrustinc/design-system 1.2.44 → 1.2.46-beta.0

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
@@ -1,7 +1,7 @@
1
1
  import * as _emotion_utils from '@emotion/utils';
2
2
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
3
3
  import * as React$1 from 'react';
4
- import React__default, { SVGProps, HTMLAttributes, FC, PropsWithChildren, ReactNode } from 'react';
4
+ import React__default, { SVGProps, HTMLAttributes, FC, PropsWithChildren, ReactNode, MouseEvent, KeyboardEvent } from 'react';
5
5
  import * as _emotion_styled from '@emotion/styled';
6
6
  import * as csstype from 'csstype';
7
7
  import * as styled_system from 'styled-system';
@@ -1477,6 +1477,39 @@ type ChatWidgetProps = {
1477
1477
  };
1478
1478
  declare const ChatWidget: ({ title, messages, onSubmit, placeholder, disabled, className, ariaLabel, panelWidth, expanded, defaultExpanded, onExpandedChange, isThinking, thinkingText, emptyState, containerProps, suggestedPrompts, onPromptClick, suggestedPromptsTitle, notificationCount, closeOnClickOutside, }: ChatWidgetProps) => _emotion_react_jsx_runtime.JSX.Element;
1479
1479
 
1480
+ type CtaCardProps = {
1481
+ /**
1482
+ * Card title (displayed in bold)
1483
+ */
1484
+ title: string;
1485
+ /**
1486
+ * Description text below the title
1487
+ */
1488
+ description: string;
1489
+ /**
1490
+ * Button label text
1491
+ */
1492
+ ctaLabel: string;
1493
+ /**
1494
+ * Button URL/href
1495
+ */
1496
+ ctaUrl: string;
1497
+ /**
1498
+ * Callback fired when the CTA card is displayed/rendered
1499
+ * Useful for analytics tracking
1500
+ */
1501
+ onDisplay?: () => void;
1502
+ /**
1503
+ * Callback fired when the CTA button is clicked
1504
+ * Useful for analytics tracking
1505
+ */
1506
+ onCtaClick?: () => void;
1507
+ /**
1508
+ * Additional CSS class names
1509
+ */
1510
+ className?: string;
1511
+ };
1512
+
1480
1513
  type DividerProps = React__default.HTMLAttributes<HTMLHRElement> & SpaceProps & {
1481
1514
  /**
1482
1515
  * Additional CSS class names
@@ -1976,6 +2009,76 @@ type IconLabelProps = {
1976
2009
  };
1977
2010
  declare const IconLabel: ({ variant, label, iconSize, labelSize, className, ...rest }: IconLabelProps) => _emotion_react_jsx_runtime.JSX.Element;
1978
2011
 
2012
+ type ImageGalleryItem = {
2013
+ /**
2014
+ * URL of the image
2015
+ */
2016
+ src: string;
2017
+ /**
2018
+ * Alt text for the image
2019
+ */
2020
+ alt?: string;
2021
+ /**
2022
+ * Optional caption to display below the image
2023
+ */
2024
+ caption?: ReactNode;
2025
+ };
2026
+ type ImageGalleryModalProps = {
2027
+ /**
2028
+ * Unique identifier for the modal
2029
+ */
2030
+ id: string;
2031
+ /**
2032
+ * Whether the modal is open
2033
+ */
2034
+ isOpen: boolean;
2035
+ /**
2036
+ * Callback when the modal is closed
2037
+ */
2038
+ onClose?: (event: MouseEvent | KeyboardEvent) => void;
2039
+ /**
2040
+ * Array of images to display in the gallery
2041
+ */
2042
+ images: ImageGalleryItem[];
2043
+ /**
2044
+ * Initial slide index to show when modal opens
2045
+ * @default 0
2046
+ */
2047
+ initialIndex?: number;
2048
+ /**
2049
+ * Whether to show navigation dots
2050
+ * @default true
2051
+ */
2052
+ showDots?: boolean;
2053
+ /**
2054
+ * Whether to show navigation arrows
2055
+ * @default true
2056
+ */
2057
+ showArrows?: boolean;
2058
+ /**
2059
+ * Whether to show image counter (e.g., "3 / 10")
2060
+ * @default true
2061
+ */
2062
+ showCounter?: boolean;
2063
+ /**
2064
+ * Additional CSS class name
2065
+ */
2066
+ className?: string;
2067
+ /**
2068
+ * Accessible label for the gallery
2069
+ */
2070
+ ariaLabel?: string;
2071
+ };
2072
+
2073
+ /**
2074
+ * ImageGalleryModal component for displaying images in a fullscreen carousel modal.
2075
+ * Supports keyboard navigation (arrow keys), swipe gestures, and accessibility features.
2076
+ */
2077
+ declare const ImageGalleryModal: {
2078
+ ({ id, isOpen, onClose, images, initialIndex, showDots, showArrows, showCounter, className, ariaLabel, }: ImageGalleryModalProps): _emotion_react_jsx_runtime.JSX.Element;
2079
+ displayName: string;
2080
+ };
2081
+
1979
2082
  type InfoBoxProps = {
1980
2083
  /**
1981
2084
  * Heading text for the info box
@@ -2197,6 +2300,88 @@ type MarkdownContentProps = {
2197
2300
  };
2198
2301
  declare const MarkdownContent: React__default.FC<MarkdownContentProps>;
2199
2302
 
2303
+ type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
2304
+ type ModalProps = {
2305
+ /**
2306
+ * Unique identifier for the modal
2307
+ */
2308
+ id: string;
2309
+ /**
2310
+ * Whether the modal is open
2311
+ */
2312
+ isOpen: boolean;
2313
+ /**
2314
+ * Callback when the modal is closed
2315
+ */
2316
+ onClose?: (event: MouseEvent | KeyboardEvent) => void;
2317
+ /**
2318
+ * Modal content
2319
+ */
2320
+ children?: ReactNode;
2321
+ /**
2322
+ * Size of the modal
2323
+ * @default 'md'
2324
+ */
2325
+ size?: ModalSize;
2326
+ /**
2327
+ * Whether to close the modal when clicking outside
2328
+ * @default true
2329
+ */
2330
+ closeOnOutsideClick?: boolean;
2331
+ /**
2332
+ * Whether to close the modal when pressing Escape
2333
+ * @default true
2334
+ */
2335
+ closeOnEscape?: boolean;
2336
+ /**
2337
+ * Whether to show the close button
2338
+ * @default true
2339
+ */
2340
+ showCloseButton?: boolean;
2341
+ /**
2342
+ * Icon variant for the close button
2343
+ * @default 'Xmark'
2344
+ */
2345
+ closeButtonIcon?: IconVariantTypes$1;
2346
+ /**
2347
+ * Custom styles for the scroll layer (backdrop)
2348
+ */
2349
+ scrollLayerStyles?: Interpolation<Theme>;
2350
+ /**
2351
+ * Custom styles for the container
2352
+ */
2353
+ containerStyles?: Interpolation<Theme>;
2354
+ /**
2355
+ * Custom styles for the content area
2356
+ */
2357
+ contentStyles?: Interpolation<Theme>;
2358
+ /**
2359
+ * Custom styles for the close button
2360
+ */
2361
+ closeButtonStyles?: Interpolation<Theme>;
2362
+ /**
2363
+ * Additional CSS class name
2364
+ */
2365
+ className?: string;
2366
+ /**
2367
+ * Accessible label for the modal
2368
+ */
2369
+ ariaLabel?: string;
2370
+ /**
2371
+ * ID of the element that describes the modal
2372
+ */
2373
+ ariaDescribedBy?: string;
2374
+ };
2375
+
2376
+ /**
2377
+ * Modal component for displaying content in an overlay dialog.
2378
+ * Supports keyboard navigation, focus trapping, and accessibility features.
2379
+ */
2380
+ declare const Modal: {
2381
+ ({ id, isOpen, onClose, children, size, closeOnOutsideClick, closeOnEscape, showCloseButton, closeButtonIcon, scrollLayerStyles: customScrollLayerStyles, containerStyles: customContainerStyles, contentStyles: customContentStyles, closeButtonStyles: customCloseButtonStyles, className, ariaLabel, ariaDescribedBy, }: ModalProps): React__default.ReactPortal | null;
2382
+ displayName: string;
2383
+ };
2384
+
2200
2385
  type NavLink = {
2201
2386
  /**
2202
2387
  * Text label for the navigation link
@@ -2697,4 +2882,4 @@ declare const Widget: React__default.FC<WidgetProps> & {
2697
2882
  }>;
2698
2883
  };
2699
2884
 
2700
- 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 };
2885
+ 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, 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 };