@envive-ai/react-toolkit-v3 0.3.10 → 0.3.11

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.
Files changed (124) hide show
  1. package/dist/AnimatedText/AnimatedText.d.cts +3 -3
  2. package/dist/AnimatedText/AnimatedText.d.ts +3 -3
  3. package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
  4. package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
  5. package/dist/Carousel/Carousel.d.cts +2 -2
  6. package/dist/Carousel/Carousel.d.ts +2 -2
  7. package/dist/ChatFooter/ChatFooter.d.cts +2 -2
  8. package/dist/ChatFooter/ChatFooter.d.ts +2 -2
  9. package/dist/ChatFooter/components/index.d.cts +5 -5
  10. package/dist/ChatFooter/components/index.d.ts +5 -5
  11. package/dist/ChatHeader/ChatHeader.d.cts +2 -2
  12. package/dist/ChatHeader/ChatHeader.d.ts +2 -2
  13. package/dist/ChatPreview/ChatPreview.d.cts +2 -2
  14. package/dist/ChatPreview/ChatPreview.d.ts +2 -2
  15. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
  16. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
  17. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
  18. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
  19. package/dist/Container/Container.d.cts +175 -175
  20. package/dist/Container/Container.d.ts +4 -4
  21. package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
  22. package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
  23. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
  24. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
  25. package/dist/FloatingButton/FloatingButton.d.cts +2 -2
  26. package/dist/FloatingButton/FloatingButton.d.ts +2 -2
  27. package/dist/FloatingChat/FloatingChat.cjs +5 -3
  28. package/dist/FloatingChat/FloatingChat.d.cts +3 -2
  29. package/dist/FloatingChat/FloatingChat.d.ts +1 -0
  30. package/dist/FloatingChat/FloatingChat.js +5 -3
  31. package/dist/FloatingChat/components/Layout.cjs +5 -1
  32. package/dist/FloatingChat/components/Layout.js +5 -1
  33. package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +1 -0
  34. package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +1 -0
  35. package/dist/FloatingChat/types/types.d.cts +4 -0
  36. package/dist/FloatingChat/types/types.d.ts +4 -0
  37. package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +131 -0
  38. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +24 -0
  39. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +24 -0
  40. package/dist/FullPageSalesAgent/FullPageSalesAgent.js +130 -0
  41. package/dist/FullPageSalesAgent/components/Layout.cjs +53 -0
  42. package/dist/FullPageSalesAgent/components/Layout.js +51 -0
  43. package/dist/FullPageSalesAgent/components/index.cjs +7 -0
  44. package/dist/FullPageSalesAgent/components/index.js +7 -0
  45. package/dist/FullPageSalesAgent/hooks/useContainerResizerObserver.cjs +23 -0
  46. package/dist/FullPageSalesAgent/hooks/useContainerResizerObserver.js +22 -0
  47. package/dist/FullPageSalesAgent/hooks/useGetContainerStyles.cjs +16 -0
  48. package/dist/FullPageSalesAgent/hooks/useGetContainerStyles.js +16 -0
  49. package/dist/FullPageSalesAgent/hooks/useGetFooterStyles.cjs +16 -0
  50. package/dist/FullPageSalesAgent/hooks/useGetFooterStyles.js +16 -0
  51. package/dist/FullPageSalesAgent/hooks/useGetScrollContentStyles.cjs +19 -0
  52. package/dist/FullPageSalesAgent/hooks/useGetScrollContentStyles.js +17 -0
  53. package/dist/FullPageSalesAgent/hooks/useIsMobile.cjs +7 -0
  54. package/dist/FullPageSalesAgent/hooks/useIsMobile.js +7 -0
  55. package/dist/FullPageSalesAgent/index.cjs +3 -0
  56. package/dist/FullPageSalesAgent/index.d.cts +2 -0
  57. package/dist/FullPageSalesAgent/index.d.ts +2 -0
  58. package/dist/FullPageSalesAgent/index.js +3 -0
  59. package/dist/Image/Image.d.cts +2 -2
  60. package/dist/Image/Image.d.ts +2 -2
  61. package/dist/ImageGallery/ImageGallery.d.cts +2 -2
  62. package/dist/ImageGallery/ImageGallery.d.ts +2 -2
  63. package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
  64. package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
  65. package/dist/Message/hooks/useVariantStyleProperties.cjs +1 -1
  66. package/dist/Message/hooks/useVariantStyleProperties.js +1 -1
  67. package/dist/ProductCard/ProductCard.d.cts +2 -2
  68. package/dist/ProductCard/ProductCard.d.ts +2 -2
  69. package/dist/PromptButton/PromptButton.d.cts +2 -2
  70. package/dist/PromptButton/PromptButton.d.ts +2 -2
  71. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
  72. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
  73. package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
  74. package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
  75. package/dist/ReviewCard/ReviewCard.d.cts +2 -2
  76. package/dist/ReviewCard/ReviewCard.d.ts +2 -2
  77. package/dist/ReviewCard/components/index.d.cts +6 -6
  78. package/dist/ReviewCard/components/index.d.ts +4 -4
  79. package/dist/SalesAgentProductCard/SalesAgentProductCard.cjs +2 -1
  80. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +3 -2
  81. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +3 -2
  82. package/dist/SalesAgentProductCard/SalesAgentProductCard.js +2 -1
  83. package/dist/SalesAgentProductCard/components/Container.cjs +7 -5
  84. package/dist/SalesAgentProductCard/components/Container.d.cts +2 -1
  85. package/dist/SalesAgentProductCard/components/Container.d.ts +2 -1
  86. package/dist/SalesAgentProductCard/components/Container.js +7 -5
  87. package/dist/SalesAgentProductCard/components/index.d.cts +9 -8
  88. package/dist/SalesAgentProductCard/components/index.d.ts +9 -8
  89. package/dist/SalesAgentProductCard/types/types.d.cts +4 -0
  90. package/dist/SalesAgentProductCard/types/types.d.ts +4 -0
  91. package/dist/SocialProof/SocialProof.d.cts +2 -2
  92. package/dist/SocialProof/SocialProof.d.ts +2 -2
  93. package/dist/Stack/Stack.d.ts +2 -2
  94. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
  95. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
  96. package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
  97. package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
  98. package/dist/Typography/Typography.d.cts +4 -4
  99. package/dist/Typography/Typography.d.ts +4 -4
  100. package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
  101. package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
  102. package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
  103. package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
  104. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
  105. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
  106. package/dist/styles.css +1 -1
  107. package/package.json +5 -1
  108. package/src/components/FloatingChat/FloatingChat.tsx +7 -1
  109. package/src/components/FloatingChat/components/Layout.tsx +3 -0
  110. package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +4 -3
  111. package/src/components/FloatingChat/types/types.ts +4 -0
  112. package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +199 -0
  113. package/src/components/FullPageSalesAgent/components/Layout.tsx +81 -0
  114. package/src/components/FullPageSalesAgent/components/index.ts +5 -0
  115. package/src/components/FullPageSalesAgent/hooks/useContainerResizerObserver.ts +33 -0
  116. package/src/components/FullPageSalesAgent/hooks/useGetContainerStyles.ts +24 -0
  117. package/src/components/FullPageSalesAgent/hooks/useGetFooterStyles.ts +17 -0
  118. package/src/components/FullPageSalesAgent/hooks/useGetScrollContentStyles.ts +17 -0
  119. package/src/components/FullPageSalesAgent/hooks/useIsMobile.ts +3 -0
  120. package/src/components/FullPageSalesAgent/index.ts +1 -0
  121. package/src/components/Message/hooks/useVariantStyleProperties.ts +1 -1
  122. package/src/components/SalesAgentProductCard/SalesAgentProductCard.tsx +2 -0
  123. package/src/components/SalesAgentProductCard/components/Container.tsx +16 -9
  124. package/src/components/SalesAgentProductCard/types/types.ts +4 -0
@@ -0,0 +1,17 @@
1
+ import { useIsMobile } from "./useIsMobile.js";
2
+ import classNames from "classnames";
3
+
4
+ //#region src/components/FullPageSalesAgent/hooks/useGetScrollContentStyles.ts
5
+ const useGetScrollContentStyles = () => {
6
+ const { isMobile } = useIsMobile();
7
+ return {
8
+ contentClasses: classNames({
9
+ "envive-tw-flex-1 envive-tw-overflow-y-auto envive-tw-overflow-x-hidden envive-tw-transition-all envive-tw-duration-300 envive-tw-ease-in-out": true,
10
+ "envive-tw-pb-[131px]": isMobile
11
+ }),
12
+ messageContainerClasses: !isMobile ? "envive-tw-pt-4" : null
13
+ };
14
+ };
15
+
16
+ //#endregion
17
+ export { useGetScrollContentStyles };
@@ -0,0 +1,7 @@
1
+ const require_useCheckIsMobile = require('../../utils/useCheckIsMobile.cjs');
2
+
3
+ //#region src/components/FullPageSalesAgent/hooks/useIsMobile.ts
4
+ const useIsMobile = () => require_useCheckIsMobile.useCheckIsMobile("md");
5
+
6
+ //#endregion
7
+ exports.useIsMobile = useIsMobile;
@@ -0,0 +1,7 @@
1
+ import { useCheckIsMobile } from "../../utils/useCheckIsMobile.js";
2
+
3
+ //#region src/components/FullPageSalesAgent/hooks/useIsMobile.ts
4
+ const useIsMobile = () => useCheckIsMobile("md");
5
+
6
+ //#endregion
7
+ export { useIsMobile };
@@ -0,0 +1,3 @@
1
+ const require_FullPageSalesAgent = require('./FullPageSalesAgent.cjs');
2
+
3
+ exports.FullPageSalesAgent = require_FullPageSalesAgent.FullPageSalesAgent;
@@ -0,0 +1,2 @@
1
+ import { FullPageSalesAgent } from "./FullPageSalesAgent.cjs";
2
+ export { FullPageSalesAgent };
@@ -0,0 +1,2 @@
1
+ import { FullPageSalesAgent } from "./FullPageSalesAgent.js";
2
+ export { FullPageSalesAgent };
@@ -0,0 +1,3 @@
1
+ import { FullPageSalesAgent } from "./FullPageSalesAgent.js";
2
+
3
+ export { FullPageSalesAgent };
@@ -1,5 +1,5 @@
1
1
  import { ImageProps } from "./types/index.cjs";
2
- import * as react_jsx_runtime15 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime27 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/Image/Image.d.ts
5
5
 
@@ -25,6 +25,6 @@ declare const Image: ({
25
25
  role,
26
26
  "aria-hidden": ariaHidden,
27
27
  ...rest
28
- }: ImageProps) => react_jsx_runtime15.JSX.Element;
28
+ }: ImageProps) => react_jsx_runtime27.JSX.Element;
29
29
  //#endregion
30
30
  export { Image };
@@ -1,5 +1,5 @@
1
1
  import { ImageProps } from "./types/index.js";
2
- import * as react_jsx_runtime28 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/Image/Image.d.ts
5
5
 
@@ -25,6 +25,6 @@ declare const Image: ({
25
25
  role,
26
26
  "aria-hidden": ariaHidden,
27
27
  ...rest
28
- }: ImageProps) => react_jsx_runtime28.JSX.Element;
28
+ }: ImageProps) => react_jsx_runtime15.JSX.Element;
29
29
  //#endregion
30
30
  export { Image };
@@ -1,5 +1,5 @@
1
1
  import { ImageGalleryProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime8 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime30 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ImageGallery/ImageGallery.d.ts
5
5
 
@@ -40,6 +40,6 @@ declare const ImageGallery: ({
40
40
  "aria-describedby": ariaDescribedBy,
41
41
  role,
42
42
  "aria-hidden": ariaHidden
43
- }: ImageGalleryProps) => react_jsx_runtime8.JSX.Element;
43
+ }: ImageGalleryProps) => react_jsx_runtime30.JSX.Element;
44
44
  //#endregion
45
45
  export { ImageGallery };
@@ -1,5 +1,5 @@
1
1
  import { ImageGalleryProps } from "./types/types.js";
2
- import * as react_jsx_runtime20 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime21 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ImageGallery/ImageGallery.d.ts
5
5
 
@@ -40,6 +40,6 @@ declare const ImageGallery: ({
40
40
  "aria-describedby": ariaDescribedBy,
41
41
  role,
42
42
  "aria-hidden": ariaHidden
43
- }: ImageGalleryProps) => react_jsx_runtime20.JSX.Element;
43
+ }: ImageGalleryProps) => react_jsx_runtime21.JSX.Element;
44
44
  //#endregion
45
45
  export { ImageGallery };
@@ -1,5 +1,5 @@
1
1
  import { MarkdownProcessorProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime24 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/MarkdownProcessor/MarkdownProcessor.d.ts
5
5
  declare const MarkdownProcessor: ({
@@ -9,6 +9,6 @@ declare const MarkdownProcessor: ({
9
9
  textVariant,
10
10
  subTextVariant,
11
11
  subTextColor
12
- }: MarkdownProcessorProps) => react_jsx_runtime0.JSX.Element;
12
+ }: MarkdownProcessorProps) => react_jsx_runtime24.JSX.Element;
13
13
  //#endregion
14
14
  export { MarkdownProcessor };
@@ -1,5 +1,5 @@
1
1
  import { MarkdownProcessorProps } from "./types/types.js";
2
- import * as react_jsx_runtime23 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/MarkdownProcessor/MarkdownProcessor.d.ts
5
5
  declare const MarkdownProcessor: ({
@@ -9,6 +9,6 @@ declare const MarkdownProcessor: ({
9
9
  textVariant,
10
10
  subTextVariant,
11
11
  subTextColor
12
- }: MarkdownProcessorProps) => react_jsx_runtime23.JSX.Element;
12
+ }: MarkdownProcessorProps) => react_jsx_runtime18.JSX.Element;
13
13
  //#endregion
14
14
  export { MarkdownProcessor };
@@ -11,7 +11,7 @@ const useVariantStyleProperties = (variant = require_index.MessageVariant.AGENT)
11
11
  return {
12
12
  [require_index.MessageVariant.AGENT]: {
13
13
  containerLayoutClasses: "envive-tw-flex envive-tw-flex-col envive-tw-gap-2",
14
- containerBackgroundClasses: "envive-tw-bg-background-light",
14
+ containerBackgroundClasses: "",
15
15
  containerBorderClasses: "",
16
16
  containerRadiusClasses: "envive-tw-rounded-md",
17
17
  contentClasses: "",
@@ -10,7 +10,7 @@ const useVariantStyleProperties = (variant = MessageVariant.AGENT) => {
10
10
  return {
11
11
  [MessageVariant.AGENT]: {
12
12
  containerLayoutClasses: "envive-tw-flex envive-tw-flex-col envive-tw-gap-2",
13
- containerBackgroundClasses: "envive-tw-bg-background-light",
13
+ containerBackgroundClasses: "",
14
14
  containerBorderClasses: "",
15
15
  containerRadiusClasses: "envive-tw-rounded-md",
16
16
  contentClasses: "",
@@ -1,5 +1,5 @@
1
1
  import { ProductCardProps } from "./types/index.cjs";
2
- import * as react_jsx_runtime31 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime13 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ProductCard/ProductCard.d.ts
5
5
  declare const ProductCard: ({
@@ -18,6 +18,6 @@ declare const ProductCard: ({
18
18
  loop,
19
19
  onSelect,
20
20
  onInputClick
21
- }: ProductCardProps) => react_jsx_runtime31.JSX.Element;
21
+ }: ProductCardProps) => react_jsx_runtime13.JSX.Element;
22
22
  //#endregion
23
23
  export { ProductCard };
@@ -1,5 +1,5 @@
1
1
  import { ProductCardProps } from "./types/index.js";
2
- import * as react_jsx_runtime17 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ProductCard/ProductCard.d.ts
5
5
  declare const ProductCard: ({
@@ -18,6 +18,6 @@ declare const ProductCard: ({
18
18
  loop,
19
19
  onSelect,
20
20
  onInputClick
21
- }: ProductCardProps) => react_jsx_runtime17.JSX.Element;
21
+ }: ProductCardProps) => react_jsx_runtime19.JSX.Element;
22
22
  //#endregion
23
23
  export { ProductCard };
@@ -1,5 +1,5 @@
1
1
  import { PromptButtonProps } from "./types/index.cjs";
2
- import * as react_jsx_runtime20 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/PromptButton/PromptButton.d.ts
5
5
  declare const PromptButton: ({
@@ -16,6 +16,6 @@ declare const PromptButton: ({
16
16
  onClick,
17
17
  ariaLabel,
18
18
  ariaDescribedBy
19
- }: PromptButtonProps) => react_jsx_runtime20.JSX.Element;
19
+ }: PromptButtonProps) => react_jsx_runtime11.JSX.Element;
20
20
  //#endregion
21
21
  export { PromptButton };
@@ -1,5 +1,5 @@
1
1
  import { PromptButtonProps } from "./types/index.js";
2
- import * as react_jsx_runtime19 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/PromptButton/PromptButton.d.ts
5
5
  declare const PromptButton: ({
@@ -16,6 +16,6 @@ declare const PromptButton: ({
16
16
  onClick,
17
17
  ariaLabel,
18
18
  ariaDescribedBy
19
- }: PromptButtonProps) => react_jsx_runtime19.JSX.Element;
19
+ }: PromptButtonProps) => react_jsx_runtime17.JSX.Element;
20
20
  //#endregion
21
21
  export { PromptButton };
@@ -1,5 +1,5 @@
1
1
  import { PromptButtonCarouselWithImageProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime14 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts
5
5
  declare const PromptButtonCarouselWithImage: ({
@@ -18,6 +18,6 @@ declare const PromptButtonCarouselWithImage: ({
18
18
  handlePromptButtonClick,
19
19
  textFieldPlaceholder,
20
20
  handleTextFieldClick
21
- }: PromptButtonCarouselWithImageProps) => react_jsx_runtime14.JSX.Element;
21
+ }: PromptButtonCarouselWithImageProps) => react_jsx_runtime10.JSX.Element;
22
22
  //#endregion
23
23
  export { PromptButtonCarouselWithImage };
@@ -1,5 +1,5 @@
1
1
  import { PromptButtonCarouselWithImageProps } from "./types/types.js";
2
- import * as react_jsx_runtime12 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts
5
5
  declare const PromptButtonCarouselWithImage: ({
@@ -18,6 +18,6 @@ declare const PromptButtonCarouselWithImage: ({
18
18
  handlePromptButtonClick,
19
19
  textFieldPlaceholder,
20
20
  handleTextFieldClick
21
- }: PromptButtonCarouselWithImageProps) => react_jsx_runtime12.JSX.Element;
21
+ }: PromptButtonCarouselWithImageProps) => react_jsx_runtime3.JSX.Element;
22
22
  //#endregion
23
23
  export { PromptButtonCarouselWithImage };
@@ -1,5 +1,5 @@
1
1
  import { PromptCarouselProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime16 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/PromptCarousel/PromptCarousel.d.ts
5
5
  declare const PromptCarousel: ({
@@ -19,6 +19,6 @@ declare const PromptCarousel: ({
19
19
  "aria-labelledby": ariaLabelledBy,
20
20
  "aria-describedby": ariaDescribedBy,
21
21
  role
22
- }: PromptCarouselProps) => react_jsx_runtime16.JSX.Element;
22
+ }: PromptCarouselProps) => react_jsx_runtime0.JSX.Element;
23
23
  //#endregion
24
24
  export { PromptCarousel };
@@ -1,5 +1,5 @@
1
1
  import { PromptCarouselProps } from "./types/types.js";
2
- import * as react_jsx_runtime18 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/PromptCarousel/PromptCarousel.d.ts
5
5
  declare const PromptCarousel: ({
@@ -19,6 +19,6 @@ declare const PromptCarousel: ({
19
19
  "aria-labelledby": ariaLabelledBy,
20
20
  "aria-describedby": ariaDescribedBy,
21
21
  role
22
- }: PromptCarouselProps) => react_jsx_runtime18.JSX.Element;
22
+ }: PromptCarouselProps) => react_jsx_runtime4.JSX.Element;
23
23
  //#endregion
24
24
  export { PromptCarousel };
@@ -1,5 +1,5 @@
1
1
  import { ReviewCardProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime9 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ReviewCard/ReviewCard.d.ts
5
5
 
@@ -25,6 +25,6 @@ declare const ReviewCard: ({
25
25
  readMoreLabel,
26
26
  readLessLabel,
27
27
  verifiedBuyerLabel
28
- }: ReviewCardProps) => react_jsx_runtime9.JSX.Element;
28
+ }: ReviewCardProps) => react_jsx_runtime3.JSX.Element;
29
29
  //#endregion
30
30
  export { ReviewCard };
@@ -1,5 +1,5 @@
1
1
  import { ReviewCardProps } from "./types/types.js";
2
- import * as react_jsx_runtime13 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ReviewCard/ReviewCard.d.ts
5
5
 
@@ -25,6 +25,6 @@ declare const ReviewCard: ({
25
25
  readMoreLabel,
26
26
  readLessLabel,
27
27
  verifiedBuyerLabel
28
- }: ReviewCardProps) => react_jsx_runtime13.JSX.Element;
28
+ }: ReviewCardProps) => react_jsx_runtime11.JSX.Element;
29
29
  //#endregion
30
30
  export { ReviewCard };
@@ -2,8 +2,8 @@ import { Theme } from "../../tokens/theme/theme.cjs";
2
2
  import { ContainerProps } from "./Container.cjs";
3
3
  import { RatingProps } from "./Rating.cjs";
4
4
  import { ReadMoreButtonProps } from "./ReadMoreButton.cjs";
5
- import * as react2 from "react";
6
- import * as react_jsx_runtime10 from "react/jsx-runtime";
5
+ import * as react0 from "react";
6
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
7
7
 
8
8
  //#region src/components/ReviewCard/components/index.d.ts
9
9
  declare const ReviewCardComponents: {
@@ -31,12 +31,12 @@ declare const ReviewCardComponents: {
31
31
  verifiedBuyerLabel?: string;
32
32
  className?: string;
33
33
  style?: React.CSSProperties;
34
- }) => react_jsx_runtime10.JSX.Element;
34
+ }) => react_jsx_runtime5.JSX.Element;
35
35
  Rating: ({
36
36
  rating,
37
37
  theme,
38
38
  style
39
- }: RatingProps) => react_jsx_runtime10.JSX.Element;
39
+ }: RatingProps) => react_jsx_runtime5.JSX.Element;
40
40
  StarIcon: ({
41
41
  theme,
42
42
  style,
@@ -45,7 +45,7 @@ declare const ReviewCardComponents: {
45
45
  theme: Theme;
46
46
  style?: React.CSSProperties;
47
47
  className?: string;
48
- }) => react2.ReactElement<react2.SVGProps<SVGSVGElement>, string | react2.JSXElementConstructor<any>>;
48
+ }) => react0.ReactElement<react0.SVGProps<SVGSVGElement>, string | react0.JSXElementConstructor<any>>;
49
49
  ReviewText: ({
50
50
  reviewText,
51
51
  isExpanded,
@@ -56,7 +56,7 @@ declare const ReviewCardComponents: {
56
56
  isExpanded: boolean;
57
57
  className?: string;
58
58
  style?: React.CSSProperties;
59
- }) => react_jsx_runtime10.JSX.Element;
59
+ }) => react_jsx_runtime5.JSX.Element;
60
60
  ReadMoreButton: ({
61
61
  isExpanded,
62
62
  onToggle,
@@ -3,7 +3,7 @@ import { ContainerProps } from "./Container.js";
3
3
  import { RatingProps } from "./Rating.js";
4
4
  import { ReadMoreButtonProps } from "./ReadMoreButton.js";
5
5
  import * as react7 from "react";
6
- import * as react_jsx_runtime14 from "react/jsx-runtime";
6
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
7
7
 
8
8
  //#region src/components/ReviewCard/components/index.d.ts
9
9
  declare const ReviewCardComponents: {
@@ -31,12 +31,12 @@ declare const ReviewCardComponents: {
31
31
  verifiedBuyerLabel?: string;
32
32
  className?: string;
33
33
  style?: React.CSSProperties;
34
- }) => react_jsx_runtime14.JSX.Element;
34
+ }) => react_jsx_runtime12.JSX.Element;
35
35
  Rating: ({
36
36
  rating,
37
37
  theme,
38
38
  style
39
- }: RatingProps) => react_jsx_runtime14.JSX.Element;
39
+ }: RatingProps) => react_jsx_runtime12.JSX.Element;
40
40
  StarIcon: ({
41
41
  theme,
42
42
  style,
@@ -56,7 +56,7 @@ declare const ReviewCardComponents: {
56
56
  isExpanded: boolean;
57
57
  className?: string;
58
58
  style?: React.CSSProperties;
59
- }) => react_jsx_runtime14.JSX.Element;
59
+ }) => react_jsx_runtime12.JSX.Element;
60
60
  ReadMoreButton: ({
61
61
  isExpanded,
62
62
  onToggle,
@@ -15,7 +15,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
15
15
  * and supports different variants and themes.
16
16
  * @public
17
17
  */
18
- const SalesAgentProductCard = ({ id, testId, className, style, theme = require_theme.Theme.GLOBAL_CUSTOM, variant = require_types.SalesAgentProductCardVariant.LARGE, imageAspectRatio = require_index.ImageAspectRatio.GLOBAL_CUSTOM, numberOfReviews, productName, previousPrice, currentPrice, pricePrefix = "$", forceShowCurrentPriceSpace = false, rate, image, url, onClick }) => {
18
+ const SalesAgentProductCard = ({ id, testId, className, style, theme = require_theme.Theme.GLOBAL_CUSTOM, variant = require_types.SalesAgentProductCardVariant.LARGE, imageAspectRatio = require_index.ImageAspectRatio.GLOBAL_CUSTOM, numberOfReviews, productName, previousPrice, currentPrice, pricePrefix = "$", forceShowCurrentPriceSpace = false, rate, image, url, target, onClick }) => {
19
19
  const finalTheme = require_resolveTheme.resolveTheme(theme);
20
20
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.SalesAgentProductCardComponents.Container, {
21
21
  id,
@@ -25,6 +25,7 @@ const SalesAgentProductCard = ({ id, testId, className, style, theme = require_t
25
25
  theme: finalTheme,
26
26
  variant,
27
27
  url,
28
+ target,
28
29
  onClick,
29
30
  productName: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.SalesAgentProductCardComponents.ProductName, {
30
31
  label: productName,
@@ -1,5 +1,5 @@
1
1
  import { SalesAgentProductCardProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime6 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime20 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/SalesAgentProductCard/SalesAgentProductCard.d.ts
5
5
 
@@ -28,7 +28,8 @@ declare const SalesAgentProductCard: ({
28
28
  rate,
29
29
  image,
30
30
  url,
31
+ target,
31
32
  onClick
32
- }: SalesAgentProductCardProps) => react_jsx_runtime6.JSX.Element;
33
+ }: SalesAgentProductCardProps) => react_jsx_runtime20.JSX.Element;
33
34
  //#endregion
34
35
  export { SalesAgentProductCard };
@@ -1,5 +1,5 @@
1
1
  import { SalesAgentProductCardProps } from "./types/types.js";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/SalesAgentProductCard/SalesAgentProductCard.d.ts
5
5
 
@@ -28,7 +28,8 @@ declare const SalesAgentProductCard: ({
28
28
  rate,
29
29
  image,
30
30
  url,
31
+ target,
31
32
  onClick
32
- }: SalesAgentProductCardProps) => react_jsx_runtime0.JSX.Element;
33
+ }: SalesAgentProductCardProps) => react_jsx_runtime5.JSX.Element;
33
34
  //#endregion
34
35
  export { SalesAgentProductCard };
@@ -14,7 +14,7 @@ import { jsx } from "react/jsx-runtime";
14
14
  * and supports different variants and themes.
15
15
  * @public
16
16
  */
17
- const SalesAgentProductCard = ({ id, testId, className, style, theme = Theme.GLOBAL_CUSTOM, variant = SalesAgentProductCardVariant.LARGE, imageAspectRatio = ImageAspectRatio.GLOBAL_CUSTOM, numberOfReviews, productName, previousPrice, currentPrice, pricePrefix = "$", forceShowCurrentPriceSpace = false, rate, image, url, onClick }) => {
17
+ const SalesAgentProductCard = ({ id, testId, className, style, theme = Theme.GLOBAL_CUSTOM, variant = SalesAgentProductCardVariant.LARGE, imageAspectRatio = ImageAspectRatio.GLOBAL_CUSTOM, numberOfReviews, productName, previousPrice, currentPrice, pricePrefix = "$", forceShowCurrentPriceSpace = false, rate, image, url, target, onClick }) => {
18
18
  const finalTheme = resolveTheme(theme);
19
19
  return /* @__PURE__ */ jsx(SalesAgentProductCardComponents.Container, {
20
20
  id,
@@ -24,6 +24,7 @@ const SalesAgentProductCard = ({ id, testId, className, style, theme = Theme.GLO
24
24
  theme: finalTheme,
25
25
  variant,
26
26
  url,
27
+ target,
27
28
  onClick,
28
29
  productName: /* @__PURE__ */ jsx(SalesAgentProductCardComponents.ProductName, {
29
30
  label: productName,
@@ -12,7 +12,7 @@ let classnames = require("classnames");
12
12
  classnames = require_rolldown_runtime.__toESM(classnames);
13
13
 
14
14
  //#region src/components/SalesAgentProductCard/components/Container.tsx
15
- const Container$1 = ({ id, testId, className, style, variant = require_types.SalesAgentProductCardVariant.SMALL, theme = require_theme.Theme.GLOBAL_CUSTOM, productName, price, rate, image, url, onClick }) => {
15
+ const Container$1 = ({ id, testId, className, style, variant = require_types.SalesAgentProductCardVariant.SMALL, theme = require_theme.Theme.GLOBAL_CUSTOM, productName, price, rate, image, url, target = "_self", onClick }) => {
16
16
  const { baseClassName, themeContainerClassNames, containerDirection, containerWidthClassName } = require_useGetContainerProperties.useGetContainerProperties({
17
17
  theme,
18
18
  variant
@@ -27,10 +27,12 @@ const Container$1 = ({ id, testId, className, style, variant = require_types.Sal
27
27
  component: "a",
28
28
  style,
29
29
  className,
30
- href: url,
31
- onClick,
32
- target: "_self",
33
- draggable: false,
30
+ ...target !== "none" ? {
31
+ href: url,
32
+ onClick,
33
+ target,
34
+ draggable: false
35
+ } : { onClick },
34
36
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
35
37
  direction: containerDirection,
36
38
  gap: "0",
@@ -1,5 +1,5 @@
1
1
  import { Theme } from "../../tokens/theme/theme.cjs";
2
- import { SalesAgentProductCardVariant } from "../types/types.cjs";
2
+ import { SalesAgentProductCardProps, SalesAgentProductCardVariant } from "../types/types.cjs";
3
3
 
4
4
  //#region src/components/SalesAgentProductCard/components/Container.d.ts
5
5
  type ContainerProps = {
@@ -14,6 +14,7 @@ type ContainerProps = {
14
14
  rate: React.ReactNode;
15
15
  image: React.ReactNode;
16
16
  url: string;
17
+ target?: SalesAgentProductCardProps['target'];
17
18
  onClick?: () => void | Promise<void>;
18
19
  };
19
20
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
2
- import { SalesAgentProductCardVariant } from "../types/types.js";
2
+ import { SalesAgentProductCardProps, SalesAgentProductCardVariant } from "../types/types.js";
3
3
  import "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/SalesAgentProductCard/components/Container.d.ts
@@ -15,6 +15,7 @@ type ContainerProps = {
15
15
  rate: React.ReactNode;
16
16
  image: React.ReactNode;
17
17
  url: string;
18
+ target?: SalesAgentProductCardProps['target'];
18
19
  onClick?: () => void | Promise<void>;
19
20
  };
20
21
  //#endregion
@@ -10,7 +10,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import classNames from "classnames";
11
11
 
12
12
  //#region src/components/SalesAgentProductCard/components/Container.tsx
13
- const Container$1 = ({ id, testId, className, style, variant = SalesAgentProductCardVariant.SMALL, theme = Theme.GLOBAL_CUSTOM, productName, price, rate, image, url, onClick }) => {
13
+ const Container$1 = ({ id, testId, className, style, variant = SalesAgentProductCardVariant.SMALL, theme = Theme.GLOBAL_CUSTOM, productName, price, rate, image, url, target = "_self", onClick }) => {
14
14
  const { baseClassName, themeContainerClassNames, containerDirection, containerWidthClassName } = useGetContainerProperties({
15
15
  theme,
16
16
  variant
@@ -25,10 +25,12 @@ const Container$1 = ({ id, testId, className, style, variant = SalesAgentProduct
25
25
  component: "a",
26
26
  style,
27
27
  className,
28
- href: url,
29
- onClick,
30
- target: "_self",
31
- draggable: false,
28
+ ...target !== "none" ? {
29
+ href: url,
30
+ onClick,
31
+ target,
32
+ draggable: false
33
+ } : { onClick },
32
34
  children: /* @__PURE__ */ jsxs(Stack, {
33
35
  direction: containerDirection,
34
36
  gap: "0",
@@ -4,8 +4,8 @@ import { ProductNameProps } from "./ProductName.cjs";
4
4
  import { PriceProps } from "./Price.cjs";
5
5
  import { RateProps } from "./Rate.cjs";
6
6
  import { ProductImageProps } from "./ProductImage.cjs";
7
- import * as react0 from "react";
8
- import * as react_jsx_runtime1 from "react/jsx-runtime";
7
+ import * as react7 from "react";
8
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
9
9
 
10
10
  //#region src/components/SalesAgentProductCard/components/index.d.ts
11
11
  declare const SalesAgentProductCardComponents: {
@@ -21,25 +21,26 @@ declare const SalesAgentProductCardComponents: {
21
21
  rate,
22
22
  image,
23
23
  url,
24
+ target,
24
25
  onClick
25
- }: ContainerProps) => react_jsx_runtime1.JSX.Element;
26
+ }: ContainerProps) => react_jsx_runtime15.JSX.Element;
26
27
  ProductName: ({
27
28
  label,
28
29
  theme,
29
30
  style,
30
31
  className
31
- }: ProductNameProps) => react_jsx_runtime1.JSX.Element;
32
+ }: ProductNameProps) => react_jsx_runtime15.JSX.Element;
32
33
  Price: ({
33
34
  previousPrice,
34
35
  currentPrice,
35
36
  pricePrefix,
36
37
  forceShowCurrentPriceSpace
37
- }: PriceProps) => react_jsx_runtime1.JSX.Element;
38
+ }: PriceProps) => react_jsx_runtime15.JSX.Element;
38
39
  Rate: ({
39
40
  rate,
40
41
  numberOfReviews,
41
42
  theme
42
- }: RateProps) => react_jsx_runtime1.JSX.Element;
43
+ }: RateProps) => react_jsx_runtime15.JSX.Element;
43
44
  ProductImage: ({
44
45
  src,
45
46
  alt,
@@ -47,14 +48,14 @@ declare const SalesAgentProductCardComponents: {
47
48
  aspectRatio,
48
49
  className,
49
50
  ...props
50
- }: ProductImageProps) => react_jsx_runtime1.JSX.Element;
51
+ }: ProductImageProps) => react_jsx_runtime15.JSX.Element;
51
52
  StarIcon: ({
52
53
  theme,
53
54
  style
54
55
  }: {
55
56
  theme: Theme;
56
57
  style?: React.CSSProperties;
57
- }) => react0.ReactElement<react0.SVGProps<SVGSVGElement>, string | react0.JSXElementConstructor<any>>;
58
+ }) => react7.ReactElement<react7.SVGProps<SVGSVGElement>, string | react7.JSXElementConstructor<any>>;
58
59
  };
59
60
  //#endregion
60
61
  export { SalesAgentProductCardComponents };