@bikdotai/bik-component-library 0.0.754 → 0.0.755-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) 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/CheckSquareOffset.svg.js +1 -0
  6. package/dist/cjs/assets/icons/CompletedChecklistIcon.d.ts +3 -0
  7. package/dist/cjs/assets/icons/CompletedChecklistIcon.js +1 -0
  8. package/dist/cjs/assets/icons/CustomiseIcon.d.ts +7 -0
  9. package/dist/cjs/assets/icons/CustomiseIcon.js +1 -0
  10. package/dist/cjs/assets/icons/EnableIcon.d.ts +7 -0
  11. package/dist/cjs/assets/icons/EnableIcon.js +1 -0
  12. package/dist/cjs/assets/icons/GoLiveIcon.d.ts +7 -0
  13. package/dist/cjs/assets/icons/GoLiveIcon.js +1 -0
  14. package/dist/cjs/assets/icons/InactiveChecklistIcon.d.ts +3 -0
  15. package/dist/cjs/assets/icons/InactiveChecklistIcon.js +1 -0
  16. package/dist/cjs/assets/icons/MarketingIcon.d.ts +6 -0
  17. package/dist/cjs/assets/icons/MarketingIcon.js +1 -0
  18. package/dist/cjs/assets/icons/MarketingIconSmall.d.ts +6 -0
  19. package/dist/cjs/assets/icons/MarketingIconSmall.js +1 -0
  20. package/dist/cjs/assets/icons/MarketingIconTab.d.ts +6 -0
  21. package/dist/cjs/assets/icons/MarketingIconTab.js +1 -0
  22. package/dist/cjs/assets/icons/NudgesIcon.d.ts +7 -0
  23. package/dist/cjs/assets/icons/NudgesIcon.js +1 -0
  24. package/dist/cjs/assets/icons/OrderTrackingIcon.d.ts +7 -0
  25. package/dist/cjs/assets/icons/OrderTrackingIcon.js +1 -0
  26. package/dist/cjs/assets/icons/ProgressBadgeIcon.d.ts +3 -0
  27. package/dist/cjs/assets/icons/ProgressBadgeIcon.js +1 -0
  28. package/dist/cjs/assets/icons/ShoppingIcon.d.ts +7 -0
  29. package/dist/cjs/assets/icons/ShoppingIcon.js +1 -0
  30. package/dist/cjs/assets/icons/SmallCheckIcon.d.ts +3 -0
  31. package/dist/cjs/assets/icons/SmallCheckIcon.js +1 -0
  32. package/dist/cjs/assets/icons/SupportIcon.d.ts +7 -0
  33. package/dist/cjs/assets/icons/SupportIcon.js +1 -0
  34. package/dist/cjs/assets/icons/SupportIconSmall.d.ts +6 -0
  35. package/dist/cjs/assets/icons/SupportIconSmall.js +1 -0
  36. package/dist/cjs/assets/icons/SupportIconTab.d.ts +6 -0
  37. package/dist/cjs/assets/icons/SupportIconTab.js +1 -0
  38. package/dist/cjs/assets/icons/TrainingIcon.d.ts +7 -0
  39. package/dist/cjs/assets/icons/TrainingIcon.js +1 -0
  40. package/dist/cjs/assets/icons/actionButton.svg.js +1 -0
  41. package/dist/cjs/assets/icons/alarm.svg.js +1 -0
  42. package/dist/cjs/assets/icons/bik_ai_stars_icon.svg.js +1 -0
  43. package/dist/cjs/assets/icons/brand_home.svg.js +1 -0
  44. package/dist/cjs/assets/icons/chat.svg.js +1 -0
  45. package/dist/cjs/assets/icons/circular-cross-icon.svg.js +1 -0
  46. package/dist/cjs/assets/icons/grid.svg.js +1 -0
  47. package/dist/cjs/assets/icons/home.svg.js +1 -0
  48. package/dist/cjs/assets/icons/hover_home.svg.js +1 -0
  49. package/dist/cjs/assets/icons/index.d.ts +160 -0
  50. package/dist/cjs/assets/icons/list.svg.js +1 -0
  51. package/dist/cjs/assets/icons/paperclip.svg.js +1 -0
  52. package/dist/cjs/assets/icons/pointer.svg.js +1 -0
  53. package/dist/cjs/assets/icons/profile.svg.js +1 -0
  54. package/dist/cjs/assets/icons/retry.svg.js +1 -0
  55. package/dist/cjs/assets/icons/send.svg.js +1 -0
  56. package/dist/cjs/assets/icons/smile_emoji.svg.js +1 -0
  57. package/dist/cjs/assets/icons/video_camcorder.svg.js +1 -0
  58. package/dist/cjs/components/ProgressChecklist/MultiChecklistItem.d.ts +10 -0
  59. package/dist/cjs/components/ProgressChecklist/MultiChecklistItem.js +1 -0
  60. package/dist/cjs/components/ProgressChecklist/ProgressChecklist.d.ts +75 -0
  61. package/dist/cjs/components/ProgressChecklist/ProgressChecklist.js +1 -0
  62. package/dist/cjs/components/ProgressChecklist/ProgressChecklist.style.d.ts +32 -0
  63. package/dist/cjs/components/ProgressChecklist/ProgressChecklist.style.js +133 -0
  64. package/dist/cjs/components/ProgressChecklist/ProgressStepper.d.ts +15 -0
  65. package/dist/cjs/components/ProgressChecklist/ProgressStepper.js +1 -0
  66. package/dist/cjs/components/ProgressChecklist/SimpleChecklistItem.d.ts +21 -0
  67. package/dist/cjs/components/ProgressChecklist/SimpleChecklistItem.js +1 -0
  68. package/dist/cjs/components/ProgressChecklist/index.d.ts +2 -0
  69. package/dist/cjs/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.d.ts +1 -1
  70. package/dist/cjs/components/QueryBuilder/Triggers/EVENTS/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
  71. package/dist/cjs/components/QueryBuilder/Triggers/IG/components/IGTrigger.d.ts +1 -1
  72. package/dist/cjs/components/QueryBuilder/Triggers/IG/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
  73. package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.d.ts +2 -2
  74. package/dist/cjs/components/post-live-checklist/PostLiveChecklist.d.ts +23 -0
  75. package/dist/cjs/components/post-live-checklist/PostLiveChecklist.js +1 -0
  76. package/dist/cjs/components/post-live-checklist/PostLiveChecklist.stories.d.ts +12 -0
  77. package/dist/cjs/components/post-live-checklist/index.d.ts +2 -0
  78. package/dist/cjs/components/post-live-checklist-item/PostLiveChecklistItem.d.ts +10 -0
  79. package/dist/cjs/components/post-live-checklist-item/PostLiveChecklistItem.js +1 -0
  80. package/dist/cjs/components/post-live-checklist-item/index.d.ts +1 -0
  81. package/dist/cjs/index.d.ts +4 -0
  82. package/dist/cjs/index.js +1 -1
  83. package/dist/esm/assets/icons/ActiveChecklistIcon.d.ts +3 -0
  84. package/dist/esm/assets/icons/ActiveChecklistIcon.js +1 -0
  85. package/dist/esm/assets/icons/CheckIndicatorIcon.d.ts +1 -0
  86. package/dist/esm/assets/icons/CheckIndicatorIcon.js +1 -0
  87. package/dist/esm/assets/icons/CheckSquareOffset.svg.js +1 -0
  88. package/dist/esm/assets/icons/CompletedChecklistIcon.d.ts +3 -0
  89. package/dist/esm/assets/icons/CompletedChecklistIcon.js +1 -0
  90. package/dist/esm/assets/icons/CustomiseIcon.d.ts +7 -0
  91. package/dist/esm/assets/icons/CustomiseIcon.js +1 -0
  92. package/dist/esm/assets/icons/EnableIcon.d.ts +7 -0
  93. package/dist/esm/assets/icons/EnableIcon.js +1 -0
  94. package/dist/esm/assets/icons/GoLiveIcon.d.ts +7 -0
  95. package/dist/esm/assets/icons/GoLiveIcon.js +1 -0
  96. package/dist/esm/assets/icons/InactiveChecklistIcon.d.ts +3 -0
  97. package/dist/esm/assets/icons/InactiveChecklistIcon.js +1 -0
  98. package/dist/esm/assets/icons/MarketingIcon.d.ts +6 -0
  99. package/dist/esm/assets/icons/MarketingIcon.js +1 -0
  100. package/dist/esm/assets/icons/MarketingIconSmall.d.ts +6 -0
  101. package/dist/esm/assets/icons/MarketingIconSmall.js +1 -0
  102. package/dist/esm/assets/icons/MarketingIconTab.d.ts +6 -0
  103. package/dist/esm/assets/icons/MarketingIconTab.js +1 -0
  104. package/dist/esm/assets/icons/NudgesIcon.d.ts +7 -0
  105. package/dist/esm/assets/icons/NudgesIcon.js +1 -0
  106. package/dist/esm/assets/icons/OrderTrackingIcon.d.ts +7 -0
  107. package/dist/esm/assets/icons/OrderTrackingIcon.js +1 -0
  108. package/dist/esm/assets/icons/ProgressBadgeIcon.d.ts +3 -0
  109. package/dist/esm/assets/icons/ProgressBadgeIcon.js +1 -0
  110. package/dist/esm/assets/icons/ShoppingIcon.d.ts +7 -0
  111. package/dist/esm/assets/icons/ShoppingIcon.js +1 -0
  112. package/dist/esm/assets/icons/SmallCheckIcon.d.ts +3 -0
  113. package/dist/esm/assets/icons/SmallCheckIcon.js +1 -0
  114. package/dist/esm/assets/icons/SupportIcon.d.ts +7 -0
  115. package/dist/esm/assets/icons/SupportIcon.js +1 -0
  116. package/dist/esm/assets/icons/SupportIconSmall.d.ts +6 -0
  117. package/dist/esm/assets/icons/SupportIconSmall.js +1 -0
  118. package/dist/esm/assets/icons/SupportIconTab.d.ts +6 -0
  119. package/dist/esm/assets/icons/SupportIconTab.js +1 -0
  120. package/dist/esm/assets/icons/TrainingIcon.d.ts +7 -0
  121. package/dist/esm/assets/icons/TrainingIcon.js +1 -0
  122. package/dist/esm/assets/icons/actionButton.svg.js +1 -0
  123. package/dist/esm/assets/icons/alarm.svg.js +1 -0
  124. package/dist/esm/assets/icons/bik_ai_stars_icon.svg.js +1 -0
  125. package/dist/esm/assets/icons/brand_home.svg.js +1 -0
  126. package/dist/esm/assets/icons/chat.svg.js +1 -0
  127. package/dist/esm/assets/icons/circular-cross-icon.svg.js +1 -0
  128. package/dist/esm/assets/icons/grid.svg.js +1 -0
  129. package/dist/esm/assets/icons/home.svg.js +1 -0
  130. package/dist/esm/assets/icons/hover_home.svg.js +1 -0
  131. package/dist/esm/assets/icons/index.d.ts +160 -0
  132. package/dist/esm/assets/icons/list.svg.js +1 -0
  133. package/dist/esm/assets/icons/paperclip.svg.js +1 -0
  134. package/dist/esm/assets/icons/pointer.svg.js +1 -0
  135. package/dist/esm/assets/icons/profile.svg.js +1 -0
  136. package/dist/esm/assets/icons/retry.svg.js +1 -0
  137. package/dist/esm/assets/icons/send.svg.js +1 -0
  138. package/dist/esm/assets/icons/smile_emoji.svg.js +1 -0
  139. package/dist/esm/assets/icons/video_camcorder.svg.js +1 -0
  140. package/dist/esm/components/ProgressChecklist/MultiChecklistItem.d.ts +10 -0
  141. package/dist/esm/components/ProgressChecklist/MultiChecklistItem.js +1 -0
  142. package/dist/esm/components/ProgressChecklist/ProgressChecklist.d.ts +75 -0
  143. package/dist/esm/components/ProgressChecklist/ProgressChecklist.js +1 -0
  144. package/dist/esm/components/ProgressChecklist/ProgressChecklist.style.d.ts +32 -0
  145. package/dist/esm/components/ProgressChecklist/ProgressChecklist.style.js +133 -0
  146. package/dist/esm/components/ProgressChecklist/ProgressStepper.d.ts +15 -0
  147. package/dist/esm/components/ProgressChecklist/ProgressStepper.js +1 -0
  148. package/dist/esm/components/ProgressChecklist/SimpleChecklistItem.d.ts +21 -0
  149. package/dist/esm/components/ProgressChecklist/SimpleChecklistItem.js +1 -0
  150. package/dist/esm/components/ProgressChecklist/index.d.ts +2 -0
  151. package/dist/esm/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.d.ts +1 -1
  152. package/dist/esm/components/QueryBuilder/Triggers/EVENTS/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
  153. package/dist/esm/components/QueryBuilder/Triggers/IG/components/IGTrigger.d.ts +1 -1
  154. package/dist/esm/components/QueryBuilder/Triggers/IG/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
  155. package/dist/esm/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.d.ts +2 -2
  156. package/dist/esm/components/post-live-checklist/PostLiveChecklist.d.ts +23 -0
  157. package/dist/esm/components/post-live-checklist/PostLiveChecklist.js +1 -0
  158. package/dist/esm/components/post-live-checklist/PostLiveChecklist.stories.d.ts +12 -0
  159. package/dist/esm/components/post-live-checklist/index.d.ts +2 -0
  160. package/dist/esm/components/post-live-checklist-item/PostLiveChecklistItem.d.ts +10 -0
  161. package/dist/esm/components/post-live-checklist-item/PostLiveChecklistItem.js +1 -0
  162. package/dist/esm/components/post-live-checklist-item/index.d.ts +1 -0
  163. package/dist/esm/index.d.ts +4 -0
  164. package/dist/esm/index.js +1 -1
  165. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../accordion/Accordion.js"),i=require("./SimpleChecklistItem.js");exports.default=o=>{let{item:t,children:s,isOpen:c,onToggle:d}=o;const n="boolean"==typeof c?c:!!t.isActive,a=e.jsx(i.default,{header:t.header,subheader:t.subheader,icon:t.icon,activeIcon:t.activeIcon,completedIcon:t.completedIcon,isCompleted:t.isCompleted,isActive:t.isActive,tag:t.tag});return e.jsx(r.BikAccordion,Object.assign({header:a,headerStyles:{height:"auto",cursor:"pointer"},onToggleAccordion:d||(()=>{}),isOpen:n,skipHoverHeader:!0,showBorders:!0,borderRadius:"8px"},{children:s?e.jsx("div",Object.assign({style:{border:"none",padding:16}},{children:s})):null}))};
@@ -0,0 +1,75 @@
1
+ import React from 'react';
2
+ import { ALERT_TYPES } from '../alerts';
3
+ import { TooltipProps } from '../tooltips/Tooltip';
4
+ export interface ChecklistItemType {
5
+ id: string;
6
+ label: string;
7
+ description?: string;
8
+ completed?: boolean;
9
+ }
10
+ export interface SingleChecklistItemType {
11
+ id: string;
12
+ header: string;
13
+ subheader: string;
14
+ icon?: React.ReactNode;
15
+ activeIcon?: React.ReactNode;
16
+ completedIcon?: React.ReactNode;
17
+ isActive?: boolean;
18
+ isCompleted?: boolean;
19
+ onSetup?: () => void;
20
+ alertText?: string | React.ReactNode;
21
+ alertType?: ALERT_TYPES;
22
+ tag?: {
23
+ tagText: string | number;
24
+ variant?: 'regular' | 'circle' | 'compressed';
25
+ type?: 'negative' | 'warning' | 'positive' | 'neutral' | 'white' | 'purple' | 'blue' | 'grey' | 'ai';
26
+ theme?: 'light' | 'dark';
27
+ tooltip?: Omit<TooltipProps, 'children'>;
28
+ };
29
+ type: 'single';
30
+ buttonType?: 'primary' | 'secondary' | 'tertiary';
31
+ buttonText?: string;
32
+ buttonDisabled?: boolean;
33
+ hideRedirectButton?: boolean;
34
+ hideSetupButton?: boolean;
35
+ }
36
+ export interface MultiChecklistItemType {
37
+ id: string;
38
+ header: string;
39
+ subheader?: string;
40
+ icon?: React.ReactNode;
41
+ activeIcon?: React.ReactNode;
42
+ completedIcon?: React.ReactNode;
43
+ isActive?: boolean;
44
+ isCompleted?: boolean;
45
+ onSetup?: () => void;
46
+ tag?: {
47
+ tagText: string | number;
48
+ variant?: 'regular' | 'circle' | 'compressed';
49
+ type?: 'negative' | 'warning' | 'positive' | 'neutral' | 'white' | 'purple' | 'blue' | 'grey' | 'ai';
50
+ theme?: 'light' | 'dark';
51
+ tooltip?: Omit<TooltipProps, 'children'>;
52
+ };
53
+ type: 'multiple';
54
+ alertType?: ALERT_TYPES;
55
+ steps?: Array<{
56
+ id?: string;
57
+ text: string;
58
+ onClick?: () => void;
59
+ isCompleted?: boolean;
60
+ }>;
61
+ buttonType?: 'primary' | 'secondary' | 'tertiary';
62
+ }
63
+ export interface ProgressChecklistProps {
64
+ header?: string;
65
+ subheader?: string;
66
+ items?: Array<SingleChecklistItemType | MultiChecklistItemType>;
67
+ progressBarColor?: string;
68
+ headerAction?: React.ReactNode;
69
+ /** Whether to render the progress bar. Defaults to true. */
70
+ showProgressBar?: boolean;
71
+ /** Whether to remove border, border-radius, and padding. Defaults to false. */
72
+ noBorder?: boolean;
73
+ }
74
+ declare const ProgressChecklist: React.FC<ProgressChecklistProps>;
75
+ export default ProgressChecklist;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),s=require("../../constants/Theme.js"),i=require("../../assets/icons/ActiveChecklistIcon.js"),r=require("../../assets/icons/CompletedChecklistIcon.js"),l=require("../../assets/icons/InactiveChecklistIcon.js"),n=require("../../assets/icons/info.svg.js"),o=require("../../assets/icons/SmallCheckIcon.js"),c=require("../alerts/Alert.js"),a=require("../alerts/AlertHelper.js"),d=require("../button/Button.js"),p=require("../progress-bar-v2/ProgressBarV2.js"),g=require("../tag/Tag.js"),u=require("../tooltips/Tooltip.js"),j=require("../TypographyStyle.js"),x=require("./MultiChecklistItem.js"),h=require("./ProgressChecklist.style.js"),C=require("./ProgressStepper.js");exports.default=y=>{let{header:v,subheader:b,items:m=[],progressBarColor:T,headerAction:S,showProgressBar:f=!0,noBorder:O=!1}=y;const[k,I]=t.useState(m);t.useEffect((()=>{I(m)}),[m]);const A=k.filter((e=>e.isCompleted)).length,q=k.length,B=q>0?A/q*100:0;return e.jsxs(h.ProgressChecklistContainer,Object.assign({noBorder:O},{children:[e.jsxs(h.HeaderSection,{children:[e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"}},{children:[e.jsx(j.TitleMedium,{children:v}),S&&e.jsx("div",{children:S})]})),e.jsx(j.BodySecondary,Object.assign({color:s.COLORS.content.secondary},{children:b}))]}),f&&e.jsxs(h.ProgressBarSection,Object.assign({style:{display:"flex",alignItems:"center",gap:"16px"}},{children:[e.jsx("div",Object.assign({style:{flex:1}},{children:e.jsx(p.ProgressBarV2,{progress:Math.round(B),type:p.ProgressBarType.LINE,matchParentWidth:!0,showProgress:!1,color:null!=T?T:s.COLORS.background.positive.vibrant,progressBarThickness:12})})),e.jsx("div",Object.assign({style:{display:"flex",justifyContent:"flex-end",alignItems:"center",minWidth:12}},{children:e.jsxs(j.TitleSmall,Object.assign({style:{color:s.COLORS.content.secondary,textAlign:"right"}},{children:[A," / ",q]}))}))]})),e.jsx("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:"16px"}},{children:k.map((t=>{var s,p,j,y,v,b,m,T;if("single"===t.type)return e.jsxs(h.SingleChecklistItem,Object.assign({isActive:t.isActive||!1},{children:[e.jsxs(h.SingleChecklistMainRow,{children:[e.jsx(h.SingleChecklistIconWrapper,{children:t.isCompleted?null!==(s=t.completedIcon)&&void 0!==s?s:e.jsx(r.CompletedChecklistIcon,{}):t.isActive?null!==(p=t.activeIcon)&&void 0!==p?p:e.jsx(i.ActiveChecklistIcon,{}):null!==(j=t.icon)&&void 0!==j?j:e.jsx(l.InactiveChecklistIcon,{})}),e.jsxs(h.SingleChecklistContent,{children:[e.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",gap:12}},{children:[e.jsx(h.SingleChecklistHeader,Object.assign({completed:!!t.isCompleted,isActive:!!t.isActive},{children:t.header})),(null===(y=t.tag)||void 0===y?void 0:y.tagText)&&(t.tag.tooltip?e.jsx(u.Tooltip,Object.assign({},t.tag.tooltip,{children:e.jsx("span",Object.assign({style:{display:"inline-flex"}},{children:e.jsx(g.Tag,{tagText:t.tag.tagText,variant:t.tag.variant,type:t.tag.type,theme:t.tag.theme})}))})):e.jsx(g.Tag,{tagText:t.tag.tagText,variant:t.tag.variant,type:t.tag.type,theme:t.tag.theme}))]})),e.jsx(h.SingleChecklistSubheader,{children:t.subheader})]}),t.isCompleted&&!t.hideRedirectButton&&e.jsx("div",Object.assign({onClick:t.onSetup,style:{cursor:"pointer"}},{children:e.jsx(o.SmallCheckIcon,{style:{marginLeft:"12px"}})})),!t.isCompleted&&t.isActive&&!t.hideSetupButton&&e.jsx(h.SingleChecklistActionWrapper,{children:e.jsx(d.Button,{buttonText:null!==(v=t.buttonText)&&void 0!==v?v:"Setup",buttonType:null!==(b=t.buttonType)&&void 0!==b?b:"primary",onClick:t.onSetup,disabled:null!==(m=t.buttonDisabled)&&void 0!==m&&m})})]}),t.alertText&&e.jsx(h.SingleChecklistAlertRow,{children:e.jsx(c.Alert,{text:t.alertText,type:null!==(T=t.alertType)&&void 0!==T?T:a.ALERT_TYPES.WARNING,contentPosition:a.CONTENT_POSITION.START,textColor:t.alertType===a.ALERT_TYPES.BRAND?"#4B1583":"",icon:t=>e.jsx(n.default,Object.assign({},t))})})]}),t.id);if("multiple"===t.type){const s=t.steps&&t.steps.length>0?t.steps.map(((e,s)=>{var i;return{id:null!==(i=e.id)&&void 0!==i?i:`${t.id}-sub-${s+1}`,text:e.text,label:e.text,onClick:e.onClick,isCompleted:!!e.isCompleted}})):[{id:`${t.id}-sub-1`,text:"Connect",label:"Connect",isCompleted:!1},{id:`${t.id}-sub-2`,text:"Configure",label:"Configure",isCompleted:!1},{id:`${t.id}-sub-3`,text:"Verify",label:"Verify",isCompleted:!1}];return e.jsx(x.default,Object.assign({item:t},{children:e.jsx(C.default,{steps:s,isStepperActive:t.isActive})}),t.id)}}))}))]}))};
@@ -0,0 +1,32 @@
1
+ export declare const ProgressChecklistContainer: import("styled-components").StyledComponent<"div", any, {
2
+ noBorder?: boolean | undefined;
3
+ }, never>;
4
+ export declare const HeaderSection: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const ProgressBarSection: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const ChecklistItemsSection: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const ChecklistItem: import("styled-components").StyledComponent<"div", any, {
8
+ completed?: boolean | undefined;
9
+ }, never>;
10
+ export declare const ChecklistCheckbox: import("styled-components").StyledComponent<"input", any, {}, never>;
11
+ export declare const ChecklistItemContent: import("styled-components").StyledComponent<"div", any, {}, never>;
12
+ export declare const ChecklistItemText: import("styled-components").StyledComponent<"p", any, {
13
+ completed?: boolean | undefined;
14
+ }, never>;
15
+ export declare const ChecklistItemDescription: import("styled-components").StyledComponent<"p", any, {
16
+ completed?: boolean | undefined;
17
+ }, never>;
18
+ export declare const SingleChecklistItem: import("styled-components").StyledComponent<"div", any, {
19
+ isActive: boolean;
20
+ }, never>;
21
+ export declare const SingleChecklistMainRow: import("styled-components").StyledComponent<"div", any, {}, never>;
22
+ export declare const SingleChecklistIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
23
+ export declare const SingleChecklistContent: import("styled-components").StyledComponent<"div", any, {}, never>;
24
+ export declare const SingleChecklistHeader: import("styled-components").StyledComponent<"div", any, {
25
+ completed?: boolean | undefined;
26
+ isActive?: boolean | undefined;
27
+ }, never>;
28
+ export declare const SingleChecklistSubheader: import("styled-components").StyledComponent<"div", any, {
29
+ isActive?: boolean | undefined;
30
+ }, never>;
31
+ export declare const SingleChecklistActionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
32
+ export declare const SingleChecklistAlertRow: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,133 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components"),t=require("../../constants/Theme.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(e);const o=i.default.div`
2
+ border-radius: ${e=>e.noBorder?"0":"8px"};
3
+ border: ${e=>e.noBorder?"none":"1px solid #e0e0e0"};
4
+ padding: ${e=>e.noBorder?"0":"24px"};
5
+ display: flex;
6
+ flex-direction: column;
7
+ gap: 10px;
8
+ background: ${t.COLORS.surface.standard};
9
+
10
+ .accordion__overview {
11
+ padding: 16px !important;
12
+ border-bottom: none;
13
+ }
14
+ `,n=i.default.div`
15
+ display: flex;
16
+ flex-direction: column;
17
+ gap: 8px;
18
+ `,l=i.default.div`
19
+ display: flex;
20
+ flex-direction: row;
21
+ gap: 12px;
22
+ `;i.default.div`
23
+ display: flex;
24
+ flex-direction: column;
25
+ gap: 16px;
26
+ overflow-y: auto;
27
+ flex: 1;
28
+
29
+ &::-webkit-scrollbar {
30
+ width: 6px;
31
+ }
32
+
33
+ &::-webkit-scrollbar-track {
34
+ background: transparent;
35
+ }
36
+
37
+ &::-webkit-scrollbar-thumb {
38
+ background: ${t.COLORS.stroke.primary};
39
+ border-radius: 3px;
40
+ }
41
+ `,i.default.div`
42
+ display: flex;
43
+ align-items: flex-start;
44
+ gap: 12px;
45
+ padding: 12px;
46
+ background: ${e=>e.completed?"#F0F7F4":t.COLORS.surface.standard};
47
+ border: 1px solid
48
+ ${e=>e.completed?"#D4E9E3":t.COLORS.stroke.primary};
49
+ border-radius: 6px;
50
+ cursor: pointer;
51
+ transition: all 0.2s ease;
52
+
53
+ &:hover {
54
+ background: ${e=>e.completed?"#E8F4F0":t.COLORS.background.base};
55
+ }
56
+ `,i.default.input`
57
+ width: 18px;
58
+ height: 18px;
59
+ margin-top: 2px;
60
+ cursor: pointer;
61
+ flex-shrink: 0;
62
+ `,i.default.div`
63
+ display: flex;
64
+ flex-direction: column;
65
+ gap: 4px;
66
+ flex: 1;
67
+ `,i.default.p`
68
+ margin: 0;
69
+ font-size: 14px;
70
+ font-weight: 500;
71
+ line-height: 20px;
72
+ color: ${e=>e.completed?t.COLORS.content.secondary:t.COLORS.content.primary};
73
+ text-decoration: ${e=>e.completed?"line-through":"none"};
74
+ `,i.default.p`
75
+ margin: 0;
76
+ font-size: 12px;
77
+ font-weight: 400;
78
+ line-height: 16px;
79
+ color: ${t.COLORS.content.secondary};
80
+ opacity: ${e=>e.completed?.6:1};
81
+ `;const a=i.default.div`
82
+ border-radius: 8px;
83
+ border: 1px solid
84
+ ${e=>e.isActive?t.COLORS.stroke.primary:"#E0E0E0"};
85
+ padding: 16px;
86
+ display: flex;
87
+ flex-direction: column;
88
+ gap: 12px;
89
+ background: ${t.COLORS.surface.standard};
90
+ transition: all 0.2s ease;
91
+
92
+ &:hover {
93
+ border-color: ${e=>e.isActive?t.COLORS.stroke.primary:"#D0D0D0"};
94
+ }
95
+ `,d=i.default.div`
96
+ display: flex;
97
+ align-items: center;
98
+ gap: 16px;
99
+ width: 100%;
100
+ `,p=i.default.div`
101
+ display: flex;
102
+ align-items: center;
103
+ justify-content: center;
104
+ flex-shrink: 0;
105
+ `,s=i.default.div`
106
+ display: flex;
107
+ flex-direction: column;
108
+ gap: 4px;
109
+ flex: 1;
110
+ `,c=i.default.div`
111
+ font-size: 16px;
112
+ font-weight: 600;
113
+ line-height: 24px;
114
+ color: ${e=>e.completed?t.COLORS.background.positive.vibrant:e.isActive?t.COLORS.content.primary:t.COLORS.content.placeholder} !important;
115
+ margin: 0;
116
+ display: flex;
117
+ flex-direction: row;
118
+ gap: 12px;
119
+ `,x=i.default.div`
120
+ font-size: 14px;
121
+ font-weight: 400;
122
+ line-height: 20px;
123
+ color: ${e=>e.isActive?t.COLORS.content.secondary:t.COLORS.content.placeholder};
124
+ margin: 0;
125
+ `,f=i.default.div`
126
+ display: flex;
127
+ align-items: center;
128
+ gap: 8px;
129
+ flex-shrink: 0;
130
+ `,u=i.default.div`
131
+ width: 100%;
132
+ margin-top: 8px;
133
+ `;exports.HeaderSection=n,exports.ProgressBarSection=l,exports.ProgressChecklistContainer=o,exports.SingleChecklistActionWrapper=f,exports.SingleChecklistAlertRow=u,exports.SingleChecklistContent=s,exports.SingleChecklistHeader=c,exports.SingleChecklistIconWrapper=p,exports.SingleChecklistItem=a,exports.SingleChecklistMainRow=d,exports.SingleChecklistSubheader=x;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ interface StepItem {
3
+ id?: string;
4
+ text: string;
5
+ label?: string;
6
+ onClick?: () => void;
7
+ isCompleted?: boolean;
8
+ }
9
+ interface ProgressStepperProps {
10
+ steps?: StepItem[];
11
+ onStepClick?: (id: string) => void;
12
+ isStepperActive?: boolean;
13
+ }
14
+ declare const _default: React.NamedExoticComponent<ProgressStepperProps>;
15
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),i=require("../../constants/Theme.js"),l=require("../button/Button.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=n(t);const s=n=>{let{steps:s=[],onStepClick:o,isStepperActive:r}=n;var a,c;const p=s.length>0?s:[{id:"step-1",text:"Step One"},{id:"step-2",text:"Step Two"},{id:"step-3",text:"Step Three"}],[u,x]=t.useState(null!==(c=null===(a=p[0])||void 0===a?void 0:a.id)&&void 0!==c?c:null);return e.jsx("div",Object.assign({style:{paddingLeft:52}},{children:e.jsx("div",Object.assign({style:{margin:0,padding:0,display:"flex",flexDirection:"column",gap:12}},{children:p.map(((t,n)=>{var s,a,c,h,v,g,C;return e.jsxs(d.default.Fragment,{children:[e.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",gap:8}},{children:[(()=>{var i;const l=(0===n||(null===(i=p[n-1])||void 0===i?void 0:i.isCompleted))&&!0===r;return!0===t.isCompleted?e.jsx("div",Object.assign({style:{width:24,height:24,flex:"0 0 24px"},"aria-hidden":!0},{children:e.jsxs("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"11.5",fill:"#EFE6F9"}),e.jsx("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"11.5",stroke:"#4B1583"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8047 7.52851C18.0651 7.78886 18.0651 8.21097 17.8047 8.47132L10.4714 15.8047C10.2111 16.065 9.78894 16.065 9.5286 15.8047L6.19526 12.4713C5.93491 12.211 5.93491 11.7889 6.19526 11.5285C6.45561 11.2682 6.87772 11.2682 7.13807 11.5285L10 14.3904L16.8619 7.52851C17.1223 7.26816 17.5444 7.26816 17.8047 7.52851Z",fill:"#4B1583"})]}))})):e.jsx("div",Object.assign({style:{width:24,height:24,borderRadius:30,padding:4,display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",background:l?"#4B1583":"transparent",color:l?"#FFFFFF":"#BDBDBD",border:"1px solid "+(l?"#4B1583":"#E0E0E0"),fontSize:12,lineHeight:"12px",flex:"0 0 24px"},"aria-hidden":!0},{children:e.jsx("span",Object.assign({style:{fontSize:12,fontWeight:500}},{children:n+1}))}))})(),e.jsx("div",Object.assign({style:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0},"aria-label":`Open ${null!==(a=null!==(s=t.label)&&void 0!==s?s:t.text)&&void 0!==a?a:`step ${n+1}`}`},{children:e.jsx(l.Button,{buttonText:null!==(h=null!==(c=t.label)&&void 0!==c?c:t.text)&&void 0!==h?h:`Step ${n+1}`,buttonType:"text",buttonTextColor:t.isCompleted?i.COLORS.text.secondary:0!==n&&!0!==(null===(v=p[n-1])||void 0===v?void 0:v.isCompleted)||!r?i.COLORS.content.inactive:"#4B1583",matchParentWidth:!1,size:"small",style:{width:"fit-content",paddingLeft:0,textDecoration:"none",textDecorationLine:"none"},onClick:()=>{var e,i;x(null!==(e=t.id)&&void 0!==e?e:u),(!t.isCompleted&&r&&(0===n||!0===(null===(i=p[n-1])||void 0===i?void 0:i.isCompleted))||t.isCompleted)&&(t.onClick?t.onClick():t.id&&(null==o||o(t.id)))}})})),!t.isCompleted&&(0===n||!0===(null===(g=p[n-1])||void 0===g?void 0:g.isCompleted))&&r&&e.jsx("div",Object.assign({style:{width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},"aria-hidden":!0,onClick:e=>{var i,l;x(null!==(i=t.id)&&void 0!==i?i:u),t.isCompleted||!r||0!==n&&!0!==(null===(l=p[n-1])||void 0===l?void 0:l.isCompleted)||(t.onClick?t.onClick():t.id&&(null==o||o(t.id)))}},{children:e.jsx("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.83333 6.66667C5.3731 6.66667 5 6.29357 5 5.83333C5 5.3731 5.3731 5 5.83333 5H14.1667C14.6269 5 15 5.3731 15 5.83333V14.1667C15 14.6269 14.6269 15 14.1667 15C13.7064 15 13.3333 14.6269 13.3333 14.1667V7.84518L6.42259 14.7559C6.09715 15.0814 5.56951 15.0814 5.24408 14.7559C4.91864 14.4305 4.91864 13.9028 5.24408 13.5774L12.1548 6.66667H5.83333Z",fill:"#4B1583"})}))}))]})),n!==p.length-1&&e.jsx("div",{"aria-hidden":!0,style:{width:8,height:1,borderRadius:2,background:"#BDBDBD",transform:"rotate(90deg)",marginLeft:8}})]},null!==(C=t.id)&&void 0!==C?C:`step-${n}`)}))}))}))};var o=d.default.memo(s);exports.default=o;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { TooltipProps } from '../tooltips/Tooltip';
3
+ interface TagProps {
4
+ tagText: string | number;
5
+ variant?: 'regular' | 'circle' | 'compressed';
6
+ type?: 'negative' | 'warning' | 'positive' | 'neutral' | 'white' | 'purple' | 'blue' | 'grey' | 'ai';
7
+ theme?: 'light' | 'dark';
8
+ tooltip?: Omit<TooltipProps, 'children'>;
9
+ }
10
+ interface SimpleChecklistItemProps {
11
+ header: string;
12
+ subheader?: string;
13
+ icon?: React.ReactNode;
14
+ activeIcon?: React.ReactNode;
15
+ completedIcon?: React.ReactNode;
16
+ isActive?: boolean;
17
+ isCompleted?: boolean;
18
+ tag?: TagProps;
19
+ }
20
+ declare const SimpleChecklistItem: React.FC<SimpleChecklistItemProps>;
21
+ export default SimpleChecklistItem;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/ActiveChecklistIcon.js"),s=require("../../assets/icons/CompletedChecklistIcon.js"),i=require("../../assets/icons/InactiveChecklistIcon.js"),l=require("../tag/Tag.js"),c=require("../tooltips/Tooltip.js"),n=require("./ProgressChecklist.style.js");exports.default=r=>{let{header:a,subheader:o,icon:h,activeIcon:j,completedIcon:d,isActive:x,isCompleted:g,tag:p}=r;return e.jsx("div",{children:e.jsxs(n.SingleChecklistMainRow,{children:[e.jsx(n.SingleChecklistIconWrapper,{children:g?null!=d?d:e.jsx(s.CompletedChecklistIcon,{}):x?null!=j?j:e.jsx(t.ActiveChecklistIcon,{}):null!=h?h:e.jsx(i.InactiveChecklistIcon,{})}),e.jsxs(n.SingleChecklistContent,{children:[e.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",gap:12}},{children:[e.jsx(n.SingleChecklistHeader,Object.assign({completed:g,isActive:x},{children:a})),(null==p?void 0:p.tagText)&&(p.tooltip?e.jsx(c.Tooltip,Object.assign({},p.tooltip,{children:e.jsx("span",Object.assign({style:{display:"inline-flex"}},{children:e.jsx(l.Tag,{tagText:p.tagText,variant:p.variant,type:p.type,theme:p.theme})}))})):e.jsx(l.Tag,{tagText:p.tagText,variant:p.variant,type:p.type,theme:p.theme}))]})),o&&e.jsx(n.SingleChecklistSubheader,Object.assign({isActive:x},{children:o}))]})]})})};
@@ -0,0 +1,2 @@
1
+ export { default as ProgressChecklist } from './ProgressChecklist';
2
+ export type { ChecklistItemType } from './ProgressChecklist';
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { QueryBuilderNodeProps } from "../../../types/QueryBuilderNodeProps.type";
2
+ import { QueryBuilderNodeProps } from "../../../Types/QueryBuilderNodeProps.type";
3
3
  declare const EventsTrigger: React.FC<QueryBuilderNodeProps>;
4
4
  export default EventsTrigger;
@@ -1,2 +1,2 @@
1
- import { QueryBuilderAPIData } from "../../../types/QueryBuilderAPI.type";
1
+ import { QueryBuilderAPIData } from "../../../Types/QueryBuilderAPI.type";
2
2
  export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { QueryBuilderNodeProps } from "../../../types/QueryBuilderNodeProps.type";
2
+ import { QueryBuilderNodeProps } from "../../../Types/QueryBuilderNodeProps.type";
3
3
  declare const IGTrigger: React.FC<QueryBuilderNodeProps>;
4
4
  export default IGTrigger;
@@ -1,2 +1,2 @@
1
- import { QueryBuilderAPIData } from "../../../types/QueryBuilderAPI.type";
1
+ import { QueryBuilderAPIData } from "../../../Types/QueryBuilderAPI.type";
2
2
  export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { DropdownOption } from "../../../dropdown/type";
3
- import { QueryBuilderProperty } from "../../types/QueryBuilder.type";
4
- import { QueryBuilderNodeProps } from "../../types/QueryBuilderNodeProps.type";
3
+ import { QueryBuilderProperty } from "../../Types/QueryBuilder.type";
4
+ import { QueryBuilderNodeProps } from "../../Types/QueryBuilderNodeProps.type";
5
5
  declare const BaseTriggerQueryBuilderNode: React.FC<QueryBuilderNodeProps & {
6
6
  cacheKey: string;
7
7
  propertyAddBtnText: string;
@@ -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';
@@ -6,6 +6,7 @@ export { AmplitudeEvent };
6
6
  export { StringUtils };
7
7
  export * from './constants/Theme';
8
8
  export * from './constants/zindex';
9
+ export * from './assets/icons';
9
10
  export * from './components/checkBox';
10
11
  export * from './components/list-item';
11
12
  export * from './components/pagination';
@@ -101,6 +102,9 @@ export * from './components/dot-pulse';
101
102
  export * from './components/bik-chatbot';
102
103
  export * from './components/banner';
103
104
  export * from './components/feature-announcements';
105
+ export * from './components/post-live-checklist-item';
106
+ export * from './components/post-live-checklist';
107
+ export * from './components/ProgressChecklist';
104
108
  export * from './components/BikGiftedChat';
105
109
  export * from './components/markdown';
106
110
  export * from './components/vertical-full-screen-modal';