@bikdotai/bik-component-library 0.0.687-beta.5 → 0.0.687-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/amplitude/index.d.ts +21 -0
- package/dist/esm/amplitude/index.js +1 -1
- package/dist/esm/amplitude/model.d.ts +51 -0
- package/dist/esm/components/InfiniteScroll/InfiniteScroll.js +1 -1
- package/dist/esm/components/QueryBuilder/Filters/CustomField/components/CustomField.js +1 -1
- 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/Filters/UserProperty/components/UserPropertyFilter.js +1 -1
- package/dist/esm/components/QueryBuilder/QueryBuilder.d.ts +12 -0
- package/dist/esm/components/QueryBuilder/QueryBuilder.js +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.js +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/IG/components/IGTrigger.js +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js +1 -1
- package/dist/esm/components/QueryBuilder/components/AddNodeButton.js +1 -1
- package/dist/esm/components/QueryBuilder/components/AllowedListDropdown.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +14 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/FreeText.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/IgPicker.js +234 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.js +5 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +6 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/IntegerPositiveSingle.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/IntegerSingleValue.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleDate.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/TwoDate.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/TwoNumberInputsSeperatedByAnd.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js +1 -1
- package/dist/esm/components/QueryBuilder/components/DeleteButton.js +1 -1
- package/dist/esm/components/QueryBuilder/components/DropdownWrapper.js +1 -1
- package/dist/esm/components/QueryBuilder/components/InputLoader.js +4 -4
- package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.d.ts +25 -0
- package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.js +4 -4
- package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/AddPropertyButton.js +1 -1
- package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.d.ts +20 -0
- package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -1
- package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.js +1 -1
- package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodes.js +1 -1
- package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/QueryBuilderNode.js +1 -1
- package/dist/esm/components/QueryBuilder/components/QueryBuilderNodes.js +1 -1
- package/dist/esm/components/QueryBuilder/helpers/ApiResponse.helper.js +1 -1
- package/dist/esm/components/QueryBuilder/helpers/Connector.helper.js +1 -1
- package/dist/esm/components/QueryBuilder/hooks/useQueryBuilderCache.js +1 -1
- package/dist/esm/components/QueryBuilder/redux/queryBuilder.reducer.d.ts +56 -0
- package/dist/esm/components/QueryBuilder/redux/queryBuilder.reducer.js +1 -1
- package/dist/esm/components/QueryBuilder/redux/queryBuilderCache.reducer.d.ts +22 -0
- package/dist/esm/components/QueryBuilder/redux/queryBuilderCache.reducer.js +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilder.type.d.ts +90 -0
- package/dist/esm/components/QueryBuilder/types/QueryBuilderAPI.type.d.ts +21 -0
- package/dist/esm/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +54 -0
- package/dist/esm/components/QueryBuilder/types/QueryBuilderNodeProps.type.d.ts +14 -0
- package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +130 -0
- package/dist/esm/components/QueryBuilder/types/QueryBuilderPropertyProps.d.ts +39 -0
- package/dist/esm/components/QueryBuilder/types/QueryBuilderProps.type.d.ts +55 -0
- package/dist/esm/components/SearchFilter/components/DatePickerButton.js +1 -1
- package/dist/esm/components/SearchFilter/components/DateRangeOnlyButton.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/index.d.ts +6 -0
- package/dist/esm/components/SearchFilter/index.js +1 -1
- package/dist/esm/components/SearchFilter/types/SearchFilter.type.d.ts +41 -0
- package/dist/esm/components/TablePagination/TablePagination.d.ts +17 -0
- package/dist/esm/components/TablePagination/TablePagination.js +1 -1
- package/dist/esm/components/TablePagination/TablePaginationCard.d.ts +14 -0
- package/dist/esm/components/TablePagination/TablePaginationCard.js +9 -1
- package/dist/esm/components/TypographyStyle.d.ts +117 -0
- package/dist/esm/components/WhatsAppTextEditor/CustomEditor.styled.js +22 -1
- package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditor.d.ts +46 -0
- package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditor.js +1 -1
- package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.d.ts +24 -0
- package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +34 -1
- package/dist/esm/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.d.ts +23 -0
- package/dist/esm/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js +1 -1
- package/dist/esm/components/accordion/Accordion.d.ts +31 -0
- package/dist/esm/components/accordion/Accordion.js +1 -1
- package/dist/esm/components/accordion/Accordion.style.js +2 -2
- package/dist/esm/components/accordion/AccordionArrow.js +1 -1
- package/dist/esm/components/action-button/ActionButton.styled.js +2 -2
- package/dist/esm/components/action-button/ActionButtons.d.ts +14 -0
- package/dist/esm/components/action-button/ActionButtons.js +1 -1
- package/dist/esm/components/add-variableV2/AddVariableV2.d.ts +61 -0
- package/dist/esm/components/add-variableV2/AddVariableV2.js +1 -1
- package/dist/esm/components/add-variableV2/AddVariableV2.styled.js +3 -3
- package/dist/esm/components/add-variableV2/AddVariableV2SideModal.d.ts +23 -0
- package/dist/esm/components/add-variableV2/types.d.ts +8 -0
- package/dist/esm/components/ai-modals/ActivateBikAI.d.ts +12 -0
- package/dist/esm/components/ai-modals/ActivateBikAI.js +1 -1
- package/dist/esm/components/ai-modals/AiCreditsExhausted.d.ts +11 -0
- package/dist/esm/components/ai-modals/AiCreditsExhausted.js +1 -1
- package/dist/esm/components/ai-modals/AiCreditsLow.d.ts +10 -0
- package/dist/esm/components/ai-modals/AiCreditsLow.js +1 -1
- package/dist/esm/components/ai-modals/AiSyncProgress.d.ts +11 -0
- package/dist/esm/components/ai-modals/AiSyncProgress.js +1 -1
- package/dist/esm/components/alerts/Alert.d.ts +25 -0
- package/dist/esm/components/alerts/Alert.js +1 -1
- package/dist/esm/components/alerts/AlertHelper.d.ts +42 -0
- package/dist/esm/components/analytics-card/AnalyticsCard.d.ts +14 -0
- package/dist/esm/components/analytics-card/AnalyticsCard.styled.d.ts +21 -0
- package/dist/esm/components/analytics-card/AnalyticsCard.styled.js +46 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChip.d.ts +23 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChip.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.d.ts +52 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMetric.d.ts +21 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +5 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.d.ts +9 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.d.ts +37 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.js +113 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.d.ts +49 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.styles.js +4 -4
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js +19 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.d.ts +58 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.js +16 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.d.ts +6 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js +2 -2
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.d.ts +8 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +5 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartInputData.d.ts +23 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.d.ts +6 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.model.d.ts +90 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.styles.js +6 -6
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.d.ts +6 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.model.d.ts +51 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.d.ts +6 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraphModel.d.ts +24 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.d.ts +18 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.d.ts +49 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.styles.js +3 -3
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.d.ts +35 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.js +38 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.d.ts +20 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js +32 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/Chip.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/HorinzontalBar.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.d.ts +30 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js +31 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.d.ts +22 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.js +1 -1
- package/dist/esm/components/avatar/Avatar.d.ts +53 -0
- package/dist/esm/components/avatar/Avatar.js +1 -1
- package/dist/esm/components/avatar/AvatarHelper.d.ts +24 -0
- package/dist/esm/components/bik-layout/BikHeader.d.ts +19 -0
- package/dist/esm/components/bik-layout/BikHeader.js +1 -1
- package/dist/esm/components/bik-layout/BikLayout.d.ts +27 -0
- package/dist/esm/components/bik-layout/BikLayout.js +1 -1
- package/dist/esm/components/bik-layout/BikProfile.d.ts +14 -0
- package/dist/esm/components/bik-layout/BikSidebar.d.ts +37 -0
- package/dist/esm/components/bik-layout/BikSidebar.js +1 -1
- package/dist/esm/components/bik-layout/CommonStyles.js +366 -1
- package/dist/esm/components/bik-layout/FeatureModal.d.ts +16 -0
- package/dist/esm/components/bik-layout/FeatureModalV2.d.ts +15 -0
- package/dist/esm/components/bik-layout/ShowShopifyRestrictedModal.d.ts +15 -0
- package/dist/esm/components/bik-layout/ShowShopifyRestrictedModal.js +1 -1
- package/dist/esm/components/bik-layout/SidebarPopup.js +1 -1
- package/dist/esm/components/bik-layout/SidebarSkeleton.d.ts +12 -0
- package/dist/esm/components/bik-layout/SimpleSidebar.d.ts +31 -0
- package/dist/esm/components/bik-layout/SimpleSidebar.js +1 -1
- package/dist/esm/components/button/Button.d.ts +6 -0
- package/dist/esm/components/button/Button.js +1 -1
- package/dist/esm/components/button/Button.styled.js +61 -1
- package/dist/esm/components/button/model.d.ts +78 -0
- package/dist/esm/components/button/themes.js +1 -1
- package/dist/esm/components/buttonGroup/ButtonGroup.d.ts +26 -0
- package/dist/esm/components/buttonGroup/ButtonGroup.js +1 -1
- package/dist/esm/components/card-selection-modal/CardSelectionModal.d.ts +21 -0
- package/dist/esm/components/card-selection-modal/CardSelectionModal.styled.js +41 -1
- package/dist/esm/components/card-selector/CardSelector.d.ts +20 -0
- package/dist/esm/components/card-selector/CardSelector.js +1 -1
- package/dist/esm/components/card-selector/CardSelectorGroup.d.ts +14 -0
- package/dist/esm/components/carousel/carousel.d.ts +6 -0
- package/dist/esm/components/carousel/carousel.js +2 -2
- package/dist/esm/components/carousel-preview/CarouselPreview.d.ts +16 -0
- package/dist/esm/components/carousel-preview/CarouselPreview.js +1 -1
- package/dist/esm/components/carousel-preview/CarouselPreview.style.js +4 -4
- package/dist/esm/components/carousel-preview/CarouselPreviewCard.js +1 -1
- package/dist/esm/components/carousel-preview/CustomCarouselArrows.js +1 -1
- package/dist/esm/components/carousel-secondary/CarouselSecondary.d.ts +15 -0
- package/dist/esm/components/carousel-secondary/CarouselSecondary.js +1 -1
- package/dist/esm/components/carousel-secondary/CarouselSecondary.style.js +42 -1
- package/dist/esm/components/carousel-secondary/model.d.ts +6 -0
- package/dist/esm/components/checkBox/CheckBox.d.ts +24 -0
- package/dist/esm/components/checkBox/CheckBox.js +1 -1
- package/dist/esm/components/checkBox/CheckBox.styled.js +6 -6
- package/dist/esm/components/checkList/CheckList.d.ts +17 -0
- package/dist/esm/components/checkList/CheckList.js +1 -1
- package/dist/esm/components/checkList/CheckList.styled.js +10 -1
- package/dist/esm/components/colourInput/ColourInput.d.ts +12 -0
- package/dist/esm/components/colourInput/ColourInput.js +1 -1
- package/dist/esm/components/colourInput/ColourInput.styled.js +29 -1
- package/dist/esm/components/country-code-picker/CountryCodePicker.d.ts +22 -0
- package/dist/esm/components/country-code-picker/CountryCodePicker.js +1 -1
- package/dist/esm/components/country-code-picker/CountryCodePicker.modal.d.ts +10 -0
- package/dist/esm/components/country-code-picker/CountryCodePicker.styled.js +31 -1
- package/dist/esm/components/curtain/Curtain.d.ts +27 -0
- package/dist/esm/components/curtain/CurtainHelper.d.ts +26 -0
- package/dist/esm/components/custom-date-time/CustomDateTime.d.ts +16 -0
- package/dist/esm/components/custom-date-time/CustomDateTime.js +1 -1
- package/dist/esm/components/custom-date-time/CustomDateTime.styled.js +25 -1
- package/dist/esm/components/custom-date-time/DateSelector/DateSelector.js +1 -1
- package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.d.ts +21 -0
- package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.js +1 -1
- package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.styled.js +26 -1
- package/dist/esm/components/dashboard-review-popup/components/FiveStar.js +1 -1
- package/dist/esm/components/dashboard-review-popup/components/FiveStar.styled.js +18 -1
- package/dist/esm/components/dashboard-review-popup/components/Form.js +1 -1
- package/dist/esm/components/dashboard-review-popup/components/Form.styled.js +49 -1
- package/dist/esm/components/dashboard-review-popup/components/ZeroState.js +5 -1
- package/dist/esm/components/data-source-panel/DataSourceInfoFooter.js +1 -1
- package/dist/esm/components/data-source-panel/DataSourcePanel.d.ts +39 -0
- package/dist/esm/components/data-source-panel/DataSourcePanel.js +1 -1
- package/dist/esm/components/data-source-panel/Modals/DescriptionModal.js +6 -6
- package/dist/esm/components/data-source-panel/model.d.ts +144 -0
- package/dist/esm/components/datePicker/DatePicker.d.ts +16 -0
- package/dist/esm/components/datePicker/DatePicker.js +1 -1
- package/dist/esm/components/datePicker/DatePicker.styled.js +159 -1
- package/dist/esm/components/datePicker/DatePickerWrapper.d.ts +19 -0
- package/dist/esm/components/datePicker/DatePickerWrapper.js +1 -1
- package/dist/esm/components/datePicker/model.d.ts +6 -0
- package/dist/esm/components/discount-modal/CouponExpiration/CouponExpiration.d.ts +14 -0
- package/dist/esm/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
- package/dist/esm/components/discount-modal/DiscountModal.d.ts +43 -0
- package/dist/esm/components/discount-modal/DiscountModal.js +1 -1
- package/dist/esm/components/discount-modal/DiscountModal.styled.js +69 -1
- package/dist/esm/components/discount-modal/DiscountUtils.js +1 -1
- package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
- package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.styled.js +8 -8
- package/dist/esm/components/discount-modal/DynamicCoupon/MinimumRequirementComponent.js +1 -1
- package/dist/esm/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
- package/dist/esm/components/discount-modal/type.d.ts +111 -0
- package/dist/esm/components/dropShadow/DropShadow.d.ts +10 -0
- package/dist/esm/components/dropShadow/DropShadow.js +1 -1
- package/dist/esm/components/dropdown/ChipDropdown.d.ts +11 -0
- package/dist/esm/components/dropdown/ChipDropdown.js +5 -5
- package/dist/esm/components/dropdown/ChipInput.js +1 -1
- package/dist/esm/components/dropdown/Common.styled.js +2 -2
- package/dist/esm/components/dropdown/Dropdown.d.ts +24 -0
- package/dist/esm/components/dropdown/Dropdown.js +1 -1
- package/dist/esm/components/dropdown/DropdownPopover/index.d.ts +20 -0
- package/dist/esm/components/dropdown/DropdownPopover/index.js +1 -1
- package/dist/esm/components/dropdown/MenuItem/MenuItem.d.ts +13 -0
- package/dist/esm/components/dropdown/MenuItem/MenuItem.js +6 -6
- package/dist/esm/components/dropdown/MultilevelDropdownPopover/index.d.ts +18 -0
- package/dist/esm/components/dropdown/MultilevelDropdownPopover/index.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/OpennedDropdown.d.ts +6 -0
- package/dist/esm/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/description/Description.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/FreeFormMenu.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +6 -6
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/SelectAllMenu.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/searchbox/SearchZeroState.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/utils/iterationOnOptions.js +1 -1
- package/dist/esm/components/dropdown/hooks/useDropdown.js +1 -1
- package/dist/esm/components/dropdown/type.d.ts +75 -0
- package/dist/esm/components/dropdown-button/DropdownButton.d.ts +13 -0
- package/dist/esm/components/dropdown-button/DropdownButton.js +1 -1
- package/dist/esm/components/dropdown-button/DropdownButton.style.js +1 -1
- package/dist/esm/components/dynamic-tabs/DynamicTabs.d.ts +28 -0
- package/dist/esm/components/dynamic-tabs/DynamicTabs.js +1 -1
- package/dist/esm/components/fab-menu/FABMenu.d.ts +28 -0
- package/dist/esm/components/file-uploader/FileUploader.d.ts +6 -0
- package/dist/esm/components/file-uploader/FileUploader.js +1 -1
- package/dist/esm/components/file-uploader/Models.d.ts +31 -0
- package/dist/esm/components/floater/floater.d.ts +13 -0
- package/dist/esm/components/floater/floater.js +1 -1
- package/dist/esm/components/floating-action-button/FloatingActionButton.d.ts +24 -0
- package/dist/esm/components/floating-action-button/FloatingActionButton.styles.d.ts +62 -0
- package/dist/esm/components/floating-input-dropdown/FloatingInputDropdown.d.ts +28 -0
- package/dist/esm/components/floating-input-dropdown/FloatingInputDropdown.js +4 -4
- package/dist/esm/components/icon-button/IconButton.d.ts +6 -0
- package/dist/esm/components/icon-button/IconButton.js +1 -1
- package/dist/esm/components/icon-button/model.d.ts +45 -0
- package/dist/esm/components/image-compress/ImageCompress.d.ts +14 -0
- package/dist/esm/components/image-compress/ImageCompress.js +1 -1
- package/dist/esm/components/image-cropper/BikImageCropper.d.ts +12 -0
- package/dist/esm/components/image-cropper/BikImageCropper.js +1 -1
- package/dist/esm/components/image-cropper/BikImagePipeline/BikImagePipeline.d.ts +38 -0
- package/dist/esm/components/image-cropper/BikImagePipeline/BikImagePipeline.js +1 -1
- package/dist/esm/components/input/ChipInput.js +1 -1
- package/dist/esm/components/input/ChipInput.styled.js +1 -1
- package/dist/esm/components/input/Input-helper.js +1 -1
- package/dist/esm/components/input/Input.d.ts +76 -0
- package/dist/esm/components/input/Input.js +1 -1
- package/dist/esm/components/input/Input.styled.js +144 -1
- package/dist/esm/components/input-with-vars/InputWithVariables.d.ts +34 -0
- package/dist/esm/components/input-with-vars/InputWithVariables.js +2 -2
- package/dist/esm/components/input-with-vars/customPortal.d.ts +10 -0
- package/dist/esm/components/input-with-vars/customPortal.js +1 -1
- package/dist/esm/components/keywords-input/KeywordsInput.d.ts +15 -0
- package/dist/esm/components/keywords-input/KeywordsInput.js +1 -1
- package/dist/esm/components/list-item/ListItem.d.ts +23 -0
- package/dist/esm/components/list-item/ListItem.js +1 -1
- package/dist/esm/components/list-item/ListItem.styled.js +10 -1
- package/dist/esm/components/list-item/themes.js +29 -1
- package/dist/esm/components/modals/Modal.js +1 -1
- package/dist/esm/components/modals/modal.styled.js +47 -1
- package/dist/esm/components/modals/styledModal.d.ts +35 -0
- package/dist/esm/components/modals/styledModal.js +47 -1
- package/dist/esm/components/multi-level-dropdown/GroupedMenuList.js +1 -1
- package/dist/esm/components/multi-level-dropdown/MenuItem.js +1 -1
- package/dist/esm/components/multi-level-dropdown/MenuList.js +1 -1
- package/dist/esm/components/multi-level-dropdown/MultiLevelDropdown.d.ts +6 -0
- package/dist/esm/components/multi-level-dropdown/MultiLevelDropdown.js +1 -1
- package/dist/esm/components/multi-level-dropdown/MultiLevelDropdown.styled.js +25 -25
- package/dist/esm/components/multi-level-dropdown/type.d.ts +30 -0
- package/dist/esm/components/navigation-hyperlink/NavigationHyperlink.d.ts +14 -0
- package/dist/esm/components/pagination/Pagination.d.ts +13 -0
- package/dist/esm/components/pagination/Pagination.js +1 -1
- package/dist/esm/components/pagination/Pagination.styled.js +7 -1
- package/dist/esm/components/plans/NewSubscriptionPlan.d.ts +22 -0
- package/dist/esm/components/plans/NewSubscriptionPlan.js +1 -1
- package/dist/esm/components/plans/SubscriptionPlan.d.ts +41 -0
- package/dist/esm/components/plans/SubscriptionPlan.js +1 -1
- package/dist/esm/components/plans/SubscriptionPlanSelector.d.ts +49 -0
- package/dist/esm/components/plans/SubscriptionPlanSelector.js +101 -1
- package/dist/esm/components/plans/SubscriptionPlanStyled.js +266 -1
- package/dist/esm/components/plans/SubscriptionPlansCollected.d.ts +18 -0
- package/dist/esm/components/plans/SubscriptionPlansCollected.js +3 -3
- package/dist/esm/components/postPicker/postPicker.d.ts +51 -0
- package/dist/esm/components/postPicker/postPicker.js +1 -1
- package/dist/esm/components/product-picker/ProductPicker.styled.js +71 -1
- package/dist/esm/components/product-picker/ProductPickerModal.d.ts +7 -0
- package/dist/esm/components/product-picker/ProductPickerModal.js +1 -1
- package/dist/esm/components/product-picker/type.d.ts +70 -0
- package/dist/esm/components/product-picker-v2/ProductPickerShimmer.js +1 -1
- package/dist/esm/components/product-picker-v2/ProductPickerTag.js +1 -1
- package/dist/esm/components/product-picker-v2/collectionScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/emptyState.js +1 -1
- package/dist/esm/components/product-picker-v2/helpers/ProductHelper.js +1 -1
- package/dist/esm/components/product-picker-v2/modal.d.ts +114 -0
- package/dist/esm/components/product-picker-v2/modal.js +1 -1
- package/dist/esm/components/product-picker-v2/product.js +1 -1
- package/dist/esm/components/product-picker-v2/productInfoOverlay.js +3 -3
- package/dist/esm/components/product-picker-v2/productScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/rearrangeScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/reducers.js +1 -1
- package/dist/esm/components/product-picker-v2/searchScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/selectedScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/type.d.ts +22 -0
- package/dist/esm/components/product-picker-v2/utility.js +1 -1
- package/dist/esm/components/product-picker-v2/variant.js +1 -1
- package/dist/esm/components/product-picker-v2/variantComponents.js +1 -1
- package/dist/esm/components/progress-bar/CircularProgressBar.js +1 -1
- package/dist/esm/components/progress-bar/ProgressBarComponent.d.ts +21 -0
- package/dist/esm/components/progress-bar/ProgressBarComponent.js +6 -1
- package/dist/esm/components/progress-bar-v2/ProgressBarV2.d.ts +27 -0
- package/dist/esm/components/progress-bar-v2/ProgressBarV2.js +39 -1
- package/dist/esm/components/radioButton/RadioButton.d.ts +21 -0
- package/dist/esm/components/radioButton/RadioButton.js +1 -1
- package/dist/esm/components/radioList/RadioList.d.ts +18 -0
- package/dist/esm/components/radioList/RadioList.js +1 -1
- package/dist/esm/components/radioList/RadioList.styled.js +10 -1
- package/dist/esm/components/resizeImage/index.d.ts +12 -0
- package/dist/esm/components/resizeImage/index.js +1 -1
- package/dist/esm/components/searchBar/searchBar.d.ts +24 -0
- package/dist/esm/components/searchBar/searchBar.js +1 -1
- package/dist/esm/components/shimmer/ShimmerComponent/BikShimmer.d.ts +18 -0
- package/dist/esm/components/shimmer/ShimmerComponent/ShimmerStyled.js +35 -2
- package/dist/esm/components/shimmer-image/ShimmerImage.d.ts +17 -0
- package/dist/esm/components/shimmer-image/ShimmerImage.js +1 -1
- package/dist/esm/components/side-modal/SideModal.d.ts +25 -0
- package/dist/esm/components/side-modal/SideModal.js +1 -1
- package/dist/esm/components/side-modal/SideModal.style.js +9 -9
- package/dist/esm/components/slider/slider.d.ts +14 -0
- package/dist/esm/components/slider/slider.js +1 -1
- package/dist/esm/components/spinner/Spinner.d.ts +16 -0
- package/dist/esm/components/spinner/Spinner.js +6 -6
- package/dist/esm/components/spinner/model.d.ts +14 -0
- package/dist/esm/components/star-rating/Star.js +1 -1
- package/dist/esm/components/star-rating/StarRating.d.ts +14 -0
- package/dist/esm/components/star-rating/StarRating.js +7 -1
- package/dist/esm/components/states/ShopifyScopeWrapper.d.ts +17 -0
- package/dist/esm/components/states/ShopifyScopeWrapper.js +1 -1
- package/dist/esm/components/states/StateComponent.d.ts +45 -0
- package/dist/esm/components/states/StateComponent.js +1 -1
- package/dist/esm/components/states-modal/DeleteConfirmationModal.d.ts +14 -0
- package/dist/esm/components/states-modal/StateModalComponent.d.ts +30 -0
- package/dist/esm/components/stepper/Stepper.d.ts +29 -0
- package/dist/esm/components/stepper/Stepper.js +1 -1
- package/dist/esm/components/switch/Switch.d.ts +24 -0
- package/dist/esm/components/switch/Switch.js +61 -1
- package/dist/esm/components/tabs/Tabs.d.ts +7 -0
- package/dist/esm/components/tabs/Tabs.js +1 -1
- package/dist/esm/components/tabs/Tabs.model.d.ts +52 -0
- package/dist/esm/components/tabs/Tabs.styles.js +45 -1
- package/dist/esm/components/tag/Tag.d.ts +9 -0
- package/dist/esm/components/tag/Tag.js +1 -1
- package/dist/esm/components/tag/Tag.styled.js +30 -1
- package/dist/esm/components/tag/model.d.ts +72 -0
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.d.ts +74 -0
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +1 -1
- package/dist/esm/components/template-context-mapper/helpers/WebpushTemplateHelper.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/Body.js +8 -8
- package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/DiscountCodeComponent.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaV2.js +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.d.ts +13 -0
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/Footer.js +5 -5
- package/dist/esm/components/template-context-mapper/modalElements/Header.js +5 -5
- package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js +4 -4
- package/dist/esm/components/template-context-mapper/modalElements/QueryParamsComponent.js +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.d.ts +16 -0
- package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsSkeleton.d.ts +7 -0
- package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js +5 -5
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/VariableEditorHeader.js +3 -3
- package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.js +1 -1
- package/dist/esm/components/template-context-mapper/utils/convertPlaceholdersToBikDropdown.js +1 -1
- package/dist/esm/components/template-context-mapper/utils/getDataFromTemplateComponent.d.ts +36 -0
- package/dist/esm/components/template-context-mapper/utils/getDataFromTemplateComponent.js +1 -1
- package/dist/esm/components/template-context-mapper/utils/highlightFor.js +1 -1
- package/dist/esm/components/template-context-mapper/utils/validateIsUrl.d.ts +4 -0
- package/dist/esm/components/template-preview/EmailTemplateThumbnailPreview.js +1 -1
- package/dist/esm/components/template-preview/RCS/RCSButtons.js +1 -1
- package/dist/esm/components/template-preview/RCS/RCSChatPreview.js +1 -1
- package/dist/esm/components/template-preview/RCS/RCSMediaCard.js +1 -1
- package/dist/esm/components/template-preview/RCS/RCSPreview.styled.js +4 -4
- package/dist/esm/components/template-preview/RCS/RCSTemplateLikePreview.js +4 -4
- package/dist/esm/components/template-preview/SmsTemplatePreview.js +1 -1
- package/dist/esm/components/template-preview/TemplatePreview.d.ts +33 -0
- package/dist/esm/components/template-preview/TemplatePreview.js +1 -1
- package/dist/esm/components/template-preview/WhatsApp/ChatBtn.js +1 -1
- package/dist/esm/components/template-preview/WhatsApp/ChatUI.js +2 -2
- package/dist/esm/components/template-preview/WhatsApp/ChatUiV2.js +4 -4
- package/dist/esm/components/template-preview/WhatsApp/MediaCard.js +1 -1
- package/dist/esm/components/template-preview/WhatsApp/RenderTemplateWithVariable.js +2 -2
- package/dist/esm/components/template-preview/WhatsApp/WhatsAppLikePreview.d.ts +6 -0
- package/dist/esm/components/template-preview/WhatsApp/WhatsAppLikePreview.js +5 -5
- package/dist/esm/components/template-preview/WhatsApp/WhatsAppLikePreviewV2.d.ts +6 -0
- package/dist/esm/components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js +5 -5
- package/dist/esm/components/template-preview/WhatsAppTemplatePreview.js +1 -1
- package/dist/esm/components/template-preview/constants/regexPatterns.d.ts +13 -0
- package/dist/esm/components/template-preview/helpers/SmsTemplateHelper.d.ts +5 -0
- package/dist/esm/components/template-preview/helpers/SmsTemplateHelper.js +1 -1
- package/dist/esm/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
- package/dist/esm/components/template-preview/helpers/VariableEditorHelper.d.ts +10 -0
- package/dist/esm/components/template-preview/helpers/VariableEditorHelper.js +1 -1
- package/dist/esm/components/template-preview/helpers/WhatsAppFormatToHTML.d.ts +10 -0
- package/dist/esm/components/template-preview/helpers/templateMiscHelper.js +1 -1
- package/dist/esm/components/template-preview/models/Channels.d.ts +12 -0
- package/dist/esm/components/template-preview/models/EmailTemplate.d.ts +42 -0
- package/dist/esm/components/template-preview/models/RCSTemplate.d.ts +40 -0
- package/dist/esm/components/template-preview/models/SmsTemplate.d.ts +39 -0
- package/dist/esm/components/template-preview/models/TemplateMeta.d.ts +95 -0
- package/dist/esm/components/template-preview/models/WebpushTemplate.d.ts +64 -0
- package/dist/esm/components/template-preview/models/WhatsAppTemplate.d.ts +337 -0
- package/dist/esm/components/template-preview/models/WhatsappCarouselTemplate.d.ts +89 -0
- package/dist/esm/components/template-preview/models/types.d.ts +13 -0
- package/dist/esm/components/template-preview/utils/TemplateHelperUtils.js +1 -1
- package/dist/esm/components/template-preview/webpush/WebpushPreview.js +1 -1
- package/dist/esm/components/testimonial-card/TestimonialCard.d.ts +21 -0
- package/dist/esm/components/testimonial-card/TestimonialCard.js +1 -1
- package/dist/esm/components/testimonial-card/TestimonialCard.style.js +53 -1
- package/dist/esm/components/thumbnail/Thumbnail.d.ts +17 -0
- package/dist/esm/components/thumbnail/Thumbnail.js +1 -1
- package/dist/esm/components/toaster/Toaster.d.ts +33 -0
- package/dist/esm/components/toaster/Toaster.js +1 -1
- package/dist/esm/components/toaster/Toaster.styled.js +138 -1
- package/dist/esm/components/tooltips/Tooltip.d.ts +17 -0
- package/dist/esm/components/tooltips/Tooltip.js +1 -1
- package/dist/esm/components/tooltips/TooltipInternal.d.ts +11 -0
- package/dist/esm/components/tooltips/TooltipInternal.js +7 -1
- package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.d.ts +16 -0
- package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.js +1 -1
- package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryResponseList.d.ts +22 -0
- package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryResponseList.js +1 -1
- package/dist/esm/components/variable-picker-v3/Content.js +1 -1
- package/dist/esm/components/variable-picker-v3/DefaultVariableContent.js +1 -1
- package/dist/esm/components/variable-picker-v3/SubHeaderItems.js +1 -1
- package/dist/esm/components/variable-picker-v3/VariablePicker.d.ts +7 -0
- package/dist/esm/components/variable-picker-v3/VariablePicker.js +1 -1
- package/dist/esm/components/variable-picker-v3/model.d.ts +65 -0
- package/dist/esm/components/variable-picker-v3/recommendVaribles.js +1 -1
- package/dist/esm/components/variable-picker-v3/searchVariables.js +1 -1
- package/dist/esm/components/zeroState/ZeroState.js +5 -5
- package/dist/esm/constants/Theme.d.ts +624 -0
- package/dist/esm/constants/zindex.d.ts +9 -0
- package/dist/esm/helpers/BaseWhatsappContentLang.helper.d.ts +43 -0
- package/dist/esm/hooks/useCurreny.js +1 -1
- package/dist/esm/hooks/useOutside.js +1 -1
- package/dist/esm/index.d.ts +175 -0
- package/dist/esm/types/apiExecutor.d.ts +13 -0
- package/dist/esm/utils/DateUtils.js +1 -1
- package/dist/esm/utils/StringUtils.d.ts +16 -0
- package/dist/esm/utils/StringUtils.js +1 -1
- package/dist/esm/utils/bytesToMB.js +1 -1
- package/dist/esm/utils/resizeImage.d.ts +3 -0
- package/dist/esm/utils/unCamelCase.js +1 -1
- package/dist/esm/utils/validator.d.ts +8 -0
- package/package.json +8 -7
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React__default, { FunctionComponent } from 'react';
|
|
2
|
+
import { ToastPosition } from 'react-toastify';
|
|
3
|
+
import { IconProps } from 'react-toastify/dist/components';
|
|
4
|
+
|
|
5
|
+
type ToasterButtonProps = {
|
|
6
|
+
showButton?: boolean;
|
|
7
|
+
onButtonClick?: () => Record<string, never>;
|
|
8
|
+
buttonText?: string;
|
|
9
|
+
};
|
|
10
|
+
type ToasterProps = {
|
|
11
|
+
text: string;
|
|
12
|
+
subText?: string;
|
|
13
|
+
position?: ToastPosition;
|
|
14
|
+
type?: 'info' | 'success' | 'error' | 'default' | 'warning';
|
|
15
|
+
closeOnClick?: boolean;
|
|
16
|
+
hideProgressBar?: boolean;
|
|
17
|
+
autoClose?: number | false | undefined;
|
|
18
|
+
leftIcon?: React__default.ReactElement<IconProps>;
|
|
19
|
+
hideLeftIcon?: boolean;
|
|
20
|
+
buttonProps?: ToasterButtonProps;
|
|
21
|
+
secondButtonProps?: ToasterButtonProps;
|
|
22
|
+
onCloseToast?: <T>(props: T) => void;
|
|
23
|
+
width?: string;
|
|
24
|
+
height?: string;
|
|
25
|
+
hideCloseButton?: boolean;
|
|
26
|
+
zIndex?: number;
|
|
27
|
+
toastId?: string;
|
|
28
|
+
};
|
|
29
|
+
type Props = ToasterProps;
|
|
30
|
+
declare const Toaster: FunctionComponent<Props>;
|
|
31
|
+
|
|
32
|
+
export { Toaster };
|
|
33
|
+
export type { ToasterButtonProps, ToasterProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,Fragment as o,jsxs as e}from"react/jsx-runtime";import n from"../../assets/icons/alert_triangle.svg.js";import s from"../../assets/icons/check.svg.js";import
|
|
1
|
+
import{jsx as t,Fragment as o,jsxs as e}from"react/jsx-runtime";import n from"../../assets/icons/alert_triangle.svg.js";import s from"../../assets/icons/check.svg.js";import r from"../../assets/icons/cross.svg.js";import i from"../../assets/icons/errorInfo.svg.js";import l from"../../assets/icons/info.svg.js";import c,{useRef as d,useState as u,useEffect as a,useContext as p}from"react";import h from"react-dom";import{cssTransition as x,toast as y,ToastContainer as f}from"react-toastify";import{Button as T}from"../button/Button.js";import{ToasterStyled as B}from"./Toaster.styled.js";import{TitleSmall as g,BodySecondary as m,BodyCaption as b}from"../TypographyStyle.js";import{COLORS as w}from"../../constants/Theme.js";const C=o=>{const e=(o.type,w.content.secondary);return t("div",{tabIndex:0,role:"button",style:{width:20,display:"flex",cursor:"pointer",alignSelf:""+(o.alignTop?"flex-start":"center")},onClick:o.closeToast,onKeyDown:t=>{"Enter"===t.key&&o.closeToast&&o.closeToast()},children:t(r,{height:20,width:20,color:e})})},I=n=>{const s=w.content.placeholder,{toasterText:r}=p(P);return t(o,{children:e("div",{style:{display:"flex",flexGrow:1},children:[t("div",{style:{flexGrow:1,marginRight:32,display:"flex",alignItems:"center"},children:e("div",{children:[n.subText?t(g,{color:"inherit",children:n.toastText??r}):t(m,{color:"inherit",children:n.toastText??r}),n.subText&&t("div",{style:{marginTop:2},children:t(b,{color:w.content.secondary,children:n.subText})})]})}),n.showButton&&t("div",{style:{display:"flex",flexDirection:"column",alignSelf:"center",padding:"6px 4px",marginRight:{showSecondButton:4,showButton:0}[n.showSecondButton?"showSecondButton":"showButton"]},children:t(T,{buttonText:n.buttonText,buttonType:"tertiaryGray",color:w.content.secondary,onClick:n.onButtonClick})}),n.showSecondButton&&t("div",{style:{display:"flex",flexDirection:"column",alignSelf:"center",padding:"6px 4px"},children:t(T,{buttonText:n.secondButtonText,buttonType:"tertiaryGray",color:w.content.secondary,onClick:n.onSecondButtonClick})}),n.showButton||n.showSecondButton?t("div",{style:{height:28,alignSelf:"center",marginLeft:8,marginRight:8,borderRight:`1px solid ${s}`,borderRadius:1}}):null]})})},v=o=>{const e=d(o.toastId||"default-toast"),[r,c]=u(o.text),p=x({enter:"Toastify__slide-enter",exit:"Toastify__slide-exit"}),T="default"===o.type?null:"success"===o.type?t(s,{width:20,height:20,color:w.content.positive}):"error"===o.type?t(i,{width:20,height:20,color:w.content.negative}):"warning"===o.type?t(n,{width:20,height:20,color:w.content.warning}):t(l,{width:20,height:20,color:w.content.brand});a((()=>{e.current&&e.current===o.toastId?(c(o.text),y.update(e.current,{autoClose:o.autoClose})):e.current&&e.current!==o.toastId&&g(o.text)}),[o.toastId,o.text]);const g=n=>{void 0!==o.hideLeftIcon||o.leftIcon?y(t(I,{toastText:n,type:o.type||"info",buttonText:o.buttonProps?.buttonText,secondButtonText:o.secondButtonProps?.buttonText,showButton:o.buttonProps?.showButton,showSecondButton:o.secondButtonProps?.showButton,onButtonClick:o.buttonProps?.onButtonClick,onSecondButtonClick:o.secondButtonProps?.onButtonClick,subText:o.subText}),{onClose:o.onCloseToast?o.onCloseToast:()=>({}),icon:!0!==o.hideLeftIcon&&(o.leftIcon?o.leftIcon:"default"!==o.type&&t("div",{style:{display:"flex",alignItems:"flex-start"},children:T})),type:o.type,closeButton:t(C,{type:o.type||"default",alignTop:!(!o.subText||o.buttonProps?.showButton||o.secondButtonProps?.showButton)}),toastId:o.toastId||"default-toast",transition:p}):e.current=y(t(I,{toastText:n,type:o.type||"info",buttonText:o.buttonProps?.buttonText,secondButtonText:o.secondButtonProps?.buttonText,showButton:o.buttonProps?.showButton,showSecondButton:o.secondButtonProps?.showButton,onButtonClick:o.buttonProps?.onButtonClick,onSecondButtonClick:o.secondButtonProps?.onButtonClick,subText:o.subText}),{onClose:o.onCloseToast?o.onCloseToast:()=>({}),type:o.type,icon:"default"!==o.type&&t("div",{style:{display:"flex",alignItems:"flex-start"},children:T}),closeButton:t(C,{type:o.type||"default",alignTop:!(!o.subText||o.buttonProps?.showButton||o.secondButtonProps?.showButton)}),toastId:o.toastId||"default-toast",transition:p})};return a((()=>{g()}),[]),h.createPortal(t(B,{width:o.width,height:o.height,zIndex:o.zIndex,isSubTextIncluded:!!o.subText,type:o.type,children:t(P.Provider,{value:{toasterText:r},children:t(f,{position:o.position||"top-right",closeOnClick:o.closeOnClick||!1,hideProgressBar:o.hideProgressBar||!1,draggable:!1,autoClose:o.autoClose||!1,theme:"colored"})})}),document.body)},P=c.createContext({toasterText:""});export{v as Toaster};
|
|
@@ -1 +1,138 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"@emotion/styled";import{COLORS as o}from"../../constants/Theme.js";import{ComponentZindex as r}from"../../constants/zindex.js";const a=t.div`
|
|
2
|
+
--toastify-color-light: #fff;
|
|
3
|
+
--toastify-color-dark: #121212;
|
|
4
|
+
--toastify-text-color-success: ${o.content.primary};
|
|
5
|
+
--toastify-text-color-error: ${o.content.primary};
|
|
6
|
+
--toastify-text-color-warning: ${o.content.primary};
|
|
7
|
+
--toastify-text-color-info: ${o.content.primary};
|
|
8
|
+
--toastify-color-info: ${o.background.brandLight};
|
|
9
|
+
--toastify-color-success: ${o.background.positive.light};
|
|
10
|
+
--toastify-color-error: ${o.background.negative.light};
|
|
11
|
+
--toastify-color-warning: ${o.background.warning.light};
|
|
12
|
+
--toastify-text-color-light: ${o.content.primary};
|
|
13
|
+
--toastify-toast-width: fit-content;
|
|
14
|
+
--toastify-toast-min-height: ${t=>t.height||(t.isSubTextIncluded?"70px":"56px")};
|
|
15
|
+
--toastify-toast-max-height: ${t=>t.height||"fit-content"};
|
|
16
|
+
font-family: inherit;
|
|
17
|
+
z-index: ${t=>t.zIndex||r.TOASTER};
|
|
18
|
+
|
|
19
|
+
.custom-position {
|
|
20
|
+
position: relative;
|
|
21
|
+
}
|
|
22
|
+
.Toastify__toast-container {
|
|
23
|
+
padding: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.Toastify__toast--success {
|
|
27
|
+
border: 1px solid ${o.stroke.positive.lightAlt};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.Toastify__toast--info {
|
|
31
|
+
border: 1px solid ${o.stroke.brandLightAlt};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.Toastify__toast--default {
|
|
35
|
+
border: 1px solid ${o.stroke.primary};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.Toastify__toast--error {
|
|
39
|
+
border: 1px solid ${o.stroke.negative.lightAlt};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.Toastify__toast--warning {
|
|
43
|
+
border: 1px solid ${o.stroke.warning.lightAlt};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.Toastify__toast {
|
|
47
|
+
padding: ${t=>t.isSubTextIncluded?"16px":"12px"};
|
|
48
|
+
max-width: ${t=>t.width};
|
|
49
|
+
border-radius: 8px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.Toastify__progress-bar {
|
|
53
|
+
height: 4px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.Toastify__close-button {
|
|
57
|
+
display: block;
|
|
58
|
+
margin: auto;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.Toastify__toast-icon {
|
|
62
|
+
align-self: center;
|
|
63
|
+
margin-inline-end: 12px;
|
|
64
|
+
height: ${t=>t.isSubTextIncluded?"38px":"20px"};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.Toastify__toast-body {
|
|
68
|
+
padding: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--default {
|
|
72
|
+
background: ${o.content.brand};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info {
|
|
76
|
+
background: ${o.content.brand};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning {
|
|
80
|
+
background: ${o.content.warning};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success {
|
|
84
|
+
background: ${o.content.positive};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
|
|
88
|
+
background: ${o.content.negative};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.Toastify__toast-body > div:last-child {
|
|
92
|
+
display: flex;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.Toastify__slide-enter {
|
|
96
|
+
animation: slideIn 1s ease forwards,
|
|
97
|
+
bounce cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.5s both;
|
|
98
|
+
}
|
|
99
|
+
.Toastify__slide-exit {
|
|
100
|
+
animation: slideOut 0.5s ease-in-out forwards;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@keyframes bounce {
|
|
104
|
+
0%,
|
|
105
|
+
20%,
|
|
106
|
+
50%,
|
|
107
|
+
80%,
|
|
108
|
+
100% {
|
|
109
|
+
transform: translateY(0); /* Start and end at the original position */
|
|
110
|
+
}
|
|
111
|
+
40% {
|
|
112
|
+
transform: translateX(-20px); /* Bouncing up */
|
|
113
|
+
}
|
|
114
|
+
60% {
|
|
115
|
+
transform: translateX(20px); /* Small bounce before settling */
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
@keyframes slideIn {
|
|
119
|
+
0% {
|
|
120
|
+
transform: translateX(-100%); /* Start off-screen to the left */
|
|
121
|
+
opacity: 0;
|
|
122
|
+
}
|
|
123
|
+
100% {
|
|
124
|
+
transform: translateX(0); /* End at the original position */
|
|
125
|
+
opacity: 1;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
@keyframes slideOut {
|
|
129
|
+
0% {
|
|
130
|
+
transform: translateX(0); /* Start from the original position */
|
|
131
|
+
opacity: 1;
|
|
132
|
+
}
|
|
133
|
+
100% {
|
|
134
|
+
transform: translateX(100%); /* Slide out to the right */
|
|
135
|
+
opacity: 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
`;export{a as ToasterStyled};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode, FunctionComponent } from 'react';
|
|
2
|
+
import { TooltipInternalProps } from './TooltipInternal.js';
|
|
3
|
+
|
|
4
|
+
type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
5
|
+
interface TooltipProps extends TooltipInternalProps {
|
|
6
|
+
width?: number;
|
|
7
|
+
placement?: Placement;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
tooltipContent?: JSX.Element;
|
|
10
|
+
alwaysVisible?: boolean;
|
|
11
|
+
hideArrow?: boolean;
|
|
12
|
+
onClickOutside?: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const Tooltip: FunctionComponent<TooltipProps>;
|
|
15
|
+
|
|
16
|
+
export { Tooltip };
|
|
17
|
+
export type { Placement, TooltipProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as t,Fragment as n,jsx as
|
|
1
|
+
import{jsxs as t,Fragment as n,jsx as o}from"react/jsx-runtime";import e from"@tippyjs/react";import i from"react";import r from"./TooltipInternal.js";import{COLORS as a}from"../../constants/Theme.js";const l=`\n\t.tippy-content {\n\t\tpadding: 0px;\n\t}\n\t.tippy-arrow {\n\t\tcolor: ${a.content.primary};\n\t}\n\t.overflow-wrap-tippy {\n\t\toverflow-wrap: anywhere;\n\t}\n`,p=a=>i.isValidElement(a.children)?a.body||a.title||a.tooltipContent?t(n,{children:[o("style",{children:l}),o(e,{theme:a.variant??"dark",appendTo:document.body,className:"overflow-wrap-tippy",placement:a.placement||"right",maxWidth:a.width,animation:"fade",arrow:!a.hideArrow,interactive:!0,delay:a.delay,visible:a.alwaysVisible,content:a.tooltipContent?a.tooltipContent:o(r,{variant:a.variant,title:a.title,body:a.body,buttonProps:a.buttonProps}),onClickOutside:a.onClickOutside,children:a.children})]}):a.children:null;export{p as Tooltip};
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{jsxs as t,jsx as r}from"react/jsx-runtime";import o from"@emotion/styled";import{Button as a}from"../button/Button.js";import{TitleSmall as n,BodyCaption as i}from"../TypographyStyle.js";import{COLORS as e}from"../../constants/Theme.js";const p=t=>"light"===t?e.content.primary:e.content.primaryInverse,m=o.div`
|
|
2
|
+
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.12);
|
|
3
|
+
border-radius: 4px;
|
|
4
|
+
padding: 8px;
|
|
5
|
+
background-color: ${t=>"light"===t.variant?e.surface.subdued:e.content.primary};
|
|
6
|
+
color: ${t=>p(t.variant)};
|
|
7
|
+
`;var s=o=>t(m,{variant:o.variant??"dark",children:[o.title&&r(n,{color:p(o.variant),style:{marginBottom:"8px"},children:o.title}),r(i,{color:p(o.variant),style:{marginBottom:o.buttonProps?"8px":"0px"},children:o.body}),o.buttonProps&&r(a,{...o.buttonProps})]});export{s as default};
|
package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface UnsatisfactoryCountIntentWiseProps {
|
|
2
|
+
storeId?: string;
|
|
3
|
+
showUnsatisfactoryResponseModal: boolean;
|
|
4
|
+
setShowUnsatisfactoryResponseModal: (value: boolean) => void;
|
|
5
|
+
ChecklistType: Record<string, string>;
|
|
6
|
+
UnsatisfactoryResponseIntentList?: string[];
|
|
7
|
+
IntentHeaderTitle?: Record<string, string>;
|
|
8
|
+
viewIntentWiseUnsatisfactoryResponse?: (intent: string) => void;
|
|
9
|
+
fetchUnsatisfactoryResponseCountIntentWise?: () => Promise<{
|
|
10
|
+
[keys in string]?: number;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
declare const UnsatisfactoryCountIntentWiseModal: React.FC<UnsatisfactoryCountIntentWiseProps>;
|
|
14
|
+
|
|
15
|
+
export { UnsatisfactoryCountIntentWiseModal };
|
|
16
|
+
export type { UnsatisfactoryCountIntentWiseProps };
|
package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as l,useEffect as n}from"react";import{COLORS as s}from"../../constants/Theme.js";import{Button as i}from"../button/Button.js";import{StyledModal as r}from"../modals/styledModal.js";import{BikShimmer as
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as l,useEffect as n}from"react";import{COLORS as s}from"../../constants/Theme.js";import{Button as i}from"../button/Button.js";import{StyledModal as r}from"../modals/styledModal.js";import{BikShimmer as a}from"../shimmer/ShimmerComponent/BikShimmer.js";import{BodyPrimary as o,TitleSmall as c,BodySecondary as d}from"../TypographyStyle.js";import{ModalBody as m}from"./UnsatisfactoryCountIntentWiseModal.style.js";const h=h=>{const{storeId:p,setShowUnsatisfactoryResponseModal:y,showUnsatisfactoryResponseModal:b,ChecklistType:f,UnsatisfactoryResponseIntentList:v,viewIntentWiseUnsatisfactoryResponse:x,IntentHeaderTitle:N,fetchUnsatisfactoryResponseCountIntentWise:g}=h,[u,w]=l(),[I,j]=l(!1);return n((()=>{p&&g&&(j(!0),g().then((e=>{w(e),j(!1)})))}),[p]),e(r,{onClose:()=>y(!1),open:b,headingTitle:"Improve unsatisfactory response",children:t(m,{children:[e("div",{children:e(o,{style:{color:s.content.primary},children:"Intent wise distribution of unsatisfactory response"})}),t("div",{className:"modal-table",children:[t("div",{className:"table-row header",children:[e("div",{className:"table-cell",children:e(c,{style:{color:s.content.primary},children:"Intent"})}),e("div",{className:"table-cell center-align",children:e(c,{style:{color:s.content.primary},children:"Unsatisfactory response"})}),e("div",{className:"table-cell center-align",children:e(c,{style:{color:s.content.primary},children:"Action"})})]}),I&&[0,1,2,3,4,5,6].map((l=>t("div",{className:"table-row",children:[e("div",{className:"table-cell",children:e(a,{boxes:[{width:"196px",height:"20px"}]})}),e("div",{className:"table-cell center-align",children:e(a,{boxes:[{width:"176px",height:"20px"}]})}),e("div",{className:"table-cell center-align",children:e(a,{boxes:[{width:"56px",height:"20px"}]})})]},l))),!I&&v&&N&&x&&v.map((l=>t("div",{className:"table-row",children:[e("div",{className:"table-cell",children:e(d,{style:{color:s.content.primary},children:N[l]})}),e("div",{className:"table-cell center-align",children:e(d,{style:{color:s.content.primary},children:u?.[l]||"--"})}),e("div",{className:"table-cell center-align",children:e(i,{buttonText:"Fix",buttonType:"tertiary",size:"small",onClick:()=>x(l),disabled:!u?.[l]})})]},l)))]})]})})};export{h as UnsatisfactoryCountIntentWiseModal};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
interface UnsatisfactoryResponseListProps {
|
|
5
|
+
storeId?: string;
|
|
6
|
+
appType: ApplicationType;
|
|
7
|
+
incorrectMessages: any;
|
|
8
|
+
onIncorrectMessageBubbleClick: (messageId: string) => void;
|
|
9
|
+
setShowIncorrectReplies: (show: boolean) => void;
|
|
10
|
+
ChecklistType: Record<string, string>;
|
|
11
|
+
IntentHeaderTitle?: Record<string, string>;
|
|
12
|
+
IntentWiseUnsatisfactoryResponse?: string[];
|
|
13
|
+
redirectToUnsatisfactoryResponse?: (intent: string) => void;
|
|
14
|
+
fetchUnsatisfactoryResponseCountIntentWise?: () => Promise<{
|
|
15
|
+
[keys in string]?: number;
|
|
16
|
+
}>;
|
|
17
|
+
fetchUnsatisfactoryResponseCount?: () => Promise<number>;
|
|
18
|
+
}
|
|
19
|
+
declare const UnsatisfactoryResponseList: React__default.FC<UnsatisfactoryResponseListProps>;
|
|
20
|
+
|
|
21
|
+
export { UnsatisfactoryResponseList };
|
|
22
|
+
export type { UnsatisfactoryResponseListProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as s}from"react/jsx-runtime";import"../../node_modules/@bikdotai/bik-models/growth/models/bik-store.js";import o from"../../assets/icons/cross.svg.js";import n from"../../assets/icons/info.svg.js";import{format as r}from"date-fns";import{useState as i,useEffect as a}from"react";import{COLORS as l}from"../../constants/Theme.js";import{Avatar as c}from"../avatar/Avatar.js";import{SIZE as d,AVATAR_TYPES as p,AVATAR_BACKGROUND as m}from"../avatar/AvatarHelper.js";import{Button as y}from"../button/Button.js";import{StateComponent as h,StateInterface as f}from"../states/StateComponent.js";import{TitleRegular as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as s}from"react/jsx-runtime";import"../../node_modules/@bikdotai/bik-models/growth/models/bik-store.js";import o from"../../assets/icons/cross.svg.js";import n from"../../assets/icons/info.svg.js";import{format as r}from"date-fns";import{useState as i,useEffect as a}from"react";import{COLORS as l}from"../../constants/Theme.js";import{Avatar as c}from"../avatar/Avatar.js";import{SIZE as d,AVATAR_TYPES as p,AVATAR_BACKGROUND as m}from"../avatar/AvatarHelper.js";import{Button as y}from"../button/Button.js";import{StateComponent as h,StateInterface as f}from"../states/StateComponent.js";import{TitleRegular as g,BodySecondary as u,Caption as I}from"../TypographyStyle.js";import{UnsatisfactoryCountIntentWiseModal as v}from"./UnsatisfactoryCountIntentWiseModal.js";import{IncorrectRepliesStyle as b}from"./UnsatisfactoryResponseList.style.js";import{__exports as w}from"../../_virtual/bik-store.js";const j=j=>{const{storeId:C,appType:T,incorrectMessages:U,onIncorrectMessageBubbleClick:k,setShowIncorrectReplies:x,ChecklistType:M,IntentWiseUnsatisfactoryResponse:R,IntentHeaderTitle:A,redirectToUnsatisfactoryResponse:N,fetchUnsatisfactoryResponseCountIntentWise:S,fetchUnsatisfactoryResponseCount:W}=j,[L,D]=i(""),[E,H]=i(U?.length>0),[_,z]=i(!1);return a((()=>{!E&&W&&W().then((e=>{e>0&&H(!0),0===e&&x(!1)}))}),[]),e("div",{style:{overflow:"scroll",height:"100%"},children:t(b,{children:[T==w.ApplicationType.MANIFEST&&t("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[t("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e(g,{children:"Unsatisfactory responses"}),e("div",{style:{cursor:"pointer"},onClick:()=>x(!1),children:e(o,{height:16,width:16,color:l.content.primary})})]}),e(u,{style:{color:l.content.secondary},children:"Spot unsatisfactory replies, dive deeper, and enhance with relevant data for improved responses."})]}),!U?.length&&e("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:e(h,{states:f.WARNING,heading:"No unsatisfactory responses",subline:"As of now, all responses are correct",isButtonEnabled:!1,width:0,size:d.SMALL,icon:e(c,{type:p.ICON,size:d.MEDIUM,background:m.LIGHT,icon:()=>e(n,{width:16,height:16,color:l.content.warning})})})}),!!U?.length&&t(s,{children:[T==w.ApplicationType.MANIFEST&&e("div",{style:{display:"flex",width:"100%",justifyContent:U?.length?"flex-start":"center"},children:e(y,{buttonText:"Fix all unsatisfactory responses",buttonType:"tertiary",size:"small",onClick:()=>{z(!0)},disabled:!E})}),e(v,{storeId:C,setShowUnsatisfactoryResponseModal:z,showUnsatisfactoryResponseModal:_,ChecklistType:M,UnsatisfactoryResponseIntentList:R,IntentHeaderTitle:A,fetchUnsatisfactoryResponseCountIntentWise:S,viewIntentWiseUnsatisfactoryResponse:N}),U&&U?.length>0&&e("div",{className:"wrapper",children:U.map(((s,o)=>t("div",{className:"bubble",onClick:()=>{k(s.messageId),D(s.messageId)},style:L===s.messageId?{backgroundColor:l.surface.hovered}:{},children:[e(u,{style:{color:l.content.primary},children:s.message}),e("div",{children:t(I,{style:{color:l.content.secondary},children:[r(new Date(s?.date),"hh:mm a")," |"," ",r(new Date(s?.date),"dd/MM/yyyy")]})})]},s.messageId)))})]})]})})};export{j as UnsatisfactoryResponseList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import l from"../../assets/icons/arrow_back.svg.js";import a from"../../assets/icons/cross.svg.js";import i from"../../assets/icons/plus.svg.js";import r from"../../assets/icons/triangle_error.svg.js";import{useState as s,useEffect as n}from"react";import{COLORS as c}from"../../constants/Theme.js";import{BikAccordion as d}from"../accordion/Accordion.js";import{IconButton as h}from"../icon-button/IconButton.js";import{Input as p}from"../input/Input.js";import{ListItem as m}from"../list-item/ListItem.js";import{Switch as u}from"../switch/Switch.js";import{Tooltip as f}from"../tooltips/Tooltip.js";import{TitleRegular as g,BodySecondary as y,BodyCaption as b,TitleSmall as v}from"../TypographyStyle.js";import{VariablePickerContext as x}from"./context.js";import{DefaultVariableContent as j}from"./DefaultVariableContent.js";import{highlightSearchText as S}from"./highlightSearchText.js";import{PickerType as k}from"./model.js";import w from"./NoResult.js";import{showOnlyRecommendedVariables as V}from"./recommendVaribles.js";import{searchVariables as C}from"./searchVariables.js";import{HeaderWrapper as T,RecommendWrapper as I,BackHeader as N,Container as B}from"./styles.js";import D,{renderTooltipBody as R}from"./SubHeaderItems.js";const E=/.*\..*/,H=H=>{const{data:L,onSelect:$,showHeader:P,showBackButton:O,hideHeaderCross:A,onBackButtonClick:_,isEvaluationList:z,autoOpenFirst:F,headerText:K,contentHeight:M,onDefaultVariableSelect:q,skipDefaultVariableContent:G}=H,[J,Q]=s(L),[U,W]=s(""),[X,Y]=s([]),[Z,ee]=s(""),[te,oe]=s(!1),[le,ae]=s([]),[ie,re]=s(!1),[se,ne]=s(),ce=ie&&H.type===k.EMBEDDED&&!A;n((()=>{de(!0)}),[]),n((()=>{X.length>0?ae([X[X.length-1]]):ae(L)}),[X]);const de=async e=>{if(oe(e),e){const e=V(J,X);Q(e)}else if(X.length>0){const e=Z==X[X.length-1].displayName;if(U.length>0&&e){const e=C(U,le,X);Q(e)}else Q([X[X.length-1].variables])}else if(U.length>0){const e=C(U,le,X);Q(e)}else Q(L)},he=()=>{if(M)return M;let e=131;return X.length>0&&(e+=32),(H.showHeader||H.showBackButton)&&(e+=40),`calc(100% - ${e}px)`},pe=e=>{if(!H.disabled)if(z){const t=(e=>{if(e.actualValue.match(E)){const t=e.actualValue.replace("{{","").replace("}}","").split(".");let o=t[0];return t.forEach(((e,t)=>{if(0===t)return;const l=(e=>/\w+\[\d+\]/g.test(e))(e);if(l){const t=e.match(/(\w+)\[(\d+)\]/);if(t){const e=t[1],l=t[2];o+=`['${e}'][${l}]`}}else o+=`['${e}']`})),o}return e.actualValueEval?e.actualValueEval:e.actualValue})(e);$({...e,actualValue:t})}else{if(e.isDefaultValueSupported&&!G)return ne(e),void re(!0);$(e)}};return e(x.Provider,{value:{variables:J,searchText:U,subHeaderStack:X,showRecommended:te,setSubHeaderStack:Y,setSearchText:W,setVariables:Q,setShowRecommended:oe},children:t("div",{tabIndex:-1,id:"variable-picker-v3",style:{backgroundColor:"white",borderRadius:8,height:"100%",outline:"none"},onClick:e=>e.stopPropagation(),children:[(P||O||ie)&&t(T,{openDefault:ie,children:[t("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(O||ie)&&e(h,{Icon:()=>e(l,{width:16,height:16,style:{display:"flex",color:c.content.primary}}),onClick:()=>{ie?re(!1):_&&_()}}),(P||ie)&&e(g,{children:ie?"Set up":K??"Select Variable"})]}),ce&&e(h,{style:{color:"#212121"},Icon:a,onClick:()=>H.onClose&&H.onClose()})]}),ie&&se&&!G?e(j,{variable:se,onInsertVariable:e=>{$(e),q?.(e)}}):t(o,{children:[e("div",{style:{padding:"0 16px",paddingTop:12,backgroundColor:c.surface.subdued,borderTopLeftRadius:8,borderTopRightRadius:8},children:e(p,{id:"search-bar-v3-picker",onBlur:e=>{H.onSearchBlur&&H.onSearchBlur(e)},value:U,noKeyDownChange:!0,placeholder:"Search",onChangeText:e=>{e||ee("");const t=C(e,le,X);if(te){const e=V(t,X);Q(e)}else Q(t);W(e);const o=X.length>0?X[X.length-1].displayName:"home";ee(o)}})}),t(I,{children:[e(y,{style:{color:c.content.secondary},children:"Only Recommended"}),e(u,{value:te,onValueChange:async e=>{await de(e)}})]}),X.length>0&&t(N,{children:[e("div",{style:{position:"absolute",left:16},children:e(h,{id:"back-btn-v3",style:{display:"flex"},Icon:()=>e(l,{width:12,height:12,style:{color:c.content.secondary}}),onClick:e=>{e.stopPropagation();let t=U;const o=[...X],l=o.pop();if(Y(o),l.displayName===Z&&(W(""),t=""),t.length>0){const e=o.length>0?[o[o.length-1]]:L,l=C(t,e,o);if(te){const e=V(l,o);Q(e)}else Q(l)}else if(o.length>0)if(te){const e=V([o[o.length-1].variables],o);Q(e)}else Q([o[o.length-1].variables]);else if(te){const e=V(L,X);Q(e)}else Q(L)}})}),e(b,{style:{color:c.content.secondary},children:X[X.length-1].displayName})]}),e(o,{children:J.length>0?e(B,{height:he(),children:J.map(((l,a)=>l.displayName&&void 0!==l.variables?e("div",{style:{borderBottom:`1px solid ${c.stroke.primary}`},children:e(d,{autoOpen:F&&0===a,headerPadding:"12px 16px",header:e(v,{style:{color:c.content.secondary},children:S(l.displayName,U)}),children:e(D,{parentVariable:l,disabled:H.disabled??!1,searchText:U,variable:l.variables,onSelect:e=>{if(e.isDefaultValueSupported&&!G)return ne(e),void re(!0);$(e)}})})},l.displayName+te):l.displayName?e(f,{body:R(l),placement:"bottom",children:e(m,{variant:H.disabled?"readonly":l?.selected?"selected":"default",version:"2.0",leadingIcon:l?.selected||H.disabled?e(o,{}):e("div",{style:{flexShrink:0},children:e(i,{width:14,height:14})}),customListItemLabel:t("div",{style:{display:"flex",gap:4},children:[e(y,{style:{fontSize:"14px",color:c.text.primary},children:S(l.displayName,U)}),!l.isAvailable&&e(f,{body:"Not Recommended",children:e("div",{style:{display:"flex",marginTop:2},children:e(r,{width:16,height:16,color:c.content.secondary})})})]}),listItem:{label:l.displayName,value:l.displayName},subText:l.description||"",onClick:()=>pe(l)},a)},a):e(D,{disabled:H.disabled??!1,searchText:U,variable:l,onSelect:e=>pe(e)},a)))}):e(w,{height:he(),searchText:U})})]})]})})};export{H as VariablePickerContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as
|
|
1
|
+
import{jsx as e,Fragment as i,jsxs as a}from"react/jsx-runtime";import{useState as t}from"react";import{Button as r}from"../button/Button.js";import{CheckBox as l}from"../checkBox/CheckBox.js";import{Input as o}from"../input/Input.js";import{TitleRegular as d,BodySecondary as n}from"../TypographyStyle.js";const s=s=>{const[p,u]=t(s.variable.defaultValue||""),[f,m]=t(""),[c,h]=t(!!s.variable?.enableDefaultValueForGlobalUsage);return e(i,{children:a("div",{style:{padding:"0 16px",paddingTop:12,borderTopLeftRadius:8,borderTopRightRadius:8},children:[e("div",{style:{paddingBottom:16,borderBottom:"1px solid #E0E0E0"},children:e(d,{children:s.variable?.displayName})}),a("div",{style:{paddingTop:24},children:[e(o,{onChangeText:e=>{m(""),u(e)},value:p,isRequired:!0,labelText:"Default Value",hintText:"Used if this field is missing for a customer",errorMessage:f??"",maxCharLimit:25}),a("div",{style:{paddingTop:24,gap:8,alignItems:"flex-start"},className:"d-flex",children:[e(l,{isChecked:c,onValueChange:e=>h(e),size:"SMALL"}),e(n,{style:{marginTop:-2},children:`Make this the default value for ‘${s.variable?.displayName}’`})]}),e("div",{style:{padding:"24px 0px",display:"flex",flexDirection:"row",justifyContent:"flex-end"},children:e(r,{buttonText:"Insert Variable",buttonType:"primary",onClick:()=>{if(!p)return void m("This field is required");const e={...s.variable,defaultValue:p,enableDefaultValueForGlobalUsage:c};s.onInsertVariable(e)}})})]})]})})};export{s as DefaultVariableContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as t,jsxs as i}from"react/jsx-runtime";import s from"../../assets/icons/chevronRight.svg.js";import o from"../../assets/icons/plus.svg.js";import
|
|
1
|
+
import{jsx as e,Fragment as t,jsxs as i}from"react/jsx-runtime";import s from"../../assets/icons/chevronRight.svg.js";import o from"../../assets/icons/plus.svg.js";import r from"../../assets/icons/sub_category.svg.js";import l from"../../assets/icons/triangle_error.svg.js";import{cloneDeep as a}from"lodash";import{COLORS as n}from"../../constants/Theme.js";import{ListItem as c}from"../list-item/ListItem.js";import{Tooltip as m}from"../tooltips/Tooltip.js";import{BodySecondary as d}from"../TypographyStyle.js";import{useVariablePickerContext as p}from"./context.js";import{highlightSearchText as h}from"./highlightSearchText.js";import{showOnlyRecommendedVariables as y}from"./recommendVaribles.js";const b=e=>e.contextQ?.join(" > ")||"",f=f=>{const{onSelect:v,variable:g,searchText:x,disabled:u,parentVariable:j}=f,{subHeaderStack:I,setSubHeaderStack:S,setVariables:N,showRecommended:T}=p();return e("div",{style:{display:"flex",flexDirection:"column",gap:4},children:Object.keys(g).map(((p,f)=>{if(void 0===g[p].variables||0===Object.keys(g[p]?.variables||{}).length){const s=g[p];return e(m,{body:b(s),placement:"bottom",children:e(c,{variant:u?"readonly":s?.selected?"selected":"default",version:"2.0",leadingIcon:s?.selected||u?e(t,{}):e("div",{style:{flexShrink:0},children:e(o,{width:14,height:14})}),customListItemLabel:i("div",{style:{display:"flex",gap:4},children:[e(d,{style:{fontSize:"14px",color:n.text.primary},children:h(s.displayName,x)}),!s.isAvailable&&e(m,{body:"Not Recommended",children:e("div",{style:{display:"flex",marginTop:2},children:e(l,{width:16,height:16,color:n.content.secondary})})})]}),listItem:{label:s.displayName,value:s.displayName},subText:s.description||"",onClick:()=>{v(s)}})},f)}return e(m,{body:b(g[p]),placement:"bottom",children:e(c,{variant:"default",version:"2.0",listItem:{label:g[p].displayName,value:g[p].displayName},customListItemLabel:e("div",{style:{display:"flex",alignItems:"center"},children:e(d,{style:{fontSize:"14px",color:n.text.primary},children:h(g[p].displayName,x)})}),leadingIcon:e(r,{width:14,height:14}),subText:g[p].description||"",trailingIcon:e(s,{width:10,height:10,color:"#212121"}),onClick:()=>{const e=a(g[p]);void 0!==j&&(e.contextQ=[j.displayName]);const t=[...I,e];if(S(t),T){const i=y([e.variables],t);N(i)}else N([e.variables])}})},f)}))})};export{f as default,b as renderTooltipBody};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as
|
|
1
|
+
import{jsxs as o,jsx as t}from"react/jsx-runtime";import s from"../../assets/icons/cross.svg.js";import{COLORS as e}from"../../constants/Theme.js";import{CloseButtonContainer as r}from"../modals/modal.styled.js";import{VariablePickerContent as i}from"./Content.js";import{PickerType as d}from"./model.js";const n=n=>{const{type:h}=n;return h==d.FLOATER?o("div",{style:{boxShadow:"0px 2px 8px 0px #0000001F",width:n.width?n.width:344,borderRadius:4,height:"100%"},children:[t(i,{...n}),t(r,{onClick:()=>{n.onClose&&n.onClose()},children:t(s,{height:20,width:20,color:e.content.secondary})})]}):t("div",{style:{width:n.width??"100%",height:"100%"},children:t(i,{...n})})};export{n as VariablePicker,n as default};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
declare enum PickerType {
|
|
2
|
+
FLOATER = "floater",
|
|
3
|
+
EMBEDDED = "embedded"
|
|
4
|
+
}
|
|
5
|
+
interface VariablePickerV3Props {
|
|
6
|
+
type: PickerType;
|
|
7
|
+
data: VariableListInterfaceV3[];
|
|
8
|
+
onSelect: (variable: VariableV3) => void;
|
|
9
|
+
width?: string;
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
showHeader?: boolean;
|
|
12
|
+
showBackButton?: boolean;
|
|
13
|
+
onBackButtonClick?: () => void;
|
|
14
|
+
onSearchBlur?: (e: any) => void;
|
|
15
|
+
isEvaluationList?: boolean;
|
|
16
|
+
hideHeaderCross?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
autoOpenFirst?: boolean;
|
|
19
|
+
headerText?: string;
|
|
20
|
+
contentHeight?: string;
|
|
21
|
+
onDefaultVariableSelect?: (variable: VariableV3) => void;
|
|
22
|
+
skipDefaultVariableContent?: boolean;
|
|
23
|
+
}
|
|
24
|
+
interface VariableListInterfaceV3 {
|
|
25
|
+
isSubHeader?: boolean;
|
|
26
|
+
displayName: string;
|
|
27
|
+
description: string;
|
|
28
|
+
orderId?: number;
|
|
29
|
+
isAvailable?: boolean;
|
|
30
|
+
contextQ?: string[];
|
|
31
|
+
variables?: {
|
|
32
|
+
[key: string]: SubHeader | VariableV3;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
interface SubHeader {
|
|
36
|
+
isSubHeader: boolean;
|
|
37
|
+
isAvailable: boolean;
|
|
38
|
+
displayName: string;
|
|
39
|
+
description: string;
|
|
40
|
+
contextQ?: string[];
|
|
41
|
+
variables?: {
|
|
42
|
+
[key: string]: SubHeader | VariableV3;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
interface VariableV3 {
|
|
46
|
+
contextQ?: string[];
|
|
47
|
+
selected?: boolean;
|
|
48
|
+
description?: string;
|
|
49
|
+
defaultValue?: string;
|
|
50
|
+
displayName: string;
|
|
51
|
+
actualValue: string;
|
|
52
|
+
variableType: string;
|
|
53
|
+
isAvailable: boolean;
|
|
54
|
+
actualValueEval?: string;
|
|
55
|
+
isSubHeader?: boolean;
|
|
56
|
+
variables?: {
|
|
57
|
+
[key: string]: VariableV3;
|
|
58
|
+
};
|
|
59
|
+
needsFetching?: boolean;
|
|
60
|
+
isDefaultValueSupported?: boolean;
|
|
61
|
+
enableDefaultValueForGlobalUsage?: boolean;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export { PickerType };
|
|
65
|
+
export type { SubHeader, VariableListInterfaceV3, VariablePickerV3Props, VariableV3 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=(e,i)=>e.map((e=>{if(e.isAvailable&&void 0===e.variables)return e;if(void 0===e.isAvailable&&void 0!==e.variables){const i=a(e.variables);return 0===Object.keys(i).length?{}:{...e,variables:i}}if(void 0===e.variables){return a(e)}{const l=a(e.variables);return i.length?l:0===Object.keys(l).length?{}:{...e,variables:l}}})).filter((e=>Object.keys(e).length>0)),a=e=>Object.keys(e).reduce(((a,i)=>(e[i]&&e[i].isAvailable&&(a[i]=e[i]),a)),{});export{e as showOnlyRecommendedVariables};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=(e,s,l)=>{if(!e)return l.length>0?[l[l.length-1].variables]:s;const i=[];return s.forEach((s=>{if(l.length>0)if(s.displayName&&void 0!==s.variables)a(e,s.variables,i,[...s.contextQ||[],s.displayName]);else{if(s.displayName.toLowerCase().includes(e.toLowerCase())&&i.push(s),!s.variables||!Object.keys(s.variables).length)return;a(e,s.variables,i,[...s.contextQ||[],s.displayName])}else{if(s.displayName.toLowerCase().includes(e.toLowerCase())&&i.push(s),!s.variables||!Object.keys(s.variables).length)return;a(e,s.variables,i,[s.displayName])}})),i},a=(e,s,l,i=[])=>{Object.keys(s).forEach((t=>{s[t].displayName.toLowerCase().includes(e.toLowerCase())&&(void 0!==s[t].variables&&0===Object.keys(s[t].variables).length&&delete s[t].variables,l.push(s[t].isSubHeader?{[t]:{...s[t],contextQ:i}}:{...s[t],contextQ:i})),s[t].variables&&Object.keys(s[t].variables).length&&a(e,s[t].variables,l,[...i,s[t].displayName])}))};export{e as searchVariables};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{jsxs as t,jsx as e}from"react/jsx-runtime";import
|
|
2
|
-
background: ${
|
|
1
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";import o from"styled-components";import{Spinner as n}from"../spinner/Spinner.js";import{BodyCaption as r,TitleRegular as i,TitleSmall as s}from"../TypographyStyle.js";import{COLORS as l}from"../../constants/Theme.js";import c from"../../assets/icons/alert.svg.js";import{Button as d}from"../button/Button.js";const a=o.div`
|
|
2
|
+
background: ${l.surface.standard};
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
align-items: center;
|
|
6
6
|
justify-content: center;
|
|
7
7
|
flex: 1;
|
|
8
|
-
`,
|
|
9
|
-
background: ${
|
|
8
|
+
`,m=o.div`
|
|
9
|
+
background: ${l.background.base};
|
|
10
10
|
width: 48px;
|
|
11
11
|
height: 48px;
|
|
12
12
|
display: flex;
|
|
@@ -14,4 +14,4 @@ import{jsxs as t,jsx as e}from"react/jsx-runtime";import r from"styled-component
|
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: center;
|
|
16
16
|
border-radius: 24px;
|
|
17
|
-
`,
|
|
17
|
+
`,p=({subTitle:o,title:p,IconHolderStyle:u,style:h,isLoading:y,containerWidth:f,...g})=>{let x=i;const b=f?parseFloat(f):0;return b&&!isNaN(b)&&b<=150&&(x=s),t(a,{style:h??{},children:[y?e(n,{size:"large",color:l.stroke.brand}):e(m,{style:u??{},children:g?.Icon||e(c,{color:l.content.placeholder,height:24,width:24})}),e(x,{style:{marginTop:8,color:l.content.primary},children:y?"Loading...":p||"No results found"}),!!o&&!y&&e(r,{style:{marginTop:4,color:l.content.secondary,textAlign:"center",maxWidth:184},children:o}),!!g?.actionButton&&e("div",{style:g?.buttonWidth?{width:g?.buttonWidth,display:"flex"}:{},children:e(d,{...g?.actionButton})})]})};export{p as ZeroState};
|