@envive-ai/react-toolkit-v3 0.3.6 → 0.3.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.
Files changed (157) 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/ChatFooter/hooks/useGetContainerProperties.cjs +2 -2
  12. package/dist/ChatFooter/hooks/useGetContainerProperties.js +2 -2
  13. package/dist/ChatHeader/ChatHeader.cjs +3 -2
  14. package/dist/ChatHeader/ChatHeader.d.cts +3 -2
  15. package/dist/ChatHeader/ChatHeader.d.ts +3 -2
  16. package/dist/ChatHeader/ChatHeader.js +3 -2
  17. package/dist/ChatHeader/components/Handle.cjs +27 -1
  18. package/dist/ChatHeader/components/Handle.js +27 -1
  19. package/dist/ChatHeader/types/index.d.cts +2 -0
  20. package/dist/ChatHeader/types/index.d.ts +2 -0
  21. package/dist/ChatPreview/ChatPreview.d.cts +2 -2
  22. package/dist/ChatPreview/ChatPreview.d.ts +2 -2
  23. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
  24. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
  25. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
  26. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
  27. package/dist/Container/Container.d.cts +176 -176
  28. package/dist/Container/Container.d.ts +176 -176
  29. package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
  30. package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
  31. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
  32. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
  33. package/dist/FloatingButton/FloatingButton.cjs +2 -1
  34. package/dist/FloatingButton/FloatingButton.d.cts +4 -3
  35. package/dist/FloatingButton/FloatingButton.d.ts +4 -3
  36. package/dist/FloatingButton/FloatingButton.js +2 -1
  37. package/dist/FloatingButton/components/Container.cjs +2 -2
  38. package/dist/FloatingButton/components/Container.js +2 -2
  39. package/dist/FloatingButton/hooks/useGetContainerProperties.cjs +2 -2
  40. package/dist/FloatingButton/hooks/useGetContainerProperties.js +2 -2
  41. package/dist/FloatingButton/types/types.cjs +4 -4
  42. package/dist/FloatingButton/types/types.d.cts +8 -4
  43. package/dist/FloatingButton/types/types.d.ts +8 -4
  44. package/dist/FloatingButton/types/types.js +4 -4
  45. package/dist/FloatingChat/FloatingChat.cjs +106 -39
  46. package/dist/FloatingChat/FloatingChat.d.cts +3 -2
  47. package/dist/FloatingChat/FloatingChat.d.ts +3 -2
  48. package/dist/FloatingChat/FloatingChat.js +108 -41
  49. package/dist/FloatingChat/components/AgentMessage.cjs +3 -2
  50. package/dist/FloatingChat/components/AgentMessage.js +3 -2
  51. package/dist/FloatingChat/components/ChatMessages.cjs +59 -41
  52. package/dist/FloatingChat/components/ChatMessages.js +58 -40
  53. package/dist/FloatingChat/components/Layout.cjs +2 -2
  54. package/dist/FloatingChat/components/Layout.js +2 -2
  55. package/dist/FloatingChat/components/ModalSheet.cjs +184 -0
  56. package/dist/FloatingChat/components/ModalSheet.js +182 -0
  57. package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +3 -2
  58. package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +3 -2
  59. package/dist/FloatingChat/components/index.cjs +1 -0
  60. package/dist/FloatingChat/components/index.js +1 -0
  61. package/dist/FloatingChat/hooks/useChatSuggestions.cjs +25 -0
  62. package/dist/FloatingChat/hooks/useChatSuggestions.js +24 -0
  63. package/dist/FloatingChat/hooks/useFilteredChatMessages.cjs +24 -0
  64. package/dist/FloatingChat/hooks/useFilteredChatMessages.js +23 -0
  65. package/dist/FloatingChat/hooks/usePreventScroll.cjs +117 -0
  66. package/dist/FloatingChat/hooks/usePreventScroll.js +116 -0
  67. package/dist/FloatingChat/hooks/useSnapCalculator.cjs +37 -0
  68. package/dist/FloatingChat/hooks/useSnapCalculator.js +35 -0
  69. package/dist/FloatingChat/hooks/useSnapControl.cjs +82 -0
  70. package/dist/FloatingChat/hooks/useSnapControl.js +81 -0
  71. package/dist/FloatingChat/hooks/useSnapSetup.cjs +59 -0
  72. package/dist/FloatingChat/hooks/useSnapSetup.js +58 -0
  73. package/dist/FloatingChat/types/types.d.cts +4 -0
  74. package/dist/FloatingChat/types/types.d.ts +4 -0
  75. package/dist/Image/Image.d.cts +2 -2
  76. package/dist/Image/Image.d.ts +2 -2
  77. package/dist/ImageGallery/ImageGallery.d.cts +2 -2
  78. package/dist/ImageGallery/ImageGallery.d.ts +2 -2
  79. package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
  80. package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
  81. package/dist/PromptButton/PromptButton.d.cts +2 -2
  82. package/dist/PromptButton/PromptButton.d.ts +2 -2
  83. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
  84. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
  85. package/dist/PromptCarousel/PromptCarousel.cjs +0 -1
  86. package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
  87. package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
  88. package/dist/PromptCarousel/PromptCarousel.js +0 -1
  89. package/dist/ReviewCard/ReviewCard.d.cts +2 -2
  90. package/dist/ReviewCard/ReviewCard.d.ts +2 -2
  91. package/dist/ReviewCard/components/index.d.cts +6 -6
  92. package/dist/ReviewCard/components/index.d.ts +6 -6
  93. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
  94. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
  95. package/dist/SalesAgentProductCard/components/index.d.cts +2 -2
  96. package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
  97. package/dist/SocialProof/SocialProof.cjs +9 -2
  98. package/dist/SocialProof/SocialProof.d.cts +2 -2
  99. package/dist/SocialProof/SocialProof.d.ts +2 -2
  100. package/dist/SocialProof/SocialProof.js +9 -2
  101. package/dist/SocialProof/hooks/index.cjs +1 -0
  102. package/dist/SocialProof/hooks/index.js +3 -0
  103. package/dist/SocialProof/hooks/useSocialProofCount.cjs +48 -0
  104. package/dist/SocialProof/hooks/useSocialProofCount.d.cts +15 -0
  105. package/dist/SocialProof/hooks/useSocialProofCount.d.ts +15 -0
  106. package/dist/SocialProof/hooks/useSocialProofCount.js +46 -0
  107. package/dist/SocialProof/index.cjs +5 -1
  108. package/dist/SocialProof/index.d.cts +3 -2
  109. package/dist/SocialProof/index.d.ts +3 -2
  110. package/dist/SocialProof/index.js +4 -2
  111. package/dist/SocialProof/types/types.cjs +8 -1
  112. package/dist/SocialProof/types/types.d.cts +16 -6
  113. package/dist/SocialProof/types/types.d.ts +16 -6
  114. package/dist/SocialProof/types/types.js +7 -1
  115. package/dist/Stack/Stack.d.cts +2 -2
  116. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
  117. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
  118. package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
  119. package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
  120. package/dist/Typography/Typography.d.cts +4 -4
  121. package/dist/Typography/Typography.d.ts +4 -4
  122. package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
  123. package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
  124. package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
  125. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
  126. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
  127. package/dist/styles.css +1 -1
  128. package/package.json +1 -1
  129. package/src/components/ChatFooter/hooks/useGetContainerProperties.ts +2 -2
  130. package/src/components/ChatHeader/ChatHeader.tsx +2 -0
  131. package/src/components/ChatHeader/components/Handle.tsx +29 -1
  132. package/src/components/ChatHeader/types/index.ts +3 -0
  133. package/src/components/FloatingButton/FloatingButton.tsx +2 -0
  134. package/src/components/FloatingButton/components/Container.tsx +3 -0
  135. package/src/components/FloatingButton/hooks/useGetContainerProperties.ts +2 -1
  136. package/src/components/FloatingButton/types/types.ts +9 -4
  137. package/src/components/FloatingChat/FloatingChat.tsx +160 -59
  138. package/src/components/FloatingChat/components/AgentMessage.tsx +3 -0
  139. package/src/components/FloatingChat/components/ChatMessages.tsx +25 -0
  140. package/src/components/FloatingChat/components/Layout.tsx +2 -2
  141. package/src/components/FloatingChat/components/ModalSheet.tsx +288 -0
  142. package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +7 -2
  143. package/src/components/FloatingChat/components/index.ts +3 -0
  144. package/src/components/FloatingChat/hooks/useChatSuggestions.ts +49 -0
  145. package/src/components/FloatingChat/hooks/useFilteredChatMessages.ts +43 -0
  146. package/src/components/FloatingChat/hooks/usePreventScroll.ts +207 -0
  147. package/src/components/FloatingChat/hooks/useSnapCalculator.ts +41 -0
  148. package/src/components/FloatingChat/hooks/useSnapControl.ts +131 -0
  149. package/src/components/FloatingChat/hooks/useSnapSetup.ts +106 -0
  150. package/src/components/FloatingChat/types/types.ts +4 -0
  151. package/src/components/PromptCarousel/PromptCarousel.tsx +0 -1
  152. package/src/components/SocialProof/SocialProof.tsx +8 -2
  153. package/src/components/SocialProof/__tests__/SocialProof.test.tsx +66 -17
  154. package/src/components/SocialProof/hooks/index.ts +2 -0
  155. package/src/components/SocialProof/hooks/useSocialProofCount.ts +67 -0
  156. package/src/components/SocialProof/index.ts +2 -1
  157. package/src/components/SocialProof/types/types.ts +18 -6
@@ -1,5 +1,5 @@
1
1
  import { ContainerProps } from "./types/index.js";
2
- import * as react15 from "react";
2
+ import * as react13 from "react";
3
3
 
4
4
  //#region src/components/Container/Container.d.ts
5
5
 
@@ -17,8 +17,13 @@ declare const Container: ({
17
17
  fluid,
18
18
  centerContent,
19
19
  ...props
20
- }: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) => react15.DetailedReactHTMLElement<{
21
- onClick?: react15.MouseEventHandler<HTMLElement>;
20
+ }: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) => react13.DetailedReactHTMLElement<{
21
+ color?: string | undefined;
22
+ slot?: string | undefined;
23
+ title?: string | undefined;
24
+ "aria-label"?: string | undefined;
25
+ onToggle?: react13.ToggleEventHandler<HTMLElement>;
26
+ onClick?: react13.MouseEventHandler<HTMLElement>;
22
27
  defaultChecked?: boolean | undefined;
23
28
  defaultValue?: string | number | readonly string[] | undefined;
24
29
  suppressContentEditableWarning?: boolean | undefined;
@@ -34,13 +39,11 @@ declare const Container: ({
34
39
  hidden?: boolean | undefined;
35
40
  lang?: string | undefined;
36
41
  nonce?: string | undefined;
37
- slot?: string | undefined;
38
42
  spellCheck?: (boolean | "true" | "false") | undefined;
39
43
  tabIndex?: number | undefined;
40
- title?: string | undefined;
41
44
  translate?: "yes" | "no" | undefined;
42
45
  radioGroup?: string | undefined;
43
- role?: react15.AriaRole | undefined;
46
+ role?: react13.AriaRole | undefined;
44
47
  about?: string | undefined;
45
48
  content?: string | undefined;
46
49
  datatype?: string | undefined;
@@ -54,7 +57,6 @@ declare const Container: ({
54
57
  vocab?: string | undefined;
55
58
  autoCorrect?: string | undefined;
56
59
  autoSave?: string | undefined;
57
- color?: string | undefined;
58
60
  itemProp?: string | undefined;
59
61
  itemScope?: boolean | undefined;
60
62
  itemType?: string | undefined;
@@ -97,7 +99,6 @@ declare const Container: ({
97
99
  "aria-hidden"?: (boolean | "true" | "false") | undefined;
98
100
  "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
99
101
  "aria-keyshortcuts"?: string | undefined;
100
- "aria-label"?: string | undefined;
101
102
  "aria-labelledby"?: string | undefined;
102
103
  "aria-level"?: number | undefined;
103
104
  "aria-live"?: "off" | "assertive" | "polite" | undefined;
@@ -127,175 +128,174 @@ declare const Container: ({
127
128
  dangerouslySetInnerHTML?: {
128
129
  __html: string | TrustedHTML;
129
130
  } | undefined;
130
- onCopy?: react15.ClipboardEventHandler<HTMLElement>;
131
- onCopyCapture?: react15.ClipboardEventHandler<HTMLElement>;
132
- onCut?: react15.ClipboardEventHandler<HTMLElement>;
133
- onCutCapture?: react15.ClipboardEventHandler<HTMLElement>;
134
- onPaste?: react15.ClipboardEventHandler<HTMLElement>;
135
- onPasteCapture?: react15.ClipboardEventHandler<HTMLElement>;
136
- onCompositionEnd?: react15.CompositionEventHandler<HTMLElement>;
137
- onCompositionEndCapture?: react15.CompositionEventHandler<HTMLElement>;
138
- onCompositionStart?: react15.CompositionEventHandler<HTMLElement>;
139
- onCompositionStartCapture?: react15.CompositionEventHandler<HTMLElement>;
140
- onCompositionUpdate?: react15.CompositionEventHandler<HTMLElement>;
141
- onCompositionUpdateCapture?: react15.CompositionEventHandler<HTMLElement>;
142
- onFocus?: react15.FocusEventHandler<HTMLElement>;
143
- onFocusCapture?: react15.FocusEventHandler<HTMLElement>;
144
- onBlur?: react15.FocusEventHandler<HTMLElement>;
145
- onBlurCapture?: react15.FocusEventHandler<HTMLElement>;
146
- onChange?: react15.FormEventHandler<HTMLElement>;
147
- onChangeCapture?: react15.FormEventHandler<HTMLElement>;
148
- onBeforeInput?: react15.InputEventHandler<HTMLElement>;
149
- onBeforeInputCapture?: react15.FormEventHandler<HTMLElement>;
150
- onInput?: react15.FormEventHandler<HTMLElement>;
151
- onInputCapture?: react15.FormEventHandler<HTMLElement>;
152
- onReset?: react15.FormEventHandler<HTMLElement>;
153
- onResetCapture?: react15.FormEventHandler<HTMLElement>;
154
- onSubmit?: react15.FormEventHandler<HTMLElement>;
155
- onSubmitCapture?: react15.FormEventHandler<HTMLElement>;
156
- onInvalid?: react15.FormEventHandler<HTMLElement>;
157
- onInvalidCapture?: react15.FormEventHandler<HTMLElement>;
158
- onLoad?: react15.ReactEventHandler<HTMLElement>;
159
- onLoadCapture?: react15.ReactEventHandler<HTMLElement>;
160
- onError?: react15.ReactEventHandler<HTMLElement>;
161
- onErrorCapture?: react15.ReactEventHandler<HTMLElement>;
162
- onKeyDown?: react15.KeyboardEventHandler<HTMLElement>;
163
- onKeyDownCapture?: react15.KeyboardEventHandler<HTMLElement>;
164
- onKeyPress?: react15.KeyboardEventHandler<HTMLElement>;
165
- onKeyPressCapture?: react15.KeyboardEventHandler<HTMLElement>;
166
- onKeyUp?: react15.KeyboardEventHandler<HTMLElement>;
167
- onKeyUpCapture?: react15.KeyboardEventHandler<HTMLElement>;
168
- onAbort?: react15.ReactEventHandler<HTMLElement>;
169
- onAbortCapture?: react15.ReactEventHandler<HTMLElement>;
170
- onCanPlay?: react15.ReactEventHandler<HTMLElement>;
171
- onCanPlayCapture?: react15.ReactEventHandler<HTMLElement>;
172
- onCanPlayThrough?: react15.ReactEventHandler<HTMLElement>;
173
- onCanPlayThroughCapture?: react15.ReactEventHandler<HTMLElement>;
174
- onDurationChange?: react15.ReactEventHandler<HTMLElement>;
175
- onDurationChangeCapture?: react15.ReactEventHandler<HTMLElement>;
176
- onEmptied?: react15.ReactEventHandler<HTMLElement>;
177
- onEmptiedCapture?: react15.ReactEventHandler<HTMLElement>;
178
- onEncrypted?: react15.ReactEventHandler<HTMLElement>;
179
- onEncryptedCapture?: react15.ReactEventHandler<HTMLElement>;
180
- onEnded?: react15.ReactEventHandler<HTMLElement>;
181
- onEndedCapture?: react15.ReactEventHandler<HTMLElement>;
182
- onLoadedData?: react15.ReactEventHandler<HTMLElement>;
183
- onLoadedDataCapture?: react15.ReactEventHandler<HTMLElement>;
184
- onLoadedMetadata?: react15.ReactEventHandler<HTMLElement>;
185
- onLoadedMetadataCapture?: react15.ReactEventHandler<HTMLElement>;
186
- onLoadStart?: react15.ReactEventHandler<HTMLElement>;
187
- onLoadStartCapture?: react15.ReactEventHandler<HTMLElement>;
188
- onPause?: react15.ReactEventHandler<HTMLElement>;
189
- onPauseCapture?: react15.ReactEventHandler<HTMLElement>;
190
- onPlay?: react15.ReactEventHandler<HTMLElement>;
191
- onPlayCapture?: react15.ReactEventHandler<HTMLElement>;
192
- onPlaying?: react15.ReactEventHandler<HTMLElement>;
193
- onPlayingCapture?: react15.ReactEventHandler<HTMLElement>;
194
- onProgress?: react15.ReactEventHandler<HTMLElement>;
195
- onProgressCapture?: react15.ReactEventHandler<HTMLElement>;
196
- onRateChange?: react15.ReactEventHandler<HTMLElement>;
197
- onRateChangeCapture?: react15.ReactEventHandler<HTMLElement>;
198
- onSeeked?: react15.ReactEventHandler<HTMLElement>;
199
- onSeekedCapture?: react15.ReactEventHandler<HTMLElement>;
200
- onSeeking?: react15.ReactEventHandler<HTMLElement>;
201
- onSeekingCapture?: react15.ReactEventHandler<HTMLElement>;
202
- onStalled?: react15.ReactEventHandler<HTMLElement>;
203
- onStalledCapture?: react15.ReactEventHandler<HTMLElement>;
204
- onSuspend?: react15.ReactEventHandler<HTMLElement>;
205
- onSuspendCapture?: react15.ReactEventHandler<HTMLElement>;
206
- onTimeUpdate?: react15.ReactEventHandler<HTMLElement>;
207
- onTimeUpdateCapture?: react15.ReactEventHandler<HTMLElement>;
208
- onVolumeChange?: react15.ReactEventHandler<HTMLElement>;
209
- onVolumeChangeCapture?: react15.ReactEventHandler<HTMLElement>;
210
- onWaiting?: react15.ReactEventHandler<HTMLElement>;
211
- onWaitingCapture?: react15.ReactEventHandler<HTMLElement>;
212
- onAuxClick?: react15.MouseEventHandler<HTMLElement>;
213
- onAuxClickCapture?: react15.MouseEventHandler<HTMLElement>;
214
- onClickCapture?: react15.MouseEventHandler<HTMLElement>;
215
- onContextMenu?: react15.MouseEventHandler<HTMLElement>;
216
- onContextMenuCapture?: react15.MouseEventHandler<HTMLElement>;
217
- onDoubleClick?: react15.MouseEventHandler<HTMLElement>;
218
- onDoubleClickCapture?: react15.MouseEventHandler<HTMLElement>;
219
- onDrag?: react15.DragEventHandler<HTMLElement>;
220
- onDragCapture?: react15.DragEventHandler<HTMLElement>;
221
- onDragEnd?: react15.DragEventHandler<HTMLElement>;
222
- onDragEndCapture?: react15.DragEventHandler<HTMLElement>;
223
- onDragEnter?: react15.DragEventHandler<HTMLElement>;
224
- onDragEnterCapture?: react15.DragEventHandler<HTMLElement>;
225
- onDragExit?: react15.DragEventHandler<HTMLElement>;
226
- onDragExitCapture?: react15.DragEventHandler<HTMLElement>;
227
- onDragLeave?: react15.DragEventHandler<HTMLElement>;
228
- onDragLeaveCapture?: react15.DragEventHandler<HTMLElement>;
229
- onDragOver?: react15.DragEventHandler<HTMLElement>;
230
- onDragOverCapture?: react15.DragEventHandler<HTMLElement>;
231
- onDragStart?: react15.DragEventHandler<HTMLElement>;
232
- onDragStartCapture?: react15.DragEventHandler<HTMLElement>;
233
- onDrop?: react15.DragEventHandler<HTMLElement>;
234
- onDropCapture?: react15.DragEventHandler<HTMLElement>;
235
- onMouseDown?: react15.MouseEventHandler<HTMLElement>;
236
- onMouseDownCapture?: react15.MouseEventHandler<HTMLElement>;
237
- onMouseEnter?: react15.MouseEventHandler<HTMLElement>;
238
- onMouseLeave?: react15.MouseEventHandler<HTMLElement>;
239
- onMouseMove?: react15.MouseEventHandler<HTMLElement>;
240
- onMouseMoveCapture?: react15.MouseEventHandler<HTMLElement>;
241
- onMouseOut?: react15.MouseEventHandler<HTMLElement>;
242
- onMouseOutCapture?: react15.MouseEventHandler<HTMLElement>;
243
- onMouseOver?: react15.MouseEventHandler<HTMLElement>;
244
- onMouseOverCapture?: react15.MouseEventHandler<HTMLElement>;
245
- onMouseUp?: react15.MouseEventHandler<HTMLElement>;
246
- onMouseUpCapture?: react15.MouseEventHandler<HTMLElement>;
247
- onSelect?: react15.ReactEventHandler<HTMLElement>;
248
- onSelectCapture?: react15.ReactEventHandler<HTMLElement>;
249
- onTouchCancel?: react15.TouchEventHandler<HTMLElement>;
250
- onTouchCancelCapture?: react15.TouchEventHandler<HTMLElement>;
251
- onTouchEnd?: react15.TouchEventHandler<HTMLElement>;
252
- onTouchEndCapture?: react15.TouchEventHandler<HTMLElement>;
253
- onTouchMove?: react15.TouchEventHandler<HTMLElement>;
254
- onTouchMoveCapture?: react15.TouchEventHandler<HTMLElement>;
255
- onTouchStart?: react15.TouchEventHandler<HTMLElement>;
256
- onTouchStartCapture?: react15.TouchEventHandler<HTMLElement>;
257
- onPointerDown?: react15.PointerEventHandler<HTMLElement>;
258
- onPointerDownCapture?: react15.PointerEventHandler<HTMLElement>;
259
- onPointerMove?: react15.PointerEventHandler<HTMLElement>;
260
- onPointerMoveCapture?: react15.PointerEventHandler<HTMLElement>;
261
- onPointerUp?: react15.PointerEventHandler<HTMLElement>;
262
- onPointerUpCapture?: react15.PointerEventHandler<HTMLElement>;
263
- onPointerCancel?: react15.PointerEventHandler<HTMLElement>;
264
- onPointerCancelCapture?: react15.PointerEventHandler<HTMLElement>;
265
- onPointerEnter?: react15.PointerEventHandler<HTMLElement>;
266
- onPointerLeave?: react15.PointerEventHandler<HTMLElement>;
267
- onPointerOver?: react15.PointerEventHandler<HTMLElement>;
268
- onPointerOverCapture?: react15.PointerEventHandler<HTMLElement>;
269
- onPointerOut?: react15.PointerEventHandler<HTMLElement>;
270
- onPointerOutCapture?: react15.PointerEventHandler<HTMLElement>;
271
- onGotPointerCapture?: react15.PointerEventHandler<HTMLElement>;
272
- onGotPointerCaptureCapture?: react15.PointerEventHandler<HTMLElement>;
273
- onLostPointerCapture?: react15.PointerEventHandler<HTMLElement>;
274
- onLostPointerCaptureCapture?: react15.PointerEventHandler<HTMLElement>;
275
- onScroll?: react15.UIEventHandler<HTMLElement>;
276
- onScrollCapture?: react15.UIEventHandler<HTMLElement>;
277
- onScrollEnd?: react15.UIEventHandler<HTMLElement>;
278
- onScrollEndCapture?: react15.UIEventHandler<HTMLElement>;
279
- onWheel?: react15.WheelEventHandler<HTMLElement>;
280
- onWheelCapture?: react15.WheelEventHandler<HTMLElement>;
281
- onAnimationStart?: react15.AnimationEventHandler<HTMLElement>;
282
- onAnimationStartCapture?: react15.AnimationEventHandler<HTMLElement>;
283
- onAnimationEnd?: react15.AnimationEventHandler<HTMLElement>;
284
- onAnimationEndCapture?: react15.AnimationEventHandler<HTMLElement>;
285
- onAnimationIteration?: react15.AnimationEventHandler<HTMLElement>;
286
- onAnimationIterationCapture?: react15.AnimationEventHandler<HTMLElement>;
287
- onToggle?: react15.ToggleEventHandler<HTMLElement>;
288
- onBeforeToggle?: react15.ToggleEventHandler<HTMLElement>;
289
- onTransitionCancel?: react15.TransitionEventHandler<HTMLElement>;
290
- onTransitionCancelCapture?: react15.TransitionEventHandler<HTMLElement>;
291
- onTransitionEnd?: react15.TransitionEventHandler<HTMLElement>;
292
- onTransitionEndCapture?: react15.TransitionEventHandler<HTMLElement>;
293
- onTransitionRun?: react15.TransitionEventHandler<HTMLElement>;
294
- onTransitionRunCapture?: react15.TransitionEventHandler<HTMLElement>;
295
- onTransitionStart?: react15.TransitionEventHandler<HTMLElement>;
296
- onTransitionStartCapture?: react15.TransitionEventHandler<HTMLElement>;
131
+ onCopy?: react13.ClipboardEventHandler<HTMLElement>;
132
+ onCopyCapture?: react13.ClipboardEventHandler<HTMLElement>;
133
+ onCut?: react13.ClipboardEventHandler<HTMLElement>;
134
+ onCutCapture?: react13.ClipboardEventHandler<HTMLElement>;
135
+ onPaste?: react13.ClipboardEventHandler<HTMLElement>;
136
+ onPasteCapture?: react13.ClipboardEventHandler<HTMLElement>;
137
+ onCompositionEnd?: react13.CompositionEventHandler<HTMLElement>;
138
+ onCompositionEndCapture?: react13.CompositionEventHandler<HTMLElement>;
139
+ onCompositionStart?: react13.CompositionEventHandler<HTMLElement>;
140
+ onCompositionStartCapture?: react13.CompositionEventHandler<HTMLElement>;
141
+ onCompositionUpdate?: react13.CompositionEventHandler<HTMLElement>;
142
+ onCompositionUpdateCapture?: react13.CompositionEventHandler<HTMLElement>;
143
+ onFocus?: react13.FocusEventHandler<HTMLElement>;
144
+ onFocusCapture?: react13.FocusEventHandler<HTMLElement>;
145
+ onBlur?: react13.FocusEventHandler<HTMLElement>;
146
+ onBlurCapture?: react13.FocusEventHandler<HTMLElement>;
147
+ onChange?: react13.FormEventHandler<HTMLElement>;
148
+ onChangeCapture?: react13.FormEventHandler<HTMLElement>;
149
+ onBeforeInput?: react13.InputEventHandler<HTMLElement>;
150
+ onBeforeInputCapture?: react13.FormEventHandler<HTMLElement>;
151
+ onInput?: react13.FormEventHandler<HTMLElement>;
152
+ onInputCapture?: react13.FormEventHandler<HTMLElement>;
153
+ onReset?: react13.FormEventHandler<HTMLElement>;
154
+ onResetCapture?: react13.FormEventHandler<HTMLElement>;
155
+ onSubmit?: react13.FormEventHandler<HTMLElement>;
156
+ onSubmitCapture?: react13.FormEventHandler<HTMLElement>;
157
+ onInvalid?: react13.FormEventHandler<HTMLElement>;
158
+ onInvalidCapture?: react13.FormEventHandler<HTMLElement>;
159
+ onLoad?: react13.ReactEventHandler<HTMLElement>;
160
+ onLoadCapture?: react13.ReactEventHandler<HTMLElement>;
161
+ onError?: react13.ReactEventHandler<HTMLElement>;
162
+ onErrorCapture?: react13.ReactEventHandler<HTMLElement>;
163
+ onKeyDown?: react13.KeyboardEventHandler<HTMLElement>;
164
+ onKeyDownCapture?: react13.KeyboardEventHandler<HTMLElement>;
165
+ onKeyPress?: react13.KeyboardEventHandler<HTMLElement>;
166
+ onKeyPressCapture?: react13.KeyboardEventHandler<HTMLElement>;
167
+ onKeyUp?: react13.KeyboardEventHandler<HTMLElement>;
168
+ onKeyUpCapture?: react13.KeyboardEventHandler<HTMLElement>;
169
+ onAbort?: react13.ReactEventHandler<HTMLElement>;
170
+ onAbortCapture?: react13.ReactEventHandler<HTMLElement>;
171
+ onCanPlay?: react13.ReactEventHandler<HTMLElement>;
172
+ onCanPlayCapture?: react13.ReactEventHandler<HTMLElement>;
173
+ onCanPlayThrough?: react13.ReactEventHandler<HTMLElement>;
174
+ onCanPlayThroughCapture?: react13.ReactEventHandler<HTMLElement>;
175
+ onDurationChange?: react13.ReactEventHandler<HTMLElement>;
176
+ onDurationChangeCapture?: react13.ReactEventHandler<HTMLElement>;
177
+ onEmptied?: react13.ReactEventHandler<HTMLElement>;
178
+ onEmptiedCapture?: react13.ReactEventHandler<HTMLElement>;
179
+ onEncrypted?: react13.ReactEventHandler<HTMLElement>;
180
+ onEncryptedCapture?: react13.ReactEventHandler<HTMLElement>;
181
+ onEnded?: react13.ReactEventHandler<HTMLElement>;
182
+ onEndedCapture?: react13.ReactEventHandler<HTMLElement>;
183
+ onLoadedData?: react13.ReactEventHandler<HTMLElement>;
184
+ onLoadedDataCapture?: react13.ReactEventHandler<HTMLElement>;
185
+ onLoadedMetadata?: react13.ReactEventHandler<HTMLElement>;
186
+ onLoadedMetadataCapture?: react13.ReactEventHandler<HTMLElement>;
187
+ onLoadStart?: react13.ReactEventHandler<HTMLElement>;
188
+ onLoadStartCapture?: react13.ReactEventHandler<HTMLElement>;
189
+ onPause?: react13.ReactEventHandler<HTMLElement>;
190
+ onPauseCapture?: react13.ReactEventHandler<HTMLElement>;
191
+ onPlay?: react13.ReactEventHandler<HTMLElement>;
192
+ onPlayCapture?: react13.ReactEventHandler<HTMLElement>;
193
+ onPlaying?: react13.ReactEventHandler<HTMLElement>;
194
+ onPlayingCapture?: react13.ReactEventHandler<HTMLElement>;
195
+ onProgress?: react13.ReactEventHandler<HTMLElement>;
196
+ onProgressCapture?: react13.ReactEventHandler<HTMLElement>;
197
+ onRateChange?: react13.ReactEventHandler<HTMLElement>;
198
+ onRateChangeCapture?: react13.ReactEventHandler<HTMLElement>;
199
+ onSeeked?: react13.ReactEventHandler<HTMLElement>;
200
+ onSeekedCapture?: react13.ReactEventHandler<HTMLElement>;
201
+ onSeeking?: react13.ReactEventHandler<HTMLElement>;
202
+ onSeekingCapture?: react13.ReactEventHandler<HTMLElement>;
203
+ onStalled?: react13.ReactEventHandler<HTMLElement>;
204
+ onStalledCapture?: react13.ReactEventHandler<HTMLElement>;
205
+ onSuspend?: react13.ReactEventHandler<HTMLElement>;
206
+ onSuspendCapture?: react13.ReactEventHandler<HTMLElement>;
207
+ onTimeUpdate?: react13.ReactEventHandler<HTMLElement>;
208
+ onTimeUpdateCapture?: react13.ReactEventHandler<HTMLElement>;
209
+ onVolumeChange?: react13.ReactEventHandler<HTMLElement>;
210
+ onVolumeChangeCapture?: react13.ReactEventHandler<HTMLElement>;
211
+ onWaiting?: react13.ReactEventHandler<HTMLElement>;
212
+ onWaitingCapture?: react13.ReactEventHandler<HTMLElement>;
213
+ onAuxClick?: react13.MouseEventHandler<HTMLElement>;
214
+ onAuxClickCapture?: react13.MouseEventHandler<HTMLElement>;
215
+ onClickCapture?: react13.MouseEventHandler<HTMLElement>;
216
+ onContextMenu?: react13.MouseEventHandler<HTMLElement>;
217
+ onContextMenuCapture?: react13.MouseEventHandler<HTMLElement>;
218
+ onDoubleClick?: react13.MouseEventHandler<HTMLElement>;
219
+ onDoubleClickCapture?: react13.MouseEventHandler<HTMLElement>;
220
+ onDrag?: react13.DragEventHandler<HTMLElement>;
221
+ onDragCapture?: react13.DragEventHandler<HTMLElement>;
222
+ onDragEnd?: react13.DragEventHandler<HTMLElement>;
223
+ onDragEndCapture?: react13.DragEventHandler<HTMLElement>;
224
+ onDragEnter?: react13.DragEventHandler<HTMLElement>;
225
+ onDragEnterCapture?: react13.DragEventHandler<HTMLElement>;
226
+ onDragExit?: react13.DragEventHandler<HTMLElement>;
227
+ onDragExitCapture?: react13.DragEventHandler<HTMLElement>;
228
+ onDragLeave?: react13.DragEventHandler<HTMLElement>;
229
+ onDragLeaveCapture?: react13.DragEventHandler<HTMLElement>;
230
+ onDragOver?: react13.DragEventHandler<HTMLElement>;
231
+ onDragOverCapture?: react13.DragEventHandler<HTMLElement>;
232
+ onDragStart?: react13.DragEventHandler<HTMLElement>;
233
+ onDragStartCapture?: react13.DragEventHandler<HTMLElement>;
234
+ onDrop?: react13.DragEventHandler<HTMLElement>;
235
+ onDropCapture?: react13.DragEventHandler<HTMLElement>;
236
+ onMouseDown?: react13.MouseEventHandler<HTMLElement>;
237
+ onMouseDownCapture?: react13.MouseEventHandler<HTMLElement>;
238
+ onMouseEnter?: react13.MouseEventHandler<HTMLElement>;
239
+ onMouseLeave?: react13.MouseEventHandler<HTMLElement>;
240
+ onMouseMove?: react13.MouseEventHandler<HTMLElement>;
241
+ onMouseMoveCapture?: react13.MouseEventHandler<HTMLElement>;
242
+ onMouseOut?: react13.MouseEventHandler<HTMLElement>;
243
+ onMouseOutCapture?: react13.MouseEventHandler<HTMLElement>;
244
+ onMouseOver?: react13.MouseEventHandler<HTMLElement>;
245
+ onMouseOverCapture?: react13.MouseEventHandler<HTMLElement>;
246
+ onMouseUp?: react13.MouseEventHandler<HTMLElement>;
247
+ onMouseUpCapture?: react13.MouseEventHandler<HTMLElement>;
248
+ onSelect?: react13.ReactEventHandler<HTMLElement>;
249
+ onSelectCapture?: react13.ReactEventHandler<HTMLElement>;
250
+ onTouchCancel?: react13.TouchEventHandler<HTMLElement>;
251
+ onTouchCancelCapture?: react13.TouchEventHandler<HTMLElement>;
252
+ onTouchEnd?: react13.TouchEventHandler<HTMLElement>;
253
+ onTouchEndCapture?: react13.TouchEventHandler<HTMLElement>;
254
+ onTouchMove?: react13.TouchEventHandler<HTMLElement>;
255
+ onTouchMoveCapture?: react13.TouchEventHandler<HTMLElement>;
256
+ onTouchStart?: react13.TouchEventHandler<HTMLElement>;
257
+ onTouchStartCapture?: react13.TouchEventHandler<HTMLElement>;
258
+ onPointerDown?: react13.PointerEventHandler<HTMLElement>;
259
+ onPointerDownCapture?: react13.PointerEventHandler<HTMLElement>;
260
+ onPointerMove?: react13.PointerEventHandler<HTMLElement>;
261
+ onPointerMoveCapture?: react13.PointerEventHandler<HTMLElement>;
262
+ onPointerUp?: react13.PointerEventHandler<HTMLElement>;
263
+ onPointerUpCapture?: react13.PointerEventHandler<HTMLElement>;
264
+ onPointerCancel?: react13.PointerEventHandler<HTMLElement>;
265
+ onPointerCancelCapture?: react13.PointerEventHandler<HTMLElement>;
266
+ onPointerEnter?: react13.PointerEventHandler<HTMLElement>;
267
+ onPointerLeave?: react13.PointerEventHandler<HTMLElement>;
268
+ onPointerOver?: react13.PointerEventHandler<HTMLElement>;
269
+ onPointerOverCapture?: react13.PointerEventHandler<HTMLElement>;
270
+ onPointerOut?: react13.PointerEventHandler<HTMLElement>;
271
+ onPointerOutCapture?: react13.PointerEventHandler<HTMLElement>;
272
+ onGotPointerCapture?: react13.PointerEventHandler<HTMLElement>;
273
+ onGotPointerCaptureCapture?: react13.PointerEventHandler<HTMLElement>;
274
+ onLostPointerCapture?: react13.PointerEventHandler<HTMLElement>;
275
+ onLostPointerCaptureCapture?: react13.PointerEventHandler<HTMLElement>;
276
+ onScroll?: react13.UIEventHandler<HTMLElement>;
277
+ onScrollCapture?: react13.UIEventHandler<HTMLElement>;
278
+ onScrollEnd?: react13.UIEventHandler<HTMLElement>;
279
+ onScrollEndCapture?: react13.UIEventHandler<HTMLElement>;
280
+ onWheel?: react13.WheelEventHandler<HTMLElement>;
281
+ onWheelCapture?: react13.WheelEventHandler<HTMLElement>;
282
+ onAnimationStart?: react13.AnimationEventHandler<HTMLElement>;
283
+ onAnimationStartCapture?: react13.AnimationEventHandler<HTMLElement>;
284
+ onAnimationEnd?: react13.AnimationEventHandler<HTMLElement>;
285
+ onAnimationEndCapture?: react13.AnimationEventHandler<HTMLElement>;
286
+ onAnimationIteration?: react13.AnimationEventHandler<HTMLElement>;
287
+ onAnimationIterationCapture?: react13.AnimationEventHandler<HTMLElement>;
288
+ onBeforeToggle?: react13.ToggleEventHandler<HTMLElement>;
289
+ onTransitionCancel?: react13.TransitionEventHandler<HTMLElement>;
290
+ onTransitionCancelCapture?: react13.TransitionEventHandler<HTMLElement>;
291
+ onTransitionEnd?: react13.TransitionEventHandler<HTMLElement>;
292
+ onTransitionEndCapture?: react13.TransitionEventHandler<HTMLElement>;
293
+ onTransitionRun?: react13.TransitionEventHandler<HTMLElement>;
294
+ onTransitionRunCapture?: react13.TransitionEventHandler<HTMLElement>;
295
+ onTransitionStart?: react13.TransitionEventHandler<HTMLElement>;
296
+ onTransitionStartCapture?: react13.TransitionEventHandler<HTMLElement>;
297
297
  className: string;
298
- style: react15.CSSProperties;
298
+ style: react13.CSSProperties;
299
299
  id: string;
300
300
  'data-testid': string;
301
301
  }, HTMLElement>;
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime15 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime24 from "react/jsx-runtime";
2
2
  import { Config } from "tailwindcss";
3
3
 
4
4
  //#region src/components/DesignTokens/DesignTokensComponent.d.ts
@@ -9,6 +9,6 @@ type DesignTokensProps = {
9
9
  declare const DesignTokens: ({
10
10
  selectedMerchant,
11
11
  config
12
- }: DesignTokensProps) => react_jsx_runtime15.JSX.Element;
12
+ }: DesignTokensProps) => react_jsx_runtime24.JSX.Element;
13
13
  //#endregion
14
14
  export { DesignTokens, DesignTokensProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime30 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime22 from "react/jsx-runtime";
2
2
  import { Config } from "tailwindcss";
3
3
 
4
4
  //#region src/components/DesignTokens/DesignTokensComponent.d.ts
@@ -9,6 +9,6 @@ type DesignTokensProps = {
9
9
  declare const DesignTokens: ({
10
10
  selectedMerchant,
11
11
  config
12
- }: DesignTokensProps) => react_jsx_runtime30.JSX.Element;
12
+ }: DesignTokensProps) => react_jsx_runtime22.JSX.Element;
13
13
  //#endregion
14
14
  export { DesignTokens, DesignTokensProps };
@@ -1,5 +1,5 @@
1
1
  import { DocumentRetrievalCardProps } from "./types/index.cjs";
2
- import * as react_jsx_runtime18 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime22 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/DocumentRetrievalCard/DocumentRetrievalCard.d.ts
5
5
  declare const DocumentRetrievalCard: ({
@@ -16,6 +16,6 @@ declare const DocumentRetrievalCard: ({
16
16
  onViewArticle,
17
17
  ariaLabel,
18
18
  viewArticleLabel
19
- }: DocumentRetrievalCardProps) => react_jsx_runtime18.JSX.Element;
19
+ }: DocumentRetrievalCardProps) => react_jsx_runtime22.JSX.Element;
20
20
  //#endregion
21
21
  export { DocumentRetrievalCard };
@@ -1,5 +1,5 @@
1
1
  import { DocumentRetrievalCardProps } from "./types/index.js";
2
- import * as react_jsx_runtime23 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime32 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/DocumentRetrievalCard/DocumentRetrievalCard.d.ts
5
5
  declare const DocumentRetrievalCard: ({
@@ -16,6 +16,6 @@ declare const DocumentRetrievalCard: ({
16
16
  onViewArticle,
17
17
  ariaLabel,
18
18
  viewArticleLabel
19
- }: DocumentRetrievalCardProps) => react_jsx_runtime23.JSX.Element;
19
+ }: DocumentRetrievalCardProps) => react_jsx_runtime32.JSX.Element;
20
20
  //#endregion
21
21
  export { DocumentRetrievalCard };
@@ -4,7 +4,7 @@ const require_index = require('./components/index.cjs');
4
4
  let react_jsx_runtime = require("react/jsx-runtime");
5
5
 
6
6
  //#region src/components/FloatingButton/FloatingButton.tsx
7
- const FloatingButton = ({ id, testId, className, style, customIcon, variant = require_types.FloatingButtonVariant.ATTACHED, mode, show, location, backgroundColor, hasInteractionHappened, onClick, ariaLabel }) => {
7
+ const FloatingButton = ({ id, testId, className, style, customIcon, variant = require_types.FloatingButtonVariant.ATTACHED, mode, show, location, backgroundColor, hasInteractionHappened, onClick, ariaLabel, previewMode = false }) => {
8
8
  const button = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.FloatingButtonComponents.Button, {
9
9
  variant,
10
10
  mode,
@@ -26,6 +26,7 @@ const FloatingButton = ({ id, testId, className, style, customIcon, variant = re
26
26
  hasInteractionHappened,
27
27
  className,
28
28
  style,
29
+ previewMode,
29
30
  children: variant === require_types.FloatingButtonVariant.ATTACHED ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.FloatingButtonComponents.Wrapper, {
30
31
  location,
31
32
  children: button
@@ -1,5 +1,5 @@
1
1
  import { FloatingButtonProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime28 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime23 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/FloatingButton/FloatingButton.d.ts
5
5
  declare const FloatingButton: ({
@@ -15,7 +15,8 @@ declare const FloatingButton: ({
15
15
  backgroundColor,
16
16
  hasInteractionHappened,
17
17
  onClick,
18
- ariaLabel
19
- }: FloatingButtonProps) => react_jsx_runtime28.JSX.Element;
18
+ ariaLabel,
19
+ previewMode
20
+ }: FloatingButtonProps) => react_jsx_runtime23.JSX.Element;
20
21
  //#endregion
21
22
  export { FloatingButton };
@@ -1,5 +1,5 @@
1
1
  import { FloatingButtonProps } from "./types/types.js";
2
- import * as react_jsx_runtime25 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime29 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/FloatingButton/FloatingButton.d.ts
5
5
  declare const FloatingButton: ({
@@ -15,7 +15,8 @@ declare const FloatingButton: ({
15
15
  backgroundColor,
16
16
  hasInteractionHappened,
17
17
  onClick,
18
- ariaLabel
19
- }: FloatingButtonProps) => react_jsx_runtime25.JSX.Element;
18
+ ariaLabel,
19
+ previewMode
20
+ }: FloatingButtonProps) => react_jsx_runtime29.JSX.Element;
20
21
  //#endregion
21
22
  export { FloatingButton };
@@ -3,7 +3,7 @@ import { FloatingButtonComponents } from "./components/index.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/FloatingButton/FloatingButton.tsx
6
- const FloatingButton = ({ id, testId, className, style, customIcon, variant = FloatingButtonVariant.ATTACHED, mode, show, location, backgroundColor, hasInteractionHappened, onClick, ariaLabel }) => {
6
+ const FloatingButton = ({ id, testId, className, style, customIcon, variant = FloatingButtonVariant.ATTACHED, mode, show, location, backgroundColor, hasInteractionHappened, onClick, ariaLabel, previewMode = false }) => {
7
7
  const button = /* @__PURE__ */ jsx(FloatingButtonComponents.Button, {
8
8
  variant,
9
9
  mode,
@@ -25,6 +25,7 @@ const FloatingButton = ({ id, testId, className, style, customIcon, variant = Fl
25
25
  hasInteractionHappened,
26
26
  className,
27
27
  style,
28
+ previewMode,
28
29
  children: variant === FloatingButtonVariant.ATTACHED ? /* @__PURE__ */ jsx(FloatingButtonComponents.Wrapper, {
29
30
  location,
30
31
  children: button
@@ -6,8 +6,8 @@ let classnames = require("classnames");
6
6
  classnames = require_rolldown_runtime.__toESM(classnames);
7
7
 
8
8
  //#region src/components/FloatingButton/components/Container.tsx
9
- const Container = ({ location = require_types.FloatingButtonLocation.BOTTOM_RIGHT, show = require_types.FloatingButtonShow.ALWAYS, variant = require_types.FloatingButtonVariant.ATTACHED, hasInteractionHappened = false, children, id, testId, className = "", style }) => {
10
- const { positionClasses, locationClasses, zIndexClass, shouldRender } = require_useGetContainerProperties.useGetContainerProperties(location, show, variant, hasInteractionHappened);
9
+ const Container = ({ location = require_types.FloatingButtonLocation.BOTTOM_RIGHT, show = require_types.FloatingButtonShow.ALWAYS, variant = require_types.FloatingButtonVariant.ATTACHED, hasInteractionHappened = false, children, id, testId, className = "", style, previewMode = false }) => {
10
+ const { positionClasses, locationClasses, zIndexClass, shouldRender } = require_useGetContainerProperties.useGetContainerProperties(location, show, variant, hasInteractionHappened, previewMode);
11
11
  if (!shouldRender) return null;
12
12
  const allClasses = (0, classnames.default)("envive-tw-group/floatingbutton", positionClasses, locationClasses, zIndexClass, "envive-tw-transition-all", "envive-tw-duration-300", "envive-tw-ease-in-out", className);
13
13
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -4,8 +4,8 @@ import { jsx } from "react/jsx-runtime";
4
4
  import classNames from "classnames";
5
5
 
6
6
  //#region src/components/FloatingButton/components/Container.tsx
7
- const Container = ({ location = FloatingButtonLocation.BOTTOM_RIGHT, show = FloatingButtonShow.ALWAYS, variant = FloatingButtonVariant.ATTACHED, hasInteractionHappened = false, children, id, testId, className = "", style }) => {
8
- const { positionClasses, locationClasses, zIndexClass, shouldRender } = useGetContainerProperties(location, show, variant, hasInteractionHappened);
7
+ const Container = ({ location = FloatingButtonLocation.BOTTOM_RIGHT, show = FloatingButtonShow.ALWAYS, variant = FloatingButtonVariant.ATTACHED, hasInteractionHappened = false, children, id, testId, className = "", style, previewMode = false }) => {
8
+ const { positionClasses, locationClasses, zIndexClass, shouldRender } = useGetContainerProperties(location, show, variant, hasInteractionHappened, previewMode);
9
9
  if (!shouldRender) return null;
10
10
  const allClasses = classNames("envive-tw-group/floatingbutton", positionClasses, locationClasses, zIndexClass, "envive-tw-transition-all", "envive-tw-duration-300", "envive-tw-ease-in-out", className);
11
11
  return /* @__PURE__ */ jsx("div", {
@@ -4,8 +4,8 @@ const require_types = require('../types/types.cjs');
4
4
  /**
5
5
  * Hook to get container properties for positioning and visibility.
6
6
  */
7
- const useGetContainerProperties = (location = require_types.FloatingButtonLocation.BOTTOM_RIGHT, show = require_types.FloatingButtonShow.ALWAYS, variant = require_types.FloatingButtonVariant.ATTACHED, hasInteractionHappened = false) => {
8
- const positionClasses = "envive-tw-fixed";
7
+ const useGetContainerProperties = (location = require_types.FloatingButtonLocation.BOTTOM_RIGHT, show = require_types.FloatingButtonShow.ALWAYS, variant = require_types.FloatingButtonVariant.ATTACHED, hasInteractionHappened = false, previewMode = false) => {
8
+ const positionClasses = previewMode ? "envive-tw-absolute" : "envive-tw-fixed";
9
9
  let locationClasses = "";
10
10
  if (variant === require_types.FloatingButtonVariant.ATTACHED) switch (location) {
11
11
  case require_types.FloatingButtonLocation.MIDDLE_RIGHT:
@@ -4,8 +4,8 @@ import { FloatingButtonLocation, FloatingButtonShow, FloatingButtonVariant } fro
4
4
  /**
5
5
  * Hook to get container properties for positioning and visibility.
6
6
  */
7
- const useGetContainerProperties = (location = FloatingButtonLocation.BOTTOM_RIGHT, show = FloatingButtonShow.ALWAYS, variant = FloatingButtonVariant.ATTACHED, hasInteractionHappened = false) => {
8
- const positionClasses = "envive-tw-fixed";
7
+ const useGetContainerProperties = (location = FloatingButtonLocation.BOTTOM_RIGHT, show = FloatingButtonShow.ALWAYS, variant = FloatingButtonVariant.ATTACHED, hasInteractionHappened = false, previewMode = false) => {
8
+ const positionClasses = previewMode ? "envive-tw-absolute" : "envive-tw-fixed";
9
9
  let locationClasses = "";
10
10
  if (variant === FloatingButtonVariant.ATTACHED) switch (location) {
11
11
  case FloatingButtonLocation.MIDDLE_RIGHT:
@@ -31,10 +31,10 @@ let FloatingButtonShow = /* @__PURE__ */ function(FloatingButtonShow$1) {
31
31
  * Determines the position of the button on the screen.
32
32
  */
33
33
  let FloatingButtonLocation = /* @__PURE__ */ function(FloatingButtonLocation$1) {
34
- FloatingButtonLocation$1["MIDDLE_RIGHT"] = "middleRight";
35
- FloatingButtonLocation$1["BOTTOM_RIGHT"] = "bottomRight";
36
- FloatingButtonLocation$1["MIDDLE_LEFT"] = "middleLeft";
37
- FloatingButtonLocation$1["BOTTOM_LEFT"] = "bottomLeft";
34
+ FloatingButtonLocation$1["MIDDLE_RIGHT"] = "middle-right";
35
+ FloatingButtonLocation$1["BOTTOM_RIGHT"] = "bottom-right";
36
+ FloatingButtonLocation$1["MIDDLE_LEFT"] = "middle-left";
37
+ FloatingButtonLocation$1["BOTTOM_LEFT"] = "bottom-left";
38
38
  return FloatingButtonLocation$1;
39
39
  }({});
40
40
 
@@ -30,10 +30,10 @@ declare enum FloatingButtonShow {
30
30
  * Determines the position of the button on the screen.
31
31
  */
32
32
  declare enum FloatingButtonLocation {
33
- MIDDLE_RIGHT = "middleRight",
34
- BOTTOM_RIGHT = "bottomRight",
35
- MIDDLE_LEFT = "middleLeft",
36
- BOTTOM_LEFT = "bottomLeft",
33
+ MIDDLE_RIGHT = "middle-right",
34
+ BOTTOM_RIGHT = "bottom-right",
35
+ MIDDLE_LEFT = "middle-left",
36
+ BOTTOM_LEFT = "bottom-left",
37
37
  }
38
38
  type FloatingButtonBackgroundColor = Extract<ColorNames, 'background-primary' | 'background-secondary' | 'background-tertiary' | 'background-dark' | 'background-light'>;
39
39
  /**
@@ -92,6 +92,10 @@ type FloatingButtonProps = {
92
92
  * Accessible label for the button, used by screen readers.
93
93
  */
94
94
  ariaLabel: string;
95
+ /**
96
+ * Preview mode: uses absolute positioning instead of fixed
97
+ */
98
+ previewMode?: boolean;
95
99
  };
96
100
  //#endregion
97
101
  export { FloatingButtonBackgroundColor, FloatingButtonLocation, FloatingButtonMode, FloatingButtonProps, FloatingButtonShow, FloatingButtonVariant };