@bikdotai/bik-component-library 0.0.421 → 0.0.422-beta.1

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 (628) hide show
  1. package/dist/cjs/assets/icons/{drag_handle.svg.js → video_camcorder.svg.js} +1 -1
  2. package/dist/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
  3. package/dist/cjs/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -1
  4. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
  5. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
  6. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
  7. package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js +1 -1
  8. package/dist/cjs/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -1
  9. package/dist/cjs/components/QueryBuilder/constants/connector.d.ts +3 -6
  10. package/dist/cjs/components/QueryBuilder/constants/connector.js +1 -1
  11. package/dist/cjs/components/QueryBuilder/types/QueryBuilder.type.d.ts +1 -2
  12. package/dist/cjs/components/QueryBuilder/types/QueryBuilder.type.js +1 -1
  13. package/dist/cjs/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +0 -1
  14. package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +1 -4
  15. package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
  16. package/dist/cjs/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
  17. package/dist/cjs/components/SearchFilter/components/SearchFilterItem.js +1 -1
  18. package/dist/cjs/components/SearchFilter/types/SearchFilter.type.d.ts +0 -4
  19. package/dist/cjs/components/TablePagination/TablePagination.js +1 -1
  20. package/dist/cjs/components/accordion/Accordion.d.ts +0 -2
  21. package/dist/cjs/components/accordion/Accordion.js +1 -1
  22. package/dist/cjs/components/accordion/Accordion.style.d.ts +0 -1
  23. package/dist/cjs/components/accordion/Accordion.style.js +1 -1
  24. package/dist/cjs/components/add-variableV2/AddVariableV2.d.ts +0 -12
  25. package/dist/cjs/components/add-variableV2/AddVariableV2.js +1 -1
  26. package/dist/cjs/components/add-variableV2/AddVariableV2.styled.d.ts +0 -5
  27. package/dist/cjs/components/add-variableV2/AddVariableV2.styled.js +5 -7
  28. package/dist/cjs/components/add-variableV2/AddVariableV2SideModal.js +1 -1
  29. package/dist/cjs/components/alerts/Alert.d.ts +1 -3
  30. package/dist/cjs/components/alerts/Alert.js +1 -1
  31. package/dist/cjs/components/alerts/Alert.styled.d.ts +1 -2
  32. package/dist/cjs/components/alerts/Alert.styled.js +4 -4
  33. package/dist/cjs/components/alerts/AlertHelper.d.ts +0 -5
  34. package/dist/cjs/components/alerts/AlertHelper.js +1 -1
  35. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
  36. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.d.ts +0 -3
  37. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
  38. package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
  39. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  40. package/dist/cjs/components/avatar/Avatar.js +1 -1
  41. package/dist/cjs/components/bik-layout/BikLayout.d.ts +0 -2
  42. package/dist/cjs/components/bik-layout/BikLayout.js +1 -1
  43. package/dist/cjs/components/bik-layout/BikProfile.js +1 -1
  44. package/dist/cjs/components/bik-layout/BikSidebar.d.ts +0 -4
  45. package/dist/cjs/components/bik-layout/BikSidebar.js +1 -1
  46. package/dist/cjs/components/bik-layout/CommonStyles.d.ts +0 -10
  47. package/dist/cjs/components/bik-layout/CommonStyles.js +1 -1
  48. package/dist/cjs/components/bik-layout/FeatureModal.d.ts +0 -1
  49. package/dist/cjs/components/bik-layout/FeatureModal.js +1 -1
  50. package/dist/cjs/components/bik-layout/MockMenus.d.ts +7 -13
  51. package/dist/cjs/components/bik-layout/SidebarStyles.d.ts +0 -11
  52. package/dist/cjs/components/bik-layout/SidebarStyles.js +1 -1
  53. package/dist/cjs/components/bik-layout/SimpleSidebar.d.ts +0 -1
  54. package/dist/cjs/components/bik-layout/index.d.ts +0 -2
  55. package/dist/cjs/components/button/Button.js +1 -1
  56. package/dist/cjs/components/button/Button.styled.d.ts +0 -1
  57. package/dist/cjs/components/button/Button.styled.js +1 -1
  58. package/dist/cjs/components/button/model.d.ts +1 -2
  59. package/dist/cjs/components/button/themes.d.ts +2 -3
  60. package/dist/cjs/components/button/themes.js +1 -1
  61. package/dist/cjs/components/carousel-secondary/CarouselSecondary.js +1 -1
  62. package/dist/cjs/components/colourInput/ColourInput.js +1 -1
  63. package/dist/cjs/components/custom-date-time/CustomDateTime.js +1 -1
  64. package/dist/cjs/components/datePicker/DatePicker.js +1 -1
  65. package/dist/cjs/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
  66. package/dist/cjs/components/discount-modal/DiscountModal.d.ts +0 -9
  67. package/dist/cjs/components/discount-modal/DiscountModal.js +1 -1
  68. package/dist/cjs/components/discount-modal/DiscountUtils.d.ts +0 -2
  69. package/dist/cjs/components/discount-modal/DiscountUtils.js +1 -1
  70. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.d.ts +5 -7
  71. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
  72. package/dist/cjs/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
  73. package/dist/cjs/components/discount-modal/type.d.ts +2 -11
  74. package/dist/cjs/components/discount-modal/type.js +1 -1
  75. package/dist/cjs/components/dropdown/ChipDropdown.js +1 -1
  76. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
  77. package/dist/cjs/components/dropdown/type.d.ts +0 -1
  78. package/dist/cjs/components/input/Input.d.ts +0 -1
  79. package/dist/cjs/components/input/Input.js +1 -1
  80. package/dist/cjs/components/input/Input.styled.d.ts +0 -6
  81. package/dist/cjs/components/input/Input.styled.js +1 -1
  82. package/dist/cjs/components/input-with-vars/InputWithVariables.d.ts +5 -16
  83. package/dist/cjs/components/input-with-vars/InputWithVariables.js +6 -6
  84. package/dist/cjs/components/modals/Modal.d.ts +0 -1
  85. package/dist/cjs/components/modals/Modal.js +1 -1
  86. package/dist/cjs/components/modals/styledModal.d.ts +0 -1
  87. package/dist/cjs/components/modals/styledModal.js +1 -1
  88. package/dist/cjs/components/plans/SubscriptionPlan.d.ts +2 -3
  89. package/dist/cjs/components/plans/SubscriptionPlan.js +1 -1
  90. package/dist/cjs/components/plans/SubscriptionPlanSelector.js +1 -1
  91. package/dist/cjs/components/plans/SubscriptionPlanStyled.d.ts +0 -7
  92. package/dist/cjs/components/plans/SubscriptionPlanStyled.js +1 -1
  93. package/dist/cjs/components/plans/index.d.ts +0 -2
  94. package/dist/cjs/components/postPicker/postPicker.js +1 -1
  95. package/dist/cjs/components/product-picker-v2/collectionScreen.d.ts +0 -2
  96. package/dist/cjs/components/product-picker-v2/collectionScreen.js +1 -1
  97. package/dist/cjs/components/product-picker-v2/modal.d.ts +3 -31
  98. package/dist/cjs/components/product-picker-v2/modal.js +1 -1
  99. package/dist/cjs/components/product-picker-v2/productScreen.d.ts +1 -13
  100. package/dist/cjs/components/product-picker-v2/productScreen.js +1 -1
  101. package/dist/cjs/components/product-picker-v2/searchScreen.d.ts +0 -4
  102. package/dist/cjs/components/product-picker-v2/searchScreen.js +1 -1
  103. package/dist/cjs/components/product-picker-v2/style.d.ts +0 -5
  104. package/dist/cjs/components/product-picker-v2/style.js +13 -53
  105. package/dist/cjs/components/shimmer-image/ShimmerImage.d.ts +1 -2
  106. package/dist/cjs/components/shimmer-image/ShimmerImage.js +1 -1
  107. package/dist/cjs/components/side-modal/SideModal.d.ts +2 -4
  108. package/dist/cjs/components/side-modal/SideModal.js +1 -1
  109. package/dist/cjs/components/side-modal/SideModal.style.d.ts +1 -4
  110. package/dist/cjs/components/side-modal/SideModal.style.js +1 -4
  111. package/dist/cjs/components/star-rating/Star.d.ts +0 -1
  112. package/dist/cjs/components/star-rating/Star.js +1 -1
  113. package/dist/cjs/components/star-rating/StarRating.d.ts +0 -1
  114. package/dist/cjs/components/star-rating/StarRating.js +1 -1
  115. package/dist/cjs/components/tag/Tag.styled.js +1 -1
  116. package/dist/cjs/components/template-context-mapper/TemplateContextMapper.d.ts +3 -11
  117. package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -1
  118. package/dist/cjs/components/template-context-mapper/context/templateModalContext.d.ts +1 -9
  119. package/dist/cjs/components/template-context-mapper/context/templateModalContext.js +1 -1
  120. package/dist/cjs/components/template-context-mapper/modalElements/Body.d.ts +0 -4
  121. package/dist/cjs/components/template-context-mapper/modalElements/Body.js +7 -6
  122. package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.d.ts +0 -1
  123. package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js +4 -4
  124. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.d.ts +0 -4
  125. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.js +2 -2
  126. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.d.ts +0 -2
  127. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.js +1 -1
  128. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +1 -4
  129. package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
  130. package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.d.ts +0 -1
  131. package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +4 -4
  132. package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +1 -5
  133. package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
  134. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.d.ts +2 -6
  135. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +3 -3
  136. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
  137. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.d.ts +1 -4
  138. package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +2 -25
  139. package/dist/cjs/components/template-context-mapper/modalElements/VariableEditorHeader.js +1 -1
  140. package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.d.ts +1 -4
  141. package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  142. package/dist/cjs/components/template-context-mapper/utils/getDataFromTemplateComponent.js +1 -1
  143. package/dist/cjs/components/template-preview/EmailTemplatePreview.styled.js +0 -1
  144. package/dist/cjs/components/template-preview/SmsTemplatePreview.js +1 -1
  145. package/dist/cjs/components/template-preview/TemplatePreview.d.ts +1 -2
  146. package/dist/cjs/components/template-preview/TemplatePreview.js +1 -1
  147. package/dist/cjs/components/template-preview/WhatsApp/ChatUI.style.js +5 -5
  148. package/dist/cjs/components/template-preview/WhatsApp/ChatUiV2.js +5 -5
  149. package/dist/cjs/components/template-preview/WhatsApp/MediaCard.js +1 -1
  150. package/dist/cjs/components/template-preview/WhatsAppTemplatePreview.d.ts +0 -1
  151. package/dist/cjs/components/template-preview/WhatsAppTemplatePreview.js +1 -1
  152. package/dist/cjs/components/template-preview/constants/regexPatterns.js +1 -1
  153. package/dist/cjs/components/template-preview/helpers/TemplateCreatorHelper.d.ts +1 -13
  154. package/dist/cjs/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
  155. package/dist/cjs/components/template-preview/index.d.ts +0 -1
  156. package/dist/cjs/components/template-preview/models/TemplateMeta.d.ts +1 -1
  157. package/dist/cjs/components/template-preview/models/WhatsAppTemplate.d.ts +3 -46
  158. package/dist/cjs/components/template-preview/models/WhatsAppTemplate.js +1 -1
  159. package/dist/cjs/components/tooltips/Tooltip.js +1 -1
  160. package/dist/cjs/components/tooltips/TooltipInternal.d.ts +0 -1
  161. package/dist/cjs/components/tooltips/TooltipInternal.js +1 -1
  162. package/dist/cjs/constants/Theme.d.ts +0 -25
  163. package/dist/cjs/constants/Theme.js +1 -1
  164. package/dist/cjs/index.d.ts +0 -2
  165. package/dist/cjs/index.js +1 -1
  166. package/dist/esm/assets/icons/video_camcorder.svg.js +1 -0
  167. package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
  168. package/dist/esm/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -1
  169. package/dist/esm/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
  170. package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
  171. package/dist/esm/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
  172. package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js +1 -1
  173. package/dist/esm/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -1
  174. package/dist/esm/components/QueryBuilder/constants/connector.d.ts +3 -6
  175. package/dist/esm/components/QueryBuilder/constants/connector.js +1 -1
  176. package/dist/esm/components/QueryBuilder/types/QueryBuilder.type.d.ts +1 -2
  177. package/dist/esm/components/QueryBuilder/types/QueryBuilder.type.js +1 -1
  178. package/dist/esm/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +0 -1
  179. package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +1 -4
  180. package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
  181. package/dist/esm/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
  182. package/dist/esm/components/SearchFilter/components/SearchFilterItem.js +1 -1
  183. package/dist/esm/components/SearchFilter/types/SearchFilter.type.d.ts +0 -4
  184. package/dist/esm/components/TablePagination/TablePagination.js +1 -1
  185. package/dist/esm/components/accordion/Accordion.d.ts +0 -2
  186. package/dist/esm/components/accordion/Accordion.js +1 -1
  187. package/dist/esm/components/accordion/Accordion.style.d.ts +0 -1
  188. package/dist/esm/components/accordion/Accordion.style.js +1 -1
  189. package/dist/esm/components/add-variableV2/AddVariableV2.d.ts +0 -12
  190. package/dist/esm/components/add-variableV2/AddVariableV2.js +1 -1
  191. package/dist/esm/components/add-variableV2/AddVariableV2.styled.d.ts +0 -5
  192. package/dist/esm/components/add-variableV2/AddVariableV2.styled.js +5 -7
  193. package/dist/esm/components/add-variableV2/AddVariableV2SideModal.js +1 -1
  194. package/dist/esm/components/alerts/Alert.d.ts +1 -3
  195. package/dist/esm/components/alerts/Alert.js +1 -1
  196. package/dist/esm/components/alerts/Alert.styled.d.ts +1 -2
  197. package/dist/esm/components/alerts/Alert.styled.js +5 -5
  198. package/dist/esm/components/alerts/AlertHelper.d.ts +0 -5
  199. package/dist/esm/components/alerts/AlertHelper.js +1 -1
  200. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
  201. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.d.ts +0 -3
  202. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
  203. package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
  204. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  205. package/dist/esm/components/avatar/Avatar.js +1 -1
  206. package/dist/esm/components/bik-layout/BikLayout.d.ts +0 -2
  207. package/dist/esm/components/bik-layout/BikLayout.js +1 -1
  208. package/dist/esm/components/bik-layout/BikProfile.js +1 -1
  209. package/dist/esm/components/bik-layout/BikSidebar.d.ts +0 -4
  210. package/dist/esm/components/bik-layout/BikSidebar.js +1 -1
  211. package/dist/esm/components/bik-layout/CommonStyles.d.ts +0 -10
  212. package/dist/esm/components/bik-layout/CommonStyles.js +1 -1
  213. package/dist/esm/components/bik-layout/FeatureModal.d.ts +0 -1
  214. package/dist/esm/components/bik-layout/FeatureModal.js +1 -1
  215. package/dist/esm/components/bik-layout/MockMenus.d.ts +7 -13
  216. package/dist/esm/components/bik-layout/SidebarStyles.d.ts +0 -11
  217. package/dist/esm/components/bik-layout/SidebarStyles.js +1 -1
  218. package/dist/esm/components/bik-layout/SimpleSidebar.d.ts +0 -1
  219. package/dist/esm/components/bik-layout/index.d.ts +0 -2
  220. package/dist/esm/components/button/Button.js +1 -1
  221. package/dist/esm/components/button/Button.styled.d.ts +0 -1
  222. package/dist/esm/components/button/Button.styled.js +1 -1
  223. package/dist/esm/components/button/model.d.ts +1 -2
  224. package/dist/esm/components/button/themes.d.ts +2 -3
  225. package/dist/esm/components/button/themes.js +1 -1
  226. package/dist/esm/components/carousel-secondary/CarouselSecondary.js +1 -1
  227. package/dist/esm/components/colourInput/ColourInput.js +1 -1
  228. package/dist/esm/components/custom-date-time/CustomDateTime.js +1 -1
  229. package/dist/esm/components/datePicker/DatePicker.js +1 -1
  230. package/dist/esm/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
  231. package/dist/esm/components/discount-modal/DiscountModal.d.ts +0 -9
  232. package/dist/esm/components/discount-modal/DiscountModal.js +1 -1
  233. package/dist/esm/components/discount-modal/DiscountUtils.d.ts +0 -2
  234. package/dist/esm/components/discount-modal/DiscountUtils.js +1 -1
  235. package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.d.ts +5 -7
  236. package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
  237. package/dist/esm/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
  238. package/dist/esm/components/discount-modal/type.d.ts +2 -11
  239. package/dist/esm/components/discount-modal/type.js +1 -1
  240. package/dist/esm/components/dropdown/ChipDropdown.js +1 -1
  241. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
  242. package/dist/esm/components/dropdown/type.d.ts +0 -1
  243. package/dist/esm/components/input/Input.d.ts +0 -1
  244. package/dist/esm/components/input/Input.js +1 -1
  245. package/dist/esm/components/input/Input.styled.d.ts +0 -6
  246. package/dist/esm/components/input/Input.styled.js +1 -1
  247. package/dist/esm/components/input-with-vars/InputWithVariables.d.ts +5 -16
  248. package/dist/esm/components/input-with-vars/InputWithVariables.js +6 -6
  249. package/dist/esm/components/modals/Modal.d.ts +0 -1
  250. package/dist/esm/components/modals/Modal.js +1 -1
  251. package/dist/esm/components/modals/styledModal.d.ts +0 -1
  252. package/dist/esm/components/modals/styledModal.js +1 -1
  253. package/dist/esm/components/plans/SubscriptionPlan.d.ts +2 -3
  254. package/dist/esm/components/plans/SubscriptionPlan.js +1 -1
  255. package/dist/esm/components/plans/SubscriptionPlanSelector.js +1 -1
  256. package/dist/esm/components/plans/SubscriptionPlanStyled.d.ts +0 -7
  257. package/dist/esm/components/plans/SubscriptionPlanStyled.js +1 -1
  258. package/dist/esm/components/plans/index.d.ts +0 -2
  259. package/dist/esm/components/postPicker/postPicker.js +1 -1
  260. package/dist/esm/components/product-picker-v2/collectionScreen.d.ts +0 -2
  261. package/dist/esm/components/product-picker-v2/collectionScreen.js +1 -1
  262. package/dist/esm/components/product-picker-v2/modal.d.ts +3 -31
  263. package/dist/esm/components/product-picker-v2/modal.js +1 -1
  264. package/dist/esm/components/product-picker-v2/productScreen.d.ts +1 -13
  265. package/dist/esm/components/product-picker-v2/productScreen.js +1 -1
  266. package/dist/esm/components/product-picker-v2/searchScreen.d.ts +0 -4
  267. package/dist/esm/components/product-picker-v2/searchScreen.js +1 -1
  268. package/dist/esm/components/product-picker-v2/style.d.ts +0 -5
  269. package/dist/esm/components/product-picker-v2/style.js +7 -47
  270. package/dist/esm/components/shimmer-image/ShimmerImage.d.ts +1 -2
  271. package/dist/esm/components/shimmer-image/ShimmerImage.js +1 -1
  272. package/dist/esm/components/side-modal/SideModal.d.ts +2 -4
  273. package/dist/esm/components/side-modal/SideModal.js +1 -1
  274. package/dist/esm/components/side-modal/SideModal.style.d.ts +1 -4
  275. package/dist/esm/components/side-modal/SideModal.style.js +12 -15
  276. package/dist/esm/components/star-rating/Star.d.ts +0 -1
  277. package/dist/esm/components/star-rating/Star.js +1 -1
  278. package/dist/esm/components/star-rating/StarRating.d.ts +0 -1
  279. package/dist/esm/components/star-rating/StarRating.js +1 -1
  280. package/dist/esm/components/tag/Tag.styled.js +1 -1
  281. package/dist/esm/components/template-context-mapper/TemplateContextMapper.d.ts +3 -11
  282. package/dist/esm/components/template-context-mapper/TemplateContextMapper.js +1 -1
  283. package/dist/esm/components/template-context-mapper/context/templateModalContext.d.ts +1 -9
  284. package/dist/esm/components/template-context-mapper/context/templateModalContext.js +1 -1
  285. package/dist/esm/components/template-context-mapper/modalElements/Body.d.ts +0 -4
  286. package/dist/esm/components/template-context-mapper/modalElements/Body.js +6 -5
  287. package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.d.ts +0 -1
  288. package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.js +7 -7
  289. package/dist/esm/components/template-context-mapper/modalElements/EditMediaV2.d.ts +0 -4
  290. package/dist/esm/components/template-context-mapper/modalElements/EditMediaV2.js +2 -2
  291. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.d.ts +0 -2
  292. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.js +1 -1
  293. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +1 -4
  294. package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
  295. package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.d.ts +0 -1
  296. package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js +4 -4
  297. package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +1 -5
  298. package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
  299. package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.d.ts +2 -6
  300. package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js +3 -3
  301. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
  302. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.d.ts +1 -4
  303. package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +2 -25
  304. package/dist/esm/components/template-context-mapper/modalElements/VariableEditorHeader.js +1 -1
  305. package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.d.ts +1 -4
  306. package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
  307. package/dist/esm/components/template-context-mapper/utils/getDataFromTemplateComponent.js +1 -1
  308. package/dist/esm/components/template-preview/EmailTemplatePreview.styled.js +5 -6
  309. package/dist/esm/components/template-preview/SmsTemplatePreview.js +1 -1
  310. package/dist/esm/components/template-preview/TemplatePreview.d.ts +1 -2
  311. package/dist/esm/components/template-preview/TemplatePreview.js +1 -1
  312. package/dist/esm/components/template-preview/WhatsApp/ChatUI.style.js +1 -1
  313. package/dist/esm/components/template-preview/WhatsApp/ChatUiV2.js +5 -5
  314. package/dist/esm/components/template-preview/WhatsApp/MediaCard.js +1 -1
  315. package/dist/esm/components/template-preview/WhatsAppTemplatePreview.d.ts +0 -1
  316. package/dist/esm/components/template-preview/WhatsAppTemplatePreview.js +1 -1
  317. package/dist/esm/components/template-preview/constants/regexPatterns.js +1 -1
  318. package/dist/esm/components/template-preview/helpers/TemplateCreatorHelper.d.ts +1 -13
  319. package/dist/esm/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
  320. package/dist/esm/components/template-preview/index.d.ts +0 -1
  321. package/dist/esm/components/template-preview/models/TemplateMeta.d.ts +1 -1
  322. package/dist/esm/components/template-preview/models/WhatsAppTemplate.d.ts +3 -46
  323. package/dist/esm/components/template-preview/models/WhatsAppTemplate.js +1 -1
  324. package/dist/esm/components/tooltips/Tooltip.js +1 -1
  325. package/dist/esm/components/tooltips/TooltipInternal.d.ts +0 -1
  326. package/dist/esm/components/tooltips/TooltipInternal.js +1 -1
  327. package/dist/esm/constants/Theme.d.ts +0 -25
  328. package/dist/esm/constants/Theme.js +1 -1
  329. package/dist/esm/index.d.ts +0 -2
  330. package/dist/esm/index.js +1 -1
  331. package/package.json +4 -6
  332. package/dist/cjs/_virtual/index.js +0 -1
  333. package/dist/cjs/_virtual/index2.js +0 -1
  334. package/dist/cjs/_virtual/index3.js +0 -1
  335. package/dist/cjs/_virtual/react-is.development.js +0 -1
  336. package/dist/cjs/_virtual/react-is.development2.js +0 -1
  337. package/dist/cjs/_virtual/react-is.production.min.js +0 -1
  338. package/dist/cjs/_virtual/react-is.production.min2.js +0 -1
  339. package/dist/cjs/assets/icons/WhiteStarFilled.svg.js +0 -1
  340. package/dist/cjs/assets/icons/checkCircle.svg.js +0 -1
  341. package/dist/cjs/assets/icons/copy-code-icon.svg.js +0 -1
  342. package/dist/cjs/assets/icons/lto_icon.svg.js +0 -1
  343. package/dist/cjs/assets/icons/quotes.svg.js +0 -1
  344. package/dist/cjs/components/SearchFilter/components/DateRangeOnlyButton.d.ts +0 -7
  345. package/dist/cjs/components/SearchFilter/components/DateRangeOnlyButton.js +0 -1
  346. package/dist/cjs/components/bik-layout/FeatureModalV2.d.ts +0 -12
  347. package/dist/cjs/components/bik-layout/FeatureModalV2.js +0 -1
  348. package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.d.ts +0 -13
  349. package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.js +0 -1
  350. package/dist/cjs/components/bik-layout/SidebarPopup.d.ts +0 -12
  351. package/dist/cjs/components/bik-layout/SidebarPopup.js +0 -1
  352. package/dist/cjs/components/plans/NewSubscriptionPlan.d.ts +0 -18
  353. package/dist/cjs/components/plans/NewSubscriptionPlan.js +0 -1
  354. package/dist/cjs/components/plans/SubscriptionPlansCollected.d.ts +0 -14
  355. package/dist/cjs/components/plans/SubscriptionPlansCollected.js +0 -6
  356. package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.d.ts +0 -45
  357. package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.js +0 -1
  358. package/dist/cjs/components/product-picker-v2/rearrangeScreen.d.ts +0 -18
  359. package/dist/cjs/components/product-picker-v2/rearrangeScreen.js +0 -1
  360. package/dist/cjs/components/product-picker-v2/type.d.ts +0 -6
  361. package/dist/cjs/components/product-picker-v2/type.js +0 -1
  362. package/dist/cjs/components/product-picker-v2/variant.d.ts +0 -32
  363. package/dist/cjs/components/product-picker-v2/variant.js +0 -1
  364. package/dist/cjs/components/product-picker-v2/variantComponents.d.ts +0 -21
  365. package/dist/cjs/components/product-picker-v2/variantComponents.js +0 -1
  366. package/dist/cjs/components/slider/index.d.ts +0 -1
  367. package/dist/cjs/components/slider/slider.d.ts +0 -10
  368. package/dist/cjs/components/slider/slider.js +0 -1
  369. package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.d.ts +0 -12
  370. package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +0 -1
  371. package/dist/cjs/components/template-context-mapper/modalElements/BackTrackComponent.d.ts +0 -4
  372. package/dist/cjs/components/template-context-mapper/modalElements/BackTrackComponent.js +0 -1
  373. package/dist/cjs/components/template-context-mapper/modalElements/DiscountCodeComponent.d.ts +0 -6
  374. package/dist/cjs/components/template-context-mapper/modalElements/DiscountCodeComponent.js +0 -1
  375. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.d.ts +0 -11
  376. package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.js +0 -1
  377. package/dist/cjs/components/template-context-mapper/utils/getPreviewDimension.d.ts +0 -2
  378. package/dist/cjs/components/template-context-mapper/utils/getPreviewDimension.js +0 -1
  379. package/dist/cjs/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.d.ts +0 -9
  380. package/dist/cjs/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.js +0 -20
  381. package/dist/cjs/components/testimonial-card/TestimonialCard.d.ts +0 -14
  382. package/dist/cjs/components/testimonial-card/TestimonialCard.js +0 -1
  383. package/dist/cjs/components/testimonial-card/TestimonialCard.style.d.ts +0 -16
  384. package/dist/cjs/components/testimonial-card/TestimonialCard.style.js +0 -1
  385. package/dist/cjs/components/testimonial-card/index.d.ts +0 -1
  386. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -1
  387. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -1
  388. package/dist/cjs/node_modules/@mui/base/node_modules/clsx/dist/clsx.mjs.js +0 -1
  389. package/dist/cjs/node_modules/@mui/base/useSlider/useSlider.js +0 -1
  390. package/dist/cjs/node_modules/@mui/base/utils/appendOwnerState.js +0 -1
  391. package/dist/cjs/node_modules/@mui/base/utils/areArraysEqual.js +0 -1
  392. package/dist/cjs/node_modules/@mui/base/utils/extractEventHandlers.js +0 -1
  393. package/dist/cjs/node_modules/@mui/base/utils/isHostComponent.js +0 -1
  394. package/dist/cjs/node_modules/@mui/base/utils/mergeSlotProps.js +0 -1
  395. package/dist/cjs/node_modules/@mui/base/utils/omitEventHandlers.js +0 -1
  396. package/dist/cjs/node_modules/@mui/base/utils/resolveComponentProps.js +0 -1
  397. package/dist/cjs/node_modules/@mui/base/utils/useSlotProps.js +0 -1
  398. package/dist/cjs/node_modules/@mui/material/Slider/Slider.js +0 -1
  399. package/dist/cjs/node_modules/@mui/material/Slider/SliderValueLabel.js +0 -1
  400. package/dist/cjs/node_modules/@mui/material/Slider/sliderClasses.js +0 -1
  401. package/dist/cjs/node_modules/@mui/material/colors/blue.js +0 -1
  402. package/dist/cjs/node_modules/@mui/material/colors/common.js +0 -1
  403. package/dist/cjs/node_modules/@mui/material/colors/green.js +0 -1
  404. package/dist/cjs/node_modules/@mui/material/colors/grey.js +0 -1
  405. package/dist/cjs/node_modules/@mui/material/colors/lightBlue.js +0 -1
  406. package/dist/cjs/node_modules/@mui/material/colors/orange.js +0 -1
  407. package/dist/cjs/node_modules/@mui/material/colors/purple.js +0 -1
  408. package/dist/cjs/node_modules/@mui/material/colors/red.js +0 -1
  409. package/dist/cjs/node_modules/@mui/material/node_modules/clsx/dist/clsx.mjs.js +0 -1
  410. package/dist/cjs/node_modules/@mui/material/styles/createMixins.js +0 -1
  411. package/dist/cjs/node_modules/@mui/material/styles/createPalette.js +0 -1
  412. package/dist/cjs/node_modules/@mui/material/styles/createTheme.js +0 -1
  413. package/dist/cjs/node_modules/@mui/material/styles/createTransitions.js +0 -1
  414. package/dist/cjs/node_modules/@mui/material/styles/createTypography.js +0 -1
  415. package/dist/cjs/node_modules/@mui/material/styles/defaultTheme.js +0 -1
  416. package/dist/cjs/node_modules/@mui/material/styles/identifier.js +0 -1
  417. package/dist/cjs/node_modules/@mui/material/styles/shadows.js +0 -1
  418. package/dist/cjs/node_modules/@mui/material/styles/styled.js +0 -1
  419. package/dist/cjs/node_modules/@mui/material/styles/useTheme.js +0 -1
  420. package/dist/cjs/node_modules/@mui/material/styles/useThemeProps.js +0 -1
  421. package/dist/cjs/node_modules/@mui/material/styles/zIndex.js +0 -1
  422. package/dist/cjs/node_modules/@mui/material/utils/capitalize.js +0 -1
  423. package/dist/cjs/node_modules/@mui/material/utils/shouldSpreadAdditionalProps.js +0 -1
  424. package/dist/cjs/node_modules/@mui/styled-engine/index.js +0 -8
  425. package/dist/cjs/node_modules/@mui/system/esm/borders.js +0 -1
  426. package/dist/cjs/node_modules/@mui/system/esm/breakpoints.js +0 -1
  427. package/dist/cjs/node_modules/@mui/system/esm/colorManipulator.js +0 -1
  428. package/dist/cjs/node_modules/@mui/system/esm/compose.js +0 -1
  429. package/dist/cjs/node_modules/@mui/system/esm/createStyled.js +0 -1
  430. package/dist/cjs/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +0 -1
  431. package/dist/cjs/node_modules/@mui/system/esm/createTheme/createSpacing.js +0 -1
  432. package/dist/cjs/node_modules/@mui/system/esm/createTheme/createTheme.js +0 -1
  433. package/dist/cjs/node_modules/@mui/system/esm/createTheme/shape.js +0 -1
  434. package/dist/cjs/node_modules/@mui/system/esm/cssGrid.js +0 -1
  435. package/dist/cjs/node_modules/@mui/system/esm/memoize.js +0 -1
  436. package/dist/cjs/node_modules/@mui/system/esm/merge.js +0 -1
  437. package/dist/cjs/node_modules/@mui/system/esm/palette.js +0 -1
  438. package/dist/cjs/node_modules/@mui/system/esm/propsToClassKey.js +0 -1
  439. package/dist/cjs/node_modules/@mui/system/esm/responsivePropType.js +0 -1
  440. package/dist/cjs/node_modules/@mui/system/esm/sizing.js +0 -1
  441. package/dist/cjs/node_modules/@mui/system/esm/spacing.js +0 -1
  442. package/dist/cjs/node_modules/@mui/system/esm/style.js +0 -1
  443. package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +0 -1
  444. package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +0 -1
  445. package/dist/cjs/node_modules/@mui/system/esm/useTheme.js +0 -1
  446. package/dist/cjs/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +0 -1
  447. package/dist/cjs/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js +0 -1
  448. package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault.js +0 -1
  449. package/dist/cjs/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +0 -1
  450. package/dist/cjs/node_modules/@mui/utils/esm/capitalize/capitalize.js +0 -1
  451. package/dist/cjs/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +0 -1
  452. package/dist/cjs/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +0 -1
  453. package/dist/cjs/node_modules/@mui/utils/esm/deepmerge.js +0 -1
  454. package/dist/cjs/node_modules/@mui/utils/esm/formatMuiErrorMessage.js +0 -1
  455. package/dist/cjs/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +0 -1
  456. package/dist/cjs/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +0 -1
  457. package/dist/cjs/node_modules/@mui/utils/esm/getDisplayName.js +0 -1
  458. package/dist/cjs/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +0 -1
  459. package/dist/cjs/node_modules/@mui/utils/esm/resolveProps.js +0 -1
  460. package/dist/cjs/node_modules/@mui/utils/esm/setRef.js +0 -1
  461. package/dist/cjs/node_modules/@mui/utils/esm/useControlled/useControlled.js +0 -1
  462. package/dist/cjs/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +0 -1
  463. package/dist/cjs/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +0 -1
  464. package/dist/cjs/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +0 -1
  465. package/dist/cjs/node_modules/@mui/utils/esm/useIsFocusVisible.js +0 -1
  466. package/dist/cjs/node_modules/@mui/utils/esm/visuallyHidden.js +0 -1
  467. package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +0 -10
  468. package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js +0 -10
  469. package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/index.js +0 -1
  470. package/dist/cjs/node_modules/object-assign/index.js +0 -7
  471. package/dist/cjs/node_modules/prop-types/checkPropTypes.js +0 -1
  472. package/dist/cjs/node_modules/prop-types/factoryWithThrowingShims.js +0 -1
  473. package/dist/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +0 -1
  474. package/dist/cjs/node_modules/prop-types/index.js +0 -1
  475. package/dist/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -1
  476. package/dist/cjs/node_modules/prop-types/lib/has.js +0 -1
  477. package/dist/cjs/node_modules/react-is/cjs/react-is.development.js +0 -9
  478. package/dist/cjs/node_modules/react-is/cjs/react-is.production.min.js +0 -9
  479. package/dist/cjs/node_modules/react-is/index.js +0 -1
  480. package/dist/esm/_virtual/index.js +0 -1
  481. package/dist/esm/_virtual/index2.js +0 -1
  482. package/dist/esm/_virtual/index3.js +0 -1
  483. package/dist/esm/_virtual/react-is.development.js +0 -1
  484. package/dist/esm/_virtual/react-is.development2.js +0 -1
  485. package/dist/esm/_virtual/react-is.production.min.js +0 -1
  486. package/dist/esm/_virtual/react-is.production.min2.js +0 -1
  487. package/dist/esm/assets/icons/WhiteStarFilled.svg.js +0 -1
  488. package/dist/esm/assets/icons/checkCircle.svg.js +0 -1
  489. package/dist/esm/assets/icons/copy-code-icon.svg.js +0 -1
  490. package/dist/esm/assets/icons/drag_handle.svg.js +0 -1
  491. package/dist/esm/assets/icons/lto_icon.svg.js +0 -1
  492. package/dist/esm/assets/icons/quotes.svg.js +0 -1
  493. package/dist/esm/components/SearchFilter/components/DateRangeOnlyButton.d.ts +0 -7
  494. package/dist/esm/components/SearchFilter/components/DateRangeOnlyButton.js +0 -1
  495. package/dist/esm/components/bik-layout/FeatureModalV2.d.ts +0 -12
  496. package/dist/esm/components/bik-layout/FeatureModalV2.js +0 -1
  497. package/dist/esm/components/bik-layout/ShowShopifyRestrictedModal.d.ts +0 -13
  498. package/dist/esm/components/bik-layout/ShowShopifyRestrictedModal.js +0 -1
  499. package/dist/esm/components/bik-layout/SidebarPopup.d.ts +0 -12
  500. package/dist/esm/components/bik-layout/SidebarPopup.js +0 -1
  501. package/dist/esm/components/plans/NewSubscriptionPlan.d.ts +0 -18
  502. package/dist/esm/components/plans/NewSubscriptionPlan.js +0 -1
  503. package/dist/esm/components/plans/SubscriptionPlansCollected.d.ts +0 -14
  504. package/dist/esm/components/plans/SubscriptionPlansCollected.js +0 -6
  505. package/dist/esm/components/product-picker-v2/helpers/ProductHelper.d.ts +0 -45
  506. package/dist/esm/components/product-picker-v2/helpers/ProductHelper.js +0 -1
  507. package/dist/esm/components/product-picker-v2/rearrangeScreen.d.ts +0 -18
  508. package/dist/esm/components/product-picker-v2/rearrangeScreen.js +0 -1
  509. package/dist/esm/components/product-picker-v2/type.d.ts +0 -6
  510. package/dist/esm/components/product-picker-v2/type.js +0 -1
  511. package/dist/esm/components/product-picker-v2/variant.d.ts +0 -32
  512. package/dist/esm/components/product-picker-v2/variant.js +0 -1
  513. package/dist/esm/components/product-picker-v2/variantComponents.d.ts +0 -21
  514. package/dist/esm/components/product-picker-v2/variantComponents.js +0 -1
  515. package/dist/esm/components/slider/index.d.ts +0 -1
  516. package/dist/esm/components/slider/slider.d.ts +0 -10
  517. package/dist/esm/components/slider/slider.js +0 -1
  518. package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.d.ts +0 -12
  519. package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +0 -1
  520. package/dist/esm/components/template-context-mapper/modalElements/BackTrackComponent.d.ts +0 -4
  521. package/dist/esm/components/template-context-mapper/modalElements/BackTrackComponent.js +0 -1
  522. package/dist/esm/components/template-context-mapper/modalElements/DiscountCodeComponent.d.ts +0 -6
  523. package/dist/esm/components/template-context-mapper/modalElements/DiscountCodeComponent.js +0 -1
  524. package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.d.ts +0 -11
  525. package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.js +0 -1
  526. package/dist/esm/components/template-context-mapper/utils/getPreviewDimension.d.ts +0 -2
  527. package/dist/esm/components/template-context-mapper/utils/getPreviewDimension.js +0 -1
  528. package/dist/esm/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.d.ts +0 -9
  529. package/dist/esm/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.js +0 -20
  530. package/dist/esm/components/testimonial-card/TestimonialCard.d.ts +0 -14
  531. package/dist/esm/components/testimonial-card/TestimonialCard.js +0 -1
  532. package/dist/esm/components/testimonial-card/TestimonialCard.style.d.ts +0 -16
  533. package/dist/esm/components/testimonial-card/TestimonialCard.style.js +0 -1
  534. package/dist/esm/components/testimonial-card/index.d.ts +0 -1
  535. package/dist/esm/node_modules/@babel/runtime/helpers/esm/extends.js +0 -1
  536. package/dist/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -1
  537. package/dist/esm/node_modules/@mui/base/node_modules/clsx/dist/clsx.mjs.js +0 -1
  538. package/dist/esm/node_modules/@mui/base/useSlider/useSlider.js +0 -1
  539. package/dist/esm/node_modules/@mui/base/utils/appendOwnerState.js +0 -1
  540. package/dist/esm/node_modules/@mui/base/utils/areArraysEqual.js +0 -1
  541. package/dist/esm/node_modules/@mui/base/utils/extractEventHandlers.js +0 -1
  542. package/dist/esm/node_modules/@mui/base/utils/isHostComponent.js +0 -1
  543. package/dist/esm/node_modules/@mui/base/utils/mergeSlotProps.js +0 -1
  544. package/dist/esm/node_modules/@mui/base/utils/omitEventHandlers.js +0 -1
  545. package/dist/esm/node_modules/@mui/base/utils/resolveComponentProps.js +0 -1
  546. package/dist/esm/node_modules/@mui/base/utils/useSlotProps.js +0 -1
  547. package/dist/esm/node_modules/@mui/material/Slider/Slider.js +0 -1
  548. package/dist/esm/node_modules/@mui/material/Slider/SliderValueLabel.js +0 -1
  549. package/dist/esm/node_modules/@mui/material/Slider/sliderClasses.js +0 -1
  550. package/dist/esm/node_modules/@mui/material/colors/blue.js +0 -1
  551. package/dist/esm/node_modules/@mui/material/colors/common.js +0 -1
  552. package/dist/esm/node_modules/@mui/material/colors/green.js +0 -1
  553. package/dist/esm/node_modules/@mui/material/colors/grey.js +0 -1
  554. package/dist/esm/node_modules/@mui/material/colors/lightBlue.js +0 -1
  555. package/dist/esm/node_modules/@mui/material/colors/orange.js +0 -1
  556. package/dist/esm/node_modules/@mui/material/colors/purple.js +0 -1
  557. package/dist/esm/node_modules/@mui/material/colors/red.js +0 -1
  558. package/dist/esm/node_modules/@mui/material/node_modules/clsx/dist/clsx.mjs.js +0 -1
  559. package/dist/esm/node_modules/@mui/material/styles/createMixins.js +0 -1
  560. package/dist/esm/node_modules/@mui/material/styles/createPalette.js +0 -1
  561. package/dist/esm/node_modules/@mui/material/styles/createTheme.js +0 -1
  562. package/dist/esm/node_modules/@mui/material/styles/createTransitions.js +0 -1
  563. package/dist/esm/node_modules/@mui/material/styles/createTypography.js +0 -1
  564. package/dist/esm/node_modules/@mui/material/styles/defaultTheme.js +0 -1
  565. package/dist/esm/node_modules/@mui/material/styles/identifier.js +0 -1
  566. package/dist/esm/node_modules/@mui/material/styles/shadows.js +0 -1
  567. package/dist/esm/node_modules/@mui/material/styles/styled.js +0 -1
  568. package/dist/esm/node_modules/@mui/material/styles/useTheme.js +0 -1
  569. package/dist/esm/node_modules/@mui/material/styles/useThemeProps.js +0 -1
  570. package/dist/esm/node_modules/@mui/material/styles/zIndex.js +0 -1
  571. package/dist/esm/node_modules/@mui/material/utils/capitalize.js +0 -1
  572. package/dist/esm/node_modules/@mui/material/utils/shouldSpreadAdditionalProps.js +0 -1
  573. package/dist/esm/node_modules/@mui/styled-engine/index.js +0 -8
  574. package/dist/esm/node_modules/@mui/system/esm/borders.js +0 -1
  575. package/dist/esm/node_modules/@mui/system/esm/breakpoints.js +0 -1
  576. package/dist/esm/node_modules/@mui/system/esm/colorManipulator.js +0 -1
  577. package/dist/esm/node_modules/@mui/system/esm/compose.js +0 -1
  578. package/dist/esm/node_modules/@mui/system/esm/createStyled.js +0 -1
  579. package/dist/esm/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +0 -1
  580. package/dist/esm/node_modules/@mui/system/esm/createTheme/createSpacing.js +0 -1
  581. package/dist/esm/node_modules/@mui/system/esm/createTheme/createTheme.js +0 -1
  582. package/dist/esm/node_modules/@mui/system/esm/createTheme/shape.js +0 -1
  583. package/dist/esm/node_modules/@mui/system/esm/cssGrid.js +0 -1
  584. package/dist/esm/node_modules/@mui/system/esm/memoize.js +0 -1
  585. package/dist/esm/node_modules/@mui/system/esm/merge.js +0 -1
  586. package/dist/esm/node_modules/@mui/system/esm/palette.js +0 -1
  587. package/dist/esm/node_modules/@mui/system/esm/propsToClassKey.js +0 -1
  588. package/dist/esm/node_modules/@mui/system/esm/responsivePropType.js +0 -1
  589. package/dist/esm/node_modules/@mui/system/esm/sizing.js +0 -1
  590. package/dist/esm/node_modules/@mui/system/esm/spacing.js +0 -1
  591. package/dist/esm/node_modules/@mui/system/esm/style.js +0 -1
  592. package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +0 -1
  593. package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +0 -1
  594. package/dist/esm/node_modules/@mui/system/esm/useTheme.js +0 -1
  595. package/dist/esm/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +0 -1
  596. package/dist/esm/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js +0 -1
  597. package/dist/esm/node_modules/@mui/system/esm/useThemeWithoutDefault.js +0 -1
  598. package/dist/esm/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +0 -1
  599. package/dist/esm/node_modules/@mui/utils/esm/capitalize/capitalize.js +0 -1
  600. package/dist/esm/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +0 -1
  601. package/dist/esm/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +0 -1
  602. package/dist/esm/node_modules/@mui/utils/esm/deepmerge.js +0 -1
  603. package/dist/esm/node_modules/@mui/utils/esm/formatMuiErrorMessage.js +0 -1
  604. package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +0 -1
  605. package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +0 -1
  606. package/dist/esm/node_modules/@mui/utils/esm/getDisplayName.js +0 -1
  607. package/dist/esm/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +0 -1
  608. package/dist/esm/node_modules/@mui/utils/esm/resolveProps.js +0 -1
  609. package/dist/esm/node_modules/@mui/utils/esm/setRef.js +0 -1
  610. package/dist/esm/node_modules/@mui/utils/esm/useControlled/useControlled.js +0 -1
  611. package/dist/esm/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +0 -1
  612. package/dist/esm/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +0 -1
  613. package/dist/esm/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +0 -1
  614. package/dist/esm/node_modules/@mui/utils/esm/useIsFocusVisible.js +0 -1
  615. package/dist/esm/node_modules/@mui/utils/esm/visuallyHidden.js +0 -1
  616. package/dist/esm/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +0 -10
  617. package/dist/esm/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js +0 -10
  618. package/dist/esm/node_modules/@mui/utils/node_modules/react-is/index.js +0 -1
  619. package/dist/esm/node_modules/object-assign/index.js +0 -6
  620. package/dist/esm/node_modules/prop-types/checkPropTypes.js +0 -1
  621. package/dist/esm/node_modules/prop-types/factoryWithThrowingShims.js +0 -1
  622. package/dist/esm/node_modules/prop-types/factoryWithTypeCheckers.js +0 -1
  623. package/dist/esm/node_modules/prop-types/index.js +0 -1
  624. package/dist/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -1
  625. package/dist/esm/node_modules/prop-types/lib/has.js +0 -1
  626. package/dist/esm/node_modules/react-is/cjs/react-is.development.js +0 -9
  627. package/dist/esm/node_modules/react-is/cjs/react-is.production.min.js +0 -9
  628. package/dist/esm/node_modules/react-is/index.js +0 -1
@@ -1 +1 @@
1
- import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useState as n,useEffect as t}from"react";import{disableOperatorDropdown as r}from"../../constants/connectorPosition.js";import{ConnectorHelper as i}from"../../helpers/Connector.helper.js";import{QueryBuilderConnectorType as s}from"../../types/QueryBuilder.type.js";import m from"../DropdownWrapper.js";import l from"./Components/EmojiPicker.js";import p from"./Components/FreeText.js";import a from"./Components/FrequencyIntegerPositiveSingle.js";import{PostIgPicker as c,ReelIgPicker as u,StoryIgPicker as d}from"./Components/IgPicker.js";import g from"./Components/IntegerPositiveSingle.js";import f from"./Components/IntegerSingleValue.js";import j from"./Components/InTheLast.js";import C from"./Components/InTheLastAgo.js";import S from"./Components/InTwoLast.js";import v from"./Components/MultiselectDropdownFreeText.js";import I from"./Components/NoInput.js";import T from"./Components/NumberTime.js";import h from"./Components/SingleDate.js";import y from"./Components/SingleselectDropdownFreeText.js";import P from"./Components/StringSingleValue.js";import w from"./Components/TwoDate.js";import D from"./Components/TwoNumberInputsSeperatedByAnd.js";import{Container as x}from"./Connector.styled.js";const F={FreeText:p,IntegerPositiveSingle:g,IntegerSingleValue:f,StringSingleValue:P,MultiselectDropdownFreeText:v,SingleselectDropdownFreeText:y,NoInput:I,SingleDate:h,TwoNumberInputsSeperatedByAnd:D,FrequencyIntegerPositiveSingle:a,TwoDate:w,NumberTime:T,PostIgPicker:c,ReelIgPicker:u,StoryIgPicker:d,EmojiPicker:l,InTheLast:j,InTwoLast:S,InTheLastAgo:C},b=l=>{let{isLoading:p,noDefault:a,connectorType:c,defaultConnector:u,onOperatorChange:d,onValueChange:g,connectorVal:f,extra:j,errors:C,disabled:S,onSearch:v}=l;var I,T,h;const[y,P]=n(null),[w,D]=n(!1),b=i.getDropdownOptionFromDataType(c,u);function L(e){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];D(!0);const n=i.getConnectorComponent(c,e.value);void 0!==n?c===s.frequency&&"IntegerPositiveSingle"===n?P("FrequencyIntegerPositiveSingle"):P(n):P(null),o||d(e.value),setTimeout((()=>{D(!1)}),5)}return t((()=>{a||(u?L({value:u,label:u},!0):(null==b?void 0:b[0])&&L(b[0]))}),[u]),e(x,{children:[o("div",{children:!(null===(I=null==r?void 0:r[c])||void 0===I?void 0:I[u])&&o(m,{isSearchable:!0,disabled:S,width:"200px",isLoading:w,options:b,defaultOption:null===(T=b.filter((e=>e.selected)))||void 0===T?void 0:T[0],onSelect:L})}),null!==y&&!w&&(null===(h=F[y])||void 0===h?void 0:h.call(F,{disabled:S,val:f,onChange:g,extra:j,errors:C,isLoading:p,onSearch:v,connectorType:c}))]})};export{b as default};
1
+ import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useState as n,useEffect as t}from"react";import{disableOperatorDropdown as r}from"../../constants/connectorPosition.js";import{ConnectorHelper as i}from"../../helpers/Connector.helper.js";import{QueryBuilderConnectorType as s}from"../../types/QueryBuilder.type.js";import m from"../DropdownWrapper.js";import l from"./Components/EmojiPicker.js";import p from"./Components/FreeText.js";import a from"./Components/FrequencyIntegerPositiveSingle.js";import{PostIgPicker as u,ReelIgPicker as c,StoryIgPicker as d}from"./Components/IgPicker.js";import g from"./Components/IntegerPositiveSingle.js";import f from"./Components/IntegerSingleValue.js";import j from"./Components/InTheLast.js";import C from"./Components/InTheLastAgo.js";import S from"./Components/InTwoLast.js";import v from"./Components/MultiselectDropdownFreeText.js";import I from"./Components/NoInput.js";import T from"./Components/NumberTime.js";import h from"./Components/SingleDate.js";import P from"./Components/SingleselectDropdownFreeText.js";import w from"./Components/StringSingleValue.js";import y from"./Components/TwoDate.js";import D from"./Components/TwoNumberInputsSeperatedByAnd.js";import{Container as x}from"./Connector.styled.js";const F={FreeText:p,IntegerPositiveSingle:g,IntegerSingleValue:f,StringSingleValue:w,MultiselectDropdownFreeText:v,SingleselectDropdownFreeText:P,NoInput:I,SingleDate:h,TwoNumberInputsSeperatedByAnd:D,FrequencyIntegerPositiveSingle:a,TwoDate:y,NumberTime:T,PostIgPicker:u,ReelIgPicker:c,StoryIgPicker:d,EmojiPicker:l,InTheLast:j,InTwoLast:S,InTheLastAgo:C},b=l=>{let{isLoading:p,noDefault:a,connectorType:u,defaultConnector:c,onOperatorChange:d,onValueChange:g,connectorVal:f,extra:j,errors:C,disabled:S,onSearch:v}=l;var I,T,h;const[P,w]=n(null),[y,D]=n(!1),b=i.getDropdownOptionFromDataType(u,c);function L(e){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];D(!0);const n=i.getConnectorComponent(u,e.value);void 0!==n?u===s.frequency&&"IntegerPositiveSingle"===n?w("FrequencyIntegerPositiveSingle"):w(n):w(null),o||d(e.value),setTimeout((()=>{D(!1)}),5)}return t((()=>{a||(c?L({value:c,label:c},!0):(null==b?void 0:b[0])&&L(b[0]))}),[c]),e(x,{children:[o("div",{children:!(null===(I=null==r?void 0:r[u])||void 0===I?void 0:I[c])&&o(m,{isSearchable:!0,disabled:S,width:"200px",isLoading:y,options:b,defaultOption:null===(T=b.filter((e=>e.selected)))||void 0===T?void 0:T[0],onSelect:L})}),null!==P&&!y&&(null===(h=F[P])||void 0===h?void 0:h.call(F,{disabled:S,val:f,onChange:g,extra:j,errors:C,isLoading:p,onSearch:v}))]})};export{b as default};
@@ -1 +1 @@
1
- const e=[{label:"Commonly used",options:[{selected:!1,value:"today",label:"Today",description:"Events performed in the current day (starting at 00:00 hours)"},{selected:!1,value:"yesterday",label:"Yesterday",description:"Events performed in the previous day (starting at 00:00 hours)"},{selected:!1,value:"last 7 days",label:"Last 7 days",description:"Events performed in the previous 7 complete days along with the current day"},{selected:!0,value:"last 30 days",label:"Last 30 days",description:"Events performed in the previous 30 complete days along with the current day"},{selected:!1,value:"this week",label:"This week",description:"Events performed in the current calendar week (starting Monday), including the current day"},{selected:!1,value:"last week",label:"Last week",description:"Events performed in the previous calendar week (starting Monday)"},{selected:!1,value:"this month",label:"This month",description:"Events performed in the current calendar month, including the current day"},{selected:!1,value:"last month",label:"Last month",description:"Events performed in the current calendar month, including the current day"}]},{label:"Relative",options:[{selected:!1,value:"exactly",label:"Exactly",description:"Events performed precisely in a specific time frame (days, hours, or minutes) before the current time"},{selected:!1,value:"in the last",label:"In the last",description:"Events performed within the period between the current time and a specified time frame (days, hours, or minutes), relative to and before the current time"},{selected:!1,value:"in between last",label:"In between last",description:"Events performed within the range from one specific time frame to another specific time frame, both relative to and before the current time"}]},{label:"Absolute",options:[{selected:!1,value:"on",label:"On",description:"Events performed exactly on a particular date"},{selected:!1,value:"notOn",label:"Not On"},{selected:!1,value:"inBetween",label:"In Between",description:"Events performed between a specified date range"},{selected:!1,value:"notInBetween",label:"Not In Between"},{selected:!1,value:"before",label:"Before",description:"Events performed before a particular date (excluding that particular date)"},{selected:!1,value:"after",label:"After",description:"Events performed after a particular date (excluding that particular date)"}]}];export{e as DATE_OPERATORS_OPTIONS};
1
+ const e=[{label:"Commonly used",options:[{selected:!1,value:"today",label:"Today"},{selected:!1,value:"yesterday",label:"Yesterday"},{selected:!1,value:"last 7 days",label:"Last 7 days"},{selected:!1,value:"last 30 days",label:"Last 30 days"},{selected:!1,value:"this week",label:"This week"},{selected:!1,value:"last week",label:"Last week"},{selected:!1,value:"this month",label:"This month"},{selected:!0,value:"last month",label:"Last month"}]},{label:"Relative",options:[{selected:!1,value:"exactly",label:"Exactly"},{selected:!1,value:"in the last",label:"In the last"},{selected:!1,value:"in between last",label:"In between last"}]},{label:"Absolute",options:[{selected:!1,value:"on",label:"On"},{selected:!1,value:"notOn",label:"Not On"},{selected:!1,value:"inBetween",label:"In Between"},{selected:!1,value:"notInBetween",label:"Not In Between"},{selected:!1,value:"before",label:"Before"},{selected:!1,value:"after",label:"After"}]}];export{e as DATE_OPERATORS_OPTIONS};
@@ -1,6 +1,6 @@
1
1
  import { QueryBuilderConnectorType } from '../types/QueryBuilder.type';
2
- import { AD_STRING_OPERATORS, ANY_AD_OPERATORS, ANY_IG_OPERATORS, BOOLEAN_OPERATORS, DATE_OPERATORS, EXACTLY_OPERATORS, FREQUENCY_OPERATORS, ICE_BREAKER_OPERATORS, IG_STRING_OPERATORS, INTEGER_OPERATORS, MAIL_SUBJECT_OPERATORS, REACTION_OPERATORS, SPECIFIC_IG_OPERATORS, STRING_OPERATORS, STRING_RESTRICTED_OPERATORS, STRING_RESTRICTED_OPERATORS_2, STRING_RESTRICTED_OPERATORS_3 } from '../types/QueryBuilderOperator.type';
3
- type CONNECTOR_OPERATORS_TYPE = typeof BOOLEAN_OPERATORS | typeof STRING_OPERATORS | typeof STRING_RESTRICTED_OPERATORS | typeof STRING_RESTRICTED_OPERATORS_2 | typeof STRING_RESTRICTED_OPERATORS_3 | typeof INTEGER_OPERATORS | typeof FREQUENCY_OPERATORS | typeof DATE_OPERATORS | typeof SPECIFIC_IG_OPERATORS | typeof ANY_IG_OPERATORS | typeof REACTION_OPERATORS | typeof IG_STRING_OPERATORS | typeof ANY_AD_OPERATORS | typeof AD_STRING_OPERATORS | typeof ICE_BREAKER_OPERATORS | typeof EXACTLY_OPERATORS | typeof MAIL_SUBJECT_OPERATORS;
2
+ import { AD_STRING_OPERATORS, ANY_AD_OPERATORS, ANY_IG_OPERATORS, BOOLEAN_OPERATORS, DATE_OPERATORS, FREQUENCY_OPERATORS, ICE_BREAKER_OPERATORS, IG_STRING_OPERATORS, INTEGER_OPERATORS, MAIL_SUBJECT_OPERATORS, REACTION_OPERATORS, SPECIFIC_IG_OPERATORS, STRING_OPERATORS, STRING_RESTRICTED_OPERATORS, STRING_RESTRICTED_OPERATORS_2, STRING_RESTRICTED_OPERATORS_3 } from '../types/QueryBuilderOperator.type';
3
+ type CONNECTOR_OPERATORS_TYPE = typeof BOOLEAN_OPERATORS | typeof STRING_OPERATORS | typeof STRING_RESTRICTED_OPERATORS | typeof STRING_RESTRICTED_OPERATORS_2 | typeof STRING_RESTRICTED_OPERATORS_3 | typeof INTEGER_OPERATORS | typeof FREQUENCY_OPERATORS | typeof DATE_OPERATORS | typeof SPECIFIC_IG_OPERATORS | typeof ANY_IG_OPERATORS | typeof REACTION_OPERATORS | typeof IG_STRING_OPERATORS | typeof ANY_AD_OPERATORS | typeof AD_STRING_OPERATORS | typeof ICE_BREAKER_OPERATORS | typeof MAIL_SUBJECT_OPERATORS;
4
4
  export declare const CONNECTOR_TYPE_TO_OPERATORS: {
5
5
  [key in QueryBuilderConnectorType]: CONNECTOR_OPERATORS_TYPE;
6
6
  };
@@ -96,9 +96,6 @@ export declare const DATE_OPERATORS_COMPONENT: {
96
96
  after: CONNECTOR_VALUE_COMPONENT_TYPES;
97
97
  "last quarter": CONNECTOR_VALUE_COMPONENT_TYPES;
98
98
  };
99
- export declare const EXACTLY_OPERATORS_COMPONENT: {
100
- exactly: CONNECTOR_VALUE_COMPONENT_TYPES;
101
- };
102
99
  export declare const SPECIFIC_IG_POST_OPERATORS_COMPONENT: {
103
100
  in: CONNECTOR_VALUE_COMPONENT_TYPES;
104
101
  };
@@ -126,6 +123,6 @@ export declare const FREQUENCY_OPERATORS_COMPONENT: {
126
123
  atMost: CONNECTOR_VALUE_COMPONENT_TYPES;
127
124
  };
128
125
  export declare const CONNECTOR_TYPE_TO_COMPONENT_MAP: {
129
- [x in QueryBuilderConnectorType]: typeof BOOLEAN_OPERATORS_COMPONENT | typeof STRING_OPERATORS_COMPONENT | typeof STRING_RESTRICTED_OPERATORS | typeof STRING_RESTRICTED_OPERATORS_2_COMPONENT | typeof STRING_RESTRICTED_OPERATORS_3_COMPONENT | typeof MAIL_SUBJECT_OPERATORS_COMPONENT | typeof INTEGER_OPERATORS_COMPONENT | typeof FREQUENCY_OPERATORS_COMPONENT | typeof DATE_OPERATORS_COMPONENT | typeof SPECIFIC_IG_POST_OPERATORS_COMPONENT | typeof SPECIFIC_IG_REEL_OPERATORS_COMPONENT | typeof SPECIFIC_IG_STORY_OPERATORS_COMPONENT | typeof ANY_IG_OPERATORS_COMPONENT | typeof REACTION_OPERATORS_COMPONENT | typeof IG_STRING_OPERATORS_COMPONENT | typeof ANY_AD_OPERATORS_COMPONENT | typeof AD_STRING_OPERATORS_COMPONENT | typeof EXACTLY_OPERATORS_COMPONENT | typeof ICE_BREAKER_OPERATORS_COMPONENT;
126
+ [x in QueryBuilderConnectorType]: typeof BOOLEAN_OPERATORS_COMPONENT | typeof STRING_OPERATORS_COMPONENT | typeof STRING_RESTRICTED_OPERATORS | typeof STRING_RESTRICTED_OPERATORS_2_COMPONENT | typeof STRING_RESTRICTED_OPERATORS_3_COMPONENT | typeof MAIL_SUBJECT_OPERATORS_COMPONENT | typeof INTEGER_OPERATORS_COMPONENT | typeof FREQUENCY_OPERATORS_COMPONENT | typeof DATE_OPERATORS_COMPONENT | typeof SPECIFIC_IG_POST_OPERATORS_COMPONENT | typeof SPECIFIC_IG_REEL_OPERATORS_COMPONENT | typeof SPECIFIC_IG_STORY_OPERATORS_COMPONENT | typeof ANY_IG_OPERATORS_COMPONENT | typeof REACTION_OPERATORS_COMPONENT | typeof IG_STRING_OPERATORS_COMPONENT | typeof ANY_AD_OPERATORS_COMPONENT | typeof AD_STRING_OPERATORS_COMPONENT | typeof ICE_BREAKER_OPERATORS_COMPONENT;
130
127
  };
131
128
  export {};
@@ -1 +1 @@
1
- import{QueryBuilderConnectorType as e}from"../types/QueryBuilder.type.js";import{BOOLEAN_OPERATORS as t,STRING_OPERATORS as n,STRING_RESTRICTED_OPERATORS as i,STRING_RESTRICTED_OPERATORS_2 as r,STRING_RESTRICTED_OPERATORS_3 as s,INTEGER_OPERATORS as o,FREQUENCY_OPERATORS as a,DATE_OPERATORS as l,SPECIFIC_IG_OPERATORS as c,ANY_IG_OPERATORS as g,REACTION_OPERATORS as I,IG_STRING_OPERATORS as u,ANY_AD_OPERATORS as p,AD_STRING_OPERATORS as T,ICE_BREAKER_OPERATORS as d,MAIL_SUBJECT_OPERATORS as x,EXACTLY_OPERATORS as N}from"../types/QueryBuilderOperator.type.js";const S={[e.boolean]:t,[e.string]:n,[e.string_restricted]:i,[e.string_restricted_2]:r,[e.string_restricted_3]:s,[e.integer]:o,[e.frequency]:a,[e.date]:l,[e.specificPost]:c,[e.specificReel]:c,[e.specificStory]:c,[e.anyIg]:g,[e.reaction]:I,[e.activityString]:u,[e.anyAd]:p,[e.specificAd]:T,[e.iceBreaker]:d,[e.mailSubject]:x,[e.exactly]:N};var y;!function(e){e.FreeText="FreeText",e.NoInput="NoInput",e.IntegerSingleValue="IntegerSingleValue",e.StringSingleValue="StringSingleValue",e.TwoNumberInputsSeperatedByAnd="TwoNumberInputsSeperatedByAnd",e.MultiselectDropdownFreeText="MultiselectDropdownFreeText",e.SingleselectDropdownFreeText="SingleselectDropdownFreeText",e.SingleDate="SingleDate",e.TwoDate="TwoDate",e.IntegerPositiveSingle="IntegerPositiveSingle",e.NumberTime="NumberTime",e.PostIgPicker="PostIgPicker",e.ReelIgPicker="ReelIgPicker",e.StoryIgPicker="StoryIgPicker",e.EmojiPicker="EmojiPicker",e.InTheLast="InTheLast",e.InTwoLast="InTwoLast",e.InTheLastAgo="InTheLastAgo"}(y||(y={}));const w={[o.is]:y.FreeText,[o.isNot]:y.FreeText,[o.exists]:y.NoInput,[o.doesntExist]:y.NoInput,[o.lessThan]:y.IntegerSingleValue,[o.lessThanOrEqualTo]:y.IntegerSingleValue,[o.greaterThan]:y.IntegerSingleValue,[o.greaterThanOrEqualTo]:y.IntegerSingleValue},F={[n.is]:y.MultiselectDropdownFreeText,[n.isNot]:y.MultiselectDropdownFreeText,[n.contains]:y.FreeText,[n.doesntContain]:y.FreeText,[n.startsWith]:y.FreeText,[n.endsWith]:y.FreeText,[n.exists]:y.NoInput,[n.doesntExist]:y.NoInput},h={[n.is]:y.MultiselectDropdownFreeText,[n.isNot]:y.MultiselectDropdownFreeText,[n.exists]:y.NoInput,[n.doesntExist]:y.NoInput},D={[n.is]:y.FreeText,[n.isNot]:y.FreeText},P={[n.is]:y.SingleselectDropdownFreeText},m={[n.contains]:y.FreeText},k={[u.any]:y.NoInput,[u.is]:y.MultiselectDropdownFreeText,[u.contains]:y.FreeText,[u.startsWith]:y.FreeText,[u.endsWith]:y.FreeText},f={[T.is]:y.SingleselectDropdownFreeText},L={[d.is]:y.MultiselectDropdownFreeText},b={[I.contains]:y.EmojiPicker},A={[l.today]:y.NoInput,[l.yesterday]:y.NoInput,[l["last 30 days"]]:y.NoInput,[l["last 7 days"]]:y.NoInput,[l["this month"]]:y.NoInput,[l["this week"]]:y.NoInput,[l["last month"]]:y.NoInput,[l["last week"]]:y.NoInput,[l.exactly]:y.InTheLastAgo,[l["in the last"]]:y.InTheLast,[l["in between last"]]:y.InTwoLast,[l.on]:y.SingleDate,[l.notOn]:y.SingleDate,[l.inBetween]:y.TwoDate,[l.notInBetween]:y.TwoDate,[l.before]:y.SingleDate,[l.after]:y.SingleDate,[l.today]:y.NoInput,[l.yesterday]:y.NoInput,[l["last week"]]:y.NoInput,[l["last month"]]:y.NoInput,[l["last quarter"]]:y.NoInput,[l["in the last"]]:y.InTheLast},_={[N.exactly]:y.InTheLastAgo},E={[c.in]:y.PostIgPicker},M={[c.in]:y.ReelIgPicker},v={[c.in]:y.StoryIgPicker},B={[g.in]:y.NoInput},V={[p.in]:y.NoInput},j={[t.isTrue]:y.NoInput,[t.isFalse]:y.NoInput,[t.exists]:y.NoInput,[t.doesntExist]:y.NoInput},q={[a.exactly]:y.IntegerPositiveSingle,[a.atleast]:y.IntegerPositiveSingle,[a.atMost]:y.IntegerPositiveSingle},R={[e.boolean]:j,[e.string]:F,[e.integer]:w,[e.frequency]:q,[e.date]:A,[e.specificPost]:E,[e.specificReel]:M,[e.specificStory]:v,[e.anyIg]:B,[e.reaction]:b,[e.activityString]:k,[e.anyAd]:V,[e.specificAd]:f,[e.iceBreaker]:L,[e.string_restricted]:h,[e.string_restricted_2]:D,[e.string_restricted_3]:P,[e.mailSubject]:m,[e.exactly]:_};export{f as AD_STRING_OPERATORS_COMPONENT,V as ANY_AD_OPERATORS_COMPONENT,B as ANY_IG_OPERATORS_COMPONENT,j as BOOLEAN_OPERATORS_COMPONENT,R as CONNECTOR_TYPE_TO_COMPONENT_MAP,S as CONNECTOR_TYPE_TO_OPERATORS,y as CONNECTOR_VALUE_COMPONENT_TYPES,A as DATE_OPERATORS_COMPONENT,_ as EXACTLY_OPERATORS_COMPONENT,q as FREQUENCY_OPERATORS_COMPONENT,L as ICE_BREAKER_OPERATORS_COMPONENT,k as IG_STRING_OPERATORS_COMPONENT,w as INTEGER_OPERATORS_COMPONENT,m as MAIL_SUBJECT_OPERATORS_COMPONENT,b as REACTION_OPERATORS_COMPONENT,E as SPECIFIC_IG_POST_OPERATORS_COMPONENT,M as SPECIFIC_IG_REEL_OPERATORS_COMPONENT,v as SPECIFIC_IG_STORY_OPERATORS_COMPONENT,F as STRING_OPERATORS_COMPONENT,D as STRING_RESTRICTED_OPERATORS_2_COMPONENT,P as STRING_RESTRICTED_OPERATORS_3_COMPONENT,h as STRING_RESTRICTED_OPERATORS_COMPONENT};
1
+ import{QueryBuilderConnectorType as e}from"../types/QueryBuilder.type.js";import{BOOLEAN_OPERATORS as t,STRING_OPERATORS as n,STRING_RESTRICTED_OPERATORS as i,STRING_RESTRICTED_OPERATORS_2 as r,STRING_RESTRICTED_OPERATORS_3 as s,INTEGER_OPERATORS as o,FREQUENCY_OPERATORS as a,DATE_OPERATORS as l,SPECIFIC_IG_OPERATORS as c,ANY_IG_OPERATORS as g,REACTION_OPERATORS as u,IG_STRING_OPERATORS as I,ANY_AD_OPERATORS as p,AD_STRING_OPERATORS as T,ICE_BREAKER_OPERATORS as d,MAIL_SUBJECT_OPERATORS as x}from"../types/QueryBuilderOperator.type.js";const N={[e.boolean]:t,[e.string]:n,[e.string_restricted]:i,[e.string_restricted_2]:r,[e.string_restricted_3]:s,[e.integer]:o,[e.frequency]:a,[e.date]:l,[e.specificPost]:c,[e.specificReel]:c,[e.specificStory]:c,[e.anyIg]:g,[e.reaction]:u,[e.activityString]:I,[e.anyAd]:p,[e.specificAd]:T,[e.iceBreaker]:d,[e.mailSubject]:x};var S;!function(e){e.FreeText="FreeText",e.NoInput="NoInput",e.IntegerSingleValue="IntegerSingleValue",e.StringSingleValue="StringSingleValue",e.TwoNumberInputsSeperatedByAnd="TwoNumberInputsSeperatedByAnd",e.MultiselectDropdownFreeText="MultiselectDropdownFreeText",e.SingleselectDropdownFreeText="SingleselectDropdownFreeText",e.SingleDate="SingleDate",e.TwoDate="TwoDate",e.IntegerPositiveSingle="IntegerPositiveSingle",e.NumberTime="NumberTime",e.PostIgPicker="PostIgPicker",e.ReelIgPicker="ReelIgPicker",e.StoryIgPicker="StoryIgPicker",e.EmojiPicker="EmojiPicker",e.InTheLast="InTheLast",e.InTwoLast="InTwoLast",e.InTheLastAgo="InTheLastAgo"}(S||(S={}));const y={[o.is]:S.FreeText,[o.isNot]:S.FreeText,[o.exists]:S.NoInput,[o.doesntExist]:S.NoInput,[o.lessThan]:S.IntegerSingleValue,[o.lessThanOrEqualTo]:S.IntegerSingleValue,[o.greaterThan]:S.IntegerSingleValue,[o.greaterThanOrEqualTo]:S.IntegerSingleValue},w={[n.is]:S.MultiselectDropdownFreeText,[n.isNot]:S.MultiselectDropdownFreeText,[n.contains]:S.FreeText,[n.doesntContain]:S.FreeText,[n.startsWith]:S.FreeText,[n.endsWith]:S.FreeText,[n.exists]:S.NoInput,[n.doesntExist]:S.NoInput},F={[n.is]:S.MultiselectDropdownFreeText,[n.isNot]:S.MultiselectDropdownFreeText,[n.exists]:S.NoInput,[n.doesntExist]:S.NoInput},h={[n.is]:S.FreeText,[n.isNot]:S.FreeText},D={[n.is]:S.SingleselectDropdownFreeText},P={[n.contains]:S.FreeText},m={[I.any]:S.NoInput,[I.is]:S.MultiselectDropdownFreeText,[I.contains]:S.FreeText,[I.startsWith]:S.FreeText,[I.endsWith]:S.FreeText},k={[T.is]:S.SingleselectDropdownFreeText},f={[d.is]:S.MultiselectDropdownFreeText},b={[u.contains]:S.EmojiPicker},L={[l.today]:S.NoInput,[l.yesterday]:S.NoInput,[l["last 30 days"]]:S.NoInput,[l["last 7 days"]]:S.NoInput,[l["this month"]]:S.NoInput,[l["this week"]]:S.NoInput,[l["last month"]]:S.NoInput,[l["last week"]]:S.NoInput,[l.exactly]:S.InTheLastAgo,[l["in the last"]]:S.InTheLast,[l["in between last"]]:S.InTwoLast,[l.on]:S.SingleDate,[l.notOn]:S.SingleDate,[l.inBetween]:S.TwoDate,[l.notInBetween]:S.TwoDate,[l.before]:S.SingleDate,[l.after]:S.SingleDate,[l.today]:S.NoInput,[l.yesterday]:S.NoInput,[l["last week"]]:S.NoInput,[l["last month"]]:S.NoInput,[l["last quarter"]]:S.NoInput,[l["in the last"]]:S.InTheLast},_={[c.in]:S.PostIgPicker},A={[c.in]:S.ReelIgPicker},E={[c.in]:S.StoryIgPicker},M={[g.in]:S.NoInput},v={[p.in]:S.NoInput},B={[t.isTrue]:S.NoInput,[t.isFalse]:S.NoInput,[t.exists]:S.NoInput,[t.doesntExist]:S.NoInput},V={[a.exactly]:S.IntegerPositiveSingle,[a.atleast]:S.IntegerPositiveSingle,[a.atMost]:S.IntegerPositiveSingle},j={[e.boolean]:B,[e.string]:w,[e.integer]:y,[e.frequency]:V,[e.date]:L,[e.specificPost]:_,[e.specificReel]:A,[e.specificStory]:E,[e.anyIg]:M,[e.reaction]:b,[e.activityString]:m,[e.anyAd]:v,[e.specificAd]:k,[e.iceBreaker]:f,[e.string_restricted]:F,[e.string_restricted_2]:h,[e.string_restricted_3]:D,[e.mailSubject]:P};export{k as AD_STRING_OPERATORS_COMPONENT,v as ANY_AD_OPERATORS_COMPONENT,M as ANY_IG_OPERATORS_COMPONENT,B as BOOLEAN_OPERATORS_COMPONENT,j as CONNECTOR_TYPE_TO_COMPONENT_MAP,N as CONNECTOR_TYPE_TO_OPERATORS,S as CONNECTOR_VALUE_COMPONENT_TYPES,L as DATE_OPERATORS_COMPONENT,V as FREQUENCY_OPERATORS_COMPONENT,f as ICE_BREAKER_OPERATORS_COMPONENT,m as IG_STRING_OPERATORS_COMPONENT,y as INTEGER_OPERATORS_COMPONENT,P as MAIL_SUBJECT_OPERATORS_COMPONENT,b as REACTION_OPERATORS_COMPONENT,_ as SPECIFIC_IG_POST_OPERATORS_COMPONENT,A as SPECIFIC_IG_REEL_OPERATORS_COMPONENT,E as SPECIFIC_IG_STORY_OPERATORS_COMPONENT,w as STRING_OPERATORS_COMPONENT,h as STRING_RESTRICTED_OPERATORS_2_COMPONENT,D as STRING_RESTRICTED_OPERATORS_3_COMPONENT,F as STRING_RESTRICTED_OPERATORS_COMPONENT};
@@ -31,8 +31,7 @@ export declare enum QueryBuilderConnectorType {
31
31
  'activityString' = "activityString",
32
32
  'specificAd' = "specificAd",
33
33
  'iceBreaker' = "iceBreaker",
34
- 'mailSubject' = "mailSubject",
35
- 'exactly' = "exactly"
34
+ 'mailSubject' = "mailSubject"
36
35
  }
37
36
  export interface QueryBuilderConnector {
38
37
  dataType: QueryBuilderConnectorType;
@@ -1 +1 @@
1
- var e,i,t;!function(e){e.SEGMENT_FILTER="SEGMENT_FILTER",e.EVENT_FILTER="EVENT_FILTER",e.NO_EVENT_FILTER="NO_EVENT_FILTER",e.USER_PROPERTY_FILTER="USER_PROPERTY_FILTER",e.IG_TRIGGER="IG_TRIGGER",e.CTWA_TRIGGER="CTWA_TRIGGER",e.EVENTS_TRIGGER="EVENTS_TRIGGER"}(e||(e={})),function(e){e.AND="AND",e.OR="OR"}(i||(i={})),function(e){e.string="string",e.string_restricted="string_restricted",e.string_restricted_2="string_restricted_2",e.string_restricted_3="string_restricted_3",e.integer="integer",e.boolean="boolean",e.date="date",e.frequency="frequency",e.anyIg="anyIg",e.anyAd="anyAd",e.specificPost="specificPost",e.specificReel="specificReel",e.specificStory="specificStory",e.reaction="reaction",e.activityString="activityString",e.specificAd="specificAd",e.iceBreaker="iceBreaker",e.mailSubject="mailSubject",e.exactly="exactly"}(t||(t={}));export{t as QueryBuilderConnectorType,i as QueryBuilderJoinOperators,e as QueryBuilderType};
1
+ var e,i,t;!function(e){e.SEGMENT_FILTER="SEGMENT_FILTER",e.EVENT_FILTER="EVENT_FILTER",e.NO_EVENT_FILTER="NO_EVENT_FILTER",e.USER_PROPERTY_FILTER="USER_PROPERTY_FILTER",e.IG_TRIGGER="IG_TRIGGER",e.CTWA_TRIGGER="CTWA_TRIGGER",e.EVENTS_TRIGGER="EVENTS_TRIGGER"}(e||(e={})),function(e){e.AND="AND",e.OR="OR"}(i||(i={})),function(e){e.string="string",e.string_restricted="string_restricted",e.string_restricted_2="string_restricted_2",e.string_restricted_3="string_restricted_3",e.integer="integer",e.boolean="boolean",e.date="date",e.frequency="frequency",e.anyIg="anyIg",e.anyAd="anyAd",e.specificPost="specificPost",e.specificReel="specificReel",e.specificStory="specificStory",e.reaction="reaction",e.activityString="activityString",e.specificAd="specificAd",e.iceBreaker="iceBreaker",e.mailSubject="mailSubject"}(t||(t={}));export{t as QueryBuilderConnectorType,i as QueryBuilderJoinOperators,e as QueryBuilderType};
@@ -19,7 +19,6 @@ export type ConnectorComponentProps = {
19
19
  nativeID?: string;
20
20
  isLoading?: boolean;
21
21
  disabled?: boolean;
22
- connectorType: QueryBuilderConnectorType;
23
22
  onSearch?: (searchKey: string) => Promise<DropdownOption[]>;
24
23
  };
25
24
  export type ConnectorProps = {
@@ -92,15 +92,12 @@ export declare enum BOOLEAN_OPERATORS {
92
92
  exists = "exists",
93
93
  doesntExist = "doesntExist"
94
94
  }
95
- export declare enum EXACTLY_OPERATORS {
96
- exactly = "exactly"
97
- }
98
95
  export declare enum FREQUENCY_OPERATORS {
99
96
  exactly = "exactly",
100
97
  atleast = "atleast",
101
98
  atMost = "atMost"
102
99
  }
103
- export type CONNECTOR_OPERATORS = FREQUENCY_OPERATORS | BOOLEAN_OPERATORS | DATE_OPERATORS | STRING_OPERATORS | EXACTLY_OPERATORS | INTEGER_OPERATORS;
100
+ export type CONNECTOR_OPERATORS = FREQUENCY_OPERATORS | BOOLEAN_OPERATORS | DATE_OPERATORS | STRING_OPERATORS | INTEGER_OPERATORS;
104
101
  export declare enum EVENT_VALUES {
105
102
  FreeText = "FreeText",
106
103
  NoInput = "NoInput",
@@ -1 +1 @@
1
- var t,e,n,s,i,a,o,l,r,u,c,x,d,h,T,f,y,g;!function(t){t.is="is",t.isNot="isNot",t.exists="exists",t.doesntExist="doesntExist",t.lessThan="lessThan",t.lessThanOrEqualTo="lessThanOrEqualTo",t.greaterThan="greaterThan",t.greaterThanOrEqualTo="greaterThanOrEqualTo"}(t||(t={})),function(t){t.is="is",t.isNot="isNot",t.contains="contains",t.doesntContain="doesntContain",t.startsWith="startsWith",t.endsWith="endsWith",t.exists="exists",t.doesntExist="doesntExist"}(e||(e={})),function(t){t.is="is",t.isNot="isNot",t.exists="exists",t.doesntExist="doesntExist"}(n||(n={})),function(t){t.is="is",t.isNot="isNot"}(s||(s={})),function(t){t.is="is"}(i||(i={})),function(t){t.any="any",t.is="is",t.contains="contains",t.startsWith="startsWith",t.endsWith="endsWith"}(a||(a={})),function(t){t.is="is"}(o||(o={})),function(t){t.in="in"}(l||(l={})),function(t){t.is="is"}(r||(r={})),function(t){t.in="in"}(u||(u={})),function(t){t.in="in"}(c||(c={})),function(t){t.contains="contains"}(x||(x={})),function(t){t.contains="contains"}(d||(d={})),function(t){t.today="today",t.yesterday="yesterday",t["last 7 days"]="last 7 days",t["last 30 days"]="last 30 days",t["this week"]="this week",t["last week"]="last week",t["this month"]="this month",t["last month"]="last month",t.exactly="exactly",t["not exactly"]="not exactly",t["in the last"]="in the last",t["not in the last"]="not in the last",t["in between last"]="in between last",t["not in between last"]="not in between last",t.on="on",t.notOn="notOn",t.inBetween="inBetween",t.notInBetween="notInBetween",t.before="before",t.after="after",t["last quarter"]="last quarter"}(h||(h={})),function(t){t.isTrue="isTrue",t.isFalse="isFalse",t.exists="exists",t.doesntExist="doesntExist"}(T||(T={})),function(t){t.exactly="exactly"}(f||(f={})),function(t){t.exactly="exactly",t.atleast="atleast",t.atMost="atMost"}(y||(y={})),function(t){t.FreeText="FreeText",t.NoInput="NoInput",t.IntegerSingleValue="IntegerSingleValue",t.StringSingleValue="StringSingleValue",t.TwoNumberInputsSeperatedByAnd="TwoNumberInputsSeperatedByAnd",t.MultiselectDropdownFreeText="MultiselectDropdownFreeText",t.SingleselectDropdownFreeText="SingleselectDropdownFreeText",t.SingleDate="SingleDate",t.TwoDate="TwoDate",t.IntegerPositiveSingle="IntegerPositiveSingle",t.NumberTime="NumberTime"}(g||(g={}));export{o as AD_STRING_OPERATORS,c as ANY_AD_OPERATORS,u as ANY_IG_OPERATORS,T as BOOLEAN_OPERATORS,h as DATE_OPERATORS,g as EVENT_VALUES,f as EXACTLY_OPERATORS,y as FREQUENCY_OPERATORS,r as ICE_BREAKER_OPERATORS,a as IG_STRING_OPERATORS,t as INTEGER_OPERATORS,d as MAIL_SUBJECT_OPERATORS,x as REACTION_OPERATORS,l as SPECIFIC_IG_OPERATORS,e as STRING_OPERATORS,n as STRING_RESTRICTED_OPERATORS,s as STRING_RESTRICTED_OPERATORS_2,i as STRING_RESTRICTED_OPERATORS_3};
1
+ var t,e,n,s,i,o,a,l,r,u,c,d,x,h,T,f,g;!function(t){t.is="is",t.isNot="isNot",t.exists="exists",t.doesntExist="doesntExist",t.lessThan="lessThan",t.lessThanOrEqualTo="lessThanOrEqualTo",t.greaterThan="greaterThan",t.greaterThanOrEqualTo="greaterThanOrEqualTo"}(t||(t={})),function(t){t.is="is",t.isNot="isNot",t.contains="contains",t.doesntContain="doesntContain",t.startsWith="startsWith",t.endsWith="endsWith",t.exists="exists",t.doesntExist="doesntExist"}(e||(e={})),function(t){t.is="is",t.isNot="isNot",t.exists="exists",t.doesntExist="doesntExist"}(n||(n={})),function(t){t.is="is",t.isNot="isNot"}(s||(s={})),function(t){t.is="is"}(i||(i={})),function(t){t.any="any",t.is="is",t.contains="contains",t.startsWith="startsWith",t.endsWith="endsWith"}(o||(o={})),function(t){t.is="is"}(a||(a={})),function(t){t.in="in"}(l||(l={})),function(t){t.is="is"}(r||(r={})),function(t){t.in="in"}(u||(u={})),function(t){t.in="in"}(c||(c={})),function(t){t.contains="contains"}(d||(d={})),function(t){t.contains="contains"}(x||(x={})),function(t){t.today="today",t.yesterday="yesterday",t["last 7 days"]="last 7 days",t["last 30 days"]="last 30 days",t["this week"]="this week",t["last week"]="last week",t["this month"]="this month",t["last month"]="last month",t.exactly="exactly",t["not exactly"]="not exactly",t["in the last"]="in the last",t["not in the last"]="not in the last",t["in between last"]="in between last",t["not in between last"]="not in between last",t.on="on",t.notOn="notOn",t.inBetween="inBetween",t.notInBetween="notInBetween",t.before="before",t.after="after",t["last quarter"]="last quarter"}(h||(h={})),function(t){t.isTrue="isTrue",t.isFalse="isFalse",t.exists="exists",t.doesntExist="doesntExist"}(T||(T={})),function(t){t.exactly="exactly",t.atleast="atleast",t.atMost="atMost"}(f||(f={})),function(t){t.FreeText="FreeText",t.NoInput="NoInput",t.IntegerSingleValue="IntegerSingleValue",t.StringSingleValue="StringSingleValue",t.TwoNumberInputsSeperatedByAnd="TwoNumberInputsSeperatedByAnd",t.MultiselectDropdownFreeText="MultiselectDropdownFreeText",t.SingleselectDropdownFreeText="SingleselectDropdownFreeText",t.SingleDate="SingleDate",t.TwoDate="TwoDate",t.IntegerPositiveSingle="IntegerPositiveSingle",t.NumberTime="NumberTime"}(g||(g={}));export{a as AD_STRING_OPERATORS,c as ANY_AD_OPERATORS,u as ANY_IG_OPERATORS,T as BOOLEAN_OPERATORS,h as DATE_OPERATORS,g as EVENT_VALUES,f as FREQUENCY_OPERATORS,r as ICE_BREAKER_OPERATORS,o as IG_STRING_OPERATORS,t as INTEGER_OPERATORS,x as MAIL_SUBJECT_OPERATORS,d as REACTION_OPERATORS,l as SPECIFIC_IG_OPERATORS,e as STRING_OPERATORS,n as STRING_RESTRICTED_OPERATORS,s as STRING_RESTRICTED_OPERATORS_2,i as STRING_RESTRICTED_OPERATORS_3};
@@ -1 +1 @@
1
- import{jsx as t,Fragment as a}from"react/jsx-runtime";import"../../tooltips/Tooltip.js";import"../../../constants/Theme.js";import"../../TypographyStyle.js";import"../../analytics-chips-and-dropdowns/CommonStyles.js";import{formatDate as i}from"../../analytics-chips-and-dropdowns/AnalyticsDropdown.js";import"react";import"../../analytics-chips-and-dropdowns/AnalyticsMetric.js";import{Tag as r}from"../../tag/Tag.js";import"../../analytics-chips-and-dropdowns/chart/LineChart/LineChart.js";import"react-bootstrap";import"../../analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js";import"../../analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js";import"../../analytics-chips-and-dropdowns/chart/Pie/PieChart.js";import"../../analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js";import"../../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js";import"../../analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js";import"../../analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js";import"../../analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js";import o from"../../../assets/icons/cross.svg.js";import{FilterType as e}from"../types/SearchFilter.type.js";const n=n=>{let{selectedState:l,onDeSelect:s}=n;return t(a,{children:l.map((n=>{var l,p,d,c,h,m,u;return n.type===e.Multiple?t(a,{children:null===(l=n.value)||void 0===l?void 0:l.map((a=>{var i,e;return t(r,{onTrailingIconClicked:()=>s(n.id,a),style:{cursor:"pointer"},tagText:null!==(e=null===(i=a.label)||void 0===i?void 0:i.slice(0,10))&&void 0!==e?e:"",type:"neutral",theme:"light",TrailingIcon:o},`${n.id}-${a.value}`)}))}):n.type===e.Date?t(r,{onTrailingIconClicked:()=>s(n.id,n.value),style:{cursor:"pointer"},tagText:i(n.value),type:"neutral",theme:"light",TrailingIcon:o},n.id):n.type===e.DateRange?t(r,{onTrailingIconClicked:()=>s(n.id,n.value),style:{cursor:"pointer"},tagText:`${i(null===(p=n.value)||void 0===p?void 0:p[0])} to ${i(null===(d=n.value)||void 0===d?void 0:d[1])}`,type:"neutral",theme:"light",TrailingIcon:o},n.id):t(r,{onTrailingIconClicked:()=>s(n.id,n.value),style:{cursor:"pointer"},tagText:n.type===e.Single?null!==(h=null===(c=n.value)||void 0===c?void 0:c.label)&&void 0!==h?h:"":null!==(u=null===(m=n.value)||void 0===m?void 0:m.toString())&&void 0!==u?u:"",type:"neutral",theme:"light",TrailingIcon:o},n.id)}))})};export{n as FilterChipListRenderer};
1
+ import{jsx as t,Fragment as a}from"react/jsx-runtime";import"@tippyjs/react";import"react";import"../../tooltips/TooltipInternal.js";import"../../../constants/Theme.js";import"../../TypographyStyle.js";import"../../analytics-chips-and-dropdowns/CommonStyles.js";import{formatDate as i}from"../../analytics-chips-and-dropdowns/AnalyticsDropdown.js";import"../../analytics-chips-and-dropdowns/AnalyticsMetric.js";import{Tag as r}from"../../tag/Tag.js";import"../../analytics-chips-and-dropdowns/chart/LineChart/LineChart.js";import"react-bootstrap";import"../../analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js";import"../../analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js";import"../../analytics-chips-and-dropdowns/chart/Pie/PieChart.js";import"../../analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js";import"../../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js";import"../../analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js";import"../../analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js";import"../../analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js";import o from"../../../assets/icons/cross.svg.js";import{FilterType as e}from"../types/SearchFilter.type.js";const n=n=>{let{selectedState:l,onDeSelect:p}=n;return t(a,{children:l.map((n=>{var l,s,d,c,h,m,y;return n.type===e.Multiple?t(a,{children:null===(l=n.value)||void 0===l?void 0:l.map((a=>{var i,e;return t(r,{onTrailingIconClicked:()=>p(n.id,a),style:{cursor:"pointer"},tagText:null!==(e=null===(i=a.label)||void 0===i?void 0:i.slice(0,10))&&void 0!==e?e:"",type:"neutral",theme:"light",TrailingIcon:o},`${n.id}-${a.value}`)}))}):n.type===e.Date?t(r,{onTrailingIconClicked:()=>p(n.id,n.value),style:{cursor:"pointer"},tagText:i(n.value),type:"neutral",theme:"light",TrailingIcon:o},n.id):n.type===e.DateRange?t(r,{onTrailingIconClicked:()=>p(n.id,n.value),style:{cursor:"pointer"},tagText:`${i(null===(s=n.value)||void 0===s?void 0:s[0])} to ${i(null===(d=n.value)||void 0===d?void 0:d[1])}`,type:"neutral",theme:"light",TrailingIcon:o},n.id):t(r,{onTrailingIconClicked:()=>p(n.id,n.value),style:{cursor:"pointer"},tagText:n.type===e.Single?null!==(h=null===(c=n.value)||void 0===c?void 0:c.label)&&void 0!==h?h:"":null!==(y=null===(m=n.value)||void 0===m?void 0:m.toString())&&void 0!==y?y:"",type:"neutral",theme:"light",TrailingIcon:o},n.id)}))})};export{n as FilterChipListRenderer};
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import"../../tooltips/Tooltip.js";import"../../../constants/Theme.js";import"../../TypographyStyle.js";import"../../analytics-chips-and-dropdowns/CommonStyles.js";import{AnalyticsDropdown as o}from"../../analytics-chips-and-dropdowns/AnalyticsDropdown.js";import"react";import"../../analytics-chips-and-dropdowns/AnalyticsMetric.js";import"../../tag/Tag.js";import"../../analytics-chips-and-dropdowns/chart/LineChart/LineChart.js";import"react-bootstrap";import"../../analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js";import"../../analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js";import"../../analytics-chips-and-dropdowns/chart/Pie/PieChart.js";import"../../analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js";import"../../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js";import"../../analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js";import"../../analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js";import"../../analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js";import"../../dropdown/DropdownPopover/index.js";import{Dropdown as e}from"../../dropdown/Dropdown.js";import{ChipDropdown as n}from"../../dropdown/ChipDropdown.js";import"../../zeroState/ZeroState.js";import"../../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../../checkBox/CheckBox.styled.js";import"../../list-item/ListItem.js";import"../../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../../button/Button.js";import"../../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../../input/Input.js";import"../../dropdown/MenuItem/MenuItem.js";import{FilterType as a}from"../types/SearchFilter.type.js";import{DatePickerButton as r}from"./DatePickerButton.js";import{DateRangeOnlyButton as p}from"./DateRangeOnlyButton.js";const i=[{label:"Last 7 days",value:"7 days",key:7,noOfDays:7},{label:"Last 30 days",value:"30 days",key:30,noOfDays:30},{label:"Custom range",value:"calender",key:"custom",isCustom:!0,dateRangeSelectionOptions:{selectRange:!0}}],s=s=>{var d,l,c;return s.type===a.Date?t(r,Object.assign({},s,{variant:s.variant,onSelect:t=>s.onChange(t)})):s.type===a.DateRange?s.rangePickerDateOnly?t(p,Object.assign({},s,{variant:s.variant,onSelect:t=>s.onChange(t)})):t(o,{datePickerPlacement:s.datePickerPlacement,variant:s.variant,placeholder:s.text,options:s.preset?i:null!==(d=s.options)&&void 0!==d?d:[],onOptionSelected:function(t){var o,e;t.selectedRange&&s.onChange([null===(o=t.selectedRange)||void 0===o?void 0:o[0],null===(e=t.selectedRange)||void 0===e?void 0:e[1]])}},s.id):"small"===s.variant?t(n,{isMultiSelect:s.type===a.Multiple,options:null!==(l=s.options)&&void 0!==l?l:[],defaultOptions:s.defaultValue,onSelect:s.onChange,placeHolder:s.text}):t(e,{isMultiSelect:s.type===a.Multiple,size:"small",options:null!==(c=s.options)&&void 0!==c?c:[],defaultOptions:s.defaultValue,onSelect:s.onChange,placeHolder:s.text,width:10*s.text.length+"px"})};export{s as SearchFilterItem};
1
+ import{jsx as t}from"react/jsx-runtime";import"@tippyjs/react";import"react";import"../../tooltips/TooltipInternal.js";import"../../../constants/Theme.js";import"../../TypographyStyle.js";import"../../analytics-chips-and-dropdowns/CommonStyles.js";import{AnalyticsDropdown as o}from"../../analytics-chips-and-dropdowns/AnalyticsDropdown.js";import"../../analytics-chips-and-dropdowns/AnalyticsMetric.js";import"../../tag/Tag.js";import"../../analytics-chips-and-dropdowns/chart/LineChart/LineChart.js";import"react-bootstrap";import"../../analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js";import"../../analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js";import"../../analytics-chips-and-dropdowns/chart/Pie/PieChart.js";import"../../analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js";import"../../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js";import"../../analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js";import"../../analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js";import"../../analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js";import"../../dropdown/DropdownPopover/index.js";import{Dropdown as e}from"../../dropdown/Dropdown.js";import{ChipDropdown as n}from"../../dropdown/ChipDropdown.js";import"../../zeroState/ZeroState.js";import"../../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../../checkBox/CheckBox.styled.js";import"../../list-item/ListItem.js";import"../../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../../button/Button.js";import"../../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../../input/Input.js";import"../../dropdown/MenuItem/MenuItem.js";import{FilterType as r}from"../types/SearchFilter.type.js";import{DatePickerButton as a}from"./DatePickerButton.js";const p=[{label:"Last 7 days",value:"7 days",key:7,noOfDays:7},{label:"Last 30 days",value:"30 days",key:30,noOfDays:30},{label:"Custom range",value:"calender",key:"custom",isCustom:!0,dateRangeSelectionOptions:{selectRange:!0}}],i=i=>{var s,d,l;return i.type===r.Date?t(a,Object.assign({},i,{variant:i.variant,onSelect:t=>i.onChange(t)})):i.type===r.DateRange?t(o,{variant:i.variant,placeholder:i.text,options:i.preset?p:null!==(s=i.options)&&void 0!==s?s:[],onOptionSelected:function(t){var o,e;t.selectedRange&&i.onChange([null===(o=t.selectedRange)||void 0===o?void 0:o[0],null===(e=t.selectedRange)||void 0===e?void 0:e[1]])}},i.id):"small"===i.variant?t(n,{isMultiSelect:i.type===r.Multiple,options:null!==(d=i.options)&&void 0!==d?d:[],defaultOptions:i.defaultValue,onSelect:i.onChange,placeHolder:i.text}):t(e,{isMultiSelect:i.type===r.Multiple,size:"small",options:null!==(l=i.options)&&void 0!==l?l:[],defaultOptions:i.defaultValue,onSelect:i.onChange,placeHolder:i.text,width:10*i.text.length+"px"})};export{i as SearchFilterItem};
@@ -1,4 +1,3 @@
1
- import { DropDirection } from 'react-bootstrap/esm/DropdownContext';
2
1
  import { DropdownOptions } from "../../analytics-chips-and-dropdowns";
3
2
  import { DropdownOption } from "../../dropdown/type";
4
3
  import { InputVariant } from "../../input";
@@ -24,9 +23,6 @@ export type FilterSchema = {
24
23
  preset?: boolean;
25
24
  defaultValue?: FilterValueType;
26
25
  width?: number | string;
27
- datePickerPlacement?: DropDirection;
28
- /** show oly the picker like date filter instead of dropdown */
29
- rangePickerDateOnly?: boolean;
30
26
  };
31
27
  export type SearchFilterProps = {
32
28
  variant: InputVariant;
@@ -1 +1 @@
1
- import{jsxs as e,jsx as t}from"react/jsx-runtime";import s from"../../assets/icons/chevronLeft.svg.js";import o from"../../assets/icons/chevronRight.svg.js";import{StyledTablePaginationContainer as i,StyledPagingContainer as n}from"./TablePagination.styled.js";import{DEFAULT_THEME as a}from"../../constants/Theme.js";import{Dropdown as r}from"../dropdown/Dropdown.js";import{BodySecondary as c}from"../TypographyStyle.js";const l=l=>{let{pageNumber:d,pageSize:p,totalRows:g,updatePageNumber:h,updatePageSize:m,hidePageSizeOptions:b}=l;const j=a.colorsV2,v=(d-1)*p+1,y=(d-1)*p+p,f=Math.ceil(g/p),u=1==f;let w=[];w=f>=5?d===f?[d-4,d-3,d-2,d-1,d]:1===d?[d,d+1,d+2,d+3,d+4]:2===d?[d-1,d,d+1,d+2,d+3]:d===f-1?[d-3,d-2,d-1,d,d+1]:[d-2,d-1,d,d+1,d+2]:Array.from({length:f},((e,t)=>t+1));return e(i,{children:[!b&&t("div",{children:t(r,{size:"small",options:[{label:"5 rows per page",value:"5",selected:5===p},{label:"10 rows per page",value:"10",selected:10===p},{label:"20 rows per page",value:"20",selected:20===p}],onSelect:m,width:"162px"})}),e("div",Object.assign({className:"paging__container"},{children:[!b&&g&&e(c,Object.assign({style:{color:j.content.placeholder,marginRight:8}},{children:["Showing ",v,"-",y>g?g:y," of"," ",g," results"]})),e("div",Object.assign({className:"pages__buttons-container"},{children:[!u&&t(n,Object.assign({active:!1,onClick:()=>{1!==d&&h(Math.max(d-1,1))},disabled:1===d},{children:t(s,{color:j.content.secondary,height:14,width:14})})),w.map((e=>t(n,Object.assign({active:e==d,onClick:()=>h(e),style:{display:1==e&&g<=p?"none":"flex"}},{children:t(c,Object.assign({style:{color:e==d?j.content.primaryInverse:j.content.secondary}},{children:e}))}),e))),!u&&t(n,Object.assign({isLast:!0,active:!1,onClick:()=>{d!==f&&h(Math.min(d+1,f))},disabled:d===f},{children:t(o,{color:j.content.secondary,height:14,width:14})}))]}))]}))]})};export{l as TablePagination};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import s from"../../assets/icons/chevronLeft.svg.js";import o from"../../assets/icons/chevronRight.svg.js";import{StyledTablePaginationContainer as i,StyledPagingContainer as n}from"./TablePagination.styled.js";import{DEFAULT_THEME as a}from"../../constants/Theme.js";import{BodySecondary as r}from"../TypographyStyle.js";import{Dropdown as c}from"../dropdown/Dropdown.js";const l=l=>{let{pageNumber:d,pageSize:p,totalRows:g,updatePageNumber:h,updatePageSize:m,hidePageSizeOptions:b}=l;const j=a.colorsV2,v=(d-1)*p+1,y=(d-1)*p+p,f=Math.ceil(g/p),u=1==f;let w=[];w=f>=5?d===f?[d-4,d-3,d-2,d-1,d]:1===d?[d,d+1,d+2,d+3,d+4]:2===d?[d-1,d,d+1,d+2,d+3]:d===f-1?[d-3,d-2,d-1,d,d+1]:[d-2,d-1,d,d+1,d+2]:Array.from({length:f},((e,t)=>t+1));return e(i,{children:[!b&&t("div",{children:t(c,{size:"small",options:[{label:"5 rows per page",value:"5",selected:5===p},{label:"10 rows per page",value:"10",selected:10===p},{label:"20 rows per page",value:"20",selected:20===p}],onSelect:m,width:"162px"})}),e("div",Object.assign({className:"paging__container"},{children:[!b&&g&&e(r,Object.assign({style:{color:j.content.placeholder,marginRight:8}},{children:["Showing ",v,"-",y>g?g:y," of"," ",g," results"]})),e("div",Object.assign({className:"pages__buttons-container"},{children:[!u&&t(n,Object.assign({active:!1,onClick:()=>{1!==d&&h(Math.max(d-1,1))},disabled:1===d},{children:t(s,{color:j.content.secondary,height:14,width:14})})),w.map((e=>t(n,Object.assign({active:e==d,onClick:()=>h(e),style:{display:1==e&&g<=p?"none":"flex"}},{children:t(r,Object.assign({style:{color:e==d?j.content.primaryInverse:j.content.secondary}},{children:e}))}),e))),!u&&t(n,Object.assign({isLast:!0,active:!1,onClick:()=>{d!==f&&h(Math.min(d+1,f))},disabled:d===f},{children:t(o,{color:j.content.secondary,height:14,width:14})}))]}))]}))]})};export{l as TablePagination};
@@ -12,7 +12,5 @@ export interface AccordionProps {
12
12
  showBorders?: boolean;
13
13
  backgroundColor?: string;
14
14
  refresh?: number | boolean;
15
- autoOpen?: boolean;
16
- childrenMaxHeight?: number;
17
15
  }
18
16
  export declare const BikAccordion: React.FC<AccordionProps>;
@@ -1 +1 @@
1
- import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as n,useRef as t,useEffect as o}from"react";import{TitleRegular as i,BodySecondary as c}from"../TypographyStyle.js";import a from"./Accordion.style.js";import s from"./AccordionArrow.js";const l=l=>{var d;const[h,u]=n(!1),v=t(null),g=t(null);o((()=>{l.autoOpen&&m(l.autoOpen,{})}),[l.autoOpen]);const m=(e,r)=>{var n;g.current&&v.current&&("keydown"===r.type&&"Enter"!==r.key||(u(e),g.current.style.maxHeight?(g.current.style.maxHeight="",v.current.style.transform="rotate(0deg)",v.current.style.transition="transform 0.25s ease-in-out",g.current.style.transition="padding 0s"):(g.current.style.maxHeight=(null!==(n=l.childrenMaxHeight)&&void 0!==n?n:g.current.scrollHeight)+"px",v.current.style.transform="rotate(180deg)",v.current.style.transition="transform 0.25s ease-in-out",g.current.style.transition="max-height 0.25s ease-in-out")))};return o((()=>{var e;h&&(null==l?void 0:l.refresh)&&(null===(e=null==g?void 0:g.current)||void 0===e?void 0:e.scrollHeight)&&!l.childrenMaxHeight&&setTimeout((()=>{g.current.style.maxHeight=g.current.scrollHeight+"px"}),100)}),[h,null==l?void 0:l.refresh,null===(d=null==g?void 0:g.current)||void 0===d?void 0:d.scrollHeight]),e(a,Object.assign({className:"accordion",isActive:h,width:null==l?void 0:l.width,contentMargin:null==l?void 0:l.contentMargin,headerPadding:l.headerPadding,skipHoverState:l.skipHoverHeader,showBorders:l.showBorders,backgroundColor:l.backgroundColor},{children:[e("div",Object.assign({className:"accordion__overview "+(h?"active":""),onClick:e=>m(!h,e),onKeyDown:e=>m(!h,e),role:"button",tabIndex:0},{children:[!l.rightActionComponent&&e("div",Object.assign({className:"accordion__overview__header"},{children:["string"==typeof l.header?r(i,{children:null==l?void 0:l.header}):l.header,r(s,{isNewIcon:!0,ref:v})]})),l.rightActionComponent&&e("div",Object.assign({className:"accordion__overview__header"},{children:[e("div",Object.assign({className:"accordion__overview__title-wrapper"},{children:[r(s,{isNewIcon:!0,ref:v}),"string"==typeof l.header?r(i,{children:null==l?void 0:l.header}):l.header]})),r("div",Object.assign({onClick:e=>e.stopPropagation(),onKeyDown:e=>{"Enter"===e.key&&e.stopPropagation()},role:"button",tabIndex:0},{children:l.rightActionComponent}))]})),(null==l?void 0:l.caption)&&r("div",Object.assign({className:"accordion__overview__caption"},{children:r(c,{children:l.caption})}))]})),r("div",Object.assign({ref:g,className:"accordion__content"},{children:l.children}))]}))};export{l as BikAccordion};
1
+ import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as n,useRef as t,useEffect as o}from"react";import{TitleRegular as i,BodySecondary as c}from"../TypographyStyle.js";import a from"./Accordion.style.js";import s from"./AccordionArrow.js";const l=l=>{var d;const[h,u]=n(!1),v=t(null),g=t(null),m=(e,r)=>{g.current&&v.current&&("keydown"===r.type&&"Enter"!==r.key||(u(e),g.current.style.maxHeight?(g.current.style.maxHeight="",v.current.style.transform="rotate(0deg)",v.current.style.transition="transform 0.25s ease-in-out",g.current.style.transition="padding 0s"):(g.current.style.maxHeight=g.current.scrollHeight+"px",v.current.style.transform="rotate(180deg)",v.current.style.transition="transform 0.25s ease-in-out",g.current.style.transition="max-height 0.25s ease-in-out")))};return o((()=>{var e;h&&(null==l?void 0:l.refresh)&&(null===(e=null==g?void 0:g.current)||void 0===e?void 0:e.scrollHeight)&&setTimeout((()=>{g.current.style.maxHeight=g.current.scrollHeight+"px"}),100)}),[h,null==l?void 0:l.refresh,null===(d=null==g?void 0:g.current)||void 0===d?void 0:d.scrollHeight]),e(a,Object.assign({className:"accordion",isActive:h,width:null==l?void 0:l.width,contentMargin:null==l?void 0:l.contentMargin,headerPadding:l.headerPadding,skipHoverState:l.skipHoverHeader,showBorders:l.showBorders,backgroundColor:l.backgroundColor},{children:[e("div",Object.assign({className:"accordion__overview "+(h?"active":""),onClick:e=>m(!h,e),onKeyDown:e=>m(!h,e),role:"button",tabIndex:0},{children:[!l.rightActionComponent&&e("div",Object.assign({className:"accordion__overview__header"},{children:["string"==typeof l.header?r(i,{children:null==l?void 0:l.header}):l.header,r(s,{isNewIcon:!1,ref:v})]})),l.rightActionComponent&&e("div",Object.assign({className:"accordion__overview__header"},{children:[e("div",Object.assign({className:"accordion__overview__title-wrapper"},{children:[r(s,{isNewIcon:!0,ref:v}),"string"==typeof l.header?r(i,{children:null==l?void 0:l.header}):l.header]})),r("div",Object.assign({onClick:e=>e.stopPropagation(),onKeyDown:e=>{"Enter"===e.key&&e.stopPropagation()},role:"button",tabIndex:0},{children:l.rightActionComponent}))]})),(null==l?void 0:l.caption)&&r("div",Object.assign({className:"accordion__overview__caption"},{children:r(c,{children:l.caption})}))]})),r("div",Object.assign({ref:g,className:"accordion__content"},{children:l.children}))]}))};export{l as BikAccordion};
@@ -6,6 +6,5 @@ declare const AccordionStyle: import("styled-components").StyledComponent<"div",
6
6
  headerPadding?: string | undefined;
7
7
  showBorders?: boolean | undefined;
8
8
  backgroundColor?: string | undefined;
9
- hasChildrenMaxHeight?: boolean | undefined;
10
9
  }, never>;
11
10
  export default AccordionStyle;
@@ -29,7 +29,7 @@ import e from"styled-components";import{COLORS as r}from"../../constants/Theme.j
29
29
  }
30
30
  &__content {
31
31
  ${e=>e.isActive?{margin:(null==e?void 0:e.contentMargin)||"0px"}:{}};
32
- overflow: ${e=>e.hasChildrenMaxHeight?"scroll":"hidden"};
32
+ overflow: hidden;
33
33
  max-height: 0;
34
34
  }
35
35
  }
@@ -7,7 +7,6 @@ export interface VariableListInterfaceV2 {
7
7
  }
8
8
  export interface Variable {
9
9
  description?: string;
10
- defaultValue?: string;
11
10
  displayName: string;
12
11
  actualValue: string;
13
12
  variableType: string;
@@ -30,29 +29,18 @@ export interface AddVariableProps {
30
29
  isSearchRequired?: boolean;
31
30
  isModalState?: boolean;
32
31
  leftPosition?: number;
33
- topPosition?: string;
34
32
  pickerSize?: string;
35
33
  enableVariable?: boolean;
36
34
  isEvaluationList?: boolean;
37
35
  onSearchBlur?: (e: any) => void;
38
36
  id?: string;
39
37
  selectWithTypes?: boolean;
40
- positionStrategy?: 'static' | 'fixed';
41
- zindex?: number;
42
- hasHeader?: boolean;
43
- height?: string;
44
- needsBorder?: boolean;
45
- reRender?: string;
46
- styledCloseBtn?: boolean;
47
- width?: string;
48
- readonly?: boolean;
49
38
  }
50
39
  type Props = AddVariableProps;
51
40
  export interface VariableBoxProps {
52
41
  item: Variable;
53
42
  raw?: string;
54
43
  parentKey?: string;
55
- readonly?: boolean;
56
44
  }
57
45
  export declare const AddVariableV2: React.FC<Props>;
58
46
  export {};
@@ -1 +1 @@
1
- import{__awaiter as e}from"../../_virtual/_tslib.js";import{jsx as a,jsxs as i,Fragment as s}from"react/jsx-runtime";import l from"../../assets/icons/back_icon.svg.js";import t from"../../assets/icons/chevronRightAlt.svg.js";import n from"../../assets/icons/cross.svg.js";import r from"../../assets/icons/plus.svg.js";import o from"../../assets/icons/undo.svg.js";import{memo as c,useState as d,useEffect as b}from"react";import{AddVariableStyled as v}from"./AddVariableV2.styled.js";import{Button as m}from"../button/Button.js";import{IconButton as h}from"../icon-button/IconButton.js";import{SearchBar as g}from"../searchBar/searchBar.js";import{Tooltip as p}from"../tooltips/Tooltip.js";import{COLORS as u}from"../../constants/Theme.js";import{CloseButtonContainer as y}from"../modals/modal.styled.js";import{Switch as j}from"../switch/Switch.js";import{BodySecondary as f,TitleSmall as O,BodyCaption as N}from"../TypographyStyle.js";const V=c((c=>{const{data:V,hasHeader:w=!0,needsBorder:S=!0,styledCloseBtn:_=!1,readonly:C=!1}=c,[T,k]=d({}),[x,L]=d(),[B,I]=d(""),[A,F]=d(""),[H,E]=d(!0),z=/^[^.]*\.[^.]*$/,[P,R]=d(c.data),[$,M]=d(!0);b((()=>{const e={};V.forEach((a=>{e[a.displayName]=[]})),L(e)}),[V]),b((()=>{G(!0)}),[]),b((()=>{G($,!B)}),[T,B]),b((()=>{M(!0),F(""),D([],B),L((e=>Object.assign(Object.assign({},e),{[B]:[]}))),I("");const e=c.data.map((e=>J(e))).filter((e=>null!==e));R(e),e.length>0?E(!0):E(!1)}),[c.reRender]),b((()=>{let e=c.data;B&&(e=[T[B]]);W(e,$).length>0?E(!0):E(!1)}),[A]);const W=function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.flatMap((e=>Object.keys(e.variables).filter((i=>{var s;return(null===(s=e.variables[i].displayName)||void 0===s?void 0:s.toLowerCase().includes(A.toLowerCase()))&&(!a||e.variables[i].isAvailable===a)||q(e.variables[i])}))))},D=(e,a)=>{const i=V.find((e=>e.displayName===a));if(i){let s=i;e.forEach(((e,a)=>{s=s.variables[e]})),k((e=>Object.assign(Object.assign({},e),{[a]:s})))}},q=e=>{let a=!1;if(e.isSubHeader&&e.variables){const i=Object.keys(e.variables);for(let s=0;s<i.length;s++){const l=i[s];if(e.variables&&e.variables[l].displayName.toLowerCase().includes(A.toLowerCase())&&e.variables[l].isAvailable===$){a=!0;break}}}return a},G=function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(M(e),e){let i=[];if(!B||a)i=c.data.map((e=>J(e))).filter((e=>null!==e));else{const e=T[B];i=c.data.filter((e=>e.displayName===B)).map((a=>J(a,e))).filter((e=>null!=e))}R(i),A&&(i=W(i,e)),i.length>0?E(!0):E(!1)}else if(R(c.data),A){W(c.data,e).length>0?E(!0):E(!1)}else E(!0)};function J(e,a){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(a)for(const s in e.variables)if(e.variables[s].displayName===a.displayName)for(const a in e.variables[s].variables)e.variables[s].variables[a].isAvailable&&(i[a]=e.variables[s].variables[a]);else e.variables[s].isSubHeader&&J(e.variables[s],a,i);else for(const a in e.variables)e.variables[a].isAvailable&&(i[a]=e.variables[a]);return 0===Object.keys(i).length?null:Object.assign(Object.assign({},e),{variables:i})}const K=e=>{const i=e.item.description;return e.readonly?a("div",{children:a(Q,{item:e.item,readonly:e.readonly})}):a(s,{children:a(p,Object.assign({body:"",tooltipContent:a(N,Object.assign({color:u.content.primaryInverse,style:{whiteSpace:"pre-line",padding:8}},{children:e.item.isAvailable?i?`• ${i}\n• Recommended here`:"Recommended here":"Not recommended here"})),width:300,delay:300,placement:"bottom"},{children:a("div",{children:a(Q,{item:e.item})})}))})},Q=e=>a(m,{darkMode:c.enableVariable?c.enableVariable:e.item.isAvailable,size:"chip",disabled:!!e.readonly&&!e.item.isSubHeader,LeadingIcon:e.item.isSubHeader||e.readonly?void 0:r,TrailingIcon:()=>e.item.isSubHeader?a("div",Object.assign({className:"icon-trailing",style:{display:"flex"}},{children:a(t,{})})):a(s,{}),buttonText:e.item.displayName}),U=(e,i)=>$&&!e.isAvailable?a(s,{}):a("div",Object.assign({onClick:e.isSubHeader?()=>{W([e],$).length||E(!1),F("");const a=[...x[B],i];D(a,B),L((e=>Object.assign(Object.assign({},e),{[B]:a})))}:()=>{c.customTrigger?(c.customTrigger(e),c.setShowVariable(!1)):c.isEvaluationList?Y(e):c.setVariableValue(c.selectWithTypes?{actualValue:e.actualValue,variableType:e.variableType,needsFetching:e.needsFetching}:e.actualValue)}},{children:a(K,{item:e,readonly:C})})),X=(e,a)=>{const i=[...x[e.displayName],a];D(i,e.displayName),L((a=>Object.assign(Object.assign({},a),{[e.displayName]:i}))),I(e.displayName)},Y=e=>{if(e.actualValue.match(z)){const a=e.actualValue.replace("{{","").replace("}}","").split("."),i=a[0]+`['${a[1]}']`;c.setVariableValue(c.selectWithTypes?{actualValue:i,variableType:e.variableType,needsFetching:e.needsFetching}:i)}else{const a=e.actualValueEval?e.actualValueEval:e.actualValue;c.setVariableValue(c.selectWithTypes?{actualValue:a,variableType:e.variableType,needsFetching:e.needsFetching}:a)}},Z=(e,a)=>{if(c.customTrigger)c.customTrigger(e.variables[a]),c.setShowVariable(!1);else if(c.isEvaluationList){const i=e.variables[a];Y(i)}else c.setVariableValue(c.selectWithTypes?{actualValue:e.variables[a].actualValue,variableType:e.variables[a].variableType,needsFetching:e.variables[a].needsFetching}:e.variables[a].actualValue)},ee=c.isModalState?void 0:{top:`${c.topPosition?c.topPosition:"small"===c.pickerSize?"300px":"60px"}`,left:`${c.leftPosition?c.leftPosition+24:430}px`};return a("div",Object.assign({id:"varList",tabIndex:-1},{children:i(v,Object.assign({style:ee,onClick:e=>{e.stopPropagation()},pickerSize:c.pickerSize||"large",isModalState:c.isModalState,positionStrategy:c.positionStrategy,zIndex:c.zindex,height:c.height,needsBorder:S,width:c.width},{children:[_&&a(y,Object.assign({onClick:()=>{c.setShowVariable(!1)},style:{zIndex:300}},{children:a(n,{height:20,width:20,color:u.content.secondary})})),c.showVariable&&i("div",Object.assign({className:"popup"},{children:[i("div",Object.assign({className:"sticky__bar"},{children:[w&&i("div",Object.assign({className:"header__bar"},{children:[a("div",Object.assign({className:"add__variable"},{children:"Add a new variable"})),!_&&a("div",Object.assign({onClick:()=>{c.setShowVariable(!1)},style:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:a(h,{iconButtonType:"default",Icon:n})}))]})),i("div",Object.assign({className:"search__bar",onBlur:e=>{c.onSearchBlur&&c.onSearchBlur(e)}},{children:[a(g,{width:"100%",isEnabled:!0,onChange:e=>{F(e)},onEnter:()=>{},reset:!A,placeholder:"Search...",variant:"default"}),i("div",Object.assign({style:{display:"flex",alignItems:"center",marginTop:8,justifyContent:"space-between"}},{children:[a(f,Object.assign({style:{color:u.content.secondary}},{children:"Show only recommended variables"})),a(j,{value:$,onValueChange:a=>e(void 0,void 0,void 0,(function*(){return yield G(a)}))})]}))]})),B&&x[B].length>0&&i("div",Object.assign({className:"nav__bar"},{children:[i("div",Object.assign({className:"left__nav"},{children:[a(h,{Icon:l,style:{color:"#919191",display:"flex"},onClick:()=>{F("");const e=x[B].slice(0,-1);D(e,B),L((a=>Object.assign(Object.assign({},a),{[B]:e}))),e.length||I("")}}),i("div",Object.assign({className:"block"},{children:[a(O,{children:T[B].displayName}),T[B].description&&a(N,{children:T[B].description})]}))]})),i("div",Object.assign({className:"right__nav"},{children:[a(h,{Icon:o,style:{display:"flex"},onClick:()=>{F(""),D([],B),L((e=>Object.assign(Object.assign({},e),{[B]:[]}))),I("")}}),a("div",{children:"First page"})]}))]}))]})),!H&&i("div",Object.assign({style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",marginTop:16}},{children:[a(O,{children:"No results found!"}),a(N,$?{children:"Sorry we could not find any recommended variables"}:{children:`Sorry we could not find any results for "${A}"`})]})),a("div",Object.assign({className:"wrapper"},{children:a("div",Object.assign({className:"list__map"},{children:i("div",Object.assign({className:"items"},{children:[!B&&P.map((e=>{let l=[];return A&&(l=Object.keys(e.variables).filter((a=>{var i;return(null===(i=e.variables[a].displayName)||void 0===i?void 0:i.toLowerCase().includes(A.toLowerCase()))||q(e.variables[a])}))),i(s,{children:[A?l.length>0?i("div",Object.assign({className:"block"},{children:[a("div",Object.assign({className:"heading__font"},{children:null==e?void 0:e.displayName})),a(N,Object.assign({style:{marginBottom:8,color:"#616161"}},{children:null==e?void 0:e.description}))]})):a(s,{}):i("div",Object.assign({className:"block"},{children:[a("div",Object.assign({className:"heading__font"},{children:null==e?void 0:e.displayName})),a(N,Object.assign({style:{marginBottom:8,color:"#616161"}},{children:null==e?void 0:e.description}))]})),Object.keys(e.variables).map((i=>{var l;return A?(null===(l=e.variables[i].displayName)||void 0===l?void 0:l.toLowerCase().includes(A.toLowerCase()))||q(e.variables[i])?a("div",Object.assign({onClick:e.variables[i].isSubHeader?()=>X(e,i):()=>Z(e,i)},{children:a(K,{item:e.variables[i],readonly:C})})):a(s,{}):a("div",Object.assign({onClick:e.variables[i].isSubHeader?()=>X(e,i):()=>Z(e,i)},{children:a(K,{item:e.variables[i],readonly:C})}))}))]})})),B&&a("div",Object.assign({className:"list__map"},{children:a("div",Object.assign({className:"items",style:{marginTop:16}},{children:Object.keys(T[B].variables).map(((e,i)=>{var l;return A?(null===(l=T[B].variables[e].displayName)||void 0===l?void 0:l.toLowerCase().includes(A.toLowerCase()))||q(T[B].variables[e])?U(T[B].variables[e],e):a(s,{}):U(T[B].variables[e],e)}))}))}))]}))}))})),a("div",{className:"bottom__padding"})]}))]}))}))}),((e,a)=>e.enableVariable===a.enableVariable&&(e.leftPosition===a.leftPosition&&e.reRender===a.reRender)));export{V as AddVariableV2};
1
+ import{jsx as e,jsxs as a,Fragment as i}from"react/jsx-runtime";import s from"../../assets/icons/back_icon.svg.js";import l from"../../assets/icons/chevronRightAlt.svg.js";import t from"../../assets/icons/cross.svg.js";import r from"../../assets/icons/plus.svg.js";import n from"../../assets/icons/undo.svg.js";import{memo as c,useState as o,useEffect as d}from"react";import{AddVariableStyled as b}from"./AddVariableV2.styled.js";import{Button as m}from"../button/Button.js";import{IconButton as v}from"../icon-button/IconButton.js";import{SearchBar as p}from"../searchBar/searchBar.js";import{Tooltip as g}from"../tooltips/Tooltip.js";import{COLORS as h}from"../../constants/Theme.js";import{TitleSmall as u,BodyCaption as y}from"../TypographyStyle.js";const j=c((c=>{const{data:j}=c,[f,O]=o({}),[N,V]=o(),[T,_]=o(""),[k,C]=o(""),[S,w]=o(!0),L=/^[^.]*\.[^.]*$/;d((()=>{const e={};j.forEach((a=>{e[a.displayName]=[]})),V(e)}),[j]),d((()=>{if(k){c.data.filter((e=>Object.keys(e.variables).filter((a=>{var i;return(null===(i=e.variables[a].displayName)||void 0===i?void 0:i.toLowerCase().includes(k.toLowerCase()))||B(e.variables[a])})).length>0)).length>0?w(!0):w(!1)}else w(!0)}),[k]);const x=(e,a)=>{const i=j.find((e=>e.displayName===a));if(i){let s=i;e.forEach(((e,a)=>{s=s.variables[e]})),O((e=>Object.assign(Object.assign({},e),{[a]:s})))}},B=e=>{let a=!1;if(e.isSubHeader&&e.variables){const i=Object.keys(e.variables);for(let s=0;s<i.length;s++){const l=i[s];if(e.variables&&e.variables[l].displayName.toLowerCase().includes(k.toLowerCase())){a=!0;break}}}return a},I=a=>{const s=a.item.description;return e(i,{children:e(g,Object.assign({body:"",tooltipContent:e(y,Object.assign({color:h.content.primaryInverse,style:{whiteSpace:"pre-line",padding:8}},{children:a.item.isAvailable?s?`• ${s}\n• Recommended here`:"Recommended here":"Not recommended here"})),width:300,delay:300,placement:"bottom"},{children:e("div",{children:e(F,{item:a.item})})}))})},F=a=>e(m,{darkMode:c.enableVariable?c.enableVariable:a.item.isAvailable,size:"chip",LeadingIcon:a.item.isSubHeader?void 0:r,TrailingIcon:()=>a.item.isSubHeader?e("div",Object.assign({className:"icon-trailing",style:{display:"flex"}},{children:e(l,{})})):e(i,{}),buttonText:a.item.displayName}),E=(a,i)=>e("div",Object.assign({onClick:a.isSubHeader?()=>{const e=[...N[T],i];x(e,T),V((a=>Object.assign(Object.assign({},a),{[T]:e})))}:()=>{c.customTrigger?(c.customTrigger(a),c.setShowVariable(!1)):c.isEvaluationList?A(a):c.setVariableValue(c.selectWithTypes?{actualValue:a.actualValue,variableType:a.variableType,needsFetching:a.needsFetching}:a.actualValue)}},{children:e(I,{item:a})})),H=(e,a)=>{const i=[...N[e.displayName],a];x(i,e.displayName),V((a=>Object.assign(Object.assign({},a),{[e.displayName]:i}))),_(e.displayName)},A=e=>{if(e.actualValue.match(L)){const a=e.actualValue.replace("{{","").replace("}}","").split("."),i=a[0]+`['${a[1]}']`;c.setVariableValue(c.selectWithTypes?{actualValue:i,variableType:e.variableType,needsFetching:e.needsFetching}:i)}else{const a=e.actualValueEval?e.actualValueEval:e.actualValue;c.setVariableValue(c.selectWithTypes?{actualValue:a,variableType:e.variableType,needsFetching:e.needsFetching}:a)}},P=(e,a)=>{if(c.customTrigger)c.customTrigger(e.variables[a]),c.setShowVariable(!1);else if(c.isEvaluationList){const i=e.variables[a];A(i)}else c.setVariableValue(c.selectWithTypes?{actualValue:e.variables[a].actualValue,variableType:e.variables[a].variableType,needsFetching:e.variables[a].needsFetching}:e.variables[a].actualValue)},$=c.isModalState?void 0:{top:"small"===c.pickerSize?"300px":"60px",left:`${c.leftPosition?c.leftPosition+24:430}px`};return e("div",Object.assign({id:"varList",tabIndex:-1},{children:e(b,Object.assign({style:$,onClick:e=>{e.stopPropagation()},pickerSize:c.pickerSize||"large",isModalState:c.isModalState},{children:c.showVariable&&a("div",Object.assign({className:"popup"},{children:[a("div",Object.assign({className:"sticky__bar"},{children:[a("div",Object.assign({className:"header__bar"},{children:[e("div",Object.assign({className:"add__variable"},{children:"Add a new variable"})),e("div",Object.assign({onClick:()=>{c.setShowVariable(!1)},style:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:e(v,{iconButtonType:"default",Icon:t})}))]})),e("div",Object.assign({className:"search__bar",onBlur:e=>{c.onSearchBlur&&c.onSearchBlur(e)}},{children:e(p,{width:"100%",isEnabled:!0,onChange:e=>{C(e)},onEnter:()=>{},placeholder:"Search...",variant:"default"})})),!S&&a("div",Object.assign({style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",marginTop:16}},{children:[e(u,{children:"No results found!"}),e(y,{children:`Sorry we could not find any results for "${k}"`})]})),T&&N[T].length>0&&a("div",Object.assign({className:"nav__bar",style:{marginTop:8}},{children:[a("div",Object.assign({className:"left__nav"},{children:[e(v,{Icon:s,style:{color:"#919191",display:"flex"},onClick:()=>{const e=N[T].slice(0,-1);x(e,T),V((a=>Object.assign(Object.assign({},a),{[T]:e}))),e.length||_("")}}),a("div",Object.assign({className:"block"},{children:[e(u,{children:f[T].displayName}),f[T].description&&e(y,{children:f[T].description})]}))]})),a("div",Object.assign({className:"right__nav"},{children:[e(v,{Icon:n,style:{display:"flex"},onClick:()=>{x([],T),V((e=>Object.assign(Object.assign({},e),{[T]:[]}))),_("")}}),e("div",{children:"First page"})]}))]}))]})),e("div",Object.assign({className:"wrapper"},{children:e("div",Object.assign({className:"list__map"},{children:a("div",Object.assign({className:"items"},{children:[!T&&c.data.map((s=>{let l=[];return k&&(l=Object.keys(s.variables).filter((e=>{var a;return(null===(a=s.variables[e].displayName)||void 0===a?void 0:a.toLowerCase().includes(k.toLowerCase()))||B(s.variables[e])}))),a(i,{children:[k?l.length>0?a("div",Object.assign({className:"block"},{children:[e("div",Object.assign({className:"heading__font"},{children:null==s?void 0:s.displayName})),e(y,Object.assign({style:{marginBottom:8,color:"#616161"}},{children:null==s?void 0:s.description}))]})):e(i,{}):a("div",Object.assign({className:"block"},{children:[e("div",Object.assign({className:"heading__font"},{children:null==s?void 0:s.displayName})),e(y,Object.assign({style:{marginBottom:8,color:"#616161"}},{children:null==s?void 0:s.description}))]})),Object.keys(s.variables).map((a=>{var l;return k?(null===(l=s.variables[a].displayName)||void 0===l?void 0:l.toLowerCase().includes(k.toLowerCase()))||B(s.variables[a])?e("div",Object.assign({onClick:s.variables[a].isSubHeader?()=>H(s,a):()=>P(s,a)},{children:e(I,{item:s.variables[a]})})):e(i,{}):e("div",Object.assign({onClick:s.variables[a].isSubHeader?()=>H(s,a):()=>P(s,a)},{children:e(I,{item:s.variables[a]})}))}))]})})),T&&e("div",Object.assign({className:"list__map"},{children:e("div",Object.assign({className:"items",style:{marginTop:16}},{children:Object.keys(f[T].variables).map(((a,s)=>{var l;return k?(null===(l=f[T].variables[a].displayName)||void 0===l?void 0:l.toLowerCase().includes(k.toLowerCase()))||B(f[T].variables[a])?E(f[T].variables[a],a):e(i,{}):E(f[T].variables[a],a)}))}))}))]}))}))})),e("div",{className:"bottom__padding"})]}))}))}))}),((e,a)=>e.enableVariable===a.enableVariable&&e.leftPosition===a.leftPosition));export{j as AddVariableV2};
@@ -1,11 +1,6 @@
1
1
  export declare const AddVariableStyled: import("styled-components").StyledComponent<"div", any, {
2
2
  pickerSize: string;
3
3
  isModalState?: boolean | undefined;
4
- zIndex?: number | undefined;
5
- positionStrategy?: string | undefined;
6
- height?: string | undefined;
7
- needsBorder?: boolean | undefined;
8
- width?: string | undefined;
9
4
  }, never>;
10
5
  export declare const VariableBoxStyled: import("styled-components").StyledComponent<"div", any, {
11
6
  isAvailable?: boolean | undefined;
@@ -1,6 +1,6 @@
1
1
  import e from"styled-components";const o=e.div`
2
- position: ${e=>e.positionStrategy?e.positionStrategy:"fixed"};
3
- z-index: ${e=>e.zIndex?e.zIndex:250};
2
+ position: fixed;
3
+ z-index: 250;
4
4
  *::-webkit-scrollbar {
5
5
  display: none;
6
6
  }
@@ -10,9 +10,9 @@ import e from"styled-components";const o=e.div`
10
10
  }
11
11
  .popup {
12
12
  background: white;
13
- width: ${e=>e.width?e.width:e.isModalState?"566px":"480px"};
14
- height: ${e=>e.isModalState?"100vh":e.height?e.height:"small"===e.pickerSize?"40vh":"90vh"};
15
- border: ${e=>e.needsBorder?e.isModalState?"unset":"1px solid #e0e0e0":"none"};
13
+ width: ${e=>e.isModalState?"566px":"480px"};
14
+ height: ${e=>e.isModalState?"100vh":"small"===e.pickerSize?"40vh":"90vh"};
15
+ border: ${e=>e.isModalState?"unset":"1px solid #e0e0e0"};
16
16
  border-radius: 8px;
17
17
  overflow-y: scroll;
18
18
  .sticky__bar {
@@ -40,8 +40,6 @@ import e from"styled-components";const o=e.div`
40
40
 
41
41
  .search__bar {
42
42
  padding: 24px 24px 8px 24px;
43
- background-color: #fafafa;
44
- border-bottom: 1px solid var(--stroke-color-stroke-primary, #e0e0e0);
45
43
  }
46
44
  .nav__bar {
47
45
  display: flex;
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import a from"react-dom";import{AddVariableV2 as r}from"./AddVariableV2.js";import{SideModalStyle as t,SideModalContainer as l}from"../side-modal/SideModal.style.js";const o=o=>a.createPortal(e(t,Object.assign({zIndex:o.zIndex},{children:e(l,{children:e(r,{data:o.data,showVariable:o.showVariable,setShowVariable:o.setShowVariable,variableValue:o.variableValue,setVariableValue:o.setVariableValue,placeholder:"Add a variable",customTrigger:o.customTrigger,isModalState:!0,onSearchBlur:o.onSearchBlur,selectWithTypes:o.selectWithTypes})})})),document.body);export{o as AddVariableV2SideModal};
1
+ import{jsx as e}from"react/jsx-runtime";import r from"react-dom";import{AddVariableV2 as a}from"./AddVariableV2.js";import{SideModalStyle as o,SideModalContainer as t}from"../side-modal/SideModal.style.js";const i=i=>r.createPortal(e(o,Object.assign({zIndex:i.zIndex},{children:e(t,{children:e(a,{data:i.data,showVariable:i.showVariable,setShowVariable:i.setShowVariable,placeholder:"Add a variable",customTrigger:i.customTrigger,isModalState:!0,onSearchBlur:i.onSearchBlur,selectWithTypes:i.selectWithTypes})})})),document.body);export{i as AddVariableV2SideModal};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ALERT_TYPES, CONTENT_POSITION } from "./AlertHelper";
2
+ import { ALERT_TYPES } from "./AlertHelper";
3
3
  export type AlertProps = {
4
4
  type: ALERT_TYPES;
5
5
  text: string;
@@ -9,7 +9,5 @@ export type AlertProps = {
9
9
  color: string;
10
10
  }>;
11
11
  textColor?: string;
12
- contentPosition?: CONTENT_POSITION;
13
- containerStyle?: React.CSSProperties;
14
12
  };
15
13
  export declare const Alert: React.FC<AlertProps>;
@@ -1 +1 @@
1
- import{jsxs as t,jsx as e}from"react/jsx-runtime";import{AlertStyle as o}from"./Alert.styled.js";import{COLOR_CONFIG_MAP as r}from"./AlertHelper.js";import{BodyCaption as i}from"../TypographyStyle.js";const l=l=>t(o,Object.assign({type:l.type,contentPosition:l.contentPosition,style:l.containerStyle},{children:[l.icon&&e("div",Object.assign({style:{display:"flex"}},{children:e(l.icon,{color:r[l.type].textColor,height:20,width:20})})),e(i,Object.assign({style:{color:l.textColor||r[l.type].textColor,marginLeft:12}},{children:l.text}))]}));export{l as Alert};
1
+ import{jsxs as t,jsx as e}from"react/jsx-runtime";import{AlertStyle as r}from"./Alert.styled.js";import{COLOR_CONFIG_MAP as o}from"./AlertHelper.js";import{BodyCaption as i}from"../TypographyStyle.js";const l=l=>t(r,Object.assign({type:l.type},{children:[l.icon&&e("div",{children:e(l.icon,{color:o[l.type].textColor,height:20,width:20})}),e(i,Object.assign({style:{color:l.textColor||o[l.type].textColor,marginLeft:12}},{children:l.text}))]}));export{l as Alert};
@@ -1,5 +1,4 @@
1
- import { ALERT_TYPES, CONTENT_POSITION } from "./AlertHelper";
1
+ import { ALERT_TYPES } from "./AlertHelper";
2
2
  export declare const AlertStyle: import("styled-components").StyledComponent<"div", any, {
3
3
  type: ALERT_TYPES;
4
- contentPosition?: CONTENT_POSITION | undefined;
5
4
  }, never>;
@@ -1,9 +1,9 @@
1
- import o from"styled-components";import{CONTENT_POSITION as r,COLOR_CONFIG_MAP as e}from"./AlertHelper.js";const t=o.div`
1
+ import o from"styled-components";import{COLOR_CONFIG_MAP as r}from"./AlertHelper.js";const e=o.div`
2
2
  display: flex;
3
3
  align-items: center;
4
- justify-content: ${o=>o.contentPosition||r.CENTER};
4
+ justify-content: center;
5
5
  padding: 8px 16px;
6
- background-color: ${o=>e[o.type].backgroundColor};
6
+ background-color: ${o=>r[o.type].backgroundColor};
7
7
  border-radius: 4px;
8
- border: 1px solid ${o=>e[o.type].borderColor};
9
- `;export{t as AlertStyle};
8
+ border: 1px solid ${o=>r[o.type].borderColor};
9
+ `;export{e as AlertStyle};
@@ -5,11 +5,6 @@ export declare enum ALERT_TYPES {
5
5
  NEUTRAL = "Neutral",
6
6
  BRAND = "Brand"
7
7
  }
8
- export declare enum CONTENT_POSITION {
9
- START = "start",
10
- CENTER = "center",
11
- END = "end"
12
- }
13
8
  export declare const COLOR_CONFIG_MAP: {
14
9
  Negative: {
15
10
  backgroundColor: string;
@@ -1 +1 @@
1
- import{COLORS as o}from"../../constants/Theme.js";var r,t;!function(o){o.NEGATIVE="Negative",o.WARNING="Warning",o.POSITIVE="Positive",o.NEUTRAL="Neutral",o.BRAND="Brand"}(r||(r={})),function(o){o.START="start",o.CENTER="center",o.END="end"}(t||(t={}));const n={[r.NEGATIVE]:{backgroundColor:o.background.negative.light,textColor:o.content.negative,borderColor:o.stroke.negative.lightAlt},[r.WARNING]:{backgroundColor:o.background.warning.light,textColor:o.content.warning,borderColor:o.stroke.warning.lightAlt},[r.POSITIVE]:{backgroundColor:o.background.positive.light,textColor:o.content.positive,borderColor:o.stroke.positive.lightAlt},[r.NEUTRAL]:{backgroundColor:o.surface.subdued,textColor:o.content.secondary,borderColor:o.stroke.primary},[r.BRAND]:{backgroundColor:o.background.brandLight,textColor:o.content.brand,borderColor:o.stroke.brandLightAlt}};export{r as ALERT_TYPES,n as COLOR_CONFIG_MAP,t as CONTENT_POSITION};
1
+ import{COLORS as o}from"../../constants/Theme.js";var r;!function(o){o.NEGATIVE="Negative",o.WARNING="Warning",o.POSITIVE="Positive",o.NEUTRAL="Neutral",o.BRAND="Brand"}(r||(r={}));const t={[r.NEGATIVE]:{backgroundColor:o.background.negative.light,textColor:o.content.negative,borderColor:o.stroke.negative.lightAlt},[r.WARNING]:{backgroundColor:o.background.warning.light,textColor:o.content.warning,borderColor:o.stroke.warning.lightAlt},[r.POSITIVE]:{backgroundColor:o.background.positive.light,textColor:o.content.positive,borderColor:o.stroke.positive.lightAlt},[r.NEUTRAL]:{backgroundColor:o.surface.subdued,textColor:o.content.secondary,borderColor:o.stroke.primary},[r.BRAND]:{backgroundColor:o.background.brandLight,textColor:o.content.brand,borderColor:o.stroke.brandLightAlt}};export{r as ALERT_TYPES,t as COLOR_CONFIG_MAP};
@@ -1 +1 @@
1
- import{jsx as e,Fragment as o,jsxs as n}from"react/jsx-runtime";import{useState as t,useEffect as l}from"react";import{Dropdown as i}from"react-bootstrap";import{DEFAULT_THEME as s,BASE_COLORS as a}from"../../constants/Theme.js";import{DatePicker as d}from"../datePicker/DatePicker.js";import{BodySecondary as c,BodyCaption as r,Caption as g}from"../TypographyStyle.js";import{MainDropdown as p,ItemMenuContainer as u}from"./CommonStyles.js";const m=a=>{let{options:r,placeholder:u="Select an option",selected:m,onOptionSelected:b,resetDropdown:h,maxHeight:f,backgroundColor:y,calendarPopperConfig:k,variant:D="default",datePickerPlacement:j}=a;var S,R,C;const[w,x]=t(!1),[$,T]=t(m),[P,I]=t(),[N,A]=t(!1),E=()=>{!w&&A(!N)},[F,H]=t(m),M="small"===D?g:c;return l((()=>{h&&T(void 0)}),[h]),l((()=>{var e;(null==m?void 0:m.isCustom)&&(null===(e=m.dateRangeSelectionOptions)||void 0===e?void 0:e.selectedDates)?I(m.dateRangeSelectionOptions.selectedDates):I(void 0),T(m)}),[m]),e(o,{children:n(p,Object.assign({drop:"down",show:N,onToggle:E,backgroundColor:y},{children:[e(i.Toggle,Object.assign({id:"dropdown-autoclose-outside",className:"main--dropdown",style:"small"===D?{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",backgroundColor:"#FAFAFA",borderRadius:4,border:`1px solid ${s.colorsV2.stroke.primary}`}:void 0},{children:e(M,Object.assign({style:"small"===D?{color:s.colorsV2.content.secondary}:void 0},{children:(null==$?void 0:$.isCustom)?P?O(P[0])===O(P[1])?`${O(P[0])}`:`${O(P[0])} to ${O(P[1])}`:null==F?void 0:F.label:$?null==$?void 0:$.label:u}))})),e(i.Menu,Object.assign({className:"main--dropdown"},{children:n(p,Object.assign({drop:null!=j?j:"end",id:"sub--dropdown",show:w,onToggle:e=>{!e&&A(!1),x(!w)}},{children:[e("div",Object.assign({style:{maxHeight:f||"auto",overflowY:"scroll"}},{children:r.map((o=>{var n;return e("div",{children:(null==o?void 0:o.isCustom)?e(i.Toggle,Object.assign({className:"sub--dropdown"},{children:e(v,{eachOption:o,selectedOption:$,selectedDate:P,onClickingEachItem:e=>{T(e),x(!0)},rangeSelection:!!(null===(n=null==o?void 0:o.dateRangeSelectionOptions)||void 0===n?void 0:n.selectRange)})})):e(v,{eachOption:o,selectedOption:$,selectedDate:P,onClickingEachItem:e=>{if(I(void 0),T(e),H(e),E(),!e.noOfDays)return void b(e);const o=new Date,n=new Date;n.setDate(o.getDate()-e.noOfDays),b(Object.assign(Object.assign({},e),{selectedRange:[n,o]}))}})},null==o?void 0:o.key)}))})),e(i.Menu,Object.assign({className:"sub--dropdown",popperConfig:{modifiers:[{name:"offset",options:{offset:[(null==k?void 0:k.offsetSkid)||0,(null==k?void 0:k.offsetDistance)||0]}}]}},{children:e(d,{selectRange:(null===(S=null==$?void 0:$.dateRangeSelectionOptions)||void 0===S?void 0:S.selectRange)||!1,maxDate:null===(R=null==$?void 0:$.dateRangeSelectionOptions)||void 0===R?void 0:R.maxDate,minDate:null===(C=null==$?void 0:$.dateRangeSelectionOptions)||void 0===C?void 0:C.minDate,selectedDates:P,onSelectRange:(e,o)=>{const n=[e,o];(null==$?void 0:$.dateRangeSelectionOptions)&&($.dateRangeSelectionOptions.selectedDates=n,b(Object.assign(Object.assign({},$),{selectedRange:[e,o]}))),H($),x(!1),I(n),A(!N)},onSelectDate:e=>{(null==$?void 0:$.dateRangeSelectionOptions)&&($.dateRangeSelectionOptions.selectedDates=[e,e],b(Object.assign(Object.assign({},$),{selectedRange:[e,e]}))),H($),x(!1),I([e,e]),A(!N)}})}))]}))}))]}))})},v=o=>{let{eachOption:t,selectedOption:l,selectedDate:i,onClickingEachItem:s,rangeSelection:d}=o;return n(u,Object.assign({onClick:()=>s(t),isSelected:t.isCustom?t.key==(null==l?void 0:l.key)&&!!i:t.key==(null==l?void 0:l.key)},{children:[e(c,Object.assign({color:t.key==(null==l?void 0:l.key)?a.positive[900]:a.grayscale[900]},{children:t.label})),i&&(null==l?void 0:l.isCustom)&&t.key==(null==l?void 0:l.key)&&e(r,{children:d?`${O(i[0])} to ${O(i[1])}`:`${O(i[0])}`})]}),t.key)},O=e=>e.toLocaleString("default",{day:"numeric",month:"short",year:"numeric"});export{m as AnalyticsDropdown,v as EachItem,O as formatDate};
1
+ import{jsx as e,Fragment as o,jsxs as n}from"react/jsx-runtime";import{useState as t,useEffect as l}from"react";import{Dropdown as i}from"react-bootstrap";import{DEFAULT_THEME as s,BASE_COLORS as a}from"../../constants/Theme.js";import{DatePicker as d}from"../datePicker/DatePicker.js";import{BodySecondary as c,BodyCaption as r,Caption as g}from"../TypographyStyle.js";import{MainDropdown as p,ItemMenuContainer as u}from"./CommonStyles.js";const m=a=>{let{options:r,placeholder:u="Select an option",selected:m,onOptionSelected:b,resetDropdown:h,maxHeight:f,backgroundColor:y,calendarPopperConfig:k,variant:D="default",datePickerPlacement:j}=a;var S,R,C;const[w,x]=t(!1),[$,T]=t(m),[P,I]=t(),[N,A]=t(!1),E=()=>{!w&&A(!N)},[F,H]=t(m),M="small"===D?g:c;return l((()=>{h&&T(void 0)}),[h]),l((()=>{var e;(null==m?void 0:m.isCustom)&&(null===(e=m.dateRangeSelectionOptions)||void 0===e?void 0:e.selectedDates)?I(m.dateRangeSelectionOptions.selectedDates):m&&T(m)}),[m]),e(o,{children:n(p,Object.assign({drop:"down",show:N,onToggle:E,backgroundColor:y},{children:[e(i.Toggle,Object.assign({id:"dropdown-autoclose-outside",className:"main--dropdown",style:"small"===D?{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",backgroundColor:"#FAFAFA",borderRadius:4,border:`1px solid ${s.colorsV2.stroke.primary}`}:void 0},{children:e(M,Object.assign({style:"small"===D?{color:s.colorsV2.content.secondary}:void 0},{children:(null==$?void 0:$.isCustom)?P?O(P[0])===O(P[1])?`${O(P[0])}`:`${O(P[0])} to ${O(P[1])}`:null==F?void 0:F.label:$?null==$?void 0:$.label:u}))})),e(i.Menu,Object.assign({className:"main--dropdown"},{children:n(p,Object.assign({drop:null!=j?j:"end",id:"sub--dropdown",show:w,onToggle:e=>{!e&&A(!1),x(!w)}},{children:[e("div",Object.assign({style:{maxHeight:f||"auto",overflowY:"scroll"}},{children:r.map((o=>{var n;return e("div",{children:(null==o?void 0:o.isCustom)?e(i.Toggle,Object.assign({className:"sub--dropdown"},{children:e(v,{eachOption:o,selectedOption:$,selectedDate:P,onClickingEachItem:e=>{T(e),x(!0)},rangeSelection:!!(null===(n=null==o?void 0:o.dateRangeSelectionOptions)||void 0===n?void 0:n.selectRange)})})):e(v,{eachOption:o,selectedOption:$,selectedDate:P,onClickingEachItem:e=>{if(T(e),H(e),E(),!e.noOfDays)return void b(e);const o=new Date,n=new Date;n.setDate(o.getDate()-e.noOfDays),b(Object.assign(Object.assign({},e),{selectedRange:[n,o]}))}})},null==o?void 0:o.key)}))})),e(i.Menu,Object.assign({className:"sub--dropdown",popperConfig:{modifiers:[{name:"offset",options:{offset:[(null==k?void 0:k.offsetSkid)||0,(null==k?void 0:k.offsetDistance)||0]}}]}},{children:e(d,{selectRange:(null===(S=null==$?void 0:$.dateRangeSelectionOptions)||void 0===S?void 0:S.selectRange)||!1,maxDate:null===(R=null==$?void 0:$.dateRangeSelectionOptions)||void 0===R?void 0:R.maxDate,minDate:null===(C=null==$?void 0:$.dateRangeSelectionOptions)||void 0===C?void 0:C.minDate,selectedDates:P,onSelectRange:(e,o)=>{const n=[e,o];(null==$?void 0:$.dateRangeSelectionOptions)&&($.dateRangeSelectionOptions.selectedDates=n,b(Object.assign(Object.assign({},$),{selectedRange:[e,o]}))),H($),x(!1),I(n),A(!N)},onSelectDate:e=>{(null==$?void 0:$.dateRangeSelectionOptions)&&($.dateRangeSelectionOptions.selectedDates=[e,e],b(Object.assign(Object.assign({},$),{selectedRange:[e,e]}))),H($),x(!1),I([e,e]),A(!N)}})}))]}))}))]}))})},v=o=>{let{eachOption:t,selectedOption:l,selectedDate:i,onClickingEachItem:s,rangeSelection:d}=o;return n(u,Object.assign({onClick:()=>s(t),isSelected:t.isCustom?t.key==(null==l?void 0:l.key)&&!!i:t.key==(null==l?void 0:l.key)},{children:[e(c,Object.assign({color:t.key==(null==l?void 0:l.key)?a.positive[900]:a.grayscale[900]},{children:t.label})),i&&(null==l?void 0:l.isCustom)&&t.key==(null==l?void 0:l.key)&&e(r,{children:d?`${O(i[0])} to ${O(i[1])}`:`${O(i[0])}`})]}),t.key)},O=e=>e.toLocaleString("default",{day:"numeric",month:"short",year:"numeric"});export{m as AnalyticsDropdown,v as EachItem,O as formatDate};
@@ -13,8 +13,5 @@ export interface AnalyticsTrendInterface {
13
13
  size?: 'big' | 'small';
14
14
  share?: boolean;
15
15
  prefixSymbol?: string;
16
- trailingIcon?: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
17
- onTrailIconClick?: () => void;
18
- iconTooltipBody?: string;
19
16
  }
20
17
  export declare const AnalyticsTrend: React.FC<AnalyticsTrendInterface>;
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import i from"react";import{COLORS as n}from"../../constants/Theme.js";import o from"../../assets/icons/arrow_down.svg.js";import r from"../../assets/icons/arrow_up.svg.js";import s from"../../assets/icons/info.svg.js";import{Tag as a}from"../tag/Tag.js";import{getFormattedMonthDate as l}from"../template-context-mapper/utils/getFormattedMonthDate.js";import{Tooltip as c}from"../tooltips/Tooltip.js";import{BodySecondary as d,TitleSmall as g,Caption as m,TitleLarge as p,TitleMedium as h}from"../TypographyStyle.js";import{AnalyticsTrendContainer as y}from"./CommonStyles.js";const b=o=>{let{title:r,value:l,trendPercent:g,type:m="horizontal",timeline:b,customRange:v,tooltip:j,card:u=!0,rightSeparator:x=!1,size:O="big",share:w=!1,formatVal:I,prefixSymbol:R,trailingIcon:T,onTrailIconClick:$,iconTooltipBody:C}=o;const D="big"===O?p:h,k=void 0!==g?g<0?"negative":0===g?"neutral":"positive":void 0,S=void 0!==g?w?Math.round(g):Math.abs(Math.round(g)):void 0;return e(y,Object.assign({card:u},{children:t("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:4,borderRightWidth:x?1:0,borderRightColor:n.stroke.primary,borderRightStyle:"solid",paddingLeft:u?0:24,paddingRight:u?0:24,height:"100%",justifyContent:"space-between",alignItems:"center"}},{children:[t("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:4,height:"100%"}},{children:[t("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:4,alignItems:"center"}},{children:[e(d,Object.assign({style:{color:n.content.secondary}},{children:r})),j&&e(c,Object.assign({body:j,placement:"right",width:300},{children:e("div",Object.assign({style:{display:"flex",alignItems:"center",cursor:"pointer"}},{children:e(s,{color:n.content.inactive,height:16,width:16})}))}))]})),t("div",Object.assign({style:Object.assign({display:"flex",flexDirection:"row",gap:12,alignItems:"center"},w?{justifyContent:"space-between"}:{})},{children:[e(D,Object.assign({style:{color:n.content.primary}},{children:void 0===l?"--":"number"==typeof l&&I?`${null!=R?R:""}${new Intl.NumberFormat("en-IN",{}).format(l)}`:`${null!=R?R:""}${l}`})),"horizontal"===m&&!w&&e(f,{timeline:b,customRange:v,percent:S,direction:k}),w&&void 0!==S&&e(a,{tagText:`${S} %`,theme:"light",type:"neutral"})]})),"vertical"===m&&!w&&e("div",Object.assign({style:{marginTop:12}},{children:e(f,{timeline:b,customRange:v,percent:S,direction:k})}))]})),C&&e(c,Object.assign({body:C,placement:"right"},{children:T&&e("div",Object.assign({className:"icon--holder",onClick:$},{children:i.createElement(T,{height:20,width:20,color:n.content.secondary})}))}))]}))}))},f=i=>{let{percent:s,direction:a,timeline:c,customRange:d}=i;const p="negative"===a?o:r,h="negative"===a?n.background.negative.vibrant:"positive"===a?n.background.positive.vibrant:n.content.placeholder,y="today"===c?"vs yesterday":"yesterday"===c?"vs 1 day before":"7 days"===c?"vs last 7 days":"30 days"===c?"vs last 30 days":"custom"===c&&d?`vs ${l(d[0])} - ${l(d[1])}`:"";return t("div",Object.assign({style:{display:"flex",alignItems:"center",flexDirection:"row"}},{children:["number"==typeof s&&e(p,{color:h,height:20,width:20,style:{marginRight:2}}),"number"==typeof s&&a&&t(g,Object.assign({style:{color:h}},{children:["neutral"===a?0:s,"%"]})),c&&e(m,Object.assign({style:{marginLeft:4,color:n.content.placeholder}},{children:y}))]}))};export{b as AnalyticsTrend};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{COLORS as i}from"../../constants/Theme.js";import r from"../../assets/icons/arrow_down.svg.js";import o from"../../assets/icons/arrow_up.svg.js";import n from"../../assets/icons/info.svg.js";import{Tag as s}from"../tag/Tag.js";import{getFormattedMonthDate as a}from"../template-context-mapper/utils/getFormattedMonthDate.js";import{Tooltip as l}from"../tooltips/Tooltip.js";import{BodySecondary as c,TitleSmall as d,Caption as g,TitleLarge as m,TitleMedium as p}from"../TypographyStyle.js";import{AnalyticsTrendContainer as h}from"./CommonStyles.js";const y=r=>{let{title:o,value:a,trendPercent:d,type:g="horizontal",timeline:y,customRange:b,tooltip:f,card:u=!0,rightSeparator:j=!1,size:x="big",share:O=!1,formatVal:w,prefixSymbol:R}=r;const $="big"===x?m:p,I=void 0!==d?d<0?"negative":0===d?"neutral":"positive":void 0,T=void 0!==d?O?Math.round(d):Math.abs(Math.round(d)):void 0;return e(h,Object.assign({card:u},{children:t("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:4,borderRightWidth:j?1:0,borderRightColor:i.stroke.primary,borderRightStyle:"solid",paddingLeft:u?0:24,paddingRight:u?0:24,height:"100%"}},{children:[t("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:4,alignItems:"center"}},{children:[e(c,Object.assign({style:{color:i.content.secondary}},{children:o})),f&&e(l,Object.assign({body:f,placement:"right",width:300},{children:e("div",Object.assign({style:{display:"flex",alignItems:"center",cursor:"pointer"}},{children:e(n,{color:i.content.inactive,height:16,width:16})}))}))]})),t("div",Object.assign({style:Object.assign({display:"flex",flexDirection:"row",gap:12,alignItems:"center"},O?{justifyContent:"space-between"}:{})},{children:[e($,Object.assign({style:{color:i.content.primary}},{children:void 0===a?"--":"number"==typeof a&&w?`${null!=R?R:""}${new Intl.NumberFormat("en-IN",{}).format(a)}`:`${null!=R?R:""}${a}`})),"horizontal"===g&&!O&&e(v,{timeline:y,customRange:b,percent:T,direction:I}),O&&void 0!==T&&e(s,{tagText:`${T} %`,theme:"light",type:"neutral"})]})),"vertical"===g&&!O&&e("div",Object.assign({style:{marginTop:12}},{children:e(v,{timeline:y,customRange:b,percent:T,direction:I})}))]}))}))},v=n=>{let{percent:s,direction:l,timeline:c,customRange:m}=n;const p="negative"===l?r:o,h="negative"===l?i.background.negative.vibrant:"positive"===l?i.background.positive.vibrant:i.content.placeholder,y="today"===c?"vs yesterday":"yesterday"===c?"vs 1 day before":"7 days"===c?"vs last 7 days":"30 days"===c?"vs last 30 days":"custom"===c&&m?`vs ${a(m[0])} - ${a(m[1])}`:"";return t("div",Object.assign({style:{display:"flex",alignItems:"center",flexDirection:"row"}},{children:["number"==typeof s&&e(p,{color:h,height:20,width:20,style:{marginRight:2}}),"number"==typeof s&&l&&t(d,Object.assign({style:{color:h}},{children:["neutral"===l?0:s,"%"]})),c&&e(g,Object.assign({style:{marginLeft:4,color:i.content.placeholder}},{children:y}))]}))};export{y as AnalyticsTrend};