@bikdotai/bik-component-library 0.0.754-beta.12 → 0.0.754-beta.2

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 (223) hide show
  1. package/dist/cjs/assets/icons/ActiveChecklistIcon.d.ts +3 -0
  2. package/dist/cjs/assets/icons/ActiveChecklistIcon.js +1 -0
  3. package/dist/cjs/assets/icons/CheckIndicatorIcon.d.ts +1 -0
  4. package/dist/cjs/assets/icons/CheckIndicatorIcon.js +1 -0
  5. package/dist/cjs/assets/icons/CompletedChecklistIcon.d.ts +3 -0
  6. package/dist/cjs/assets/icons/CompletedChecklistIcon.js +1 -0
  7. package/dist/cjs/assets/icons/CustomiseIcon.d.ts +7 -0
  8. package/dist/cjs/assets/icons/EnableIcon.d.ts +7 -0
  9. package/dist/cjs/assets/icons/GoLiveIcon.d.ts +7 -0
  10. package/dist/cjs/assets/icons/InactiveChecklistIcon.d.ts +3 -0
  11. package/dist/cjs/assets/icons/InactiveChecklistIcon.js +1 -0
  12. package/dist/cjs/assets/icons/MarketingIcon.d.ts +6 -0
  13. package/dist/cjs/assets/icons/MarketingIconSmall.d.ts +6 -0
  14. package/dist/cjs/assets/icons/MarketingIconTab.d.ts +6 -0
  15. package/dist/cjs/assets/icons/MarketingIconTab.js +1 -0
  16. package/dist/cjs/assets/icons/NudgesIcon.d.ts +7 -0
  17. package/dist/cjs/assets/icons/OrderTrackingIcon.d.ts +7 -0
  18. package/dist/cjs/assets/icons/ProgressBadgeIcon.d.ts +3 -0
  19. package/dist/cjs/assets/icons/ShoppingIcon.d.ts +7 -0
  20. package/dist/cjs/assets/icons/SmallCheckIcon.d.ts +3 -0
  21. package/dist/cjs/assets/icons/SmallCheckIcon.js +1 -0
  22. package/dist/cjs/assets/icons/SupportIcon.d.ts +7 -0
  23. package/dist/cjs/assets/icons/SupportIconSmall.d.ts +6 -0
  24. package/dist/cjs/assets/icons/SupportIconTab.d.ts +6 -0
  25. package/dist/cjs/assets/icons/SupportIconTab.js +1 -0
  26. package/dist/cjs/assets/icons/TrainingIcon.d.ts +7 -0
  27. package/dist/cjs/assets/icons/play.svg.js +1 -0
  28. package/dist/cjs/components/ProgressChecklist/MultiChecklistItem.d.ts +10 -0
  29. package/dist/cjs/components/ProgressChecklist/MultiChecklistItem.js +1 -0
  30. package/dist/cjs/components/ProgressChecklist/ProgressChecklist.d.ts +72 -0
  31. package/dist/cjs/components/ProgressChecklist/ProgressChecklist.js +1 -0
  32. package/dist/cjs/components/ProgressChecklist/ProgressChecklist.style.d.ts +32 -0
  33. package/dist/cjs/components/ProgressChecklist/ProgressChecklist.style.js +133 -0
  34. package/dist/cjs/components/ProgressChecklist/ProgressStepper.d.ts +15 -0
  35. package/dist/cjs/components/ProgressChecklist/ProgressStepper.js +1 -0
  36. package/dist/cjs/components/ProgressChecklist/SimpleChecklistItem.d.ts +19 -0
  37. package/dist/cjs/components/ProgressChecklist/SimpleChecklistItem.js +1 -0
  38. package/dist/cjs/components/ProgressChecklist/index.d.ts +2 -0
  39. package/dist/cjs/components/TablePagination/TablePagination.d.ts +1 -0
  40. package/dist/cjs/components/TablePagination/TablePagination.js +1 -1
  41. package/dist/cjs/components/TablePagination/TablePaginationCard.d.ts +1 -1
  42. package/dist/cjs/components/WhatsAppTextEditor/CustomEditor.styled.d.ts +3 -3
  43. package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.d.ts +1 -1
  44. package/dist/cjs/components/analytics-card/AnalyticsCard.styled.d.ts +2 -2
  45. package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.d.ts +5 -5
  46. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.d.ts +3 -3
  47. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.d.ts +8 -8
  48. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.d.ts +1 -1
  49. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.d.ts +5 -5
  50. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.d.ts +5 -5
  51. package/dist/cjs/components/banner/Banner.styled.d.ts +20 -20
  52. package/dist/cjs/components/bik-layout/CommonStyles.d.ts +17 -17
  53. package/dist/cjs/components/button/Button.styled.d.ts +1 -1
  54. package/dist/cjs/components/card-selection-modal/CardSelectionModal.styled.d.ts +2 -2
  55. package/dist/cjs/components/carousel-secondary/CarouselSecondary.style.d.ts +6 -6
  56. package/dist/cjs/components/checkList/CheckList.styled.d.ts +1 -1
  57. package/dist/cjs/components/colourInput/ColourInput.styled.d.ts +2 -2
  58. package/dist/cjs/components/country-code-picker/CountryCodePicker.styled.d.ts +2 -2
  59. package/dist/cjs/components/country-code-picker/CountryPicker.styled.d.ts +2 -2
  60. package/dist/cjs/components/custom-date-time/CustomDateTime.styled.d.ts +1 -1
  61. package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.styled.d.ts +2 -2
  62. package/dist/cjs/components/dashboard-review-popup/components/FiveStar.styled.d.ts +2 -2
  63. package/dist/cjs/components/dashboard-review-popup/components/Form.styled.d.ts +6 -6
  64. package/dist/cjs/components/datePicker/DatePicker.styled.d.ts +4 -4
  65. package/dist/cjs/components/discount-modal/DiscountModal.styled.d.ts +5 -5
  66. package/dist/cjs/components/feature-announcements/FeatureAnnouncementProvider.js +1 -1
  67. package/dist/cjs/components/feature-announcements/MajorUpdatePopup.js +1 -1
  68. package/dist/cjs/components/feature-announcements/constants/dimensions.d.ts +99 -25
  69. package/dist/cjs/components/feature-announcements/constants/dimensions.js +1 -1
  70. package/dist/cjs/components/feature-announcements/styles/joyride.styles.d.ts +2 -2
  71. package/dist/cjs/components/feature-announcements/styles/majorPopup.styles.d.ts +14 -1
  72. package/dist/cjs/components/feature-announcements/styles/majorPopup.styles.js +1 -1
  73. package/dist/cjs/components/feature-announcements/types/feature.types.d.ts +47 -0
  74. package/dist/cjs/components/feature-announcements/types/props.types.d.ts +25 -3
  75. package/dist/cjs/components/input/Input.styled.d.ts +4 -4
  76. package/dist/cjs/components/keywords-input/KeywordsInput.styled.d.ts +1 -1
  77. package/dist/cjs/components/list-item/ListItem.styled.d.ts +1 -1
  78. package/dist/cjs/components/modals/modal.styled.d.ts +4 -4
  79. package/dist/cjs/components/pagination/Pagination.styled.d.ts +1 -1
  80. package/dist/cjs/components/plans/DurationSelectorStyles.d.ts +1 -1
  81. package/dist/cjs/components/plans/SubscriptionPlanSelector.d.ts +2 -2
  82. package/dist/cjs/components/plans/SubscriptionPlanStyled.d.ts +2 -2
  83. package/dist/cjs/components/post-live-checklist/PostLiveChecklist.d.ts +23 -0
  84. package/dist/cjs/components/post-live-checklist/PostLiveChecklist.js +1 -0
  85. package/dist/cjs/components/post-live-checklist/PostLiveChecklist.stories.d.ts +12 -0
  86. package/dist/cjs/components/post-live-checklist/index.d.ts +2 -0
  87. package/dist/cjs/components/post-live-checklist-item/PostLiveChecklistItem.d.ts +10 -0
  88. package/dist/cjs/components/post-live-checklist-item/PostLiveChecklistItem.js +1 -0
  89. package/dist/cjs/components/post-live-checklist-item/index.d.ts +1 -0
  90. package/dist/cjs/components/product-picker/ProductPicker.styled.d.ts +2 -2
  91. package/dist/cjs/components/progress-bar/ProgressBarComponent.d.ts +1 -1
  92. package/dist/cjs/components/radioList/RadioList.styled.d.ts +1 -1
  93. package/dist/cjs/components/sample-button/SampleButton.styled.d.ts +1 -1
  94. package/dist/cjs/components/shimmer/ShimmerComponent/ShimmerStyled.d.ts +2 -2
  95. package/dist/cjs/components/switch/Switch.d.ts +3 -3
  96. package/dist/cjs/components/tabs/Tabs.styles.d.ts +5 -5
  97. package/dist/cjs/components/tag/Tag.styled.d.ts +1 -1
  98. package/dist/cjs/components/testimonial-card/TestimonialCard.style.d.ts +9 -9
  99. package/dist/cjs/components/toaster/Toaster.js +1 -1
  100. package/dist/cjs/components/toaster/Toaster.styled.d.ts +1 -1
  101. package/dist/cjs/components/vertical-full-screen-modal/component.d.ts +24 -0
  102. package/dist/cjs/components/vertical-full-screen-modal/component.js +1 -0
  103. package/dist/cjs/components/vertical-full-screen-modal/index.d.ts +2 -0
  104. package/dist/cjs/components/vertical-full-screen-modal/styles.d.ts +8 -0
  105. package/dist/cjs/components/vertical-full-screen-modal/styles.js +45 -0
  106. package/dist/cjs/components/vertical-full-screen-modal/types.d.ts +27 -0
  107. package/dist/cjs/components/whats-new/WhatsNew.types.d.ts +6 -0
  108. package/dist/cjs/components/whats-new/WhatsNewButton.js +1 -1
  109. package/dist/cjs/components/whats-new/WhatsNewPanel.js +1 -1
  110. package/dist/cjs/index.d.ts +4 -0
  111. package/dist/cjs/index.js +1 -1
  112. package/dist/esm/assets/icons/ActiveChecklistIcon.d.ts +3 -0
  113. package/dist/esm/assets/icons/ActiveChecklistIcon.js +1 -0
  114. package/dist/esm/assets/icons/CheckIndicatorIcon.d.ts +1 -0
  115. package/dist/esm/assets/icons/CheckIndicatorIcon.js +1 -0
  116. package/dist/esm/assets/icons/CompletedChecklistIcon.d.ts +3 -0
  117. package/dist/esm/assets/icons/CompletedChecklistIcon.js +1 -0
  118. package/dist/esm/assets/icons/CustomiseIcon.d.ts +7 -0
  119. package/dist/esm/assets/icons/EnableIcon.d.ts +7 -0
  120. package/dist/esm/assets/icons/GoLiveIcon.d.ts +7 -0
  121. package/dist/esm/assets/icons/InactiveChecklistIcon.d.ts +3 -0
  122. package/dist/esm/assets/icons/InactiveChecklistIcon.js +1 -0
  123. package/dist/esm/assets/icons/MarketingIcon.d.ts +6 -0
  124. package/dist/esm/assets/icons/MarketingIconSmall.d.ts +6 -0
  125. package/dist/esm/assets/icons/MarketingIconTab.d.ts +6 -0
  126. package/dist/esm/assets/icons/MarketingIconTab.js +1 -0
  127. package/dist/esm/assets/icons/NudgesIcon.d.ts +7 -0
  128. package/dist/esm/assets/icons/OrderTrackingIcon.d.ts +7 -0
  129. package/dist/esm/assets/icons/ProgressBadgeIcon.d.ts +3 -0
  130. package/dist/esm/assets/icons/ShoppingIcon.d.ts +7 -0
  131. package/dist/esm/assets/icons/SmallCheckIcon.d.ts +3 -0
  132. package/dist/esm/assets/icons/SmallCheckIcon.js +1 -0
  133. package/dist/esm/assets/icons/SupportIcon.d.ts +7 -0
  134. package/dist/esm/assets/icons/SupportIconSmall.d.ts +6 -0
  135. package/dist/esm/assets/icons/SupportIconTab.d.ts +6 -0
  136. package/dist/esm/assets/icons/SupportIconTab.js +1 -0
  137. package/dist/esm/assets/icons/TrainingIcon.d.ts +7 -0
  138. package/dist/esm/assets/icons/play.svg.js +1 -0
  139. package/dist/esm/components/ProgressChecklist/MultiChecklistItem.d.ts +10 -0
  140. package/dist/esm/components/ProgressChecklist/MultiChecklistItem.js +1 -0
  141. package/dist/esm/components/ProgressChecklist/ProgressChecklist.d.ts +72 -0
  142. package/dist/esm/components/ProgressChecklist/ProgressChecklist.js +1 -0
  143. package/dist/esm/components/ProgressChecklist/ProgressChecklist.style.d.ts +32 -0
  144. package/dist/esm/components/ProgressChecklist/ProgressChecklist.style.js +133 -0
  145. package/dist/esm/components/ProgressChecklist/ProgressStepper.d.ts +15 -0
  146. package/dist/esm/components/ProgressChecklist/ProgressStepper.js +1 -0
  147. package/dist/esm/components/ProgressChecklist/SimpleChecklistItem.d.ts +19 -0
  148. package/dist/esm/components/ProgressChecklist/SimpleChecklistItem.js +1 -0
  149. package/dist/esm/components/ProgressChecklist/index.d.ts +2 -0
  150. package/dist/esm/components/TablePagination/TablePagination.d.ts +1 -0
  151. package/dist/esm/components/TablePagination/TablePagination.js +1 -1
  152. package/dist/esm/components/TablePagination/TablePaginationCard.d.ts +1 -1
  153. package/dist/esm/components/WhatsAppTextEditor/CustomEditor.styled.d.ts +3 -3
  154. package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.d.ts +1 -1
  155. package/dist/esm/components/analytics-card/AnalyticsCard.styled.d.ts +2 -2
  156. package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.d.ts +5 -5
  157. package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.d.ts +3 -3
  158. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.d.ts +8 -8
  159. package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.d.ts +1 -1
  160. package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.d.ts +5 -5
  161. package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.d.ts +5 -5
  162. package/dist/esm/components/banner/Banner.styled.d.ts +20 -20
  163. package/dist/esm/components/bik-layout/CommonStyles.d.ts +17 -17
  164. package/dist/esm/components/button/Button.styled.d.ts +1 -1
  165. package/dist/esm/components/card-selection-modal/CardSelectionModal.styled.d.ts +2 -2
  166. package/dist/esm/components/carousel-secondary/CarouselSecondary.style.d.ts +6 -6
  167. package/dist/esm/components/checkList/CheckList.styled.d.ts +1 -1
  168. package/dist/esm/components/colourInput/ColourInput.styled.d.ts +2 -2
  169. package/dist/esm/components/country-code-picker/CountryCodePicker.styled.d.ts +2 -2
  170. package/dist/esm/components/country-code-picker/CountryPicker.styled.d.ts +2 -2
  171. package/dist/esm/components/custom-date-time/CustomDateTime.styled.d.ts +1 -1
  172. package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.styled.d.ts +2 -2
  173. package/dist/esm/components/dashboard-review-popup/components/FiveStar.styled.d.ts +2 -2
  174. package/dist/esm/components/dashboard-review-popup/components/Form.styled.d.ts +6 -6
  175. package/dist/esm/components/datePicker/DatePicker.styled.d.ts +4 -4
  176. package/dist/esm/components/discount-modal/DiscountModal.styled.d.ts +5 -5
  177. package/dist/esm/components/feature-announcements/FeatureAnnouncementProvider.js +1 -1
  178. package/dist/esm/components/feature-announcements/MajorUpdatePopup.js +1 -1
  179. package/dist/esm/components/feature-announcements/constants/dimensions.d.ts +99 -25
  180. package/dist/esm/components/feature-announcements/constants/dimensions.js +1 -1
  181. package/dist/esm/components/feature-announcements/styles/joyride.styles.d.ts +2 -2
  182. package/dist/esm/components/feature-announcements/styles/majorPopup.styles.d.ts +14 -1
  183. package/dist/esm/components/feature-announcements/styles/majorPopup.styles.js +1 -1
  184. package/dist/esm/components/feature-announcements/types/feature.types.d.ts +47 -0
  185. package/dist/esm/components/feature-announcements/types/props.types.d.ts +25 -3
  186. package/dist/esm/components/input/Input.styled.d.ts +4 -4
  187. package/dist/esm/components/keywords-input/KeywordsInput.styled.d.ts +1 -1
  188. package/dist/esm/components/list-item/ListItem.styled.d.ts +1 -1
  189. package/dist/esm/components/modals/modal.styled.d.ts +4 -4
  190. package/dist/esm/components/pagination/Pagination.styled.d.ts +1 -1
  191. package/dist/esm/components/plans/DurationSelectorStyles.d.ts +1 -1
  192. package/dist/esm/components/plans/SubscriptionPlanSelector.d.ts +2 -2
  193. package/dist/esm/components/plans/SubscriptionPlanStyled.d.ts +2 -2
  194. package/dist/esm/components/post-live-checklist/PostLiveChecklist.d.ts +23 -0
  195. package/dist/esm/components/post-live-checklist/PostLiveChecklist.js +1 -0
  196. package/dist/esm/components/post-live-checklist/PostLiveChecklist.stories.d.ts +12 -0
  197. package/dist/esm/components/post-live-checklist/index.d.ts +2 -0
  198. package/dist/esm/components/post-live-checklist-item/PostLiveChecklistItem.d.ts +10 -0
  199. package/dist/esm/components/post-live-checklist-item/PostLiveChecklistItem.js +1 -0
  200. package/dist/esm/components/post-live-checklist-item/index.d.ts +1 -0
  201. package/dist/esm/components/product-picker/ProductPicker.styled.d.ts +2 -2
  202. package/dist/esm/components/progress-bar/ProgressBarComponent.d.ts +1 -1
  203. package/dist/esm/components/radioList/RadioList.styled.d.ts +1 -1
  204. package/dist/esm/components/sample-button/SampleButton.styled.d.ts +1 -1
  205. package/dist/esm/components/shimmer/ShimmerComponent/ShimmerStyled.d.ts +2 -2
  206. package/dist/esm/components/switch/Switch.d.ts +3 -3
  207. package/dist/esm/components/tabs/Tabs.styles.d.ts +5 -5
  208. package/dist/esm/components/tag/Tag.styled.d.ts +1 -1
  209. package/dist/esm/components/testimonial-card/TestimonialCard.style.d.ts +9 -9
  210. package/dist/esm/components/toaster/Toaster.js +1 -1
  211. package/dist/esm/components/toaster/Toaster.styled.d.ts +1 -1
  212. package/dist/esm/components/vertical-full-screen-modal/component.d.ts +24 -0
  213. package/dist/esm/components/vertical-full-screen-modal/component.js +1 -0
  214. package/dist/esm/components/vertical-full-screen-modal/index.d.ts +2 -0
  215. package/dist/esm/components/vertical-full-screen-modal/styles.d.ts +8 -0
  216. package/dist/esm/components/vertical-full-screen-modal/styles.js +45 -0
  217. package/dist/esm/components/vertical-full-screen-modal/types.d.ts +27 -0
  218. package/dist/esm/components/whats-new/WhatsNew.types.d.ts +6 -0
  219. package/dist/esm/components/whats-new/WhatsNewButton.js +1 -1
  220. package/dist/esm/components/whats-new/WhatsNewPanel.js +1 -1
  221. package/dist/esm/index.d.ts +4 -0
  222. package/dist/esm/index.js +1 -1
  223. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Pagination: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare const DurationSelectorStyled: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -30,11 +30,11 @@ type Props = {
30
30
  };
31
31
  export declare const HeaderWrapper: import("@emotion/styled").StyledComponent<{
32
32
  theme?: import("@emotion/react").Theme | undefined;
33
- as?: import("react").ElementType<any> | undefined;
33
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
34
34
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
35
35
  export declare const BottomWrapper: import("@emotion/styled").StyledComponent<{
36
36
  theme?: import("@emotion/react").Theme | undefined;
37
- as?: import("react").ElementType<any> | undefined;
37
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
38
38
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
39
39
  export declare const defaultTabs: {
40
40
  key: string;
@@ -1,14 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  export declare const SubscriptionPlanStyled: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  } & {
6
6
  isSelected: boolean;
7
7
  isManifestPlan?: boolean | undefined;
8
8
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
9
  export declare const NewSubscriptionStyled: import("@emotion/styled").StyledComponent<{
10
10
  theme?: import("@emotion/react").Theme | undefined;
11
- as?: import("react").ElementType<any> | undefined;
11
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
12
12
  } & {
13
13
  showMostPopularChip: boolean;
14
14
  height?: string | undefined;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ export interface ChecklistItem {
3
+ id: string;
4
+ isCompleted: boolean;
5
+ isOpen?: boolean;
6
+ header: string;
7
+ image?: string;
8
+ subHeader?: string;
9
+ }
10
+ export interface ButtonGroupItem {
11
+ id: string;
12
+ title: string;
13
+ icon?: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
14
+ }
15
+ export interface PostLiveChecklistProps {
16
+ title?: string;
17
+ subtitle?: string;
18
+ marketingChecklist?: ChecklistItem[];
19
+ supportChecklist?: ChecklistItem[];
20
+ onChecklistSetup?: (itemId: string, analyticsButtonId: string) => void;
21
+ useCaseType?: 'marketing' | 'support' | 'both' | string;
22
+ }
23
+ export declare const PostLiveChecklist: React.FC<PostLiveChecklistProps>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/MarketingIconTab.js"),s=require("../../assets/icons/SupportIconTab.js"),i=require("react"),r=require("../buttonGroup/ButtonGroup.js"),n=require("../post-live-checklist-item/PostLiveChecklistItem.js"),o=require("../TypographyStyle.js"),a=require("../../constants/Theme.js");exports.PostLiveChecklist=l=>{let{title:u="Boost Performance",subtitle:c="Enable these features to make your assistant smarter",marketingChecklist:d=[],supportChecklist:p=[],onChecklistSetup:m,useCaseType:g}=l;var h;const[j,b]=i.useState("marketing"),[k,C]=i.useState("none"),[x,f]=i.useState("marketing");i.useEffect((()=>{const e=d.filter((e=>!e.isCompleted)).length,t=p.filter((e=>!e.isCompleted)).length;0!==e||0!==t?e>0&&t>0?C("tabs"):(C("list"),e>0&&f("marketing"),t>0&&f("support")):C("none")}),[d,p]);const O=(()=>{const e=[{id:"marketing",title:"Marketing",icon:t.default},{id:"support",title:"Support",icon:s.default}];if(!g)return e;return"support"===String(g).toLowerCase()?[e[1],e[0]]:e})();i.useEffect((()=>{"tabs"===k&&O.length>0&&b(O[0].id)}),[k,g]);const v=e=>e.toUpperCase(),y=(e,t)=>{m&&m(e,t)};if("none"===k)return null;const S="tabs"===k?"marketing"===j?d:p:"marketing"===x?d:p;return e.jsxs("div",Object.assign({style:{padding:16,border:`1px solid ${a.COLORS.stroke.primary}`,backgroundColor:a.COLORS.surface.standard,borderRadius:8}},{children:[e.jsxs("div",{children:[e.jsx(o.TitleRegular,Object.assign({color:"#4B1583"},{children:u})),e.jsx(o.BodySecondary,Object.assign({color:(null===(h=a.COLORS.content)||void 0===h?void 0:h.secondary)||"#666666"},{children:c}))]}),e.jsx("div",Object.assign({style:{marginTop:12}},{children:"tabs"===k?e.jsxs(e.Fragment,{children:[e.jsx(r.ButtonGroup,{size:"medium",gap:"12px",iconPosition:"left",onButtonClick:e=>b(e),activeButtonId:j,buttonGroup:O}),e.jsx("div",Object.assign({style:{marginTop:12,display:"flex",flexDirection:"column",gap:12}},{children:S.map((t=>e.jsx(n.PostLiveChecklistItem,{isCompleted:t.isCompleted,isOpen:t.isOpen,header:t.header,image:t.image,subHeader:t.subHeader,onSetup:()=>y(t.id,v(j))},t.id)))}))]}):e.jsx("div",Object.assign({style:{marginTop:12,display:"flex",flexDirection:"column",gap:12}},{children:S.map((t=>e.jsx(n.PostLiveChecklistItem,{isCompleted:t.isCompleted,isOpen:t.isOpen,header:t.header,image:t.image,subHeader:t.subHeader,onSetup:()=>y(t.id,v(x))},t.id)))}))}))]}))};
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, ComponentStory } from '@storybook/react';
3
+ declare const _default: ComponentMeta<import("react").FC<import("./PostLiveChecklist").PostLiveChecklistProps>>;
4
+ export default _default;
5
+ export declare const Default: ComponentStory<import("react").FC<import("./PostLiveChecklist").PostLiveChecklistProps>>;
6
+ export declare const WithBothChecklists: ComponentStory<import("react").FC<import("./PostLiveChecklist").PostLiveChecklistProps>>;
7
+ export declare const SupportFirstOrdering: ComponentStory<import("react").FC<import("./PostLiveChecklist").PostLiveChecklistProps>>;
8
+ export declare const ListModeSupport: ComponentStory<import("react").FC<import("./PostLiveChecklist").PostLiveChecklistProps>>;
9
+ export declare const ListModeMarketing: ComponentStory<import("react").FC<import("./PostLiveChecklist").PostLiveChecklistProps>>;
10
+ export declare const AllCompleted: ComponentStory<import("react").FC<import("./PostLiveChecklist").PostLiveChecklistProps>>;
11
+ export declare const CustomTitles: ComponentStory<import("react").FC<import("./PostLiveChecklist").PostLiveChecklistProps>>;
12
+ export declare const WithSomeCompleted: ComponentStory<import("react").FC<import("./PostLiveChecklist").PostLiveChecklistProps>>;
@@ -0,0 +1,2 @@
1
+ export { PostLiveChecklist } from './PostLiveChecklist';
2
+ export type { PostLiveChecklistProps, ChecklistItem, } from './PostLiveChecklist';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface PostLiveChecklistItemProps {
3
+ isCompleted: boolean;
4
+ header: string;
5
+ subHeader?: string;
6
+ isOpen?: boolean;
7
+ onSetup?: () => void;
8
+ image?: string;
9
+ }
10
+ export declare const PostLiveChecklistItem: React.FC<PostLiveChecklistItemProps>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../assets/icons/CheckIndicatorIcon.js"),t=require("../../assets/icons/chevronDownOutline.svg.js"),i=require("../../assets/icons/chevronUpOutline.svg.js"),n=require("react"),r=require("../button/Button.js"),c=require("../TypographyStyle.js"),o=require("../../constants/Theme.js");exports.PostLiveChecklistItem=l=>{const{isCompleted:d,header:a,subHeader:u,isOpen:j=!1}=l,{onSetup:x}=l,[h,p]=n.useState(j);return n.useEffect((()=>{p(j)}),[j]),e.jsxs("div",Object.assign({style:{backgroundColor:h?o.COLORS.surface.subdued:o.COLORS.surface.standard,borderRadius:8}},{children:[e.jsxs("div",Object.assign({style:{color:o.COLORS.surface.standard,padding:16,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",cursor:d?"default":"pointer"},onClick:()=>!d&&p(!h)},{children:[e.jsx(c.TitleSmall,Object.assign({color:h?"#4B1583":o.COLORS.content.primary},{children:a})),d?e.jsx(s.CheckIndicatorIcon,{}):h?e.jsx(i.default,{width:24,height:24,color:o.COLORS.content.secondary}):e.jsx(t.default,{width:24,height:24,color:o.COLORS.content.secondary})]})),e.jsx("div",{children:h&&e.jsx("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:"16px"}},{children:e.jsxs("div",Object.assign({style:{padding:16,paddingTop:0,gap:16,display:"flex",flexDirection:"column"}},{children:[e.jsx("div",Object.assign({style:{height:200,backgroundColor:"#EFE6F9",borderRadius:8,overflow:"hidden"}},{children:e.jsx("img",{src:l.image,alt:"checklist item",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})})),e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",alignItems:"center",gap:16}},{children:[e.jsx("div",Object.assign({style:{flex:2}},{children:e.jsx(c.BodyCaption,Object.assign({color:o.COLORS.content.secondary,numberOfLines:3},{children:u}))})),e.jsx("div",Object.assign({style:{flex:1,display:"flex",justifyContent:"flex-end"}},{children:e.jsx(r.Button,{buttonType:"primary",size:"small",buttonText:"Setup",onClick:()=>{x&&x()}})}))]}))]}))}))})]}))};
@@ -0,0 +1 @@
1
+ export * from './PostLiveChecklistItem';
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  export declare const StyledZeroState: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
6
  export declare const StyledProductPickerContainer: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -8,7 +8,7 @@ export interface ProgressBarProps {
8
8
  export declare const ProgressBarComponent: (props: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
9
9
  export declare const ProgressCompletedBar: import("@emotion/styled").StyledComponent<{
10
10
  theme?: import("@emotion/react").Theme | undefined;
11
- as?: import("react").ElementType<any> | undefined;
11
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
12
12
  } & {
13
13
  color: string;
14
14
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare const RadioListStyled: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -2,7 +2,7 @@
2
2
  import type { Color, Variant } from './SampleButton';
3
3
  export declare const SampleButton: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
5
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
6
  } & {
7
7
  $color: Color;
8
8
  variant: Variant;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ShimmerStyled: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  } & {
6
6
  isBrand?: boolean | undefined;
7
7
  direction?: "row" | "column" | undefined;
@@ -9,7 +9,7 @@ export declare const ShimmerStyled: import("@emotion/styled").StyledComponent<{
9
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
10
  export declare const ShimmerComponentStyled: import("@emotion/styled").StyledComponent<{
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
12
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
13
  } & {
14
14
  isBrand?: boolean | undefined;
15
15
  height: number;
@@ -3,7 +3,7 @@ import { SwitchColorProps, SwitchProps } from './Switch.d';
3
3
  export declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<HTMLButtonElement>>;
4
4
  export declare const SwitchContainer: import("@emotion/styled").StyledComponent<{
5
5
  theme?: import("@emotion/react").Theme | undefined;
6
- as?: import("react").ElementType<any> | undefined;
6
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
7
  } & {
8
8
  trackLength: number;
9
9
  trackHeight: number;
@@ -16,7 +16,7 @@ export declare const SwitchContainer: import("@emotion/styled").StyledComponent<
16
16
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
17
17
  export declare const Thumb: import("@emotion/styled").StyledComponent<{
18
18
  theme?: import("@emotion/react").Theme | undefined;
19
- as?: import("react").ElementType<any> | undefined;
19
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
20
20
  } & {
21
21
  value: boolean;
22
22
  duration: number;
@@ -24,7 +24,7 @@ export declare const Thumb: import("@emotion/styled").StyledComponent<{
24
24
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
25
25
  export declare const Loader: import("@emotion/styled").StyledComponent<{
26
26
  theme?: import("@emotion/react").Theme | undefined;
27
- as?: import("react").ElementType<any> | undefined;
27
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
28
28
  } & {
29
29
  value: boolean;
30
30
  trackColor: SwitchColorProps;
@@ -2,17 +2,17 @@
2
2
  import { TabItemProps, TabItemTextProps } from './Tabs.model';
3
3
  export declare const TabHeader: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
5
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
6
  } & {
7
7
  bgColor?: string | undefined;
8
8
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
9
  export declare const TabItem: import("@emotion/styled").StyledComponent<{
10
10
  theme?: import("@emotion/react").Theme | undefined;
11
- as?: import("react").ElementType<any> | undefined;
11
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
12
12
  } & TabItemProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
13
  export declare const TrailingNumberContainer: import("@emotion/styled").StyledComponent<{
14
14
  theme?: import("@emotion/react").Theme | undefined;
15
- as?: import("react").ElementType<any> | undefined;
15
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
16
16
  } & {
17
17
  selected: boolean;
18
18
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -30,9 +30,9 @@ export declare const TabItemText: import("@emotion/styled").StyledComponent<{
30
30
  } & TabItemTextProps, {}, {}>;
31
31
  export declare const EmptyTab: import("@emotion/styled").StyledComponent<{
32
32
  theme?: import("@emotion/react").Theme | undefined;
33
- as?: import("react").ElementType<any> | undefined;
33
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
34
34
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
35
35
  export declare const RightComponent: import("@emotion/styled").StyledComponent<{
36
36
  theme?: import("@emotion/react").Theme | undefined;
37
- as?: import("react").ElementType<any> | undefined;
37
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
38
38
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -2,7 +2,7 @@
2
2
  import { TagTheme, TagType, TagVariant } from './model';
3
3
  export declare const Tag: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
5
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
6
  } & {
7
7
  theme: TagTheme;
8
8
  type: TagType;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const TestimonialCardStyle: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  } & {
6
6
  width?: string | undefined;
7
7
  height?: string | undefined;
@@ -9,35 +9,35 @@ export declare const TestimonialCardStyle: import("@emotion/styled").StyledCompo
9
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
10
  export declare const TestimonialProfileCard: import("@emotion/styled").StyledComponent<{
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
12
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
13
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
14
  export declare const TestimonialProfileInfo2: import("@emotion/styled").StyledComponent<{
15
15
  theme?: import("@emotion/react").Theme | undefined;
16
- as?: import("react").ElementType<any> | undefined;
16
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
17
17
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
18
  export declare const Logo: import("@emotion/styled").StyledComponent<{
19
19
  theme?: import("@emotion/react").Theme | undefined;
20
- as?: import("react").ElementType<any> | undefined;
20
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
21
21
  }, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
22
22
  export declare const TestimonialProfileInfo: import("@emotion/styled").StyledComponent<{
23
23
  theme?: import("@emotion/react").Theme | undefined;
24
- as?: import("react").ElementType<any> | undefined;
24
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
25
25
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
26
26
  export declare const TestimonialProfileFooter: import("@emotion/styled").StyledComponent<{
27
27
  theme?: import("@emotion/react").Theme | undefined;
28
- as?: import("react").ElementType<any> | undefined;
28
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
29
29
  } & {
30
30
  width?: string | undefined;
31
31
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
32
32
  export declare const FooterText: import("@emotion/styled").StyledComponent<{
33
33
  theme?: import("@emotion/react").Theme | undefined;
34
- as?: import("react").ElementType<any> | undefined;
34
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
35
35
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
36
36
  export declare const FooterStat: import("@emotion/styled").StyledComponent<{
37
37
  theme?: import("@emotion/react").Theme | undefined;
38
- as?: import("react").ElementType<any> | undefined;
38
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
39
39
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
40
40
  export declare const FooterArrow: import("@emotion/styled").StyledComponent<{
41
41
  theme?: import("@emotion/react").Theme | undefined;
42
- as?: import("react").ElementType<any> | undefined;
42
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
43
43
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),o=require("../../assets/icons/alert_triangle.svg.js"),e=require("../../assets/icons/check.svg.js"),n=require("../../assets/icons/cross.svg.js"),s=require("../../assets/icons/errorInfo.svg.js"),i=require("../../assets/icons/info.svg.js"),r=require("react"),l=require("react-dom"),u=require("react-toastify"),d=require("../button/Button.js"),c=require("./Toaster.styled.js"),a=require("../TypographyStyle.js"),x=require("../../constants/Theme.js");function h(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var p=h(r),y=h(l);const g=o=>t.jsxs(a.BodySecondary,Object.assign({color:"#9E9E9E",customStyles:{fontWeight:600,fontSize:14,width:25}},{children:[o.duration,"s"]})),v=o=>{const e="default"===o.type?x.COLORS.content.primary:"success"===o.type?x.COLORS.content.positive:"error"===o.type?x.COLORS.content.negative:"warning"===o.type?x.COLORS.content.warning:x.COLORS.content.brand,[s,i]=r.useState(o.duration||-1);r.useEffect((()=>{if(!o.duration||o.duration<=0)return void i(-1);i(o.duration);const t=setInterval((()=>{i((o=>{const e=o-1;return e<=0?(clearInterval(t),-1):e}))}),1e3);return()=>clearInterval(t)}),[o.duration]);const l=(!o.blocking||-1!==s)&&(o.blocking&&s>0);return t.jsx("div",Object.assign({tabIndex:l?-1:0,role:"button",style:{width:s>0?25:20,display:"flex",cursor:l?"not-allowed":"pointer",alignSelf:""+(o.alignTop?"flex-start":"center"),opacity:l?.5:1},onClick:()=>{!l&&o.closeToast&&o.closeToast()},onKeyDown:t=>{"Enter"===t.key&&!l&&o.closeToast&&o.closeToast()}},{children:s>0?t.jsx(g,{duration:s}):t.jsx(n.default,{height:20,width:20,color:e})}))},f=o=>{var e,n;const s=x.COLORS.content.placeholder,{toasterText:i}=r.useContext(b);return t.jsx(t.Fragment,{children:t.jsxs("div",Object.assign({style:{display:"flex",flexGrow:1}},{children:[t.jsx("div",Object.assign({style:{flexGrow:1,marginRight:32,display:"flex",alignItems:"center"}},{children:t.jsxs("div",{children:[o.subText?t.jsx(a.TitleSmall,Object.assign({color:"inherit"},{children:null!==(e=o.toastText)&&void 0!==e?e:i})):t.jsx(a.BodySecondary,Object.assign({color:"inherit"},{children:null!==(n=o.toastText)&&void 0!==n?n:i})),o.subText&&t.jsx("div",Object.assign({style:{marginTop:2}},{children:t.jsx(a.BodyCaption,Object.assign({color:x.COLORS.content.secondary},{children:o.subText}))}))]})})),o.showButton&&t.jsx("div",Object.assign({style:{display:"flex",flexDirection:"column",alignSelf:"center",padding:"6px 4px",marginRight:{showSecondButton:4,showButton:0}[o.showSecondButton?"showSecondButton":"showButton"]}},{children:t.jsx(d.Button,{buttonText:o.buttonText,buttonType:"tertiaryGray",color:x.COLORS.content.secondary,onClick:o.onButtonClick})})),o.showSecondButton&&t.jsx("div",Object.assign({style:{display:"flex",flexDirection:"column",alignSelf:"center",padding:"6px 4px"}},{children:t.jsx(d.Button,{buttonText:o.secondButtonText,buttonType:"tertiaryGray",color:x.COLORS.content.secondary,onClick:o.onSecondButtonClick})})),o.showButton||o.showSecondButton?t.jsx("div",{style:{height:28,alignSelf:"center",marginLeft:8,marginRight:8,borderRight:`1px solid ${s}`,borderRadius:1}}):null]}))})},b=p.default.createContext({toasterText:""});exports.Toaster=n=>{const l=r.useRef(n.toastId||"default-toast"),[d,a]=r.useState(n.text),h=u.cssTransition({enter:"Toastify__slide-enter",exit:"Toastify__slide-exit"}),p="default"===n.type?null:"success"===n.type?t.jsx(e.default,{width:20,height:20,color:x.COLORS.content.positive}):"error"===n.type?t.jsx(s.default,{width:20,height:20,color:x.COLORS.content.negative}):"warning"===n.type?t.jsx(o.default,{width:20,height:20,color:x.COLORS.content.warning}):t.jsx(i.default,{width:20,height:20,color:x.COLORS.content.brand});r.useEffect((()=>{l.current&&l.current===n.toastId?(a(n.text),u.toast.update(l.current,{autoClose:n.autoClose})):l.current&&l.current!==n.toastId&&g(n.text)}),[n.toastId,n.text]);const g=o=>{var e,s,i,r,d,c,a,x,y,g,b,j,T,B,O,C;void 0!==n.hideLeftIcon||n.leftIcon?u.toast(t.jsx(f,{toastText:o,type:n.type||"info",buttonText:null===(e=n.buttonProps)||void 0===e?void 0:e.buttonText,secondButtonText:null===(s=n.secondButtonProps)||void 0===s?void 0:s.buttonText,showButton:null===(i=n.buttonProps)||void 0===i?void 0:i.showButton,showSecondButton:null===(r=n.secondButtonProps)||void 0===r?void 0:r.showButton,onButtonClick:null===(d=n.buttonProps)||void 0===d?void 0:d.onButtonClick,onSecondButtonClick:null===(c=n.secondButtonProps)||void 0===c?void 0:c.onButtonClick,subText:n.subText}),{onClose:n.onCloseToast?n.onCloseToast:()=>({}),icon:!0!==n.hideLeftIcon&&(n.leftIcon?n.leftIcon:"default"!==n.type&&t.jsx("div",Object.assign({style:{display:"flex",alignItems:"flex-start"}},{children:p}))),type:n.type,closeButton:t.jsx(v,{type:n.type||"default",alignTop:!(!n.subText||(null===(a=n.buttonProps)||void 0===a?void 0:a.showButton)||(null===(x=n.secondButtonProps)||void 0===x?void 0:x.showButton)),blocking:n.blocking,duration:n.duration}),toastId:n.toastId||"default-toast",transition:h}):l.current=u.toast(t.jsx(f,{toastText:o,type:n.type||"info",buttonText:null===(y=n.buttonProps)||void 0===y?void 0:y.buttonText,secondButtonText:null===(g=n.secondButtonProps)||void 0===g?void 0:g.buttonText,showButton:null===(b=n.buttonProps)||void 0===b?void 0:b.showButton,showSecondButton:null===(j=n.secondButtonProps)||void 0===j?void 0:j.showButton,onButtonClick:null===(T=n.buttonProps)||void 0===T?void 0:T.onButtonClick,onSecondButtonClick:null===(B=n.secondButtonProps)||void 0===B?void 0:B.onButtonClick,subText:n.subText}),{onClose:n.onCloseToast?n.onCloseToast:()=>({}),type:n.type,icon:"default"!==n.type&&t.jsx("div",Object.assign({style:{display:"flex",alignItems:"flex-start"}},{children:p})),closeButton:t.jsx(v,{type:n.type||"default",alignTop:!(!n.subText||(null===(O=n.buttonProps)||void 0===O?void 0:O.showButton)||(null===(C=n.secondButtonProps)||void 0===C?void 0:C.showButton)),blocking:n.blocking,duration:n.duration}),toastId:n.toastId||"default-toast",transition:h})};return r.useEffect((()=>{g()}),[]),y.default.createPortal(t.jsx(c.ToasterStyled,Object.assign({width:n.width,height:n.height,zIndex:n.zIndex,isSubTextIncluded:!!n.subText,type:n.type},{children:t.jsx(b.Provider,Object.assign({value:{toasterText:d}},{children:t.jsx(u.ToastContainer,{position:n.position||"top-right",closeOnClick:n.closeOnClick||!1,hideProgressBar:n.hideProgressBar||!1,draggable:!1,autoClose:n.autoClose||!1,theme:"colored"})}))})),document.body)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("../../assets/icons/alert_triangle.svg.js"),o=require("../../assets/icons/check.svg.js"),n=require("../../assets/icons/cross.svg.js"),s=require("../../assets/icons/errorInfo.svg.js"),i=require("../../assets/icons/info.svg.js"),r=require("react"),l=require("react-dom"),u=require("react-toastify"),c=require("../button/Button.js"),a=require("./Toaster.styled.js"),d=require("../TypographyStyle.js"),x=require("../../constants/Theme.js");function h(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var p=h(r),y=h(l);const g=e=>t.jsxs(d.BodySecondary,Object.assign({color:"#9E9E9E",customStyles:{fontWeight:600,fontSize:14,width:25}},{children:[e.duration,"s"]})),v=e=>{const o="default"===e.type?x.COLORS.content.primary:"success"===e.type?x.COLORS.content.positive:"error"===e.type?x.COLORS.content.negative:"warning"===e.type?x.COLORS.content.warning:x.COLORS.content.brand,{timerValue:s}=r.useContext(b),i=(!e.blocking||-1!==s)&&(e.blocking&&s>0);return t.jsx("div",Object.assign({tabIndex:i?-1:0,role:"button",style:{width:s>0?25:20,display:"flex",cursor:i?"not-allowed":"pointer",alignSelf:""+(e.alignTop?"flex-start":"center"),opacity:i?.5:1},onClick:()=>{!i&&e.closeToast&&e.closeToast()},onKeyDown:t=>{"Enter"===t.key&&!i&&e.closeToast&&e.closeToast()}},{children:s>0?t.jsx(g,{duration:s}):t.jsx(n.default,{height:20,width:20,color:o})}))},f=e=>{var o,n;const s=x.COLORS.content.placeholder,{toasterText:i}=r.useContext(b);return t.jsx(t.Fragment,{children:t.jsxs("div",Object.assign({style:{display:"flex",flexGrow:1}},{children:[t.jsx("div",Object.assign({style:{flexGrow:1,marginRight:32,display:"flex",alignItems:"center"}},{children:t.jsxs("div",{children:[e.subText?t.jsx(d.TitleSmall,Object.assign({color:"inherit"},{children:null!==(o=e.toastText)&&void 0!==o?o:i})):t.jsx(d.BodySecondary,Object.assign({color:"inherit"},{children:null!==(n=e.toastText)&&void 0!==n?n:i})),e.subText&&t.jsx("div",Object.assign({style:{marginTop:2}},{children:t.jsx(d.BodyCaption,Object.assign({color:x.COLORS.content.secondary},{children:e.subText}))}))]})})),e.showButton&&t.jsx("div",Object.assign({style:{display:"flex",flexDirection:"column",alignSelf:"center",padding:"6px 4px",marginRight:{showSecondButton:4,showButton:0}[e.showSecondButton?"showSecondButton":"showButton"]}},{children:t.jsx(c.Button,{buttonText:e.buttonText,buttonType:"tertiaryGray",color:x.COLORS.content.secondary,onClick:e.onButtonClick})})),e.showSecondButton&&t.jsx("div",Object.assign({style:{display:"flex",flexDirection:"column",alignSelf:"center",padding:"6px 4px"}},{children:t.jsx(c.Button,{buttonText:e.secondButtonText,buttonType:"tertiaryGray",color:x.COLORS.content.secondary,onClick:e.onSecondButtonClick})})),e.showButton||e.showSecondButton?t.jsx("div",{style:{height:28,alignSelf:"center",marginLeft:8,marginRight:8,borderRight:`1px solid ${s}`,borderRadius:1}}):null]}))})},b=p.default.createContext({toasterText:"",timerValue:-1});exports.Toaster=n=>{const l=r.useRef(n.toastId||"default-toast"),[c,d]=r.useState(n.text),[h,p]=r.useState(n.duration||-1),g=u.cssTransition({enter:"Toastify__slide-enter",exit:"Toastify__slide-exit"}),j="default"===n.type?null:"success"===n.type?t.jsx(o.default,{width:20,height:20,color:x.COLORS.content.positive}):"error"===n.type?t.jsx(s.default,{width:20,height:20,color:x.COLORS.content.negative}):"warning"===n.type?t.jsx(e.default,{width:20,height:20,color:x.COLORS.content.warning}):t.jsx(i.default,{width:20,height:20,color:x.COLORS.content.brand});r.useEffect((()=>{l.current&&l.current===n.toastId?(d(n.text),u.toast.update(l.current,{autoClose:n.autoClose})):l.current&&l.current!==n.toastId&&T(n.text)}),[n.toastId,n.text]),r.useEffect((()=>{if(!n.duration)return;p(n.duration);const t=setInterval((()=>{p((e=>{const o=e-1;return o<=0?(clearInterval(t),-1):o}))}),1e3);return()=>clearInterval(t)}),[n.duration,n.toastId]);const T=e=>{var o,s,i,r,c,a,d,x,h,p,y,b,T,B,C,O;void 0!==n.hideLeftIcon||n.leftIcon?u.toast(t.jsx(f,{toastText:e,type:n.type||"info",buttonText:null===(o=n.buttonProps)||void 0===o?void 0:o.buttonText,secondButtonText:null===(s=n.secondButtonProps)||void 0===s?void 0:s.buttonText,showButton:null===(i=n.buttonProps)||void 0===i?void 0:i.showButton,showSecondButton:null===(r=n.secondButtonProps)||void 0===r?void 0:r.showButton,onButtonClick:null===(c=n.buttonProps)||void 0===c?void 0:c.onButtonClick,onSecondButtonClick:null===(a=n.secondButtonProps)||void 0===a?void 0:a.onButtonClick,subText:n.subText}),{onClose:n.onCloseToast?n.onCloseToast:()=>({}),icon:!0!==n.hideLeftIcon&&(n.leftIcon?n.leftIcon:"default"!==n.type&&t.jsx("div",Object.assign({style:{display:"flex",alignItems:"flex-start"}},{children:j}))),type:n.type,closeButton:t.jsx(v,{type:n.type||"default",alignTop:!(!n.subText||(null===(d=n.buttonProps)||void 0===d?void 0:d.showButton)||(null===(x=n.secondButtonProps)||void 0===x?void 0:x.showButton)),blocking:n.blocking}),toastId:n.toastId||"default-toast",transition:g}):l.current=u.toast(t.jsx(f,{toastText:e,type:n.type||"info",buttonText:null===(h=n.buttonProps)||void 0===h?void 0:h.buttonText,secondButtonText:null===(p=n.secondButtonProps)||void 0===p?void 0:p.buttonText,showButton:null===(y=n.buttonProps)||void 0===y?void 0:y.showButton,showSecondButton:null===(b=n.secondButtonProps)||void 0===b?void 0:b.showButton,onButtonClick:null===(T=n.buttonProps)||void 0===T?void 0:T.onButtonClick,onSecondButtonClick:null===(B=n.secondButtonProps)||void 0===B?void 0:B.onButtonClick,subText:n.subText}),{onClose:n.onCloseToast?n.onCloseToast:()=>({}),type:n.type,icon:"default"!==n.type&&t.jsx("div",Object.assign({style:{display:"flex",alignItems:"flex-start"}},{children:j})),closeButton:t.jsx(v,{type:n.type||"default",alignTop:!(!n.subText||(null===(C=n.buttonProps)||void 0===C?void 0:C.showButton)||(null===(O=n.secondButtonProps)||void 0===O?void 0:O.showButton)),blocking:n.blocking}),toastId:n.toastId||"default-toast",transition:g})};return r.useEffect((()=>{T()}),[]),y.default.createPortal(t.jsx(a.ToasterStyled,Object.assign({width:n.width,height:n.height,zIndex:n.zIndex,isSubTextIncluded:!!n.subText,type:n.type},{children:t.jsx(b.Provider,Object.assign({value:{toasterText:c,timerValue:h}},{children:t.jsx(u.ToastContainer,{position:n.position||"top-right",closeOnClick:n.closeOnClick||!1,hideProgressBar:n.hideProgressBar||!1,draggable:!1,autoClose:n.autoClose||!1,theme:"colored"})}))})),document.body)};
@@ -2,7 +2,7 @@
2
2
  import { TypeOptions } from 'react-toastify';
3
3
  export declare const ToasterStyled: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
5
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
6
  } & {
7
7
  width?: string | undefined;
8
8
  height?: string | undefined;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { VerticalFullScreenModalProps } from './types';
3
+ /**
4
+ * VerticalFullScreenModal - A reusable full-screen modal component
5
+ *
6
+ * This component provides a common full-screen modal structure with:
7
+ * - Fixed height (100vh)
8
+ * - Header section with close button
9
+ * - Scrollable body content
10
+ * - Dynamic footer with configurable buttons
11
+ *
12
+ * @example
13
+ * <VerticalFullScreenModal
14
+ * headerText="My Modal"
15
+ * body={<div>Modal content here</div>}
16
+ * primaryButtonTitle="Save"
17
+ * onSave={handleSave}
18
+ * secondaryButtonTitle="Cancel"
19
+ * secondaryButtonClick={handleCancel}
20
+ * onClose={handleClose}
21
+ * />
22
+ */
23
+ declare const VerticalFullScreenModal: React.FC<VerticalFullScreenModalProps>;
24
+ export default VerticalFullScreenModal;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("../../assets/icons/cross.svg.js"),o=require("../button/Button.js"),s=require("../icon-button/IconButton.js"),n=require("../TypographyStyle.js"),r=require("./styles.js");exports.default=i=>{let{headerText:a,body:l,primaryButtonTitle:c,onSave:d,secondaryButtonTitle:u="Cancel",secondaryButtonClick:j,hideSecondaryButton:x=!1,disablePrimaryButton:p=!1,onClose:y,width:b,className:h,modalOffsetPx:g}=i;const B=j||y;return t.jsx("div",Object.assign({style:{position:"fixed",top:0,right:g?`${g}px`:"-424px",bottom:0}},{children:t.jsxs(r.VerticalModalContainer,Object.assign({onClick:t=>t.stopPropagation(),onMouseDown:t=>t.stopPropagation(),width:b,className:h},{children:[t.jsxs(r.VerticalModalHeader,{children:[t.jsx(n.TitleRegular,{children:a}),t.jsx(s.IconButton,{Icon:e.default,onClick:y})]}),t.jsx(r.VerticalModalContent,{children:l}),t.jsxs(r.VerticalModalFooter,Object.assign({addGap:!x},{children:[!x&&t.jsx(o.Button,{buttonText:u,buttonType:"tertiaryGray",onClick:B}),t.jsx(o.Button,{style:{marginRight:12},buttonText:c,onClick:d,disabled:p})]}))]}))}))};
@@ -0,0 +1,2 @@
1
+ export { default as VerticalFullScreenModal } from './component';
2
+ export * from './types';
@@ -0,0 +1,8 @@
1
+ export declare const VerticalModalContainer: import("styled-components").StyledComponent<"div", any, {
2
+ width?: string | undefined;
3
+ }, never>;
4
+ export declare const VerticalModalHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const VerticalModalContent: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const VerticalModalFooter: import("styled-components").StyledComponent<"div", any, {
7
+ addGap?: boolean | undefined;
8
+ }, never>;
@@ -0,0 +1,45 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components"),r=require("../../constants/Theme.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=o(e);const d=t.default.div`
2
+ background-color: ${r.COLORS.surface.standard};
3
+ border-radius: 0px;
4
+ padding: 0;
5
+ width: ${e=>e.width||"424px"};
6
+ height: 100vh;
7
+ display: flex;
8
+ flex-direction: column;
9
+ border-left: 1px solid ${r.COLORS.stroke.primary};
10
+ `,a=t.default.div`
11
+ padding: 16px 24px;
12
+ border-bottom: 1px solid ${r.COLORS.stroke.primary};
13
+ background-color: ${r.COLORS.surface.subdued};
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: space-between;
17
+ flex-shrink: 0;
18
+ height: 60px;
19
+ `,i=t.default.div`
20
+ padding: 16px;
21
+ background-color: ${r.COLORS.surface.standard};
22
+ flex: 1;
23
+ overflow-x: hidden;
24
+ overflow-y: auto;
25
+ display: flex;
26
+ flex-direction: column;
27
+ scrollbar-width: none;
28
+ -ms-overflow-style: none;
29
+
30
+ &::-webkit-scrollbar {
31
+ display: none;
32
+ }
33
+ `,l=t.default.div`
34
+ display: flex;
35
+ flex-direction: row;
36
+ gap: 16px;
37
+ justify-content: flex-end;
38
+ background: ${r.COLORS.surface.standard};
39
+ height: 56px;
40
+ border-top: 1px solid #${r.COLORS.stroke.primary};
41
+ align-items: center;
42
+ padding: 0 24px;
43
+ flex-shrink: 0;
44
+ gap: ${e=>e.addGap?"16px":"0px"};
45
+ `;exports.VerticalModalContainer=d,exports.VerticalModalContent=i,exports.VerticalModalFooter=l,exports.VerticalModalHeader=a;
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ export interface VerticalFullScreenModalProps {
3
+ /** Content text to display in the modal header */
4
+ headerText: string;
5
+ /** Content to display in the modal body */
6
+ body: React.ReactNode;
7
+ /** Title for the primary action button */
8
+ primaryButtonTitle: string;
9
+ /** Callback when primary button is clicked */
10
+ onSave: () => void;
11
+ /** Optional title for the secondary button */
12
+ secondaryButtonTitle?: string;
13
+ /** Optional callback when secondary button is clicked */
14
+ secondaryButtonClick?: () => void;
15
+ /** Hide the secondary button if true */
16
+ hideSecondaryButton?: boolean;
17
+ /** Disable the primary button */
18
+ disablePrimaryButton?: boolean;
19
+ /** Callback when modal is closed */
20
+ onClose: () => void;
21
+ /** Optional custom width (default: 424px) */
22
+ width?: string;
23
+ /** Optional className for custom styling */
24
+ className?: string;
25
+ /** Optional offset for modal positioning */
26
+ modalOffsetPx?: number;
27
+ }
@@ -1,4 +1,6 @@
1
1
  /// <reference types="react" />
2
+ import { ButtonConfig, SecondaryButtonConfig } from '../feature-announcements/types/feature.types';
3
+ export type { ButtonConfig, SecondaryButtonConfig };
2
4
  export interface WhatsNewContent {
3
5
  id: string;
4
6
  title: string;
@@ -12,6 +14,10 @@ export interface WhatsNewContent {
12
14
  createdAt: any;
13
15
  module: string[];
14
16
  visibility: boolean;
17
+ primaryButton?: ButtonConfig;
18
+ secondaryButton?: SecondaryButtonConfig;
19
+ featureUpdateType?: 'Major' | 'Minor';
20
+ displayImage?: string;
15
21
  }
16
22
  export interface WhatsNewProviderProps {
17
23
  children: React.ReactNode;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("../../assets/icons/whatsNew.svg.js"),s=require("../../constants/Theme.js"),i=require("../tooltips/Tooltip.js"),n=require("./WhatsNew.styles.js");exports.WhatsNewButton=o=>{let{onClick:r,newContentCount:a=0,isOpen:c=!1,isLoading:d=!1,tooltip:l="What's new",testId:h="whats-new-button",iconWidth:j=32,iconHeight:u=32,customIcon:x}=o;return d?t.jsxs("div",Object.assign({style:{margin:"0px 8px"}},{children:[t.jsx("div",{style:{width:16,height:16,border:"2px solid #f3f3f3",borderTop:"2px solid #731DCF",borderRadius:"50%",animation:"spin 1s linear infinite"}}),t.jsx("style",{children:"\n\t\t\t\t\t\t@keyframes spin {\n\t\t\t\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t\t\t\t}\n\t\t\t\t\t"})]})):t.jsx(n.WhatsNewIconContainer,Object.assign({count:a},{children:t.jsxs("div",Object.assign({className:"main-icon-class "+(c?"icon-active":""),style:{color:c?s.COLORS.content.brand:s.COLORS.content.primary},onClick:r,"data-testid":h},{children:[t.jsx(i.Tooltip,Object.assign({body:l},{children:t.jsx("div",{children:x?t.jsx(x,{width:j,height:u,color:c?s.COLORS.content.brand:s.COLORS.content.primary}):t.jsx(e.default,{width:j,height:u})})})),a>0&&t.jsx("div",Object.assign({className:"notification--count"},{children:t.jsx("div",Object.assign({className:"count--text"},{children:a}))}))]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("../../assets/icons/whatsNew.svg.js"),s=require("../../constants/Theme.js"),n=require("../tooltips/Tooltip.js"),i=require("./WhatsNew.styles.js");exports.WhatsNewButton=o=>{let{onClick:r,newContentCount:a=0,isOpen:c=!1,isLoading:d=!1,tooltip:l="What's new",testId:h="whats-new-button",iconWidth:j=32,iconHeight:u=32,customIcon:x}=o;return d?t.jsxs("div",Object.assign({style:{margin:"0px 8px"}},{children:[t.jsx("div",{style:{width:16,height:16,border:"2px solid #f3f3f3",borderTop:"2px solid #731DCF",borderRadius:"50%",animation:"spin 1s linear infinite"}}),t.jsx("style",{children:"\n\t\t\t\t\t\t@keyframes spin {\n\t\t\t\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t\t\t\t}\n\t\t\t\t\t"})]})):t.jsx(i.WhatsNewIconContainer,Object.assign({count:a},{children:t.jsxs("div",Object.assign({className:"main-icon-class "+(c?"icon-active":""),style:{color:c?s.COLORS.content.brand:s.COLORS.content.primary},onClick:r,"data-testid":h},{children:[t.jsx(n.Tooltip,Object.assign({body:l,placement:"bottom"},{children:t.jsx("div",{children:x?t.jsx(x,{width:j,height:u,color:c?s.COLORS.content.brand:s.COLORS.content.primary}):t.jsx(e.default,{width:j,height:u})})})),a>0&&t.jsx("div",Object.assign({className:"notification--count"},{children:t.jsx("div",Object.assign({className:"count--text"},{children:a}))}))]}))}))};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("date-fns"),s=require("react"),a=require("../../assets/icons/searchIcon.svg.js"),r=require("../../assets/icons/whatsNew.svg.js"),n=require("../../constants/Theme.js"),i=require("../button/Button.js"),o=require("../feature-announcements/VideoModal.js"),c=require("../searchBar/searchBar.js"),d=require("../side-modal/SideModal.js"),l=require("../TypographyStyle.js"),h=require("./WhatsNew.styles.js");exports.WhatsNewPanel=u=>{let{isOpen:j,onClose:m,content:x,isLoading:g=!1,title:w="What's new on BIK",searchPlaceholder:b="Search posts",emptyStateTitle:p="Nothing new!",emptyStateDescription:C="There are no new updates or features at the moment. Check back soon!",noResultsText:O="Sorry, no results found.",width:y="480px",onContentClick:f,renderCustomContent:N}=u;const[S,v]=s.useState(""),[M,q]=s.useState(!1),[L,T]=s.useState(""),k=e=>{if(!e.createdAt)return!1;const s=e.createdAt.toDate?e.createdAt.toDate():new Date(e.createdAt);return t.differenceInBusinessDays(new Date,s)<7},B=s.useMemo((()=>{if(!S.trim())return x;const e=S.toLowerCase();return x.filter((t=>t.title.toLowerCase().includes(e)||t.body.toLowerCase().includes(e)||t.content&&t.content.toLowerCase().includes(e)))}),[x,S]),D=0===x.length,A=0===B.length;return j?e.jsxs(d.SideModal,Object.assign({width:y,onClose:m,header:"",headerCustomComponent:e.jsx(l.TitleMedium,Object.assign({color:n.COLORS.background.inverse},{children:w})),headerStyle:{background:n.COLORS.background.brandLight},hideFooter:!0},{children:[e.jsxs(h.MainContainer,{children:[e.jsx("div",Object.assign({className:"mt-8"},{children:e.jsx(c.SearchBar,{width:"100%",isEnabled:!D,onChange:e=>{v(e)},onEnter:e=>{v(e)},placeholder:b,variant:"default",searchValue:S,onClickCross:()=>{v("")}})})),e.jsx(h.WhatsNewWrapper,{children:D||A?e.jsxs("div",Object.assign({className:"no--data--found"},{children:[e.jsx("div",Object.assign({className:"icon--wrapper"},{children:D?e.jsx(r.default,{width:32,height:32}):e.jsx(a.default,{width:32,height:32})})),D?e.jsxs(e.Fragment,{children:[e.jsx(l.TitleRegular,{children:p}),e.jsx(l.BodyPrimary,Object.assign({color:n.COLORS.content.secondary,className:"text--align",style:{maxWidth:300}},{children:C}))]}):A?e.jsx(l.BodyPrimary,Object.assign({color:n.COLORS.content.secondary,className:"text--align",style:{maxWidth:300}},{children:O})):null]})):e.jsx("div",Object.assign({className:"scroller"},{children:B.map(((s,a)=>N?N(s):e.jsxs(h.MainCardContainer,Object.assign({className:"padding--16 mb-mt-8"},{children:[e.jsx(h.BackgroundImageContainer,{imageUrl:s.image,height:"209px",width:"100%",style:{borderRadius:"4px"}}),e.jsx("div",Object.assign({className:"mt-20 full--width"},{children:e.jsxs("div",Object.assign({className:"created--at flex flex--row"},{children:[k(s)?e.jsx("div",Object.assign({className:"new--content--tag"},{children:e.jsx(l.Caption,{children:"New"})})):e.jsx(e.Fragment,{}),e.jsx(l.Caption,Object.assign({style:{color:n.COLORS.content.placeholder}},{children:s.createdAt?t.format(s.createdAt.toDate?s.createdAt.toDate():new Date(s.createdAt),"dd MMMM yyyy"):""}))]}))})),e.jsx("div",Object.assign({className:"mt--8"},{children:e.jsx(l.TitleSmall,{children:s.title})})),e.jsx("div",{dangerouslySetInnerHTML:{__html:s.body},className:"card--desc mt--12"}),e.jsx("div",Object.assign({className:"flex flex--row mt-20 full--width"},{children:e.jsx(i.Button,{buttonText:s.buttonText||"Explore the feature",onClick:()=>(e=>{e.productVideo?(T(e.productVideo),q(!0)):e.redirectUrl&&window.open(e.redirectUrl,"_blank"),f&&f(e)})(s),matchParentWidth:!0,size:"medium"})}))]}),`whats-new-${a}`)))}))})]}),e.jsx(o.VideoModal,{isOpen:M,videoUrl:L,onClose:()=>{q(!1)}})]})):e.jsx(e.Fragment,{})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("date-fns"),s=require("react"),r=require("../../assets/icons/searchIcon.svg.js"),a=require("../../assets/icons/whatsNew.svg.js"),n=require("../../constants/Theme.js"),i=require("../button/Button.js"),o=require("../feature-announcements/VideoModal.js"),d=require("../searchBar/searchBar.js"),c=require("../side-modal/SideModal.js"),l=require("../TypographyStyle.js"),h=require("./WhatsNew.styles.js");exports.WhatsNewPanel=u=>{let{isOpen:j,onClose:m,content:x,isLoading:g=!1,title:p="What's new on BIK",searchPlaceholder:w="Search posts",emptyStateTitle:b="Nothing new!",emptyStateDescription:y="There are no new updates or features at the moment. Check back soon!",noResultsText:C="Sorry, no results found.",width:O="480px",onContentClick:f,renderCustomContent:v}=u;const[N,S]=s.useState(""),[M,q]=s.useState(!1),[B,L]=s.useState(""),T=e=>{if(!e.createdAt)return!1;const s=e.createdAt.toDate?e.createdAt.toDate():new Date(e.createdAt);return t.differenceInBusinessDays(new Date,s)<7},k=s.useMemo((()=>{if(!N.trim())return x;const e=N.toLowerCase();return x.filter((t=>t.title.toLowerCase().includes(e)||t.body.toLowerCase().includes(e)||t.content&&t.content.toLowerCase().includes(e)))}),[x,N]),D=0===x.length,A=0===k.length;return j?e.jsxs(c.SideModal,Object.assign({width:O,onClose:m,header:"",headerCustomComponent:e.jsx(l.TitleMedium,Object.assign({color:n.COLORS.background.inverse},{children:p})),headerStyle:{background:n.COLORS.background.brandLight},hideFooter:!0},{children:[e.jsxs(h.MainContainer,{children:[e.jsx("div",Object.assign({className:"mt-8"},{children:e.jsx(d.SearchBar,{width:"100%",isEnabled:!D,onChange:e=>{S(e)},onEnter:e=>{S(e)},placeholder:w,variant:"default",searchValue:N,onClickCross:()=>{S("")}})})),e.jsx(h.WhatsNewWrapper,{children:D||A?e.jsxs("div",Object.assign({className:"no--data--found"},{children:[e.jsx("div",Object.assign({className:"icon--wrapper"},{children:D?e.jsx(a.default,{width:32,height:32}):e.jsx(r.default,{width:32,height:32})})),D?e.jsxs(e.Fragment,{children:[e.jsx(l.TitleRegular,{children:b}),e.jsx(l.BodyPrimary,Object.assign({color:n.COLORS.content.secondary,className:"text--align",style:{maxWidth:300}},{children:y}))]}):A?e.jsx(l.BodyPrimary,Object.assign({color:n.COLORS.content.secondary,className:"text--align",style:{maxWidth:300}},{children:C})):null]})):e.jsx("div",Object.assign({className:"scroller"},{children:k.map(((s,r)=>{var a;return v?v(s):e.jsxs(h.MainCardContainer,Object.assign({className:"padding--16 mb-mt-8"},{children:[e.jsx(h.BackgroundImageContainer,{imageUrl:s.image,height:"209px",width:"100%",style:{borderRadius:"4px"}}),e.jsx("div",Object.assign({className:"mt-20 full--width"},{children:e.jsxs("div",Object.assign({className:"created--at flex flex--row"},{children:[T(s)?e.jsx("div",Object.assign({className:"new--content--tag"},{children:e.jsx(l.Caption,{children:"New"})})):e.jsx(e.Fragment,{}),e.jsx(l.Caption,Object.assign({style:{color:n.COLORS.content.placeholder}},{children:s.createdAt?t.format(s.createdAt.toDate?s.createdAt.toDate():new Date(s.createdAt),"dd MMMM yyyy"):""}))]}))})),e.jsx("div",Object.assign({className:"mt--8"},{children:e.jsx(l.TitleSmall,{children:s.title})})),e.jsx("div",{dangerouslySetInnerHTML:{__html:s.body},className:"card--desc mt--12"}),e.jsx("div",Object.assign({className:"flex flex--row mt-20 full--width"},{children:e.jsx(i.Button,{buttonText:(null===(a=s.primaryButton)||void 0===a?void 0:a.text)||s.buttonText||"Explore the feature",onClick:()=>(e=>{var t;if(e.productVideo)L(e.productVideo),q(!0);else{const s=(null===(t=e.primaryButton)||void 0===t?void 0:t.redirectionUrl)||e.redirectUrl;s&&window.open(s,"_blank","noopener,noreferrer")}f&&f(e)})(s),matchParentWidth:!0,size:"medium"})}))]}),`whats-new-${r}`)}))}))})]}),e.jsx(o.VideoModal,{isOpen:M,videoUrl:B,onClose:()=>{q(!1)}})]})):e.jsx(e.Fragment,{})};
@@ -101,5 +101,9 @@ export * from './components/dot-pulse';
101
101
  export * from './components/bik-chatbot';
102
102
  export * from './components/banner';
103
103
  export * from './components/feature-announcements';
104
+ export * from './components/post-live-checklist-item';
105
+ export * from './components/post-live-checklist';
106
+ export * from './components/ProgressChecklist';
104
107
  export * from './components/BikGiftedChat';
105
108
  export * from './components/markdown';
109
+ export * from './components/vertical-full-screen-modal';