@landtrustinc/design-system 1.2.59 → 1.2.61
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 +35 -12
- package/dist/index.js +261 -261
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1075,7 +1075,7 @@ type AIResponseProps = {
|
|
|
1075
1075
|
/**
|
|
1076
1076
|
* Visual variant of the response
|
|
1077
1077
|
*/
|
|
1078
|
-
variant?: 'default' | 'error';
|
|
1078
|
+
variant?: 'default' | 'error' | 'success';
|
|
1079
1079
|
/**
|
|
1080
1080
|
* Callback for retry button in error state
|
|
1081
1081
|
*/
|
|
@@ -1591,7 +1591,7 @@ type ChatWidgetProps = {
|
|
|
1591
1591
|
};
|
|
1592
1592
|
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;
|
|
1593
1593
|
|
|
1594
|
-
type
|
|
1594
|
+
type CtaCardBase = {
|
|
1595
1595
|
/**
|
|
1596
1596
|
* Card title (displayed in bold)
|
|
1597
1597
|
*/
|
|
@@ -1600,14 +1600,6 @@ type CtaCardProps = {
|
|
|
1600
1600
|
* Description text below the title
|
|
1601
1601
|
*/
|
|
1602
1602
|
description: string;
|
|
1603
|
-
/**
|
|
1604
|
-
* Button label text
|
|
1605
|
-
*/
|
|
1606
|
-
ctaLabel: string;
|
|
1607
|
-
/**
|
|
1608
|
-
* Button URL/href
|
|
1609
|
-
*/
|
|
1610
|
-
ctaUrl: string;
|
|
1611
1603
|
/**
|
|
1612
1604
|
* Whether to open the CTA link in a new tab
|
|
1613
1605
|
* @default false
|
|
@@ -1618,16 +1610,47 @@ type CtaCardProps = {
|
|
|
1618
1610
|
* Useful for analytics tracking
|
|
1619
1611
|
*/
|
|
1620
1612
|
onDisplay?: () => void;
|
|
1613
|
+
/**
|
|
1614
|
+
* Additional CSS class names
|
|
1615
|
+
*/
|
|
1616
|
+
className?: string;
|
|
1617
|
+
};
|
|
1618
|
+
/** CTA card with a link – provide ctaUrl (optionally onCtaClick for analytics) */
|
|
1619
|
+
type CtaCardWithUrl = CtaCardBase & {
|
|
1620
|
+
/**
|
|
1621
|
+
* Button label text
|
|
1622
|
+
*/
|
|
1623
|
+
ctaLabel: string;
|
|
1624
|
+
ctaUrl: string;
|
|
1621
1625
|
/**
|
|
1622
1626
|
* Callback fired when the CTA button is clicked
|
|
1623
1627
|
* Useful for analytics tracking
|
|
1624
1628
|
*/
|
|
1625
1629
|
onCtaClick?: () => void;
|
|
1630
|
+
};
|
|
1631
|
+
/** CTA card with click handler only – provide onCtaClick */
|
|
1632
|
+
type CtaCardWithClick = CtaCardBase & {
|
|
1626
1633
|
/**
|
|
1627
|
-
*
|
|
1634
|
+
* Button label text
|
|
1628
1635
|
*/
|
|
1629
|
-
|
|
1636
|
+
ctaLabel: string;
|
|
1637
|
+
ctaUrl?: never;
|
|
1638
|
+
/**
|
|
1639
|
+
* Callback fired when the CTA button is clicked
|
|
1640
|
+
* Required when ctaUrl is not provided
|
|
1641
|
+
*/
|
|
1642
|
+
onCtaClick: () => void;
|
|
1630
1643
|
};
|
|
1644
|
+
/** CTA card without a button – title and description only */
|
|
1645
|
+
type CtaCardWithoutButton = CtaCardBase & {
|
|
1646
|
+
ctaLabel?: string;
|
|
1647
|
+
ctaUrl?: never;
|
|
1648
|
+
onCtaClick?: never;
|
|
1649
|
+
};
|
|
1650
|
+
/**
|
|
1651
|
+
* Props for CtaCard. Button is optional: provide ctaUrl and/or onCtaClick to show a CTA button, or omit both for a card with no button.
|
|
1652
|
+
*/
|
|
1653
|
+
type CtaCardProps = CtaCardWithUrl | CtaCardWithClick | CtaCardWithoutButton;
|
|
1631
1654
|
|
|
1632
1655
|
/**
|
|
1633
1656
|
* CtaCard - A promotional card component for displaying CTAs
|