@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.
- package/dist/cjs/assets/icons/{drag_handle.svg.js → video_camcorder.svg.js} +1 -1
- package/dist/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/cjs/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js +1 -1
- package/dist/cjs/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -1
- package/dist/cjs/components/QueryBuilder/constants/connector.d.ts +3 -6
- package/dist/cjs/components/QueryBuilder/constants/connector.js +1 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilder.type.d.ts +1 -2
- package/dist/cjs/components/QueryBuilder/types/QueryBuilder.type.js +1 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +0 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +1 -4
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
- package/dist/cjs/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
- package/dist/cjs/components/SearchFilter/components/SearchFilterItem.js +1 -1
- package/dist/cjs/components/SearchFilter/types/SearchFilter.type.d.ts +0 -4
- package/dist/cjs/components/TablePagination/TablePagination.js +1 -1
- package/dist/cjs/components/accordion/Accordion.d.ts +0 -2
- package/dist/cjs/components/accordion/Accordion.js +1 -1
- package/dist/cjs/components/accordion/Accordion.style.d.ts +0 -1
- package/dist/cjs/components/accordion/Accordion.style.js +1 -1
- package/dist/cjs/components/add-variableV2/AddVariableV2.d.ts +0 -12
- package/dist/cjs/components/add-variableV2/AddVariableV2.js +1 -1
- package/dist/cjs/components/add-variableV2/AddVariableV2.styled.d.ts +0 -5
- package/dist/cjs/components/add-variableV2/AddVariableV2.styled.js +5 -7
- package/dist/cjs/components/add-variableV2/AddVariableV2SideModal.js +1 -1
- package/dist/cjs/components/alerts/Alert.d.ts +1 -3
- package/dist/cjs/components/alerts/Alert.js +1 -1
- package/dist/cjs/components/alerts/Alert.styled.d.ts +1 -2
- package/dist/cjs/components/alerts/Alert.styled.js +4 -4
- package/dist/cjs/components/alerts/AlertHelper.d.ts +0 -5
- package/dist/cjs/components/alerts/AlertHelper.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.d.ts +0 -3
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/cjs/components/avatar/Avatar.js +1 -1
- package/dist/cjs/components/bik-layout/BikLayout.d.ts +0 -2
- package/dist/cjs/components/bik-layout/BikLayout.js +1 -1
- package/dist/cjs/components/bik-layout/BikProfile.js +1 -1
- package/dist/cjs/components/bik-layout/BikSidebar.d.ts +0 -4
- package/dist/cjs/components/bik-layout/BikSidebar.js +1 -1
- package/dist/cjs/components/bik-layout/CommonStyles.d.ts +0 -10
- package/dist/cjs/components/bik-layout/CommonStyles.js +1 -1
- package/dist/cjs/components/bik-layout/FeatureModal.d.ts +0 -1
- package/dist/cjs/components/bik-layout/FeatureModal.js +1 -1
- package/dist/cjs/components/bik-layout/MockMenus.d.ts +7 -13
- package/dist/cjs/components/bik-layout/SidebarStyles.d.ts +0 -11
- package/dist/cjs/components/bik-layout/SidebarStyles.js +1 -1
- package/dist/cjs/components/bik-layout/SimpleSidebar.d.ts +0 -1
- package/dist/cjs/components/bik-layout/index.d.ts +0 -2
- package/dist/cjs/components/button/Button.js +1 -1
- package/dist/cjs/components/button/Button.styled.d.ts +0 -1
- package/dist/cjs/components/button/Button.styled.js +1 -1
- package/dist/cjs/components/button/model.d.ts +1 -2
- package/dist/cjs/components/button/themes.d.ts +2 -3
- package/dist/cjs/components/button/themes.js +1 -1
- package/dist/cjs/components/carousel-secondary/CarouselSecondary.js +1 -1
- package/dist/cjs/components/colourInput/ColourInput.js +1 -1
- package/dist/cjs/components/custom-date-time/CustomDateTime.js +1 -1
- package/dist/cjs/components/datePicker/DatePicker.js +1 -1
- package/dist/cjs/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
- package/dist/cjs/components/discount-modal/DiscountModal.d.ts +0 -9
- package/dist/cjs/components/discount-modal/DiscountModal.js +1 -1
- package/dist/cjs/components/discount-modal/DiscountUtils.d.ts +0 -2
- package/dist/cjs/components/discount-modal/DiscountUtils.js +1 -1
- package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.d.ts +5 -7
- package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
- package/dist/cjs/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
- package/dist/cjs/components/discount-modal/type.d.ts +2 -11
- package/dist/cjs/components/discount-modal/type.js +1 -1
- package/dist/cjs/components/dropdown/ChipDropdown.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/cjs/components/dropdown/type.d.ts +0 -1
- package/dist/cjs/components/input/Input.d.ts +0 -1
- package/dist/cjs/components/input/Input.js +1 -1
- package/dist/cjs/components/input/Input.styled.d.ts +0 -6
- package/dist/cjs/components/input/Input.styled.js +1 -1
- package/dist/cjs/components/input-with-vars/InputWithVariables.d.ts +5 -16
- package/dist/cjs/components/input-with-vars/InputWithVariables.js +6 -6
- package/dist/cjs/components/modals/Modal.d.ts +0 -1
- package/dist/cjs/components/modals/Modal.js +1 -1
- package/dist/cjs/components/modals/styledModal.d.ts +0 -1
- package/dist/cjs/components/modals/styledModal.js +1 -1
- package/dist/cjs/components/plans/SubscriptionPlan.d.ts +2 -3
- package/dist/cjs/components/plans/SubscriptionPlan.js +1 -1
- package/dist/cjs/components/plans/SubscriptionPlanSelector.js +1 -1
- package/dist/cjs/components/plans/SubscriptionPlanStyled.d.ts +0 -7
- package/dist/cjs/components/plans/SubscriptionPlanStyled.js +1 -1
- package/dist/cjs/components/plans/index.d.ts +0 -2
- package/dist/cjs/components/postPicker/postPicker.js +1 -1
- package/dist/cjs/components/product-picker-v2/collectionScreen.d.ts +0 -2
- package/dist/cjs/components/product-picker-v2/collectionScreen.js +1 -1
- package/dist/cjs/components/product-picker-v2/modal.d.ts +3 -31
- package/dist/cjs/components/product-picker-v2/modal.js +1 -1
- package/dist/cjs/components/product-picker-v2/productScreen.d.ts +1 -13
- package/dist/cjs/components/product-picker-v2/productScreen.js +1 -1
- package/dist/cjs/components/product-picker-v2/searchScreen.d.ts +0 -4
- package/dist/cjs/components/product-picker-v2/searchScreen.js +1 -1
- package/dist/cjs/components/product-picker-v2/style.d.ts +0 -5
- package/dist/cjs/components/product-picker-v2/style.js +13 -53
- package/dist/cjs/components/shimmer-image/ShimmerImage.d.ts +1 -2
- package/dist/cjs/components/shimmer-image/ShimmerImage.js +1 -1
- package/dist/cjs/components/side-modal/SideModal.d.ts +2 -4
- package/dist/cjs/components/side-modal/SideModal.js +1 -1
- package/dist/cjs/components/side-modal/SideModal.style.d.ts +1 -4
- package/dist/cjs/components/side-modal/SideModal.style.js +1 -4
- package/dist/cjs/components/star-rating/Star.d.ts +0 -1
- package/dist/cjs/components/star-rating/Star.js +1 -1
- package/dist/cjs/components/star-rating/StarRating.d.ts +0 -1
- package/dist/cjs/components/star-rating/StarRating.js +1 -1
- package/dist/cjs/components/tag/Tag.styled.js +1 -1
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.d.ts +3 -11
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/cjs/components/template-context-mapper/context/templateModalContext.d.ts +1 -9
- package/dist/cjs/components/template-context-mapper/context/templateModalContext.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/Body.d.ts +0 -4
- package/dist/cjs/components/template-context-mapper/modalElements/Body.js +7 -6
- package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.d.ts +0 -1
- package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js +4 -4
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.d.ts +0 -4
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.js +2 -2
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.d.ts +0 -2
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +1 -4
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.d.ts +0 -1
- package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +4 -4
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +1 -5
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.d.ts +2 -6
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +3 -3
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.d.ts +1 -4
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +2 -25
- package/dist/cjs/components/template-context-mapper/modalElements/VariableEditorHeader.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.d.ts +1 -4
- package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
- package/dist/cjs/components/template-context-mapper/utils/getDataFromTemplateComponent.js +1 -1
- package/dist/cjs/components/template-preview/EmailTemplatePreview.styled.js +0 -1
- package/dist/cjs/components/template-preview/SmsTemplatePreview.js +1 -1
- package/dist/cjs/components/template-preview/TemplatePreview.d.ts +1 -2
- package/dist/cjs/components/template-preview/TemplatePreview.js +1 -1
- package/dist/cjs/components/template-preview/WhatsApp/ChatUI.style.js +5 -5
- package/dist/cjs/components/template-preview/WhatsApp/ChatUiV2.js +5 -5
- package/dist/cjs/components/template-preview/WhatsApp/MediaCard.js +1 -1
- package/dist/cjs/components/template-preview/WhatsAppTemplatePreview.d.ts +0 -1
- package/dist/cjs/components/template-preview/WhatsAppTemplatePreview.js +1 -1
- package/dist/cjs/components/template-preview/constants/regexPatterns.js +1 -1
- package/dist/cjs/components/template-preview/helpers/TemplateCreatorHelper.d.ts +1 -13
- package/dist/cjs/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
- package/dist/cjs/components/template-preview/index.d.ts +0 -1
- package/dist/cjs/components/template-preview/models/TemplateMeta.d.ts +1 -1
- package/dist/cjs/components/template-preview/models/WhatsAppTemplate.d.ts +3 -46
- package/dist/cjs/components/template-preview/models/WhatsAppTemplate.js +1 -1
- package/dist/cjs/components/tooltips/Tooltip.js +1 -1
- package/dist/cjs/components/tooltips/TooltipInternal.d.ts +0 -1
- package/dist/cjs/components/tooltips/TooltipInternal.js +1 -1
- package/dist/cjs/constants/Theme.d.ts +0 -25
- package/dist/cjs/constants/Theme.js +1 -1
- package/dist/cjs/index.d.ts +0 -2
- package/dist/cjs/index.js +1 -1
- package/dist/esm/assets/icons/video_camcorder.svg.js +1 -0
- package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/esm/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js +1 -1
- package/dist/esm/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -1
- package/dist/esm/components/QueryBuilder/constants/connector.d.ts +3 -6
- package/dist/esm/components/QueryBuilder/constants/connector.js +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilder.type.d.ts +1 -2
- package/dist/esm/components/QueryBuilder/types/QueryBuilder.type.js +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +0 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +1 -4
- package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
- package/dist/esm/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
- package/dist/esm/components/SearchFilter/components/SearchFilterItem.js +1 -1
- package/dist/esm/components/SearchFilter/types/SearchFilter.type.d.ts +0 -4
- package/dist/esm/components/TablePagination/TablePagination.js +1 -1
- package/dist/esm/components/accordion/Accordion.d.ts +0 -2
- package/dist/esm/components/accordion/Accordion.js +1 -1
- package/dist/esm/components/accordion/Accordion.style.d.ts +0 -1
- package/dist/esm/components/accordion/Accordion.style.js +1 -1
- package/dist/esm/components/add-variableV2/AddVariableV2.d.ts +0 -12
- package/dist/esm/components/add-variableV2/AddVariableV2.js +1 -1
- package/dist/esm/components/add-variableV2/AddVariableV2.styled.d.ts +0 -5
- package/dist/esm/components/add-variableV2/AddVariableV2.styled.js +5 -7
- package/dist/esm/components/add-variableV2/AddVariableV2SideModal.js +1 -1
- package/dist/esm/components/alerts/Alert.d.ts +1 -3
- package/dist/esm/components/alerts/Alert.js +1 -1
- package/dist/esm/components/alerts/Alert.styled.d.ts +1 -2
- package/dist/esm/components/alerts/Alert.styled.js +5 -5
- package/dist/esm/components/alerts/AlertHelper.d.ts +0 -5
- package/dist/esm/components/alerts/AlertHelper.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.d.ts +0 -3
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/esm/components/avatar/Avatar.js +1 -1
- package/dist/esm/components/bik-layout/BikLayout.d.ts +0 -2
- package/dist/esm/components/bik-layout/BikLayout.js +1 -1
- package/dist/esm/components/bik-layout/BikProfile.js +1 -1
- package/dist/esm/components/bik-layout/BikSidebar.d.ts +0 -4
- package/dist/esm/components/bik-layout/BikSidebar.js +1 -1
- package/dist/esm/components/bik-layout/CommonStyles.d.ts +0 -10
- package/dist/esm/components/bik-layout/CommonStyles.js +1 -1
- package/dist/esm/components/bik-layout/FeatureModal.d.ts +0 -1
- package/dist/esm/components/bik-layout/FeatureModal.js +1 -1
- package/dist/esm/components/bik-layout/MockMenus.d.ts +7 -13
- package/dist/esm/components/bik-layout/SidebarStyles.d.ts +0 -11
- package/dist/esm/components/bik-layout/SidebarStyles.js +1 -1
- package/dist/esm/components/bik-layout/SimpleSidebar.d.ts +0 -1
- package/dist/esm/components/bik-layout/index.d.ts +0 -2
- package/dist/esm/components/button/Button.js +1 -1
- package/dist/esm/components/button/Button.styled.d.ts +0 -1
- package/dist/esm/components/button/Button.styled.js +1 -1
- package/dist/esm/components/button/model.d.ts +1 -2
- package/dist/esm/components/button/themes.d.ts +2 -3
- package/dist/esm/components/button/themes.js +1 -1
- package/dist/esm/components/carousel-secondary/CarouselSecondary.js +1 -1
- package/dist/esm/components/colourInput/ColourInput.js +1 -1
- package/dist/esm/components/custom-date-time/CustomDateTime.js +1 -1
- package/dist/esm/components/datePicker/DatePicker.js +1 -1
- package/dist/esm/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
- package/dist/esm/components/discount-modal/DiscountModal.d.ts +0 -9
- package/dist/esm/components/discount-modal/DiscountModal.js +1 -1
- package/dist/esm/components/discount-modal/DiscountUtils.d.ts +0 -2
- package/dist/esm/components/discount-modal/DiscountUtils.js +1 -1
- package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.d.ts +5 -7
- package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
- package/dist/esm/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
- package/dist/esm/components/discount-modal/type.d.ts +2 -11
- package/dist/esm/components/discount-modal/type.js +1 -1
- package/dist/esm/components/dropdown/ChipDropdown.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/esm/components/dropdown/type.d.ts +0 -1
- package/dist/esm/components/input/Input.d.ts +0 -1
- package/dist/esm/components/input/Input.js +1 -1
- package/dist/esm/components/input/Input.styled.d.ts +0 -6
- package/dist/esm/components/input/Input.styled.js +1 -1
- package/dist/esm/components/input-with-vars/InputWithVariables.d.ts +5 -16
- package/dist/esm/components/input-with-vars/InputWithVariables.js +6 -6
- package/dist/esm/components/modals/Modal.d.ts +0 -1
- package/dist/esm/components/modals/Modal.js +1 -1
- package/dist/esm/components/modals/styledModal.d.ts +0 -1
- package/dist/esm/components/modals/styledModal.js +1 -1
- package/dist/esm/components/plans/SubscriptionPlan.d.ts +2 -3
- package/dist/esm/components/plans/SubscriptionPlan.js +1 -1
- package/dist/esm/components/plans/SubscriptionPlanSelector.js +1 -1
- package/dist/esm/components/plans/SubscriptionPlanStyled.d.ts +0 -7
- package/dist/esm/components/plans/SubscriptionPlanStyled.js +1 -1
- package/dist/esm/components/plans/index.d.ts +0 -2
- package/dist/esm/components/postPicker/postPicker.js +1 -1
- package/dist/esm/components/product-picker-v2/collectionScreen.d.ts +0 -2
- package/dist/esm/components/product-picker-v2/collectionScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/modal.d.ts +3 -31
- package/dist/esm/components/product-picker-v2/modal.js +1 -1
- package/dist/esm/components/product-picker-v2/productScreen.d.ts +1 -13
- package/dist/esm/components/product-picker-v2/productScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/searchScreen.d.ts +0 -4
- package/dist/esm/components/product-picker-v2/searchScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/style.d.ts +0 -5
- package/dist/esm/components/product-picker-v2/style.js +7 -47
- package/dist/esm/components/shimmer-image/ShimmerImage.d.ts +1 -2
- package/dist/esm/components/shimmer-image/ShimmerImage.js +1 -1
- package/dist/esm/components/side-modal/SideModal.d.ts +2 -4
- package/dist/esm/components/side-modal/SideModal.js +1 -1
- package/dist/esm/components/side-modal/SideModal.style.d.ts +1 -4
- package/dist/esm/components/side-modal/SideModal.style.js +12 -15
- package/dist/esm/components/star-rating/Star.d.ts +0 -1
- package/dist/esm/components/star-rating/Star.js +1 -1
- package/dist/esm/components/star-rating/StarRating.d.ts +0 -1
- package/dist/esm/components/star-rating/StarRating.js +1 -1
- package/dist/esm/components/tag/Tag.styled.js +1 -1
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.d.ts +3 -11
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/esm/components/template-context-mapper/context/templateModalContext.d.ts +1 -9
- package/dist/esm/components/template-context-mapper/context/templateModalContext.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/Body.d.ts +0 -4
- package/dist/esm/components/template-context-mapper/modalElements/Body.js +6 -5
- package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.d.ts +0 -1
- package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.js +7 -7
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaV2.d.ts +0 -4
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaV2.js +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.d.ts +0 -2
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +1 -4
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.d.ts +0 -1
- package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js +4 -4
- package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +1 -5
- package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.d.ts +2 -6
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js +3 -3
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.d.ts +1 -4
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +2 -25
- package/dist/esm/components/template-context-mapper/modalElements/VariableEditorHeader.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.d.ts +1 -4
- package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
- package/dist/esm/components/template-context-mapper/utils/getDataFromTemplateComponent.js +1 -1
- package/dist/esm/components/template-preview/EmailTemplatePreview.styled.js +5 -6
- package/dist/esm/components/template-preview/SmsTemplatePreview.js +1 -1
- package/dist/esm/components/template-preview/TemplatePreview.d.ts +1 -2
- package/dist/esm/components/template-preview/TemplatePreview.js +1 -1
- package/dist/esm/components/template-preview/WhatsApp/ChatUI.style.js +1 -1
- package/dist/esm/components/template-preview/WhatsApp/ChatUiV2.js +5 -5
- package/dist/esm/components/template-preview/WhatsApp/MediaCard.js +1 -1
- package/dist/esm/components/template-preview/WhatsAppTemplatePreview.d.ts +0 -1
- package/dist/esm/components/template-preview/WhatsAppTemplatePreview.js +1 -1
- package/dist/esm/components/template-preview/constants/regexPatterns.js +1 -1
- package/dist/esm/components/template-preview/helpers/TemplateCreatorHelper.d.ts +1 -13
- package/dist/esm/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
- package/dist/esm/components/template-preview/index.d.ts +0 -1
- package/dist/esm/components/template-preview/models/TemplateMeta.d.ts +1 -1
- package/dist/esm/components/template-preview/models/WhatsAppTemplate.d.ts +3 -46
- package/dist/esm/components/template-preview/models/WhatsAppTemplate.js +1 -1
- package/dist/esm/components/tooltips/Tooltip.js +1 -1
- package/dist/esm/components/tooltips/TooltipInternal.d.ts +0 -1
- package/dist/esm/components/tooltips/TooltipInternal.js +1 -1
- package/dist/esm/constants/Theme.d.ts +0 -25
- package/dist/esm/constants/Theme.js +1 -1
- package/dist/esm/index.d.ts +0 -2
- package/dist/esm/index.js +1 -1
- package/package.json +4 -6
- package/dist/cjs/_virtual/index.js +0 -1
- package/dist/cjs/_virtual/index2.js +0 -1
- package/dist/cjs/_virtual/index3.js +0 -1
- package/dist/cjs/_virtual/react-is.development.js +0 -1
- package/dist/cjs/_virtual/react-is.development2.js +0 -1
- package/dist/cjs/_virtual/react-is.production.min.js +0 -1
- package/dist/cjs/_virtual/react-is.production.min2.js +0 -1
- package/dist/cjs/assets/icons/WhiteStarFilled.svg.js +0 -1
- package/dist/cjs/assets/icons/checkCircle.svg.js +0 -1
- package/dist/cjs/assets/icons/copy-code-icon.svg.js +0 -1
- package/dist/cjs/assets/icons/lto_icon.svg.js +0 -1
- package/dist/cjs/assets/icons/quotes.svg.js +0 -1
- package/dist/cjs/components/SearchFilter/components/DateRangeOnlyButton.d.ts +0 -7
- package/dist/cjs/components/SearchFilter/components/DateRangeOnlyButton.js +0 -1
- package/dist/cjs/components/bik-layout/FeatureModalV2.d.ts +0 -12
- package/dist/cjs/components/bik-layout/FeatureModalV2.js +0 -1
- package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.d.ts +0 -13
- package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.js +0 -1
- package/dist/cjs/components/bik-layout/SidebarPopup.d.ts +0 -12
- package/dist/cjs/components/bik-layout/SidebarPopup.js +0 -1
- package/dist/cjs/components/plans/NewSubscriptionPlan.d.ts +0 -18
- package/dist/cjs/components/plans/NewSubscriptionPlan.js +0 -1
- package/dist/cjs/components/plans/SubscriptionPlansCollected.d.ts +0 -14
- package/dist/cjs/components/plans/SubscriptionPlansCollected.js +0 -6
- package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.d.ts +0 -45
- package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.js +0 -1
- package/dist/cjs/components/product-picker-v2/rearrangeScreen.d.ts +0 -18
- package/dist/cjs/components/product-picker-v2/rearrangeScreen.js +0 -1
- package/dist/cjs/components/product-picker-v2/type.d.ts +0 -6
- package/dist/cjs/components/product-picker-v2/type.js +0 -1
- package/dist/cjs/components/product-picker-v2/variant.d.ts +0 -32
- package/dist/cjs/components/product-picker-v2/variant.js +0 -1
- package/dist/cjs/components/product-picker-v2/variantComponents.d.ts +0 -21
- package/dist/cjs/components/product-picker-v2/variantComponents.js +0 -1
- package/dist/cjs/components/slider/index.d.ts +0 -1
- package/dist/cjs/components/slider/slider.d.ts +0 -10
- package/dist/cjs/components/slider/slider.js +0 -1
- package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.d.ts +0 -12
- package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +0 -1
- package/dist/cjs/components/template-context-mapper/modalElements/BackTrackComponent.d.ts +0 -4
- package/dist/cjs/components/template-context-mapper/modalElements/BackTrackComponent.js +0 -1
- package/dist/cjs/components/template-context-mapper/modalElements/DiscountCodeComponent.d.ts +0 -6
- package/dist/cjs/components/template-context-mapper/modalElements/DiscountCodeComponent.js +0 -1
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.d.ts +0 -11
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.js +0 -1
- package/dist/cjs/components/template-context-mapper/utils/getPreviewDimension.d.ts +0 -2
- package/dist/cjs/components/template-context-mapper/utils/getPreviewDimension.js +0 -1
- package/dist/cjs/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.d.ts +0 -9
- package/dist/cjs/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.js +0 -20
- package/dist/cjs/components/testimonial-card/TestimonialCard.d.ts +0 -14
- package/dist/cjs/components/testimonial-card/TestimonialCard.js +0 -1
- package/dist/cjs/components/testimonial-card/TestimonialCard.style.d.ts +0 -16
- package/dist/cjs/components/testimonial-card/TestimonialCard.style.js +0 -1
- package/dist/cjs/components/testimonial-card/index.d.ts +0 -1
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -1
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -1
- package/dist/cjs/node_modules/@mui/base/node_modules/clsx/dist/clsx.mjs.js +0 -1
- package/dist/cjs/node_modules/@mui/base/useSlider/useSlider.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/appendOwnerState.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/areArraysEqual.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/extractEventHandlers.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/isHostComponent.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/mergeSlotProps.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/omitEventHandlers.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/resolveComponentProps.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/useSlotProps.js +0 -1
- package/dist/cjs/node_modules/@mui/material/Slider/Slider.js +0 -1
- package/dist/cjs/node_modules/@mui/material/Slider/SliderValueLabel.js +0 -1
- package/dist/cjs/node_modules/@mui/material/Slider/sliderClasses.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/blue.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/common.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/green.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/grey.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/lightBlue.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/orange.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/purple.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/red.js +0 -1
- package/dist/cjs/node_modules/@mui/material/node_modules/clsx/dist/clsx.mjs.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/createMixins.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/createPalette.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/createTheme.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/createTransitions.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/createTypography.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/defaultTheme.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/identifier.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/shadows.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/styled.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/useTheme.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/useThemeProps.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/zIndex.js +0 -1
- package/dist/cjs/node_modules/@mui/material/utils/capitalize.js +0 -1
- package/dist/cjs/node_modules/@mui/material/utils/shouldSpreadAdditionalProps.js +0 -1
- package/dist/cjs/node_modules/@mui/styled-engine/index.js +0 -8
- package/dist/cjs/node_modules/@mui/system/esm/borders.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/breakpoints.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/colorManipulator.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/compose.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/createStyled.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/createSpacing.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/createTheme.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/shape.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/cssGrid.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/memoize.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/merge.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/palette.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/propsToClassKey.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/responsivePropType.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/sizing.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/spacing.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/style.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/useTheme.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/capitalize/capitalize.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/deepmerge.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/formatMuiErrorMessage.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/getDisplayName.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/resolveProps.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/setRef.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/useControlled/useControlled.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/useIsFocusVisible.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/visuallyHidden.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +0 -10
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js +0 -10
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/index.js +0 -1
- package/dist/cjs/node_modules/object-assign/index.js +0 -7
- package/dist/cjs/node_modules/prop-types/checkPropTypes.js +0 -1
- package/dist/cjs/node_modules/prop-types/factoryWithThrowingShims.js +0 -1
- package/dist/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +0 -1
- package/dist/cjs/node_modules/prop-types/index.js +0 -1
- package/dist/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -1
- package/dist/cjs/node_modules/prop-types/lib/has.js +0 -1
- package/dist/cjs/node_modules/react-is/cjs/react-is.development.js +0 -9
- package/dist/cjs/node_modules/react-is/cjs/react-is.production.min.js +0 -9
- package/dist/cjs/node_modules/react-is/index.js +0 -1
- package/dist/esm/_virtual/index.js +0 -1
- package/dist/esm/_virtual/index2.js +0 -1
- package/dist/esm/_virtual/index3.js +0 -1
- package/dist/esm/_virtual/react-is.development.js +0 -1
- package/dist/esm/_virtual/react-is.development2.js +0 -1
- package/dist/esm/_virtual/react-is.production.min.js +0 -1
- package/dist/esm/_virtual/react-is.production.min2.js +0 -1
- package/dist/esm/assets/icons/WhiteStarFilled.svg.js +0 -1
- package/dist/esm/assets/icons/checkCircle.svg.js +0 -1
- package/dist/esm/assets/icons/copy-code-icon.svg.js +0 -1
- package/dist/esm/assets/icons/drag_handle.svg.js +0 -1
- package/dist/esm/assets/icons/lto_icon.svg.js +0 -1
- package/dist/esm/assets/icons/quotes.svg.js +0 -1
- package/dist/esm/components/SearchFilter/components/DateRangeOnlyButton.d.ts +0 -7
- package/dist/esm/components/SearchFilter/components/DateRangeOnlyButton.js +0 -1
- package/dist/esm/components/bik-layout/FeatureModalV2.d.ts +0 -12
- package/dist/esm/components/bik-layout/FeatureModalV2.js +0 -1
- package/dist/esm/components/bik-layout/ShowShopifyRestrictedModal.d.ts +0 -13
- package/dist/esm/components/bik-layout/ShowShopifyRestrictedModal.js +0 -1
- package/dist/esm/components/bik-layout/SidebarPopup.d.ts +0 -12
- package/dist/esm/components/bik-layout/SidebarPopup.js +0 -1
- package/dist/esm/components/plans/NewSubscriptionPlan.d.ts +0 -18
- package/dist/esm/components/plans/NewSubscriptionPlan.js +0 -1
- package/dist/esm/components/plans/SubscriptionPlansCollected.d.ts +0 -14
- package/dist/esm/components/plans/SubscriptionPlansCollected.js +0 -6
- package/dist/esm/components/product-picker-v2/helpers/ProductHelper.d.ts +0 -45
- package/dist/esm/components/product-picker-v2/helpers/ProductHelper.js +0 -1
- package/dist/esm/components/product-picker-v2/rearrangeScreen.d.ts +0 -18
- package/dist/esm/components/product-picker-v2/rearrangeScreen.js +0 -1
- package/dist/esm/components/product-picker-v2/type.d.ts +0 -6
- package/dist/esm/components/product-picker-v2/type.js +0 -1
- package/dist/esm/components/product-picker-v2/variant.d.ts +0 -32
- package/dist/esm/components/product-picker-v2/variant.js +0 -1
- package/dist/esm/components/product-picker-v2/variantComponents.d.ts +0 -21
- package/dist/esm/components/product-picker-v2/variantComponents.js +0 -1
- package/dist/esm/components/slider/index.d.ts +0 -1
- package/dist/esm/components/slider/slider.d.ts +0 -10
- package/dist/esm/components/slider/slider.js +0 -1
- package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.d.ts +0 -12
- package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +0 -1
- package/dist/esm/components/template-context-mapper/modalElements/BackTrackComponent.d.ts +0 -4
- package/dist/esm/components/template-context-mapper/modalElements/BackTrackComponent.js +0 -1
- package/dist/esm/components/template-context-mapper/modalElements/DiscountCodeComponent.d.ts +0 -6
- package/dist/esm/components/template-context-mapper/modalElements/DiscountCodeComponent.js +0 -1
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.d.ts +0 -11
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.js +0 -1
- package/dist/esm/components/template-context-mapper/utils/getPreviewDimension.d.ts +0 -2
- package/dist/esm/components/template-context-mapper/utils/getPreviewDimension.js +0 -1
- package/dist/esm/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.d.ts +0 -9
- package/dist/esm/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.js +0 -20
- package/dist/esm/components/testimonial-card/TestimonialCard.d.ts +0 -14
- package/dist/esm/components/testimonial-card/TestimonialCard.js +0 -1
- package/dist/esm/components/testimonial-card/TestimonialCard.style.d.ts +0 -16
- package/dist/esm/components/testimonial-card/TestimonialCard.style.js +0 -1
- package/dist/esm/components/testimonial-card/index.d.ts +0 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/extends.js +0 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -1
- package/dist/esm/node_modules/@mui/base/node_modules/clsx/dist/clsx.mjs.js +0 -1
- package/dist/esm/node_modules/@mui/base/useSlider/useSlider.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/appendOwnerState.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/areArraysEqual.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/extractEventHandlers.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/isHostComponent.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/mergeSlotProps.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/omitEventHandlers.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/resolveComponentProps.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/useSlotProps.js +0 -1
- package/dist/esm/node_modules/@mui/material/Slider/Slider.js +0 -1
- package/dist/esm/node_modules/@mui/material/Slider/SliderValueLabel.js +0 -1
- package/dist/esm/node_modules/@mui/material/Slider/sliderClasses.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/blue.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/common.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/green.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/grey.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/lightBlue.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/orange.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/purple.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/red.js +0 -1
- package/dist/esm/node_modules/@mui/material/node_modules/clsx/dist/clsx.mjs.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/createMixins.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/createPalette.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/createTheme.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/createTransitions.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/createTypography.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/defaultTheme.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/identifier.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/shadows.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/styled.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/useTheme.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/useThemeProps.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/zIndex.js +0 -1
- package/dist/esm/node_modules/@mui/material/utils/capitalize.js +0 -1
- package/dist/esm/node_modules/@mui/material/utils/shouldSpreadAdditionalProps.js +0 -1
- package/dist/esm/node_modules/@mui/styled-engine/index.js +0 -8
- package/dist/esm/node_modules/@mui/system/esm/borders.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/breakpoints.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/colorManipulator.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/compose.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/createStyled.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/createTheme/createSpacing.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/createTheme/createTheme.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/createTheme/shape.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/cssGrid.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/memoize.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/merge.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/palette.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/propsToClassKey.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/responsivePropType.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/sizing.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/spacing.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/style.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/useTheme.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/useThemeWithoutDefault.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/capitalize/capitalize.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/deepmerge.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/formatMuiErrorMessage.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/getDisplayName.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/resolveProps.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/setRef.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useControlled/useControlled.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useIsFocusVisible.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/visuallyHidden.js +0 -1
- package/dist/esm/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +0 -10
- package/dist/esm/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js +0 -10
- package/dist/esm/node_modules/@mui/utils/node_modules/react-is/index.js +0 -1
- package/dist/esm/node_modules/object-assign/index.js +0 -6
- package/dist/esm/node_modules/prop-types/checkPropTypes.js +0 -1
- package/dist/esm/node_modules/prop-types/factoryWithThrowingShims.js +0 -1
- package/dist/esm/node_modules/prop-types/factoryWithTypeCheckers.js +0 -1
- package/dist/esm/node_modules/prop-types/index.js +0 -1
- package/dist/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -1
- package/dist/esm/node_modules/prop-types/lib/has.js +0 -1
- package/dist/esm/node_modules/react-is/cjs/react-is.development.js +0 -9
- package/dist/esm/node_modules/react-is/cjs/react-is.production.min.js +0 -9
- package/dist/esm/node_modules/react-is/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as t,jsx as e,Fragment as o}from"react/jsx-runtime";import i from"../../assets/icons/arrow_left.svg.js";import
|
|
1
|
+
import{jsxs as t,jsx as e,Fragment as o}from"react/jsx-runtime";import i from"../../assets/icons/arrow_left.svg.js";import d from"../../assets/icons/box.svg.js";import c from"../../assets/icons/search.svg.js";import{cloneDeep as l}from"lodash";import{useContext as n,useState as r,useEffect as s}from"react";import{COLORS as a}from"../../constants/Theme.js";import{CheckBox as u}from"../checkBox/CheckBox.js";import{IconButton as h}from"../icon-button/IconButton.js";import{Input as p}from"../input/Input.js";import{BikShimmer as v}from"../shimmer/ShimmerComponent/BikShimmer.js";import{ShimmerImage as m}from"../shimmer-image/ShimmerImage.js";import{Spinner as y}from"../spinner/Spinner.js";import{BodyCaption as f,TitleRegular as g}from"../TypographyStyle.js";import{truncate as b}from"./collectionScreen.js";import{EmptyState as j}from"./emptyState.js";import{CollectionIdContext as k}from"./reducers.js";import{ProductScreenHeader as C,ProductScreenCollectionCardStyle as I,ProductCardStyle as O}from"./style.js";import{liftTheStateUp as x}from"./utility.js";const S=o=>{const m=n(k),{data:b,collectionsDispatch:O,selectedData:S,selectedCollectionsDispatch:E,productFetcher:w,storeId:D,setScreen:V,setSaveDisabled:A,hideInCollectionSearch:B,customCollectionRestriction:T,hideProductCheckbox:F,hideVariantCheckbox:R}=o,[U,W]=r(""),[z,H]=r(!1),[N,_]=r(b);s((()=>{const t=setTimeout((()=>{U.length?(H(!0),o.searchInCollectionFetcher(D,m,U).then((t=>{var e;const o=l(b);o.products={};for(const i of t)(null===(e=null==b?void 0:b.products)||void 0===e?void 0:e[i])&&(o.products[i]=b.products[i]);_(o),A(!1),H(!1)}))):_(b)}),800);return()=>clearTimeout(t)}),[U]);const q=!!T&&b.isSmartCollection,G=t=>{var e,o,i,d,c,l,n,r;let s=0,a=0;return!!((null===(o=null===(e=null==S?void 0:S[m])||void 0===e?void 0:e.products)||void 0===o?void 0:o[t])&&(null===(c=Object.keys((null===(d=null===(i=null==b?void 0:b.products)||void 0===i?void 0:i[t])||void 0===d?void 0:d.variants)||[]))||void 0===c||c.forEach((()=>a++)),Object.keys((null===(r=null===(n=null===(l=null==S?void 0:S[m])||void 0===l?void 0:l.products)||void 0===n?void 0:n[t])||void 0===r?void 0:r.variants)||[]).forEach((()=>s++)),s>0&&a!==s))};s((()=>{(null==b?void 0:b.products)||J()}),[]);const J=()=>{A(!0),H(!0),w(m,D).then((t=>{Object.keys(t).length&&(O({type:"productsFetched",data:{collectionId:m,products:t}}),_(Object.assign(Object.assign({},N),{products:t}))),A(!1),H(!1)})).catch()},K=(t,e)=>{const o=x(e,b);E({type:t,data:Object.assign(Object.assign({},o),{isRestricted:T})})};return t("div",{children:[t(C,{children:[e(h,{Icon:i,height:16,onClick:()=>{V("collections")}}),e(f,Object.assign({style:{color:a.content.secondary}},{children:b.name}))]}),!B&&e("div",Object.assign({style:{padding:16,height:"76px",borderBottom:"1px solid #E0E0E0"}},{children:e(p,{noErrorHint:!0,rightIcon:{icon:()=>z&&U.length?e(y,{size:"small",color:a.content.primary}):e(c,{})},id:"listInput",height:"24px",type:"text",value:U,onChangeText:t=>{t.length&&t.trim().length&&W(t)},placeholder:"Search products in this collection..."})})),t("div",{children:[Object.keys((null==N?void 0:N.products)||[]).length>0&&!q&&!U.length&&!F&&t(I,{children:[e(u,{isChecked:!!(null==S?void 0:S[m]),isPartiallyChecked:(t=>{var e;let o=0,i=0;if(S[t]){const d=null==b?void 0:b.products;d&&Object.keys(d).forEach((t=>{var e;const i=null===(e=d[t])||void 0===e?void 0:e.variants;i&&Object.keys(i).forEach((t=>o+=1))}));const c=null===(e=S[t])||void 0===e?void 0:e.products;return c&&Object.keys(c).forEach((t=>{var e;const o=null===(e=c[t])||void 0===e?void 0:e.variants;o&&Object.keys(o).forEach((()=>i+=1))})),i>0&&o!==i}return!1})(m),onValueChange:function(t){E(t?{type:"selected",data:{id:m,val:b}}:{type:"unselected",data:{id:m}})}}),e("div",Object.assign({style:{width:40,height:40}},{children:e(d,{})})),e(g,{children:"All Products"})]}),Object.keys((null==N?void 0:N.products)||[]).length?Object.keys(N.products||[]).map((t=>e(P,{collectionId:m,isProductPartiallyChecked:G(t),productId:t,data:N.products[t],selectedData:S,selectedCollectionsDispatch:E,viewOnly:!!q,upliftAdditions:K,hideProductCheckbox:F,hideVariantCheckbox:R},t))):z?[1,2,3,4,5,6,7,8,9,10].map(((t,o)=>e("div",Object.assign({style:{borderBottom:"1px solid #E0E0E0"}},{children:e(v,{boxes:[{height:"64px",width:"100%",marginTop:"0px"}]})}),o))):e(j,{title:"No products to show",subtitle:U.length?"We couldn't find the product you were looking for":"We couldn’t find any product in this collection."})]})]})},P=o=>{const{collectionId:i,productId:d,data:c,selectedData:l,selectedCollectionsDispatch:n,viewOnly:r,upliftAdditions:s,isProductPartiallyChecked:a,hideProductCheckbox:u,hideVariantCheckbox:h}=o,p=t=>{var e,o,c,n,r,s;if(!(null===(o=null===(e=null==l?void 0:l[i])||void 0===e?void 0:e.products)||void 0===o?void 0:o[d]))return!1;return!!(null===(s=null===(r=null===(n=null===(c=null==l?void 0:l[i])||void 0===c?void 0:c.products)||void 0===n?void 0:n[d])||void 0===r?void 0:r.variants)||void 0===s?void 0:s[t])};return t("div",{children:[e(E,{isVariant:!1,data:c,productId:d,collectionId:i,isSelected:!!(null===(m=null===(v=null==l?void 0:l[i])||void 0===v?void 0:v.products)||void 0===m?void 0:m[d]),isPartiallyChecked:a,selectedCollectionsDispatch:n,upliftAdditions:s,viewOnly:r,hideProductCheckbox:u},d),Object.keys(c.variants||[]).map((t=>e(E,{isVariant:!0,data:c.variants[t],hideVariantCheckbox:h,variantId:t,productId:d,viewOnly:r,upliftAdditions:s,collectionId:i,isSelected:p(t),selectedCollectionsDispatch:n},t)))]});var v,m},E=i=>{const{isVariant:d,data:c,productId:l,collectionId:n,variantId:r,isSelected:s,selectedCollectionsDispatch:a,viewOnly:h,upliftAdditions:p,isPartiallyChecked:v,hideProductCheckbox:y,hideVariantCheckbox:f}=i;return console.log(h,f,h||f),t(O,Object.assign({isVariant:d},{children:[d&&!h&&!f||!d&&!h&&!y?e(u,{isChecked:s,isPartiallyChecked:v||!1,onValueChange:function(t){d?t?p("variantSelected",{productId:l,variantId:r,collectionId:n,variant:c}):a({type:"variantUnselected",data:{productId:l,variantId:r,collectionId:n}}):t?p("productSelected",{productId:l,collectionId:n,product:c}):a({type:"productUnselected",data:{productId:l,collectionId:n}})}}):e(o,{}),e("div",{children:e(m,{width:40,height:40,imageUrl:c.image,alt:"Item",borderRadius:4})}),e(g,{children:b(c.name,40,!0)})]}))};export{E as ProductCard,P as ProductGroup,S as ProductsScreen};
|
|
@@ -11,10 +11,6 @@ interface SearchScreenInterface {
|
|
|
11
11
|
[key: string]: Collection;
|
|
12
12
|
};
|
|
13
13
|
onBackPress: () => void;
|
|
14
|
-
hideVariantCheckbox?: boolean;
|
|
15
|
-
pickerType?: 'COLLECTION' | 'PRODUCT';
|
|
16
|
-
hideProductVariants?: boolean;
|
|
17
|
-
hideProductCheckbox?: boolean;
|
|
18
14
|
}
|
|
19
15
|
export declare const SearchScreen: (props: SearchScreenInterface) => import("react/jsx-runtime").JSX.Element;
|
|
20
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as o,jsx as t,Fragment as e}from"react/jsx-runtime";import i from"../../assets/icons/arrow_left.svg.js";import{IconButton as
|
|
1
|
+
import{jsxs as o,jsx as t,Fragment as e}from"react/jsx-runtime";import i from"../../assets/icons/arrow_left.svg.js";import{IconButton as l}from"../icon-button/IconButton.js";import{BodyCaption as r}from"../TypographyStyle.js";import{EmptyState as s}from"./emptyState.js";import{ProductGroup as c}from"./productScreen.js";import{SelectedScreenHeader as d}from"./style.js";import{liftTheStateUp as n}from"./utility.js";const u=u=>{const{customCollectionRestriction:v,selectedCollections:a,searchedCollections:p,selectedCollectionsDispatch:m,setScreen:h,collections:f,onBackPress:j}=u,y=(o,t)=>{var e,i,l,r,s,c,d,n,u;let v=0,p=0;return!!((null===(i=null===(e=null==a?void 0:a[o])||void 0===e?void 0:e.products)||void 0===i?void 0:i[t])&&(null===(c=Object.keys((null===(s=null===(r=null===(l=null==f?void 0:f[o])||void 0===l?void 0:l.products)||void 0===r?void 0:r[t])||void 0===s?void 0:s.variants)||[]))||void 0===c||c.forEach((()=>p++)),Object.keys((null===(u=null===(n=null===(d=null==a?void 0:a[o])||void 0===d?void 0:d.products)||void 0===n?void 0:n[t])||void 0===u?void 0:u.variants)||[]).forEach((()=>v++)),v>0&&p!==v))};return o("div",{children:[o(d,{children:[t(l,{Icon:i,onClick:()=>{h("collections"),j()}}),t(r,{children:"Searched Products"})]}),t("div",{children:Object.keys(p).length?t(e,{children:Object.keys(p).map((o=>{var e;return Object.keys((null===(e=null==p?void 0:p[o])||void 0===e?void 0:e.products)||[]).map((e=>{let i=!1;return(null==p?void 0:p.isCustom)&&(i=!0),t(c,{collectionId:o,upliftAdditions:(t,e)=>((o,t,e)=>{const i=n(e,p[o]);m({type:t,data:Object.assign(Object.assign({},i),{isRestricted:v})})})(o,t,e),productId:e,data:p[o].products[e],isProductPartiallyChecked:y(o,e),selectedData:a,selectedCollectionsDispatch:m,viewOnly:i},e)}))}))}):t(s,{title:"No search results found",subtitle:"We couldn’t find the product you were looking for."})})]})};export{u as SearchScreen};
|
|
@@ -2,7 +2,6 @@ export declare const ContainerStyle: import("styled-components").StyledComponent
|
|
|
2
2
|
export declare const ScrollContainerStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const CollectionCardStyle: import("styled-components").StyledComponent<"div", any, {
|
|
4
4
|
isDisabled: boolean;
|
|
5
|
-
isActive: boolean;
|
|
6
5
|
}, never>;
|
|
7
6
|
export declare const CollectionCardInfoStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
7
|
export declare const CollectionCardDetailStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -10,10 +9,6 @@ export declare const ProductScreenHeader: import("styled-components").StyledComp
|
|
|
10
9
|
export declare const ProductScreenCollectionCardStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
10
|
export declare const ProductCardStyle: import("styled-components").StyledComponent<"div", any, {
|
|
12
11
|
isVariant: boolean;
|
|
13
|
-
isActive: boolean;
|
|
14
12
|
}, never>;
|
|
15
13
|
export declare const SelectedScreenHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
14
|
export declare const CollectionNameHolder: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
|
-
export declare const VariantCardListStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
18
|
-
export declare const VariantCardGridStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
19
|
-
export declare const StyledHeaderRightIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -9,7 +9,7 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
9
9
|
overflow-x: hidden;
|
|
10
10
|
`,n=e.div`
|
|
11
11
|
height: 64px;
|
|
12
|
-
background-color: ${e=>e.isDisabled?"#F0F0F0":
|
|
12
|
+
background-color: ${e=>e.isDisabled?"#F0F0F0":"white"};
|
|
13
13
|
border-bottom: 1px solid #e0e0e0;
|
|
14
14
|
padding: 12px 24px;
|
|
15
15
|
display: flex;
|
|
@@ -17,11 +17,7 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
17
17
|
column-gap: 16px;
|
|
18
18
|
justify-content: space-between;
|
|
19
19
|
align-items: center;
|
|
20
|
-
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
background-color: ${i.surface.hovered};
|
|
23
|
-
}
|
|
24
|
-
`,r=e.div`
|
|
20
|
+
`,l=e.div`
|
|
25
21
|
display: flex;
|
|
26
22
|
flex-direction: row;
|
|
27
23
|
justify-content: center;
|
|
@@ -31,7 +27,7 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
31
27
|
display: flex;
|
|
32
28
|
flex-direction: column;
|
|
33
29
|
justify-content: center;
|
|
34
|
-
`,
|
|
30
|
+
`,r=e.div`
|
|
35
31
|
display: flex;
|
|
36
32
|
flex-direction: row;
|
|
37
33
|
max-height: 32px;
|
|
@@ -41,16 +37,16 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
41
37
|
align-items: center;
|
|
42
38
|
padding: 8px 16px;
|
|
43
39
|
margin-top: 16px;
|
|
44
|
-
`,
|
|
40
|
+
`,x=e.div`
|
|
45
41
|
display: flex;
|
|
46
42
|
flex-direction: row;
|
|
47
43
|
column-gap: 16px;
|
|
48
44
|
padding: 12px 16px;
|
|
49
45
|
border-bottom: 1px solid #e0e0e0;
|
|
50
46
|
align-items: center;
|
|
51
|
-
`,
|
|
47
|
+
`,p=e.div`
|
|
52
48
|
height: 64px;
|
|
53
|
-
background-color:
|
|
49
|
+
background-color: white;
|
|
54
50
|
border-bottom: 1px solid #e0e0e0;
|
|
55
51
|
padding: 12px 16px;
|
|
56
52
|
display: flex;
|
|
@@ -59,10 +55,6 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
59
55
|
justify-content: flex-start;
|
|
60
56
|
align-items: center;
|
|
61
57
|
padding-left: ${e=>e.isVariant?"42px":"16px"};
|
|
62
|
-
:hover {
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
background-color: ${i.surface.hovered};
|
|
65
|
-
}
|
|
66
58
|
`,c=e.div`
|
|
67
59
|
display: flex;
|
|
68
60
|
flex-direction: row;
|
|
@@ -75,36 +67,4 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
75
67
|
`,a=e.div`
|
|
76
68
|
display: flex;
|
|
77
69
|
flex-direction: column;
|
|
78
|
-
|
|
79
|
-
height: 72px;
|
|
80
|
-
background: white;
|
|
81
|
-
padding: 12px 16px;
|
|
82
|
-
display: flex;
|
|
83
|
-
flex-direction: row;
|
|
84
|
-
gap: 16px;
|
|
85
|
-
align-items: center;
|
|
86
|
-
justify-content: center;
|
|
87
|
-
|
|
88
|
-
.tooltip-title-tag {
|
|
89
|
-
display: flex;
|
|
90
|
-
flex: 1;
|
|
91
|
-
flex-direction: column;
|
|
92
|
-
gap: 2px;
|
|
93
|
-
}
|
|
94
|
-
`,g=e.div`
|
|
95
|
-
height: 72px;
|
|
96
|
-
width: 72px;
|
|
97
|
-
display: flex;
|
|
98
|
-
align-items: center;
|
|
99
|
-
justify-content: center;
|
|
100
|
-
margin: 16px;
|
|
101
|
-
`;e.div`
|
|
102
|
-
display: flex;
|
|
103
|
-
width: 32px;
|
|
104
|
-
height: 32px;
|
|
105
|
-
padding: 6px;
|
|
106
|
-
justify-content: center;
|
|
107
|
-
align-items: center;
|
|
108
|
-
border: 1px solid ${i.stroke.primary};
|
|
109
|
-
border-radius: 4px;
|
|
110
|
-
`;export{d as CollectionCardDetailStyle,r as CollectionCardInfoStyle,n as CollectionCardStyle,a as CollectionNameHolder,t as ContainerStyle,x as ProductCardStyle,p as ProductScreenCollectionCardStyle,l as ProductScreenHeader,o as ScrollContainerStyle,c as SelectedScreenHeader,g as VariantCardGridStyle,s as VariantCardListStyle};
|
|
70
|
+
`;export{d as CollectionCardDetailStyle,l as CollectionCardInfoStyle,n as CollectionCardStyle,a as CollectionNameHolder,t as ContainerStyle,p as ProductCardStyle,x as ProductScreenCollectionCardStyle,r as ProductScreenHeader,o as ScrollContainerStyle,c as SelectedScreenHeader};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type ShimmerImageProps = {
|
|
3
3
|
imageUrl: string;
|
|
4
|
-
width: number
|
|
4
|
+
width: number;
|
|
5
5
|
height: number;
|
|
6
6
|
alt?: string;
|
|
7
7
|
borderRadius?: number;
|
|
8
8
|
defaultImageUrl?: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const DEFAULT_IMAGE = "https://firebasestorage.googleapis.com/v0/b/bikayi-chat.appspot.com/o/images-uid%2F9034204a-cbf9-4b93-8b28-ccf880d273f9?alt=media&token=318529b5-8df0-4644-85b0-40fff1dc1d5c";
|
|
11
10
|
export declare const ShimmerImage: React.FC<ShimmerImageProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as t,useEffect as i}from"react";import{BikShimmer as o}from"../shimmer/ShimmerComponent/BikShimmer.js";const a="https://firebasestorage.googleapis.com/v0/b/bikayi-chat.appspot.com/o/images-uid%2F9034204a-cbf9-4b93-8b28-ccf880d273f9?alt=media&token=318529b5-8df0-4644-85b0-40fff1dc1d5c",l=l=>{let{imageUrl:s,width:d,height:n,borderRadius:m,alt:h,defaultImageUrl:c=a}=l;const[g,p]=t(!0),[b,u]=t(!1);return i((()=>{const e=new Image;return e.src=s,e.onload=()=>{u(!1),p(!1)},e.onerror=()=>{u(!0),p(!1)},()=>{e.onload=null,e.onerror=null}}),[s]),e("div",Object.assign({style:{position:"relative",width:d,height:n,borderRadius:m}},{children:[g&&r(o,{boxes:[{height:`${n}px`,width:`${d}px`,marginTop:"0px"}]}),r("img",b?{src:c,alt:null!=h?h:"Image",style:{borderRadius:null!=m?m:0,display:"block",width:"100%",height:"100%"}}:{src:s,alt:null!=h?h:"Image",style:{borderRadius:null!=m?m:0,display:g?"none":"block",width:"100%",height:"100%"}})]}))};export{
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as t,useEffect as i}from"react";import{BikShimmer as o}from"../shimmer/ShimmerComponent/BikShimmer.js";const a="https://firebasestorage.googleapis.com/v0/b/bikayi-chat.appspot.com/o/images-uid%2F9034204a-cbf9-4b93-8b28-ccf880d273f9?alt=media&token=318529b5-8df0-4644-85b0-40fff1dc1d5c",l=l=>{let{imageUrl:s,width:d,height:n,borderRadius:m,alt:h,defaultImageUrl:c=a}=l;const[g,p]=t(!0),[b,u]=t(!1);return i((()=>{const e=new Image;return e.src=s,e.onload=()=>{u(!1),p(!1)},e.onerror=()=>{u(!0),p(!1)},()=>{e.onload=null,e.onerror=null}}),[s]),e("div",Object.assign({style:{position:"relative",width:d,height:n,borderRadius:m}},{children:[g&&r(o,{boxes:[{height:`${n}px`,width:`${d}px`,marginTop:"0px"}]}),r("img",b?{src:c,alt:null!=h?h:"Image",style:{borderRadius:null!=m?m:0,display:"block",width:"100%",height:"100%"}}:{src:s,alt:null!=h?h:"Image",style:{borderRadius:null!=m?m:0,display:g?"none":"block",width:"100%",height:"100%"}})]}))};export{l as ShimmerImage};
|
|
@@ -7,11 +7,9 @@ export interface SideModalProps {
|
|
|
7
7
|
footerDirection?: 'row' | 'row-reverse';
|
|
8
8
|
hideCrossButton?: boolean;
|
|
9
9
|
width?: string;
|
|
10
|
-
saveButtonProps
|
|
11
|
-
cancelButtonProps
|
|
10
|
+
saveButtonProps: ButtonProps;
|
|
11
|
+
cancelButtonProps: ButtonProps;
|
|
12
12
|
onClose: () => void;
|
|
13
13
|
zIndex?: number;
|
|
14
|
-
hideFooter?: boolean;
|
|
15
|
-
bodyStyle?: React.CSSProperties;
|
|
16
14
|
}
|
|
17
15
|
export declare const SideModal: React.FC<SideModalProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o,jsxs as t,Fragment as e}from"react/jsx-runtime";import r from"react-dom";import
|
|
1
|
+
import{jsx as o,jsxs as t,Fragment as e}from"react/jsx-runtime";import r from"react-dom";import n from"../../assets/icons/cross.svg.js";import{Button as i}from"../button/Button.js";import{TitleMedium as s}from"../TypographyStyle.js";import{SideModalStyle as c,SideModalContainer as m,SideModalHeader as d,SideModalBody as a,SideModalFooter as l,FooterButtonWrapper as h}from"./SideModal.style.js";const p=p=>r.createPortal(o(c,Object.assign({zIndex:p.zIndex},{children:t(m,{children:[t(d,{children:[o(s,{children:p.header}),!p.hideCrossButton&&o(n,{width:24,height:24,onClick:p.onClose})]}),o(a,{children:p.children}),t(l,Object.assign({footerDirection:p.footerDirection},{children:[t(h,Object.assign({footerDirection:p.footerDirection},{children:[o(i,Object.assign({},p.saveButtonProps)),o(i,Object.assign({},p.cancelButtonProps))]})),p.footerCustomComponent?p.footerCustomComponent:o(e,{})]}))]})})),document.body);export{p as SideModal};
|
|
@@ -5,10 +5,7 @@ export declare const SideModalContainer: import("styled-components").StyledCompo
|
|
|
5
5
|
width?: string | undefined;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const SideModalHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const SideModalBody: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
-
hideFooter?: boolean | undefined;
|
|
10
|
-
bodyStyle: React.CSSProperties;
|
|
11
|
-
}, never>;
|
|
8
|
+
export declare const SideModalBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
9
|
export declare const SideModalFooter: import("styled-components").StyledComponent<"div", any, {
|
|
13
10
|
footerDirection?: "row" | "row-reverse" | undefined;
|
|
14
11
|
}, never>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"styled-components";import{COLORS as i}from"../../constants/Theme.js";import{ComponentZindex as e}from"../../constants/zindex.js";const o=t.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
5
|
-
z-index: ${
|
|
5
|
+
z-index: ${t=>t.zIndex||e.SIDE_MODAL};
|
|
6
6
|
height: 100%;
|
|
7
7
|
width: 100%;
|
|
8
8
|
background-color: rgba(0, 0, 0, 0.4);
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: flex-end;
|
|
12
|
-
`,
|
|
12
|
+
`,r=t.div`
|
|
13
13
|
height: 100%;
|
|
14
|
-
width: ${
|
|
14
|
+
width: ${t=>t.width||"566px"};
|
|
15
15
|
background: ${i.surface.standard};
|
|
16
16
|
position: relative;
|
|
17
17
|
display: flex;
|
|
18
18
|
flex-direction: column;
|
|
19
|
-
`,
|
|
19
|
+
`,n=t.div`
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: 60px;
|
|
22
22
|
position: sticky;
|
|
@@ -31,27 +31,24 @@ import e,{css as t}from"styled-components";import{COLORS as i}from"../../constan
|
|
|
31
31
|
svg:hover {
|
|
32
32
|
cursor: pointer;
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`,d=t.div`
|
|
35
35
|
overflow-y: auto;
|
|
36
36
|
padding: 24px;
|
|
37
|
-
height:
|
|
38
|
-
|
|
39
|
-
${Object.keys(i).map((e=>`${e}: ${i[e]};`)).join("\n")}
|
|
40
|
-
`}}
|
|
41
|
-
`,p=e.div`
|
|
37
|
+
height: calc(100% - 120px);
|
|
38
|
+
`,s=t.div`
|
|
42
39
|
height: 60px;
|
|
43
40
|
width: 100%;
|
|
44
41
|
position: sticky;
|
|
45
42
|
bottom: 0;
|
|
46
43
|
display: flex;
|
|
47
|
-
flex-direction: ${
|
|
44
|
+
flex-direction: ${t=>t.footerDirection||"row"};
|
|
48
45
|
justify-content: space-between;
|
|
49
46
|
align-items: center;
|
|
50
47
|
background: ${i.surface.standard};
|
|
51
48
|
border-top: 1px solid ${i.stroke.primary};
|
|
52
49
|
padding: 0px 24px;
|
|
53
|
-
`,
|
|
50
|
+
`,p=t.div`
|
|
54
51
|
display: flex;
|
|
55
|
-
flex-direction: ${
|
|
52
|
+
flex-direction: ${t=>t.footerDirection||"row"};
|
|
56
53
|
gap: 8px;
|
|
57
|
-
`;export{
|
|
54
|
+
`;export{p as FooterButtonWrapper,d as SideModalBody,r as SideModalContainer,s as SideModalFooter,n as SideModalHeader,o as SideModalStyle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{useState as e,useEffect as r}from"react";import{COLORS as n}from"../../constants/Theme.js";import t from"../../assets/icons/starEmpty.svg.js";import l from"../../assets/icons/starFilled.svg.js";const s=s=>{let{size:i,filled:
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{useState as e,useEffect as r}from"react";import{COLORS as n}from"../../constants/Theme.js";import t from"../../assets/icons/starEmpty.svg.js";import l from"../../assets/icons/starFilled.svg.js";const s=s=>{let{size:i,filled:c,emptyColor:u,filledColor:a,onClick:d,asHovered:m,onHover:h}=s;const[g,p]=e(!1);return r((()=>{null==h||h(g)}),[g]),r((()=>{m||p(!1)}),[m]),m?o(l,{onClick:()=>{null==d||d("select")},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),style:{cursor:"pointer"},width:i,height:i,color:null!=a?a:n.background.warning.vibrant}):g?o(l,{onMouseLeave:()=>p(!1),onMouseEnter:()=>p(!0),style:{cursor:"pointer"},onClick:()=>{null==d||d("select")},width:i,height:i,color:null!=a?a:n.background.warning.vibrant}):c?o(l,{onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),style:{cursor:"pointer"},onClick:()=>{null==d||d("de-select")},width:i,height:i,color:null!=a?a:n.background.warning.vibrant}):o(t,{onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),style:{cursor:"pointer"},onClick:()=>{null==d||d("select")},width:i,height:i,color:null!=u?u:n.surface.standard})};export{s as Star};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import I from"@emotion/styled/base";import{jsx as g}from"react/jsx-runtime";import{useState as C,useMemo as A,useEffect as c}from"react";import{Star as l}from"./Star.js";const b=I("div","production"===process.env.NODE_ENV?{target:"e1yh3w250"}:{target:"e1yh3w250",label:"Container"})("production"===process.env.NODE_ENV?{name:"31c8wb",styles:"display:flex;flex-direction:row;gap:12px;justify-content:start;align-items:center"}:{name:"31c8wb",styles:"display:flex;flex-direction:row;gap:12px;justify-content:start;align-items:center",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlN0YXJSYXRpbmcudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUk2QiIsImZpbGUiOiJTdGFyUmF0aW5nLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGpzeCBhcyBfanN4IH0gZnJvbSBcInJlYWN0L2pzeC1ydW50aW1lXCI7XHJcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgdXNlRWZmZWN0LCB1c2VNZW1vLCB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0JztcclxuaW1wb3J0IHsgU3RhciB9IGZyb20gJy4vU3Rhcic7XHJcbmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXYgYFxuXHRkaXNwbGF5OiBmbGV4O1xuXHRmbGV4LWRpcmVjdGlvbjogcm93O1xuXHRnYXA6IDEycHg7XG5cdGp1c3RpZnktY29udGVudDogc3RhcnQ7XG5cdGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5gO1xyXG5leHBvcnQgY29uc3QgU3RhclJhdGluZyA9ICh7IGVtcHR5Q29sb3IsIGZpbGxlZENvbG9yLCBvbkNoYW5nZSwgdmFsdWUsIG1heFZhbHVlLCBzdGFyU2l6ZSB9KSA9PiB7XHJcbiAgICBjb25zdCBbc3RhcnMsIHNldFN0YXJzXSA9IHVzZVN0YXRlKHZhbHVlICE9PSBudWxsICYmIHZhbHVlICE9PSB2b2lkIDAgPyB2YWx1ZSA6IDApO1xyXG4gICAgY29uc3QgW21vdW50ZWQsIHNldE1vdW50ZWRGbGFnXSA9IHVzZVN0YXRlKGZhbHNlKTtcclxuICAgIGNvbnN0IFtob3ZlcmVkU3Rhciwgc2V0SG92ZXJlZFN0YXJdID0gdXNlU3RhdGUoMCk7XHJcbiAgICBjb25zdCBhcnIgPSB1c2VNZW1vKCgpID0+IHtcclxuICAgICAgICBjb25zdCBsaW1pdCA9IG1heFZhbHVlICE9PSBudWxsICYmIG1heFZhbHVlICE9PSB2b2lkIDAgPyBtYXhWYWx1ZSA6IDU7XHJcbiAgICAgICAgcmV0dXJuIEFycmF5KGxpbWl0KVxyXG4gICAgICAgICAgICAuZmlsbChudWxsKVxyXG4gICAgICAgICAgICAubWFwKChfLCBpZHgpID0+IGlkeCArIDEpO1xyXG4gICAgfSwgW21heFZhbHVlXSk7XHJcbiAgICB1c2VFZmZlY3QoKCkgPT4ge1xyXG4gICAgICAgIGlmIChtb3VudGVkKSB7XHJcbiAgICAgICAgICAgIG9uQ2hhbmdlKHN0YXJzKTtcclxuICAgICAgICB9XHJcbiAgICB9LCBbc3RhcnNdKTtcclxuICAgIHVzZUVmZmVjdCgoKSA9PiB7XHJcbiAgICAgICAgc2V0TW91bnRlZEZsYWcodHJ1ZSk7XHJcbiAgICB9LCBbXSk7XHJcbiAgICByZXR1cm4gKF9qc3goQ29udGFpbmVyLCB7IGNoaWxkcmVuOiBhcnIubWFwKChpZHgpID0+IChfanN4KFN0YXIsIHsgYXNIb3ZlcmVkOiBob3ZlcmVkU3RhciA/IGlkeCA8PSBob3ZlcmVkU3RhciA6IGZhbHNlLCBzaXplOiBzdGFyU2l6ZSAhPT0gbnVsbCAmJiBzdGFyU2l6ZSAhPT0gdm9pZCAwID8gc3RhclNpemUgOiAyNCwgZmlsbGVkOiBob3ZlcmVkU3RhciA/IHVuZGVmaW5lZCA6IGlkeCA8PSBzdGFycywgZW1wdHlDb2xvcjogZW1wdHlDb2xvciwgZmlsbGVkQ29sb3I6IGZpbGxlZENvbG9yLCBvbkNsaWNrOiAoYWN0aW9uKSA9PiB7XHJcbiAgICAgICAgICAgICAgICBpZiAoYWN0aW9uID09PSAnZGUtc2VsZWN0Jykge1xyXG4gICAgICAgICAgICAgICAgICAgIGlmIChpZHggPCBzdGFycykge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBzZXRTdGFycyhpZHgpO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgc2V0U3RhcnMoaWR4IC0gMSk7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgc2V0U3RhcnMoaWR4KTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSwgb25Ib3ZlcjogKGhvdmVyZWQpID0+IHtcclxuICAgICAgICAgICAgICAgIGlmIChob3ZlcmVkKVxyXG4gICAgICAgICAgICAgICAgICAgIHNldEhvdmVyZWRTdGFyKGlkeCk7XHJcbiAgICAgICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICBzZXRIb3ZlcmVkU3RhcigwKTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSB9LCBpZHgpKSkgfSkpO1xyXG59O1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1TdGFyUmF0aW5nLmpzLm1hcCJdfQ== */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}),e=I=>{let{emptyColor:e,filledColor:t,onChange:i,value:Z,maxValue:o,starSize:G}=I;const[d,n]=C(null!=Z?Z:0),[s,m]=C(!1),[a,X]=C(0),p=A((()=>Array(null!=o?o:5).fill(null).map(((I,g)=>g+1))),[o]);return c((()=>{s&&i(d)}),[d]),c((()=>{m(!0)}),[]),g(b,{children:p.map((I=>g(l,{asHovered:!!a&&I<=a,size:null!=G?G:24,filled:a?void 0:I<=d,emptyColor:e,filledColor:t,onClick:g=>{n("de-select"===g?I<d?I:I-1:I)},onHover:g=>{X(g?I:0)}},I)))})};export{e as StarRating};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import c from"@emotion/styled/base";import{getPadding as l,getBackgroundColor as b,generateBorder as d,getTextColor as
|
|
1
|
+
import c from"@emotion/styled/base";import{getPadding as l,getBackgroundColor as b,generateBorder as d,getTextColor as X}from"./themes.js";const g=c("div","production"===process.env.NODE_ENV?{target:"e930jd90"}:{target:"e930jd90",label:"Tag"})("cursor:",(c=>{var l;return null!==(l=c.cursor)&&void 0!==l?l:"default"}),";",(c=>"regular"===c.variant?"display: block;\n\t\t height: 26px;\n\t\t":"height: 20px;")," .container{display:flex;align-items:center;gap:6px;padding:",(c=>l(c.variant)),";background-color:",(c=>b(c.theme,c.type)),";border-radius:",(c=>"regular"===c.variant?"4px":"12px"),";",(c=>"light"===c.theme&&`border: ${"2.0"===c.version?.5:1}px solid ${d(c.type)};`)," .text{color:",(c=>X(c.theme,c.type)),";}.icon-trailing{all:unset;display:flex;}.icon-leading{all:unset;display:flex;}}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRhZy5zdHlsZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUU4QiIsImZpbGUiOiJUYWcuc3R5bGVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgZ2VuZXJhdGVCb3JkZXIsIGdldEJhY2tncm91bmRDb2xvciwgZ2V0UGFkZGluZywgZ2V0VGV4dENvbG9yLCB9IGZyb20gJy4vdGhlbWVzJztcclxuZXhwb3J0IGNvbnN0IFRhZyA9IHN0eWxlZC5kaXYgYFxuXHRjdXJzb3I6ICR7KHByb3BzKSA9PiB7IHZhciBfYTsgcmV0dXJuIChfYSA9IHByb3BzLmN1cnNvcikgIT09IG51bGwgJiYgX2EgIT09IHZvaWQgMCA/IF9hIDogJ2RlZmF1bHQnOyB9fTtcblx0JHsocHJvcHMpID0+IHByb3BzLnZhcmlhbnQgPT09ICdyZWd1bGFyJ1xyXG4gICAgPyBgZGlzcGxheTogYmxvY2s7XG5cdFx0ICAgICBoZWlnaHQ6IDI2cHg7XG5cdFx0YFxyXG4gICAgOiBgaGVpZ2h0OiAyMHB4O2B9XG5cdC5jb250YWluZXIge1xuXHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0YWxpZ24taXRlbXM6IGNlbnRlcjtcblx0XHRnYXA6IDZweDtcblx0XHRwYWRkaW5nOiAkeyhwcm9wcykgPT4gZ2V0UGFkZGluZyhwcm9wcy52YXJpYW50KX07XG5cblx0XHRiYWNrZ3JvdW5kLWNvbG9yOiAkeyhwcm9wcykgPT4gZ2V0QmFja2dyb3VuZENvbG9yKHByb3BzLnRoZW1lLCBwcm9wcy50eXBlKX07XG5cblx0XHRib3JkZXItcmFkaXVzOiAkeyhwcm9wcykgPT4gKHByb3BzLnZhcmlhbnQgPT09ICdyZWd1bGFyJyA/ICc0cHgnIDogJzEycHgnKX07XG5cblx0XHQkeyhwcm9wcykgPT4gcHJvcHMudGhlbWUgPT09ICdsaWdodCcgJiZcclxuICAgIGBib3JkZXI6ICR7cHJvcHMudmVyc2lvbiA9PT0gJzIuMCcgPyAwLjUgOiAxfXB4IHNvbGlkICR7Z2VuZXJhdGVCb3JkZXIocHJvcHMudHlwZSl9O2B9XG5cblx0XHQudGV4dCB7XG5cdFx0XHRjb2xvcjogJHsocHJvcHMpID0+IGdldFRleHRDb2xvcihwcm9wcy50aGVtZSwgcHJvcHMudHlwZSl9O1xuXHRcdH1cblxuXHRcdC5pY29uLXRyYWlsaW5nIHtcblx0XHRcdGFsbDogdW5zZXQ7XG5cdFx0XHRkaXNwbGF5OiBmbGV4O1xuXHRcdH1cblxuXHRcdC5pY29uLWxlYWRpbmcge1xuXHRcdFx0YWxsOiB1bnNldDtcblx0XHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0fVxuXHR9XG5gO1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1UYWcuc3R5bGVkLmpzLm1hcCJdfQ== */"));export{g as Tag};
|
|
@@ -3,7 +3,7 @@ import { CHANNEL_TYPE } from '../template-preview/models/Channels';
|
|
|
3
3
|
import { EmailTemplateType } from '../template-preview/models/EmailTemplate';
|
|
4
4
|
import { SMSTemplateType } from '../template-preview/models/SmsTemplate';
|
|
5
5
|
import { CUSTOM_VARIABLE, GlobalPlaceholderType } from '../template-preview/models/TemplateMeta';
|
|
6
|
-
import {
|
|
6
|
+
import { WhatsAppPickerMeta, WhatsAppTemplate, WhatsAppTemplateVariables } from '../template-preview/models/WhatsAppTemplate';
|
|
7
7
|
export interface TemplateContextMapperProps {
|
|
8
8
|
selectedTemplate: WhatsAppTemplate | EmailTemplateType | SMSTemplateType;
|
|
9
9
|
closeDialog?: () => void;
|
|
@@ -11,7 +11,7 @@ export interface TemplateContextMapperProps {
|
|
|
11
11
|
channel: CHANNEL_TYPE;
|
|
12
12
|
globalPlaceholders: GlobalPlaceholderType;
|
|
13
13
|
/** List of variables being used in this template */
|
|
14
|
-
templateVariables: CUSTOM_VARIABLE[]
|
|
14
|
+
templateVariables: CUSTOM_VARIABLE[];
|
|
15
15
|
/** Only for initial-UI-purpose for the modal */
|
|
16
16
|
htmlContent: string;
|
|
17
17
|
showOnlyContent?: boolean;
|
|
@@ -20,14 +20,6 @@ export interface TemplateContextMapperProps {
|
|
|
20
20
|
zIndex?: number;
|
|
21
21
|
showVariableModal?: boolean;
|
|
22
22
|
variableList?: VariableListInterfaceV2[];
|
|
23
|
-
variableListForImage?: VariableListInterfaceV2[];
|
|
24
23
|
onBackPress?: () => void;
|
|
25
|
-
discountCode?: string;
|
|
26
|
-
setDiscountCode?: (code: string) => void;
|
|
27
|
-
enabledCustomText?: boolean;
|
|
28
|
-
showSampleValues?: boolean;
|
|
29
|
-
disableEditVariable?: boolean;
|
|
30
|
-
pod?: POD;
|
|
31
|
-
extras?: ExtrasWhatsapp;
|
|
32
24
|
}
|
|
33
|
-
export declare const TemplateContextMapper: ({ selectedTemplate, closeDialog, showVariableMapping, channel, htmlContent, templateVariables, onTemplateSelect, globalPlaceholders, showOnlyContent, whatsappSpecificPickerMeta, zIndex, showVariableModal, variableList,
|
|
25
|
+
export declare const TemplateContextMapper: ({ selectedTemplate, closeDialog, showVariableMapping, channel, htmlContent, templateVariables, onTemplateSelect, globalPlaceholders, showOnlyContent, whatsappSpecificPickerMeta, zIndex, showVariableModal, variableList, onBackPress, }: TemplateContextMapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as l,Fragment as t}from"react/jsx-runtime";import{useEffect as o,useState as a,useMemo as i}from"react";import r from"../../utils/StringUtils.js";import{StyledModal as n}from"../modals/styledModal.js";import{CHANNEL_TYPE as s}from"../template-preview/models/Channels.js";import{TemplateModalContext as c}from"./context/templateModalContext.js";import m from"./modalElements/Footer.js";import p from"./modalElements/TemplateSelectModalContent.js";import{convertPlaceholdersToBikDropdown as d}from"./utils/convertPlaceholdersToBikDropdown.js";const h=h=>{let{selectedTemplate:g,closeDialog:u,showVariableMapping:b,channel:v,htmlContent:f,templateVariables:M,onTemplateSelect:S,globalPlaceholders:j,showOnlyContent:w,whatsappSpecificPickerMeta:P,zIndex:T,showVariableModal:C,variableList:L,onBackPress:y}=h;var E,V;o((()=>{A(f)}),[f]);const[k,x]=a(v===s.EMAIL?"desktop":"mobile"),[I,A]=a(f),[O,D]=a(!1),[z,B]=a(g),[F,H]=a(null!=M?M:[]),[$,N]=a(!1);const U=i((()=>d(j)),[j]);return e(c.Provider,Object.assign({value:{template:z,setTemplate:B,device:k,setDevice:x,display_content:I,setDisplayContent:A,originalVariableList:F,setOriginalVariableList:H,isError:O,setIsError:D,channel:v,globalNormalizedPlaceholders:U,templateSelectionTriggered:$,setTemplateSelectionTriggered:N}},{children:w?e(p,{channel:s.EMAIL,hideHeader:!0}):l(n,Object.assign({zIndex:T,centralContainerStyles:{width:v===s.EMAIL&&b?1e3:650},open:!0,onClose:()=>{null==u||u()},headingTitle:null==z?void 0:z.label,headingSubtitle:v===s.WHATSAPP?`${r.capitaliseFirstLetterOfString(null!==(E=null==z?void 0:z.category)&&void 0!==E?E:"")} • ${null!==(V=null==z?void 0:z.templateCategory)&&void 0!==V?V:""}`:"",onBackPress:()=>{null==y||y()}},{children:[e(p,{showVariableMapping:b,channel:v,whatsappSpecificPickerMeta:P,showVariableModal:C,variableList:L}),S?e(m,{onSelect:function(){const e=null==S?void 0:S(z,F,null!=I?I:"");e?D(!!e):N(!0)}}):e(t,{})]}))}))};export{h as TemplateContextMapper};
|
|
@@ -3,7 +3,7 @@ import { CHANNEL_TYPE } from "../../template-preview/models/Channels";
|
|
|
3
3
|
import { EmailTemplateType } from "../../template-preview/models/EmailTemplate";
|
|
4
4
|
import { SMSTemplateType } from "../../template-preview/models/SmsTemplate";
|
|
5
5
|
import { CUSTOM_VARIABLE, globalNormalizedPlaceholdersType } from "../../template-preview/models/TemplateMeta";
|
|
6
|
-
import {
|
|
6
|
+
import { WhatsAppTemplate, WhatsAppTemplateVariables } from "../../template-preview/models/WhatsAppTemplate";
|
|
7
7
|
export type DEVICE_TYPES = 'desktop' | 'mobile';
|
|
8
8
|
export declare const TemplateModalContext: React.Context<{
|
|
9
9
|
device: DEVICE_TYPES;
|
|
@@ -21,10 +21,6 @@ export declare const TemplateModalContext: React.Context<{
|
|
|
21
21
|
globalNormalizedPlaceholders?: globalNormalizedPlaceholdersType[] | undefined;
|
|
22
22
|
templateSelectionTriggered: boolean;
|
|
23
23
|
setTemplateSelectionTriggered?: React.Dispatch<React.SetStateAction<boolean>> | undefined;
|
|
24
|
-
enabledCustomText?: boolean | undefined;
|
|
25
|
-
disableEditVariable?: boolean | undefined;
|
|
26
|
-
pod?: string | undefined;
|
|
27
|
-
extras?: ExtrasWhatsapp | undefined;
|
|
28
24
|
}>;
|
|
29
25
|
export declare const useTemplateModalContext: () => {
|
|
30
26
|
device: DEVICE_TYPES;
|
|
@@ -42,8 +38,4 @@ export declare const useTemplateModalContext: () => {
|
|
|
42
38
|
globalNormalizedPlaceholders?: globalNormalizedPlaceholdersType[] | undefined;
|
|
43
39
|
templateSelectionTriggered: boolean;
|
|
44
40
|
setTemplateSelectionTriggered?: React.Dispatch<React.SetStateAction<boolean>> | undefined;
|
|
45
|
-
enabledCustomText?: boolean | undefined;
|
|
46
|
-
disableEditVariable?: boolean | undefined;
|
|
47
|
-
pod?: string | undefined;
|
|
48
|
-
extras?: ExtrasWhatsapp | undefined;
|
|
49
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useContext as t}from"react";import{CHANNEL_TYPE as
|
|
1
|
+
import e,{useContext as t}from"react";import{CHANNEL_TYPE as r}from"../../template-preview/models/Channels.js";const l=e.createContext({device:"desktop",templateSelectionTriggered:!1,display_content:null,originalVariableList:[],channel:r.EMAIL,template:null,isError:!1}),o=()=>t(l);export{l as TemplateModalContext,o as useTemplateModalContext};
|
|
@@ -6,10 +6,6 @@ export interface BodyProps {
|
|
|
6
6
|
whatsappSpecificPickerMeta?: WhatsAppPickerMeta;
|
|
7
7
|
showVariableModal?: boolean;
|
|
8
8
|
variableList?: VariableListInterfaceV2[];
|
|
9
|
-
variableListForImage?: VariableListInterfaceV2[];
|
|
10
|
-
discountCode?: string;
|
|
11
|
-
setDiscountCode?: (code: string) => void;
|
|
12
|
-
showSampleValues?: boolean;
|
|
13
9
|
}
|
|
14
10
|
declare const Body: (props: BodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
11
|
export default Body;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useRef as l}from"react";import n from"styled-components";import{CHANNEL_TYPE as i}from"../../template-preview/models/Channels.js";import{COLORS as a}from"../../../constants/Theme.js";import{useTemplateModalContext as r}from"../context/templateModalContext.js";import{getVariableNameForEmailByIndex as
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useRef as l}from"react";import n from"styled-components";import{CHANNEL_TYPE as i}from"../../template-preview/models/Channels.js";import{COLORS as a}from"../../../constants/Theme.js";import{useTemplateModalContext as r}from"../context/templateModalContext.js";import{getVariableNameForEmailByIndex as p}from"../utils/getVariableNameEmail.js";import{highlightFor as s}from"../utils/highlightFor.js";import m from"./DesktopPreview.js";import d from"./EditWhatsAppTemplateV2.js";import c from"./MobilePreview.js";import h from"./VariableConnectorsPanel.js";const f=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
// height: 100%;
|
|
4
|
-
`,
|
|
4
|
+
`,u=n.div`
|
|
5
5
|
padding: 16px 14px;
|
|
6
|
-
|
|
6
|
+
border-left-width: 1px;
|
|
7
|
+
border-left-color: ${a.stroke.primary};
|
|
8
|
+
max-width: 350px;
|
|
7
9
|
|
|
8
10
|
height: ${e=>e.channel===i.WHATSAPP?"500px":"475px"};
|
|
9
11
|
overflow-y: 'auto';
|
|
10
12
|
padding-bottom: 24px;
|
|
11
|
-
border-left: ${a.stroke.primary} 1px solid;
|
|
12
13
|
`,v=n.div`
|
|
13
14
|
padding: ${e=>e.showOnlyContent?"16px 14px":"16px 32px"};
|
|
14
15
|
flex: 1;
|
|
15
16
|
height: 475px;
|
|
16
17
|
overflow-y: auto;
|
|
17
|
-
`,g=n=>{const{showVariableMapping:g,showOnlyContent:w,whatsappSpecificPickerMeta:b,showVariableModal:x,variableList:y
|
|
18
|
+
`,g=n=>{const{showVariableMapping:g,showOnlyContent:w,whatsappSpecificPickerMeta:b,showVariableModal:x,variableList:y}=n,j=l(),M=l(),{device:P,display_content:E,channel:T,template:k,setTemplate:A}=r();const V=e=>{let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t};return e(f,{children:[t(v,Object.assign({showOnlyContent:w,showVariableMapping:g},{children:"mobile"===P?t(c,{ref:M,display_content:null!=E?E:"",channel:T,template:k}):T!==i.MESSAGE?t(m,{ref:j,channel:T,display_content:null!=E?E:""}):t(o,{})})),g&&t(u,Object.assign({channel:T},{children:T!==i.WHATSAPP?t(h,{onFocus:T===i.EMAIL?function(e){var t,o,l;const n=null===document||void 0===document?void 0:document.getElementById("mobile"===P?"template_html_mobile":"template_html_desktop"),r=p(e+1),m=T===i.EMAIL?null===(t=null==n?void 0:n.contentWindow)||void 0===t?void 0:t.document.getElementById(r):document.getElementById(r),d=V(m),c=null==m?void 0:m.offsetLeft;"desktop"===P?d&&j.current&&(null===(o=null==n?void 0:n.contentWindow)||void 0===o||o.scrollTo(null!=c?c:0,d),s(r,a.background.warning.light,2,T,P)):d&&M.current&&(null===(l=null==n?void 0:n.contentWindow)||void 0===l||l.scrollTo(null!=c?c:0,d),s(r,a.background.warning.light,2,T,P))}:void 0,showVariableModal:x,variableList:y}):t(d,{whatsappSpecificPickerMeta:b,template:k,onTemplateChange:e=>{null==A||A(e)},showVariableModal:x,variableList:y})}))]})};export{g as default};
|
|
@@ -3,6 +3,5 @@ import { CHANNEL_TYPE } from "../../template-preview/models/Channels";
|
|
|
3
3
|
declare const DesktopPreview: React.ForwardRefExoticComponent<{
|
|
4
4
|
display_content: string;
|
|
5
5
|
channel: CHANNEL_TYPE;
|
|
6
|
-
showSampleValues?: boolean | undefined;
|
|
7
6
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
8
7
|
export default DesktopPreview;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import r from"react";import i from"styled-components";import{Spinner as p}from"../../spinner/Spinner.js";import{TemplatePreview as
|
|
2
|
-
background: ${
|
|
3
|
-
border: 1px solid ${
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import r from"react";import i from"styled-components";import{Spinner as p}from"../../spinner/Spinner.js";import{TemplatePreview as o}from"../../template-preview/TemplatePreview.js";import"../../template-preview/WhatsApp/WhatsAppLikePreview.js";import"../../template-preview/WhatsApp/WhatsAppLikePreviewV2.js";import{COLORS as a}from"../../../constants/Theme.js";import"../../template-preview/models/TemplateMeta.js";import{CHANNEL_TYPE as m}from"../../template-preview/models/Channels.js";const s=i.div`
|
|
2
|
+
background: ${a.surface.standard};
|
|
3
|
+
border: 1px solid ${a.stroke.primary};
|
|
4
4
|
border-radius: 8px;
|
|
5
5
|
overflow-y: auto;
|
|
6
6
|
/* max-height: 420px; */
|
|
7
7
|
scroll-behavior: smooth;
|
|
8
8
|
height: 100%;
|
|
9
|
-
`,
|
|
9
|
+
`,d=i.div`
|
|
10
10
|
padding: 18px 24px 12px;
|
|
11
11
|
display: flex;
|
|
12
12
|
gap: 4px;
|
|
13
13
|
border-bottom-width: 1px;
|
|
14
|
-
border-bottom-color: ${
|
|
15
|
-
`,
|
|
14
|
+
border-bottom-color: ${a.stroke.primary};
|
|
15
|
+
`,l=i.div`
|
|
16
16
|
width: 6px;
|
|
17
17
|
height: 6px;
|
|
18
18
|
background: #d9d9d9;
|
|
19
19
|
border-radius: 3px;
|
|
20
|
-
`,n=r.forwardRef(((r,i)=>{let{display_content:
|
|
20
|
+
`,n=r.forwardRef(((r,i)=>{let{display_content:a}=r;return e(s,Object.assign({ref:i},{children:[e(d,{children:[t(l,{}),t(l,{}),t(l,{})]}),t("div",{children:a?t(o,{channel:m.EMAIL,hideHeader:!0,emailSpecificMeta:{emailDisplayContent:a,hideViewButtonForEmail:!0,emailHtmlContainerId:"template_html_desktop",containerStyle:{width:584,height:441},templateContainerStyles:{height:"100%"}}}):t("div",Object.assign({style:{padding:20}},{children:t(p,{size:"small"})}))})]}))}));n.displayName="DesktopPreview";export{n as default};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { HEADER_TYPES } from "../../template-preview/models/TemplateMeta";
|
|
3
2
|
export interface EditMediaV2Props {
|
|
4
3
|
imageName: string[];
|
|
5
|
-
selectedVariable?: string;
|
|
6
4
|
errorSecondaryText?: string;
|
|
7
5
|
error?: string;
|
|
8
6
|
isLoading?: boolean;
|
|
9
7
|
mediaType?: HEADER_TYPES;
|
|
10
8
|
handleImageChange?: () => void;
|
|
11
|
-
disableEditVariable?: boolean;
|
|
12
|
-
setOpenEditMedia?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
13
9
|
}
|
|
14
10
|
declare const EditMediaV2: (props: EditMediaV2Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
11
|
export default EditMediaV2;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{jsxs as e,jsx as
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import o from"../../../assets/icons/document_pdf.svg.js";import r from"../../../assets/icons/edit.svg.js";import s from"../../../assets/icons/refresh.svg.js";import n from"../../../assets/icons/video_camcorder.svg.js";import l from"styled-components";import{Spinner as c}from"../../spinner/Spinner.js";import{HEADER_TYPES as d}from"../../template-preview/models/TemplateMeta.js";import{BodyCaption as a,BodySecondary as m,Caption as p}from"../../TypographyStyle.js";import h from"../../../utils/StringUtils.js";import{COLORS as g}from"../../../constants/Theme.js";import{Container as f,ImageContainer as j,RightComponent as y}from"./EditMediaV2.style.js";const v=l.div`
|
|
2
2
|
padding-left: 14px;
|
|
3
3
|
padding-right: 6px;
|
|
4
4
|
width: 44px;
|
|
5
5
|
height: 24px;
|
|
6
6
|
border-left: 1px solid ${g.stroke.primary};
|
|
7
7
|
cursor: pointer;
|
|
8
|
-
`,
|
|
8
|
+
`,u=l=>{const{imageName:u,error:b,isLoading:x,mediaType:w,handleImageChange:O}=l,C=null==u?void 0:u[0].split("/"),L=null==C?void 0:C[C.length-1];return e(f,{children:[t(j,Object.assign({error:!!b,onClick:b?O:void 0},{children:b?t(s,{color:g.content.brand,width:32,height:32}):x?t(c,{size:"small"}):w===d.IMAGE?t("img",{alt:"",src:null==u?void 0:u[0],style:{width:"100%",height:"56px",borderRadius:8,objectFit:"cover"}}):w===d.VIDEO?t(n,{width:18,height:22,color:g.content.placeholder}):t(o,{width:18,height:22,color:g.content.placeholder})})),e(y,{children:[t("div",Object.assign({style:{flex:1}},{children:u&&b?t(i,{}):x?t(a,Object.assign({style:{marginLeft:8}},{children:"Your media is getting loaded..."})):t(m,Object.assign({style:{color:g.content.primary,marginLeft:8}},{children:h.toCapitilize(null==w?void 0:w.toLowerCase())||L}))})),!!b&&e("div",Object.assign({style:{display:"flex",flexDirection:"column",marginLeft:8}},{children:[e(m,Object.assign({style:{color:g.content.negative}},{children:["Error loading this ",null==w?void 0:w.toLowerCase(),". Retry"]})),t(p,Object.assign({style:{color:g.content.secondary}},{children:b}))]})),!b&&!x&&t(v,Object.assign({onClick:O,onKeyDown:O,role:"presentation"},{children:t(r,{width:24,height:24,color:g.content.placeholder})}))]})]})};export{u as default};
|